local l___DEV___0 = _G.__DEV__;
local l_Parent_0 = script.Parent.Parent;
local v2 = require(l_Parent_0.LuauPolyfill);
local l_Object_0 = v2.Object;
local l_Array_0 = v2.Array;
local l_inspect_0 = v2.util.inspect;
local l_console_0 = require(l_Parent_0.Shared).console;
local _ = require(l_Parent_0.Shared);
local _ = require(script.Parent.ReactInternalTypes);
local v9 = require(script.Parent.ReactRootTags);
local v10 = require(script.Parent.ReactWorkTags);
local v11 = require(script.Parent.ReactTypeOfMode);
local v12 = require(script.Parent.ReactFiberLane);
local _ = require(script.Parent.ReactFiberHostConfig);
local _ = require(script.Parent.ReactFiberOffscreenComponent);
local l_invariant_0 = require(l_Parent_0.Shared).invariant;
local l_enableProfilerTimer_0 = require(l_Parent_0.Shared).ReactFeatureFlags.enableProfilerTimer;
local v17 = require(script.Parent.ReactFiberFlags);
local l_NoFlags_0 = v17.NoFlags;
local l_Placement_0 = v17.Placement;
local l_StaticMask_0 = v17.StaticMask;
local l_ConcurrentRoot_0 = v9.ConcurrentRoot;
local l_BlockingRoot_0 = v9.BlockingRoot;
local l_IndeterminateComponent_0 = v10.IndeterminateComponent;
local l_ClassComponent_0 = v10.ClassComponent;
local l_HostRoot_0 = v10.HostRoot;
local l_HostComponent_0 = v10.HostComponent;
local l_HostText_0 = v10.HostText;
local l_HostPortal_0 = v10.HostPortal;
local l_ForwardRef_0 = v10.ForwardRef;
local l_Fragment_0 = v10.Fragment;
local l_Mode_0 = v10.Mode;
local l_ContextProvider_0 = v10.ContextProvider;
local l_ContextConsumer_0 = v10.ContextConsumer;
local l_Profiler_0 = v10.Profiler;
local l_SuspenseComponent_0 = v10.SuspenseComponent;
local l_SuspenseListComponent_0 = v10.SuspenseListComponent;
local l_DehydratedFragment_0 = v10.DehydratedFragment;
local l_FunctionComponent_0 = v10.FunctionComponent;
local l_MemoComponent_0 = v10.MemoComponent;
local l_SimpleMemoComponent_0 = v10.SimpleMemoComponent;
local l_LazyComponent_0 = v10.LazyComponent;
local l_FundamentalComponent_0 = v10.FundamentalComponent;
local l_ScopeComponent_0 = v10.ScopeComponent;
local l_OffscreenComponent_0 = v10.OffscreenComponent;
local l_LegacyHiddenComponent_0 = v10.LegacyHiddenComponent;
local l_getComponentName_0 = require(l_Parent_0.Shared).getComponentName;
local l_isDevToolsPresent_0 = require(script.Parent["ReactFiberDevToolsHook.new"]).isDevToolsPresent;
local v48 = require(script.Parent["ReactFiberHotReloading.new"]);
local l_resolveClassForHotReloading_0 = v48.resolveClassForHotReloading;
local l_resolveFunctionForHotReloading_0 = v48.resolveFunctionForHotReloading;
local l_resolveForwardRefForHotReloading_0 = v48.resolveForwardRefForHotReloading;
local l_NoLanes_0 = v12.NoLanes;
local l_NoMode_0 = v11.NoMode;
local l_ConcurrentMode_0 = v11.ConcurrentMode;
local l_DebugTracingMode_0 = v11.DebugTracingMode;
local l_ProfileMode_0 = v11.ProfileMode;
local l_StrictMode_0 = v11.StrictMode;
local l_BlockingMode_0 = v11.BlockingMode;
local l_ReactSymbols_0 = require(l_Parent_0.Shared).ReactSymbols;
local l_REACT_FORWARD_REF_TYPE_0 = l_ReactSymbols_0.REACT_FORWARD_REF_TYPE;
local l_REACT_FRAGMENT_TYPE_0 = l_ReactSymbols_0.REACT_FRAGMENT_TYPE;
local l_REACT_ELEMENT_TYPE_0 = l_ReactSymbols_0.REACT_ELEMENT_TYPE;
local l_REACT_DEBUG_TRACING_MODE_TYPE_0 = l_ReactSymbols_0.REACT_DEBUG_TRACING_MODE_TYPE;
local l_REACT_STRICT_MODE_TYPE_0 = l_ReactSymbols_0.REACT_STRICT_MODE_TYPE;
local l_REACT_PROFILER_TYPE_0 = l_ReactSymbols_0.REACT_PROFILER_TYPE;
local l_REACT_PROVIDER_TYPE_0 = l_ReactSymbols_0.REACT_PROVIDER_TYPE;
local l_REACT_CONTEXT_TYPE_0 = l_ReactSymbols_0.REACT_CONTEXT_TYPE;
local l_REACT_SUSPENSE_TYPE_0 = l_ReactSymbols_0.REACT_SUSPENSE_TYPE;
local l_REACT_SUSPENSE_LIST_TYPE_0 = l_ReactSymbols_0.REACT_SUSPENSE_LIST_TYPE;
local l_REACT_MEMO_TYPE_0 = l_ReactSymbols_0.REACT_MEMO_TYPE;
local l_REACT_LAZY_TYPE_0 = l_ReactSymbols_0.REACT_LAZY_TYPE;
local l_REACT_OFFSCREEN_TYPE_0 = l_ReactSymbols_0.REACT_OFFSCREEN_TYPE;
local l_REACT_LEGACY_HIDDEN_TYPE_0 = l_ReactSymbols_0.REACT_LEGACY_HIDDEN_TYPE;
local v74 = nil;
local v75 = nil;
local v76 = nil;
local v77 = nil;
local v78 = nil;
local v79 = nil;
local v80 = nil;
local v81 = nil;
local v82 = 1;
local function v92(v83, v84, v85, v86, v87, v88, v89, v90)
    local v91 = {
        tag = v83,
        key = v85,
        elementType = v87,
        type = v88,
        stateNode = v89,
        index = 1,
        pendingProps = v84,
        mode = v86,
        flags = l_NoFlags_0,
        subtreeFlags = l_NoFlags_0,
        lanes = v90 or l_NoLanes_0,
        childLanes = l_NoLanes_0
    };
    if l_enableProfilerTimer_0 then
        v91.actualDuration = 0;
        v91.actualStartTime = -1;
        v91.selfBaseDuration = 0;
        v91.treeBaseDuration = 0;
    end;
    if l___DEV___0 then
        v91._debugID = v82;
        v82 = v82 + 1;
        v91._debugSource = nil;
        v91._debugOwner = nil;
        v91._debugNeedsRemount = false;
        v91._debugHookTypes = nil;
    end;
    return v91;
end;
_shouldConstruct = function(v93)
    local v94 = false;
    if type(v93) ~= "function" then
        v94 = not not v93.isReactComponent;
    end;
    return v94;
end;
local function v96(v95)
    return type(v95) == "function";
end;
local function v100(v97)
    local v98 = typeof(v97);
    if v98 == "function" then
        return l_FunctionComponent_0;
    else
        if v98 == "table" then
            if not v97.isReactComponent then
                local v99 = v97["$$typeof"];
                if v99 == l_REACT_FORWARD_REF_TYPE_0 then
                    return l_ForwardRef_0;
                elseif v99 == l_REACT_MEMO_TYPE_0 then
                    return l_MemoComponent_0;
                end;
            else
                return l_ClassComponent_0;
            end;
        end;
        return l_IndeterminateComponent_0;
    end;
end;
local function v105(v101, v102)
    local l_alternate_0 = v101.alternate;
    if l_alternate_0 == nil then
        l_alternate_0 = v92(v101.tag, v102, v101.key, v101.mode, v101.elementType, v101.type, v101.stateNode);
        if l___DEV___0 then
            l_alternate_0._debugID = v101._debugID;
            l_alternate_0._debugSource = v101._debugSource;
            l_alternate_0._debugOwner = v101._debugOwner;
            l_alternate_0._debugHookTypes = v101._debugHookTypes;
        end;
        l_alternate_0.alternate = v101;
        v101.alternate = l_alternate_0;
    else
        l_alternate_0.pendingProps = v102;
        l_alternate_0.type = v101.type;
        l_alternate_0.flags = l_NoFlags_0;
        l_alternate_0.subtreeFlags = l_NoFlags_0;
        l_alternate_0.deletions = nil;
        if l_enableProfilerTimer_0 then
            l_alternate_0.actualDuration = 0;
            l_alternate_0.actualStartTime = -1;
        end;
    end;
    l_alternate_0.flags = bit32.band(v101.flags, l_StaticMask_0);
    l_alternate_0.childLanes = v101.childLanes;
    l_alternate_0.lanes = v101.lanes;
    l_alternate_0.child = v101.child;
    l_alternate_0.memoizedProps = v101.memoizedProps;
    l_alternate_0.memoizedState = v101.memoizedState;
    l_alternate_0.updateQueue = v101.updateQueue;
    local l_dependencies_0 = v101.dependencies;
    if l_dependencies_0 == nil then
        l_alternate_0.dependencies = nil;
    else
        l_alternate_0.dependencies = {
            lanes = l_dependencies_0.lanes,
            firstContext = l_dependencies_0.firstContext
        };
    end;
    l_alternate_0.sibling = v101.sibling;
    l_alternate_0.index = v101.index;
    l_alternate_0.ref = v101.ref;
    if l_enableProfilerTimer_0 then
        l_alternate_0.selfBaseDuration = v101.selfBaseDuration;
        l_alternate_0.treeBaseDuration = v101.treeBaseDuration;
    end;
    if l___DEV___0 then
        l_alternate_0._debugNeedsRemount = v101._debugNeedsRemount;
        if not (l_alternate_0.tag ~= l_IndeterminateComponent_0 and l_alternate_0.tag ~= l_FunctionComponent_0) or l_alternate_0.tag == l_SimpleMemoComponent_0 then
            l_alternate_0.type = l_resolveFunctionForHotReloading_0(v101.type);
            return l_alternate_0;
        elseif l_alternate_0.tag == l_ClassComponent_0 then
            l_alternate_0.type = l_resolveClassForHotReloading_0(v101.type);
            return l_alternate_0;
        elseif l_alternate_0.tag == l_ForwardRef_0 then
            l_alternate_0.type = l_resolveForwardRefForHotReloading_0(v101.type);
        end;
    end;
    return l_alternate_0;
end;
local function v110(v106, v107)
    v106.flags = bit32.band(v106.flags, (bit32.bor(l_StaticMask_0, l_Placement_0)));
    local l_alternate_1 = v106.alternate;
    if l_alternate_1 == nil then
        v106.childLanes = l_NoLanes_0;
        v106.lanes = v107;
        v106.child = nil;
        v106.subtreeFlags = l_NoFlags_0;
        v106.memoizedProps = nil;
        v106.memoizedState = nil;
        v106.updateQueue = nil;
        v106.dependencies = nil;
        v106.stateNode = nil;
        if l_enableProfilerTimer_0 then
            v106.selfBaseDuration = 0;
            v106.treeBaseDuration = 0;
            return v106;
        end;
    else
        v106.childLanes = l_alternate_1.childLanes;
        v106.lanes = l_alternate_1.lanes;
        v106.child = l_alternate_1.child;
        v106.subtreeFlags = l_alternate_1.subtreeFlags;
        v106.deletions = nil;
        v106.memoizedProps = l_alternate_1.memoizedProps;
        v106.memoizedState = l_alternate_1.memoizedState;
        v106.updateQueue = l_alternate_1.updateQueue;
        v106.type = l_alternate_1.type;
        local l_dependencies_1 = l_alternate_1.dependencies;
        if l_dependencies_1 == nil then
            v106.dependencies = nil;
        else
            v106.dependencies = {
                lanes = l_dependencies_1.lanes,
                firstContext = l_dependencies_1.firstContext
            };
        end;
        if l_enableProfilerTimer_0 then
            v106.selfBaseDuration = l_alternate_1.selfBaseDuration;
            v106.treeBaseDuration = l_alternate_1.treeBaseDuration;
        end;
    end;
    return v106;
end;
local function v113(v111)
    local v112 = nil;
    v112 = if v111 == l_ConcurrentRoot_0 then bit32.bor(l_ConcurrentMode_0, l_BlockingMode_0, l_StrictMode_0) else if v111 == l_BlockingRoot_0 then bit32.bor(l_BlockingMode_0, l_StrictMode_0) else l_NoMode_0;
    if not (not l_enableProfilerTimer_0 or not l_isDevToolsPresent_0()) then
        v112 = bit32.bor(v112, l_ProfileMode_0);
    end;
    return (v92(l_HostRoot_0, nil, nil, v112));
end;
local function v129(v114, v115, v116, v117, v118, v119)
    local l_l_IndeterminateComponent_0_0 = l_IndeterminateComponent_0;
    local l_v114_0 = v114;
    local v122 = type(v114);
    if v122 == "function" then
        if l___DEV___0 then
            l_v114_0 = l_resolveFunctionForHotReloading_0(l_v114_0);
        end;
    elseif not (v122 == "table") or not v114.isReactComponent then
        if v122 == "string" then
            l_l_IndeterminateComponent_0_0 = l_HostComponent_0;
        elseif v114 == l_REACT_FRAGMENT_TYPE_0 then
            return v76(v116.children, v118, v119, v115);
        elseif v114 == l_REACT_DEBUG_TRACING_MODE_TYPE_0 then
            l_l_IndeterminateComponent_0_0 = l_Mode_0;
            v118 = bit32.bor(v118, l_DebugTracingMode_0);
        elseif v114 == l_REACT_STRICT_MODE_TYPE_0 then
            l_l_IndeterminateComponent_0_0 = l_Mode_0;
            v118 = bit32.bor(v118, l_StrictMode_0);
        elseif v114 == l_REACT_PROFILER_TYPE_0 then
            return v75(v116, v118, v119, v115);
        elseif v114 == l_REACT_SUSPENSE_TYPE_0 then
            return v78(v116, v118, v119, v115);
        elseif v114 == l_REACT_OFFSCREEN_TYPE_0 then
            return v79(v116, v118, v119, v115);
        elseif v114 == l_REACT_LEGACY_HIDDEN_TYPE_0 then
            return v80(v116, v118, v119, v115);
        else
            local v123 = false;
            local v124 = nil;
            if v122 == "table" then
                v124 = v114["$$typeof"];
                if v124 == l_REACT_PROVIDER_TYPE_0 then
                    l_l_IndeterminateComponent_0_0 = l_ContextProvider_0;
                    v123 = true;
                elseif v124 == l_REACT_CONTEXT_TYPE_0 then
                    l_l_IndeterminateComponent_0_0 = l_ContextConsumer_0;
                    v123 = true;
                elseif v124 == l_REACT_FORWARD_REF_TYPE_0 then
                    l_l_IndeterminateComponent_0_0 = l_ForwardRef_0;
                    if l___DEV___0 then
                        l_v114_0 = l_resolveForwardRefForHotReloading_0(l_v114_0);
                    end;
                    v123 = true;
                elseif v124 == l_REACT_MEMO_TYPE_0 then
                    l_l_IndeterminateComponent_0_0 = l_MemoComponent_0;
                    v123 = true;
                elseif v124 == l_REACT_LAZY_TYPE_0 then
                    l_l_IndeterminateComponent_0_0 = l_LazyComponent_0;
                    l_v114_0 = nil;
                    v123 = true;
                end;
            end;
            if not v123 then
                local v125 = "";
                if l___DEV___0 then
                    if not (v114 ~= nil) or v122 == "table" and #l_Object_0.keys(v114) == 0 then
                        v125 = v125 .. " You likely forgot to export your component from the file " .. "it's defined in, or you might have mixed up default and " .. "named imports.";
                    elseif v114 ~= nil and v122 == "table" then
                        v125 = v125 .. "\n" .. l_inspect_0(v114);
                    end;
                    local v126 = nil;
                    if v117 then
                        v126 = l_getComponentName_0(v117.type);
                    end;
                    if v126 ~= nil and v126 ~= "" then
                        v125 = v125 .. "\n\nCheck the render method of `" .. v126 .. "`.";
                    elseif v117 then
                        v125 = v125 .. "\n" .. l_inspect_0(v117);
                    end;
                end;
                local v127 = nil;
                if v114 == nil then
                    v127 = "nil";
                elseif not l_Array_0.isArray(v114) then
                    if v122 == "table" and v124 == l_REACT_ELEMENT_TYPE_0 then
                        v127 = string.format("<%s />", l_getComponentName_0(v114.type) or "Unknown");
                        v125 = " Did you accidentally export a JSX literal or Element instead of a component?";
                    else
                        v127 = v122;
                    end;
                else
                    v127 = "array";
                end;
                l_invariant_0(false, "Element type is invalid: expected a string (for built-in " .. "components) or a class/function (for composite components) " .. "but got: %s.%s", v127, v125);
            end;
        end;
    else
        l_l_IndeterminateComponent_0_0 = l_ClassComponent_0;
        if l___DEV___0 then
            l_v114_0 = l_resolveClassForHotReloading_0(l_v114_0);
        end;
    end;
    local v128 = v92(l_l_IndeterminateComponent_0_0, v116, v115, v118, v114, l_v114_0, nil, v119);
    if l___DEV___0 then
        v128._debugOwner = v117;
    end;
    return v128;
end;
local function v135(v130, v131, v132)
    local v133 = nil;
    if l___DEV___0 then
        v133 = v130._owner;
    end;
    local v134 = v129(v130.type, v130.key, v130.props, v133, v131, v132);
    if l___DEV___0 then
        v134._debugSource = v130._source;
        v134._debugOwner = v130._owner;
    end;
    return v134;
end;
v76 = function(v136, v137, v138, v139)
    return (v92(l_Fragment_0, v136, v139, v137, nil, nil, nil, v138));
end;
v77 = function(v140, v141, v142, v143, v144)
    return (v92(l_FundamentalComponent_0, v141, v144, v142, v140, v140, nil, v143));
end;
v74 = function(v145, v146, v147, v148, v149)
    return (v92(l_ScopeComponent_0, v146, v149, v147, v145, v145, nil, v148));
end;
v75 = function(v150, v151, v152, v153)
    if l___DEV___0 and typeof(v150.id) ~= "string" then
        l_console_0.error("Profiler must specify an \"id\" as a prop");
    end;
    return (v92(l_Profiler_0, v150, v153, bit32.bor(v151, l_ProfileMode_0), l_REACT_PROFILER_TYPE_0, l_REACT_PROFILER_TYPE_0, if not l_enableProfilerTimer_0 then nil else {
        effectDuration = 0,
        passiveEffectDuration = 0
    }, v152));
end;
v78 = function(v154, v155, v156, v157)
    return (v92(l_SuspenseComponent_0, v154, v157, v155, l_REACT_SUSPENSE_TYPE_0, l_REACT_SUSPENSE_TYPE_0, nil, v156));
end;
v81 = function(v158, v159, v160, v161)
    return (v92(l_SuspenseListComponent_0, v158, v161, v159, l_REACT_SUSPENSE_LIST_TYPE_0, if not l___DEV___0 then nil else l_REACT_SUSPENSE_LIST_TYPE_0, nil, v160));
end;
v79 = function(v162, v163, v164, v165)
    return (v92(l_OffscreenComponent_0, v162, v165, v163, l_REACT_OFFSCREEN_TYPE_0, if not l___DEV___0 then nil else l_REACT_OFFSCREEN_TYPE_0, nil, v164));
end;
v80 = function(v166, v167, v168, v169)
    return (v92(l_LegacyHiddenComponent_0, v166, v169, v167, l_REACT_LEGACY_HIDDEN_TYPE_0, if not l___DEV___0 then nil else l_REACT_LEGACY_HIDDEN_TYPE_0, nil, v168));
end;
return {
    isSimpleFunctionComponent = v96,
    resolveLazyComponentTag = v100,
    createWorkInProgress = v105,
    resetWorkInProgress = v110,
    createHostRootFiber = v113,
    createFiberFromTypeAndProps = v129,
    createFiberFromElement = v135,
    createFiberFromFragment = v76,
    createFiberFromFundamental = v77,
    createFiberFromSuspense = v78,
    createFiberFromSuspenseList = v81,
    createFiberFromOffscreen = v79,
    createFiberFromLegacyHidden = v80,
    createFiberFromText = function(v170, v171, v172)
        return (v92(l_HostText_0, v170, nil, v171, nil, nil, nil, v172));
    end,
    createFiberFromHostInstanceForDeletion = function()
        return (v92(l_HostComponent_0, nil, nil, l_NoMode_0, "DELETED", "DELETED"));
    end,
    createFiberFromDehydratedFragment = function(v173)
        return (v92(l_DehydratedFragment_0, nil, nil, l_NoMode_0, nil, nil, v173));
    end,
    createFiberFromPortal = function(v174, v175, v176)
        return (v92(l_HostPortal_0, if v174.children ~= nil then v174.children else {}, v174.key, v175, nil, nil, {
            containerInfo = v174.containerInfo,
            pendingChildren = nil,
            implementation = v174.implementation
        }, v176));
    end,
    assignFiberPropertiesInDEV = function(v177, v178)
        if v177 == nil then
            v177 = v92(l_IndeterminateComponent_0, nil, nil, l_NoMode_0);
        end;
        v177.tag = v178.tag;
        v177.key = v178.key;
        v177.elementType = v178.elementType;
        v177.type = v178.type;
        v177.stateNode = v178.stateNode;
        v177.return_ = v178.return_;
        v177.child = v178.child;
        v177.sibling = v178.sibling;
        v177.index = v178.index;
        v177.ref = v178.ref;
        v177.pendingProps = v178.pendingProps;
        v177.memoizedProps = v178.memoizedProps;
        v177.updateQueue = v178.updateQueue;
        v177.memoizedState = v178.memoizedState;
        v177.dependencies = v178.dependencies;
        v177.mode = v178.mode;
        v177.flags = v178.flags;
        v177.subtreeFlags = v178.subtreeFlags;
        v177.deletions = v178.deletions;
        v177.lanes = v178.lanes;
        v177.childLanes = v178.childLanes;
        v177.alternate = v178.alternate;
        if l_enableProfilerTimer_0 then
            v177.actualDuration = v178.actualDuration;
            v177.actualStartTime = v178.actualStartTime;
            v177.selfBaseDuration = v178.selfBaseDuration;
            v177.treeBaseDuration = v178.treeBaseDuration;
        end;
        v177._debugID = v178._debugID;
        v177._debugSource = v178._debugSource;
        v177._debugOwner = v178._debugOwner;
        v177._debugNeedsRemount = v178._debugNeedsRemount;
        v177._debugHookTypes = v178._debugHookTypes;
        return v177;
    end
};


local function _(v0)
    print("");
    print("");
    print("UNIMPLEMENTED ERROR: " .. tostring(v0));
    error("FIXME (roblox): " .. v0 .. " is unimplemented", 2);
end;
local l_Parent_0 = script.Parent.Parent;
local _ = require(script.Parent.ReactInternalTypes);
local v4 = require(script.Parent.ReactFiberLane);
local l_OffscreenLane_0 = v4.OffscreenLane;
local v6 = require(script.Parent.ReactFiberHostConfig);
local _ = require(script.Parent.ReactFiberOffscreenComponent);
local l_resetWorkInProgressVersions_0 = require(script.Parent["ReactMutableSource.new"]).resetWorkInProgressVersions;
local v9 = require(script.Parent.ReactWorkTags);
local l_IndeterminateComponent_0 = v9.IndeterminateComponent;
local l_FunctionComponent_0 = v9.FunctionComponent;
local l_ClassComponent_0 = v9.ClassComponent;
local l_HostRoot_0 = v9.HostRoot;
local l_HostComponent_0 = v9.HostComponent;
local l_HostText_0 = v9.HostText;
local l_HostPortal_0 = v9.HostPortal;
local l_ContextProvider_0 = v9.ContextProvider;
local l_ContextConsumer_0 = v9.ContextConsumer;
local l_ForwardRef_0 = v9.ForwardRef;
local l_Fragment_0 = v9.Fragment;
local l_Mode_0 = v9.Mode;
local l_Profiler_0 = v9.Profiler;
local l_SuspenseComponent_0 = v9.SuspenseComponent;
local l_SuspenseListComponent_0 = v9.SuspenseListComponent;
local l_MemoComponent_0 = v9.MemoComponent;
local l_SimpleMemoComponent_0 = v9.SimpleMemoComponent;
local l_LazyComponent_0 = v9.LazyComponent;
local l_IncompleteClassComponent_0 = v9.IncompleteClassComponent;
local l_FundamentalComponent_0 = v9.FundamentalComponent;
local l_ScopeComponent_0 = v9.ScopeComponent;
local l_Block_0 = v9.Block;
local l_OffscreenComponent_0 = v9.OffscreenComponent;
local l_LegacyHiddenComponent_0 = v9.LegacyHiddenComponent;
local _ = require(script.Parent["ReactFiberSuspenseComponent.new"]);
local v35 = require(script.Parent.ReactTypeOfMode);
local l_NoMode_0 = v35.NoMode;
local l_ConcurrentMode_0 = v35.ConcurrentMode;
local l_BlockingMode_0 = v35.BlockingMode;
local l_ProfileMode_0 = v35.ProfileMode;
local v40 = require(script.Parent.ReactFiberFlags);
local l_Ref_0 = v40.Ref;
local l_Update_0 = v40.Update;
local l_Callback_0 = v40.Callback;
local l_Passive_0 = v40.Passive;
local l_Deletion_0 = v40.Deletion;
local l_NoFlags_0 = v40.NoFlags;
local l_DidCapture_0 = v40.DidCapture;
local l_Snapshot_0 = v40.Snapshot;
local l_MutationMask_0 = v40.MutationMask;
local l_LayoutMask_0 = v40.LayoutMask;
local l_PassiveMask_0 = v40.PassiveMask;
local l_StaticMask_0 = v40.StaticMask;
local l_PerformedWork_0 = v40.PerformedWork;
local l_invariant_0 = require(l_Parent_0.Shared).invariant;
local l_createInstance_0 = v6.createInstance;
local l_createTextInstance_0 = v6.createTextInstance;
local l_appendInitialChild_0 = v6.appendInitialChild;
local l_finalizeInitialChildren_0 = v6.finalizeInitialChildren;
local l_prepareUpdate_0 = v6.prepareUpdate;
local l_supportsMutation_0 = v6.supportsMutation;
local l_supportsPersistence_0 = v6.supportsPersistence;
local l_createContainerChildSet_0 = v6.createContainerChildSet;
local l_finalizeContainerChildren_0 = v6.finalizeContainerChildren;
local l_preparePortalMount_0 = v6.preparePortalMount;
local v65 = require(script.Parent["ReactFiberHostContext.new"]);
local l_getRootHostContainer_0 = v65.getRootHostContainer;
local l_popHostContext_0 = v65.popHostContext;
local l_getHostContext_0 = v65.getHostContext;
local l_popHostContainer_0 = v65.popHostContainer;
local v70 = require(script.Parent["ReactFiberSuspenseContext.new"]);
local l_popSuspenseContext_0 = v70.popSuspenseContext;
local l_suspenseStackCursor_0 = v70.suspenseStackCursor;
local l_InvisibleParentSuspenseContext_0 = v70.InvisibleParentSuspenseContext;
local l_hasSuspenseContext_0 = v70.hasSuspenseContext;
local v75 = require(script.Parent["ReactFiberContext.new"]);
local l_isContextProvider_0 = v75.isContextProvider;
local l_popContext_0 = v75.popContext;
local l_popTopLevelContextObject_0 = v75.popTopLevelContextObject;
local l_popProvider_0 = require(script.Parent["ReactFiberNewContext.new"]).popProvider;
local v80 = require(script.Parent["ReactFiberHydrationContext.new"]);
local l_prepareToHydrateHostSuspenseInstance_0 = v80.prepareToHydrateHostSuspenseInstance;
local l_popHydrationState_0 = v80.popHydrationState;
local l_resetHydrationState_0 = v80.resetHydrationState;
local l_prepareToHydrateHostInstance_0 = v80.prepareToHydrateHostInstance;
local l_prepareToHydrateHostTextInstance_0 = v80.prepareToHydrateHostTextInstance;
local l_ReactFeatureFlags_0 = require(l_Parent_0.Shared).ReactFeatureFlags;
local l_enableSchedulerTracing_0 = l_ReactFeatureFlags_0.enableSchedulerTracing;
local l_enableSuspenseCallback_0 = l_ReactFeatureFlags_0.enableSuspenseCallback;
local l_enableSuspenseServerRenderer_0 = l_ReactFeatureFlags_0.enableSuspenseServerRenderer;
local l_enableFundamentalAPI_0 = l_ReactFeatureFlags_0.enableFundamentalAPI;
local l_enableProfilerTimer_0 = l_ReactFeatureFlags_0.enableProfilerTimer;
local v92 = require(script.Parent["ReactFiberWorkLoop.new"]);
local l_popRenderLanes_0 = v92.popRenderLanes;
local l_markSpawnedWork_0 = v92.markSpawnedWork;
local l_renderDidSuspend_0 = v92.renderDidSuspend;
local l_renderDidSuspendDelayIfPossible_0 = v92.renderDidSuspendDelayIfPossible;
local l_NoLanes_0 = v4.NoLanes;
local l_includesSomeLane_0 = v4.includesSomeLane;
local l_mergeLanes_0 = v4.mergeLanes;
local l_transferActualDuration_0 = require(script.Parent["ReactProfilerTimer.new"]).transferActualDuration;
local function _(v101)
    v101.flags = bit32.bor(v101.flags, l_Update_0);
end;
local function _(v103)
    v103.flags = bit32.bor(v103.flags, l_Ref_0);
end;
local function v109(v105, v106)
    local v107 = false;
    if v105 ~= nil then
        v107 = v105.child == v106.child;
    end;
    if not v107 then
        local l_child_0 = v106.child;
        while true do
            if l_child_0 ~= nil then
                if bit32.band(l_child_0.flags, l_MutationMask_0) ~= l_NoFlags_0 then
                    return false;
                elseif bit32.band(l_child_0.subtreeFlags, l_MutationMask_0) ~= l_NoFlags_0 then
                    return false;
                else
                    l_child_0 = l_child_0.sibling;
                end;
            else
                return true;
            end;
        end;
    else
        return true;
    end;
end;
local v110 = nil;
local v111 = nil;
local v112 = nil;
local v113 = nil;
if not l_supportsMutation_0 then
    if not l_supportsPersistence_0 then
        v111 = function(_, _)
        end;
    else
        v110 = function(_, _, _, _)
            print("");
            print("");
            print("UNIMPLEMENTED ERROR: " .. tostring("appendAllChildren"));
            error("FIXME (roblox): " .. "appendAllChildren" .. " is unimplemented", 2);
        end;
        local _ = function(_, _, _, _)
            print("");
            print("");
            print("UNIMPLEMENTED ERROR: " .. tostring("appendAllChildrenToContainer"));
            error("FIXME (roblox): " .. "appendAllChildrenToContainer" .. " is unimplemented", 2);
        end;
        v111 = function(v125, v126)
            local l_stateNode_0 = v126.stateNode;
            if not v109(v125, v126) then
                local l_containerInfo_0 = l_stateNode_0.containerInfo;
                local v129 = l_createContainerChildSet_0(l_containerInfo_0);
                print("");
                print("");
                print("UNIMPLEMENTED ERROR: " .. tostring("appendAllChildrenToContainer"));
                error("FIXME (roblox): " .. "appendAllChildrenToContainer" .. " is unimplemented", 2);
                l_stateNode_0.pendingChildren = v129;
                v126.flags = bit32.bor(v126.flags, l_Update_0);
                l_finalizeContainerChildren_0(l_containerInfo_0, v129);
                return ;
            else
                return ;
            end;
        end;
    end;
else
    v110 = function(v130, v131, _, _)
        local l_child_1 = v131.child;
        while true do
            if l_child_1 ~= nil then
                if not (l_child_1.tag ~= l_HostComponent_0) or l_child_1.tag == l_HostText_0 then
                    l_appendInitialChild_0(v130, l_child_1.stateNode);
                elseif l_enableFundamentalAPI_0 and l_child_1.tag == l_FundamentalComponent_0 then
                    l_appendInitialChild_0(v130, l_child_1.stateNode.instance);
                elseif not (l_child_1.tag == l_HostPortal_0) and l_child_1.child ~= nil then
                    l_child_1.child.return_ = l_child_1;
                    l_child_1 = l_child_1.child;
                    continue;
                end;
                if l_child_1 == v131 then
                    return ;
                else
                    while true do
                        if l_child_1.sibling == nil then
                            if not (l_child_1.return_ ~= nil) or l_child_1.return_ == v131 then
                                return ;
                            else
                                l_child_1 = l_child_1.return_;
                            end;
                        else
                            l_child_1.sibling.return_ = l_child_1.return_;
                            l_child_1 = l_child_1.sibling;
                            break;
                        end;
                    end;
                end;
            else
                return ;
            end;
        end;
    end;
    v111 = function(_, _)
    end;
    v112 = function(v137, v138, v139, v140, v141)
        local l_memoizedProps_0 = v137.memoizedProps;
        if l_memoizedProps_0 == v140 then
            return ;
        else
            local v143 = l_prepareUpdate_0(v138.stateNode, v139, l_memoizedProps_0, v140, v141, (l_getHostContext_0()));
            v138.updateQueue = v143;
            if v143 then
                v138.flags = bit32.bor(v138.flags, l_Update_0);
            end;
            return ;
        end;
    end;
    v113 = function(_, v145, v146, v147)
        if v146 ~= v147 then
            v145.flags = bit32.bor(v145.flags, l_Update_0);
        end;
    end;
end;
local function v159(v148)
    local v149 = false;
    if v148.alternate ~= nil then
        v149 = v148.alternate.child == v148.child;
    end;
    local l_l_NoLanes_0_0 = l_NoLanes_0;
    local l_l_NoFlags_0_0 = l_NoFlags_0;
    if v149 then
        if l_enableProfilerTimer_0 and bit32.band(v148.mode, l_ProfileMode_0) ~= l_NoMode_0 then
            local l_selfBaseDuration_0 = v148.selfBaseDuration;
            local l_child_2 = v148.child;
            while l_child_2 ~= nil do
                l_l_NoLanes_0_0 = l_mergeLanes_0(l_l_NoLanes_0_0, l_mergeLanes_0(l_child_2.lanes, l_child_2.childLanes));
                l_l_NoFlags_0_0 = bit32.bor(bit32.bor(l_l_NoFlags_0_0, (bit32.band(l_child_2.subtreeFlags, l_StaticMask_0))), (bit32.band(l_child_2.flags, l_StaticMask_0)));
                l_selfBaseDuration_0 = l_selfBaseDuration_0 + l_child_2.treeBaseDuration;
                l_child_2 = l_child_2.sibling;
            end;
            v148.treeBaseDuration = l_selfBaseDuration_0;
        else
            local l_child_3 = v148.child;
            while l_child_3 ~= nil do
                l_l_NoLanes_0_0 = bit32.bor(l_l_NoLanes_0_0, (bit32.bor(l_child_3.lanes, l_child_3.childLanes)));
                l_l_NoFlags_0_0 = bit32.bor(bit32.bor(l_l_NoFlags_0_0, (bit32.band(l_child_3.subtreeFlags, l_StaticMask_0))), (bit32.band(l_child_3.flags, l_StaticMask_0)));
                l_child_3.return_ = v148;
                l_child_3 = l_child_3.sibling;
            end;
        end;
        v148.subtreeFlags = bit32.bor(v148.subtreeFlags, l_l_NoFlags_0_0);
    else
        if l_enableProfilerTimer_0 and bit32.band(v148.mode, l_ProfileMode_0) ~= l_NoMode_0 then
            local l_actualDuration_0 = v148.actualDuration;
            local l_selfBaseDuration_1 = v148.selfBaseDuration;
            local l_child_4 = v148.child;
            while l_child_4 ~= nil do
                l_l_NoLanes_0_0 = l_mergeLanes_0(l_l_NoLanes_0_0, l_mergeLanes_0(l_child_4.lanes, l_child_4.childLanes));
                l_l_NoFlags_0_0 = bit32.bor(bit32.bor(l_l_NoFlags_0_0, l_child_4.subtreeFlags), l_child_4.flags);
                l_actualDuration_0 = l_actualDuration_0 + l_child_4.actualDuration;
                l_selfBaseDuration_1 = l_selfBaseDuration_1 + l_child_4.treeBaseDuration;
                l_child_4 = l_child_4.sibling;
            end;
            v148.actualDuration = l_actualDuration_0;
            v148.treeBaseDuration = l_selfBaseDuration_1;
        else
            local l_child_5 = v148.child;
            while l_child_5 ~= nil do
                l_l_NoLanes_0_0 = bit32.bor(l_l_NoLanes_0_0, (bit32.bor(l_child_5.lanes, l_child_5.childLanes)));
                l_l_NoFlags_0_0 = bit32.bor(bit32.bor(l_l_NoFlags_0_0, l_child_5.subtreeFlags), l_child_5.flags);
                l_child_5.return_ = v148;
                l_child_5 = l_child_5.sibling;
            end;
        end;
        v148.subtreeFlags = bit32.bor(v148.subtreeFlags, l_l_NoFlags_0_0);
    end;
    v148.childLanes = l_l_NoLanes_0_0;
    return v149;
end;
return {
    completeWork = function(v160, v161, v162)
        local l_pendingProps_0 = v161.pendingProps;
        if not (((((((v161.tag ~= l_IndeterminateComponent_0 and v161.tag ~= l_LazyComponent_0) and v161.tag ~= l_SimpleMemoComponent_0) and v161.tag ~= l_FunctionComponent_0) and v161.tag ~= l_ForwardRef_0) and v161.tag ~= l_Fragment_0) and v161.tag ~= l_Mode_0) and v161.tag ~= l_ContextConsumer_0) or v161.tag == l_MemoComponent_0 then
            v159(v161);
            return nil;
        elseif v161.tag == l_ClassComponent_0 then
            if l_isContextProvider_0(v161.type) then
                l_popContext_0(v161);
            end;
            v159(v161);
            return nil;
        elseif v161.tag == l_HostRoot_0 then
            l_popHostContainer_0(v161);
            l_popTopLevelContextObject_0(v161);
            l_resetWorkInProgressVersions_0();
            local l_stateNode_1 = v161.stateNode;
            if l_stateNode_1.pendingContext then
                l_stateNode_1.context = l_stateNode_1.pendingContext;
                l_stateNode_1.pendingContext = nil;
            end;
            if not (v160 ~= nil) or v160.child == nil then
                if not l_popHydrationState_0(v161) then
                    if not l_stateNode_1.hydrate then
                        v161.flags = bit32.bor(v161.flags, l_Snapshot_0);
                    end;
                else
                    v161.flags = bit32.bor(v161.flags, l_Update_0);
                end;
            end;
            v111(v160, v161);
            v159(v161);
            return nil;
        elseif v161.tag == l_HostComponent_0 then
            l_popHostContext_0(v161);
            local v165 = l_getRootHostContainer_0();
            local l_type_0 = v161.type;
            if v160 ~= nil and v161.stateNode ~= nil then
                v112(v160, v161, l_type_0, l_pendingProps_0, v165);
                if v160.ref ~= v161.ref then
                    v161.flags = bit32.bor(v161.flags, l_Ref_0);
                end;
            elseif l_pendingProps_0 then
                local v167 = l_getHostContext_0();
                if not l_popHydrationState_0(v161) then
                    local v168 = l_createInstance_0(l_type_0, l_pendingProps_0, v165, v167, v161);
                    v110(v168, v161, false, false);
                    v161.stateNode = v168;
                    if l_finalizeInitialChildren_0(v168, l_type_0, l_pendingProps_0, v165, v167) then
                        v161.flags = bit32.bor(v161.flags, l_Update_0);
                    end;
                elseif l_prepareToHydrateHostInstance_0(v161, v165, v167) then
                    v161.flags = bit32.bor(v161.flags, l_Update_0);
                end;
                if v161.ref ~= nil then
                    v161.flags = bit32.bor(v161.flags, l_Ref_0);
                end;
            else
                l_invariant_0(v161.stateNode ~= nil, "We must have new props for new mounts. This error is likely " .. "caused by a bug in React. Please file an issue.");
                v159(v161);
                return nil;
            end;
            v159(v161);
            return nil;
        elseif v161.tag == l_HostText_0 then
            if v160 and v161.stateNode ~= nil then
                v113(v160, v161, v160.memoizedProps, l_pendingProps_0);
            else
                if typeof(l_pendingProps_0) ~= "string" then
                    l_invariant_0(v161.stateNode ~= nil, "We must have new props for new mounts. This error is likely " .. "caused by a bug in React. Please file an issue.");
                end;
                local v169 = l_getRootHostContainer_0();
                local v170 = l_getHostContext_0();
                if not l_popHydrationState_0(v161) then
                    v161.stateNode = l_createTextInstance_0(l_pendingProps_0, v169, v170, v161);
                elseif l_prepareToHydrateHostTextInstance_0(v161) then
                    v161.flags = bit32.bor(v161.flags, l_Update_0);
                end;
            end;
            v159(v161);
            return nil;
        elseif v161.tag == l_Profiler_0 then
            if not v159(v161) then
                local l_l_Update_0_0 = l_Update_0;
                local l_l_Callback_0_0 = l_Callback_0;
                local l_l_Passive_0_0 = l_Passive_0;
                local l_subtreeFlags_0 = v161.subtreeFlags;
                local l_flags_0 = v161.flags;
                local l_l_flags_0_0 = l_flags_0;
                if not (bit32.band(l_flags_0, l_PerformedWork_0) == l_NoFlags_0) or bit32.band(l_subtreeFlags_0, l_PerformedWork_0) ~= l_NoFlags_0 then
                    l_l_flags_0_0 = bit32.bor(l_l_flags_0_0, l_l_Update_0_0);
                end;
                if not (bit32.band(l_flags_0, (bit32.bor(l_LayoutMask_0, l_Deletion_0))) == l_NoFlags_0) or bit32.band(l_subtreeFlags_0, (bit32.bor(l_LayoutMask_0, l_Deletion_0))) ~= l_NoFlags_0 then
                    l_l_flags_0_0 = bit32.bor(l_l_flags_0_0, l_l_Callback_0_0);
                end;
                if not (bit32.band(l_flags_0, l_PassiveMask_0) == l_NoFlags_0) or bit32.band(l_subtreeFlags_0, l_PassiveMask_0) ~= l_NoFlags_0 then
                    l_l_flags_0_0 = bit32.bor(l_l_flags_0_0, l_l_Passive_0_0);
                end;
                v161.flags = l_l_flags_0_0;
            end;
            return nil;
        elseif v161.tag == l_SuspenseComponent_0 then
            l_popSuspenseContext_0(v161);
            local l_memoizedState_0 = v161.memoizedState;
            if (l_enableSuspenseServerRenderer_0 and l_memoizedState_0 ~= nil) and l_memoizedState_0.dehydrated ~= nil then
                if v160 == nil then
                    l_invariant_0(l_popHydrationState_0(v161), "A dehydrated suspense component was completed without a hydrated node. " .. "This is probably a bug in React.");
                    l_prepareToHydrateHostSuspenseInstance_0(v161);
                    if l_enableSchedulerTracing_0 then
                        l_markSpawnedWork_0(l_OffscreenLane_0);
                    end;
                    v159(v161);
                    if not (not (l_enableProfilerTimer_0 and bit32.band(v161.mode, l_ProfileMode_0) ~= l_NoMode_0) or not (l_memoizedState_0 ~= nil)) then
                        local l_child_6 = v161.child;
                        if l_child_6 ~= nil then
                            v161.treeBaseDuration = l_child_6.treeBaseDuration;
                        end;
                    end;
                    return nil;
                else
                    l_resetHydrationState_0();
                    if bit32.band(v161.flags, l_DidCapture_0) == l_NoFlags_0 then
                        v161.memoizedState = nil;
                    end;
                    v161.flags = bit32.bor(v161.flags, l_Update_0);
                    v159(v161);
                    if not (not (l_enableProfilerTimer_0 and bit32.band(v161.mode, l_ProfileMode_0) ~= l_NoMode_0) or not (l_memoizedState_0 ~= nil)) then
                        local l_child_7 = v161.child;
                        if l_child_7 ~= nil then
                            v161.treeBaseDuration = v161.treeBaseDuration - l_child_7.treeBaseDuration;
                        end;
                    end;
                    return nil;
                end;
            elseif bit32.band(v161.flags, l_DidCapture_0) ~= l_NoFlags_0 then
                v161.lanes = v162;
                if l_enableProfilerTimer_0 and bit32.band(v161.mode, l_ProfileMode_0) ~= l_NoMode_0 then
                    l_transferActualDuration_0(v161);
                end;
                return v161;
            else
                local v180 = l_memoizedState_0 ~= nil;
                local v181 = false;
                if v160 == nil then
                    if v161.memoizedProps.fallback ~= nil then
                        l_popHydrationState_0(v161);
                    end;
                else
                    v181 = v160.memoizedState ~= nil;
                end;
                if not (not v180 or v181) and bit32.band(v161.mode, l_BlockingMode_0) ~= l_NoMode_0 then
                    local v182 = false;
                    if v160 == nil then
                        v182 = v161.memoizedProps.unstable_avoidThisFallback ~= true;
                    end;
                    if not v182 and not l_hasSuspenseContext_0(l_suspenseStackCursor_0.current, l_InvisibleParentSuspenseContext_0) then
                        l_renderDidSuspendDelayIfPossible_0();
                    else
                        l_renderDidSuspend_0();
                    end;
                end;
                if not (not l_supportsPersistence_0 or not v180) then
                    v161.flags = bit32.bor(v161.flags, l_Update_0);
                end;
                if not (not l_supportsMutation_0 or not v180 and not v181) then
                    v161.flags = bit32.bor(v161.flags, l_Update_0);
                end;
                if (l_enableSuspenseCallback_0 and v161.updateQueue ~= nil) and v161.memoizedProps.suspenseCallback ~= nil then
                    v161.flags = bit32.bor(v161.flags, l_Update_0);
                end;
                v159(v161);
                if not (not (l_enableProfilerTimer_0 and bit32.band(v161.mode, l_ProfileMode_0) ~= l_NoMode_0) or not v180) then
                    local l_child_8 = v161.child;
                    if l_child_8 ~= nil then
                        v161.treeBaseDuration = v161.treeBaseDuration - l_child_8.treeBaseDuration;
                    end;
                end;
                return nil;
            end;
        elseif v161.tag == l_HostPortal_0 then
            l_popHostContainer_0(v161);
            v111(v160, v161);
            if v160 == nil then
                l_preparePortalMount_0(v161.stateNode.containerInfo);
            end;
            v159(v161);
            return nil;
        elseif v161.tag == l_ContextProvider_0 then
            l_popProvider_0(v161);
            v159(v161);
            return nil;
        elseif v161.tag == l_IncompleteClassComponent_0 then
            if l_isContextProvider_0(v161.type) then
                l_popContext_0(v161);
            end;
            v159(v161);
            return nil;
        else
            if v161.tag == l_SuspenseListComponent_0 then
                print("");
                print("");
                print("UNIMPLEMENTED ERROR: " .. tostring("SuspenseListComponent"));
                error("FIXME (roblox): " .. "SuspenseListComponent" .. " is unimplemented", 2);
            elseif v161.tag == l_FundamentalComponent_0 then
                print("");
                print("");
                print("UNIMPLEMENTED ERROR: " .. tostring("FundamentalComponent"));
                error("FIXME (roblox): " .. "FundamentalComponent" .. " is unimplemented", 2);
            elseif v161.tag == l_ScopeComponent_0 then
                print("");
                print("");
                print("UNIMPLEMENTED ERROR: " .. tostring("ScopeComponent"));
                error("FIXME (roblox): " .. "ScopeComponent" .. " is unimplemented", 2);
            elseif v161.tag == l_Block_0 then
                print("");
                print("");
                print("UNIMPLEMENTED ERROR: " .. tostring("Block"));
                error("FIXME (roblox): " .. "Block" .. " is unimplemented", 2);
            elseif not (v161.tag ~= l_OffscreenComponent_0) or v161.tag == l_LegacyHiddenComponent_0 then
                l_popRenderLanes_0(v161);
                local v184 = v161.memoizedState ~= nil;
                if (v160 ~= nil and (v160.memoizedState ~= nil) ~= v184) and l_pendingProps_0.mode ~= "unstable-defer-without-hiding" then
                    v161.flags = bit32.bor(v161.flags, l_Update_0);
                end;
                if (not v184 or l_includesSomeLane_0(v92.subtreeRenderLanes, l_OffscreenLane_0)) or bit32.band(v161.mode, l_ConcurrentMode_0) == l_NoMode_0 then
                    v159(v161);
                end;
                return nil;
            end;
            l_invariant_0(false, "Unknown unit of work tag (%s). This error is likely caused by a bug in " .. "React. Please file an issue.", (tostring(v161.tag)));
            return nil;
        end;
    end
};


local l_Parent_0 = script.Parent.Parent;
local _ = require(l_Parent_0.LuauPolyfill);
local _ = require(script.Parent.ReactInternalTypes);
local v3 = require(script.Parent.ReactWorkTags);
local l_HostComponent_0 = v3.HostComponent;
local l_LazyComponent_0 = v3.LazyComponent;
local l_SuspenseComponent_0 = v3.SuspenseComponent;
local l_SuspenseListComponent_0 = v3.SuspenseListComponent;
local l_FunctionComponent_0 = v3.FunctionComponent;
local l_IndeterminateComponent_0 = v3.IndeterminateComponent;
local l_ForwardRef_0 = v3.ForwardRef;
local l_SimpleMemoComponent_0 = v3.SimpleMemoComponent;
local l_ClassComponent_0 = v3.ClassComponent;
local l_ReactComponentStackFrame_0 = require(l_Parent_0.Shared).ReactComponentStackFrame;
local l_describeBuiltInComponentFrame_0 = l_ReactComponentStackFrame_0.describeBuiltInComponentFrame;
local l_describeFunctionComponentFrame_0 = l_ReactComponentStackFrame_0.describeFunctionComponentFrame;
local l_describeClassComponentFrame_0 = l_ReactComponentStackFrame_0.describeClassComponentFrame;
local function v21(v17)
    local v18 = nil;
    if _G.__DEV__ then
        local l__debugOwner_0 = v17._debugOwner;
        if l__debugOwner_0 then
            v18 = l__debugOwner_0.type;
        end;
    end;
    local v20 = nil;
    if _G.__DEV__ then
        v20 = v17._debugSource;
    end;
    if v17.tag == l_HostComponent_0 then
        return l_describeBuiltInComponentFrame_0(v17.type, v20, v18);
    elseif v17.tag == l_LazyComponent_0 then
        return l_describeBuiltInComponentFrame_0("Lazy", v20, v18);
    elseif v17.tag == l_SuspenseComponent_0 then
        return l_describeBuiltInComponentFrame_0("Suspense", v20, v18);
    elseif v17.tag == l_SuspenseListComponent_0 then
        return l_describeBuiltInComponentFrame_0("SuspenseList", v20, v18);
    elseif not (v17.tag ~= l_FunctionComponent_0 and v17.tag ~= l_IndeterminateComponent_0) or v17.tag == l_SimpleMemoComponent_0 then
        return l_describeFunctionComponentFrame_0(v17.type, v20, v18);
    elseif v17.tag == l_ForwardRef_0 then
        return l_describeFunctionComponentFrame_0(v17.type.render, v20, v18);
    elseif v17.tag == l_ClassComponent_0 then
        return l_describeClassComponentFrame_0(v17.type, v20, v18);
    else
        return "";
    end;
end;
return {
    getStackByFiberInDevAndProd = function(v22)
        local l_status_0, l_result_0 = pcall(function()
            local v23 = "";
            local l_v22_0 = v22;
            while true do
                v23 = v23 .. v21(l_v22_0);
                l_v22_0 = l_v22_0.return_;
                if not (l_v22_0 ~= nil) then
                    break;
                end;
            end;
            return v23;
        end);
        if l_status_0 then
            return l_result_0;
        elseif (not (typeof(l_result_0) == "table") or not l_result_0.message) or not l_result_0.stack then
            return "\nError generating stack: " .. tostring(l_result_0);
        else
            return "\nError generating stack: " .. l_result_0.message .. "\n" .. tostring(l_result_0.stack);
        end;
    end
};


local l___DEV___0 = _G.__DEV__;
local l___DISABLE_ALL_WARNINGS_EXCEPT_PROP_VALIDATION___0 = _G.__DISABLE_ALL_WARNINGS_EXCEPT_PROP_VALIDATION__;
local l_Parent_0 = script.Parent.Parent;
local v3 = require(l_Parent_0.LuauPolyfill);
local l_Object_0 = v3.Object;
local l_Error_0 = v3.Error;
local l_console_0 = require(l_Parent_0.Shared).console;
local _ = require(script.Parent.ReactInternalTypes);
local v8 = require(script.Parent["ReactFiberStack.new"]);
local l_isFiberMounted_0 = require(script.Parent.ReactFiberTreeReflection).isFiberMounted;
local l_disableLegacyContext_0 = require(l_Parent_0.Shared).ReactFeatureFlags.disableLegacyContext;
local v11 = require(script.Parent.ReactWorkTags);
local l_ClassComponent_0 = v11.ClassComponent;
local l_HostRoot_0 = v11.HostRoot;
local l_getComponentName_0 = require(l_Parent_0.Shared).getComponentName;
local l_checkPropTypes_0 = require(l_Parent_0.Shared).checkPropTypes;
local l_createCursor_0 = v8.createCursor;
local l_push_0 = v8.push;
local l_pop_0 = v8.pop;
local v19 = nil;
if l___DEV___0 then
    v19 = {};
end;
local v20 = {};
if l___DEV___0 then
    l_Object_0.freeze(v20);
end;
local v21 = l_createCursor_0(v20);
local v22 = l_createCursor_0(false);
local l_v20_0 = v20;
local v24 = nil;
local function v28(_, v26, v27)
    if not v27 or not v24(v26) then
        return v21.current;
    else
        return l_v20_0;
    end;
end;
local function v33(v29, v30, v31)
    local l_stateNode_0 = v29.stateNode;
    l_stateNode_0.__reactInternalMemoizedUnmaskedChildContext = v30;
    l_stateNode_0.__reactInternalMemoizedMaskedChildContext = v31;
end;
local function v43(v34, v35)
    local l_type_0 = v34.type;
    if type(l_type_0) == "function" then
        return v35;
    else
        local l_contextTypes_0 = l_type_0.contextTypes;
        if l_contextTypes_0 then
            local l_stateNode_1 = v34.stateNode;
            if l_stateNode_1 and l_stateNode_1.__reactInternalMemoizedUnmaskedChildContext == v35 then
                return l_stateNode_1.__reactInternalMemoizedMaskedChildContext;
            else
                local v39 = {};
                for v40, _ in l_contextTypes_0, nil, nil do
                    v39[v40] = v35[v40];
                end;
                if not (not l___DEV___0 and not l___DISABLE_ALL_WARNINGS_EXCEPT_PROP_VALIDATION___0) then
                    l_checkPropTypes_0(l_contextTypes_0, nil, v39, "context", l_getComponentName_0(l_type_0) or "Unknown");
                end;
                if l_stateNode_1 then
                    local l_stateNode_2 = v34.stateNode;
                    l_stateNode_2.__reactInternalMemoizedUnmaskedChildContext = v35;
                    l_stateNode_2.__reactInternalMemoizedMaskedChildContext = v39;
                end;
                return v39;
            end;
        else
            return v20;
        end;
    end;
end;
local function v44()
    if not l_disableLegacyContext_0 then
        return v22.current;
    else
        return false;
    end;
end;
v24 = function(v45)
    if type(v45) == "function" then
        return false;
    else
        return v45.childContextTypes ~= nil;
    end;
end;
local function v47(v46)
    l_pop_0(v22, v46);
    l_pop_0(v21, v46);
end;
local function v49(v48)
    l_pop_0(v22, v48);
    l_pop_0(v21, v48);
end;
local function v53(v50, v51, v52)
    if v21.current ~= v20 then
        error(l_Error_0.new("Unexpected context found on stack. " .. "This error is likely caused by a bug in React. Please file an issue."));
    end;
    l_push_0(v21, v51, v50);
    l_push_0(v22, v52, v50);
end;
local function v63(v54, v55, v56)
    local l_stateNode_3 = v54.stateNode;
    local l_childContextTypes_0 = v55.childContextTypes;
    if not (l_stateNode_3.getChildContext ~= nil) or type(l_stateNode_3.getChildContext) ~= "function" then
        if l___DEV___0 then
            local v59 = l_getComponentName_0(v55) or "Unknown";
            if not v19[v59] then
                v19[v59] = true;
                l_console_0.error("%s.childContextTypes is specified but there is no getChildContext() method " .. "on the instance. You can either define getChildContext() on %s or remove " .. "childContextTypes from it.", v59, v59);
            end;
        end;
        return v56;
    else
        local v60 = l_stateNode_3:getChildContext();
        for v61, _ in v60, nil, nil do
            if l_childContextTypes_0[v61] == nil then
                error(l_Error_0.new(string.format("%s.getChildContext(): key \"%s\" is not defined in childContextTypes.", l_getComponentName_0(v55) or "Unknown", v61)));
            end;
        end;
        if not (not l___DEV___0 and not l___DISABLE_ALL_WARNINGS_EXCEPT_PROP_VALIDATION___0) then
            l_checkPropTypes_0(l_childContextTypes_0, nil, v60, "child context", l_getComponentName_0(v55) or "Unknown");
        end;
        return l_Object_0.assign({}, v56, v60);
    end;
end;
return {
    emptyContextObject = v20,
    getUnmaskedContext = v28,
    cacheContext = v33,
    getMaskedContext = v43,
    hasContextChanged = v44,
    popContext = v47,
    popTopLevelContextObject = v49,
    pushTopLevelContextObject = v53,
    processChildContext = v63,
    isContextProvider = v24,
    pushContextProvider = function(v64)
        local l_stateNode_4 = v64.stateNode;
        local v66 = not not l_stateNode_4 and l_stateNode_4.__reactInternalMemoizedMergedChildContext or v20;
        l_v20_0 = v21.current;
        l_push_0(v21, v66, v64);
        l_push_0(v22, v22.current, v64);
        return true;
    end,
    invalidateContextProvider = function(v67, v68, v69)
        local l_stateNode_5 = v67.stateNode;
        if not l_stateNode_5 then
            error(l_Error_0.new("Expected to have an instance by this point. " .. "This error is likely caused by a bug in React. Please file an issue."));
        end;
        if not v69 then
            l_pop_0(v22, v67);
            l_push_0(v22, v69, v67);
            return ;
        else
            local v71 = v63(v67, v68, l_v20_0);
            l_stateNode_5.__reactInternalMemoizedMergedChildContext = v71;
            l_pop_0(v22, v67);
            l_pop_0(v21, v67);
            l_push_0(v21, v71, v67);
            l_push_0(v22, v69, v67);
            return ;
        end;
    end,
    findCurrentUnmaskedContext = function(v72)
        if not (v72.tag == l_ClassComponent_0 and l_isFiberMounted_0(v72)) then
            error(l_Error_0.new("Expected subtree parent to be a mounted class component. " .. "This error is likely caused by a bug in React. Please file an issue."));
        end;
        local l_v72_0 = v72;
        while true do
            if l_v72_0.tag == l_HostRoot_0 then
                return l_v72_0.stateNode.context;
            elseif l_v72_0.tag == l_ClassComponent_0 and l_v72_0.type.childContextTypes ~= nil then
                return l_v72_0.stateNode.__reactInternalMemoizedMergedChildContext;
            else
                l_v72_0 = l_v72_0.return_;
                if not (l_v72_0 ~= nil) then
                    error(l_Error_0.new("Found unexpected detached subtree parent. " .. "This error is likely caused by a bug in React. Please file an issue."));
                    return ;
                end;
            end;
        end;
    end
};


local l_Parent_0 = script.Parent.Parent;
local l_console_0 = require(l_Parent_0.Shared).console;
local _ = require(l_Parent_0.LuauPolyfill);
local v3 = {};
local function _(v4)
    if typeof(v4) == "function" then
        return true;
    else
        if typeof(v4) == "table" then
            local v5 = getmetatable(v4);
            if not v5 or not rawget(v5, "__call") then
                if v4._isMockFunction then
                    return true;
                end;
            else
                return true;
            end;
        end;
        return false;
    end;
end;
local l_enableProfilerTimer_0 = require(l_Parent_0.Shared).ReactFeatureFlags.enableProfilerTimer;
local _ = require(script.Parent.ReactInternalTypes);
local _ = require(l_Parent_0.Shared);
local l_DidCapture_0 = require(script.Parent.ReactFiberFlags).DidCapture;
local v11 = nil;
local v12 = nil;
local v13 = false;
v3.isDevToolsPresent = function()
    return _G.__REACT_DEVTOOLS_GLOBAL_HOOK__ ~= nil;
end;
v3.injectInternals = function(v14)
    if _G.__REACT_DEVTOOLS_GLOBAL_HOOK__ == nil then
        return false;
    else
        local l___REACT_DEVTOOLS_GLOBAL_HOOK___0 = _G.__REACT_DEVTOOLS_GLOBAL_HOOK__;
        if not l___REACT_DEVTOOLS_GLOBAL_HOOK___0.isDisabled then
            if l___REACT_DEVTOOLS_GLOBAL_HOOK___0.supportsFiber then
                local l_status_0, l_result_0 = pcall(function()
                    v11 = l___REACT_DEVTOOLS_GLOBAL_HOOK___0.inject(v14);
                    v12 = l___REACT_DEVTOOLS_GLOBAL_HOOK___0;
                end);
                if not (l_status_0 or not _G.__DEV__) then
                    l_console_0.error("React instrumentation encountered an error: %s.", l_result_0);
                end;
                return true;
            else
                if _G.__DEV__ then
                    l_console_0.error("The installed version of React DevTools is too old and will not work " .. "with the current version of React. Please update React DevTools. " .. "https://reactjs.org/link/react-devtools");
                end;
                return true;
            end;
        else
            return true;
        end;
    end;
end;
v3.onScheduleRoot = function(v18, v19)
    if not (not _G.__DEV__ or not v12) then
        local l_onScheduleFiberRoot_0 = v12.onScheduleFiberRoot;
        local v21;
        if typeof(l_onScheduleFiberRoot_0) == "function" then
            v21 = true;
        else
            if typeof(l_onScheduleFiberRoot_0) == "table" then
                local v22 = getmetatable(l_onScheduleFiberRoot_0);
                if not v22 or not rawget(v22, "__call") then
                    if l_onScheduleFiberRoot_0._isMockFunction then
                        v21 = true;
                        goto label0 --[[  true, true  ]];
                    end;
                else
                    v21 = true;
                    goto label0 --[[  true, true  ]];
                end;
            end;
            v21 = false;
        end;
        ::label0::;
        if v21 then
            v21, l_onScheduleFiberRoot_0 = pcall(v12.onScheduleFiberRoot, v11, v18, v19);
            if not ((v21 or not _G.__DEV__) or v13) then
                v13 = true;
                l_console_0.error("React instrumentation encountered an error: %s", l_onScheduleFiberRoot_0);
            end;
        end;
    end;
end;
v3.onCommitRoot = function(v23, v24)
    if v12 then
        local l_onCommitFiberRoot_0 = v12.onCommitFiberRoot;
        local v26;
        if typeof(l_onCommitFiberRoot_0) == "function" then
            v26 = true;
        else
            if typeof(l_onCommitFiberRoot_0) == "table" then
                local v27 = getmetatable(l_onCommitFiberRoot_0);
                if not v27 or not rawget(v27, "__call") then
                    if l_onCommitFiberRoot_0._isMockFunction then
                        v26 = true;
                        goto label1 --[[  true, true  ]];
                    end;
                else
                    v26 = true;
                    goto label1 --[[  true, true  ]];
                end;
            end;
            v26 = false;
        end;
        ::label1::;
        if v26 then
            v26, l_onCommitFiberRoot_0 = pcall(function()
                local v28 = bit32.band(v23.current.flags, l_DidCapture_0) == l_DidCapture_0;
                if not l_enableProfilerTimer_0 then
                    v12.onCommitFiberRoot(v11, v23, nil, v28);
                    return ;
                else
                    v12.onCommitFiberRoot(v11, v23, v24, v28);
                    return ;
                end;
            end);
            if not ((v26 or not _G.__DEV__) or v13) then
                v13 = true;
                l_console_0.error("React instrumentation encountered an error: %s", l_onCommitFiberRoot_0);
            end;
        end;
    end;
end;
v3.onCommitUnmount = function(v29)
    if v12 then
        local l_onCommitFiberUnmount_0 = v12.onCommitFiberUnmount;
        local v31;
        if typeof(l_onCommitFiberUnmount_0) == "function" then
            v31 = true;
        else
            if typeof(l_onCommitFiberUnmount_0) == "table" then
                local v32 = getmetatable(l_onCommitFiberUnmount_0);
                if not v32 or not rawget(v32, "__call") then
                    if l_onCommitFiberUnmount_0._isMockFunction then
                        v31 = true;
                        goto label2 --[[  true, true  ]];
                    end;
                else
                    v31 = true;
                    goto label2 --[[  true, true  ]];
                end;
            end;
            v31 = false;
        end;
        ::label2::;
        if v31 then
            v31, l_onCommitFiberUnmount_0 = pcall(v12.onCommitFiberUnmount, v11, v29);
            if not ((v31 or not _G.__DEV__) or v13) then
                v13 = true;
                l_console_0.error("React instrumentation encountered an error: %s", l_onCommitFiberUnmount_0);
            end;
        end;
    end;
end;
return v3;


return {
    showErrorDialog = function(_, _)
        return true;
    end
};


local l_Parent_0 = script.Parent.Parent;
local v1 = require(l_Parent_0.LuauPolyfill);
local l_inspect_0 = v1.util.inspect;
local l_setTimeout_0 = v1.setTimeout;
local v4 = require(l_Parent_0.Shared);
local l_console_0 = v4.console;
local l_errorToString_0 = v4.errorToString;
local _ = require(script.Parent.ReactInternalTypes);
local _ = require(script.Parent.ReactCapturedValue);
local l_showErrorDialog_0 = require(script.Parent.ReactFiberErrorDialog).showErrorDialog;
local l_ClassComponent_0 = require(script.Parent.ReactWorkTags).ClassComponent;
local l_getComponentName_0 = require(l_Parent_0.Shared).getComponentName;
return {
    logCapturedError = function(v12, v13)
        local l_status_0, l_result_0 = pcall(function()
            if l_showErrorDialog_0(v12, v13) == false then
                return nil;
            else
                local l_value_0 = v13.value;
                if not _G.__DEV__ then
                    l_console_0.error(l_inspect_0(l_value_0));
                else
                    local l_source_0 = v13.source;
                    local v16 = v13.stack or "";
                    if not (not (l_value_0 ~= nil) or not l_value_0._suppressLogging) then
                        if v12.tag == l_ClassComponent_0 then
                            return ;
                        else
                            l_console_0.error(l_value_0);
                        end;
                    end;
                    local v17 = nil;
                    v17 = if l_source_0 ~= nil then l_getComponentName_0(l_source_0.type) else nil;
                    local v18 = nil;
                    v18 = not v17 and "The above error occurred in one of your React components:" or "The above error occurred in the <" .. tostring(v17) .. "> component:";
                    local _ = nil;
                    local v20 = l_getComponentName_0(v12.type);
                    l_console_0.error(v18 .. "\n" .. v16 .. "\n\n" .. if not v20 then "Consider adding an error boundary to your tree to customize error handling behavior.\n" .. "Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries." else "React will try to recreate this component tree from scratch " .. "using the error boundary you provided, " .. v20 .. ".");
                end;
                return nil;
            end;
        end);
        if not l_status_0 then
            warn("failed to error with error: " .. l_inspect_0(l_result_0));
            l_setTimeout_0(function()
                error(l_errorToString_0(l_result_0));
            end);
        end;
    end
};


return {
    NoFlags = 0,
    PerformedWork = 1,
    Placement = 2,
    Update = 4,
    PlacementAndUpdate = 6,
    Deletion = 8,
    ContentReset = 16,
    Callback = 32,
    DidCapture = 64,
    Ref = 128,
    Snapshot = 256,
    Passive = 512,
    PassiveUnmountPendingDev = 8192,
    Hydrating = 1024,
    HydratingAndUpdate = 1028,
    LifecycleEffectMask = 932,
    HostEffectMask = 2047,
    Incomplete = 2048,
    ShouldCapture = 4096,
    ForceUpdateForLegacySuspense = 16384,
    PassiveStatic = 32768,
    BeforeMutationMask = 778,
    MutationMask = 1182,
    LayoutMask = 164,
    PassiveMask = 520,
    StaticMask = 32768,
    MountLayoutDev = 65536,
    MountPassiveDev = 131072
};