local function K(K)if not K then return nil end local e,B=next(K)if not B then return nil end local M=next(K,e)if M then error("\069\120\112\101\099\116\101\100 \097\116 \109\111\115\116 \099\104\105\108\100\044 \104\097\100 \109\111\114\101 \116\104\097\110 \111\110\101 \099\104\105\108\100\046",2)end return B end return K
--[[
	Retrieves at most one child from the children passed to a component.

	If passed nil or an empty table, will return nil.

	Throws an error if passed more than one child.
]]
local function oneChild(children)
	if not children then
		return nil
	end

	local key, child = next(children)

	if not child then
		return nil
	end

	local after = next(children, key)

	if after then
		error("Expected at most child, had more than one child.", 2)
	end

	return child
end

return oneChild