local Y=(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 n=Y("\066\108\101\110\100")local o=Y("\077\097\105\100")return function(Y)local C=o.new()local b=n.State({"\097","\098";"\099"})C:GiveTask(b)C:GiveTask(((n.New("\084\101\120\116\076\097\098\101\108"))({Parent=Y;[n.Children]={(n.New("\084\101\120\116\066\117\116\116\111\110"))({Text="\065\100\100";AutoButtonColor=true;Size=UDim2.new(0,100,0,20);[n.OnEvent("\065\099\116\105\118\097\116\101\100")]=function()local Y={}for n,o in pairs(b.Value)do table.insert(Y,o)end table.insert(Y,string.char(string.byte("\097")+#Y))b.Value=Y end});n.ComputedPairs(b,function(Y,o)print("\067\111\109\112\117\116\101",o)return(n.New("\084\101\120\116\076\097\098\101\108"))({Text=tostring(o);Size=UDim2.new(0,20,0,20)})end);(n.New("\085\073\076\105\115\116\076\097\121\111\117\116"))({Padding=UDim.new(0,5)})}})):Subscribe())return function()C:DoCleaning()end end
--[[
	@class Blend.story
]]

local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).load(script)

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

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

	local state = Blend.State({ "a", "b", "c" })
	maid:GiveTask(state)

	maid:GiveTask((Blend.New("TextLabel")({
		Parent = target,

		[Blend.Children] = {
			Blend.New("TextButton")({
				Text = "Add",
				AutoButtonColor = true,
				Size = UDim2.new(0, 100, 0, 20),
				[Blend.OnEvent("Activated")] = function()
					local newState = {}
					for _, item in pairs(state.Value) do
						table.insert(newState, item)
					end
					table.insert(newState, string.char(string.byte("a") + #newState))
					state.Value = newState
				end,
			}),
			Blend.ComputedPairs(state, function(_index, value)
				print("Compute", value)
				return Blend.New("TextLabel")({
					Text = tostring(value),
					Size = UDim2.new(0, 20, 0, 20),
				})
			end),

			Blend.New("UIListLayout")({
				Padding = UDim.new(0, 5),
			}),
		},
	})):Subscribe())

	return function()
		maid:DoCleaning()
	end
end
