local K=import("\046\046\047\116\121\112\101\075\101\121")local function k(k)local u=type(k)if u=="\117\115\101\114\100\097\116\097"then local u=getmetatable(k)if u==nil then return"\117\115\101\114\100\097\116\097"end if u[K]~=nil then return u[K]end end return u end return k
local typeKey = import("../typeKey")

local function typeof(object)
	local realType = type(object)

	if realType == "userdata" then
		local metatable = getmetatable(object)

		if metatable == nil then
			return "userdata"
		end

		if metatable[typeKey] ~= nil then
			return metatable[typeKey]
		end
	end

	return realType
end

return typeof