-- Decompiled with the Synapse X Luau decompiler.


client = nil;
service = nil;
cPcall = nil;
Pcall = nil;
Routine = nil;
GetEnv = nil;
origEnv = nil;
logError = nil;
return function()
	local u1 = nil;
	local l__client__2 = client;
	local u3 = nil;
	local u4 = nil;
	local u5 = nil;
	local u6 = nil;
	local u7 = nil;
	local u8 = nil;
	getfenv().client = nil;
	getfenv().service = nil;
	getfenv().script = nil;
	local v1 = {
		Init = function()
			u1 = l__client__2.UI;
			u3 = l__client__2.Anti;
			u4 = l__client__2.Core;
			u5 = l__client__2.Variables;
			u6 = l__client__2.Functions;
			u7 = l__client__2.Process;
			u8 = l__client__2.Remote;
		end, 
		RateLimits = {
			Remote = 0.02, 
			Command = 0.1, 
			Chat = 0.1, 
			RateLog = 10
		}
	};
	local l__type__9 = type;
	local l__service__10 = service;
	local l__unpack__11 = unpack;
	function v1.Remote(p1, p2, ...)
		local v2 = { ... };
		u8.Received = u8.Received + 1;
		if l__type__9(p2) == "string" then
			if p2 == l__client__2.DepsName .. "GIVE_KEY" then
				if not u4.Key then
					u4.Key = v2[1];
					l__client__2.Finish_Loading();
					return;
				end;
			else
				if u8.UnEncrypted[p2] then
					return { u8.UnEncrypted[p2](...) };
				end;
				if u4.Key then
					local v3 = u8.Decrypt(p2, u4.Key);
					local v4 = p1.Mode == "Get" and u8.Returnables[v3] or u8.Commands[v3];
					if v4 then
						local v5 = { l__service__10.TrackTask("Remote: " .. v3, v4, v2) };
						if not v5[1] then
							logError(v5[2]);
							return;
						else
							return { l__unpack__11(v5, 2) };
						end;
					end;
				end;
			end;
		end;
	end;
	function v1.LogService(p3, p4)

	end;
	local l__string__12 = string;
	local l__script__13 = script;
	local l__tostring__14 = tostring;
	function v1.ErrorMessage(p5, p6, p7)
		if p5 and p5 ~= "nil" and p5 ~= "" and (not (not l__string__12.find(p5, "::Adonis::")) or not (not l__string__12.find(p5, l__script__13.Name)) or p7 == l__script__13) then
			logError(l__tostring__14(p5) .. " - " .. l__tostring__14(p6));
		end;
		if (p7 == nil or not p6 or p6 == "") and p6 and not l__string__12.find(p6, "CoreGui.RobloxGui") then

		end;
	end;
	function v1.Chat(p8)
		if not l__service__10.Player or l__service__10.Player.Parent ~= l__service__10.Players then
			u8.Fire("ProcessChat", p8);
		end;
	end;
	function v1.CharacterAdded()
		u1.GetHolder();
		l__service__10.Events.CharacterAdded:fire();
	end;
	local l__next__15 = next;
	local l__pcall__16 = pcall;
	function v1.CharacterRemoving()
		if u5.UIKeepAlive then
			for v6, v7 in l__next__15, l__client__2.GUIs do
				if v7.Class == "ScreenGui" or v7.Class == "GuiMain" or v7.Class == "TextLabel" then
					if v7.CanKeepAlive and (not v7.Object:IsA("ScreenGui") or v7.Object.ResetOnSpawn) then
						v7.KeepAlive = true;
						v7.KeepParent = v7.Object.Parent;
						v7.Object.Parent = nil;
					elseif not v7.CanKeepAlive then
						l__pcall__16(v7.Destroy, v7);
					end;
				end;
			end;
		end;
		if u5.GuiViewFolder then
			u5.GuiViewFolder:Destroy();
			u5.GuiViewFolder = nil;
		end;
		if u5.ChatEnabled then
			l__service__10.StarterGui:SetCoreGuiEnabled("Chat", true);
		end;
		if u5.PlayerListEnabled then
			l__service__10.StarterGui:SetCoreGuiEnabled("PlayerList", true);
		end;
		local v8 = l__service__10.UserInputService:GetFocusedTextBox();
		if v8 then
			v8:ReleaseFocus();
		end;
		l__service__10.Events.CharacterRemoving:fire();
	end;
	l__client__2.Process = v1;
end;
