gazetta 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,617 @@
1
+ import{D as Ne,a as N,x as K,b as pa,E as xe,o as Ye,c as R,l as se,G as z,p as de,e as C,s as ie,h as we,t as re,d as T,F as ce,A as Oe,y as X,q as te,H as Yt,I as xr,z as Xt,i as ma,w as ve,J as Ve,K as Wr,L as $r,M as Jt,N as ba,O as ha,P as va,Q as ya,R as xa}from"./vendor-vue-CeoltKL-.js";import{s as Ze,a as ka,b as ne,c as Gr,d as wa,e as zo,f as Ko,g as Ca,P as $a}from"./vendor-primevue-zs1PFA6i.js";import{a as Ba,r as F,R as U,b as za,c as Kt,j as D,d as Sa}from"./vendor-react-CqfEBl6C.js";import{F as Ra,v as Da}from"./vendor-rjsf-Ci-RPpeZ.js";import{u as Ea,i as Ia,a as Pa,b as Aa,B as Oa,E as Ta}from"./vendor-tiptap-yFEgrmP-.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))t(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&t(i)}).observe(document,{childList:!0,subtree:!0});function o(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function t(n){if(n.ep)return;n.ep=!0;const a=o(n);fetch(n.href,a)}})();var Na={transitionDuration:"{transition.duration}"},_a={borderWidth:"0 0 1px 0",borderColor:"{content.border.color}"},La={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}",padding:"1.125rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},Fa={borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.125rem 1.125rem 1.125rem"},Ma={root:Na,panel:_a,header:La,content:Fa},Wa={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},Ga={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},Ha={padding:"{list.padding}",gap:"{list.gap}"},ja={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},Ua={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},Va={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},qa={borderRadius:"{border.radius.sm}"},Ya={padding:"{list.option.padding}"},Xa={light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}},Ja={root:Wa,overlay:Ga,list:Ha,option:ja,optionGroup:Ua,dropdown:Va,chip:qa,emptyMessage:Ya,colorScheme:Xa},Ka={width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},Qa={size:"1rem"},Za={borderColor:"{content.background}",offset:"-0.75rem"},ei={width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},ri={width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"},group:{offset:"-1.5rem"}},oi={root:Ka,icon:Qa,group:Za,lg:ei,xl:ri},ti={borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},ni={size:"0.5rem"},ai={fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},ii={fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},li={fontSize:"1rem",minWidth:"2rem",height:"2rem"},si={light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}},ci={root:ti,dot:ni,sm:ai,lg:ii,xl:li,colorScheme:si},di={borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},ui={transitionDuration:"0.2s",focusRing:{width:"1px",style:"solid",color:"{primary.color}",offset:"2px",shadow:"none"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.5rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.375rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.625rem"},borderRadius:"{border.radius.md}",focusRing:{width:"0",style:"none",color:"transparent",offset:"0",shadow:"none"},transitionDuration:"{transition.duration}"},list:{padding:"0.25rem 0.25rem",gap:"2px",header:{padding:"0.5rem 1rem 0.25rem 1rem"},option:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}"},optionGroup:{padding:"0.5rem 0.75rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.3s"},navigation:{list:{padding:"0.25rem 0.25rem",gap:"2px"},item:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}",gap:"0.5rem"},submenuLabel:{padding:"0.5rem 0.75rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"0.75rem",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.25rem",shadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},navigation:{shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.50}",borderColor:"{surface.300}",hoverBorderColor:"{surface.400}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.800}",borderColor:"{surface.600}",hoverBorderColor:"{surface.500}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}},fi={primitive:di,semantic:ui},gi={borderRadius:"{content.border.radius}"},pi={root:gi},mi={padding:"1rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},bi={color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},hi={color:"{navigation.item.icon.color}"},vi={root:mi,item:bi,separator:hi},yi={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.5rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}",iconOnlyWidth:"2rem"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}",iconOnlyWidth:"3rem"},label:{fontWeight:"500"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},xi={light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"{surface.600}",shadow:"none"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{sky.500}",shadow:"none"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{green.500}",shadow:"none"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{orange.500}",shadow:"none"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{purple.500}",shadow:"none"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{red.500}",shadow:"none"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"{surface.950}",shadow:"none"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"{surface.300}",shadow:"none"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"{sky.400}",shadow:"none"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"{green.400}",shadow:"none"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"{orange.400}",shadow:"none"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"{purple.400}",shadow:"none"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"{red.400}",shadow:"none"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"{surface.0}",shadow:"none"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}},ki={root:yi,colorScheme:xi},wi={background:"{content.background}",borderRadius:"{border.radius.xl}",color:"{content.color}",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},Ci={padding:"1.25rem",gap:"0.5rem"},$i={gap:"0.5rem"},Bi={fontSize:"1.25rem",fontWeight:"500"},zi={color:"{text.muted.color}"},Si={root:wi,body:Ci,caption:$i,title:Bi,subtitle:zi},Ri={transitionDuration:"{transition.duration}"},Di={gap:"0.25rem"},Ei={padding:"1rem",gap:"0.5rem"},Ii={width:"2rem",height:"0.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Pi={light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}},Ai={root:Ri,content:Di,indicatorList:Ei,indicator:Ii,colorScheme:Pi},Oi={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Ti={width:"2.5rem",color:"{form.field.icon.color}"},Ni={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},_i={padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1rem"},Li={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},Fi={color:"{form.field.icon.color}"},Mi={root:Oi,dropdown:Ti,overlay:Ni,list:_i,option:Li,clearIcon:Fi},Wi={borderRadius:"{border.radius.sm}",width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},Gi={size:"0.875rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1rem"}},Hi={root:Wi,icon:Gi},ji={borderRadius:"16px",paddingX:"0.75rem",paddingY:"0.5rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},Ui={width:"2rem",height:"2rem"},Vi={size:"1rem"},qi={size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},Yi={light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}},Xi={root:ji,image:Ui,icon:Vi,removeIcon:qi,colorScheme:Yi},Ji={transitionDuration:"{transition.duration}"},Ki={width:"1.5rem",height:"1.5rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Qi={shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},Zi={light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}},el={root:Ji,preview:Ki,panel:Qi,colorScheme:Zi},rl={size:"2rem",color:"{overlay.modal.color}"},ol={gap:"1rem"},tl={icon:rl,content:ol},nl={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},al={padding:"{overlay.popover.padding}",gap:"1rem"},il={size:"1.5rem",color:"{overlay.popover.color}"},ll={gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"},sl={root:nl,content:al,icon:il,footer:ll},cl={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},dl={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},ul={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},fl={mobileIndent:"1rem"},gl={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},pl={borderColor:"{content.border.color}"},ml={root:cl,list:dl,item:ul,submenu:fl,submenuIcon:gl,separator:pl},bl=`
2
+ li.p-autocomplete-option,
3
+ div.p-cascadeselect-option-content,
4
+ li.p-listbox-option,
5
+ li.p-multiselect-option,
6
+ li.p-select-option,
7
+ li.p-listbox-option,
8
+ div.p-tree-node-content,
9
+ li.p-datatable-filter-constraint,
10
+ .p-datatable .p-datatable-tbody > tr,
11
+ .p-treetable .p-treetable-tbody > tr,
12
+ div.p-menu-item-content,
13
+ div.p-tieredmenu-item-content,
14
+ div.p-contextmenu-item-content,
15
+ div.p-menubar-item-content,
16
+ div.p-megamenu-item-content,
17
+ div.p-panelmenu-header-content,
18
+ div.p-panelmenu-item-content,
19
+ th.p-datatable-header-cell,
20
+ th.p-treetable-header-cell,
21
+ thead.p-datatable-thead > tr > th,
22
+ .p-treetable thead.p-treetable-thead>tr>th {
23
+ transition: none;
24
+ }
25
+ `,hl={transitionDuration:"{transition.duration}"},vl={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},yl={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},xl={fontWeight:"600"},kl={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},wl={borderColor:"{datatable.border.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},Cl={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},$l={fontWeight:"600"},Bl={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},zl={color:"{primary.color}"},Sl={width:"0.5rem"},Rl={width:"1px",color:"{primary.color}"},Dl={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},El={size:"2rem"},Il={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Pl={inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},Al={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},Ol={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},Tl={light:{root:{borderColor:"{content.border.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}},Nl=`
26
+ .p-datatable-mask.p-overlay-mask {
27
+ --px-mask-background: light-dark(rgba(255,255,255,0.5),rgba(0,0,0,0.3));
28
+ }
29
+ `,_l={root:hl,header:vl,headerCell:yl,columnTitle:xl,row:kl,bodyCell:wl,footerCell:Cl,columnFooter:$l,footer:Bl,dropPoint:zl,columnResizer:Sl,resizeIndicator:Rl,sortIcon:Dl,loadingIcon:El,rowToggleButton:Il,filter:Pl,paginatorTop:Al,paginatorBottom:Ol,colorScheme:Tl,css:Nl},Ll={borderColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0"},Fl={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",borderRadius:"0"},Ml={background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"0"},Wl={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.75rem 1rem",borderRadius:"0"},Gl={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},Hl={borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"},jl={root:Ll,header:Fl,content:Ml,footer:Wl,paginatorTop:Gl,paginatorBottom:Hl},Ul={transitionDuration:"{transition.duration}"},Vl={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},ql={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.5rem 0"},Yl={gap:"0.5rem",fontWeight:"500"},Xl={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Jl={color:"{form.field.icon.color}"},Kl={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},Ql={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},Zl={borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},es={margin:"0.5rem 0 0 0"},rs={padding:"0.25rem",fontWeight:"500",color:"{content.color}"},os={hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2rem",height:"2rem",borderRadius:"50%",padding:"0.25rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},ts={margin:"0.5rem 0 0 0"},ns={padding:"0.375rem",borderRadius:"{content.border.radius}"},as={margin:"0.5rem 0 0 0"},is={padding:"0.375rem",borderRadius:"{content.border.radius}"},ls={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}"},ss={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},cs={light:{dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}},ds={root:Ul,panel:Vl,header:ql,title:Yl,dropdown:Xl,inputIcon:Jl,selectMonth:Kl,selectYear:Ql,group:Zl,dayView:es,weekDay:rs,date:os,monthView:ts,month:ns,yearView:as,year:is,buttonbar:ls,timePicker:ss,colorScheme:cs},us={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},fs={padding:"{overlay.modal.padding}",gap:"0.5rem"},gs={fontSize:"1.25rem",fontWeight:"600"},ps={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},ms={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"},bs={root:us,header:fs,title:gs,content:ps,footer:ms},hs={borderColor:"{content.border.color}"},vs={background:"{content.background}",color:"{text.color}"},ys={margin:"1rem 0",padding:"0 1rem",content:{padding:"0 0.5rem"}},xs={margin:"0 1rem",padding:"0.5rem 0",content:{padding:"0.5rem 0"}},ks={root:hs,content:vs,horizontal:ys,vertical:xs},ws={background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.xl}"},Cs={borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},$s={root:ws,item:Cs},Bs={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},zs={padding:"{overlay.modal.padding}"},Ss={fontSize:"1.5rem",fontWeight:"600"},Rs={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},Ds={padding:"{overlay.modal.padding}"},Es={root:Bs,header:zs,title:Ss,content:Rs,footer:Ds},Is={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},Ps={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},As={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},Os={focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},Ts={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},Ns={toolbar:Is,toolbarItem:Ps,overlay:As,overlayOption:Os,content:Ts},_s={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},Ls={background:"{content.background}",hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"transparent",padding:"0.5rem 0.75rem",gap:"0.5rem",fontWeight:"600",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Fs={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},Ms={padding:"0"},Ws={root:_s,legend:Ls,toggleIcon:Fs,content:Ms},Gs={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},Hs={background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"unset",borderWidth:"0",borderRadius:"0",gap:"0.5rem"},js={highlightBorderColor:"{primary.color}",padding:"0 1.125rem 1.125rem 1.125rem",gap:"1rem"},Us={padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},Vs={gap:"0.5rem"},qs={height:"0.25rem"},Ys={gap:"0.5rem"},Xs={root:Gs,header:Hs,content:js,file:Us,fileList:Vs,progressbar:qs,basic:Ys},Js={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},Ks={active:{top:"-1.25rem"}},Qs={input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},Zs={borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}},ec={root:Js,over:Ks,in:Qs,on:Zs},rc={borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},oc={background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0.5rem",prev:{borderRadius:"50%"},next:{borderRadius:"50%"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},tc={size:"1.5rem"},nc={background:"{content.background}",padding:"1rem 0.25rem"},ac={size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},ic={size:"1rem"},lc={background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},sc={gap:"0.5rem",padding:"1rem"},cc={width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},dc={background:"rgba(0, 0, 0, 0.5)"},uc={background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},fc={size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},gc={size:"1.5rem"},pc={light:{thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}},mc={root:rc,navButton:oc,navIcon:tc,thumbnailsContent:nc,thumbnailNavButton:ac,thumbnailNavButtonIcon:ic,caption:lc,indicatorList:sc,indicatorButton:cc,insetIndicatorList:dc,insetIndicatorButton:uc,closeButton:fc,closeButtonIcon:gc,colorScheme:pc},bc={color:"{form.field.icon.color}"},hc={icon:bc},vc={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},yc={paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},xc={root:vc,input:yc},kc={transitionDuration:"{transition.duration}"},wc={icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},Cc={position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"30px",padding:".5rem",gap:"0.5rem"},$c={hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Bc={root:kc,preview:wc,toolbar:Cc,action:$c},zc={size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"unset",hoverBorderColor:"unset",borderWidth:"0",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Sc={handle:zc},Rc={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},Dc={fontWeight:"500"},Ec={size:"1rem"},Ic={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}}},Pc={root:Rc,text:Dc,icon:Ec,colorScheme:Ic},Ac={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},Oc={hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"},Tc={root:Ac,display:Oc},Nc={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},_c={borderRadius:"{border.radius.sm}"},Lc={light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}},Fc={root:Nc,chip:_c,colorScheme:Lc},Mc={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.icon.color}",borderRadius:"{form.field.border.radius}",padding:"0.5rem",minWidth:"2.5rem"},Wc={addon:Mc},Gc={transitionDuration:"{transition.duration}"},Hc={width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},jc={light:{button:{background:"transparent",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.500}",activeColor:"{surface.600}"}},dark:{button:{background:"transparent",hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.300}",activeColor:"{surface.200}"}}},Uc={root:Gc,button:Hc,colorScheme:jc},Vc={gap:"0.5rem"},qc={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}},Yc={root:Vc,input:qc},Xc={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Jc={root:Xc},Kc={transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Qc={background:"{primary.color}"},Zc={background:"{content.border.color}"},ed={color:"{text.muted.color}"},rd={root:Kc,value:Qc,range:Zc,text:ed},od={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},td={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},nd={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},ad={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},id={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},ld={padding:"{list.option.padding}"},sd={light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}},cd={root:od,list:td,option:nd,optionGroup:ad,checkmark:id,emptyMessage:ld,colorScheme:sd},dd={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.5rem 0.75rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},ud={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},fd={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},gd={padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},pd={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},md={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},bd={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},hd={borderColor:"{content.border.color}"},vd={borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},yd={root:dd,baseItem:ud,item:fd,overlay:gd,submenu:pd,submenuLabel:md,submenuIcon:bd,separator:hd,mobileButton:vd},xd={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},kd={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},wd={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},Cd={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},$d={borderColor:"{content.border.color}"},Bd={root:xd,list:kd,item:wd,submenuLabel:Cd,separator:$d},zd={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.5rem 0.75rem",transitionDuration:"{transition.duration}"},Sd={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},Rd={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},Dd={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},Ed={borderColor:"{content.border.color}"},Id={borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Pd={root:zd,baseItem:Sd,item:Rd,submenu:Dd,separator:Ed,mobileButton:Id},Ad={borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},Od={padding:"0.5rem 0.75rem",gap:"0.5rem",sm:{padding:"0.375rem 0.625rem"},lg:{padding:"0.625rem 0.875rem"}},Td={fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},Nd={size:"1.125rem",sm:{size:"1rem"},lg:{size:"1.25rem"}},_d={width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},Ld={size:"1rem",sm:{size:"0.875rem"},lg:{size:"1.125rem"}},Fd={root:{borderWidth:"1px"}},Md={content:{padding:"0"}},Wd={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}},outlined:{color:"{surface.950}",borderColor:"{surface.950}"},simple:{color:"{surface.950}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}},Gd={root:Ad,content:Od,text:Td,icon:Nd,closeButton:_d,closeIcon:Ld,outlined:Fd,simple:Md,colorScheme:Wd},Hd={borderRadius:"{content.border.radius}",gap:"1rem"},jd={background:"{content.border.color}",size:"0.5rem"},Ud={gap:"0.5rem"},Vd={size:"0.5rem"},qd={size:"1rem"},Yd={verticalGap:"0.5rem",horizontalGap:"1rem"},Xd={root:Hd,meters:jd,label:Ud,labelMarker:Vd,labelIcon:qd,labelList:Yd},Jd={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Kd={width:"2.5rem",color:"{form.field.icon.color}"},Qd={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},Zd={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},eu={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},ru={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},ou={color:"{form.field.icon.color}"},tu={borderRadius:"{border.radius.sm}"},nu={padding:"{list.option.padding}"},au={root:Jd,dropdown:Kd,overlay:Qd,list:Zd,option:eu,optionGroup:ru,chip:tu,clearIcon:ou,emptyMessage:nu},iu={gap:"1.125rem"},lu={gap:"0.5rem"},su={root:iu,controls:lu},cu={gutter:"0.75rem",transitionDuration:"{transition.duration}"},du={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"0.75rem 1rem",toggleablePadding:"0.75rem 1rem 1.25rem 1rem",borderRadius:"{content.border.radius}"},uu={background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},fu={color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"},gu={root:cu,node:du,nodeToggleButton:uu,connector:fu},pu={outline:{width:"2px",color:"{content.background}"}},mu={root:pu},bu={padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},hu={background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},vu={color:"{text.muted.color}"},yu={maxWidth:"2.5rem"},xu={root:bu,navButton:hu,currentPageReport:vu,jumpToPageInput:yu},ku={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},wu={background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"{content.border.color}",borderWidth:"0",borderRadius:"0"},Cu={padding:"0.375rem 1.125rem"},$u={fontWeight:"600"},Bu={padding:"0 1.125rem 1.125rem 1.125rem"},zu={padding:"0 1.125rem 1.125rem 1.125rem"},Su={root:ku,header:wu,toggleableHeader:Cu,title:$u,content:Bu,footer:zu},Ru={gap:"0.5rem",transitionDuration:"{transition.duration}"},Du={background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"{content.border.radius}",first:{borderWidth:"1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"1px",bottomBorderRadius:"{content.border.radius}"}},Eu={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},Iu={indent:"1rem"},Pu={color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"},Au={root:Ru,panel:Du,item:Eu,submenu:Iu,submenuIcon:Pu},Ou={background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},Tu={color:"{form.field.icon.color}"},Nu={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},_u={gap:"0.5rem"},Lu={light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}},Fu={meter:Ou,icon:Tu,overlay:Nu,content:_u,colorScheme:Lu},Mu={gap:"1.125rem"},Wu={gap:"0.5rem"},Gu={root:Mu,controls:Wu},Hu={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},ju={padding:"{overlay.popover.padding}"},Uu={root:Hu,content:ju},Vu={background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.25rem"},qu={background:"{primary.color}"},Yu={color:"{primary.contrast.color}",fontSize:"0.75rem",fontWeight:"600"},Xu={root:Vu,value:qu,label:Yu},Ju={light:{root:{colorOne:"{red.500}",colorTwo:"{blue.500}",colorThree:"{green.500}",colorFour:"{yellow.500}"}},dark:{root:{colorOne:"{red.400}",colorTwo:"{blue.400}",colorThree:"{green.400}",colorFour:"{yellow.400}"}}},Ku={colorScheme:Ju},Qu={width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},Zu={size:"0.75rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.5rem"},lg:{size:"1rem"}},ef={root:Qu,icon:Zu},rf={gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},of={size:"1rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"},tf={root:rf,icon:of},nf={light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}},af={colorScheme:nf},lf={transitionDuration:"{transition.duration}"},sf={size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},cf={light:{bar:{background:"{surface.100}"}},dark:{bar:{background:"{surface.800}"}}},df={root:lf,bar:sf,colorScheme:cf},uf={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},ff={width:"2.5rem",color:"{form.field.icon.color}"},gf={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},pf={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},mf={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},bf={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},hf={color:"{form.field.icon.color}"},vf={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},yf={padding:"{list.option.padding}"},xf={root:uf,dropdown:ff,overlay:gf,list:pf,option:mf,optionGroup:bf,clearIcon:hf,checkmark:vf,emptyMessage:yf},kf={borderRadius:"{form.field.border.radius}"},wf={light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}},Cf={root:kf,colorScheme:wf},$f={borderRadius:"{content.border.radius}"},Bf={light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}},zf={root:$f,colorScheme:Bf},Sf={transitionDuration:"{transition.duration}"},Rf={background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},Df={background:"{primary.color}"},Ef={width:"20px",height:"20px",borderRadius:"50%",background:"{content.border.color}",hoverBackground:"{content.border.color}",content:{borderRadius:"50%",hoverBackground:"{content.background}",width:"16px",height:"16px",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},If={light:{handle:{content:{background:"{surface.0}"}}},dark:{handle:{content:{background:"{surface.950}"}}}},Pf={root:Sf,track:Rf,range:Df,handle:Ef,colorScheme:If},Af={gap:"0.5rem",transitionDuration:"{transition.duration}"},Of={root:Af},Tf={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"},Nf={root:Tf},_f={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},Lf={background:"{content.border.color}"},Ff={size:"24px",background:"transparent",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Mf={root:_f,gutter:Lf,handle:Ff},Wf={transitionDuration:"{transition.duration}"},Gf={background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},Hf={padding:"0.5rem",gap:"1rem"},jf={padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},Uf={color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},Vf={background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},qf={padding:"0.875rem 0.5rem 1.125rem 0.5rem"},Yf={background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"},Xf={root:Wf,separator:Gf,step:Hf,stepHeader:jf,stepTitle:Uf,stepNumber:Vf,steppanels:qf,steppanel:Yf},Jf={transitionDuration:"{transition.duration}"},Kf={background:"{content.border.color}"},Qf={borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},Zf={color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},eg={background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},rg={root:Jf,separator:Kf,itemLink:Qf,itemLabel:Zf,itemNumber:eg},og={transitionDuration:"{transition.duration}"},tg={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},ng={background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},ag={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},ig={height:"1px",bottom:"-1px",background:"{primary.color}"},lg={root:og,tablist:tg,item:ng,itemIcon:ag,activeBar:ig},sg={transitionDuration:"{transition.duration}"},cg={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},dg={background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},ug={background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},fg={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},gg={height:"1px",bottom:"-1px",background:"{primary.color}"},pg={light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}},mg={root:sg,tablist:cg,tab:dg,tabpanel:ug,navButton:fg,activeBar:gg,colorScheme:pg},bg={transitionDuration:"{transition.duration}"},hg={background:"{content.background}",borderColor:"{content.border.color}"},vg={borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},yg={background:"{content.background}",color:"{content.color}"},xg={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},kg={light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}},wg={root:bg,tabList:hg,tab:vg,tabPanel:yg,navButton:xg,colorScheme:kg},Cg={fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},$g={size:"0.75rem"},Bg={light:{primary:{background:"{primary.100}",color:"{primary.700}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.100}",color:"{green.700}"},info:{background:"{sky.100}",color:"{sky.700}"},warn:{background:"{orange.100}",color:"{orange.700}"},danger:{background:"{red.100}",color:"{red.700}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"color-mix(in srgb, {primary.500}, transparent 84%)",color:"{primary.300}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.300}"},info:{background:"color-mix(in srgb, {sky.500}, transparent 84%)",color:"{sky.300}"},warn:{background:"color-mix(in srgb, {orange.500}, transparent 84%)",color:"{orange.300}"},danger:{background:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.300}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}},zg={root:Cg,icon:$g,colorScheme:Bg},Sg={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},Rg={gap:"0.25rem"},Dg={margin:"2px 0"},Eg={root:Sg,prompt:Rg,commandResponse:Dg},Ig={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Pg={root:Ig},Ag={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},Og={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},Tg={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},Ng={mobileIndent:"1rem"},_g={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},Lg={borderColor:"{content.border.color}"},Fg={root:Ag,list:Og,item:Tg,submenu:Ng,submenuIcon:_g,separator:Lg},Mg={minHeight:"5rem"},Wg={eventContent:{padding:"1rem 0"}},Gg={eventContent:{padding:"0 1rem"}},Hg={size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{content.border.color}",content:{borderRadius:"50%",size:"0.375rem",background:"{primary.color}",insetShadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},jg={color:"{content.border.color}",size:"2px"},Ug={event:Mg,horizontal:Wg,vertical:Gg,eventMarker:Hg,eventConnector:jg},Vg={width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},qg={size:"1.125rem"},Yg={padding:"{overlay.popover.padding}",gap:"0.5rem"},Xg={gap:"0.5rem"},Jg={fontWeight:"500",fontSize:"1rem"},Kg={fontWeight:"500",fontSize:"0.875rem"},Qg={width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},Zg={size:"1rem"},ep={light:{root:{blur:"1.5px"},info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}}}},dark:{root:{blur:"10px"},info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}}}}},rp={root:Vg,icon:qg,content:Yg,text:Xg,summary:Jg,detail:Kg,closeButton:Qg,closeIcon:Zg,colorScheme:ep},op={padding:"0.25rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.25rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.25rem"}},tp={disabledColor:"{form.field.disabled.color}"},np={padding:"0.25rem 0.75rem",borderRadius:"{content.border.radius}",checkedShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)",sm:{padding:"0.25rem 0.75rem"},lg:{padding:"0.25rem 0.75rem"}},ap={light:{root:{background:"{surface.100}",checkedBackground:"{surface.100}",hoverBackground:"{surface.100}",borderColor:"{surface.100}",color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}",checkedBorderColor:"{surface.100}"},content:{checkedBackground:"{surface.0}"},icon:{color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}"}},dark:{root:{background:"{surface.950}",checkedBackground:"{surface.950}",hoverBackground:"{surface.950}",borderColor:"{surface.950}",color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}",checkedBorderColor:"{surface.950}"},content:{checkedBackground:"{surface.800}"},icon:{color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}"}}},ip={root:op,icon:tp,content:np,colorScheme:ap},lp={width:"2.5rem",height:"1.5rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},sp={borderRadius:"50%",size:"1rem"},cp={light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}},dp={root:lp,handle:sp,colorScheme:cp},up={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"},fp={root:up},gp={maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.5rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},pp={light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}},mp={root:gp,colorScheme:pp},bp={background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},hp={padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},gap:"0.25rem"},vp={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},yp={borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},xp={size:"2rem"},kp={margin:"0 0 0.5rem 0"},wp=`
30
+ .p-tree-mask.p-overlay-mask {
31
+ --px-mask-background: light-dark(rgba(255,255,255,0.5),rgba(0,0,0,0.3));
32
+ }
33
+ `,Cp={root:bp,node:hp,nodeIcon:vp,nodeToggleButton:yp,loadingIcon:xp,filter:kp,css:wp},$p={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Bp={width:"2.5rem",color:"{form.field.icon.color}"},zp={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},Sp={padding:"{list.padding}"},Rp={padding:"{list.option.padding}"},Dp={borderRadius:"{border.radius.sm}"},Ep={color:"{form.field.icon.color}"},Ip={root:$p,dropdown:Bp,overlay:zp,tree:Sp,emptyMessage:Rp,chip:Dp,clearIcon:Ep},Pp={transitionDuration:"{transition.duration}"},Ap={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},Op={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},Tp={fontWeight:"600"},Np={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},_p={borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},Lp={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},Fp={fontWeight:"600"},Mp={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},Wp={width:"0.5rem"},Gp={width:"1px",color:"{primary.color}"},Hp={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},jp={size:"2rem"},Up={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Vp={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},qp={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},Yp={light:{root:{borderColor:"{content.border.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},bodyCell:{selectedBorderColor:"{primary.900}"}}},Xp=`
34
+ .p-treetable-mask.p-overlay-mask {
35
+ --px-mask-background: light-dark(rgba(255,255,255,0.5),rgba(0,0,0,0.3));
36
+ }
37
+ `,Jp={root:Pp,header:Ap,headerCell:Op,columnTitle:Tp,row:Np,bodyCell:_p,footerCell:Lp,columnFooter:Fp,footer:Mp,columnResizer:Wp,resizeIndicator:Gp,sortIcon:Hp,loadingIcon:jp,nodeToggleButton:Up,paginatorTop:Vp,paginatorBottom:qp,colorScheme:Yp,css:Xp},Kp={mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}},Qp={loader:Kp},Zp=Object.defineProperty,em=Object.defineProperties,rm=Object.getOwnPropertyDescriptors,Qo=Object.getOwnPropertySymbols,om=Object.prototype.hasOwnProperty,tm=Object.prototype.propertyIsEnumerable,Zo=(e,r,o)=>r in e?Zp(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,et,nm=(et=((e,r)=>{for(var o in r||(r={}))om.call(r,o)&&Zo(e,o,r[o]);if(Qo)for(var o of Qo(r))tm.call(r,o)&&Zo(e,o,r[o]);return e})({},fi),em(et,rm({components:{accordion:Ma,autocomplete:Ja,avatar:oi,badge:ci,blockui:pi,breadcrumb:vi,button:ki,card:Si,carousel:Ai,cascadeselect:Mi,checkbox:Hi,chip:Xi,colorpicker:el,confirmdialog:tl,confirmpopup:sl,contextmenu:ml,datatable:_l,dataview:jl,datepicker:ds,dialog:bs,divider:ks,dock:$s,drawer:Es,editor:Ns,fieldset:Ws,fileupload:Xs,floatlabel:ec,galleria:mc,iconfield:hc,iftalabel:xc,image:Bc,imagecompare:Sc,inlinemessage:Pc,inplace:Tc,inputchips:Fc,inputgroup:Wc,inputnumber:Uc,inputotp:Yc,inputtext:Jc,knob:rd,listbox:cd,megamenu:yd,menu:Bd,menubar:Pd,message:Gd,metergroup:Xd,multiselect:au,orderlist:su,organizationchart:gu,overlaybadge:mu,paginator:xu,panel:Su,panelmenu:Au,password:Fu,picklist:Gu,popover:Uu,progressbar:Xu,progressspinner:Ku,radiobutton:ef,rating:tf,ripple:af,scrollpanel:df,select:xf,selectbutton:Cf,skeleton:zf,slider:Pf,speeddial:Of,splitbutton:Nf,splitter:Mf,stepper:Xf,steps:rg,tabmenu:lg,tabs:mg,tabview:wg,tag:zg,terminal:Eg,textarea:Pg,tieredmenu:Fg,timeline:Ug,toast:rp,togglebutton:ip,toggleswitch:dp,toolbar:fp,tooltip:mp,tree:Cp,treeselect:Ip,treetable:Jp,virtualscroller:Qp},css:bl})));const am="/admin/".replace(/\/$/,"")+"/api";async function le(e,r){const o=sessionStorage.getItem("gazetta_token"),t={"Content-Type":"application/json"};o&&(t.Authorization=`Bearer ${o}`);const n=await fetch(`${am}${e}`,{...r,headers:{...t,...r==null?void 0:r.headers}});if(!n.ok){const a=await n.json().catch(()=>({error:n.statusText}));throw new Error(a.error??`Request failed: ${n.status}`)}return n.json()}const J={getSite:()=>le("/site"),getPages:()=>le("/pages"),getPage:(e,r)=>le(`/pages/${e}`,r),createPage:e=>le("/pages",{method:"POST",body:JSON.stringify(e)}),deletePage:e=>le(`/pages/${e}`,{method:"DELETE"}),updatePage:(e,r)=>le(`/pages/${e}`,{method:"PUT",body:JSON.stringify(r)}),getFragments:()=>le("/fragments"),getFragment:(e,r)=>le(`/fragments/${e}`,r),createFragment:e=>le("/fragments",{method:"POST",body:JSON.stringify(e)}),deleteFragment:e=>le(`/fragments/${e}`,{method:"DELETE"}),updateFragment:(e,r)=>le(`/fragments/${e}`,{method:"PUT",body:JSON.stringify(r)}),getComponent:e=>le(`/components?path=${encodeURIComponent(e)}`),updateComponent:(e,r)=>le(`/components?path=${encodeURIComponent(e)}`,{method:"PUT",body:JSON.stringify(r)}),createComponent:(e,r,o)=>le("/components",{method:"POST",body:JSON.stringify({parentDir:e,name:r,template:o})}),getTemplates:()=>le("/templates"),getTemplateSchema:e=>le(`/templates/${e}/schema`),getFields:()=>le("/fields"),getTargets:()=>le("/targets"),publish:(e,r)=>le("/publish",{method:"POST",body:JSON.stringify({items:e,targets:r})}),fetchFromTarget:(e,r)=>le("/fetch",{method:"POST",body:JSON.stringify({source:e,items:r})})},_e=Ne("site",()=>{const e=N(null),r=N([]),o=N([]),t=N(!1),n=N(null);let a=null;async function i(){if(!(e.value&&!n.value))return a||l()}async function l(d=5){return a||(a=s(d),a)}async function s(d=5){t.value=!0,n.value=null;for(let f=0;f<=d;f++)try{const[c,u,g]=await Promise.all([J.getSite(),J.getPages(),J.getFragments()]);e.value=c,r.value=u,o.value=g,t.value=!1;return}catch(c){const u=c.message;if(f<d&&(u.includes("502")||u.includes("Failed to fetch")||u.includes("not ready"))){await new Promise(g=>setTimeout(g,1e3));continue}n.value=u}t.value=!1,a=null}return{manifest:e,pages:r,fragments:o,loading:t,error:n,load:l,ensureLoaded:i}}),Hr=Ne("theme",()=>{const e=N(!0);function r(){const n=localStorage.getItem("gazetta_theme");e.value=n?n==="dark":!0,t()}function o(){e.value=!e.value,localStorage.setItem("gazetta_theme",e.value?"dark":"light"),t()}function t(){document.documentElement.classList.toggle("dark",e.value)}return{dark:e,init:r,toggle:o}}),er=Ne("toast",()=>{const e=N(null);function r(t,n){const a=(n==null?void 0:n.type)??"success";e.value={message:t,type:a,link:n==null?void 0:n.link},setTimeout(()=>{e.value=null},(n==null?void 0:n.duration)??3e3)}function o(t,n){const i=(t instanceof Error?t.message:n).replace(/^Request failed: (\d+)$/,"Server error ($1)").replace(/^Failed to fetch$/,"Cannot connect to server");r(i,{type:"error"})}return{current:e,show:r,showError:o}}),Pe=Ne("preview",()=>{const e=N(0),r=N(0);function o(){e.value++}function t(){r.value++}return{version:e,draftVersion:r,invalidate:o,invalidateDraft:t}}),Ge=Ne("selection",()=>{const e=er(),r=N(null),o=N(null);let t=null;const n=K(()=>{var p;return((p=r.value)==null?void 0:p.type)??null}),a=K(()=>{var p;return((p=r.value)==null?void 0:p.name)??null}),i=K(()=>{var p;return((p=r.value)==null?void 0:p.detail)??null}),l=K(()=>_e().pages.filter(p=>!p.route.includes(":"))),s=K(()=>{var p,m;return((p=r.value)==null?void 0:p.type)==="page"?r.value.detail.route:((m=r.value)==null?void 0:m.type)==="fragment"?o.value?o.value.route:`/@${r.value.name}`:null});function d(){const p=l.value;o.value=p.find(m=>m.route==="/")??p[0]??null}function f(p){const m=l.value.find(v=>v.name===p);m&&(o.value=m,Pe().invalidate())}async function c(p){t==null||t.abort(),t=new AbortController;const{signal:m}=t;try{const v=await J.getPage(p,{signal:m});r.value={type:"page",name:p,detail:v},o.value=null,Pe().invalidate()}catch(v){if(v.name==="AbortError")return;e.showError(v,`Failed to load page "${p}"`)}}async function u(p){t==null||t.abort(),t=new AbortController;const{signal:m}=t;try{const v=await J.getFragment(p,{signal:m});r.value={type:"fragment",name:p,detail:v},o.value||d(),Pe().invalidate()}catch(v){if(v.name==="AbortError")return;e.showError(v,`Failed to load fragment "${p}"`)}}async function g(){if(r.value)try{if(r.value.type==="page"){const p=await J.getPage(r.value.name);r.value={type:"page",name:r.value.name,detail:p}}else{const p=await J.getFragment(r.value.name);r.value={type:"fragment",name:r.value.name,detail:p}}}catch(p){e.showError(p,"Failed to reload")}}async function h(p){if(r.value)try{r.value.type==="page"?await J.updatePage(r.value.name,{components:p}):await J.updateFragment(r.value.name,{components:p}),await g(),Pe().invalidate()}catch(m){e.showError(m,"Failed to update components")}}return{selection:r,type:n,name:a,detail:i,previewRoute:s,fragmentHostPage:o,staticPages:l,selectPage:c,selectFragment:u,setFragmentHostPage:f,reload:g,updateComponents:h}});function Xe(e){return JSON.parse(JSON.stringify(e))}const He=Ne("editing",()=>{const e=er(),r=N(null),o=N(null),t=N(null),n=N(!1),a=N(null),i=N(null),l=N(0),s=N(null);let d=null;const f=pa(new Map),c=K(()=>{var b;return((b=r.value)==null?void 0:b.template)??null}),u=K(()=>{var b;return((b=r.value)==null?void 0:b.path)??null}),g=K(()=>{var b;return((b=r.value)==null?void 0:b.schema)??null}),h=K(()=>!o.value||!t.value?!1:JSON.stringify(o.value)!==JSON.stringify(t.value)),p=K(()=>f.size+(h.value?1:0)),m=K(()=>p.value>0),v=K(()=>{const b={};for(const[k,B]of f)b[k]=B.editedContent;return u.value&&o.value&&h.value&&(b[u.value]=o.value),b});function $(b){return f.has(b)}function O(){d&&(clearInterval(d),d=null)}function A(){h.value&&r.value&&o.value&&f.set(r.value.path,{target:r.value,editedContent:Xe(o.value)})}async function _(b){const k=await J.getTemplateSchema(b),{hasEditor:B,editorUrl:w,fieldsBaseUrl:S,...M}=k;return{schema:M,hasEditor:!!B,editorUrl:w,fieldsBaseUrl:S}}async function L(b,k){if(O(),i.value=null,r.value=b,o.value=Xe(k||b.content),t.value=Xe(b.content),n.value=!1,a.value=null,s.value=null,b.hasEditor&&b.editorUrl)try{const B=await import(b.editorUrl);s.value=B.default??B}catch(B){console.warn(`Custom editor for "${b.template}" failed to load:`,B)}l.value++,Pe().invalidateDraft()}async function H(b,k){O(),A();const B=f.get(b);if(B){f.delete(b),await L(B.target,B.editedContent);return}try{const S=(await J.getComponent(b)).content??{},{schema:M,hasEditor:j,editorUrl:G,fieldsBaseUrl:q}=await _(k);await L({template:k,path:b,content:S,schema:M,hasEditor:j,editorUrl:G,fieldsBaseUrl:q,save:Q=>J.updateComponent(b,{content:Q}).then(()=>{})})}catch(w){r.value=null,i.value=`Failed to load "${k}": ${w.message}`,d=setInterval(()=>H(b,k),3e3)}}async function Y(){O(),A();const b=Ge(),k=b.detail,B=b.selection;if(!k||!B)return;const w=k.dir,S=f.get(w);if(S){f.delete(w),await L(S.target,S.editedContent);return}try{const M=k.content??{},{schema:j,hasEditor:G,editorUrl:q,fieldsBaseUrl:Q}=await _(k.template),ue=B.type==="page"?ke=>J.updatePage(B.name,{content:ke}).then(()=>{}):ke=>J.updateFragment(B.name,{content:ke}).then(()=>{});await L({template:k.template,path:w,content:M,schema:j,hasEditor:G,editorUrl:q,fieldsBaseUrl:Q,save:ue})}catch(M){r.value=null,i.value=`Failed to load "${k.template}": ${M.message}`,d=setInterval(()=>Y(),3e3)}}async function ee(b){O(),A();const k=f.get(b);try{const B=await J.getFragment(b),w=B.dir,S=k??f.get(w);if(S){f.delete(S===k?b:w),await L(S.target,S.editedContent);return}const M=B.content??{},{schema:j,hasEditor:G,editorUrl:q,fieldsBaseUrl:Q}=await _(B.template);await L({template:B.template,path:w,content:M,schema:j,hasEditor:G,editorUrl:q,fieldsBaseUrl:Q,save:ue=>J.updateFragment(b,{content:ue}).then(()=>{})})}catch(B){r.value=null,i.value=`Failed to load fragment "${b}": ${B.message}`,d=setInterval(()=>ee(b),3e3)}}function Z(){O(),i.value=null,r.value=null,o.value=null,t.value=null,n.value=!1,a.value=null,f.clear()}const V=b=>{m.value&&(b.preventDefault(),b.returnValue="")};typeof window<"u"&&window.addEventListener("beforeunload",V);function E(b){o.value=b,Pe().invalidateDraft()}function I(b){f.delete(b),Pe().invalidateDraft()}function x(){!r.value||!t.value||(o.value=Xe(t.value),l.value++,Pe().invalidateDraft())}async function y(){if(!(!r.value&&f.size===0)){n.value=!0,a.value=null;try{r.value&&o.value&&(await r.value.save(o.value),t.value=Xe(o.value));for(const[b,k]of f)await k.target.save(k.editedContent);f.clear(),Pe().invalidate(),e.show("Saved")}catch(b){a.value=b.message,e.showError(b,"Failed to save")}finally{n.value=!1}}}return{target:r,content:o,saved:t,saving:n,lastSaveError:a,template:c,path:u,schema:g,dirty:h,loadError:i,mountVersion:l,customEditorMount:s,pendingEdits:f,pendingCount:p,hasPendingEdits:m,allOverrides:v,open:L,openComponent:H,openPageRoot:Y,openFragment:ee,clear:Z,markDirty:E,discard:x,revertStashed:I,save:y,hasPendingEdit:$}}),So=Ne("componentFocus",()=>{const e=N(null),r=N(null),o=N(null),t=N(null);function n(d){e.value=d}function a(d){r.value=d}function i(d){o.value=d}function l(d){t.value=d}function s(){t.value=null}return{highlightGzId:e,previewHoverGzId:r,selectedGzId:o,pendingGzId:t,highlight:n,previewHover:a,select:i,setPending:l,clearPending:s}}),fr=Ne("uiMode",()=>{const e=N("browse");let r="browse";function o(){e.value="edit"}function t(){He().clear();const a=So();a.select(null),a.clearPending(),e.value="browse"}function n(){e.value==="fullscreen"?e.value=r:(r=e.value,e.value="fullscreen")}return{mode:e,enterEdit:o,enterBrowse:t,toggleFullscreen:n}}),im={class:"publish-content"},lm={class:"publish-item"},sm={key:0,class:"publish-empty"},cm={key:1,class:"publish-targets"},dm=["for"],um={key:2,class:"publish-results"},fm={class:"result-target"},gm={key:0,class:"result-detail"},pm={key:1,class:"result-detail"},mm=xe({__name:"PublishDialog",props:{visible:{type:Boolean},itemType:{},itemName:{}},emits:["close"],setup(e,{emit:r}){const o=e,t=r,n=N([]),a=N([]),i=N(!1),l=N(null);Ye(async()=>{try{n.value=await J.getTargets()}catch{n.value=[]}});async function s(){if(a.value.length!==0){i.value=!0,l.value=null;try{const d=`${o.itemType}/${o.itemName}`,f=await J.publish([d],a.value);l.value=f.results}catch(d){l.value=[{target:"(all)",success:!1,error:d.message,copiedFiles:0}]}finally{i.value=!1}}}return(d,f)=>(R(),se(z(Ze),{visible:o.visible,"onUpdate:visible":f[3]||(f[3]=c=>t("close")),modal:"",header:"Publish",style:{width:"28rem"}},{footer:de(()=>[l.value?(R(),se(z(ne),{key:0,label:"Done",onClick:f[1]||(f[1]=c=>t("close"))})):(R(),T(ce,{key:1},[X(z(ne),{label:"Cancel",severity:"secondary",text:"",onClick:f[2]||(f[2]=c=>t("close"))}),X(z(ne),{label:"Publish",icon:"pi pi-cloud-upload",loading:i.value,disabled:a.value.length===0,onClick:s},null,8,["loading","disabled"])],64))]),default:de(()=>[C("div",im,[C("p",lm,[C("i",{class:ie(e.itemType==="pages"?"pi pi-file":"pi pi-share-alt")},null,2),we(" "+re(e.itemName),1)]),n.value.length===0?(R(),T("div",sm," No targets configured in site.yaml ")):l.value?(R(),T("div",um,[(R(!0),T(ce,null,Oe(l.value,c=>(R(),T("div",{key:c.target,class:ie(["publish-result",{success:c.success,error:!c.success}])},[C("i",{class:ie(c.success?"pi pi-check-circle":"pi pi-exclamation-circle")},null,2),C("span",fm,re(c.target),1),c.success?(R(),T("span",gm,re(c.copiedFiles)+" files",1)):(R(),T("span",pm,re(c.error),1))],2))),128))])):(R(),T("div",cm,[f[4]||(f[4]=C("p",{class:"publish-label"},"Select targets:",-1)),(R(!0),T(ce,null,Oe(n.value,c=>(R(),T("div",{key:c,class:"publish-target"},[X(z(ka),{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=u=>a.value=u),inputId:c,value:c},null,8,["modelValue","inputId","value"]),C("label",{for:c},re(c),9,dm)]))),128))]))])]),_:1},8,["visible"]))}}),ze=(e,r)=>{const o=e.__vccOpts||e;for(const[t,n]of r)o[t]=n;return o},bm=ze(mm,[["__scopeId","data-v-878d0536"]]),hm={class:"fetch-content"},vm={key:0,class:"fetch-empty"},ym={key:1,class:"fetch-select"},xm={key:2,class:"fetch-result success"},km={class:"fetch-items"},wm={key:3,class:"fetch-result error"},Cm=xe({__name:"FetchDialog",props:{visible:{type:Boolean}},emits:["close"],setup(e,{emit:r}){const o=e,t=r,n=_e(),a=N([]),i=N(null),l=N(!1),s=N(null),d=N(null);Ye(async()=>{try{a.value=await J.getTargets()}catch{a.value=[]}});async function f(){if(i.value){l.value=!0,s.value=null,d.value=null;try{s.value=await J.fetchFromTarget(i.value),await n.load()}catch(c){d.value=c.message}finally{l.value=!1}}}return(c,u)=>(R(),se(z(Ze),{visible:o.visible,"onUpdate:visible":u[3]||(u[3]=g=>t("close")),modal:"",header:"Fetch from Target",style:{width:"28rem"}},{footer:de(()=>[s.value||d.value?(R(),se(z(ne),{key:0,label:"Done",onClick:u[1]||(u[1]=g=>t("close"))})):(R(),T(ce,{key:1},[X(z(ne),{label:"Cancel",severity:"secondary",text:"",onClick:u[2]||(u[2]=g=>t("close"))}),X(z(ne),{label:"Fetch",icon:"pi pi-cloud-download",loading:l.value,disabled:!i.value,onClick:f},null,8,["loading","disabled"])],64))]),default:de(()=>[C("div",hm,[a.value.length===0?(R(),T("div",vm," No targets configured in site.yaml ")):!s.value&&!d.value?(R(),T("div",ym,[u[4]||(u[4]=C("p",{class:"fetch-label"},"Pull content from a target into the working copy:",-1)),X(z(Gr),{modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=g=>i.value=g),options:a.value.map(g=>({name:g})),optionLabel:"name",optionValue:"name",class:"fetch-list"},null,8,["modelValue","options"])])):s.value?(R(),T("div",xm,[u[6]||(u[6]=C("i",{class:"pi pi-check-circle"},null,-1)),C("div",null,[C("p",null,[C("strong",null,re(s.value.copiedFiles),1),u[5]||(u[5]=we(" files fetched from ",-1)),C("strong",null,re(i.value),1)]),C("p",km,re(s.value.items.join(", ")),1)])])):d.value?(R(),T("div",wm,[u[7]||(u[7]=C("i",{class:"pi pi-exclamation-circle"},null,-1)),C("p",null,re(d.value),1)])):te("",!0)])]),_:1},8,["visible"]))}}),$m=ze(Cm,[["__scopeId","data-v-359a5f85"]]),Bm={key:2,class:"cms-site-name"},zm={key:0,class:"cms-toast cms-toast-error"},Sm=xe({__name:"CmsToolbar",setup(e){const r=Yt(),o=xr(),t=K(()=>r.name==="dev"),n=_e(),a=Ge(),i=He(),l=Hr(),s=fr(),d=N(!1),f=N(!1),c=K(()=>a.type==="page"?"pages":"fragments"),u=K(()=>a.name??""),g=K(()=>a.name&&!i.hasPendingEdits);function h(){const p=a.type==="page"?"/pages":"/fragments";o.push(`${p}/${a.name}`)}return(p,m)=>(R(),T(ce,null,[X(z(wa),{class:"cms-toolbar"},{start:de(()=>[z(s).mode==="edit"&&!t.value?(R(),se(z(ne),{key:0,icon:"pi pi-arrow-left",text:"",rounded:"","data-testid":"back-to-browse",onClick:h,size:"small",class:"cms-btn"})):te("",!0),t.value?(R(),se(z(ne),{key:1,icon:"pi pi-arrow-left",text:"",rounded:"","data-testid":"back-to-editor",onClick:m[0]||(m[0]=v=>z(o).back()),size:"small",class:"cms-btn"})):te("",!0),m[8]||(m[8]=C("span",{class:"cms-logo"},[C("i",{class:"pi pi-objects-column"}),we(" Gazetta ")],-1)),z(n).manifest?(R(),T("span",Bm,re(z(n).manifest.name),1)):te("",!0)]),center:de(()=>[X(Xt,{name:"fade"},{default:de(()=>[z(i).lastSaveError?(R(),T("span",zm,[m[9]||(m[9]=C("i",{class:"pi pi-exclamation-circle"},null,-1)),we(" "+re(z(i).lastSaveError),1)])):te("",!0)]),_:1})]),end:de(()=>[t.value?te("",!0):(R(),se(z(ne),{key:0,icon:"pi pi-code",text:"",rounded:"",title:"Dev Playground","data-testid":"dev-playground-link",onClick:m[1]||(m[1]=v=>z(o).push("/dev")),size:"small",class:"cms-btn"})),X(z(ne),{icon:z(l).dark?"pi pi-sun":"pi pi-moon",text:"",rounded:"","data-testid":"theme-toggle",onClick:m[2]||(m[2]=v=>z(l).toggle()),size:"small",class:"cms-btn"},null,8,["icon"]),z(s).mode==="edit"?(R(),se(z(ne),{key:1,label:"Save",icon:"pi pi-save",severity:"primary",loading:z(i).saving,"data-testid":"save-btn",disabled:!z(i).hasPendingEdits,onClick:m[3]||(m[3]=v=>z(i).save()),size:"small",class:"cms-btn"},null,8,["loading","disabled"])):te("",!0),X(z(ne),{label:"Fetch",icon:"pi pi-cloud-download",severity:"info","data-testid":"fetch-btn",onClick:m[4]||(m[4]=v=>f.value=!0),size:"small",class:"cms-btn"}),X(z(ne),{label:"Publish",icon:"pi pi-cloud-upload",severity:"success","data-testid":"publish-btn",disabled:!g.value,onClick:m[5]||(m[5]=v=>d.value=!0),size:"small",class:"cms-btn"},null,8,["disabled"])]),_:1}),d.value?(R(),se(bm,{key:0,visible:d.value,itemType:c.value,itemName:u.value,onClose:m[6]||(m[6]=v=>d.value=!1)},null,8,["visible","itemType","itemName"])):te("",!0),f.value?(R(),se($m,{key:1,visible:f.value,onClose:m[7]||(m[7]=v=>f.value=!1)},null,8,["visible"])):te("",!0)],64))}}),Rm=ze(Sm,[["__scopeId","data-v-19233328"]]),jr=Ne("unsavedGuard",()=>{const e=N(!1);let r=null;function o(){return r?new Promise(n=>n("cancel")):(e.value=!0,new Promise(n=>{r={resolve:n}}))}function t(n){e.value=!1,r==null||r.resolve(n),r=null}return{visible:e,guard:o,respond:t}}),Dm={class:"unsaved-message"},Em={class:"unsaved-actions"},Im=xe({__name:"UnsavedDialog",setup(e){const r=jr();He();const o=Ge();function t(n){n.key==="Escape"&&(n.stopPropagation(),r.respond("cancel"))}return(n,a)=>(R(),se(z(Ze),{visible:z(r).visible,modal:"",header:"Unsaved Changes",closable:!1,style:{width:"26rem"},pt:{mask:{style:"backdrop-filter: blur(2px)"}},onKeydown:t},{footer:de(()=>[C("div",Em,[X(z(ne),{label:"Don't Save",severity:"danger",text:"",onClick:a[0]||(a[0]=i=>z(r).respond("discard"))}),X(z(ne),{label:"Cancel",severity:"secondary",text:"",onClick:a[1]||(a[1]=i=>z(r).respond("cancel"))}),X(z(ne),{label:"Save",icon:"pi pi-check",autofocus:"",onClick:a[2]||(a[2]=i=>z(r).respond("save"))})])]),default:de(()=>[C("p",Dm,[a[3]||(a[3]=we(" You have unsaved changes on ",-1)),C("strong",null,re(z(o).name),1),a[4]||(a[4]=we(". ",-1))])]),_:1},8,["visible"]))}}),Pm=ze(Im,[["__scopeId","data-v-b86db2f5"]]),Am={class:"cms-app"},Om={key:0,class:"cms-error"},Tm={key:1,class:"cms-loading"},Nm=["href"],_m=xe({__name:"App",setup(e){const r=_e(),o=Hr(),t=er();return Ye(()=>{o.init()}),(n,a)=>{const i=ma("router-view");return R(),T("div",Am,[X(Rm),z(r).error?(R(),T("div",Om,re(z(r).error),1)):z(r).loading?(R(),T("div",Tm,"Loading site...")):(R(),se(i,{key:2})),X(Pm),X(Xt,{name:"toast"},{default:de(()=>[z(t).current?(R(),T("div",{key:0,class:ie(["global-toast",z(t).current.type==="error"?"toast-error":"toast-success"])},[C("i",{class:ie(z(t).current.type==="error"?"pi pi-exclamation-circle":"pi pi-check-circle")},null,2),z(t).current.link?(R(),T("a",{key:0,href:z(t).current.link,target:"_blank",rel:"noopener",class:"toast-link"},re(z(t).current.message),9,Nm)):(R(),T(ce,{key:1},[we(re(z(t).current.message),1)],64))],2)):te("",!0)]),_:1})])}}}),Lm=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Fm=Object.prototype.toString,Mm=e=>Fm.call(e)==="[object Object]",rt=()=>{};function Wm(e,r){function o(...t){return new Promise((n,a)=>{Promise.resolve(e(()=>r.apply(this,t),{fn:r,thisArg:this,args:t})).then(n).catch(a)})}return o}const Gm=e=>e();function Hm(e,r={}){let o,t,n=rt;const a=s=>{clearTimeout(s),n(),n=rt};let i;return s=>{const d=Ve(e),f=Ve(r.maxWait);return o&&a(o),d<=0||f!==void 0&&f<=0?(t&&(a(t),t=void 0),Promise.resolve(s())):new Promise((c,u)=>{n=r.rejectOnCancel?u:c,i=s,f&&!t&&(t=setTimeout(()=>{o&&a(o),t=void 0,c(i())},f)),o=setTimeout(()=>{t&&a(t),t=void 0,c(s())},d)})}}function Zr(e){return Array.isArray(e)?e:[e]}function jm(e,r,o={}){const{eventFilter:t=Gm,...n}=o;return ve(e,Wm(t,r),n)}function Um(e,r,o={}){const{debounce:t=0,maxWait:n=void 0,...a}=o;return jm(e,r,{...a,eventFilter:Hm(t,{maxWait:n})})}function Vm(e,r,o){return ve(e,r,{...o,immediate:!0})}const Qt=Lm?window:void 0;function qm(e){var r;const o=Ve(e);return(r=o==null?void 0:o.$el)!==null&&r!==void 0?r:o}function Zt(...e){const r=(t,n,a,i)=>(t.addEventListener(n,a,i),()=>t.removeEventListener(n,a,i)),o=K(()=>{const t=Zr(Ve(e[0])).filter(n=>n!=null);return t.every(n=>typeof n!="string")?t:void 0});return Vm(()=>{var t,n;return[(t=(n=o.value)===null||n===void 0?void 0:n.map(a=>qm(a)))!==null&&t!==void 0?t:[Qt].filter(a=>a!=null),Zr(Ve(o.value?e[1]:e[0])),Zr(z(o.value?e[2]:e[1])),Ve(o.value?e[3]:e[2])]},([t,n,a,i],l,s)=>{if(!(t!=null&&t.length)||!(n!=null&&n.length)||!(a!=null&&a.length))return;const d=Mm(i)?{...i}:i,f=t.flatMap(c=>n.flatMap(u=>a.map(g=>r(c,u,g,d))));s(()=>{f.forEach(c=>c())})},{flush:"post"})}function Ym(e){return typeof e=="function"?e:typeof e=="string"?r=>r.key===e:Array.isArray(e)?r=>e.includes(r.key):()=>!0}function Ro(...e){let r,o,t={};e.length===3?(r=e[0],o=e[1],t=e[2]):e.length===2?typeof e[1]=="object"?(r=!0,o=e[0],t=e[1]):(r=e[0],o=e[1]):(r=!0,o=e[0]);const{target:n=Qt,eventName:a="keydown",passive:i=!1,dedupe:l=!1}=t,s=Ym(r);return Zt(n,a,f=>{f.repeat&&Ve(l)||s(f)&&o(f)},i)}const Xm={class:"create-content"},Jm={class:"create-field"},Km={key:0,class:"create-hint"},Qm={class:"create-field"},Zm={key:0,class:"create-error"},e0=xe({__name:"CreatePageDialog",props:{visible:{type:Boolean}},emits:["close"],setup(e,{emit:r}){const o=e,t=r,n=_e(),a=N([]),i=N(null),l=N(""),s=N(!1),d=N(null),f=K(()=>{const u=l.value.trim().toLowerCase().replace(/\s+/g,"-");return!u||u==="home"?"/":`/${u}`});Ye(async()=>{a.value=await J.getTemplates()});async function c(){if(!(!i.value||!l.value.trim())){s.value=!0,d.value=null;try{const u=l.value.trim().toLowerCase().replace(/\s+/g,"-").replace(/\/+/g,"/");await J.createPage({name:u,template:i.value}),await n.load(),t("close")}catch(u){d.value=u.message}finally{s.value=!1}}}return(u,g)=>(R(),se(z(Ze),{visible:o.visible,"onUpdate:visible":g[3]||(g[3]=h=>t("close")),modal:"",header:"New Page",style:{width:"24rem"}},{footer:de(()=>[X(z(ne),{label:"Cancel",severity:"secondary",text:"",onClick:g[2]||(g[2]=h=>t("close"))}),X(z(ne),{label:"Create",icon:"pi pi-plus",loading:s.value,disabled:!i.value||!l.value.trim(),onClick:c},null,8,["loading","disabled"])]),default:de(()=>[C("div",Xm,[C("div",Jm,[g[4]||(g[4]=C("label",null,"Page name",-1)),X(z(zo),{modelValue:l.value,"onUpdate:modelValue":g[0]||(g[0]=h=>l.value=h),placeholder:"e.g. contact or blog/my-post",class:"create-input"},null,8,["modelValue"]),l.value.trim()?(R(),T("span",Km,"Route: "+re(f.value),1)):te("",!0)]),C("div",Qm,[g[5]||(g[5]=C("label",null,"Page template",-1)),X(z(Gr),{modelValue:i.value,"onUpdate:modelValue":g[1]||(g[1]=h=>i.value=h),options:a.value,optionLabel:"name",optionValue:"name",class:"create-list",style:{maxHeight:"200px"}},null,8,["modelValue","options"])]),d.value?(R(),T("p",Zm,re(d.value),1)):te("",!0)])]),_:1},8,["visible"]))}}),r0=ze(e0,[["__scopeId","data-v-b4d1c25e"]]),o0={class:"create-content"},t0={class:"create-field"},n0={class:"create-field"},a0={key:0,class:"create-error"},i0=xe({__name:"CreateFragmentDialog",props:{visible:{type:Boolean}},emits:["close"],setup(e,{emit:r}){const o=e,t=r,n=_e(),a=N([]),i=N(null),l=N(""),s=N(!1),d=N(null);Ye(async()=>{a.value=await J.getTemplates()});async function f(){if(!(!i.value||!l.value.trim())){s.value=!0,d.value=null;try{const c=l.value.trim().toLowerCase().replace(/\s+/g,"-");await J.createFragment({name:c,template:i.value}),await n.load(),t("close")}catch(c){d.value=c.message}finally{s.value=!1}}}return(c,u)=>(R(),se(z(Ze),{visible:o.visible,"onUpdate:visible":u[3]||(u[3]=g=>t("close")),modal:"",header:"New Fragment",style:{width:"24rem"}},{footer:de(()=>[X(z(ne),{label:"Cancel",severity:"secondary",text:"",onClick:u[2]||(u[2]=g=>t("close"))}),X(z(ne),{label:"Create",icon:"pi pi-plus",loading:s.value,disabled:!i.value||!l.value.trim(),onClick:f},null,8,["loading","disabled"])]),default:de(()=>[C("div",o0,[C("div",t0,[u[4]||(u[4]=C("label",null,"Fragment name",-1)),X(z(zo),{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=g=>l.value=g),placeholder:"e.g. sidebar, newsletter",class:"create-input"},null,8,["modelValue"])]),C("div",n0,[u[5]||(u[5]=C("label",null,"Template",-1)),X(z(Gr),{modelValue:i.value,"onUpdate:modelValue":u[1]||(u[1]=g=>i.value=g),options:a.value,optionLabel:"name",optionValue:"name",class:"create-list",style:{maxHeight:"200px"}},null,8,["modelValue","options"])]),d.value?(R(),T("p",a0,re(d.value),1)):te("",!0)])]),_:1},8,["visible"]))}}),l0=ze(i0,[["__scopeId","data-v-0b98775c"]]),s0={class:"site-tree"},c0=["data-testid","onClick"],d0={class:"node-label"},u0=["data-testid","onClick"],f0={class:"node-label"},g0=["data-testid","onClick"],p0={class:"node-label"},m0={class:"new-btns"},b0=xe({__name:"SiteTree",setup(e){const r=xr(),o=_e(),t=Ge(),n=He(),a=er(),i=N(null),l=N(!1),s=N(!1);ve(()=>t.selection,p=>{p?i.value=`${p.type}:${p.name}`:i.value=null},{immediate:!0});const d=K(()=>{var p;return new Set(((p=o.manifest)==null?void 0:p.systemPages)??[])}),f=K(()=>[...o.pages].filter(p=>!d.value.has(p.name)).sort((p,m)=>p.route.localeCompare(m.route)).map(p=>({key:`page:${p.name}`,label:p.name,type:"page",name:p.name,icon:"pi pi-file"}))),c=K(()=>[...o.pages].filter(p=>d.value.has(p.name)).sort((p,m)=>p.route.localeCompare(m.route)).map(p=>({key:`page:${p.name}`,label:p.name,type:"page",name:p.name,icon:"pi pi-file"}))),u=K(()=>o.fragments.map(p=>({key:`fragment:${p.name}`,label:p.name,type:"fragment",name:p.name,icon:"pi pi-share-alt"})).sort((p,m)=>p.label.localeCompare(m.label)));function g(p){const m=p.type==="page"?"/pages":"/fragments";r.push(`${m}/${p.name}`)}async function h(p,m){if(m.stopPropagation(),!!confirm(`Delete ${p.type} "${p.name}"? This cannot be undone.`))try{p.type==="page"?await J.deletePage(p.name):await J.deleteFragment(p.name),t.type===p.type&&t.name===p.name&&n.clear(),await o.load()}catch(v){a.showError(v,`Failed to delete "${p.name}"`)}}return(p,m)=>(R(),T("div",s0,[m[5]||(m[5]=C("div",{class:"section-label"},"Pages",-1)),(R(!0),T(ce,null,Oe(f.value,v=>(R(),T("div",{key:v.key,class:ie(["node-item",{selected:i.value===v.key}]),"data-testid":`site-${v.type}-${v.name}`,onClick:$=>g(v)},[C("i",{class:ie([v.icon,"node-icon"])},null,2),C("span",d0,re(v.label),1),X(z(ne),{icon:"pi pi-trash",text:"",rounded:"",size:"small",severity:"danger",class:"node-delete","data-testid":`delete-${v.type}-${v.name}`,onClick:$=>h(v,$)},null,8,["data-testid","onClick"])],10,c0))),128)),c.value.length?(R(),T(ce,{key:0},[m[4]||(m[4]=C("div",{class:"section-divider"},null,-1)),(R(!0),T(ce,null,Oe(c.value,v=>(R(),T("div",{key:v.key,class:ie(["node-item",{selected:i.value===v.key}]),"data-testid":`site-${v.type}-${v.name}`,onClick:$=>g(v)},[C("i",{class:ie([v.icon,"node-icon"])},null,2),C("span",f0,re(v.label),1),X(z(ne),{icon:"pi pi-trash",text:"",rounded:"",size:"small",severity:"danger",class:"node-delete","data-testid":`delete-${v.type}-${v.name}`,onClick:$=>h(v,$)},null,8,["data-testid","onClick"])],10,u0))),128))],64)):te("",!0),m[6]||(m[6]=C("div",{class:"section-label",style:{"margin-top":"12px"}},"Fragments",-1)),(R(!0),T(ce,null,Oe(u.value,v=>(R(),T("div",{key:v.key,class:ie(["node-item",{selected:i.value===v.key}]),"data-testid":`site-${v.type}-${v.name}`,onClick:$=>g(v)},[C("i",{class:ie([v.icon,"node-icon"])},null,2),C("span",p0,re(v.label),1),X(z(ne),{icon:"pi pi-trash",text:"",rounded:"",size:"small",severity:"danger",class:"node-delete","data-testid":`delete-${v.type}-${v.name}`,onClick:$=>h(v,$)},null,8,["data-testid","onClick"])],10,g0))),128)),C("div",m0,[X(z(ne),{icon:"pi pi-plus",label:"New page",text:"",size:"small","data-testid":"new-page",onClick:m[0]||(m[0]=v=>l.value=!0)}),X(z(ne),{icon:"pi pi-plus",label:"New fragment",text:"",size:"small","data-testid":"new-fragment",onClick:m[1]||(m[1]=v=>s.value=!0)})]),l.value?(R(),se(r0,{key:1,visible:l.value,onClose:m[2]||(m[2]=v=>l.value=!1)},null,8,["visible"])):te("",!0),s.value?(R(),se(l0,{key:2,visible:s.value,onClose:m[3]||(m[3]=v=>s.value=!1)},null,8,["visible"])):te("",!0)]))}}),h0=ze(b0,[["__scopeId","data-v-37e45114"]]),v0={class:"add-content"},y0={class:"add-field"},x0={class:"add-field"},k0={key:0,class:"add-error"},w0=xe({__name:"AddComponentDialog",props:{visible:{type:Boolean}},emits:["close","add"],setup(e,{emit:r}){const o=e,t=r,n=N([]),a=N(null),i=N(""),l=N(!1),s=N(null);Ye(async()=>{n.value=await J.getTemplates()});async function d(){if(!(!a.value||!i.value.trim())){l.value=!0,s.value=null;try{const f=i.value.trim().toLowerCase().replace(/\s+/g,"-");t("add",f,a.value),t("close")}catch(f){s.value=f.message}finally{l.value=!1}}}return(f,c)=>(R(),se(z(Ze),{visible:o.visible,"onUpdate:visible":c[3]||(c[3]=u=>t("close")),modal:"",header:"Add Component",style:{width:"24rem"}},{footer:de(()=>[X(z(ne),{label:"Cancel",severity:"secondary",text:"",onClick:c[2]||(c[2]=u=>t("close"))}),X(z(ne),{label:"Add",icon:"pi pi-plus",loading:l.value,disabled:!a.value||!i.value.trim(),onClick:d},null,8,["loading","disabled"])]),default:de(()=>[C("div",v0,[C("div",y0,[c[4]||(c[4]=C("label",null,"Name",-1)),X(z(zo),{modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),placeholder:"e.g. hero, sidebar, cta",class:"add-input"},null,8,["modelValue"])]),C("div",x0,[c[5]||(c[5]=C("label",null,"Template",-1)),X(z(Gr),{modelValue:a.value,"onUpdate:modelValue":c[1]||(c[1]=u=>a.value=u),options:n.value,optionLabel:"name",optionValue:"name",class:"add-list",style:{maxHeight:"200px"}},null,8,["modelValue","options"])]),s.value?(R(),T("p",k0,re(s.value),1)):te("",!0)])]),_:1},8,["visible"]))}}),C0=ze(w0,[["__scopeId","data-v-f4b0672a"]]),$0={key:0,class:"component-tree"},B0=["data-testid","onClick","onMouseenter"],z0={key:0,class:"pi pi-exclamation-triangle node-icon node-error-icon"},S0={key:2,class:"node-dirty-dot"},R0={class:"node-label"},D0={key:4,class:"node-actions"},E0={key:1,class:"empty"},I0=xe({__name:"ComponentTree",setup(e){function r(E){let I=2166136261;for(let x=0;x<E.length;x++)I^=E.charCodeAt(x),I=I*16777619>>>0;return I.toString(16).padStart(8,"0")}const o=Ge(),t=He(),n=er();Pe();const a=So(),i=jr(),l=N(null),s=N(null),d=N([]),f=N(!1),c=K(()=>o.detail),u=K(()=>{var E,I;return((I=(E=c.value)==null?void 0:E.components)==null?void 0:I.length)??0}),g=N(new Map);async function h(E,I,x,y,b){const k=y?`${y}/${E}`:E,B=r(k);if(E.startsWith("@")){const q=E.slice(1);b.set(B,{isFragment:!0,fragName:q});try{const Q=await J.getFragment(q),ue=Q.components?await Promise.all(Q.components.map((ke,Se)=>h(ke,Q.dir,Se,k,b))):[];return{key:`frag:${q}:${x}`,label:E,data:{isFragment:!0,fragName:q,treePath:k,path:Q.dir,template:Q.template,index:x,isTopLevel:!0},children:ue}}catch(Q){return{key:`frag:${q}:${x}`,label:E,data:{isFragment:!0,fragName:q,treePath:k,index:x,isTopLevel:!0,error:Q.message},children:[]}}}const S=`${I}/${E}`;let M="",j=[],G;try{const q=await J.getComponent(S);M=q.template??"",q.components&&(j=await Promise.all(q.components.map((Q,ue)=>h(Q,S,ue,k,b))))}catch(q){G=q.message}return b.set(B,{path:S,template:M}),{key:`comp:${S}:${x}`,label:E,data:{path:S,template:M,treePath:k,isFragment:!1,index:x,isTopLevel:!0,error:G},children:j.map(q=>({...q,data:{...q.data,isTopLevel:!1}}))}}ve(c,async E=>{if(!E){d.value=[],g.value=new Map;return}const I=new Map,x=o.type==="fragment"?`@${o.name}`:"",y=E.components?await Promise.all(E.components.map((k,B)=>h(k,E.dir,B,x,I))):[],b={key:`root:${o.name}`,label:o.name??"",data:{isPage:!0,path:E.dir,template:E.template,treePath:x},children:y};x&&o.type==="fragment"&&o.name&&I.set(r(x),{isFragment:!0,fragName:o.name}),d.value=[b],g.value=I,p()},{immediate:!0});function p(){a.pendingGzId&&g.value.size>0&&(Y(a.pendingGzId),a.clearPending())}ve(()=>a.pendingGzId,()=>p()),ve(()=>a.previewHoverGzId,E=>{if(!E){s.value=null;return}const I=H(d.value,x=>x.treePath?r(x.treePath)===E:!1);s.value=(I==null?void 0:I.key)??null});const m=K(()=>{const E=[];function I(x,y){for(const b of x)E.push({node:b,depth:y}),b.children.length&&I(b.children,y+1)}return d.value[0]&&(E.push({node:d.value[0],depth:-1}),I(d.value[0].children,0)),E});function v(E,I){return I===-1?o.type==="page"?"pi pi-file":"pi pi-share-alt":E.data.isFragment?"pi pi-share-alt":"pi pi-box"}function $(E){if(!(E<=0))return{paddingLeft:E*10+"px"}}function O(E){t.path===E?t.discard():t.revertStashed(E)}function A(E){E.data.treePath&&a.highlight(r(E.data.treePath))}function _(){a.highlight(null)}async function L(E){if(!E.data)return;l.value=E.key;const I=E.data.treePath;if(a.select(I?r(I):null),E.data.isFragment&&E.data.fragName){t.openFragment(E.data.fragName);return}if(E.data.isPage){t.openPageRoot();return}E.data.path&&t.openComponent(E.data.path,E.data.template??"")}function H(E,I){for(const x of E){if(x.data&&I(x.data))return x;if(x.children.length){const y=H(x.children,I);if(y)return y}}return null}function Y(E){const I=g.value.get(E);if(!I)return;if(a.select(E),"isFragment"in I){const y=H(d.value,b=>b.fragName===I.fragName);y&&(l.value=y.key),t.openFragment(I.fragName);return}const x=H(d.value,y=>y.path===I.path);x&&(l.value=x.key),t.openComponent(I.path,I.template)}async function ee(E,I){const x=c.value;if(!(x!=null&&x.components))return;const y=E+I;if(y<0||y>=x.components.length)return;const b=[...x.components],[k]=b.splice(E,1);b.splice(y,0,k),await o.updateComponents(b)}async function Z(E){const I=c.value;if(!(I!=null&&I.components))return;if(t.dirty){const b=await i.guard();if(b==="cancel")return;b==="save"&&await t.save()}const x=[...I.components],y=x.splice(E,1)[0];t.clear(),await o.updateComponents(x),n.show(`Removed "${y}"`)}async function V(E,I){const x=c.value;if(x)try{await J.createComponent(x.dir,E,I);const y=[...x.components??[],E];await o.updateComponents(y),n.show(`Added "${E}"`)}catch(y){n.showError(y,`Failed to add component "${E}"`)}}return(E,I)=>c.value?(R(),T("div",$0,[m.value.length?(R(!0),T(ce,{key:0},Oe(m.value,({node:x,depth:y})=>{var b,k,B,w,S;return R(),T("div",{key:x.key,class:ie(["node-item",{"node-root":y===-1,selected:l.value===x.key,hovered:s.value===x.key}]),style:Wr($(y)),"data-testid":`component-${(b=x.data)!=null&&b.isFragment?x.data.fragName:x.label}`,onClick:M=>L(x),onMouseenter:M=>A(x),onMouseleave:I[0]||(I[0]=M=>_())},[(k=x.data)!=null&&k.error?(R(),T("i",z0)):(R(),T("i",{key:1,class:ie([v(x,y),"node-icon"])},null,2)),(B=x.data)!=null&&B.path&&(z(t).hasPendingEdit(x.data.path)||z(t).dirty&&z(t).path===x.data.path)?(R(),T("span",S0)):te("",!0),C("span",R0,re(x.label),1),(w=x.data)!=null&&w.path&&(z(t).hasPendingEdit(x.data.path)||z(t).dirty&&z(t).path===x.data.path)?(R(),se(z(ne),{key:3,icon:"pi pi-undo",text:"",rounded:"",size:"small",class:"node-revert",title:"Discard changes",onClick:$r(M=>O(x.data.path),["stop"])},null,8,["onClick"])):te("",!0),(S=x.data)!=null&&S.isTopLevel&&y!==-1?(R(),T("span",D0,[X(z(ne),{icon:"pi pi-arrow-up",text:"",rounded:"",size:"small","data-testid":`move-up-${x.label}`,disabled:x.data.index===0,onClick:$r(M=>ee(x.data.index,-1),["stop"])},null,8,["data-testid","disabled","onClick"]),X(z(ne),{icon:"pi pi-arrow-down",text:"",rounded:"",size:"small","data-testid":`move-down-${x.label}`,disabled:x.data.index===u.value-1,onClick:$r(M=>ee(x.data.index,1),["stop"])},null,8,["data-testid","disabled","onClick"]),X(z(ne),{icon:"pi pi-trash",text:"",rounded:"",size:"small",severity:"danger","data-testid":`remove-${x.label}`,onClick:$r(M=>Z(x.data.index),["stop"])},null,8,["data-testid","onClick"])])):te("",!0)],46,B0)}),128)):(R(),T("p",E0,"No components")),X(z(ne),{icon:"pi pi-plus",label:"Add component",text:"",size:"small",class:"add-btn","data-testid":"add-component",onClick:I[1]||(I[1]=x=>f.value=!0)}),f.value?(R(),se(C0,{key:2,visible:f.value,onClose:I[2]||(I[2]=x=>f.value=!1),onAdd:V},null,8,["visible"])):te("",!0)])):te("",!0)}}),P0=ze(I0,[["__scopeId","data-v-cbcd1af7"]]);function A0(e,r,o,t,n,a,i,l){let s=!1;function d(){!e.value||!r.value||!o.value||!t.value||(s&&f(),r.value.mount(e.value,{content:o.value,schema:t.value,theme:n.value,onChange:a,fieldsBaseUrl:l==null?void 0:l.value}),s=!0)}function f(){!s||!e.value||!r.value||(r.value.unmount(e.value),s=!1)}ve(i?[e,r,i]:[e,r],()=>{e.value&&r.value&&o.value?d():f()},{immediate:!0}),Jt(f)}const O0="modulepreload",T0=function(e){return"/admin/"+e},ot={},ho=function(r,o,t){let n=Promise.resolve();if(o&&o.length>0){let i=function(d){return Promise.all(d.map(f=>Promise.resolve(f).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),s=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));n=i(o.map(d=>{if(d=T0(d),d in ot)return;ot[d]=!0;const f=d.endsWith(".css"),c=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${c}`))return;const u=document.createElement("link");if(u.rel=f?"stylesheet":O0,f||(u.as="script"),u.crossOrigin="",u.href=d,s&&u.setAttribute("nonce",s),document.head.appendChild(u),f)return new Promise((g,h)=>{u.addEventListener("load",g),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return n.then(i=>{for(const l of i||[])l.status==="rejected"&&a(l.reason);return r().catch(a)})};function he(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var N0=typeof Symbol=="function"&&Symbol.observable||"@@observable",tt=N0,nt=()=>Math.random().toString(36).substring(7).split("").join("."),_0={INIT:`@@redux/INIT${nt()}`,REPLACE:`@@redux/REPLACE${nt()}`},at=_0;function L0(e){if(typeof e!="object"||e===null)return!1;let r=e;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r||Object.getPrototypeOf(e)===null}function en(e,r,o){if(typeof e!="function")throw new Error(he(2));if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(he(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(he(1));return o(en)(e,r)}let t=e,n=r,a=new Map,i=a,l=0,s=!1;function d(){i===a&&(i=new Map,a.forEach((m,v)=>{i.set(v,m)}))}function f(){if(s)throw new Error(he(3));return n}function c(m){if(typeof m!="function")throw new Error(he(4));if(s)throw new Error(he(5));let v=!0;d();const $=l++;return i.set($,m),function(){if(v){if(s)throw new Error(he(6));v=!1,d(),i.delete($),a=null}}}function u(m){if(!L0(m))throw new Error(he(7));if(typeof m.type>"u")throw new Error(he(8));if(typeof m.type!="string")throw new Error(he(17));if(s)throw new Error(he(9));try{s=!0,n=t(n,m)}finally{s=!1}return(a=i).forEach($=>{$()}),m}function g(m){if(typeof m!="function")throw new Error(he(10));t=m,u({type:at.REPLACE})}function h(){const m=c;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(he(11));function $(){const A=v;A.next&&A.next(f())}return $(),{unsubscribe:m($)}},[tt](){return this}}}return u({type:at.INIT}),{dispatch:u,subscribe:c,getState:f,replaceReducer:g,[tt]:h}}function it(e,r){return function(...o){return r(e.apply(this,o))}}function lt(e,r){if(typeof e=="function")return it(e,r);if(typeof e!="object"||e===null)throw new Error(he(16));const o={};for(const t in e){const n=e[t];typeof n=="function"&&(o[t]=it(n,r))}return o}function rn(...e){return e.length===0?r=>r:e.length===1?e[0]:e.reduce((r,o)=>(...t)=>r(o(...t)))}function F0(...e){return r=>(o,t)=>{const n=r(o,t);let a=()=>{throw new Error(he(15))};const i={getState:n.getState,dispatch:(s,...d)=>a(s,...d)},l=e.map(s=>s(i));return a=rn(...l)(n.dispatch),{...n,dispatch:a}}}var eo={exports:{}},ro={};/**
38
+ * @license React
39
+ * use-sync-external-store-with-selector.production.js
40
+ *
41
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
42
+ *
43
+ * This source code is licensed under the MIT license found in the
44
+ * LICENSE file in the root directory of this source tree.
45
+ */var st;function M0(){if(st)return ro;st=1;var e=Ba();function r(s,d){return s===d&&(s!==0||1/s===1/d)||s!==s&&d!==d}var o=typeof Object.is=="function"?Object.is:r,t=e.useSyncExternalStore,n=e.useRef,a=e.useEffect,i=e.useMemo,l=e.useDebugValue;return ro.useSyncExternalStoreWithSelector=function(s,d,f,c,u){var g=n(null);if(g.current===null){var h={hasValue:!1,value:null};g.current=h}else h=g.current;g=i(function(){function m(_){if(!v){if(v=!0,$=_,_=c(_),u!==void 0&&h.hasValue){var L=h.value;if(u(L,_))return O=L}return O=_}if(L=O,o($,_))return L;var H=c(_);return u!==void 0&&u(L,H)?($=_,L):($=_,O=H)}var v=!1,$,O,A=f===void 0?null:f;return[function(){return m(d())},A===null?void 0:function(){return m(A())}]},[d,f,c,u]);var p=t(s,g[0],g[1]);return a(function(){h.hasValue=!0,h.value=p},[p]),l(p),p},ro}var ct;function W0(){return ct||(ct=1,eo.exports=M0()),eo.exports}W0();var G0=F.version.startsWith("19"),H0=Symbol.for(G0?"react.transitional.element":"react.element"),j0=Symbol.for("react.portal"),U0=Symbol.for("react.fragment"),V0=Symbol.for("react.strict_mode"),q0=Symbol.for("react.profiler"),Y0=Symbol.for("react.consumer"),X0=Symbol.for("react.context"),on=Symbol.for("react.forward_ref"),J0=Symbol.for("react.suspense"),K0=Symbol.for("react.suspense_list"),Do=Symbol.for("react.memo"),Q0=Symbol.for("react.lazy"),Z0=on,eb=Do;function rb(e){if(typeof e=="object"&&e!==null){const{$$typeof:r}=e;switch(r){case H0:switch(e=e.type,e){case U0:case q0:case V0:case J0:case K0:return e;default:switch(e=e&&e.$$typeof,e){case X0:case on:case Q0:case Do:return e;case Y0:return e;default:return r}}case j0:return r}}}function ob(e){return rb(e)===Do}function tb(e,r,o,t,{areStatesEqual:n,areOwnPropsEqual:a,areStatePropsEqual:i}){let l=!1,s,d,f,c,u;function g($,O){return s=$,d=O,f=e(s,d),c=r(t,d),u=o(f,c,d),l=!0,u}function h(){return f=e(s,d),r.dependsOnOwnProps&&(c=r(t,d)),u=o(f,c,d),u}function p(){return e.dependsOnOwnProps&&(f=e(s,d)),r.dependsOnOwnProps&&(c=r(t,d)),u=o(f,c,d),u}function m(){const $=e(s,d),O=!i($,f);return f=$,O&&(u=o(f,c,d)),u}function v($,O){const A=!a(O,d),_=!n($,s,O,d);return s=$,d=O,A&&_?h():A?p():_?m():u}return function(O,A){return l?v(O,A):g(O,A)}}function nb(e,{initMapStateToProps:r,initMapDispatchToProps:o,initMergeProps:t,...n}){const a=r(e,n),i=o(e,n),l=t(e,n);return tb(a,i,l,e,n)}function ab(e,r){const o={};for(const t in e){const n=e[t];typeof n=="function"&&(o[t]=(...a)=>r(n(...a)))}return o}function vo(e){return function(o){const t=e(o);function n(){return t}return n.dependsOnOwnProps=!1,n}}function dt(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function tn(e,r){return function(t,{displayName:n}){const a=function(l,s){return a.dependsOnOwnProps?a.mapToProps(l,s):a.mapToProps(l,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(l,s){a.mapToProps=e,a.dependsOnOwnProps=dt(e);let d=a(l,s);return typeof d=="function"&&(a.mapToProps=d,a.dependsOnOwnProps=dt(d),d=a(l,s)),d},a}}function Eo(e,r){return(o,t)=>{throw new Error(`Invalid value of type ${typeof e} for ${r} argument when connecting component ${t.wrappedComponentName}.`)}}function ib(e){return e&&typeof e=="object"?vo(r=>ab(e,r)):e?typeof e=="function"?tn(e):Eo(e,"mapDispatchToProps"):vo(r=>({dispatch:r}))}function lb(e){return e?typeof e=="function"?tn(e):Eo(e,"mapStateToProps"):vo(()=>({}))}function sb(e,r,o){return{...o,...e,...r}}function cb(e){return function(o,{displayName:t,areMergedPropsEqual:n}){let a=!1,i;return function(s,d,f){const c=e(s,d,f);return a?n(c,i)||(i=c):(a=!0,i=c),i}}}function db(e){return e?typeof e=="function"?cb(e):Eo(e,"mergeProps"):()=>sb}function ub(e){e()}function fb(){let e=null,r=null;return{clear(){e=null,r=null},notify(){ub(()=>{let o=e;for(;o;)o.callback(),o=o.next})},get(){const o=[];let t=e;for(;t;)o.push(t),t=t.next;return o},subscribe(o){let t=!0;const n=r={callback:o,next:null,prev:r};return n.prev?n.prev.next=n:e=n,function(){!t||e===null||(t=!1,n.next?n.next.prev=n.prev:r=n.prev,n.prev?n.prev.next=n.next:e=n.next)}}}}var ut={notify(){},get:()=>[]};function nn(e,r){let o,t=ut,n=0,a=!1;function i(p){f();const m=t.subscribe(p);let v=!1;return()=>{v||(v=!0,m(),c())}}function l(){t.notify()}function s(){h.onStateChange&&h.onStateChange()}function d(){return a}function f(){n++,o||(o=r?r.addNestedSub(s):e.subscribe(s),t=fb())}function c(){n--,o&&n===0&&(o(),o=void 0,t.clear(),t=ut)}function u(){a||(a=!0,f())}function g(){a&&(a=!1,c())}const h={addNestedSub:i,notifyNestedSubs:l,handleChangeWrapper:s,isSubscribed:d,trySubscribe:u,tryUnsubscribe:g,getListeners:()=>t};return h}var gb=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pb=gb(),mb=()=>typeof navigator<"u"&&navigator.product==="ReactNative",bb=mb(),hb=()=>pb||bb?F.useLayoutEffect:F.useEffect,Pr=hb();function ft(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function oo(e,r){if(ft(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;const o=Object.keys(e),t=Object.keys(r);if(o.length!==t.length)return!1;for(let n=0;n<o.length;n++)if(!Object.prototype.hasOwnProperty.call(r,o[n])||!ft(e[o[n]],r[o[n]]))return!1;return!0}var vb={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yb={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xb={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},an={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kb={[Z0]:xb,[eb]:an};function gt(e){return ob(e)?an:kb[e.$$typeof]||vb}var wb=Object.defineProperty,Cb=Object.getOwnPropertyNames,pt=Object.getOwnPropertySymbols,$b=Object.getOwnPropertyDescriptor,Bb=Object.getPrototypeOf,mt=Object.prototype;function yo(e,r){if(typeof r!="string"){if(mt){const a=Bb(r);a&&a!==mt&&yo(e,a)}let o=Cb(r);pt&&(o=o.concat(pt(r)));const t=gt(e),n=gt(r);for(let a=0;a<o.length;++a){const i=o[a];if(!yb[i]&&!(n&&n[i])&&!(t&&t[i])){const l=$b(r,i);try{wb(e,i,l)}catch{}}}}return e}var to=Symbol.for("react-redux-context"),no=typeof globalThis<"u"?globalThis:{};function zb(){if(!F.createContext)return{};const e=no[to]??(no[to]=new Map);let r=e.get(F.createContext);return r||(r=F.createContext(null),e.set(F.createContext,r)),r}var ln=zb(),Sb=[null,null];function Rb(e,r,o){Pr(()=>e(...r),o)}function Db(e,r,o,t,n,a){e.current=t,o.current=!1,n.current&&(n.current=null,a())}function Eb(e,r,o,t,n,a,i,l,s,d,f){if(!e)return()=>{};let c=!1,u=null;const g=()=>{if(c||!l.current)return;const p=r.getState();let m,v;try{m=t(p,n.current)}catch($){v=$,u=$}v||(u=null),m===a.current?i.current||d():(a.current=m,s.current=m,i.current=!0,f())};return o.onStateChange=g,o.trySubscribe(),g(),()=>{if(c=!0,o.tryUnsubscribe(),o.onStateChange=null,u)throw u}}function Ib(e,r){return e===r}function Pb(e,r,o,{pure:t,areStatesEqual:n=Ib,areOwnPropsEqual:a=oo,areStatePropsEqual:i=oo,areMergedPropsEqual:l=oo,forwardRef:s=!1,context:d=ln}={}){const f=d,c=lb(e),u=ib(r),g=db(o),h=!!e;return m=>{const v=m.displayName||m.name||"Component",$=`Connect(${v})`,O={shouldHandleStateChanges:h,displayName:$,wrappedComponentName:v,WrappedComponent:m,initMapStateToProps:c,initMapDispatchToProps:u,initMergeProps:g,areStatesEqual:n,areStatePropsEqual:i,areOwnPropsEqual:a,areMergedPropsEqual:l};function A(H){const[Y,ee,Z]=F.useMemo(()=>{const{reactReduxForwardedRef:me,...nr}=H;return[H.context,me,nr]},[H]),V=F.useMemo(()=>{let me=f;return Y!=null&&Y.Consumer,me},[Y,f]),E=F.useContext(V),I=!!H.store&&!!H.store.getState&&!!H.store.dispatch,x=!!E&&!!E.store,y=I?H.store:E.store,b=x?E.getServerState:y.getState,k=F.useMemo(()=>nb(y.dispatch,O),[y]),[B,w]=F.useMemo(()=>{if(!h)return Sb;const me=nn(y,I?void 0:E.subscription),nr=me.notifyNestedSubs.bind(me);return[me,nr]},[y,I,E]),S=F.useMemo(()=>I?E:{...E,subscription:B},[I,E,B]),M=F.useRef(void 0),j=F.useRef(Z),G=F.useRef(void 0),q=F.useRef(!1),Q=F.useRef(!1),ue=F.useRef(void 0);Pr(()=>(Q.current=!0,()=>{Q.current=!1}),[]);const ke=F.useMemo(()=>()=>G.current&&Z===j.current?G.current:k(y.getState(),Z),[y,Z]),Se=F.useMemo(()=>nr=>B?Eb(h,y,B,k,j,M,q,Q,G,w,nr):()=>{},[B]);Rb(Db,[j,M,q,Z,G,w]);let Te;try{Te=F.useSyncExternalStore(Se,ke,b?()=>k(b(),Z):ke)}catch(me){throw ue.current&&(me.message+=`
46
+ The error may be correlated with this previous error:
47
+ ${ue.current.stack}
48
+
49
+ `),me}Pr(()=>{ue.current=void 0,G.current=void 0,M.current=Te});const Re=F.useMemo(()=>F.createElement(m,{...Te,ref:ee}),[ee,m,Te]);return F.useMemo(()=>h?F.createElement(V.Provider,{value:S},Re):Re,[V,Re,S])}const L=F.memo(A);if(L.WrappedComponent=m,L.displayName=A.displayName=$,s){const Y=F.forwardRef(function(Z,V){return F.createElement(L,{...Z,reactReduxForwardedRef:V})});return Y.displayName=$,Y.WrappedComponent=m,yo(Y,m)}return yo(L,m)}}var sn=Pb;function Ab(e){const{children:r,context:o,serverState:t,store:n}=e,a=F.useMemo(()=>{const s=nn(n);return{store:n,subscription:s,getServerState:t?()=>t:void 0}},[n,t]),i=F.useMemo(()=>n.getState(),[n]);Pr(()=>{const{subscription:s}=a;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),i!==n.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[a,i]);const l=o||ln;return F.createElement(l.Provider,{value:a},r)}var Ob=Ab,Tb="Invariant failed";function Nb(e,r){throw new Error(Tb)}var Ae=function(r){var o=r.top,t=r.right,n=r.bottom,a=r.left,i=t-a,l=n-o,s={top:o,right:t,bottom:n,left:a,width:i,height:l,x:a,y:o,center:{x:(t+a)/2,y:(n+o)/2}};return s},Io=function(r,o){return{top:r.top-o.top,left:r.left-o.left,bottom:r.bottom+o.bottom,right:r.right+o.right}},bt=function(r,o){return{top:r.top+o.top,left:r.left+o.left,bottom:r.bottom-o.bottom,right:r.right-o.right}},_b=function(r,o){return{top:r.top+o.y,left:r.left+o.x,bottom:r.bottom+o.y,right:r.right+o.x}},ao={top:0,right:0,bottom:0,left:0},Po=function(r){var o=r.borderBox,t=r.margin,n=t===void 0?ao:t,a=r.border,i=a===void 0?ao:a,l=r.padding,s=l===void 0?ao:l,d=Ae(Io(o,n)),f=Ae(bt(o,i)),c=Ae(bt(f,s));return{marginBox:d,borderBox:Ae(o),paddingBox:f,contentBox:c,margin:n,border:i,padding:s}},De=function(r){var o=r.slice(0,-2),t=r.slice(-2);if(t!=="px")return 0;var n=Number(o);return isNaN(n)&&Nb(),n},Lb=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Ar=function(r,o){var t=r.borderBox,n=r.border,a=r.margin,i=r.padding,l=_b(t,o);return Po({borderBox:l,border:n,margin:a,padding:i})},Or=function(r,o){return o===void 0&&(o=Lb()),Ar(r,o)},cn=function(r,o){var t={top:De(o.marginTop),right:De(o.marginRight),bottom:De(o.marginBottom),left:De(o.marginLeft)},n={top:De(o.paddingTop),right:De(o.paddingRight),bottom:De(o.paddingBottom),left:De(o.paddingLeft)},a={top:De(o.borderTopWidth),right:De(o.borderRightWidth),bottom:De(o.borderBottomWidth),left:De(o.borderLeftWidth)};return Po({borderBox:r,margin:t,padding:n,border:a})},dn=function(r){var o=r.getBoundingClientRect(),t=window.getComputedStyle(r);return cn(o,t)},gr=function(r){var o=[],t=null,n=function(){for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];o=l,!t&&(t=requestAnimationFrame(function(){t=null,r.apply(void 0,o)}))};return n.cancel=function(){t&&(cancelAnimationFrame(t),t=null)},n};function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Tr.apply(null,arguments)}function un(e,r){}un.bind(null,"warn");un.bind(null,"error");function Fe(){}function Fb(e,r){return{...e,...r}}function Ee(e,r,o){const t=r.map(n=>{const a=Fb(o,n.options);return e.addEventListener(n.eventName,n.fn,a),function(){e.removeEventListener(n.eventName,n.fn,a)}});return function(){t.forEach(a=>{a()})}}const Mb="Invariant failed";class Nr extends Error{}Nr.prototype.toString=function(){return this.message};function P(e,r){throw new Nr(Mb)}class Wb extends U.Component{constructor(...r){super(...r),this.callbacks=null,this.unbind=Fe,this.onWindowError=o=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort(),o.error instanceof Nr&&o.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=o=>{this.callbacks=o}}componentDidMount(){this.unbind=Ee(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(r){if(r instanceof Nr){this.setState({});return}throw r}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Gb=`
50
+ Press space bar to start a drag.
51
+ When dragging you can use the arrow keys to move the item around and escape to cancel.
52
+ Some screen readers may require you to be in focus mode or to use your pass through key
53
+ `,_r=e=>e+1,Hb=e=>`
54
+ You have lifted an item in position ${_r(e.source.index)}
55
+ `,fn=(e,r)=>{const o=e.droppableId===r.droppableId,t=_r(e.index),n=_r(r.index);return o?`
56
+ You have moved the item from position ${t}
57
+ to position ${n}
58
+ `:`
59
+ You have moved the item from position ${t}
60
+ in list ${e.droppableId}
61
+ to list ${r.droppableId}
62
+ in position ${n}
63
+ `},gn=(e,r,o)=>r.droppableId===o.droppableId?`
64
+ The item ${e}
65
+ has been combined with ${o.draggableId}`:`
66
+ The item ${e}
67
+ in list ${r.droppableId}
68
+ has been combined with ${o.draggableId}
69
+ in list ${o.droppableId}
70
+ `,jb=e=>{const r=e.destination;if(r)return fn(e.source,r);const o=e.combine;return o?gn(e.draggableId,e.source,o):"You are over an area that cannot be dropped on"},ht=e=>`
71
+ The item has returned to its starting position
72
+ of ${_r(e.index)}
73
+ `,Ub=e=>{if(e.reason==="CANCEL")return`
74
+ Movement cancelled.
75
+ ${ht(e.source)}
76
+ `;const r=e.destination,o=e.combine;return r?`
77
+ You have dropped the item.
78
+ ${fn(e.source,r)}
79
+ `:o?`
80
+ You have dropped the item.
81
+ ${gn(e.draggableId,e.source,o)}
82
+ `:`
83
+ The item has been dropped while not over a drop area.
84
+ ${ht(e.source)}
85
+ `},Ir={dragHandleUsageInstructions:Gb,onDragStart:Hb,onDragUpdate:jb,onDragEnd:Ub};function Vb(e,r){return!!(e===r||Number.isNaN(e)&&Number.isNaN(r))}function pn(e,r){if(e.length!==r.length)return!1;for(let o=0;o<e.length;o++)if(!Vb(e[o],r[o]))return!1;return!0}function oe(e,r){const o=F.useState(()=>({inputs:r,result:e()}))[0],t=F.useRef(!0),n=F.useRef(o),i=t.current||!!(r&&n.current.inputs&&pn(r,n.current.inputs))?n.current:{inputs:r,result:e()};return F.useEffect(()=>{t.current=!1,n.current=i},[i]),i.result}function W(e,r){return oe(()=>e,r)}const ge={x:0,y:0},pe=(e,r)=>({x:e.x+r.x,y:e.y+r.y}),Ce=(e,r)=>({x:e.x-r.x,y:e.y-r.y}),Me=(e,r)=>e.x===r.x&&e.y===r.y,rr=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),qe=(e,r,o=0)=>e==="x"?{x:r,y:o}:{x:o,y:r},pr=(e,r)=>Math.sqrt((r.x-e.x)**2+(r.y-e.y)**2),vt=(e,r)=>Math.min(...r.map(o=>pr(e,o))),mn=e=>r=>({x:e(r.x),y:e(r.y)});var qb=(e,r)=>{const o=Ae({top:Math.max(r.top,e.top),right:Math.min(r.right,e.right),bottom:Math.min(r.bottom,e.bottom),left:Math.max(r.left,e.left)});return o.width<=0||o.height<=0?null:o};const kr=(e,r)=>({top:e.top+r.y,left:e.left+r.x,bottom:e.bottom+r.y,right:e.right+r.x}),yt=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Yb={top:0,right:0,bottom:0,left:0},Xb=(e,r)=>r?kr(e,r.scroll.diff.displacement):e,Jb=(e,r,o)=>o&&o.increasedBy?{...e,[r.end]:e[r.end]+o.increasedBy[r.line]}:e,Kb=(e,r)=>r&&r.shouldClipSubject?qb(r.pageMarginBox,e):Ae(e);var Je=({page:e,withPlaceholder:r,axis:o,frame:t})=>{const n=Xb(e.marginBox,t),a=Jb(n,o,r),i=Kb(a,t);return{page:e,withPlaceholder:r,active:i}},Ao=(e,r)=>{e.frame||P();const o=e.frame,t=Ce(r,o.scroll.initial),n=rr(t),a={...o,scroll:{initial:o.scroll.initial,current:r,diff:{value:t,displacement:n},max:o.scroll.max}},i=Je({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return{...e,frame:a,subject:i}};function fe(e,r=pn){let o=null;function t(...n){if(o&&o.lastThis===this&&r(n,o.lastArgs))return o.lastResult;const a=e.apply(this,n);return o={lastResult:a,lastArgs:n,lastThis:this},a}return t.clear=function(){o=null},t}const bn=fe(e=>e.reduce((r,o)=>(r[o.descriptor.id]=o,r),{})),hn=fe(e=>e.reduce((r,o)=>(r[o.descriptor.id]=o,r),{})),Ur=fe(e=>Object.values(e)),Qb=fe(e=>Object.values(e));var or=fe((e,r)=>Qb(r).filter(t=>e===t.descriptor.droppableId).sort((t,n)=>t.descriptor.index-n.descriptor.index));function Oo(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Vr(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var qr=fe((e,r)=>r.filter(o=>o.descriptor.id!==e.descriptor.id)),Zb=({isMovingForward:e,draggable:r,destination:o,insideDestination:t,previousImpact:n})=>{if(!o.isCombineEnabled||!Oo(n))return null;function i(g){const h={type:"COMBINE",combine:{draggableId:g,droppableId:o.descriptor.id}};return{...n,at:h}}const l=n.displaced.all,s=l.length?l[0]:null;if(e)return s?i(s):null;const d=qr(r,t);if(!s){if(!d.length)return null;const g=d[d.length-1];return i(g.descriptor.id)}const f=d.findIndex(g=>g.descriptor.id===s);f===-1&&P();const c=f-1;if(c<0)return null;const u=d[c];return i(u.descriptor.id)},tr=(e,r)=>e.descriptor.droppableId===r.descriptor.id;const vn={point:ge,value:0},mr={invisible:{},visible:{},all:[]},eh={displaced:mr,displacedBy:vn,at:null};var Ie=(e,r)=>o=>e<=o&&o<=r,yn=e=>{const r=Ie(e.top,e.bottom),o=Ie(e.left,e.right);return t=>{if(r(t.top)&&r(t.bottom)&&o(t.left)&&o(t.right))return!0;const a=r(t.top)||r(t.bottom),i=o(t.left)||o(t.right);if(a&&i)return!0;const s=t.top<e.top&&t.bottom>e.bottom,d=t.left<e.left&&t.right>e.right;return s&&d?!0:s&&i||d&&a}},rh=e=>{const r=Ie(e.top,e.bottom),o=Ie(e.left,e.right);return t=>r(t.top)&&r(t.bottom)&&o(t.left)&&o(t.right)};const To={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},xn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var oh=e=>r=>{const o=Ie(r.top,r.bottom),t=Ie(r.left,r.right);return n=>e===To?o(n.top)&&o(n.bottom):t(n.left)&&t(n.right)};const th=(e,r)=>{const o=r.frame?r.frame.scroll.diff.displacement:ge;return kr(e,o)},nh=(e,r,o)=>r.subject.active?o(r.subject.active)(e):!1,ah=(e,r,o)=>o(r)(e),No=({target:e,destination:r,viewport:o,withDroppableDisplacement:t,isVisibleThroughFrameFn:n})=>{const a=t?th(e,r):e;return nh(a,r,n)&&ah(a,o,n)},ih=e=>No({...e,isVisibleThroughFrameFn:yn}),kn=e=>No({...e,isVisibleThroughFrameFn:rh}),lh=e=>No({...e,isVisibleThroughFrameFn:oh(e.destination.axis)}),sh=(e,r,o)=>{if(typeof o=="boolean")return o;if(!r)return!0;const{invisible:t,visible:n}=r;if(t[e])return!1;const a=n[e];return a?a.shouldAnimate:!0};function ch(e,r){const o=e.page.marginBox,t={top:r.point.y,right:0,bottom:0,left:r.point.x};return Ae(Io(o,t))}function br({afterDragging:e,destination:r,displacedBy:o,viewport:t,forceShouldAnimate:n,last:a}){return e.reduce(function(l,s){const d=ch(s,o),f=s.descriptor.id;if(l.all.push(f),!ih({target:d,destination:r,viewport:t,withDroppableDisplacement:!0}))return l.invisible[s.descriptor.id]=!0,l;const u=sh(f,a,n),g={draggableId:f,shouldAnimate:u};return l.visible[f]=g,l},{all:[],visible:{},invisible:{}})}function dh(e,r){if(!e.length)return 0;const o=e[e.length-1].descriptor.index;return r.inHomeList?o:o+1}function xt({insideDestination:e,inHomeList:r,displacedBy:o,destination:t}){const n=dh(e,{inHomeList:r});return{displaced:mr,displacedBy:o,at:{type:"REORDER",destination:{droppableId:t.descriptor.id,index:n}}}}function Lr({draggable:e,insideDestination:r,destination:o,viewport:t,displacedBy:n,last:a,index:i,forceShouldAnimate:l}){const s=tr(e,o);if(i==null)return xt({insideDestination:r,inHomeList:s,displacedBy:n,destination:o});const d=r.find(h=>h.descriptor.index===i);if(!d)return xt({insideDestination:r,inHomeList:s,displacedBy:n,destination:o});const f=qr(e,r),c=r.indexOf(d),u=f.slice(c);return{displaced:br({afterDragging:u,destination:o,displacedBy:n,last:a,viewport:t.frame,forceShouldAnimate:l}),displacedBy:n,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function We(e,r){return!!r.effected[e]}var uh=({isMovingForward:e,destination:r,draggables:o,combine:t,afterCritical:n})=>{if(!r.isCombineEnabled)return null;const a=t.draggableId,l=o[a].descriptor.index;return We(a,n)?e?l:l-1:e?l+1:l},fh=({isMovingForward:e,isInHomeList:r,insideDestination:o,location:t})=>{if(!o.length)return null;const n=t.index,a=e?n+1:n-1,i=o[0].descriptor.index,l=o[o.length-1].descriptor.index,s=r?l:l+1;return a<i||a>s?null:a},gh=({isMovingForward:e,isInHomeList:r,draggable:o,draggables:t,destination:n,insideDestination:a,previousImpact:i,viewport:l,afterCritical:s})=>{const d=i.at;if(d||P(),d.type==="REORDER"){const c=fh({isMovingForward:e,isInHomeList:r,location:d.destination,insideDestination:a});return c==null?null:Lr({draggable:o,insideDestination:a,destination:n,viewport:l,last:i.displaced,displacedBy:i.displacedBy,index:c})}const f=uh({isMovingForward:e,destination:n,displaced:i.displaced,draggables:t,combine:d.combine,afterCritical:s});return f==null?null:Lr({draggable:o,insideDestination:a,destination:n,viewport:l,last:i.displaced,displacedBy:i.displacedBy,index:f})},ph=({displaced:e,afterCritical:r,combineWith:o,displacedBy:t})=>{const n=!!(e.visible[o]||e.invisible[o]);return We(o,r)?n?ge:rr(t.point):n?t.point:ge},mh=({afterCritical:e,impact:r,draggables:o})=>{const t=Vr(r);t||P();const n=t.draggableId,a=o[n].page.borderBox.center,i=ph({displaced:r.displaced,afterCritical:e,combineWith:n,displacedBy:r.displacedBy});return pe(a,i)};const wn=(e,r)=>r.margin[e.start]+r.borderBox[e.size]/2,bh=(e,r)=>r.margin[e.end]+r.borderBox[e.size]/2,_o=(e,r,o)=>r[e.crossAxisStart]+o.margin[e.crossAxisStart]+o.borderBox[e.crossAxisSize]/2,kt=({axis:e,moveRelativeTo:r,isMoving:o})=>qe(e.line,r.marginBox[e.end]+wn(e,o),_o(e,r.marginBox,o)),wt=({axis:e,moveRelativeTo:r,isMoving:o})=>qe(e.line,r.marginBox[e.start]-bh(e,o),_o(e,r.marginBox,o)),hh=({axis:e,moveInto:r,isMoving:o})=>qe(e.line,r.contentBox[e.start]+wn(e,o),_o(e,r.contentBox,o));var vh=({impact:e,draggable:r,draggables:o,droppable:t,afterCritical:n})=>{const a=or(t.descriptor.id,o),i=r.page,l=t.axis;if(!a.length)return hh({axis:l,moveInto:t.page,isMoving:i});const{displaced:s,displacedBy:d}=e,f=s.all[0];if(f){const u=o[f];if(We(f,n))return wt({axis:l,moveRelativeTo:u.page,isMoving:i});const g=Ar(u.page,d.point);return wt({axis:l,moveRelativeTo:g,isMoving:i})}const c=a[a.length-1];if(c.descriptor.id===r.descriptor.id)return i.borderBox.center;if(We(c.descriptor.id,n)){const u=Ar(c.page,rr(n.displacedBy.point));return kt({axis:l,moveRelativeTo:u,isMoving:i})}return kt({axis:l,moveRelativeTo:c.page,isMoving:i})},xo=(e,r)=>{const o=e.frame;return o?pe(r,o.scroll.diff.displacement):r};const yh=({impact:e,draggable:r,droppable:o,draggables:t,afterCritical:n})=>{const a=r.page.borderBox.center,i=e.at;return!o||!i?a:i.type==="REORDER"?vh({impact:e,draggable:r,draggables:t,droppable:o,afterCritical:n}):mh({impact:e,draggables:t,afterCritical:n})};var Yr=e=>{const r=yh(e),o=e.droppable;return o?xo(o,r):r},Cn=(e,r)=>{const o=Ce(r,e.scroll.initial),t=rr(o);return{frame:Ae({top:r.y,bottom:r.y+e.frame.height,left:r.x,right:r.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:r,diff:{value:o,displacement:t}}}};function Ct(e,r){return e.map(o=>r[o])}function xh(e,r){for(let o=0;o<r.length;o++){const t=r[o].visible[e];if(t)return t}return null}var kh=({impact:e,viewport:r,destination:o,draggables:t,maxScrollChange:n})=>{const a=Cn(r,pe(r.scroll.current,n)),i=o.frame?Ao(o,pe(o.frame.scroll.current,n)):o,l=e.displaced,s=br({afterDragging:Ct(l.all,t),destination:o,displacedBy:e.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),d=br({afterDragging:Ct(l.all,t),destination:i,displacedBy:e.displacedBy,viewport:r.frame,last:l,forceShouldAnimate:!1}),f={},c={},u=[l,s,d];return l.all.forEach(h=>{const p=xh(h,u);if(p){c[h]=p;return}f[h]=!0}),{...e,displaced:{all:l.all,invisible:f,visible:c}}},wh=(e,r)=>pe(e.scroll.diff.displacement,r),Lo=({pageBorderBoxCenter:e,draggable:r,viewport:o})=>{const t=wh(o,e),n=Ce(t,r.page.borderBox.center);return pe(r.client.borderBox.center,n)},$n=({draggable:e,destination:r,newPageBorderBoxCenter:o,viewport:t,withDroppableDisplacement:n,onlyOnMainAxis:a=!1})=>{const i=Ce(o,e.page.borderBox.center),s={target:kr(e.page.borderBox,i),destination:r,withDroppableDisplacement:n,viewport:t};return a?lh(s):kn(s)},Ch=({isMovingForward:e,draggable:r,destination:o,draggables:t,previousImpact:n,viewport:a,previousPageBorderBoxCenter:i,previousClientSelection:l,afterCritical:s})=>{if(!o.isEnabled)return null;const d=or(o.descriptor.id,t),f=tr(r,o),c=Zb({isMovingForward:e,draggable:r,destination:o,insideDestination:d,previousImpact:n})||gh({isMovingForward:e,isInHomeList:f,draggable:r,draggables:t,destination:o,insideDestination:d,previousImpact:n,viewport:a,afterCritical:s});if(!c)return null;const u=Yr({impact:c,draggable:r,droppable:o,draggables:t,afterCritical:s});if($n({draggable:r,destination:o,newPageBorderBoxCenter:u,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Lo({pageBorderBoxCenter:u,draggable:r,viewport:a}),impact:c,scrollJumpRequest:null};const h=Ce(u,i),p=kh({impact:c,viewport:a,destination:o,draggables:t,maxScrollChange:h});return{clientSelection:l,impact:p,scrollJumpRequest:h}};const be=e=>{const r=e.subject.active;return r||P(),r};var $h=({isMovingForward:e,pageBorderBoxCenter:r,source:o,droppables:t,viewport:n})=>{const a=o.subject.active;if(!a)return null;const i=o.axis,l=Ie(a[i.start],a[i.end]),s=Ur(t).filter(f=>f!==o).filter(f=>f.isEnabled).filter(f=>!!f.subject.active).filter(f=>yn(n.frame)(be(f))).filter(f=>{const c=be(f);return e?a[i.crossAxisEnd]<c[i.crossAxisEnd]:c[i.crossAxisStart]<a[i.crossAxisStart]}).filter(f=>{const c=be(f),u=Ie(c[i.start],c[i.end]);return l(c[i.start])||l(c[i.end])||u(a[i.start])||u(a[i.end])}).sort((f,c)=>{const u=be(f)[i.crossAxisStart],g=be(c)[i.crossAxisStart];return e?u-g:g-u}).filter((f,c,u)=>be(f)[i.crossAxisStart]===be(u[0])[i.crossAxisStart]);if(!s.length)return null;if(s.length===1)return s[0];const d=s.filter(f=>Ie(be(f)[i.start],be(f)[i.end])(r[i.line]));return d.length===1?d[0]:d.length>1?d.sort((f,c)=>be(f)[i.start]-be(c)[i.start])[0]:s.sort((f,c)=>{const u=vt(r,yt(be(f))),g=vt(r,yt(be(c)));return u!==g?u-g:be(f)[i.start]-be(c)[i.start]})[0]};const $t=(e,r)=>{const o=e.page.borderBox.center;return We(e.descriptor.id,r)?Ce(o,r.displacedBy.point):o},Bh=(e,r)=>{const o=e.page.borderBox;return We(e.descriptor.id,r)?kr(o,rr(r.displacedBy.point)):o};var zh=({pageBorderBoxCenter:e,viewport:r,destination:o,insideDestination:t,afterCritical:n})=>t.filter(i=>kn({target:Bh(i,n),destination:o,viewport:r.frame,withDroppableDisplacement:!0})).sort((i,l)=>{const s=pr(e,xo(o,$t(i,n))),d=pr(e,xo(o,$t(l,n)));return s<d?-1:d<s?1:i.descriptor.index-l.descriptor.index})[0]||null,wr=fe(function(r,o){const t=o[r.line];return{value:t,point:qe(r.line,t)}});const Sh=(e,r,o)=>{const t=e.axis;if(e.descriptor.mode==="virtual")return qe(t.line,r[t.line]);const n=e.subject.page.contentBox[t.size],s=or(e.descriptor.id,o).reduce((d,f)=>d+f.client.marginBox[t.size],0)+r[t.line]-n;return s<=0?null:qe(t.line,s)},Bn=(e,r)=>({...e,scroll:{...e.scroll,max:r}}),zn=(e,r,o)=>{const t=e.frame;tr(r,e)&&P(),e.subject.withPlaceholder&&P();const n=wr(e.axis,r.displaceBy).point,a=Sh(e,n,o),i={placeholderSize:n,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!t){const f=Je({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:e.frame});return{...e,subject:f}}const l=a?pe(t.scroll.max,a):t.scroll.max,s=Bn(t,l),d=Je({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:s});return{...e,subject:d,frame:s}},Rh=e=>{const r=e.subject.withPlaceholder;r||P();const o=e.frame;if(!o){const i=Je({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:i}}const t=r.oldFrameMaxScroll;t||P();const n=Bn(o,t),a=Je({page:e.subject.page,axis:e.axis,frame:n,withPlaceholder:null});return{...e,subject:a,frame:n}};var Dh=({previousPageBorderBoxCenter:e,moveRelativeTo:r,insideDestination:o,draggable:t,draggables:n,destination:a,viewport:i,afterCritical:l})=>{if(!r){if(o.length)return null;const c={displaced:mr,displacedBy:vn,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=Yr({impact:c,draggable:t,droppable:a,draggables:n,afterCritical:l}),g=tr(t,a)?a:zn(a,t,n);return $n({draggable:t,destination:g,newPageBorderBoxCenter:u,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}const s=e[a.axis.line]<=r.page.borderBox.center[a.axis.line],d=(()=>{const c=r.descriptor.index;return r.descriptor.id===t.descriptor.id||s?c:c+1})(),f=wr(a.axis,t.displaceBy);return Lr({draggable:t,insideDestination:o,destination:a,viewport:i,displacedBy:f,last:mr,index:d})},Eh=({isMovingForward:e,previousPageBorderBoxCenter:r,draggable:o,isOver:t,draggables:n,droppables:a,viewport:i,afterCritical:l})=>{const s=$h({isMovingForward:e,pageBorderBoxCenter:r,source:t,droppables:a,viewport:i});if(!s)return null;const d=or(s.descriptor.id,n),f=zh({pageBorderBoxCenter:r,viewport:i,destination:s,insideDestination:d,afterCritical:l}),c=Dh({previousPageBorderBoxCenter:r,destination:s,draggable:o,draggables:n,moveRelativeTo:f,insideDestination:d,viewport:i,afterCritical:l});if(!c)return null;const u=Yr({impact:c,draggable:o,droppable:s,draggables:n,afterCritical:l});return{clientSelection:Lo({pageBorderBoxCenter:u,draggable:o,viewport:i}),impact:c,scrollJumpRequest:null}},$e=e=>{const r=e.at;return r?r.type==="REORDER"?r.destination.droppableId:r.combine.droppableId:null};const Ih=(e,r)=>{const o=$e(e);return o?r[o]:null};var Ph=({state:e,type:r})=>{const o=Ih(e.impact,e.dimensions.droppables),t=!!o,n=e.dimensions.droppables[e.critical.droppable.id],a=o||n,i=a.axis.direction,l=i==="vertical"&&(r==="MOVE_UP"||r==="MOVE_DOWN")||i==="horizontal"&&(r==="MOVE_LEFT"||r==="MOVE_RIGHT");if(l&&!t)return null;const s=r==="MOVE_DOWN"||r==="MOVE_RIGHT",d=e.dimensions.draggables[e.critical.draggable.id],f=e.current.page.borderBoxCenter,{draggables:c,droppables:u}=e.dimensions;return l?Ch({isMovingForward:s,previousPageBorderBoxCenter:f,draggable:d,destination:a,draggables:c,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):Eh({isMovingForward:s,previousPageBorderBoxCenter:f,draggable:d,isOver:a,draggables:c,droppables:u,viewport:e.viewport,afterCritical:e.afterCritical})};function Ue(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function Sn(e){const r=Ie(e.top,e.bottom),o=Ie(e.left,e.right);return function(n){return r(n.y)&&o(n.x)}}function Ah(e,r){return e.left<r.right&&e.right>r.left&&e.top<r.bottom&&e.bottom>r.top}function Oh({pageBorderBox:e,draggable:r,candidates:o}){const t=r.page.borderBox.center,n=o.map(a=>{const i=a.axis,l=qe(a.axis.line,e.center[i.line],a.page.borderBox.center[i.crossAxisLine]);return{id:a.descriptor.id,distance:pr(t,l)}}).sort((a,i)=>i.distance-a.distance);return n[0]?n[0].id:null}function Th({pageBorderBox:e,draggable:r,droppables:o}){const t=Ur(o).filter(n=>{if(!n.isEnabled)return!1;const a=n.subject.active;if(!a||!Ah(e,a))return!1;if(Sn(a)(e.center))return!0;const i=n.axis,l=a.center[i.crossAxisLine],s=e[i.crossAxisStart],d=e[i.crossAxisEnd],f=Ie(a[i.crossAxisStart],a[i.crossAxisEnd]),c=f(s),u=f(d);return!c&&!u?!0:c?s<l:d>l});return t.length?t.length===1?t[0].descriptor.id:Oh({pageBorderBox:e,draggable:r,candidates:t}):null}const Rn=(e,r)=>Ae(kr(e,r));var Nh=(e,r)=>{const o=e.frame;return o?Rn(r,o.scroll.diff.value):r};function Dn({displaced:e,id:r}){return!!(e.visible[r]||e.invisible[r])}function _h({draggable:e,closest:r,inHomeList:o}){return r?o&&r.descriptor.index>e.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}var Lh=({pageBorderBoxWithDroppableScroll:e,draggable:r,destination:o,insideDestination:t,last:n,viewport:a,afterCritical:i})=>{const l=o.axis,s=wr(o.axis,r.displaceBy),d=s.value,f=e[l.start],c=e[l.end],g=qr(r,t).find(p=>{const m=p.descriptor.id,v=p.page.borderBox.center[l.line],$=We(m,i),O=Dn({displaced:n,id:m});return $?O?c<=v:f<v-d:O?c<=v+d:f<v})||null,h=_h({draggable:r,closest:g,inHomeList:tr(r,o)});return Lr({draggable:r,insideDestination:t,destination:o,viewport:a,last:n,displacedBy:s,index:h})};const Fh=4;var Mh=({draggable:e,pageBorderBoxWithDroppableScroll:r,previousImpact:o,destination:t,insideDestination:n,afterCritical:a})=>{if(!t.isCombineEnabled)return null;const i=t.axis,l=wr(t.axis,e.displaceBy),s=l.value,d=r[i.start],f=r[i.end],u=qr(e,n).find(h=>{const p=h.descriptor.id,m=h.page.borderBox,$=m[i.size]/Fh,O=We(p,a),A=Dn({displaced:o.displaced,id:p});return O?A?f>m[i.start]+$&&f<m[i.end]-$:d>m[i.start]-s+$&&d<m[i.end]-s-$:A?f>m[i.start]+s+$&&f<m[i.end]+s-$:d>m[i.start]+$&&d<m[i.end]-$});return u?{displacedBy:l,displaced:o.displaced,at:{type:"COMBINE",combine:{draggableId:u.descriptor.id,droppableId:t.descriptor.id}}}:null},En=({pageOffset:e,draggable:r,draggables:o,droppables:t,previousImpact:n,viewport:a,afterCritical:i})=>{const l=Rn(r.page.borderBox,e),s=Th({pageBorderBox:l,draggable:r,droppables:t});if(!s)return eh;const d=t[s],f=or(d.descriptor.id,o),c=Nh(d,l);return Mh({pageBorderBoxWithDroppableScroll:c,draggable:r,previousImpact:n,destination:d,insideDestination:f,afterCritical:i})||Lh({pageBorderBoxWithDroppableScroll:c,draggable:r,destination:d,insideDestination:f,last:n.displaced,viewport:a,afterCritical:i})},Fo=(e,r)=>({...e,[r.descriptor.id]:r});const Wh=({previousImpact:e,impact:r,droppables:o})=>{const t=$e(e),n=$e(r);if(!t||t===n)return o;const a=o[t];if(!a.subject.withPlaceholder)return o;const i=Rh(a);return Fo(o,i)};var Gh=({draggable:e,draggables:r,droppables:o,previousImpact:t,impact:n})=>{const a=Wh({previousImpact:t,impact:n,droppables:o}),i=$e(n);if(!i)return a;const l=o[i];if(tr(e,l)||l.subject.withPlaceholder)return a;const s=zn(l,e,r);return Fo(a,s)},dr=({state:e,clientSelection:r,dimensions:o,viewport:t,impact:n,scrollJumpRequest:a})=>{const i=t||e.viewport,l=o||e.dimensions,s=r||e.current.client.selection,d=Ce(s,e.initial.client.selection),f={offset:d,selection:s,borderBoxCenter:pe(e.initial.client.borderBoxCenter,d)},c={selection:pe(f.selection,i.scroll.current),borderBoxCenter:pe(f.borderBoxCenter,i.scroll.current),offset:pe(f.offset,i.scroll.diff.value)},u={client:f,page:c};if(e.phase==="COLLECTING")return{...e,dimensions:l,viewport:i,current:u};const g=l.draggables[e.critical.draggable.id],h=n||En({pageOffset:c.offset,draggable:g,draggables:l.draggables,droppables:l.droppables,previousImpact:e.impact,viewport:i,afterCritical:e.afterCritical}),p=Gh({draggable:g,impact:h,previousImpact:e.impact,draggables:l.draggables,droppables:l.droppables});return{...e,current:u,dimensions:{draggables:l.draggables,droppables:p},impact:h,viewport:i,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null}};function Hh(e,r){return e.map(o=>r[o])}var In=({impact:e,viewport:r,draggables:o,destination:t,forceShouldAnimate:n})=>{const a=e.displaced,i=Hh(a.all,o),l=br({afterDragging:i,destination:t,displacedBy:e.displacedBy,viewport:r.frame,forceShouldAnimate:n,last:a});return{...e,displaced:l}},Pn=({impact:e,draggable:r,droppable:o,draggables:t,viewport:n,afterCritical:a})=>{const i=Yr({impact:e,draggable:r,draggables:t,droppable:o,afterCritical:a});return Lo({pageBorderBoxCenter:i,draggable:r,viewport:n})},An=({state:e,dimensions:r,viewport:o})=>{e.movementMode!=="SNAP"&&P();const t=e.impact,n=o||e.viewport,a=r||e.dimensions,{draggables:i,droppables:l}=a,s=i[e.critical.draggable.id],d=$e(t);d||P();const f=l[d],c=In({impact:t,viewport:n,destination:f,draggables:i}),u=Pn({impact:c,draggable:s,droppable:f,draggables:i,viewport:n,afterCritical:e.afterCritical});return dr({impact:c,clientSelection:u,state:e,dimensions:a,viewport:n})},jh=e=>({index:e.index,droppableId:e.droppableId}),On=({draggable:e,home:r,draggables:o,viewport:t})=>{const n=wr(r.axis,e.displaceBy),a=or(r.descriptor.id,o),i=a.indexOf(e);i===-1&&P();const l=a.slice(i+1),s=l.reduce((u,g)=>(u[g.descriptor.id]=!0,u),{}),d={inVirtualList:r.descriptor.mode==="virtual",displacedBy:n,effected:s};return{impact:{displaced:br({afterDragging:l,destination:r,displacedBy:n,last:null,viewport:t.frame,forceShouldAnimate:!1}),displacedBy:n,at:{type:"REORDER",destination:jh(e.descriptor)}},afterCritical:d}},Uh=(e,r)=>({draggables:e.draggables,droppables:Fo(e.droppables,r)}),Vh=({draggable:e,offset:r,initialWindowScroll:o})=>{const t=Ar(e.client,r),n=Or(t,o);return{...e,placeholder:{...e.placeholder,client:t},client:t,page:n}},qh=e=>{const r=e.frame;return r||P(),r},Yh=({additions:e,updatedDroppables:r,viewport:o})=>{const t=o.scroll.diff.value;return e.map(n=>{const a=n.descriptor.droppableId,i=r[a],s=qh(i).scroll.diff.value,d=pe(t,s);return Vh({draggable:n,offset:d,initialWindowScroll:o.scroll.initial})})},Xh=({state:e,published:r})=>{const o=r.modified.map(v=>{const $=e.dimensions.droppables[v.droppableId];return Ao($,v.scroll)}),t={...e.dimensions.droppables,...bn(o)},n=hn(Yh({additions:r.additions,updatedDroppables:t,viewport:e.viewport})),a={...e.dimensions.draggables,...n};r.removals.forEach(v=>{delete a[v]});const i={droppables:t,draggables:a},l=$e(e.impact),s=l?i.droppables[l]:null,d=i.draggables[e.critical.draggable.id],f=i.droppables[e.critical.droppable.id],{impact:c,afterCritical:u}=On({draggable:d,home:f,draggables:a,viewport:e.viewport}),g=s&&s.isCombineEnabled?e.impact:c,h=En({pageOffset:e.current.page.offset,draggable:i.draggables[e.critical.draggable.id],draggables:i.draggables,droppables:i.droppables,previousImpact:g,viewport:e.viewport,afterCritical:u}),p={...e,phase:"DRAGGING",impact:h,onLiftImpact:c,dimensions:i,afterCritical:u,forceShouldAnimate:!1};return e.phase==="COLLECTING"?p:{...p,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}};const ko=e=>e.movementMode==="SNAP",io=(e,r,o)=>{const t=Uh(e.dimensions,r);return!ko(e)||o?dr({state:e,dimensions:t}):An({state:e,dimensions:t})};function lo(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const Bt={phase:"IDLE",completed:null,shouldFlush:!1};var Jh=(e=Bt,r)=>{if(r.type==="FLUSH")return{...Bt,shouldFlush:!0};if(r.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&P();const{critical:o,clientSelection:t,viewport:n,dimensions:a,movementMode:i}=r.payload,l=a.draggables[o.draggable.id],s=a.droppables[o.droppable.id],d={selection:t,borderBoxCenter:l.client.borderBox.center,offset:ge},f={client:d,page:{selection:pe(d.selection,n.scroll.initial),borderBoxCenter:pe(d.selection,n.scroll.initial),offset:pe(d.selection,n.scroll.diff.value)}},c=Ur(a.droppables).every(p=>!p.isFixedOnPage),{impact:u,afterCritical:g}=On({draggable:l,home:s,draggables:a.draggables,viewport:n});return{phase:"DRAGGING",isDragging:!0,critical:o,movementMode:i,dimensions:a,initial:f,current:f,isWindowScrollAllowed:c,impact:u,afterCritical:g,onLiftImpact:u,viewport:n,scrollJumpRequest:null,forceShouldAnimate:null}}if(r.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&P(),{...e,phase:"COLLECTING"});if(r.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||P(),Xh({state:e,published:r.payload});if(r.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Ue(e)||P();const{client:o}=r.payload;return Me(o,e.current.client.selection)?e:dr({state:e,clientSelection:o,impact:ko(e)?e.impact:null})}if(r.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return lo(e);Ue(e)||P();const{id:o,newScroll:t}=r.payload,n=e.dimensions.droppables[o];if(!n)return e;const a=Ao(n,t);return io(e,a,!1)}if(r.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ue(e)||P();const{id:o,isEnabled:t}=r.payload,n=e.dimensions.droppables[o];n||P(),n.isEnabled===t&&P();const a={...n,isEnabled:t};return io(e,a,!0)}if(r.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ue(e)||P();const{id:o,isCombineEnabled:t}=r.payload,n=e.dimensions.droppables[o];n||P(),n.isCombineEnabled===t&&P();const a={...n,isCombineEnabled:t};return io(e,a,!0)}if(r.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Ue(e)||P(),e.isWindowScrollAllowed||P();const o=r.payload.newScroll;if(Me(e.viewport.scroll.current,o))return lo(e);const t=Cn(e.viewport,o);return ko(e)?An({state:e,viewport:t}):dr({state:e,viewport:t})}if(r.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Ue(e))return e;const o=r.payload.maxScroll;if(Me(o,e.viewport.scroll.max))return e;const t={...e.viewport,scroll:{...e.viewport.scroll,max:o}};return{...e,viewport:t}}if(r.type==="MOVE_UP"||r.type==="MOVE_DOWN"||r.type==="MOVE_LEFT"||r.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&P();const o=Ph({state:e,type:r.type});return o?dr({state:e,impact:o.impact,clientSelection:o.clientSelection,scrollJumpRequest:o.scrollJumpRequest}):e}if(r.type==="DROP_PENDING"){const o=r.payload.reason;return e.phase!=="COLLECTING"&&P(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:o}}if(r.type==="DROP_ANIMATE"){const{completed:o,dropDuration:t,newHomeClientOffset:n}=r.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||P(),{phase:"DROP_ANIMATING",completed:o,dropDuration:t,newHomeClientOffset:n,dimensions:e.dimensions}}if(r.type==="DROP_COMPLETE"){const{completed:o}=r.payload;return{phase:"IDLE",completed:o,shouldFlush:!1}}return e};function ae(e,r){return e instanceof Object&&"type"in e&&e.type===r}const Kh=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),Qh=e=>({type:"LIFT",payload:e}),Zh=e=>({type:"INITIAL_PUBLISH",payload:e}),ev=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),rv=()=>({type:"COLLECTION_STARTING",payload:null}),ov=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),tv=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),nv=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),Tn=e=>({type:"MOVE",payload:e}),av=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),iv=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),lv=()=>({type:"MOVE_UP",payload:null}),sv=()=>({type:"MOVE_DOWN",payload:null}),cv=()=>({type:"MOVE_RIGHT",payload:null}),dv=()=>({type:"MOVE_LEFT",payload:null}),Mo=()=>({type:"FLUSH",payload:null}),uv=e=>({type:"DROP_ANIMATE",payload:e}),Wo=e=>({type:"DROP_COMPLETE",payload:e}),Nn=e=>({type:"DROP",payload:e}),fv=e=>({type:"DROP_PENDING",payload:e}),_n=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var gv=e=>({getState:r,dispatch:o})=>t=>n=>{if(!ae(n,"LIFT")){t(n);return}const{id:a,clientSelection:i,movementMode:l}=n.payload,s=r();s.phase==="DROP_ANIMATING"&&o(Wo({completed:s.completed})),r().phase!=="IDLE"&&P(),o(Mo()),o(Kh({draggableId:a,movementMode:l}));const f={draggableId:a,scrollOptions:{shouldPublishImmediately:l==="SNAP"}},{critical:c,dimensions:u,viewport:g}=e.startPublishing(f);o(Zh({critical:c,dimensions:u,clientSelection:i,movementMode:l,viewport:g}))},pv=e=>()=>r=>o=>{ae(o,"INITIAL_PUBLISH")&&e.dragging(),ae(o,"DROP_ANIMATE")&&e.dropping(o.payload.completed.result.reason),(ae(o,"FLUSH")||ae(o,"DROP_COMPLETE"))&&e.resting(),r(o)};const Go={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},hr={opacity:{drop:0,combining:.7},scale:{drop:.75}},Ln={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},je=`${Ln.outOfTheWay}s ${Go.outOfTheWay}`,ur={fluid:`opacity ${je}`,snap:`transform ${je}, opacity ${je}`,drop:e=>{const r=`${e}s ${Go.drop}`;return`transform ${r}, opacity ${r}`},outOfTheWay:`transform ${je}`,placeholder:`height ${je}, width ${je}, margin ${je}`},zt=e=>Me(e,ge)?void 0:`translate(${e.x}px, ${e.y}px)`,wo={moveTo:zt,drop:(e,r)=>{const o=zt(e);if(o)return r?`${o} scale(${hr.scale.drop})`:o}},{minDropTime:Co,maxDropTime:Fn}=Ln,mv=Fn-Co,St=1500,bv=.6;var hv=({current:e,destination:r,reason:o})=>{const t=pr(e,r);if(t<=0)return Co;if(t>=St)return Fn;const n=t/St,a=Co+mv*n,i=o==="CANCEL"?a*bv:a;return Number(i.toFixed(2))},vv=({impact:e,draggable:r,dimensions:o,viewport:t,afterCritical:n})=>{const{draggables:a,droppables:i}=o,l=$e(e),s=l?i[l]:null,d=i[r.descriptor.droppableId],f=Pn({impact:e,draggable:r,draggables:a,afterCritical:n,droppable:s||d,viewport:t});return Ce(f,r.client.borderBox.center)},yv=({draggables:e,reason:r,lastImpact:o,home:t,viewport:n,onLiftImpact:a})=>!o.at||r!=="DROP"?{impact:In({draggables:e,impact:a,destination:t,viewport:n,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:o.at.type==="REORDER"?{impact:o,didDropInsideDroppable:!0}:{impact:{...o,displaced:mr},didDropInsideDroppable:!0};const xv=({getState:e,dispatch:r})=>o=>t=>{if(!ae(t,"DROP")){o(t);return}const n=e(),a=t.payload.reason;if(n.phase==="COLLECTING"){r(fv({reason:a}));return}if(n.phase==="IDLE")return;n.phase==="DROP_PENDING"&&n.isWaiting&&P(),n.phase==="DRAGGING"||n.phase==="DROP_PENDING"||P();const l=n.critical,s=n.dimensions,d=s.draggables[n.critical.draggable.id],{impact:f,didDropInsideDroppable:c}=yv({reason:a,lastImpact:n.impact,afterCritical:n.afterCritical,onLiftImpact:n.onLiftImpact,home:n.dimensions.droppables[n.critical.droppable.id],viewport:n.viewport,draggables:n.dimensions.draggables}),u=c?Oo(f):null,g=c?Vr(f):null,h={index:l.draggable.index,droppableId:l.droppable.id},p={draggableId:d.descriptor.id,type:d.descriptor.type,source:h,reason:a,mode:n.movementMode,destination:u,combine:g},m=vv({impact:f,draggable:d,dimensions:s,viewport:n.viewport,afterCritical:n.afterCritical}),v={critical:n.critical,afterCritical:n.afterCritical,result:p,impact:f};if(!(!Me(n.current.client.offset,m)||!!p.combine)){r(Wo({completed:v}));return}const O=hv({current:n.current.client.offset,destination:m,reason:a});r(uv({newHomeClientOffset:m,dropDuration:O,completed:v}))};var Mn=()=>({x:window.pageXOffset,y:window.pageYOffset});function kv(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:r=>{r.target!==window&&r.target!==window.document||e()}}}function wv({onWindowScroll:e}){function r(){e(Mn())}const o=gr(r),t=kv(o);let n=Fe;function a(){return n!==Fe}function i(){a()&&P(),n=Ee(window,[t])}function l(){a()||P(),o.cancel(),n(),n=Fe}return{start:i,stop:l,isActive:a}}const Cv=e=>ae(e,"DROP_COMPLETE")||ae(e,"DROP_ANIMATE")||ae(e,"FLUSH"),$v=e=>{const r=wv({onWindowScroll:o=>{e.dispatch(av({newScroll:o}))}});return o=>t=>{!r.isActive()&&ae(t,"INITIAL_PUBLISH")&&r.start(),r.isActive()&&Cv(t)&&r.stop(),o(t)}};var Bv=e=>{let r=!1,o=!1;const t=setTimeout(()=>{o=!0}),n=a=>{r||o||(r=!0,e(a),clearTimeout(t))};return n.wasCalled=()=>r,n},zv=()=>{const e=[],r=n=>{const a=e.findIndex(l=>l.timerId===n);a===-1&&P();const[i]=e.splice(a,1);i.callback()};return{add:n=>{const a=setTimeout(()=>r(a)),i={timerId:a,callback:n};e.push(i)},flush:()=>{if(!e.length)return;const n=[...e];e.length=0,n.forEach(a=>{clearTimeout(a.timerId),a.callback()})}}};const Sv=(e,r)=>e==null&&r==null?!0:e==null||r==null?!1:e.droppableId===r.droppableId&&e.index===r.index,Rv=(e,r)=>e==null&&r==null?!0:e==null||r==null?!1:e.draggableId===r.draggableId&&e.droppableId===r.droppableId,Dv=(e,r)=>{if(e===r)return!0;const o=e.draggable.id===r.draggable.id&&e.draggable.droppableId===r.draggable.droppableId&&e.draggable.type===r.draggable.type&&e.draggable.index===r.draggable.index,t=e.droppable.id===r.droppable.id&&e.droppable.type===r.droppable.type;return o&&t},ar=(e,r)=>{r()},Br=(e,r)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:r});function so(e,r,o,t){if(!e){o(t(r));return}const n=Bv(o);e(r,{announce:n}),n.wasCalled()||o(t(r))}var Ev=(e,r)=>{const o=zv();let t=null;const n=(c,u)=>{t&&P(),ar("onBeforeCapture",()=>{const g=e().onBeforeCapture;g&&g({draggableId:c,mode:u})})},a=(c,u)=>{t&&P(),ar("onBeforeDragStart",()=>{const g=e().onBeforeDragStart;g&&g(Br(c,u))})},i=(c,u)=>{t&&P();const g=Br(c,u);t={mode:u,lastCritical:c,lastLocation:g.source,lastCombine:null},o.add(()=>{ar("onDragStart",()=>so(e().onDragStart,g,r,Ir.onDragStart))})},l=(c,u)=>{const g=Oo(u),h=Vr(u);t||P();const p=!Dv(c,t.lastCritical);p&&(t.lastCritical=c);const m=!Sv(t.lastLocation,g);m&&(t.lastLocation=g);const v=!Rv(t.lastCombine,h);if(v&&(t.lastCombine=h),!p&&!m&&!v)return;const $={...Br(c,t.mode),combine:h,destination:g};o.add(()=>{ar("onDragUpdate",()=>so(e().onDragUpdate,$,r,Ir.onDragUpdate))})},s=()=>{t||P(),o.flush()},d=c=>{t||P(),t=null,ar("onDragEnd",()=>so(e().onDragEnd,c,r,Ir.onDragEnd))};return{beforeCapture:n,beforeStart:a,start:i,update:l,flush:s,drop:d,abort:()=>{if(!t)return;const c={...Br(t.lastCritical,t.mode),combine:null,destination:null,reason:"CANCEL"};d(c)}}},Iv=(e,r)=>{const o=Ev(e,r);return t=>n=>a=>{if(ae(a,"BEFORE_INITIAL_CAPTURE")){o.beforeCapture(a.payload.draggableId,a.payload.movementMode);return}if(ae(a,"INITIAL_PUBLISH")){const l=a.payload.critical;o.beforeStart(l,a.payload.movementMode),n(a),o.start(l,a.payload.movementMode);return}if(ae(a,"DROP_COMPLETE")){const l=a.payload.completed.result;o.flush(),n(a),o.drop(l);return}if(n(a),ae(a,"FLUSH")){o.abort();return}const i=t.getState();i.phase==="DRAGGING"&&o.update(i.critical,i.impact)}};const Pv=e=>r=>o=>{if(!ae(o,"DROP_ANIMATION_FINISHED")){r(o);return}const t=e.getState();t.phase!=="DROP_ANIMATING"&&P(),e.dispatch(Wo({completed:t.completed}))},Av=e=>{let r=null,o=null;function t(){o&&(cancelAnimationFrame(o),o=null),r&&(r(),r=null)}return n=>a=>{if((ae(a,"FLUSH")||ae(a,"DROP_COMPLETE")||ae(a,"DROP_ANIMATION_FINISHED"))&&t(),n(a),!ae(a,"DROP_ANIMATE"))return;const i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(_n())}};o=requestAnimationFrame(()=>{o=null,r=Ee(window,[i])})}};var Ov=e=>()=>r=>o=>{(ae(o,"DROP_COMPLETE")||ae(o,"FLUSH")||ae(o,"DROP_ANIMATE"))&&e.stopPublishing(),r(o)},Tv=e=>{let r=!1;return()=>o=>t=>{if(ae(t,"INITIAL_PUBLISH")){r=!0,e.tryRecordFocus(t.payload.critical.draggable.id),o(t),e.tryRestoreFocusRecorded();return}if(o(t),!!r){if(ae(t,"FLUSH")){r=!1,e.tryRestoreFocusRecorded();return}if(ae(t,"DROP_COMPLETE")){r=!1;const n=t.payload.completed.result;n.combine&&e.tryShiftRecord(n.draggableId,n.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const Nv=e=>ae(e,"DROP_COMPLETE")||ae(e,"DROP_ANIMATE")||ae(e,"FLUSH");var _v=e=>r=>o=>t=>{if(Nv(t)){e.stop(),o(t);return}if(ae(t,"INITIAL_PUBLISH")){o(t);const n=r.getState();n.phase!=="DRAGGING"&&P(),e.start(n);return}o(t),e.scroll(r.getState())};const Lv=e=>r=>o=>{if(r(o),!ae(o,"PUBLISH_WHILE_DRAGGING"))return;const t=e.getState();t.phase==="DROP_PENDING"&&(t.isWaiting||e.dispatch(Nn({reason:t.reason})))},Fv=rn;var Mv=({dimensionMarshal:e,focusMarshal:r,styleMarshal:o,getResponders:t,announce:n,autoScroller:a})=>en(Jh,Fv(F0(pv(o),Ov(e),gv(e),xv,Pv,Av,Lv,_v(a),$v,Tv(r),Iv(t,n))));const co=()=>({additions:{},removals:{},modified:{}});function Wv({registry:e,callbacks:r}){let o=co(),t=null;const n=()=>{t||(r.collectionStarting(),t=requestAnimationFrame(()=>{t=null;const{additions:s,removals:d,modified:f}=o,c=Object.keys(s).map(h=>e.draggable.getById(h).getDimension(ge)).sort((h,p)=>h.descriptor.index-p.descriptor.index),u=Object.keys(f).map(h=>{const m=e.droppable.getById(h).callbacks.getScrollWhileDragging();return{droppableId:h,scroll:m}}),g={additions:c,removals:Object.keys(d),modified:u};o=co(),r.publish(g)}))};return{add:s=>{const d=s.descriptor.id;o.additions[d]=s,o.modified[s.descriptor.droppableId]=!0,o.removals[d]&&delete o.removals[d],n()},remove:s=>{const d=s.descriptor;o.removals[d.id]=!0,o.modified[d.droppableId]=!0,o.additions[d.id]&&delete o.additions[d.id],n()},stop:()=>{t&&(cancelAnimationFrame(t),t=null,o=co())}}}var Wn=({scrollHeight:e,scrollWidth:r,height:o,width:t})=>{const n=Ce({x:r,y:e},{x:t,y:o});return{x:Math.max(0,n.x),y:Math.max(0,n.y)}},Gn=()=>{const e=document.documentElement;return e||P(),e},Hn=()=>{const e=Gn();return Wn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Gv=()=>{const e=Mn(),r=Hn(),o=e.y,t=e.x,n=Gn(),a=n.clientWidth,i=n.clientHeight,l=t+a,s=o+i;return{frame:Ae({top:o,left:t,right:l,bottom:s}),scroll:{initial:e,current:e,max:r,diff:{value:ge,displacement:ge}}}},Hv=({critical:e,scrollOptions:r,registry:o})=>{const t=Gv(),n=t.scroll.current,a=e.droppable,i=o.droppable.getAllByType(a.type).map(f=>f.callbacks.getDimensionAndWatchScroll(n,r)),l=o.draggable.getAllByType(e.draggable.type).map(f=>f.getDimension(n));return{dimensions:{draggables:hn(l),droppables:bn(i)},critical:e,viewport:t}};function Rt(e,r,o){return!(o.descriptor.id===r.id||o.descriptor.type!==r.type||e.droppable.getById(o.descriptor.droppableId).descriptor.mode!=="virtual")}var jv=(e,r)=>{let o=null;const t=Wv({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:e}),n=(u,g)=>{e.droppable.exists(u)||P(),o&&r.updateDroppableIsEnabled({id:u,isEnabled:g})},a=(u,g)=>{o&&(e.droppable.exists(u)||P(),r.updateDroppableIsCombineEnabled({id:u,isCombineEnabled:g}))},i=(u,g)=>{o&&(e.droppable.exists(u)||P(),r.updateDroppableScroll({id:u,newScroll:g}))},l=(u,g)=>{o&&e.droppable.getById(u).callbacks.scroll(g)},s=()=>{if(!o)return;t.stop();const u=o.critical.droppable;e.droppable.getAllByType(u.type).forEach(g=>g.callbacks.dragStopped()),o.unsubscribe(),o=null},d=u=>{o||P();const g=o.critical.draggable;u.type==="ADDITION"&&Rt(e,g,u.value)&&t.add(u.value),u.type==="REMOVAL"&&Rt(e,g,u.value)&&t.remove(u.value)};return{updateDroppableIsEnabled:n,updateDroppableIsCombineEnabled:a,scrollDroppable:l,updateDroppableScroll:i,startPublishing:u=>{o&&P();const g=e.draggable.getById(u.draggableId),h=e.droppable.getById(g.descriptor.droppableId),p={draggable:g.descriptor,droppable:h.descriptor},m=e.subscribe(d);return o={critical:p,unsubscribe:m},Hv({critical:p,registry:e,scrollOptions:u.scrollOptions})},stopPublishing:s}},jn=(e,r)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===r?!1:e.completed.result.reason==="DROP",Uv=e=>{window.scrollBy(e.x,e.y)};const Vv=fe(e=>Ur(e).filter(r=>!(!r.isEnabled||!r.frame))),qv=(e,r)=>Vv(r).find(t=>(t.frame||P(),Sn(t.frame.pageMarginBox)(e)))||null;var Yv=({center:e,destination:r,droppables:o})=>{if(r){const n=o[r];return n.frame?n:null}return qv(e,o)};const vr={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Xv=(e,r,o=()=>vr)=>{const t=o(),n=e[r.size]*t.startFromPercentage,a=e[r.size]*t.maxScrollAtPercentage;return{startScrollingFrom:n,maxScrollValueAt:a}},Un=({startOfRange:e,endOfRange:r,current:o})=>{const t=r-e;return t===0?0:(o-e)/t},Ho=1,Jv=(e,r,o=()=>vr)=>{const t=o();if(e>r.startScrollingFrom)return 0;if(e<=r.maxScrollValueAt)return t.maxPixelScroll;if(e===r.startScrollingFrom)return Ho;const a=1-Un({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),i=t.maxPixelScroll*t.ease(a);return Math.ceil(i)},Kv=(e,r,o)=>{const t=o(),n=t.durationDampening.accelerateAt,a=t.durationDampening.stopDampeningAt,i=r,l=a,d=Date.now()-i;if(d>=a)return e;if(d<n)return Ho;const f=Un({startOfRange:n,endOfRange:l,current:d}),c=e*t.ease(f);return Math.ceil(c)},Dt=({distanceToEdge:e,thresholds:r,dragStartTime:o,shouldUseTimeDampening:t,getAutoScrollerOptions:n})=>{const a=Jv(e,r,n);return a===0?0:t?Math.max(Kv(a,o,n),Ho):a},Et=({container:e,distanceToEdges:r,dragStartTime:o,axis:t,shouldUseTimeDampening:n,getAutoScrollerOptions:a})=>{const i=Xv(e,t,a);return r[t.end]<r[t.start]?Dt({distanceToEdge:r[t.end],thresholds:i,dragStartTime:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a}):-1*Dt({distanceToEdge:r[t.start],thresholds:i,dragStartTime:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a})},Qv=({container:e,subject:r,proposedScroll:o})=>{const t=r.height>e.height,n=r.width>e.width;return!n&&!t?o:n&&t?null:{x:n?0:o.x,y:t?0:o.y}};const Zv=mn(e=>e===0?0:e);var Vn=({dragStartTime:e,container:r,subject:o,center:t,shouldUseTimeDampening:n,getAutoScrollerOptions:a})=>{const i={top:t.y-r.top,right:r.right-t.x,bottom:r.bottom-t.y,left:t.x-r.left},l=Et({container:r,distanceToEdges:i,dragStartTime:e,axis:To,shouldUseTimeDampening:n,getAutoScrollerOptions:a}),s=Et({container:r,distanceToEdges:i,dragStartTime:e,axis:xn,shouldUseTimeDampening:n,getAutoScrollerOptions:a}),d=Zv({x:s,y:l});if(Me(d,ge))return null;const f=Qv({container:r,subject:o,proposedScroll:d});return f?Me(f,ge)?null:f:null};const ey=mn(e=>e===0?0:e>0?1:-1),jo=(()=>{const e=(r,o)=>r<0?r:r>o?r-o:0;return({current:r,max:o,change:t})=>{const n=pe(r,t),a={x:e(n.x,o.x),y:e(n.y,o.y)};return Me(a,ge)?null:a}})(),qn=({max:e,current:r,change:o})=>{const t={x:Math.max(r.x,e.x),y:Math.max(r.y,e.y)},n=ey(o),a=jo({max:t,current:r,change:n});return!a||n.x!==0&&a.x===0||n.y!==0&&a.y===0},Uo=(e,r)=>qn({current:e.scroll.current,max:e.scroll.max,change:r}),ry=(e,r)=>{if(!Uo(e,r))return null;const o=e.scroll.max,t=e.scroll.current;return jo({current:t,max:o,change:r})},Vo=(e,r)=>{const o=e.frame;return o?qn({current:o.scroll.current,max:o.scroll.max,change:r}):!1},oy=(e,r)=>{const o=e.frame;return!o||!Vo(e,r)?null:jo({current:o.scroll.current,max:o.scroll.max,change:r})};var ty=({viewport:e,subject:r,center:o,dragStartTime:t,shouldUseTimeDampening:n,getAutoScrollerOptions:a})=>{const i=Vn({dragStartTime:t,container:e.frame,subject:r,center:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a});return i&&Uo(e,i)?i:null},ny=({droppable:e,subject:r,center:o,dragStartTime:t,shouldUseTimeDampening:n,getAutoScrollerOptions:a})=>{const i=e.frame;if(!i)return null;const l=Vn({dragStartTime:t,container:i.pageMarginBox,subject:r,center:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a});return l&&Vo(e,l)?l:null},It=({state:e,dragStartTime:r,shouldUseTimeDampening:o,scrollWindow:t,scrollDroppable:n,getAutoScrollerOptions:a})=>{const i=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const c=e.viewport,u=ty({dragStartTime:r,viewport:c,subject:s,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});if(u){t(u);return}}const d=Yv({center:i,destination:$e(e.impact),droppables:e.dimensions.droppables});if(!d)return;const f=ny({dragStartTime:r,droppable:d,subject:s,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});f&&n(d.descriptor.id,f)},ay=({scrollWindow:e,scrollDroppable:r,getAutoScrollerOptions:o=()=>vr})=>{const t=gr(e),n=gr(r);let a=null;const i=d=>{a||P();const{shouldUseTimeDampening:f,dragStartTime:c}=a;It({state:d,scrollWindow:t,scrollDroppable:n,dragStartTime:c,shouldUseTimeDampening:f,getAutoScrollerOptions:o})};return{start:d=>{a&&P();const f=Date.now();let c=!1;const u=()=>{c=!0};It({state:d,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:u,scrollDroppable:u,getAutoScrollerOptions:o}),a={dragStartTime:f,shouldUseTimeDampening:c},c&&i(d)},stop:()=>{a&&(t.cancel(),n.cancel(),a=null)},scroll:i}},iy=({move:e,scrollDroppable:r,scrollWindow:o})=>{const t=(l,s)=>{const d=pe(l.current.client.selection,s);e({client:d})},n=(l,s)=>{if(!Vo(l,s))return s;const d=oy(l,s);if(!d)return r(l.descriptor.id,s),null;const f=Ce(s,d);return r(l.descriptor.id,f),Ce(s,f)},a=(l,s,d)=>{if(!l||!Uo(s,d))return d;const f=ry(s,d);if(!f)return o(d),null;const c=Ce(d,f);return o(c),Ce(d,c)};return l=>{const s=l.scrollJumpRequest;if(!s)return;const d=$e(l.impact);d||P();const f=n(l.dimensions.droppables[d],s);if(!f)return;const c=l.viewport,u=a(l.isWindowScrollAllowed,c,f);u&&t(l,u)}},ly=({scrollDroppable:e,scrollWindow:r,move:o,getAutoScrollerOptions:t})=>{const n=ay({scrollWindow:r,scrollDroppable:e,getAutoScrollerOptions:t}),a=iy({move:o,scrollWindow:r,scrollDroppable:e});return{scroll:s=>{if(!(t().disabled||s.phase!=="DRAGGING")){if(s.movementMode==="FLUID"){n.scroll(s);return}s.scrollJumpRequest&&a(s)}},start:n.start,stop:n.stop}};const Ke="data-rfd",Qe=(()=>{const e=`${Ke}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),$o=(()=>{const e=`${Ke}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),sy=(()=>{const e=`${Ke}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),Pt={contextId:`${Ke}-scroll-container-context-id`},cy=e=>r=>`[${r}="${e}"]`,ir=(e,r)=>e.map(o=>{const t=o.styles[r];return t?`${o.selector} { ${t} }`:""}).join(" "),dy="pointer-events: none;";var uy=e=>{const r=cy(e),o=(()=>{const l=`
86
+ cursor: -webkit-grab;
87
+ cursor: grab;
88
+ `;return{selector:r(Qe.contextId),styles:{always:`
89
+ -webkit-touch-callout: none;
90
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
91
+ touch-action: manipulation;
92
+ `,resting:l,dragging:dy,dropAnimating:l}}})(),t=(()=>{const l=`
93
+ transition: ${ur.outOfTheWay};
94
+ `;return{selector:r($o.contextId),styles:{dragging:l,dropAnimating:l,userCancel:l}}})(),n={selector:r(sy.contextId),styles:{always:"overflow-anchor: none;"}},i=[t,o,n,{selector:"body",styles:{dragging:`
95
+ cursor: grabbing;
96
+ cursor: -webkit-grabbing;
97
+ user-select: none;
98
+ -webkit-user-select: none;
99
+ -moz-user-select: none;
100
+ -ms-user-select: none;
101
+ overflow-anchor: none;
102
+ `}}];return{always:ir(i,"always"),resting:ir(i,"resting"),dragging:ir(i,"dragging"),dropAnimating:ir(i,"dropAnimating"),userCancel:ir(i,"userCancel")}};const Be=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?F.useLayoutEffect:F.useEffect,uo=()=>{const e=document.querySelector("head");return e||P(),e},At=e=>{const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.type="text/css",r};function fy(e,r){const o=oe(()=>uy(e),[e]),t=F.useRef(null),n=F.useRef(null),a=W(fe(c=>{const u=n.current;u||P(),u.textContent=c}),[]),i=W(c=>{const u=t.current;u||P(),u.textContent=c},[]);Be(()=>{!t.current&&!n.current||P();const c=At(r),u=At(r);return t.current=c,n.current=u,c.setAttribute(`${Ke}-always`,e),u.setAttribute(`${Ke}-dynamic`,e),uo().appendChild(c),uo().appendChild(u),i(o.always),a(o.resting),()=>{const g=h=>{const p=h.current;p||P(),uo().removeChild(p),h.current=null};g(t),g(n)}},[r,i,a,o.always,o.resting,e]);const l=W(()=>a(o.dragging),[a,o.dragging]),s=W(c=>{if(c==="DROP"){a(o.dropAnimating);return}a(o.userCancel)},[a,o.dropAnimating,o.userCancel]),d=W(()=>{n.current&&a(o.resting)},[a,o.resting]);return oe(()=>({dragging:l,dropping:s,resting:d}),[l,s,d])}function Yn(e,r){return Array.from(e.querySelectorAll(r))}var Xn=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function Xr(e){return e instanceof Xn(e).HTMLElement}function gy(e,r){const o=`[${Qe.contextId}="${e}"]`,t=Yn(document,o);if(!t.length)return null;const n=t.find(a=>a.getAttribute(Qe.draggableId)===r);return!n||!Xr(n)?null:n}function py(e){const r=F.useRef({}),o=F.useRef(null),t=F.useRef(null),n=F.useRef(!1),a=W(function(u,g){const h={id:u,focus:g};return r.current[u]=h,function(){const m=r.current;m[u]!==h&&delete m[u]}},[]),i=W(function(u){const g=gy(e,u);g&&g!==document.activeElement&&g.focus()},[e]),l=W(function(u,g){o.current===u&&(o.current=g)},[]),s=W(function(){t.current||n.current&&(t.current=requestAnimationFrame(()=>{t.current=null;const u=o.current;u&&i(u)}))},[i]),d=W(function(u){o.current=null;const g=document.activeElement;g&&g.getAttribute(Qe.draggableId)===u&&(o.current=u)},[]);return Be(()=>(n.current=!0,function(){n.current=!1;const u=t.current;u&&cancelAnimationFrame(u)}),[]),oe(()=>({register:a,tryRecordFocus:d,tryRestoreFocusRecorded:s,tryShiftRecord:l}),[a,d,s,l])}function my(){const e={draggables:{},droppables:{}},r=[];function o(c){return r.push(c),function(){const g=r.indexOf(c);g!==-1&&r.splice(g,1)}}function t(c){r.length&&r.forEach(u=>u(c))}function n(c){return e.draggables[c]||null}function a(c){const u=n(c);return u||P(),u}const i={register:c=>{e.draggables[c.descriptor.id]=c,t({type:"ADDITION",value:c})},update:(c,u)=>{const g=e.draggables[u.descriptor.id];g&&g.uniqueId===c.uniqueId&&(delete e.draggables[u.descriptor.id],e.draggables[c.descriptor.id]=c)},unregister:c=>{const u=c.descriptor.id,g=n(u);g&&c.uniqueId===g.uniqueId&&(delete e.draggables[u],e.droppables[c.descriptor.droppableId]&&t({type:"REMOVAL",value:c}))},getById:a,findById:n,exists:c=>!!n(c),getAllByType:c=>Object.values(e.draggables).filter(u=>u.descriptor.type===c)};function l(c){return e.droppables[c]||null}function s(c){const u=l(c);return u||P(),u}const d={register:c=>{e.droppables[c.descriptor.id]=c},unregister:c=>{const u=l(c.descriptor.id);u&&c.uniqueId===u.uniqueId&&delete e.droppables[c.descriptor.id]},getById:s,findById:l,exists:c=>!!l(c),getAllByType:c=>Object.values(e.droppables).filter(u=>u.descriptor.type===c)};function f(){e.draggables={},e.droppables={},r.length=0}return{draggable:i,droppable:d,subscribe:o,clean:f}}function by(){const e=oe(my,[]);return F.useEffect(()=>function(){e.clean()},[e]),e}var qo=U.createContext(null),Fr=()=>{const e=document.body;return e||P(),e};const hy={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},vy=e=>`rfd-announcement-${e}`;function yy(e){const r=oe(()=>vy(e),[e]),o=F.useRef(null);return F.useEffect(function(){const a=document.createElement("div");return o.current=a,a.id=r,a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true"),Tr(a.style,hy),Fr().appendChild(a),function(){setTimeout(function(){const s=Fr();s.contains(a)&&s.removeChild(a),a===o.current&&(o.current=null)})}},[r]),W(n=>{const a=o.current;if(a){a.textContent=n;return}},[])}const xy={separator:"::"};function Yo(e,r=xy){const o=U.useId();return oe(()=>`${e}${r.separator}${o}`,[r.separator,e,o])}function ky({contextId:e,uniqueId:r}){return`rfd-hidden-text-${e}-${r}`}function wy({contextId:e,text:r}){const o=Yo("hidden-text",{separator:"-"}),t=oe(()=>ky({contextId:e,uniqueId:o}),[o,e]);return F.useEffect(function(){const a=document.createElement("div");return a.id=t,a.textContent=r,a.style.display="none",Fr().appendChild(a),function(){const l=Fr();l.contains(a)&&l.removeChild(a)}},[t,r]),t}var Jr=U.createContext(null);function Jn(e){const r=F.useRef(e);return F.useEffect(()=>{r.current=e}),r}function Cy(){let e=null;function r(){return!!e}function o(i){return i===e}function t(i){e&&P();const l={abandon:i};return e=l,l}function n(){e||P(),e=null}function a(){e&&(e.abandon(),n())}return{isClaimed:r,isActive:o,claim:t,release:n,tryAbandon:a}}function yr(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const $y=9,By=13,Xo=27,Kn=32,zy=33,Sy=34,Ry=35,Dy=36,Ey=37,Iy=38,Py=39,Ay=40,Oy={[By]:!0,[$y]:!0};var Qn=e=>{Oy[e.keyCode]&&e.preventDefault()};const Kr=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(t=>`on${t}`in document)||e})(),Zn=0,Ot=5;function Ty(e,r){return Math.abs(r.x-e.x)>=Ot||Math.abs(r.y-e.y)>=Ot}const Tt={type:"IDLE"};function Ny({cancel:e,completed:r,getPhase:o,setPhase:t}){return[{eventName:"mousemove",fn:n=>{const{button:a,clientX:i,clientY:l}=n;if(a!==Zn)return;const s={x:i,y:l},d=o();if(d.type==="DRAGGING"){n.preventDefault(),d.actions.move(s);return}d.type!=="PENDING"&&P();const f=d.point;if(!Ty(f,s))return;n.preventDefault();const c=d.actions.fluidLift(s);t({type:"DRAGGING",actions:c})}},{eventName:"mouseup",fn:n=>{const a=o();if(a.type!=="DRAGGING"){e();return}n.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:n=>{o().type==="DRAGGING"&&n.preventDefault(),e()}},{eventName:"keydown",fn:n=>{if(o().type==="PENDING"){e();return}if(n.keyCode===Xo){n.preventDefault(),e();return}Qn(n)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{o().type==="PENDING"&&e()}},{eventName:"webkitmouseforcedown",fn:n=>{const a=o();if(a.type==="IDLE"&&P(),a.actions.shouldRespectForcePress()){e();return}n.preventDefault()}},{eventName:Kr,fn:e}]}function _y(e){const r=F.useRef(Tt),o=F.useRef(Fe),t=oe(()=>({eventName:"mousedown",fn:function(c){if(c.defaultPrevented||c.button!==Zn||c.ctrlKey||c.metaKey||c.shiftKey||c.altKey)return;const u=e.findClosestDraggableId(c);if(!u)return;const g=e.tryGetLock(u,i,{sourceEvent:c});if(!g)return;c.preventDefault();const h={x:c.clientX,y:c.clientY};o.current(),d(g,h)}}),[e]),n=oe(()=>({eventName:"webkitmouseforcewillbegin",fn:f=>{if(f.defaultPrevented)return;const c=e.findClosestDraggableId(f);if(!c)return;const u=e.findOptionsForDraggable(c);u&&(u.shouldRespectForcePress||e.canGetLock(c)&&f.preventDefault())}}),[e]),a=W(function(){const c={passive:!1,capture:!0};o.current=Ee(window,[n,t],c)},[n,t]),i=W(()=>{r.current.type!=="IDLE"&&(r.current=Tt,o.current(),a())},[a]),l=W(()=>{const f=r.current;i(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[i]),s=W(function(){const c={capture:!0,passive:!1},u=Ny({cancel:l,completed:i,getPhase:()=>r.current,setPhase:g=>{r.current=g}});o.current=Ee(window,u,c)},[l,i]),d=W(function(c,u){r.current.type!=="IDLE"&&P(),r.current={type:"PENDING",point:u,actions:c},s()},[s]);Be(function(){return a(),function(){o.current()}},[a])}function Ly(){}const Fy={[Sy]:!0,[zy]:!0,[Dy]:!0,[Ry]:!0};function My(e,r){function o(){r(),e.cancel()}function t(){r(),e.drop()}return[{eventName:"keydown",fn:n=>{if(n.keyCode===Xo){n.preventDefault(),o();return}if(n.keyCode===Kn){n.preventDefault(),t();return}if(n.keyCode===Ay){n.preventDefault(),e.moveDown();return}if(n.keyCode===Iy){n.preventDefault(),e.moveUp();return}if(n.keyCode===Py){n.preventDefault(),e.moveRight();return}if(n.keyCode===Ey){n.preventDefault(),e.moveLeft();return}if(Fy[n.keyCode]){n.preventDefault();return}Qn(n)}},{eventName:"mousedown",fn:o},{eventName:"mouseup",fn:o},{eventName:"click",fn:o},{eventName:"touchstart",fn:o},{eventName:"resize",fn:o},{eventName:"wheel",fn:o,options:{passive:!0}},{eventName:Kr,fn:o}]}function Wy(e){const r=F.useRef(Ly),o=oe(()=>({eventName:"keydown",fn:function(a){if(a.defaultPrevented||a.keyCode!==Kn)return;const i=e.findClosestDraggableId(a);if(!i)return;const l=e.tryGetLock(i,f,{sourceEvent:a});if(!l)return;a.preventDefault();let s=!0;const d=l.snapLift();r.current();function f(){s||P(),s=!1,r.current(),t()}r.current=Ee(window,My(d,f),{capture:!0,passive:!1})}}),[e]),t=W(function(){const a={passive:!1,capture:!0};r.current=Ee(window,[o],a)},[o]);Be(function(){return t(),function(){r.current()}},[t])}const fo={type:"IDLE"},Gy=120,Hy=.15;function jy({cancel:e,getPhase:r}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:o=>{o.preventDefault()}},{eventName:"keydown",fn:o=>{if(r().type!=="DRAGGING"){e();return}o.keyCode===Xo&&o.preventDefault(),e()}},{eventName:Kr,fn:e}]}function Uy({cancel:e,completed:r,getPhase:o}){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{const n=o();if(n.type!=="DRAGGING"){e();return}n.hasMoved=!0;const{clientX:a,clientY:i}=t.touches[0],l={x:a,y:i};t.preventDefault(),n.actions.move(l)}},{eventName:"touchend",fn:t=>{const n=o();if(n.type!=="DRAGGING"){e();return}t.preventDefault(),n.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:t=>{if(o().type!=="DRAGGING"){e();return}t.preventDefault(),e()}},{eventName:"touchforcechange",fn:t=>{const n=o();n.type==="IDLE"&&P();const a=t.touches[0];if(!a||!(a.force>=Hy))return;const l=n.actions.shouldRespectForcePress();if(n.type==="PENDING"){l&&e();return}if(l){if(n.hasMoved){t.preventDefault();return}e();return}t.preventDefault()}},{eventName:Kr,fn:e}]}function Vy(e){const r=F.useRef(fo),o=F.useRef(Fe),t=W(function(){return r.current},[]),n=W(function(g){r.current=g},[]),a=oe(()=>({eventName:"touchstart",fn:function(g){if(g.defaultPrevented)return;const h=e.findClosestDraggableId(g);if(!h)return;const p=e.tryGetLock(h,l,{sourceEvent:g});if(!p)return;const m=g.touches[0],{clientX:v,clientY:$}=m,O={x:v,y:$};o.current(),c(p,O)}}),[e]),i=W(function(){const g={capture:!0,passive:!1};o.current=Ee(window,[a],g)},[a]),l=W(()=>{const u=r.current;u.type!=="IDLE"&&(u.type==="PENDING"&&clearTimeout(u.longPressTimerId),n(fo),o.current(),i())},[i,n]),s=W(()=>{const u=r.current;l(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[l]),d=W(function(){const g={capture:!0,passive:!1},h={cancel:s,completed:l,getPhase:t},p=Ee(window,Uy(h),g),m=Ee(window,jy(h),g);o.current=function(){p(),m()}},[s,t,l]),f=W(function(){const g=t();g.type!=="PENDING"&&P();const h=g.actions.fluidLift(g.point);n({type:"DRAGGING",actions:h,hasMoved:!1})},[t,n]),c=W(function(g,h){t().type!=="IDLE"&&P();const p=setTimeout(f,Gy);n({type:"PENDING",point:h,actions:g,longPressTimerId:p}),d()},[d,t,n,f]);Be(function(){return i(),function(){o.current();const h=t();h.type==="PENDING"&&(clearTimeout(h.longPressTimerId),n(fo))}},[t,i,n]),Be(function(){return Ee(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const qy=["input","button","textarea","select","option","optgroup","video","audio"];function ea(e,r){if(r==null)return!1;if(qy.includes(r.tagName.toLowerCase()))return!0;const t=r.getAttribute("contenteditable");return t==="true"||t===""?!0:r===e?!1:ea(e,r.parentElement)}function Yy(e,r){const o=r.target;return Xr(o)?ea(e,o):!1}var Xy=e=>Ae(e.getBoundingClientRect()).center;function Jy(e){return e instanceof Xn(e).Element}const Ky=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(t=>t in Element.prototype)||e})();function ra(e,r){return e==null?null:e[Ky](r)?e:ra(e.parentElement,r)}function Qy(e,r){return e.closest?e.closest(r):ra(e,r)}function Zy(e){return`[${Qe.contextId}="${e}"]`}function ex(e,r){const o=r.target;if(!Jy(o))return null;const t=Zy(e),n=Qy(o,t);return!n||!Xr(n)?null:n}function rx(e,r){const o=ex(e,r);return o?o.getAttribute(Qe.draggableId):null}function ox(e,r){const o=`[${$o.contextId}="${e}"]`,n=Yn(document,o).find(a=>a.getAttribute($o.id)===r);return!n||!Xr(n)?null:n}function tx(e){e.preventDefault()}function zr({expected:e,phase:r,isLockActive:o,shouldWarn:t}){return!(!o()||e!==r)}function oa({lockAPI:e,store:r,registry:o,draggableId:t}){if(e.isClaimed())return!1;const n=o.draggable.findById(t);return!(!n||!n.options.isEnabled||!jn(r.getState(),t))}function nx({lockAPI:e,contextId:r,store:o,registry:t,draggableId:n,forceSensorStop:a,sourceEvent:i}){if(!oa({lockAPI:e,store:o,registry:t,draggableId:n}))return null;const s=t.draggable.getById(n),d=ox(r,s.descriptor.id);if(!d||i&&!s.options.canDragInteractiveElements&&Yy(d,i))return null;const f=e.claim(a||Fe);let c="PRE_DRAG";function u(){return s.options.shouldRespectForcePress}function g(){return e.isActive(f)}function h(_,L){zr({expected:_,phase:c,isLockActive:g,shouldWarn:!0})&&o.dispatch(L())}const p=h.bind(null,"DRAGGING");function m(_){function L(){e.release(),c="COMPLETED"}c!=="PRE_DRAG"&&(L(),P()),o.dispatch(Qh(_.liftActionArgs)),c="DRAGGING";function H(Y,ee={shouldBlockNextClick:!1}){if(_.cleanup(),ee.shouldBlockNextClick){const Z=Ee(window,[{eventName:"click",fn:tx,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(Z)}L(),o.dispatch(Nn({reason:Y}))}return{isActive:()=>zr({expected:"DRAGGING",phase:c,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:u,drop:Y=>H("DROP",Y),cancel:Y=>H("CANCEL",Y),..._.actions}}function v(_){const L=gr(Y=>{p(()=>Tn({client:Y}))});return{...m({liftActionArgs:{id:n,clientSelection:_,movementMode:"FLUID"},cleanup:()=>L.cancel(),actions:{move:L}}),move:L}}function $(){const _={moveUp:()=>p(lv),moveRight:()=>p(cv),moveDown:()=>p(sv),moveLeft:()=>p(dv)};return m({liftActionArgs:{id:n,clientSelection:Xy(d),movementMode:"SNAP"},cleanup:Fe,actions:_})}function O(){zr({expected:"PRE_DRAG",phase:c,isLockActive:g,shouldWarn:!0})&&e.release()}return{isActive:()=>zr({expected:"PRE_DRAG",phase:c,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:u,fluidLift:v,snapLift:$,abort:O}}const ax=[_y,Wy,Vy];function ix({contextId:e,store:r,registry:o,customSensors:t,enableDefaultSensors:n}){const a=[...n?ax:[],...t||[]],i=F.useState(()=>Cy())[0],l=W(function(m,v){yr(m)&&!yr(v)&&i.tryAbandon()},[i]);Be(function(){let m=r.getState();return r.subscribe(()=>{const $=r.getState();l(m,$),m=$})},[i,r,l]),Be(()=>i.tryAbandon,[i.tryAbandon]);const s=W(p=>oa({lockAPI:i,registry:o,store:r,draggableId:p}),[i,o,r]),d=W((p,m,v)=>nx({lockAPI:i,registry:o,contextId:e,store:r,draggableId:p,forceSensorStop:m||null,sourceEvent:v&&v.sourceEvent?v.sourceEvent:null}),[e,i,o,r]),f=W(p=>rx(e,p),[e]),c=W(p=>{const m=o.draggable.findById(p);return m?m.options:null},[o.draggable]),u=W(function(){i.isClaimed()&&(i.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(Mo()))},[i,r]),g=W(()=>i.isClaimed(),[i]),h=oe(()=>({canGetLock:s,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:c,tryReleaseLock:u,isLockClaimed:g}),[s,d,f,c,u,g]);for(let p=0;p<a.length;p++)a[p](h)}const lx=e=>({onBeforeCapture:r=>{const o=()=>{e.onBeforeCapture&&e.onBeforeCapture(r)};Kt.flushSync(o)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),sx=e=>({...vr,...e.autoScrollerOptions,durationDampening:{...vr.durationDampening,...e.autoScrollerOptions}});function lr(e){return e.current||P(),e.current}function cx(e){const{contextId:r,setCallbacks:o,sensors:t,nonce:n,dragHandleUsageInstructions:a}=e,i=F.useRef(null),l=Jn(e),s=W(()=>lx(l.current),[l]),d=W(()=>sx(l.current),[l]),f=yy(r),c=wy({contextId:r,text:a}),u=fy(r,n),g=W(Z=>{lr(i).dispatch(Z)},[]),h=oe(()=>lt({publishWhileDragging:ev,updateDroppableScroll:ov,updateDroppableIsEnabled:tv,updateDroppableIsCombineEnabled:nv,collectionStarting:rv},g),[g]),p=by(),m=oe(()=>jv(p,h),[p,h]),v=oe(()=>ly({scrollWindow:Uv,scrollDroppable:m.scrollDroppable,getAutoScrollerOptions:d,...lt({move:Tn},g)}),[m.scrollDroppable,g,d]),$=py(r),O=oe(()=>Mv({announce:f,autoScroller:v,dimensionMarshal:m,focusMarshal:$,getResponders:s,styleMarshal:u}),[f,v,m,$,s,u]);i.current=O;const A=W(()=>{const Z=lr(i);Z.getState().phase!=="IDLE"&&Z.dispatch(Mo())},[]),_=W(()=>{const Z=lr(i).getState();return Z.phase==="DROP_ANIMATING"?!0:Z.phase==="IDLE"?!1:Z.isDragging},[]),L=oe(()=>({isDragging:_,tryAbort:A}),[_,A]);o(L);const H=W(Z=>jn(lr(i).getState(),Z),[]),Y=W(()=>Ue(lr(i).getState()),[]),ee=oe(()=>({marshal:m,focus:$,contextId:r,canLift:H,isMovementAllowed:Y,dragHandleUsageInstructionsId:c,registry:p}),[r,m,c,$,H,Y,p]);return ix({contextId:r,store:O,registry:p,customSensors:t||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),F.useEffect(()=>A,[A]),U.createElement(Jr.Provider,{value:ee},U.createElement(Ob,{context:qo,store:O},e.children))}function dx(){return U.useId()}function ux(e){const r=dx(),o=e.dragHandleUsageInstructions||Ir.dragHandleUsageInstructions;return U.createElement(Wb,null,t=>U.createElement(cx,{nonce:e.nonce,contextId:r,setCallbacks:t,dragHandleUsageInstructions:o,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const Nt={dragging:5e3,dropAnimating:4500},fx=(e,r)=>r?ur.drop(r.duration):e?ur.snap:ur.fluid,gx=(e,r)=>{if(e)return r?hr.opacity.drop:hr.opacity.combining},px=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function mx(e){const o=e.dimension.client,{offset:t,combineWith:n,dropping:a}=e,i=!!n,l=px(e),s=!!a,d=s?wo.drop(t,i):wo.moveTo(t);return{position:"fixed",top:o.marginBox.top,left:o.marginBox.left,boxSizing:"border-box",width:o.borderBox.width,height:o.borderBox.height,transition:fx(l,a),transform:d,opacity:gx(i,s),zIndex:s?Nt.dropAnimating:Nt.dragging,pointerEvents:"none"}}function bx(e){return{transform:wo.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function hx(e){return e.type==="DRAGGING"?mx(e):bx(e)}function vx(e,r,o=ge){const t=window.getComputedStyle(r),n=r.getBoundingClientRect(),a=cn(n,t),i=Or(a,o),l={client:a,tagName:r.tagName.toLowerCase(),display:t.display},s={x:a.marginBox.width,y:a.marginBox.height};return{descriptor:e,placeholder:l,displaceBy:s,client:a,page:i}}function yx(e){const r=Yo("draggable"),{descriptor:o,registry:t,getDraggableRef:n,canDragInteractiveElements:a,shouldRespectForcePress:i,isEnabled:l}=e,s=oe(()=>({canDragInteractiveElements:a,shouldRespectForcePress:i,isEnabled:l}),[a,l,i]),d=W(g=>{const h=n();return h||P(),vx(o,h,g)},[o,n]),f=oe(()=>({uniqueId:r,descriptor:o,options:s,getDimension:d}),[o,d,s,r]),c=F.useRef(f),u=F.useRef(!0);Be(()=>(t.draggable.register(c.current),()=>t.draggable.unregister(c.current)),[t.draggable]),Be(()=>{if(u.current){u.current=!1;return}const g=c.current;c.current=f,t.draggable.update(f,g)},[f,t.draggable])}var Jo=U.createContext(null);function Mr(e){const r=F.useContext(e);return r||P(),r}function xx(e){e.preventDefault()}const kx=e=>{const r=F.useRef(null),o=W((L=null)=>{r.current=L},[]),t=W(()=>r.current,[]),{contextId:n,dragHandleUsageInstructionsId:a,registry:i}=Mr(Jr),{type:l,droppableId:s}=Mr(Jo),d=oe(()=>({id:e.draggableId,index:e.index,type:l,droppableId:s}),[e.draggableId,e.index,l,s]),{children:f,draggableId:c,isEnabled:u,shouldRespectForcePress:g,canDragInteractiveElements:h,isClone:p,mapped:m,dropAnimationFinished:v}=e;if(!p){const L=oe(()=>({descriptor:d,registry:i,getDraggableRef:t,canDragInteractiveElements:h,shouldRespectForcePress:g,isEnabled:u}),[d,i,t,h,g,u]);yx(L)}const $=oe(()=>u?{tabIndex:0,role:"button","aria-describedby":a,"data-rfd-drag-handle-draggable-id":c,"data-rfd-drag-handle-context-id":n,draggable:!1,onDragStart:xx}:null,[n,a,c,u]),O=W(L=>{m.type==="DRAGGING"&&m.dropping&&L.propertyName==="transform"&&Kt.flushSync(v)},[v,m]),A=oe(()=>{const L=hx(m),H=m.type==="DRAGGING"&&m.dropping?O:void 0;return{innerRef:o,draggableProps:{"data-rfd-draggable-context-id":n,"data-rfd-draggable-id":c,style:L,onTransitionEnd:H},dragHandleProps:$}},[n,$,c,m,O,o]),_=oe(()=>({draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}),[d.droppableId,d.id,d.index,d.type]);return U.createElement(U.Fragment,null,f(A,m.snapshot,_))};var ta=(e,r)=>e===r,na=e=>{const{combine:r,destination:o}=e;return o?o.droppableId:r?r.droppableId:null};const wx=e=>e.combine?e.combine.draggableId:null,Cx=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function $x(){const e=fe((n,a)=>({x:n,y:a})),r=fe((n,a,i=null,l=null,s=null)=>({isDragging:!0,isClone:a,isDropAnimating:!!s,dropAnimation:s,mode:n,draggingOver:i,combineWith:l,combineTargetFor:null})),o=fe((n,a,i,l,s=null,d=null,f=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:d,mode:a,offset:n,dimension:i,forceShouldAnimate:f,snapshot:r(a,l,s,d,null)}}));return(n,a)=>{if(yr(n)){if(n.critical.draggable.id!==a.draggableId)return null;const i=n.current.client.offset,l=n.dimensions.draggables[a.draggableId],s=$e(n.impact),d=Cx(n.impact),f=n.forceShouldAnimate;return o(e(i.x,i.y),n.movementMode,l,a.isClone,s,d,f)}if(n.phase==="DROP_ANIMATING"){const i=n.completed;if(i.result.draggableId!==a.draggableId)return null;const l=a.isClone,s=n.dimensions.draggables[a.draggableId],d=i.result,f=d.mode,c=na(d),u=wx(d),h={duration:n.dropDuration,curve:Go.drop,moveTo:n.newHomeClientOffset,opacity:u?hr.opacity.drop:null,scale:u?hr.scale.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:s,dropping:h,draggingOver:c,combineWith:u,mode:f,forceShouldAnimate:null,snapshot:r(f,l,c,u,h)}}}return null}}function aa(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const Bx={mapped:{type:"SECONDARY",offset:ge,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:aa(null)}};function zx(){const e=fe((i,l)=>({x:i,y:l})),r=fe(aa),o=fe((i,l=null,s)=>({mapped:{type:"SECONDARY",offset:i,combineTargetFor:l,shouldAnimateDisplacement:s,snapshot:r(l)}})),t=i=>i?o(ge,i,!0):null,n=(i,l,s,d)=>{const f=s.displaced.visible[i],c=!!(d.inVirtualList&&d.effected[i]),u=Vr(s),g=u&&u.draggableId===i?l:null;if(!f){if(!c)return t(g);if(s.displaced.invisible[i])return null;const m=rr(d.displacedBy.point),v=e(m.x,m.y);return o(v,g,!0)}if(c)return t(g);const h=s.displacedBy.point,p=e(h.x,h.y);return o(p,g,f.shouldAnimate)};return(i,l)=>{if(yr(i))return i.critical.draggable.id===l.draggableId?null:n(l.draggableId,i.critical.draggable.id,i.impact,i.afterCritical);if(i.phase==="DROP_ANIMATING"){const s=i.completed;return s.result.draggableId===l.draggableId?null:n(l.draggableId,s.result.draggableId,s.impact,s.afterCritical)}return null}}const Sx=()=>{const e=$x(),r=zx();return(t,n)=>e(t,n)||r(t,n)||Bx},Rx={dropAnimationFinished:_n},Dx=sn(Sx,Rx,null,{context:qo,areStatePropsEqual:ta})(kx);function ia(e){return Mr(Jo).isUsingCloneFor===e.draggableId&&!e.isClone?null:U.createElement(Dx,e)}function Ex(e){const r=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,o=!!e.disableInteractiveElementBlocking,t=!!e.shouldRespectForcePress;return U.createElement(ia,Tr({},e,{isClone:!1,isEnabled:r,canDragInteractiveElements:o,shouldRespectForcePress:t}))}const la=e=>r=>e===r,Ix=la("scroll"),Px=la("auto"),_t=(e,r)=>r(e.overflowX)||r(e.overflowY),Ax=e=>{const r=window.getComputedStyle(e),o={overflowX:r.overflowX,overflowY:r.overflowY};return _t(o,Ix)||_t(o,Px)},Ox=()=>!1,sa=e=>e==null?null:e===document.body?Ox()?e:null:e===document.documentElement?null:Ax(e)?e:sa(e.parentElement);var Bo=e=>({x:e.scrollLeft,y:e.scrollTop});const ca=e=>e?window.getComputedStyle(e).position==="fixed"?!0:ca(e.parentElement):!1;var Tx=e=>{const r=sa(e),o=ca(e);return{closestScrollable:r,isFixedOnPage:o}},Nx=({descriptor:e,isEnabled:r,isCombineEnabled:o,isFixedOnPage:t,direction:n,client:a,page:i,closest:l})=>{const s=(()=>{if(!l)return null;const{scrollSize:u,client:g}=l,h=Wn({scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth,height:g.paddingBox.height,width:g.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:g,scrollSize:u,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:h,diff:{value:ge,displacement:ge}}}})(),d=n==="vertical"?To:xn,f=Je({page:i,withPlaceholder:null,axis:d,frame:s});return{descriptor:e,isCombineEnabled:o,isFixedOnPage:t,axis:d,isEnabled:r,client:a,page:i,frame:s,subject:f}};const _x=(e,r)=>{const o=dn(e);if(!r||e!==r)return o;const t=o.paddingBox.top-r.scrollTop,n=o.paddingBox.left-r.scrollLeft,a=t+r.scrollHeight,i=n+r.scrollWidth,s=Io({top:t,right:i,bottom:a,left:n},o.border);return Po({borderBox:s,margin:o.margin,border:o.border,padding:o.padding})};var Lx=({ref:e,descriptor:r,env:o,windowScroll:t,direction:n,isDropDisabled:a,isCombineEnabled:i,shouldClipSubject:l})=>{const s=o.closestScrollable,d=_x(e,s),f=Or(d,t),c=(()=>{if(!s)return null;const g=dn(s),h={scrollHeight:s.scrollHeight,scrollWidth:s.scrollWidth};return{client:g,page:Or(g,t),scroll:Bo(s),scrollSize:h,shouldClipSubject:l}})();return Nx({descriptor:r,isEnabled:!a,isCombineEnabled:i,isFixedOnPage:o.isFixedOnPage,direction:n,client:d,page:f,closest:c})};const Fx={passive:!1},Mx={passive:!0};var Lt=e=>e.shouldPublishImmediately?Fx:Mx;const Sr=e=>e&&e.env.closestScrollable||null;function Wx(e){const r=F.useRef(null),o=Mr(Jr),t=Yo("droppable"),{registry:n,marshal:a}=o,i=Jn(e),l=oe(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),s=F.useRef(l),d=oe(()=>fe((A,_)=>{r.current||P();const L={x:A,y:_};a.updateDroppableScroll(l.id,L)}),[l.id,a]),f=W(()=>{const A=r.current;return!A||!A.env.closestScrollable?ge:Bo(A.env.closestScrollable)},[]),c=W(()=>{const A=f();d(A.x,A.y)},[f,d]),u=oe(()=>gr(c),[c]),g=W(()=>{const A=r.current,_=Sr(A);if(A&&_||P(),A.scrollOptions.shouldPublishImmediately){c();return}u()},[u,c]),h=W((A,_)=>{r.current&&P();const L=i.current,H=L.getDroppableRef();H||P();const Y=Tx(H),ee={ref:H,descriptor:l,env:Y,scrollOptions:_};r.current=ee;const Z=Lx({ref:H,descriptor:l,env:Y,windowScroll:A,direction:L.direction,isDropDisabled:L.isDropDisabled,isCombineEnabled:L.isCombineEnabled,shouldClipSubject:!L.ignoreContainerClipping}),V=Y.closestScrollable;return V&&(V.setAttribute(Pt.contextId,o.contextId),V.addEventListener("scroll",g,Lt(ee.scrollOptions))),Z},[o.contextId,l,g,i]),p=W(()=>{const A=r.current,_=Sr(A);return A&&_||P(),Bo(_)},[]),m=W(()=>{const A=r.current;A||P();const _=Sr(A);r.current=null,_&&(u.cancel(),_.removeAttribute(Pt.contextId),_.removeEventListener("scroll",g,Lt(A.scrollOptions)))},[g,u]),v=W(A=>{const _=r.current;_||P();const L=Sr(_);L||P(),L.scrollTop+=A.y,L.scrollLeft+=A.x},[]),$=oe(()=>({getDimensionAndWatchScroll:h,getScrollWhileDragging:p,dragStopped:m,scroll:v}),[m,h,p,v]),O=oe(()=>({uniqueId:t,descriptor:l,callbacks:$}),[$,l,t]);Be(()=>(s.current=O.descriptor,n.droppable.register(O),()=>{r.current&&m(),n.droppable.unregister(O)}),[$,l,m,O,a,n.droppable]),Be(()=>{r.current&&a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),Be(()=>{r.current&&a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function go(){}const Ft={width:0,height:0,margin:Yb},Gx=({isAnimatingOpenOnMount:e,placeholder:r,animate:o})=>e||o==="close"?Ft:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin},Hx=({isAnimatingOpenOnMount:e,placeholder:r,animate:o})=>{const t=Gx({isAnimatingOpenOnMount:e,placeholder:r,animate:o});return{display:r.display,boxSizing:"border-box",width:t.width,height:t.height,marginTop:t.margin.top,marginRight:t.margin.right,marginBottom:t.margin.bottom,marginLeft:t.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:o!=="none"?ur.placeholder:null}},jx=e=>{const r=F.useRef(null),o=W(()=>{r.current&&(clearTimeout(r.current),r.current=null)},[]),{animate:t,onTransitionEnd:n,onClose:a,contextId:i}=e,[l,s]=F.useState(e.animate==="open");F.useEffect(()=>l?t!=="open"?(o(),s(!1),go):r.current?go:(r.current=setTimeout(()=>{r.current=null,s(!1)}),o):go,[t,l,o]);const d=W(c=>{c.propertyName==="height"&&(n(),t==="close"&&a())},[t,a,n]),f=Hx({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return U.createElement(e.placeholder.tagName,{style:f,"data-rfd-placeholder-context-id":i,onTransitionEnd:d,ref:e.innerRef})};var Ux=U.memo(jx);class Vx extends U.PureComponent{constructor(...r){super(...r),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(r,o){return r.shouldAnimate?r.on?{isVisible:!0,data:r.on,animate:"open"}:o.isVisible?{isVisible:!0,data:o.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!r.on,data:r.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const r={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(r)}}const qx=e=>{const r=F.useContext(Jr);r||P();const{contextId:o,isMovementAllowed:t}=r,n=F.useRef(null),a=F.useRef(null),{children:i,droppableId:l,type:s,mode:d,direction:f,ignoreContainerClipping:c,isDropDisabled:u,isCombineEnabled:g,snapshot:h,useClone:p,updateViewportMaxScroll:m,getContainerForClone:v}=e,$=W(()=>n.current,[]),O=W((V=null)=>{n.current=V},[]);W(()=>a.current,[]);const A=W((V=null)=>{a.current=V},[]),_=W(()=>{t()&&m({maxScroll:Hn()})},[t,m]);Wx({droppableId:l,type:s,mode:d,direction:f,isDropDisabled:u,isCombineEnabled:g,ignoreContainerClipping:c,getDroppableRef:$});const L=oe(()=>U.createElement(Vx,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:V,data:E,animate:I})=>U.createElement(Ux,{placeholder:E,onClose:V,innerRef:A,animate:I,contextId:o,onTransitionEnd:_})),[o,_,e.placeholder,e.shouldAnimatePlaceholder,A]),H=oe(()=>({innerRef:O,placeholder:L,droppableProps:{"data-rfd-droppable-id":l,"data-rfd-droppable-context-id":o}}),[o,l,L,O]),Y=p?p.dragging.draggableId:null,ee=oe(()=>({droppableId:l,type:s,isUsingCloneFor:Y}),[l,Y,s]);function Z(){if(!p)return null;const{dragging:V,render:E}=p,I=U.createElement(ia,{draggableId:V.draggableId,index:V.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(x,y)=>E(x,y,V));return za.createPortal(I,v())}return U.createElement(Jo.Provider,{value:ee},i(H,h),Z())};function Yx(){return document.body||P(),document.body}const Mt={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Yx},da=e=>{let r={...e},o;for(o in Mt)e[o]===void 0&&(r={...r,[o]:Mt[o]});return r},po=(e,r)=>e===r.droppable.type,Wt=(e,r)=>r.draggables[e.draggable.id],Xx=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r={...e,shouldAnimatePlaceholder:!1},o=fe(a=>({draggableId:a.id,type:a.type,source:{index:a.index,droppableId:a.droppableId}})),t=fe((a,i,l,s,d,f)=>{const c=d.descriptor.id;if(d.descriptor.droppableId===a){const h=f?{render:f,dragging:o(d.descriptor)}:null,p={isDraggingOver:l,draggingOverWith:l?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!1,snapshot:p,useClone:h}}if(!i)return r;if(!s)return e;const g={isDraggingOver:l,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!0,snapshot:g,useClone:null}});return(a,i)=>{const l=da(i),s=l.droppableId,d=l.type,f=!l.isDropDisabled,c=l.renderClone;if(yr(a)){const u=a.critical;if(!po(d,u))return r;const g=Wt(u,a.dimensions),h=$e(a.impact)===s;return t(s,f,h,h,g,c)}if(a.phase==="DROP_ANIMATING"){const u=a.completed;if(!po(d,u.critical))return r;const g=Wt(u.critical,a.dimensions);return t(s,f,na(u.result)===s,$e(u.impact)===s,g,c)}if(a.phase==="IDLE"&&a.completed&&!a.shouldFlush){const u=a.completed;if(!po(d,u.critical))return r;const g=$e(u.impact)===s,h=!!(u.impact.at&&u.impact.at.type==="COMBINE"),p=u.critical.droppable.id===s;return g?h?e:r:p?e:r}return r}},Jx={updateViewportMaxScroll:iv},Kx=sn(Xx,Jx,(e,r,o)=>({...da(o),...e,...r}),{context:qo,areStatePropsEqual:ta})(qx),Rr=new WeakMap,Qx=`
103
+ /* Theme — CSS variables set by the host (EditorPanel.vue) */
104
+ /* Base */
105
+ .gz-editor {
106
+ font-family: system-ui, -apple-system, sans-serif; font-size: 0.875rem;
107
+ color: var(--gz-text, #e0e0e0);
108
+ transition: color 0.2s, background-color 0.2s;
109
+ }
110
+ .gz-editor * { box-sizing: border-box; }
111
+ .gz-editor .form-group { margin-bottom: 1rem; }
112
+ .gz-editor label {
113
+ display: block; font-weight: 600; font-size: 0.6875rem; text-transform: uppercase;
114
+ letter-spacing: 0.05em; color: var(--gz-text-label, #8888a0); margin-bottom: 0.375rem;
115
+ }
116
+ .gz-editor .field-description { font-size: 0.75rem; color: var(--gz-text-hint, #666680); margin-bottom: 0.375rem; line-height: 1.4; }
117
+
118
+ /* Inputs */
119
+ .gz-editor input[type="text"], .gz-editor input[type="number"], .gz-editor input[type="url"],
120
+ .gz-editor input[type="email"], .gz-editor input[type="password"],
121
+ .gz-editor textarea, .gz-editor select {
122
+ width: 100%; padding: 0.5rem 0.75rem; font-size: 0.875rem; font-family: inherit;
123
+ background: var(--gz-bg-input, #161622); color: var(--gz-text, #e0e0e0); border: 1px solid var(--gz-border, #2a2a3a); border-radius: 6px;
124
+ outline: none; transition: border-color 0.15s, box-shadow 0.15s, background-color 0.2s, color 0.2s;
125
+ }
126
+ .gz-editor input:focus, .gz-editor textarea:focus, .gz-editor select:focus {
127
+ border-color: var(--gz-accent, #667eea); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gz-accent, #667eea) 15%, transparent);
128
+ }
129
+ .gz-editor textarea { min-height: 5rem; resize: vertical; line-height: 1.5; }
130
+ .gz-editor select {
131
+ appearance: none; cursor: pointer;
132
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
133
+ background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem;
134
+ }
135
+
136
+ /* Hide rjsf chrome */
137
+ .gz-editor .btn { display: none; }
138
+ .gz-editor fieldset { border: none; padding: 0; margin: 0; }
139
+ .gz-editor legend { display: none; }
140
+
141
+ /* Errors */
142
+ .gz-editor .error-detail, .gz-editor .text-danger { color: var(--gz-error, #f87171); font-size: 0.75rem; margin-top: 0.25rem; }
143
+ .gz-editor .has-error input, .gz-editor .has-error textarea, .gz-editor .has-error select { border-color: color-mix(in srgb, var(--gz-error, #f87171) 50%, transparent); }
144
+
145
+ /* Required marker */
146
+ .gz-editor label .required { color: var(--gz-error, #f87171); margin-left: 0.125rem; }
147
+
148
+ /* ---- Toggle ---- */
149
+ .gz-editor .gz-toggle { display: flex; align-items: center; gap: 0.625rem; cursor: pointer; user-select: none; padding: 0.25rem 0; }
150
+ .gz-editor .gz-toggle-track {
151
+ position: relative; width: 36px; height: 20px; border-radius: 10px;
152
+ background: var(--gz-border, #2a2a3a); transition: background 0.2s; flex-shrink: 0;
153
+ }
154
+ .gz-editor .gz-toggle-track.on { background: var(--gz-accent, #667eea); }
155
+ .gz-editor .gz-toggle-thumb {
156
+ position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
157
+ background: #fff; transition: transform 0.2s ease;
158
+ }
159
+ .gz-editor .gz-toggle-track.on .gz-toggle-thumb { transform: translateX(16px); }
160
+ .gz-editor .gz-toggle-label { font-size: 0.8125rem; color: var(--gz-text-secondary, #ccc); font-weight: 400; text-transform: none; letter-spacing: 0; }
161
+
162
+ /* ---- Color ---- */
163
+ .gz-editor .gz-color-widget { display: flex; align-items: center; gap: 0.5rem; }
164
+ .gz-editor .gz-color-widget input[type="color"] {
165
+ width: 36px; height: 36px; border: 1px solid var(--gz-border, #2a2a3a); border-radius: 6px;
166
+ padding: 2px; cursor: pointer; background: transparent;
167
+ }
168
+ .gz-editor .gz-color-widget input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
169
+ .gz-editor .gz-color-widget input[type="color"]::-webkit-color-swatch { border-radius: 3px; border: none; }
170
+ .gz-editor .gz-color-widget input[type="text"] { flex: 1; }
171
+
172
+ /* ---- Tags ---- */
173
+ .gz-editor .gz-tags {
174
+ display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0.375rem 0.5rem;
175
+ background: var(--gz-bg-input, #161622); border: 1px solid var(--gz-border, #2a2a3a); border-radius: 6px;
176
+ min-height: 2.5rem; align-items: center; cursor: text; transition: border-color 0.15s, box-shadow 0.15s;
177
+ }
178
+ .gz-editor .gz-tags:focus-within { border-color: var(--gz-accent, #667eea); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gz-accent, #667eea) 15%, transparent); }
179
+ .gz-editor .gz-tag {
180
+ display: inline-flex; align-items: center; gap: 0.25rem;
181
+ padding: 0.1875rem 0.5rem 0.1875rem 0.625rem;
182
+ background: var(--gz-bg-chip, #252538); border: 1px solid var(--gz-border, #2a2a3a); border-radius: 4px;
183
+ font-size: 0.8125rem; color: var(--gz-text-secondary, #ccc); transition: background 0.1s;
184
+ }
185
+ .gz-editor .gz-tag:hover { background: var(--gz-bg-chip, #252538); filter: brightness(1.1); }
186
+ .gz-editor .gz-tag-remove {
187
+ background: none; border: none; color: var(--gz-text-hint, #666); cursor: pointer; font-size: 1rem;
188
+ padding: 0; line-height: 1; display: flex; align-items: center;
189
+ }
190
+ .gz-editor .gz-tag-remove:hover { color: var(--gz-error, #f87171); }
191
+ .gz-editor .gz-tags-input {
192
+ border: none !important; background: transparent !important; color: var(--gz-text, #e0e0e0); font-size: 0.8125rem;
193
+ outline: none !important; min-width: 80px; flex: 1; padding: 0.125rem 0;
194
+ box-shadow: none !important;
195
+ }
196
+ .gz-editor .gz-tags-empty { color: var(--gz-text-hint, #444); font-size: 0.75rem; padding: 0.25rem 0; }
197
+
198
+ /* ---- Image ---- */
199
+ .gz-editor .gz-image-preview {
200
+ margin-top: 0.5rem; border-radius: 6px; overflow: hidden;
201
+ background: var(--gz-bg-input, #161622); border: 1px dashed var(--gz-border, #2a2a3a); transition: border-color 0.15s;
202
+ }
203
+ .gz-editor .gz-image-preview.has-image { border-style: solid; }
204
+ .gz-editor .gz-image-preview img { display: block; max-width: 100%; max-height: 200px; object-fit: contain; margin: 0 auto; }
205
+ .gz-editor .gz-image-preview-empty {
206
+ padding: 2rem; text-align: center; color: var(--gz-text-hint, #444); font-size: 0.75rem;
207
+ }
208
+
209
+ /* ---- Slug ---- */
210
+ .gz-editor .gz-slug-widget input {
211
+ font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8125rem; letter-spacing: 0.02em;
212
+ }
213
+ .gz-editor .gz-slug-hint { font-size: 0.6875rem; color: var(--gz-text-hint, #444); margin-top: 0.25rem; }
214
+
215
+ /* ---- Code ---- */
216
+ .gz-editor .gz-code-widget textarea {
217
+ font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8125rem;
218
+ line-height: 1.6; min-height: 10rem; tab-size: 2;
219
+ }
220
+ .gz-editor .gz-code-hint { font-size: 0.6875rem; color: var(--gz-text-hint, #444); margin-top: 0.25rem; }
221
+
222
+ /* ---- JSON ---- */
223
+ .gz-editor .gz-json-widget textarea {
224
+ font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8125rem;
225
+ line-height: 1.6; min-height: 8rem; tab-size: 2;
226
+ }
227
+ .gz-editor .gz-json-error { font-size: 0.6875rem; color: var(--gz-error, #f87171); margin-top: 0.25rem; }
228
+ .gz-editor .gz-json-valid { font-size: 0.6875rem; color: var(--gz-success, #4ade80); margin-top: 0.25rem; }
229
+
230
+ /* ---- Markdown ---- */
231
+ .gz-editor .gz-markdown textarea {
232
+ min-height: 12rem; font-family: 'JetBrains Mono', 'Fira Code', monospace;
233
+ font-size: 0.8125rem; line-height: 1.6;
234
+ }
235
+ .gz-editor .gz-markdown-hint { font-size: 0.6875rem; color: var(--gz-text-hint, #444); margin-top: 0.25rem; }
236
+
237
+ /* ---- Rich text (Tiptap) ---- */
238
+ .gz-editor .gz-richtext {
239
+ border: 1px solid var(--gz-border, #2a2a3a); border-radius: 6px; overflow: hidden;
240
+ background: var(--gz-bg-input, #161622); transition: border-color 0.15s, box-shadow 0.15s;
241
+ }
242
+ .gz-editor .gz-richtext:focus-within { border-color: var(--gz-accent, #667eea); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gz-accent, #667eea) 15%, transparent); }
243
+ .gz-editor .gz-richtext-toolbar {
244
+ display: flex; flex-wrap: wrap; gap: 1px; padding: 0.25rem;
245
+ border-bottom: 1px solid var(--gz-border-subtle, #1e1e2e); background: var(--gz-bg-toolbar, #1a1a2a);
246
+ }
247
+ .gz-editor .gz-rt-btn {
248
+ background: none; border: 1px solid transparent; border-radius: 4px;
249
+ color: var(--gz-text-hint, #777); cursor: pointer; padding: 0.3125rem 0.5rem; font-size: 0.6875rem;
250
+ font-family: inherit; line-height: 1; font-weight: 600; transition: all 0.1s;
251
+ display: flex; align-items: center; justify-content: center; min-width: 28px;
252
+ }
253
+ .gz-editor .gz-rt-btn:hover { color: var(--gz-text-secondary, #ccc); background: var(--gz-bg-chip, #252538); }
254
+ .gz-editor .gz-rt-btn.active { color: var(--gz-accent, #667eea); background: var(--gz-bg-chip, #252538); border-color: color-mix(in srgb, var(--gz-accent, #667eea) 20%, transparent); }
255
+ .gz-editor .gz-rt-sep { width: 1px; background: var(--gz-bg-chip, #252538); margin: 0.125rem 0.25rem; align-self: stretch; }
256
+
257
+ /* Tiptap content area */
258
+ .gz-editor .gz-richtext .tiptap { outline: none; padding: 0.75rem; min-height: 10rem; color: var(--gz-text, #e0e0e0); font-size: 0.875rem; line-height: 1.7; }
259
+ .gz-editor .gz-richtext .tiptap p { margin: 0.25rem 0; }
260
+ .gz-editor .gz-richtext .tiptap h2 { font-size: 1.25rem; font-weight: 700; margin: 1rem 0 0.25rem; color: var(--gz-text, #e0e0e0); }
261
+ .gz-editor .gz-richtext .tiptap h3 { font-size: 1.1rem; font-weight: 600; margin: 0.75rem 0 0.25rem; color: var(--gz-text, #e0e0e0); }
262
+ .gz-editor .gz-richtext .tiptap ul, .gz-editor .gz-richtext .tiptap ol { padding-left: 1.25rem; margin: 0.25rem 0; }
263
+ .gz-editor .gz-richtext .tiptap li { margin: 0.125rem 0; }
264
+ .gz-editor .gz-richtext .tiptap blockquote {
265
+ border-left: 3px solid color-mix(in srgb, var(--gz-accent, #667eea) 25%, transparent); padding-left: 0.875rem; margin: 0.5rem 0;
266
+ color: var(--gz-text-secondary, #999); font-style: italic;
267
+ }
268
+ .gz-editor .gz-richtext .tiptap code {
269
+ background: var(--gz-bg-chip, #252538); padding: 0.125rem 0.375rem; border-radius: 3px;
270
+ font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8125rem;
271
+ }
272
+ .gz-editor .gz-richtext .tiptap pre {
273
+ background: var(--gz-bg-code, #12121e); padding: 0.875rem; border-radius: 6px; overflow-x: auto; margin: 0.5rem 0;
274
+ }
275
+ .gz-editor .gz-richtext .tiptap pre code { background: none; padding: 0; }
276
+ .gz-editor .gz-richtext .tiptap a { color: var(--gz-accent, #667eea); text-decoration: underline; cursor: pointer; }
277
+ .gz-editor .gz-richtext .tiptap hr { border: none; border-top: 1px solid var(--gz-border, #2a2a3a); margin: 1rem 0; }
278
+ .gz-editor .gz-richtext .tiptap p.is-editor-empty:first-child::before {
279
+ content: attr(data-placeholder); float: left; color: var(--gz-text-hint, #444); pointer-events: none; height: 0;
280
+ }
281
+
282
+ /* Bubble menu */
283
+ .gz-editor .gz-bubble {
284
+ display: flex; gap: 1px; background: var(--gz-bg-toolbar, #1a1a2a); border: 1px solid var(--gz-border, #2a2a3a);
285
+ border-radius: 6px; padding: 0.1875rem; box-shadow: 0 4px 16px #0008;
286
+ }
287
+ .gz-editor .gz-bubble .gz-rt-btn { padding: 0.25rem 0.4375rem; font-size: 0.625rem; }
288
+
289
+ /* ---- Array ---- */
290
+ .gz-editor .gz-array { margin-bottom: 0.25rem; }
291
+ .gz-editor .gz-array-header {
292
+ display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; padding-bottom: 0.375rem;
293
+ border-bottom: 1px solid var(--gz-border-subtle, #1e1e2e);
294
+ }
295
+ .gz-editor .gz-array-title {
296
+ font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
297
+ letter-spacing: 0.05em; color: var(--gz-text-label, #8888a0);
298
+ }
299
+ .gz-editor .gz-array-count {
300
+ font-size: 0.625rem; color: var(--gz-text-hint, #555); background: var(--gz-border-subtle, #1e1e2e);
301
+ padding: 0.0625rem 0.4375rem; border-radius: 8px; font-weight: 600;
302
+ }
303
+ .gz-editor .gz-array-add {
304
+ margin-left: auto; background: none; border: 1px solid color-mix(in srgb, var(--gz-accent, #667eea) 20%, transparent);
305
+ color: var(--gz-accent, #667eea); cursor: pointer; font-size: 0.6875rem; font-weight: 600;
306
+ padding: 0.25rem 0.625rem; border-radius: 4px; transition: all 0.15s;
307
+ }
308
+ .gz-editor .gz-array-add:hover { background: color-mix(in srgb, var(--gz-accent, #667eea) 8%, transparent); border-color: color-mix(in srgb, var(--gz-accent, #667eea) 30%, transparent); }
309
+ .gz-editor .gz-array-items { display: flex; flex-direction: column; gap: 0.25rem; }
310
+
311
+ /* Array items — collapsible */
312
+ .gz-editor .gz-array-item {
313
+ background: var(--gz-bg-card, #1a1a28); border-radius: 6px; border: 1px solid var(--gz-border-subtle, #1e1e2e);
314
+ transition: border-color 0.15s;
315
+ }
316
+ .gz-editor .gz-array-item:hover { border-color: var(--gz-border, #2a2a3a); }
317
+ .gz-editor .gz-array-item.dragging { opacity: 0.9; box-shadow: 0 4px 20px #0006; border-color: color-mix(in srgb, var(--gz-accent, #667eea) 25%, transparent); }
318
+ .gz-editor .gz-array-item-header {
319
+ display: flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.625rem;
320
+ cursor: pointer; user-select: none; min-height: 36px;
321
+ }
322
+ .gz-editor .gz-array-item-handle {
323
+ color: var(--gz-text-hint, #444); font-size: 0.625rem; cursor: grab; flex-shrink: 0; padding: 0.25rem 0.125rem;
324
+ opacity: 0; transition: opacity 0.1s; display: flex; align-items: center; letter-spacing: 1px;
325
+ }
326
+ .gz-editor .gz-array-item:hover .gz-array-item-handle { opacity: 1; }
327
+ .gz-editor .gz-array-item-handle:active { cursor: grabbing; color: var(--gz-accent, #667eea); }
328
+ .gz-editor .gz-array-item-chevron {
329
+ color: var(--gz-text-hint, #444); font-size: 0.5rem; transition: transform 0.15s ease; flex-shrink: 0; width: 12px; text-align: center;
330
+ }
331
+ .gz-editor .gz-array-item-chevron.open { transform: rotate(90deg); }
332
+ .gz-editor .gz-array-item-summary {
333
+ flex: 1; font-size: 0.8125rem; color: var(--gz-text-secondary, #999); white-space: nowrap;
334
+ overflow: hidden; text-overflow: ellipsis; min-width: 0;
335
+ }
336
+ .gz-editor .gz-array-item-summary.empty { color: var(--gz-text-hint, #444); font-style: italic; }
337
+ .gz-editor .gz-array-item-idx {
338
+ font-size: 0.625rem; color: var(--gz-text-hint, #444); font-weight: 600; flex-shrink: 0;
339
+ min-width: 1rem; text-align: center;
340
+ }
341
+ .gz-editor .gz-array-item-actions { display: flex; gap: 1px; flex-shrink: 0; opacity: 0; transition: opacity 0.1s; }
342
+ .gz-editor .gz-array-item:hover .gz-array-item-actions { opacity: 1; }
343
+ .gz-editor .gz-array-item-body {
344
+ padding: 0 0.75rem 0.75rem; overflow: hidden;
345
+ transition: max-height 0.2s ease, opacity 0.15s ease, padding 0.2s ease;
346
+ }
347
+ .gz-editor .gz-array-item-body.collapsed { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
348
+ .gz-editor .gz-array-item-body.expanded { max-height: 2000px; opacity: 1; }
349
+ .gz-editor .gz-array-item-body .form-group:last-child { margin-bottom: 0; }
350
+ .gz-editor .gz-array-item-body fieldset > .form-group:last-child { margin-bottom: 0; }
351
+
352
+ /* Icon buttons */
353
+ .gz-editor .gz-btn-icon {
354
+ width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
355
+ background: transparent; border: none; border-radius: 3px; color: var(--gz-text-hint, #555); cursor: pointer;
356
+ font-size: 0.6875rem; padding: 0; transition: all 0.1s;
357
+ }
358
+ .gz-editor .gz-btn-icon:hover { background: var(--gz-bg-chip, #252538); color: var(--gz-text-secondary, #ccc); }
359
+ .gz-editor .gz-btn-icon:disabled { opacity: 0.25; cursor: default; }
360
+ .gz-editor .gz-btn-icon:disabled:hover { background: transparent; color: var(--gz-text-hint, #555); }
361
+ .gz-editor .gz-btn-icon.gz-btn-remove:hover { background: color-mix(in srgb, var(--gz-error, #f87171) 15%, transparent); color: var(--gz-error, #f87171); }
362
+
363
+ /* Array empty state */
364
+ .gz-editor .gz-array-empty {
365
+ padding: 1.5rem; text-align: center; border: 1px dashed var(--gz-border-subtle, #1e1e2e); border-radius: 6px;
366
+ color: var(--gz-text-hint, #444); font-size: 0.8125rem;
367
+ }
368
+
369
+ /* Nested objects in arrays */
370
+ .gz-editor .gz-object-inline { }
371
+ .gz-editor .gz-object-inline > .form-group { margin-bottom: 0.625rem; }
372
+ `,Zx=new Set(["body","description","text","content","bio","summary","message","notes","output"]),ek=new Set(["href","url","link","src"]),rk=new Set(["background","color"]);function ok(e){const r={"ui:submitButtonOptions":{norender:!0}},o=e.properties;if(!o)return r;for(const[t,n]of Object.entries(o)){const a=n.format,i=n.type,l=n.field;if(l){r[t]={"ui:widget":`custom-field:${l}`};continue}if(a==="markdown"||a==="richtext"||a==="image"||a==="link"||a==="slug"||a==="code"||a==="json"){r[t]={"ui:widget":a};continue}if(a==="color"){r[t]={"ui:widget":"color"};continue}if(i==="string"&&!a&&(Zx.has(t)?r[t]={"ui:widget":"textarea","ui:options":{rows:5}}:ek.has(t)?r[t]={"ui:options":{inputType:"url"}}:rk.has(t)&&(r[t]={"ui:widget":"color"})),i==="boolean"&&(r[t]={"ui:widget":"toggle"}),i==="array"){const s=n.items;(s==null?void 0:s.type)==="string"&&(r[t]={"ui:widget":"tags"})}}return r}function tk(e){if(!e||typeof e!="object")return String(e??"");const r=e;for(const o of["title","name","label","heading","text","quote","command"])if(typeof r[o]=="string"&&r[o])return r[o];for(const o of Object.values(r))if(typeof o=="string"&&o.trim())return o.trim();return""}function nk(e){return D.jsxs("div",{className:"gz-markdown",children:[D.jsx("textarea",{value:e.value??"",onChange:r=>e.onChange(r.target.value),placeholder:"Write markdown here...",rows:12}),D.jsx("div",{className:"gz-markdown-hint",children:"Markdown supported"})]})}function ak(e){const r=!!e.value;return D.jsxs("div",{className:"gz-toggle",onClick:()=>!e.disabled&&!e.readonly&&e.onChange(!r),role:"switch","aria-checked":r,children:[D.jsx("div",{className:`gz-toggle-track${r?" on":""}`,children:D.jsx("div",{className:"gz-toggle-thumb"})}),e.label&&D.jsx("span",{className:"gz-toggle-label",children:e.label})]})}function ik(e){const r=e.value??"";return D.jsxs("div",{className:"gz-color-widget",children:[D.jsx("input",{type:"color",value:r||"#667eea",onChange:o=>e.onChange(o.target.value)}),D.jsx("input",{type:"text",value:r,onChange:o=>e.onChange(o.target.value),placeholder:"#667eea"})]})}function lk(e){const r=Array.isArray(e.value)?e.value:[],[o,t]=U.useState(""),n=U.useRef(null),a=s=>{const d=s.trim();d&&!r.includes(d)&&e.onChange([...r,d]),t("")},i=s=>e.onChange(r.filter((d,f)=>f!==s)),l=s=>{s.key==="Enter"||s.key===","?(s.preventDefault(),a(o)):s.key==="Backspace"&&!o&&r.length>0&&i(r.length-1)};return D.jsxs("div",{className:"gz-tags",onClick:()=>{var s;return(s=n.current)==null?void 0:s.focus()},children:[r.map((s,d)=>D.jsxs("span",{className:"gz-tag",children:[s,D.jsx("button",{type:"button",className:"gz-tag-remove",onClick:f=>{f.stopPropagation(),i(d)},"aria-label":`Remove ${s}`,children:"×"})]},`${s}-${d}`)),D.jsx("input",{ref:n,className:"gz-tags-input",value:o,onChange:s=>t(s.target.value),onKeyDown:l,onBlur:()=>{o&&a(o)},placeholder:r.length===0?"Type and press Enter...":""})]})}function sk(e){const r=e.value??"",[o,t]=U.useState(!1);return U.useEffect(()=>{t(!1)},[r]),D.jsxs("div",{children:[D.jsx("input",{type:"text",value:r,onChange:n=>e.onChange(n.target.value),placeholder:"https://example.com/image.png"}),D.jsx("div",{className:`gz-image-preview${r&&!o?" has-image":""}`,children:r&&!o?D.jsx("img",{src:r,alt:"Preview",onError:()=>t(!0)}):D.jsx("div",{className:"gz-image-preview-empty",children:r?"Image failed to load":"Paste an image URL above"})})]})}function ck(e){return D.jsx("input",{type:"url",value:e.value??"",onChange:r=>e.onChange(r.target.value),placeholder:"https://..."})}function dk(e){const r=o=>o.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");return D.jsxs("div",{className:"gz-slug-widget",children:[D.jsx("input",{type:"text",value:e.value??"",onChange:o=>e.onChange(r(o.target.value)),placeholder:"my-page-slug"}),D.jsx("div",{className:"gz-slug-hint",children:"URL-safe identifier — lowercase, hyphens only"})]})}function uk(e){const r=e.schema.language;return D.jsxs("div",{className:"gz-code-widget",children:[D.jsx("textarea",{value:e.value??"",onChange:o=>e.onChange(o.target.value),placeholder:e.placeholder,rows:15,spellCheck:!1}),r&&D.jsx("div",{className:"gz-code-hint",children:r})]})}function fk(e){const[r,o]=U.useState(null),[t,n]=U.useState(()=>e.value==null?"":typeof e.value=="string"?e.value:JSON.stringify(e.value,null,2)),a=()=>{if(!t.trim()){o(null);return}try{JSON.parse(t),o(null)}catch{o("Invalid JSON")}},i=l=>{n(l);try{const s=JSON.parse(l);o(null),e.onChange(s)}catch{}};return D.jsxs("div",{className:"gz-json-widget",children:[D.jsx("textarea",{value:t,onChange:l=>i(l.target.value),onBlur:a,placeholder:'{ "key": "value" }',rows:10,spellCheck:!1}),r&&D.jsx("div",{className:"gz-json-error",children:r})]})}function gk(e){const r=U.useRef(e.onChange);r.current=e.onChange;const o=Ea({extensions:[Ia.configure({heading:{levels:[2,3]},codeBlock:{HTMLAttributes:{spellcheck:"false"}}}),Pa.configure({openOnClick:!1,HTMLAttributes:{rel:"noopener noreferrer"}}),Aa.configure({placeholder:"Start writing..."})],content:e.value||"",onUpdate:({editor:a})=>r.current(a.getHTML()),immediatelyRender:!0});if(!o)return null;const t=({active:a,onClick:i,children:l})=>D.jsx("button",{type:"button",className:`gz-rt-btn${a?" active":""}`,onMouseDown:s=>{s.preventDefault(),i()},children:l}),n=()=>{const a=o.getAttributes("link").href,i=prompt("URL:",a??"https://");if(i!==null){if(i===""){o.chain().focus().extendMarkRange("link").unsetLink().run();return}o.chain().focus().extendMarkRange("link").setLink({href:i}).run()}};return D.jsxs("div",{className:"gz-richtext",children:[D.jsxs("div",{className:"gz-richtext-toolbar",children:[D.jsx(t,{active:o.isActive("bold"),onClick:()=>o.chain().focus().toggleBold().run(),children:"B"}),D.jsx(t,{active:o.isActive("italic"),onClick:()=>o.chain().focus().toggleItalic().run(),children:"I"}),D.jsx(t,{active:o.isActive("strike"),onClick:()=>o.chain().focus().toggleStrike().run(),children:"S"}),D.jsx(t,{active:o.isActive("code"),onClick:()=>o.chain().focus().toggleCode().run(),children:"</>"}),D.jsx("div",{className:"gz-rt-sep"}),D.jsx(t,{active:o.isActive("heading",{level:2}),onClick:()=>o.chain().focus().toggleHeading({level:2}).run(),children:"H2"}),D.jsx(t,{active:o.isActive("heading",{level:3}),onClick:()=>o.chain().focus().toggleHeading({level:3}).run(),children:"H3"}),D.jsx("div",{className:"gz-rt-sep"}),D.jsx(t,{active:o.isActive("bulletList"),onClick:()=>o.chain().focus().toggleBulletList().run(),children:"•"}),D.jsx(t,{active:o.isActive("orderedList"),onClick:()=>o.chain().focus().toggleOrderedList().run(),children:"1."}),D.jsx(t,{active:o.isActive("blockquote"),onClick:()=>o.chain().focus().toggleBlockquote().run(),children:"“"}),D.jsx("div",{className:"gz-rt-sep"}),D.jsx(t,{active:o.isActive("link"),onClick:n,children:"Link"}),D.jsx(t,{onClick:()=>o.chain().focus().setHorizontalRule().run(),children:"—"}),D.jsx(t,{active:o.isActive("codeBlock"),onClick:()=>o.chain().focus().toggleCodeBlock().run(),children:"Code"})]}),D.jsx(Oa,{editor:o,children:D.jsxs("div",{className:"gz-bubble",children:[D.jsx(t,{active:o.isActive("bold"),onClick:()=>o.chain().focus().toggleBold().run(),children:"B"}),D.jsx(t,{active:o.isActive("italic"),onClick:()=>o.chain().focus().toggleItalic().run(),children:"I"}),D.jsx(t,{active:o.isActive("strike"),onClick:()=>o.chain().focus().toggleStrike().run(),children:"S"}),D.jsx(t,{active:o.isActive("code"),onClick:()=>o.chain().focus().toggleCode().run(),children:"</>"}),D.jsx(t,{active:o.isActive("link"),onClick:n,children:"Link"})]})}),D.jsx(Ta,{editor:o})]})}function pk(e){var n;const r=e.registry.formContext,o=((n=e.fieldPathId)==null?void 0:n.$id)??"",t=a=>{!a.destination||a.source.index===a.destination.index||r==null||r.reorderArray(o,a.source.index,a.destination.index)};return e.items.length===0?D.jsxs("div",{className:"gz-array",children:[D.jsxs("div",{className:"gz-array-header",children:[e.title&&D.jsx("span",{className:"gz-array-title",children:e.title}),D.jsx("span",{className:"gz-array-count",children:"0"})]}),D.jsxs("div",{className:"gz-array-empty",children:["No items yet",e.canAdd&&D.jsx("div",{style:{marginTop:"0.5rem"},children:D.jsx("button",{type:"button",className:"gz-array-add",onClick:e.onAddClick,children:"+ Add first item"})})]})]}):D.jsxs("div",{className:"gz-array",children:[D.jsxs("div",{className:"gz-array-header",children:[e.title&&D.jsx("span",{className:"gz-array-title",children:e.title}),D.jsx("span",{className:"gz-array-count",children:e.items.length}),e.canAdd&&D.jsx("button",{type:"button",className:"gz-array-add",onClick:e.onAddClick,children:"+ Add"})]}),D.jsx(ux,{onDragEnd:t,children:D.jsx(Kx,{droppableId:o||"array",children:a=>D.jsxs("div",{className:"gz-array-items",ref:a.innerRef,...a.droppableProps,children:[e.items,a.placeholder]})})})]})}function mk(e){var a;const[r,o]=U.useState(!0),t=tk(e.formData),n=`${((a=e.buttonsProps.fieldPathId)==null?void 0:a.$id)??"item"}-${e.index}`;return D.jsx(Ex,{draggableId:n,index:e.index,children:(i,l)=>D.jsxs("div",{className:`gz-array-item${l.isDragging?" dragging":""}`,ref:i.innerRef,...i.draggableProps,children:[D.jsxs("div",{className:"gz-array-item-header",onClick:()=>o(!r),children:[D.jsx("span",{className:"gz-array-item-handle",...i.dragHandleProps,onClick:s=>s.stopPropagation(),children:"⠁⠁"}),D.jsx("span",{className:`gz-array-item-chevron${r?" open":""}`,children:"▶"}),D.jsx("span",{className:"gz-array-item-idx",children:e.index+1}),!r&&D.jsx("span",{className:`gz-array-item-summary${t?"":" empty"}`,children:t||"Empty item"}),D.jsx("div",{className:"gz-array-item-actions",onClick:s=>s.stopPropagation(),children:D.jsx(ua,{...e.buttonsProps})})]}),D.jsx("div",{className:`gz-array-item-body ${r?"expanded":"collapsed"}`,children:e.children})]})})}function ua(e){return D.jsxs(D.Fragment,{children:[e.hasMoveUp&&D.jsx("button",{type:"button",className:"gz-btn-icon",onClick:e.onMoveUpItem,title:"Move up",children:"↑"}),e.hasMoveDown&&D.jsx("button",{type:"button",className:"gz-btn-icon",onClick:e.onMoveDownItem,title:"Move down",children:"↓"}),e.hasRemove&&D.jsx("button",{type:"button",className:"gz-btn-icon gz-btn-remove",onClick:e.onRemoveItem,title:"Remove",children:"×"})]})}function bk(e){var o;return((o=e.fieldPathId)==null?void 0:o.$id)==="root"?D.jsx(D.Fragment,{children:e.properties.map(t=>t.content)}):D.jsx("div",{className:"gz-object-inline",children:e.properties.map(t=>t.content)})}function hk(e){return D.jsx("button",{type:"button",className:"gz-array-add",onClick:e.onClick,disabled:e.disabled,children:"+ Add"})}const Gt=new Map;function vk(e){const r=Gt.get(e);if(r)return r;const o=t=>{var u;const n=U.useRef(null),a=U.useRef(null),i=U.useRef(!1),[l,s]=U.useState(!0),[d,f]=U.useState(null),c=(u=t.registry)==null?void 0:u.formContext;return U.useEffect(()=>{if(!(c!=null&&c.fieldsBaseUrl)){f("No fields base URL configured"),s(!1);return}const g=`${c.fieldsBaseUrl}/${e}`;(async()=>{for(const h of[".tsx",".ts",".js"])try{const p=await ho(()=>import(`${g}${h}`),[]);a.current=p.default??p,s(!1);return}catch{}f(`Failed to load field "${e}"`),s(!1)})()},[c==null?void 0:c.fieldsBaseUrl]),U.useEffect(()=>{if(l||!n.current||!a.current)return;const g=n.current,h=a.current;return h.mount(g,{value:t.value,schema:t.schema,theme:(c==null?void 0:c.theme)??"dark",onChange:p=>t.onChange(p)}),i.current=!0,()=>{h.unmount(g),i.current=!1}},[l]),U.useEffect(()=>{!i.current||!n.current||!a.current||a.current.mount(n.current,{value:t.value,schema:t.schema,theme:(c==null?void 0:c.theme)??"dark",onChange:g=>t.onChange(g)})},[t.value]),l?D.jsxs("div",{style:{color:"var(--gz-text-hint)",fontSize:"0.75rem",padding:"0.5rem 0"},children:["Loading ",e,"..."]}):d?D.jsx("div",{style:{color:"var(--gz-error)",fontSize:"0.75rem"},children:d}):D.jsx("div",{ref:n})};return Gt.set(e,o),o}const yk={markdown:nk,toggle:ak,color:ik,tags:lk,richtext:gk,image:sk,link:ck,slug:dk,code:uk,json:fk};function xk(e){const r={...yk},o=e.properties;if(!o)return r;for(const t of Object.values(o)){const n=t.field;n&&(r[`custom-field:${n}`]=vk(n))}return r}const kk={ArrayFieldTemplate:pk,ArrayFieldItemTemplate:mk,ArrayFieldItemButtonsTemplate:ua,ObjectFieldTemplate:bk,ButtonTemplates:{AddButton:hk}};function fa({schema:e,content:r,onChange:o,fieldsBaseUrl:t,theme:n}){const a=U.useMemo(()=>ok(e),[e]),i=U.useMemo(()=>xk(e),[e]),[l,s]=U.useState(r),d=U.useRef(l);d.current=l;const f=U.useRef([]),c=U.useRef([]),u=U.useRef(!1),g=$=>{u.current||(f.current.push($),f.current.length>50&&f.current.shift(),c.current=[])},h=$=>{s($),o($)},p=$=>{g(d.current),s($.formData),o($.formData)};U.useEffect(()=>{const $=O=>{if((O.metaKey||O.ctrlKey)&&O.key==="z")if(O.preventDefault(),O.shiftKey){if(c.current.length===0)return;const A=c.current.pop();f.current.push(d.current),u.current=!0,h(A),u.current=!1}else{if(f.current.length===0)return;const A=f.current.pop();c.current.push(d.current),u.current=!0,h(A),u.current=!1}};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[]);const m=U.useCallback(($,O,A)=>{s(_=>{g(_);const H=$.replace(/^root_/,"").split("_")[0],Y=_[H];if(!Array.isArray(Y))return _;const ee=[...Y],[Z]=ee.splice(O,1);ee.splice(A,0,Z);const V={..._,[H]:ee};return o(V),V})},[o]),v=U.useMemo(()=>({reorderArray:m,fieldsBaseUrl:t,theme:n}),[m,t,n]);return D.jsxs(D.Fragment,{children:[D.jsx("style",{children:Qx}),D.jsx("div",{className:"gz-editor",children:D.jsx(Ra,{schema:e,uiSchema:a,formData:l,onChange:p,validator:Da,widgets:i,templates:kk,formContext:v,liveValidate:!1,omitExtraData:!0,noHtml5Validate:!0,autoComplete:"off"})})]})}function ga(e){return{mount(r,{content:o,schema:t,theme:n,onChange:a,fieldsBaseUrl:i}){const l=Rr.get(r);l&&l.unmount();const s=Sa.createRoot(r);Rr.set(r,s),s.render(D.jsx(fa,{schema:t??e,content:o,theme:n,fieldsBaseUrl:i,onChange:a}))},unmount(r){const o=Rr.get(r);o&&(o.unmount(),Rr.delete(r))}}}const wk=Object.freeze(Object.defineProperty({__proto__:null,DefaultEditorForm:fa,createEditorMount:ga},Symbol.toStringTag,{value:"Module"})),Ck={key:0,class:"editor-error","data-testid":"editor-error"},$k={key:1,class:"editor-empty","data-testid":"editor-empty"},Bk={key:2},zk={key:1,class:"editor-no-schema"},Sk=xe({__name:"EditorPanel",setup(e){const r=He(),o=Hr(),t=N(null),n=K(()=>{const g=r.schema;if(!g)return!1;const h=g.properties;return h&&Object.keys(h).length>0}),a=K(()=>!r.schema||!n.value?null:r.customEditorMount?r.customEditorMount:ga(r.schema)),i=K(()=>r.content),l=K(()=>r.schema),s=K(()=>o.dark?"dark":"light"),d=K(()=>r.mountVersion),f=K(()=>{var g;return(g=r.target)==null?void 0:g.fieldsBaseUrl});function c(g){r.markDirty(g)}A0(t,a,i,l,s,c,d,f),Ro("s",g=>{(g.metaKey||g.ctrlKey)&&(g.preventDefault(),r.dirty&&r.save())});const u=K(()=>o.dark?{"--gz-bg-input":"#161622","--gz-bg-card":"#1a1a28","--gz-bg-toolbar":"#1a1a2a","--gz-bg-chip":"#252538","--gz-bg-code":"#12121e","--gz-text":"#e0e0e0","--gz-text-secondary":"#ccc","--gz-text-label":"#8888a0","--gz-text-hint":"#444","--gz-border":"#2a2a3a","--gz-border-subtle":"#1e1e2e","--gz-accent":"#667eea","--gz-error":"#f87171","--gz-success":"#4ade80"}:{"--gz-bg-input":"#ffffff","--gz-bg-card":"#f9fafb","--gz-bg-toolbar":"#f3f4f6","--gz-bg-chip":"#e5e7eb","--gz-bg-code":"#f1f5f9","--gz-text":"#1a1a1a","--gz-text-secondary":"#4b5563","--gz-text-label":"#6b7280","--gz-text-hint":"#9ca3af","--gz-border":"#e5e7eb","--gz-border-subtle":"#f3f4f6","--gz-accent":"#667eea","--gz-error":"#dc2626","--gz-success":"#16a34a"});return(g,h)=>(R(),T("div",{class:"editor-panel","data-testid":"editor-panel",style:Wr(u.value)},[z(r).loadError?(R(),T("div",Ck,[h[0]||(h[0]=C("i",{class:"pi pi-exclamation-triangle"},null,-1)),C("p",null,re(z(r).loadError),1)])):z(r).path?(R(),T("div",Bk,[C("h3",null,re(z(r).template),1),n.value?(R(),T("div",{ref_key:"containerRef",ref:t,class:"editor-container","data-testid":"editor-container",key:z(r).path})):(R(),T("p",zk,"No editable content. Edit its children instead."))])):(R(),T("div",$k,[...h[1]||(h[1]=[C("i",{class:"pi pi-pencil",style:{"font-size":"2rem",opacity:"0.3","margin-bottom":"0.5rem"}},null,-1),C("p",null,"Select a component to edit",-1)])]))],4))}}),Rk=ze(Sk,[["__scopeId","data-v-568555bd"]]);var Ht=11;function Dk(e,r){var o=r.attributes,t,n,a,i,l;if(!(r.nodeType===Ht||e.nodeType===Ht)){for(var s=o.length-1;s>=0;s--)t=o[s],n=t.name,a=t.namespaceURI,i=t.value,a?(n=t.localName||n,l=e.getAttributeNS(a,n),l!==i&&(t.prefix==="xmlns"&&(n=t.name),e.setAttributeNS(a,n,i))):(l=e.getAttribute(n),l!==i&&e.setAttribute(n,i));for(var d=e.attributes,f=d.length-1;f>=0;f--)t=d[f],n=t.name,a=t.namespaceURI,a?(n=t.localName||n,r.hasAttributeNS(a,n)||e.removeAttributeNS(a,n)):r.hasAttribute(n)||e.removeAttribute(n)}}var Dr,Ek="http://www.w3.org/1999/xhtml",ye=typeof document>"u"?void 0:document,Ik=!!ye&&"content"in ye.createElement("template"),Pk=!!ye&&ye.createRange&&"createContextualFragment"in ye.createRange();function Ak(e){var r=ye.createElement("template");return r.innerHTML=e,r.content.childNodes[0]}function Ok(e){Dr||(Dr=ye.createRange(),Dr.selectNode(ye.body));var r=Dr.createContextualFragment(e);return r.childNodes[0]}function Tk(e){var r=ye.createElement("body");return r.innerHTML=e,r.childNodes[0]}function Nk(e){return e=e.trim(),Ik?Ak(e):Pk?Ok(e):Tk(e)}function Er(e,r){var o=e.nodeName,t=r.nodeName,n,a;return o===t?!0:(n=o.charCodeAt(0),a=t.charCodeAt(0),n<=90&&a>=97?o===t.toUpperCase():a<=90&&n>=97?t===o.toUpperCase():!1)}function _k(e,r){return!r||r===Ek?ye.createElement(e):ye.createElementNS(r,e)}function Lk(e,r){for(var o=e.firstChild;o;){var t=o.nextSibling;r.appendChild(o),o=t}return r}function mo(e,r,o){e[o]!==r[o]&&(e[o]=r[o],e[o]?e.setAttribute(o,""):e.removeAttribute(o))}var jt={OPTION:function(e,r){var o=e.parentNode;if(o){var t=o.nodeName.toUpperCase();t==="OPTGROUP"&&(o=o.parentNode,t=o&&o.nodeName.toUpperCase()),t==="SELECT"&&!o.hasAttribute("multiple")&&(e.hasAttribute("selected")&&!r.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),o.selectedIndex=-1)}mo(e,r,"selected")},INPUT:function(e,r){mo(e,r,"checked"),mo(e,r,"disabled"),e.value!==r.value&&(e.value=r.value),r.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,r){var o=r.value;e.value!==o&&(e.value=o);var t=e.firstChild;if(t){var n=t.nodeValue;if(n==o||!o&&n==e.placeholder)return;t.nodeValue=o}},SELECT:function(e,r){if(!r.hasAttribute("multiple")){for(var o=-1,t=0,n=e.firstChild,a,i;n;)if(i=n.nodeName&&n.nodeName.toUpperCase(),i==="OPTGROUP")a=n,n=a.firstChild,n||(n=a.nextSibling,a=null);else{if(i==="OPTION"){if(n.hasAttribute("selected")){o=t;break}t++}n=n.nextSibling,!n&&a&&(n=a.nextSibling,a=null)}e.selectedIndex=o}}},sr=1,Ut=11,Vt=3,qt=8;function Le(){}function Fk(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}function Mk(e){return function(o,t,n){if(n||(n={}),typeof t=="string")if(o.nodeName==="#document"||o.nodeName==="HTML"){var a=t;t=ye.createElement("html"),t.innerHTML=a}else if(o.nodeName==="BODY"){var i=t;t=ye.createElement("html"),t.innerHTML=i;var l=t.querySelector("body");l&&(t=l)}else t=Nk(t);else t.nodeType===Ut&&(t=t.firstElementChild);var s=n.getNodeKey||Fk,d=n.onBeforeNodeAdded||Le,f=n.onNodeAdded||Le,c=n.onBeforeElUpdated||Le,u=n.onElUpdated||Le,g=n.onBeforeNodeDiscarded||Le,h=n.onNodeDiscarded||Le,p=n.onBeforeElChildrenUpdated||Le,m=n.skipFromChildren||Le,v=n.addChild||function(w,S){return w.appendChild(S)},$=n.childrenOnly===!0,O=Object.create(null),A=[];function _(w){A.push(w)}function L(w,S){if(w.nodeType===sr)for(var M=w.firstChild;M;){var j=void 0;S&&(j=s(M))?_(j):(h(M),M.firstChild&&L(M,S)),M=M.nextSibling}}function H(w,S,M){g(w)!==!1&&(S&&S.removeChild(w),h(w),L(w,M))}function Y(w){if(w.nodeType===sr||w.nodeType===Ut)for(var S=w.firstChild;S;){var M=s(S);M&&(O[M]=S),Y(S),S=S.nextSibling}}Y(o);function ee(w){f(w);for(var S=w.firstChild;S;){var M=S.nextSibling,j=s(S);if(j){var G=O[j];G&&Er(S,G)?(S.parentNode.replaceChild(G,S),V(G,S)):ee(S)}else ee(S);S=M}}function Z(w,S,M){for(;S;){var j=S.nextSibling;(M=s(S))?_(M):H(S,w,!0),S=j}}function V(w,S,M){var j=s(S);if(j&&delete O[j],!M){var G=c(w,S);if(G===!1||(G instanceof HTMLElement&&(w=G,Y(w)),e(w,S),u(w),p(w,S)===!1))return}w.nodeName!=="TEXTAREA"?E(w,S):jt.TEXTAREA(w,S)}function E(w,S){var M=m(w,S),j=S.firstChild,G=w.firstChild,q,Q,ue,ke,Se;e:for(;j;){for(ke=j.nextSibling,q=s(j);!M&&G;){if(ue=G.nextSibling,j.isSameNode&&j.isSameNode(G)){j=ke,G=ue;continue e}Q=s(G);var Te=G.nodeType,Re=void 0;if(Te===j.nodeType&&(Te===sr?(q?q!==Q&&((Se=O[q])?ue===Se?Re=!1:(w.insertBefore(Se,G),Q?_(Q):H(G,w,!0),G=Se,Q=s(G)):Re=!1):Q&&(Re=!1),Re=Re!==!1&&Er(G,j),Re&&V(G,j)):(Te===Vt||Te==qt)&&(Re=!0,G.nodeValue!==j.nodeValue&&(G.nodeValue=j.nodeValue))),Re){j=ke,G=ue;continue e}Q?_(Q):H(G,w,!0),G=ue}if(q&&(Se=O[q])&&Er(Se,j))M||v(w,Se),V(Se,j);else{var Cr=d(j);Cr!==!1&&(Cr&&(j=Cr),j.actualize&&(j=j.actualize(w.ownerDocument||ye)),v(w,j),ee(j))}j=ke,G=ue}Z(w,G,Q);var me=jt[w.nodeName];me&&me(w,S)}var I=o,x=I.nodeType,y=t.nodeType;if(!$){if(x===sr)y===sr?Er(o,t)||(h(o),I=Lk(o,_k(t.nodeName,t.namespaceURI))):I=t;else if(x===Vt||x===qt){if(y===x)return I.nodeValue!==t.nodeValue&&(I.nodeValue=t.nodeValue),I;I=t}}if(I===t)h(o);else{if(t.isSameNode&&t.isSameNode(I))return;if(V(I,t,$),A)for(var b=0,k=A.length;b<k;b++){var B=O[A[b]];B&&H(B,B.parentNode,!1)}}return!$&&I!==o&&o.parentNode&&(I.actualize&&(I=I.actualize(o.ownerDocument||ye)),o.parentNode.replaceChild(I,o)),I}}var Wk=Mk(Dk);const Gk={key:0,class:"preview-empty","data-testid":"preview-empty"},Hk={class:"preview-toolbar"},jk={class:"preview-devices"},Uk=["title","onClick"],Vk={class:"preview-route"},qk={class:"preview-actions"},Yk=["value"],Xk=["value"],Jk=["title"],Kk=["title"],Qk={class:"preview-frame-wrapper"},Zk=`
373
+ <script>
374
+ (function() {
375
+ // Hover overlay — transient, subtle, fades
376
+ var hoverOvl = document.createElement('div');
377
+ hoverOvl.id = 'gz-hover';
378
+ hoverOvl.style.cssText = 'position:fixed;pointer-events:none;border:1px solid rgba(167,139,250,0.5);border-radius:4px;z-index:100000;transition:opacity 0.2s;display:none;opacity:0;';
379
+ document.body.appendChild(hoverOvl);
380
+
381
+ // Selection overlay — persistent, solid green
382
+ var selectOvl = document.createElement('div');
383
+ selectOvl.id = 'gz-select';
384
+ selectOvl.style.cssText = 'position:fixed;pointer-events:none;border:2px solid #22c55e;border-radius:4px;z-index:99999;display:none;';
385
+ document.body.appendChild(selectOvl);
386
+
387
+ // Fullscreen hides all overlays via CSS (preserves state for restore)
388
+ var gzStyle = document.createElement('style');
389
+ gzStyle.textContent = '[data-gz-mode="fullscreen"] #gz-hover, [data-gz-mode="fullscreen"] #gz-select, [data-gz-mode="fullscreen"] #gz-dim { display: none !important }';
390
+ document.head.appendChild(gzStyle);
391
+
392
+ // Dim overlay — fragment scope backdrop
393
+ var dimOverlay = document.createElement('div');
394
+ dimOverlay.id = 'gz-dim';
395
+ dimOverlay.style.cssText = 'position:fixed;inset:0;background:rgba(0,0,0,0.3);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);z-index:99998;pointer-events:none;display:none;transition:opacity 0.2s;opacity:0;';
396
+ document.body.appendChild(dimOverlay);
397
+
398
+ var hoveredEl = null;
399
+ var selectedEl = null;
400
+ var highlightScrollTimer = null;
401
+ var mode = 'browse';
402
+ var highlight = true;
403
+ var scopedEl = null;
404
+ var scopedOrigPos = '';
405
+
406
+ function findGz(el) {
407
+ while (el && el !== document.body) {
408
+ if (el.dataset && el.dataset.gz) return el;
409
+ el = el.parentElement;
410
+ }
411
+ return null;
412
+ }
413
+
414
+ function isInteractive(el) {
415
+ var tag = el.tagName;
416
+ if (tag === 'BUTTON' || tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT' || tag === 'LABEL' || tag === 'A' || el.isContentEditable) return true;
417
+ var role = el.getAttribute && el.getAttribute('role');
418
+ return role === 'button' || role === 'link' || role === 'menuitem' || role === 'tab' || role === 'switch' || role === 'checkbox' || role === 'radio' || role === 'textbox' || role === 'combobox';
419
+ }
420
+
421
+ function positionOverlay(ovl, el) {
422
+ var rect = el.getBoundingClientRect();
423
+ ovl.style.display = 'block';
424
+ ovl.style.top = rect.top + 'px';
425
+ ovl.style.left = rect.left + 'px';
426
+ ovl.style.width = rect.width + 'px';
427
+ ovl.style.height = rect.height + 'px';
428
+ }
429
+
430
+ function refreshOverlays() {
431
+ if (hoveredEl && hoveredEl.isConnected) positionOverlay(hoverOvl, hoveredEl);
432
+ else { hoveredEl = null; hoverOvl.style.display = 'none'; }
433
+ if (selectedEl && selectedEl.isConnected) positionOverlay(selectOvl, selectedEl);
434
+ else { selectedEl = null; selectOvl.style.display = 'none'; }
435
+ }
436
+
437
+ function showSelect(el) {
438
+ selectedEl = el;
439
+ positionOverlay(selectOvl, el);
440
+ }
441
+
442
+ function clearSelect() {
443
+ selectedEl = null;
444
+ selectOvl.style.display = 'none';
445
+ }
446
+
447
+ function showHover(el) {
448
+ hoveredEl = el;
449
+ positionOverlay(hoverOvl, el);
450
+ hoverOvl.style.opacity = '1';
451
+ }
452
+
453
+ function clearHover() {
454
+ hoverOvl.style.opacity = '0';
455
+ setTimeout(function() { if (!hoveredEl) hoverOvl.style.display = 'none'; }, 200);
456
+ hoveredEl = null;
457
+ }
458
+
459
+ function scrollIfOffscreen(el) {
460
+ var rect = el.getBoundingClientRect();
461
+ if (rect.top < 0 || rect.bottom > window.innerHeight) {
462
+ el.scrollIntoView({ behavior: 'smooth', block: 'center' });
463
+ }
464
+ }
465
+
466
+ function applyScope(gzId) {
467
+ if (scopedEl) {
468
+ scopedEl.style.position = scopedOrigPos;
469
+ scopedEl.style.zIndex = '';
470
+ scopedEl.style.cursor = '';
471
+ scopedEl = null;
472
+ }
473
+ dimOverlay.style.opacity = '0';
474
+ setTimeout(function() { if (!scopedEl) dimOverlay.style.display = 'none'; }, 200);
475
+
476
+ if (!gzId) {
477
+ if (mode === 'edit' && highlight) document.body.style.cursor = 'crosshair';
478
+ return;
479
+ }
480
+ var el = document.querySelector('[data-gz="' + gzId + '"]');
481
+ if (!el) return;
482
+
483
+ scopedOrigPos = el.style.position;
484
+ if (getComputedStyle(el).position === 'static') el.style.position = 'relative';
485
+ el.style.zIndex = '99999';
486
+ scopedEl = el;
487
+ if (mode === 'edit' && highlight) {
488
+ document.body.style.cursor = '';
489
+ el.style.cursor = 'crosshair';
490
+ }
491
+ el.scrollIntoView({ behavior: 'smooth', block: 'center' });
492
+ dimOverlay.style.display = 'block';
493
+ dimOverlay.offsetHeight;
494
+ dimOverlay.style.opacity = '1';
495
+ }
496
+
497
+ window.addEventListener('scroll', refreshOverlays, true);
498
+ window.addEventListener('resize', refreshOverlays);
499
+
500
+ function isInScope(el) {
501
+ return !scopedEl || scopedEl.contains(el);
502
+ }
503
+
504
+ // Clear hover when mouse leaves the iframe
505
+ document.addEventListener('mouseleave', function() {
506
+ if (hoveredEl) { clearHover(); window.parent.postMessage({ type: 'gazetta:hover', gzId: null }, '*'); }
507
+ });
508
+
509
+ // Edit mode: mousemove hover highlight in preview
510
+ document.addEventListener('mousemove', function(e) {
511
+ if (mode !== 'edit' || !highlight) {
512
+ if (hoveredEl) { clearHover(); window.parent.postMessage({ type: 'gazetta:hover', gzId: null }, '*'); }
513
+ return;
514
+ }
515
+ var target = findGz(e.target);
516
+ if (target && target !== hoveredEl && isInScope(target)) {
517
+ showHover(target);
518
+ window.parent.postMessage({ type: 'gazetta:hover', gzId: target.dataset.gz }, '*');
519
+ } else if (!target || !isInScope(target)) {
520
+ if (hoveredEl) { clearHover(); window.parent.postMessage({ type: 'gazetta:hover', gzId: null }, '*'); }
521
+ }
522
+ });
523
+
524
+ document.addEventListener('click', function(e) {
525
+ var link = e.target.closest ? e.target.closest('a[href]') : null;
526
+ if (link) {
527
+ var href = link.getAttribute('href');
528
+ if (href) {
529
+ e.preventDefault();
530
+ e.stopPropagation();
531
+ if (href.startsWith('/') || href.startsWith(location.origin)) {
532
+ var path = href.startsWith('/') ? href : new URL(href).pathname;
533
+ window.parent.postMessage({ type: 'gazetta:navigate', route: path }, '*');
534
+ } else {
535
+ window.parent.postMessage({ type: 'gazetta:external', url: href }, '*');
536
+ }
537
+ return;
538
+ }
539
+ }
540
+
541
+ if (mode === 'fullscreen') return;
542
+ if (isInteractive(e.target)) return;
543
+
544
+ var target = findGz(e.target);
545
+ if (!target || !isInScope(target)) return;
546
+
547
+ e.preventDefault();
548
+ e.stopPropagation();
549
+
550
+ window.parent.postMessage({ type: 'gazetta:select', gzId: target.dataset.gz }, '*');
551
+ }, true);
552
+
553
+ document.addEventListener('keydown', function(e) {
554
+ if (e.key === 'Escape') window.parent.postMessage({ type: 'gazetta:escape' }, '*');
555
+ });
556
+
557
+ window.addEventListener('message', function(e) {
558
+ if (e.data && e.data.type === 'gazetta:mode') {
559
+ mode = e.data.mode || 'browse';
560
+ highlight = e.data.highlight !== false;
561
+ document.body.setAttribute('data-gz-mode', mode);
562
+ if (hoveredEl) clearHover();
563
+ refreshOverlays();
564
+ var cursorTarget = scopedEl || document.body;
565
+ document.body.style.cursor = '';
566
+ if (scopedEl) scopedEl.style.cursor = '';
567
+ cursorTarget.style.cursor = (mode === 'edit' && highlight) ? 'crosshair' : '';
568
+ }
569
+ if (e.data && e.data.type === 'gazetta:highlight') {
570
+ if (highlightScrollTimer) { clearTimeout(highlightScrollTimer); highlightScrollTimer = null; }
571
+ if (e.data.gzId) {
572
+ var el = document.querySelector('[data-gz="' + e.data.gzId + '"]');
573
+ if (el) {
574
+ showHover(el);
575
+ highlightScrollTimer = setTimeout(function() { scrollIfOffscreen(el); }, 150);
576
+ }
577
+ } else {
578
+ clearHover();
579
+ highlightScrollTimer = setTimeout(function() {
580
+ if (selectedEl) scrollIfOffscreen(selectedEl);
581
+ else window.scrollTo({ top: 0, behavior: 'smooth' });
582
+ }, 150);
583
+ }
584
+ }
585
+ if (e.data && e.data.type === 'gazetta:showSelect') {
586
+ if (e.data.gzId) {
587
+ var sel = document.querySelector('[data-gz="' + e.data.gzId + '"]');
588
+ if (sel) showSelect(sel);
589
+ else clearSelect();
590
+ } else {
591
+ clearSelect();
592
+ }
593
+ }
594
+ if (e.data && e.data.type === 'gazetta:scrollTo') {
595
+ if (e.data.gzId) {
596
+ var scrollEl = document.querySelector('[data-gz="' + e.data.gzId + '"]');
597
+ if (scrollEl) scrollIfOffscreen(scrollEl);
598
+ } else {
599
+ window.scrollTo({ top: 0, behavior: 'smooth' });
600
+ }
601
+ }
602
+ if (e.data && e.data.type === 'gazetta:scope') {
603
+ applyScope(e.data.gzId);
604
+ }
605
+ });
606
+ })();
607
+ <\/script>
608
+ `,ew=xe({__name:"PreviewPanel",setup(e){function r(x){let y=2166136261;for(let b=0;b<x.length;b++)y^=x.charCodeAt(b),y=y*16777619>>>0;return y.toString(16).padStart(8,"0")}const o=Ge(),t=He(),n=Pe(),a=er(),i=_e(),l=fr(),s=xr(),d=N(null),f=N(!1);let c="",u=null;const g=So();function h(){var x,y;l.mode!=="fullscreen"&&((y=(x=d.value)==null?void 0:x.contentWindow)==null||y.postMessage({type:"gazetta:highlight",gzId:g.highlightGzId??null},"*"))}ve(()=>g.highlightGzId,h);function p(){var x,y;l.mode!=="fullscreen"&&((y=(x=d.value)==null?void 0:x.contentWindow)==null||y.postMessage({type:"gazetta:showSelect",gzId:g.selectedGzId??null},"*"))}ve(()=>g.selectedGzId,p);const m="/admin/".replace(/\/$/,""),v=K(()=>o.previewRoute?`${m}/preview${o.previewRoute}`:null),$=K(()=>o.type!=="fragment"||!o.name||!o.fragmentHostPage?null:r(`@${o.name}`)),O=[{label:"Desktop",width:"100%",icon:"pi pi-desktop"},{label:"Tablet",width:"768px",icon:"pi pi-tablet"},{label:"Mobile",width:"375px",icon:"pi pi-mobile"}],A=N(0),_=K(()=>O[A.value].width),L=N(!0);function H(){var x,y;(y=(x=d.value)==null?void 0:x.contentWindow)==null||y.postMessage({type:"gazetta:mode",mode:l.mode,highlight:L.value},"*")}ve(()=>l.mode,H),ve(L,H);function Y(){var x,y;(y=(x=d.value)==null?void 0:x.contentWindow)==null||y.postMessage({type:"gazetta:scope",gzId:$.value},"*")}ve($,Y);function ee(x){return x.replace(/<script>new EventSource\([^)]+\)[^<]*<\/script>/g,"").replace("</body>",`${Zk}
609
+ </body>`)}async function Z(x){var y,b,k,B,w,S,M,j;if(((y=x.data)==null?void 0:y.type)==="gazetta:escape"&&l.mode==="fullscreen"&&l.toggleFullscreen(),((b=x.data)==null?void 0:b.type)==="gazetta:select"&&x.data.gzId){if((B=(k=d.value)==null?void 0:k.contentWindow)==null||B.postMessage({type:"gazetta:showSelect",gzId:x.data.gzId},"*"),g.setPending(x.data.gzId),o.name){const G=o.type==="page"?"/pages":"/fragments";s.push(`${G}/${o.name}/edit`)}(w=d.value)==null||w.blur()}if(((S=x.data)==null?void 0:S.type)==="gazetta:navigate"&&x.data.route){const G=i.pages.find(q=>q.route===x.data.route);G?s.push(`/pages/${G.name}`):a.show(`No page found for route ${x.data.route}`,{type:"error"})}((M=x.data)==null?void 0:M.type)==="gazetta:hover"&&(g.previewHover(x.data.gzId??null),u&&(clearTimeout(u),u=null),x.data.gzId||(u=setTimeout(()=>{var G,q;(q=(G=d.value)==null?void 0:G.contentWindow)==null||q.postMessage({type:"gazetta:scrollTo",gzId:g.selectedGzId??null},"*"),u=null},300))),((j=x.data)==null?void 0:j.type)==="gazetta:external"&&x.data.url&&a.show(x.data.url,{link:x.data.url,duration:5e3})}Zt(window,"message",Z);let V=null;Ye(()=>{try{V=new EventSource("/__reload"),V.onmessage=()=>E(!0),V.onerror=()=>{V==null||V.close(),V=null}}catch{}}),ba(()=>{V==null||V.close()});async function E(x=!0){if(!v.value){c="";return}f.value=!0;try{const y=t.allOverrides,b=Object.keys(y).length>0;let k;b?k=await fetch(v.value,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({overrides:y})}):k=await fetch(v.value);const B=ee(await k.text());I(B,x),setTimeout(()=>{H(),Y()},100)}catch{I('<pre style="color:red;padding:2rem">Failed to load preview</pre>',!1)}finally{f.value=!1}}function I(x,y){var k,B;const b=d.value;if(b){if(!y||!c||!((B=(k=b.contentDocument)==null?void 0:k.body)!=null&&B.innerHTML)){b.srcdoc=x,c=x;return}try{const w=b.contentDocument;if(!w){b.srcdoc=x,c=x;return}const M=new DOMParser().parseFromString(x,"text/html");Wk(w.body,M.body,{onBeforeNodeDiscarded(q){const Q=q.id;return!(Q==="gz-hover"||Q==="gz-select"||Q==="gz-dim")},onBeforeElUpdated(q,Q){return!(q.id==="gz-hover"||q.id==="gz-select"||q.id==="gz-dim"||q.isEqualNode(Q))}});const j=w.head.querySelectorAll("style"),G=M.head.querySelectorAll("style");j.forEach((q,Q)=>{G[Q]&&q.textContent!==G[Q].textContent&&(q.textContent=G[Q].textContent)}),c=x}catch{b.srcdoc=x,c=x}}}return ve(()=>n.version,()=>E(!0)),ve(v,()=>E(!1),{immediate:!0}),Um(()=>n.draftVersion,()=>E(!0),{debounce:300}),(x,y)=>{var b;return R(),T("div",{class:ie(["preview-panel",{fullscreen:z(l).mode==="fullscreen"}]),"data-testid":"preview-panel"},[v.value?(R(),T(ce,{key:1},[C("div",Hk,[C("div",jk,[(R(),T(ce,null,Oe(O,(k,B)=>C("button",{key:k.label,class:ie(["device-btn",{active:A.value===B}]),title:k.label,onClick:w=>A.value=B},[C("i",{class:ie(k.icon)},null,2)],10,Uk)),64)),z(l).mode==="fullscreen"&&z(o).previewRoute?(R(),T(ce,{key:0},[y[5]||(y[5]=C("span",{class:"preview-separator"},null,-1)),C("span",Vk,[y[4]||(y[4]=C("i",{class:"pi pi-globe"},null,-1)),we(re(z(o).previewRoute),1)])],64)):te("",!0)]),C("div",qk,[z(o).type==="fragment"&&z(o).staticPages.length>1&&z(l).mode!=="fullscreen"?(R(),T("select",{key:0,class:"host-page-select","data-testid":"host-page-select",value:((b=z(o).fragmentHostPage)==null?void 0:b.name)??"",onChange:y[0]||(y[0]=k=>z(o).setFragmentHostPage(k.target.value))},[(R(!0),T(ce,null,Oe(z(o).staticPages,k=>(R(),T("option",{key:k.name,value:k.name},re(k.name),9,Xk))),128))],40,Yk)):te("",!0),z(l).mode==="edit"?(R(),T("button",{key:1,class:ie(["device-btn",{active:L.value}]),title:L.value?"Hide highlights":"Show highlights","data-testid":"highlight-toggle",onClick:y[1]||(y[1]=k=>L.value=!L.value)},[...y[6]||(y[6]=[C("i",{class:"pi pi-eye"},null,-1)])],10,Jk)):te("",!0),C("button",{class:"device-btn",title:z(l).mode==="fullscreen"?"Exit fullscreen":"Fullscreen","data-testid":"fullscreen-toggle",onClick:y[2]||(y[2]=k=>z(l).toggleFullscreen())},[C("i",{class:ie(z(l).mode==="fullscreen"?"pi pi-window-minimize":"pi pi-window-maximize")},null,2)],8,Kk)])]),C("div",Qk,[C("iframe",{ref_key:"iframeRef",ref:d,class:"preview-iframe","data-testid":"preview-iframe",style:Wr({width:_.value,maxWidth:"100%"})},null,4)])],64)):(R(),T("div",Gk,[...y[3]||(y[3]=[C("i",{class:"pi pi-eye",style:{"font-size":"2rem",color:"#ddd","margin-bottom":"0.5rem"}},null,-1),C("p",null,"Select a page or fragment to preview",-1)])]))],2)}}}),rw=ze(ew,[["__scopeId","data-v-4aacb015"]]),ow={class:"cms-editor"},tw={key:0,class:"cms-panel-content"},nw={class:"cms-panel-content"},aw={class:"cms-panel-content"},iw={class:"cms-preview"},lw=xe({__name:"EditorView",setup(e){const r=xr(),o=fr(),t=Ge(),n=jr();return Ro("Escape",()=>{if(n.visible)return;if(o.mode==="fullscreen"){o.toggleFullscreen();return}if(o.mode!=="edit")return;const a=document.activeElement;if(a&&(a.tagName==="INPUT"||a.tagName==="TEXTAREA"||a.tagName==="SELECT"||a.isContentEditable)){a.blur();return}if(!t.name)return;const i=t.type==="page"?"/pages":"/fragments";r.push(`${i}/${t.name}`)}),(a,i)=>(R(),T("div",ow,[C("div",{class:ie(["cms-left",{"cms-left-wide":z(o).mode==="edit"}])},[z(o).mode==="browse"?(R(),T("div",tw,[X(h0)])):(R(),se(z(Ca),{key:1,class:"cms-splitter"},{default:de(()=>[X(z(Ko),{size:35,minSize:25,class:"cms-panel"},{default:de(()=>[C("div",nw,[X(P0)])]),_:1}),X(z(Ko),{size:65,minSize:35,class:"cms-panel"},{default:de(()=>[C("div",aw,[X(Rk)])]),_:1})]),_:1}))],2),C("div",iw,[X(rw)])]))}}),cr=ze(lw,[["__scopeId","data-v-f9c0172b"]]),sw={class:"playground","data-testid":"dev-playground"},cw={class:"playground-sidebar"},dw={key:0,class:"sidebar-loading"},uw={key:0,class:"sidebar-section"},fw=["data-testid","onClick"],gw={class:"item-name"},pw={key:1,class:"sidebar-section"},mw=["data-testid","onClick"],bw={class:"item-name"},hw={class:"sidebar-section"},vw=["data-testid","onClick"],yw={class:"item-name"},xw={key:2,class:"sidebar-empty"},kw={class:"playground-main"},ww={key:0,class:"main-empty"},Cw={key:1,class:"main-empty"},$w={class:"main-toolbar"},Bw={class:"toolbar-label"},zw={class:"toolbar-type"},Sw={key:0,class:"toolbar-hint"},Rw={class:"main-body"},Dw={key:0,class:"mount-error"},Ew={key:0,class:"value-inspector","data-testid":"playground-inspector"},Iw=["innerHTML"],Pw=xe({__name:"DevPlayground",setup(e){const r=Hr(),o=xr(),t=Yt();Ro("Escape",()=>{const y=document.activeElement;if(y&&(y.tagName==="INPUT"||y.tagName==="TEXTAREA"||y.tagName==="SELECT"||y.isContentEditable)){y.blur();return}o.back()});const n=N([]),a=N([]),i=N(!0),l=N(null),s=N(!1),d=N(null),f=N(!1),c=N(null),u=N(!0),g=N(null);let h=null;async function p(){i.value=!0;try{const[y,b]=await Promise.all([J.getTemplates(),J.getFields()]),k=[];for(const B of y)try{const w=await J.getTemplateSchema(B.name);k.push({name:B.name,hasEditor:!!w.hasEditor})}catch{k.push({name:B.name,hasEditor:!1})}n.value=k,a.value=b}catch(y){console.error("Failed to load playground items:",y)}finally{i.value=!1}}p().then(()=>{const y=t.params.editor,b=t.params.field;y&&n.value.some(k=>k.name===y)?L(y):b&&a.value.some(k=>k.name===b)&&H(b)});const m=K(()=>n.value.filter(y=>y.hasEditor)),v=K(()=>n.value.filter(y=>!y.hasEditor)),$=K(()=>r.dark?"dark":"light"),O=K(()=>{try{return _(c.value)}catch{return A(String(c.value))}});function A(y){return y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function _(y,b=0){const k=" ".repeat(b);if(y===null)return'<span class="jv-null">null</span>';if(typeof y=="boolean")return`<span class="jv-bool">${y}</span>`;if(typeof y=="number")return`<span class="jv-num">${y}</span>`;if(typeof y=="string")return y.includes(`
610
+ `)?`<span class="jv-str">"${y.split(`
611
+ `).map(w=>A(w)).join(`<br>${k} `)}"</span>`:`<span class="jv-str">"${A(y)}"</span>`;if(Array.isArray(y))return y.length===0?"[]":`[
612
+ ${y.map(w=>`${k} ${_(w,b+1)}`).join(`,
613
+ `)}
614
+ ${k}]`;if(typeof y=="object"){const B=Object.entries(y);return B.length===0?"{}":`{
615
+ ${B.map(([S,M])=>`${k} <span class="jv-key">"${A(S)}"</span>: ${_(M,b+1)}`).join(`,
616
+ `)}
617
+ ${k}}`}return A(String(y))}async function L(y){s.value=!0,d.value=null;try{const b=await J.getTemplateSchema(y),{hasEditor:k,editorUrl:B,fieldsBaseUrl:w,...S}=b,M=await Y(y);l.value={type:"editor",name:y,hasEditor:!!k,editorUrl:B,fieldsBaseUrl:w,schema:S,realContent:M},o.replace(`/dev/editor/${y}`)}catch(b){d.value=`Failed to load schema for "${y}": ${b.message}`,l.value=null}finally{s.value=!1}}async function H(y){let b="";if(n.value.length)try{b=(await J.getTemplateSchema(n.value[0].name)).fieldsBaseUrl??""}catch{}if(!b){d.value="No fieldsBaseUrl available";return}l.value={type:"field",name:y,fieldsBaseUrl:b},o.replace(`/dev/field/${y}`)}async function Y(y){try{const[b,k]=await Promise.all([J.getPages(),J.getFragments()]);for(const B of b)if(B.template===y){const w=await J.getPage(B.name);if(w.content&&Object.keys(w.content).length>0)return w.content}for(const B of k)if(B.template===y){const w=await J.getFragment(B.name);if(w.content&&Object.keys(w.content).length>0)return w.content}for(const B of b){const w=await J.getPage(B.name);if(w.components)for(const S of w.components){if(S.startsWith("@"))continue;const M=await ee(w.dir,S,y);if(M)return M}}for(const B of k){const w=await J.getFragment(B.name);if(w.components)for(const S of w.components){if(S.startsWith("@"))continue;const M=await ee(w.dir,S,y);if(M)return M}}}catch{}}async function ee(y,b,k){try{const B=await J.getComponent(`${y}/${b}`);if(B.template===k&&B.content&&Object.keys(B.content).length>0)return B.content;if(B.components)for(const w of B.components){if(w.startsWith("@"))continue;const S=await ee(`${y}/${b}`,w,k);if(S)return S}}catch{}}function Z(){if(h&&g.value){try{h.unmount(g.value)}catch{}h=null}d.value=null}async function V(){if(Z(),!l.value||!g.value)return;const y=g.value;try{if(l.value.type==="editor"){const b=l.value,k=b.realContent??I(b.schema);if(c.value=k,b.hasEditor&&b.editorUrl){const B=await import(b.editorUrl),w=B.default??B;w.mount(y,{content:k,schema:b.schema,theme:$.value,onChange:S=>{c.value=S},fieldsBaseUrl:b.fieldsBaseUrl}),h=w}else{const{createEditorMount:B}=await ho(async()=>{const{createEditorMount:S}=await Promise.resolve().then(()=>wk);return{createEditorMount:S}},[]),w=B(b.schema);w.mount(y,{content:k,schema:b.schema,theme:$.value,onChange:S=>{c.value=S},fieldsBaseUrl:b.fieldsBaseUrl}),h=w}}else{const b=l.value;c.value="";const k=`${b.fieldsBaseUrl}/${b.name}.tsx`;let B;try{B=await import(k)}catch{B=await ho(()=>import(`${b.fieldsBaseUrl}/${b.name}.ts`),[])}const w=B.default??B;w.mount(y,{value:"",schema:{},theme:$.value,onChange:S=>{c.value=S}}),h=w}}catch(b){d.value=b.message}}function E(){l.value&&V()}ve(l,()=>V(),{flush:"post"}),Jt(()=>Z());function I(y){const b=y.properties;if(!b)return{};const k={};for(const[B,w]of Object.entries(b)){const S=w.type;S==="string"?k[B]=w.default??`Sample ${B}`:S==="number"||S==="integer"?k[B]=42:S==="boolean"?k[B]=!1:S==="array"?k[B]=[]:S==="object"&&(k[B]={})}return k}const x=K(()=>r.dark?{"--gz-bg-input":"#161622","--gz-bg-card":"#1a1a28","--gz-bg-toolbar":"#1a1a2a","--gz-bg-chip":"#252538","--gz-bg-code":"#12121e","--gz-text":"#e0e0e0","--gz-text-secondary":"#ccc","--gz-text-label":"#8888a0","--gz-text-hint":"#444","--gz-border":"#2a2a3a","--gz-border-subtle":"#1e1e2e","--gz-accent":"#667eea","--gz-error":"#f87171","--gz-success":"#4ade80"}:{"--gz-bg-input":"#ffffff","--gz-bg-card":"#f9fafb","--gz-bg-toolbar":"#f3f4f6","--gz-bg-chip":"#e5e7eb","--gz-bg-code":"#f1f5f9","--gz-text":"#1a1a1a","--gz-text-secondary":"#4b5563","--gz-text-label":"#6b7280","--gz-text-hint":"#9ca3af","--gz-border":"#e5e7eb","--gz-border-subtle":"#f3f4f6","--gz-accent":"#667eea","--gz-error":"#dc2626","--gz-success":"#16a34a"});return(y,b)=>(R(),T("div",sw,[C("div",cw,[b[8]||(b[8]=C("div",{class:"sidebar-header"},"Dev Playground",-1)),i.value?(R(),T("div",dw,"Loading...")):n.value.length||a.value.length?(R(),T(ce,{key:1},[m.value.length?(R(),T("div",uw,[b[3]||(b[3]=C("div",{class:"section-label"},"Custom Editors",-1)),(R(!0),T(ce,null,Oe(m.value,k=>{var B;return R(),T("div",{key:"ce:"+k.name,class:ie(["sidebar-item",{active:((B=l.value)==null?void 0:B.type)==="editor"&&l.value.name===k.name}]),"data-testid":`playground-editor-${k.name}`,onClick:w=>L(k.name)},[b[2]||(b[2]=C("i",{class:"pi pi-pencil item-icon"},null,-1)),C("span",gw,re(k.name),1)],10,fw)}),128))])):te("",!0),a.value.length?(R(),T("div",pw,[b[5]||(b[5]=C("div",{class:"section-label"},"Custom Fields",-1)),(R(!0),T(ce,null,Oe(a.value,k=>{var B;return R(),T("div",{key:"f:"+k.name,class:ie(["sidebar-item",{active:((B=l.value)==null?void 0:B.type)==="field"&&l.value.name===k.name}]),"data-testid":`playground-field-${k.name}`,onClick:w=>H(k.name)},[b[4]||(b[4]=C("i",{class:"pi pi-sliders-h item-icon"},null,-1)),C("span",bw,re(k.name),1)],10,mw)}),128))])):te("",!0),C("div",hw,[C("div",{class:"section-label section-label-toggle",onClick:b[0]||(b[0]=k=>f.value=!f.value)},[C("i",{class:ie([f.value?"pi pi-chevron-down":"pi pi-chevron-right","toggle-icon"])},null,2),we(" All Templates ("+re(n.value.length)+") ",1)]),f.value?(R(!0),T(ce,{key:0},Oe(v.value,k=>{var B;return R(),T("div",{key:"te:"+k.name,class:ie(["sidebar-item",{active:((B=l.value)==null?void 0:B.type)==="editor"&&l.value.name===k.name}]),"data-testid":`playground-editor-${k.name}`,onClick:w=>L(k.name)},[b[6]||(b[6]=C("i",{class:"pi pi-file item-icon"},null,-1)),C("span",yw,re(k.name),1)],10,vw)}),128)):te("",!0)])],64)):(R(),T("div",xw,[...b[7]||(b[7]=[C("p",null,"No custom editors or fields yet.",-1),C("p",{class:"hint"},[we("Create an editor:"),C("br"),C("code",null,"admin/editors/{name}.tsx")],-1),C("p",{class:"hint"},[we("Create a field:"),C("br"),C("code",null,"admin/fields/{name}.tsx")],-1)])]))]),C("div",kw,[!l.value&&!s.value?(R(),T("div",ww,[...b[9]||(b[9]=[C("i",{class:"pi pi-code",style:{"font-size":"2rem",opacity:"0.3","margin-bottom":"0.5rem"}},null,-1),C("p",null,"Select an editor or field to preview",-1)])])):s.value?(R(),T("div",Cw,[...b[10]||(b[10]=[C("p",null,"Loading schema...",-1)])])):l.value?(R(),T(ce,{key:2},[C("div",$w,[C("span",Bw,[C("span",zw,re(l.value.type==="editor"?"Editor":"Field"),1),C("strong",null,re(l.value.name),1),l.value.type==="editor"&&l.value.realContent?(R(),T("span",Sw,"using real content")):te("",!0)]),C("button",{class:"toolbar-btn","data-testid":"playground-reset",onClick:E,title:"Reset to initial state"},[...b[11]||(b[11]=[C("i",{class:"pi pi-refresh"},null,-1),we(" Reset ",-1)])]),C("button",{class:"toolbar-btn","data-testid":"playground-toggle-inspector",onClick:b[1]||(b[1]=k=>u.value=!u.value)},[b[12]||(b[12]=C("i",{class:"pi pi-code"},null,-1)),we(" "+re(u.value?"Hide":"Show")+" Value ",1)])]),C("div",Rw,[C("div",{class:"main-content",style:Wr(x.value)},[d.value?(R(),T("div",Dw,re(d.value),1)):te("",!0),C("div",{ref_key:"mountRef",ref:g,class:"mount-container","data-testid":"playground-mount"},null,512)],4),u.value?(R(),T("div",Ew,[b[13]||(b[13]=C("div",{class:"inspector-header"},"Value",-1)),C("pre",{class:"inspector-value",innerHTML:O.value},null,8,Iw)])):te("",!0)])],64)):te("",!0)])]))}}),bo=ze(Pw,[["__scopeId","data-v-59bc5b51"]]);function Aw(){const r=ha({history:va("/admin/"),routes:[{path:"/",component:cr,name:"home"},{path:"/pages/:name",component:cr,name:"page-browse"},{path:"/pages/:name/edit",component:cr,name:"page-edit"},{path:"/fragments/:name",component:cr,name:"fragment-browse"},{path:"/fragments/:name/edit",component:cr,name:"fragment-edit"},{path:"/dev",component:bo,name:"dev"},{path:"/dev/editor/:editor",component:bo,name:"dev-editor"},{path:"/dev/field/:field",component:bo,name:"dev-field"},{path:"/:pathMatch(.*)*",redirect:"/"}]});return r.beforeEach(async(o,t)=>{var s,d,f,c,u,g,h;await _e().ensureLoaded();const a=p=>p==null?void 0:p.toString().startsWith("dev"),i=!a((s=o.name)==null?void 0:s.toString())&&o.name!=="home";if(t.name&&!a(t.name.toString())&&t.name!=="home"){const p=He(),m=t.params.name,v=o.params.name,$=(d=t.name)!=null&&d.toString().startsWith("page")?"page":"fragment",O=(f=o.name)!=null&&f.toString().startsWith("page")?"page":"fragment",A=(c=t.name)==null?void 0:c.toString().endsWith("-edit"),_=(u=o.name)==null?void 0:u.toString().endsWith("-edit");if((!i||m!==v||$!==O||A&&!_)&&p.hasPendingEdits){const ee=await jr().guard();if(ee==="cancel")return!1;ee==="save"&&await p.save(),p.clear()}}if(i){const p=Ge(),m=fr(),v=o.params.name,$=(g=o.name)!=null&&g.toString().startsWith("page")?"page":"fragment",O=(h=o.name)==null?void 0:h.toString().endsWith("-edit");(p.type!==$||p.name!==v)&&($==="page"?await p.selectPage(v):await p.selectFragment(v)),O&&m.mode!=="edit"?m.enterEdit():!O&&m.mode==="edit"&&m.enterBrowse()}else if(o.name==="home"){const p=fr();p.mode==="edit"&&p.enterBrowse()}}),r}const Qr=ya(_m);Qr.use(xa());Qr.use($a,{theme:{preset:nm,options:{darkModeSelector:".dark"}}});Qr.use(Aw());Qr.mount("#app");