local j=(require(((game:GetService("\083\101\114\118\101\114\083\099\114\105\112\116\083\101\114\118\105\099\101")):FindFirstChild("\076\111\097\100\101\114\085\116\105\108\115",true)).Parent)).load(script)local E=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local T=j("\066\108\101\110\100")local e=j("\067\111\109\109\097\110\100\080\097\108\101\116\116\101")local q=j("\077\097\105\100")return function(j)local p=q.new();((T.New("\084\101\120\116\076\097\098\101\108"))({Size=UDim2.fromOffset(100,50),Parent=j})):Subscribe(function(T)local q=e.new(T)p:GiveTask(q)p:GiveTask(q.EscapePressed:Connect(function()q:Hide()task.delay(.5,function()q:Show()end)end))p:GiveTask((q:Render({Parent=j})):Subscribe())q:Show()p:GiveTask(E.InputBegan:Connect(function(j)if j.KeyCode==Enum.KeyCode.V then q:Toggle()end end))end)return function()p:DoCleaning()end end
local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).load(script)

local UserInputService = game:GetService("UserInputService")

local Blend = require("Blend")
local CommandPalette = require("CommandPalette")
local Maid = require("Maid")

return function(target)
	local maid = Maid.new()

	Blend.New "TextLabel" {
		Size = UDim2.fromOffset(100, 50);
		Parent = target;
	}:Subscribe(function(targetFrame)
		local cmdPalette = CommandPalette.new(targetFrame)
		maid:GiveTask(cmdPalette)

		maid:GiveTask(cmdPalette.EscapePressed:Connect(function()
			cmdPalette:Hide()

			task.delay(0.5, function()
				cmdPalette:Show()
			end)
		end))

		maid:GiveTask(cmdPalette:Render({
			Parent = target;
		}):Subscribe())

		cmdPalette:Show()

		maid:GiveTask(UserInputService.InputBegan:Connect(function(input)
			if input.KeyCode == Enum.KeyCode.V then
				cmdPalette:Toggle()
			end
		end))
	end)

	return function()
		maid:DoCleaning()
	end
end