@tech_carthagos/page-builder 1.0.49 → 1.0.50

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.
package/dist/index.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),w=require("react"),Mi=require("react-dom"),vp=require("@tanstack/react-query");function dc(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const y=dc(w),fc=dc(Mi);function pc(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=pc(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function tt(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=pc(t))&&(n&&(n+=" "),n+=e);return n}const Li="-",yp=t=>{const e=wp(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{const s=i.split(Li);return s[0]===""&&s.length!==1&&s.shift(),hc(s,e)||xp(i)},getConflictingClassGroupIds:(i,s)=>{const u=r[i]||[];return s&&n[i]?[...u,...n[i]]:u}}},hc=(t,e)=>{var i;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?hc(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const a=t.join(Li);return(i=e.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},hu=/^\[(.+)\]$/,xp=t=>{if(hu.test(t)){const e=hu.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},wp=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return Cp(Object.entries(t.classGroups),r).forEach(([a,i])=>{Ha(i,n,a,e)}),n},Ha=(t,e,r,n)=>{t.forEach(o=>{if(typeof o=="string"){const a=o===""?e:mu(e,o);a.classGroupId=r;return}if(typeof o=="function"){if(Sp(o)){Ha(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{Ha(i,mu(e,a),r,n)})})},mu=(t,e)=>{let r=t;return e.split(Li).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Sp=t=>t.isThemeGetter,Cp=(t,e)=>e?t.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[e+i,s])):a);return[r,o]}):t,Ep=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),e++,e>t&&(e=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},mc="!",Np=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,o=e[0],a=e.length,i=s=>{const u=[];let l=0,c=0,h;for(let m=0;m<s.length;m++){let v=s[m];if(l===0){if(v===o&&(n||s.slice(m,m+a)===e)){u.push(s.slice(c,m)),c=m+a;continue}if(v==="/"){h=m;continue}}v==="["?l++:v==="]"&&l--}const f=u.length===0?s:s.substring(c),d=f.startsWith(mc),g=d?f.substring(1):f,b=h&&h>c?h-c:void 0;return{modifiers:u,hasImportantModifier:d,baseClassName:g,maybePostfixModifierPosition:b}};return r?s=>r({className:s,parseClassName:i}):i},Tp=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},jp=t=>({cache:Ep(t.cacheSize),parseClassName:Np(t),...yp(t)}),Ap=/\s+/,Op=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=e,a=[],i=t.trim().split(Ap);let s="";for(let u=i.length-1;u>=0;u-=1){const l=i[u],{modifiers:c,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:d}=r(l);let g=!!d,b=n(g?f.substring(0,d):f);if(!b){if(!g){s=l+(s.length>0?" "+s:s);continue}if(b=n(f),!b){s=l+(s.length>0?" "+s:s);continue}g=!1}const m=Tp(c).join(":"),v=h?m+mc:m,x=v+b;if(a.includes(x))continue;a.push(x);const S=o(b,g);for(let C=0;C<S.length;++C){const j=S[C];a.push(v+j)}s=l+(s.length>0?" "+s:s)}return s};function kp(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=gc(e))&&(n&&(n+=" "),n+=r);return n}const gc=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=gc(t[n]))&&(r&&(r+=" "),r+=e);return r};function Pp(t,...e){let r,n,o,a=i;function i(u){const l=e.reduce((c,h)=>h(c),t());return r=jp(l),n=r.cache.get,o=r.cache.set,a=s,s(u)}function s(u){const l=n(u);if(l)return l;const c=Op(u,r);return o(u,c),c}return function(){return a(kp.apply(null,arguments))}}const ae=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},bc=/^\[(?:([a-z-]+):)?(.+)\]$/i,_p=/^\d+\/\d+$/,Rp=new Set(["px","full","screen"]),Ip=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dp=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Mp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$p=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ct=t=>hr(t)||Rp.has(t)||_p.test(t),At=t=>kr(t,"length",Wp),hr=t=>!!t&&!Number.isNaN(Number(t)),wa=t=>kr(t,"number",hr),Vr=t=>!!t&&Number.isInteger(Number(t)),Bp=t=>t.endsWith("%")&&hr(t.slice(0,-1)),W=t=>bc.test(t),Ot=t=>Ip.test(t),zp=new Set(["length","size","percentage"]),Hp=t=>kr(t,zp,vc),Fp=t=>kr(t,"position",vc),qp=new Set(["image","url"]),Up=t=>kr(t,qp,Yp),Vp=t=>kr(t,"",Gp),Wr=()=>!0,kr=(t,e,r)=>{const n=bc.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},Wp=t=>Dp.test(t)&&!Mp.test(t),vc=()=>!1,Gp=t=>Lp.test(t),Yp=t=>$p.test(t),Xp=()=>{const t=ae("colors"),e=ae("spacing"),r=ae("blur"),n=ae("brightness"),o=ae("borderColor"),a=ae("borderRadius"),i=ae("borderSpacing"),s=ae("borderWidth"),u=ae("contrast"),l=ae("grayscale"),c=ae("hueRotate"),h=ae("invert"),f=ae("gap"),d=ae("gradientColorStops"),g=ae("gradientColorStopPositions"),b=ae("inset"),m=ae("margin"),v=ae("opacity"),x=ae("padding"),S=ae("saturate"),C=ae("scale"),j=ae("sepia"),k=ae("skew"),R=ae("space"),M=ae("translate"),D=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",W,e],T=()=>[W,e],P=()=>["",ct,At],I=()=>["auto",hr,W],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],A=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",W],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],de=()=>[hr,W];return{cacheSize:500,separator:":",theme:{colors:[Wr],spacing:[ct,At],blur:["none","",Ot,W],brightness:de(),borderColor:[t],borderRadius:["none","","full",Ot,W],borderSpacing:T(),borderWidth:P(),contrast:de(),grayscale:L(),hueRotate:de(),invert:L(),gap:T(),gradientColorStops:[t],gradientColorStopPositions:[Bp,At],inset:E(),margin:E(),opacity:de(),padding:T(),saturate:de(),scale:de(),sepia:L(),skew:de(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[Ot]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...N(),W]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Vr,W]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",Vr,W]}],"grid-cols":[{"grid-cols":[Wr]}],"col-start-end":[{col:["auto",{span:["full",Vr,W]},W]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Wr]}],"row-start-end":[{row:["auto",{span:[Vr,W]},W]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,e]}],"min-w":[{"min-w":[W,e,"min","max","fit"]}],"max-w":[{"max-w":[W,e,"none","full","min","max","fit","prose",{screen:[Ot]},Ot]}],h:[{h:[W,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Ot,At]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wa]}],"font-family":[{font:[Wr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",hr,wa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ct,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ct,At]}],"underline-offset":[{"underline-offset":["auto",ct,W]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),Fp]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Hp]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Up]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:O()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[ct,W]}],"outline-w":[{outline:[ct,At]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[ct,At]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Ot,Vp]}],"shadow-color":[{shadow:[Wr]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...A(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Ot,W]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[S]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:de()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:de()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Vr,W]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ct,At,wa]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},yc=Pp(Xp);function Se(...t){return yc(tt(t))}const Qr=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));Qr.displayName="Card";const Kp=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("flex flex-col space-y-1.5 p-6",t),...e}));Kp.displayName="CardHeader";const Jp=y.forwardRef(({className:t,...e},r)=>p.jsx("h3",{ref:r,className:Se("text-2xl font-semibold leading-none tracking-tight",t),...e}));Jp.displayName="CardTitle";const Zp=y.forwardRef(({className:t,...e},r)=>p.jsx("p",{ref:r,className:Se("text-sm text-muted-foreground",t),...e}));Zp.displayName="CardDescription";const en=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("p-6 pt-0",t),...e}));en.displayName="CardContent";const Qp=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("flex items-center p-6 pt-0",t),...e}));Qp.displayName="CardFooter";function Dn({className:t,...e}){return p.jsx("div",{className:Se("animate-pulse rounded-md bg-muted",t),...e})}const xc=w.createContext(null),Mo=({children:t,value:e})=>p.jsx(xc.Provider,{value:e,children:t}),Sn=()=>w.useContext(xc);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),w=require("react"),Li=require("react-dom"),vp=require("@tanstack/react-query");function fc(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const y=fc(w),pc=fc(Li);function hc(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=hc(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function tt(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=hc(t))&&(n&&(n+=" "),n+=e);return n}const $i="-",yp=t=>{const e=wp(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{const s=i.split($i);return s[0]===""&&s.length!==1&&s.shift(),mc(s,e)||xp(i)},getConflictingClassGroupIds:(i,s)=>{const u=r[i]||[];return s&&n[i]?[...u,...n[i]]:u}}},mc=(t,e)=>{var i;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?mc(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const a=t.join($i);return(i=e.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},mu=/^\[(.+)\]$/,xp=t=>{if(mu.test(t)){const e=mu.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},wp=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return Cp(Object.entries(t.classGroups),r).forEach(([a,i])=>{Fa(i,n,a,e)}),n},Fa=(t,e,r,n)=>{t.forEach(o=>{if(typeof o=="string"){const a=o===""?e:gu(e,o);a.classGroupId=r;return}if(typeof o=="function"){if(Sp(o)){Fa(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{Fa(i,gu(e,a),r,n)})})},gu=(t,e)=>{let r=t;return e.split($i).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Sp=t=>t.isThemeGetter,Cp=(t,e)=>e?t.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[e+i,s])):a);return[r,o]}):t,Ep=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),e++,e>t&&(e=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},gc="!",Np=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,o=e[0],a=e.length,i=s=>{const u=[];let l=0,c=0,h;for(let m=0;m<s.length;m++){let v=s[m];if(l===0){if(v===o&&(n||s.slice(m,m+a)===e)){u.push(s.slice(c,m)),c=m+a;continue}if(v==="/"){h=m;continue}}v==="["?l++:v==="]"&&l--}const f=u.length===0?s:s.substring(c),d=f.startsWith(gc),g=d?f.substring(1):f,b=h&&h>c?h-c:void 0;return{modifiers:u,hasImportantModifier:d,baseClassName:g,maybePostfixModifierPosition:b}};return r?s=>r({className:s,parseClassName:i}):i},Tp=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},jp=t=>({cache:Ep(t.cacheSize),parseClassName:Np(t),...yp(t)}),Ap=/\s+/,Op=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=e,a=[],i=t.trim().split(Ap);let s="";for(let u=i.length-1;u>=0;u-=1){const l=i[u],{modifiers:c,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:d}=r(l);let g=!!d,b=n(g?f.substring(0,d):f);if(!b){if(!g){s=l+(s.length>0?" "+s:s);continue}if(b=n(f),!b){s=l+(s.length>0?" "+s:s);continue}g=!1}const m=Tp(c).join(":"),v=h?m+gc:m,x=v+b;if(a.includes(x))continue;a.push(x);const S=o(b,g);for(let C=0;C<S.length;++C){const j=S[C];a.push(v+j)}s=l+(s.length>0?" "+s:s)}return s};function kp(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=bc(e))&&(n&&(n+=" "),n+=r);return n}const bc=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=bc(t[n]))&&(r&&(r+=" "),r+=e);return r};function Pp(t,...e){let r,n,o,a=i;function i(u){const l=e.reduce((c,h)=>h(c),t());return r=jp(l),n=r.cache.get,o=r.cache.set,a=s,s(u)}function s(u){const l=n(u);if(l)return l;const c=Op(u,r);return o(u,c),c}return function(){return a(kp.apply(null,arguments))}}const ae=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},vc=/^\[(?:([a-z-]+):)?(.+)\]$/i,_p=/^\d+\/\d+$/,Rp=new Set(["px","full","screen"]),Ip=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dp=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Mp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$p=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ct=t=>mr(t)||Rp.has(t)||_p.test(t),At=t=>Pr(t,"length",Wp),mr=t=>!!t&&!Number.isNaN(Number(t)),Sa=t=>Pr(t,"number",mr),Wr=t=>!!t&&Number.isInteger(Number(t)),Bp=t=>t.endsWith("%")&&mr(t.slice(0,-1)),W=t=>vc.test(t),Ot=t=>Ip.test(t),zp=new Set(["length","size","percentage"]),Hp=t=>Pr(t,zp,yc),Fp=t=>Pr(t,"position",yc),qp=new Set(["image","url"]),Up=t=>Pr(t,qp,Yp),Vp=t=>Pr(t,"",Gp),Gr=()=>!0,Pr=(t,e,r)=>{const n=vc.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},Wp=t=>Dp.test(t)&&!Mp.test(t),yc=()=>!1,Gp=t=>Lp.test(t),Yp=t=>$p.test(t),Xp=()=>{const t=ae("colors"),e=ae("spacing"),r=ae("blur"),n=ae("brightness"),o=ae("borderColor"),a=ae("borderRadius"),i=ae("borderSpacing"),s=ae("borderWidth"),u=ae("contrast"),l=ae("grayscale"),c=ae("hueRotate"),h=ae("invert"),f=ae("gap"),d=ae("gradientColorStops"),g=ae("gradientColorStopPositions"),b=ae("inset"),m=ae("margin"),v=ae("opacity"),x=ae("padding"),S=ae("saturate"),C=ae("scale"),j=ae("sepia"),k=ae("skew"),R=ae("space"),M=ae("translate"),D=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",W,e],T=()=>[W,e],P=()=>["",ct,At],I=()=>["auto",mr,W],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],A=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",W],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],de=()=>[mr,W];return{cacheSize:500,separator:":",theme:{colors:[Gr],spacing:[ct,At],blur:["none","",Ot,W],brightness:de(),borderColor:[t],borderRadius:["none","","full",Ot,W],borderSpacing:T(),borderWidth:P(),contrast:de(),grayscale:L(),hueRotate:de(),invert:L(),gap:T(),gradientColorStops:[t],gradientColorStopPositions:[Bp,At],inset:E(),margin:E(),opacity:de(),padding:T(),saturate:de(),scale:de(),sepia:L(),skew:de(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[Ot]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...N(),W]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Wr,W]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",Wr,W]}],"grid-cols":[{"grid-cols":[Gr]}],"col-start-end":[{col:["auto",{span:["full",Wr,W]},W]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Gr]}],"row-start-end":[{row:["auto",{span:[Wr,W]},W]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,e]}],"min-w":[{"min-w":[W,e,"min","max","fit"]}],"max-w":[{"max-w":[W,e,"none","full","min","max","fit","prose",{screen:[Ot]},Ot]}],h:[{h:[W,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Ot,At]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Sa]}],"font-family":[{font:[Gr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",mr,Sa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ct,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ct,At]}],"underline-offset":[{"underline-offset":["auto",ct,W]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),Fp]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Hp]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Up]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:O()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[ct,W]}],"outline-w":[{outline:[ct,At]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[ct,At]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Ot,Vp]}],"shadow-color":[{shadow:[Gr]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...A(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Ot,W]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[S]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:de()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:de()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Wr,W]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ct,At,Sa]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},xc=Pp(Xp);function Se(...t){return xc(tt(t))}const en=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));en.displayName="Card";const Kp=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("flex flex-col space-y-1.5 p-6",t),...e}));Kp.displayName="CardHeader";const Jp=y.forwardRef(({className:t,...e},r)=>p.jsx("h3",{ref:r,className:Se("text-2xl font-semibold leading-none tracking-tight",t),...e}));Jp.displayName="CardTitle";const Zp=y.forwardRef(({className:t,...e},r)=>p.jsx("p",{ref:r,className:Se("text-sm text-muted-foreground",t),...e}));Zp.displayName="CardDescription";const tn=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("p-6 pt-0",t),...e}));tn.displayName="CardContent";const Qp=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("flex items-center p-6 pt-0",t),...e}));Qp.displayName="CardFooter";function Mn({className:t,...e}){return p.jsx("div",{className:Se("animate-pulse rounded-md bg-muted",t),...e})}const wc=w.createContext(null),Lo=({children:t,value:e})=>p.jsx(wc.Provider,{value:e,children:t}),Cn=()=>w.useContext(wc);/**
2
2
  * @license lucide-react v0.462.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const eh=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wc=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/**
6
+ */const eh=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sc=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/**
7
7
  * @license lucide-react v0.462.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
@@ -13,27 +13,27 @@
13
13
  *
14
14
  * This source code is licensed under the ISC license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
- */const rh=w.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},u)=>w.createElement("svg",{ref:u,...th,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:wc("lucide",o),...s},[...i.map(([l,c])=>w.createElement(l,c)),...Array.isArray(a)?a:[a]]));/**
16
+ */const rh=w.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},u)=>w.createElement("svg",{ref:u,...th,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:Sc("lucide",o),...s},[...i.map(([l,c])=>w.createElement(l,c)),...Array.isArray(a)?a:[a]]));/**
17
17
  * @license lucide-react v0.462.0 - ISC
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const Y=(t,e)=>{const r=w.forwardRef(({className:n,...o},a)=>w.createElement(rh,{ref:a,iconNode:e,className:wc(`lucide-${eh(t)}`,n),...o}));return r.displayName=`${t}`,r};/**
21
+ */const Y=(t,e)=>{const r=w.forwardRef(({className:n,...o},a)=>w.createElement(rh,{ref:a,iconNode:e,className:Sc(`lucide-${eh(t)}`,n),...o}));return r.displayName=`${t}`,r};/**
22
22
  * @license lucide-react v0.462.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
- */const $i=Y("AlignCenter",[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
26
+ */const Bi=Y("AlignCenter",[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
27
27
  * @license lucide-react v0.462.0 - ISC
28
28
  *
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
- */const Bi=Y("AlignLeft",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
31
+ */const zi=Y("AlignLeft",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
32
32
  * @license lucide-react v0.462.0 - ISC
33
33
  *
34
34
  * This source code is licensed under the ISC license.
35
35
  * See the LICENSE file in the root directory of this source tree.
36
- */const zi=Y("AlignRight",[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
36
+ */const Hi=Y("AlignRight",[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
37
37
  * @license lucide-react v0.462.0 - ISC
38
38
  *
39
39
  * This source code is licensed under the ISC license.
@@ -43,17 +43,17 @@
43
43
  *
44
44
  * This source code is licensed under the ISC license.
45
45
  * See the LICENSE file in the root directory of this source tree.
46
- */const Hi=Y("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
46
+ */const Fi=Y("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
47
47
  * @license lucide-react v0.462.0 - ISC
48
48
  *
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
- */const Fi=Y("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
51
+ */const qi=Y("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
52
52
  * @license lucide-react v0.462.0 - ISC
53
53
  *
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
- */const qi=Y("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
56
+ */const Ui=Y("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
57
57
  * @license lucide-react v0.462.0 - ISC
58
58
  *
59
59
  * This source code is licensed under the ISC license.
@@ -83,7 +83,7 @@
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const Sc=Y("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/**
86
+ */const Cc=Y("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/**
87
87
  * @license lucide-react v0.462.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
@@ -93,12 +93,12 @@
93
93
  *
94
94
  * This source code is licensed under the ISC license.
95
95
  * See the LICENSE file in the root directory of this source tree.
96
- */const Cc=Y("Heading",[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]]);/**
96
+ */const Ec=Y("Heading",[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]]);/**
97
97
  * @license lucide-react v0.462.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
- */const Ec=Y("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
101
+ */const Nc=Y("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
102
102
  * @license lucide-react v0.462.0 - ISC
103
103
  *
104
104
  * This source code is licensed under the ISC license.
@@ -108,7 +108,7 @@
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const Ui=Y("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
111
+ */const Vi=Y("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
112
112
  * @license lucide-react v0.462.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
@@ -123,22 +123,22 @@
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const Nc=Y("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
126
+ */const Tc=Y("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
127
127
  * @license lucide-react v0.462.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const Vi=Y("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
131
+ */const Wi=Y("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
132
132
  * @license lucide-react v0.462.0 - ISC
133
133
  *
134
134
  * This source code is licensed under the ISC license.
135
135
  * See the LICENSE file in the root directory of this source tree.
136
- */const Tc=Y("MousePointer",[["path",{d:"M12.586 12.586 19 19",key:"ea5xo7"}],["path",{d:"M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z",key:"277e5u"}]]);/**
136
+ */const jc=Y("MousePointer",[["path",{d:"M12.586 12.586 19 19",key:"ea5xo7"}],["path",{d:"M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z",key:"277e5u"}]]);/**
137
137
  * @license lucide-react v0.462.0 - ISC
138
138
  *
139
139
  * This source code is licensed under the ISC license.
140
140
  * See the LICENSE file in the root directory of this source tree.
141
- */const jc=Y("MoveVertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m8 18 4 4 4-4",key:"bh5tu3"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]]);/**
141
+ */const Ac=Y("MoveVertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m8 18 4 4 4-4",key:"bh5tu3"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]]);/**
142
142
  * @license lucide-react v0.462.0 - ISC
143
143
  *
144
144
  * This source code is licensed under the ISC license.
@@ -153,7 +153,7 @@
153
153
  *
154
154
  * This source code is licensed under the ISC license.
155
155
  * See the LICENSE file in the root directory of this source tree.
156
- */const Wi=Y("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
156
+ */const Gi=Y("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
157
157
  * @license lucide-react v0.462.0 - ISC
158
158
  *
159
159
  * This source code is licensed under the ISC license.
@@ -173,7 +173,7 @@
173
173
  *
174
174
  * This source code is licensed under the ISC license.
175
175
  * See the LICENSE file in the root directory of this source tree.
176
- */const Fa=Y("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
176
+ */const qa=Y("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
177
177
  * @license lucide-react v0.462.0 - ISC
178
178
  *
179
179
  * This source code is licensed under the ISC license.
@@ -183,7 +183,7 @@
183
183
  *
184
184
  * This source code is licensed under the ISC license.
185
185
  * See the LICENSE file in the root directory of this source tree.
186
- */const Gi=Y("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);/**
186
+ */const Yi=Y("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);/**
187
187
  * @license lucide-react v0.462.0 - ISC
188
188
  *
189
189
  * This source code is licensed under the ISC license.
@@ -193,12 +193,12 @@
193
193
  *
194
194
  * This source code is licensed under the ISC license.
195
195
  * See the LICENSE file in the root directory of this source tree.
196
- */const Yi=Y("Tv",[["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",ry:"2",key:"10ag99"}],["polyline",{points:"17 2 12 7 7 2",key:"11pgbg"}]]);/**
196
+ */const Xi=Y("Tv",[["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",ry:"2",key:"10ag99"}],["polyline",{points:"17 2 12 7 7 2",key:"11pgbg"}]]);/**
197
197
  * @license lucide-react v0.462.0 - ISC
198
198
  *
199
199
  * This source code is licensed under the ISC license.
200
200
  * See the LICENSE file in the root directory of this source tree.
201
- */const Ac=Y("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
201
+ */const Oc=Y("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
202
202
  * @license lucide-react v0.462.0 - ISC
203
203
  *
204
204
  * This source code is licensed under the ISC license.
@@ -218,7 +218,7 @@
218
218
  *
219
219
  * This source code is licensed under the ISC license.
220
220
  * See the LICENSE file in the root directory of this source tree.
221
- */const Ch=Y("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function gu(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Lo(...t){return e=>{let r=!1;const n=t.map(o=>{const a=gu(o,e);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():gu(t[o],null)}}}}function we(...t){return y.useCallback(Lo(...t),t)}var Eh=Symbol.for("react.lazy"),oo=y[" use ".trim().toString()];function Nh(t){return typeof t=="object"&&t!==null&&"then"in t}function Oc(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Eh&&"_payload"in t&&Nh(t._payload)}function Th(t){const e=Ah(t),r=y.forwardRef((n,o)=>{let{children:a,...i}=n;Oc(a)&&typeof oo=="function"&&(a=oo(a._payload));const s=y.Children.toArray(a),u=s.find(kh);if(u){const l=u.props.children,c=s.map(h=>h===u?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...i,ref:o,children:y.isValidElement(l)?y.cloneElement(l,void 0,c):null})}return p.jsx(e,{...i,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}var jh=Th("Slot");function Ah(t){const e=y.forwardRef((r,n)=>{let{children:o,...a}=r;if(Oc(o)&&typeof oo=="function"&&(o=oo(o._payload)),y.isValidElement(o)){const i=_h(o),s=Ph(a,o.props);return o.type!==y.Fragment&&(s.ref=n?Lo(n,i):i),y.cloneElement(o,s)}return y.Children.count(o)>1?y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Oh=Symbol("radix.slottable");function kh(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Oh}function Ph(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const u=a(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function _h(t){var n,o;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const bu=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,vu=tt,kc=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return vu(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=e,i=Object.keys(o).map(l=>{const c=r==null?void 0:r[l],h=a==null?void 0:a[l];if(c===null)return null;const f=bu(c)||bu(h);return o[l][f]}),s=r&&Object.entries(r).reduce((l,c)=>{let[h,f]=c;return f===void 0||(l[h]=f),l},{}),u=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((l,c)=>{let{class:h,className:f,...d}=c;return Object.entries(d).every(g=>{let[b,m]=g;return Array.isArray(m)?m.includes({...a,...s}[b]):{...a,...s}[b]===m})?[...l,h,f]:l},[]);return vu(t,i,u,r==null?void 0:r.class,r==null?void 0:r.className)},Rh=kc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-lg shadow-primary/25",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-secondary hover:text-secondary-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary hover:text-secondary-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-lg px-10 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Xe=y.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...o},a)=>{const i=n?jh:"button";return p.jsx(i,{className:Se(Rh({variant:e,size:r,className:t})),ref:a,...o})});Xe.displayName="Button";function Ih(...t){return yc(tt(t))}function ce(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var o=qh[t],a=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+t;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Gt(t){return!!t&&!!t[Q]}function rt(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===Uh}(t)||Array.isArray(t)||!!t[tn]||!!(!((e=t.constructor)===null||e===void 0)&&e[tn])||$o(t)||Bo(t))}function Yt(t,e,r){r===void 0&&(r=!1),Rt(t)===0?(r?Object.keys:es)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function Rt(t){var e=t[Q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:$o(t)?2:Bo(t)?3:0}function on(t,e){return Rt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Zn(t,e){return Rt(t)===2?t.get(e):t[e]}function Pc(t,e,r){var n=Rt(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Dh(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function $o(t){return Hh&&t instanceof Map}function Bo(t){return Fh&&t instanceof Set}function xe(t){return t.o||t.t}function Xi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Vh(t);delete e[Q];for(var r=es(e),n=0;n<r.length;n++){var o=r[n],a=e[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Ki(t,e){return e===void 0&&(e=!1),Ji(t)||Gt(t)||!rt(t)||(Rt(t)>1&&(t.set=t.add=t.clear=t.delete=Mh),Object.freeze(t),e&&Yt(t,function(r,n){return Ki(n,!0)},!0)),t}function Mh(){ce(2)}function Ji(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Je(t){var e=Ua[t];return e||ce(18,t),e}function _c(t,e){Ua[t]||(Ua[t]=e)}function ao(){return process.env.NODE_ENV==="production"||vr||ce(0),vr}function Sa(t,e){e&&(Je("Patches"),t.u=[],t.s=[],t.v=e)}function io(t){qa(t),t.p.forEach(Lh),t.p=null}function qa(t){t===vr&&(vr=t.l)}function yu(t){return vr={p:[],l:vr,h:t,m:!0,_:0}}function Lh(t){var e=t[Q];e.i===0||e.i===1?e.j():e.g=!0}function Ca(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Je("ES5").S(e,t,n),n?(r[Q].P&&(io(e),ce(4)),rt(t)&&(t=so(e,t),e.l||uo(e,t)),e.u&&Je("Patches").M(r[Q].t,t,e.u,e.s)):t=so(e,r,[]),io(e),e.u&&e.v(e.u,e.s),t!==Qi?t:void 0}function so(t,e,r){if(Ji(e))return e;var n=e[Q];if(!n)return Yt(e,function(s,u){return xu(t,n,e,s,u,r)},!0),e;if(n.A!==t)return e;if(!n.P)return uo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Xi(n.k):n.o,a=o,i=!1;n.i===3&&(a=new Set(o),o.clear(),i=!0),Yt(a,function(s,u){return xu(t,n,o,s,u,r,i)}),uo(t,o,!1),r&&t.u&&Je("Patches").N(n,r,t.u,t.s)}return n.o}function xu(t,e,r,n,o,a,i){if(process.env.NODE_ENV!=="production"&&o===r&&ce(5),Gt(o)){var s=so(t,o,a&&e&&e.i!==3&&!on(e.R,n)?a.concat(n):void 0);if(Pc(r,n,s),!Gt(s))return;t.m=!1}else i&&r.add(o);if(rt(o)&&!Ji(o)){if(!t.h.D&&t._<1)return;so(t,o),e&&e.A.l||uo(t,o)}}function uo(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ki(e,r)}function Ea(t,e){var r=t[Q];return(r?xe(r):t)[e]}function wu(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function ht(t){t.P||(t.P=!0,t.l&&ht(t.l))}function Na(t){t.o||(t.o=Xi(t.t))}function an(t,e,r){var n=$o(e)?Je("MapSet").F(e,r):Bo(e)?Je("MapSet").T(e,r):t.O?function(o,a){var i=Array.isArray(o),s={i:i?1:0,A:a?a.A:ao(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},u=s,l=Va;i&&(u=[s],l=Jr);var c=Proxy.revocable(u,l),h=c.revoke,f=c.proxy;return s.k=f,s.j=h,f}(e,r):Je("ES5").J(e,r);return(r?r.A:ao()).p.push(n),n}function $h(t){return Gt(t)||ce(22,t),function e(r){if(!rt(r))return r;var n,o=r[Q],a=Rt(r);if(o){if(!o.P&&(o.i<4||!Je("ES5").K(o)))return o.t;o.I=!0,n=Su(r,a),o.I=!1}else n=Su(r,a);return Yt(n,function(i,s){o&&Zn(o.t,i)===s||Pc(n,i,e(s))}),a===3?new Set(n):n}(t)}function Su(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Xi(t)}function Bh(){function t(n){if(!rt(n))return n;if(Array.isArray(n))return n.map(t);if($o(n))return new Map(Array.from(n.entries()).map(function(i){return[i[0],t(i[1])]}));if(Bo(n))return new Set(Array.from(n).map(t));var o=Object.create(Object.getPrototypeOf(n));for(var a in n)o[a]=t(n[a]);return on(n,tn)&&(o[tn]=n[tn]),o}function e(n){return Gt(n)?t(n):n}var r="add";_c("Patches",{$:function(n,o){return o.forEach(function(a){for(var i=a.path,s=a.op,u=n,l=0;l<i.length-1;l++){var c=Rt(u),h=i[l];typeof h!="string"&&typeof h!="number"&&(h=""+h),c!==0&&c!==1||h!=="__proto__"&&h!=="constructor"||ce(24),typeof u=="function"&&h==="prototype"&&ce(24),typeof(u=Zn(u,h))!="object"&&ce(15,i.join("/"))}var f=Rt(u),d=t(a.value),g=i[i.length-1];switch(s){case"replace":switch(f){case 2:return u.set(g,d);case 3:ce(16);default:return u[g]=d}case r:switch(f){case 1:return g==="-"?u.push(d):u.splice(g,0,d);case 2:return u.set(g,d);case 3:return u.add(d);default:return u[g]=d}case"remove":switch(f){case 1:return u.splice(g,1);case 2:return u.delete(g);case 3:return u.delete(a.value);default:return delete u[g]}default:ce(17,s)}}),n},N:function(n,o,a,i){switch(n.i){case 0:case 4:case 2:return function(s,u,l,c){var h=s.t,f=s.o;Yt(s.R,function(d,g){var b=Zn(h,d),m=Zn(f,d),v=g?on(h,d)?"replace":r:"remove";if(b!==m||v!=="replace"){var x=u.concat(d);l.push(v==="remove"?{op:v,path:x}:{op:v,path:x,value:m}),c.push(v===r?{op:"remove",path:x}:v==="remove"?{op:r,path:x,value:e(b)}:{op:"replace",path:x,value:e(b)})}})}(n,o,a,i);case 5:case 1:return function(s,u,l,c){var h=s.t,f=s.R,d=s.o;if(d.length<h.length){var g=[d,h];h=g[0],d=g[1];var b=[c,l];l=b[0],c=b[1]}for(var m=0;m<h.length;m++)if(f[m]&&d[m]!==h[m]){var v=u.concat([m]);l.push({op:"replace",path:v,value:e(d[m])}),c.push({op:"replace",path:v,value:e(h[m])})}for(var x=h.length;x<d.length;x++){var S=u.concat([x]);l.push({op:r,path:S,value:e(d[x])})}h.length<d.length&&c.push({op:"replace",path:u.concat(["length"]),value:h.length})}(n,o,a,i);case 3:return function(s,u,l,c){var h=s.t,f=s.o,d=0;h.forEach(function(g){if(!f.has(g)){var b=u.concat([d]);l.push({op:"remove",path:b,value:g}),c.unshift({op:r,path:b,value:g})}d++}),d=0,f.forEach(function(g){if(!h.has(g)){var b=u.concat([d]);l.push({op:r,path:b,value:g}),c.unshift({op:"remove",path:b,value:g})}d++})}(n,o,a,i)}},M:function(n,o,a,i){a.push({op:"replace",path:[],value:o===Qi?void 0:o}),i.push({op:"replace",path:[],value:n})}})}function zh(){function t(s,u){function l(){this.constructor=s}o(s,u),s.prototype=(l.prototype=u.prototype,new l)}function e(s){s.o||(s.R=new Map,s.o=new Map(s.t))}function r(s){s.o||(s.o=new Set,s.t.forEach(function(u){if(rt(u)){var l=an(s.A.h,u,s);s.p.set(u,l),s.o.add(l)}else s.o.add(u)}))}function n(s){s.g&&ce(3,JSON.stringify(xe(s)))}var o=function(s,u){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var h in c)c.hasOwnProperty(h)&&(l[h]=c[h])})(s,u)},a=function(){function s(l,c){return this[Q]={i:2,l:c,A:c?c.A:ao(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,g:!1},this}t(s,Map);var u=s.prototype;return Object.defineProperty(u,"size",{get:function(){return xe(this[Q]).size}}),u.has=function(l){return xe(this[Q]).has(l)},u.set=function(l,c){var h=this[Q];return n(h),xe(h).has(l)&&xe(h).get(l)===c||(e(h),ht(h),h.R.set(l,!0),h.o.set(l,c),h.R.set(l,!0)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[Q];return n(c),e(c),ht(c),c.t.has(l)?c.R.set(l,!1):c.R.delete(l),c.o.delete(l),!0},u.clear=function(){var l=this[Q];n(l),xe(l).size&&(e(l),ht(l),l.R=new Map,Yt(l.t,function(c){l.R.set(c,!1)}),l.o.clear())},u.forEach=function(l,c){var h=this;xe(this[Q]).forEach(function(f,d){l.call(c,h.get(d),d,h)})},u.get=function(l){var c=this[Q];n(c);var h=xe(c).get(l);if(c.I||!rt(h)||h!==c.t.get(l))return h;var f=an(c.A.h,h,c);return e(c),c.o.set(l,f),f},u.keys=function(){return xe(this[Q]).keys()},u.values=function(){var l,c=this,h=this.keys();return(l={})[Mn]=function(){return c.values()},l.next=function(){var f=h.next();return f.done?f:{done:!1,value:c.get(f.value)}},l},u.entries=function(){var l,c=this,h=this.keys();return(l={})[Mn]=function(){return c.entries()},l.next=function(){var f=h.next();if(f.done)return f;var d=c.get(f.value);return{done:!1,value:[f.value,d]}},l},u[Mn]=function(){return this.entries()},s}(),i=function(){function s(l,c){return this[Q]={i:3,l:c,A:c?c.A:ao(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,g:!1,C:!1},this}t(s,Set);var u=s.prototype;return Object.defineProperty(u,"size",{get:function(){return xe(this[Q]).size}}),u.has=function(l){var c=this[Q];return n(c),c.o?!!c.o.has(l)||!(!c.p.has(l)||!c.o.has(c.p.get(l))):c.t.has(l)},u.add=function(l){var c=this[Q];return n(c),this.has(l)||(r(c),ht(c),c.o.add(l)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[Q];return n(c),r(c),ht(c),c.o.delete(l)||!!c.p.has(l)&&c.o.delete(c.p.get(l))},u.clear=function(){var l=this[Q];n(l),xe(l).size&&(r(l),ht(l),l.o.clear())},u.values=function(){var l=this[Q];return n(l),r(l),l.o.values()},u.entries=function(){var l=this[Q];return n(l),r(l),l.o.entries()},u.keys=function(){return this.values()},u[Mn]=function(){return this.values()},u.forEach=function(l,c){for(var h=this.values(),f=h.next();!f.done;)l.call(c,f.value,f.value,this),f=h.next()},s}();_c("MapSet",{F:function(s,u){return new a(s,u)},T:function(s,u){return new i(s,u)}})}var Cu,vr,Zi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Hh=typeof Map<"u",Fh=typeof Set<"u",Eu=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Qi=Zi?Symbol.for("immer-nothing"):((Cu={})["immer-nothing"]=!0,Cu),tn=Zi?Symbol.for("immer-draftable"):"__$immer_draftable",Q=Zi?Symbol.for("immer-state"):"__$immer_state",Mn=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",qh={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(t){return"Cannot apply patch, path doesn't resolve: "+t},16:'Sets cannot have "replace" patches.',17:function(t){return"Unsupported patch operation: "+t},18:function(t){return"The plugin for '"+t+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+t+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(t){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+t+"'"},22:function(t){return"'current' expects a draft, got: "+t},23:function(t){return"'original' expects a draft, got: "+t},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Uh=""+Object.prototype.constructor,es=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Vh=Object.getOwnPropertyDescriptors||function(t){var e={};return es(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Ua={},Va={get:function(t,e){if(e===Q)return t;var r=xe(t);if(!on(r,e))return function(o,a,i){var s,u=wu(a,i);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(o.k):void 0}(t,r,e);var n=r[e];return t.I||!rt(n)?n:n===Ea(t.t,e)?(Na(t),t.o[e]=an(t.A.h,n,t)):n},has:function(t,e){return e in xe(t)},ownKeys:function(t){return Reflect.ownKeys(xe(t))},set:function(t,e,r){var n=wu(xe(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=Ea(xe(t),e),a=o==null?void 0:o[Q];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Dh(r,o)&&(r!==void 0||on(t.t,e)))return!0;Na(t),ht(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ea(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Na(t),ht(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=xe(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){ce(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ce(12)}},Jr={};Yt(Va,function(t,e){Jr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Jr.deleteProperty=function(t,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&ce(13),Jr.set.call(this,t,e,void 0)},Jr.set=function(t,e,r){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&ce(14),Va.set.call(this,t[0],e,r,t[0])};var Wh=function(){function t(r){var n=this;this.O=Eu,this.D=!0,this.produce=function(o,a,i){if(typeof o=="function"&&typeof a!="function"){var s=a;a=o;var u=n;return function(b){var m=this;b===void 0&&(b=s);for(var v=arguments.length,x=Array(v>1?v-1:0),S=1;S<v;S++)x[S-1]=arguments[S];return u.produce(b,function(C){var j;return(j=a).call.apply(j,[m,C].concat(x))})}}var l;if(typeof a!="function"&&ce(6),i!==void 0&&typeof i!="function"&&ce(7),rt(o)){var c=yu(n),h=an(n,o,void 0),f=!0;try{l=a(h),f=!1}finally{f?io(c):qa(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(b){return Sa(c,i),Ca(b,c)},function(b){throw io(c),b}):(Sa(c,i),Ca(l,c))}if(!o||typeof o!="object"){if((l=a(o))===void 0&&(l=o),l===Qi&&(l=void 0),n.D&&Ki(l,!0),i){var d=[],g=[];Je("Patches").M(o,l,d,g),i(d,g)}return l}ce(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(l){for(var c=arguments.length,h=Array(c>1?c-1:0),f=1;f<c;f++)h[f-1]=arguments[f];return n.produceWithPatches(l,function(d){return o.apply(void 0,[d].concat(h))})};var i,s,u=n.produce(o,a,function(l,c){i=l,s=c});return typeof Promise<"u"&&u instanceof Promise?u.then(function(l){return[l,i,s]}):[u,i,s]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){rt(r)||ce(8),Gt(r)&&(r=$h(r));var n=yu(this),o=an(this,r,void 0);return o[Q].C=!0,qa(n),o},e.finishDraft=function(r,n){var o=r&&r[Q];process.env.NODE_ENV!=="production"&&(o&&o.C||ce(9),o.I&&ce(10));var a=o.A;return Sa(a,n),Ca(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Eu&&ce(20),this.O=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var a=n[o];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}o>-1&&(n=n.slice(o+1));var i=Je("Patches").$;return Gt(r)?i(r,n):this.produce(r,function(s){return i(s,n)})},t}(),Pe=new Wh,Gh=Pe.produce,Nu=Pe.produceWithPatches.bind(Pe);Pe.setAutoFreeze.bind(Pe);Pe.setUseProxies.bind(Pe);var Tu=Pe.applyPatches.bind(Pe);Pe.createDraft.bind(Pe);Pe.finishDraft.bind(Pe);var F=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Yh(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}function Xh(){this.__data__=[],this.size=0}var Kh=Xh;function Jh(t,e){return t===e||t!==t&&e!==e}var Rc=Jh,Zh=Rc;function Qh(t,e){for(var r=t.length;r--;)if(Zh(t[r][0],e))return r;return-1}var Ho=Qh,em=Ho,tm=Array.prototype,rm=tm.splice;function nm(t){var e=this.__data__,r=em(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():rm.call(e,r,1),--this.size,!0}var om=nm,am=Ho;function im(t){var e=this.__data__,r=am(e,t);return r<0?void 0:e[r][1]}var sm=im,um=Ho;function lm(t){return um(this.__data__,t)>-1}var cm=lm,dm=Ho;function fm(t,e){var r=this.__data__,n=dm(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var pm=fm,hm=Kh,mm=om,gm=sm,bm=cm,vm=pm;function Pr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Pr.prototype.clear=hm;Pr.prototype.delete=mm;Pr.prototype.get=gm;Pr.prototype.has=bm;Pr.prototype.set=vm;var Fo=Pr,ym=Fo;function xm(){this.__data__=new ym,this.size=0}var wm=xm;function Sm(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Cm=Sm;function Em(t){return this.__data__.get(t)}var Nm=Em;function Tm(t){return this.__data__.has(t)}var jm=Tm,Am=typeof F=="object"&&F&&F.Object===Object&&F,Ic=Am,Om=Ic,km=typeof self=="object"&&self&&self.Object===Object&&self,Pm=Om||km||Function("return this")(),ot=Pm,_m=ot,Rm=_m.Symbol,qo=Rm,ju=qo,Dc=Object.prototype,Im=Dc.hasOwnProperty,Dm=Dc.toString,Gr=ju?ju.toStringTag:void 0;function Mm(t){var e=Im.call(t,Gr),r=t[Gr];try{t[Gr]=void 0;var n=!0}catch{}var o=Dm.call(t);return n&&(e?t[Gr]=r:delete t[Gr]),o}var Lm=Mm,$m=Object.prototype,Bm=$m.toString;function zm(t){return Bm.call(t)}var Hm=zm,Au=qo,Fm=Lm,qm=Hm,Um="[object Null]",Vm="[object Undefined]",Ou=Au?Au.toStringTag:void 0;function Wm(t){return t==null?t===void 0?Vm:Um:Ou&&Ou in Object(t)?Fm(t):qm(t)}var Uo=Wm;function Gm(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Mc=Gm,Ym=Uo,Xm=Mc,Km="[object AsyncFunction]",Jm="[object Function]",Zm="[object GeneratorFunction]",Qm="[object Proxy]";function eg(t){if(!Xm(t))return!1;var e=Ym(t);return e==Jm||e==Zm||e==Km||e==Qm}var ts=eg;const tg=zo(ts);var rg=ot,ng=rg["__core-js_shared__"],og=ng,Ta=og,ku=function(){var t=/[^.]+$/.exec(Ta&&Ta.keys&&Ta.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function ag(t){return!!ku&&ku in t}var ig=ag,sg=Function.prototype,ug=sg.toString;function lg(t){if(t!=null){try{return ug.call(t)}catch{}try{return t+""}catch{}}return""}var Lc=lg,cg=ts,dg=ig,fg=Mc,pg=Lc,hg=/[\\^$.*+?()[\]{}|]/g,mg=/^\[object .+?Constructor\]$/,gg=Function.prototype,bg=Object.prototype,vg=gg.toString,yg=bg.hasOwnProperty,xg=RegExp("^"+vg.call(yg).replace(hg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wg(t){if(!fg(t)||dg(t))return!1;var e=cg(t)?xg:mg;return e.test(pg(t))}var Sg=wg;function Cg(t,e){return t==null?void 0:t[e]}var Eg=Cg,Ng=Sg,Tg=Eg;function jg(t,e){var r=Tg(t,e);return Ng(r)?r:void 0}var Qt=jg,Ag=Qt,Og=ot,kg=Ag(Og,"Map"),rs=kg,Pg=Qt,_g=Pg(Object,"create"),Vo=_g,Pu=Vo;function Rg(){this.__data__=Pu?Pu(null):{},this.size=0}var Ig=Rg;function Dg(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Mg=Dg,Lg=Vo,$g="__lodash_hash_undefined__",Bg=Object.prototype,zg=Bg.hasOwnProperty;function Hg(t){var e=this.__data__;if(Lg){var r=e[t];return r===$g?void 0:r}return zg.call(e,t)?e[t]:void 0}var Fg=Hg,qg=Vo,Ug=Object.prototype,Vg=Ug.hasOwnProperty;function Wg(t){var e=this.__data__;return qg?e[t]!==void 0:Vg.call(e,t)}var Gg=Wg,Yg=Vo,Xg="__lodash_hash_undefined__";function Kg(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Yg&&e===void 0?Xg:e,this}var Jg=Kg,Zg=Ig,Qg=Mg,eb=Fg,tb=Gg,rb=Jg;function _r(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}_r.prototype.clear=Zg;_r.prototype.delete=Qg;_r.prototype.get=eb;_r.prototype.has=tb;_r.prototype.set=rb;var nb=_r,_u=nb,ob=Fo,ab=rs;function ib(){this.size=0,this.__data__={hash:new _u,map:new(ab||ob),string:new _u}}var sb=ib;function ub(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var lb=ub,cb=lb;function db(t,e){var r=t.__data__;return cb(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Wo=db,fb=Wo;function pb(t){var e=fb(this,t).delete(t);return this.size-=e?1:0,e}var hb=pb,mb=Wo;function gb(t){return mb(this,t).get(t)}var bb=gb,vb=Wo;function yb(t){return vb(this,t).has(t)}var xb=yb,wb=Wo;function Sb(t,e){var r=wb(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var Cb=Sb,Eb=sb,Nb=hb,Tb=bb,jb=xb,Ab=Cb;function Rr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Rr.prototype.clear=Eb;Rr.prototype.delete=Nb;Rr.prototype.get=Tb;Rr.prototype.has=jb;Rr.prototype.set=Ab;var $c=Rr,Ob=Fo,kb=rs,Pb=$c,_b=200;function Rb(t,e){var r=this.__data__;if(r instanceof Ob){var n=r.__data__;if(!kb||n.length<_b-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Pb(n)}return r.set(t,e),this.size=r.size,this}var Ib=Rb,Db=Fo,Mb=wm,Lb=Cm,$b=Nm,Bb=jm,zb=Ib;function Ir(t){var e=this.__data__=new Db(t);this.size=e.size}Ir.prototype.clear=Mb;Ir.prototype.delete=Lb;Ir.prototype.get=$b;Ir.prototype.has=Bb;Ir.prototype.set=zb;var Hb=Ir,Fb="__lodash_hash_undefined__";function qb(t){return this.__data__.set(t,Fb),this}var Ub=qb;function Vb(t){return this.__data__.has(t)}var Wb=Vb,Gb=$c,Yb=Ub,Xb=Wb;function lo(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Gb;++e<r;)this.add(t[e])}lo.prototype.add=lo.prototype.push=Yb;lo.prototype.has=Xb;var Kb=lo;function Jb(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var Zb=Jb;function Qb(t,e){return t.has(e)}var e1=Qb,t1=Kb,r1=Zb,n1=e1,o1=1,a1=2;function i1(t,e,r,n,o,a){var i=r&o1,s=t.length,u=e.length;if(s!=u&&!(i&&u>s))return!1;var l=a.get(t),c=a.get(e);if(l&&c)return l==e&&c==t;var h=-1,f=!0,d=r&a1?new t1:void 0;for(a.set(t,e),a.set(e,t);++h<s;){var g=t[h],b=e[h];if(n)var m=i?n(b,g,h,e,t,a):n(g,b,h,t,e,a);if(m!==void 0){if(m)continue;f=!1;break}if(d){if(!r1(e,function(v,x){if(!n1(d,x)&&(g===v||o(g,v,r,n,a)))return d.push(x)})){f=!1;break}}else if(!(g===b||o(g,b,r,n,a))){f=!1;break}}return a.delete(t),a.delete(e),f}var Bc=i1,s1=ot,u1=s1.Uint8Array,l1=u1;function c1(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}var d1=c1;function f1(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var p1=f1,Ru=qo,Iu=l1,h1=Rc,m1=Bc,g1=d1,b1=p1,v1=1,y1=2,x1="[object Boolean]",w1="[object Date]",S1="[object Error]",C1="[object Map]",E1="[object Number]",N1="[object RegExp]",T1="[object Set]",j1="[object String]",A1="[object Symbol]",O1="[object ArrayBuffer]",k1="[object DataView]",Du=Ru?Ru.prototype:void 0,ja=Du?Du.valueOf:void 0;function P1(t,e,r,n,o,a,i){switch(r){case k1:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case O1:return!(t.byteLength!=e.byteLength||!a(new Iu(t),new Iu(e)));case x1:case w1:case E1:return h1(+t,+e);case S1:return t.name==e.name&&t.message==e.message;case N1:case j1:return t==e+"";case C1:var s=g1;case T1:var u=n&v1;if(s||(s=b1),t.size!=e.size&&!u)return!1;var l=i.get(t);if(l)return l==e;n|=y1,i.set(t,e);var c=m1(s(t),s(e),n,o,a,i);return i.delete(t),c;case A1:if(ja)return ja.call(t)==ja.call(e)}return!1}var _1=P1;function R1(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var I1=R1,D1=Array.isArray,ns=D1,M1=I1,L1=ns;function $1(t,e,r){var n=e(t);return L1(t)?n:M1(n,r(t))}var B1=$1;function z1(t,e){for(var r=-1,n=t==null?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}var H1=z1;function F1(){return[]}var q1=F1,U1=H1,V1=q1,W1=Object.prototype,G1=W1.propertyIsEnumerable,Mu=Object.getOwnPropertySymbols,Y1=Mu?function(t){return t==null?[]:(t=Object(t),U1(Mu(t),function(e){return G1.call(t,e)}))}:V1,X1=Y1;function K1(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var J1=K1;function Z1(t){return t!=null&&typeof t=="object"}var Go=Z1,Q1=Uo,ev=Go,tv="[object Arguments]";function rv(t){return ev(t)&&Q1(t)==tv}var nv=rv,Lu=nv,ov=Go,zc=Object.prototype,av=zc.hasOwnProperty,iv=zc.propertyIsEnumerable,sv=Lu(function(){return arguments}())?Lu:function(t){return ov(t)&&av.call(t,"callee")&&!iv.call(t,"callee")},uv=sv,co={exports:{}};function lv(){return!1}var cv=lv;co.exports;(function(t,e){var r=ot,n=cv,o=e&&!e.nodeType&&e,a=o&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===o,s=i?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;t.exports=l})(co,co.exports);var Hc=co.exports,dv=9007199254740991,fv=/^(?:0|[1-9]\d*)$/;function pv(t,e){var r=typeof t;return e=e??dv,!!e&&(r=="number"||r!="symbol"&&fv.test(t))&&t>-1&&t%1==0&&t<e}var hv=pv,mv=9007199254740991;function gv(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=mv}var Fc=gv,bv=Uo,vv=Fc,yv=Go,xv="[object Arguments]",wv="[object Array]",Sv="[object Boolean]",Cv="[object Date]",Ev="[object Error]",Nv="[object Function]",Tv="[object Map]",jv="[object Number]",Av="[object Object]",Ov="[object RegExp]",kv="[object Set]",Pv="[object String]",_v="[object WeakMap]",Rv="[object ArrayBuffer]",Iv="[object DataView]",Dv="[object Float32Array]",Mv="[object Float64Array]",Lv="[object Int8Array]",$v="[object Int16Array]",Bv="[object Int32Array]",zv="[object Uint8Array]",Hv="[object Uint8ClampedArray]",Fv="[object Uint16Array]",qv="[object Uint32Array]",ie={};ie[Dv]=ie[Mv]=ie[Lv]=ie[$v]=ie[Bv]=ie[zv]=ie[Hv]=ie[Fv]=ie[qv]=!0;ie[xv]=ie[wv]=ie[Rv]=ie[Sv]=ie[Iv]=ie[Cv]=ie[Ev]=ie[Nv]=ie[Tv]=ie[jv]=ie[Av]=ie[Ov]=ie[kv]=ie[Pv]=ie[_v]=!1;function Uv(t){return yv(t)&&vv(t.length)&&!!ie[bv(t)]}var Vv=Uv;function Wv(t){return function(e){return t(e)}}var Gv=Wv,fo={exports:{}};fo.exports;(function(t,e){var r=Ic,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();t.exports=s})(fo,fo.exports);var os=fo.exports,Yv=Vv,Xv=Gv,$u=os,Bu=$u&&$u.isTypedArray,Kv=Bu?Xv(Bu):Yv,qc=Kv,Jv=J1,Zv=uv,Qv=ns,ey=Hc,ty=hv,ry=qc,ny=Object.prototype,oy=ny.hasOwnProperty;function ay(t,e){var r=Qv(t),n=!r&&Zv(t),o=!r&&!n&&ey(t),a=!r&&!n&&!o&&ry(t),i=r||n||o||a,s=i?Jv(t.length,String):[],u=s.length;for(var l in t)(e||oy.call(t,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ty(l,u)))&&s.push(l);return s}var iy=ay,sy=Object.prototype;function uy(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||sy;return t===r}var ly=uy;function cy(t,e){return function(r){return t(e(r))}}var dy=cy,fy=dy,py=fy(Object.keys,Object),hy=py,my=ly,gy=hy,by=Object.prototype,vy=by.hasOwnProperty;function yy(t){if(!my(t))return gy(t);var e=[];for(var r in Object(t))vy.call(t,r)&&r!="constructor"&&e.push(r);return e}var xy=yy,wy=ts,Sy=Fc;function Cy(t){return t!=null&&Sy(t.length)&&!wy(t)}var Ey=Cy,Ny=iy,Ty=xy,jy=Ey;function Ay(t){return jy(t)?Ny(t):Ty(t)}var Oy=Ay,ky=B1,Py=X1,_y=Oy;function Ry(t){return ky(t,_y,Py)}var Iy=Ry,zu=Iy,Dy=1,My=Object.prototype,Ly=My.hasOwnProperty;function $y(t,e,r,n,o,a){var i=r&Dy,s=zu(t),u=s.length,l=zu(e),c=l.length;if(u!=c&&!i)return!1;for(var h=u;h--;){var f=s[h];if(!(i?f in e:Ly.call(e,f)))return!1}var d=a.get(t),g=a.get(e);if(d&&g)return d==e&&g==t;var b=!0;a.set(t,e),a.set(e,t);for(var m=i;++h<u;){f=s[h];var v=t[f],x=e[f];if(n)var S=i?n(x,v,f,e,t,a):n(v,x,f,t,e,a);if(!(S===void 0?v===x||o(v,x,r,n,a):S)){b=!1;break}m||(m=f=="constructor")}if(b&&!m){var C=t.constructor,j=e.constructor;C!=j&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof j=="function"&&j instanceof j)&&(b=!1)}return a.delete(t),a.delete(e),b}var By=$y,zy=Qt,Hy=ot,Fy=zy(Hy,"DataView"),qy=Fy,Uy=Qt,Vy=ot,Wy=Uy(Vy,"Promise"),Gy=Wy,Yy=Qt,Xy=ot,Ky=Yy(Xy,"Set"),Jy=Ky,Zy=Qt,Qy=ot,ex=Zy(Qy,"WeakMap"),tx=ex,Wa=qy,Ga=rs,Ya=Gy,Xa=Jy,Ka=tx,Uc=Uo,Dr=Lc,Hu="[object Map]",rx="[object Object]",Fu="[object Promise]",qu="[object Set]",Uu="[object WeakMap]",Vu="[object DataView]",nx=Dr(Wa),ox=Dr(Ga),ax=Dr(Ya),ix=Dr(Xa),sx=Dr(Ka),Vt=Uc;(Wa&&Vt(new Wa(new ArrayBuffer(1)))!=Vu||Ga&&Vt(new Ga)!=Hu||Ya&&Vt(Ya.resolve())!=Fu||Xa&&Vt(new Xa)!=qu||Ka&&Vt(new Ka)!=Uu)&&(Vt=function(t){var e=Uc(t),r=e==rx?t.constructor:void 0,n=r?Dr(r):"";if(n)switch(n){case nx:return Vu;case ox:return Hu;case ax:return Fu;case ix:return qu;case sx:return Uu}return e});var ux=Vt,Aa=Hb,lx=Bc,cx=_1,dx=By,Wu=ux,Gu=ns,Yu=Hc,fx=qc,px=1,Xu="[object Arguments]",Ku="[object Array]",Ln="[object Object]",hx=Object.prototype,Ju=hx.hasOwnProperty;function mx(t,e,r,n,o,a){var i=Gu(t),s=Gu(e),u=i?Ku:Wu(t),l=s?Ku:Wu(e);u=u==Xu?Ln:u,l=l==Xu?Ln:l;var c=u==Ln,h=l==Ln,f=u==l;if(f&&Yu(t)){if(!Yu(e))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new Aa),i||fx(t)?lx(t,e,r,n,o,a):cx(t,e,u,r,n,o,a);if(!(r&px)){var d=c&&Ju.call(t,"__wrapped__"),g=h&&Ju.call(e,"__wrapped__");if(d||g){var b=d?t.value():t,m=g?e.value():e;return a||(a=new Aa),o(b,m,r,n,a)}}return f?(a||(a=new Aa),dx(t,e,r,n,o,a)):!1}var gx=mx,bx=gx,Zu=Go;function Vc(t,e,r,n,o){return t===e?!0:t==null||e==null||!Zu(t)&&!Zu(e)?t!==t&&e!==e:bx(t,e,r,n,Vc,o)}var vx=Vc,yx=vx;function xx(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?yx(t,e,void 0,r):!!n}var wx=xx;const Sx=zo(wx);var Cx=function(e,r,n,o){var a=n?n.call(o,e,r):void 0;if(a!==void 0)return!!a;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var i=Object.keys(e),s=Object.keys(r);if(i.length!==s.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(r),l=0;l<i.length;l++){var c=i[l];if(!u(c))return!1;var h=e[c],f=r[c];if(a=n?n.call(o,h,f,c):void 0,a===!1||a===void 0&&h!==f)return!1}return!0};const Ex=zo(Cx);let Nx=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,r)=>(r&=63,r<36?e+=r.toString(36):r<62?e+=(r-26).toString(36).toUpperCase():r>62?e+="-":e+="_",e),"");var Tx=process.env.NODE_ENV==="production",Oa="Invariant failed";function oe(t,e){if(!t){if(Tx)throw new Error(Oa);var r=typeof e=="function"?e():e,n=r?"".concat(Oa,": ").concat(r):Oa;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var bt="ROOT",Wc="canvas-ROOT",jx="Parent id cannot be ommited",Ax="Attempting to add a node with duplicated id",Gc="Node does not exist, it may have been removed",Ox='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',kx="Node cannot be dropped into target parent",Px="Target parent rejects incoming node",_x="Current parent rejects outgoing node",Qu="Cannot move node that is not a direct child of a Canvas node",Rx="Cannot move node into a non-Canvas parent",el="A top-level Node cannot be moved",Ix="Cannot move node into a descendant",po="The component type specified for this node (%node_type%) does not exist in the resolver",Dx="The node has specified a canDrag() rule that prevents it from being dragged",Mx="Invalid parameter Node Id specified",Lx="Attempting to delete a top-level Node",$x=`Resolver in <Editor /> has to be an object. For (de)serialization Craft.js needs a list of all the User Components.
221
+ */const Ch=Y("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function bu(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function $o(...t){return e=>{let r=!1;const n=t.map(o=>{const a=bu(o,e);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():bu(t[o],null)}}}}function we(...t){return y.useCallback($o(...t),t)}var Eh=Symbol.for("react.lazy"),ao=y[" use ".trim().toString()];function Nh(t){return typeof t=="object"&&t!==null&&"then"in t}function kc(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Eh&&"_payload"in t&&Nh(t._payload)}function Th(t){const e=Ah(t),r=y.forwardRef((n,o)=>{let{children:a,...i}=n;kc(a)&&typeof ao=="function"&&(a=ao(a._payload));const s=y.Children.toArray(a),u=s.find(kh);if(u){const l=u.props.children,c=s.map(h=>h===u?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...i,ref:o,children:y.isValidElement(l)?y.cloneElement(l,void 0,c):null})}return p.jsx(e,{...i,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}var jh=Th("Slot");function Ah(t){const e=y.forwardRef((r,n)=>{let{children:o,...a}=r;if(kc(o)&&typeof ao=="function"&&(o=ao(o._payload)),y.isValidElement(o)){const i=_h(o),s=Ph(a,o.props);return o.type!==y.Fragment&&(s.ref=n?$o(n,i):i),y.cloneElement(o,s)}return y.Children.count(o)>1?y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Oh=Symbol("radix.slottable");function kh(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Oh}function Ph(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const u=a(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function _h(t){var n,o;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const vu=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,yu=tt,Pc=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return yu(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=e,i=Object.keys(o).map(l=>{const c=r==null?void 0:r[l],h=a==null?void 0:a[l];if(c===null)return null;const f=vu(c)||vu(h);return o[l][f]}),s=r&&Object.entries(r).reduce((l,c)=>{let[h,f]=c;return f===void 0||(l[h]=f),l},{}),u=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((l,c)=>{let{class:h,className:f,...d}=c;return Object.entries(d).every(g=>{let[b,m]=g;return Array.isArray(m)?m.includes({...a,...s}[b]):{...a,...s}[b]===m})?[...l,h,f]:l},[]);return yu(t,i,u,r==null?void 0:r.class,r==null?void 0:r.className)},Rh=Pc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-lg shadow-primary/25",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-secondary hover:text-secondary-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary hover:text-secondary-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-lg px-10 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Xe=y.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...o},a)=>{const i=n?jh:"button";return p.jsx(i,{className:Se(Rh({variant:e,size:r,className:t})),ref:a,...o})});Xe.displayName="Button";function Ih(...t){return xc(tt(t))}function ce(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var o=qh[t],a=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+t;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Gt(t){return!!t&&!!t[Q]}function rt(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===Uh}(t)||Array.isArray(t)||!!t[rn]||!!(!((e=t.constructor)===null||e===void 0)&&e[rn])||Bo(t)||zo(t))}function Yt(t,e,r){r===void 0&&(r=!1),Rt(t)===0?(r?Object.keys:ts)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function Rt(t){var e=t[Q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Bo(t)?2:zo(t)?3:0}function an(t,e){return Rt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Qn(t,e){return Rt(t)===2?t.get(e):t[e]}function _c(t,e,r){var n=Rt(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Dh(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Bo(t){return Hh&&t instanceof Map}function zo(t){return Fh&&t instanceof Set}function xe(t){return t.o||t.t}function Ki(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Vh(t);delete e[Q];for(var r=ts(e),n=0;n<r.length;n++){var o=r[n],a=e[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Ji(t,e){return e===void 0&&(e=!1),Zi(t)||Gt(t)||!rt(t)||(Rt(t)>1&&(t.set=t.add=t.clear=t.delete=Mh),Object.freeze(t),e&&Yt(t,function(r,n){return Ji(n,!0)},!0)),t}function Mh(){ce(2)}function Zi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Je(t){var e=Va[t];return e||ce(18,t),e}function Rc(t,e){Va[t]||(Va[t]=e)}function io(){return process.env.NODE_ENV==="production"||yr||ce(0),yr}function Ca(t,e){e&&(Je("Patches"),t.u=[],t.s=[],t.v=e)}function so(t){Ua(t),t.p.forEach(Lh),t.p=null}function Ua(t){t===yr&&(yr=t.l)}function xu(t){return yr={p:[],l:yr,h:t,m:!0,_:0}}function Lh(t){var e=t[Q];e.i===0||e.i===1?e.j():e.g=!0}function Ea(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Je("ES5").S(e,t,n),n?(r[Q].P&&(so(e),ce(4)),rt(t)&&(t=uo(e,t),e.l||lo(e,t)),e.u&&Je("Patches").M(r[Q].t,t,e.u,e.s)):t=uo(e,r,[]),so(e),e.u&&e.v(e.u,e.s),t!==es?t:void 0}function uo(t,e,r){if(Zi(e))return e;var n=e[Q];if(!n)return Yt(e,function(s,u){return wu(t,n,e,s,u,r)},!0),e;if(n.A!==t)return e;if(!n.P)return lo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Ki(n.k):n.o,a=o,i=!1;n.i===3&&(a=new Set(o),o.clear(),i=!0),Yt(a,function(s,u){return wu(t,n,o,s,u,r,i)}),lo(t,o,!1),r&&t.u&&Je("Patches").N(n,r,t.u,t.s)}return n.o}function wu(t,e,r,n,o,a,i){if(process.env.NODE_ENV!=="production"&&o===r&&ce(5),Gt(o)){var s=uo(t,o,a&&e&&e.i!==3&&!an(e.R,n)?a.concat(n):void 0);if(_c(r,n,s),!Gt(s))return;t.m=!1}else i&&r.add(o);if(rt(o)&&!Zi(o)){if(!t.h.D&&t._<1)return;uo(t,o),e&&e.A.l||lo(t,o)}}function lo(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ji(e,r)}function Na(t,e){var r=t[Q];return(r?xe(r):t)[e]}function Su(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function ht(t){t.P||(t.P=!0,t.l&&ht(t.l))}function Ta(t){t.o||(t.o=Ki(t.t))}function sn(t,e,r){var n=Bo(e)?Je("MapSet").F(e,r):zo(e)?Je("MapSet").T(e,r):t.O?function(o,a){var i=Array.isArray(o),s={i:i?1:0,A:a?a.A:io(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},u=s,l=Wa;i&&(u=[s],l=Zr);var c=Proxy.revocable(u,l),h=c.revoke,f=c.proxy;return s.k=f,s.j=h,f}(e,r):Je("ES5").J(e,r);return(r?r.A:io()).p.push(n),n}function $h(t){return Gt(t)||ce(22,t),function e(r){if(!rt(r))return r;var n,o=r[Q],a=Rt(r);if(o){if(!o.P&&(o.i<4||!Je("ES5").K(o)))return o.t;o.I=!0,n=Cu(r,a),o.I=!1}else n=Cu(r,a);return Yt(n,function(i,s){o&&Qn(o.t,i)===s||_c(n,i,e(s))}),a===3?new Set(n):n}(t)}function Cu(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ki(t)}function Bh(){function t(n){if(!rt(n))return n;if(Array.isArray(n))return n.map(t);if(Bo(n))return new Map(Array.from(n.entries()).map(function(i){return[i[0],t(i[1])]}));if(zo(n))return new Set(Array.from(n).map(t));var o=Object.create(Object.getPrototypeOf(n));for(var a in n)o[a]=t(n[a]);return an(n,rn)&&(o[rn]=n[rn]),o}function e(n){return Gt(n)?t(n):n}var r="add";Rc("Patches",{$:function(n,o){return o.forEach(function(a){for(var i=a.path,s=a.op,u=n,l=0;l<i.length-1;l++){var c=Rt(u),h=i[l];typeof h!="string"&&typeof h!="number"&&(h=""+h),c!==0&&c!==1||h!=="__proto__"&&h!=="constructor"||ce(24),typeof u=="function"&&h==="prototype"&&ce(24),typeof(u=Qn(u,h))!="object"&&ce(15,i.join("/"))}var f=Rt(u),d=t(a.value),g=i[i.length-1];switch(s){case"replace":switch(f){case 2:return u.set(g,d);case 3:ce(16);default:return u[g]=d}case r:switch(f){case 1:return g==="-"?u.push(d):u.splice(g,0,d);case 2:return u.set(g,d);case 3:return u.add(d);default:return u[g]=d}case"remove":switch(f){case 1:return u.splice(g,1);case 2:return u.delete(g);case 3:return u.delete(a.value);default:return delete u[g]}default:ce(17,s)}}),n},N:function(n,o,a,i){switch(n.i){case 0:case 4:case 2:return function(s,u,l,c){var h=s.t,f=s.o;Yt(s.R,function(d,g){var b=Qn(h,d),m=Qn(f,d),v=g?an(h,d)?"replace":r:"remove";if(b!==m||v!=="replace"){var x=u.concat(d);l.push(v==="remove"?{op:v,path:x}:{op:v,path:x,value:m}),c.push(v===r?{op:"remove",path:x}:v==="remove"?{op:r,path:x,value:e(b)}:{op:"replace",path:x,value:e(b)})}})}(n,o,a,i);case 5:case 1:return function(s,u,l,c){var h=s.t,f=s.R,d=s.o;if(d.length<h.length){var g=[d,h];h=g[0],d=g[1];var b=[c,l];l=b[0],c=b[1]}for(var m=0;m<h.length;m++)if(f[m]&&d[m]!==h[m]){var v=u.concat([m]);l.push({op:"replace",path:v,value:e(d[m])}),c.push({op:"replace",path:v,value:e(h[m])})}for(var x=h.length;x<d.length;x++){var S=u.concat([x]);l.push({op:r,path:S,value:e(d[x])})}h.length<d.length&&c.push({op:"replace",path:u.concat(["length"]),value:h.length})}(n,o,a,i);case 3:return function(s,u,l,c){var h=s.t,f=s.o,d=0;h.forEach(function(g){if(!f.has(g)){var b=u.concat([d]);l.push({op:"remove",path:b,value:g}),c.unshift({op:r,path:b,value:g})}d++}),d=0,f.forEach(function(g){if(!h.has(g)){var b=u.concat([d]);l.push({op:r,path:b,value:g}),c.unshift({op:"remove",path:b,value:g})}d++})}(n,o,a,i)}},M:function(n,o,a,i){a.push({op:"replace",path:[],value:o===es?void 0:o}),i.push({op:"replace",path:[],value:n})}})}function zh(){function t(s,u){function l(){this.constructor=s}o(s,u),s.prototype=(l.prototype=u.prototype,new l)}function e(s){s.o||(s.R=new Map,s.o=new Map(s.t))}function r(s){s.o||(s.o=new Set,s.t.forEach(function(u){if(rt(u)){var l=sn(s.A.h,u,s);s.p.set(u,l),s.o.add(l)}else s.o.add(u)}))}function n(s){s.g&&ce(3,JSON.stringify(xe(s)))}var o=function(s,u){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var h in c)c.hasOwnProperty(h)&&(l[h]=c[h])})(s,u)},a=function(){function s(l,c){return this[Q]={i:2,l:c,A:c?c.A:io(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,g:!1},this}t(s,Map);var u=s.prototype;return Object.defineProperty(u,"size",{get:function(){return xe(this[Q]).size}}),u.has=function(l){return xe(this[Q]).has(l)},u.set=function(l,c){var h=this[Q];return n(h),xe(h).has(l)&&xe(h).get(l)===c||(e(h),ht(h),h.R.set(l,!0),h.o.set(l,c),h.R.set(l,!0)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[Q];return n(c),e(c),ht(c),c.t.has(l)?c.R.set(l,!1):c.R.delete(l),c.o.delete(l),!0},u.clear=function(){var l=this[Q];n(l),xe(l).size&&(e(l),ht(l),l.R=new Map,Yt(l.t,function(c){l.R.set(c,!1)}),l.o.clear())},u.forEach=function(l,c){var h=this;xe(this[Q]).forEach(function(f,d){l.call(c,h.get(d),d,h)})},u.get=function(l){var c=this[Q];n(c);var h=xe(c).get(l);if(c.I||!rt(h)||h!==c.t.get(l))return h;var f=sn(c.A.h,h,c);return e(c),c.o.set(l,f),f},u.keys=function(){return xe(this[Q]).keys()},u.values=function(){var l,c=this,h=this.keys();return(l={})[Ln]=function(){return c.values()},l.next=function(){var f=h.next();return f.done?f:{done:!1,value:c.get(f.value)}},l},u.entries=function(){var l,c=this,h=this.keys();return(l={})[Ln]=function(){return c.entries()},l.next=function(){var f=h.next();if(f.done)return f;var d=c.get(f.value);return{done:!1,value:[f.value,d]}},l},u[Ln]=function(){return this.entries()},s}(),i=function(){function s(l,c){return this[Q]={i:3,l:c,A:c?c.A:io(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,g:!1,C:!1},this}t(s,Set);var u=s.prototype;return Object.defineProperty(u,"size",{get:function(){return xe(this[Q]).size}}),u.has=function(l){var c=this[Q];return n(c),c.o?!!c.o.has(l)||!(!c.p.has(l)||!c.o.has(c.p.get(l))):c.t.has(l)},u.add=function(l){var c=this[Q];return n(c),this.has(l)||(r(c),ht(c),c.o.add(l)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[Q];return n(c),r(c),ht(c),c.o.delete(l)||!!c.p.has(l)&&c.o.delete(c.p.get(l))},u.clear=function(){var l=this[Q];n(l),xe(l).size&&(r(l),ht(l),l.o.clear())},u.values=function(){var l=this[Q];return n(l),r(l),l.o.values()},u.entries=function(){var l=this[Q];return n(l),r(l),l.o.entries()},u.keys=function(){return this.values()},u[Ln]=function(){return this.values()},u.forEach=function(l,c){for(var h=this.values(),f=h.next();!f.done;)l.call(c,f.value,f.value,this),f=h.next()},s}();Rc("MapSet",{F:function(s,u){return new a(s,u)},T:function(s,u){return new i(s,u)}})}var Eu,yr,Qi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Hh=typeof Map<"u",Fh=typeof Set<"u",Nu=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",es=Qi?Symbol.for("immer-nothing"):((Eu={})["immer-nothing"]=!0,Eu),rn=Qi?Symbol.for("immer-draftable"):"__$immer_draftable",Q=Qi?Symbol.for("immer-state"):"__$immer_state",Ln=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",qh={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(t){return"Cannot apply patch, path doesn't resolve: "+t},16:'Sets cannot have "replace" patches.',17:function(t){return"Unsupported patch operation: "+t},18:function(t){return"The plugin for '"+t+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+t+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(t){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+t+"'"},22:function(t){return"'current' expects a draft, got: "+t},23:function(t){return"'original' expects a draft, got: "+t},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Uh=""+Object.prototype.constructor,ts=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Vh=Object.getOwnPropertyDescriptors||function(t){var e={};return ts(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Va={},Wa={get:function(t,e){if(e===Q)return t;var r=xe(t);if(!an(r,e))return function(o,a,i){var s,u=Su(a,i);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(o.k):void 0}(t,r,e);var n=r[e];return t.I||!rt(n)?n:n===Na(t.t,e)?(Ta(t),t.o[e]=sn(t.A.h,n,t)):n},has:function(t,e){return e in xe(t)},ownKeys:function(t){return Reflect.ownKeys(xe(t))},set:function(t,e,r){var n=Su(xe(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=Na(xe(t),e),a=o==null?void 0:o[Q];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Dh(r,o)&&(r!==void 0||an(t.t,e)))return!0;Ta(t),ht(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Na(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ta(t),ht(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=xe(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){ce(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ce(12)}},Zr={};Yt(Wa,function(t,e){Zr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Zr.deleteProperty=function(t,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&ce(13),Zr.set.call(this,t,e,void 0)},Zr.set=function(t,e,r){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&ce(14),Wa.set.call(this,t[0],e,r,t[0])};var Wh=function(){function t(r){var n=this;this.O=Nu,this.D=!0,this.produce=function(o,a,i){if(typeof o=="function"&&typeof a!="function"){var s=a;a=o;var u=n;return function(b){var m=this;b===void 0&&(b=s);for(var v=arguments.length,x=Array(v>1?v-1:0),S=1;S<v;S++)x[S-1]=arguments[S];return u.produce(b,function(C){var j;return(j=a).call.apply(j,[m,C].concat(x))})}}var l;if(typeof a!="function"&&ce(6),i!==void 0&&typeof i!="function"&&ce(7),rt(o)){var c=xu(n),h=sn(n,o,void 0),f=!0;try{l=a(h),f=!1}finally{f?so(c):Ua(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(b){return Ca(c,i),Ea(b,c)},function(b){throw so(c),b}):(Ca(c,i),Ea(l,c))}if(!o||typeof o!="object"){if((l=a(o))===void 0&&(l=o),l===es&&(l=void 0),n.D&&Ji(l,!0),i){var d=[],g=[];Je("Patches").M(o,l,d,g),i(d,g)}return l}ce(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(l){for(var c=arguments.length,h=Array(c>1?c-1:0),f=1;f<c;f++)h[f-1]=arguments[f];return n.produceWithPatches(l,function(d){return o.apply(void 0,[d].concat(h))})};var i,s,u=n.produce(o,a,function(l,c){i=l,s=c});return typeof Promise<"u"&&u instanceof Promise?u.then(function(l){return[l,i,s]}):[u,i,s]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){rt(r)||ce(8),Gt(r)&&(r=$h(r));var n=xu(this),o=sn(this,r,void 0);return o[Q].C=!0,Ua(n),o},e.finishDraft=function(r,n){var o=r&&r[Q];process.env.NODE_ENV!=="production"&&(o&&o.C||ce(9),o.I&&ce(10));var a=o.A;return Ca(a,n),Ea(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Nu&&ce(20),this.O=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var a=n[o];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}o>-1&&(n=n.slice(o+1));var i=Je("Patches").$;return Gt(r)?i(r,n):this.produce(r,function(s){return i(s,n)})},t}(),Pe=new Wh,Gh=Pe.produce,Tu=Pe.produceWithPatches.bind(Pe);Pe.setAutoFreeze.bind(Pe);Pe.setUseProxies.bind(Pe);var ju=Pe.applyPatches.bind(Pe);Pe.createDraft.bind(Pe);Pe.finishDraft.bind(Pe);var F=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ho(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Yh(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}function Xh(){this.__data__=[],this.size=0}var Kh=Xh;function Jh(t,e){return t===e||t!==t&&e!==e}var Ic=Jh,Zh=Ic;function Qh(t,e){for(var r=t.length;r--;)if(Zh(t[r][0],e))return r;return-1}var Fo=Qh,em=Fo,tm=Array.prototype,rm=tm.splice;function nm(t){var e=this.__data__,r=em(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():rm.call(e,r,1),--this.size,!0}var om=nm,am=Fo;function im(t){var e=this.__data__,r=am(e,t);return r<0?void 0:e[r][1]}var sm=im,um=Fo;function lm(t){return um(this.__data__,t)>-1}var cm=lm,dm=Fo;function fm(t,e){var r=this.__data__,n=dm(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var pm=fm,hm=Kh,mm=om,gm=sm,bm=cm,vm=pm;function _r(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}_r.prototype.clear=hm;_r.prototype.delete=mm;_r.prototype.get=gm;_r.prototype.has=bm;_r.prototype.set=vm;var qo=_r,ym=qo;function xm(){this.__data__=new ym,this.size=0}var wm=xm;function Sm(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Cm=Sm;function Em(t){return this.__data__.get(t)}var Nm=Em;function Tm(t){return this.__data__.has(t)}var jm=Tm,Am=typeof F=="object"&&F&&F.Object===Object&&F,Dc=Am,Om=Dc,km=typeof self=="object"&&self&&self.Object===Object&&self,Pm=Om||km||Function("return this")(),ot=Pm,_m=ot,Rm=_m.Symbol,Uo=Rm,Au=Uo,Mc=Object.prototype,Im=Mc.hasOwnProperty,Dm=Mc.toString,Yr=Au?Au.toStringTag:void 0;function Mm(t){var e=Im.call(t,Yr),r=t[Yr];try{t[Yr]=void 0;var n=!0}catch{}var o=Dm.call(t);return n&&(e?t[Yr]=r:delete t[Yr]),o}var Lm=Mm,$m=Object.prototype,Bm=$m.toString;function zm(t){return Bm.call(t)}var Hm=zm,Ou=Uo,Fm=Lm,qm=Hm,Um="[object Null]",Vm="[object Undefined]",ku=Ou?Ou.toStringTag:void 0;function Wm(t){return t==null?t===void 0?Vm:Um:ku&&ku in Object(t)?Fm(t):qm(t)}var Vo=Wm;function Gm(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Lc=Gm,Ym=Vo,Xm=Lc,Km="[object AsyncFunction]",Jm="[object Function]",Zm="[object GeneratorFunction]",Qm="[object Proxy]";function eg(t){if(!Xm(t))return!1;var e=Ym(t);return e==Jm||e==Zm||e==Km||e==Qm}var rs=eg;const tg=Ho(rs);var rg=ot,ng=rg["__core-js_shared__"],og=ng,ja=og,Pu=function(){var t=/[^.]+$/.exec(ja&&ja.keys&&ja.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function ag(t){return!!Pu&&Pu in t}var ig=ag,sg=Function.prototype,ug=sg.toString;function lg(t){if(t!=null){try{return ug.call(t)}catch{}try{return t+""}catch{}}return""}var $c=lg,cg=rs,dg=ig,fg=Lc,pg=$c,hg=/[\\^$.*+?()[\]{}|]/g,mg=/^\[object .+?Constructor\]$/,gg=Function.prototype,bg=Object.prototype,vg=gg.toString,yg=bg.hasOwnProperty,xg=RegExp("^"+vg.call(yg).replace(hg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wg(t){if(!fg(t)||dg(t))return!1;var e=cg(t)?xg:mg;return e.test(pg(t))}var Sg=wg;function Cg(t,e){return t==null?void 0:t[e]}var Eg=Cg,Ng=Sg,Tg=Eg;function jg(t,e){var r=Tg(t,e);return Ng(r)?r:void 0}var Qt=jg,Ag=Qt,Og=ot,kg=Ag(Og,"Map"),ns=kg,Pg=Qt,_g=Pg(Object,"create"),Wo=_g,_u=Wo;function Rg(){this.__data__=_u?_u(null):{},this.size=0}var Ig=Rg;function Dg(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Mg=Dg,Lg=Wo,$g="__lodash_hash_undefined__",Bg=Object.prototype,zg=Bg.hasOwnProperty;function Hg(t){var e=this.__data__;if(Lg){var r=e[t];return r===$g?void 0:r}return zg.call(e,t)?e[t]:void 0}var Fg=Hg,qg=Wo,Ug=Object.prototype,Vg=Ug.hasOwnProperty;function Wg(t){var e=this.__data__;return qg?e[t]!==void 0:Vg.call(e,t)}var Gg=Wg,Yg=Wo,Xg="__lodash_hash_undefined__";function Kg(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Yg&&e===void 0?Xg:e,this}var Jg=Kg,Zg=Ig,Qg=Mg,eb=Fg,tb=Gg,rb=Jg;function Rr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Rr.prototype.clear=Zg;Rr.prototype.delete=Qg;Rr.prototype.get=eb;Rr.prototype.has=tb;Rr.prototype.set=rb;var nb=Rr,Ru=nb,ob=qo,ab=ns;function ib(){this.size=0,this.__data__={hash:new Ru,map:new(ab||ob),string:new Ru}}var sb=ib;function ub(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var lb=ub,cb=lb;function db(t,e){var r=t.__data__;return cb(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Go=db,fb=Go;function pb(t){var e=fb(this,t).delete(t);return this.size-=e?1:0,e}var hb=pb,mb=Go;function gb(t){return mb(this,t).get(t)}var bb=gb,vb=Go;function yb(t){return vb(this,t).has(t)}var xb=yb,wb=Go;function Sb(t,e){var r=wb(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var Cb=Sb,Eb=sb,Nb=hb,Tb=bb,jb=xb,Ab=Cb;function Ir(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ir.prototype.clear=Eb;Ir.prototype.delete=Nb;Ir.prototype.get=Tb;Ir.prototype.has=jb;Ir.prototype.set=Ab;var Bc=Ir,Ob=qo,kb=ns,Pb=Bc,_b=200;function Rb(t,e){var r=this.__data__;if(r instanceof Ob){var n=r.__data__;if(!kb||n.length<_b-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Pb(n)}return r.set(t,e),this.size=r.size,this}var Ib=Rb,Db=qo,Mb=wm,Lb=Cm,$b=Nm,Bb=jm,zb=Ib;function Dr(t){var e=this.__data__=new Db(t);this.size=e.size}Dr.prototype.clear=Mb;Dr.prototype.delete=Lb;Dr.prototype.get=$b;Dr.prototype.has=Bb;Dr.prototype.set=zb;var Hb=Dr,Fb="__lodash_hash_undefined__";function qb(t){return this.__data__.set(t,Fb),this}var Ub=qb;function Vb(t){return this.__data__.has(t)}var Wb=Vb,Gb=Bc,Yb=Ub,Xb=Wb;function co(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Gb;++e<r;)this.add(t[e])}co.prototype.add=co.prototype.push=Yb;co.prototype.has=Xb;var Kb=co;function Jb(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var Zb=Jb;function Qb(t,e){return t.has(e)}var e1=Qb,t1=Kb,r1=Zb,n1=e1,o1=1,a1=2;function i1(t,e,r,n,o,a){var i=r&o1,s=t.length,u=e.length;if(s!=u&&!(i&&u>s))return!1;var l=a.get(t),c=a.get(e);if(l&&c)return l==e&&c==t;var h=-1,f=!0,d=r&a1?new t1:void 0;for(a.set(t,e),a.set(e,t);++h<s;){var g=t[h],b=e[h];if(n)var m=i?n(b,g,h,e,t,a):n(g,b,h,t,e,a);if(m!==void 0){if(m)continue;f=!1;break}if(d){if(!r1(e,function(v,x){if(!n1(d,x)&&(g===v||o(g,v,r,n,a)))return d.push(x)})){f=!1;break}}else if(!(g===b||o(g,b,r,n,a))){f=!1;break}}return a.delete(t),a.delete(e),f}var zc=i1,s1=ot,u1=s1.Uint8Array,l1=u1;function c1(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}var d1=c1;function f1(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var p1=f1,Iu=Uo,Du=l1,h1=Ic,m1=zc,g1=d1,b1=p1,v1=1,y1=2,x1="[object Boolean]",w1="[object Date]",S1="[object Error]",C1="[object Map]",E1="[object Number]",N1="[object RegExp]",T1="[object Set]",j1="[object String]",A1="[object Symbol]",O1="[object ArrayBuffer]",k1="[object DataView]",Mu=Iu?Iu.prototype:void 0,Aa=Mu?Mu.valueOf:void 0;function P1(t,e,r,n,o,a,i){switch(r){case k1:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case O1:return!(t.byteLength!=e.byteLength||!a(new Du(t),new Du(e)));case x1:case w1:case E1:return h1(+t,+e);case S1:return t.name==e.name&&t.message==e.message;case N1:case j1:return t==e+"";case C1:var s=g1;case T1:var u=n&v1;if(s||(s=b1),t.size!=e.size&&!u)return!1;var l=i.get(t);if(l)return l==e;n|=y1,i.set(t,e);var c=m1(s(t),s(e),n,o,a,i);return i.delete(t),c;case A1:if(Aa)return Aa.call(t)==Aa.call(e)}return!1}var _1=P1;function R1(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var I1=R1,D1=Array.isArray,os=D1,M1=I1,L1=os;function $1(t,e,r){var n=e(t);return L1(t)?n:M1(n,r(t))}var B1=$1;function z1(t,e){for(var r=-1,n=t==null?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}var H1=z1;function F1(){return[]}var q1=F1,U1=H1,V1=q1,W1=Object.prototype,G1=W1.propertyIsEnumerable,Lu=Object.getOwnPropertySymbols,Y1=Lu?function(t){return t==null?[]:(t=Object(t),U1(Lu(t),function(e){return G1.call(t,e)}))}:V1,X1=Y1;function K1(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var J1=K1;function Z1(t){return t!=null&&typeof t=="object"}var Yo=Z1,Q1=Vo,ev=Yo,tv="[object Arguments]";function rv(t){return ev(t)&&Q1(t)==tv}var nv=rv,$u=nv,ov=Yo,Hc=Object.prototype,av=Hc.hasOwnProperty,iv=Hc.propertyIsEnumerable,sv=$u(function(){return arguments}())?$u:function(t){return ov(t)&&av.call(t,"callee")&&!iv.call(t,"callee")},uv=sv,fo={exports:{}};function lv(){return!1}var cv=lv;fo.exports;(function(t,e){var r=ot,n=cv,o=e&&!e.nodeType&&e,a=o&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===o,s=i?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;t.exports=l})(fo,fo.exports);var Fc=fo.exports,dv=9007199254740991,fv=/^(?:0|[1-9]\d*)$/;function pv(t,e){var r=typeof t;return e=e??dv,!!e&&(r=="number"||r!="symbol"&&fv.test(t))&&t>-1&&t%1==0&&t<e}var hv=pv,mv=9007199254740991;function gv(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=mv}var qc=gv,bv=Vo,vv=qc,yv=Yo,xv="[object Arguments]",wv="[object Array]",Sv="[object Boolean]",Cv="[object Date]",Ev="[object Error]",Nv="[object Function]",Tv="[object Map]",jv="[object Number]",Av="[object Object]",Ov="[object RegExp]",kv="[object Set]",Pv="[object String]",_v="[object WeakMap]",Rv="[object ArrayBuffer]",Iv="[object DataView]",Dv="[object Float32Array]",Mv="[object Float64Array]",Lv="[object Int8Array]",$v="[object Int16Array]",Bv="[object Int32Array]",zv="[object Uint8Array]",Hv="[object Uint8ClampedArray]",Fv="[object Uint16Array]",qv="[object Uint32Array]",ie={};ie[Dv]=ie[Mv]=ie[Lv]=ie[$v]=ie[Bv]=ie[zv]=ie[Hv]=ie[Fv]=ie[qv]=!0;ie[xv]=ie[wv]=ie[Rv]=ie[Sv]=ie[Iv]=ie[Cv]=ie[Ev]=ie[Nv]=ie[Tv]=ie[jv]=ie[Av]=ie[Ov]=ie[kv]=ie[Pv]=ie[_v]=!1;function Uv(t){return yv(t)&&vv(t.length)&&!!ie[bv(t)]}var Vv=Uv;function Wv(t){return function(e){return t(e)}}var Gv=Wv,po={exports:{}};po.exports;(function(t,e){var r=Dc,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();t.exports=s})(po,po.exports);var as=po.exports,Yv=Vv,Xv=Gv,Bu=as,zu=Bu&&Bu.isTypedArray,Kv=zu?Xv(zu):Yv,Uc=Kv,Jv=J1,Zv=uv,Qv=os,ey=Fc,ty=hv,ry=Uc,ny=Object.prototype,oy=ny.hasOwnProperty;function ay(t,e){var r=Qv(t),n=!r&&Zv(t),o=!r&&!n&&ey(t),a=!r&&!n&&!o&&ry(t),i=r||n||o||a,s=i?Jv(t.length,String):[],u=s.length;for(var l in t)(e||oy.call(t,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ty(l,u)))&&s.push(l);return s}var iy=ay,sy=Object.prototype;function uy(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||sy;return t===r}var ly=uy;function cy(t,e){return function(r){return t(e(r))}}var dy=cy,fy=dy,py=fy(Object.keys,Object),hy=py,my=ly,gy=hy,by=Object.prototype,vy=by.hasOwnProperty;function yy(t){if(!my(t))return gy(t);var e=[];for(var r in Object(t))vy.call(t,r)&&r!="constructor"&&e.push(r);return e}var xy=yy,wy=rs,Sy=qc;function Cy(t){return t!=null&&Sy(t.length)&&!wy(t)}var Ey=Cy,Ny=iy,Ty=xy,jy=Ey;function Ay(t){return jy(t)?Ny(t):Ty(t)}var Oy=Ay,ky=B1,Py=X1,_y=Oy;function Ry(t){return ky(t,_y,Py)}var Iy=Ry,Hu=Iy,Dy=1,My=Object.prototype,Ly=My.hasOwnProperty;function $y(t,e,r,n,o,a){var i=r&Dy,s=Hu(t),u=s.length,l=Hu(e),c=l.length;if(u!=c&&!i)return!1;for(var h=u;h--;){var f=s[h];if(!(i?f in e:Ly.call(e,f)))return!1}var d=a.get(t),g=a.get(e);if(d&&g)return d==e&&g==t;var b=!0;a.set(t,e),a.set(e,t);for(var m=i;++h<u;){f=s[h];var v=t[f],x=e[f];if(n)var S=i?n(x,v,f,e,t,a):n(v,x,f,t,e,a);if(!(S===void 0?v===x||o(v,x,r,n,a):S)){b=!1;break}m||(m=f=="constructor")}if(b&&!m){var C=t.constructor,j=e.constructor;C!=j&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof j=="function"&&j instanceof j)&&(b=!1)}return a.delete(t),a.delete(e),b}var By=$y,zy=Qt,Hy=ot,Fy=zy(Hy,"DataView"),qy=Fy,Uy=Qt,Vy=ot,Wy=Uy(Vy,"Promise"),Gy=Wy,Yy=Qt,Xy=ot,Ky=Yy(Xy,"Set"),Jy=Ky,Zy=Qt,Qy=ot,ex=Zy(Qy,"WeakMap"),tx=ex,Ga=qy,Ya=ns,Xa=Gy,Ka=Jy,Ja=tx,Vc=Vo,Mr=$c,Fu="[object Map]",rx="[object Object]",qu="[object Promise]",Uu="[object Set]",Vu="[object WeakMap]",Wu="[object DataView]",nx=Mr(Ga),ox=Mr(Ya),ax=Mr(Xa),ix=Mr(Ka),sx=Mr(Ja),Vt=Vc;(Ga&&Vt(new Ga(new ArrayBuffer(1)))!=Wu||Ya&&Vt(new Ya)!=Fu||Xa&&Vt(Xa.resolve())!=qu||Ka&&Vt(new Ka)!=Uu||Ja&&Vt(new Ja)!=Vu)&&(Vt=function(t){var e=Vc(t),r=e==rx?t.constructor:void 0,n=r?Mr(r):"";if(n)switch(n){case nx:return Wu;case ox:return Fu;case ax:return qu;case ix:return Uu;case sx:return Vu}return e});var ux=Vt,Oa=Hb,lx=zc,cx=_1,dx=By,Gu=ux,Yu=os,Xu=Fc,fx=Uc,px=1,Ku="[object Arguments]",Ju="[object Array]",$n="[object Object]",hx=Object.prototype,Zu=hx.hasOwnProperty;function mx(t,e,r,n,o,a){var i=Yu(t),s=Yu(e),u=i?Ju:Gu(t),l=s?Ju:Gu(e);u=u==Ku?$n:u,l=l==Ku?$n:l;var c=u==$n,h=l==$n,f=u==l;if(f&&Xu(t)){if(!Xu(e))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new Oa),i||fx(t)?lx(t,e,r,n,o,a):cx(t,e,u,r,n,o,a);if(!(r&px)){var d=c&&Zu.call(t,"__wrapped__"),g=h&&Zu.call(e,"__wrapped__");if(d||g){var b=d?t.value():t,m=g?e.value():e;return a||(a=new Oa),o(b,m,r,n,a)}}return f?(a||(a=new Oa),dx(t,e,r,n,o,a)):!1}var gx=mx,bx=gx,Qu=Yo;function Wc(t,e,r,n,o){return t===e?!0:t==null||e==null||!Qu(t)&&!Qu(e)?t!==t&&e!==e:bx(t,e,r,n,Wc,o)}var vx=Wc,yx=vx;function xx(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?yx(t,e,void 0,r):!!n}var wx=xx;const Sx=Ho(wx);var Cx=function(e,r,n,o){var a=n?n.call(o,e,r):void 0;if(a!==void 0)return!!a;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var i=Object.keys(e),s=Object.keys(r);if(i.length!==s.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(r),l=0;l<i.length;l++){var c=i[l];if(!u(c))return!1;var h=e[c],f=r[c];if(a=n?n.call(o,h,f,c):void 0,a===!1||a===void 0&&h!==f)return!1}return!0};const Ex=Ho(Cx);let Nx=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,r)=>(r&=63,r<36?e+=r.toString(36):r<62?e+=(r-26).toString(36).toUpperCase():r>62?e+="-":e+="_",e),"");var Tx=process.env.NODE_ENV==="production",ka="Invariant failed";function oe(t,e){if(!t){if(Tx)throw new Error(ka);var r=typeof e=="function"?e():e,n=r?"".concat(ka,": ").concat(r):ka;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var bt="ROOT",Gc="canvas-ROOT",jx="Parent id cannot be ommited",Ax="Attempting to add a node with duplicated id",Yc="Node does not exist, it may have been removed",Ox='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',kx="Node cannot be dropped into target parent",Px="Target parent rejects incoming node",_x="Current parent rejects outgoing node",el="Cannot move node that is not a direct child of a Canvas node",Rx="Cannot move node into a non-Canvas parent",tl="A top-level Node cannot be moved",Ix="Cannot move node into a descendant",ho="The component type specified for this node (%node_type%) does not exist in the resolver",Dx="The node has specified a canDrag() rule that prevents it from being dragged",Mx="Invalid parameter Node Id specified",Lx="Attempting to delete a top-level Node",$x=`Resolver in <Editor /> has to be an object. For (de)serialization Craft.js needs a list of all the User Components.
222
222
 
223
223
  More info: https://craft.js.org/r/docs/api/editor#props`,Bx=`An Error occurred while deserializing components: Cannot find component <%displayName% /> in resolver map. Please check your resolver in <Editor />
224
224
 
@@ -228,53 +228,53 @@ More info: https://craft.js.org/r/docs/api/editor#props`,zx=`You can only use us
228
228
 
229
229
  Please only use useEditor in components that are children of the <Editor /> component.`,Hx=`You can only use useNode in the context of <Editor />.
230
230
 
231
- Please only use useNode in components that are children of the <Editor /> component.`;function tl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Re(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?tl(Object(r),!0).forEach(function(n){ve(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tl(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Mr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Zc(n.key),n)}}function Lr(t,e,r){return e&&Fx(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ve(t,e,r){return(e=Zc(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mr(t){return mr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mr(t)}function Ja(t,e){return Ja=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ja(t,e)}function ka(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Za(){return Za=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(a,i){for(;!Object.prototype.hasOwnProperty.call(a,i)&&(a=mr(a))!==null;);return a}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},Za.apply(this,arguments)}function Yc(t,e){return Xc(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var a,i,s,u,l=[],c=!0,h=!1;try{if(s=(o=o.call(r)).next,n===0){if(Object(o)!==o)return;c=!1}else for(;!(c=(a=s.call(o)).done)&&(l.push(a.value),l.length!==n);c=!0);}catch(f){h=!0,i=f}finally{try{if(!c&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(h)throw i}}return l}}(t,e)||as(t,e)||Jc()}function Ee(t){return function(e){if(Array.isArray(e))return Qa(e)}(t)||Kc(t)||as(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
232
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Xc(t){if(Array.isArray(t))return t}function Kc(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function as(t,e){if(t){if(typeof t=="string")return Qa(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qa(t,e):void 0}}function Qa(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Jc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
233
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zc(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,"string");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}var fe={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},qx=function(){function t(){Mr(this,t),ve(this,"timeline",[]),ve(this,"pointer",-1)}return Lr(t,[{key:"add",value:function(e,r){e.length===0&&r.length===0||(this.pointer=this.pointer+1,this.timeline.length=this.pointer,this.timeline[this.pointer]={patches:e,inversePatches:r,timestamp:Date.now()})}},{key:"throttleAdd",value:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:500;if(e.length!==0||r.length!==0){if(this.timeline.length&&this.pointer>=0){var o=this.timeline[this.pointer],a=o.patches,i=o.inversePatches,s=o.timestamp;if(new Date().getTime()-s<n)return void(this.timeline[this.pointer]={timestamp:s,patches:[].concat(Ee(a),Ee(e)),inversePatches:[].concat(Ee(r),Ee(i))})}this.add(e,r)}}},{key:"merge",value:function(e,r){if(e.length!==0||r.length!==0)if(this.timeline.length&&this.pointer>=0){var n=this.timeline[this.pointer],o=n.inversePatches;this.timeline[this.pointer]={timestamp:n.timestamp,patches:[].concat(Ee(n.patches),Ee(e)),inversePatches:[].concat(Ee(r),Ee(o))}}else this.add(e,r)}},{key:"clear",value:function(){this.timeline=[],this.pointer=-1}},{key:"canUndo",value:function(){return this.pointer>=0}},{key:"canRedo",value:function(){return this.pointer<this.timeline.length-1}},{key:"undo",value:function(e){if(this.canUndo()){var r=this.timeline[this.pointer].inversePatches;return this.pointer=this.pointer-1,Tu(e,r)}}},{key:"redo",value:function(e){if(this.canRedo())return this.pointer=this.pointer+1,Tu(e,this.timeline[this.pointer].patches)}}]),t}();function Ux(t,e,r,n){var o,a=w.useMemo(function(){return new qx},[]),i=w.useRef([]),s=w.useRef(function(){});typeof t=="function"?o=t:(o=t.methods,i.current=t.ignoreHistoryForActions,s.current=t.normalizeHistory);var u=w.useRef(n);u.current=n;var l=w.useRef(e),c=w.useMemo(function(){var m=s.current,v=i.current,x=u.current;return function(S,C){var j,k=r&&rl(r,function(){return S},a),R=Yc(Nu(S,function(E){var T,P;switch(C.type){case fe.UNDO:return a.undo(E);case fe.REDO:return a.redo(E);case fe.CLEAR:return a.clear(),Re({},E);case fe.IGNORE:case fe.MERGE:case fe.THROTTLE:var I,N=Xc(P=C.payload)||Kc(P)||as(P)||Jc(),O=N[0],A=N.slice(1);(I=o(E,k))[O].apply(I,Ee(A));break;default:(T=o(E,k))[C.type].apply(T,Ee(C.payload))}}),3),M=R[0],D=R[1],$=R[2];return j=M,x&&x(M,S,{type:C.type,params:C.payload,patches:D},k,function(E){var T=Nu(M,E);j=T[0],D=[].concat(Ee(D),Ee(T[1])),$=[].concat(Ee(T[2]),Ee($))}),[fe.UNDO,fe.REDO].includes(C.type)&&m&&(j=Gh(j,m)),[].concat(Ee(v),[fe.UNDO,fe.REDO,fe.IGNORE,fe.CLEAR]).includes(C.type)||(C.type===fe.THROTTLE?a.throttleAdd(D,$,C.config&&C.config.rate):C.type===fe.MERGE?a.merge(D,$):a.add(D,$)),j}},[a,o,r]),h=w.useCallback(function(){return l.current},[]),f=w.useMemo(function(){return new Vx(h)},[h]),d=w.useCallback(function(m){var v=c(l.current,m);l.current=v,f.notify()},[c,f]);w.useEffect(function(){f.notify()},[f]);var g=w.useMemo(function(){return r?rl(r,function(){return l.current},a):[]},[a,r]),b=w.useMemo(function(){var m=Object.keys(o(null,null)),v=i.current;return Re(Re({},m.reduce(function(x,S){return x[S]=function(){for(var C=arguments.length,j=new Array(C),k=0;k<C;k++)j[k]=arguments[k];return d({type:S,payload:j})},x},{})),{},{history:{undo:function(){return d({type:fe.UNDO})},redo:function(){return d({type:fe.REDO})},clear:function(){return d({type:fe.CLEAR})},throttle:function(x){return Re({},m.filter(function(S){return!v.includes(S)}).reduce(function(S,C){return S[C]=function(){for(var j=arguments.length,k=new Array(j),R=0;R<j;R++)k[R]=arguments[R];return d({type:fe.THROTTLE,payload:[C].concat(k),config:{rate:x}})},S},{}))},ignore:function(){return Re({},m.filter(function(x){return!v.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var C=arguments.length,j=new Array(C),k=0;k<C;k++)j[k]=arguments[k];return d({type:fe.IGNORE,payload:[S].concat(j)})},x},{}))},merge:function(){return Re({},m.filter(function(x){return!v.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var C=arguments.length,j=new Array(C),k=0;k<C;k++)j[k]=arguments[k];return d({type:fe.MERGE,payload:[S].concat(j)})},x},{}))}}})},[d,o]);return w.useMemo(function(){return{getState:h,subscribe:function(m,v,x){return f.subscribe(m,v,x)},actions:b,query:g,history:a}},[b,g,f,h,a])}function rl(t,e,r){var n=Object.keys(t()).reduce(function(o,a){return Re(Re({},o),{},ve({},a,function(){var i;return(i=t(e()))[a].apply(i,arguments)}))},{});return Re(Re({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}zh(),Bh();var Vx=function(){function t(e){Mr(this,t),ve(this,"getState",void 0),ve(this,"subscribers",[]),this.getState=e}return Lr(t,[{key:"subscribe",value:function(e,r,n){var o=this,a=new Wx(function(){return e(o.getState())},r,n);return this.subscribers.push(a),this.unsubscribe.bind(this,a)}},{key:"unsubscribe",value:function(e){if(this.subscribers.length){var r=this.subscribers.indexOf(e);if(r>-1)return this.subscribers.splice(r,1)}}},{key:"notify",value:function(){this.subscribers.forEach(function(e){return e.collect()})}}]),t}(),Wx=function(){function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];Mr(this,t),ve(this,"collected",void 0),ve(this,"collector",void 0),ve(this,"onChange",void 0),ve(this,"id",void 0),this.collector=e,this.onChange=r,n&&this.collect()}return Lr(t,[{key:"collect",value:function(){try{var e=this.collector();Sx(e,this.collected)||(this.collected=e,this.onChange&&this.onChange(this.collected))}catch(r){console.warn(r)}}}]),t}(),sn=function(t){var e=t.getBoundingClientRect(),r=e.x,n=e.y,o=e.top,a=e.left,i=e.bottom,s=e.right,u=e.width,l=e.height,c=window.getComputedStyle(t),h={left:parseInt(c.marginLeft),right:parseInt(c.marginRight),bottom:parseInt(c.marginBottom),top:parseInt(c.marginTop)},f={left:parseInt(c.paddingLeft),right:parseInt(c.paddingRight),bottom:parseInt(c.paddingBottom),top:parseInt(c.paddingTop)};return{x:r,y:n,top:o,left:a,bottom:i,right:s,width:u,height:l,outerWidth:Math.round(u+h.left+h.right),outerHeight:Math.round(l+h.top+h.bottom),margin:h,padding:f,inFlow:t.parentElement&&!!function(d){var g=getComputedStyle(d);if(!(c.overflow&&c.overflow!=="visible"||g.float!=="none"||g.display==="grid"||g.display==="flex"&&g["flex-direction"]!=="column")){switch(c.position){case"static":case"relative":break;default:return}switch(t.tagName){case"TR":case"TBODY":case"THEAD":case"TFOOT":return!0}switch(c.display){case"block":case"list-item":case"table":case"flex":case"grid":return!0}}}(t.parentElement)}};function Gx(t,e){const{subscribe:r,getState:n,actions:o,query:a}=t,i=w.useRef(!0),s=w.useRef(null),u=w.useRef(e);u.current=e;const l=w.useCallback(f=>({...f,actions:o,query:a}),[o,a]);i.current&&e&&(s.current=e(n(),a),i.current=!1);const[c,h]=w.useState(l(s.current));return w.useEffect(()=>{let f;return u.current&&(f=r(d=>u.current(d,a),d=>{h(l(d))})),()=>{f&&f()}},[l,a,r]),c}var yr,Qc=function(){return Nx(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},Yx=function(){function t(){Mr(this,t),ve(this,"isEnabled",!0),ve(this,"elementIdMap",new WeakMap),ve(this,"registry",new Map)}return Lr(t,[{key:"getElementId",value:function(e){var r=this.elementIdMap.get(e);if(r)return r;var n=Qc();return this.elementIdMap.set(e,n),n}},{key:"getConnectorId",value:function(e,r){var n=this.getElementId(e);return"".concat(r,"--").concat(n)}},{key:"register",value:function(e,r){var n=this,o=this.getByElement(e,r.name);if(o){if(Ex(r.required,o.required))return o;this.getByElement(e,r.name).disable()}var a=null,i=this.getConnectorId(e,r.name);return this.registry.set(i,{id:i,required:r.required,enable:function(){a&&a(),a=r.connector(e,r.required,r.options)},disable:function(){a&&a()},remove:function(){return n.remove(i)}}),this.isEnabled&&this.registry.get(i).enable(),this.registry.get(i)}},{key:"get",value:function(e){return this.registry.get(e)}},{key:"remove",value:function(e){var r=this.get(e);r&&(r.disable(),this.registry.delete(r.id))}},{key:"enable",value:function(){this.isEnabled=!0,this.registry.forEach(function(e){e.enable()})}},{key:"disable",value:function(){this.isEnabled=!1,this.registry.forEach(function(e){e.disable()})}},{key:"getByElement",value:function(e,r){return this.get(this.getConnectorId(e,r))}},{key:"removeByElement",value:function(e,r){return this.remove(this.getConnectorId(e,r))}},{key:"clear",value:function(){this.disable(),this.elementIdMap=new WeakMap,this.registry=new Map}}]),t}();(function(t){t[t.HandlerDisabled=0]="HandlerDisabled",t[t.HandlerEnabled=1]="HandlerEnabled"})(yr||(yr={}));var ed=function(){function t(e){Mr(this,t),ve(this,"options",void 0),ve(this,"registry",new Yx),ve(this,"subscribers",new Set),this.options=e}return Lr(t,[{key:"listen",value:function(e){var r=this;return this.subscribers.add(e),function(){return r.subscribers.delete(e)}}},{key:"disable",value:function(){this.onDisable&&this.onDisable(),this.registry.disable(),this.subscribers.forEach(function(e){e(yr.HandlerDisabled)})}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach(function(e){e(yr.HandlerEnabled)})}},{key:"cleanup",value:function(){this.disable(),this.subscribers.clear(),this.registry.clear()}},{key:"addCraftEventListener",value:function(e,r,n,o){var a=function(i){(function(s,u,l){s.craft||(s.craft={stopPropagation:function(){},blockedEvents:{}});for(var c=s.craft&&s.craft.blockedEvents[u]||[],h=0;h<c.length;h++){var f=c[h];if(l!==f&&l.contains(f))return!0}return!1})(i,r,e)||(i.craft.stopPropagation=function(){i.craft.blockedEvents[r]||(i.craft.blockedEvents[r]=[]),i.craft.blockedEvents[r].push(e)},n(i))};return e.addEventListener(r,a,o),function(){return e.removeEventListener(r,a,o)}}},{key:"createConnectorsUsage",value:function(){var e=this,r=this.handlers(),n=new Set,o=!1,a=new Map;return{connectors:Object.entries(r).reduce(function(i,s){var u=Yc(s,2),l=u[0],c=u[1];return Re(Re({},i),{},ve({},l,function(h,f,d){var g=function(){var b=e.registry.register(h,{required:f,name:l,options:d,connector:c});return n.add(b.id),b};return a.set(e.registry.getConnectorId(h,l),g),o&&g(),h}))},{}),register:function(){o=!0,a.forEach(function(i){i()})},cleanup:function(){o=!1,n.forEach(function(i){return e.registry.remove(i)})}}}},{key:"derive",value:function(e,r){return new e(this,r)}},{key:"createProxyHandlers",value:function(e,r){var n=[],o=e.handlers(),a=new Proxy(o,{get:function(i,s,u){return s in o==0?Reflect.get(i,s,u):function(l){for(var c=arguments.length,h=new Array(c>1?c-1:0),f=1;f<c;f++)h[f-1]=arguments[f];var d=o[s].apply(o,[l].concat(h));d&&n.push(d)}}});return r(a),function(){n.forEach(function(i){i()})}}},{key:"reflect",value:function(e){return this.createProxyHandlers(this,e)}}]),t}(),Xx=function(t){(function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),i&&Ja(a,i)})(o,ed);var e,r,n=(e=o,r=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var a,i=mr(e);if(r){var s=mr(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return function(u,l){if(l&&(typeof l=="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ka(u)}(this,a)});function o(a,i){var s;return Mr(this,o),ve(ka(s=n.call(this,i)),"derived",void 0),ve(ka(s),"unsubscribeParentHandlerListener",void 0),s.derived=a,s.options=i,s.unsubscribeParentHandlerListener=s.derived.listen(function(u){switch(u){case yr.HandlerEnabled:return s.enable();case yr.HandlerDisabled:return s.disable();default:return}}),s}return Lr(o,[{key:"inherit",value:function(a){return this.createProxyHandlers(this.derived,a)}},{key:"cleanup",value:function(){Za(mr(o.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),o}();function nl(t,e){e&&(typeof t=="function"?t(e):t.current=e)}function Kx(t,e){const r=t.ref;return oe(typeof r!="string","Cannot connect to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),w.cloneElement(t,r?{ref:n=>{nl(r,n),nl(e,n)}}:{ref:e})}function Jx(t){return(e=null,...r)=>{if(!w.isValidElement(e)){if(!e)return;const o=e;return o&&t(o,...r),o}const n=e;return function(o){if(typeof o.type!="string")throw new Error}(n),Kx(n,t)}}function td(t){return Object.keys(t).reduce((e,r)=>(e[r]=Jx((...n)=>t[r](...n)),e),{})}const Zx=({style:t,className:e,parentDom:r})=>{const n=w.createElement("div",{className:e,style:{position:"fixed",display:"block",opacity:1,borderStyle:"solid",borderWidth:"1px",borderColor:"transparent",zIndex:99999,...t}});return r&&r.ownerDocument!==document?Mi.createPortal(n,r.ownerDocument.body):n};var It=function(t,e){var r="Deprecation warning: ".concat(t," will be deprecated in future relases."),n=e.suggest,o=e.doc;n&&(r+=" Please use ".concat(n," instead.")),o&&(r+="(".concat(o,")")),console.warn(r)},rd=function(){return typeof window<"u"},Qx=function(){return rd()&&/Linux/i.test(window.navigator.userAgent)},e2=function(){return rd()&&/Chrome/i.test(window.navigator.userAgent)},t2=Qt;(function(){try{var t=t2(Object,"defineProperty");return t({},"",{}),t}catch{}})();var ho={exports:{}};ho.exports;(function(t,e){var r=ot,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var h=l.length,f=s?s(h):new l.constructor(h);return l.copy(f),f}t.exports=u})(ho,ho.exports);ho.exports;var ol=qo,al=ol?ol.prototype:void 0;al&&al.valueOf;var il=os;il&&il.isMap;var sl=os;sl&&sl.isSet;typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const nd=w.createContext(null),od=({id:t,related:e=!1,children:r})=>w.createElement(nd.Provider,{value:{id:t,related:e}},r);function ul(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function se(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ul(Object(r),!0).forEach(function(n){be(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ul(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ei(t){return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ei(t)}function Yo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r2(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sd(n.key),n)}}function Xo(t,e,r){return e&&r2(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function be(t,e,r){return(e=sd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function is(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ti(t,e)}function mo(t){return mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mo(t)}function ti(t,e){return ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ti(t,e)}function ss(t,e){if(t==null)return{};var r,n,o=function(i,s){if(i==null)return{};var u,l,c={},h=Object.keys(i);for(l=0;l<h.length;l++)s.indexOf(u=h[l])>=0||(c[u]=i[u]);return c}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)e.indexOf(r=a[n])>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Zr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function us(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,n=mo(t);if(e){var o=mo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(a,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zr(a)}(this,r)}}function ad(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var a,i,s,u,l=[],c=!0,h=!1;try{if(s=(o=o.call(r)).next,n!==0)for(;!(c=(a=s.call(o)).done)&&(l.push(a.value),l.length!==n);c=!0);}catch(f){h=!0,i=f}finally{try{if(!c&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(h)throw i}}return l}}(t,e)||id(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
234
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function un(t){return function(e){if(Array.isArray(e))return ri(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||id(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
235
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function id(t,e){if(t){if(typeof t=="string")return ri(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ri(t,e):void 0}}function ri(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function sd(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,"string");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}const ls=w.createContext(null);var ud=w.createContext(null),ld=function(){return w.useContext(ud)};function er(t){var e=ld(),r=w.useContext(ls);oe(r,zx);var n=Gx(r,t),o=w.useMemo(function(){return e&&e.createConnectorsUsage()},[e]);w.useEffect(function(){return o.register(),function(){o.cleanup()}},[o]);var a=w.useMemo(function(){return o&&td(o.connectors)},[o]);return se(se({},n),{},{connectors:a,inContext:!!r,store:r})}var n2=["actions","query","connectors"];function Ko(t){var e=w.useContext(nd);oe(e,Hx);var r=e.id,n=e.related,o=er(function(c){return r&&c.nodes[r]&&t&&t(c.nodes[r])}),a=o.actions,i=o.connectors,s=ss(o,n2),u=w.useMemo(function(){return td({connect:function(c){return i.connect(c,r)},drag:function(c){return i.drag(c,r)}})},[i,r]),l=w.useMemo(function(){return{setProp:function(c,h){h?a.history.throttle(h).setProp(r,c):a.setProp(r,c)},setCustom:function(c,h){h?a.history.throttle(h).setCustom(r,c):a.setCustom(r,c)},setHidden:function(c){return a.setHidden(r,c)}}},[a,r]);return se(se({},s),{},{id:r,related:n,inNodeContext:!!e,actions:l,connectors:u})}var o2=["id","related","actions","inNodeContext","connectors"];function ne(t){var e=Ko(t),r=e.id,n=e.related,o=e.actions,a=e.inNodeContext,i=e.connectors;return se(se({},ss(e,o2)),{},{actions:o,id:r,related:n,setProp:function(s,u){return It("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),o.setProp(s,u)},inNodeContext:a,connectors:i})}const a2=({render:t})=>{const{connectors:{connect:e,drag:r}}=ne();return typeof t.type=="string"?e(r(w.cloneElement(t))):t},i2=()=>{const{type:t,props:e,nodes:r,hydrationTimestamp:n}=Ko(o=>({type:o.data.type,props:o.data.props,nodes:o.data.nodes,hydrationTimestamp:o._hydrationTimestamp}));return w.useMemo(()=>{let o=e.children;r&&r.length>0&&(o=w.createElement(w.Fragment,null,r.map(i=>w.createElement(cs,{id:i,key:i}))));const a=w.createElement(t,e,o);return typeof t=="string"?w.createElement(a2,{render:a}):a},[t,e,n,r])},s2=({render:t})=>{const{hidden:e}=Ko(n=>({hidden:n.data.hidden})),{onRender:r}=er(n=>({onRender:n.options.onRender}));return e?null:w.createElement(r,{render:t||w.createElement(i2,null)})},cs=({id:t,render:e})=>w.createElement(od,{id:t},w.createElement(s2,{render:e})),ni={is:"div",canvas:!1,custom:{},hidden:!1},u2={is:"type",canvas:"isCanvas"};function Pt({id:t,children:e,...r}){const{is:n}={...ni,...r},{query:o,actions:a}=er(),{id:i,inNodeContext:s}=Ko(),[u]=w.useState(()=>{oe(!!t,Ox);const l=o.node(i).get();if(s){const c=l.data.linkedNodes[t]?o.node(l.data.linkedNodes[t]).get():null;if(c&&c.data.type===n)return c.id;const h=w.createElement(Pt,r,e),f=o.parseReactElement(h).toNodeTree();return a.history.ignore().addLinkedNodeFromTree(f,i,t),f.rootNodeId}return null});return u?w.createElement(cs,{id:u}):null}const cd=()=>It("<Canvas />",{suggest:"<Element canvas={true} />"});function oi({...t}){return w.useEffect(()=>cd(),[]),w.createElement(Pt,{...t,canvas:!0})}const l2=()=>{const{timestamp:t}=er(e=>({timestamp:e.nodes[bt]&&e.nodes[bt]._hydrationTimestamp}));return t?w.createElement(cs,{id:bt,key:t}):null},ds=({children:t,json:e,data:r})=>{const{actions:n,query:o}=er();e&&It("<Frame json={...} />",{suggest:"<Frame data={...} />"});const a=w.useRef(!1);if(!a.current){const i=r||e;if(i)n.history.ignore().deserialize(i);else if(t){const s=w.Children.only(t),u=o.parseReactElement(s).toNodeTree((l,c)=>(c===s&&(l.id=bt),l));n.history.ignore().addNodeTree(u)}a.current=!0}return w.createElement(l2,null)};var ll;(function(t){t[t.Any=0]="Any",t[t.Id=1]="Id",t[t.Obj=2]="Obj"})(ll||(ll={}));const Pa=t=>{const{addLinkedNodeFromTree:e,setDOM:r,setNodeEvent:n,replaceNodes:o,reset:a,...i}=t;return i};function at(t){const{connectors:e,actions:r,query:n,store:o,...a}=er(t),i=Pa(r);return{connectors:e,actions:w.useMemo(()=>({...i,history:{...i.history,ignore:(...s)=>Pa(i.history.ignore(...s)),throttle:(...s)=>Pa(i.history.throttle(...s))}}),[i]),query:n,store:o,...a}}var dd=function(t){return Object.fromEntries?Object.fromEntries(t):t.reduce(function(e,r){var n=ad(r,2),o=n[0],a=n[1];return se(se({},e),{},be({},o,a))},{})},mt=function(t,e,r){var n=Array.isArray(e)?e:[e],o=se({existOnly:!1,idOnly:!1},r||{}),a=n.filter(function(i){return!!i}).map(function(i){return typeof i=="string"?{node:t[i],exists:!!t[i]}:ei(i)!=="object"||o.idOnly?{node:null,exists:!1}:{node:i,exists:!!t[i.id]}});return o.existOnly&&oe(a.filter(function(i){return!i.exists}).length===0,Gc),a},c2=["history"],lr=null,go=function(t,e){if(typeof e=="string")return e;var r,n=function(o,a){var i=function(s){if(lr&&lr.resolver===s)return lr.reversed;lr={resolver:s,reversed:new Map};for(var u=0,l=Object.entries(s);u<l.length;u++){var c=ad(l[u],2);lr.reversed.set(c[1],c[0])}return lr.reversed}(o).get(a);return i!==void 0?i:null}(t,e);return oe(n,po.replace("%node_type%",(r=e).name||r.displayName)),n};const d2=(t,e)=>typeof t=="string"?t:{resolvedName:go(e,t)},ai=(t,e)=>{let{type:r,isCanvas:n,props:o}=t;return o=Object.keys(o).reduce((a,i)=>{const s=o[i];return s==null||typeof s=="function"||(a[i]=i==="children"&&typeof s!="string"?w.Children.map(s,u=>typeof u=="string"?u:ai(u,e)):typeof s.type=="function"?ai(s,e):s),a},{}),{type:d2(r,e),isCanvas:!!n,props:o}},f2=(t,e)=>{const{type:r,props:n,isCanvas:o,name:a,...i}=t;return{...ai({type:r,isCanvas:o,props:n},e),...i}};function ii(t,e){oe(typeof e=="string",Mx);var r=t.nodes[e],n=function(o){return ii(t,o)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===bt},isLinkedNode:function(){return r.data.parent&&n(r.data.parent).linkedNodes().includes(r.id)},isTopLevelNode:function(){return this.isRoot()||this.isLinkedNode()},isDeletable:function(){return!this.isTopLevelNode()},isParentOfTopLevelNodes:function(){return r.data.linkedNodes&&Object.keys(r.data.linkedNodes).length>0},isParentOfTopLevelCanvas:function(){return It("query.node(id).isParentOfTopLevelCanvas",{suggest:"query.node(id).isParentOfTopLevelNodes"}),this.isParentOfTopLevelNodes()},isSelected:function(){return t.events.selected.has(e)},isHovered:function(){return t.events.hovered.has(e)},isDragged:function(){return t.events.dragged.has(e)},get:function(){return r},ancestors:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return function a(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=t.nodes[i];return l?(s.push(i),l.data.parent&&(o||!o&&u===0)&&(s=a(l.data.parent,s,u+1)),s):s}(r.data.parent)},descendants:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0],a=arguments.length>1?arguments[1]:void 0;return function i(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return(o||!o&&l===0)&&t.nodes[s]&&(a!=="childNodes"&&n(s).linkedNodes().forEach(function(c){u.push(c),u=i(c,u,l+1)}),a!=="linkedNodes"&&n(s).childNodes().forEach(function(c){u.push(c),u=i(c,u,l+1)})),u}(e)},linkedNodes:function(){return Object.values(r.data.linkedNodes||{})},childNodes:function(){return r.data.nodes||[]},isDraggable:function(o){try{var a=r;return oe(!this.isTopLevelNode(),el),oe(ii(t,a.data.parent).isCanvas(),Qu),oe(a.rules.canDrag(a,n),Dx),!0}catch(i){return o&&o(i),!1}},isDroppable:function(o,a){var i=mt(t.nodes,o),s=r;try{oe(this.isCanvas(),Rx),oe(s.rules.canMoveIn(i.map(function(l){return l.node}),s,n),Px);var u={};return i.forEach(function(l){var c=l.node,h=l.exists;if(oe(c.rules.canDrop(s,c,n),kx),h){oe(!n(c.id).isTopLevelNode(),el);var f=n(c.id).descendants(!0);oe(!f.includes(s.id)&&s.id!==c.id,Ix);var d=c.data.parent&&t.nodes[c.data.parent];oe(d.data.isCanvas,Qu),oe(d||!d&&!t.nodes[c.id],Ax),d.id!==s.id&&(u[d.id]||(u[d.id]=[]),u[d.id].push(c))}}),Object.keys(u).forEach(function(l){var c=t.nodes[l];oe(c.rules.canMoveOut(u[l],c,n),_x)}),!0}catch(l){return a&&a(l),!1}},toSerializedNode:function(){return f2(r.data,t.options.resolver)},toNodeTree:function(o){var a=[e].concat(un(this.descendants(!0,o))).reduce(function(i,s){return i[s]=n(s).get(),i},{});return{rootNodeId:e,nodes:a}},decendants:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return It("query.node(id).decendants",{suggest:"query.node(id).descendants"}),this.descendants(o)},isTopLevelCanvas:function(){return!this.isRoot()&&!r.data.parent}}}function fd(t,e,r,n){for(var o={parent:t,index:0,where:"before"},a=0,i=0,s=0,u=0,l=0,c=0,h=0,f=e.length;h<f;h++){var d=e[h];if(c=d.top+d.outerHeight,u=d.left+d.outerWidth/2,l=d.top+d.outerHeight/2,!(i&&d.left>i||s&&l>=s||a&&d.left+d.outerWidth<a))if(o.index=h,d.inFlow){if(n<l){o.where="before";break}o.where="after"}else n<c&&(s=c),r<u?(i=u,o.where="before"):(a=u,o.where="after")}return o}var $n=function(t){return typeof t=="string"?t:t.name};function cl(t,e){var r=t.data.type,n={id:t.id||Qc(),_hydrationTimestamp:Date.now(),data:se({type:r,name:$n(r),displayName:$n(r),props:{},custom:{},parent:null,isCanvas:!1,hidden:!1,nodes:[],linkedNodes:{}},t.data),info:{},related:{},events:{selected:!1,dragged:!1,hovered:!1},rules:{canDrag:function(){return!0},canDrop:function(){return!0},canMoveIn:function(){return!0},canMoveOut:function(){return!0}},dom:null};if(n.data.type===Pt||n.data.type===oi){var o=se(se({},ni),n.data.props);n.data.props=Object.keys(n.data.props).reduce(function(s,u){return Object.keys(ni).includes(u)?n.data[u2[u]||u]=o[u]:s[u]=n.data.props[u],s},{}),n.data.name=$n(r=n.data.type),n.data.displayName=$n(r),n.data.type===oi&&(n.data.isCanvas=!0,cd())}e&&e(n);var a=r.craft;if(a){if(n.data.displayName=a.displayName||a.name||n.data.displayName,n.data.props=se(se({},a.props||a.defaultProps||{}),n.data.props),n.data.custom=se(se({},a.custom||{}),n.data.custom),a.isCanvas!=null&&(n.data.isCanvas=a.isCanvas),a.rules&&Object.keys(a.rules).forEach(function(s){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(s)&&(n.rules[s]=a.rules[s])}),a.related){var i={id:n.id,related:!0};Object.keys(a.related).forEach(function(s){n.related[s]=function(u){return w.createElement(od,i,w.createElement(a.related[s],u))}})}a.info&&(n.info=a.info)}return n}const si=(t,e,r)=>{let{type:n,props:o}=t;const a=((s,u)=>typeof s=="object"&&s.resolvedName?s.resolvedName==="Canvas"?oi:u[s.resolvedName]:typeof s=="string"?s:null)(n,e);if(!a)return;o=Object.keys(o).reduce((s,u)=>{const l=o[u];return s[u]=l==null?null:typeof l=="object"&&l.resolvedName?si(l,e):u==="children"&&Array.isArray(l)?l.map(c=>typeof c=="string"?c:si(c,e)):l,s},{});const i={...w.createElement(a,{...o})};return{...i,name:go(e,i.type)}},p2=(t,e)=>{const{type:r,props:n,...o}=t;oe(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,Bx.replace("%displayName%",t.displayName).replace("%availableComponents%",Object.keys(e).join(", ")));const{type:a,name:i,props:s}=si(t,e),{parent:u,custom:l,displayName:c,isCanvas:h,nodes:f,hidden:d}=o;return{type:a,name:i,displayName:c||i,props:s,custom:l||{},isCanvas:!!h,hidden:!!d,parent:u,linkedNodes:o.linkedNodes||o._childCanvas||{},nodes:f||[]}},h2=(t,e)=>{if(e.length<1)return{[t.id]:t};const r=e.map(({rootNodeId:o})=>o),n={...t,data:{...t.data,nodes:r}};return e.reduce((o,a)=>{const i=a.nodes[a.rootNodeId];return{...o,...a.nodes,[i.id]:{...i,data:{...i.data,parent:t.id}}}},{[t.id]:n})},m2=(t,e)=>({rootNodeId:t.id,nodes:h2(t,e)});function pd(t){const e=t&&t.options,r=()=>pd(t);return{getDropPlaceholder:(n,o,a,i=s=>t.nodes[s.id].dom)=>{const s=t.nodes[o],u=r().node(s.id).isCanvas()?s:t.nodes[s.data.parent];if(!u)return;const l=u.data.nodes||[],c=fd(u,l?l.reduce((d,g)=>{const b=i(t.nodes[g]);if(b){const m={id:g,...sn(b)};d.push(m)}return d},[]):[],a.x,a.y),h=l.length&&t.nodes[l[c.index]],f={placement:{...c,currentNode:h},error:null};return mt(t.nodes,n).forEach(({node:d,exists:g})=>{g&&r().node(d.id).isDraggable(b=>f.error=b)}),r().node(u.id).isDroppable(n,d=>f.error=d),f},getOptions:()=>e,getNodes:()=>t.nodes,node:n=>ii(t,n),getSerializedNodes(){const n=Object.keys(t.nodes).map(o=>[o,this.node(o).toSerializedNode()]);return dd(n)},getEvent:n=>function(o,a){var i=o.events[a];return{contains:function(s){return i.has(s)},isEmpty:function(){return this.all().length===0},first:function(){return this.all()[0]},last:function(){var s=this.all();return s[s.length-1]},all:function(){return Array.from(i)},size:function(){return this.all().length},at:function(s){return this.all()[s]},raw:function(){return i}}}(t,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(o){let a=function(s,u){let l=s;return typeof l=="string"&&(l=w.createElement(w.Fragment,{},l)),cl({data:{type:l.type,props:{...l.props}}},c=>{u&&u(c,l)})}(n,(s,u)=>{const l=go(t.options.resolver,s.data.type);s.data.displayName=s.data.displayName||l,s.data.name=l,o&&o(s,u)}),i=[];return n.props&&n.props.children&&(i=w.Children.toArray(n.props.children).reduce((s,u)=>(w.isValidElement(u)&&s.push(r().parseReactElement(u).toNodeTree(o)),s),[])),m2(a,i)}}),parseSerializedNode:n=>({toNode(o){const a=p2(n,t.options.resolver);oe(a.type,po);const i=typeof o=="string"&&o;return i&&It("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...i?{id:i}:{},data:a}).toNode(!i&&o)}}),parseFreshNode:n=>({toNode:o=>cl(n,a=>{a.data.parent===Wc&&(a.data.parent=bt);const i=go(t.options.resolver,a.data.type);oe(i!==null,po),a.data.displayName=a.data.displayName||i,a.data.name=i,o&&o(a)})}),createNode(n,o){It(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const a=this.parseReactElement(n).toNodeTree(),i=a.nodes[a.rootNodeId];return o&&(o.id&&(i.id=o.id),o.data&&(i.data={...i.data,...o.data})),i},getState:()=>t}}var g2=function(t){is(r,ed);var e=us(r);function r(){return Yo(this,r),e.apply(this,arguments)}return Xo(r,[{key:"handlers",value:function(){return{connect:function(n,o){},select:function(n,o){},hover:function(n,o){},drag:function(n,o){},drop:function(n,o){},create:function(n,o,a){}}}}]),r}();(function(t){is(r,Xx);var e=us(r);function r(){return Yo(this,r),e.apply(this,arguments)}return Xo(r)})();var dl=function(t){t.preventDefault()},ui=function(){function t(e,r){Yo(this,t),be(this,"store",void 0),be(this,"dragTarget",void 0),be(this,"currentDropTargetId",void 0),be(this,"currentDropTargetCanvasAncestorId",void 0),be(this,"currentIndicator",null),be(this,"currentTargetId",void 0),be(this,"currentTargetChildDimensions",void 0),be(this,"dragError",void 0),be(this,"draggedNodes",void 0),be(this,"onScrollListener",void 0),this.store=e,this.dragTarget=r,this.currentDropTargetId=null,this.currentDropTargetCanvasAncestorId=null,this.currentTargetId=null,this.currentTargetChildDimensions=null,this.currentIndicator=null,this.dragError=null,this.draggedNodes=this.getDraggedNodes(),this.validateDraggedNodes(),this.onScrollListener=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollListener,!0),window.addEventListener("dragover",dl,!1)}return Xo(t,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",dl,!1)}},{key:"onScroll",value:function(e){var r=e.target,n=this.store.query.node(bt).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return mt(this.store.query.getNodes(),this.dragTarget.type==="new"?this.dragTarget.tree.nodes[this.dragTarget.tree.rootNodeId]:this.dragTarget.nodes)}},{key:"validateDraggedNodes",value:function(){var e=this;this.dragTarget.type!=="new"&&this.draggedNodes.forEach(function(r){r.exists&&e.store.query.node(r.node.id).isDraggable(function(n){e.dragError=n})})}},{key:"isNearBorders",value:function(e,r,n){return e.top+t.BORDER_OFFSET>n||e.bottom-t.BORDER_OFFSET<n||e.left+t.BORDER_OFFSET>r||e.right-t.BORDER_OFFSET<r}},{key:"isDiff",value:function(e){return!this.currentIndicator||this.currentIndicator.placement.parent.id!==e.parent.id||this.currentIndicator.placement.index!==e.index||this.currentIndicator.placement.where!==e.where}},{key:"getChildDimensions",value:function(e){var r=this,n=this.currentTargetChildDimensions;return this.currentTargetId===e.id&&n?n:e.data.nodes.reduce(function(o,a){var i=r.store.query.node(a).get().dom;return i&&o.push(se({id:a},sn(i))),o},[])}},{key:"getCanvasAncestor",value:function(e){var r=this;if(e===this.currentDropTargetId&&this.currentDropTargetCanvasAncestorId){var n=this.store.query.node(this.currentDropTargetCanvasAncestorId).get();if(n)return n}return function o(a){var i=r.store.query.node(a).get();return i&&i.data.isCanvas?i:i.data.parent?o(i.data.parent):null}(e)}},{key:"computeIndicator",value:function(e,r,n){var o=this.getCanvasAncestor(e);if(o&&(this.currentDropTargetId=e,this.currentDropTargetCanvasAncestorId=o.id,o.data.parent&&this.isNearBorders(sn(o.dom),r,n)&&!this.store.query.node(o.id).isLinkedNode()&&(o=this.store.query.node(o.data.parent).get()),o)){this.currentTargetChildDimensions=this.getChildDimensions(o),this.currentTargetId=o.id;var a=fd(o,this.currentTargetChildDimensions,r,n);if(this.isDiff(a)){var i=this.dragError;i||this.store.query.node(o.id).isDroppable(this.draggedNodes.map(function(l){return l.node}),function(l){i=l});var s=o.data.nodes[a.index],u=s&&this.store.query.node(s).get();return this.currentIndicator={placement:se(se({},a),{},{currentNode:u}),error:i},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),t}();be(ui,"BORDER_OFFSET",10);var fl=function(t,e){if(e.length===1||arguments.length>2&&arguments[2]!==void 0&&arguments[2]){var r=e[0].getBoundingClientRect(),n=r.width,o=r.height,a=e[0].cloneNode(!0);return a.style.position="absolute",a.style.left="-100%",a.style.top="-100%",a.style.width="".concat(n,"px"),a.style.height="".concat(o,"px"),a.style.pointerEvents="none",a.classList.add("drag-shadow"),document.body.appendChild(a),t.dataTransfer.setDragImage(a,0,0),a}var i=document.createElement("div");return i.style.position="absolute",i.style.left="-100%",i.style.top="-100%",i.style.width="100%",i.style.height="100%",i.style.pointerEvents="none",i.classList.add("drag-shadow-container"),e.forEach(function(s){var u=s.getBoundingClientRect(),l=u.width,c=u.height,h=u.top,f=u.left,d=s.cloneNode(!0);d.style.position="absolute",d.style.left="".concat(f,"px"),d.style.top="".concat(h,"px"),d.style.width="".concat(l,"px"),d.style.height="".concat(c,"px"),d.classList.add("drag-shadow"),i.appendChild(d)}),document.body.appendChild(i),t.dataTransfer.setDragImage(i,t.clientX,t.clientY),i},hd=function(t){is(r,g2);var e=us(r);function r(){var n;Yo(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return be(Zr(n=e.call.apply(e,[this].concat(a))),"draggedElementShadow",void 0),be(Zr(n),"dragTarget",void 0),be(Zr(n),"positioner",null),be(Zr(n),"currentSelectedElementIds",[]),n}return Xo(r,[{key:"onDisable",value:function(){this.options.store.actions.clearEvents()}},{key:"handlers",value:function(){var n=this,o=this.options.store;return{connect:function(a,i){return o.actions.setDOM(i,a),n.reflect(function(s){s.select(a,i),s.hover(a,i),s.drop(a,i)})},select:function(a,i){var s=n.addCraftEventListener(a,"mousedown",function(l){l.craft.stopPropagation();var c=[];if(i){var h=o.query,f=h.getEvent("selected").all();(n.options.isMultiSelectEnabled(l)||f.includes(i))&&(c=f.filter(function(d){var g=h.node(d).descendants(!0),b=h.node(d).ancestors(!0);return!g.includes(i)&&!b.includes(i)})),c.includes(i)||c.push(i)}o.actions.setNodeEvent("selected",c)}),u=n.addCraftEventListener(a,"click",function(l){l.craft.stopPropagation();var c=o.query.getEvent("selected").all(),h=n.options.isMultiSelectEnabled(l),f=n.currentSelectedElementIds.includes(i),d=un(c);h&&f?(d.splice(d.indexOf(i),1),o.actions.setNodeEvent("selected",d)):!h&&c.length>1&&o.actions.setNodeEvent("selected",d=[i]),n.currentSelectedElementIds=d});return function(){s(),u()}},hover:function(a,i){var s=n.addCraftEventListener(a,"mouseover",function(l){l.craft.stopPropagation(),o.actions.setNodeEvent("hovered",i)}),u=null;return n.options.removeHoverOnMouseleave&&(u=n.addCraftEventListener(a,"mouseleave",function(l){l.craft.stopPropagation(),o.actions.setNodeEvent("hovered",null)})),function(){s(),u&&u()}},drop:function(a,i){var s=n.addCraftEventListener(a,"dragover",function(l){if(l.craft.stopPropagation(),l.preventDefault(),n.positioner){var c=n.positioner.computeIndicator(i,l.clientX,l.clientY);c&&o.actions.setIndicator(c)}}),u=n.addCraftEventListener(a,"dragenter",function(l){l.craft.stopPropagation(),l.preventDefault()});return function(){u(),s()}},drag:function(a,i){if(!o.query.node(i).isDraggable())return function(){};a.setAttribute("draggable","true");var s=n.addCraftEventListener(a,"dragstart",function(l){l.craft.stopPropagation();var c=o.query,h=o.actions,f=c.getEvent("selected").all(),d=n.options.isMultiSelectEnabled(l);n.currentSelectedElementIds.includes(i)||(f=d?[].concat(un(f),[i]):[i],o.actions.setNodeEvent("selected",f)),h.setNodeEvent("dragged",f);var g=f.map(function(b){return c.node(b).get().dom});n.draggedElementShadow=fl(l,g,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:f},n.positioner=new ui(n.options.store,n.dragTarget)}),u=n.addCraftEventListener(a,"dragend",function(l){l.craft.stopPropagation(),n.dropElement(function(c,h){c.type!=="new"&&o.actions.move(c.nodes,h.placement.parent.id,h.placement.index+(h.placement.where==="after"?1:0))})});return function(){a.setAttribute("draggable","false"),s(),u()}},create:function(a,i,s){a.setAttribute("draggable","true");var u=n.addCraftEventListener(a,"dragstart",function(c){var h;if(c.craft.stopPropagation(),typeof i=="function"){var f=i();h=w.isValidElement(f)?o.query.parseReactElement(f).toNodeTree():f}else h=o.query.parseReactElement(i).toNodeTree();n.draggedElementShadow=fl(c,[c.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:h},n.positioner=new ui(n.options.store,n.dragTarget)}),l=n.addCraftEventListener(a,"dragend",function(c){c.craft.stopPropagation(),n.dropElement(function(h,f){h.type!=="existing"&&(o.actions.addNodeTree(h.tree,f.placement.parent.id,f.placement.index+(f.placement.where==="after"?1:0)),s&&tg(s.onCreate)&&s.onCreate(h.tree))})});return function(){a.removeAttribute("draggable"),u(),l()}}}}},{key:"dropElement",value:function(n){var o=this.options.store;if(this.positioner){var a=this.draggedElementShadow,i=this.positioner.getIndicator();this.dragTarget&&i&&!i.error&&n(this.dragTarget,i),a&&(a.parentNode.removeChild(a),this.draggedElementShadow=null),this.dragTarget=null,o.actions.setIndicator(null),o.actions.setNodeEvent("dragged",null),this.positioner.cleanup(),this.positioner=null}}}]),r}();function b2(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,o=0,a=0,i=0,s=0,u=t.where;return r?r.inFlow?(i=r.outerWidth,s=n,o=u==="before"?r.top:r.bottom,a=r.left):(i=n,s=r.outerHeight,o=r.top,a=u==="before"?r.left:r.left+r.outerWidth):e&&(o=e.top+e.padding.top,a=e.left+e.padding.left,i=e.outerWidth-e.padding.right-e.padding.left-e.margin.left-e.margin.right,s=n),{top:"".concat(o,"px"),left:"".concat(a,"px"),width:"".concat(i,"px"),height:"".concat(s,"px")}}be(hd,"forceSingleDragShadow",e2()&&Qx());const v2=()=>{const{indicator:t,indicatorOptions:e,enabled:r}=er(o=>({indicator:o.indicator,indicatorOptions:o.options.indicator,enabled:o.options.enabled})),n=ld();return w.useEffect(()=>{n&&(r?n.enable():n.disable())},[r,n]),t?w.createElement(Zx,{className:e.className,style:{...b2(t.placement,sn(t.placement.parent.dom),t.placement.currentNode&&sn(t.placement.currentNode.dom),e.thickness),backgroundColor:t.error?e.error:e.success,transition:e.transition||"0.2s ease-in",...e.style??{}},parentDom:t.placement.parent.dom}):null},y2=({children:t})=>{const e=w.useContext(ls),r=w.useMemo(()=>e.query.getOptions().handlers(e),[e]);return r?w.createElement(ud.Provider,{value:r},w.createElement(v2,null),t):null},pl={nodes:{},events:{dragged:new Set,selected:new Set,hovered:new Set},indicator:null,options:{onNodesChange:()=>null,onRender:({render:t})=>t,onBeforeMoveEnd:()=>null,resolver:{},enabled:!0,indicator:{error:"red",success:"rgb(98, 196, 98)"},handlers:t=>new hd({store:t,removeHoverOnMouseleave:!1,isMultiSelectEnabled:e=>!!e.metaKey}),normalizeNodes:()=>{}}},x2={methods:function(t,e){return se(se({},function(r,n){var o=function(s,u,l){if(function f(d,g){var b=s.nodes[d];typeof b.data.type!="string"&&oe(r.options.resolver[b.data.name],po.replace("%node_type%","".concat(b.data.type.name))),r.nodes[d]=se(se({},b),{},{data:se(se({},b.data),{},{parent:g})}),b.data.nodes.length>0&&(delete r.nodes[d].data.props.children,b.data.nodes.forEach(function(m){return f(m,b.id)})),Object.values(b.data.linkedNodes).forEach(function(m){return f(m,b.id)})}(s.rootNodeId,u),u||s.rootNodeId!==bt){var c=a(u);if(l.type!=="child")c.data.linkedNodes[l.id]=s.rootNodeId;else{var h=l.index;h!=null?c.data.nodes.splice(h,0,s.rootNodeId):c.data.nodes.push(s.rootNodeId)}}},a=function(s){oe(s,jx);var u=r.nodes[s];return oe(u,Gc),u},i=function s(u){var l=r.nodes[u],c=r.nodes[l.data.parent];if(l.data.nodes&&un(l.data.nodes).forEach(function(d){return s(d)}),l.data.linkedNodes&&Object.values(l.data.linkedNodes).map(function(d){return s(d)}),c.data.nodes.includes(u)){var h=c.data.nodes;h.splice(h.indexOf(u),1)}else{var f=Object.keys(c.data.linkedNodes).find(function(d){return c.data.linkedNodes[d]===d});f&&delete c.data.linkedNodes[f]}(function(d,g){Object.keys(d.events).forEach(function(b){var m=d.events[b];m&&m.has&&m.has(g)&&(d.events[b]=new Set(Array.from(m).filter(function(v){return g!==v})))})})(r,u),delete r.nodes[u]};return{addLinkedNodeFromTree:function(s,u,l){var c=a(u).data.linkedNodes[l];c&&i(c),o(s,u,{type:"linked",id:l})},add:function(s,u,l){var c=[s];Array.isArray(s)&&(It("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),c=s),c.forEach(function(h){o({nodes:be({},h.id,h),rootNodeId:h.id},u,{type:"child",index:l})})},addNodeTree:function(s,u,l){o(s,u,{type:"child",index:l})},delete:function(s){mt(r.nodes,s,{existOnly:!0,idOnly:!0}).forEach(function(u){var l=u.node;oe(!n.node(l.id).isTopLevelNode(),Lx),i(l.id)})},deserialize:function(s){var u=typeof s=="string"?JSON.parse(s):s,l=Object.keys(u).map(function(c){var h=c;return c===Wc&&(h=bt),[h,n.parseSerializedNode(u[c]).toNode(function(f){return f.id=h})]});this.replaceNodes(dd(l))},move:function(s,u,l){var c=mt(r.nodes,s,{existOnly:!0}),h=r.nodes[u],f=new Set;c.forEach(function(d,g){var b=d.node,m=b.id,v=b.data.parent;n.node(u).isDroppable([m],function(C){throw new Error(C)}),r.options.onBeforeMoveEnd(b,h,r.nodes[v]);var x=r.nodes[v].data.nodes;f.add(x);var S=x.indexOf(m);x[S]="$$",h.data.nodes.splice(l+g,0,m),r.nodes[m].data.parent=u}),f.forEach(function(d){var g=d.length;un(d).reverse().forEach(function(b,m){b==="$$"&&d.splice(g-1-m,1)})})},replaceNodes:function(s){this.clearEvents(),r.nodes=s},clearEvents:function(){this.setNodeEvent("selected",null),this.setNodeEvent("hovered",null),this.setNodeEvent("dragged",null),this.setIndicator(null)},reset:function(){this.clearEvents(),this.replaceNodes({})},setOptions:function(s){s(r.options)},setNodeEvent:function(s,u){if(r.events[s].forEach(function(h){r.nodes[h]&&(r.nodes[h].events[s]=!1)}),r.events[s]=new Set,u){var l=mt(r.nodes,u,{idOnly:!0,existOnly:!0}),c=new Set(l.map(function(h){return h.node.id}));c.forEach(function(h){r.nodes[h].events[s]=!0}),r.events[s]=c}},setCustom:function(s,u){mt(r.nodes,s,{idOnly:!0,existOnly:!0}).forEach(function(l){return u(r.nodes[l.node.id].data.custom)})},setDOM:function(s,u){r.nodes[s]&&(r.nodes[s].dom=u)},setIndicator:function(s){s&&(!s.placement.parent.dom||s.placement.currentNode&&!s.placement.currentNode.dom)||(r.indicator=s)},setHidden:function(s,u){r.nodes[s].data.hidden=u},setProp:function(s,u){mt(r.nodes,s,{idOnly:!0,existOnly:!0}).forEach(function(l){return u(r.nodes[l.node.id].data.props)})},selectNode:function(s){if(s){var u=mt(r.nodes,s,{idOnly:!0,existOnly:!0});this.setNodeEvent("selected",u.map(function(l){return l.node.id}))}else this.setNodeEvent("selected",null);this.setNodeEvent("hovered",null)}}}(t,e)),{},{setState:function(r){var n=ss(this,c2);r(t,n)}})},ignoreHistoryForActions:["setDOM","setNodeEvent","selectNode","clearEvents","setOptions","setIndicator"],normalizeHistory:t=>{Object.keys(t.events).forEach(e=>{Array.from(t.events[e]||[]).forEach(r=>{t.nodes[r]||t.events[e].delete(r)})}),Object.keys(t.nodes).forEach(e=>{const r=t.nodes[e];Object.keys(r.events).forEach(n=>{r.events[n]&&t.events[n]&&!t.events[n].has(r.id)&&(r.events[n]=!1)})})}},w2=(t,e)=>Ux(x2,{...pl,options:{...pl.options,...t}},pd,e),li=({children:t,...e})=>{e.resolver!==void 0&&oe(typeof e.resolver=="object"&&!Array.isArray(e.resolver)&&e.resolver!==null,$x);const r=y.useRef(e),n=w2(r.current,(o,a,i,s,u)=>{if(!i)return;const{patches:l,...c}=i;for(let h=0;h<l.length;h++){const{path:f}=l[h],d=f.length>2&&f[0]==="nodes"&&f[2]==="data";if([fe.IGNORE,fe.THROTTLE].includes(c.type)&&c.params&&(c.type=c.params[0]),["setState","deserialize"].includes(c.type)||d){u(g=>{o.options.normalizeNodes&&o.options.normalizeNodes(g,a,c,s)});break}}});return y.useEffect(()=>{n&&e.enabled!==void 0&&n.query.getOptions().enabled!==e.enabled&&n.actions.setOptions(o=>{o.enabled=e.enabled})},[n,e.enabled]),y.useEffect(()=>{n.subscribe(o=>({json:n.query.serialize()}),()=>{n.query.getOptions().onNodesChange(n.query)})},[n]),n?y.createElement(ls.Provider,{value:n},y.createElement(y2,null,t)):null},md=w.createContext("desktop"),fs=({value:t,children:e})=>p.jsx(md.Provider,{value:t,children:e}),Ce=()=>w.useContext(md),Ie=["mobile","tablet","small","desktop"],gt=(t,e,r)=>{if(typeof t!="object"||t===null)return t??r;if("top"in t||"right"in t)return t;const n=Ie.indexOf(e);for(let o=n;o<Ie.length;o++){const a=Ie[o];if(t[a]!==void 0&&t[a]!==null)return t[a]}for(let o=n-1;o>=0;o--){const a=Ie[o];if(t[a]!==void 0&&t[a]!==null)return t[a]}return r};function ue(t,e,{checkForDefaultPrevented:r=!0}={}){return function(o){if(t==null||t(o),r===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}function tr(t,e=[]){let r=[];function n(a,i){const s=y.createContext(i),u=r.length;r=[...r,i];const l=h=>{var v;const{scope:f,children:d,...g}=h,b=((v=f==null?void 0:f[t])==null?void 0:v[u])||s,m=y.useMemo(()=>g,Object.values(g));return p.jsx(b.Provider,{value:m,children:d})};l.displayName=a+"Provider";function c(h,f){var b;const d=((b=f==null?void 0:f[t])==null?void 0:b[u])||s,g=y.useContext(d);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[l,c]}const o=()=>{const a=r.map(i=>y.createContext(i));return function(s){const u=(s==null?void 0:s[t])||a;return y.useMemo(()=>({[`__scope${t}`]:{...s,[t]:u}}),[s,u])}};return o.scopeName=t,[n,S2(o,...e)]}function S2(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((s,{useScope:u,scopeName:l})=>{const h=u(a)[`__scope${l}`];return{...s,...h}},{});return y.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return r.scopeName=e.scopeName,r}function C2(t){const e=E2(t),r=y.forwardRef((n,o)=>{const{children:a,...i}=n,s=y.Children.toArray(a),u=s.find(T2);if(u){const l=u.props.children,c=s.map(h=>h===u?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...i,ref:o,children:y.isValidElement(l)?y.cloneElement(l,void 0,c):null})}return p.jsx(e,{...i,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}function E2(t){const e=y.forwardRef((r,n)=>{const{children:o,...a}=r;if(y.isValidElement(o)){const i=A2(o),s=j2(a,o.props);return o.type!==y.Fragment&&(s.ref=n?Lo(n,i):i),y.cloneElement(o,s)}return y.Children.count(o)>1?y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var N2=Symbol("radix.slottable");function T2(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===N2}function j2(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const u=a(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function A2(t){var n,o;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var O2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=O2.reduce((t,e)=>{const r=C2(`Primitive.${e}`),n=y.forwardRef((o,a)=>{const{asChild:i,...s}=o,u=i?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(u,{...s,ref:a})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function k2(t,e){t&&fc.flushSync(()=>t.dispatchEvent(e))}function De(t){const e=y.useRef(t);return y.useEffect(()=>{e.current=t}),y.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function P2(t,e=globalThis==null?void 0:globalThis.document){const r=De(t);y.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var _2="DismissableLayer",ci="dismissableLayer.update",R2="dismissableLayer.pointerDownOutside",I2="dismissableLayer.focusOutside",hl,gd=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bd=y.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...u}=t,l=y.useContext(gd),[c,h]=y.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=y.useState({}),g=we(e,R=>h(R)),b=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=b.indexOf(m),x=c?b.indexOf(c):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=v,j=L2(R=>{const M=R.target,D=[...l.branches].some($=>$.contains(M));!C||D||(o==null||o(R),i==null||i(R),R.defaultPrevented||s==null||s())},f),k=$2(R=>{const M=R.target;[...l.branches].some($=>$.contains(M))||(a==null||a(R),i==null||i(R),R.defaultPrevented||s==null||s())},f);return P2(R=>{x===l.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},f),y.useEffect(()=>{if(c)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(hl=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),ml(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=hl)}},[c,f,r,l]),y.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),ml())},[c,l]),y.useEffect(()=>{const R=()=>d({});return document.addEventListener(ci,R),()=>document.removeEventListener(ci,R)},[]),p.jsx(me.div,{...u,ref:g,style:{pointerEvents:S?C?"auto":"none":void 0,...t.style},onFocusCapture:ue(t.onFocusCapture,k.onFocusCapture),onBlurCapture:ue(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ue(t.onPointerDownCapture,j.onPointerDownCapture)})});bd.displayName=_2;var D2="DismissableLayerBranch",M2=y.forwardRef((t,e)=>{const r=y.useContext(gd),n=y.useRef(null),o=we(e,n);return y.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),p.jsx(me.div,{...t,ref:o})});M2.displayName=D2;function L2(t,e=globalThis==null?void 0:globalThis.document){const r=De(t),n=y.useRef(!1),o=y.useRef(()=>{});return y.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let u=function(){vd(R2,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=u,e.addEventListener("click",o.current,{once:!0})):u()}else e.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),e.removeEventListener("pointerdown",a),e.removeEventListener("click",o.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function $2(t,e=globalThis==null?void 0:globalThis.document){const r=De(t),n=y.useRef(!1);return y.useEffect(()=>{const o=a=>{a.target&&!n.current&&vd(I2,r,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ml(){const t=new CustomEvent(ci);document.dispatchEvent(t)}function vd(t,e,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&o.addEventListener(t,e,{once:!0}),n?k2(o,a):o.dispatchEvent(a)}var Dt=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},B2=y[" useId ".trim().toString()]||(()=>{}),z2=0;function yd(t){const[e,r]=y.useState(B2());return Dt(()=>{r(n=>n??String(z2++))},[t]),e?`radix-${e}`:""}const H2=["top","right","bottom","left"],Mt=Math.min,Oe=Math.max,bo=Math.round,Bn=Math.floor,Ze=t=>({x:t,y:t}),F2={left:"right",right:"left",bottom:"top",top:"bottom"},q2={start:"end",end:"start"};function di(t,e,r){return Oe(t,Mt(e,r))}function yt(t,e){return typeof t=="function"?t(e):t}function xt(t){return t.split("-")[0]}function $r(t){return t.split("-")[1]}function ps(t){return t==="x"?"y":"x"}function hs(t){return t==="y"?"height":"width"}const U2=new Set(["top","bottom"]);function Ke(t){return U2.has(xt(t))?"y":"x"}function ms(t){return ps(Ke(t))}function V2(t,e,r){r===void 0&&(r=!1);const n=$r(t),o=ms(t),a=hs(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=vo(i)),[i,vo(i)]}function W2(t){const e=vo(t);return[fi(t),e,fi(e)]}function fi(t){return t.replace(/start|end/g,e=>q2[e])}const gl=["left","right"],bl=["right","left"],G2=["top","bottom"],Y2=["bottom","top"];function X2(t,e,r){switch(t){case"top":case"bottom":return r?e?bl:gl:e?gl:bl;case"left":case"right":return e?G2:Y2;default:return[]}}function K2(t,e,r,n){const o=$r(t);let a=X2(xt(t),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),e&&(a=a.concat(a.map(fi)))),a}function vo(t){return t.replace(/left|right|bottom|top/g,e=>F2[e])}function J2(t){return{top:0,right:0,bottom:0,left:0,...t}}function xd(t){return typeof t!="number"?J2(t):{top:t,right:t,bottom:t,left:t}}function yo(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function vl(t,e,r){let{reference:n,floating:o}=t;const a=Ke(e),i=ms(e),s=hs(i),u=xt(e),l=a==="y",c=n.x+n.width/2-o.width/2,h=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let d;switch(u){case"top":d={x:c,y:n.y-o.height};break;case"bottom":d={x:c,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:h};break;case"left":d={x:n.x-o.width,y:h};break;default:d={x:n.x,y:n.y}}switch($r(e)){case"start":d[i]-=f*(r&&l?-1:1);break;case"end":d[i]+=f*(r&&l?-1:1);break}return d}const Z2=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(e));let l=await i.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:h}=vl(l,n,u),f=n,d={},g=0;for(let b=0;b<s.length;b++){const{name:m,fn:v}=s[b],{x,y:S,data:C,reset:j}=await v({x:c,y:h,initialPlacement:n,placement:f,strategy:o,middlewareData:d,rects:l,platform:i,elements:{reference:t,floating:e}});c=x??c,h=S??h,d={...d,[m]:{...d[m],...C}},j&&g<=50&&(g++,typeof j=="object"&&(j.placement&&(f=j.placement),j.rects&&(l=j.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:o}):j.rects),{x:c,y:h}=vl(l,f,u)),b=-1)}return{x:c,y:h,placement:f,strategy:o,middlewareData:d}};async function ln(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:u}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=yt(e,t),g=xd(d),m=s[f?h==="floating"?"reference":"floating":h],v=yo(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(m)))==null||r?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),x=h==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},j=yo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:S,strategy:u}):x);return{top:(v.top-j.top+g.top)/C.y,bottom:(j.bottom-v.bottom+g.bottom)/C.y,left:(v.left-j.left+g.left)/C.x,right:(j.right-v.right+g.right)/C.x}}const Q2=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:u}=e,{element:l,padding:c=0}=yt(t,e)||{};if(l==null)return{};const h=xd(c),f={x:r,y:n},d=ms(o),g=hs(d),b=await i.getDimensions(l),m=d==="y",v=m?"top":"left",x=m?"bottom":"right",S=m?"clientHeight":"clientWidth",C=a.reference[g]+a.reference[d]-f[d]-a.floating[g],j=f[d]-a.reference[d],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let R=k?k[S]:0;(!R||!await(i.isElement==null?void 0:i.isElement(k)))&&(R=s.floating[S]||a.floating[g]);const M=C/2-j/2,D=R/2-b[g]/2-1,$=Mt(h[v],D),E=Mt(h[x],D),T=$,P=R-b[g]-E,I=R/2-b[g]/2+M,N=di(T,I,P),O=!u.arrow&&$r(o)!=null&&I!==N&&a.reference[g]/2-(I<T?$:E)-b[g]/2<0,A=O?I<T?I-T:I-P:0;return{[d]:f[d]+A,data:{[d]:N,centerOffset:I-N-A,...O&&{alignmentOffset:A}},reset:O}}}),ew=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:u,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...m}=yt(t,e);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const v=xt(o),x=Ke(s),S=xt(s)===s,C=await(u.isRTL==null?void 0:u.isRTL(l.floating)),j=f||(S||!b?[vo(s)]:W2(s)),k=g!=="none";!f&&k&&j.push(...K2(s,b,g,C));const R=[s,...j],M=await ln(e,m),D=[];let $=((n=a.flip)==null?void 0:n.overflows)||[];if(c&&D.push(M[v]),h){const I=V2(o,i,C);D.push(M[I[0]],M[I[1]])}if($=[...$,{placement:o,overflows:D}],!D.every(I=>I<=0)){var E,T;const I=(((E=a.flip)==null?void 0:E.index)||0)+1,N=R[I];if(N&&(!(h==="alignment"?x!==Ke(N):!1)||$.every(_=>Ke(_.placement)===x?_.overflows[0]>0:!0)))return{data:{index:I,overflows:$},reset:{placement:N}};let O=(T=$.filter(A=>A.overflows[0]<=0).sort((A,_)=>A.overflows[1]-_.overflows[1])[0])==null?void 0:T.placement;if(!O)switch(d){case"bestFit":{var P;const A=(P=$.filter(_=>{if(k){const L=Ke(_.placement);return L===x||L==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(L=>L>0).reduce((L,q)=>L+q,0)]).sort((_,L)=>_[1]-L[1])[0])==null?void 0:P[0];A&&(O=A);break}case"initialPlacement":O=s;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function yl(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function xl(t){return H2.some(e=>t[e]>=0)}const tw=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...o}=yt(t,e);switch(n){case"referenceHidden":{const a=await ln(e,{...o,elementContext:"reference"}),i=yl(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:xl(i)}}}case"escaped":{const a=await ln(e,{...o,altBoundary:!0}),i=yl(a,r.floating);return{data:{escapedOffsets:i,escaped:xl(i)}}}default:return{}}}}},wd=new Set(["left","top"]);async function rw(t,e){const{placement:r,platform:n,elements:o}=t,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=xt(r),s=$r(r),u=Ke(r)==="y",l=wd.has(i)?-1:1,c=a&&u?-1:1,h=yt(e,t);let{mainAxis:f,crossAxis:d,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof g=="number"&&(d=s==="end"?g*-1:g),u?{x:d*c,y:f*l}:{x:f*l,y:d*c}}const nw=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=e,u=await rw(e,t);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:i}}}}},ow=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:m=>{let{x:v,y:x}=m;return{x:v,y:x}}},...u}=yt(t,e),l={x:r,y:n},c=await ln(e,u),h=Ke(xt(o)),f=ps(h);let d=l[f],g=l[h];if(a){const m=f==="y"?"top":"left",v=f==="y"?"bottom":"right",x=d+c[m],S=d-c[v];d=di(x,d,S)}if(i){const m=h==="y"?"top":"left",v=h==="y"?"bottom":"right",x=g+c[m],S=g-c[v];g=di(x,g,S)}const b=s.fn({...e,[f]:d,[h]:g});return{...b,data:{x:b.x-r,y:b.y-n,enabled:{[f]:a,[h]:i}}}}}},aw=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=e,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=yt(t,e),c={x:r,y:n},h=Ke(o),f=ps(h);let d=c[f],g=c[h];const b=yt(s,e),m=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(u){const S=f==="y"?"height":"width",C=a.reference[f]-a.floating[S]+m.mainAxis,j=a.reference[f]+a.reference[S]-m.mainAxis;d<C?d=C:d>j&&(d=j)}if(l){var v,x;const S=f==="y"?"width":"height",C=wd.has(xt(o)),j=a.reference[h]-a.floating[S]+(C&&((v=i.offset)==null?void 0:v[h])||0)+(C?0:m.crossAxis),k=a.reference[h]+a.reference[S]+(C?0:((x=i.offset)==null?void 0:x[h])||0)-(C?m.crossAxis:0);g<j?g=j:g>k&&(g=k)}return{[f]:d,[h]:g}}}},iw=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:o,rects:a,platform:i,elements:s}=e,{apply:u=()=>{},...l}=yt(t,e),c=await ln(e,l),h=xt(o),f=$r(o),d=Ke(o)==="y",{width:g,height:b}=a.floating;let m,v;h==="top"||h==="bottom"?(m=h,v=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=h,m=f==="end"?"top":"bottom");const x=b-c.top-c.bottom,S=g-c.left-c.right,C=Mt(b-c[m],x),j=Mt(g-c[v],S),k=!e.middlewareData.shift;let R=C,M=j;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(M=S),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(R=x),k&&!f){const $=Oe(c.left,0),E=Oe(c.right,0),T=Oe(c.top,0),P=Oe(c.bottom,0);d?M=g-2*($!==0||E!==0?$+E:Oe(c.left,c.right)):R=b-2*(T!==0||P!==0?T+P:Oe(c.top,c.bottom))}await u({...e,availableWidth:M,availableHeight:R});const D=await i.getDimensions(s.floating);return g!==D.width||b!==D.height?{reset:{rects:!0}}:{}}}};function Jo(){return typeof window<"u"}function Br(t){return Sd(t)?(t.nodeName||"").toLowerCase():"#document"}function ke(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function it(t){var e;return(e=(Sd(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Sd(t){return Jo()?t instanceof Node||t instanceof ke(t).Node:!1}function qe(t){return Jo()?t instanceof Element||t instanceof ke(t).Element:!1}function nt(t){return Jo()?t instanceof HTMLElement||t instanceof ke(t).HTMLElement:!1}function wl(t){return!Jo()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ke(t).ShadowRoot}const sw=new Set(["inline","contents"]);function Cn(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=Ue(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!sw.has(o)}const uw=new Set(["table","td","th"]);function lw(t){return uw.has(Br(t))}const cw=[":popover-open",":modal"];function Zo(t){return cw.some(e=>{try{return t.matches(e)}catch{return!1}})}const dw=["transform","translate","scale","rotate","perspective"],fw=["transform","translate","scale","rotate","perspective","filter"],pw=["paint","layout","strict","content"];function gs(t){const e=bs(),r=qe(t)?Ue(t):t;return dw.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||fw.some(n=>(r.willChange||"").includes(n))||pw.some(n=>(r.contain||"").includes(n))}function hw(t){let e=Lt(t);for(;nt(e)&&!xr(e);){if(gs(e))return e;if(Zo(e))return null;e=Lt(e)}return null}function bs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mw=new Set(["html","body","#document"]);function xr(t){return mw.has(Br(t))}function Ue(t){return ke(t).getComputedStyle(t)}function Qo(t){return qe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Lt(t){if(Br(t)==="html")return t;const e=t.assignedSlot||t.parentNode||wl(t)&&t.host||it(t);return wl(e)?e.host:e}function Cd(t){const e=Lt(t);return xr(e)?t.ownerDocument?t.ownerDocument.body:t.body:nt(e)&&Cn(e)?e:Cd(e)}function cn(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=Cd(t),a=o===((n=t.ownerDocument)==null?void 0:n.body),i=ke(o);if(a){const s=pi(i);return e.concat(i,i.visualViewport||[],Cn(o)?o:[],s&&r?cn(s):[])}return e.concat(o,cn(o,[],r))}function pi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ed(t){const e=Ue(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=nt(t),a=o?t.offsetWidth:r,i=o?t.offsetHeight:n,s=bo(r)!==a||bo(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function vs(t){return qe(t)?t:t.contextElement}function gr(t){const e=vs(t);if(!nt(e))return Ze(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:a}=Ed(e);let i=(a?bo(r.width):r.width)/n,s=(a?bo(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const gw=Ze(0);function Nd(t){const e=ke(t);return!bs()||!e.visualViewport?gw:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function bw(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ke(t)?!1:e}function Xt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),a=vs(t);let i=Ze(1);e&&(n?qe(n)&&(i=gr(n)):i=gr(t));const s=bw(a,r,n)?Nd(a):Ze(0);let u=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,c=o.width/i.x,h=o.height/i.y;if(a){const f=ke(a),d=n&&qe(n)?ke(n):n;let g=f,b=pi(g);for(;b&&n&&d!==g;){const m=gr(b),v=b.getBoundingClientRect(),x=Ue(b),S=v.left+(b.clientLeft+parseFloat(x.paddingLeft))*m.x,C=v.top+(b.clientTop+parseFloat(x.paddingTop))*m.y;u*=m.x,l*=m.y,c*=m.x,h*=m.y,u+=S,l+=C,g=ke(b),b=pi(g)}}return yo({width:c,height:h,x:u,y:l})}function ea(t,e){const r=Qo(t).scrollLeft;return e?e.left+r:Xt(it(t)).left+r}function Td(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-ea(t,r),o=r.top+e.scrollTop;return{x:n,y:o}}function vw(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const a=o==="fixed",i=it(n),s=e?Zo(e.floating):!1;if(n===i||s&&a)return r;let u={scrollLeft:0,scrollTop:0},l=Ze(1);const c=Ze(0),h=nt(n);if((h||!h&&!a)&&((Br(n)!=="body"||Cn(i))&&(u=Qo(n)),nt(n))){const d=Xt(n);l=gr(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}const f=i&&!h&&!a?Td(i,u):Ze(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-u.scrollLeft*l.x+c.x+f.x,y:r.y*l.y-u.scrollTop*l.y+c.y+f.y}}function yw(t){return Array.from(t.getClientRects())}function xw(t){const e=it(t),r=Qo(t),n=t.ownerDocument.body,o=Oe(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Oe(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+ea(t);const s=-r.scrollTop;return Ue(n).direction==="rtl"&&(i+=Oe(e.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}const Sl=25;function ww(t,e){const r=ke(t),n=it(t),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;const c=bs();(!c||c&&e==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const l=ea(n);if(l<=0){const c=n.ownerDocument,h=c.body,f=getComputedStyle(h),d=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(n.clientWidth-h.clientWidth-d);g<=Sl&&(a-=g)}else l<=Sl&&(a+=l);return{width:a,height:i,x:s,y:u}}const Sw=new Set(["absolute","fixed"]);function Cw(t,e){const r=Xt(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,a=nt(t)?gr(t):Ze(1),i=t.clientWidth*a.x,s=t.clientHeight*a.y,u=o*a.x,l=n*a.y;return{width:i,height:s,x:u,y:l}}function Cl(t,e,r){let n;if(e==="viewport")n=ww(t,r);else if(e==="document")n=xw(it(t));else if(qe(e))n=Cw(e,r);else{const o=Nd(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return yo(n)}function jd(t,e){const r=Lt(t);return r===e||!qe(r)||xr(r)?!1:Ue(r).position==="fixed"||jd(r,e)}function Ew(t,e){const r=e.get(t);if(r)return r;let n=cn(t,[],!1).filter(s=>qe(s)&&Br(s)!=="body"),o=null;const a=Ue(t).position==="fixed";let i=a?Lt(t):t;for(;qe(i)&&!xr(i);){const s=Ue(i),u=gs(i);!u&&s.position==="fixed"&&(o=null),(a?!u&&!o:!u&&s.position==="static"&&!!o&&Sw.has(o.position)||Cn(i)&&!u&&jd(t,i))?n=n.filter(c=>c!==i):o=s,i=Lt(i)}return e.set(t,n),n}function Nw(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const i=[...r==="clippingAncestors"?Zo(e)?[]:Ew(e,this._c):[].concat(r),n],s=i[0],u=i.reduce((l,c)=>{const h=Cl(e,c,o);return l.top=Oe(h.top,l.top),l.right=Mt(h.right,l.right),l.bottom=Mt(h.bottom,l.bottom),l.left=Oe(h.left,l.left),l},Cl(e,s,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Tw(t){const{width:e,height:r}=Ed(t);return{width:e,height:r}}function jw(t,e,r){const n=nt(e),o=it(e),a=r==="fixed",i=Xt(t,!0,a,e);let s={scrollLeft:0,scrollTop:0};const u=Ze(0);function l(){u.x=ea(o)}if(n||!n&&!a)if((Br(e)!=="body"||Cn(o))&&(s=Qo(e)),n){const d=Xt(e,!0,a,e);u.x=d.x+e.clientLeft,u.y=d.y+e.clientTop}else o&&l();a&&!n&&o&&l();const c=o&&!n&&!a?Td(o,s):Ze(0),h=i.left+s.scrollLeft-u.x-c.x,f=i.top+s.scrollTop-u.y-c.y;return{x:h,y:f,width:i.width,height:i.height}}function _a(t){return Ue(t).position==="static"}function El(t,e){if(!nt(t)||Ue(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return it(t)===r&&(r=r.ownerDocument.body),r}function Ad(t,e){const r=ke(t);if(Zo(t))return r;if(!nt(t)){let o=Lt(t);for(;o&&!xr(o);){if(qe(o)&&!_a(o))return o;o=Lt(o)}return r}let n=El(t,e);for(;n&&lw(n)&&_a(n);)n=El(n,e);return n&&xr(n)&&_a(n)&&!gs(n)?r:n||hw(t)||r}const Aw=async function(t){const e=this.getOffsetParent||Ad,r=this.getDimensions,n=await r(t.floating);return{reference:jw(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ow(t){return Ue(t).direction==="rtl"}const kw={convertOffsetParentRelativeRectToViewportRelativeRect:vw,getDocumentElement:it,getClippingRect:Nw,getOffsetParent:Ad,getElementRects:Aw,getClientRects:yw,getDimensions:Tw,getScale:gr,isElement:qe,isRTL:Ow};function Od(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Pw(t,e){let r=null,n;const o=it(t);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const l=t.getBoundingClientRect(),{left:c,top:h,width:f,height:d}=l;if(s||e(),!f||!d)return;const g=Bn(h),b=Bn(o.clientWidth-(c+f)),m=Bn(o.clientHeight-(h+d)),v=Bn(c),S={rootMargin:-g+"px "+-b+"px "+-m+"px "+-v+"px",threshold:Oe(0,Mt(1,u))||1};let C=!0;function j(k){const R=k[0].intersectionRatio;if(R!==u){if(!C)return i();R?i(!1,R):n=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!Od(l,t.getBoundingClientRect())&&i(),C=!1}try{r=new IntersectionObserver(j,{...S,root:o.ownerDocument})}catch{r=new IntersectionObserver(j,S)}r.observe(t)}return i(!0),a}function _w(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,l=vs(t),c=o||a?[...l?cn(l):[],...cn(e)]:[];c.forEach(v=>{o&&v.addEventListener("scroll",r,{passive:!0}),a&&v.addEventListener("resize",r)});const h=l&&s?Pw(l,r):null;let f=-1,d=null;i&&(d=new ResizeObserver(v=>{let[x]=v;x&&x.target===l&&d&&(d.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=d)==null||S.observe(e)})),r()}),l&&!u&&d.observe(l),d.observe(e));let g,b=u?Xt(t):null;u&&m();function m(){const v=Xt(t);b&&!Od(b,v)&&r(),b=v,g=requestAnimationFrame(m)}return r(),()=>{var v;c.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),h==null||h(),(v=d)==null||v.disconnect(),d=null,u&&cancelAnimationFrame(g)}}const Rw=nw,Iw=ow,Dw=ew,Mw=iw,Lw=tw,Nl=Q2,$w=aw,Bw=(t,e,r)=>{const n=new Map,o={platform:kw,...r},a={...o.platform,_c:n};return Z2(t,e,{...o,platform:a})};var zw=typeof document<"u",Hw=function(){},Qn=zw?w.useLayoutEffect:Hw;function xo(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!xo(t[n],e[n]))return!1;return!0}if(o=Object.keys(t),r=o.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&t.$$typeof)&&!xo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function kd(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Tl(t,e){const r=kd(t);return Math.round(e*r)/r}function Ra(t){const e=y.useRef(t);return Qn(()=>{e.current=t}),e}function Fw(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:u,open:l}=t,[c,h]=y.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[f,d]=y.useState(n);xo(f,n)||d(n);const[g,b]=y.useState(null),[m,v]=y.useState(null),x=y.useCallback(_=>{_!==k.current&&(k.current=_,b(_))},[]),S=y.useCallback(_=>{_!==R.current&&(R.current=_,v(_))},[]),C=a||g,j=i||m,k=y.useRef(null),R=y.useRef(null),M=y.useRef(c),D=u!=null,$=Ra(u),E=Ra(o),T=Ra(l),P=y.useCallback(()=>{if(!k.current||!R.current)return;const _={placement:e,strategy:r,middleware:f};E.current&&(_.platform=E.current),Bw(k.current,R.current,_).then(L=>{const q={...L,isPositioned:T.current!==!1};I.current&&!xo(M.current,q)&&(M.current=q,fc.flushSync(()=>{h(q)}))})},[f,e,r,E,T]);Qn(()=>{l===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,h(_=>({..._,isPositioned:!1})))},[l]);const I=y.useRef(!1);Qn(()=>(I.current=!0,()=>{I.current=!1}),[]),Qn(()=>{if(C&&(k.current=C),j&&(R.current=j),C&&j){if($.current)return $.current(C,j,P);P()}},[C,j,P,$,D]);const N=y.useMemo(()=>({reference:k,floating:R,setReference:x,setFloating:S}),[x,S]),O=y.useMemo(()=>({reference:C,floating:j}),[C,j]),A=y.useMemo(()=>{const _={position:r,left:0,top:0};if(!O.floating)return _;const L=Tl(O.floating,c.x),q=Tl(O.floating,c.y);return s?{..._,transform:"translate("+L+"px, "+q+"px)",...kd(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:L,top:q}},[r,s,O.floating,c.x,c.y]);return y.useMemo(()=>({...c,update:P,refs:N,elements:O,floatingStyles:A}),[c,P,N,O,A])}const qw=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:o}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?Nl({element:n.current,padding:o}).fn(r):{}:n?Nl({element:n,padding:o}).fn(r):{}}}},Uw=(t,e)=>({...Rw(t),options:[t,e]}),Vw=(t,e)=>({...Iw(t),options:[t,e]}),Ww=(t,e)=>({...$w(t),options:[t,e]}),Gw=(t,e)=>({...Dw(t),options:[t,e]}),Yw=(t,e)=>({...Mw(t),options:[t,e]}),Xw=(t,e)=>({...Lw(t),options:[t,e]}),Kw=(t,e)=>({...qw(t),options:[t,e]});var Jw="Arrow",Pd=y.forwardRef((t,e)=>{const{children:r,width:n=10,height:o=5,...a}=t;return p.jsx(me.svg,{...a,ref:e,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Pd.displayName=Jw;var Zw=Pd;function _d(t){const[e,r]=y.useState(void 0);return Dt(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const u=a.borderBoxSize,l=Array.isArray(u)?u[0]:u;i=l.inlineSize,s=l.blockSize}else i=t.offsetWidth,s=t.offsetHeight;r({width:i,height:s})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var ys="Popper",[Rd,Id]=tr(ys),[Qw,Dd]=Rd(ys),Md=t=>{const{__scopePopper:e,children:r}=t,[n,o]=y.useState(null);return p.jsx(Qw,{scope:e,anchor:n,onAnchorChange:o,children:r})};Md.displayName=ys;var Ld="PopperAnchor",$d=y.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...o}=t,a=Dd(Ld,r),i=y.useRef(null),s=we(e,i),u=y.useRef(null);return y.useEffect(()=>{const l=u.current;u.current=(n==null?void 0:n.current)||i.current,l!==u.current&&a.onAnchorChange(u.current)}),n?null:p.jsx(me.div,{...o,ref:s})});$d.displayName=Ld;var xs="PopperContent",[e3,t3]=Rd(xs),Bd=y.forwardRef((t,e)=>{var H,Ne,ye,ge,We,lt;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:d="optimized",onPlaced:g,...b}=t,m=Dd(xs,r),[v,x]=y.useState(null),S=we(e,Ge=>x(Ge)),[C,j]=y.useState(null),k=_d(C),R=(k==null?void 0:k.width)??0,M=(k==null?void 0:k.height)??0,D=n+(a!=="center"?"-"+a:""),$=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},E=Array.isArray(l)?l:[l],T=E.length>0,P={padding:$,boundary:E.filter(n3),altBoundary:T},{refs:I,floatingStyles:N,placement:O,isPositioned:A,middlewareData:_}=Fw({strategy:"fixed",placement:D,whileElementsMounted:(...Ge)=>_w(...Ge,{animationFrame:d==="always"}),elements:{reference:m.anchor},middleware:[Uw({mainAxis:o+M,alignmentAxis:i}),u&&Vw({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Ww():void 0,...P}),u&&Gw({...P}),Yw({...P,apply:({elements:Ge,rects:_n,availableWidth:ba,availableHeight:Rn})=>{const{width:va,height:qr}=_n.reference,ar=Ge.floating.style;ar.setProperty("--radix-popper-available-width",`${ba}px`),ar.setProperty("--radix-popper-available-height",`${Rn}px`),ar.setProperty("--radix-popper-anchor-width",`${va}px`),ar.setProperty("--radix-popper-anchor-height",`${qr}px`)}}),C&&Kw({element:C,padding:s}),o3({arrowWidth:R,arrowHeight:M}),f&&Xw({strategy:"referenceHidden",...P})]}),[L,q]=Fd(O),de=De(g);Dt(()=>{A&&(de==null||de())},[A,de]);const Z=(H=_.arrow)==null?void 0:H.x,B=(Ne=_.arrow)==null?void 0:Ne.y,z=((ye=_.arrow)==null?void 0:ye.centerOffset)!==0,[he,X]=y.useState();return Dt(()=>{v&&X(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:A?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(ge=_.transformOrigin)==null?void 0:ge.x,(We=_.transformOrigin)==null?void 0:We.y].join(" "),...((lt=_.hide)==null?void 0:lt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:p.jsx(e3,{scope:r,placedSide:L,onArrowChange:j,arrowX:Z,arrowY:B,shouldHideArrow:z,children:p.jsx(me.div,{"data-side":L,"data-align":q,...b,ref:S,style:{...b.style,animation:A?void 0:"none"}})})})});Bd.displayName=xs;var zd="PopperArrow",r3={top:"bottom",right:"left",bottom:"top",left:"right"},Hd=y.forwardRef(function(e,r){const{__scopePopper:n,...o}=e,a=t3(zd,n),i=r3[a.placedSide];return p.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:p.jsx(Zw,{...o,ref:r,style:{...o.style,display:"block"}})})});Hd.displayName=zd;function n3(t){return t!==null}var o3=t=>({name:"transformOrigin",options:t,fn(e){var m,v,x;const{placement:r,rects:n,middlewareData:o}=e,i=((m=o.arrow)==null?void 0:m.centerOffset)!==0,s=i?0:t.arrowWidth,u=i?0:t.arrowHeight,[l,c]=Fd(r),h={start:"0%",center:"50%",end:"100%"}[c],f=(((v=o.arrow)==null?void 0:v.x)??0)+s/2,d=(((x=o.arrow)==null?void 0:x.y)??0)+u/2;let g="",b="";return l==="bottom"?(g=i?h:`${f}px`,b=`${-u}px`):l==="top"?(g=i?h:`${f}px`,b=`${n.floating.height+u}px`):l==="right"?(g=`${-u}px`,b=i?h:`${d}px`):l==="left"&&(g=`${n.floating.width+u}px`,b=i?h:`${d}px`),{data:{x:g,y:b}}}});function Fd(t){const[e,r="center"]=t.split("-");return[e,r]}var a3=Md,i3=$d,s3=Bd,u3=Hd;function l3(t,e){return y.useReducer((r,n)=>e[r][n]??r,t)}var rr=t=>{const{present:e,children:r}=t,n=c3(e),o=typeof r=="function"?r({present:n.isPresent}):y.Children.only(r),a=we(n.ref,d3(o));return typeof r=="function"||n.isPresent?y.cloneElement(o,{ref:a}):null};rr.displayName="Presence";function c3(t){const[e,r]=y.useState(),n=y.useRef(null),o=y.useRef(t),a=y.useRef("none"),i=t?"mounted":"unmounted",[s,u]=l3(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const l=zn(n.current);a.current=s==="mounted"?l:"none"},[s]),Dt(()=>{const l=n.current,c=o.current;if(c!==t){const f=a.current,d=zn(l);t?u("MOUNT"):d==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(c&&f!==d?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,u]),Dt(()=>{if(e){let l;const c=e.ownerDocument.defaultView??window,h=d=>{const b=zn(n.current).includes(CSS.escape(d.animationName));if(d.target===e&&b&&(u("ANIMATION_END"),!o.current)){const m=e.style.animationFillMode;e.style.animationFillMode="forwards",l=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=m)})}},f=d=>{d.target===e&&(a.current=zn(n.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{c.clearTimeout(l),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:y.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function zn(t){return(t==null?void 0:t.animationName)||"none"}function d3(t){var n,o;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var f3=Symbol("radix.slottable");function p3(t){const e=({children:r})=>p.jsx(p.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=f3,e}var h3=y[" useInsertionEffect ".trim().toString()]||Dt;function zr({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[o,a,i]=m3({defaultProp:e,onChange:r}),s=t!==void 0,u=s?t:o;{const c=y.useRef(t!==void 0);y.useEffect(()=>{const h=c.current;h!==s&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=s},[s,n])}const l=y.useCallback(c=>{var h;if(s){const f=g3(c)?c(t):c;f!==t&&((h=i.current)==null||h.call(i,f))}else a(c)},[s,t,a,i]);return[u,l]}function m3({defaultProp:t,onChange:e}){const[r,n]=y.useState(t),o=y.useRef(r),a=y.useRef(e);return h3(()=>{a.current=e},[e]),y.useEffect(()=>{var i;o.current!==r&&((i=a.current)==null||i.call(a,r),o.current=r)},[r,o]),[r,n,a]}function g3(t){return typeof t=="function"}var b3=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),v3="VisuallyHidden",qd=y.forwardRef((t,e)=>p.jsx(me.span,{...t,ref:e,style:{...b3,...t.style}}));qd.displayName=v3;var y3=qd,[ta]=tr("Tooltip",[Id]),ra=Id(),Ud="TooltipProvider",x3=700,hi="tooltip.open",[w3,ws]=ta(Ud),Vd=t=>{const{__scopeTooltip:e,delayDuration:r=x3,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=t,i=y.useRef(!0),s=y.useRef(!1),u=y.useRef(0);return y.useEffect(()=>{const l=u.current;return()=>window.clearTimeout(l)},[]),p.jsx(w3,{scope:e,isOpenDelayedRef:i,delayDuration:r,onOpen:y.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:y.useCallback(l=>{s.current=l},[]),disableHoverableContent:o,children:a})};Vd.displayName=Ud;var dn="Tooltip",[S3,na]=ta(dn),Wd=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=t,u=ws(dn,t.__scopeTooltip),l=ra(e),[c,h]=y.useState(null),f=yd(),d=y.useRef(0),g=i??u.disableHoverableContent,b=s??u.delayDuration,m=y.useRef(!1),[v,x]=zr({prop:n,defaultProp:o??!1,onChange:R=>{R?(u.onOpen(),document.dispatchEvent(new CustomEvent(hi))):u.onClose(),a==null||a(R)},caller:dn}),S=y.useMemo(()=>v?m.current?"delayed-open":"instant-open":"closed",[v]),C=y.useCallback(()=>{window.clearTimeout(d.current),d.current=0,m.current=!1,x(!0)},[x]),j=y.useCallback(()=>{window.clearTimeout(d.current),d.current=0,x(!1)},[x]),k=y.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{m.current=!0,x(!0),d.current=0},b)},[b,x]);return y.useEffect(()=>()=>{d.current&&(window.clearTimeout(d.current),d.current=0)},[]),p.jsx(a3,{...l,children:p.jsx(S3,{scope:e,contentId:f,open:v,stateAttribute:S,trigger:c,onTriggerChange:h,onTriggerEnter:y.useCallback(()=>{u.isOpenDelayedRef.current?k():C()},[u.isOpenDelayedRef,k,C]),onTriggerLeave:y.useCallback(()=>{g?j():(window.clearTimeout(d.current),d.current=0)},[j,g]),onOpen:C,onClose:j,disableHoverableContent:g,children:r})})};Wd.displayName=dn;var mi="TooltipTrigger",Gd=y.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=na(mi,r),a=ws(mi,r),i=ra(r),s=y.useRef(null),u=we(e,s,o.onTriggerChange),l=y.useRef(!1),c=y.useRef(!1),h=y.useCallback(()=>l.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),p.jsx(i3,{asChild:!0,...i,children:p.jsx(me.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:u,onPointerMove:ue(t.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ue(t.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ue(t.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ue(t.onFocus,()=>{l.current||o.onOpen()}),onBlur:ue(t.onBlur,o.onClose),onClick:ue(t.onClick,o.onClose)})})});Gd.displayName=mi;var C3="TooltipPortal",[hC,E3]=ta(C3,{forceMount:void 0}),wr="TooltipContent",Yd=y.forwardRef((t,e)=>{const r=E3(wr,t.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=t,i=na(wr,t.__scopeTooltip);return p.jsx(rr,{present:n||i.open,children:i.disableHoverableContent?p.jsx(Xd,{side:o,...a,ref:e}):p.jsx(N3,{side:o,...a,ref:e})})}),N3=y.forwardRef((t,e)=>{const r=na(wr,t.__scopeTooltip),n=ws(wr,t.__scopeTooltip),o=y.useRef(null),a=we(e,o),[i,s]=y.useState(null),{trigger:u,onClose:l}=r,c=o.current,{onPointerInTransitChange:h}=n,f=y.useCallback(()=>{s(null),h(!1)},[h]),d=y.useCallback((g,b)=>{const m=g.currentTarget,v={x:g.clientX,y:g.clientY},x=k3(v,m.getBoundingClientRect()),S=P3(v,x),C=_3(b.getBoundingClientRect()),j=I3([...S,...C]);s(j),h(!0)},[h]);return y.useEffect(()=>()=>f(),[f]),y.useEffect(()=>{if(u&&c){const g=m=>d(m,c),b=m=>d(m,u);return u.addEventListener("pointerleave",g),c.addEventListener("pointerleave",b),()=>{u.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",b)}}},[u,c,d,f]),y.useEffect(()=>{if(i){const g=b=>{const m=b.target,v={x:b.clientX,y:b.clientY},x=(u==null?void 0:u.contains(m))||(c==null?void 0:c.contains(m)),S=!R3(v,i);x?f():S&&(f(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[u,c,i,l,f]),p.jsx(Xd,{...t,ref:a})}),[T3,j3]=ta(dn,{isInside:!1}),A3=p3("TooltipContent"),Xd=y.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=t,u=na(wr,r),l=ra(r),{onClose:c}=u;return y.useEffect(()=>(document.addEventListener(hi,c),()=>document.removeEventListener(hi,c)),[c]),y.useEffect(()=>{if(u.trigger){const h=f=>{const d=f.target;d!=null&&d.contains(u.trigger)&&c()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[u.trigger,c]),p.jsx(bd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:c,children:p.jsxs(s3,{"data-state":u.stateAttribute,...l,...s,ref:e,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(A3,{children:n}),p.jsx(T3,{scope:r,isInside:!0,children:p.jsx(y3,{id:u.contentId,role:"tooltip",children:o||n})})]})})});Yd.displayName=wr;var Kd="TooltipArrow",O3=y.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=ra(r);return j3(Kd,r).isInside?null:p.jsx(u3,{...o,...n,ref:e})});O3.displayName=Kd;function k3(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),a=Math.abs(e.left-t.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function P3(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function _3(t){const{top:e,right:r,bottom:n,left:o}=t;return[{x:o,y:e},{x:r,y:e},{x:r,y:n},{x:o,y:n}]}function R3(t,e){const{x:r,y:n}=t;let o=!1;for(let a=0,i=e.length-1;a<e.length;i=a++){const s=e[a],u=e[i],l=s.x,c=s.y,h=u.x,f=u.y;c>n!=f>n&&r<(h-l)*(n-c)/(f-c)+l&&(o=!o)}return o}function I3(t){const e=t.slice();return e.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),D3(e)}function D3(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n<t.length;n++){const o=t[n];for(;e.length>=2;){const a=e[e.length-1],i=e[e.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))e.pop();else break}e.push(o)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const o=t[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var M3=Vd,L3=Wd,$3=Gd,Jd=Yd;const fn=M3,Sr=L3,Cr=$3,Kt=y.forwardRef(({className:t,sideOffset:e=4,...r},n)=>p.jsx(Jd,{ref:n,sideOffset:e,className:Se("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));Kt.displayName=Jd.displayName;const br={mobile:{icon:Wi,label:"Mobile"},tablet:{icon:Gi,label:"Tablet"},small:{icon:Vi,label:"Small Desktop"},desktop:{icon:Yi,label:"Desktop"}},V=({title:t,children:e,defaultOpen:r=!0})=>{const[n,o]=w.useState(r);return p.jsxs("div",{className:"border-b border-border pb-3",children:[p.jsxs("button",{onClick:()=>o(!n),className:"flex items-center justify-between w-full py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground",children:[t,n?p.jsx(Fi,{className:"h-3 w-3"}):p.jsx(qi,{className:"h-3 w-3"})]}),n&&p.jsx("div",{className:"mt-2 space-y-3",children:e})]})},pe=({label:t,value:e,onChange:r,min:n=0,max:o=100,unit:a,inputClassName:i=""})=>p.jsxs("div",{className:"flex items-center justify-between",children:[t?p.jsx("label",{className:"text-xs text-muted-foreground",children:t}):null,p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",value:e,onChange:s=>r(parseInt(s.target.value)),min:n,max:o,className:tt("w-14 px-2 py-1 text-xs rounded border border-input bg-background text-right",i)}),a?p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:a}):null]})]}),wo=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:a="px",defaultValue:i=16})=>{const s=Ce(),[u,l]=w.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??i},h=()=>c[s]??c.desktop??i,f=(b,m)=>{const v={...c,[b]:m};r(v)},d=b=>{f(s,b)},g=Ie.some(b=>b!=="desktop"&&c[b]!==void 0);return p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx(fn,{children:p.jsxs(Sr,{children:[p.jsx(Cr,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!u),className:`p-1 rounded transition-colors ${u||g?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:w.createElement(br[s].icon,{className:"h-3 w-3"})})}),p.jsx(Kt,{side:"left",children:p.jsx("p",{children:u?"Hide breakpoints":"Edit per breakpoint"})})]})})]}),u?p.jsx("div",{className:"space-y-1.5 pl-2 border-l-2 border-primary/20",children:Ie.map(b=>{const m=br[b].icon,v=c[b],x=v===void 0?Ie.find(S=>Ie.indexOf(S)>Ie.indexOf(b)&&c[S]!==void 0)||"desktop":null;return p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(fn,{children:p.jsxs(Sr,{children:[p.jsx(Cr,{asChild:!0,children:p.jsx("div",{className:`p-1 rounded ${b===s?"bg-primary/10":""}`,children:p.jsx(m,{className:"h-3 w-3 text-muted-foreground"})})}),p.jsx(Kt,{side:"left",children:p.jsx("p",{children:br[b].label})})]})}),p.jsx("input",{type:"number",value:v??"",placeholder:x?`${c[x]??i}`:"",onChange:S=>{const C=S.target.value===""?void 0:parseInt(S.target.value)||0;f(b,C)},min:n,max:o,className:`flex-1 px-2 py-1 text-xs rounded border border-input bg-background text-right ${v===void 0?"text-muted-foreground":""}`}),p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:a})]},b)})}):p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",value:h(),onChange:b=>d(parseInt(b.target.value)||0),min:n,max:o,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-right"}),p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:a})]})]})},Me=({label:t,values:e,onChange:r})=>{var s;const n=Ce(),[o,a]=w.useState(!0),i=(u,l)=>{r(o?{[n]:{top:l,right:l,bottom:l,left:l}}:{[n]:{...e[n],[u]:l}})};return p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("button",{onClick:()=>a(!o),className:`text-xs px-2 py-0.5 rounded ${o?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:o?"Linked":"Individual"})]}),o?p.jsx("input",{type:"number",value:(s=e==null?void 0:e[n])==null?void 0:s.top,onChange:u=>i("top",parseInt(u.target.value)),min:0,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-center"}):p.jsx("div",{className:"flex gap-1",children:["top","right","bottom","left"].map(u=>{var l;return p.jsxs("div",{className:"text-center",children:[p.jsx("span",{className:"text-[10px] text-muted-foreground",children:u[0].toUpperCase()}),p.jsx("input",{type:"number",value:(l=e==null?void 0:e[n])==null?void 0:l[u],onChange:c=>i(u,parseInt(c.target.value)),min:0,className:"w-full px-1 py-1 text-xs rounded border border-input bg-background text-center"})]},u)})})]})},J=({label:t,value:e,options:r,onChange:n,className:o="",selectClassName:a=""})=>p.jsxs("div",{className:tt("flex items-center justify-between",o,a),children:[t?p.jsx("label",{className:"text-xs text-muted-foreground",children:t}):null,p.jsx("select",{value:e,onChange:i=>n(i.target.value),className:tt("px-2 py-1 text-xs rounded border border-input bg-background ",a),children:r.map(i=>p.jsx("option",{value:i.value,children:i.label},i.value))})]}),Qe=({label:t,value:e,onChange:r})=>p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("input",{type:"color",value:e!=null&&e.startsWith("#")?e:"#000000",onChange:n=>r(n.target.value),className:"w-6 h-6 rounded border border-input cursor-pointer"}),p.jsx("input",{type:"text",value:e||"",onChange:n=>r(n.target.value),className:"w-20 px-2 py-1 text-xs rounded border border-input bg-background",placeholder:"#000000"})]})]}),vt=({label:t,value:e,options:r,onChange:n})=>p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("div",{className:"flex gap-1",children:r.map(o=>p.jsx("button",{onClick:()=>n(o.value),className:`flex-1 px-2 py-1.5 text-xs rounded border transition-colors ${e===o.value?"bg-primary text-primary-foreground border-primary":"border-input hover:bg-secondary"}`,title:o.label,children:o.icon||o.label},o.value))})]}),$t=({label:t,value:e,onChange:r,multiline:n=!1})=>p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),n?p.jsx("textarea",{value:e||"",onChange:o=>r(o.target.value),className:"w-full p-2 text-xs rounded border border-input bg-background resize-none",rows:3}):p.jsx("input",{type:"text",value:e||"",onChange:o=>r(o.target.value),className:"w-full px-2 py-1.5 text-xs rounded border border-input bg-background"})]}),oa=({label:t,value:e,onChange:r,min:n=0,max:o=100,unit:a=""})=>p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsxs("span",{className:"text-xs text-muted-foreground",children:[e,a]})]}),p.jsx("input",{type:"range",value:e,onChange:i=>r(parseInt(i.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]}),So=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:a="",defaultValue:i=50})=>{const s=Ce(),[u,l]=w.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??i},h=()=>c[s]??c.desktop??i,f=(g,b)=>{const m={...c,[g]:b};r(m)},d=Ie.some(g=>g!=="desktop"&&c[g]!==void 0);return p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("span",{className:"text-xs text-muted-foreground",children:[h(),a]}),p.jsx(fn,{children:p.jsxs(Sr,{children:[p.jsx(Cr,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!u),className:`p-1 rounded transition-colors ${u||d?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:w.createElement(br[s].icon,{className:"h-3 w-3"})})}),p.jsx(Kt,{side:"left",children:p.jsx("p",{children:u?"Hide breakpoints":"Edit per breakpoint"})})]})})]})]}),u?p.jsx("div",{className:"space-y-2 pl-2 border-l-2 border-primary/20",children:Ie.map(g=>{const b=br[g].icon,m=c[g];return p.jsxs("div",{className:"space-y-1",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:`p-1 rounded ${g===s?"bg-primary/10":""}`,children:p.jsx(b,{className:"h-3 w-3 text-muted-foreground"})}),p.jsx("span",{className:"text-xs text-muted-foreground flex-1",children:br[g].label}),p.jsxs("span",{className:"text-xs",children:[m??"-",m!==void 0?a:""]})]}),p.jsx("input",{type:"range",value:m??c.desktop??i,onChange:v=>f(g,parseInt(v.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]},g)})}):p.jsx("input",{type:"range",value:h(),onChange:g=>f(s,parseInt(g.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]})},Ss=({text:t="Click me",variant:e="solid",size:r="md",backgroundColor:n="#FF6B35",textColor:o="#ffffff",borderColor:a="#FF6B35",borderWidth:i=0,borderRadius:s=8,fontWeight:u="500",fontSize:l="auto",width:c="auto",paddingX:h=16,paddingY:f=10,margin:d={top:0,right:0,bottom:0,left:0},boxShadow:g="none",opacity:b=100})=>{const m=Ce();let v,x,S;try{const{connectors:I,events:N}=ne(O=>({events:O.events}));v=I.connect,x=I.drag,S=N.selected}catch{}const C={sm:{px:12,py:6,fs:14},md:{px:16,py:10,fs:16},lg:{px:24,py:14,fs:18}},j=C[r]||C.md,k=h==="auto"?j.px:h,R=f==="auto"?j.py:f,M=l==="auto"?j.fs:l,D=typeof d[m]=="object"?`${d[m].top}px ${d[m].right}px ${d[m].bottom}px ${d[m].left}px`:`${d[m]}px`,$=e==="outline"?"transparent":n,E=e==="outline"?n:o,T=e==="outline"?2:i,P=e==="outline"?n:a;return p.jsx("button",{ref:I=>I&&v&&x&&(v==null?void 0:v(x==null?void 0:x(I))),className:`cursor-move transition-all hover:opacity-90 ${S?"ring-2 ring-primary ring-offset-2":""}`,style:{backgroundColor:$,color:E,borderWidth:`${T}px`,borderColor:P,borderStyle:"solid",borderRadius:`${s}px`,fontWeight:u,fontSize:`${M}px`,padding:`${R}px ${k}px`,margin:D,width:c==="full"?"100%":"auto",boxShadow:g==="none"?"none":g,opacity:b/100},children:t})},B3=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsx(V,{title:"Content",defaultOpen:!0,children:p.jsx($t,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)})}),p.jsxs(V,{title:"Style",defaultOpen:!0,children:[p.jsx(vt,{label:"Variant",value:e.variant||"solid",options:[{value:"solid",label:"Solid"},{value:"outline",label:"Outline"}],onChange:n=>t(o=>o.variant=n)}),p.jsx(vt,{label:"Size Preset",value:e.size||"md",options:[{value:"sm",label:"S"},{value:"md",label:"M"},{value:"lg",label:"L"}],onChange:n=>t(o=>o.size=n)}),p.jsx(vt,{label:"Width",value:e.width||"auto",options:[{value:"auto",label:"Auto"},{value:"full",label:"Full"}],onChange:n=>t(o=>o.width=n)})]}),p.jsxs(V,{title:"Colors",defaultOpen:!0,children:[p.jsx(Qe,{label:"Background",value:e.backgroundColor||"#FF6B35",onChange:n=>t(o=>o.backgroundColor=n)}),p.jsx(Qe,{label:"Text",value:e.textColor||"#ffffff",onChange:n=>t(o=>o.textColor=n)}),p.jsx(oa,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"})]}),p.jsxs(V,{title:"Typography",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Font Size",value:e.fontSize==="auto"?16:e.fontSize,onChange:n=>t(o=>o.fontSize=n),min:10,max:32}),p.jsx(J,{label:"Weight",value:e.fontWeight||"500",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"}],onChange:n=>t(o=>o.fontWeight=n)})]}),p.jsxs(V,{title:"Padding",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Horizontal",value:e.paddingX||16,onChange:n=>t(o=>o.paddingX=n),max:64}),p.jsx(pe,{unit:"px",label:"Vertical",value:e.paddingY||10,onChange:n=>t(o=>o.paddingY=n),max:48})]}),p.jsxs(V,{title:"Border",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:50}),p.jsx(pe,{unit:"px",label:"Width",value:e.borderWidth||0,onChange:n=>t(o=>o.borderWidth=n),max:10}),p.jsx(Qe,{label:"Color",value:e.borderColor||"#FF6B35",onChange:n=>t(o=>o.borderColor=n)})]}),p.jsx(V,{title:"Effects",defaultOpen:!1,children:p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 2px 4px rgba(0,0,0,0.1)",label:"Small"},{value:"0 4px 12px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 8px 24px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Ss.craft={displayName:"Button",props:{text:"Click me",variant:"solid",size:"md",backgroundColor:"#FF6B35",textColor:"#ffffff",borderColor:"#FF6B35",borderWidth:0,borderRadius:8,fontWeight:"500",fontSize:"auto",width:"auto",paddingX:16,paddingY:10,margin:{desktop:{top:0,right:0,bottom:0,left:0}},boxShadow:"none",opacity:100},related:{settings:B3}};const cr=({label:t,value:e,onChange:r,max:n=1e4})=>{var h,f,d;const o=Ce(),a=((h=e==null?void 0:e[o])==null?void 0:h.type)||"custom",i=(f=e==null?void 0:e[o])==null?void 0:f.value,s=((d=e==null?void 0:e[o])==null?void 0:d.unit)||"%",u=g=>{r(g==="none"?{[o]:{type:"none"}}:g==="auto"?{[o]:{type:"auto"}}:{[o]:{type:"custom",value:i,unit:s}})},l=g=>{r({[o]:{type:"custom",value:g,unit:s}})},c=g=>{r({[o]:{type:"custom",value:i,unit:g}})};return p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-xs font-medium",children:t}),p.jsx(J,{selectClassName:"w-full",value:a,options:[{value:"none",label:"None"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:u}),a==="custom"&&p.jsxs("div",{className:"flex",children:[p.jsx("div",{className:"",children:p.jsx(pe,{inputClassName:"w-full h-8 rounded-l-lg",value:i,onChange:l,max:n})}),p.jsx("div",{className:"",children:p.jsx(J,{selectClassName:" h-8",value:s,options:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"vh",label:"vh"},{value:"vw",label:"vw"}],onChange:c})})]})]})},z3=t=>t?typeof t=="string"?t:typeof t=="number"?`${t}px`:t.type==="none"?"none":t.type==="auto"?"auto":t.type==="custom"?`${t.value}${t.unit||"px"}`:"auto":"auto",Cs=t=>{const e=Ce(),r=i=>{var u,l;const s=((u=t==null?void 0:t[i])==null?void 0:u[e])||((l=t==null?void 0:t[i])==null?void 0:l.desktop);return z3(s)},n=i=>{var s,u;return((s=t==null?void 0:t[i])==null?void 0:s[e])||((u=t==null?void 0:t[i])==null?void 0:u.desktop)},o=typeof n("padding")=="object"?`${n("padding").top}px ${n("padding").right}px ${n("padding").bottom}px ${n("padding").left}px`:`${n("padding")}px`,a=typeof n("margin")=="object"?`${n("margin").top}px ${n("margin").right}px ${n("margin").bottom}px ${n("margin").left}px`:`${n("margin")}px`;return{backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage?`url(${t.backgroundImage})`:"none",backgroundSize:t.backgroundSize,backgroundRepeat:t.backgroundRepeat,padding:o,margin:a,width:r("width"),height:r("height"),minHeight:r("minHeight"),maxHeight:r("maxHeight"),minWidth:r("minWidth"),maxWidth:r("maxWidth"),display:t.display,flexDirection:t.display==="flex"?t.flexDirection:void 0,justifyContent:t.display==="flex"?t.justifyContent:void 0,alignItems:t.display==="flex"?t.alignItems:void 0,gap:t.display==="flex"?`${t.gap}px`:void 0,borderRadius:`${t.borderRadius}px`,borderWidth:`${t.borderWidth}px`,borderColor:t.borderColor,borderStyle:t.borderStyle,boxShadow:t.boxShadow==="none"?"none":t.boxShadow,position:t.position||"relative",top:t.top||0,left:t.left||0}},pn={backgroundColor:"transparent",backgroundImage:"",backgroundSize:"cover",backgroundRepeat:"no-repeat",padding:{desktop:{top:0,right:0,bottom:0,left:0}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},width:{desktop:{type:"custom",value:50,unit:"%"}},height:{desktop:{type:"none"}},minHeight:{desktop:{type:"custom",value:50,unit:"px"}},maxHeight:{desktop:{type:"none"}},minWidth:{desktop:{type:"none"}},maxWidth:{desktop:{type:"none"}},display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:0,borderWidth:1,borderColor:"transparent",borderStyle:"solid",boxShadow:"none",position:"relative",top:0,left:0},aa=t=>{const{actions:{setProp:e},props:r}=ne(a=>({props:a.data.props})),n=typeof r.padding=="object"?r.padding:{top:r.padding||16,right:r.padding||16,bottom:r.padding||16,left:r.padding||16},o=typeof r.margin=="object"?r.margin:{top:r.margin||0,right:r.margin||0,bottom:r.margin||0,left:r.margin||0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Layout",defaultOpen:!0,children:[p.jsx(J,{label:"Display",value:r.display||"block",options:[{value:"block",label:"Block"},{value:"flex",label:"Flex"}],onChange:a=>e(i=>i.display=a)}),r.display==="flex"&&p.jsxs(p.Fragment,{children:[p.jsx(vt,{label:"Direction",value:r.flexDirection||"column",options:[{value:"row",label:"Row"},{value:"column",label:"Col"}],onChange:a=>e(i=>i.flexDirection=a)}),p.jsx(J,{label:"Justify",value:r.justifyContent||"flex-start",options:[{value:"flex-start",label:"Start"},{value:"center",label:"Center"},{value:"flex-end",label:"End"},{value:"space-between",label:"Between"}],onChange:a=>e(i=>i.justifyContent=a)}),p.jsx(pe,{unit:"px",label:"Gap",value:r.gap||0,onChange:a=>e(i=>i.gap=a),max:64})]})]}),p.jsxs(V,{title:"Sizing",defaultOpen:!0,children:[p.jsx(cr,{label:"Width",value:r.width,onChange:a=>e(i=>i.width={...i.width,...a}),max:1e4}),p.jsx(cr,{label:"Min Width",value:r.minWidth,onChange:a=>e(i=>i.minWidth={...i.minWidth,...a}),max:1e4}),p.jsx(cr,{label:"Max Width",value:r.maxWidth,onChange:a=>e(i=>i.maxWidth={...i.maxWidth,...a}),max:1e4}),p.jsx(cr,{label:"Height",value:r.height,onChange:a=>e(i=>i.height={...i.height,...a}),max:1e4}),p.jsx(cr,{label:"Min Height",value:r.minHeight,onChange:a=>e(i=>i.minHeight={...i.minHeight,...a}),max:1e4}),p.jsx(cr,{label:"Max Height",value:r.maxHeight,onChange:a=>e(i=>i.maxHeight={...i.maxHeight,...a}),max:1e4})]}),p.jsxs(V,{title:"Spacing",defaultOpen:!0,children:[p.jsx(Me,{label:"Padding",values:n,onChange:a=>e(i=>i.padding={...i.padding,...a})}),p.jsx(Me,{label:"Margin",values:o,onChange:a=>e(i=>i.margin={...i.margin,...a})})]}),p.jsxs(V,{title:"Background",defaultOpen:!1,children:[p.jsx(Qe,{label:"Color",value:r.backgroundColor||"transparent",onChange:a=>e(i=>i.backgroundColor=a)}),p.jsx("input",{type:"text",placeholder:"Background image URL",value:r.backgroundImage||"",onChange:a=>e(i=>i.backgroundImage=a.target.value),className:"w-full px-2 py-1 border rounded text-sm"}),p.jsx(J,{label:"Image Size",value:r.backgroundSize||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"stretch",label:"Stretch"}],onChange:a=>e(i=>i.backgroundSize=a)}),p.jsx(J,{label:"Image Repeat",value:r.backgroundRepeat||"no-repeat",options:[{value:"no-repeat",label:"No Repeat"},{value:"repeat",label:"Repeat"},{value:"repeat-x",label:"Repeat X"},{value:"repeat-y",label:"Repeat Y"}],onChange:a=>e(i=>i.backgroundRepeat=a)})]}),p.jsxs(V,{title:"Border",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Radius",value:r.borderRadius,onChange:a=>e(i=>i.borderRadius=a),max:5e3}),p.jsx(pe,{unit:"px",label:"Width",value:r.borderWidth||1,onChange:a=>e(i=>i.borderWidth=a),max:10}),p.jsx(Qe,{label:"Color",value:r.borderColor||"transparent",onChange:a=>e(i=>i.borderColor=a)})]})]})},En=t=>{let e,r,n=!1;try{const{connectors:o,events:a}=ne(i=>({events:i.events}));e=o.connect,r=o.drag,n=a.selected}catch{}return p.jsx("div",{ref:o=>{o&&e&&r&&e(r(o))},style:Cs(t),className:`min-h-[50px] w-full max-w-5xl px-[15px] lg:px-0 ${n?"outline outline-blue-500":""}`,children:t.children})},H3={...pn,maxWidth:{desktop:{type:"custom",value:"1024",unit:"px"}},padding:{desktop:{top:0,right:15,bottom:0,left:15}}};En.craft={isCanvas:!0,props:H3,displayName:"Container",related:{settings:aa},rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Wrapper")}};const F3=/\{\{\s*([\w.]+)\s*\}\}/g,q3=(t,e)=>{if(!t||!e)return;const r=e.split(".");let n=t;for(const o of r){if(n==null)return;n=n[o]}return n},Co=(t,e)=>{if(!t||typeof t!="string"||!e)return t;const r=/\{\{\s*([\w.]+)\s*\}\}/g;return t.replace(r,(n,o)=>{const a=q3(e,o);return a==null?n:String(a)})},U3=t=>!t||typeof t!="string"?!1:/\{\{\s*([\w.]+)\s*\}\}/.test(t),V3=t=>{if(!t||typeof t!="string")return[];const e=[];let r;const n=new RegExp(F3.source,"g");for(;(r=n.exec(t))!==null;)e.push(r[1]);return e},W3={athlete:{name:"Full name (from API)",bibId:"Bib number",firstName:"First name",lastName:"Last name",fullName:"Full name (firstName + lastName)",raceTime:"Race finish time",email:"Email address",phone:"Phone number"},event:{name:"Event name",slug:"Event URL slug",date:"Event date"},organization:{name:"Organization name",website:"Organization website"}},G3={athlete:{label:"Athlete",variables:[{key:"athlete.name",description:"Full name"},{key:"athlete.bibId",description:"Bib number"},{key:"athlete.firstName",description:"First name"},{key:"athlete.lastName",description:"Last name"},{key:"athlete.fullName",description:"First + Last name"},{key:"athlete.raceTime",description:"Race finish time"},{key:"athlete.email",description:"Email address"},{key:"athlete.phone",description:"Phone number"}]},event:{label:"Event",variables:[{key:"event.name",description:"Event name"},{key:"event.slug",description:"URL slug"},{key:"event.date",description:"Event date"}]},organization:{label:"Organization",variables:[{key:"organization.name",description:"Organization name"},{key:"organization.website",description:"Website URL"}]}},Y3=({variable:t,onCopy:e})=>{const[r,n]=w.useState(!1),o=()=>{navigator.clipboard.writeText(`{{ ${t.key} }}`),n(!0),e==null||e(`{{ ${t.key} }}`),setTimeout(()=>n(!1),1500)};return p.jsxs("button",{onClick:o,className:"w-full flex items-center justify-between gap-2 px-2 py-1.5 text-left hover:bg-muted rounded-md transition-colors group",children:[p.jsxs("div",{className:"min-w-0 flex-1",children:[p.jsx("code",{className:"text-xs font-mono text-primary bg-primary/10 px-1 py-0.5 rounded",children:`{{ ${t.key} }}`}),p.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:t.description})]}),p.jsx("div",{className:"shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:r?p.jsx(Hi,{className:"h-3.5 w-3.5 text-green-500"}):p.jsx(ih,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})},X3=({category:t,data:e,defaultOpen:r=!1})=>{const[n,o]=w.useState(r);return p.jsxs("div",{className:"border-b border-border last:border-0",children:[p.jsxs("button",{onClick:()=>o(!n),className:"w-full flex items-center gap-2 py-2 text-left hover:bg-muted/50 transition-colors",children:[n?p.jsx(Fi,{className:"h-3.5 w-3.5 text-muted-foreground"}):p.jsx(qi,{className:"h-3.5 w-3.5 text-muted-foreground"}),p.jsx("span",{className:"text-xs font-medium",children:e.label}),p.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",e.variables.length,")"]})]}),n&&p.jsx("div",{className:"pb-2 space-y-0.5",children:e.variables.map(a=>p.jsx(Y3,{variable:a},a.key))})]})},Zd=({className:t})=>p.jsxs("div",{className:Se("rounded-lg border border-border bg-muted/30",t),children:[p.jsxs("div",{className:"px-3 py-2 border-b border-border",children:[p.jsx("h4",{className:"text-xs font-semibold",children:"Dynamic Variables"}),p.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Click to copy, then paste in your text"})]}),p.jsx("div",{className:"px-2",children:Object.entries(G3).map(([e,r],n)=>p.jsx(X3,{category:e,data:r,defaultOpen:n===0},e))})]});var Qd={},hn={},Es={},mn={},Ns={};Object.defineProperty(Ns,"__esModule",{value:!0});Ns.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var Ts={};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var gi={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function n(a){var i;return a>=55296&&a<=57343||a>1114111?65533:(i=r.get(a))!==null&&i!==void 0?i:a}t.replaceCodePoint=n;function o(a){return(0,t.fromCodePoint)(n(a))}t.default=o})(gi);(function(t){var e=F&&F.__createBinding||(Object.create?function(E,T,P,I){I===void 0&&(I=P);var N=Object.getOwnPropertyDescriptor(T,P);(!N||("get"in N?!T.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:function(){return T[P]}}),Object.defineProperty(E,I,N)}:function(E,T,P,I){I===void 0&&(I=P),E[I]=T[P]}),r=F&&F.__setModuleDefault||(Object.create?function(E,T){Object.defineProperty(E,"default",{enumerable:!0,value:T})}:function(E,T){E.default=T}),n=F&&F.__importStar||function(E){if(E&&E.__esModule)return E;var T={};if(E!=null)for(var P in E)P!=="default"&&Object.prototype.hasOwnProperty.call(E,P)&&e(T,E,P);return r(T,E),T},o=F&&F.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var a=o(Ns);t.htmlDecodeTree=a.default;var i=o(Ts);t.xmlDecodeTree=i.default;var s=n(gi);t.decodeCodePoint=s.default;var u=gi;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var l;(function(E){E[E.NUM=35]="NUM",E[E.SEMI=59]="SEMI",E[E.EQUALS=61]="EQUALS",E[E.ZERO=48]="ZERO",E[E.NINE=57]="NINE",E[E.LOWER_A=97]="LOWER_A",E[E.LOWER_F=102]="LOWER_F",E[E.LOWER_X=120]="LOWER_X",E[E.LOWER_Z=122]="LOWER_Z",E[E.UPPER_A=65]="UPPER_A",E[E.UPPER_F=70]="UPPER_F",E[E.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var c=32,h;(function(E){E[E.VALUE_LENGTH=49152]="VALUE_LENGTH",E[E.BRANCH_LENGTH=16256]="BRANCH_LENGTH",E[E.JUMP_TABLE=127]="JUMP_TABLE"})(h=t.BinTrieFlags||(t.BinTrieFlags={}));function f(E){return E>=l.ZERO&&E<=l.NINE}function d(E){return E>=l.UPPER_A&&E<=l.UPPER_F||E>=l.LOWER_A&&E<=l.LOWER_F}function g(E){return E>=l.UPPER_A&&E<=l.UPPER_Z||E>=l.LOWER_A&&E<=l.LOWER_Z||f(E)}function b(E){return E===l.EQUALS||g(E)}var m;(function(E){E[E.EntityStart=0]="EntityStart",E[E.NumericStart=1]="NumericStart",E[E.NumericDecimal=2]="NumericDecimal",E[E.NumericHex=3]="NumericHex",E[E.NamedEntity=4]="NamedEntity"})(m||(m={}));var v;(function(E){E[E.Legacy=0]="Legacy",E[E.Strict=1]="Strict",E[E.Attribute=2]="Attribute"})(v=t.DecodingMode||(t.DecodingMode={}));var x=function(){function E(T,P,I){this.decodeTree=T,this.emitCodePoint=P,this.errors=I,this.state=m.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=v.Strict}return E.prototype.startEntity=function(T){this.decodeMode=T,this.state=m.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},E.prototype.write=function(T,P){switch(this.state){case m.EntityStart:return T.charCodeAt(P)===l.NUM?(this.state=m.NumericStart,this.consumed+=1,this.stateNumericStart(T,P+1)):(this.state=m.NamedEntity,this.stateNamedEntity(T,P));case m.NumericStart:return this.stateNumericStart(T,P);case m.NumericDecimal:return this.stateNumericDecimal(T,P);case m.NumericHex:return this.stateNumericHex(T,P);case m.NamedEntity:return this.stateNamedEntity(T,P)}},E.prototype.stateNumericStart=function(T,P){return P>=T.length?-1:(T.charCodeAt(P)|c)===l.LOWER_X?(this.state=m.NumericHex,this.consumed+=1,this.stateNumericHex(T,P+1)):(this.state=m.NumericDecimal,this.stateNumericDecimal(T,P))},E.prototype.addToNumericResult=function(T,P,I,N){if(P!==I){var O=I-P;this.result=this.result*Math.pow(N,O)+parseInt(T.substr(P,O),N),this.consumed+=O}},E.prototype.stateNumericHex=function(T,P){for(var I=P;P<T.length;){var N=T.charCodeAt(P);if(f(N)||d(N))P+=1;else return this.addToNumericResult(T,I,P,16),this.emitNumericEntity(N,3)}return this.addToNumericResult(T,I,P,16),-1},E.prototype.stateNumericDecimal=function(T,P){for(var I=P;P<T.length;){var N=T.charCodeAt(P);if(f(N))P+=1;else return this.addToNumericResult(T,I,P,10),this.emitNumericEntity(N,2)}return this.addToNumericResult(T,I,P,10),-1},E.prototype.emitNumericEntity=function(T,P){var I;if(this.consumed<=P)return(I=this.errors)===null||I===void 0||I.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(T===l.SEMI)this.consumed+=1;else if(this.decodeMode===v.Strict)return 0;return this.emitCodePoint((0,s.replaceCodePoint)(this.result),this.consumed),this.errors&&(T!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},E.prototype.stateNamedEntity=function(T,P){for(var I=this.decodeTree,N=I[this.treeIndex],O=(N&h.VALUE_LENGTH)>>14;P<T.length;P++,this.excess++){var A=T.charCodeAt(P);if(this.treeIndex=C(I,N,this.treeIndex+Math.max(1,O),A),this.treeIndex<0)return this.result===0||this.decodeMode===v.Attribute&&(O===0||b(A))?0:this.emitNotTerminatedNamedEntity();if(N=I[this.treeIndex],O=(N&h.VALUE_LENGTH)>>14,O!==0){if(A===l.SEMI)return this.emitNamedEntityData(this.treeIndex,O,this.consumed+this.excess);this.decodeMode!==v.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},E.prototype.emitNotTerminatedNamedEntity=function(){var T,P=this,I=P.result,N=P.decodeTree,O=(N[I]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(I,O,this.consumed),(T=this.errors)===null||T===void 0||T.missingSemicolonAfterCharacterReference(),this.consumed},E.prototype.emitNamedEntityData=function(T,P,I){var N=this.decodeTree;return this.emitCodePoint(P===1?N[T]&~h.VALUE_LENGTH:N[T+1],I),P===3&&this.emitCodePoint(N[T+2],I),I},E.prototype.end=function(){var T;switch(this.state){case m.NamedEntity:return this.result!==0&&(this.decodeMode!==v.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case m.NumericDecimal:return this.emitNumericEntity(0,2);case m.NumericHex:return this.emitNumericEntity(0,3);case m.NumericStart:return(T=this.errors)===null||T===void 0||T.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case m.EntityStart:return 0}},E}();t.EntityDecoder=x;function S(E){var T="",P=new x(E,function(I){return T+=(0,s.fromCodePoint)(I)});return function(N,O){for(var A=0,_=0;(_=N.indexOf("&",_))>=0;){T+=N.slice(A,_),P.startEntity(O);var L=P.write(N,_+1);if(L<0){A=_+P.end();break}A=_+L,_=L===0?A+1:A}var q=T+N.slice(A);return T="",q}}function C(E,T,P,I){var N=(T&h.BRANCH_LENGTH)>>7,O=T&h.JUMP_TABLE;if(N===0)return O!==0&&I===O?P:-1;if(O){var A=I-O;return A<0||A>=N?-1:E[P+A]-1}for(var _=P,L=_+N-1;_<=L;){var q=_+L>>>1,de=E[q];if(de<I)_=q+1;else if(de>I)L=q-1;else return E[q+N]}return-1}t.determineBranch=C;var j=S(a.default),k=S(i.default);function R(E,T){return T===void 0&&(T=v.Legacy),j(E,T)}t.decodeHTML=R;function M(E){return j(E,v.Attribute)}t.decodeHTMLAttribute=M;function D(E){return j(E,v.Strict)}t.decodeHTMLStrict=D;function $(E){return k(E,v.Strict)}t.decodeXML=$})(mn);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=mn,r;(function(f){f[f.Tab=9]="Tab",f[f.NewLine=10]="NewLine",f[f.FormFeed=12]="FormFeed",f[f.CarriageReturn=13]="CarriageReturn",f[f.Space=32]="Space",f[f.ExclamationMark=33]="ExclamationMark",f[f.Number=35]="Number",f[f.Amp=38]="Amp",f[f.SingleQuote=39]="SingleQuote",f[f.DoubleQuote=34]="DoubleQuote",f[f.Dash=45]="Dash",f[f.Slash=47]="Slash",f[f.Zero=48]="Zero",f[f.Nine=57]="Nine",f[f.Semi=59]="Semi",f[f.Lt=60]="Lt",f[f.Eq=61]="Eq",f[f.Gt=62]="Gt",f[f.Questionmark=63]="Questionmark",f[f.UpperA=65]="UpperA",f[f.LowerA=97]="LowerA",f[f.UpperF=70]="UpperF",f[f.LowerF=102]="LowerF",f[f.UpperZ=90]="UpperZ",f[f.LowerZ=122]="LowerZ",f[f.LowerX=120]="LowerX",f[f.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(f){f[f.Text=1]="Text",f[f.BeforeTagName=2]="BeforeTagName",f[f.InTagName=3]="InTagName",f[f.InSelfClosingTag=4]="InSelfClosingTag",f[f.BeforeClosingTagName=5]="BeforeClosingTagName",f[f.InClosingTagName=6]="InClosingTagName",f[f.AfterClosingTagName=7]="AfterClosingTagName",f[f.BeforeAttributeName=8]="BeforeAttributeName",f[f.InAttributeName=9]="InAttributeName",f[f.AfterAttributeName=10]="AfterAttributeName",f[f.BeforeAttributeValue=11]="BeforeAttributeValue",f[f.InAttributeValueDq=12]="InAttributeValueDq",f[f.InAttributeValueSq=13]="InAttributeValueSq",f[f.InAttributeValueNq=14]="InAttributeValueNq",f[f.BeforeDeclaration=15]="BeforeDeclaration",f[f.InDeclaration=16]="InDeclaration",f[f.InProcessingInstruction=17]="InProcessingInstruction",f[f.BeforeComment=18]="BeforeComment",f[f.CDATASequence=19]="CDATASequence",f[f.InSpecialComment=20]="InSpecialComment",f[f.InCommentLike=21]="InCommentLike",f[f.BeforeSpecialS=22]="BeforeSpecialS",f[f.SpecialStartSequence=23]="SpecialStartSequence",f[f.InSpecialTag=24]="InSpecialTag",f[f.BeforeEntity=25]="BeforeEntity",f[f.BeforeNumericEntity=26]="BeforeNumericEntity",f[f.InNamedEntity=27]="InNamedEntity",f[f.InNumericEntity=28]="InNumericEntity",f[f.InHexEntity=29]="InHexEntity"})(n||(n={}));function o(f){return f===r.Space||f===r.NewLine||f===r.Tab||f===r.FormFeed||f===r.CarriageReturn}function a(f){return f===r.Slash||f===r.Gt||o(f)}function i(f){return f>=r.Zero&&f<=r.Nine}function s(f){return f>=r.LowerA&&f<=r.LowerZ||f>=r.UpperA&&f<=r.UpperZ}function u(f){return f>=r.UpperA&&f<=r.UpperF||f>=r.LowerA&&f<=r.LowerF}var l;(function(f){f[f.NoValue=0]="NoValue",f[f.Unquoted=1]="Unquoted",f[f.Single=2]="Single",f[f.Double=3]="Double"})(l=t.QuoteType||(t.QuoteType={}));var c={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},h=function(){function f(d,g){var b=d.xmlMode,m=b===void 0?!1:b,v=d.decodeEntities,x=v===void 0?!0:v;this.cbs=g,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=m,this.decodeEntities=x,this.entityTrie=m?e.xmlDecodeTree:e.htmlDecodeTree}return f.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},f.prototype.write=function(d){this.offset+=this.buffer.length,this.buffer=d,this.parse()},f.prototype.end=function(){this.running&&this.finish()},f.prototype.pause=function(){this.running=!1},f.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},f.prototype.getIndex=function(){return this.index},f.prototype.getSectionStart=function(){return this.sectionStart},f.prototype.stateText=function(d){d===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&d===r.Amp&&(this.state=n.BeforeEntity)},f.prototype.stateSpecialStartSequence=function(d){var g=this.sequenceIndex===this.currentSequence.length,b=g?a(d):(d|32)===this.currentSequence[this.sequenceIndex];if(!b)this.isSpecial=!1;else if(!g){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(d)},f.prototype.stateInSpecialTag=function(d){if(this.sequenceIndex===this.currentSequence.length){if(d===r.Gt||o(d)){var g=this.index-this.currentSequence.length;if(this.sectionStart<g){var b=this.index;this.index=g,this.cbs.ontext(this.sectionStart,g),this.index=b}this.isSpecial=!1,this.sectionStart=g+2,this.stateInClosingTagName(d);return}this.sequenceIndex=0}(d|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===c.TitleEnd?this.decodeEntities&&d===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(d===r.Lt)},f.prototype.stateCDATASequence=function(d){d===c.Cdata[this.sequenceIndex]?++this.sequenceIndex===c.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=c.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(d))},f.prototype.fastForwardTo=function(d){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===d)return!0;return this.index=this.buffer.length+this.offset-1,!1},f.prototype.stateInCommentLike=function(d){d===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):d!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},f.prototype.isTagStartChar=function(d){return this.xmlMode?!a(d):s(d)},f.prototype.startSpecial=function(d,g){this.isSpecial=!0,this.currentSequence=d,this.sequenceIndex=g,this.state=n.SpecialStartSequence},f.prototype.stateBeforeTagName=function(d){if(d===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(d===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(d)){var g=d|32;this.sectionStart=this.index,!this.xmlMode&&g===c.TitleEnd[2]?this.startSpecial(c.TitleEnd,3):this.state=!this.xmlMode&&g===c.ScriptEnd[2]?n.BeforeSpecialS:n.InTagName}else d===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(d))},f.prototype.stateInTagName=function(d){a(d)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d))},f.prototype.stateBeforeClosingTagName=function(d){o(d)||(d===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(d)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},f.prototype.stateInClosingTagName=function(d){(d===r.Gt||o(d))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(d))},f.prototype.stateAfterClosingTagName=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeAttributeName=function(d){d===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):d===r.Slash?this.state=n.InSelfClosingTag:o(d)||(this.state=n.InAttributeName,this.sectionStart=this.index)},f.prototype.stateInSelfClosingTag=function(d){d===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(d)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d))},f.prototype.stateInAttributeName=function(d){(d===r.Eq||a(d))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(d))},f.prototype.stateAfterAttributeName=function(d){d===r.Eq?this.state=n.BeforeAttributeValue:d===r.Slash||d===r.Gt?(this.cbs.onattribend(l.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d)):o(d)||(this.cbs.onattribend(l.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},f.prototype.stateBeforeAttributeValue=function(d){d===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):d===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(d)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(d))},f.prototype.handleInAttributeValue=function(d,g){d===g||!this.decodeEntities&&this.fastForwardTo(g)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(g===r.DoubleQuote?l.Double:l.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&d===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},f.prototype.stateInAttributeValueDoubleQuotes=function(d){this.handleInAttributeValue(d,r.DoubleQuote)},f.prototype.stateInAttributeValueSingleQuotes=function(d){this.handleInAttributeValue(d,r.SingleQuote)},f.prototype.stateInAttributeValueNoQuotes=function(d){o(d)||d===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(l.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d)):this.decodeEntities&&d===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},f.prototype.stateBeforeDeclaration=function(d){d===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=d===r.Dash?n.BeforeComment:n.InDeclaration},f.prototype.stateInDeclaration=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},f.prototype.stateInProcessingInstruction=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeComment=function(d){d===r.Dash?(this.state=n.InCommentLike,this.currentSequence=c.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},f.prototype.stateInSpecialComment=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeSpecialS=function(d){var g=d|32;g===c.ScriptEnd[3]?this.startSpecial(c.ScriptEnd,4):g===c.StyleEnd[3]?this.startSpecial(c.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(d))},f.prototype.stateBeforeEntity=function(d){this.entityExcess=1,this.entityResult=0,d===r.Number?this.state=n.BeforeNumericEntity:d===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(d))},f.prototype.stateInNamedEntity=function(d){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,d),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var g=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(g){var b=(g>>14)-1;if(!this.allowLegacyEntity()&&d!==r.Semi)this.trieIndex+=b;else{var m=this.index-this.entityExcess+1;m>this.sectionStart&&this.emitPartial(this.sectionStart,m),this.entityResult=this.trieIndex,this.trieIndex+=b,this.entityExcess=0,this.sectionStart=this.index+1,b===0&&this.emitNamedEntity()}}},f.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var d=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(d){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},f.prototype.stateBeforeNumericEntity=function(d){(d|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(d))},f.prototype.emitNumericEntity=function(d){var g=this.index-this.entityExcess-1,b=g+2+ +(this.state===n.InHexEntity);b!==this.index&&(g>this.sectionStart&&this.emitPartial(this.sectionStart,g),this.sectionStart=this.index+Number(d),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},f.prototype.stateInNumericEntity=function(d){d===r.Semi?this.emitNumericEntity(!0):i(d)?(this.entityResult=this.entityResult*10+(d-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.stateInHexEntity=function(d){d===r.Semi?this.emitNumericEntity(!0):i(d)?(this.entityResult=this.entityResult*16+(d-r.Zero),this.entityExcess++):u(d)?(this.entityResult=this.entityResult*16+((d|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},f.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},f.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},f.prototype.parse=function(){for(;this.shouldContinue();){var d=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(d);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(d);break}case n.InSpecialTag:{this.stateInSpecialTag(d);break}case n.CDATASequence:{this.stateCDATASequence(d);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(d);break}case n.InAttributeName:{this.stateInAttributeName(d);break}case n.InCommentLike:{this.stateInCommentLike(d);break}case n.InSpecialComment:{this.stateInSpecialComment(d);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(d);break}case n.InTagName:{this.stateInTagName(d);break}case n.InClosingTagName:{this.stateInClosingTagName(d);break}case n.BeforeTagName:{this.stateBeforeTagName(d);break}case n.AfterAttributeName:{this.stateAfterAttributeName(d);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(d);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(d);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(d);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(d);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(d);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(d);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(d);break}case n.InDeclaration:{this.stateInDeclaration(d);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(d);break}case n.BeforeComment:{this.stateBeforeComment(d);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(d);break}case n.InNamedEntity:{this.stateInNamedEntity(d);break}case n.BeforeEntity:{this.stateBeforeEntity(d);break}case n.InHexEntity:{this.stateInHexEntity(d);break}case n.InNumericEntity:{this.stateInNumericEntity(d);break}default:this.stateBeforeNumericEntity(d)}this.index++}this.cleanup()},f.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},f.prototype.handleTrailingData=function(){var d=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,d,0):this.cbs.oncomment(this.sectionStart,d,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,d)},f.prototype.emitPartial=function(d,g){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(d,g):this.cbs.ontext(d,g)},f.prototype.emitCodePoint=function(d){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(d):this.cbs.ontextentity(d)},f}();t.default=h})(Es);var K3=F&&F.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),J3=F&&F.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Z3=F&&F.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&K3(e,t,r);return J3(e,t),e};Object.defineProperty(hn,"__esModule",{value:!0});hn.Parser=void 0;var Hn=Z3(Es),jl=mn,dr=new Set(["input","option","optgroup","select","button","datalist","textarea"]),re=new Set(["p"]),Al=new Set(["thead","tbody"]),Ol=new Set(["dd","dt"]),kl=new Set(["rt","rp"]),Q3=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",re],["h1",re],["h2",re],["h3",re],["h4",re],["h5",re],["h6",re],["select",dr],["input",dr],["output",dr],["button",dr],["datalist",dr],["textarea",dr],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Ol],["dt",Ol],["address",re],["article",re],["aside",re],["blockquote",re],["details",re],["div",re],["dl",re],["fieldset",re],["figcaption",re],["figure",re],["footer",re],["form",re],["header",re],["hr",re],["main",re],["nav",re],["ol",re],["pre",re],["section",re],["table",re],["ul",re],["rt",kl],["rp",kl],["tbody",Al],["tfoot",Al]]),e6=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Pl=new Set(["math","svg"]),_l=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),t6=/\s|\//,r6=function(){function t(e,r){r===void 0&&(r={});var n,o,a,i,s;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(o=r.lowerCaseAttributeNames)!==null&&o!==void 0?o:!r.xmlMode,this.tokenizer=new((a=r.Tokenizer)!==null&&a!==void 0?a:Hn.default)(this.options,this),(s=(i=this.cbs).onparserinit)===null||s===void 0||s.call(i,this)}return t.prototype.ontext=function(e,r){var n,o,a=this.getSlice(e,r);this.endIndex=r-1,(o=(n=this.cbs).ontext)===null||o===void 0||o.call(n,a),this.startIndex=r},t.prototype.ontextentity=function(e){var r,n,o=this.tokenizer.getSectionStart();this.endIndex=o-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,jl.fromCodePoint)(e)),this.startIndex=o},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&e6.has(e)},t.prototype.onopentagname=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},t.prototype.emitOpenTag=function(e){var r,n,o,a;this.openTagStart=this.startIndex,this.tagname=e;var i=!this.options.xmlMode&&Q3.get(e);if(i)for(;this.stack.length>0&&i.has(this.stack[this.stack.length-1]);){var s=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,s,!0)}this.isVoidElement(e)||(this.stack.push(e),Pl.has(e)?this.foreignContext.push(!0):_l.has(e)&&this.foreignContext.push(!1)),(a=(o=this.cbs).onopentagname)===null||a===void 0||a.call(o,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,o,a,i,s,u;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(Pl.has(l)||_l.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((o=(n=this.cbs).onopentagname)===null||o===void 0||o.call(n,"br"),(i=(a=this.cbs).onopentag)===null||i===void 0||i.call(a,"br",{},!0),(u=(s=this.cbs).onclosetag)===null||u===void 0||u.call(s,"br",!1));else{var c=this.stack.lastIndexOf(l);if(c!==-1)if(this.cbs.onclosetag)for(var h=this.stack.length-c;h--;)this.cbs.onclosetag(this.stack.pop(),h!==0);else this.stack.length=c;else!this.options.xmlMode&&l==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,o=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===o&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,o,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,jl.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,o;this.endIndex=r,(o=(n=this.cbs).onattribute)===null||o===void 0||o.call(n,this.attribname,this.attribvalue,e===Hn.QuoteType.Double?'"':e===Hn.QuoteType.Single?"'":e===Hn.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(t6),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(o),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(o),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var o,a,i,s;this.endIndex=r,(a=(o=this.cbs).oncomment)===null||a===void 0||a.call(o,this.getSlice(e,r-n)),(s=(i=this.cbs).oncommentend)===null||s===void 0||s.call(i),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var o,a,i,s,u,l,c,h,f,d;this.endIndex=r;var g=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((a=(o=this.cbs).oncdatastart)===null||a===void 0||a.call(o),(s=(i=this.cbs).ontext)===null||s===void 0||s.call(i,g),(l=(u=this.cbs).oncdataend)===null||l===void 0||l.call(u)):((h=(c=this.cbs).oncomment)===null||h===void 0||h.call(c,"[CDATA[".concat(g,"]]")),(d=(f=this.cbs).oncommentend)===null||d===void 0||d.call(f)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,o;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(o=(n=this.cbs).onparserinit)===null||o===void 0||o.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},t.prototype.parseChunk=function(e){this.write(e)},t.prototype.done=function(e){this.end(e)},t}();hn.Parser=r6;var wt={},Hr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function r(n){return n.type===e.Tag||n.type===e.Script||n.type===e.Style}t.isTag=r,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(Hr);var K={},Bt=F&&F.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),rn=F&&F.__assign||function(){return rn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},rn.apply(this,arguments)};Object.defineProperty(K,"__esModule",{value:!0});K.cloneNode=K.hasChildren=K.isDocument=K.isDirective=K.isComment=K.isText=K.isCDATA=K.isTag=K.Element=K.Document=K.CDATA=K.NodeWithChildren=K.ProcessingInstruction=K.Comment=K.Text=K.DataNode=K.Node=void 0;var Ae=Hr,js=function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),As(this,e)},t}();K.Node=js;var ia=function(t){Bt(e,t);function e(r){var n=t.call(this)||this;return n.data=r,n}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),e}(js);K.DataNode=ia;var ef=function(t){Bt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ae.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(ia);K.Text=ef;var tf=function(t){Bt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ae.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(ia);K.Comment=tf;var rf=function(t){Bt(e,t);function e(r,n){var o=t.call(this,n)||this;return o.name=r,o.type=Ae.ElementType.Directive,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(ia);K.ProcessingInstruction=rf;var sa=function(t){Bt(e,t);function e(r){var n=t.call(this)||this;return n.children=r,n}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),e}(js);K.NodeWithChildren=sa;var nf=function(t){Bt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ae.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(sa);K.CDATA=nf;var of=function(t){Bt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ae.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(sa);K.Document=of;var af=function(t){Bt(e,t);function e(r,n,o,a){o===void 0&&(o=[]),a===void 0&&(a=r==="script"?Ae.ElementType.Script:r==="style"?Ae.ElementType.Style:Ae.ElementType.Tag);var i=t.call(this,o)||this;return i.name=r,i.attribs=n,i.type=a,i}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var o,a;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(a=r["x-attribsPrefix"])===null||a===void 0?void 0:a[n]}})},enumerable:!1,configurable:!0}),e}(sa);K.Element=af;function sf(t){return(0,Ae.isTag)(t)}K.isTag=sf;function uf(t){return t.type===Ae.ElementType.CDATA}K.isCDATA=uf;function lf(t){return t.type===Ae.ElementType.Text}K.isText=lf;function cf(t){return t.type===Ae.ElementType.Comment}K.isComment=cf;function df(t){return t.type===Ae.ElementType.Directive}K.isDirective=df;function ff(t){return t.type===Ae.ElementType.Root}K.isDocument=ff;function n6(t){return Object.prototype.hasOwnProperty.call(t,"children")}K.hasChildren=n6;function As(t,e){e===void 0&&(e=!1);var r;if(lf(t))r=new ef(t.data);else if(cf(t))r=new tf(t.data);else if(sf(t)){var n=e?Ia(t.children):[],o=new af(t.name,rn({},t.attribs),n);n.forEach(function(u){return u.parent=o}),t.namespace!=null&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=rn({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=rn({},t["x-attribsPrefix"])),r=o}else if(uf(t)){var n=e?Ia(t.children):[],a=new nf(n);n.forEach(function(l){return l.parent=a}),r=a}else if(ff(t)){var n=e?Ia(t.children):[],i=new of(n);n.forEach(function(l){return l.parent=i}),t["x-mode"]&&(i["x-mode"]=t["x-mode"]),r=i}else if(df(t)){var s=new rf(t.name,t.data);t["x-name"]!=null&&(s["x-name"]=t["x-name"],s["x-publicId"]=t["x-publicId"],s["x-systemId"]=t["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(r.sourceCodeLocation=t.sourceCodeLocation),r}K.cloneNode=As;function Ia(t){for(var e=t.map(function(n){return As(n,!0)}),r=1;r<e.length;r++)e[r].prev=e[r-1],e[r-1].next=e[r];return e}(function(t){var e=F&&F.__createBinding||(Object.create?function(s,u,l,c){c===void 0&&(c=l);var h=Object.getOwnPropertyDescriptor(u,l);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[l]}}),Object.defineProperty(s,c,h)}:function(s,u,l,c){c===void 0&&(c=l),s[c]=u[l]}),r=F&&F.__exportStar||function(s,u){for(var l in s)l!=="default"&&!Object.prototype.hasOwnProperty.call(u,l)&&e(u,s,l)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=Hr,o=K;r(K,t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},i=function(){function s(u,l,c){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(c=l,l=a),typeof u=="object"&&(l=u,u=void 0),this.callback=u??null,this.options=l??a,this.elementCB=c??null}return s.prototype.onparserinit=function(u){this.parser=u},s.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(u){this.handleCallback(u)},s.prototype.onclosetag=function(){this.lastNode=null;var u=this.tagStack.pop();this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(u)},s.prototype.onopentag=function(u,l){var c=this.options.xmlMode?n.ElementType.Tag:void 0,h=new o.Element(u,l,void 0,c);this.addNode(h),this.tagStack.push(h)},s.prototype.ontext=function(u){var l=this.lastNode;if(l&&l.type===n.ElementType.Text)l.data+=u,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var c=new o.Text(u);this.addNode(c),this.lastNode=c}},s.prototype.oncomment=function(u){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=u;return}var l=new o.Comment(u);this.addNode(l),this.lastNode=l},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var u=new o.Text(""),l=new o.CDATA([u]);this.addNode(l),u.parent=l,this.lastNode=u},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(u,l){var c=new o.ProcessingInstruction(u,l);this.addNode(c)},s.prototype.handleCallback=function(u){if(typeof this.callback=="function")this.callback(u,this.dom);else if(u)throw u},s.prototype.addNode=function(u){var l=this.tagStack[this.tagStack.length-1],c=l.children[l.children.length-1];this.options.withStartIndices&&(u.startIndex=this.parser.startIndex),this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),l.children.push(u),c&&(u.prev=c,c.next=u),u.parent=l,this.lastNode=null},s}();t.DomHandler=i,t.default=i})(wt);var eo={},zt={},Nn={},pf={},Jt={},Os={};Object.defineProperty(Os,"__esModule",{value:!0});function Fn(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}Os.default=new Map(Fn([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(Fn([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(Fn([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(Fn([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var Eo={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(o,a){return o.codePointAt(a)}:function(o,a){return(o.charCodeAt(a)&64512)===55296?(o.charCodeAt(a)-55296)*1024+o.charCodeAt(a+1)-56320+65536:o.charCodeAt(a)};function r(o){for(var a="",i=0,s;(s=t.xmlReplacer.exec(o))!==null;){var u=s.index,l=o.charCodeAt(u),c=e.get(l);c!==void 0?(a+=o.substring(i,u)+c,i=u+1):(a+="".concat(o.substring(i,u),"&#x").concat((0,t.getCodePoint)(o,u).toString(16),";"),i=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return a+o.substr(i)}t.encodeXML=r,t.escape=r;function n(o,a){return function(s){for(var u,l=0,c="";u=o.exec(s);)l!==u.index&&(c+=s.substring(l,u.index)),c+=a.get(u[0].charCodeAt(0)),l=u.index+1;return c+s.substring(l)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(Eo);var o6=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.encodeNonAsciiHTML=Jt.encodeHTML=void 0;var a6=o6(Os),hf=Eo,i6=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function s6(t){return mf(i6,t)}Jt.encodeHTML=s6;function u6(t){return mf(hf.xmlReplacer,t)}Jt.encodeNonAsciiHTML=u6;function mf(t,e){for(var r="",n=0,o;(o=t.exec(e))!==null;){var a=o.index;r+=e.substring(n,a);var i=e.charCodeAt(a),s=a6.default.get(i);if(typeof s=="object"){if(a+1<e.length){var u=e.charCodeAt(a+1),l=typeof s.n=="number"?s.n===u?s.o:void 0:s.n.get(u);if(l!==void 0){r+=l,n=t.lastIndex+=1;continue}}s=s.v}if(s!==void 0)r+=s,n=a+1;else{var c=(0,hf.getCodePoint)(e,a);r+="&#x".concat(c.toString(16),";"),n=t.lastIndex+=+(c!==i)}}return r+e.substr(n)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=mn,r=Jt,n=Eo,o;(function(f){f[f.XML=0]="XML",f[f.HTML=1]="HTML"})(o=t.EntityLevel||(t.EntityLevel={}));var a;(function(f){f[f.UTF8=0]="UTF8",f[f.ASCII=1]="ASCII",f[f.Extensive=2]="Extensive",f[f.Attribute=3]="Attribute",f[f.Text=4]="Text"})(a=t.EncodingMode||(t.EncodingMode={}));function i(f,d){d===void 0&&(d=o.XML);var g=typeof d=="number"?d:d.level;if(g===o.HTML){var b=typeof d=="object"?d.mode:void 0;return(0,e.decodeHTML)(f,b)}return(0,e.decodeXML)(f)}t.decode=i;function s(f,d){var g;d===void 0&&(d=o.XML);var b=typeof d=="number"?{level:d}:d;return(g=b.mode)!==null&&g!==void 0||(b.mode=e.DecodingMode.Strict),i(f,b)}t.decodeStrict=s;function u(f,d){d===void 0&&(d=o.XML);var g=typeof d=="number"?{level:d}:d;return g.mode===a.UTF8?(0,n.escapeUTF8)(f):g.mode===a.Attribute?(0,n.escapeAttribute)(f):g.mode===a.Text?(0,n.escapeText)(f):g.level===o.HTML?g.mode===a.ASCII?(0,r.encodeNonAsciiHTML)(f):(0,r.encodeHTML)(f):(0,n.encodeXML)(f)}t.encode=u;var l=Eo;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return l.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return l.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return l.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return l.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return l.escapeText}});var c=Jt;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return c.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return c.encodeHTML}});var h=mn;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return h.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return h.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return h.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(pf);var Er={};Object.defineProperty(Er,"__esModule",{value:!0});Er.attributeNames=Er.elementNames=void 0;Er.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]}));Er.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}));var pr=F&&F.__assign||function(){return pr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},pr.apply(this,arguments)},l6=F&&F.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),c6=F&&F.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),d6=F&&F.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&l6(e,t,r);return c6(e,t),e};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.render=void 0;var dt=d6(Hr),No=pf,gf=Er,f6=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function p6(t){return t.replace(/"/g,"&quot;")}function h6(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?p6:e.xmlMode||e.encodeEntities!=="utf8"?No.encodeXML:No.escapeAttribute;return Object.keys(t).map(function(o){var a,i,s=(a=t[o])!==null&&a!==void 0?a:"";return e.xmlMode==="foreign"&&(o=(i=gf.attributeNames.get(o))!==null&&i!==void 0?i:o),!e.emptyAttrs&&!e.xmlMode&&s===""?o:"".concat(o,'="').concat(n(s),'"')}).join(" ")}}var Rl=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function ua(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",o=0;o<r.length;o++)n+=m6(r[o],e);return n}Nn.render=ua;Nn.default=ua;function m6(t,e){switch(t.type){case dt.Root:return ua(t.children,e);case dt.Doctype:case dt.Directive:return y6(t);case dt.Comment:return S6(t);case dt.CDATA:return w6(t);case dt.Script:case dt.Style:case dt.Tag:return v6(t,e);case dt.Text:return x6(t,e)}}var g6=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),b6=new Set(["svg","math"]);function v6(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=gf.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&g6.has(t.parent.name)&&(e=pr(pr({},e),{xmlMode:!1}))),!e.xmlMode&&b6.has(t.name)&&(e=pr(pr({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),o=h6(t.attribs,e);return o&&(n+=" ".concat(o)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&Rl.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=ua(t.children,e)),(e.xmlMode||!Rl.has(t.name))&&(n+="</".concat(t.name,">"))),n}function y6(t){return"<".concat(t.data,">")}function x6(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&f6.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,No.encodeXML)(n):(0,No.escapeText)(n)),n}function w6(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function S6(t){return"<!--".concat(t.data,"-->")}var C6=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zt,"__esModule",{value:!0});zt.getOuterHTML=bf;zt.getInnerHTML=T6;zt.getText=to;zt.textContent=bi;zt.innerText=vi;var et=wt,E6=C6(Nn),N6=Hr;function bf(t,e){return(0,E6.default)(t,e)}function T6(t,e){return(0,et.hasChildren)(t)?t.children.map(function(r){return bf(r,e)}).join(""):""}function to(t){return Array.isArray(t)?t.map(to).join(""):(0,et.isTag)(t)?t.name==="br"?`
236
- `:to(t.children):(0,et.isCDATA)(t)?to(t.children):(0,et.isText)(t)?t.data:""}function bi(t){return Array.isArray(t)?t.map(bi).join(""):(0,et.hasChildren)(t)&&!(0,et.isComment)(t)?bi(t.children):(0,et.isText)(t)?t.data:""}function vi(t){return Array.isArray(t)?t.map(vi).join(""):(0,et.hasChildren)(t)&&(t.type===N6.ElementType.Tag||(0,et.isCDATA)(t))?vi(t.children):(0,et.isText)(t)?t.data:""}var st={};Object.defineProperty(st,"__esModule",{value:!0});st.getChildren=vf;st.getParent=yf;st.getSiblings=j6;st.getAttributeValue=A6;st.hasAttrib=O6;st.getName=k6;st.nextElementSibling=P6;st.prevElementSibling=_6;var ks=wt;function vf(t){return(0,ks.hasChildren)(t)?t.children:[]}function yf(t){return t.parent||null}function j6(t){var e,r,n=yf(t);if(n!=null)return vf(n);for(var o=[t],a=t.prev,i=t.next;a!=null;)o.unshift(a),e=a,a=e.prev;for(;i!=null;)o.push(i),r=i,i=r.next;return o}function A6(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function O6(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function k6(t){return t.name}function P6(t){for(var e,r=t.next;r!==null&&!(0,ks.isTag)(r);)e=r,r=e.next;return r}function _6(t){for(var e,r=t.prev;r!==null&&!(0,ks.isTag)(r);)e=r,r=e.prev;return r}var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.removeElement=Tn;Ht.replaceElement=R6;Ht.appendChild=I6;Ht.append=D6;Ht.prependChild=M6;Ht.prepend=L6;function Tn(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function R6(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var o=e.parent=t.parent;if(o){var a=o.children;a[a.lastIndexOf(t)]=e,t.parent=null}}function I6(t,e){if(Tn(e),e.next=null,e.parent=t,t.children.push(e)>1){var r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function D6(t,e){Tn(e);var r=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){var o=r.children;o.splice(o.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function M6(t,e){if(Tn(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var r=t.children[1];r.prev=e,e.next=r}else e.next=null}function L6(t,e){Tn(e);var r=t.parent;if(r){var n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}var Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.filter=$6;Ct.find=xf;Ct.findOneChild=B6;Ct.findOne=wf;Ct.existsOne=Sf;Ct.findAll=z6;var Zt=wt;function $6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),xf(t,Array.isArray(e)?e:[e],r,n)}function xf(t,e,r,n){for(var o=[],a=[Array.isArray(e)?e:[e]],i=[0];;){if(i[0]>=a[0].length){if(i.length===1)return o;a.shift(),i.shift();continue}var s=a[0][i[0]++];if(t(s)&&(o.push(s),--n<=0))return o;r&&(0,Zt.hasChildren)(s)&&s.children.length>0&&(i.unshift(0),a.unshift(s.children))}}function B6(t,e){return e.find(t)}function wf(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],o=0;o<n.length;o++){var a=n[o];if((0,Zt.isTag)(a)&&t(a))return a;if(r&&(0,Zt.hasChildren)(a)&&a.children.length>0){var i=wf(t,a.children,!0);if(i)return i}}return null}function Sf(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,Zt.isTag)(r)&&t(r)||(0,Zt.hasChildren)(r)&&Sf(t,r.children)})}function z6(t,e){for(var r=[],n=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=n[0].length){if(n.length===1)return r;n.shift(),o.shift();continue}var a=n[0][o[0]++];(0,Zt.isTag)(a)&&t(a)&&r.push(a),(0,Zt.hasChildren)(a)&&a.children.length>0&&(o.unshift(0),n.unshift(a.children))}}var Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et.testElement=F6;Et.getElements=q6;Et.getElementById=U6;Et.getElementsByTagName=V6;Et.getElementsByClassName=W6;Et.getElementsByTagType=G6;var Wt=wt,jn=Ct,To={tag_name:function(t){return typeof t=="function"?function(e){return(0,Wt.isTag)(e)&&t(e.name)}:t==="*"?Wt.isTag:function(e){return(0,Wt.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,Wt.isText)(e)&&t(e.data)}:function(e){return(0,Wt.isText)(e)&&e.data===t}}};function Ps(t,e){return typeof e=="function"?function(r){return(0,Wt.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,Wt.isTag)(r)&&r.attribs[t]===e}}function H6(t,e){return function(r){return t(r)||e(r)}}function Cf(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(To,r)?To[r](n):Ps(r,n)});return e.length===0?null:e.reduce(H6)}function F6(t,e){var r=Cf(t);return r?r(e):!0}function q6(t,e,r,n){n===void 0&&(n=1/0);var o=Cf(t);return o?(0,jn.filter)(o,e,r,n):[]}function U6(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,jn.findOne)(Ps("id",t),e,r)}function V6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,jn.filter)(To.tag_name(t),e,r,n)}function W6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,jn.filter)(Ps("class",t),e,r,n)}function G6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,jn.filter)(To.tag_type(t),e,r,n)}var nr={};Object.defineProperty(nr,"__esModule",{value:!0});nr.DocumentPosition=void 0;nr.removeSubsets=Y6;nr.compareDocumentPosition=Ef;nr.uniqueSort=X6;var Il=wt;function Y6(t){for(var e=t.length;--e>=0;){var r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(var n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Fe;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Fe||(nr.DocumentPosition=Fe={}));function Ef(t,e){var r=[],n=[];if(t===e)return 0;for(var o=(0,Il.hasChildren)(t)?t:t.parent;o;)r.unshift(o),o=o.parent;for(o=(0,Il.hasChildren)(e)?e:e.parent;o;)n.unshift(o),o=o.parent;for(var a=Math.min(r.length,n.length),i=0;i<a&&r[i]===n[i];)i++;if(i===0)return Fe.DISCONNECTED;var s=r[i-1],u=s.children,l=r[i],c=n[i];return u.indexOf(l)>u.indexOf(c)?s===e?Fe.FOLLOWING|Fe.CONTAINED_BY:Fe.FOLLOWING:s===t?Fe.PRECEDING|Fe.CONTAINS:Fe.PRECEDING}function X6(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=Ef(e,r);return n&Fe.PRECEDING?-1:n&Fe.FOLLOWING?1:0}),t}var _s={};Object.defineProperty(_s,"__esModule",{value:!0});_s.getFeed=J6;var K6=zt,An=Et;function J6(t){var e=jo(r4,t);return e?e.name==="feed"?Z6(e):Q6(e):null}function Z6(t){var e,r=t.children,n={type:"atom",items:(0,An.getElementsByTagName)("entry",r).map(function(i){var s,u=i.children,l={media:Nf(u)};je(l,"id","id",u),je(l,"title","title",u);var c=(s=jo("link",u))===null||s===void 0?void 0:s.attribs.href;c&&(l.link=c);var h=kt("summary",u)||kt("content",u);h&&(l.description=h);var f=kt("updated",u);return f&&(l.pubDate=new Date(f)),l})};je(n,"id","id",r),je(n,"title","title",r);var o=(e=jo("link",r))===null||e===void 0?void 0:e.attribs.href;o&&(n.link=o),je(n,"description","subtitle",r);var a=kt("updated",r);return a&&(n.updated=new Date(a)),je(n,"author","email",r,!0),n}function Q6(t){var e,r,n=(r=(e=jo("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],o={type:t.name.substr(0,3),id:"",items:(0,An.getElementsByTagName)("item",t.children).map(function(i){var s=i.children,u={media:Nf(s)};je(u,"id","guid",s),je(u,"title","title",s),je(u,"link","link",s),je(u,"description","description",s);var l=kt("pubDate",s)||kt("dc:date",s);return l&&(u.pubDate=new Date(l)),u})};je(o,"title","title",n),je(o,"link","link",n),je(o,"description","description",n);var a=kt("lastBuildDate",n);return a&&(o.updated=new Date(a)),je(o,"author","managingEditor",n,!0),o}var e4=["url","type","lang"],t4=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Nf(t){return(0,An.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},o=0,a=e4;o<a.length;o++){var i=a[o];r[i]&&(n[i]=r[i])}for(var s=0,u=t4;s<u.length;s++){var i=u[s];r[i]&&(n[i]=parseInt(r[i],10))}return r.expression&&(n.expression=r.expression),n})}function jo(t,e){return(0,An.getElementsByTagName)(t,e,!0,1)[0]}function kt(t,e,r){return r===void 0&&(r=!1),(0,K6.textContent)((0,An.getElementsByTagName)(t,e,r,1)).trim()}function je(t,e,r,n,o){o===void 0&&(o=!1);var a=kt(r,n,o);a&&(t[e]=a)}function r4(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=F&&F.__createBinding||(Object.create?function(o,a,i,s){s===void 0&&(s=i);var u=Object.getOwnPropertyDescriptor(a,i);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(o,s,u)}:function(o,a,i,s){s===void 0&&(s=i),o[s]=a[i]}),r=F&&F.__exportStar||function(o,a){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,o,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(zt,t),r(st,t),r(Ht,t),r(Ct,t),r(Et,t),r(nr,t),r(_s,t);var n=wt;Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return n.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return n.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return n.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return n.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return n.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return n.hasChildren}})})(eo);(function(t){var e=F&&F.__createBinding||(Object.create?function(v,x,S,C){C===void 0&&(C=S);var j=Object.getOwnPropertyDescriptor(x,S);(!j||("get"in j?!x.__esModule:j.writable||j.configurable))&&(j={enumerable:!0,get:function(){return x[S]}}),Object.defineProperty(v,C,j)}:function(v,x,S,C){C===void 0&&(C=S),v[C]=x[S]}),r=F&&F.__setModuleDefault||(Object.create?function(v,x){Object.defineProperty(v,"default",{enumerable:!0,value:x})}:function(v,x){v.default=x}),n=F&&F.__importStar||function(v){if(v&&v.__esModule)return v;var x={};if(v!=null)for(var S in v)S!=="default"&&Object.prototype.hasOwnProperty.call(v,S)&&e(x,v,S);return r(x,v),x},o=F&&F.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var a=hn,i=hn;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return i.Parser}});var s=wt,u=wt;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}});function l(v,x){var S=new s.DomHandler(void 0,x);return new a.Parser(S,x).end(v),S.root}t.parseDocument=l;function c(v,x){return l(v,x).children}t.parseDOM=c;function h(v,x,S){var C=new s.DomHandler(v,x,S);return new a.Parser(C,x)}t.createDomStream=h;var f=Es;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(f).default}}),t.ElementType=n(Hr);var d=eo,g=eo;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return g.getFeed}});var b={xmlMode:!0};function m(v,x){return x===void 0&&(x=b),(0,d.getFeed)(c(v,x))}t.parseFeed=m,t.DomUtils=n(eo)})(Qd);var n4=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Rs={};Object.defineProperty(Rs,"__esModule",{value:!0});/*!
231
+ Please only use useNode in components that are children of the <Editor /> component.`;function rl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Re(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?rl(Object(r),!0).forEach(function(n){ve(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rl(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Qc(n.key),n)}}function $r(t,e,r){return e&&Fx(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ve(t,e,r){return(e=Qc(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gr(t){return gr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gr(t)}function Za(t,e){return Za=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Za(t,e)}function Pa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qa(){return Qa=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(a,i){for(;!Object.prototype.hasOwnProperty.call(a,i)&&(a=gr(a))!==null;);return a}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},Qa.apply(this,arguments)}function Xc(t,e){return Kc(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var a,i,s,u,l=[],c=!0,h=!1;try{if(s=(o=o.call(r)).next,n===0){if(Object(o)!==o)return;c=!1}else for(;!(c=(a=s.call(o)).done)&&(l.push(a.value),l.length!==n);c=!0);}catch(f){h=!0,i=f}finally{try{if(!c&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(h)throw i}}return l}}(t,e)||is(t,e)||Zc()}function Ee(t){return function(e){if(Array.isArray(e))return ei(e)}(t)||Jc(t)||is(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
232
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Kc(t){if(Array.isArray(t))return t}function Jc(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function is(t,e){if(t){if(typeof t=="string")return ei(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ei(t,e):void 0}}function ei(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
233
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qc(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,"string");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}var fe={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},qx=function(){function t(){Lr(this,t),ve(this,"timeline",[]),ve(this,"pointer",-1)}return $r(t,[{key:"add",value:function(e,r){e.length===0&&r.length===0||(this.pointer=this.pointer+1,this.timeline.length=this.pointer,this.timeline[this.pointer]={patches:e,inversePatches:r,timestamp:Date.now()})}},{key:"throttleAdd",value:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:500;if(e.length!==0||r.length!==0){if(this.timeline.length&&this.pointer>=0){var o=this.timeline[this.pointer],a=o.patches,i=o.inversePatches,s=o.timestamp;if(new Date().getTime()-s<n)return void(this.timeline[this.pointer]={timestamp:s,patches:[].concat(Ee(a),Ee(e)),inversePatches:[].concat(Ee(r),Ee(i))})}this.add(e,r)}}},{key:"merge",value:function(e,r){if(e.length!==0||r.length!==0)if(this.timeline.length&&this.pointer>=0){var n=this.timeline[this.pointer],o=n.inversePatches;this.timeline[this.pointer]={timestamp:n.timestamp,patches:[].concat(Ee(n.patches),Ee(e)),inversePatches:[].concat(Ee(r),Ee(o))}}else this.add(e,r)}},{key:"clear",value:function(){this.timeline=[],this.pointer=-1}},{key:"canUndo",value:function(){return this.pointer>=0}},{key:"canRedo",value:function(){return this.pointer<this.timeline.length-1}},{key:"undo",value:function(e){if(this.canUndo()){var r=this.timeline[this.pointer].inversePatches;return this.pointer=this.pointer-1,ju(e,r)}}},{key:"redo",value:function(e){if(this.canRedo())return this.pointer=this.pointer+1,ju(e,this.timeline[this.pointer].patches)}}]),t}();function Ux(t,e,r,n){var o,a=w.useMemo(function(){return new qx},[]),i=w.useRef([]),s=w.useRef(function(){});typeof t=="function"?o=t:(o=t.methods,i.current=t.ignoreHistoryForActions,s.current=t.normalizeHistory);var u=w.useRef(n);u.current=n;var l=w.useRef(e),c=w.useMemo(function(){var m=s.current,v=i.current,x=u.current;return function(S,C){var j,k=r&&nl(r,function(){return S},a),R=Xc(Tu(S,function(E){var T,P;switch(C.type){case fe.UNDO:return a.undo(E);case fe.REDO:return a.redo(E);case fe.CLEAR:return a.clear(),Re({},E);case fe.IGNORE:case fe.MERGE:case fe.THROTTLE:var I,N=Kc(P=C.payload)||Jc(P)||is(P)||Zc(),O=N[0],A=N.slice(1);(I=o(E,k))[O].apply(I,Ee(A));break;default:(T=o(E,k))[C.type].apply(T,Ee(C.payload))}}),3),M=R[0],D=R[1],$=R[2];return j=M,x&&x(M,S,{type:C.type,params:C.payload,patches:D},k,function(E){var T=Tu(M,E);j=T[0],D=[].concat(Ee(D),Ee(T[1])),$=[].concat(Ee(T[2]),Ee($))}),[fe.UNDO,fe.REDO].includes(C.type)&&m&&(j=Gh(j,m)),[].concat(Ee(v),[fe.UNDO,fe.REDO,fe.IGNORE,fe.CLEAR]).includes(C.type)||(C.type===fe.THROTTLE?a.throttleAdd(D,$,C.config&&C.config.rate):C.type===fe.MERGE?a.merge(D,$):a.add(D,$)),j}},[a,o,r]),h=w.useCallback(function(){return l.current},[]),f=w.useMemo(function(){return new Vx(h)},[h]),d=w.useCallback(function(m){var v=c(l.current,m);l.current=v,f.notify()},[c,f]);w.useEffect(function(){f.notify()},[f]);var g=w.useMemo(function(){return r?nl(r,function(){return l.current},a):[]},[a,r]),b=w.useMemo(function(){var m=Object.keys(o(null,null)),v=i.current;return Re(Re({},m.reduce(function(x,S){return x[S]=function(){for(var C=arguments.length,j=new Array(C),k=0;k<C;k++)j[k]=arguments[k];return d({type:S,payload:j})},x},{})),{},{history:{undo:function(){return d({type:fe.UNDO})},redo:function(){return d({type:fe.REDO})},clear:function(){return d({type:fe.CLEAR})},throttle:function(x){return Re({},m.filter(function(S){return!v.includes(S)}).reduce(function(S,C){return S[C]=function(){for(var j=arguments.length,k=new Array(j),R=0;R<j;R++)k[R]=arguments[R];return d({type:fe.THROTTLE,payload:[C].concat(k),config:{rate:x}})},S},{}))},ignore:function(){return Re({},m.filter(function(x){return!v.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var C=arguments.length,j=new Array(C),k=0;k<C;k++)j[k]=arguments[k];return d({type:fe.IGNORE,payload:[S].concat(j)})},x},{}))},merge:function(){return Re({},m.filter(function(x){return!v.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var C=arguments.length,j=new Array(C),k=0;k<C;k++)j[k]=arguments[k];return d({type:fe.MERGE,payload:[S].concat(j)})},x},{}))}}})},[d,o]);return w.useMemo(function(){return{getState:h,subscribe:function(m,v,x){return f.subscribe(m,v,x)},actions:b,query:g,history:a}},[b,g,f,h,a])}function nl(t,e,r){var n=Object.keys(t()).reduce(function(o,a){return Re(Re({},o),{},ve({},a,function(){var i;return(i=t(e()))[a].apply(i,arguments)}))},{});return Re(Re({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}zh(),Bh();var Vx=function(){function t(e){Lr(this,t),ve(this,"getState",void 0),ve(this,"subscribers",[]),this.getState=e}return $r(t,[{key:"subscribe",value:function(e,r,n){var o=this,a=new Wx(function(){return e(o.getState())},r,n);return this.subscribers.push(a),this.unsubscribe.bind(this,a)}},{key:"unsubscribe",value:function(e){if(this.subscribers.length){var r=this.subscribers.indexOf(e);if(r>-1)return this.subscribers.splice(r,1)}}},{key:"notify",value:function(){this.subscribers.forEach(function(e){return e.collect()})}}]),t}(),Wx=function(){function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];Lr(this,t),ve(this,"collected",void 0),ve(this,"collector",void 0),ve(this,"onChange",void 0),ve(this,"id",void 0),this.collector=e,this.onChange=r,n&&this.collect()}return $r(t,[{key:"collect",value:function(){try{var e=this.collector();Sx(e,this.collected)||(this.collected=e,this.onChange&&this.onChange(this.collected))}catch(r){console.warn(r)}}}]),t}(),un=function(t){var e=t.getBoundingClientRect(),r=e.x,n=e.y,o=e.top,a=e.left,i=e.bottom,s=e.right,u=e.width,l=e.height,c=window.getComputedStyle(t),h={left:parseInt(c.marginLeft),right:parseInt(c.marginRight),bottom:parseInt(c.marginBottom),top:parseInt(c.marginTop)},f={left:parseInt(c.paddingLeft),right:parseInt(c.paddingRight),bottom:parseInt(c.paddingBottom),top:parseInt(c.paddingTop)};return{x:r,y:n,top:o,left:a,bottom:i,right:s,width:u,height:l,outerWidth:Math.round(u+h.left+h.right),outerHeight:Math.round(l+h.top+h.bottom),margin:h,padding:f,inFlow:t.parentElement&&!!function(d){var g=getComputedStyle(d);if(!(c.overflow&&c.overflow!=="visible"||g.float!=="none"||g.display==="grid"||g.display==="flex"&&g["flex-direction"]!=="column")){switch(c.position){case"static":case"relative":break;default:return}switch(t.tagName){case"TR":case"TBODY":case"THEAD":case"TFOOT":return!0}switch(c.display){case"block":case"list-item":case"table":case"flex":case"grid":return!0}}}(t.parentElement)}};function Gx(t,e){const{subscribe:r,getState:n,actions:o,query:a}=t,i=w.useRef(!0),s=w.useRef(null),u=w.useRef(e);u.current=e;const l=w.useCallback(f=>({...f,actions:o,query:a}),[o,a]);i.current&&e&&(s.current=e(n(),a),i.current=!1);const[c,h]=w.useState(l(s.current));return w.useEffect(()=>{let f;return u.current&&(f=r(d=>u.current(d,a),d=>{h(l(d))})),()=>{f&&f()}},[l,a,r]),c}var xr,ed=function(){return Nx(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},Yx=function(){function t(){Lr(this,t),ve(this,"isEnabled",!0),ve(this,"elementIdMap",new WeakMap),ve(this,"registry",new Map)}return $r(t,[{key:"getElementId",value:function(e){var r=this.elementIdMap.get(e);if(r)return r;var n=ed();return this.elementIdMap.set(e,n),n}},{key:"getConnectorId",value:function(e,r){var n=this.getElementId(e);return"".concat(r,"--").concat(n)}},{key:"register",value:function(e,r){var n=this,o=this.getByElement(e,r.name);if(o){if(Ex(r.required,o.required))return o;this.getByElement(e,r.name).disable()}var a=null,i=this.getConnectorId(e,r.name);return this.registry.set(i,{id:i,required:r.required,enable:function(){a&&a(),a=r.connector(e,r.required,r.options)},disable:function(){a&&a()},remove:function(){return n.remove(i)}}),this.isEnabled&&this.registry.get(i).enable(),this.registry.get(i)}},{key:"get",value:function(e){return this.registry.get(e)}},{key:"remove",value:function(e){var r=this.get(e);r&&(r.disable(),this.registry.delete(r.id))}},{key:"enable",value:function(){this.isEnabled=!0,this.registry.forEach(function(e){e.enable()})}},{key:"disable",value:function(){this.isEnabled=!1,this.registry.forEach(function(e){e.disable()})}},{key:"getByElement",value:function(e,r){return this.get(this.getConnectorId(e,r))}},{key:"removeByElement",value:function(e,r){return this.remove(this.getConnectorId(e,r))}},{key:"clear",value:function(){this.disable(),this.elementIdMap=new WeakMap,this.registry=new Map}}]),t}();(function(t){t[t.HandlerDisabled=0]="HandlerDisabled",t[t.HandlerEnabled=1]="HandlerEnabled"})(xr||(xr={}));var td=function(){function t(e){Lr(this,t),ve(this,"options",void 0),ve(this,"registry",new Yx),ve(this,"subscribers",new Set),this.options=e}return $r(t,[{key:"listen",value:function(e){var r=this;return this.subscribers.add(e),function(){return r.subscribers.delete(e)}}},{key:"disable",value:function(){this.onDisable&&this.onDisable(),this.registry.disable(),this.subscribers.forEach(function(e){e(xr.HandlerDisabled)})}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach(function(e){e(xr.HandlerEnabled)})}},{key:"cleanup",value:function(){this.disable(),this.subscribers.clear(),this.registry.clear()}},{key:"addCraftEventListener",value:function(e,r,n,o){var a=function(i){(function(s,u,l){s.craft||(s.craft={stopPropagation:function(){},blockedEvents:{}});for(var c=s.craft&&s.craft.blockedEvents[u]||[],h=0;h<c.length;h++){var f=c[h];if(l!==f&&l.contains(f))return!0}return!1})(i,r,e)||(i.craft.stopPropagation=function(){i.craft.blockedEvents[r]||(i.craft.blockedEvents[r]=[]),i.craft.blockedEvents[r].push(e)},n(i))};return e.addEventListener(r,a,o),function(){return e.removeEventListener(r,a,o)}}},{key:"createConnectorsUsage",value:function(){var e=this,r=this.handlers(),n=new Set,o=!1,a=new Map;return{connectors:Object.entries(r).reduce(function(i,s){var u=Xc(s,2),l=u[0],c=u[1];return Re(Re({},i),{},ve({},l,function(h,f,d){var g=function(){var b=e.registry.register(h,{required:f,name:l,options:d,connector:c});return n.add(b.id),b};return a.set(e.registry.getConnectorId(h,l),g),o&&g(),h}))},{}),register:function(){o=!0,a.forEach(function(i){i()})},cleanup:function(){o=!1,n.forEach(function(i){return e.registry.remove(i)})}}}},{key:"derive",value:function(e,r){return new e(this,r)}},{key:"createProxyHandlers",value:function(e,r){var n=[],o=e.handlers(),a=new Proxy(o,{get:function(i,s,u){return s in o==0?Reflect.get(i,s,u):function(l){for(var c=arguments.length,h=new Array(c>1?c-1:0),f=1;f<c;f++)h[f-1]=arguments[f];var d=o[s].apply(o,[l].concat(h));d&&n.push(d)}}});return r(a),function(){n.forEach(function(i){i()})}}},{key:"reflect",value:function(e){return this.createProxyHandlers(this,e)}}]),t}(),Xx=function(t){(function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),i&&Za(a,i)})(o,td);var e,r,n=(e=o,r=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var a,i=gr(e);if(r){var s=gr(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return function(u,l){if(l&&(typeof l=="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pa(u)}(this,a)});function o(a,i){var s;return Lr(this,o),ve(Pa(s=n.call(this,i)),"derived",void 0),ve(Pa(s),"unsubscribeParentHandlerListener",void 0),s.derived=a,s.options=i,s.unsubscribeParentHandlerListener=s.derived.listen(function(u){switch(u){case xr.HandlerEnabled:return s.enable();case xr.HandlerDisabled:return s.disable();default:return}}),s}return $r(o,[{key:"inherit",value:function(a){return this.createProxyHandlers(this.derived,a)}},{key:"cleanup",value:function(){Qa(gr(o.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),o}();function ol(t,e){e&&(typeof t=="function"?t(e):t.current=e)}function Kx(t,e){const r=t.ref;return oe(typeof r!="string","Cannot connect to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),w.cloneElement(t,r?{ref:n=>{ol(r,n),ol(e,n)}}:{ref:e})}function Jx(t){return(e=null,...r)=>{if(!w.isValidElement(e)){if(!e)return;const o=e;return o&&t(o,...r),o}const n=e;return function(o){if(typeof o.type!="string")throw new Error}(n),Kx(n,t)}}function rd(t){return Object.keys(t).reduce((e,r)=>(e[r]=Jx((...n)=>t[r](...n)),e),{})}const Zx=({style:t,className:e,parentDom:r})=>{const n=w.createElement("div",{className:e,style:{position:"fixed",display:"block",opacity:1,borderStyle:"solid",borderWidth:"1px",borderColor:"transparent",zIndex:99999,...t}});return r&&r.ownerDocument!==document?Li.createPortal(n,r.ownerDocument.body):n};var It=function(t,e){var r="Deprecation warning: ".concat(t," will be deprecated in future relases."),n=e.suggest,o=e.doc;n&&(r+=" Please use ".concat(n," instead.")),o&&(r+="(".concat(o,")")),console.warn(r)},nd=function(){return typeof window<"u"},Qx=function(){return nd()&&/Linux/i.test(window.navigator.userAgent)},e2=function(){return nd()&&/Chrome/i.test(window.navigator.userAgent)},t2=Qt;(function(){try{var t=t2(Object,"defineProperty");return t({},"",{}),t}catch{}})();var mo={exports:{}};mo.exports;(function(t,e){var r=ot,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var h=l.length,f=s?s(h):new l.constructor(h);return l.copy(f),f}t.exports=u})(mo,mo.exports);mo.exports;var al=Uo,il=al?al.prototype:void 0;il&&il.valueOf;var sl=as;sl&&sl.isMap;var ul=as;ul&&ul.isSet;typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const od=w.createContext(null),ad=({id:t,related:e=!1,children:r})=>w.createElement(od.Provider,{value:{id:t,related:e}},r);function ll(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function se(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ll(Object(r),!0).forEach(function(n){be(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ll(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ti(t){return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ti(t)}function Xo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r2(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ud(n.key),n)}}function Ko(t,e,r){return e&&r2(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function be(t,e,r){return(e=ud(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ss(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ri(t,e)}function go(t){return go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},go(t)}function ri(t,e){return ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ri(t,e)}function us(t,e){if(t==null)return{};var r,n,o=function(i,s){if(i==null)return{};var u,l,c={},h=Object.keys(i);for(l=0;l<h.length;l++)s.indexOf(u=h[l])>=0||(c[u]=i[u]);return c}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)e.indexOf(r=a[n])>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Qr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ls(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,n=go(t);if(e){var o=go(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(a,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qr(a)}(this,r)}}function id(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var a,i,s,u,l=[],c=!0,h=!1;try{if(s=(o=o.call(r)).next,n!==0)for(;!(c=(a=s.call(o)).done)&&(l.push(a.value),l.length!==n);c=!0);}catch(f){h=!0,i=f}finally{try{if(!c&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(h)throw i}}return l}}(t,e)||sd(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
234
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ln(t){return function(e){if(Array.isArray(e))return ni(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||sd(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
235
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function sd(t,e){if(t){if(typeof t=="string")return ni(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ni(t,e):void 0}}function ni(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ud(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,"string");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}const cs=w.createContext(null);var ld=w.createContext(null),cd=function(){return w.useContext(ld)};function er(t){var e=cd(),r=w.useContext(cs);oe(r,zx);var n=Gx(r,t),o=w.useMemo(function(){return e&&e.createConnectorsUsage()},[e]);w.useEffect(function(){return o.register(),function(){o.cleanup()}},[o]);var a=w.useMemo(function(){return o&&rd(o.connectors)},[o]);return se(se({},n),{},{connectors:a,inContext:!!r,store:r})}var n2=["actions","query","connectors"];function Jo(t){var e=w.useContext(od);oe(e,Hx);var r=e.id,n=e.related,o=er(function(c){return r&&c.nodes[r]&&t&&t(c.nodes[r])}),a=o.actions,i=o.connectors,s=us(o,n2),u=w.useMemo(function(){return rd({connect:function(c){return i.connect(c,r)},drag:function(c){return i.drag(c,r)}})},[i,r]),l=w.useMemo(function(){return{setProp:function(c,h){h?a.history.throttle(h).setProp(r,c):a.setProp(r,c)},setCustom:function(c,h){h?a.history.throttle(h).setCustom(r,c):a.setCustom(r,c)},setHidden:function(c){return a.setHidden(r,c)}}},[a,r]);return se(se({},s),{},{id:r,related:n,inNodeContext:!!e,actions:l,connectors:u})}var o2=["id","related","actions","inNodeContext","connectors"];function ne(t){var e=Jo(t),r=e.id,n=e.related,o=e.actions,a=e.inNodeContext,i=e.connectors;return se(se({},us(e,o2)),{},{actions:o,id:r,related:n,setProp:function(s,u){return It("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),o.setProp(s,u)},inNodeContext:a,connectors:i})}const a2=({render:t})=>{const{connectors:{connect:e,drag:r}}=ne();return typeof t.type=="string"?e(r(w.cloneElement(t))):t},i2=()=>{const{type:t,props:e,nodes:r,hydrationTimestamp:n}=Jo(o=>({type:o.data.type,props:o.data.props,nodes:o.data.nodes,hydrationTimestamp:o._hydrationTimestamp}));return w.useMemo(()=>{let o=e.children;r&&r.length>0&&(o=w.createElement(w.Fragment,null,r.map(i=>w.createElement(ds,{id:i,key:i}))));const a=w.createElement(t,e,o);return typeof t=="string"?w.createElement(a2,{render:a}):a},[t,e,n,r])},s2=({render:t})=>{const{hidden:e}=Jo(n=>({hidden:n.data.hidden})),{onRender:r}=er(n=>({onRender:n.options.onRender}));return e?null:w.createElement(r,{render:t||w.createElement(i2,null)})},ds=({id:t,render:e})=>w.createElement(ad,{id:t},w.createElement(s2,{render:e})),oi={is:"div",canvas:!1,custom:{},hidden:!1},u2={is:"type",canvas:"isCanvas"};function Pt({id:t,children:e,...r}){const{is:n}={...oi,...r},{query:o,actions:a}=er(),{id:i,inNodeContext:s}=Jo(),[u]=w.useState(()=>{oe(!!t,Ox);const l=o.node(i).get();if(s){const c=l.data.linkedNodes[t]?o.node(l.data.linkedNodes[t]).get():null;if(c&&c.data.type===n)return c.id;const h=w.createElement(Pt,r,e),f=o.parseReactElement(h).toNodeTree();return a.history.ignore().addLinkedNodeFromTree(f,i,t),f.rootNodeId}return null});return u?w.createElement(ds,{id:u}):null}const dd=()=>It("<Canvas />",{suggest:"<Element canvas={true} />"});function ai({...t}){return w.useEffect(()=>dd(),[]),w.createElement(Pt,{...t,canvas:!0})}const l2=()=>{const{timestamp:t}=er(e=>({timestamp:e.nodes[bt]&&e.nodes[bt]._hydrationTimestamp}));return t?w.createElement(ds,{id:bt,key:t}):null},fs=({children:t,json:e,data:r})=>{const{actions:n,query:o}=er();e&&It("<Frame json={...} />",{suggest:"<Frame data={...} />"});const a=w.useRef(!1);if(!a.current){const i=r||e;if(i)n.history.ignore().deserialize(i);else if(t){const s=w.Children.only(t),u=o.parseReactElement(s).toNodeTree((l,c)=>(c===s&&(l.id=bt),l));n.history.ignore().addNodeTree(u)}a.current=!0}return w.createElement(l2,null)};var cl;(function(t){t[t.Any=0]="Any",t[t.Id=1]="Id",t[t.Obj=2]="Obj"})(cl||(cl={}));const _a=t=>{const{addLinkedNodeFromTree:e,setDOM:r,setNodeEvent:n,replaceNodes:o,reset:a,...i}=t;return i};function at(t){const{connectors:e,actions:r,query:n,store:o,...a}=er(t),i=_a(r);return{connectors:e,actions:w.useMemo(()=>({...i,history:{...i.history,ignore:(...s)=>_a(i.history.ignore(...s)),throttle:(...s)=>_a(i.history.throttle(...s))}}),[i]),query:n,store:o,...a}}var fd=function(t){return Object.fromEntries?Object.fromEntries(t):t.reduce(function(e,r){var n=id(r,2),o=n[0],a=n[1];return se(se({},e),{},be({},o,a))},{})},mt=function(t,e,r){var n=Array.isArray(e)?e:[e],o=se({existOnly:!1,idOnly:!1},r||{}),a=n.filter(function(i){return!!i}).map(function(i){return typeof i=="string"?{node:t[i],exists:!!t[i]}:ti(i)!=="object"||o.idOnly?{node:null,exists:!1}:{node:i,exists:!!t[i.id]}});return o.existOnly&&oe(a.filter(function(i){return!i.exists}).length===0,Yc),a},c2=["history"],lr=null,bo=function(t,e){if(typeof e=="string")return e;var r,n=function(o,a){var i=function(s){if(lr&&lr.resolver===s)return lr.reversed;lr={resolver:s,reversed:new Map};for(var u=0,l=Object.entries(s);u<l.length;u++){var c=id(l[u],2);lr.reversed.set(c[1],c[0])}return lr.reversed}(o).get(a);return i!==void 0?i:null}(t,e);return oe(n,ho.replace("%node_type%",(r=e).name||r.displayName)),n};const d2=(t,e)=>typeof t=="string"?t:{resolvedName:bo(e,t)},ii=(t,e)=>{let{type:r,isCanvas:n,props:o}=t;return o=Object.keys(o).reduce((a,i)=>{const s=o[i];return s==null||typeof s=="function"||(a[i]=i==="children"&&typeof s!="string"?w.Children.map(s,u=>typeof u=="string"?u:ii(u,e)):typeof s.type=="function"?ii(s,e):s),a},{}),{type:d2(r,e),isCanvas:!!n,props:o}},f2=(t,e)=>{const{type:r,props:n,isCanvas:o,name:a,...i}=t;return{...ii({type:r,isCanvas:o,props:n},e),...i}};function si(t,e){oe(typeof e=="string",Mx);var r=t.nodes[e],n=function(o){return si(t,o)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===bt},isLinkedNode:function(){return r.data.parent&&n(r.data.parent).linkedNodes().includes(r.id)},isTopLevelNode:function(){return this.isRoot()||this.isLinkedNode()},isDeletable:function(){return!this.isTopLevelNode()},isParentOfTopLevelNodes:function(){return r.data.linkedNodes&&Object.keys(r.data.linkedNodes).length>0},isParentOfTopLevelCanvas:function(){return It("query.node(id).isParentOfTopLevelCanvas",{suggest:"query.node(id).isParentOfTopLevelNodes"}),this.isParentOfTopLevelNodes()},isSelected:function(){return t.events.selected.has(e)},isHovered:function(){return t.events.hovered.has(e)},isDragged:function(){return t.events.dragged.has(e)},get:function(){return r},ancestors:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return function a(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=t.nodes[i];return l?(s.push(i),l.data.parent&&(o||!o&&u===0)&&(s=a(l.data.parent,s,u+1)),s):s}(r.data.parent)},descendants:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0],a=arguments.length>1?arguments[1]:void 0;return function i(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return(o||!o&&l===0)&&t.nodes[s]&&(a!=="childNodes"&&n(s).linkedNodes().forEach(function(c){u.push(c),u=i(c,u,l+1)}),a!=="linkedNodes"&&n(s).childNodes().forEach(function(c){u.push(c),u=i(c,u,l+1)})),u}(e)},linkedNodes:function(){return Object.values(r.data.linkedNodes||{})},childNodes:function(){return r.data.nodes||[]},isDraggable:function(o){try{var a=r;return oe(!this.isTopLevelNode(),tl),oe(si(t,a.data.parent).isCanvas(),el),oe(a.rules.canDrag(a,n),Dx),!0}catch(i){return o&&o(i),!1}},isDroppable:function(o,a){var i=mt(t.nodes,o),s=r;try{oe(this.isCanvas(),Rx),oe(s.rules.canMoveIn(i.map(function(l){return l.node}),s,n),Px);var u={};return i.forEach(function(l){var c=l.node,h=l.exists;if(oe(c.rules.canDrop(s,c,n),kx),h){oe(!n(c.id).isTopLevelNode(),tl);var f=n(c.id).descendants(!0);oe(!f.includes(s.id)&&s.id!==c.id,Ix);var d=c.data.parent&&t.nodes[c.data.parent];oe(d.data.isCanvas,el),oe(d||!d&&!t.nodes[c.id],Ax),d.id!==s.id&&(u[d.id]||(u[d.id]=[]),u[d.id].push(c))}}),Object.keys(u).forEach(function(l){var c=t.nodes[l];oe(c.rules.canMoveOut(u[l],c,n),_x)}),!0}catch(l){return a&&a(l),!1}},toSerializedNode:function(){return f2(r.data,t.options.resolver)},toNodeTree:function(o){var a=[e].concat(ln(this.descendants(!0,o))).reduce(function(i,s){return i[s]=n(s).get(),i},{});return{rootNodeId:e,nodes:a}},decendants:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return It("query.node(id).decendants",{suggest:"query.node(id).descendants"}),this.descendants(o)},isTopLevelCanvas:function(){return!this.isRoot()&&!r.data.parent}}}function pd(t,e,r,n){for(var o={parent:t,index:0,where:"before"},a=0,i=0,s=0,u=0,l=0,c=0,h=0,f=e.length;h<f;h++){var d=e[h];if(c=d.top+d.outerHeight,u=d.left+d.outerWidth/2,l=d.top+d.outerHeight/2,!(i&&d.left>i||s&&l>=s||a&&d.left+d.outerWidth<a))if(o.index=h,d.inFlow){if(n<l){o.where="before";break}o.where="after"}else n<c&&(s=c),r<u?(i=u,o.where="before"):(a=u,o.where="after")}return o}var Bn=function(t){return typeof t=="string"?t:t.name};function dl(t,e){var r=t.data.type,n={id:t.id||ed(),_hydrationTimestamp:Date.now(),data:se({type:r,name:Bn(r),displayName:Bn(r),props:{},custom:{},parent:null,isCanvas:!1,hidden:!1,nodes:[],linkedNodes:{}},t.data),info:{},related:{},events:{selected:!1,dragged:!1,hovered:!1},rules:{canDrag:function(){return!0},canDrop:function(){return!0},canMoveIn:function(){return!0},canMoveOut:function(){return!0}},dom:null};if(n.data.type===Pt||n.data.type===ai){var o=se(se({},oi),n.data.props);n.data.props=Object.keys(n.data.props).reduce(function(s,u){return Object.keys(oi).includes(u)?n.data[u2[u]||u]=o[u]:s[u]=n.data.props[u],s},{}),n.data.name=Bn(r=n.data.type),n.data.displayName=Bn(r),n.data.type===ai&&(n.data.isCanvas=!0,dd())}e&&e(n);var a=r.craft;if(a){if(n.data.displayName=a.displayName||a.name||n.data.displayName,n.data.props=se(se({},a.props||a.defaultProps||{}),n.data.props),n.data.custom=se(se({},a.custom||{}),n.data.custom),a.isCanvas!=null&&(n.data.isCanvas=a.isCanvas),a.rules&&Object.keys(a.rules).forEach(function(s){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(s)&&(n.rules[s]=a.rules[s])}),a.related){var i={id:n.id,related:!0};Object.keys(a.related).forEach(function(s){n.related[s]=function(u){return w.createElement(ad,i,w.createElement(a.related[s],u))}})}a.info&&(n.info=a.info)}return n}const ui=(t,e,r)=>{let{type:n,props:o}=t;const a=((s,u)=>typeof s=="object"&&s.resolvedName?s.resolvedName==="Canvas"?ai:u[s.resolvedName]:typeof s=="string"?s:null)(n,e);if(!a)return;o=Object.keys(o).reduce((s,u)=>{const l=o[u];return s[u]=l==null?null:typeof l=="object"&&l.resolvedName?ui(l,e):u==="children"&&Array.isArray(l)?l.map(c=>typeof c=="string"?c:ui(c,e)):l,s},{});const i={...w.createElement(a,{...o})};return{...i,name:bo(e,i.type)}},p2=(t,e)=>{const{type:r,props:n,...o}=t;oe(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,Bx.replace("%displayName%",t.displayName).replace("%availableComponents%",Object.keys(e).join(", ")));const{type:a,name:i,props:s}=ui(t,e),{parent:u,custom:l,displayName:c,isCanvas:h,nodes:f,hidden:d}=o;return{type:a,name:i,displayName:c||i,props:s,custom:l||{},isCanvas:!!h,hidden:!!d,parent:u,linkedNodes:o.linkedNodes||o._childCanvas||{},nodes:f||[]}},h2=(t,e)=>{if(e.length<1)return{[t.id]:t};const r=e.map(({rootNodeId:o})=>o),n={...t,data:{...t.data,nodes:r}};return e.reduce((o,a)=>{const i=a.nodes[a.rootNodeId];return{...o,...a.nodes,[i.id]:{...i,data:{...i.data,parent:t.id}}}},{[t.id]:n})},m2=(t,e)=>({rootNodeId:t.id,nodes:h2(t,e)});function hd(t){const e=t&&t.options,r=()=>hd(t);return{getDropPlaceholder:(n,o,a,i=s=>t.nodes[s.id].dom)=>{const s=t.nodes[o],u=r().node(s.id).isCanvas()?s:t.nodes[s.data.parent];if(!u)return;const l=u.data.nodes||[],c=pd(u,l?l.reduce((d,g)=>{const b=i(t.nodes[g]);if(b){const m={id:g,...un(b)};d.push(m)}return d},[]):[],a.x,a.y),h=l.length&&t.nodes[l[c.index]],f={placement:{...c,currentNode:h},error:null};return mt(t.nodes,n).forEach(({node:d,exists:g})=>{g&&r().node(d.id).isDraggable(b=>f.error=b)}),r().node(u.id).isDroppable(n,d=>f.error=d),f},getOptions:()=>e,getNodes:()=>t.nodes,node:n=>si(t,n),getSerializedNodes(){const n=Object.keys(t.nodes).map(o=>[o,this.node(o).toSerializedNode()]);return fd(n)},getEvent:n=>function(o,a){var i=o.events[a];return{contains:function(s){return i.has(s)},isEmpty:function(){return this.all().length===0},first:function(){return this.all()[0]},last:function(){var s=this.all();return s[s.length-1]},all:function(){return Array.from(i)},size:function(){return this.all().length},at:function(s){return this.all()[s]},raw:function(){return i}}}(t,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(o){let a=function(s,u){let l=s;return typeof l=="string"&&(l=w.createElement(w.Fragment,{},l)),dl({data:{type:l.type,props:{...l.props}}},c=>{u&&u(c,l)})}(n,(s,u)=>{const l=bo(t.options.resolver,s.data.type);s.data.displayName=s.data.displayName||l,s.data.name=l,o&&o(s,u)}),i=[];return n.props&&n.props.children&&(i=w.Children.toArray(n.props.children).reduce((s,u)=>(w.isValidElement(u)&&s.push(r().parseReactElement(u).toNodeTree(o)),s),[])),m2(a,i)}}),parseSerializedNode:n=>({toNode(o){const a=p2(n,t.options.resolver);oe(a.type,ho);const i=typeof o=="string"&&o;return i&&It("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...i?{id:i}:{},data:a}).toNode(!i&&o)}}),parseFreshNode:n=>({toNode:o=>dl(n,a=>{a.data.parent===Gc&&(a.data.parent=bt);const i=bo(t.options.resolver,a.data.type);oe(i!==null,ho),a.data.displayName=a.data.displayName||i,a.data.name=i,o&&o(a)})}),createNode(n,o){It(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const a=this.parseReactElement(n).toNodeTree(),i=a.nodes[a.rootNodeId];return o&&(o.id&&(i.id=o.id),o.data&&(i.data={...i.data,...o.data})),i},getState:()=>t}}var g2=function(t){ss(r,td);var e=ls(r);function r(){return Xo(this,r),e.apply(this,arguments)}return Ko(r,[{key:"handlers",value:function(){return{connect:function(n,o){},select:function(n,o){},hover:function(n,o){},drag:function(n,o){},drop:function(n,o){},create:function(n,o,a){}}}}]),r}();(function(t){ss(r,Xx);var e=ls(r);function r(){return Xo(this,r),e.apply(this,arguments)}return Ko(r)})();var fl=function(t){t.preventDefault()},li=function(){function t(e,r){Xo(this,t),be(this,"store",void 0),be(this,"dragTarget",void 0),be(this,"currentDropTargetId",void 0),be(this,"currentDropTargetCanvasAncestorId",void 0),be(this,"currentIndicator",null),be(this,"currentTargetId",void 0),be(this,"currentTargetChildDimensions",void 0),be(this,"dragError",void 0),be(this,"draggedNodes",void 0),be(this,"onScrollListener",void 0),this.store=e,this.dragTarget=r,this.currentDropTargetId=null,this.currentDropTargetCanvasAncestorId=null,this.currentTargetId=null,this.currentTargetChildDimensions=null,this.currentIndicator=null,this.dragError=null,this.draggedNodes=this.getDraggedNodes(),this.validateDraggedNodes(),this.onScrollListener=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollListener,!0),window.addEventListener("dragover",fl,!1)}return Ko(t,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",fl,!1)}},{key:"onScroll",value:function(e){var r=e.target,n=this.store.query.node(bt).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return mt(this.store.query.getNodes(),this.dragTarget.type==="new"?this.dragTarget.tree.nodes[this.dragTarget.tree.rootNodeId]:this.dragTarget.nodes)}},{key:"validateDraggedNodes",value:function(){var e=this;this.dragTarget.type!=="new"&&this.draggedNodes.forEach(function(r){r.exists&&e.store.query.node(r.node.id).isDraggable(function(n){e.dragError=n})})}},{key:"isNearBorders",value:function(e,r,n){return e.top+t.BORDER_OFFSET>n||e.bottom-t.BORDER_OFFSET<n||e.left+t.BORDER_OFFSET>r||e.right-t.BORDER_OFFSET<r}},{key:"isDiff",value:function(e){return!this.currentIndicator||this.currentIndicator.placement.parent.id!==e.parent.id||this.currentIndicator.placement.index!==e.index||this.currentIndicator.placement.where!==e.where}},{key:"getChildDimensions",value:function(e){var r=this,n=this.currentTargetChildDimensions;return this.currentTargetId===e.id&&n?n:e.data.nodes.reduce(function(o,a){var i=r.store.query.node(a).get().dom;return i&&o.push(se({id:a},un(i))),o},[])}},{key:"getCanvasAncestor",value:function(e){var r=this;if(e===this.currentDropTargetId&&this.currentDropTargetCanvasAncestorId){var n=this.store.query.node(this.currentDropTargetCanvasAncestorId).get();if(n)return n}return function o(a){var i=r.store.query.node(a).get();return i&&i.data.isCanvas?i:i.data.parent?o(i.data.parent):null}(e)}},{key:"computeIndicator",value:function(e,r,n){var o=this.getCanvasAncestor(e);if(o&&(this.currentDropTargetId=e,this.currentDropTargetCanvasAncestorId=o.id,o.data.parent&&this.isNearBorders(un(o.dom),r,n)&&!this.store.query.node(o.id).isLinkedNode()&&(o=this.store.query.node(o.data.parent).get()),o)){this.currentTargetChildDimensions=this.getChildDimensions(o),this.currentTargetId=o.id;var a=pd(o,this.currentTargetChildDimensions,r,n);if(this.isDiff(a)){var i=this.dragError;i||this.store.query.node(o.id).isDroppable(this.draggedNodes.map(function(l){return l.node}),function(l){i=l});var s=o.data.nodes[a.index],u=s&&this.store.query.node(s).get();return this.currentIndicator={placement:se(se({},a),{},{currentNode:u}),error:i},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),t}();be(li,"BORDER_OFFSET",10);var pl=function(t,e){if(e.length===1||arguments.length>2&&arguments[2]!==void 0&&arguments[2]){var r=e[0].getBoundingClientRect(),n=r.width,o=r.height,a=e[0].cloneNode(!0);return a.style.position="absolute",a.style.left="-100%",a.style.top="-100%",a.style.width="".concat(n,"px"),a.style.height="".concat(o,"px"),a.style.pointerEvents="none",a.classList.add("drag-shadow"),document.body.appendChild(a),t.dataTransfer.setDragImage(a,0,0),a}var i=document.createElement("div");return i.style.position="absolute",i.style.left="-100%",i.style.top="-100%",i.style.width="100%",i.style.height="100%",i.style.pointerEvents="none",i.classList.add("drag-shadow-container"),e.forEach(function(s){var u=s.getBoundingClientRect(),l=u.width,c=u.height,h=u.top,f=u.left,d=s.cloneNode(!0);d.style.position="absolute",d.style.left="".concat(f,"px"),d.style.top="".concat(h,"px"),d.style.width="".concat(l,"px"),d.style.height="".concat(c,"px"),d.classList.add("drag-shadow"),i.appendChild(d)}),document.body.appendChild(i),t.dataTransfer.setDragImage(i,t.clientX,t.clientY),i},md=function(t){ss(r,g2);var e=ls(r);function r(){var n;Xo(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return be(Qr(n=e.call.apply(e,[this].concat(a))),"draggedElementShadow",void 0),be(Qr(n),"dragTarget",void 0),be(Qr(n),"positioner",null),be(Qr(n),"currentSelectedElementIds",[]),n}return Ko(r,[{key:"onDisable",value:function(){this.options.store.actions.clearEvents()}},{key:"handlers",value:function(){var n=this,o=this.options.store;return{connect:function(a,i){return o.actions.setDOM(i,a),n.reflect(function(s){s.select(a,i),s.hover(a,i),s.drop(a,i)})},select:function(a,i){var s=n.addCraftEventListener(a,"mousedown",function(l){l.craft.stopPropagation();var c=[];if(i){var h=o.query,f=h.getEvent("selected").all();(n.options.isMultiSelectEnabled(l)||f.includes(i))&&(c=f.filter(function(d){var g=h.node(d).descendants(!0),b=h.node(d).ancestors(!0);return!g.includes(i)&&!b.includes(i)})),c.includes(i)||c.push(i)}o.actions.setNodeEvent("selected",c)}),u=n.addCraftEventListener(a,"click",function(l){l.craft.stopPropagation();var c=o.query.getEvent("selected").all(),h=n.options.isMultiSelectEnabled(l),f=n.currentSelectedElementIds.includes(i),d=ln(c);h&&f?(d.splice(d.indexOf(i),1),o.actions.setNodeEvent("selected",d)):!h&&c.length>1&&o.actions.setNodeEvent("selected",d=[i]),n.currentSelectedElementIds=d});return function(){s(),u()}},hover:function(a,i){var s=n.addCraftEventListener(a,"mouseover",function(l){l.craft.stopPropagation(),o.actions.setNodeEvent("hovered",i)}),u=null;return n.options.removeHoverOnMouseleave&&(u=n.addCraftEventListener(a,"mouseleave",function(l){l.craft.stopPropagation(),o.actions.setNodeEvent("hovered",null)})),function(){s(),u&&u()}},drop:function(a,i){var s=n.addCraftEventListener(a,"dragover",function(l){if(l.craft.stopPropagation(),l.preventDefault(),n.positioner){var c=n.positioner.computeIndicator(i,l.clientX,l.clientY);c&&o.actions.setIndicator(c)}}),u=n.addCraftEventListener(a,"dragenter",function(l){l.craft.stopPropagation(),l.preventDefault()});return function(){u(),s()}},drag:function(a,i){if(!o.query.node(i).isDraggable())return function(){};a.setAttribute("draggable","true");var s=n.addCraftEventListener(a,"dragstart",function(l){l.craft.stopPropagation();var c=o.query,h=o.actions,f=c.getEvent("selected").all(),d=n.options.isMultiSelectEnabled(l);n.currentSelectedElementIds.includes(i)||(f=d?[].concat(ln(f),[i]):[i],o.actions.setNodeEvent("selected",f)),h.setNodeEvent("dragged",f);var g=f.map(function(b){return c.node(b).get().dom});n.draggedElementShadow=pl(l,g,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:f},n.positioner=new li(n.options.store,n.dragTarget)}),u=n.addCraftEventListener(a,"dragend",function(l){l.craft.stopPropagation(),n.dropElement(function(c,h){c.type!=="new"&&o.actions.move(c.nodes,h.placement.parent.id,h.placement.index+(h.placement.where==="after"?1:0))})});return function(){a.setAttribute("draggable","false"),s(),u()}},create:function(a,i,s){a.setAttribute("draggable","true");var u=n.addCraftEventListener(a,"dragstart",function(c){var h;if(c.craft.stopPropagation(),typeof i=="function"){var f=i();h=w.isValidElement(f)?o.query.parseReactElement(f).toNodeTree():f}else h=o.query.parseReactElement(i).toNodeTree();n.draggedElementShadow=pl(c,[c.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:h},n.positioner=new li(n.options.store,n.dragTarget)}),l=n.addCraftEventListener(a,"dragend",function(c){c.craft.stopPropagation(),n.dropElement(function(h,f){h.type!=="existing"&&(o.actions.addNodeTree(h.tree,f.placement.parent.id,f.placement.index+(f.placement.where==="after"?1:0)),s&&tg(s.onCreate)&&s.onCreate(h.tree))})});return function(){a.removeAttribute("draggable"),u(),l()}}}}},{key:"dropElement",value:function(n){var o=this.options.store;if(this.positioner){var a=this.draggedElementShadow,i=this.positioner.getIndicator();this.dragTarget&&i&&!i.error&&n(this.dragTarget,i),a&&(a.parentNode.removeChild(a),this.draggedElementShadow=null),this.dragTarget=null,o.actions.setIndicator(null),o.actions.setNodeEvent("dragged",null),this.positioner.cleanup(),this.positioner=null}}}]),r}();function b2(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,o=0,a=0,i=0,s=0,u=t.where;return r?r.inFlow?(i=r.outerWidth,s=n,o=u==="before"?r.top:r.bottom,a=r.left):(i=n,s=r.outerHeight,o=r.top,a=u==="before"?r.left:r.left+r.outerWidth):e&&(o=e.top+e.padding.top,a=e.left+e.padding.left,i=e.outerWidth-e.padding.right-e.padding.left-e.margin.left-e.margin.right,s=n),{top:"".concat(o,"px"),left:"".concat(a,"px"),width:"".concat(i,"px"),height:"".concat(s,"px")}}be(md,"forceSingleDragShadow",e2()&&Qx());const v2=()=>{const{indicator:t,indicatorOptions:e,enabled:r}=er(o=>({indicator:o.indicator,indicatorOptions:o.options.indicator,enabled:o.options.enabled})),n=cd();return w.useEffect(()=>{n&&(r?n.enable():n.disable())},[r,n]),t?w.createElement(Zx,{className:e.className,style:{...b2(t.placement,un(t.placement.parent.dom),t.placement.currentNode&&un(t.placement.currentNode.dom),e.thickness),backgroundColor:t.error?e.error:e.success,transition:e.transition||"0.2s ease-in",...e.style??{}},parentDom:t.placement.parent.dom}):null},y2=({children:t})=>{const e=w.useContext(cs),r=w.useMemo(()=>e.query.getOptions().handlers(e),[e]);return r?w.createElement(ld.Provider,{value:r},w.createElement(v2,null),t):null},hl={nodes:{},events:{dragged:new Set,selected:new Set,hovered:new Set},indicator:null,options:{onNodesChange:()=>null,onRender:({render:t})=>t,onBeforeMoveEnd:()=>null,resolver:{},enabled:!0,indicator:{error:"red",success:"rgb(98, 196, 98)"},handlers:t=>new md({store:t,removeHoverOnMouseleave:!1,isMultiSelectEnabled:e=>!!e.metaKey}),normalizeNodes:()=>{}}},x2={methods:function(t,e){return se(se({},function(r,n){var o=function(s,u,l){if(function f(d,g){var b=s.nodes[d];typeof b.data.type!="string"&&oe(r.options.resolver[b.data.name],ho.replace("%node_type%","".concat(b.data.type.name))),r.nodes[d]=se(se({},b),{},{data:se(se({},b.data),{},{parent:g})}),b.data.nodes.length>0&&(delete r.nodes[d].data.props.children,b.data.nodes.forEach(function(m){return f(m,b.id)})),Object.values(b.data.linkedNodes).forEach(function(m){return f(m,b.id)})}(s.rootNodeId,u),u||s.rootNodeId!==bt){var c=a(u);if(l.type!=="child")c.data.linkedNodes[l.id]=s.rootNodeId;else{var h=l.index;h!=null?c.data.nodes.splice(h,0,s.rootNodeId):c.data.nodes.push(s.rootNodeId)}}},a=function(s){oe(s,jx);var u=r.nodes[s];return oe(u,Yc),u},i=function s(u){var l=r.nodes[u],c=r.nodes[l.data.parent];if(l.data.nodes&&ln(l.data.nodes).forEach(function(d){return s(d)}),l.data.linkedNodes&&Object.values(l.data.linkedNodes).map(function(d){return s(d)}),c.data.nodes.includes(u)){var h=c.data.nodes;h.splice(h.indexOf(u),1)}else{var f=Object.keys(c.data.linkedNodes).find(function(d){return c.data.linkedNodes[d]===d});f&&delete c.data.linkedNodes[f]}(function(d,g){Object.keys(d.events).forEach(function(b){var m=d.events[b];m&&m.has&&m.has(g)&&(d.events[b]=new Set(Array.from(m).filter(function(v){return g!==v})))})})(r,u),delete r.nodes[u]};return{addLinkedNodeFromTree:function(s,u,l){var c=a(u).data.linkedNodes[l];c&&i(c),o(s,u,{type:"linked",id:l})},add:function(s,u,l){var c=[s];Array.isArray(s)&&(It("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),c=s),c.forEach(function(h){o({nodes:be({},h.id,h),rootNodeId:h.id},u,{type:"child",index:l})})},addNodeTree:function(s,u,l){o(s,u,{type:"child",index:l})},delete:function(s){mt(r.nodes,s,{existOnly:!0,idOnly:!0}).forEach(function(u){var l=u.node;oe(!n.node(l.id).isTopLevelNode(),Lx),i(l.id)})},deserialize:function(s){var u=typeof s=="string"?JSON.parse(s):s,l=Object.keys(u).map(function(c){var h=c;return c===Gc&&(h=bt),[h,n.parseSerializedNode(u[c]).toNode(function(f){return f.id=h})]});this.replaceNodes(fd(l))},move:function(s,u,l){var c=mt(r.nodes,s,{existOnly:!0}),h=r.nodes[u],f=new Set;c.forEach(function(d,g){var b=d.node,m=b.id,v=b.data.parent;n.node(u).isDroppable([m],function(C){throw new Error(C)}),r.options.onBeforeMoveEnd(b,h,r.nodes[v]);var x=r.nodes[v].data.nodes;f.add(x);var S=x.indexOf(m);x[S]="$$",h.data.nodes.splice(l+g,0,m),r.nodes[m].data.parent=u}),f.forEach(function(d){var g=d.length;ln(d).reverse().forEach(function(b,m){b==="$$"&&d.splice(g-1-m,1)})})},replaceNodes:function(s){this.clearEvents(),r.nodes=s},clearEvents:function(){this.setNodeEvent("selected",null),this.setNodeEvent("hovered",null),this.setNodeEvent("dragged",null),this.setIndicator(null)},reset:function(){this.clearEvents(),this.replaceNodes({})},setOptions:function(s){s(r.options)},setNodeEvent:function(s,u){if(r.events[s].forEach(function(h){r.nodes[h]&&(r.nodes[h].events[s]=!1)}),r.events[s]=new Set,u){var l=mt(r.nodes,u,{idOnly:!0,existOnly:!0}),c=new Set(l.map(function(h){return h.node.id}));c.forEach(function(h){r.nodes[h].events[s]=!0}),r.events[s]=c}},setCustom:function(s,u){mt(r.nodes,s,{idOnly:!0,existOnly:!0}).forEach(function(l){return u(r.nodes[l.node.id].data.custom)})},setDOM:function(s,u){r.nodes[s]&&(r.nodes[s].dom=u)},setIndicator:function(s){s&&(!s.placement.parent.dom||s.placement.currentNode&&!s.placement.currentNode.dom)||(r.indicator=s)},setHidden:function(s,u){r.nodes[s].data.hidden=u},setProp:function(s,u){mt(r.nodes,s,{idOnly:!0,existOnly:!0}).forEach(function(l){return u(r.nodes[l.node.id].data.props)})},selectNode:function(s){if(s){var u=mt(r.nodes,s,{idOnly:!0,existOnly:!0});this.setNodeEvent("selected",u.map(function(l){return l.node.id}))}else this.setNodeEvent("selected",null);this.setNodeEvent("hovered",null)}}}(t,e)),{},{setState:function(r){var n=us(this,c2);r(t,n)}})},ignoreHistoryForActions:["setDOM","setNodeEvent","selectNode","clearEvents","setOptions","setIndicator"],normalizeHistory:t=>{Object.keys(t.events).forEach(e=>{Array.from(t.events[e]||[]).forEach(r=>{t.nodes[r]||t.events[e].delete(r)})}),Object.keys(t.nodes).forEach(e=>{const r=t.nodes[e];Object.keys(r.events).forEach(n=>{r.events[n]&&t.events[n]&&!t.events[n].has(r.id)&&(r.events[n]=!1)})})}},w2=(t,e)=>Ux(x2,{...hl,options:{...hl.options,...t}},hd,e),ci=({children:t,...e})=>{e.resolver!==void 0&&oe(typeof e.resolver=="object"&&!Array.isArray(e.resolver)&&e.resolver!==null,$x);const r=y.useRef(e),n=w2(r.current,(o,a,i,s,u)=>{if(!i)return;const{patches:l,...c}=i;for(let h=0;h<l.length;h++){const{path:f}=l[h],d=f.length>2&&f[0]==="nodes"&&f[2]==="data";if([fe.IGNORE,fe.THROTTLE].includes(c.type)&&c.params&&(c.type=c.params[0]),["setState","deserialize"].includes(c.type)||d){u(g=>{o.options.normalizeNodes&&o.options.normalizeNodes(g,a,c,s)});break}}});return y.useEffect(()=>{n&&e.enabled!==void 0&&n.query.getOptions().enabled!==e.enabled&&n.actions.setOptions(o=>{o.enabled=e.enabled})},[n,e.enabled]),y.useEffect(()=>{n.subscribe(o=>({json:n.query.serialize()}),()=>{n.query.getOptions().onNodesChange(n.query)})},[n]),n?y.createElement(cs.Provider,{value:n},y.createElement(y2,null,t)):null},gd=w.createContext("desktop"),ps=({value:t,children:e})=>p.jsx(gd.Provider,{value:t,children:e}),Ce=()=>w.useContext(gd),Ie=["mobile","tablet","small","desktop"],gt=(t,e,r)=>{if(typeof t!="object"||t===null)return t??r;if("top"in t||"right"in t)return t;const n=Ie.indexOf(e);for(let o=n;o<Ie.length;o++){const a=Ie[o];if(t[a]!==void 0&&t[a]!==null)return t[a]}for(let o=n-1;o>=0;o--){const a=Ie[o];if(t[a]!==void 0&&t[a]!==null)return t[a]}return r};function ue(t,e,{checkForDefaultPrevented:r=!0}={}){return function(o){if(t==null||t(o),r===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}function tr(t,e=[]){let r=[];function n(a,i){const s=y.createContext(i),u=r.length;r=[...r,i];const l=h=>{var v;const{scope:f,children:d,...g}=h,b=((v=f==null?void 0:f[t])==null?void 0:v[u])||s,m=y.useMemo(()=>g,Object.values(g));return p.jsx(b.Provider,{value:m,children:d})};l.displayName=a+"Provider";function c(h,f){var b;const d=((b=f==null?void 0:f[t])==null?void 0:b[u])||s,g=y.useContext(d);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[l,c]}const o=()=>{const a=r.map(i=>y.createContext(i));return function(s){const u=(s==null?void 0:s[t])||a;return y.useMemo(()=>({[`__scope${t}`]:{...s,[t]:u}}),[s,u])}};return o.scopeName=t,[n,S2(o,...e)]}function S2(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((s,{useScope:u,scopeName:l})=>{const h=u(a)[`__scope${l}`];return{...s,...h}},{});return y.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return r.scopeName=e.scopeName,r}function C2(t){const e=E2(t),r=y.forwardRef((n,o)=>{const{children:a,...i}=n,s=y.Children.toArray(a),u=s.find(T2);if(u){const l=u.props.children,c=s.map(h=>h===u?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...i,ref:o,children:y.isValidElement(l)?y.cloneElement(l,void 0,c):null})}return p.jsx(e,{...i,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}function E2(t){const e=y.forwardRef((r,n)=>{const{children:o,...a}=r;if(y.isValidElement(o)){const i=A2(o),s=j2(a,o.props);return o.type!==y.Fragment&&(s.ref=n?$o(n,i):i),y.cloneElement(o,s)}return y.Children.count(o)>1?y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var N2=Symbol("radix.slottable");function T2(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===N2}function j2(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const u=a(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function A2(t){var n,o;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var O2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=O2.reduce((t,e)=>{const r=C2(`Primitive.${e}`),n=y.forwardRef((o,a)=>{const{asChild:i,...s}=o,u=i?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(u,{...s,ref:a})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function k2(t,e){t&&pc.flushSync(()=>t.dispatchEvent(e))}function De(t){const e=y.useRef(t);return y.useEffect(()=>{e.current=t}),y.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function P2(t,e=globalThis==null?void 0:globalThis.document){const r=De(t);y.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var _2="DismissableLayer",di="dismissableLayer.update",R2="dismissableLayer.pointerDownOutside",I2="dismissableLayer.focusOutside",ml,bd=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vd=y.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...u}=t,l=y.useContext(bd),[c,h]=y.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=y.useState({}),g=we(e,R=>h(R)),b=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=b.indexOf(m),x=c?b.indexOf(c):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=v,j=L2(R=>{const M=R.target,D=[...l.branches].some($=>$.contains(M));!C||D||(o==null||o(R),i==null||i(R),R.defaultPrevented||s==null||s())},f),k=$2(R=>{const M=R.target;[...l.branches].some($=>$.contains(M))||(a==null||a(R),i==null||i(R),R.defaultPrevented||s==null||s())},f);return P2(R=>{x===l.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},f),y.useEffect(()=>{if(c)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ml=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),gl(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=ml)}},[c,f,r,l]),y.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),gl())},[c,l]),y.useEffect(()=>{const R=()=>d({});return document.addEventListener(di,R),()=>document.removeEventListener(di,R)},[]),p.jsx(me.div,{...u,ref:g,style:{pointerEvents:S?C?"auto":"none":void 0,...t.style},onFocusCapture:ue(t.onFocusCapture,k.onFocusCapture),onBlurCapture:ue(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ue(t.onPointerDownCapture,j.onPointerDownCapture)})});vd.displayName=_2;var D2="DismissableLayerBranch",M2=y.forwardRef((t,e)=>{const r=y.useContext(bd),n=y.useRef(null),o=we(e,n);return y.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),p.jsx(me.div,{...t,ref:o})});M2.displayName=D2;function L2(t,e=globalThis==null?void 0:globalThis.document){const r=De(t),n=y.useRef(!1),o=y.useRef(()=>{});return y.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let u=function(){yd(R2,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=u,e.addEventListener("click",o.current,{once:!0})):u()}else e.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),e.removeEventListener("pointerdown",a),e.removeEventListener("click",o.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function $2(t,e=globalThis==null?void 0:globalThis.document){const r=De(t),n=y.useRef(!1);return y.useEffect(()=>{const o=a=>{a.target&&!n.current&&yd(I2,r,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function gl(){const t=new CustomEvent(di);document.dispatchEvent(t)}function yd(t,e,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&o.addEventListener(t,e,{once:!0}),n?k2(o,a):o.dispatchEvent(a)}var Dt=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},B2=y[" useId ".trim().toString()]||(()=>{}),z2=0;function xd(t){const[e,r]=y.useState(B2());return Dt(()=>{r(n=>n??String(z2++))},[t]),e?`radix-${e}`:""}const H2=["top","right","bottom","left"],Mt=Math.min,Oe=Math.max,vo=Math.round,zn=Math.floor,Ze=t=>({x:t,y:t}),F2={left:"right",right:"left",bottom:"top",top:"bottom"},q2={start:"end",end:"start"};function fi(t,e,r){return Oe(t,Mt(e,r))}function yt(t,e){return typeof t=="function"?t(e):t}function xt(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function hs(t){return t==="x"?"y":"x"}function ms(t){return t==="y"?"height":"width"}const U2=new Set(["top","bottom"]);function Ke(t){return U2.has(xt(t))?"y":"x"}function gs(t){return hs(Ke(t))}function V2(t,e,r){r===void 0&&(r=!1);const n=Br(t),o=gs(t),a=ms(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=yo(i)),[i,yo(i)]}function W2(t){const e=yo(t);return[pi(t),e,pi(e)]}function pi(t){return t.replace(/start|end/g,e=>q2[e])}const bl=["left","right"],vl=["right","left"],G2=["top","bottom"],Y2=["bottom","top"];function X2(t,e,r){switch(t){case"top":case"bottom":return r?e?vl:bl:e?bl:vl;case"left":case"right":return e?G2:Y2;default:return[]}}function K2(t,e,r,n){const o=Br(t);let a=X2(xt(t),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),e&&(a=a.concat(a.map(pi)))),a}function yo(t){return t.replace(/left|right|bottom|top/g,e=>F2[e])}function J2(t){return{top:0,right:0,bottom:0,left:0,...t}}function wd(t){return typeof t!="number"?J2(t):{top:t,right:t,bottom:t,left:t}}function xo(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function yl(t,e,r){let{reference:n,floating:o}=t;const a=Ke(e),i=gs(e),s=ms(i),u=xt(e),l=a==="y",c=n.x+n.width/2-o.width/2,h=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let d;switch(u){case"top":d={x:c,y:n.y-o.height};break;case"bottom":d={x:c,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:h};break;case"left":d={x:n.x-o.width,y:h};break;default:d={x:n.x,y:n.y}}switch(Br(e)){case"start":d[i]-=f*(r&&l?-1:1);break;case"end":d[i]+=f*(r&&l?-1:1);break}return d}const Z2=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(e));let l=await i.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:h}=yl(l,n,u),f=n,d={},g=0;for(let b=0;b<s.length;b++){const{name:m,fn:v}=s[b],{x,y:S,data:C,reset:j}=await v({x:c,y:h,initialPlacement:n,placement:f,strategy:o,middlewareData:d,rects:l,platform:i,elements:{reference:t,floating:e}});c=x??c,h=S??h,d={...d,[m]:{...d[m],...C}},j&&g<=50&&(g++,typeof j=="object"&&(j.placement&&(f=j.placement),j.rects&&(l=j.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:o}):j.rects),{x:c,y:h}=yl(l,f,u)),b=-1)}return{x:c,y:h,placement:f,strategy:o,middlewareData:d}};async function cn(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:u}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=yt(e,t),g=wd(d),m=s[f?h==="floating"?"reference":"floating":h],v=xo(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(m)))==null||r?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),x=h==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},j=xo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:S,strategy:u}):x);return{top:(v.top-j.top+g.top)/C.y,bottom:(j.bottom-v.bottom+g.bottom)/C.y,left:(v.left-j.left+g.left)/C.x,right:(j.right-v.right+g.right)/C.x}}const Q2=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:u}=e,{element:l,padding:c=0}=yt(t,e)||{};if(l==null)return{};const h=wd(c),f={x:r,y:n},d=gs(o),g=ms(d),b=await i.getDimensions(l),m=d==="y",v=m?"top":"left",x=m?"bottom":"right",S=m?"clientHeight":"clientWidth",C=a.reference[g]+a.reference[d]-f[d]-a.floating[g],j=f[d]-a.reference[d],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let R=k?k[S]:0;(!R||!await(i.isElement==null?void 0:i.isElement(k)))&&(R=s.floating[S]||a.floating[g]);const M=C/2-j/2,D=R/2-b[g]/2-1,$=Mt(h[v],D),E=Mt(h[x],D),T=$,P=R-b[g]-E,I=R/2-b[g]/2+M,N=fi(T,I,P),O=!u.arrow&&Br(o)!=null&&I!==N&&a.reference[g]/2-(I<T?$:E)-b[g]/2<0,A=O?I<T?I-T:I-P:0;return{[d]:f[d]+A,data:{[d]:N,centerOffset:I-N-A,...O&&{alignmentOffset:A}},reset:O}}}),ew=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:u,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...m}=yt(t,e);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const v=xt(o),x=Ke(s),S=xt(s)===s,C=await(u.isRTL==null?void 0:u.isRTL(l.floating)),j=f||(S||!b?[yo(s)]:W2(s)),k=g!=="none";!f&&k&&j.push(...K2(s,b,g,C));const R=[s,...j],M=await cn(e,m),D=[];let $=((n=a.flip)==null?void 0:n.overflows)||[];if(c&&D.push(M[v]),h){const I=V2(o,i,C);D.push(M[I[0]],M[I[1]])}if($=[...$,{placement:o,overflows:D}],!D.every(I=>I<=0)){var E,T;const I=(((E=a.flip)==null?void 0:E.index)||0)+1,N=R[I];if(N&&(!(h==="alignment"?x!==Ke(N):!1)||$.every(_=>Ke(_.placement)===x?_.overflows[0]>0:!0)))return{data:{index:I,overflows:$},reset:{placement:N}};let O=(T=$.filter(A=>A.overflows[0]<=0).sort((A,_)=>A.overflows[1]-_.overflows[1])[0])==null?void 0:T.placement;if(!O)switch(d){case"bestFit":{var P;const A=(P=$.filter(_=>{if(k){const L=Ke(_.placement);return L===x||L==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(L=>L>0).reduce((L,q)=>L+q,0)]).sort((_,L)=>_[1]-L[1])[0])==null?void 0:P[0];A&&(O=A);break}case"initialPlacement":O=s;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function xl(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function wl(t){return H2.some(e=>t[e]>=0)}const tw=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...o}=yt(t,e);switch(n){case"referenceHidden":{const a=await cn(e,{...o,elementContext:"reference"}),i=xl(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:wl(i)}}}case"escaped":{const a=await cn(e,{...o,altBoundary:!0}),i=xl(a,r.floating);return{data:{escapedOffsets:i,escaped:wl(i)}}}default:return{}}}}},Sd=new Set(["left","top"]);async function rw(t,e){const{placement:r,platform:n,elements:o}=t,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=xt(r),s=Br(r),u=Ke(r)==="y",l=Sd.has(i)?-1:1,c=a&&u?-1:1,h=yt(e,t);let{mainAxis:f,crossAxis:d,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof g=="number"&&(d=s==="end"?g*-1:g),u?{x:d*c,y:f*l}:{x:f*l,y:d*c}}const nw=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=e,u=await rw(e,t);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:i}}}}},ow=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:m=>{let{x:v,y:x}=m;return{x:v,y:x}}},...u}=yt(t,e),l={x:r,y:n},c=await cn(e,u),h=Ke(xt(o)),f=hs(h);let d=l[f],g=l[h];if(a){const m=f==="y"?"top":"left",v=f==="y"?"bottom":"right",x=d+c[m],S=d-c[v];d=fi(x,d,S)}if(i){const m=h==="y"?"top":"left",v=h==="y"?"bottom":"right",x=g+c[m],S=g-c[v];g=fi(x,g,S)}const b=s.fn({...e,[f]:d,[h]:g});return{...b,data:{x:b.x-r,y:b.y-n,enabled:{[f]:a,[h]:i}}}}}},aw=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=e,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=yt(t,e),c={x:r,y:n},h=Ke(o),f=hs(h);let d=c[f],g=c[h];const b=yt(s,e),m=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(u){const S=f==="y"?"height":"width",C=a.reference[f]-a.floating[S]+m.mainAxis,j=a.reference[f]+a.reference[S]-m.mainAxis;d<C?d=C:d>j&&(d=j)}if(l){var v,x;const S=f==="y"?"width":"height",C=Sd.has(xt(o)),j=a.reference[h]-a.floating[S]+(C&&((v=i.offset)==null?void 0:v[h])||0)+(C?0:m.crossAxis),k=a.reference[h]+a.reference[S]+(C?0:((x=i.offset)==null?void 0:x[h])||0)-(C?m.crossAxis:0);g<j?g=j:g>k&&(g=k)}return{[f]:d,[h]:g}}}},iw=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:o,rects:a,platform:i,elements:s}=e,{apply:u=()=>{},...l}=yt(t,e),c=await cn(e,l),h=xt(o),f=Br(o),d=Ke(o)==="y",{width:g,height:b}=a.floating;let m,v;h==="top"||h==="bottom"?(m=h,v=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=h,m=f==="end"?"top":"bottom");const x=b-c.top-c.bottom,S=g-c.left-c.right,C=Mt(b-c[m],x),j=Mt(g-c[v],S),k=!e.middlewareData.shift;let R=C,M=j;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(M=S),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(R=x),k&&!f){const $=Oe(c.left,0),E=Oe(c.right,0),T=Oe(c.top,0),P=Oe(c.bottom,0);d?M=g-2*($!==0||E!==0?$+E:Oe(c.left,c.right)):R=b-2*(T!==0||P!==0?T+P:Oe(c.top,c.bottom))}await u({...e,availableWidth:M,availableHeight:R});const D=await i.getDimensions(s.floating);return g!==D.width||b!==D.height?{reset:{rects:!0}}:{}}}};function Zo(){return typeof window<"u"}function zr(t){return Cd(t)?(t.nodeName||"").toLowerCase():"#document"}function ke(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function it(t){var e;return(e=(Cd(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Cd(t){return Zo()?t instanceof Node||t instanceof ke(t).Node:!1}function qe(t){return Zo()?t instanceof Element||t instanceof ke(t).Element:!1}function nt(t){return Zo()?t instanceof HTMLElement||t instanceof ke(t).HTMLElement:!1}function Sl(t){return!Zo()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ke(t).ShadowRoot}const sw=new Set(["inline","contents"]);function En(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=Ue(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!sw.has(o)}const uw=new Set(["table","td","th"]);function lw(t){return uw.has(zr(t))}const cw=[":popover-open",":modal"];function Qo(t){return cw.some(e=>{try{return t.matches(e)}catch{return!1}})}const dw=["transform","translate","scale","rotate","perspective"],fw=["transform","translate","scale","rotate","perspective","filter"],pw=["paint","layout","strict","content"];function bs(t){const e=vs(),r=qe(t)?Ue(t):t;return dw.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||fw.some(n=>(r.willChange||"").includes(n))||pw.some(n=>(r.contain||"").includes(n))}function hw(t){let e=Lt(t);for(;nt(e)&&!wr(e);){if(bs(e))return e;if(Qo(e))return null;e=Lt(e)}return null}function vs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mw=new Set(["html","body","#document"]);function wr(t){return mw.has(zr(t))}function Ue(t){return ke(t).getComputedStyle(t)}function ea(t){return qe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Lt(t){if(zr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Sl(t)&&t.host||it(t);return Sl(e)?e.host:e}function Ed(t){const e=Lt(t);return wr(e)?t.ownerDocument?t.ownerDocument.body:t.body:nt(e)&&En(e)?e:Ed(e)}function dn(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=Ed(t),a=o===((n=t.ownerDocument)==null?void 0:n.body),i=ke(o);if(a){const s=hi(i);return e.concat(i,i.visualViewport||[],En(o)?o:[],s&&r?dn(s):[])}return e.concat(o,dn(o,[],r))}function hi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Nd(t){const e=Ue(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=nt(t),a=o?t.offsetWidth:r,i=o?t.offsetHeight:n,s=vo(r)!==a||vo(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function ys(t){return qe(t)?t:t.contextElement}function br(t){const e=ys(t);if(!nt(e))return Ze(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:a}=Nd(e);let i=(a?vo(r.width):r.width)/n,s=(a?vo(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const gw=Ze(0);function Td(t){const e=ke(t);return!vs()||!e.visualViewport?gw:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function bw(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ke(t)?!1:e}function Xt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),a=ys(t);let i=Ze(1);e&&(n?qe(n)&&(i=br(n)):i=br(t));const s=bw(a,r,n)?Td(a):Ze(0);let u=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,c=o.width/i.x,h=o.height/i.y;if(a){const f=ke(a),d=n&&qe(n)?ke(n):n;let g=f,b=hi(g);for(;b&&n&&d!==g;){const m=br(b),v=b.getBoundingClientRect(),x=Ue(b),S=v.left+(b.clientLeft+parseFloat(x.paddingLeft))*m.x,C=v.top+(b.clientTop+parseFloat(x.paddingTop))*m.y;u*=m.x,l*=m.y,c*=m.x,h*=m.y,u+=S,l+=C,g=ke(b),b=hi(g)}}return xo({width:c,height:h,x:u,y:l})}function ta(t,e){const r=ea(t).scrollLeft;return e?e.left+r:Xt(it(t)).left+r}function jd(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-ta(t,r),o=r.top+e.scrollTop;return{x:n,y:o}}function vw(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const a=o==="fixed",i=it(n),s=e?Qo(e.floating):!1;if(n===i||s&&a)return r;let u={scrollLeft:0,scrollTop:0},l=Ze(1);const c=Ze(0),h=nt(n);if((h||!h&&!a)&&((zr(n)!=="body"||En(i))&&(u=ea(n)),nt(n))){const d=Xt(n);l=br(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}const f=i&&!h&&!a?jd(i,u):Ze(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-u.scrollLeft*l.x+c.x+f.x,y:r.y*l.y-u.scrollTop*l.y+c.y+f.y}}function yw(t){return Array.from(t.getClientRects())}function xw(t){const e=it(t),r=ea(t),n=t.ownerDocument.body,o=Oe(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Oe(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+ta(t);const s=-r.scrollTop;return Ue(n).direction==="rtl"&&(i+=Oe(e.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}const Cl=25;function ww(t,e){const r=ke(t),n=it(t),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;const c=vs();(!c||c&&e==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const l=ta(n);if(l<=0){const c=n.ownerDocument,h=c.body,f=getComputedStyle(h),d=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(n.clientWidth-h.clientWidth-d);g<=Cl&&(a-=g)}else l<=Cl&&(a+=l);return{width:a,height:i,x:s,y:u}}const Sw=new Set(["absolute","fixed"]);function Cw(t,e){const r=Xt(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,a=nt(t)?br(t):Ze(1),i=t.clientWidth*a.x,s=t.clientHeight*a.y,u=o*a.x,l=n*a.y;return{width:i,height:s,x:u,y:l}}function El(t,e,r){let n;if(e==="viewport")n=ww(t,r);else if(e==="document")n=xw(it(t));else if(qe(e))n=Cw(e,r);else{const o=Td(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return xo(n)}function Ad(t,e){const r=Lt(t);return r===e||!qe(r)||wr(r)?!1:Ue(r).position==="fixed"||Ad(r,e)}function Ew(t,e){const r=e.get(t);if(r)return r;let n=dn(t,[],!1).filter(s=>qe(s)&&zr(s)!=="body"),o=null;const a=Ue(t).position==="fixed";let i=a?Lt(t):t;for(;qe(i)&&!wr(i);){const s=Ue(i),u=bs(i);!u&&s.position==="fixed"&&(o=null),(a?!u&&!o:!u&&s.position==="static"&&!!o&&Sw.has(o.position)||En(i)&&!u&&Ad(t,i))?n=n.filter(c=>c!==i):o=s,i=Lt(i)}return e.set(t,n),n}function Nw(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const i=[...r==="clippingAncestors"?Qo(e)?[]:Ew(e,this._c):[].concat(r),n],s=i[0],u=i.reduce((l,c)=>{const h=El(e,c,o);return l.top=Oe(h.top,l.top),l.right=Mt(h.right,l.right),l.bottom=Mt(h.bottom,l.bottom),l.left=Oe(h.left,l.left),l},El(e,s,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Tw(t){const{width:e,height:r}=Nd(t);return{width:e,height:r}}function jw(t,e,r){const n=nt(e),o=it(e),a=r==="fixed",i=Xt(t,!0,a,e);let s={scrollLeft:0,scrollTop:0};const u=Ze(0);function l(){u.x=ta(o)}if(n||!n&&!a)if((zr(e)!=="body"||En(o))&&(s=ea(e)),n){const d=Xt(e,!0,a,e);u.x=d.x+e.clientLeft,u.y=d.y+e.clientTop}else o&&l();a&&!n&&o&&l();const c=o&&!n&&!a?jd(o,s):Ze(0),h=i.left+s.scrollLeft-u.x-c.x,f=i.top+s.scrollTop-u.y-c.y;return{x:h,y:f,width:i.width,height:i.height}}function Ra(t){return Ue(t).position==="static"}function Nl(t,e){if(!nt(t)||Ue(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return it(t)===r&&(r=r.ownerDocument.body),r}function Od(t,e){const r=ke(t);if(Qo(t))return r;if(!nt(t)){let o=Lt(t);for(;o&&!wr(o);){if(qe(o)&&!Ra(o))return o;o=Lt(o)}return r}let n=Nl(t,e);for(;n&&lw(n)&&Ra(n);)n=Nl(n,e);return n&&wr(n)&&Ra(n)&&!bs(n)?r:n||hw(t)||r}const Aw=async function(t){const e=this.getOffsetParent||Od,r=this.getDimensions,n=await r(t.floating);return{reference:jw(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ow(t){return Ue(t).direction==="rtl"}const kw={convertOffsetParentRelativeRectToViewportRelativeRect:vw,getDocumentElement:it,getClippingRect:Nw,getOffsetParent:Od,getElementRects:Aw,getClientRects:yw,getDimensions:Tw,getScale:br,isElement:qe,isRTL:Ow};function kd(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Pw(t,e){let r=null,n;const o=it(t);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const l=t.getBoundingClientRect(),{left:c,top:h,width:f,height:d}=l;if(s||e(),!f||!d)return;const g=zn(h),b=zn(o.clientWidth-(c+f)),m=zn(o.clientHeight-(h+d)),v=zn(c),S={rootMargin:-g+"px "+-b+"px "+-m+"px "+-v+"px",threshold:Oe(0,Mt(1,u))||1};let C=!0;function j(k){const R=k[0].intersectionRatio;if(R!==u){if(!C)return i();R?i(!1,R):n=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!kd(l,t.getBoundingClientRect())&&i(),C=!1}try{r=new IntersectionObserver(j,{...S,root:o.ownerDocument})}catch{r=new IntersectionObserver(j,S)}r.observe(t)}return i(!0),a}function _w(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,l=ys(t),c=o||a?[...l?dn(l):[],...dn(e)]:[];c.forEach(v=>{o&&v.addEventListener("scroll",r,{passive:!0}),a&&v.addEventListener("resize",r)});const h=l&&s?Pw(l,r):null;let f=-1,d=null;i&&(d=new ResizeObserver(v=>{let[x]=v;x&&x.target===l&&d&&(d.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=d)==null||S.observe(e)})),r()}),l&&!u&&d.observe(l),d.observe(e));let g,b=u?Xt(t):null;u&&m();function m(){const v=Xt(t);b&&!kd(b,v)&&r(),b=v,g=requestAnimationFrame(m)}return r(),()=>{var v;c.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),h==null||h(),(v=d)==null||v.disconnect(),d=null,u&&cancelAnimationFrame(g)}}const Rw=nw,Iw=ow,Dw=ew,Mw=iw,Lw=tw,Tl=Q2,$w=aw,Bw=(t,e,r)=>{const n=new Map,o={platform:kw,...r},a={...o.platform,_c:n};return Z2(t,e,{...o,platform:a})};var zw=typeof document<"u",Hw=function(){},eo=zw?w.useLayoutEffect:Hw;function wo(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!wo(t[n],e[n]))return!1;return!0}if(o=Object.keys(t),r=o.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&t.$$typeof)&&!wo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Pd(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function jl(t,e){const r=Pd(t);return Math.round(e*r)/r}function Ia(t){const e=y.useRef(t);return eo(()=>{e.current=t}),e}function Fw(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:u,open:l}=t,[c,h]=y.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[f,d]=y.useState(n);wo(f,n)||d(n);const[g,b]=y.useState(null),[m,v]=y.useState(null),x=y.useCallback(_=>{_!==k.current&&(k.current=_,b(_))},[]),S=y.useCallback(_=>{_!==R.current&&(R.current=_,v(_))},[]),C=a||g,j=i||m,k=y.useRef(null),R=y.useRef(null),M=y.useRef(c),D=u!=null,$=Ia(u),E=Ia(o),T=Ia(l),P=y.useCallback(()=>{if(!k.current||!R.current)return;const _={placement:e,strategy:r,middleware:f};E.current&&(_.platform=E.current),Bw(k.current,R.current,_).then(L=>{const q={...L,isPositioned:T.current!==!1};I.current&&!wo(M.current,q)&&(M.current=q,pc.flushSync(()=>{h(q)}))})},[f,e,r,E,T]);eo(()=>{l===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,h(_=>({..._,isPositioned:!1})))},[l]);const I=y.useRef(!1);eo(()=>(I.current=!0,()=>{I.current=!1}),[]),eo(()=>{if(C&&(k.current=C),j&&(R.current=j),C&&j){if($.current)return $.current(C,j,P);P()}},[C,j,P,$,D]);const N=y.useMemo(()=>({reference:k,floating:R,setReference:x,setFloating:S}),[x,S]),O=y.useMemo(()=>({reference:C,floating:j}),[C,j]),A=y.useMemo(()=>{const _={position:r,left:0,top:0};if(!O.floating)return _;const L=jl(O.floating,c.x),q=jl(O.floating,c.y);return s?{..._,transform:"translate("+L+"px, "+q+"px)",...Pd(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:L,top:q}},[r,s,O.floating,c.x,c.y]);return y.useMemo(()=>({...c,update:P,refs:N,elements:O,floatingStyles:A}),[c,P,N,O,A])}const qw=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:o}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?Tl({element:n.current,padding:o}).fn(r):{}:n?Tl({element:n,padding:o}).fn(r):{}}}},Uw=(t,e)=>({...Rw(t),options:[t,e]}),Vw=(t,e)=>({...Iw(t),options:[t,e]}),Ww=(t,e)=>({...$w(t),options:[t,e]}),Gw=(t,e)=>({...Dw(t),options:[t,e]}),Yw=(t,e)=>({...Mw(t),options:[t,e]}),Xw=(t,e)=>({...Lw(t),options:[t,e]}),Kw=(t,e)=>({...qw(t),options:[t,e]});var Jw="Arrow",_d=y.forwardRef((t,e)=>{const{children:r,width:n=10,height:o=5,...a}=t;return p.jsx(me.svg,{...a,ref:e,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});_d.displayName=Jw;var Zw=_d;function Rd(t){const[e,r]=y.useState(void 0);return Dt(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const u=a.borderBoxSize,l=Array.isArray(u)?u[0]:u;i=l.inlineSize,s=l.blockSize}else i=t.offsetWidth,s=t.offsetHeight;r({width:i,height:s})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var xs="Popper",[Id,Dd]=tr(xs),[Qw,Md]=Id(xs),Ld=t=>{const{__scopePopper:e,children:r}=t,[n,o]=y.useState(null);return p.jsx(Qw,{scope:e,anchor:n,onAnchorChange:o,children:r})};Ld.displayName=xs;var $d="PopperAnchor",Bd=y.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...o}=t,a=Md($d,r),i=y.useRef(null),s=we(e,i),u=y.useRef(null);return y.useEffect(()=>{const l=u.current;u.current=(n==null?void 0:n.current)||i.current,l!==u.current&&a.onAnchorChange(u.current)}),n?null:p.jsx(me.div,{...o,ref:s})});Bd.displayName=$d;var ws="PopperContent",[e3,t3]=Id(ws),zd=y.forwardRef((t,e)=>{var H,Ne,ye,ge,We,lt;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:d="optimized",onPlaced:g,...b}=t,m=Md(ws,r),[v,x]=y.useState(null),S=we(e,Ge=>x(Ge)),[C,j]=y.useState(null),k=Rd(C),R=(k==null?void 0:k.width)??0,M=(k==null?void 0:k.height)??0,D=n+(a!=="center"?"-"+a:""),$=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},E=Array.isArray(l)?l:[l],T=E.length>0,P={padding:$,boundary:E.filter(n3),altBoundary:T},{refs:I,floatingStyles:N,placement:O,isPositioned:A,middlewareData:_}=Fw({strategy:"fixed",placement:D,whileElementsMounted:(...Ge)=>_w(...Ge,{animationFrame:d==="always"}),elements:{reference:m.anchor},middleware:[Uw({mainAxis:o+M,alignmentAxis:i}),u&&Vw({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Ww():void 0,...P}),u&&Gw({...P}),Yw({...P,apply:({elements:Ge,rects:Rn,availableWidth:va,availableHeight:In})=>{const{width:ya,height:Ur}=Rn.reference,ar=Ge.floating.style;ar.setProperty("--radix-popper-available-width",`${va}px`),ar.setProperty("--radix-popper-available-height",`${In}px`),ar.setProperty("--radix-popper-anchor-width",`${ya}px`),ar.setProperty("--radix-popper-anchor-height",`${Ur}px`)}}),C&&Kw({element:C,padding:s}),o3({arrowWidth:R,arrowHeight:M}),f&&Xw({strategy:"referenceHidden",...P})]}),[L,q]=qd(O),de=De(g);Dt(()=>{A&&(de==null||de())},[A,de]);const Z=(H=_.arrow)==null?void 0:H.x,B=(Ne=_.arrow)==null?void 0:Ne.y,z=((ye=_.arrow)==null?void 0:ye.centerOffset)!==0,[he,X]=y.useState();return Dt(()=>{v&&X(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:A?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(ge=_.transformOrigin)==null?void 0:ge.x,(We=_.transformOrigin)==null?void 0:We.y].join(" "),...((lt=_.hide)==null?void 0:lt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:p.jsx(e3,{scope:r,placedSide:L,onArrowChange:j,arrowX:Z,arrowY:B,shouldHideArrow:z,children:p.jsx(me.div,{"data-side":L,"data-align":q,...b,ref:S,style:{...b.style,animation:A?void 0:"none"}})})})});zd.displayName=ws;var Hd="PopperArrow",r3={top:"bottom",right:"left",bottom:"top",left:"right"},Fd=y.forwardRef(function(e,r){const{__scopePopper:n,...o}=e,a=t3(Hd,n),i=r3[a.placedSide];return p.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:p.jsx(Zw,{...o,ref:r,style:{...o.style,display:"block"}})})});Fd.displayName=Hd;function n3(t){return t!==null}var o3=t=>({name:"transformOrigin",options:t,fn(e){var m,v,x;const{placement:r,rects:n,middlewareData:o}=e,i=((m=o.arrow)==null?void 0:m.centerOffset)!==0,s=i?0:t.arrowWidth,u=i?0:t.arrowHeight,[l,c]=qd(r),h={start:"0%",center:"50%",end:"100%"}[c],f=(((v=o.arrow)==null?void 0:v.x)??0)+s/2,d=(((x=o.arrow)==null?void 0:x.y)??0)+u/2;let g="",b="";return l==="bottom"?(g=i?h:`${f}px`,b=`${-u}px`):l==="top"?(g=i?h:`${f}px`,b=`${n.floating.height+u}px`):l==="right"?(g=`${-u}px`,b=i?h:`${d}px`):l==="left"&&(g=`${n.floating.width+u}px`,b=i?h:`${d}px`),{data:{x:g,y:b}}}});function qd(t){const[e,r="center"]=t.split("-");return[e,r]}var a3=Ld,i3=Bd,s3=zd,u3=Fd;function l3(t,e){return y.useReducer((r,n)=>e[r][n]??r,t)}var rr=t=>{const{present:e,children:r}=t,n=c3(e),o=typeof r=="function"?r({present:n.isPresent}):y.Children.only(r),a=we(n.ref,d3(o));return typeof r=="function"||n.isPresent?y.cloneElement(o,{ref:a}):null};rr.displayName="Presence";function c3(t){const[e,r]=y.useState(),n=y.useRef(null),o=y.useRef(t),a=y.useRef("none"),i=t?"mounted":"unmounted",[s,u]=l3(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const l=Hn(n.current);a.current=s==="mounted"?l:"none"},[s]),Dt(()=>{const l=n.current,c=o.current;if(c!==t){const f=a.current,d=Hn(l);t?u("MOUNT"):d==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(c&&f!==d?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,u]),Dt(()=>{if(e){let l;const c=e.ownerDocument.defaultView??window,h=d=>{const b=Hn(n.current).includes(CSS.escape(d.animationName));if(d.target===e&&b&&(u("ANIMATION_END"),!o.current)){const m=e.style.animationFillMode;e.style.animationFillMode="forwards",l=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=m)})}},f=d=>{d.target===e&&(a.current=Hn(n.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{c.clearTimeout(l),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:y.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Hn(t){return(t==null?void 0:t.animationName)||"none"}function d3(t){var n,o;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var f3=Symbol("radix.slottable");function p3(t){const e=({children:r})=>p.jsx(p.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=f3,e}var h3=y[" useInsertionEffect ".trim().toString()]||Dt;function Hr({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[o,a,i]=m3({defaultProp:e,onChange:r}),s=t!==void 0,u=s?t:o;{const c=y.useRef(t!==void 0);y.useEffect(()=>{const h=c.current;h!==s&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=s},[s,n])}const l=y.useCallback(c=>{var h;if(s){const f=g3(c)?c(t):c;f!==t&&((h=i.current)==null||h.call(i,f))}else a(c)},[s,t,a,i]);return[u,l]}function m3({defaultProp:t,onChange:e}){const[r,n]=y.useState(t),o=y.useRef(r),a=y.useRef(e);return h3(()=>{a.current=e},[e]),y.useEffect(()=>{var i;o.current!==r&&((i=a.current)==null||i.call(a,r),o.current=r)},[r,o]),[r,n,a]}function g3(t){return typeof t=="function"}var b3=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),v3="VisuallyHidden",Ud=y.forwardRef((t,e)=>p.jsx(me.span,{...t,ref:e,style:{...b3,...t.style}}));Ud.displayName=v3;var y3=Ud,[ra]=tr("Tooltip",[Dd]),na=Dd(),Vd="TooltipProvider",x3=700,mi="tooltip.open",[w3,Ss]=ra(Vd),Wd=t=>{const{__scopeTooltip:e,delayDuration:r=x3,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=t,i=y.useRef(!0),s=y.useRef(!1),u=y.useRef(0);return y.useEffect(()=>{const l=u.current;return()=>window.clearTimeout(l)},[]),p.jsx(w3,{scope:e,isOpenDelayedRef:i,delayDuration:r,onOpen:y.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:y.useCallback(l=>{s.current=l},[]),disableHoverableContent:o,children:a})};Wd.displayName=Vd;var fn="Tooltip",[S3,oa]=ra(fn),Gd=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=t,u=Ss(fn,t.__scopeTooltip),l=na(e),[c,h]=y.useState(null),f=xd(),d=y.useRef(0),g=i??u.disableHoverableContent,b=s??u.delayDuration,m=y.useRef(!1),[v,x]=Hr({prop:n,defaultProp:o??!1,onChange:R=>{R?(u.onOpen(),document.dispatchEvent(new CustomEvent(mi))):u.onClose(),a==null||a(R)},caller:fn}),S=y.useMemo(()=>v?m.current?"delayed-open":"instant-open":"closed",[v]),C=y.useCallback(()=>{window.clearTimeout(d.current),d.current=0,m.current=!1,x(!0)},[x]),j=y.useCallback(()=>{window.clearTimeout(d.current),d.current=0,x(!1)},[x]),k=y.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{m.current=!0,x(!0),d.current=0},b)},[b,x]);return y.useEffect(()=>()=>{d.current&&(window.clearTimeout(d.current),d.current=0)},[]),p.jsx(a3,{...l,children:p.jsx(S3,{scope:e,contentId:f,open:v,stateAttribute:S,trigger:c,onTriggerChange:h,onTriggerEnter:y.useCallback(()=>{u.isOpenDelayedRef.current?k():C()},[u.isOpenDelayedRef,k,C]),onTriggerLeave:y.useCallback(()=>{g?j():(window.clearTimeout(d.current),d.current=0)},[j,g]),onOpen:C,onClose:j,disableHoverableContent:g,children:r})})};Gd.displayName=fn;var gi="TooltipTrigger",Yd=y.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=oa(gi,r),a=Ss(gi,r),i=na(r),s=y.useRef(null),u=we(e,s,o.onTriggerChange),l=y.useRef(!1),c=y.useRef(!1),h=y.useCallback(()=>l.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),p.jsx(i3,{asChild:!0,...i,children:p.jsx(me.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:u,onPointerMove:ue(t.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ue(t.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ue(t.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ue(t.onFocus,()=>{l.current||o.onOpen()}),onBlur:ue(t.onBlur,o.onClose),onClick:ue(t.onClick,o.onClose)})})});Yd.displayName=gi;var C3="TooltipPortal",[hC,E3]=ra(C3,{forceMount:void 0}),Sr="TooltipContent",Xd=y.forwardRef((t,e)=>{const r=E3(Sr,t.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=t,i=oa(Sr,t.__scopeTooltip);return p.jsx(rr,{present:n||i.open,children:i.disableHoverableContent?p.jsx(Kd,{side:o,...a,ref:e}):p.jsx(N3,{side:o,...a,ref:e})})}),N3=y.forwardRef((t,e)=>{const r=oa(Sr,t.__scopeTooltip),n=Ss(Sr,t.__scopeTooltip),o=y.useRef(null),a=we(e,o),[i,s]=y.useState(null),{trigger:u,onClose:l}=r,c=o.current,{onPointerInTransitChange:h}=n,f=y.useCallback(()=>{s(null),h(!1)},[h]),d=y.useCallback((g,b)=>{const m=g.currentTarget,v={x:g.clientX,y:g.clientY},x=k3(v,m.getBoundingClientRect()),S=P3(v,x),C=_3(b.getBoundingClientRect()),j=I3([...S,...C]);s(j),h(!0)},[h]);return y.useEffect(()=>()=>f(),[f]),y.useEffect(()=>{if(u&&c){const g=m=>d(m,c),b=m=>d(m,u);return u.addEventListener("pointerleave",g),c.addEventListener("pointerleave",b),()=>{u.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",b)}}},[u,c,d,f]),y.useEffect(()=>{if(i){const g=b=>{const m=b.target,v={x:b.clientX,y:b.clientY},x=(u==null?void 0:u.contains(m))||(c==null?void 0:c.contains(m)),S=!R3(v,i);x?f():S&&(f(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[u,c,i,l,f]),p.jsx(Kd,{...t,ref:a})}),[T3,j3]=ra(fn,{isInside:!1}),A3=p3("TooltipContent"),Kd=y.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=t,u=oa(Sr,r),l=na(r),{onClose:c}=u;return y.useEffect(()=>(document.addEventListener(mi,c),()=>document.removeEventListener(mi,c)),[c]),y.useEffect(()=>{if(u.trigger){const h=f=>{const d=f.target;d!=null&&d.contains(u.trigger)&&c()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[u.trigger,c]),p.jsx(vd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:c,children:p.jsxs(s3,{"data-state":u.stateAttribute,...l,...s,ref:e,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(A3,{children:n}),p.jsx(T3,{scope:r,isInside:!0,children:p.jsx(y3,{id:u.contentId,role:"tooltip",children:o||n})})]})})});Xd.displayName=Sr;var Jd="TooltipArrow",O3=y.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=na(r);return j3(Jd,r).isInside?null:p.jsx(u3,{...o,...n,ref:e})});O3.displayName=Jd;function k3(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),a=Math.abs(e.left-t.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function P3(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function _3(t){const{top:e,right:r,bottom:n,left:o}=t;return[{x:o,y:e},{x:r,y:e},{x:r,y:n},{x:o,y:n}]}function R3(t,e){const{x:r,y:n}=t;let o=!1;for(let a=0,i=e.length-1;a<e.length;i=a++){const s=e[a],u=e[i],l=s.x,c=s.y,h=u.x,f=u.y;c>n!=f>n&&r<(h-l)*(n-c)/(f-c)+l&&(o=!o)}return o}function I3(t){const e=t.slice();return e.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),D3(e)}function D3(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n<t.length;n++){const o=t[n];for(;e.length>=2;){const a=e[e.length-1],i=e[e.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))e.pop();else break}e.push(o)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const o=t[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var M3=Wd,L3=Gd,$3=Yd,Zd=Xd;const pn=M3,Cr=L3,Er=$3,Kt=y.forwardRef(({className:t,sideOffset:e=4,...r},n)=>p.jsx(Zd,{ref:n,sideOffset:e,className:Se("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));Kt.displayName=Zd.displayName;const vr={mobile:{icon:Gi,label:"Mobile"},tablet:{icon:Yi,label:"Tablet"},small:{icon:Wi,label:"Small Desktop"},desktop:{icon:Xi,label:"Desktop"}},V=({title:t,children:e,defaultOpen:r=!0})=>{const[n,o]=w.useState(r);return p.jsxs("div",{className:"border-b border-border pb-3",children:[p.jsxs("button",{onClick:()=>o(!n),className:"flex items-center justify-between w-full py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground",children:[t,n?p.jsx(qi,{className:"h-3 w-3"}):p.jsx(Ui,{className:"h-3 w-3"})]}),n&&p.jsx("div",{className:"mt-2 space-y-3",children:e})]})},pe=({label:t,value:e,onChange:r,min:n=0,max:o=100,unit:a,inputClassName:i=""})=>p.jsxs("div",{className:"flex items-center justify-between",children:[t?p.jsx("label",{className:"text-xs text-muted-foreground",children:t}):null,p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",value:e,onChange:s=>r(parseInt(s.target.value)),min:n,max:o,className:tt("w-14 px-2 py-1 text-xs rounded border border-input bg-background text-right",i)}),a?p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:a}):null]})]}),So=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:a="px",defaultValue:i=16})=>{const s=Ce(),[u,l]=w.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??i},h=()=>c[s]??c.desktop??i,f=(b,m)=>{const v={...c,[b]:m};r(v)},d=b=>{f(s,b)},g=Ie.some(b=>b!=="desktop"&&c[b]!==void 0);return p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx(pn,{children:p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!u),className:`p-1 rounded transition-colors ${u||g?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:w.createElement(vr[s].icon,{className:"h-3 w-3"})})}),p.jsx(Kt,{side:"left",children:p.jsx("p",{children:u?"Hide breakpoints":"Edit per breakpoint"})})]})})]}),u?p.jsx("div",{className:"space-y-1.5 pl-2 border-l-2 border-primary/20",children:Ie.map(b=>{const m=vr[b].icon,v=c[b],x=v===void 0?Ie.find(S=>Ie.indexOf(S)>Ie.indexOf(b)&&c[S]!==void 0)||"desktop":null;return p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(pn,{children:p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("div",{className:`p-1 rounded ${b===s?"bg-primary/10":""}`,children:p.jsx(m,{className:"h-3 w-3 text-muted-foreground"})})}),p.jsx(Kt,{side:"left",children:p.jsx("p",{children:vr[b].label})})]})}),p.jsx("input",{type:"number",value:v??"",placeholder:x?`${c[x]??i}`:"",onChange:S=>{const C=S.target.value===""?void 0:parseInt(S.target.value)||0;f(b,C)},min:n,max:o,className:`flex-1 px-2 py-1 text-xs rounded border border-input bg-background text-right ${v===void 0?"text-muted-foreground":""}`}),p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:a})]},b)})}):p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",value:h(),onChange:b=>d(parseInt(b.target.value)||0),min:n,max:o,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-right"}),p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:a})]})]})},Me=({label:t,values:e,onChange:r})=>{var s;const n=Ce(),[o,a]=w.useState(!0),i=(u,l)=>{r(o?{[n]:{top:l,right:l,bottom:l,left:l}}:{[n]:{...e[n],[u]:l}})};return p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("button",{onClick:()=>a(!o),className:`text-xs px-2 py-0.5 rounded ${o?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:o?"Linked":"Individual"})]}),o?p.jsx("input",{type:"number",value:(s=e==null?void 0:e[n])==null?void 0:s.top,onChange:u=>i("top",parseInt(u.target.value)),min:0,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-center"}):p.jsx("div",{className:"flex gap-1",children:["top","right","bottom","left"].map(u=>{var l;return p.jsxs("div",{className:"text-center",children:[p.jsx("span",{className:"text-[10px] text-muted-foreground",children:u[0].toUpperCase()}),p.jsx("input",{type:"number",value:(l=e==null?void 0:e[n])==null?void 0:l[u],onChange:c=>i(u,parseInt(c.target.value)),min:0,className:"w-full px-1 py-1 text-xs rounded border border-input bg-background text-center"})]},u)})})]})},J=({label:t,value:e,options:r,onChange:n,className:o="",selectClassName:a=""})=>p.jsxs("div",{className:tt("flex items-center justify-between",o,a),children:[t?p.jsx("label",{className:"text-xs text-muted-foreground",children:t}):null,p.jsx("select",{value:e,onChange:i=>n(i.target.value),className:tt("px-2 py-1 text-xs rounded border border-input bg-background ",a),children:r.map(i=>p.jsx("option",{value:i.value,children:i.label},i.value))})]}),Qe=({label:t,value:e,onChange:r})=>p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("input",{type:"color",value:e!=null&&e.startsWith("#")?e:"#000000",onChange:n=>r(n.target.value),className:"w-6 h-6 rounded border border-input cursor-pointer"}),p.jsx("input",{type:"text",value:e||"",onChange:n=>r(n.target.value),className:"w-20 px-2 py-1 text-xs rounded border border-input bg-background",placeholder:"#000000"})]})]}),vt=({label:t,value:e,options:r,onChange:n})=>p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("div",{className:"flex gap-1",children:r.map(o=>p.jsx("button",{onClick:()=>n(o.value),className:`flex-1 px-2 py-1.5 text-xs rounded border transition-colors ${e===o.value?"bg-primary text-primary-foreground border-primary":"border-input hover:bg-secondary"}`,title:o.label,children:o.icon||o.label},o.value))})]}),$t=({label:t,value:e,onChange:r,multiline:n=!1})=>p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),n?p.jsx("textarea",{value:e||"",onChange:o=>r(o.target.value),className:"w-full p-2 text-xs rounded border border-input bg-background resize-none",rows:3}):p.jsx("input",{type:"text",value:e||"",onChange:o=>r(o.target.value),className:"w-full px-2 py-1.5 text-xs rounded border border-input bg-background"})]}),aa=({label:t,value:e,onChange:r,min:n=0,max:o=100,unit:a=""})=>p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsxs("span",{className:"text-xs text-muted-foreground",children:[e,a]})]}),p.jsx("input",{type:"range",value:e,onChange:i=>r(parseInt(i.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]}),Co=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:a="",defaultValue:i=50})=>{const s=Ce(),[u,l]=w.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??i},h=()=>c[s]??c.desktop??i,f=(g,b)=>{const m={...c,[g]:b};r(m)},d=Ie.some(g=>g!=="desktop"&&c[g]!==void 0);return p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("span",{className:"text-xs text-muted-foreground",children:[h(),a]}),p.jsx(pn,{children:p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!u),className:`p-1 rounded transition-colors ${u||d?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:w.createElement(vr[s].icon,{className:"h-3 w-3"})})}),p.jsx(Kt,{side:"left",children:p.jsx("p",{children:u?"Hide breakpoints":"Edit per breakpoint"})})]})})]})]}),u?p.jsx("div",{className:"space-y-2 pl-2 border-l-2 border-primary/20",children:Ie.map(g=>{const b=vr[g].icon,m=c[g];return p.jsxs("div",{className:"space-y-1",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:`p-1 rounded ${g===s?"bg-primary/10":""}`,children:p.jsx(b,{className:"h-3 w-3 text-muted-foreground"})}),p.jsx("span",{className:"text-xs text-muted-foreground flex-1",children:vr[g].label}),p.jsxs("span",{className:"text-xs",children:[m??"-",m!==void 0?a:""]})]}),p.jsx("input",{type:"range",value:m??c.desktop??i,onChange:v=>f(g,parseInt(v.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]},g)})}):p.jsx("input",{type:"range",value:h(),onChange:g=>f(s,parseInt(g.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]})},Cs=({text:t="Click me",variant:e="solid",size:r="md",backgroundColor:n="#FF6B35",textColor:o="#ffffff",borderColor:a="#FF6B35",borderWidth:i=0,borderRadius:s=8,fontWeight:u="500",fontSize:l="auto",width:c="auto",paddingX:h=16,paddingY:f=10,margin:d={top:0,right:0,bottom:0,left:0},boxShadow:g="none",opacity:b=100})=>{const m=Ce();let v,x,S;try{const{connectors:I,events:N}=ne(O=>({events:O.events}));v=I.connect,x=I.drag,S=N.selected}catch{}const C={sm:{px:12,py:6,fs:14},md:{px:16,py:10,fs:16},lg:{px:24,py:14,fs:18}},j=C[r]||C.md,k=h==="auto"?j.px:h,R=f==="auto"?j.py:f,M=l==="auto"?j.fs:l,D=typeof d[m]=="object"?`${d[m].top}px ${d[m].right}px ${d[m].bottom}px ${d[m].left}px`:`${d[m]}px`,$=e==="outline"?"transparent":n,E=e==="outline"?n:o,T=e==="outline"?2:i,P=e==="outline"?n:a;return p.jsx("button",{ref:I=>I&&v&&x&&(v==null?void 0:v(x==null?void 0:x(I))),className:`cursor-move transition-all hover:opacity-90 ${S?"ring-2 ring-primary ring-offset-2":""}`,style:{backgroundColor:$,color:E,borderWidth:`${T}px`,borderColor:P,borderStyle:"solid",borderRadius:`${s}px`,fontWeight:u,fontSize:`${M}px`,padding:`${R}px ${k}px`,margin:D,width:c==="full"?"100%":"auto",boxShadow:g==="none"?"none":g,opacity:b/100},children:t})},B3=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsx(V,{title:"Content",defaultOpen:!0,children:p.jsx($t,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)})}),p.jsxs(V,{title:"Style",defaultOpen:!0,children:[p.jsx(vt,{label:"Variant",value:e.variant||"solid",options:[{value:"solid",label:"Solid"},{value:"outline",label:"Outline"}],onChange:n=>t(o=>o.variant=n)}),p.jsx(vt,{label:"Size Preset",value:e.size||"md",options:[{value:"sm",label:"S"},{value:"md",label:"M"},{value:"lg",label:"L"}],onChange:n=>t(o=>o.size=n)}),p.jsx(vt,{label:"Width",value:e.width||"auto",options:[{value:"auto",label:"Auto"},{value:"full",label:"Full"}],onChange:n=>t(o=>o.width=n)})]}),p.jsxs(V,{title:"Colors",defaultOpen:!0,children:[p.jsx(Qe,{label:"Background",value:e.backgroundColor||"#FF6B35",onChange:n=>t(o=>o.backgroundColor=n)}),p.jsx(Qe,{label:"Text",value:e.textColor||"#ffffff",onChange:n=>t(o=>o.textColor=n)}),p.jsx(aa,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"})]}),p.jsxs(V,{title:"Typography",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Font Size",value:e.fontSize==="auto"?16:e.fontSize,onChange:n=>t(o=>o.fontSize=n),min:10,max:32}),p.jsx(J,{label:"Weight",value:e.fontWeight||"500",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"}],onChange:n=>t(o=>o.fontWeight=n)})]}),p.jsxs(V,{title:"Padding",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Horizontal",value:e.paddingX||16,onChange:n=>t(o=>o.paddingX=n),max:64}),p.jsx(pe,{unit:"px",label:"Vertical",value:e.paddingY||10,onChange:n=>t(o=>o.paddingY=n),max:48})]}),p.jsxs(V,{title:"Border",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:50}),p.jsx(pe,{unit:"px",label:"Width",value:e.borderWidth||0,onChange:n=>t(o=>o.borderWidth=n),max:10}),p.jsx(Qe,{label:"Color",value:e.borderColor||"#FF6B35",onChange:n=>t(o=>o.borderColor=n)})]}),p.jsx(V,{title:"Effects",defaultOpen:!1,children:p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 2px 4px rgba(0,0,0,0.1)",label:"Small"},{value:"0 4px 12px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 8px 24px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Cs.craft={displayName:"Button",props:{text:"Click me",variant:"solid",size:"md",backgroundColor:"#FF6B35",textColor:"#ffffff",borderColor:"#FF6B35",borderWidth:0,borderRadius:8,fontWeight:"500",fontSize:"auto",width:"auto",paddingX:16,paddingY:10,margin:{desktop:{top:0,right:0,bottom:0,left:0}},boxShadow:"none",opacity:100},related:{settings:B3}};const cr=({label:t,value:e,onChange:r,max:n=1e4})=>{var h,f,d;const o=Ce(),a=((h=e==null?void 0:e[o])==null?void 0:h.type)||"custom",i=(f=e==null?void 0:e[o])==null?void 0:f.value,s=((d=e==null?void 0:e[o])==null?void 0:d.unit)||"%",u=g=>{r(g==="none"?{[o]:{type:"none"}}:g==="auto"?{[o]:{type:"auto"}}:{[o]:{type:"custom",value:i,unit:s}})},l=g=>{r({[o]:{type:"custom",value:g,unit:s}})},c=g=>{r({[o]:{type:"custom",value:i,unit:g}})};return p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-xs font-medium",children:t}),p.jsx(J,{selectClassName:"w-full",value:a,options:[{value:"none",label:"None"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:u}),a==="custom"&&p.jsxs("div",{className:"flex",children:[p.jsx("div",{className:"",children:p.jsx(pe,{inputClassName:"w-full h-8 rounded-l-lg",value:i,onChange:l,max:n})}),p.jsx("div",{className:"",children:p.jsx(J,{selectClassName:" h-8",value:s,options:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"vh",label:"vh"},{value:"vw",label:"vw"}],onChange:c})})]})]})},z3=t=>t?typeof t=="string"?t:typeof t=="number"?`${t}px`:t.type==="none"?"none":t.type==="auto"?"auto":t.type==="custom"?`${t.value}${t.unit||"px"}`:"auto":"auto",Es=t=>{const e=Ce(),r=i=>{var u,l;console.log(e);const s=((u=t==null?void 0:t[i])==null?void 0:u[e])||((l=t==null?void 0:t[i])==null?void 0:l.desktop);return z3(s)},n=i=>{var s,u;return((s=t==null?void 0:t[i])==null?void 0:s[e])||((u=t==null?void 0:t[i])==null?void 0:u.desktop)},o=typeof n("padding")=="object"?`${n("padding").top}px ${n("padding").right}px ${n("padding").bottom}px ${n("padding").left}px`:`${n("padding")}px`,a=typeof n("margin")=="object"?`${n("margin").top}px ${n("margin").right}px ${n("margin").bottom}px ${n("margin").left}px`:`${n("margin")}px`;return{backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage?`url(${t.backgroundImage})`:"none",backgroundSize:t.backgroundSize,backgroundRepeat:t.backgroundRepeat,padding:o,margin:a,width:r("width"),height:r("height"),minHeight:r("minHeight"),maxHeight:r("maxHeight"),minWidth:r("minWidth"),maxWidth:r("maxWidth"),display:t.display,flexDirection:t.display==="flex"?t.flexDirection:void 0,justifyContent:t.display==="flex"?t.justifyContent:void 0,alignItems:t.display==="flex"?t.alignItems:void 0,gap:t.display==="flex"?`${t.gap}px`:void 0,borderRadius:`${t.borderRadius}px`,borderWidth:`${t.borderWidth}px`,borderColor:t.borderColor,borderStyle:t.borderStyle,boxShadow:t.boxShadow==="none"?"none":t.boxShadow,position:t.position||"relative",top:t.top||0,left:t.left||0}},hn={backgroundColor:"transparent",backgroundImage:"",backgroundSize:"cover",backgroundRepeat:"no-repeat",padding:{desktop:{top:0,right:0,bottom:0,left:0}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},width:{desktop:{type:"custom",value:50,unit:"%"}},height:{desktop:{type:"none"}},minHeight:{desktop:{type:"custom",value:50,unit:"px"}},maxHeight:{desktop:{type:"none"}},minWidth:{desktop:{type:"none"}},maxWidth:{desktop:{type:"none"}},display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:0,borderWidth:1,borderColor:"transparent",borderStyle:"solid",boxShadow:"none",position:"relative",top:0,left:0},ia=t=>{const{actions:{setProp:e},props:r}=ne(a=>({props:a.data.props})),n=typeof r.padding=="object"?r.padding:{top:r.padding||16,right:r.padding||16,bottom:r.padding||16,left:r.padding||16},o=typeof r.margin=="object"?r.margin:{top:r.margin||0,right:r.margin||0,bottom:r.margin||0,left:r.margin||0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Layout",defaultOpen:!0,children:[p.jsx(J,{label:"Display",value:r.display||"block",options:[{value:"block",label:"Block"},{value:"flex",label:"Flex"}],onChange:a=>e(i=>i.display=a)}),r.display==="flex"&&p.jsxs(p.Fragment,{children:[p.jsx(vt,{label:"Direction",value:r.flexDirection||"column",options:[{value:"row",label:"Row"},{value:"column",label:"Col"}],onChange:a=>e(i=>i.flexDirection=a)}),p.jsx(J,{label:"Justify",value:r.justifyContent||"flex-start",options:[{value:"flex-start",label:"Start"},{value:"center",label:"Center"},{value:"flex-end",label:"End"},{value:"space-between",label:"Between"}],onChange:a=>e(i=>i.justifyContent=a)}),p.jsx(pe,{unit:"px",label:"Gap",value:r.gap||0,onChange:a=>e(i=>i.gap=a),max:64})]})]}),p.jsxs(V,{title:"Sizing",defaultOpen:!0,children:[p.jsx(cr,{label:"Width",value:r.width,onChange:a=>e(i=>i.width={...i.width,...a}),max:1e4}),p.jsx(cr,{label:"Min Width",value:r.minWidth,onChange:a=>e(i=>i.minWidth={...i.minWidth,...a}),max:1e4}),p.jsx(cr,{label:"Max Width",value:r.maxWidth,onChange:a=>e(i=>i.maxWidth={...i.maxWidth,...a}),max:1e4}),p.jsx(cr,{label:"Height",value:r.height,onChange:a=>e(i=>i.height={...i.height,...a}),max:1e4}),p.jsx(cr,{label:"Min Height",value:r.minHeight,onChange:a=>e(i=>i.minHeight={...i.minHeight,...a}),max:1e4}),p.jsx(cr,{label:"Max Height",value:r.maxHeight,onChange:a=>e(i=>i.maxHeight={...i.maxHeight,...a}),max:1e4})]}),p.jsxs(V,{title:"Spacing",defaultOpen:!0,children:[p.jsx(Me,{label:"Padding",values:n,onChange:a=>e(i=>i.padding={...i.padding,...a})}),p.jsx(Me,{label:"Margin",values:o,onChange:a=>e(i=>i.margin={...i.margin,...a})})]}),p.jsxs(V,{title:"Background",defaultOpen:!1,children:[p.jsx(Qe,{label:"Color",value:r.backgroundColor||"transparent",onChange:a=>e(i=>i.backgroundColor=a)}),p.jsx("input",{type:"text",placeholder:"Background image URL",value:r.backgroundImage||"",onChange:a=>e(i=>i.backgroundImage=a.target.value),className:"w-full px-2 py-1 border rounded text-sm"}),p.jsx(J,{label:"Image Size",value:r.backgroundSize||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"stretch",label:"Stretch"}],onChange:a=>e(i=>i.backgroundSize=a)}),p.jsx(J,{label:"Image Repeat",value:r.backgroundRepeat||"no-repeat",options:[{value:"no-repeat",label:"No Repeat"},{value:"repeat",label:"Repeat"},{value:"repeat-x",label:"Repeat X"},{value:"repeat-y",label:"Repeat Y"}],onChange:a=>e(i=>i.backgroundRepeat=a)})]}),p.jsxs(V,{title:"Border",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Radius",value:r.borderRadius,onChange:a=>e(i=>i.borderRadius=a),max:5e3}),p.jsx(pe,{unit:"px",label:"Width",value:r.borderWidth||1,onChange:a=>e(i=>i.borderWidth=a),max:10}),p.jsx(Qe,{label:"Color",value:r.borderColor||"transparent",onChange:a=>e(i=>i.borderColor=a)})]})]})},Nn=t=>{let e,r,n=!1;try{const{connectors:o,events:a}=ne(i=>({events:i.events}));e=o.connect,r=o.drag,n=a.selected}catch{}return p.jsx("div",{ref:o=>{o&&e&&r&&e(r(o))},style:Es(t),className:`min-h-[50px] w-full max-w-5xl px-[15px] lg:px-0 ${n?"outline outline-blue-500":""}`,children:t.children})},H3={...hn,maxWidth:{desktop:{type:"custom",value:"1024",unit:"px"}},padding:{desktop:{top:0,right:15,bottom:0,left:15}}};Nn.craft={isCanvas:!0,props:H3,displayName:"Container",related:{settings:ia},rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Wrapper")}};const F3=/\{\{\s*([\w.]+)\s*\}\}/g,q3=(t,e)=>{if(!t||!e)return;const r=e.split(".");let n=t;for(const o of r){if(n==null)return;n=n[o]}return n},Eo=(t,e)=>{if(!t||typeof t!="string"||!e)return t;const r=/\{\{\s*([\w.]+)\s*\}\}/g;return t.replace(r,(n,o)=>{const a=q3(e,o);return a==null?n:String(a)})},U3=t=>!t||typeof t!="string"?!1:/\{\{\s*([\w.]+)\s*\}\}/.test(t),V3=t=>{if(!t||typeof t!="string")return[];const e=[];let r;const n=new RegExp(F3.source,"g");for(;(r=n.exec(t))!==null;)e.push(r[1]);return e},W3={athlete:{name:"Full name (from API)",bibId:"Bib number",firstName:"First name",lastName:"Last name",fullName:"Full name (firstName + lastName)",raceTime:"Race finish time",email:"Email address",phone:"Phone number"},event:{name:"Event name",slug:"Event URL slug",date:"Event date"},organization:{name:"Organization name",website:"Organization website"}},G3={athlete:{label:"Athlete",variables:[{key:"athlete.name",description:"Full name"},{key:"athlete.bibId",description:"Bib number"},{key:"athlete.firstName",description:"First name"},{key:"athlete.lastName",description:"Last name"},{key:"athlete.fullName",description:"First + Last name"},{key:"athlete.raceTime",description:"Race finish time"},{key:"athlete.email",description:"Email address"},{key:"athlete.phone",description:"Phone number"}]},event:{label:"Event",variables:[{key:"event.name",description:"Event name"},{key:"event.slug",description:"URL slug"},{key:"event.date",description:"Event date"}]},organization:{label:"Organization",variables:[{key:"organization.name",description:"Organization name"},{key:"organization.website",description:"Website URL"}]}},Y3=({variable:t,onCopy:e})=>{const[r,n]=w.useState(!1),o=()=>{navigator.clipboard.writeText(`{{ ${t.key} }}`),n(!0),e==null||e(`{{ ${t.key} }}`),setTimeout(()=>n(!1),1500)};return p.jsxs("button",{onClick:o,className:"w-full flex items-center justify-between gap-2 px-2 py-1.5 text-left hover:bg-muted rounded-md transition-colors group",children:[p.jsxs("div",{className:"min-w-0 flex-1",children:[p.jsx("code",{className:"text-xs font-mono text-primary bg-primary/10 px-1 py-0.5 rounded",children:`{{ ${t.key} }}`}),p.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:t.description})]}),p.jsx("div",{className:"shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:r?p.jsx(Fi,{className:"h-3.5 w-3.5 text-green-500"}):p.jsx(ih,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})},X3=({category:t,data:e,defaultOpen:r=!1})=>{const[n,o]=w.useState(r);return p.jsxs("div",{className:"border-b border-border last:border-0",children:[p.jsxs("button",{onClick:()=>o(!n),className:"w-full flex items-center gap-2 py-2 text-left hover:bg-muted/50 transition-colors",children:[n?p.jsx(qi,{className:"h-3.5 w-3.5 text-muted-foreground"}):p.jsx(Ui,{className:"h-3.5 w-3.5 text-muted-foreground"}),p.jsx("span",{className:"text-xs font-medium",children:e.label}),p.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",e.variables.length,")"]})]}),n&&p.jsx("div",{className:"pb-2 space-y-0.5",children:e.variables.map(a=>p.jsx(Y3,{variable:a},a.key))})]})},Qd=({className:t})=>p.jsxs("div",{className:Se("rounded-lg border border-border bg-muted/30",t),children:[p.jsxs("div",{className:"px-3 py-2 border-b border-border",children:[p.jsx("h4",{className:"text-xs font-semibold",children:"Dynamic Variables"}),p.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Click to copy, then paste in your text"})]}),p.jsx("div",{className:"px-2",children:Object.entries(G3).map(([e,r],n)=>p.jsx(X3,{category:e,data:r,defaultOpen:n===0},e))})]});var ef={},mn={},Ns={},gn={},Ts={};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var js={};Object.defineProperty(js,"__esModule",{value:!0});js.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var bi={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function n(a){var i;return a>=55296&&a<=57343||a>1114111?65533:(i=r.get(a))!==null&&i!==void 0?i:a}t.replaceCodePoint=n;function o(a){return(0,t.fromCodePoint)(n(a))}t.default=o})(bi);(function(t){var e=F&&F.__createBinding||(Object.create?function(E,T,P,I){I===void 0&&(I=P);var N=Object.getOwnPropertyDescriptor(T,P);(!N||("get"in N?!T.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:function(){return T[P]}}),Object.defineProperty(E,I,N)}:function(E,T,P,I){I===void 0&&(I=P),E[I]=T[P]}),r=F&&F.__setModuleDefault||(Object.create?function(E,T){Object.defineProperty(E,"default",{enumerable:!0,value:T})}:function(E,T){E.default=T}),n=F&&F.__importStar||function(E){if(E&&E.__esModule)return E;var T={};if(E!=null)for(var P in E)P!=="default"&&Object.prototype.hasOwnProperty.call(E,P)&&e(T,E,P);return r(T,E),T},o=F&&F.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var a=o(Ts);t.htmlDecodeTree=a.default;var i=o(js);t.xmlDecodeTree=i.default;var s=n(bi);t.decodeCodePoint=s.default;var u=bi;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var l;(function(E){E[E.NUM=35]="NUM",E[E.SEMI=59]="SEMI",E[E.EQUALS=61]="EQUALS",E[E.ZERO=48]="ZERO",E[E.NINE=57]="NINE",E[E.LOWER_A=97]="LOWER_A",E[E.LOWER_F=102]="LOWER_F",E[E.LOWER_X=120]="LOWER_X",E[E.LOWER_Z=122]="LOWER_Z",E[E.UPPER_A=65]="UPPER_A",E[E.UPPER_F=70]="UPPER_F",E[E.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var c=32,h;(function(E){E[E.VALUE_LENGTH=49152]="VALUE_LENGTH",E[E.BRANCH_LENGTH=16256]="BRANCH_LENGTH",E[E.JUMP_TABLE=127]="JUMP_TABLE"})(h=t.BinTrieFlags||(t.BinTrieFlags={}));function f(E){return E>=l.ZERO&&E<=l.NINE}function d(E){return E>=l.UPPER_A&&E<=l.UPPER_F||E>=l.LOWER_A&&E<=l.LOWER_F}function g(E){return E>=l.UPPER_A&&E<=l.UPPER_Z||E>=l.LOWER_A&&E<=l.LOWER_Z||f(E)}function b(E){return E===l.EQUALS||g(E)}var m;(function(E){E[E.EntityStart=0]="EntityStart",E[E.NumericStart=1]="NumericStart",E[E.NumericDecimal=2]="NumericDecimal",E[E.NumericHex=3]="NumericHex",E[E.NamedEntity=4]="NamedEntity"})(m||(m={}));var v;(function(E){E[E.Legacy=0]="Legacy",E[E.Strict=1]="Strict",E[E.Attribute=2]="Attribute"})(v=t.DecodingMode||(t.DecodingMode={}));var x=function(){function E(T,P,I){this.decodeTree=T,this.emitCodePoint=P,this.errors=I,this.state=m.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=v.Strict}return E.prototype.startEntity=function(T){this.decodeMode=T,this.state=m.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},E.prototype.write=function(T,P){switch(this.state){case m.EntityStart:return T.charCodeAt(P)===l.NUM?(this.state=m.NumericStart,this.consumed+=1,this.stateNumericStart(T,P+1)):(this.state=m.NamedEntity,this.stateNamedEntity(T,P));case m.NumericStart:return this.stateNumericStart(T,P);case m.NumericDecimal:return this.stateNumericDecimal(T,P);case m.NumericHex:return this.stateNumericHex(T,P);case m.NamedEntity:return this.stateNamedEntity(T,P)}},E.prototype.stateNumericStart=function(T,P){return P>=T.length?-1:(T.charCodeAt(P)|c)===l.LOWER_X?(this.state=m.NumericHex,this.consumed+=1,this.stateNumericHex(T,P+1)):(this.state=m.NumericDecimal,this.stateNumericDecimal(T,P))},E.prototype.addToNumericResult=function(T,P,I,N){if(P!==I){var O=I-P;this.result=this.result*Math.pow(N,O)+parseInt(T.substr(P,O),N),this.consumed+=O}},E.prototype.stateNumericHex=function(T,P){for(var I=P;P<T.length;){var N=T.charCodeAt(P);if(f(N)||d(N))P+=1;else return this.addToNumericResult(T,I,P,16),this.emitNumericEntity(N,3)}return this.addToNumericResult(T,I,P,16),-1},E.prototype.stateNumericDecimal=function(T,P){for(var I=P;P<T.length;){var N=T.charCodeAt(P);if(f(N))P+=1;else return this.addToNumericResult(T,I,P,10),this.emitNumericEntity(N,2)}return this.addToNumericResult(T,I,P,10),-1},E.prototype.emitNumericEntity=function(T,P){var I;if(this.consumed<=P)return(I=this.errors)===null||I===void 0||I.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(T===l.SEMI)this.consumed+=1;else if(this.decodeMode===v.Strict)return 0;return this.emitCodePoint((0,s.replaceCodePoint)(this.result),this.consumed),this.errors&&(T!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},E.prototype.stateNamedEntity=function(T,P){for(var I=this.decodeTree,N=I[this.treeIndex],O=(N&h.VALUE_LENGTH)>>14;P<T.length;P++,this.excess++){var A=T.charCodeAt(P);if(this.treeIndex=C(I,N,this.treeIndex+Math.max(1,O),A),this.treeIndex<0)return this.result===0||this.decodeMode===v.Attribute&&(O===0||b(A))?0:this.emitNotTerminatedNamedEntity();if(N=I[this.treeIndex],O=(N&h.VALUE_LENGTH)>>14,O!==0){if(A===l.SEMI)return this.emitNamedEntityData(this.treeIndex,O,this.consumed+this.excess);this.decodeMode!==v.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},E.prototype.emitNotTerminatedNamedEntity=function(){var T,P=this,I=P.result,N=P.decodeTree,O=(N[I]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(I,O,this.consumed),(T=this.errors)===null||T===void 0||T.missingSemicolonAfterCharacterReference(),this.consumed},E.prototype.emitNamedEntityData=function(T,P,I){var N=this.decodeTree;return this.emitCodePoint(P===1?N[T]&~h.VALUE_LENGTH:N[T+1],I),P===3&&this.emitCodePoint(N[T+2],I),I},E.prototype.end=function(){var T;switch(this.state){case m.NamedEntity:return this.result!==0&&(this.decodeMode!==v.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case m.NumericDecimal:return this.emitNumericEntity(0,2);case m.NumericHex:return this.emitNumericEntity(0,3);case m.NumericStart:return(T=this.errors)===null||T===void 0||T.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case m.EntityStart:return 0}},E}();t.EntityDecoder=x;function S(E){var T="",P=new x(E,function(I){return T+=(0,s.fromCodePoint)(I)});return function(N,O){for(var A=0,_=0;(_=N.indexOf("&",_))>=0;){T+=N.slice(A,_),P.startEntity(O);var L=P.write(N,_+1);if(L<0){A=_+P.end();break}A=_+L,_=L===0?A+1:A}var q=T+N.slice(A);return T="",q}}function C(E,T,P,I){var N=(T&h.BRANCH_LENGTH)>>7,O=T&h.JUMP_TABLE;if(N===0)return O!==0&&I===O?P:-1;if(O){var A=I-O;return A<0||A>=N?-1:E[P+A]-1}for(var _=P,L=_+N-1;_<=L;){var q=_+L>>>1,de=E[q];if(de<I)_=q+1;else if(de>I)L=q-1;else return E[q+N]}return-1}t.determineBranch=C;var j=S(a.default),k=S(i.default);function R(E,T){return T===void 0&&(T=v.Legacy),j(E,T)}t.decodeHTML=R;function M(E){return j(E,v.Attribute)}t.decodeHTMLAttribute=M;function D(E){return j(E,v.Strict)}t.decodeHTMLStrict=D;function $(E){return k(E,v.Strict)}t.decodeXML=$})(gn);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=gn,r;(function(f){f[f.Tab=9]="Tab",f[f.NewLine=10]="NewLine",f[f.FormFeed=12]="FormFeed",f[f.CarriageReturn=13]="CarriageReturn",f[f.Space=32]="Space",f[f.ExclamationMark=33]="ExclamationMark",f[f.Number=35]="Number",f[f.Amp=38]="Amp",f[f.SingleQuote=39]="SingleQuote",f[f.DoubleQuote=34]="DoubleQuote",f[f.Dash=45]="Dash",f[f.Slash=47]="Slash",f[f.Zero=48]="Zero",f[f.Nine=57]="Nine",f[f.Semi=59]="Semi",f[f.Lt=60]="Lt",f[f.Eq=61]="Eq",f[f.Gt=62]="Gt",f[f.Questionmark=63]="Questionmark",f[f.UpperA=65]="UpperA",f[f.LowerA=97]="LowerA",f[f.UpperF=70]="UpperF",f[f.LowerF=102]="LowerF",f[f.UpperZ=90]="UpperZ",f[f.LowerZ=122]="LowerZ",f[f.LowerX=120]="LowerX",f[f.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(f){f[f.Text=1]="Text",f[f.BeforeTagName=2]="BeforeTagName",f[f.InTagName=3]="InTagName",f[f.InSelfClosingTag=4]="InSelfClosingTag",f[f.BeforeClosingTagName=5]="BeforeClosingTagName",f[f.InClosingTagName=6]="InClosingTagName",f[f.AfterClosingTagName=7]="AfterClosingTagName",f[f.BeforeAttributeName=8]="BeforeAttributeName",f[f.InAttributeName=9]="InAttributeName",f[f.AfterAttributeName=10]="AfterAttributeName",f[f.BeforeAttributeValue=11]="BeforeAttributeValue",f[f.InAttributeValueDq=12]="InAttributeValueDq",f[f.InAttributeValueSq=13]="InAttributeValueSq",f[f.InAttributeValueNq=14]="InAttributeValueNq",f[f.BeforeDeclaration=15]="BeforeDeclaration",f[f.InDeclaration=16]="InDeclaration",f[f.InProcessingInstruction=17]="InProcessingInstruction",f[f.BeforeComment=18]="BeforeComment",f[f.CDATASequence=19]="CDATASequence",f[f.InSpecialComment=20]="InSpecialComment",f[f.InCommentLike=21]="InCommentLike",f[f.BeforeSpecialS=22]="BeforeSpecialS",f[f.SpecialStartSequence=23]="SpecialStartSequence",f[f.InSpecialTag=24]="InSpecialTag",f[f.BeforeEntity=25]="BeforeEntity",f[f.BeforeNumericEntity=26]="BeforeNumericEntity",f[f.InNamedEntity=27]="InNamedEntity",f[f.InNumericEntity=28]="InNumericEntity",f[f.InHexEntity=29]="InHexEntity"})(n||(n={}));function o(f){return f===r.Space||f===r.NewLine||f===r.Tab||f===r.FormFeed||f===r.CarriageReturn}function a(f){return f===r.Slash||f===r.Gt||o(f)}function i(f){return f>=r.Zero&&f<=r.Nine}function s(f){return f>=r.LowerA&&f<=r.LowerZ||f>=r.UpperA&&f<=r.UpperZ}function u(f){return f>=r.UpperA&&f<=r.UpperF||f>=r.LowerA&&f<=r.LowerF}var l;(function(f){f[f.NoValue=0]="NoValue",f[f.Unquoted=1]="Unquoted",f[f.Single=2]="Single",f[f.Double=3]="Double"})(l=t.QuoteType||(t.QuoteType={}));var c={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},h=function(){function f(d,g){var b=d.xmlMode,m=b===void 0?!1:b,v=d.decodeEntities,x=v===void 0?!0:v;this.cbs=g,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=m,this.decodeEntities=x,this.entityTrie=m?e.xmlDecodeTree:e.htmlDecodeTree}return f.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},f.prototype.write=function(d){this.offset+=this.buffer.length,this.buffer=d,this.parse()},f.prototype.end=function(){this.running&&this.finish()},f.prototype.pause=function(){this.running=!1},f.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},f.prototype.getIndex=function(){return this.index},f.prototype.getSectionStart=function(){return this.sectionStart},f.prototype.stateText=function(d){d===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&d===r.Amp&&(this.state=n.BeforeEntity)},f.prototype.stateSpecialStartSequence=function(d){var g=this.sequenceIndex===this.currentSequence.length,b=g?a(d):(d|32)===this.currentSequence[this.sequenceIndex];if(!b)this.isSpecial=!1;else if(!g){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(d)},f.prototype.stateInSpecialTag=function(d){if(this.sequenceIndex===this.currentSequence.length){if(d===r.Gt||o(d)){var g=this.index-this.currentSequence.length;if(this.sectionStart<g){var b=this.index;this.index=g,this.cbs.ontext(this.sectionStart,g),this.index=b}this.isSpecial=!1,this.sectionStart=g+2,this.stateInClosingTagName(d);return}this.sequenceIndex=0}(d|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===c.TitleEnd?this.decodeEntities&&d===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(d===r.Lt)},f.prototype.stateCDATASequence=function(d){d===c.Cdata[this.sequenceIndex]?++this.sequenceIndex===c.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=c.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(d))},f.prototype.fastForwardTo=function(d){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===d)return!0;return this.index=this.buffer.length+this.offset-1,!1},f.prototype.stateInCommentLike=function(d){d===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):d!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},f.prototype.isTagStartChar=function(d){return this.xmlMode?!a(d):s(d)},f.prototype.startSpecial=function(d,g){this.isSpecial=!0,this.currentSequence=d,this.sequenceIndex=g,this.state=n.SpecialStartSequence},f.prototype.stateBeforeTagName=function(d){if(d===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(d===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(d)){var g=d|32;this.sectionStart=this.index,!this.xmlMode&&g===c.TitleEnd[2]?this.startSpecial(c.TitleEnd,3):this.state=!this.xmlMode&&g===c.ScriptEnd[2]?n.BeforeSpecialS:n.InTagName}else d===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(d))},f.prototype.stateInTagName=function(d){a(d)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d))},f.prototype.stateBeforeClosingTagName=function(d){o(d)||(d===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(d)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},f.prototype.stateInClosingTagName=function(d){(d===r.Gt||o(d))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(d))},f.prototype.stateAfterClosingTagName=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeAttributeName=function(d){d===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):d===r.Slash?this.state=n.InSelfClosingTag:o(d)||(this.state=n.InAttributeName,this.sectionStart=this.index)},f.prototype.stateInSelfClosingTag=function(d){d===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(d)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d))},f.prototype.stateInAttributeName=function(d){(d===r.Eq||a(d))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(d))},f.prototype.stateAfterAttributeName=function(d){d===r.Eq?this.state=n.BeforeAttributeValue:d===r.Slash||d===r.Gt?(this.cbs.onattribend(l.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d)):o(d)||(this.cbs.onattribend(l.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},f.prototype.stateBeforeAttributeValue=function(d){d===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):d===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(d)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(d))},f.prototype.handleInAttributeValue=function(d,g){d===g||!this.decodeEntities&&this.fastForwardTo(g)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(g===r.DoubleQuote?l.Double:l.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&d===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},f.prototype.stateInAttributeValueDoubleQuotes=function(d){this.handleInAttributeValue(d,r.DoubleQuote)},f.prototype.stateInAttributeValueSingleQuotes=function(d){this.handleInAttributeValue(d,r.SingleQuote)},f.prototype.stateInAttributeValueNoQuotes=function(d){o(d)||d===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(l.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d)):this.decodeEntities&&d===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},f.prototype.stateBeforeDeclaration=function(d){d===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=d===r.Dash?n.BeforeComment:n.InDeclaration},f.prototype.stateInDeclaration=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},f.prototype.stateInProcessingInstruction=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeComment=function(d){d===r.Dash?(this.state=n.InCommentLike,this.currentSequence=c.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},f.prototype.stateInSpecialComment=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeSpecialS=function(d){var g=d|32;g===c.ScriptEnd[3]?this.startSpecial(c.ScriptEnd,4):g===c.StyleEnd[3]?this.startSpecial(c.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(d))},f.prototype.stateBeforeEntity=function(d){this.entityExcess=1,this.entityResult=0,d===r.Number?this.state=n.BeforeNumericEntity:d===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(d))},f.prototype.stateInNamedEntity=function(d){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,d),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var g=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(g){var b=(g>>14)-1;if(!this.allowLegacyEntity()&&d!==r.Semi)this.trieIndex+=b;else{var m=this.index-this.entityExcess+1;m>this.sectionStart&&this.emitPartial(this.sectionStart,m),this.entityResult=this.trieIndex,this.trieIndex+=b,this.entityExcess=0,this.sectionStart=this.index+1,b===0&&this.emitNamedEntity()}}},f.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var d=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(d){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},f.prototype.stateBeforeNumericEntity=function(d){(d|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(d))},f.prototype.emitNumericEntity=function(d){var g=this.index-this.entityExcess-1,b=g+2+ +(this.state===n.InHexEntity);b!==this.index&&(g>this.sectionStart&&this.emitPartial(this.sectionStart,g),this.sectionStart=this.index+Number(d),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},f.prototype.stateInNumericEntity=function(d){d===r.Semi?this.emitNumericEntity(!0):i(d)?(this.entityResult=this.entityResult*10+(d-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.stateInHexEntity=function(d){d===r.Semi?this.emitNumericEntity(!0):i(d)?(this.entityResult=this.entityResult*16+(d-r.Zero),this.entityExcess++):u(d)?(this.entityResult=this.entityResult*16+((d|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},f.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},f.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},f.prototype.parse=function(){for(;this.shouldContinue();){var d=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(d);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(d);break}case n.InSpecialTag:{this.stateInSpecialTag(d);break}case n.CDATASequence:{this.stateCDATASequence(d);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(d);break}case n.InAttributeName:{this.stateInAttributeName(d);break}case n.InCommentLike:{this.stateInCommentLike(d);break}case n.InSpecialComment:{this.stateInSpecialComment(d);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(d);break}case n.InTagName:{this.stateInTagName(d);break}case n.InClosingTagName:{this.stateInClosingTagName(d);break}case n.BeforeTagName:{this.stateBeforeTagName(d);break}case n.AfterAttributeName:{this.stateAfterAttributeName(d);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(d);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(d);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(d);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(d);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(d);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(d);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(d);break}case n.InDeclaration:{this.stateInDeclaration(d);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(d);break}case n.BeforeComment:{this.stateBeforeComment(d);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(d);break}case n.InNamedEntity:{this.stateInNamedEntity(d);break}case n.BeforeEntity:{this.stateBeforeEntity(d);break}case n.InHexEntity:{this.stateInHexEntity(d);break}case n.InNumericEntity:{this.stateInNumericEntity(d);break}default:this.stateBeforeNumericEntity(d)}this.index++}this.cleanup()},f.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},f.prototype.handleTrailingData=function(){var d=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,d,0):this.cbs.oncomment(this.sectionStart,d,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,d)},f.prototype.emitPartial=function(d,g){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(d,g):this.cbs.ontext(d,g)},f.prototype.emitCodePoint=function(d){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(d):this.cbs.ontextentity(d)},f}();t.default=h})(Ns);var K3=F&&F.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),J3=F&&F.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Z3=F&&F.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&K3(e,t,r);return J3(e,t),e};Object.defineProperty(mn,"__esModule",{value:!0});mn.Parser=void 0;var Fn=Z3(Ns),Al=gn,dr=new Set(["input","option","optgroup","select","button","datalist","textarea"]),re=new Set(["p"]),Ol=new Set(["thead","tbody"]),kl=new Set(["dd","dt"]),Pl=new Set(["rt","rp"]),Q3=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",re],["h1",re],["h2",re],["h3",re],["h4",re],["h5",re],["h6",re],["select",dr],["input",dr],["output",dr],["button",dr],["datalist",dr],["textarea",dr],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",kl],["dt",kl],["address",re],["article",re],["aside",re],["blockquote",re],["details",re],["div",re],["dl",re],["fieldset",re],["figcaption",re],["figure",re],["footer",re],["form",re],["header",re],["hr",re],["main",re],["nav",re],["ol",re],["pre",re],["section",re],["table",re],["ul",re],["rt",Pl],["rp",Pl],["tbody",Ol],["tfoot",Ol]]),e6=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),_l=new Set(["math","svg"]),Rl=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),t6=/\s|\//,r6=function(){function t(e,r){r===void 0&&(r={});var n,o,a,i,s;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(o=r.lowerCaseAttributeNames)!==null&&o!==void 0?o:!r.xmlMode,this.tokenizer=new((a=r.Tokenizer)!==null&&a!==void 0?a:Fn.default)(this.options,this),(s=(i=this.cbs).onparserinit)===null||s===void 0||s.call(i,this)}return t.prototype.ontext=function(e,r){var n,o,a=this.getSlice(e,r);this.endIndex=r-1,(o=(n=this.cbs).ontext)===null||o===void 0||o.call(n,a),this.startIndex=r},t.prototype.ontextentity=function(e){var r,n,o=this.tokenizer.getSectionStart();this.endIndex=o-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,Al.fromCodePoint)(e)),this.startIndex=o},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&e6.has(e)},t.prototype.onopentagname=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},t.prototype.emitOpenTag=function(e){var r,n,o,a;this.openTagStart=this.startIndex,this.tagname=e;var i=!this.options.xmlMode&&Q3.get(e);if(i)for(;this.stack.length>0&&i.has(this.stack[this.stack.length-1]);){var s=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,s,!0)}this.isVoidElement(e)||(this.stack.push(e),_l.has(e)?this.foreignContext.push(!0):Rl.has(e)&&this.foreignContext.push(!1)),(a=(o=this.cbs).onopentagname)===null||a===void 0||a.call(o,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,o,a,i,s,u;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(_l.has(l)||Rl.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((o=(n=this.cbs).onopentagname)===null||o===void 0||o.call(n,"br"),(i=(a=this.cbs).onopentag)===null||i===void 0||i.call(a,"br",{},!0),(u=(s=this.cbs).onclosetag)===null||u===void 0||u.call(s,"br",!1));else{var c=this.stack.lastIndexOf(l);if(c!==-1)if(this.cbs.onclosetag)for(var h=this.stack.length-c;h--;)this.cbs.onclosetag(this.stack.pop(),h!==0);else this.stack.length=c;else!this.options.xmlMode&&l==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,o=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===o&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,o,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,Al.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,o;this.endIndex=r,(o=(n=this.cbs).onattribute)===null||o===void 0||o.call(n,this.attribname,this.attribvalue,e===Fn.QuoteType.Double?'"':e===Fn.QuoteType.Single?"'":e===Fn.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(t6),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(o),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(o),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var o,a,i,s;this.endIndex=r,(a=(o=this.cbs).oncomment)===null||a===void 0||a.call(o,this.getSlice(e,r-n)),(s=(i=this.cbs).oncommentend)===null||s===void 0||s.call(i),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var o,a,i,s,u,l,c,h,f,d;this.endIndex=r;var g=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((a=(o=this.cbs).oncdatastart)===null||a===void 0||a.call(o),(s=(i=this.cbs).ontext)===null||s===void 0||s.call(i,g),(l=(u=this.cbs).oncdataend)===null||l===void 0||l.call(u)):((h=(c=this.cbs).oncomment)===null||h===void 0||h.call(c,"[CDATA[".concat(g,"]]")),(d=(f=this.cbs).oncommentend)===null||d===void 0||d.call(f)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,o;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(o=(n=this.cbs).onparserinit)===null||o===void 0||o.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},t.prototype.parseChunk=function(e){this.write(e)},t.prototype.done=function(e){this.end(e)},t}();mn.Parser=r6;var wt={},Fr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function r(n){return n.type===e.Tag||n.type===e.Script||n.type===e.Style}t.isTag=r,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(Fr);var K={},Bt=F&&F.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),nn=F&&F.__assign||function(){return nn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},nn.apply(this,arguments)};Object.defineProperty(K,"__esModule",{value:!0});K.cloneNode=K.hasChildren=K.isDocument=K.isDirective=K.isComment=K.isText=K.isCDATA=K.isTag=K.Element=K.Document=K.CDATA=K.NodeWithChildren=K.ProcessingInstruction=K.Comment=K.Text=K.DataNode=K.Node=void 0;var Ae=Fr,As=function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),Os(this,e)},t}();K.Node=As;var sa=function(t){Bt(e,t);function e(r){var n=t.call(this)||this;return n.data=r,n}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),e}(As);K.DataNode=sa;var tf=function(t){Bt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ae.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(sa);K.Text=tf;var rf=function(t){Bt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ae.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(sa);K.Comment=rf;var nf=function(t){Bt(e,t);function e(r,n){var o=t.call(this,n)||this;return o.name=r,o.type=Ae.ElementType.Directive,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(sa);K.ProcessingInstruction=nf;var ua=function(t){Bt(e,t);function e(r){var n=t.call(this)||this;return n.children=r,n}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),e}(As);K.NodeWithChildren=ua;var of=function(t){Bt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ae.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(ua);K.CDATA=of;var af=function(t){Bt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ae.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(ua);K.Document=af;var sf=function(t){Bt(e,t);function e(r,n,o,a){o===void 0&&(o=[]),a===void 0&&(a=r==="script"?Ae.ElementType.Script:r==="style"?Ae.ElementType.Style:Ae.ElementType.Tag);var i=t.call(this,o)||this;return i.name=r,i.attribs=n,i.type=a,i}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var o,a;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(a=r["x-attribsPrefix"])===null||a===void 0?void 0:a[n]}})},enumerable:!1,configurable:!0}),e}(ua);K.Element=sf;function uf(t){return(0,Ae.isTag)(t)}K.isTag=uf;function lf(t){return t.type===Ae.ElementType.CDATA}K.isCDATA=lf;function cf(t){return t.type===Ae.ElementType.Text}K.isText=cf;function df(t){return t.type===Ae.ElementType.Comment}K.isComment=df;function ff(t){return t.type===Ae.ElementType.Directive}K.isDirective=ff;function pf(t){return t.type===Ae.ElementType.Root}K.isDocument=pf;function n6(t){return Object.prototype.hasOwnProperty.call(t,"children")}K.hasChildren=n6;function Os(t,e){e===void 0&&(e=!1);var r;if(cf(t))r=new tf(t.data);else if(df(t))r=new rf(t.data);else if(uf(t)){var n=e?Da(t.children):[],o=new sf(t.name,nn({},t.attribs),n);n.forEach(function(u){return u.parent=o}),t.namespace!=null&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=nn({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=nn({},t["x-attribsPrefix"])),r=o}else if(lf(t)){var n=e?Da(t.children):[],a=new of(n);n.forEach(function(l){return l.parent=a}),r=a}else if(pf(t)){var n=e?Da(t.children):[],i=new af(n);n.forEach(function(l){return l.parent=i}),t["x-mode"]&&(i["x-mode"]=t["x-mode"]),r=i}else if(ff(t)){var s=new nf(t.name,t.data);t["x-name"]!=null&&(s["x-name"]=t["x-name"],s["x-publicId"]=t["x-publicId"],s["x-systemId"]=t["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(r.sourceCodeLocation=t.sourceCodeLocation),r}K.cloneNode=Os;function Da(t){for(var e=t.map(function(n){return Os(n,!0)}),r=1;r<e.length;r++)e[r].prev=e[r-1],e[r-1].next=e[r];return e}(function(t){var e=F&&F.__createBinding||(Object.create?function(s,u,l,c){c===void 0&&(c=l);var h=Object.getOwnPropertyDescriptor(u,l);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[l]}}),Object.defineProperty(s,c,h)}:function(s,u,l,c){c===void 0&&(c=l),s[c]=u[l]}),r=F&&F.__exportStar||function(s,u){for(var l in s)l!=="default"&&!Object.prototype.hasOwnProperty.call(u,l)&&e(u,s,l)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=Fr,o=K;r(K,t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},i=function(){function s(u,l,c){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(c=l,l=a),typeof u=="object"&&(l=u,u=void 0),this.callback=u??null,this.options=l??a,this.elementCB=c??null}return s.prototype.onparserinit=function(u){this.parser=u},s.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(u){this.handleCallback(u)},s.prototype.onclosetag=function(){this.lastNode=null;var u=this.tagStack.pop();this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(u)},s.prototype.onopentag=function(u,l){var c=this.options.xmlMode?n.ElementType.Tag:void 0,h=new o.Element(u,l,void 0,c);this.addNode(h),this.tagStack.push(h)},s.prototype.ontext=function(u){var l=this.lastNode;if(l&&l.type===n.ElementType.Text)l.data+=u,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var c=new o.Text(u);this.addNode(c),this.lastNode=c}},s.prototype.oncomment=function(u){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=u;return}var l=new o.Comment(u);this.addNode(l),this.lastNode=l},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var u=new o.Text(""),l=new o.CDATA([u]);this.addNode(l),u.parent=l,this.lastNode=u},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(u,l){var c=new o.ProcessingInstruction(u,l);this.addNode(c)},s.prototype.handleCallback=function(u){if(typeof this.callback=="function")this.callback(u,this.dom);else if(u)throw u},s.prototype.addNode=function(u){var l=this.tagStack[this.tagStack.length-1],c=l.children[l.children.length-1];this.options.withStartIndices&&(u.startIndex=this.parser.startIndex),this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),l.children.push(u),c&&(u.prev=c,c.next=u),u.parent=l,this.lastNode=null},s}();t.DomHandler=i,t.default=i})(wt);var to={},zt={},Tn={},hf={},Jt={},ks={};Object.defineProperty(ks,"__esModule",{value:!0});function qn(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}ks.default=new Map(qn([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(qn([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(qn([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(qn([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var No={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(o,a){return o.codePointAt(a)}:function(o,a){return(o.charCodeAt(a)&64512)===55296?(o.charCodeAt(a)-55296)*1024+o.charCodeAt(a+1)-56320+65536:o.charCodeAt(a)};function r(o){for(var a="",i=0,s;(s=t.xmlReplacer.exec(o))!==null;){var u=s.index,l=o.charCodeAt(u),c=e.get(l);c!==void 0?(a+=o.substring(i,u)+c,i=u+1):(a+="".concat(o.substring(i,u),"&#x").concat((0,t.getCodePoint)(o,u).toString(16),";"),i=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return a+o.substr(i)}t.encodeXML=r,t.escape=r;function n(o,a){return function(s){for(var u,l=0,c="";u=o.exec(s);)l!==u.index&&(c+=s.substring(l,u.index)),c+=a.get(u[0].charCodeAt(0)),l=u.index+1;return c+s.substring(l)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(No);var o6=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.encodeNonAsciiHTML=Jt.encodeHTML=void 0;var a6=o6(ks),mf=No,i6=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function s6(t){return gf(i6,t)}Jt.encodeHTML=s6;function u6(t){return gf(mf.xmlReplacer,t)}Jt.encodeNonAsciiHTML=u6;function gf(t,e){for(var r="",n=0,o;(o=t.exec(e))!==null;){var a=o.index;r+=e.substring(n,a);var i=e.charCodeAt(a),s=a6.default.get(i);if(typeof s=="object"){if(a+1<e.length){var u=e.charCodeAt(a+1),l=typeof s.n=="number"?s.n===u?s.o:void 0:s.n.get(u);if(l!==void 0){r+=l,n=t.lastIndex+=1;continue}}s=s.v}if(s!==void 0)r+=s,n=a+1;else{var c=(0,mf.getCodePoint)(e,a);r+="&#x".concat(c.toString(16),";"),n=t.lastIndex+=+(c!==i)}}return r+e.substr(n)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=gn,r=Jt,n=No,o;(function(f){f[f.XML=0]="XML",f[f.HTML=1]="HTML"})(o=t.EntityLevel||(t.EntityLevel={}));var a;(function(f){f[f.UTF8=0]="UTF8",f[f.ASCII=1]="ASCII",f[f.Extensive=2]="Extensive",f[f.Attribute=3]="Attribute",f[f.Text=4]="Text"})(a=t.EncodingMode||(t.EncodingMode={}));function i(f,d){d===void 0&&(d=o.XML);var g=typeof d=="number"?d:d.level;if(g===o.HTML){var b=typeof d=="object"?d.mode:void 0;return(0,e.decodeHTML)(f,b)}return(0,e.decodeXML)(f)}t.decode=i;function s(f,d){var g;d===void 0&&(d=o.XML);var b=typeof d=="number"?{level:d}:d;return(g=b.mode)!==null&&g!==void 0||(b.mode=e.DecodingMode.Strict),i(f,b)}t.decodeStrict=s;function u(f,d){d===void 0&&(d=o.XML);var g=typeof d=="number"?{level:d}:d;return g.mode===a.UTF8?(0,n.escapeUTF8)(f):g.mode===a.Attribute?(0,n.escapeAttribute)(f):g.mode===a.Text?(0,n.escapeText)(f):g.level===o.HTML?g.mode===a.ASCII?(0,r.encodeNonAsciiHTML)(f):(0,r.encodeHTML)(f):(0,n.encodeXML)(f)}t.encode=u;var l=No;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return l.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return l.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return l.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return l.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return l.escapeText}});var c=Jt;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return c.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return c.encodeHTML}});var h=gn;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return h.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return h.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return h.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(hf);var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.attributeNames=Nr.elementNames=void 0;Nr.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]}));Nr.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}));var hr=F&&F.__assign||function(){return hr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},hr.apply(this,arguments)},l6=F&&F.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),c6=F&&F.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),d6=F&&F.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&l6(e,t,r);return c6(e,t),e};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.render=void 0;var dt=d6(Fr),To=hf,bf=Nr,f6=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function p6(t){return t.replace(/"/g,"&quot;")}function h6(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?p6:e.xmlMode||e.encodeEntities!=="utf8"?To.encodeXML:To.escapeAttribute;return Object.keys(t).map(function(o){var a,i,s=(a=t[o])!==null&&a!==void 0?a:"";return e.xmlMode==="foreign"&&(o=(i=bf.attributeNames.get(o))!==null&&i!==void 0?i:o),!e.emptyAttrs&&!e.xmlMode&&s===""?o:"".concat(o,'="').concat(n(s),'"')}).join(" ")}}var Il=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function la(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",o=0;o<r.length;o++)n+=m6(r[o],e);return n}Tn.render=la;Tn.default=la;function m6(t,e){switch(t.type){case dt.Root:return la(t.children,e);case dt.Doctype:case dt.Directive:return y6(t);case dt.Comment:return S6(t);case dt.CDATA:return w6(t);case dt.Script:case dt.Style:case dt.Tag:return v6(t,e);case dt.Text:return x6(t,e)}}var g6=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),b6=new Set(["svg","math"]);function v6(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=bf.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&g6.has(t.parent.name)&&(e=hr(hr({},e),{xmlMode:!1}))),!e.xmlMode&&b6.has(t.name)&&(e=hr(hr({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),o=h6(t.attribs,e);return o&&(n+=" ".concat(o)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&Il.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=la(t.children,e)),(e.xmlMode||!Il.has(t.name))&&(n+="</".concat(t.name,">"))),n}function y6(t){return"<".concat(t.data,">")}function x6(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&f6.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,To.encodeXML)(n):(0,To.escapeText)(n)),n}function w6(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function S6(t){return"<!--".concat(t.data,"-->")}var C6=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zt,"__esModule",{value:!0});zt.getOuterHTML=vf;zt.getInnerHTML=T6;zt.getText=ro;zt.textContent=vi;zt.innerText=yi;var et=wt,E6=C6(Tn),N6=Fr;function vf(t,e){return(0,E6.default)(t,e)}function T6(t,e){return(0,et.hasChildren)(t)?t.children.map(function(r){return vf(r,e)}).join(""):""}function ro(t){return Array.isArray(t)?t.map(ro).join(""):(0,et.isTag)(t)?t.name==="br"?`
236
+ `:ro(t.children):(0,et.isCDATA)(t)?ro(t.children):(0,et.isText)(t)?t.data:""}function vi(t){return Array.isArray(t)?t.map(vi).join(""):(0,et.hasChildren)(t)&&!(0,et.isComment)(t)?vi(t.children):(0,et.isText)(t)?t.data:""}function yi(t){return Array.isArray(t)?t.map(yi).join(""):(0,et.hasChildren)(t)&&(t.type===N6.ElementType.Tag||(0,et.isCDATA)(t))?yi(t.children):(0,et.isText)(t)?t.data:""}var st={};Object.defineProperty(st,"__esModule",{value:!0});st.getChildren=yf;st.getParent=xf;st.getSiblings=j6;st.getAttributeValue=A6;st.hasAttrib=O6;st.getName=k6;st.nextElementSibling=P6;st.prevElementSibling=_6;var Ps=wt;function yf(t){return(0,Ps.hasChildren)(t)?t.children:[]}function xf(t){return t.parent||null}function j6(t){var e,r,n=xf(t);if(n!=null)return yf(n);for(var o=[t],a=t.prev,i=t.next;a!=null;)o.unshift(a),e=a,a=e.prev;for(;i!=null;)o.push(i),r=i,i=r.next;return o}function A6(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function O6(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function k6(t){return t.name}function P6(t){for(var e,r=t.next;r!==null&&!(0,Ps.isTag)(r);)e=r,r=e.next;return r}function _6(t){for(var e,r=t.prev;r!==null&&!(0,Ps.isTag)(r);)e=r,r=e.prev;return r}var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.removeElement=jn;Ht.replaceElement=R6;Ht.appendChild=I6;Ht.append=D6;Ht.prependChild=M6;Ht.prepend=L6;function jn(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function R6(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var o=e.parent=t.parent;if(o){var a=o.children;a[a.lastIndexOf(t)]=e,t.parent=null}}function I6(t,e){if(jn(e),e.next=null,e.parent=t,t.children.push(e)>1){var r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function D6(t,e){jn(e);var r=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){var o=r.children;o.splice(o.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function M6(t,e){if(jn(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var r=t.children[1];r.prev=e,e.next=r}else e.next=null}function L6(t,e){jn(e);var r=t.parent;if(r){var n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}var Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.filter=$6;Ct.find=wf;Ct.findOneChild=B6;Ct.findOne=Sf;Ct.existsOne=Cf;Ct.findAll=z6;var Zt=wt;function $6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),wf(t,Array.isArray(e)?e:[e],r,n)}function wf(t,e,r,n){for(var o=[],a=[Array.isArray(e)?e:[e]],i=[0];;){if(i[0]>=a[0].length){if(i.length===1)return o;a.shift(),i.shift();continue}var s=a[0][i[0]++];if(t(s)&&(o.push(s),--n<=0))return o;r&&(0,Zt.hasChildren)(s)&&s.children.length>0&&(i.unshift(0),a.unshift(s.children))}}function B6(t,e){return e.find(t)}function Sf(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],o=0;o<n.length;o++){var a=n[o];if((0,Zt.isTag)(a)&&t(a))return a;if(r&&(0,Zt.hasChildren)(a)&&a.children.length>0){var i=Sf(t,a.children,!0);if(i)return i}}return null}function Cf(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,Zt.isTag)(r)&&t(r)||(0,Zt.hasChildren)(r)&&Cf(t,r.children)})}function z6(t,e){for(var r=[],n=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=n[0].length){if(n.length===1)return r;n.shift(),o.shift();continue}var a=n[0][o[0]++];(0,Zt.isTag)(a)&&t(a)&&r.push(a),(0,Zt.hasChildren)(a)&&a.children.length>0&&(o.unshift(0),n.unshift(a.children))}}var Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et.testElement=F6;Et.getElements=q6;Et.getElementById=U6;Et.getElementsByTagName=V6;Et.getElementsByClassName=W6;Et.getElementsByTagType=G6;var Wt=wt,An=Ct,jo={tag_name:function(t){return typeof t=="function"?function(e){return(0,Wt.isTag)(e)&&t(e.name)}:t==="*"?Wt.isTag:function(e){return(0,Wt.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,Wt.isText)(e)&&t(e.data)}:function(e){return(0,Wt.isText)(e)&&e.data===t}}};function _s(t,e){return typeof e=="function"?function(r){return(0,Wt.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,Wt.isTag)(r)&&r.attribs[t]===e}}function H6(t,e){return function(r){return t(r)||e(r)}}function Ef(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(jo,r)?jo[r](n):_s(r,n)});return e.length===0?null:e.reduce(H6)}function F6(t,e){var r=Ef(t);return r?r(e):!0}function q6(t,e,r,n){n===void 0&&(n=1/0);var o=Ef(t);return o?(0,An.filter)(o,e,r,n):[]}function U6(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,An.findOne)(_s("id",t),e,r)}function V6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,An.filter)(jo.tag_name(t),e,r,n)}function W6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,An.filter)(_s("class",t),e,r,n)}function G6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,An.filter)(jo.tag_type(t),e,r,n)}var nr={};Object.defineProperty(nr,"__esModule",{value:!0});nr.DocumentPosition=void 0;nr.removeSubsets=Y6;nr.compareDocumentPosition=Nf;nr.uniqueSort=X6;var Dl=wt;function Y6(t){for(var e=t.length;--e>=0;){var r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(var n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Fe;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Fe||(nr.DocumentPosition=Fe={}));function Nf(t,e){var r=[],n=[];if(t===e)return 0;for(var o=(0,Dl.hasChildren)(t)?t:t.parent;o;)r.unshift(o),o=o.parent;for(o=(0,Dl.hasChildren)(e)?e:e.parent;o;)n.unshift(o),o=o.parent;for(var a=Math.min(r.length,n.length),i=0;i<a&&r[i]===n[i];)i++;if(i===0)return Fe.DISCONNECTED;var s=r[i-1],u=s.children,l=r[i],c=n[i];return u.indexOf(l)>u.indexOf(c)?s===e?Fe.FOLLOWING|Fe.CONTAINED_BY:Fe.FOLLOWING:s===t?Fe.PRECEDING|Fe.CONTAINS:Fe.PRECEDING}function X6(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=Nf(e,r);return n&Fe.PRECEDING?-1:n&Fe.FOLLOWING?1:0}),t}var Rs={};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.getFeed=J6;var K6=zt,On=Et;function J6(t){var e=Ao(r4,t);return e?e.name==="feed"?Z6(e):Q6(e):null}function Z6(t){var e,r=t.children,n={type:"atom",items:(0,On.getElementsByTagName)("entry",r).map(function(i){var s,u=i.children,l={media:Tf(u)};je(l,"id","id",u),je(l,"title","title",u);var c=(s=Ao("link",u))===null||s===void 0?void 0:s.attribs.href;c&&(l.link=c);var h=kt("summary",u)||kt("content",u);h&&(l.description=h);var f=kt("updated",u);return f&&(l.pubDate=new Date(f)),l})};je(n,"id","id",r),je(n,"title","title",r);var o=(e=Ao("link",r))===null||e===void 0?void 0:e.attribs.href;o&&(n.link=o),je(n,"description","subtitle",r);var a=kt("updated",r);return a&&(n.updated=new Date(a)),je(n,"author","email",r,!0),n}function Q6(t){var e,r,n=(r=(e=Ao("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],o={type:t.name.substr(0,3),id:"",items:(0,On.getElementsByTagName)("item",t.children).map(function(i){var s=i.children,u={media:Tf(s)};je(u,"id","guid",s),je(u,"title","title",s),je(u,"link","link",s),je(u,"description","description",s);var l=kt("pubDate",s)||kt("dc:date",s);return l&&(u.pubDate=new Date(l)),u})};je(o,"title","title",n),je(o,"link","link",n),je(o,"description","description",n);var a=kt("lastBuildDate",n);return a&&(o.updated=new Date(a)),je(o,"author","managingEditor",n,!0),o}var e4=["url","type","lang"],t4=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Tf(t){return(0,On.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},o=0,a=e4;o<a.length;o++){var i=a[o];r[i]&&(n[i]=r[i])}for(var s=0,u=t4;s<u.length;s++){var i=u[s];r[i]&&(n[i]=parseInt(r[i],10))}return r.expression&&(n.expression=r.expression),n})}function Ao(t,e){return(0,On.getElementsByTagName)(t,e,!0,1)[0]}function kt(t,e,r){return r===void 0&&(r=!1),(0,K6.textContent)((0,On.getElementsByTagName)(t,e,r,1)).trim()}function je(t,e,r,n,o){o===void 0&&(o=!1);var a=kt(r,n,o);a&&(t[e]=a)}function r4(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=F&&F.__createBinding||(Object.create?function(o,a,i,s){s===void 0&&(s=i);var u=Object.getOwnPropertyDescriptor(a,i);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(o,s,u)}:function(o,a,i,s){s===void 0&&(s=i),o[s]=a[i]}),r=F&&F.__exportStar||function(o,a){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,o,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(zt,t),r(st,t),r(Ht,t),r(Ct,t),r(Et,t),r(nr,t),r(Rs,t);var n=wt;Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return n.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return n.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return n.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return n.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return n.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return n.hasChildren}})})(to);(function(t){var e=F&&F.__createBinding||(Object.create?function(v,x,S,C){C===void 0&&(C=S);var j=Object.getOwnPropertyDescriptor(x,S);(!j||("get"in j?!x.__esModule:j.writable||j.configurable))&&(j={enumerable:!0,get:function(){return x[S]}}),Object.defineProperty(v,C,j)}:function(v,x,S,C){C===void 0&&(C=S),v[C]=x[S]}),r=F&&F.__setModuleDefault||(Object.create?function(v,x){Object.defineProperty(v,"default",{enumerable:!0,value:x})}:function(v,x){v.default=x}),n=F&&F.__importStar||function(v){if(v&&v.__esModule)return v;var x={};if(v!=null)for(var S in v)S!=="default"&&Object.prototype.hasOwnProperty.call(v,S)&&e(x,v,S);return r(x,v),x},o=F&&F.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var a=mn,i=mn;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return i.Parser}});var s=wt,u=wt;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}});function l(v,x){var S=new s.DomHandler(void 0,x);return new a.Parser(S,x).end(v),S.root}t.parseDocument=l;function c(v,x){return l(v,x).children}t.parseDOM=c;function h(v,x,S){var C=new s.DomHandler(v,x,S);return new a.Parser(C,x)}t.createDomStream=h;var f=Ns;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(f).default}}),t.ElementType=n(Fr);var d=to,g=to;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return g.getFeed}});var b={xmlMode:!0};function m(v,x){return x===void 0&&(x=b),(0,d.getFeed)(c(v,x))}t.parseFeed=m,t.DomUtils=n(to)})(ef);var n4=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Is={};Object.defineProperty(Is,"__esModule",{value:!0});/*!
237
237
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
238
238
  *
239
239
  * Copyright (c) 2014-2017, Jon Schlinkert.
240
240
  * Released under the MIT License.
241
- */function Dl(t){return Object.prototype.toString.call(t)==="[object Object]"}function o4(t){var e,r;return Dl(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(Dl(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}Rs.isPlainObject=o4;var a4=function(e){return i4(e)&&!s4(e)};function i4(t){return!!t&&typeof t=="object"}function s4(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||c4(t)}var u4=typeof Symbol=="function"&&Symbol.for,l4=u4?Symbol.for("react.element"):60103;function c4(t){return t.$$typeof===l4}function d4(t){return Array.isArray(t)?[]:{}}function gn(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Nr(d4(t),t,e):t}function f4(t,e,r){return t.concat(e).map(function(n){return gn(n,r)})}function p4(t,e){if(!e.customMerge)return Nr;var r=e.customMerge(t);return typeof r=="function"?r:Nr}function h4(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Ml(t){return Object.keys(t).concat(h4(t))}function Tf(t,e){try{return e in t}catch{return!1}}function m4(t,e){return Tf(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function g4(t,e,r){var n={};return r.isMergeableObject(t)&&Ml(t).forEach(function(o){n[o]=gn(t[o],r)}),Ml(e).forEach(function(o){m4(t,o)||(Tf(t,o)&&r.isMergeableObject(e[o])?n[o]=p4(o,r)(t[o],e[o],r):n[o]=gn(e[o],r))}),n}function Nr(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||f4,r.isMergeableObject=r.isMergeableObject||a4,r.cloneUnlessOtherwiseSpecified=gn;var n=Array.isArray(e),o=Array.isArray(t),a=n===o;return a?n?r.arrayMerge(t,e,r):g4(t,e,r):gn(e,r)}Nr.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Nr(n,o,r)},{})};var b4=Nr,v4=b4,jf={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(F,function(){return function(e){function r(C){return C===" "||C===" "||C===`
242
- `||C==="\f"||C==="\r"}function n(C){var j,k=C.exec(e.substring(m));if(k)return j=k[0],m+=j.length,j}for(var o=e.length,a=/^[ \t\n\r\u000c]+/,i=/^[, \t\n\r\u000c]+/,s=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,l=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,h,f,d,g,b,m=0,v=[];;){if(n(i),m>=o)return v;h=n(s),f=[],h.slice(-1)===","?(h=h.replace(u,""),S()):x()}function x(){for(n(a),d="",g="in descriptor";;){if(b=e.charAt(m),g==="in descriptor")if(r(b))d&&(f.push(d),d="",g="after descriptor");else if(b===","){m+=1,d&&f.push(d),S();return}else if(b==="(")d=d+b,g="in parens";else if(b===""){d&&f.push(d),S();return}else d=d+b;else if(g==="in parens")if(b===")")d=d+b,g="in descriptor";else if(b===""){f.push(d),S();return}else d=d+b;else if(g==="after descriptor"&&!r(b))if(b===""){S();return}else g="in descriptor",m-=1;m+=1}}function S(){var C=!1,j,k,R,M,D={},$,E,T,P,I;for(M=0;M<f.length;M++)$=f[M],E=$[$.length-1],T=$.substring(0,$.length-1),P=parseInt(T,10),I=parseFloat(T),l.test(T)&&E==="w"?((j||k)&&(C=!0),P===0?C=!0:j=P):c.test(T)&&E==="x"?((j||k||R)&&(C=!0),I<0?C=!0:k=I):l.test(T)&&E==="h"?((R||k)&&(C=!0),P===0?C=!0:R=P):C=!0;C?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+$+"'."):(D.url=h,j&&(D.w=j),k&&(D.d=k),R&&(D.h=R),v.push(D))}}})})(jf);var y4=jf.exports,Is={exports:{}},G=String,Af=function(){return{isColorSupported:!1,reset:G,bold:G,dim:G,italic:G,underline:G,inverse:G,hidden:G,strikethrough:G,black:G,red:G,green:G,yellow:G,blue:G,magenta:G,cyan:G,white:G,gray:G,bgBlack:G,bgRed:G,bgGreen:G,bgYellow:G,bgBlue:G,bgMagenta:G,bgCyan:G,bgWhite:G,blackBright:G,redBright:G,greenBright:G,yellowBright:G,blueBright:G,magentaBright:G,cyanBright:G,whiteBright:G,bgBlackBright:G,bgRedBright:G,bgGreenBright:G,bgYellowBright:G,bgBlueBright:G,bgMagentaBright:G,bgCyanBright:G,bgWhiteBright:G}};Is.exports=Af();Is.exports.createColors=Af;var x4=Is.exports;const w4={},S4=Object.freeze(Object.defineProperty({__proto__:null,default:w4},Symbol.toStringTag,{value:"Module"})),Ve=Yh(S4);let Ll=x4,$l=Ve,yi=class Of extends Error{constructor(e,r,n,o,a,i){super(e),this.name="CssSyntaxError",this.reason=e,a&&(this.file=a),o&&(this.source=o),i&&(this.plugin=i),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Of)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=Ll.isColorSupported);let n=c=>c,o=c=>c,a=c=>c;if(e){let{bold:c,gray:h,red:f}=Ll.createColors(!0);o=d=>c(f(d)),n=d=>h(d),$l&&(a=d=>$l(d))}let i=r.split(/\r?\n/),s=Math.max(this.line-3,0),u=Math.min(this.line+2,i.length),l=String(u).length;return i.slice(s,u).map((c,h)=>{let f=s+1+h,d=" "+(" "+f).slice(-l)+" | ";if(f===this.line){if(c.length>160){let b=20,m=Math.max(0,this.column-b),v=Math.max(this.column+b,this.endColumn+b),x=c.slice(m,v),S=n(d.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,b-1)).replace(/[^\t]/g," ");return o(">")+n(d)+a(x)+`
241
+ */function Ml(t){return Object.prototype.toString.call(t)==="[object Object]"}function o4(t){var e,r;return Ml(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(Ml(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}Is.isPlainObject=o4;var a4=function(e){return i4(e)&&!s4(e)};function i4(t){return!!t&&typeof t=="object"}function s4(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||c4(t)}var u4=typeof Symbol=="function"&&Symbol.for,l4=u4?Symbol.for("react.element"):60103;function c4(t){return t.$$typeof===l4}function d4(t){return Array.isArray(t)?[]:{}}function bn(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Tr(d4(t),t,e):t}function f4(t,e,r){return t.concat(e).map(function(n){return bn(n,r)})}function p4(t,e){if(!e.customMerge)return Tr;var r=e.customMerge(t);return typeof r=="function"?r:Tr}function h4(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Ll(t){return Object.keys(t).concat(h4(t))}function jf(t,e){try{return e in t}catch{return!1}}function m4(t,e){return jf(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function g4(t,e,r){var n={};return r.isMergeableObject(t)&&Ll(t).forEach(function(o){n[o]=bn(t[o],r)}),Ll(e).forEach(function(o){m4(t,o)||(jf(t,o)&&r.isMergeableObject(e[o])?n[o]=p4(o,r)(t[o],e[o],r):n[o]=bn(e[o],r))}),n}function Tr(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||f4,r.isMergeableObject=r.isMergeableObject||a4,r.cloneUnlessOtherwiseSpecified=bn;var n=Array.isArray(e),o=Array.isArray(t),a=n===o;return a?n?r.arrayMerge(t,e,r):g4(t,e,r):bn(e,r)}Tr.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Tr(n,o,r)},{})};var b4=Tr,v4=b4,Af={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(F,function(){return function(e){function r(C){return C===" "||C===" "||C===`
242
+ `||C==="\f"||C==="\r"}function n(C){var j,k=C.exec(e.substring(m));if(k)return j=k[0],m+=j.length,j}for(var o=e.length,a=/^[ \t\n\r\u000c]+/,i=/^[, \t\n\r\u000c]+/,s=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,l=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,h,f,d,g,b,m=0,v=[];;){if(n(i),m>=o)return v;h=n(s),f=[],h.slice(-1)===","?(h=h.replace(u,""),S()):x()}function x(){for(n(a),d="",g="in descriptor";;){if(b=e.charAt(m),g==="in descriptor")if(r(b))d&&(f.push(d),d="",g="after descriptor");else if(b===","){m+=1,d&&f.push(d),S();return}else if(b==="(")d=d+b,g="in parens";else if(b===""){d&&f.push(d),S();return}else d=d+b;else if(g==="in parens")if(b===")")d=d+b,g="in descriptor";else if(b===""){f.push(d),S();return}else d=d+b;else if(g==="after descriptor"&&!r(b))if(b===""){S();return}else g="in descriptor",m-=1;m+=1}}function S(){var C=!1,j,k,R,M,D={},$,E,T,P,I;for(M=0;M<f.length;M++)$=f[M],E=$[$.length-1],T=$.substring(0,$.length-1),P=parseInt(T,10),I=parseFloat(T),l.test(T)&&E==="w"?((j||k)&&(C=!0),P===0?C=!0:j=P):c.test(T)&&E==="x"?((j||k||R)&&(C=!0),I<0?C=!0:k=I):l.test(T)&&E==="h"?((R||k)&&(C=!0),P===0?C=!0:R=P):C=!0;C?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+$+"'."):(D.url=h,j&&(D.w=j),k&&(D.d=k),R&&(D.h=R),v.push(D))}}})})(Af);var y4=Af.exports,Ds={exports:{}},G=String,Of=function(){return{isColorSupported:!1,reset:G,bold:G,dim:G,italic:G,underline:G,inverse:G,hidden:G,strikethrough:G,black:G,red:G,green:G,yellow:G,blue:G,magenta:G,cyan:G,white:G,gray:G,bgBlack:G,bgRed:G,bgGreen:G,bgYellow:G,bgBlue:G,bgMagenta:G,bgCyan:G,bgWhite:G,blackBright:G,redBright:G,greenBright:G,yellowBright:G,blueBright:G,magentaBright:G,cyanBright:G,whiteBright:G,bgBlackBright:G,bgRedBright:G,bgGreenBright:G,bgYellowBright:G,bgBlueBright:G,bgMagentaBright:G,bgCyanBright:G,bgWhiteBright:G}};Ds.exports=Of();Ds.exports.createColors=Of;var x4=Ds.exports;const w4={},S4=Object.freeze(Object.defineProperty({__proto__:null,default:w4},Symbol.toStringTag,{value:"Module"})),Ve=Yh(S4);let $l=x4,Bl=Ve,xi=class kf extends Error{constructor(e,r,n,o,a,i){super(e),this.name="CssSyntaxError",this.reason=e,a&&(this.file=a),o&&(this.source=o),i&&(this.plugin=i),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,kf)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=$l.isColorSupported);let n=c=>c,o=c=>c,a=c=>c;if(e){let{bold:c,gray:h,red:f}=$l.createColors(!0);o=d=>c(f(d)),n=d=>h(d),Bl&&(a=d=>Bl(d))}let i=r.split(/\r?\n/),s=Math.max(this.line-3,0),u=Math.min(this.line+2,i.length),l=String(u).length;return i.slice(s,u).map((c,h)=>{let f=s+1+h,d=" "+(" "+f).slice(-l)+" | ";if(f===this.line){if(c.length>160){let b=20,m=Math.max(0,this.column-b),v=Math.max(this.column+b,this.endColumn+b),x=c.slice(m,v),S=n(d.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,b-1)).replace(/[^\t]/g," ");return o(">")+n(d)+a(x)+`
243
243
  `+S+o("^")}let g=n(d.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(d)+a(c)+`
244
244
  `+g+o("^")}return" "+n(d)+a(c)}).join(`
245
245
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
246
246
 
247
247
  `+e+`
248
- `),this.name+": "+this.message+e}};var Ds=yi;yi.default=yi;const Bl={after:`
248
+ `),this.name+": "+this.message+e}};var Ms=xi;xi.default=xi;const zl={after:`
249
249
  `,beforeClose:`
250
250
  `,beforeComment:`
251
251
  `,beforeDecl:`
252
252
  `,beforeOpen:" ",beforeRule:`
253
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function C4(t){return t[0].toUpperCase()+t.slice(1)}let xi=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{let a=(e.raws.between||"")+(r?";":"");this.builder(n+o+a,e)}}beforeAfter(e,r){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let o=e.parent,a=0;for(;o&&o.type!=="root";)a+=1,o=o.parent;if(n.includes(`
254
- `)){let i=this.raw(e,null,"indent");if(i.length)for(let s=0;s<a;s++)n+=i}return n}block(e,r){let n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");let o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")}body(e){let r=e.nodes.length-1;for(;r>0&&e.nodes[r].type==="comment";)r-=1;let n=this.raw(e,"semicolon");for(let o=0;o<e.nodes.length;o++){let a=e.nodes[o],i=this.raw(a,"before");i&&this.builder(i),this.stringify(a,r!==o||n)}}comment(e){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+n+"*/",e)}decl(e,r){let n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)}document(e){this.body(e)}raw(e,r,n){let o;if(n||(n=r),r&&(o=e.raws[r],typeof o<"u"))return o;let a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Bl[n];let i=e.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[n]<"u")return i.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let s="raw"+C4(n);this[s]?o=this[s](i,e):i.walk(u=>{if(o=u.raws[r],typeof o<"u")return!1})}return typeof o>"u"&&(o=Bl[n]),i.rawCache[n]=o,o}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
253
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function C4(t){return t[0].toUpperCase()+t.slice(1)}let wi=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{let a=(e.raws.between||"")+(r?";":"");this.builder(n+o+a,e)}}beforeAfter(e,r){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let o=e.parent,a=0;for(;o&&o.type!=="root";)a+=1,o=o.parent;if(n.includes(`
254
+ `)){let i=this.raw(e,null,"indent");if(i.length)for(let s=0;s<a;s++)n+=i}return n}block(e,r){let n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");let o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")}body(e){let r=e.nodes.length-1;for(;r>0&&e.nodes[r].type==="comment";)r-=1;let n=this.raw(e,"semicolon");for(let o=0;o<e.nodes.length;o++){let a=e.nodes[o],i=this.raw(a,"before");i&&this.builder(i),this.stringify(a,r!==o||n)}}comment(e){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+n+"*/",e)}decl(e,r){let n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)}document(e){this.body(e)}raw(e,r,n){let o;if(n||(n=r),r&&(o=e.raws[r],typeof o<"u"))return o;let a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return zl[n];let i=e.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[n]<"u")return i.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let s="raw"+C4(n);this[s]?o=this[s](i,e):i.walk(u=>{if(o=u.raws[r],typeof o<"u")return!1})}return typeof o>"u"&&(o=zl[n]),i.rawCache[n]=o,o}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
255
255
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let n;return e.walkComments(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
256
256
  `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,r){let n;return e.walkDecls(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
257
257
  `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let r;return e.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(e){let r;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
258
258
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(n=>{let o=n.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof n.raws.before<"u"){let a=n.raws.before.split(`
259
- `);return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],o=e.raws[r];return o&&o.value===n?o.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}};var kf=xi;xi.default=xi;let E4=kf;function wi(t,e){new E4(e).stringify(t)}var la=wi;wi.default=wi;var On={};On.isClean=Symbol("isClean");On.my=Symbol("my");let N4=Ds,T4=kf,j4=la,{isClean:Yr,my:A4}=On;function Si(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let o=t[n],a=typeof o;n==="parent"&&a==="object"?e&&(r[n]=e):n==="source"?r[n]=o:Array.isArray(o)?r[n]=o.map(i=>Si(i,r)):(a==="object"&&o!==null&&(o=Si(o)),r[n]=o)}return r}function ft(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,o=0;for(let a=0;a<t.length;a++){if(n===e.line&&r===e.column){o=a;break}t[a]===`
260
- `?(r=1,n+=1):r+=1}return o}let Ci=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[Yr]=!1,this[A4]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let r=Si(this);for(let n in e)r[n]=e[n];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:n,start:o}=this.rangeBy(r);return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},r)}return new N4(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markClean(){this[Yr]=!0}markDirty(){if(this[Yr]){this[Yr]=!1;let e=this;for(;e=e.parent;)e[Yr]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,a=n.slice(ft(n,this.source.start),ft(n,this.source.end)).indexOf(e.word);a!==-1&&(r=this.positionInside(a))}return r}positionInside(e){let r=this.source.start.column,n=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,a=ft(o,this.source.start),i=a+e;for(let s=a;s<i;s++)o[s]===`
261
- `?(r=1,n+=1):r+=1;return{column:r,line:n,offset:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:ft(r,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:ft(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=r.slice(ft(r,this.source.start),ft(r,this.source.end)).indexOf(e.word);i!==-1&&(n=this.positionInside(i),o=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:ft(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:ft(r,e.end)}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<n.line||o.line===n.line&&o.column<=n.column)&&(o={column:n.column+1,line:n.line,offset:n.offset+1}),{end:o,start:n}}raw(e,r){return new T4().raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let r=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(r,o),r=o):this.parent.insertBefore(r,o);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,r){let n={},o=r==null;r=r||new Map;let a=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i)||i==="parent"||i==="proxyCache")continue;let s=this[i];if(Array.isArray(s))n[i]=s.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,r):u);else if(typeof s=="object"&&s.toJSON)n[i]=s.toJSON(null,r);else if(i==="source"){if(s==null)continue;let u=r.get(s.input);u==null&&(u=a,r.set(s.input,a),a++),n[i]={end:s.end,inputId:u,start:s.start}}else n[i]=s}return o&&(n.inputs=[...r.keys()].map(i=>i.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=j4){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let o={node:this};for(let a in n)o[a]=n[a];return e.warn(r,o)}};var ca=Ci;Ci.default=Ci;let O4=ca,Ei=class extends O4{constructor(e){super(e),this.type="comment"}};var da=Ei;Ei.default=Ei;let k4=ca,Ni=class extends k4{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};var fa=Ni;Ni.default=Ni;let Pf=da,_f=fa,P4=ca,{isClean:Rf,my:If}=On,Ms,Df,Mf,Ls;function Lf(t){return t.map(e=>(e.nodes&&(e.nodes=Lf(e.nodes)),delete e.source,e))}function $f(t){if(t[Rf]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)$f(e)}let St=class Bf extends P4{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let o of n)this.proxyOf.nodes.push(o)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,o;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],o=e(this.proxyOf.nodes[n],n),o!==!1);)this.indexes[r]+=1;return delete this.indexes[r],o}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(o=>typeof o=="function"?(a,i)=>o(a.toProxy(),i):o)):r==="every"||r==="some"?n=>e[r]((o,...a)=>n(o.toProxy(),...a)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),o=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of o)this.proxyOf.nodes.splice(n+1,0,i);let a;for(let i in this.indexes)a=this.indexes[i],n<a&&(this.indexes[i]=a+o.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),o=n===0?"prepend":!1,a=this.normalize(r,this.proxyOf.nodes[n],o).reverse();n=this.index(e);for(let s of a)this.proxyOf.nodes.splice(n,0,s);let i;for(let s in this.indexes)i=this.indexes[s],n<=i&&(this.indexes[s]=i+a.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=Lf(Df(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new _f(e)]}else if(e.selector||e.selectors)e=[new Ls(e)];else if(e.name)e=[new Ms(e)];else if(e.text)e=[new Pf(e)];else throw new Error("Unknown node type in node creation");return e.map(o=>(o[If]||Bf.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[Rf]&&$f(o),o.raws||(o.raws={}),typeof o.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(o.raws.before=r.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let o of n)this.proxyOf.nodes.unshift(o);for(let o in this.indexes)this.indexes[o]=this.indexes[o]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(o=>{r.props&&!r.props.includes(o.prop)||r.fast&&!o.value.includes(r.fast)||(o.value=o.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let o;try{o=e(r,n)}catch(a){throw r.addToError(a)}return o!==!1&&r.walk&&(o=r.walk(e)),o})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,o)}):this.walk((n,o)=>{if(n.type==="atrule"&&n.name===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="atrule")return r(n,o)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,o)}):this.walk((n,o)=>{if(n.type==="decl"&&n.prop===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="decl")return r(n,o)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,o)}):this.walk((n,o)=>{if(n.type==="rule"&&n.selector===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="rule")return r(n,o)}))}};St.registerParse=t=>{Df=t};St.registerRule=t=>{Ls=t};St.registerAtRule=t=>{Ms=t};St.registerRoot=t=>{Mf=t};var or=St;St.default=St;St.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Ms.prototype):t.type==="rule"?Object.setPrototypeOf(t,Ls.prototype):t.type==="decl"?Object.setPrototypeOf(t,_f.prototype):t.type==="comment"?Object.setPrototypeOf(t,Pf.prototype):t.type==="root"&&Object.setPrototypeOf(t,Mf.prototype),t[If]=!0,t.nodes&&t.nodes.forEach(e=>{St.rebuild(e)})};let zf=or,Ao=class extends zf{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var $s=Ao;Ao.default=Ao;zf.registerAtRule(Ao);let _4=or,Hf,Ff,bn=class extends _4{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Hf(new Ff,this,e).stringify()}};bn.registerLazyResult=t=>{Hf=t};bn.registerProcessor=t=>{Ff=t};var Bs=bn;bn.default=bn;let R4="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",I4=(t=21)=>{let e="",r=t|0;for(;r--;)e+=R4[Math.random()*64|0];return e};var D4={nanoid:I4};let{existsSync:M4,readFileSync:L4}=Ve,{dirname:Da,join:$4}=Ve,{SourceMapConsumer:zl,SourceMapGenerator:Hl}=Ve;function B4(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let Ti=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Da(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new zl(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/,i=e.match(o)||e.match(a);if(i)return decodeURIComponent(e.substr(i[0].length));let s=e.match(r)||e.match(n);if(s)return B4(e.substr(s[0].length));let u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),o=e.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,o)))}loadFile(e){if(this.root=Da(e),M4(e))return this.mapFile=e,L4(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let o=this.loadFile(n);if(!o)throw new Error("Unable to load previous source map: "+n.toString());return o}}else{if(r instanceof zl)return Hl.fromSourceMap(r).toString();if(r instanceof Hl)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=$4(Da(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var qf=Ti;Ti.default=Ti;let{nanoid:z4}=D4,{isAbsolute:ji,resolve:Ai}=Ve,{SourceMapConsumer:H4,SourceMapGenerator:F4}=Ve,{fileURLToPath:Fl,pathToFileURL:qn}=Ve,ql=Ds,q4=qf,Ma=Ve,La=Symbol("lineToIndexCache"),U4=!!(H4&&F4),Ul=!!(Ai&&ji);function Vl(t){if(t[La])return t[La];let e=t.css.split(`
262
- `),r=new Array(e.length),n=0;for(let o=0,a=e.length;o<a;o++)r[o]=n,n+=e[o].length+1;return t[La]=r,r}let Oo=class{get from(){return this.file||this.id}constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!Ul||/^\w+:\/\//.test(r.from)||ji(r.from)?this.file=r.from:this.file=Ai(r.from)),Ul&&U4){let n=new q4(this.css,r);if(n.text){this.map=n;let o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+z4(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,o={}){let a,i,s,u,l;if(r&&typeof r=="object"){let h=r,f=n;if(typeof h.offset=="number"){u=h.offset;let d=this.fromOffset(u);r=d.line,n=d.col}else r=h.line,n=h.column,u=this.fromLineAndColumn(r,n);if(typeof f.offset=="number"){s=f.offset;let d=this.fromOffset(s);i=d.line,a=d.col}else i=f.line,a=f.column,s=this.fromLineAndColumn(f.line,f.column)}else if(n)u=this.fromLineAndColumn(r,n);else{u=r;let h=this.fromOffset(u);r=h.line,n=h.col}let c=this.origin(r,n,i,a);return c?l=new ql(e,c.endLine===void 0?c.line:{column:c.column,line:c.line},c.endLine===void 0?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,o.plugin):l=new ql(e,i===void 0?r:{column:n,line:r},i===void 0?n:{column:a,line:i},this.css,this.file,o.plugin),l.input={column:n,endColumn:a,endLine:i,endOffset:s,line:r,offset:u,source:this.css},this.file&&(qn&&(l.input.url=qn(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,r){return Vl(this)[e-1]+r-1}fromOffset(e){let r=Vl(this),n=r[r.length-1],o=0;if(e>=n)o=r.length-1;else{let a=r.length-2,i;for(;o<a;)if(i=o+(a-o>>1),e<r[i])a=i-1;else if(e>=r[i+1])o=i+1;else{o=i;break}}return{col:e-r[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ai(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,o){if(!this.map)return!1;let a=this.map.consumer(),i=a.originalPositionFor({column:r,line:e});if(!i.source)return!1;let s;typeof n=="number"&&(s=a.originalPositionFor({column:o,line:n}));let u;ji(i.source)?u=qn(i.source):u=new URL(i.source,this.map.consumer().sourceRoot||qn(this.map.mapFile));let l={column:i.column,endColumn:s&&s.column,endLine:s&&s.line,line:i.line,url:u.toString()};if(u.protocol==="file:")if(Fl)l.file=Fl(u);else throw new Error("file: protocol is not available in this PostCSS build");let c=a.sourceContentFor(i.source);return c&&(l.source=c),l}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var pa=Oo;Oo.default=Oo;Ma&&Ma.registerInput&&Ma.registerInput(Oo);let Uf=or,Vf,Wf,Tr=class extends Uf{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let o=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let a of o)a.raws.before=r.raws.before}return o}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Vf(new Wf,this,e).stringify()}};Tr.registerLazyResult=t=>{Vf=t};Tr.registerProcessor=t=>{Wf=t};var kn=Tr;Tr.default=Tr;Uf.registerRoot(Tr);let vn={comma(t){return vn.split(t,[","],!0)},space(t){let e=[" ",`
263
- `," "];return vn.split(t,e)},split(t,e,r){let n=[],o="",a=!1,i=0,s=!1,u="",l=!1;for(let c of t)l?l=!1:c==="\\"?l=!0:s?c===u&&(s=!1):c==='"'||c==="'"?(s=!0,u=c):c==="("?i+=1:c===")"?i>0&&(i-=1):i===0&&e.includes(c)&&(a=!0),a?(o!==""&&n.push(o.trim()),o="",a=!1):o+=c;return(r||o!=="")&&n.push(o.trim()),n}};var Gf=vn;vn.default=vn;let Yf=or,V4=Gf,ko=class extends Yf{get selectors(){return V4.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var zs=ko;ko.default=ko;Yf.registerRule(ko);let W4=$s,G4=da,Y4=fa,X4=pa,K4=qf,J4=kn,Z4=zs;function yn(t,e){if(Array.isArray(t))return t.map(o=>yn(o));let{inputs:r,...n}=t;if(r){e=[];for(let o of r){let a={...o,__proto__:X4.prototype};a.map&&(a.map={...a.map,__proto__:K4.prototype}),e.push(a)}}if(n.nodes&&(n.nodes=t.nodes.map(o=>yn(o,e))),n.source){let{inputId:o,...a}=n.source;n.source=a,o!=null&&(n.source.input=e[o])}if(n.type==="root")return new J4(n);if(n.type==="decl")return new Y4(n);if(n.type==="rule")return new Z4(n);if(n.type==="comment")return new G4(n);if(n.type==="atrule")return new W4(n);throw new Error("Unknown node type: "+t.type)}var Q4=yn;yn.default=yn;let{dirname:ro,relative:Xf,resolve:Kf,sep:Jf}=Ve,{SourceMapConsumer:Zf,SourceMapGenerator:no}=Ve,{pathToFileURL:Wl}=Ve,e8=pa,t8=!!(Zf&&no),r8=!!(ro&&Kf&&Xf&&Jf),n8=class{constructor(e,r,n,o){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
259
+ `);return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],o=e.raws[r];return o&&o.value===n?o.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}};var Pf=wi;wi.default=wi;let E4=Pf;function Si(t,e){new E4(e).stringify(t)}var ca=Si;Si.default=Si;var kn={};kn.isClean=Symbol("isClean");kn.my=Symbol("my");let N4=Ms,T4=Pf,j4=ca,{isClean:Xr,my:A4}=kn;function Ci(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let o=t[n],a=typeof o;n==="parent"&&a==="object"?e&&(r[n]=e):n==="source"?r[n]=o:Array.isArray(o)?r[n]=o.map(i=>Ci(i,r)):(a==="object"&&o!==null&&(o=Ci(o)),r[n]=o)}return r}function ft(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,o=0;for(let a=0;a<t.length;a++){if(n===e.line&&r===e.column){o=a;break}t[a]===`
260
+ `?(r=1,n+=1):r+=1}return o}let Ei=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[Xr]=!1,this[A4]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let r=Ci(this);for(let n in e)r[n]=e[n];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:n,start:o}=this.rangeBy(r);return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},r)}return new N4(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markClean(){this[Xr]=!0}markDirty(){if(this[Xr]){this[Xr]=!1;let e=this;for(;e=e.parent;)e[Xr]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,a=n.slice(ft(n,this.source.start),ft(n,this.source.end)).indexOf(e.word);a!==-1&&(r=this.positionInside(a))}return r}positionInside(e){let r=this.source.start.column,n=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,a=ft(o,this.source.start),i=a+e;for(let s=a;s<i;s++)o[s]===`
261
+ `?(r=1,n+=1):r+=1;return{column:r,line:n,offset:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:ft(r,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:ft(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=r.slice(ft(r,this.source.start),ft(r,this.source.end)).indexOf(e.word);i!==-1&&(n=this.positionInside(i),o=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:ft(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:ft(r,e.end)}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<n.line||o.line===n.line&&o.column<=n.column)&&(o={column:n.column+1,line:n.line,offset:n.offset+1}),{end:o,start:n}}raw(e,r){return new T4().raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let r=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(r,o),r=o):this.parent.insertBefore(r,o);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,r){let n={},o=r==null;r=r||new Map;let a=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i)||i==="parent"||i==="proxyCache")continue;let s=this[i];if(Array.isArray(s))n[i]=s.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,r):u);else if(typeof s=="object"&&s.toJSON)n[i]=s.toJSON(null,r);else if(i==="source"){if(s==null)continue;let u=r.get(s.input);u==null&&(u=a,r.set(s.input,a),a++),n[i]={end:s.end,inputId:u,start:s.start}}else n[i]=s}return o&&(n.inputs=[...r.keys()].map(i=>i.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=j4){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let o={node:this};for(let a in n)o[a]=n[a];return e.warn(r,o)}};var da=Ei;Ei.default=Ei;let O4=da,Ni=class extends O4{constructor(e){super(e),this.type="comment"}};var fa=Ni;Ni.default=Ni;let k4=da,Ti=class extends k4{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};var pa=Ti;Ti.default=Ti;let _f=fa,Rf=pa,P4=da,{isClean:If,my:Df}=kn,Ls,Mf,Lf,$s;function $f(t){return t.map(e=>(e.nodes&&(e.nodes=$f(e.nodes)),delete e.source,e))}function Bf(t){if(t[If]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Bf(e)}let St=class zf extends P4{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let o of n)this.proxyOf.nodes.push(o)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,o;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],o=e(this.proxyOf.nodes[n],n),o!==!1);)this.indexes[r]+=1;return delete this.indexes[r],o}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(o=>typeof o=="function"?(a,i)=>o(a.toProxy(),i):o)):r==="every"||r==="some"?n=>e[r]((o,...a)=>n(o.toProxy(),...a)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),o=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of o)this.proxyOf.nodes.splice(n+1,0,i);let a;for(let i in this.indexes)a=this.indexes[i],n<a&&(this.indexes[i]=a+o.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),o=n===0?"prepend":!1,a=this.normalize(r,this.proxyOf.nodes[n],o).reverse();n=this.index(e);for(let s of a)this.proxyOf.nodes.splice(n,0,s);let i;for(let s in this.indexes)i=this.indexes[s],n<=i&&(this.indexes[s]=i+a.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=$f(Mf(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Rf(e)]}else if(e.selector||e.selectors)e=[new $s(e)];else if(e.name)e=[new Ls(e)];else if(e.text)e=[new _f(e)];else throw new Error("Unknown node type in node creation");return e.map(o=>(o[Df]||zf.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[If]&&Bf(o),o.raws||(o.raws={}),typeof o.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(o.raws.before=r.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let o of n)this.proxyOf.nodes.unshift(o);for(let o in this.indexes)this.indexes[o]=this.indexes[o]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(o=>{r.props&&!r.props.includes(o.prop)||r.fast&&!o.value.includes(r.fast)||(o.value=o.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let o;try{o=e(r,n)}catch(a){throw r.addToError(a)}return o!==!1&&r.walk&&(o=r.walk(e)),o})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,o)}):this.walk((n,o)=>{if(n.type==="atrule"&&n.name===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="atrule")return r(n,o)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,o)}):this.walk((n,o)=>{if(n.type==="decl"&&n.prop===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="decl")return r(n,o)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,o)}):this.walk((n,o)=>{if(n.type==="rule"&&n.selector===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="rule")return r(n,o)}))}};St.registerParse=t=>{Mf=t};St.registerRule=t=>{$s=t};St.registerAtRule=t=>{Ls=t};St.registerRoot=t=>{Lf=t};var or=St;St.default=St;St.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Ls.prototype):t.type==="rule"?Object.setPrototypeOf(t,$s.prototype):t.type==="decl"?Object.setPrototypeOf(t,Rf.prototype):t.type==="comment"?Object.setPrototypeOf(t,_f.prototype):t.type==="root"&&Object.setPrototypeOf(t,Lf.prototype),t[Df]=!0,t.nodes&&t.nodes.forEach(e=>{St.rebuild(e)})};let Hf=or,Oo=class extends Hf{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Bs=Oo;Oo.default=Oo;Hf.registerAtRule(Oo);let _4=or,Ff,qf,vn=class extends _4{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Ff(new qf,this,e).stringify()}};vn.registerLazyResult=t=>{Ff=t};vn.registerProcessor=t=>{qf=t};var zs=vn;vn.default=vn;let R4="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",I4=(t=21)=>{let e="",r=t|0;for(;r--;)e+=R4[Math.random()*64|0];return e};var D4={nanoid:I4};let{existsSync:M4,readFileSync:L4}=Ve,{dirname:Ma,join:$4}=Ve,{SourceMapConsumer:Hl,SourceMapGenerator:Fl}=Ve;function B4(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let ji=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Ma(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new Hl(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/,i=e.match(o)||e.match(a);if(i)return decodeURIComponent(e.substr(i[0].length));let s=e.match(r)||e.match(n);if(s)return B4(e.substr(s[0].length));let u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),o=e.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,o)))}loadFile(e){if(this.root=Ma(e),M4(e))return this.mapFile=e,L4(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let o=this.loadFile(n);if(!o)throw new Error("Unable to load previous source map: "+n.toString());return o}}else{if(r instanceof Hl)return Fl.fromSourceMap(r).toString();if(r instanceof Fl)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=$4(Ma(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Uf=ji;ji.default=ji;let{nanoid:z4}=D4,{isAbsolute:Ai,resolve:Oi}=Ve,{SourceMapConsumer:H4,SourceMapGenerator:F4}=Ve,{fileURLToPath:ql,pathToFileURL:Un}=Ve,Ul=Ms,q4=Uf,La=Ve,$a=Symbol("lineToIndexCache"),U4=!!(H4&&F4),Vl=!!(Oi&&Ai);function Wl(t){if(t[$a])return t[$a];let e=t.css.split(`
262
+ `),r=new Array(e.length),n=0;for(let o=0,a=e.length;o<a;o++)r[o]=n,n+=e[o].length+1;return t[$a]=r,r}let ko=class{get from(){return this.file||this.id}constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!Vl||/^\w+:\/\//.test(r.from)||Ai(r.from)?this.file=r.from:this.file=Oi(r.from)),Vl&&U4){let n=new q4(this.css,r);if(n.text){this.map=n;let o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+z4(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,o={}){let a,i,s,u,l;if(r&&typeof r=="object"){let h=r,f=n;if(typeof h.offset=="number"){u=h.offset;let d=this.fromOffset(u);r=d.line,n=d.col}else r=h.line,n=h.column,u=this.fromLineAndColumn(r,n);if(typeof f.offset=="number"){s=f.offset;let d=this.fromOffset(s);i=d.line,a=d.col}else i=f.line,a=f.column,s=this.fromLineAndColumn(f.line,f.column)}else if(n)u=this.fromLineAndColumn(r,n);else{u=r;let h=this.fromOffset(u);r=h.line,n=h.col}let c=this.origin(r,n,i,a);return c?l=new Ul(e,c.endLine===void 0?c.line:{column:c.column,line:c.line},c.endLine===void 0?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,o.plugin):l=new Ul(e,i===void 0?r:{column:n,line:r},i===void 0?n:{column:a,line:i},this.css,this.file,o.plugin),l.input={column:n,endColumn:a,endLine:i,endOffset:s,line:r,offset:u,source:this.css},this.file&&(Un&&(l.input.url=Un(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,r){return Wl(this)[e-1]+r-1}fromOffset(e){let r=Wl(this),n=r[r.length-1],o=0;if(e>=n)o=r.length-1;else{let a=r.length-2,i;for(;o<a;)if(i=o+(a-o>>1),e<r[i])a=i-1;else if(e>=r[i+1])o=i+1;else{o=i;break}}return{col:e-r[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Oi(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,o){if(!this.map)return!1;let a=this.map.consumer(),i=a.originalPositionFor({column:r,line:e});if(!i.source)return!1;let s;typeof n=="number"&&(s=a.originalPositionFor({column:o,line:n}));let u;Ai(i.source)?u=Un(i.source):u=new URL(i.source,this.map.consumer().sourceRoot||Un(this.map.mapFile));let l={column:i.column,endColumn:s&&s.column,endLine:s&&s.line,line:i.line,url:u.toString()};if(u.protocol==="file:")if(ql)l.file=ql(u);else throw new Error("file: protocol is not available in this PostCSS build");let c=a.sourceContentFor(i.source);return c&&(l.source=c),l}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var ha=ko;ko.default=ko;La&&La.registerInput&&La.registerInput(ko);let Vf=or,Wf,Gf,jr=class extends Vf{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let o=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let a of o)a.raws.before=r.raws.before}return o}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Wf(new Gf,this,e).stringify()}};jr.registerLazyResult=t=>{Wf=t};jr.registerProcessor=t=>{Gf=t};var Pn=jr;jr.default=jr;Vf.registerRoot(jr);let yn={comma(t){return yn.split(t,[","],!0)},space(t){let e=[" ",`
263
+ `," "];return yn.split(t,e)},split(t,e,r){let n=[],o="",a=!1,i=0,s=!1,u="",l=!1;for(let c of t)l?l=!1:c==="\\"?l=!0:s?c===u&&(s=!1):c==='"'||c==="'"?(s=!0,u=c):c==="("?i+=1:c===")"?i>0&&(i-=1):i===0&&e.includes(c)&&(a=!0),a?(o!==""&&n.push(o.trim()),o="",a=!1):o+=c;return(r||o!=="")&&n.push(o.trim()),n}};var Yf=yn;yn.default=yn;let Xf=or,V4=Yf,Po=class extends Xf{get selectors(){return V4.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var Hs=Po;Po.default=Po;Xf.registerRule(Po);let W4=Bs,G4=fa,Y4=pa,X4=ha,K4=Uf,J4=Pn,Z4=Hs;function xn(t,e){if(Array.isArray(t))return t.map(o=>xn(o));let{inputs:r,...n}=t;if(r){e=[];for(let o of r){let a={...o,__proto__:X4.prototype};a.map&&(a.map={...a.map,__proto__:K4.prototype}),e.push(a)}}if(n.nodes&&(n.nodes=t.nodes.map(o=>xn(o,e))),n.source){let{inputId:o,...a}=n.source;n.source=a,o!=null&&(n.source.input=e[o])}if(n.type==="root")return new J4(n);if(n.type==="decl")return new Y4(n);if(n.type==="rule")return new Z4(n);if(n.type==="comment")return new G4(n);if(n.type==="atrule")return new W4(n);throw new Error("Unknown node type: "+t.type)}var Q4=xn;xn.default=xn;let{dirname:no,relative:Kf,resolve:Jf,sep:Zf}=Ve,{SourceMapConsumer:Qf,SourceMapGenerator:oo}=Ve,{pathToFileURL:Gl}=Ve,e8=ha,t8=!!(Qf&&oo),r8=!!(no&&Jf&&Kf&&Zf),n8=class{constructor(e,r,n,o){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
264
264
  `;this.css.includes(`\r
265
265
  `)&&(r=`\r
266
- `),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||ro(e.file),o;this.mapOpts.sourcesContent===!1?(o=new Zf(e.text),o.sourcesContent&&(o.sourcesContent=null)):o=e.consumer(),this.map.applySourceMap(o,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),r8&&t8&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=no.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new no({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new no({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},a,i;this.stringify(this.root,(s,u,l)=>{if(this.css+=s,u&&l!=="end"&&(o.generated.line=e,o.generated.column=r-1,u.source&&u.source.start?(o.source=this.sourcePath(u),o.original.line=u.source.start.line,o.original.column=u.source.start.column-1,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,this.map.addMapping(o))),i=s.match(/\n/g),i?(e+=i.length,a=s.lastIndexOf(`
267
- `),r=s.length-a):r+=s.length,u&&l!=="start"){let c=u.parent||{raws:{}};(!(u.type==="decl"||u.type==="atrule"&&!u.nodes)||u!==c.last||c.raws.semicolon)&&(u.source&&u.source.end?(o.source=this.sourcePath(u),o.original.line=u.source.end.line,o.original.column=u.source.end.column-1,o.generated.line=e,o.generated.column=r-2,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=e,o.generated.column=r-1,this.map.addMapping(o)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?ro(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=ro(Kf(n,this.mapOpts.annotation)));let o=Xf(n,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new e8(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let o=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(o,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(Wl){let n=Wl(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;Jf==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Qf=n8;const $a=39,Gl=34,Un=92,Yl=47,Vn=10,Xr=32,Wn=12,Gn=9,Yn=13,o8=91,a8=93,i8=40,s8=41,u8=123,l8=125,c8=59,d8=42,f8=58,p8=64,Xn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Kn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,h8=/.[\r\n"'(/\\]/,Xl=/[\da-f]/i;var m8=function(e,r={}){let n=e.css.valueOf(),o=r.ignoreErrors,a,i,s,u,l,c,h,f,d,g,b=n.length,m=0,v=[],x=[];function S(){return m}function C(M){throw e.error("Unclosed "+M,m)}function j(){return x.length===0&&m>=b}function k(M){if(x.length)return x.pop();if(m>=b)return;let D=M?M.ignoreUnclosed:!1;switch(a=n.charCodeAt(m),a){case Vn:case Xr:case Gn:case Yn:case Wn:{u=m;do u+=1,a=n.charCodeAt(u);while(a===Xr||a===Vn||a===Gn||a===Yn||a===Wn);c=["space",n.slice(m,u)],m=u-1;break}case o8:case a8:case u8:case l8:case f8:case c8:case s8:{let $=String.fromCharCode(a);c=[$,$,m];break}case i8:{if(g=v.length?v.pop()[1]:"",d=n.charCodeAt(m+1),g==="url"&&d!==$a&&d!==Gl&&d!==Xr&&d!==Vn&&d!==Gn&&d!==Wn&&d!==Yn){u=m;do{if(h=!1,u=n.indexOf(")",u+1),u===-1)if(o||D){u=m;break}else C("bracket");for(f=u;n.charCodeAt(f-1)===Un;)f-=1,h=!h}while(h);c=["brackets",n.slice(m,u+1),m,u],m=u}else u=n.indexOf(")",m+1),i=n.slice(m,u+1),u===-1||h8.test(i)?c=["(","(",m]:(c=["brackets",i,m,u],m=u);break}case $a:case Gl:{l=a===$a?"'":'"',u=m;do{if(h=!1,u=n.indexOf(l,u+1),u===-1)if(o||D){u=m+1;break}else C("string");for(f=u;n.charCodeAt(f-1)===Un;)f-=1,h=!h}while(h);c=["string",n.slice(m,u+1),m,u],m=u;break}case p8:{Xn.lastIndex=m+1,Xn.test(n),Xn.lastIndex===0?u=n.length-1:u=Xn.lastIndex-2,c=["at-word",n.slice(m,u+1),m,u],m=u;break}case Un:{for(u=m,s=!0;n.charCodeAt(u+1)===Un;)u+=1,s=!s;if(a=n.charCodeAt(u+1),s&&a!==Yl&&a!==Xr&&a!==Vn&&a!==Gn&&a!==Yn&&a!==Wn&&(u+=1,Xl.test(n.charAt(u)))){for(;Xl.test(n.charAt(u+1));)u+=1;n.charCodeAt(u+1)===Xr&&(u+=1)}c=["word",n.slice(m,u+1),m,u],m=u;break}default:{a===Yl&&n.charCodeAt(m+1)===d8?(u=n.indexOf("*/",m+2)+1,u===0&&(o||D?u=n.length:C("comment")),c=["comment",n.slice(m,u+1),m,u],m=u):(Kn.lastIndex=m+1,Kn.test(n),Kn.lastIndex===0?u=n.length-1:u=Kn.lastIndex-2,c=["word",n.slice(m,u+1),m,u],v.push(c),m=u);break}}return m++,c}function R(M){x.push(M)}return{back:R,endOfFile:j,nextToken:k,position:S}};let g8=$s,b8=da,v8=fa,y8=kn,Kl=zs,x8=m8;const Jl={empty:!0,space:!0};function w8(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let S8=class{constructor(e){this.input=e,this.root=new y8,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new g8;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,o,a,i=!1,s=!1,u=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?l.push(n==="("?")":"]"):n==="{"&&l.length>0?l.push("}"):n===l[l.length-1]&&l.pop(),l.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){s=!0;break}else if(n==="}"){if(u.length>0){for(a=u.length-1,o=u[a];o&&o[0]==="space";)o=u[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(r.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(r,"params",u),i&&(e=u[u.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),s&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,o;for(let a=r-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let r=0,n,o,a;for(let[i,s]of e.entries()){if(o=s,a=o[0],a==="("&&(r+=1),a===")"&&(r-=1),r===0&&a===":")if(!n)this.doubleColon(o);else{if(n[0]==="word"&&n[1]==="progid")continue;return i}n=o}return!1}comment(e){let r=new b8;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let o=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}}createTokenizer(){this.tokenizer=x8(this.input)}decl(e,r){let n=new v8;this.init(n,e[0][2]);let o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||w8(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let l=e[0][0];if(l===":"||l==="space"||l==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){n.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let i=[],s;for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)i.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(a=e[l],a[1].toLowerCase()==="!important"){n.important=!0;let c=this.stringFrom(e,l);c=this.spacesFromEnd(e)+c,c!==" !important"&&(n.raws.important=c);break}else if(a[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=l;f>0;f--){let d=c[f][0];if(h.trim().startsWith("!")&&d!=="space")break;h=c.pop()[1]+h}h.trim().startsWith("!")&&(n.important=!0,n.raws.important=h,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(n.raws.between+=i.map(l=>l[1]).join(""),i=[]),this.raw(n,"value",i.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new Kl;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,o=!1,a=null,i=[],s=e[1].startsWith("--"),u=[],l=e;for(;l;){if(n=l[0],u.push(l),n==="("||n==="[")a||(a=l),i.push(n==="("?")":"]");else if(s&&o&&n==="{")a||(a=l),i.push("}");else if(i.length===0)if(n===";")if(o){this.decl(u,s);return}else break;else if(n==="{"){this.rule(u);return}else if(n==="}"){this.tokenizer.back(u.pop()),r=!0;break}else n===":"&&(o=!0);else n===i[i.length-1]&&(i.pop(),i.length===0&&(a=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),i.length>0&&this.unclosedBracket(a),r&&o){if(!s)for(;u.length&&(l=u[u.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,s)}else this.unknownWord(u)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,o){let a,i,s=n.length,u="",l=!0,c,h;for(let f=0;f<s;f+=1)a=n[f],i=a[0],i==="space"&&f===s-1&&!o?l=!1:i==="comment"?(h=n[f-1]?n[f-1][0]:"empty",c=n[f+1]?n[f+1][0]:"empty",!Jl[h]&&!Jl[c]?u.slice(-1)===","?l=!1:u+=a[1]:l=!1):u+=a[1];if(!l){let f=n.reduce((d,g)=>d+g[1],"");e.raws[r]={raw:f,value:u}}e[r]=u}rule(e){e.pop();let r=new Kl;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let o=r;o<e.length;o++)n+=e[o][1];return e.splice(r,e.length-r),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}};var C8=S8;let E8=or,N8=pa,T8=C8;function Po(t,e){let r=new N8(t,e),n=new T8(r);try{n.parse()}catch(o){throw process.env.NODE_ENV!=="production"&&o.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?o.message+=`
266
+ `),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||no(e.file),o;this.mapOpts.sourcesContent===!1?(o=new Qf(e.text),o.sourcesContent&&(o.sourcesContent=null)):o=e.consumer(),this.map.applySourceMap(o,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),r8&&t8&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=oo.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new oo({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new oo({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},a,i;this.stringify(this.root,(s,u,l)=>{if(this.css+=s,u&&l!=="end"&&(o.generated.line=e,o.generated.column=r-1,u.source&&u.source.start?(o.source=this.sourcePath(u),o.original.line=u.source.start.line,o.original.column=u.source.start.column-1,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,this.map.addMapping(o))),i=s.match(/\n/g),i?(e+=i.length,a=s.lastIndexOf(`
267
+ `),r=s.length-a):r+=s.length,u&&l!=="start"){let c=u.parent||{raws:{}};(!(u.type==="decl"||u.type==="atrule"&&!u.nodes)||u!==c.last||c.raws.semicolon)&&(u.source&&u.source.end?(o.source=this.sourcePath(u),o.original.line=u.source.end.line,o.original.column=u.source.end.column-1,o.generated.line=e,o.generated.column=r-2,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=e,o.generated.column=r-1,this.map.addMapping(o)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?no(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=no(Jf(n,this.mapOpts.annotation)));let o=Kf(n,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new e8(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let o=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(o,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(Gl){let n=Gl(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;Zf==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var e0=n8;const Ba=39,Yl=34,Vn=92,Xl=47,Wn=10,Kr=32,Gn=12,Yn=9,Xn=13,o8=91,a8=93,i8=40,s8=41,u8=123,l8=125,c8=59,d8=42,f8=58,p8=64,Kn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Jn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,h8=/.[\r\n"'(/\\]/,Kl=/[\da-f]/i;var m8=function(e,r={}){let n=e.css.valueOf(),o=r.ignoreErrors,a,i,s,u,l,c,h,f,d,g,b=n.length,m=0,v=[],x=[];function S(){return m}function C(M){throw e.error("Unclosed "+M,m)}function j(){return x.length===0&&m>=b}function k(M){if(x.length)return x.pop();if(m>=b)return;let D=M?M.ignoreUnclosed:!1;switch(a=n.charCodeAt(m),a){case Wn:case Kr:case Yn:case Xn:case Gn:{u=m;do u+=1,a=n.charCodeAt(u);while(a===Kr||a===Wn||a===Yn||a===Xn||a===Gn);c=["space",n.slice(m,u)],m=u-1;break}case o8:case a8:case u8:case l8:case f8:case c8:case s8:{let $=String.fromCharCode(a);c=[$,$,m];break}case i8:{if(g=v.length?v.pop()[1]:"",d=n.charCodeAt(m+1),g==="url"&&d!==Ba&&d!==Yl&&d!==Kr&&d!==Wn&&d!==Yn&&d!==Gn&&d!==Xn){u=m;do{if(h=!1,u=n.indexOf(")",u+1),u===-1)if(o||D){u=m;break}else C("bracket");for(f=u;n.charCodeAt(f-1)===Vn;)f-=1,h=!h}while(h);c=["brackets",n.slice(m,u+1),m,u],m=u}else u=n.indexOf(")",m+1),i=n.slice(m,u+1),u===-1||h8.test(i)?c=["(","(",m]:(c=["brackets",i,m,u],m=u);break}case Ba:case Yl:{l=a===Ba?"'":'"',u=m;do{if(h=!1,u=n.indexOf(l,u+1),u===-1)if(o||D){u=m+1;break}else C("string");for(f=u;n.charCodeAt(f-1)===Vn;)f-=1,h=!h}while(h);c=["string",n.slice(m,u+1),m,u],m=u;break}case p8:{Kn.lastIndex=m+1,Kn.test(n),Kn.lastIndex===0?u=n.length-1:u=Kn.lastIndex-2,c=["at-word",n.slice(m,u+1),m,u],m=u;break}case Vn:{for(u=m,s=!0;n.charCodeAt(u+1)===Vn;)u+=1,s=!s;if(a=n.charCodeAt(u+1),s&&a!==Xl&&a!==Kr&&a!==Wn&&a!==Yn&&a!==Xn&&a!==Gn&&(u+=1,Kl.test(n.charAt(u)))){for(;Kl.test(n.charAt(u+1));)u+=1;n.charCodeAt(u+1)===Kr&&(u+=1)}c=["word",n.slice(m,u+1),m,u],m=u;break}default:{a===Xl&&n.charCodeAt(m+1)===d8?(u=n.indexOf("*/",m+2)+1,u===0&&(o||D?u=n.length:C("comment")),c=["comment",n.slice(m,u+1),m,u],m=u):(Jn.lastIndex=m+1,Jn.test(n),Jn.lastIndex===0?u=n.length-1:u=Jn.lastIndex-2,c=["word",n.slice(m,u+1),m,u],v.push(c),m=u);break}}return m++,c}function R(M){x.push(M)}return{back:R,endOfFile:j,nextToken:k,position:S}};let g8=Bs,b8=fa,v8=pa,y8=Pn,Jl=Hs,x8=m8;const Zl={empty:!0,space:!0};function w8(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let S8=class{constructor(e){this.input=e,this.root=new y8,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new g8;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,o,a,i=!1,s=!1,u=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?l.push(n==="("?")":"]"):n==="{"&&l.length>0?l.push("}"):n===l[l.length-1]&&l.pop(),l.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){s=!0;break}else if(n==="}"){if(u.length>0){for(a=u.length-1,o=u[a];o&&o[0]==="space";)o=u[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(r.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(r,"params",u),i&&(e=u[u.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),s&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,o;for(let a=r-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let r=0,n,o,a;for(let[i,s]of e.entries()){if(o=s,a=o[0],a==="("&&(r+=1),a===")"&&(r-=1),r===0&&a===":")if(!n)this.doubleColon(o);else{if(n[0]==="word"&&n[1]==="progid")continue;return i}n=o}return!1}comment(e){let r=new b8;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let o=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}}createTokenizer(){this.tokenizer=x8(this.input)}decl(e,r){let n=new v8;this.init(n,e[0][2]);let o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||w8(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let l=e[0][0];if(l===":"||l==="space"||l==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){n.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let i=[],s;for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)i.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(a=e[l],a[1].toLowerCase()==="!important"){n.important=!0;let c=this.stringFrom(e,l);c=this.spacesFromEnd(e)+c,c!==" !important"&&(n.raws.important=c);break}else if(a[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=l;f>0;f--){let d=c[f][0];if(h.trim().startsWith("!")&&d!=="space")break;h=c.pop()[1]+h}h.trim().startsWith("!")&&(n.important=!0,n.raws.important=h,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(n.raws.between+=i.map(l=>l[1]).join(""),i=[]),this.raw(n,"value",i.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new Jl;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,o=!1,a=null,i=[],s=e[1].startsWith("--"),u=[],l=e;for(;l;){if(n=l[0],u.push(l),n==="("||n==="[")a||(a=l),i.push(n==="("?")":"]");else if(s&&o&&n==="{")a||(a=l),i.push("}");else if(i.length===0)if(n===";")if(o){this.decl(u,s);return}else break;else if(n==="{"){this.rule(u);return}else if(n==="}"){this.tokenizer.back(u.pop()),r=!0;break}else n===":"&&(o=!0);else n===i[i.length-1]&&(i.pop(),i.length===0&&(a=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),i.length>0&&this.unclosedBracket(a),r&&o){if(!s)for(;u.length&&(l=u[u.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,s)}else this.unknownWord(u)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,o){let a,i,s=n.length,u="",l=!0,c,h;for(let f=0;f<s;f+=1)a=n[f],i=a[0],i==="space"&&f===s-1&&!o?l=!1:i==="comment"?(h=n[f-1]?n[f-1][0]:"empty",c=n[f+1]?n[f+1][0]:"empty",!Zl[h]&&!Zl[c]?u.slice(-1)===","?l=!1:u+=a[1]:l=!1):u+=a[1];if(!l){let f=n.reduce((d,g)=>d+g[1],"");e.raws[r]={raw:f,value:u}}e[r]=u}rule(e){e.pop();let r=new Jl;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let o=r;o<e.length;o++)n+=e[o][1];return e.splice(r,e.length-r),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}};var C8=S8;let E8=or,N8=ha,T8=C8;function _o(t,e){let r=new N8(t,e),n=new T8(r);try{n.parse()}catch(o){throw process.env.NODE_ENV!=="production"&&o.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?o.message+=`
268
268
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?o.message+=`
269
269
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(o.message+=`
270
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),o}return n.root}var Hs=Po;Po.default=Po;E8.registerParse(Po);let Oi=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var e0=Oi;Oi.default=Oi;let j8=e0,ki=class{get content(){return this.css}constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new j8(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Fs=ki;ki.default=ki;let Zl={};var t0=function(e){Zl[e]||(Zl[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let A8=or,O8=Bs,k8=Qf,P8=Hs,Ql=Fs,_8=kn,R8=la,{isClean:Ye,my:I8}=On,D8=t0;const M8={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},L8={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},$8={Once:!0,postcssPlugin:!0,prepare:!0},jr=0;function Kr(t){return typeof t=="object"&&typeof t.then=="function"}function r0(t){let e=!1,r=M8[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,jr,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,jr,r+"Exit"]:[r,r+"Exit"]}function ec(t){let e;return t.type==="document"?e=["Document",jr,"DocumentExit"]:t.type==="root"?e=["Root",jr,"RootExit"]:e=r0(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Pi(t){return t[Ye]=!1,t.nodes&&t.nodes.forEach(e=>Pi(e)),t}let _i={},Ar=class n0{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,n){this.stringified=!1,this.processed=!1;let o;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))o=Pi(r);else if(r instanceof n0||r instanceof Ql)o=Pi(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let a=P8;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{o=a(r,n)}catch(i){this.processed=!0,this.error=i}o&&!o[I8]&&A8.rebuild(o)}this.result=new Ql(e,o,n),this.helpers={..._i,postcss:_i,result:this.result},this.plugins=this.processor.plugins.map(a=>typeof a=="object"&&a.prepare?{...a,...a.prepare(this.result)}:a)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){let o=n.postcssPlugin,a=n.postcssVersion,i=this.result.processor.version,s=a.split("."),u=i.split(".");(s[0]!==u[0]||parseInt(s[1])>parseInt(u[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(o){console&&console.error&&console.error(o)}return e}prepareVisitors(){this.listeners={};let e=(r,n,o)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,o])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!L8[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!$8[n])if(typeof r[n]=="object")for(let o in r[n])o==="*"?e(r,n,r[n][o]):e(r,n+"-"+o.toLowerCase(),r[n][o]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(Kr(n))try{await n}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ye];){e[Ye]=!0;let r=[ec(e)];for(;r.length>0;){let n=this.visitTick(r);if(Kr(n))try{await n}catch(o){let a=r[r.length-1].node;throw this.handleError(o,a)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let o=e.nodes.map(a=>n(a,this.helpers));await Promise.all(o)}else await n(e,this.helpers)}catch(o){throw this.handleError(o)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return Kr(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=R8;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let o=new k8(r,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(Kr(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ye];)e[Ye]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||D8("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,o]of e){this.result.lastPlugin=n;let a;try{a=o(r,this.helpers)}catch(i){throw this.handleError(i,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Kr(a))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:o}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){let[i,s]=o[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=i;try{return s(n.toProxy(),this.helpers)}catch(u){throw this.handleError(u,n)}}if(r.iterator!==0){let i=r.iterator,s;for(;s=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!s[Ye]){s[Ye]=!0,e.push(ec(s));return}r.iterator=0,delete n.indexes[i]}let a=r.events;for(;r.eventIndex<a.length;){let i=a[r.eventIndex];if(r.eventIndex+=1,i===jr){n.nodes&&n.nodes.length&&(n[Ye]=!0,r.iterator=n.getIterator());return}else if(this.listeners[i]){r.visitors=this.listeners[i];return}}e.pop()}walkSync(e){e[Ye]=!0;let r=r0(e);for(let n of r)if(n===jr)e.nodes&&e.each(o=>{o[Ye]||this.walkSync(o)});else{let o=this.listeners[n];if(o&&this.visitSync(o,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Ar.registerPostcss=t=>{_i=t};var o0=Ar;Ar.default=Ar;_8.registerLazyResult(Ar);O8.registerLazyResult(Ar);let B8=Qf,z8=Hs;const H8=Fs;let F8=la,q8=t0,Ri=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=z8;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let o,a=F8;this.result=new H8(this._processor,o,this._opts),this.result.css=r;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let s=new B8(a,o,this._opts,r);if(s.isMap()){let[u,l]=s.generate();u&&(this.result.css=u),l&&(this.result.map=l)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||q8("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this._css}warnings(){return[]}};var U8=Ri;Ri.default=Ri;let V8=Bs,W8=o0,G8=U8,Y8=kn,xn=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(typeof n=="object"&&(n.parse||n.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new G8(this,e,r):new W8(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var X8=xn;xn.default=xn;Y8.registerProcessor(xn);V8.registerProcessor(xn);let a0=$s,i0=da,K8=or,J8=Ds,s0=fa,u0=Bs,Z8=Q4,Q8=pa,e5=o0,t5=Gf,r5=ca,n5=Hs,qs=X8,o5=Fs,l0=kn,c0=zs,a5=la,i5=e0;function ee(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new qs(t)}ee.plugin=function(e,r){let n=!1;function o(...i){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
270
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),o}return n.root}var Fs=_o;_o.default=_o;E8.registerParse(_o);let ki=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var t0=ki;ki.default=ki;let j8=t0,Pi=class{get content(){return this.css}constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new j8(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var qs=Pi;Pi.default=Pi;let Ql={};var r0=function(e){Ql[e]||(Ql[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let A8=or,O8=zs,k8=e0,P8=Fs,ec=qs,_8=Pn,R8=ca,{isClean:Ye,my:I8}=kn,D8=r0;const M8={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},L8={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},$8={Once:!0,postcssPlugin:!0,prepare:!0},Ar=0;function Jr(t){return typeof t=="object"&&typeof t.then=="function"}function n0(t){let e=!1,r=M8[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Ar,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Ar,r+"Exit"]:[r,r+"Exit"]}function tc(t){let e;return t.type==="document"?e=["Document",Ar,"DocumentExit"]:t.type==="root"?e=["Root",Ar,"RootExit"]:e=n0(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function _i(t){return t[Ye]=!1,t.nodes&&t.nodes.forEach(e=>_i(e)),t}let Ri={},Or=class o0{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,n){this.stringified=!1,this.processed=!1;let o;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))o=_i(r);else if(r instanceof o0||r instanceof ec)o=_i(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let a=P8;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{o=a(r,n)}catch(i){this.processed=!0,this.error=i}o&&!o[I8]&&A8.rebuild(o)}this.result=new ec(e,o,n),this.helpers={...Ri,postcss:Ri,result:this.result},this.plugins=this.processor.plugins.map(a=>typeof a=="object"&&a.prepare?{...a,...a.prepare(this.result)}:a)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){let o=n.postcssPlugin,a=n.postcssVersion,i=this.result.processor.version,s=a.split("."),u=i.split(".");(s[0]!==u[0]||parseInt(s[1])>parseInt(u[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(o){console&&console.error&&console.error(o)}return e}prepareVisitors(){this.listeners={};let e=(r,n,o)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,o])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!L8[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!$8[n])if(typeof r[n]=="object")for(let o in r[n])o==="*"?e(r,n,r[n][o]):e(r,n+"-"+o.toLowerCase(),r[n][o]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(Jr(n))try{await n}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ye];){e[Ye]=!0;let r=[tc(e)];for(;r.length>0;){let n=this.visitTick(r);if(Jr(n))try{await n}catch(o){let a=r[r.length-1].node;throw this.handleError(o,a)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let o=e.nodes.map(a=>n(a,this.helpers));await Promise.all(o)}else await n(e,this.helpers)}catch(o){throw this.handleError(o)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return Jr(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=R8;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let o=new k8(r,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(Jr(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ye];)e[Ye]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||D8("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,o]of e){this.result.lastPlugin=n;let a;try{a=o(r,this.helpers)}catch(i){throw this.handleError(i,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Jr(a))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:o}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){let[i,s]=o[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=i;try{return s(n.toProxy(),this.helpers)}catch(u){throw this.handleError(u,n)}}if(r.iterator!==0){let i=r.iterator,s;for(;s=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!s[Ye]){s[Ye]=!0,e.push(tc(s));return}r.iterator=0,delete n.indexes[i]}let a=r.events;for(;r.eventIndex<a.length;){let i=a[r.eventIndex];if(r.eventIndex+=1,i===Ar){n.nodes&&n.nodes.length&&(n[Ye]=!0,r.iterator=n.getIterator());return}else if(this.listeners[i]){r.visitors=this.listeners[i];return}}e.pop()}walkSync(e){e[Ye]=!0;let r=n0(e);for(let n of r)if(n===Ar)e.nodes&&e.each(o=>{o[Ye]||this.walkSync(o)});else{let o=this.listeners[n];if(o&&this.visitSync(o,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Or.registerPostcss=t=>{Ri=t};var a0=Or;Or.default=Or;_8.registerLazyResult(Or);O8.registerLazyResult(Or);let B8=e0,z8=Fs;const H8=qs;let F8=ca,q8=r0,Ii=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=z8;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let o,a=F8;this.result=new H8(this._processor,o,this._opts),this.result.css=r;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let s=new B8(a,o,this._opts,r);if(s.isMap()){let[u,l]=s.generate();u&&(this.result.css=u),l&&(this.result.map=l)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||q8("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this._css}warnings(){return[]}};var U8=Ii;Ii.default=Ii;let V8=zs,W8=a0,G8=U8,Y8=Pn,wn=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(typeof n=="object"&&(n.parse||n.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new G8(this,e,r):new W8(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var X8=wn;wn.default=wn;Y8.registerProcessor(wn);V8.registerProcessor(wn);let i0=Bs,s0=fa,K8=or,J8=Ms,u0=pa,l0=zs,Z8=Q4,Q8=ha,e5=a0,t5=Yf,r5=da,n5=Fs,Us=X8,o5=qs,c0=Pn,d0=Hs,a5=ca,i5=t0;function ee(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Us(t)}ee.plugin=function(e,r){let n=!1;function o(...i){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
271
271
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
272
- https://www.w3ctech.com/topic/2226`));let s=r(...i);return s.postcssPlugin=e,s.postcssVersion=new qs().version,s}let a;return Object.defineProperty(o,"postcss",{get(){return a||(a=o()),a}}),o.process=function(i,s,u){return ee([o(u)]).process(i,s)},o};ee.stringify=a5;ee.parse=n5;ee.fromJSON=Z8;ee.list=t5;ee.comment=t=>new i0(t);ee.atRule=t=>new a0(t);ee.decl=t=>new s0(t);ee.rule=t=>new c0(t);ee.root=t=>new l0(t);ee.document=t=>new u0(t);ee.CssSyntaxError=J8;ee.Declaration=s0;ee.Container=K8;ee.Processor=qs;ee.Document=u0;ee.Comment=i0;ee.Warning=i5;ee.AtRule=a0;ee.Result=o5;ee.Input=Q8;ee.Rule=c0;ee.Root=l0;ee.Node=r5;e5.registerPostcss(ee);var s5=ee;ee.default=ee;const u5=Qd,tc=n4,{isPlainObject:l5}=Rs,rc=v4,c5=y4,{parse:d5}=s5,f5=["img","audio","video","picture","svg","object","map","iframe","embed"],p5=["script","style"];function fr(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function pt(t,e){return{}.hasOwnProperty.call(t,e)}function nc(t,e){const r=[];return fr(t,function(n){e(n)&&r.push(n)}),r}function h5(t){for(const e in t)if(pt(t,e))return!1;return!0}function m5(t){return t.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var g5=wn;const b5=/^[^\0\t\n\f\r /<=>]+$/;function wn(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",o="";function a(N,O){const A=this;this.tag=N,this.attribs=O||{},this.tagPosition=n.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(m.length){const _=m[m.length-1];_.text+=A.text}},this.updateParentNodeMediaChildren=function(){m.length&&f5.includes(this.tag)&&m[m.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},wn.defaults,e),e.parser=Object.assign({},v5,e.parser);const i=function(N){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(N)>-1};p5.forEach(function(N){i(N)&&!e.allowVulnerableTags&&console.warn(`
272
+ https://www.w3ctech.com/topic/2226`));let s=r(...i);return s.postcssPlugin=e,s.postcssVersion=new Us().version,s}let a;return Object.defineProperty(o,"postcss",{get(){return a||(a=o()),a}}),o.process=function(i,s,u){return ee([o(u)]).process(i,s)},o};ee.stringify=a5;ee.parse=n5;ee.fromJSON=Z8;ee.list=t5;ee.comment=t=>new s0(t);ee.atRule=t=>new i0(t);ee.decl=t=>new u0(t);ee.rule=t=>new d0(t);ee.root=t=>new c0(t);ee.document=t=>new l0(t);ee.CssSyntaxError=J8;ee.Declaration=u0;ee.Container=K8;ee.Processor=Us;ee.Document=l0;ee.Comment=s0;ee.Warning=i5;ee.AtRule=i0;ee.Result=o5;ee.Input=Q8;ee.Rule=d0;ee.Root=c0;ee.Node=r5;e5.registerPostcss(ee);var s5=ee;ee.default=ee;const u5=ef,rc=n4,{isPlainObject:l5}=Is,nc=v4,c5=y4,{parse:d5}=s5,f5=["img","audio","video","picture","svg","object","map","iframe","embed"],p5=["script","style"];function fr(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function pt(t,e){return{}.hasOwnProperty.call(t,e)}function oc(t,e){const r=[];return fr(t,function(n){e(n)&&r.push(n)}),r}function h5(t){for(const e in t)if(pt(t,e))return!1;return!0}function m5(t){return t.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var g5=Sn;const b5=/^[^\0\t\n\f\r /<=>]+$/;function Sn(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",o="";function a(N,O){const A=this;this.tag=N,this.attribs=O||{},this.tagPosition=n.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(m.length){const _=m[m.length-1];_.text+=A.text}},this.updateParentNodeMediaChildren=function(){m.length&&f5.includes(this.tag)&&m[m.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},Sn.defaults,e),e.parser=Object.assign({},v5,e.parser);const i=function(N){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(N)>-1};p5.forEach(function(N){i(N)&&!e.allowVulnerableTags&&console.warn(`
273
273
 
274
274
  ⚠️ Your \`allowedTags\` option includes, \`${N}\`, which is inherently
275
275
  vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
276
276
  Or, to disable this warning, add the \`allowVulnerableTags\` option
277
277
  and ensure you are accounting for this risk.
278
278
 
279
- `)});const s=e.nonTextTags||["script","style","textarea","option"];let u,l;e.allowedAttributes&&(u={},l={},fr(e.allowedAttributes,function(N,O){u[O]=[];const A=[];N.forEach(function(_){typeof _=="string"&&_.indexOf("*")>=0?A.push(tc(_).replace(/\\\*/g,".*")):u[O].push(_)}),A.length&&(l[O]=new RegExp("^("+A.join("|")+")$"))}));const c={},h={},f={};fr(e.allowedClasses,function(N,O){if(u&&(pt(u,O)||(u[O]=[]),u[O].push("class")),c[O]=N,Array.isArray(N)){const A=[];c[O]=[],f[O]=[],N.forEach(function(_){typeof _=="string"&&_.indexOf("*")>=0?A.push(tc(_).replace(/\\\*/g,".*")):_ instanceof RegExp?f[O].push(_):c[O].push(_)}),A.length&&(h[O]=new RegExp("^("+A.join("|")+")$"))}});const d={};let g;fr(e.transformTags,function(N,O){let A;typeof N=="function"?A=N:typeof N=="string"&&(A=wn.simpleTransform(N)),O==="*"?g=A:d[O]=A});let b,m,v,x,S,C,j=!1;R();const k=new u5.Parser({onopentag:function(N,O){if(e.onOpenTag&&e.onOpenTag(N,O),e.enforceHtmlBoundary&&N==="html"&&R(),S){C++;return}const A=new a(N,O);m.push(A);let _=!1;const L=!!A.text;let q;if(pt(d,N)&&(q=d[N](N,O),A.attribs=O=q.attribs,q.text!==void 0&&(A.innerText=q.text),N!==q.tagName&&(A.name=N=q.tagName,x[b]=q.tagName)),g&&(q=g(N,O),A.attribs=O=q.attribs,N!==q.tagName&&(A.name=N=q.tagName,x[b]=q.tagName)),(!i(N)||e.disallowedTagsMode==="recursiveEscape"&&!h5(v)||e.nestingLimit!=null&&b>=e.nestingLimit)&&(_=!0,v[b]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&s.indexOf(N)!==-1&&(S=!0,C=1)),b++,_){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(A.innerText&&!L){const B=M(A.innerText);e.textFilter?n+=e.textFilter(B,N):n+=B,j=!0}return}o=n,n=""}n+="<"+N,N==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(A.innerText=""),_&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?fr(O,function(B,z){n+=" "+z+'="'+M(B||"",!0)+'"'}):(!u||pt(u,N)||u["*"])&&fr(O,function(B,z){if(!b5.test(z)){delete A.attribs[z];return}if(B===""&&!e.allowedEmptyAttributes.includes(z)&&(e.nonBooleanAttributes.includes(z)||e.nonBooleanAttributes.includes("*"))){delete A.attribs[z];return}let he=!1;if(!u||pt(u,N)&&u[N].indexOf(z)!==-1||u["*"]&&u["*"].indexOf(z)!==-1||pt(l,N)&&l[N].test(z)||l["*"]&&l["*"].test(z))he=!0;else if(u&&u[N]){for(const X of u[N])if(l5(X)&&X.name&&X.name===z){he=!0;let H="";if(X.multiple===!0){const Ne=B.split(" ");for(const ye of Ne)X.values.indexOf(ye)!==-1&&(H===""?H=ye:H+=" "+ye)}else X.values.indexOf(B)>=0&&(H=B);B=H}}if(he){if(e.allowedSchemesAppliedToAttributes.indexOf(z)!==-1&&D(N,B)){delete A.attribs[z];return}if(N==="script"&&z==="src"){let X=!0;try{const H=$(B);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Ne=(e.allowedScriptHostnames||[]).find(function(ge){return ge===H.url.hostname}),ye=(e.allowedScriptDomains||[]).find(function(ge){return H.url.hostname===ge||H.url.hostname.endsWith(`.${ge}`)});X=Ne||ye}}catch{X=!1}if(!X){delete A.attribs[z];return}}if(N==="iframe"&&z==="src"){let X=!0;try{const H=$(B);if(H.isRelativeUrl)X=pt(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Ne=(e.allowedIframeHostnames||[]).find(function(ge){return ge===H.url.hostname}),ye=(e.allowedIframeDomains||[]).find(function(ge){return H.url.hostname===ge||H.url.hostname.endsWith(`.${ge}`)});X=Ne||ye}}catch{X=!1}if(!X){delete A.attribs[z];return}}if(z==="srcset")try{let X=c5(B);if(X.forEach(function(H){D("srcset",H.url)&&(H.evil=!0)}),X=nc(X,function(H){return!H.evil}),X.length)B=m5(nc(X,function(H){return!H.evil})),A.attribs[z]=B;else{delete A.attribs[z];return}}catch{delete A.attribs[z];return}if(z==="class"){const X=c[N],H=c["*"],Ne=h[N],ye=f[N],ge=f["*"],We=h["*"],lt=[Ne,We].concat(ye,ge).filter(function(Ge){return Ge});if(X&&H?B=I(B,rc(X,H),lt):B=I(B,X||H,lt),!B.length){delete A.attribs[z];return}}if(z==="style"){if(e.parseStyleAttributes)try{const X=d5(N+" {"+B+"}",{map:!1}),H=E(X,e.allowedStyles);if(B=T(H),B.length===0){delete A.attribs[z];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+N+" {"+B+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete A.attribs[z];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+z,B&&B.length?n+='="'+M(B,!0)+'"':e.allowedEmptyAttributes.includes(z)&&(n+='=""')}else delete A.attribs[z]}),e.selfClosing.indexOf(N)!==-1?n+=" />":(n+=">",A.innerText&&!L&&!e.textFilter&&(n+=M(A.innerText),j=!0)),_&&(n=o+M(n),o=""),A.openingTagLength=n.length-A.tagPosition},ontext:function(N){if(S)return;const O=m[m.length-1];let A;if(O&&(A=O.tag,N=O.innerText!==void 0?O.innerText:N),e.disallowedTagsMode==="completelyDiscard"&&!i(A))N="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(A==="script"||A==="style"))n+=N;else if(!j){const _=M(N,!1);e.textFilter?n+=e.textFilter(_,A):n+=_}if(m.length){const _=m[m.length-1];_.text+=N}},onclosetag:function(N,O){if(e.onCloseTag&&e.onCloseTag(N,O),S)if(C--,!C)S=!1;else return;const A=m.pop();if(!A)return;if(A.tag!==N){m.push(A);return}S=e.enforceHtmlBoundary?N==="html":!1,b--;const _=v[b];if(_){if(delete v[b],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){A.updateParentNodeText();return}o=n,n=""}if(x[b]&&(N=x[b],delete x[b]),e.exclusiveFilter){const L=e.exclusiveFilter(A);if(L==="excludeTag"){_&&(n=o,o=""),n=n.substring(0,A.tagPosition)+n.substring(A.tagPosition+A.openingTagLength);return}else if(L){n=n.substring(0,A.tagPosition);return}}if(A.updateParentNodeMediaChildren(),A.updateParentNodeText(),e.selfClosing.indexOf(N)!==-1||O&&!i(N)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){_&&(n=o,o="");return}n+="</"+N+">",_&&(n=o+M(n),o=""),j=!1}},e.parser);return k.write(t),k.end(),n;function R(){n="",b=0,m=[],v={},x={},S=!1,C=0}function M(N,O){return typeof N!="string"&&(N=N+""),e.parser.decodeEntities&&(N=N.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(N=N.replace(/"/g,"&quot;"))),N=N.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(N=N.replace(/"/g,"&quot;")),N}function D(N,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const L=O.indexOf("<!--");if(L===-1)break;const q=O.indexOf("-->",L+4);if(q===-1)break;O=O.substring(0,L)+O.substring(q+3)}const A=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!A)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const _=A[1].toLowerCase();return pt(e.allowedSchemesByTag,N)?e.allowedSchemesByTag[N].indexOf(_)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(_)===-1}function $(N){if(N=N.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),N.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let L=0;L<100;L++)O+=`/${L}`;const A=new URL(N,O);return{isRelativeUrl:A&&A.hostname==="relative-site"&&A.protocol==="relative:",url:A}}function E(N,O){if(!O)return N;const A=N.nodes[0];let _;return O[A.selector]&&O["*"]?_=rc(O[A.selector],O["*"]):_=O[A.selector]||O["*"],_&&(N.nodes[0].nodes=A.nodes.reduce(P(_),[])),N}function T(N){return N.nodes[0].nodes.reduce(function(O,A){return O.push(`${A.prop}:${A.value}${A.important?" !important":""}`),O},[]).join(";")}function P(N){return function(O,A){return pt(N,A.prop)&&N[A.prop].some(function(L){return L.test(A.value)})&&O.push(A),O}}function I(N,O,A){return O?(N=N.split(/\s+/),N.filter(function(_){return O.indexOf(_)!==-1||A.some(function(L){return L.test(_)})}).join(" ")):N}}const v5={decodeEntities:!0};wn.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};wn.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,o){let a;if(r)for(a in e)o[a]=e[a];else o=e;return{tagName:t,attribs:o}}};const d0=zo(g5),y5=[{command:"bold",icon:nh,label:"Bold"},{command:"italic",icon:ch,label:"Italic"},{command:"underline",icon:xh,label:"Underline"},{command:"strikeThrough",icon:vh,label:"Strikethrough"},{command:"insertUnorderedList",icon:fh,label:"Bullet List"},{command:"insertOrderedList",icon:dh,label:"Numbered List"}],x5={allowedTags:["b","i","u","s","strong","em","ul","ol","li","br","p","a","span"],allowedAttributes:{a:["href","target"],span:["style"]},allowedStyles:{span:{"text-decoration":[/^line-through$/]}}},w5=({label:t,value:e,onChange:r})=>{const n=w.useRef(null),[o,a]=w.useState(!1),[i,s]=w.useState(""),u=w.useRef(null);w.useEffect(()=>{n.current&&n.current.innerHTML!==e&&(n.current.innerHTML=e||"")},[]);const l=m=>{var v;document.execCommand(m,!1,null),(v=n.current)==null||v.focus(),c()},c=()=>{if(n.current){const m=n.current.innerHTML,v=d0(m,x5);r(v)}},h=()=>{const m=window.getSelection();m&&m.rangeCount>0&&(u.current=m.getRangeAt(0))},f=()=>{if(u.current){const m=window.getSelection();m==null||m.removeAllRanges(),m==null||m.addRange(u.current)}},d=()=>{h(),a(!0)},g=()=>{var m;if(i){f();let v=i.trim();v&&!v.match(/^https?:\/\//i)&&(v="https://"+v);try{new URL(v),document.execCommand("createLink",!1,v),c()}catch{}}a(!1),s(""),(m=n.current)==null||m.focus()},b=m=>{try{return document.queryCommandState(m)}catch{return!1}};return p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("div",{className:"flex items-center gap-0.5 p-1 bg-muted rounded-t border border-input border-b-0",children:p.jsxs(fn,{children:[y5.map(({command:m,icon:v,label:x})=>p.jsxs(Sr,{children:[p.jsx(Cr,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:S=>{S.preventDefault(),l(m)},className:`p-1.5 rounded hover:bg-background transition-colors ${b(m)?"bg-background text-primary":"text-muted-foreground"}`,children:p.jsx(v,{className:"h-3.5 w-3.5"})})}),p.jsx(Kt,{side:"top",children:p.jsx("p",{children:x})})]},m)),p.jsx("div",{className:"w-px h-4 bg-border mx-1"}),p.jsxs(Sr,{children:[p.jsx(Cr,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:m=>{m.preventDefault(),d()},className:"p-1.5 rounded hover:bg-background transition-colors text-muted-foreground",children:p.jsx(Ui,{className:"h-3.5 w-3.5"})})}),p.jsx(Kt,{side:"top",children:p.jsx("p",{children:"Insert Link"})})]})]})}),p.jsx("div",{ref:n,contentEditable:!0,onInput:c,onBlur:c,className:"min-h-[80px] max-h-[200px] overflow-y-auto p-2 text-xs rounded-b border border-input bg-background focus:outline-none focus:ring-1 focus:ring-ring prose prose-sm max-w-none [&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline",style:{wordBreak:"break-word"}}),o&&p.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:p.jsxs("div",{className:"bg-background p-4 rounded-lg shadow-lg w-80 space-y-3",children:[p.jsx("h4",{className:"text-sm font-medium",children:"Insert Link"}),p.jsx("input",{type:"url",value:i,onChange:m=>s(m.target.value),placeholder:"https://example.com",className:"w-full px-3 py-2 text-sm rounded border border-input bg-background",autoFocus:!0,onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),g()),m.key==="Escape"&&(a(!1),s(""))}}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx("button",{onClick:()=>{a(!1),s("")},className:"px-3 py-1.5 text-xs rounded border border-input hover:bg-muted",children:"Cancel"}),p.jsx("button",{onClick:g,className:"px-3 py-1.5 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90",children:"Insert"})]})]})})]})},S5={allowedTags:["b","i","u","s","strong","em","ul","ol","li","br","p","a","span"],allowedAttributes:{a:["href","target"],span:["style"]},allowedStyles:{span:{"text-decoration":[/^line-through$/]}}},Us=({text:t="",html:e,fontSize:r={desktop:16},fontWeight:n="400",fontFamily:o="inherit",lineHeight:a={desktop:150},letterSpacing:i={desktop:0},textAlign:s="left",color:u="#000000",margin:l={top:0,right:0,bottom:0,left:0},textDecoration:c="none",textTransform:h="none",opacity:f=100})=>{const d=Ce(),g=Sn();let b,m,v;try{const{connectors:D,events:$}=ne(E=>({events:E.events}));b=D.connect,m=D.drag,v=$.selected}catch{}const x=Co(t,g),S=D=>[D][d]||[D].desktop,C=typeof S("margin")=="object"?`${S("margin").top}px ${S("margin").right}px ${S("margin").bottom}px ${S("margin").left}px`:`${S("margin")}px`,j=gt(r,d,16),k=gt(a,d,150)/100,R=gt(i,d,0),M=/<[^>]+>/.test(x);return p.jsx("div",{ref:D=>D&&b&&m&&b(m(D)),className:`cursor-move ${v?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${j}px`,fontWeight:n,fontFamily:o,lineHeight:k,letterSpacing:`${R}px`,textAlign:s,color:u,margin:C,textDecoration:c,textTransform:h,opacity:f/100},children:e||M?p.jsx("div",{dangerouslySetInnerHTML:{__html:d0(Co(e||x,g),S5)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):p.jsx("p",{children:x})})},C5=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"&&!("desktop"in e.margin)?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsx(V,{title:"Content",defaultOpen:!0,children:p.jsx(w5,{label:"Text",value:e.html??e.text,onChange:n=>t(o=>{o.html=null,o.text=n})})}),p.jsxs(V,{title:"Typography",defaultOpen:!0,children:[p.jsx(J,{label:"Font",value:e.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"Menlo, monospace",label:"Mono"},{value:"system-ui",label:"System"}],onChange:n=>t(o=>o.fontFamily=n)}),p.jsx(wo,{label:"Size",values:e.fontSize,onChange:n=>t(o=>o.fontSize=n),min:8,max:120,defaultValue:16}),p.jsx(J,{label:"Weight",value:e.fontWeight||"400",options:[{value:"300",label:"Light"},{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"}],onChange:n=>t(o=>o.fontWeight=n)}),p.jsx(So,{label:"Line Height",values:e.lineHeight,onChange:n=>t(o=>o.lineHeight=n),min:80,max:250,unit:"%",defaultValue:150}),p.jsx(wo,{label:"Letter Spacing",values:e.letterSpacing,onChange:n=>t(o=>o.letterSpacing=n),min:-5,max:20,defaultValue:0}),p.jsx(vt,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Bi,{className:"h-3 w-3"})},{value:"center",label:p.jsx($i,{className:"h-3 w-3"})},{value:"right",label:p.jsx(zi,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)}),p.jsx(J,{label:"Transform",value:e.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:n=>t(o=>o.textTransform=n)}),p.jsx(J,{label:"Decoration",value:e.textDecoration||"none",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"},{value:"line-through",label:"Strikethrough"}],onChange:n=>t(o=>o.textDecoration=n)})]}),p.jsxs(V,{title:"Color",defaultOpen:!1,children:[p.jsx(Qe,{label:"Text Color",value:e.color||"#000000",onChange:n=>t(o=>o.color=n)}),p.jsx(So,{label:"Opacity",values:e.opacity,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})}),p.jsx(V,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(Zd,{})})]})};Us.craft={displayName:"Text",props:{text:"Edit me",fontSize:{desktop:16},fontWeight:"400",fontFamily:"inherit",lineHeight:{desktop:150},letterSpacing:{desktop:0},textAlign:"left",color:"#000000",margin:{desktop:{top:0,right:0,bottom:0,left:0}},textDecoration:"none",textTransform:"none",opacity:{desktop:100}},related:{settings:C5}};const nn={1:{desktop:48,small:42,tablet:36,mobile:28},2:{desktop:36,small:32,tablet:28,mobile:24},3:{desktop:28,small:26,tablet:24,mobile:20},4:{desktop:22,small:20,tablet:18,mobile:16}},Vs=({text:t="Heading",level:e=2,textAlign:r="left",color:n="#000000",fontWeight:o="700",fontFamily:a="inherit",fontSize:i="auto",lineHeight:s={desktop:120},letterSpacing:u={desktop:-.5},margin:l={top:0,right:0,bottom:16,left:0},textTransform:c="none",opacity:h={desktop:100}})=>{var M,D,$;const f=Ce(),d=Sn();let g,b,m;try{const{connectors:E,events:T}=ne(P=>({events:P.events}));g=E.connect,b=E.drag,m=T.selected}catch{}const v=Co(t,d),x=`h${e}`;let S;i==="auto"?S=((M=nn[e])==null?void 0:M[f])||((D=nn[e])==null?void 0:D.desktop)||36:S=gt(i,f,(($=nn[e])==null?void 0:$.desktop)||36);const C=gt(s,f,120)/100,j=gt(u,f,-.5),k=gt(h,f,100),R=typeof l[f]=="object"?`${l[f].top}px ${l[f].right}px ${l[f].bottom}px ${l[f].left}px`:`${l[f]}px`;return p.jsx(x,{ref:E=>E&&g&&b&&g(b(E)),className:`cursor-move ${m?"ring-2 ring-primary ring-offset-2":""}`,style:{textAlign:r,color:n,fontWeight:o,fontFamily:a,fontSize:`${S}px`,lineHeight:C,letterSpacing:`${j}px`,margin:R,textTransform:c,opacity:k/100},children:v})},E5=()=>{var a;const t=Ce(),{actions:{setProp:e},props:r}=ne(i=>({props:i.data.props})),n=typeof r.margin=="object"&&!("desktop"in r.margin)?r.margin:{top:0,right:0,bottom:16,left:0},o=()=>{var i;return r.fontSize==="auto"?((i=nn[r.level||2])==null?void 0:i[t])||36:gt(r.fontSize,t,36)};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Content",defaultOpen:!0,children:[p.jsx($t,{label:"Text",value:r.text,onChange:i=>e(s=>s.text=i)}),p.jsx(vt,{label:"Level",value:r.level||2,options:[{value:1,label:"H1"},{value:2,label:"H2"},{value:3,label:"H3"},{value:4,label:"H4"}],onChange:i=>e(s=>{s.level=i,s.fontSize})})]}),p.jsxs(V,{title:"Typography",defaultOpen:!0,children:[p.jsx(J,{label:"Font",value:r.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"system-ui",label:"System"}],onChange:i=>e(s=>s.fontFamily=i)}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:"Size Mode"}),p.jsx("button",{onClick:()=>e(i=>i.fontSize=i.fontSize==="auto"?{desktop:o()}:"auto"),className:`text-xs px-2 py-0.5 rounded ${r.fontSize==="auto"?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:r.fontSize==="auto"?"Auto (Responsive)":"Custom"})]}),r.fontSize!=="auto"&&p.jsx(wo,{label:"Size",values:r.fontSize,onChange:i=>e(s=>s.fontSize=i),min:12,max:120,defaultValue:((a=nn[r.level||2])==null?void 0:a.desktop)||36})]}),p.jsx(J,{label:"Weight",value:r.fontWeight||"700",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"},{value:"900",label:"Black"}],onChange:i=>e(s=>s.fontWeight=i)}),p.jsx(So,{label:"Line Height",values:r.lineHeight,onChange:i=>e(s=>s.lineHeight=i),min:80,max:200,unit:"%",defaultValue:120}),p.jsx(wo,{label:"Letter Spacing",values:r.letterSpacing,onChange:i=>e(s=>s.letterSpacing=i),min:-5,max:20,defaultValue:-.5}),p.jsx(vt,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:p.jsx(Bi,{className:"h-3 w-3"})},{value:"center",label:p.jsx($i,{className:"h-3 w-3"})},{value:"right",label:p.jsx(zi,{className:"h-3 w-3"})}],onChange:i=>e(s=>s.textAlign=i)}),p.jsx(J,{label:"Transform",value:r.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:i=>e(s=>s.textTransform=i)})]}),p.jsxs(V,{title:"Color",defaultOpen:!1,children:[p.jsx(Qe,{label:"Text Color",value:r.color||"#000000",onChange:i=>e(s=>s.color=i)}),p.jsx(So,{label:"Opacity",values:r.opacity,onChange:i=>e(s=>s.opacity=i),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:n,onChange:i=>e(s=>s.margin={...s.margin,...i})})}),p.jsx(V,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(Zd,{})})]})};Vs.craft={displayName:"Heading",props:{text:"Heading",level:2,textAlign:"left",color:"#000000",fontWeight:"700",fontFamily:"inherit",fontSize:"auto",lineHeight:{desktop:120},letterSpacing:{desktop:-.5},margin:{top:0,right:0,bottom:16,left:0},textTransform:"none",opacity:{desktop:100}},related:{settings:E5}};const Ws=({src:t="https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:e="Image",width:r="full",height:n="auto",maxWidth:o="none",objectFit:a="cover",borderRadius:i=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const c=Ce();let h,f,d;try{const{connectors:b,events:m}=ne(v=>({events:v.events}));h=b.connect,f=b.drag,d=m.selected}catch{}const g=typeof s[c]=="object"?`${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px`:`${s[c]}px`;return p.jsx("img",{ref:b=>b&&h&&f&&h(f(b)),src:t,alt:e,className:`cursor-move ${d?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:a,borderRadius:`${i}px`,margin:g,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},N5=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Source",defaultOpen:!0,children:[p.jsx($t,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx($t,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(V,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Width",value:typeof e.width=="number"?"custom":e.width,options:[{value:"full",label:"Full Width"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(pe,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(J,{label:"Height",value:typeof e.height=="number"?"custom":e.height,options:[{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(pe,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(J,{label:"Object Fit",value:e.objectFit||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"}],onChange:n=>t(o=>o.objectFit=n)})]}),p.jsxs(V,{title:"Style",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(oa,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 4px 12px rgba(0,0,0,0.1)",label:"Small"},{value:"0 8px 24px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 16px 48px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Ws.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100,boxShadow:"none"},related:{settings:N5}};const Gs=({color:t="#e5e5e5",height:e=1,width:r="full",style:n="solid",margin:o={top:16,right:0,bottom:16,left:0},opacity:a=100})=>{const i=Ce();let s,u,l;try{const{connectors:h,events:f}=ne(d=>({events:d.events}));s=h.connect,u=h.drag,l=f.selected}catch{}const c=typeof o[i]=="object"?`${o[i].top}px ${o[i].right}px ${o[i].bottom}px ${o[i].left}px`:`${o[i]}px`;return p.jsx("hr",{ref:h=>h&&s&&u&&(s==null?void 0:s(u==null?void 0:u(h))),className:`cursor-move border-0 ${l?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":`${r}%`,height:`${e}px`,backgroundColor:t,margin:c,opacity:a/100,borderStyle:n,borderWidth:n==="solid"?0:`${e}px`,borderColor:t}})},T5=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:16,right:0,bottom:16,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Style",defaultOpen:!0,children:[p.jsx(J,{label:"Style",value:e.style||"solid",options:[{value:"solid",label:"Solid"},{value:"dashed",label:"Dashed"},{value:"dotted",label:"Dotted"}],onChange:n=>t(o=>o.style=n)}),p.jsx(Qe,{label:"Color",value:e.color||"#e5e5e5",onChange:n=>t(o=>o.color=n)}),p.jsx(pe,{unit:"px",label:"Thickness",value:e.height||1,onChange:n=>t(o=>o.height=n),min:1,max:20}),p.jsx(J,{label:"Width",value:e.width==="full"?"full":"custom",options:[{value:"full",label:"Full Width"},{value:"custom",label:"Custom %"}],onChange:n=>t(o=>o.width=n==="full"?"full":50)}),e.width!=="full"&&p.jsx(pe,{label:"Width %",value:e.width,onChange:n=>t(o=>o.width=n),min:10,max:100,unit:"%"})]}),p.jsx(V,{title:"Spacing",defaultOpen:!0,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Gs.craft={displayName:"Divider",props:{color:"#e5e5e5",height:1,width:"full",style:"solid",margin:{top:16,right:0,bottom:16,left:0},opacity:100},related:{settings:T5}};const Ys=({height:t=40,responsive:e=!1,mobileHeight:r=20})=>{let n,o,a;try{const{connectors:i,events:s}=ne(u=>({events:u.events}));n=i.connect,o=i.drag,a=s.selected}catch{}return p.jsxs("div",{ref:i=>i&&n&&o&&n(o(i)),className:`cursor-move w-full relative group ${a?"ring-2 ring-primary ring-offset-2":""}`,style:{height:`${t}px`},children:[p.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:p.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-secondary/80 px-2 py-1 rounded",children:[p.jsx("span",{children:"↕"}),p.jsxs("span",{children:[t,"px"]})]})}),p.jsx("div",{className:"absolute inset-x-0 top-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"}),p.jsx("div",{className:"absolute inset-x-0 bottom-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"})]})},j5=()=>{const{actions:{setProp:t},props:e}=ne(r=>({props:r.data.props}));return p.jsx("div",{className:"space-y-3",children:p.jsxs(V,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Preset",value:"custom",options:[{value:"xs",label:"XS (8px)"},{value:"sm",label:"Small (16px)"},{value:"md",label:"Medium (32px)"},{value:"lg",label:"Large (64px)"},{value:"xl",label:"XL (96px)"},{value:"custom",label:"Custom"}],onChange:r=>{const n={xs:8,sm:16,md:32,lg:64,xl:96};n[r]&&t(o=>o.height=n[r])}}),p.jsx(pe,{unit:"px",label:"Height",value:e.height||40,onChange:r=>t(n=>n.height=r),min:4,max:300})]})})};Ys.craft={displayName:"Spacer",props:{height:40,responsive:!1,mobileHeight:20},related:{settings:j5}};const A5=window.location.href.includes("localhost")?"http://localhost:5000/api":"https://api.myracereel.com/api";function O5(){const t=localStorage.getItem("tokens");if(t){const{accessToken:e}=JSON.parse(t);return{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}return{"Content-Type":"application/json"}}async function k5(t,e={}){const r=await fetch(`${A5}${t}`,{...e,headers:{...O5(),...e.headers}}),n=await r.json();if(!r.ok)throw new Error(n.message||"Request failed");return n}async function P5(t,e){return(await k5(`/videos/${t}/${e||""}`)).data}function _5(t){const e=y.useRef({value:t,previous:t});return y.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var ha="Checkbox",[R5]=tr(ha),[I5,Xs]=R5(ha);function D5(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:o,disabled:a,form:i,name:s,onCheckedChange:u,required:l,value:c="on",internal_do_not_use_render:h}=t,[f,d]=zr({prop:r,defaultProp:o??!1,onChange:u,caller:ha}),[g,b]=y.useState(null),[m,v]=y.useState(null),x=y.useRef(!1),S=g?!!i||!!g.closest("form"):!0,C={checked:f,disabled:a,setChecked:d,control:g,setControl:b,name:s,form:i,value:c,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:_t(o)?!1:o,isFormControl:S,bubbleInput:m,setBubbleInput:v};return p.jsx(I5,{scope:e,...C,children:M5(h)?h(C):n})}var f0="CheckboxTrigger",p0=y.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},o)=>{const{control:a,value:i,disabled:s,checked:u,required:l,setControl:c,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:d,bubbleInput:g}=Xs(f0,t),b=we(o,c),m=y.useRef(u);return y.useEffect(()=>{const v=a==null?void 0:a.form;if(v){const x=()=>h(m.current);return v.addEventListener("reset",x),()=>v.removeEventListener("reset",x)}},[a,h]),p.jsx(me.button,{type:"button",role:"checkbox","aria-checked":_t(u)?"mixed":u,"aria-required":l,"data-state":v0(u),"data-disabled":s?"":void 0,disabled:s,value:i,...n,ref:b,onKeyDown:ue(e,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:ue(r,v=>{h(x=>_t(x)?!0:!x),g&&d&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})})});p0.displayName=f0;var Ks=y.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:i,disabled:s,value:u,onCheckedChange:l,form:c,...h}=t;return p.jsx(D5,{__scopeCheckbox:r,checked:o,defaultChecked:a,disabled:s,required:i,onCheckedChange:l,name:n,form:c,value:u,internal_do_not_use_render:({isFormControl:f})=>p.jsxs(p.Fragment,{children:[p.jsx(p0,{...h,ref:e,__scopeCheckbox:r}),f&&p.jsx(b0,{__scopeCheckbox:r})]})})});Ks.displayName=ha;var h0="CheckboxIndicator",m0=y.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...o}=t,a=Xs(h0,r);return p.jsx(rr,{present:n||_t(a.checked)||a.checked===!0,children:p.jsx(me.span,{"data-state":v0(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:e,style:{pointerEvents:"none",...t.style}})})});m0.displayName=h0;var g0="CheckboxBubbleInput",b0=y.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:s,disabled:u,name:l,value:c,form:h,bubbleInput:f,setBubbleInput:d}=Xs(g0,t),g=we(r,d),b=_5(a),m=_d(n);y.useEffect(()=>{const x=f;if(!x)return;const S=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(S,"checked").set,k=!o.current;if(b!==a&&j){const R=new Event("click",{bubbles:k});x.indeterminate=_t(a),j.call(x,_t(a)?!1:a),x.dispatchEvent(R)}},[f,b,a,o]);const v=y.useRef(_t(a)?!1:a);return p.jsx(me.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??v.current,required:s,disabled:u,name:l,value:c,form:h,...e,tabIndex:-1,ref:g,style:{...e.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});b0.displayName=g0;function M5(t){return typeof t=="function"}function _t(t){return t==="indeterminate"}function v0(t){return _t(t)?"indeterminate":t?"checked":"unchecked"}const y0=y.forwardRef(({className:t,...e},r)=>p.jsx(Ks,{ref:r,className:Se("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:p.jsx(m0,{className:Se("flex items-center justify-center text-current"),children:p.jsx(Hi,{className:"h-4 w-4"})})}));y0.displayName=Ks.displayName;const L5=({onDownload:t,disabled:e=!1})=>{const[r,n]=w.useState(!0),[o,a]=w.useState(!1),[i,s]=w.useState(!1);w.useEffect(()=>{try{s(window.self!==window.top)}catch{s(!0)}},[]);const u=()=>{r&&t&&!o&&(t(),a(!0),i&&window.parent.postMessage({type:"OPEN_POPUP",payload:"1"},"*"))};return p.jsxs("div",{className:"py-4 max-w-[600px] w-full flex flex-col justify-center items-center",children:[p.jsx("div",{className:"flex w-full md:w-1/2 justify-center items-center",children:p.jsx(Xe,{disabled:!r||o||e,onClick:u,className:"w-full",children:o?p.jsxs(p.Fragment,{children:[p.jsx(Hi,{className:"h-4 w-4 mr-2"}),"Thank you!"]}):p.jsxs(p.Fragment,{children:[p.jsx(sh,{className:"h-4 w-4 mr-2"}),"Download"]})})}),p.jsxs("label",{className:"flex items-start space-x-2 cursor-pointer mt-4",children:[p.jsx(y0,{checked:r,onCheckedChange:l=>n(l===!0),className:"mt-0.5"}),p.jsxs("span",{className:"text-sm text-muted-foreground",children:["I accept the"," ",p.jsx("a",{href:"https://myracereel.com/terms-of-service",className:"underline hover:text-foreground transition-colors",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"}),"."]})]})]})},Fr=t=>{let e,r,n=!1,o;try{const{connectors:a,events:i}=ne(u=>({events:u.events}));e=a.connect,r=a.drag,n=i.selected;const{editorEnabled:s}=at(u=>({editorEnabled:u.options.enabled}));o=s}catch{}return p.jsx("div",{...t.id?{id:t.id}:{},ref:a=>a&&e&&r&&e(r(a)),style:Cs(t),className:tt(`min-h-2.5 ${n?"outline outline-blue-500":""}`,"w-full flex justify-center",t.className),...!o&&t.onClick?{onClick:a=>t.onClick(a)}:{},children:t.children})},$5={...pn,display:"flex",justifyContent:"center",alignItems:"center"};Fr.craft={props:$5,displayName:"Wrapper",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName==="Container")},related:{settings:aa}};const B5=(t,e)=>{if(typeof t!="object"||t===null)return t;const r=["mobile","tablet","small","desktop"],n=r.indexOf(e);for(let o=n;o>=0;o--)if(t[r[o]]!==void 0)return t[r[o]];return t.desktop??t.mobile??0},z5=({locationId:t,bibId:e,editorEnabled:r,videoTitle:n})=>{const o=w.useRef(null),{data:a,isLoading:i,error:s}=vp.useQuery({queryKey:["video",t,e],queryFn:()=>P5(t,e),enabled:!!t});if(i)return p.jsx("div",{className:"flex items-center justify-center h-48 bg-muted rounded-lg",children:p.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-muted-foreground border-t-transparent"})});if(s||!a)return r?p.jsxs("div",{className:"flex flex-col items-center gap-1 justify-center py-6 px-4 bg-muted/50 rounded-lg border border-dashed border-muted-foreground/30",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(oh,{className:"h-5 w-5 text-muted-foreground"}),p.jsx("p",{className:"text-muted-foreground text-sm font-medium",children:"Video not found (404)"})]}),p.jsx("p",{className:"text-muted-foreground/70 text-xs",children:"This will be hidden on the live page"})]}):null;const{videoFromIrewind:u}=a,l=async()=>{if(!r)try{const c=document.createElement("a");c.href=u.mp4_hr_url,c.download=`${u.name||e}-video`,c.style.display="none",document.body.appendChild(c),c.click(),document.body.removeChild(c)}catch(c){console.error("Download failed:",c)}};return p.jsx(Fr,{children:p.jsx(En,{children:p.jsx("div",{className:"w-full",children:p.jsxs("div",{className:"flex flex-col items-center",children:[p.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:n}),p.jsxs("h3",{className:"text-lg font-semibold text-foreground mb-3",children:[u.name," (",u.start_no,")"]}),p.jsxs("video",{ref:o,controls:!0,controlsList:"nodownload",className:"w-full max-w-2xl rounded-lg shadow-md",children:[p.jsx("source",{src:u.mp4_hr_url,type:"video/mp4"}),"Your browser does not support HTML5 video."]}),p.jsx(L5,{onDownload:l,disabled:r})]})})})})},Js=({padding:t={mobile:16,desktop:24},margin:e={top:0,right:0,bottom:0,left:0},background:r="transparent",borderRadius:n=8,boxShadow:o="none"})=>{const a=Ce(),i=Sn();let s,u,l;try{const{connectors:m,events:v}=ne(x=>({events:x.events}));s=m.connect,u=m.drag,l=v.selected}catch{}let c=!1;try{let{options:m}=at(v=>({options:v.options}));c=m.enabled}catch{}const h=B5(t,a),f={none:"none",sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1)"},d={padding:`${h}px`,marginTop:`${e.top}px`,marginRight:`${e.right}px`,marginBottom:`${e.bottom}px`,marginLeft:`${e.left}px`,background:r,borderRadius:`${n}px`,boxShadow:f[o]||"none"},g=(i==null?void 0:i.videos)||[],b=g.length>0;return p.jsx("div",{ref:m=>m&&s&&u&&s(u(m)),style:d,className:`transition-all ${l?"ring-2 ring-primary ring-offset-2":""}`,children:b?p.jsx("div",{className:"space-y-6",children:g.map(m=>p.jsx(z5,{locationId:m.locationId,bibId:i==null?void 0:i.bibId,editorEnabled:c,videoTitle:m.name||m.locationId},m.locationId))}):p.jsxs("div",{className:"flex flex-col items-center justify-center h-48 bg-muted rounded-lg border-2 border-dashed border-muted-foreground/30",children:[p.jsx(Sc,{className:"h-10 w-10 text-muted-foreground mb-2"}),p.jsxs("p",{className:"text-muted-foreground text-sm text-center",children:["No video locations available.",p.jsx("br",{}),p.jsx("span",{className:"text-xs",children:"Add videos to your event first."})]})]})})},H5=()=>{const{actions:{setProp:t},padding:e,margin:r,background:n,borderRadius:o,boxShadow:a}=ne(s=>({padding:s.data.props.padding,margin:s.data.props.margin,background:s.data.props.background,borderRadius:s.data.props.borderRadius,boxShadow:s.data.props.boxShadow})),i=[{value:"none",label:"None"},{value:"sm",label:"Small"},{value:"md",label:"Medium"},{value:"lg",label:"Large"},{value:"xl",label:"Extra Large"}];return p.jsxs("div",{className:"space-y-1",children:[p.jsx(V,{title:"Info",children:p.jsx("p",{className:"text-xs text-muted-foreground",children:"All available videos will be displayed automatically."})}),p.jsxs(V,{title:"Style",children:[p.jsx(pe,{unit:"px",label:"Padding",value:(e==null?void 0:e.desktop)??24,onChange:s=>t(u=>u.padding={...u.padding,desktop:s,mobile:s}),min:0,max:100}),p.jsx(pe,{unit:"px",label:"Border Radius",value:o,onChange:s=>t(u=>u.borderRadius=s),min:0,max:50}),p.jsx(Qe,{label:"Background",value:n,onChange:s=>t(u=>u.background=s)}),p.jsx(J,{label:"Shadow",value:a,options:i,onChange:s=>t(u=>u.boxShadow=s)})]}),p.jsx(V,{title:"Spacing",children:p.jsx(Me,{label:"Margin",values:r,onChange:s=>t(u=>u.margin=s)})})]})};Js.craft={displayName:"Video",props:{padding:{mobile:16,desktop:24},margin:{desktop:{top:0,right:0,bottom:0,left:0}},background:"transparent",borderRadius:8,boxShadow:"none"},related:{settings:H5}};const x0=({columns:t=2,gap:e=16,padding:r={top:0,right:0,bottom:0,left:0},margin:n={top:0,right:0,bottom:0,left:0},alignItems:o="stretch",children:a})=>{const i=Ce();let s,u,l;try{const{connectors:d,events:g}=ne(b=>({events:b.events}));s=d.connect,u=d.drag,l=g.selected}catch{}const c=d=>[d][i]||[d].desktop,h=typeof c("padding")=="object"?`${c("padding").top}px ${c("padding").right}px ${c("padding").bottom}px ${c("padding").left}px`:`${c("padding")}px`,f=typeof c("margin")=="object"?`${c("margin").top}px ${c("margin").right}px ${c("margin").bottom}px ${c("margin").left}px`:`${c("margin")}px`;return p.jsx("div",{ref:d=>d&&s&&u&&(s==null?void 0:s(u==null?void 0:u(d))),className:`cursor-move w-full ${l?"ring-2 ring-primary ring-offset-2":""}`,style:{display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gap:`${e}px`,padding:h,margin:f,alignItems:o},children:a})},F5=()=>{const{actions:{setProp:t},props:e}=ne(o=>({props:o.data.props})),r=typeof e.padding=="object"?e.padding:{top:0,right:0,bottom:0,left:0},n=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Layout",defaultOpen:!0,children:[p.jsx(vt,{label:"Columns",value:e.columns||2,options:[{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"}],onChange:o=>t(a=>a.columns=o)}),p.jsx(pe,{unit:"px",label:"Gap",value:e.gap||16,onChange:o=>t(a=>a.gap=o),max:64}),p.jsx(J,{label:"Align Items",value:e.alignItems||"stretch",options:[{value:"stretch",label:"Stretch"},{value:"start",label:"Top"},{value:"center",label:"Center"},{value:"end",label:"Bottom"}],onChange:o=>t(a=>a.alignItems=o)})]}),p.jsxs(V,{title:"Spacing",defaultOpen:!1,children:[p.jsx(Me,{label:"Padding",values:r,onChange:o=>t(a=>a.padding={...a.padding,...o})}),p.jsx(Me,{label:"Margin",values:n,onChange:o=>t(a=>a.margin={...a.margin,...o})})]})]})};x0.craft={displayName:"Columns",props:{columns:2,gap:16,padding:{desktop:{top:0,right:0,bottom:0,left:0}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},alignItems:"stretch"},related:{settings:F5}};const Zs=({text:t="Click here",url:e="#",target:r="_self",fontSize:n=16,fontWeight:o="400",color:a="#0066cc",hoverColor:i="#0052a3",textDecoration:s="underline",textAlign:u="left",margin:l={top:0,right:0,bottom:0,left:0},opacity:c=100})=>{const h=Ce();let f,d,g;try{const{connectors:m,events:v}=ne(x=>({events:x.events}));f=m.connect,d=m.drag,g=v.selected}catch{}const b=typeof l[h]=="object"?`${l[h].top}px ${l[h].right}px ${l[h].bottom}px ${l[h].left}px`:`${l[h]}px`;return p.jsx("a",{ref:m=>m&&f&&d&&f(d(m)),href:e,target:r,rel:r==="_blank"?"noopener noreferrer":void 0,onClick:m=>m.preventDefault(),className:`cursor-move inline-block transition-colors hover:opacity-80 ${g?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${n}px`,fontWeight:o,color:a,textDecoration:s,textAlign:u,margin:b,opacity:c/100,display:"block"},children:t})},q5=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Content",defaultOpen:!0,children:[p.jsx($t,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)}),p.jsx($t,{label:"URL",value:e.url,onChange:n=>t(o=>o.url=n)}),p.jsx(J,{label:"Open in",value:e.target||"_self",options:[{value:"_self",label:"Same Tab"},{value:"_blank",label:"New Tab"}],onChange:n=>t(o=>o.target=n)})]}),p.jsxs(V,{title:"Typography",defaultOpen:!0,children:[p.jsx(pe,{unit:"px",label:"Font Size",value:e.fontSize||16,onChange:n=>t(o=>o.fontSize=n),min:10,max:48}),p.jsx(J,{label:"Weight",value:e.fontWeight||"400",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"}],onChange:n=>t(o=>o.fontWeight=n)}),p.jsx(J,{label:"Decoration",value:e.textDecoration||"underline",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"}],onChange:n=>t(o=>o.textDecoration=n)}),p.jsx(vt,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Bi,{className:"h-3 w-3"})},{value:"center",label:p.jsx($i,{className:"h-3 w-3"})},{value:"right",label:p.jsx(zi,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)})]}),p.jsxs(V,{title:"Color",defaultOpen:!1,children:[p.jsx(Qe,{label:"Link Color",value:e.color||"#0066cc",onChange:n=>t(o=>o.color=n)}),p.jsx(oa,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Zs.craft={displayName:"Link",props:{text:"Click here",url:"#",target:"_self",fontSize:16,fontWeight:"400",color:"#0066cc",hoverColor:"#0052a3",textDecoration:"underline",textAlign:"left",margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100},related:{settings:q5}};const w0=({src:t="https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:e="Image",width:r="full",height:n="auto",maxWidth:o="none",objectFit:a="cover",borderRadius:i=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const c=Ce();let h,f,d;try{const{connectors:b,events:m}=ne(v=>({events:v.events}));h=b.connect,f=b.drag,d=m.selected}catch{}const g=typeof s[c]=="object"?`${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px`:`${s[c]}px`;return p.jsx("img",{ref:b=>b&&h&&f&&h(f(b)),src:t,alt:e,className:`cursor-move ${d?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:a,borderRadius:`${i}px`,margin:g,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},U5=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Source",defaultOpen:!0,children:[p.jsx($t,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx($t,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(V,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Width",value:typeof e.width=="number"?"custom":e.width,options:[{value:"full",label:"Full Width"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(pe,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(J,{label:"Height",value:typeof e.height=="number"?"custom":e.height,options:[{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(pe,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(J,{label:"Object Fit",value:e.objectFit||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"}],onChange:n=>t(o=>o.objectFit=n)})]}),p.jsxs(V,{title:"Style",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(oa,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 4px 12px rgba(0,0,0,0.1)",label:"Small"},{value:"0 8px 24px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 16px 48px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};w0.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100,boxShadow:"none"},related:{settings:U5}};function oc(t=12){const e="abcdefghijklmnopqrstuvwxyz",r=e+"0123456789";let n=e[Math.floor(Math.random()*e.length)];for(let o=1;o<t;o++)n+=r[Math.floor(Math.random()*r.length)];return n}const S0=({children:t,className:e})=>{let r,n,o=!1;try{const{connectors:s,events:u}=ne(l=>({events:l.events}));r=s.connect,n=s.drag,o=u.selected}catch{}const a=oc(),i=oc();return p.jsx("div",{ref:s=>{s&&r&&n&&r(n(s))},className:tt(`min-h-2.5 ${o?"border border-blue-500":""}`,"w-full flex justify-center",e),children:p.jsx(Pt,{is:Fr,id:`section-wrapper-${a}`,children:p.jsx(Pt,{is:En,canvas:!0,id:`section-container-${i}`,children:t})})})};S0.craft={displayName:"Section",props:{},rules:{canDrag:()=>!0}};const Qs=t=>{let e,r,n=!1;try{const{connectors:o,events:a}=ne(i=>({events:i.events}));e=o.connect,r=o.drag,n=a.selected}catch{}return p.jsx("div",{style:Cs(t),className:tt(t.className,`${n?"outline outline-blue-500":""}`),ref:o=>{o&&e&&r&&e(r(o))},children:t.children})};Qs.craft={isCanvas:!0,props:pn,related:{settings:aa}};const C0=({background:t="transparent",padding:e={top:16,right:16,bottom:16,left:16},margin:r={top:0,right:0,bottom:0,left:0},width:n="auto",minHeight:o=100,maxWidth:a="none",display:i="block",flexDirection:s="column",justifyContent:u="flex-start",alignItems:l="stretch",gap:c=0,borderRadius:h=8,borderWidth:f=1,borderColor:d="transparent",borderStyle:g="dashed",boxShadow:b="none",children:m})=>{const v=Ce();let x,S,C;try{const{connectors:D,events:$}=ne(E=>({events:E.events}));x=D.connect,S=D.drag,C=$.selected}catch{}const j=D=>[D][v]||[D].desktop,k=typeof j("padding")=="object"?`${j("padding").top}px ${j("padding").right}px ${j("padding").bottom}px ${j("padding").left}px`:`${j("padding")}px`,R=typeof j("margin")=="object"?`${j("margin").top}px ${j("margin").right}px ${j("margin").bottom}px ${j("margin").left}px`:`${j("margin")}px`,M=[{url:"https://myracereel.com/privacy-data-privacy",name:"Privacy & Data Policy"},{url:"https://myracereel.com/terms-of-service",name:"Terms of Service"},{url:"https://myracereel.com/faq",name:"FAQ"},{url:"https://myracereel.com/contact",name:"Contact Us"}];return p.jsx(Fr,{style:{backgroundColor:t,padding:k,margin:R,width:n==="auto"?"100%":n,minHeight:`${o}px`,maxWidth:a==="none"?"none":`${a}px`,display:i,flexDirection:i==="flex"?s:void 0,justifyContent:i==="flex"?u:void 0,alignItems:i==="flex"?l:void 0,gap:i==="flex"?`${c}px`:void 0,borderRadius:`${h}px`,borderWidth:`${f}px`,borderColor:d,borderStyle:g,boxShadow:b==="none"?"none":b},className:"bg-black",ref:D=>D&&x&&S&&x(S(D)),children:p.jsx("div",{className:"flex justify-center w-full",children:p.jsxs("div",{className:"w-full flex flex-col py-10 gap-y-3.5 ",children:[p.jsx("div",{className:"flex w-full gap-x-1 justify-center items-center",children:p.jsx("div",{className:"text-white text-sm",children:"Powered by MyRaceReel"})}),p.jsx("div",{className:"flex @md:flex-row @max-md:flex-col md:flex-row justify-center items-center gap-x-6 gap-y-2 w-full flex-col",children:M.map(D=>p.jsx("a",{className:"text-white",href:D.url,target:"_blank",children:D.name},D.name))})]})})})};C0.craft={displayName:"Footer",props:{background:"transparent",padding:{desktop:{top:16,right:16,bottom:16,left:16}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},width:"auto",minHeight:100,maxWidth:"none",display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:8,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},related:{settings:aa}};const V5=()=>{const{connectors:t}=at(),e=[{name:"Wrapper",icon:mh,element:p.jsx(Pt,{is:Fr,canvas:!0})},{name:"Container",icon:bh,element:p.jsx(Pt,{is:En,canvas:!0})},{name:"Div",icon:Fa,element:p.jsx(Pt,{is:Qs,canvas:!0})}],r=[{name:"Heading",icon:Cc,element:p.jsx(Vs,{})},{name:"Text",icon:Ac,element:p.jsx(Us,{})},{name:"Button",icon:Tc,element:p.jsx(Ss,{})},{name:"Link",icon:Ui,element:p.jsx(Zs,{})}],n=[{name:"Image",icon:Ec,element:p.jsx(Ws,{})},{name:"Video",icon:Sc,element:p.jsx(Js,{})}],o=[{name:"Divider",icon:Nc,element:p.jsx(Gs,{})},{name:"Spacer",icon:jc,element:p.jsx(Ys,{})}],a=(i,s)=>p.jsxs("div",{className:"space-y-2",children:[p.jsx("span",{className:"text-xs text-muted-foreground/70",children:i}),p.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:s.map(u=>p.jsxs(Xe,{variant:"outline",size:"sm",className:"flex flex-col items-center justify-center h-14 cursor-grab active:cursor-grabbing text-muted-foreground hover:text-foreground",ref:l=>l&&t.create(l,u.element),children:[p.jsx(u.icon,{className:"h-4 w-4 mb-1"}),p.jsx("span",{className:"text-[10px]",children:u.name})]},u.name))})]});return p.jsxs("div",{className:"space-y-4",children:[p.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Components"}),a("Layout",e),a("Basic",r),a("Media",n),a("Utility",o)]})};var W5=y.createContext(void 0);function eu(t){const e=y.useContext(W5);return t||e||"ltr"}function G5(t,[e,r]){return Math.min(r,Math.max(e,t))}function Y5(t,e){return y.useReducer((r,n)=>e[r][n]??r,t)}var tu="ScrollArea",[E0]=tr(tu),[X5,Le]=E0(tu),N0=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=t,[s,u]=y.useState(null),[l,c]=y.useState(null),[h,f]=y.useState(null),[d,g]=y.useState(null),[b,m]=y.useState(null),[v,x]=y.useState(0),[S,C]=y.useState(0),[j,k]=y.useState(!1),[R,M]=y.useState(!1),D=we(e,E=>u(E)),$=eu(o);return p.jsx(X5,{scope:r,type:n,dir:$,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:c,content:h,onContentChange:f,scrollbarX:d,onScrollbarXChange:g,scrollbarXEnabled:j,onScrollbarXEnabledChange:k,scrollbarY:b,onScrollbarYChange:m,scrollbarYEnabled:R,onScrollbarYEnabledChange:M,onCornerWidthChange:x,onCornerHeightChange:C,children:p.jsx(me.div,{dir:$,...i,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":S+"px",...t.style}})})});N0.displayName=tu;var T0="ScrollAreaViewport",j0=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,children:n,nonce:o,...a}=t,i=Le(T0,r),s=y.useRef(null),u=we(e,s,i.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),p.jsx(me.div,{"data-radix-scroll-area-viewport":"",...a,ref:u,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...t.style},children:p.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});j0.displayName=T0;var ut="ScrollAreaScrollbar",ru=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Le(ut,t.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s=t.orientation==="horizontal";return y.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),o.type==="hover"?p.jsx(K5,{...n,ref:e,forceMount:r}):o.type==="scroll"?p.jsx(J5,{...n,ref:e,forceMount:r}):o.type==="auto"?p.jsx(A0,{...n,ref:e,forceMount:r}):o.type==="always"?p.jsx(nu,{...n,ref:e}):null});ru.displayName=ut;var K5=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Le(ut,t.__scopeScrollArea),[a,i]=y.useState(!1);return y.useEffect(()=>{const s=o.scrollArea;let u=0;if(s){const l=()=>{window.clearTimeout(u),i(!0)},c=()=>{u=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",l),s.addEventListener("pointerleave",c),()=>{window.clearTimeout(u),s.removeEventListener("pointerenter",l),s.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),p.jsx(rr,{present:r||a,children:p.jsx(A0,{"data-state":a?"visible":"hidden",...n,ref:e})})}),J5=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Le(ut,t.__scopeScrollArea),a=t.orientation==="horizontal",i=ga(()=>u("SCROLL_END"),100),[s,u]=Y5("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return y.useEffect(()=>{if(s==="idle"){const l=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(l)}},[s,o.scrollHideDelay,u]),y.useEffect(()=>{const l=o.viewport,c=a?"scrollLeft":"scrollTop";if(l){let h=l[c];const f=()=>{const d=l[c];h!==d&&(u("SCROLL"),i()),h=d};return l.addEventListener("scroll",f),()=>l.removeEventListener("scroll",f)}},[o.viewport,a,u,i]),p.jsx(rr,{present:r||s!=="hidden",children:p.jsx(nu,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:e,onPointerEnter:ue(t.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:ue(t.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),A0=y.forwardRef((t,e)=>{const r=Le(ut,t.__scopeScrollArea),{forceMount:n,...o}=t,[a,i]=y.useState(!1),s=t.orientation==="horizontal",u=ga(()=>{if(r.viewport){const l=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;i(s?l:c)}},10);return Or(r.viewport,u),Or(r.content,u),p.jsx(rr,{present:n||a,children:p.jsx(nu,{"data-state":a?"visible":"hidden",...o,ref:e})})}),nu=y.forwardRef((t,e)=>{const{orientation:r="vertical",...n}=t,o=Le(ut,t.__scopeScrollArea),a=y.useRef(null),i=y.useRef(0),[s,u]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=R0(s.viewport,s.content),c={...n,sizes:s,onSizesChange:u,hasThumb:l>0&&l<1,onThumbChange:f=>a.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function h(f,d){return nS(f,i.current,s,d)}return r==="horizontal"?p.jsx(Z5,{...c,ref:e,onThumbPositionChange:()=>{if(o.viewport&&a.current){const f=o.viewport.scrollLeft,d=ac(f,s,o.dir);a.current.style.transform=`translate3d(${d}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=h(f,o.dir))}}):r==="vertical"?p.jsx(Q5,{...c,ref:e,onThumbPositionChange:()=>{if(o.viewport&&a.current){const f=o.viewport.scrollTop,d=ac(f,s);a.current.style.transform=`translate3d(0, ${d}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=h(f))}}):null}),Z5=y.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,a=Le(ut,t.__scopeScrollArea),[i,s]=y.useState(),u=y.useRef(null),l=we(e,u,a.onScrollbarXChange);return y.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),p.jsx(k0,{"data-orientation":"horizontal",...o,ref:l,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ma(r)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.x),onDragScroll:c=>t.onDragScroll(c.x),onWheelScroll:(c,h)=>{if(a.viewport){const f=a.viewport.scrollLeft+c.deltaX;t.onWheelScroll(f),D0(f,h)&&c.preventDefault()}},onResize:()=>{u.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Ro(i.paddingLeft),paddingEnd:Ro(i.paddingRight)}})}})}),Q5=y.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,a=Le(ut,t.__scopeScrollArea),[i,s]=y.useState(),u=y.useRef(null),l=we(e,u,a.onScrollbarYChange);return y.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),p.jsx(k0,{"data-orientation":"vertical",...o,ref:l,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ma(r)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.y),onDragScroll:c=>t.onDragScroll(c.y),onWheelScroll:(c,h)=>{if(a.viewport){const f=a.viewport.scrollTop+c.deltaY;t.onWheelScroll(f),D0(f,h)&&c.preventDefault()}},onResize:()=>{u.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Ro(i.paddingTop),paddingEnd:Ro(i.paddingBottom)}})}})}),[eS,O0]=E0(ut),k0=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:u,onDragScroll:l,onWheelScroll:c,onResize:h,...f}=t,d=Le(ut,r),[g,b]=y.useState(null),m=we(e,D=>b(D)),v=y.useRef(null),x=y.useRef(""),S=d.viewport,C=n.content-n.viewport,j=De(c),k=De(u),R=ga(h,10);function M(D){if(v.current){const $=D.clientX-v.current.left,E=D.clientY-v.current.top;l({x:$,y:E})}}return y.useEffect(()=>{const D=$=>{const E=$.target;(g==null?void 0:g.contains(E))&&j($,C)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[S,g,C,j]),y.useEffect(k,[n,k]),Or(g,R),Or(d.content,R),p.jsx(eS,{scope:r,scrollbar:g,hasThumb:o,onThumbChange:De(a),onThumbPointerUp:De(i),onThumbPositionChange:k,onThumbPointerDown:De(s),children:p.jsx(me.div,{...f,ref:m,style:{position:"absolute",...f.style},onPointerDown:ue(t.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),v.current=g.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",d.viewport&&(d.viewport.style.scrollBehavior="auto"),M(D))}),onPointerMove:ue(t.onPointerMove,M),onPointerUp:ue(t.onPointerUp,D=>{const $=D.target;$.hasPointerCapture(D.pointerId)&&$.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=x.current,d.viewport&&(d.viewport.style.scrollBehavior=""),v.current=null})})})}),_o="ScrollAreaThumb",P0=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=O0(_o,t.__scopeScrollArea);return p.jsx(rr,{present:r||o.hasThumb,children:p.jsx(tS,{ref:e,...n})})}),tS=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,style:n,...o}=t,a=Le(_o,r),i=O0(_o,r),{onThumbPositionChange:s}=i,u=we(e,h=>i.onThumbChange(h)),l=y.useRef(void 0),c=ga(()=>{l.current&&(l.current(),l.current=void 0)},100);return y.useEffect(()=>{const h=a.viewport;if(h){const f=()=>{if(c(),!l.current){const d=oS(h,s);l.current=d,s()}};return s(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[a.viewport,c,s]),p.jsx(me.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:ue(t.onPointerDownCapture,h=>{const d=h.target.getBoundingClientRect(),g=h.clientX-d.left,b=h.clientY-d.top;i.onThumbPointerDown({x:g,y:b})}),onPointerUp:ue(t.onPointerUp,i.onThumbPointerUp)})});P0.displayName=_o;var ou="ScrollAreaCorner",_0=y.forwardRef((t,e)=>{const r=Le(ou,t.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?p.jsx(rS,{...t,ref:e}):null});_0.displayName=ou;var rS=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,...n}=t,o=Le(ou,r),[a,i]=y.useState(0),[s,u]=y.useState(0),l=!!(a&&s);return Or(o.scrollbarX,()=>{var h;const c=((h=o.scrollbarX)==null?void 0:h.offsetHeight)||0;o.onCornerHeightChange(c),u(c)}),Or(o.scrollbarY,()=>{var h;const c=((h=o.scrollbarY)==null?void 0:h.offsetWidth)||0;o.onCornerWidthChange(c),i(c)}),l?p.jsx(me.div,{...n,ref:e,style:{width:a,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function Ro(t){return t?parseInt(t,10):0}function R0(t,e){const r=t/e;return isNaN(r)?0:r}function ma(t){const e=R0(t.viewport,t.content),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=(t.scrollbar.size-r)*e;return Math.max(n,18)}function nS(t,e,r,n="ltr"){const o=ma(r),a=o/2,i=e||a,s=o-i,u=r.scrollbar.paddingStart+i,l=r.scrollbar.size-r.scrollbar.paddingEnd-s,c=r.content-r.viewport,h=n==="ltr"?[0,c]:[c*-1,0];return I0([u,l],h)(t)}function ac(t,e,r="ltr"){const n=ma(e),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=e.scrollbar.size-o,i=e.content-e.viewport,s=a-n,u=r==="ltr"?[0,i]:[i*-1,0],l=G5(t,u);return I0([0,i],[0,s])(l)}function I0(t,e){return r=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const n=(e[1]-e[0])/(t[1]-t[0]);return e[0]+n*(r-t[0])}}function D0(t,e){return t>0&&t<e}var oS=(t,e=()=>{})=>{let r={left:t.scrollLeft,top:t.scrollTop},n=0;return function o(){const a={left:t.scrollLeft,top:t.scrollTop},i=r.left!==a.left,s=r.top!==a.top;(i||s)&&e(),r=a,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function ga(t,e){const r=De(t),n=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(n.current),[]),y.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,e)},[r,e])}function Or(t,e){const r=De(e);Dt(()=>{let n=0;if(t){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(t),()=>{window.cancelAnimationFrame(n),o.unobserve(t)}}},[t,r])}var M0=N0,aS=j0,iS=_0;const au=y.forwardRef(({className:t,children:e,...r},n)=>p.jsxs(M0,{ref:n,className:Se("relative overflow-hidden",t),...r,children:[p.jsx(aS,{className:"h-full w-full rounded-[inherit]",children:e}),p.jsx(L0,{}),p.jsx(iS,{})]}));au.displayName=M0.displayName;const L0=y.forwardRef(({className:t,orientation:e="vertical",...r},n)=>p.jsx(ru,{ref:n,orientation:e,className:Se("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...r,children:p.jsx(P0,{className:"relative flex-1 rounded-full bg-border"})}));L0.displayName=ru.displayName;const sS=()=>{const{selected:t,actions:e}=at(r=>{var a,i,s,u,l,c,h;const n=r.events.selected?Array.from(r.events.selected)[0]:null;let o;return n&&(o={id:n,name:((i=(a=r.nodes[n])==null?void 0:a.data)==null?void 0:i.displayName)||((u=(s=r.nodes[n])==null?void 0:s.data)==null?void 0:u.name),settings:(c=(l=r.nodes[n])==null?void 0:l.related)==null?void 0:c.settings,isDeletable:((h=r.nodes[n])==null?void 0:h.id)!=="ROOT"}),{selected:o}});return p.jsx("div",{className:"h-full flex flex-col",children:t?p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-border mb-3",children:[p.jsxs("div",{children:[p.jsx("span",{className:"text-xs text-muted-foreground",children:"Selected"}),p.jsx("h3",{className:"text-sm font-semibold",children:t.name})]}),t.isDeletable&&p.jsx("button",{onClick:()=>e.delete(t.id),className:"p-1.5 rounded hover:bg-destructive/10 text-destructive transition-colors",title:"Delete element",children:p.jsx(yh,{className:"h-4 w-4"})})]}),p.jsx(au,{className:"flex-1 -mr-4 pr-4",children:t.settings&&w.createElement(t.settings)})]}):p.jsx("div",{className:"text-center py-8",children:p.jsx("p",{className:"text-sm text-muted-foreground",children:"Select an element to edit its properties"})})})},uS=t=>{switch(t){case"Container":return Fa;case"Text":return Ac;case"Heading":return Cc;case"Button":return Tc;case"Image":return Ec;case"Divider":return Nc;case"Spacer":return jc;case"Video":return Sh;case"Columns":return ah;case"Link":return Ui;default:return Fa}},$0=({nodeId:t,depth:e=0,onDragStart:r,onDragOver:n,onDrop:o,draggedId:a})=>{const{node:i,actions:s,selectedNodeId:u,childNodes:l,parentId:c}=at((T,P)=>{var _,L;const I=T.nodes[t],N=((_=I==null?void 0:I.data)==null?void 0:_.nodes)||[],O=T.events.selected?Array.from(T.events.selected)[0]:null,A=(L=I==null?void 0:I.data)==null?void 0:L.parent;return{node:I,childNodes:N,selectedNodeId:O,parentId:A}}),[h,f]=w.useState(!0),[d,g]=w.useState(!1);if(!i)return null;const b=i.data.displayName||i.data.name||"Unknown",m=l.length>0,v=u===t,x=t==="ROOT",S=uS(b),C=a===t,j=i.data.isCanvas,k=T=>{T.stopPropagation(),x||s.selectNode(t)},R=T=>{T.stopPropagation(),f(!h)},M=T=>{if(x){T.preventDefault();return}T.stopPropagation(),r(t,c)},D=T=>{T.preventDefault(),T.stopPropagation(),a&&a!==t&&j&&g(!0)},$=T=>{T.stopPropagation(),g(!1)},E=T=>{T.preventDefault(),T.stopPropagation(),g(!1),a&&a!==t&&o(t)};return p.jsxs("div",{className:"select-none",children:[p.jsxs("div",{className:`flex items-center gap-1 py-1 px-1 rounded cursor-pointer text-sm transition-colors ${v?"bg-primary/10 text-primary":"hover:bg-secondary/50"} ${C?"opacity-50":""} ${d?"bg-primary/20 ring-1 ring-primary":""}`,style:{paddingLeft:`${e*12+4}px`},onClick:k,draggable:!x,onDragStart:M,onDragOver:D,onDragLeave:$,onDrop:E,children:[!x&&p.jsx(lh,{className:"h-3 w-3 text-muted-foreground/50 cursor-grab active:cursor-grabbing"}),m?p.jsx("button",{onClick:R,className:"p-0.5 hover:bg-secondary rounded",children:h?p.jsx(Fi,{className:"h-3 w-3"}):p.jsx(qi,{className:"h-3 w-3"})}):p.jsx("span",{className:"w-4"}),p.jsx(S,{className:"h-3.5 w-3.5 text-muted-foreground shrink-0"}),p.jsx("span",{className:`truncate ${x?"font-medium":""}`,children:x?"Root":b})]}),m&&h&&p.jsx("div",{children:l.map(T=>p.jsx($0,{nodeId:T,depth:e+1,onDragStart:r,onDragOver:n,onDrop:o,draggedId:a},T))})]})},lS=()=>{const[t,e]=w.useState(null),[r,n]=w.useState(null),{nodeIds:o,actions:a}=at(l=>({nodeIds:Object.keys(l.nodes)})),i=(l,c)=>{e(l),n(c)},s=l=>{if(t&&l&&t!==l)try{a.move(t,l,0)}catch(c){console.log("Cannot move node:",c)}e(null),n(null)},u=()=>{e(null),n(null)};return p.jsxs("div",{className:"space-y-2",onDragEnd:u,children:[p.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Layers"}),p.jsx("div",{className:"border border-border rounded-lg p-2 max-h-[250px] overflow-y-auto bg-background",children:o.includes("ROOT")&&p.jsx($0,{nodeId:"ROOT",onDragStart:i,onDrop:s,draggedId:t})}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"Drag to containers to reorder"})]})};function ic(t){const e=cS(t),r=y.forwardRef((n,o)=>{const{children:a,...i}=n,s=y.Children.toArray(a),u=s.find(fS);if(u){const l=u.props.children,c=s.map(h=>h===u?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...i,ref:o,children:y.isValidElement(l)?y.cloneElement(l,void 0,c):null})}return p.jsx(e,{...i,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}function cS(t){const e=y.forwardRef((r,n)=>{const{children:o,...a}=r;if(y.isValidElement(o)){const i=hS(o),s=pS(a,o.props);return o.type!==y.Fragment&&(s.ref=n?Lo(n,i):i),y.cloneElement(o,s)}return y.Children.count(o)>1?y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var dS=Symbol("radix.slottable");function fS(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===dS}function pS(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const u=a(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function hS(t){var n,o;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function mS(t){const e=t+"CollectionProvider",[r,n]=tr(e),[o,a]=r(e,{collectionRef:{current:null},itemMap:new Map}),i=b=>{const{scope:m,children:v}=b,x=w.useRef(null),S=w.useRef(new Map).current;return p.jsx(o,{scope:m,itemMap:S,collectionRef:x,children:v})};i.displayName=e;const s=t+"CollectionSlot",u=ic(s),l=w.forwardRef((b,m)=>{const{scope:v,children:x}=b,S=a(s,v),C=we(m,S.collectionRef);return p.jsx(u,{ref:C,children:x})});l.displayName=s;const c=t+"CollectionItemSlot",h="data-radix-collection-item",f=ic(c),d=w.forwardRef((b,m)=>{const{scope:v,children:x,...S}=b,C=w.useRef(null),j=we(m,C),k=a(c,v);return w.useEffect(()=>(k.itemMap.set(C,{ref:C,...S}),()=>void k.itemMap.delete(C))),p.jsx(f,{[h]:"",ref:j,children:x})});d.displayName=c;function g(b){const m=a(t+"CollectionConsumer",b);return w.useCallback(()=>{const x=m.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${h}]`));return Array.from(m.itemMap.values()).sort((k,R)=>S.indexOf(k.ref.current)-S.indexOf(R.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:l,ItemSlot:d},g,n]}var Ba="rovingFocusGroup.onEntryFocus",gS={bubbles:!1,cancelable:!0},Pn="RovingFocusGroup",[Ii,B0,bS]=mS(Pn),[vS,z0]=tr(Pn,[bS]),[yS,xS]=vS(Pn),H0=y.forwardRef((t,e)=>p.jsx(Ii.Provider,{scope:t.__scopeRovingFocusGroup,children:p.jsx(Ii.Slot,{scope:t.__scopeRovingFocusGroup,children:p.jsx(wS,{...t,ref:e})})}));H0.displayName=Pn;var wS=y.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:c=!1,...h}=t,f=y.useRef(null),d=we(e,f),g=eu(a),[b,m]=zr({prop:i,defaultProp:s??null,onChange:u,caller:Pn}),[v,x]=y.useState(!1),S=De(l),C=B0(r),j=y.useRef(!1),[k,R]=y.useState(0);return y.useEffect(()=>{const M=f.current;if(M)return M.addEventListener(Ba,S),()=>M.removeEventListener(Ba,S)},[S]),p.jsx(yS,{scope:r,orientation:n,dir:g,loop:o,currentTabStopId:b,onItemFocus:y.useCallback(M=>m(M),[m]),onItemShiftTab:y.useCallback(()=>x(!0),[]),onFocusableItemAdd:y.useCallback(()=>R(M=>M+1),[]),onFocusableItemRemove:y.useCallback(()=>R(M=>M-1),[]),children:p.jsx(me.div,{tabIndex:v||k===0?-1:0,"data-orientation":n,...h,ref:d,style:{outline:"none",...t.style},onMouseDown:ue(t.onMouseDown,()=>{j.current=!0}),onFocus:ue(t.onFocus,M=>{const D=!j.current;if(M.target===M.currentTarget&&D&&!v){const $=new CustomEvent(Ba,gS);if(M.currentTarget.dispatchEvent($),!$.defaultPrevented){const E=C().filter(O=>O.focusable),T=E.find(O=>O.active),P=E.find(O=>O.id===b),N=[T,P,...E].filter(Boolean).map(O=>O.ref.current);U0(N,c)}}j.current=!1}),onBlur:ue(t.onBlur,()=>x(!1))})})}),F0="RovingFocusGroupItem",q0=y.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...s}=t,u=yd(),l=a||u,c=xS(F0,r),h=c.currentTabStopId===l,f=B0(r),{onFocusableItemAdd:d,onFocusableItemRemove:g,currentTabStopId:b}=c;return y.useEffect(()=>{if(n)return d(),()=>g()},[n,d,g]),p.jsx(Ii.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:p.jsx(me.span,{tabIndex:h?0:-1,"data-orientation":c.orientation,...s,ref:e,onMouseDown:ue(t.onMouseDown,m=>{n?c.onItemFocus(l):m.preventDefault()}),onFocus:ue(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:ue(t.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const v=ES(m,c.orientation,c.dir);if(v!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let S=f().filter(C=>C.focusable).map(C=>C.ref.current);if(v==="last")S.reverse();else if(v==="prev"||v==="next"){v==="prev"&&S.reverse();const C=S.indexOf(m.currentTarget);S=c.loop?NS(S,C+1):S.slice(C+1)}setTimeout(()=>U0(S))}}),children:typeof i=="function"?i({isCurrentTabStop:h,hasTabStop:b!=null}):i})})});q0.displayName=F0;var SS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function CS(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function ES(t,e,r){const n=CS(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return SS[n]}function U0(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function NS(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var TS=H0,jS=q0,V0="Toggle",iu=y.forwardRef((t,e)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=t,[i,s]=zr({prop:r,onChange:o,defaultProp:n??!1,caller:V0});return p.jsx(me.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":t.disabled?"":void 0,...a,ref:e,onClick:ue(t.onClick,()=>{t.disabled||s(!i)})})});iu.displayName=V0;var W0=iu,Ft="ToggleGroup",[G0]=tr(Ft,[z0]),Y0=z0(),su=w.forwardRef((t,e)=>{const{type:r,...n}=t;if(r==="single"){const o=n;return p.jsx(AS,{...o,ref:e})}if(r==="multiple"){const o=n;return p.jsx(OS,{...o,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${Ft}\``)});su.displayName=Ft;var[X0,K0]=G0(Ft),AS=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=t,[i,s]=zr({prop:r,defaultProp:n??"",onChange:o,caller:Ft});return p.jsx(X0,{scope:t.__scopeToggleGroup,type:"single",value:w.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:w.useCallback(()=>s(""),[s]),children:p.jsx(J0,{...a,ref:e})})}),OS=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=t,[i,s]=zr({prop:r,defaultProp:n??[],onChange:o,caller:Ft}),u=w.useCallback(c=>s((h=[])=>[...h,c]),[s]),l=w.useCallback(c=>s((h=[])=>h.filter(f=>f!==c)),[s]);return p.jsx(X0,{scope:t.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:u,onItemDeactivate:l,children:p.jsx(J0,{...a,ref:e})})});su.displayName=Ft;var[kS,PS]=G0(Ft),J0=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...u}=t,l=Y0(r),c=eu(i),h={role:"group",dir:c,...u};return p.jsx(kS,{scope:r,rovingFocus:o,disabled:n,children:o?p.jsx(TS,{asChild:!0,...l,orientation:a,dir:c,loop:s,children:p.jsx(me.div,{...h,ref:e})}):p.jsx(me.div,{...h,ref:e})})}),Io="ToggleGroupItem",Z0=w.forwardRef((t,e)=>{const r=K0(Io,t.__scopeToggleGroup),n=PS(Io,t.__scopeToggleGroup),o=Y0(t.__scopeToggleGroup),a=r.value.includes(t.value),i=n.disabled||t.disabled,s={...t,pressed:a,disabled:i},u=w.useRef(null);return n.rovingFocus?p.jsx(jS,{asChild:!0,...o,focusable:!i,active:a,ref:u,children:p.jsx(sc,{...s,ref:e})}):p.jsx(sc,{...s,ref:e})});Z0.displayName=Io;var sc=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,value:n,...o}=t,a=K0(Io,r),i={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return p.jsx(iu,{...s,...o,ref:e,onPressedChange:u=>{u?a.onItemActivate(n):a.onItemDeactivate(n)}})}),Q0=su,ep=Z0;const tp=kc("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),_S=y.forwardRef(({className:t,variant:e,size:r,...n},o)=>p.jsx(W0,{ref:o,className:Se(tp({variant:e,size:r,className:t})),...n}));_S.displayName=W0.displayName;const rp=y.createContext({size:"default",variant:"default"}),np=y.forwardRef(({className:t,variant:e,size:r,children:n,...o},a)=>p.jsx(Q0,{ref:a,className:Se("flex items-center justify-center gap-1",t),...o,children:p.jsx(rp.Provider,{value:{variant:e,size:r},children:n})}));np.displayName=Q0.displayName;const op=y.forwardRef(({className:t,children:e,variant:r,size:n,...o},a)=>{const i=y.useContext(rp);return p.jsx(ep,{ref:a,className:Se(tp({variant:i.variant||r,size:i.size||n}),t),...o,children:e})});op.displayName=ep.displayName;var RS=t=>{switch(t){case"success":return MS;case"info":return $S;case"warning":return LS;case"error":return BS;default:return null}},IS=Array(12).fill(0),DS=({visible:t,className:e})=>w.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},w.createElement("div",{className:"sonner-spinner"},IS.map((r,n)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),MS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),LS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),$S=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),BS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),zS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},w.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),w.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),HS=()=>{let[t,e]=w.useState(document.hidden);return w.useEffect(()=>{let r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t},Di=1,FS=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:r,...n}=t,o=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Di++,a=this.toasts.find(s=>s.id===o),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...t,id:o,title:r}),{...s,...t,id:o,dismissible:i,title:r}):s):this.addToast({title:r,...n,dismissible:i,id:o}),o},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(r=>r({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let r;e.loading!==void 0&&(r=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let n=t instanceof Promise?t:t(),o=r!==void 0,a,i=n.then(async u=>{if(a=["resolve",u],w.isValidElement(u))o=!1,this.create({id:r,type:"default",message:u});else if(US(u)&&!u.ok){o=!1;let l=typeof e.error=="function"?await e.error(`HTTP error! status: ${u.status}`):e.error,c=typeof e.description=="function"?await e.description(`HTTP error! status: ${u.status}`):e.description;this.create({id:r,type:"error",message:l,description:c})}else if(e.success!==void 0){o=!1;let l=typeof e.success=="function"?await e.success(u):e.success,c=typeof e.description=="function"?await e.description(u):e.description;this.create({id:r,type:"success",message:l,description:c})}}).catch(async u=>{if(a=["reject",u],e.error!==void 0){o=!1;let l=typeof e.error=="function"?await e.error(u):e.error,c=typeof e.description=="function"?await e.description(u):e.description;this.create({id:r,type:"error",message:l,description:c})}}).finally(()=>{var u;o&&(this.dismiss(r),r=void 0),(u=e.finally)==null||u.call(e)}),s=()=>new Promise((u,l)=>i.then(()=>a[0]==="reject"?l(a[1]):u(a[1])).catch(l));return typeof r!="string"&&typeof r!="number"?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(t,e)=>{let r=(e==null?void 0:e.id)||Di++;return this.create({jsx:t(r),id:r,...e}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Te=new FS,qS=(t,e)=>{let r=(e==null?void 0:e.id)||Di++;return Te.addToast({title:t,...e,id:r}),r},US=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",VS=qS,WS=()=>Te.toasts,GS=()=>Te.getActiveToasts(),YS=Object.assign(VS,{success:Te.success,info:Te.info,warning:Te.warning,error:Te.error,custom:Te.custom,message:Te.message,promise:Te.promise,dismiss:Te.dismiss,loading:Te.loading},{getHistory:WS,getToasts:GS});function XS(t,{insertAt:e}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}XS(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
280
- `);function Jn(t){return t.label!==void 0}var KS=3,JS="32px",ZS="16px",uc=4e3,QS=356,eC=14,tC=20,rC=200;function He(...t){return t.filter(Boolean).join(" ")}function nC(t){let[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}var oC=t=>{var e,r,n,o,a,i,s,u,l,c,h;let{invert:f,toast:d,unstyled:g,interacting:b,setHeights:m,visibleToasts:v,heights:x,index:S,toasts:C,expanded:j,removeToast:k,defaultRichColors:R,closeButton:M,style:D,cancelButtonStyle:$,actionButtonStyle:E,className:T="",descriptionClassName:P="",duration:I,position:N,gap:O,loadingIcon:A,expandByDefault:_,classNames:L,icons:q,closeButtonAriaLabel:de="Close toast",pauseWhenPageIsHidden:Z}=t,[B,z]=w.useState(null),[he,X]=w.useState(null),[H,Ne]=w.useState(!1),[ye,ge]=w.useState(!1),[We,lt]=w.useState(!1),[Ge,_n]=w.useState(!1),[ba,Rn]=w.useState(!1),[va,qr]=w.useState(0),[ar,uu]=w.useState(0),Ur=w.useRef(d.duration||I||uc),lu=w.useRef(null),qt=w.useRef(null),lp=S===0,cp=S+1<=v,_e=d.type,ir=d.dismissible!==!1,dp=d.className||"",fp=d.descriptionClassName||"",In=w.useMemo(()=>x.findIndex(U=>U.toastId===d.id)||0,[x,d.id]),pp=w.useMemo(()=>{var U;return(U=d.closeButton)!=null?U:M},[d.closeButton,M]),cu=w.useMemo(()=>d.duration||I||uc,[d.duration,I]),ya=w.useRef(0),sr=w.useRef(0),du=w.useRef(0),ur=w.useRef(null),[hp,mp]=N.split("-"),fu=w.useMemo(()=>x.reduce((U,te,le)=>le>=In?U:U+te.height,0),[x,In]),pu=HS(),gp=d.invert||f,xa=_e==="loading";sr.current=w.useMemo(()=>In*O+fu,[In,fu]),w.useEffect(()=>{Ur.current=cu},[cu]),w.useEffect(()=>{Ne(!0)},[]),w.useEffect(()=>{let U=qt.current;if(U){let te=U.getBoundingClientRect().height;return uu(te),m(le=>[{toastId:d.id,height:te,position:d.position},...le]),()=>m(le=>le.filter($e=>$e.toastId!==d.id))}},[m,d.id]),w.useLayoutEffect(()=>{if(!H)return;let U=qt.current,te=U.style.height;U.style.height="auto";let le=U.getBoundingClientRect().height;U.style.height=te,uu(le),m($e=>$e.find(Be=>Be.toastId===d.id)?$e.map(Be=>Be.toastId===d.id?{...Be,height:le}:Be):[{toastId:d.id,height:le,position:d.position},...$e])},[H,d.title,d.description,m,d.id]);let Nt=w.useCallback(()=>{ge(!0),qr(sr.current),m(U=>U.filter(te=>te.toastId!==d.id)),setTimeout(()=>{k(d)},rC)},[d,k,m,sr]);w.useEffect(()=>{if(d.promise&&_e==="loading"||d.duration===1/0||d.type==="loading")return;let U;return j||b||Z&&pu?(()=>{if(du.current<ya.current){let te=new Date().getTime()-ya.current;Ur.current=Ur.current-te}du.current=new Date().getTime()})():Ur.current!==1/0&&(ya.current=new Date().getTime(),U=setTimeout(()=>{var te;(te=d.onAutoClose)==null||te.call(d,d),Nt()},Ur.current)),()=>clearTimeout(U)},[j,b,d,_e,Z,pu,Nt]),w.useEffect(()=>{d.delete&&Nt()},[Nt,d.delete]);function bp(){var U,te,le;return q!=null&&q.loading?w.createElement("div",{className:He(L==null?void 0:L.loader,(U=d==null?void 0:d.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":_e==="loading"},q.loading):A?w.createElement("div",{className:He(L==null?void 0:L.loader,(te=d==null?void 0:d.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":_e==="loading"},A):w.createElement(DS,{className:He(L==null?void 0:L.loader,(le=d==null?void 0:d.classNames)==null?void 0:le.loader),visible:_e==="loading"})}return w.createElement("li",{tabIndex:0,ref:qt,className:He(T,dp,L==null?void 0:L.toast,(e=d==null?void 0:d.classNames)==null?void 0:e.toast,L==null?void 0:L.default,L==null?void 0:L[_e],(r=d==null?void 0:d.classNames)==null?void 0:r[_e]),"data-sonner-toast":"","data-rich-colors":(n=d.richColors)!=null?n:R,"data-styled":!(d.jsx||d.unstyled||g),"data-mounted":H,"data-promise":!!d.promise,"data-swiped":ba,"data-removed":ye,"data-visible":cp,"data-y-position":hp,"data-x-position":mp,"data-index":S,"data-front":lp,"data-swiping":We,"data-dismissible":ir,"data-type":_e,"data-invert":gp,"data-swipe-out":Ge,"data-swipe-direction":he,"data-expanded":!!(j||_&&H),style:{"--index":S,"--toasts-before":S,"--z-index":C.length-S,"--offset":`${ye?va:sr.current}px`,"--initial-height":_?"auto":`${ar}px`,...D,...d.style},onDragEnd:()=>{lt(!1),z(null),ur.current=null},onPointerDown:U=>{xa||!ir||(lu.current=new Date,qr(sr.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(lt(!0),ur.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,te,le,$e;if(Ge||!ir)return;ur.current=null;let Be=Number(((U=qt.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Tt=Number(((te=qt.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ut=new Date().getTime()-((le=lu.current)==null?void 0:le.getTime()),ze=B==="x"?Be:Tt,jt=Math.abs(ze)/Ut;if(Math.abs(ze)>=tC||jt>.11){qr(sr.current),($e=d.onDismiss)==null||$e.call(d,d),X(B==="x"?Be>0?"right":"left":Tt>0?"down":"up"),Nt(),_n(!0),Rn(!1);return}lt(!1),z(null)},onPointerMove:U=>{var te,le,$e,Be;if(!ur.current||!ir||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let Tt=U.clientY-ur.current.y,Ut=U.clientX-ur.current.x,ze=(le=t.swipeDirections)!=null?le:nC(N);!B&&(Math.abs(Ut)>1||Math.abs(Tt)>1)&&z(Math.abs(Ut)>Math.abs(Tt)?"x":"y");let jt={x:0,y:0};B==="y"?(ze.includes("top")||ze.includes("bottom"))&&(ze.includes("top")&&Tt<0||ze.includes("bottom")&&Tt>0)&&(jt.y=Tt):B==="x"&&(ze.includes("left")||ze.includes("right"))&&(ze.includes("left")&&Ut<0||ze.includes("right")&&Ut>0)&&(jt.x=Ut),(Math.abs(jt.x)>0||Math.abs(jt.y)>0)&&Rn(!0),($e=qt.current)==null||$e.style.setProperty("--swipe-amount-x",`${jt.x}px`),(Be=qt.current)==null||Be.style.setProperty("--swipe-amount-y",`${jt.y}px`)}},pp&&!d.jsx?w.createElement("button",{"aria-label":de,"data-disabled":xa,"data-close-button":!0,onClick:xa||!ir?()=>{}:()=>{var U;Nt(),(U=d.onDismiss)==null||U.call(d,d)},className:He(L==null?void 0:L.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},(a=q==null?void 0:q.close)!=null?a:zS):null,d.jsx||w.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:w.createElement(w.Fragment,null,_e||d.icon||d.promise?w.createElement("div",{"data-icon":"",className:He(L==null?void 0:L.icon,(i=d==null?void 0:d.classNames)==null?void 0:i.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||bp():null,d.type!=="loading"?d.icon||(q==null?void 0:q[_e])||RS(_e):null):null,w.createElement("div",{"data-content":"",className:He(L==null?void 0:L.content,(s=d==null?void 0:d.classNames)==null?void 0:s.content)},w.createElement("div",{"data-title":"",className:He(L==null?void 0:L.title,(u=d==null?void 0:d.classNames)==null?void 0:u.title)},typeof d.title=="function"?d.title():d.title),d.description?w.createElement("div",{"data-description":"",className:He(P,fp,L==null?void 0:L.description,(l=d==null?void 0:d.classNames)==null?void 0:l.description)},typeof d.description=="function"?d.description():d.description):null),w.isValidElement(d.cancel)?d.cancel:d.cancel&&Jn(d.cancel)?w.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||$,onClick:U=>{var te,le;Jn(d.cancel)&&ir&&((le=(te=d.cancel).onClick)==null||le.call(te,U),Nt())},className:He(L==null?void 0:L.cancelButton,(c=d==null?void 0:d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,w.isValidElement(d.action)?d.action:d.action&&Jn(d.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||E,onClick:U=>{var te,le;Jn(d.action)&&((le=(te=d.action).onClick)==null||le.call(te,U),!U.defaultPrevented&&Nt())},className:He(L==null?void 0:L.actionButton,(h=d==null?void 0:d.classNames)==null?void 0:h.actionButton)},d.action.label):null))};function lc(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function aC(t,e){let r={};return[t,e].forEach((n,o)=>{let a=o===1,i=a?"--mobile-offset":"--offset",s=a?ZS:JS;function u(l){["top","right","bottom","left"].forEach(c=>{r[`${i}-${c}`]=typeof l=="number"?`${l}px`:l})}typeof n=="number"||typeof n=="string"?u(n):typeof n=="object"?["top","right","bottom","left"].forEach(l=>{n[l]===void 0?r[`${i}-${l}`]=s:r[`${i}-${l}`]=typeof n[l]=="number"?`${n[l]}px`:n[l]}):u(s)}),r}w.forwardRef(function(t,e){let{invert:r,position:n="bottom-right",hotkey:o=["altKey","KeyT"],expand:a,closeButton:i,className:s,offset:u,mobileOffset:l,theme:c="light",richColors:h,duration:f,style:d,visibleToasts:g=KS,toastOptions:b,dir:m=lc(),gap:v=eC,loadingIcon:x,icons:S,containerAriaLabel:C="Notifications",pauseWhenPageIsHidden:j}=t,[k,R]=w.useState([]),M=w.useMemo(()=>Array.from(new Set([n].concat(k.filter(Z=>Z.position).map(Z=>Z.position)))),[k,n]),[D,$]=w.useState([]),[E,T]=w.useState(!1),[P,I]=w.useState(!1),[N,O]=w.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=w.useRef(null),_=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=w.useRef(null),q=w.useRef(!1),de=w.useCallback(Z=>{R(B=>{var z;return(z=B.find(he=>he.id===Z.id))!=null&&z.delete||Te.dismiss(Z.id),B.filter(({id:he})=>he!==Z.id)})},[]);return w.useEffect(()=>Te.subscribe(Z=>{if(Z.dismiss){R(B=>B.map(z=>z.id===Z.id?{...z,delete:!0}:z));return}setTimeout(()=>{Mi.flushSync(()=>{R(B=>{let z=B.findIndex(he=>he.id===Z.id);return z!==-1?[...B.slice(0,z),{...B[z],...Z},...B.slice(z+1)]:[Z,...B]})})})}),[]),w.useEffect(()=>{if(c!=="system"){O(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?O("dark"):O("light")),typeof window>"u")return;let Z=window.matchMedia("(prefers-color-scheme: dark)");try{Z.addEventListener("change",({matches:B})=>{O(B?"dark":"light")})}catch{Z.addListener(({matches:z})=>{try{O(z?"dark":"light")}catch(he){console.error(he)}})}},[c]),w.useEffect(()=>{k.length<=1&&T(!1)},[k]),w.useEffect(()=>{let Z=B=>{var z,he;o.every(X=>B[X]||B.code===X)&&(T(!0),(z=A.current)==null||z.focus()),B.code==="Escape"&&(document.activeElement===A.current||(he=A.current)!=null&&he.contains(document.activeElement))&&T(!1)};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[o]),w.useEffect(()=>{if(A.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,q.current=!1)}},[A.current]),w.createElement("section",{ref:e,"aria-label":`${C} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((Z,B)=>{var z;let[he,X]=Z.split("-");return k.length?w.createElement("ol",{key:Z,dir:m==="auto"?lc():m,tabIndex:-1,ref:A,className:s,"data-sonner-toaster":!0,"data-theme":N,"data-y-position":he,"data-lifted":E&&k.length>1&&!a,"data-x-position":X,style:{"--front-toast-height":`${((z=D[0])==null?void 0:z.height)||0}px`,"--width":`${QS}px`,"--gap":`${v}px`,...d,...aC(u,l)},onBlur:H=>{q.current&&!H.currentTarget.contains(H.relatedTarget)&&(q.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||q.current||(q.current=!0,L.current=H.relatedTarget)},onMouseEnter:()=>T(!0),onMouseMove:()=>T(!0),onMouseLeave:()=>{P||T(!1)},onDragEnd:()=>T(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},k.filter(H=>!H.position&&B===0||H.position===Z).map((H,Ne)=>{var ye,ge;return w.createElement(oC,{key:H.id,icons:S,index:Ne,toast:H,defaultRichColors:h,duration:(ye=b==null?void 0:b.duration)!=null?ye:f,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:r,visibleToasts:g,closeButton:(ge=b==null?void 0:b.closeButton)!=null?ge:i,interacting:P,position:Z,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,removeToast:de,toasts:k.filter(We=>We.position==H.position),heights:D.filter(We=>We.position==H.position),setHeights:$,expandByDefault:a,gap:v,loadingIcon:x,expanded:E,pauseWhenPageIsHidden:j,swipeDirections:t.swipeDirections})})):null}))});const ap={mobile:{width:375,icon:Wi,label:"Mobile (375px)"},tablet:{width:768,icon:Gi,label:"Tablet (768px)"},small:{width:1024,icon:Vi,label:"Small Desktop (1024px)"},desktop:{width:"100%",icon:Yi,label:"Desktop (Full)"}},iC=({handleSavePopup:t,setIsOpen:e,onSave:r,deviceSize:n,onDeviceSizeChange:o,setEditPopup:a,editPopup:i})=>{const{actions:s,query:u,canUndo:l,canRedo:c}=at((f,d)=>({canUndo:d.history.canUndo(),canRedo:d.history.canRedo()})),h=()=>{const f=u.serialize();i?t==null||t(f):r==null||r(f),YS.success("Page saved successfully")};return p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx(fn,{children:p.jsx(np,{type:"single",value:n,onValueChange:f=>f&&o(f),className:"bg-muted rounded-md p-1",children:Object.entries(ap).map(([f,{icon:d,label:g}])=>p.jsxs(Sr,{children:[p.jsx(Cr,{asChild:!0,children:p.jsx(op,{value:f,size:"sm",className:"data-[state=on]:bg-background data-[state=on]:shadow-sm",children:p.jsx(d,{className:"h-4 w-4"})})}),p.jsx(Kt,{side:"bottom",children:p.jsx("p",{children:g})})]},f))})}),p.jsx("div",{className:"h-6 w-px bg-border"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs(Xe,{variant:"outline",size:"sm",onClick:()=>a(f=>!f),children:[i?"Edit page":"Edit popup"," ",p.jsx(gh,{className:"h-4 w-4"})]}),p.jsx(Xe,{variant:"outline",size:"sm",onClick:()=>s.history.undo(),disabled:!l,children:p.jsx(wh,{className:"h-4 w-4"})}),p.jsx(Xe,{variant:"outline",size:"sm",onClick:()=>s.history.redo(),disabled:!c,children:p.jsx(ph,{className:"h-4 w-4"})}),p.jsxs(Xe,{size:"sm",onClick:()=>e(!0),children:["Preview Page ",p.jsx(uh,{className:"ml-2 h-4 w-4"})]}),p.jsxs(Xe,{size:"sm",onClick:h,children:[p.jsx(hh,{className:"h-4 w-4 mr-2"}),"Save"]})]})]})},ip=({children:t,className:e})=>{let r,n,o=!1;try{const{connectors:a,events:i}=ne(s=>({events:s.events}));r=a.connect,n=a.drag,o=i.selected}catch{}return p.jsx("div",{ref:a=>{a&&r&&n&&(r==null||r(n(a)))},className:tt("relative min-h-[100vh]",e||""),children:t})};ip.craft={props:{},displayName:"Body",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Body")}};const cc=({htmlJson:t,editorState:e})=>{const{actions:r}=at();return w.useEffect(()=>{t?r.deserialize(t):e?r.deserialize(e):r.deserialize({ROOT:{type:{resolvedName:"Body"},isCanvas:!0,props:{id:"mainBody",className:"bg-transparent"},displayName:"Body"}})},[]),p.jsx(ds,{})},sC=({htmlJson:t,enabled:e,popupEditorState:r})=>{const{actions:n}=at();return w.useEffect(()=>{if(t)n.deserialize(t);else if(r)n.deserialize(r);else{const o={ROOT:{type:{resolvedName:"Body"},isCanvas:!0,props:{id:"mainBody",className:"bg-transparent"},displayName:"Body",nodes:["popupWrapperNode"],linkedNodes:{}},popupWrapperNode:{type:{resolvedName:"Wrapper"},isCanvas:!0,props:{...pn,width:{desktop:{type:"custom",value:"100",unit:"%"}},height:{desktop:{type:"custom",value:"100",unit:"vh"}},backgroundColor:"rgba(0,0,0,0.25)",position:"absolute",top:0,left:0,display:"flex",justifyContent:"center",alignItems:"center",id:"popupWrapper",onClick:a=>{console.log("test"),a.target.id}},displayName:"Wrapper",nodes:["popupContainerNode"],parent:"ROOT",linkedNodes:{}},popupContainerNode:{type:{resolvedName:"Container"},isCanvas:!0,props:{...pn,width:{desktop:{type:"custom",value:"90",unit:"%"}},height:{desktop:{type:"custom",value:"60",unit:"%"}},backgroundColor:"white",id:"popupContainer"},displayName:"Container",nodes:[],parent:"popupWrapperNode",linkedNodes:{}}};n.deserialize(o)}},[]),p.jsx(ds,{})},Do={Body:ip,Div:Qs,Wrapper:Fr,Section:S0,Container:En,Text:Us,ButtonComponent:Ss,Heading:Vs,Image:Ws,Img:w0,Divider:Gs,Spacer:Ys,Video:Js,Columns:x0,Link:Zs,Footer:C0},uC=({handleSavePopup:t,popupEditorState:e,handleStateChangePopup:r,editorState:n,setIsOpen:o,initialData:a,onSave:i,onStateChange:s,enabled:u=!0})=>{var x;const l=Sn(),[c,h]=w.useState("desktop"),[f,d]=w.useState(!1),g=w.useRef(f);g.current=f;const b=((x=ap[c])==null?void 0:x.width)||"100%",m=S=>{if(console.log("handleStateChange"),s)try{const C=S.serialize();s(C)}catch(C){console.log(C)}},v=S=>{if(console.log("handleStateChange - popup"),r)try{const C=S.serialize();r(C)}catch(C){console.log(C)}};return u?p.jsx(li,{resolver:Do,enabled:u,onNodesChange:S=>{g.current?v(S):m(S)},children:p.jsx(fs,{value:c,children:p.jsx(Mo,{value:l,children:p.jsxs("div",{className:"flex flex-col h-full",children:[p.jsxs("div",{className:"flex items-center justify-between pb-4 border-b border-border",children:[p.jsx("h2",{className:"text-lg font-semibold",children:f?"Popup Builder":"Page Builder"}),p.jsx(iC,{setIsOpen:o,onSave:i,handleSavePopup:t,deviceSize:c,onDeviceSizeChange:h,editPopup:f,setEditPopup:d})]}),p.jsxs("div",{className:"flex gap-4 mt-4 flex-1 min-h-0",children:[p.jsx(Qr,{className:"w-52",children:p.jsxs(en,{className:"p-4 space-y-6",children:[p.jsx(V5,{}),p.jsx(lS,{})]})}),p.jsx(Qr,{className:"flex-1 overflow-hidden bg-muted/30 flex flex-col",children:p.jsx(en,{className:"p-4 flex-1 flex justify-center overflow-hidden",children:p.jsx(au,{className:"h-full w-full",children:p.jsx("div",{className:"flex justify-center min-h-full",children:p.jsx("div",{className:"bg-white rounded-lg min-h-full border border-dashed transition-all duration-300 ",style:{width:typeof b=="number"?`${b}px`:b,maxWidth:"100%"},children:f?p.jsx(sC,{popupEditorState:e,enabled:u}):p.jsx(cc,{editorState:n,htmlJson:a})})})})})}),p.jsx(Qr,{className:"w-64 flex flex-col",children:p.jsx(en,{className:"p-4 flex-1 overflow-hidden",children:p.jsx(sS,{})})})]})]})})})}):p.jsx(li,{resolver:Do,enabled:u,children:p.jsx(cc,{htmlJson:a})})},za={mobile:{width:375,label:"Mobile",icon:Wi},tablet:{width:768,label:"Tablet",icon:Gi},small:{width:1024,label:"Small",icon:Vi},desktop:{width:1440,label:"Desktop",icon:Yi}},lC=({editorState:t,deviceSize:e})=>p.jsx(li,{resolver:Do,enabled:!1,children:p.jsx(fs,{value:e,children:p.jsx(cC,{editorState:t})})}),cC=({editorState:t})=>{const{actions:e}=at();return w.useEffect(()=>{if(t&&(e!=null&&e.deserialize))try{e.deserialize(t)}catch(r){console.error("Failed to deserialize editor state:",r)}},[t,e]),p.jsx(ds,{})},sp=({isOpen:t,onClose:e,eventData:r,editorState:n,popupEditorState:o})=>{var u,l;const[a,i]=w.useState("desktop");if(w.useEffect(()=>{const c=h=>{h.key==="Escape"&&e()};if(t)return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[t,e]),!t)return null;const s=((u=za[a])==null?void 0:u.width)||1440;return p.jsxs("div",{className:"fixed inset-0 z-50 bg-background flex flex-col bg-white",children:[p.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border bg-card",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("h2",{className:"text-lg font-semibold",children:"Preview"}),p.jsxs("span",{className:"text-sm text-muted-foreground",children:["(",(l=za[a])==null?void 0:l.width,"px)"]})]}),p.jsx("div",{className:"flex items-center gap-1 bg-muted rounded-lg p-1",children:Object.entries(za).map(([c,{label:h,icon:f}])=>p.jsxs(Xe,{variant:"ghost",size:"sm",onClick:()=>i(c),className:Ih("h-8 px-3 gap-2",a===c&&"bg-background shadow-sm"),children:[p.jsx(f,{className:"h-4 w-4"}),p.jsx("span",{className:"hidden sm:inline",children:h})]},c))}),p.jsx(Xe,{variant:"ghost",size:"icon",onClick:e,children:p.jsx(Ch,{className:"h-5 w-5"})})]}),p.jsx("div",{className:"flex-1 overflow-auto bg-muted/50 p-6",children:p.jsx("div",{className:"flex justify-center min-h-full",children:p.jsx("div",{className:"bg-white rounded-lg shadow-xl transition-all duration-300 overflow-hidden p-4",style:{width:`${s}px`,maxWidth:"100%"},children:p.jsx(Mo,{value:r,children:n?p.jsx(lC,{editorState:n,deviceSize:a}):p.jsx("div",{className:"flex items-center justify-center h-48 text-muted-foreground",children:"No content to preview. Start building your page first."})})})})})]})},dC=({handleSavePopup:t,popupEditorState:e,handleStateChangePopup:r,editorState:n,initialData:o,onSave:a,onStateChange:i,eventData:s,enabled:u=!0})=>{const[l,c]=w.useState(!1);return p.jsx(Mo,{value:s,children:p.jsxs(w.Suspense,{fallback:p.jsx(Qr,{children:p.jsx(en,{className:"p-4",children:p.jsxs("div",{className:"space-y-4",children:[p.jsx(Dn,{className:"h-8 w-48"}),p.jsxs("div",{className:"flex gap-4",children:[p.jsx(Dn,{className:"h-[500px] w-48"}),p.jsx(Dn,{className:"h-[500px] flex-1"}),p.jsx(Dn,{className:"h-[500px] w-64"})]})]})})}),children:[p.jsx(uC,{popupEditorState:e,handleStateChangePopup:r,editorState:n,enabled:u,setIsOpen:c,initialData:o,onSave:a,handleSavePopup:t,onStateChange:i}),u?p.jsx(sp,{popupEditorState:e,eventData:s,editorState:n,isOpen:l,onClose:()=>c(!1)}):null]})})},up=w.createContext({fetchVideoByLocation:null}),fC=({children:t,fetchVideoByLocation:e})=>p.jsx(up.Provider,{value:{fetchVideoByLocation:e},children:t}),pC=()=>w.useContext(up);exports.ApiConfigProvider=fC;exports.DEVICE_ORDER=Ie;exports.DeviceSizeProvider=fs;exports.EventDataProvider=Mo;exports.PageBuilder=dC;exports.PreviewModal=sp;exports.TEMPLATE_VARIABLES=W3;exports.getPlaceholderPaths=V3;exports.getResponsiveValue=gt;exports.hasTemplatePlaceholders=U3;exports.processTemplate=Co;exports.resolver=Do;exports.useApiConfig=pC;exports.useDeviceSize=Ce;exports.useEventData=Sn;
279
+ `)});const s=e.nonTextTags||["script","style","textarea","option"];let u,l;e.allowedAttributes&&(u={},l={},fr(e.allowedAttributes,function(N,O){u[O]=[];const A=[];N.forEach(function(_){typeof _=="string"&&_.indexOf("*")>=0?A.push(rc(_).replace(/\\\*/g,".*")):u[O].push(_)}),A.length&&(l[O]=new RegExp("^("+A.join("|")+")$"))}));const c={},h={},f={};fr(e.allowedClasses,function(N,O){if(u&&(pt(u,O)||(u[O]=[]),u[O].push("class")),c[O]=N,Array.isArray(N)){const A=[];c[O]=[],f[O]=[],N.forEach(function(_){typeof _=="string"&&_.indexOf("*")>=0?A.push(rc(_).replace(/\\\*/g,".*")):_ instanceof RegExp?f[O].push(_):c[O].push(_)}),A.length&&(h[O]=new RegExp("^("+A.join("|")+")$"))}});const d={};let g;fr(e.transformTags,function(N,O){let A;typeof N=="function"?A=N:typeof N=="string"&&(A=Sn.simpleTransform(N)),O==="*"?g=A:d[O]=A});let b,m,v,x,S,C,j=!1;R();const k=new u5.Parser({onopentag:function(N,O){if(e.onOpenTag&&e.onOpenTag(N,O),e.enforceHtmlBoundary&&N==="html"&&R(),S){C++;return}const A=new a(N,O);m.push(A);let _=!1;const L=!!A.text;let q;if(pt(d,N)&&(q=d[N](N,O),A.attribs=O=q.attribs,q.text!==void 0&&(A.innerText=q.text),N!==q.tagName&&(A.name=N=q.tagName,x[b]=q.tagName)),g&&(q=g(N,O),A.attribs=O=q.attribs,N!==q.tagName&&(A.name=N=q.tagName,x[b]=q.tagName)),(!i(N)||e.disallowedTagsMode==="recursiveEscape"&&!h5(v)||e.nestingLimit!=null&&b>=e.nestingLimit)&&(_=!0,v[b]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&s.indexOf(N)!==-1&&(S=!0,C=1)),b++,_){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(A.innerText&&!L){const B=M(A.innerText);e.textFilter?n+=e.textFilter(B,N):n+=B,j=!0}return}o=n,n=""}n+="<"+N,N==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(A.innerText=""),_&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?fr(O,function(B,z){n+=" "+z+'="'+M(B||"",!0)+'"'}):(!u||pt(u,N)||u["*"])&&fr(O,function(B,z){if(!b5.test(z)){delete A.attribs[z];return}if(B===""&&!e.allowedEmptyAttributes.includes(z)&&(e.nonBooleanAttributes.includes(z)||e.nonBooleanAttributes.includes("*"))){delete A.attribs[z];return}let he=!1;if(!u||pt(u,N)&&u[N].indexOf(z)!==-1||u["*"]&&u["*"].indexOf(z)!==-1||pt(l,N)&&l[N].test(z)||l["*"]&&l["*"].test(z))he=!0;else if(u&&u[N]){for(const X of u[N])if(l5(X)&&X.name&&X.name===z){he=!0;let H="";if(X.multiple===!0){const Ne=B.split(" ");for(const ye of Ne)X.values.indexOf(ye)!==-1&&(H===""?H=ye:H+=" "+ye)}else X.values.indexOf(B)>=0&&(H=B);B=H}}if(he){if(e.allowedSchemesAppliedToAttributes.indexOf(z)!==-1&&D(N,B)){delete A.attribs[z];return}if(N==="script"&&z==="src"){let X=!0;try{const H=$(B);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Ne=(e.allowedScriptHostnames||[]).find(function(ge){return ge===H.url.hostname}),ye=(e.allowedScriptDomains||[]).find(function(ge){return H.url.hostname===ge||H.url.hostname.endsWith(`.${ge}`)});X=Ne||ye}}catch{X=!1}if(!X){delete A.attribs[z];return}}if(N==="iframe"&&z==="src"){let X=!0;try{const H=$(B);if(H.isRelativeUrl)X=pt(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Ne=(e.allowedIframeHostnames||[]).find(function(ge){return ge===H.url.hostname}),ye=(e.allowedIframeDomains||[]).find(function(ge){return H.url.hostname===ge||H.url.hostname.endsWith(`.${ge}`)});X=Ne||ye}}catch{X=!1}if(!X){delete A.attribs[z];return}}if(z==="srcset")try{let X=c5(B);if(X.forEach(function(H){D("srcset",H.url)&&(H.evil=!0)}),X=oc(X,function(H){return!H.evil}),X.length)B=m5(oc(X,function(H){return!H.evil})),A.attribs[z]=B;else{delete A.attribs[z];return}}catch{delete A.attribs[z];return}if(z==="class"){const X=c[N],H=c["*"],Ne=h[N],ye=f[N],ge=f["*"],We=h["*"],lt=[Ne,We].concat(ye,ge).filter(function(Ge){return Ge});if(X&&H?B=I(B,nc(X,H),lt):B=I(B,X||H,lt),!B.length){delete A.attribs[z];return}}if(z==="style"){if(e.parseStyleAttributes)try{const X=d5(N+" {"+B+"}",{map:!1}),H=E(X,e.allowedStyles);if(B=T(H),B.length===0){delete A.attribs[z];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+N+" {"+B+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete A.attribs[z];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+z,B&&B.length?n+='="'+M(B,!0)+'"':e.allowedEmptyAttributes.includes(z)&&(n+='=""')}else delete A.attribs[z]}),e.selfClosing.indexOf(N)!==-1?n+=" />":(n+=">",A.innerText&&!L&&!e.textFilter&&(n+=M(A.innerText),j=!0)),_&&(n=o+M(n),o=""),A.openingTagLength=n.length-A.tagPosition},ontext:function(N){if(S)return;const O=m[m.length-1];let A;if(O&&(A=O.tag,N=O.innerText!==void 0?O.innerText:N),e.disallowedTagsMode==="completelyDiscard"&&!i(A))N="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(A==="script"||A==="style"))n+=N;else if(!j){const _=M(N,!1);e.textFilter?n+=e.textFilter(_,A):n+=_}if(m.length){const _=m[m.length-1];_.text+=N}},onclosetag:function(N,O){if(e.onCloseTag&&e.onCloseTag(N,O),S)if(C--,!C)S=!1;else return;const A=m.pop();if(!A)return;if(A.tag!==N){m.push(A);return}S=e.enforceHtmlBoundary?N==="html":!1,b--;const _=v[b];if(_){if(delete v[b],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){A.updateParentNodeText();return}o=n,n=""}if(x[b]&&(N=x[b],delete x[b]),e.exclusiveFilter){const L=e.exclusiveFilter(A);if(L==="excludeTag"){_&&(n=o,o=""),n=n.substring(0,A.tagPosition)+n.substring(A.tagPosition+A.openingTagLength);return}else if(L){n=n.substring(0,A.tagPosition);return}}if(A.updateParentNodeMediaChildren(),A.updateParentNodeText(),e.selfClosing.indexOf(N)!==-1||O&&!i(N)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){_&&(n=o,o="");return}n+="</"+N+">",_&&(n=o+M(n),o=""),j=!1}},e.parser);return k.write(t),k.end(),n;function R(){n="",b=0,m=[],v={},x={},S=!1,C=0}function M(N,O){return typeof N!="string"&&(N=N+""),e.parser.decodeEntities&&(N=N.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(N=N.replace(/"/g,"&quot;"))),N=N.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(N=N.replace(/"/g,"&quot;")),N}function D(N,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const L=O.indexOf("<!--");if(L===-1)break;const q=O.indexOf("-->",L+4);if(q===-1)break;O=O.substring(0,L)+O.substring(q+3)}const A=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!A)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const _=A[1].toLowerCase();return pt(e.allowedSchemesByTag,N)?e.allowedSchemesByTag[N].indexOf(_)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(_)===-1}function $(N){if(N=N.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),N.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let L=0;L<100;L++)O+=`/${L}`;const A=new URL(N,O);return{isRelativeUrl:A&&A.hostname==="relative-site"&&A.protocol==="relative:",url:A}}function E(N,O){if(!O)return N;const A=N.nodes[0];let _;return O[A.selector]&&O["*"]?_=nc(O[A.selector],O["*"]):_=O[A.selector]||O["*"],_&&(N.nodes[0].nodes=A.nodes.reduce(P(_),[])),N}function T(N){return N.nodes[0].nodes.reduce(function(O,A){return O.push(`${A.prop}:${A.value}${A.important?" !important":""}`),O},[]).join(";")}function P(N){return function(O,A){return pt(N,A.prop)&&N[A.prop].some(function(L){return L.test(A.value)})&&O.push(A),O}}function I(N,O,A){return O?(N=N.split(/\s+/),N.filter(function(_){return O.indexOf(_)!==-1||A.some(function(L){return L.test(_)})}).join(" ")):N}}const v5={decodeEntities:!0};Sn.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};Sn.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,o){let a;if(r)for(a in e)o[a]=e[a];else o=e;return{tagName:t,attribs:o}}};const f0=Ho(g5),y5=[{command:"bold",icon:nh,label:"Bold"},{command:"italic",icon:ch,label:"Italic"},{command:"underline",icon:xh,label:"Underline"},{command:"strikeThrough",icon:vh,label:"Strikethrough"},{command:"insertUnorderedList",icon:fh,label:"Bullet List"},{command:"insertOrderedList",icon:dh,label:"Numbered List"}],x5={allowedTags:["b","i","u","s","strong","em","ul","ol","li","br","p","a","span"],allowedAttributes:{a:["href","target"],span:["style"]},allowedStyles:{span:{"text-decoration":[/^line-through$/]}}},w5=({label:t,value:e,onChange:r})=>{const n=w.useRef(null),[o,a]=w.useState(!1),[i,s]=w.useState(""),u=w.useRef(null);w.useEffect(()=>{n.current&&n.current.innerHTML!==e&&(n.current.innerHTML=e||"")},[]);const l=m=>{var v;document.execCommand(m,!1,null),(v=n.current)==null||v.focus(),c()},c=()=>{if(n.current){const m=n.current.innerHTML,v=f0(m,x5);r(v)}},h=()=>{const m=window.getSelection();m&&m.rangeCount>0&&(u.current=m.getRangeAt(0))},f=()=>{if(u.current){const m=window.getSelection();m==null||m.removeAllRanges(),m==null||m.addRange(u.current)}},d=()=>{h(),a(!0)},g=()=>{var m;if(i){f();let v=i.trim();v&&!v.match(/^https?:\/\//i)&&(v="https://"+v);try{new URL(v),document.execCommand("createLink",!1,v),c()}catch{}}a(!1),s(""),(m=n.current)==null||m.focus()},b=m=>{try{return document.queryCommandState(m)}catch{return!1}};return p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("div",{className:"flex items-center gap-0.5 p-1 bg-muted rounded-t border border-input border-b-0",children:p.jsxs(pn,{children:[y5.map(({command:m,icon:v,label:x})=>p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:S=>{S.preventDefault(),l(m)},className:`p-1.5 rounded hover:bg-background transition-colors ${b(m)?"bg-background text-primary":"text-muted-foreground"}`,children:p.jsx(v,{className:"h-3.5 w-3.5"})})}),p.jsx(Kt,{side:"top",children:p.jsx("p",{children:x})})]},m)),p.jsx("div",{className:"w-px h-4 bg-border mx-1"}),p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:m=>{m.preventDefault(),d()},className:"p-1.5 rounded hover:bg-background transition-colors text-muted-foreground",children:p.jsx(Vi,{className:"h-3.5 w-3.5"})})}),p.jsx(Kt,{side:"top",children:p.jsx("p",{children:"Insert Link"})})]})]})}),p.jsx("div",{ref:n,contentEditable:!0,onInput:c,onBlur:c,className:"min-h-[80px] max-h-[200px] overflow-y-auto p-2 text-xs rounded-b border border-input bg-background focus:outline-none focus:ring-1 focus:ring-ring prose prose-sm max-w-none [&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline",style:{wordBreak:"break-word"}}),o&&p.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:p.jsxs("div",{className:"bg-background p-4 rounded-lg shadow-lg w-80 space-y-3",children:[p.jsx("h4",{className:"text-sm font-medium",children:"Insert Link"}),p.jsx("input",{type:"url",value:i,onChange:m=>s(m.target.value),placeholder:"https://example.com",className:"w-full px-3 py-2 text-sm rounded border border-input bg-background",autoFocus:!0,onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),g()),m.key==="Escape"&&(a(!1),s(""))}}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx("button",{onClick:()=>{a(!1),s("")},className:"px-3 py-1.5 text-xs rounded border border-input hover:bg-muted",children:"Cancel"}),p.jsx("button",{onClick:g,className:"px-3 py-1.5 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90",children:"Insert"})]})]})})]})},S5={allowedTags:["b","i","u","s","strong","em","ul","ol","li","br","p","a","span"],allowedAttributes:{a:["href","target"],span:["style"]},allowedStyles:{span:{"text-decoration":[/^line-through$/]}}},Vs=({text:t="",html:e,fontSize:r={desktop:16},fontWeight:n="400",fontFamily:o="inherit",lineHeight:a={desktop:150},letterSpacing:i={desktop:0},textAlign:s="left",color:u="#000000",margin:l={top:0,right:0,bottom:0,left:0},textDecoration:c="none",textTransform:h="none",opacity:f=100})=>{const d=Ce(),g=Cn();let b,m,v;try{const{connectors:D,events:$}=ne(E=>({events:E.events}));b=D.connect,m=D.drag,v=$.selected}catch{}const x=Eo(t,g),S=D=>[D][d]||[D].desktop,C=typeof S("margin")=="object"?`${S("margin").top}px ${S("margin").right}px ${S("margin").bottom}px ${S("margin").left}px`:`${S("margin")}px`,j=gt(r,d,16),k=gt(a,d,150)/100,R=gt(i,d,0),M=/<[^>]+>/.test(x);return p.jsx("div",{ref:D=>D&&b&&m&&b(m(D)),className:`cursor-move ${v?"outline outline-blue-500":""}`,style:{fontSize:`${j}px`,fontWeight:n,fontFamily:o,lineHeight:k,letterSpacing:`${R}px`,textAlign:s,color:u,margin:C,textDecoration:c,textTransform:h,opacity:f/100},children:e||M?p.jsx("div",{dangerouslySetInnerHTML:{__html:f0(Eo(e||x,g),S5)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):x})},C5=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"&&!("desktop"in e.margin)?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsx(V,{title:"Content",defaultOpen:!0,children:p.jsx(w5,{label:"Text",value:e.html??e.text,onChange:n=>t(o=>{o.html=null,o.text=n})})}),p.jsxs(V,{title:"Typography",defaultOpen:!0,children:[p.jsx(J,{label:"Font",value:e.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"Menlo, monospace",label:"Mono"},{value:"system-ui",label:"System"}],onChange:n=>t(o=>o.fontFamily=n)}),p.jsx(So,{label:"Size",values:e.fontSize,onChange:n=>t(o=>o.fontSize=n),min:8,max:120,defaultValue:16}),p.jsx(J,{label:"Weight",value:e.fontWeight||"400",options:[{value:"300",label:"Light"},{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"}],onChange:n=>t(o=>o.fontWeight=n)}),p.jsx(Co,{label:"Line Height",values:e.lineHeight,onChange:n=>t(o=>o.lineHeight=n),min:80,max:250,unit:"%",defaultValue:150}),p.jsx(So,{label:"Letter Spacing",values:e.letterSpacing,onChange:n=>t(o=>o.letterSpacing=n),min:-5,max:20,defaultValue:0}),p.jsx(vt,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(zi,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Bi,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Hi,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)}),p.jsx(J,{label:"Transform",value:e.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:n=>t(o=>o.textTransform=n)}),p.jsx(J,{label:"Decoration",value:e.textDecoration||"none",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"},{value:"line-through",label:"Strikethrough"}],onChange:n=>t(o=>o.textDecoration=n)})]}),p.jsxs(V,{title:"Color",defaultOpen:!1,children:[p.jsx(Qe,{label:"Text Color",value:e.color||"#000000",onChange:n=>t(o=>o.color=n)}),p.jsx(Co,{label:"Opacity",values:e.opacity,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})}),p.jsx(V,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(Qd,{})})]})};Vs.craft={displayName:"Text",props:{text:"Edit me",fontSize:{desktop:16},fontWeight:"400",fontFamily:"inherit",lineHeight:{desktop:150},letterSpacing:{desktop:0},textAlign:"left",color:"#000000",margin:{desktop:{top:0,right:0,bottom:0,left:0}},textDecoration:"none",textTransform:"none",opacity:{desktop:100}},related:{settings:C5}};const on={1:{desktop:48,small:42,tablet:36,mobile:28},2:{desktop:36,small:32,tablet:28,mobile:24},3:{desktop:28,small:26,tablet:24,mobile:20},4:{desktop:22,small:20,tablet:18,mobile:16}},Ws=({text:t="Heading",level:e=2,textAlign:r="left",color:n="#000000",fontWeight:o="700",fontFamily:a="inherit",fontSize:i="auto",lineHeight:s={desktop:120},letterSpacing:u={desktop:-.5},margin:l={top:0,right:0,bottom:16,left:0},textTransform:c="none",opacity:h={desktop:100}})=>{var M,D,$;const f=Ce(),d=Cn();let g,b,m;try{const{connectors:E,events:T}=ne(P=>({events:P.events}));g=E.connect,b=E.drag,m=T.selected}catch{}const v=Eo(t,d),x=`h${e}`;let S;i==="auto"?S=((M=on[e])==null?void 0:M[f])||((D=on[e])==null?void 0:D.desktop)||36:S=gt(i,f,(($=on[e])==null?void 0:$.desktop)||36);const C=gt(s,f,120)/100,j=gt(u,f,-.5),k=gt(h,f,100),R=typeof l[f]=="object"?`${l[f].top}px ${l[f].right}px ${l[f].bottom}px ${l[f].left}px`:`${l[f]}px`;return p.jsx(x,{ref:E=>E&&g&&b&&g(b(E)),className:`cursor-move ${m?"outline outline-blue-500":""}`,style:{textAlign:r,color:n,fontWeight:o,fontFamily:a,fontSize:`${S}px`,lineHeight:C,letterSpacing:`${j}px`,margin:R,textTransform:c,opacity:k/100},children:v})},E5=()=>{var a;const t=Ce(),{actions:{setProp:e},props:r}=ne(i=>({props:i.data.props})),n=typeof r.margin=="object"&&!("desktop"in r.margin)?r.margin:{top:0,right:0,bottom:16,left:0},o=()=>{var i;return r.fontSize==="auto"?((i=on[r.level||2])==null?void 0:i[t])||36:gt(r.fontSize,t,36)};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Content",defaultOpen:!0,children:[p.jsx($t,{label:"Text",value:r.text,onChange:i=>e(s=>s.text=i)}),p.jsx(vt,{label:"Level",value:r.level||2,options:[{value:1,label:"H1"},{value:2,label:"H2"},{value:3,label:"H3"},{value:4,label:"H4"}],onChange:i=>e(s=>{s.level=i,s.fontSize})})]}),p.jsxs(V,{title:"Typography",defaultOpen:!0,children:[p.jsx(J,{label:"Font",value:r.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"system-ui",label:"System"}],onChange:i=>e(s=>s.fontFamily=i)}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:"Size Mode"}),p.jsx("button",{onClick:()=>e(i=>i.fontSize=i.fontSize==="auto"?{desktop:o()}:"auto"),className:`text-xs px-2 py-0.5 rounded ${r.fontSize==="auto"?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:r.fontSize==="auto"?"Auto (Responsive)":"Custom"})]}),r.fontSize!=="auto"&&p.jsx(So,{label:"Size",values:r.fontSize,onChange:i=>e(s=>s.fontSize=i),min:12,max:120,defaultValue:((a=on[r.level||2])==null?void 0:a.desktop)||36})]}),p.jsx(J,{label:"Weight",value:r.fontWeight||"700",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"},{value:"900",label:"Black"}],onChange:i=>e(s=>s.fontWeight=i)}),p.jsx(Co,{label:"Line Height",values:r.lineHeight,onChange:i=>e(s=>s.lineHeight=i),min:80,max:200,unit:"%",defaultValue:120}),p.jsx(So,{label:"Letter Spacing",values:r.letterSpacing,onChange:i=>e(s=>s.letterSpacing=i),min:-5,max:20,defaultValue:-.5}),p.jsx(vt,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:p.jsx(zi,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Bi,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Hi,{className:"h-3 w-3"})}],onChange:i=>e(s=>s.textAlign=i)}),p.jsx(J,{label:"Transform",value:r.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:i=>e(s=>s.textTransform=i)})]}),p.jsxs(V,{title:"Color",defaultOpen:!1,children:[p.jsx(Qe,{label:"Text Color",value:r.color||"#000000",onChange:i=>e(s=>s.color=i)}),p.jsx(Co,{label:"Opacity",values:r.opacity,onChange:i=>e(s=>s.opacity=i),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:n,onChange:i=>e(s=>s.margin={...s.margin,...i})})}),p.jsx(V,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(Qd,{})})]})};Ws.craft={displayName:"Heading",props:{text:"Heading",level:2,textAlign:"left",color:"#000000",fontWeight:"700",fontFamily:"inherit",fontSize:"auto",lineHeight:{desktop:120},letterSpacing:{desktop:-.5},margin:{top:0,right:0,bottom:16,left:0},textTransform:"none",opacity:{desktop:100}},related:{settings:E5}};const Gs=({src:t="https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:e="Image",width:r="full",height:n="auto",maxWidth:o="none",objectFit:a="cover",borderRadius:i=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const c=Ce();let h,f,d;try{const{connectors:b,events:m}=ne(v=>({events:v.events}));h=b.connect,f=b.drag,d=m.selected}catch{}const g=typeof s[c]=="object"?`${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px`:`${s[c]}px`;return p.jsx("img",{ref:b=>b&&h&&f&&h(f(b)),src:t,alt:e,className:`cursor-move ${d?"outline outline-blue-500":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:a,borderRadius:`${i}px`,margin:g,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},N5=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Source",defaultOpen:!0,children:[p.jsx($t,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx($t,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(V,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Width",value:typeof e.width=="number"?"custom":e.width,options:[{value:"full",label:"Full Width"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(pe,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(J,{label:"Height",value:typeof e.height=="number"?"custom":e.height,options:[{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(pe,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(J,{label:"Object Fit",value:e.objectFit||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"}],onChange:n=>t(o=>o.objectFit=n)})]}),p.jsxs(V,{title:"Style",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(aa,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 4px 12px rgba(0,0,0,0.1)",label:"Small"},{value:"0 8px 24px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 16px 48px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Gs.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100,boxShadow:"none"},related:{settings:N5}};const Ys=({color:t="#e5e5e5",height:e=1,width:r="full",style:n="solid",margin:o={top:16,right:0,bottom:16,left:0},opacity:a=100})=>{const i=Ce();let s,u,l;try{const{connectors:h,events:f}=ne(d=>({events:d.events}));s=h.connect,u=h.drag,l=f.selected}catch{}const c=typeof o[i]=="object"?`${o[i].top}px ${o[i].right}px ${o[i].bottom}px ${o[i].left}px`:`${o[i]}px`;return p.jsx("hr",{ref:h=>h&&s&&u&&(s==null?void 0:s(u==null?void 0:u(h))),className:`cursor-move border-0 ${l?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":`${r}%`,height:`${e}px`,backgroundColor:t,margin:c,opacity:a/100,borderStyle:n,borderWidth:n==="solid"?0:`${e}px`,borderColor:t}})},T5=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:16,right:0,bottom:16,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Style",defaultOpen:!0,children:[p.jsx(J,{label:"Style",value:e.style||"solid",options:[{value:"solid",label:"Solid"},{value:"dashed",label:"Dashed"},{value:"dotted",label:"Dotted"}],onChange:n=>t(o=>o.style=n)}),p.jsx(Qe,{label:"Color",value:e.color||"#e5e5e5",onChange:n=>t(o=>o.color=n)}),p.jsx(pe,{unit:"px",label:"Thickness",value:e.height||1,onChange:n=>t(o=>o.height=n),min:1,max:20}),p.jsx(J,{label:"Width",value:e.width==="full"?"full":"custom",options:[{value:"full",label:"Full Width"},{value:"custom",label:"Custom %"}],onChange:n=>t(o=>o.width=n==="full"?"full":50)}),e.width!=="full"&&p.jsx(pe,{label:"Width %",value:e.width,onChange:n=>t(o=>o.width=n),min:10,max:100,unit:"%"})]}),p.jsx(V,{title:"Spacing",defaultOpen:!0,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Ys.craft={displayName:"Divider",props:{color:"#e5e5e5",height:1,width:"full",style:"solid",margin:{top:16,right:0,bottom:16,left:0},opacity:100},related:{settings:T5}};const Xs=({height:t=40,responsive:e=!1,mobileHeight:r=20})=>{let n,o,a;try{const{connectors:i,events:s}=ne(u=>({events:u.events}));n=i.connect,o=i.drag,a=s.selected}catch{}return p.jsxs("div",{ref:i=>i&&n&&o&&n(o(i)),className:`cursor-move w-full relative group ${a?"ring-2 ring-primary ring-offset-2":""}`,style:{height:`${t}px`},children:[p.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:p.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-secondary/80 px-2 py-1 rounded",children:[p.jsx("span",{children:"↕"}),p.jsxs("span",{children:[t,"px"]})]})}),p.jsx("div",{className:"absolute inset-x-0 top-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"}),p.jsx("div",{className:"absolute inset-x-0 bottom-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"})]})},j5=()=>{const{actions:{setProp:t},props:e}=ne(r=>({props:r.data.props}));return p.jsx("div",{className:"space-y-3",children:p.jsxs(V,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Preset",value:"custom",options:[{value:"xs",label:"XS (8px)"},{value:"sm",label:"Small (16px)"},{value:"md",label:"Medium (32px)"},{value:"lg",label:"Large (64px)"},{value:"xl",label:"XL (96px)"},{value:"custom",label:"Custom"}],onChange:r=>{const n={xs:8,sm:16,md:32,lg:64,xl:96};n[r]&&t(o=>o.height=n[r])}}),p.jsx(pe,{unit:"px",label:"Height",value:e.height||40,onChange:r=>t(n=>n.height=r),min:4,max:300})]})})};Xs.craft={displayName:"Spacer",props:{height:40,responsive:!1,mobileHeight:20},related:{settings:j5}};const A5=window.location.href.includes("localhost")?"http://localhost:5000/api":"https://api.myracereel.com/api";function O5(){const t=localStorage.getItem("tokens");if(t){const{accessToken:e}=JSON.parse(t);return{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}return{"Content-Type":"application/json"}}async function k5(t,e={}){const r=await fetch(`${A5}${t}`,{...e,headers:{...O5(),...e.headers}}),n=await r.json();if(!r.ok)throw new Error(n.message||"Request failed");return n}async function P5(t,e){return(await k5(`/videos/${t}/${e||""}`)).data}function _5(t){const e=y.useRef({value:t,previous:t});return y.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var ma="Checkbox",[R5]=tr(ma),[I5,Ks]=R5(ma);function D5(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:o,disabled:a,form:i,name:s,onCheckedChange:u,required:l,value:c="on",internal_do_not_use_render:h}=t,[f,d]=Hr({prop:r,defaultProp:o??!1,onChange:u,caller:ma}),[g,b]=y.useState(null),[m,v]=y.useState(null),x=y.useRef(!1),S=g?!!i||!!g.closest("form"):!0,C={checked:f,disabled:a,setChecked:d,control:g,setControl:b,name:s,form:i,value:c,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:_t(o)?!1:o,isFormControl:S,bubbleInput:m,setBubbleInput:v};return p.jsx(I5,{scope:e,...C,children:M5(h)?h(C):n})}var p0="CheckboxTrigger",h0=y.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},o)=>{const{control:a,value:i,disabled:s,checked:u,required:l,setControl:c,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:d,bubbleInput:g}=Ks(p0,t),b=we(o,c),m=y.useRef(u);return y.useEffect(()=>{const v=a==null?void 0:a.form;if(v){const x=()=>h(m.current);return v.addEventListener("reset",x),()=>v.removeEventListener("reset",x)}},[a,h]),p.jsx(me.button,{type:"button",role:"checkbox","aria-checked":_t(u)?"mixed":u,"aria-required":l,"data-state":y0(u),"data-disabled":s?"":void 0,disabled:s,value:i,...n,ref:b,onKeyDown:ue(e,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:ue(r,v=>{h(x=>_t(x)?!0:!x),g&&d&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})})});h0.displayName=p0;var Js=y.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:i,disabled:s,value:u,onCheckedChange:l,form:c,...h}=t;return p.jsx(D5,{__scopeCheckbox:r,checked:o,defaultChecked:a,disabled:s,required:i,onCheckedChange:l,name:n,form:c,value:u,internal_do_not_use_render:({isFormControl:f})=>p.jsxs(p.Fragment,{children:[p.jsx(h0,{...h,ref:e,__scopeCheckbox:r}),f&&p.jsx(v0,{__scopeCheckbox:r})]})})});Js.displayName=ma;var m0="CheckboxIndicator",g0=y.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...o}=t,a=Ks(m0,r);return p.jsx(rr,{present:n||_t(a.checked)||a.checked===!0,children:p.jsx(me.span,{"data-state":y0(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:e,style:{pointerEvents:"none",...t.style}})})});g0.displayName=m0;var b0="CheckboxBubbleInput",v0=y.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:s,disabled:u,name:l,value:c,form:h,bubbleInput:f,setBubbleInput:d}=Ks(b0,t),g=we(r,d),b=_5(a),m=Rd(n);y.useEffect(()=>{const x=f;if(!x)return;const S=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(S,"checked").set,k=!o.current;if(b!==a&&j){const R=new Event("click",{bubbles:k});x.indeterminate=_t(a),j.call(x,_t(a)?!1:a),x.dispatchEvent(R)}},[f,b,a,o]);const v=y.useRef(_t(a)?!1:a);return p.jsx(me.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??v.current,required:s,disabled:u,name:l,value:c,form:h,...e,tabIndex:-1,ref:g,style:{...e.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});v0.displayName=b0;function M5(t){return typeof t=="function"}function _t(t){return t==="indeterminate"}function y0(t){return _t(t)?"indeterminate":t?"checked":"unchecked"}const x0=y.forwardRef(({className:t,...e},r)=>p.jsx(Js,{ref:r,className:Se("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:p.jsx(g0,{className:Se("flex items-center justify-center text-current"),children:p.jsx(Fi,{className:"h-4 w-4"})})}));x0.displayName=Js.displayName;const L5=({onDownload:t,disabled:e=!1})=>{const[r,n]=w.useState(!0),[o,a]=w.useState(!1),[i,s]=w.useState(!1);w.useEffect(()=>{try{s(window.self!==window.top)}catch{s(!0)}},[]);const u=()=>{r&&t&&!o&&(t(),a(!0),i&&window.parent.postMessage({type:"OPEN_POPUP",payload:"1"},"*"))};return p.jsxs("div",{className:"py-4 max-w-[600px] w-full flex flex-col justify-center items-center",children:[p.jsx("div",{className:"flex w-full md:w-1/2 justify-center items-center",children:p.jsx(Xe,{disabled:!r||o||e,onClick:u,className:"w-full",children:o?p.jsxs(p.Fragment,{children:[p.jsx(Fi,{className:"h-4 w-4 mr-2"}),"Thank you!"]}):p.jsxs(p.Fragment,{children:[p.jsx(sh,{className:"h-4 w-4 mr-2"}),"Download"]})})}),p.jsxs("label",{className:"flex items-start space-x-2 cursor-pointer mt-4",children:[p.jsx(x0,{checked:r,onCheckedChange:l=>n(l===!0),className:"mt-0.5"}),p.jsxs("span",{className:"text-sm text-muted-foreground",children:["I accept the"," ",p.jsx("a",{href:"https://myracereel.com/terms-of-service",className:"underline hover:text-foreground transition-colors",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"}),"."]})]})]})},qr=t=>{let e,r,n=!1,o;try{const{connectors:a,events:i}=ne(u=>({events:u.events}));e=a.connect,r=a.drag,n=i.selected;const{editorEnabled:s}=at(u=>({editorEnabled:u.options.enabled}));o=s}catch{}return p.jsx("div",{...t.id?{id:t.id}:{},ref:a=>a&&e&&r&&e(r(a)),style:Es(t),className:tt(`min-h-2.5 ${n?"outline outline-blue-500":""}`,"w-full flex justify-center",t.className),...!o&&t.onClick?{onClick:a=>t.onClick(a)}:{},children:t.children})},$5={...hn,display:"flex",justifyContent:"center",alignItems:"center"};qr.craft={props:$5,displayName:"Wrapper",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName==="Container")},related:{settings:ia}};const B5=(t,e)=>{if(typeof t!="object"||t===null)return t;const r=["mobile","tablet","small","desktop"],n=r.indexOf(e);for(let o=n;o>=0;o--)if(t[r[o]]!==void 0)return t[r[o]];return t.desktop??t.mobile??0},z5=({locationId:t,bibId:e,editorEnabled:r,videoTitle:n})=>{const o=w.useRef(null),{data:a,isLoading:i,error:s}=vp.useQuery({queryKey:["video",t,e],queryFn:()=>P5(t,e),enabled:!!t});if(i)return p.jsx("div",{className:"flex items-center justify-center h-48 bg-muted rounded-lg",children:p.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-muted-foreground border-t-transparent"})});if(s||!a)return r?p.jsxs("div",{className:"flex flex-col items-center gap-1 justify-center py-6 px-4 bg-muted/50 rounded-lg border border-dashed border-muted-foreground/30",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(oh,{className:"h-5 w-5 text-muted-foreground"}),p.jsx("p",{className:"text-muted-foreground text-sm font-medium",children:"Video not found (404)"})]}),p.jsx("p",{className:"text-muted-foreground/70 text-xs",children:"This will be hidden on the live page"})]}):null;const{videoFromIrewind:u}=a,l=async()=>{if(!r)try{const c=document.createElement("a");c.href=u.mp4_hr_url,c.download=`${u.name||e}-video`,c.style.display="none",document.body.appendChild(c),c.click(),document.body.removeChild(c)}catch(c){console.error("Download failed:",c)}};return p.jsx(qr,{children:p.jsx(Nn,{children:p.jsx("div",{className:"w-full",children:p.jsxs("div",{className:"flex flex-col items-center",children:[p.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:n}),p.jsxs("h3",{className:"text-lg font-semibold text-foreground mb-3",children:[u.name," (",u.start_no,")"]}),p.jsxs("video",{ref:o,controls:!0,controlsList:"nodownload",className:"w-full max-w-2xl rounded-lg shadow-md",children:[p.jsx("source",{src:u.mp4_hr_url,type:"video/mp4"}),"Your browser does not support HTML5 video."]}),p.jsx(L5,{onDownload:l,disabled:r})]})})})})},Zs=({padding:t={mobile:16,desktop:24},margin:e={top:0,right:0,bottom:0,left:0},background:r="transparent",borderRadius:n=8,boxShadow:o="none"})=>{const a=Ce(),i=Cn();let s,u,l;try{const{connectors:m,events:v}=ne(x=>({events:x.events}));s=m.connect,u=m.drag,l=v.selected}catch{}let c=!1;try{let{options:m}=at(v=>({options:v.options}));c=m.enabled}catch{}const h=B5(t,a),f={none:"none",sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1)"},d={padding:`${h}px`,marginTop:`${e.top}px`,marginRight:`${e.right}px`,marginBottom:`${e.bottom}px`,marginLeft:`${e.left}px`,background:r,borderRadius:`${n}px`,boxShadow:f[o]||"none"},g=(i==null?void 0:i.videos)||[],b=g.length>0;return p.jsx("div",{ref:m=>m&&s&&u&&s(u(m)),style:d,className:`transition-all ${l?"ring-2 ring-primary ring-offset-2":""}`,children:b?p.jsx("div",{className:"space-y-6",children:g.map(m=>p.jsx(z5,{locationId:m.locationId,bibId:i==null?void 0:i.bibId,editorEnabled:c,videoTitle:m.name||m.locationId},m.locationId))}):p.jsxs("div",{className:"flex flex-col items-center justify-center h-48 bg-muted rounded-lg border-2 border-dashed border-muted-foreground/30",children:[p.jsx(Cc,{className:"h-10 w-10 text-muted-foreground mb-2"}),p.jsxs("p",{className:"text-muted-foreground text-sm text-center",children:["No video locations available.",p.jsx("br",{}),p.jsx("span",{className:"text-xs",children:"Add videos to your event first."})]})]})})},H5=()=>{const{actions:{setProp:t},padding:e,margin:r,background:n,borderRadius:o,boxShadow:a}=ne(s=>({padding:s.data.props.padding,margin:s.data.props.margin,background:s.data.props.background,borderRadius:s.data.props.borderRadius,boxShadow:s.data.props.boxShadow})),i=[{value:"none",label:"None"},{value:"sm",label:"Small"},{value:"md",label:"Medium"},{value:"lg",label:"Large"},{value:"xl",label:"Extra Large"}];return p.jsxs("div",{className:"space-y-1",children:[p.jsx(V,{title:"Info",children:p.jsx("p",{className:"text-xs text-muted-foreground",children:"All available videos will be displayed automatically."})}),p.jsxs(V,{title:"Style",children:[p.jsx(pe,{unit:"px",label:"Padding",value:(e==null?void 0:e.desktop)??24,onChange:s=>t(u=>u.padding={...u.padding,desktop:s,mobile:s}),min:0,max:100}),p.jsx(pe,{unit:"px",label:"Border Radius",value:o,onChange:s=>t(u=>u.borderRadius=s),min:0,max:50}),p.jsx(Qe,{label:"Background",value:n,onChange:s=>t(u=>u.background=s)}),p.jsx(J,{label:"Shadow",value:a,options:i,onChange:s=>t(u=>u.boxShadow=s)})]}),p.jsx(V,{title:"Spacing",children:p.jsx(Me,{label:"Margin",values:r,onChange:s=>t(u=>u.margin=s)})})]})};Zs.craft={displayName:"Video",props:{padding:{mobile:16,desktop:24},margin:{desktop:{top:0,right:0,bottom:0,left:0}},background:"transparent",borderRadius:8,boxShadow:"none"},related:{settings:H5}};const w0=({columns:t=2,gap:e=16,padding:r={top:0,right:0,bottom:0,left:0},margin:n={top:0,right:0,bottom:0,left:0},alignItems:o="stretch",children:a})=>{const i=Ce();let s,u,l;try{const{connectors:d,events:g}=ne(b=>({events:b.events}));s=d.connect,u=d.drag,l=g.selected}catch{}const c=d=>[d][i]||[d].desktop,h=typeof c("padding")=="object"?`${c("padding").top}px ${c("padding").right}px ${c("padding").bottom}px ${c("padding").left}px`:`${c("padding")}px`,f=typeof c("margin")=="object"?`${c("margin").top}px ${c("margin").right}px ${c("margin").bottom}px ${c("margin").left}px`:`${c("margin")}px`;return p.jsx("div",{ref:d=>d&&s&&u&&(s==null?void 0:s(u==null?void 0:u(d))),className:`cursor-move w-full ${l?"ring-2 ring-primary ring-offset-2":""}`,style:{display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gap:`${e}px`,padding:h,margin:f,alignItems:o},children:a})},F5=()=>{const{actions:{setProp:t},props:e}=ne(o=>({props:o.data.props})),r=typeof e.padding=="object"?e.padding:{top:0,right:0,bottom:0,left:0},n=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Layout",defaultOpen:!0,children:[p.jsx(vt,{label:"Columns",value:e.columns||2,options:[{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"}],onChange:o=>t(a=>a.columns=o)}),p.jsx(pe,{unit:"px",label:"Gap",value:e.gap||16,onChange:o=>t(a=>a.gap=o),max:64}),p.jsx(J,{label:"Align Items",value:e.alignItems||"stretch",options:[{value:"stretch",label:"Stretch"},{value:"start",label:"Top"},{value:"center",label:"Center"},{value:"end",label:"Bottom"}],onChange:o=>t(a=>a.alignItems=o)})]}),p.jsxs(V,{title:"Spacing",defaultOpen:!1,children:[p.jsx(Me,{label:"Padding",values:r,onChange:o=>t(a=>a.padding={...a.padding,...o})}),p.jsx(Me,{label:"Margin",values:n,onChange:o=>t(a=>a.margin={...a.margin,...o})})]})]})};w0.craft={displayName:"Columns",props:{columns:2,gap:16,padding:{desktop:{top:0,right:0,bottom:0,left:0}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},alignItems:"stretch"},related:{settings:F5}};const Qs=({text:t="Click here",url:e="#",target:r="_self",fontSize:n=16,fontWeight:o="400",color:a="#0066cc",hoverColor:i="#0052a3",textDecoration:s="underline",textAlign:u="left",margin:l={top:0,right:0,bottom:0,left:0},opacity:c=100})=>{const h=Ce();let f,d,g;try{const{connectors:m,events:v}=ne(x=>({events:x.events}));f=m.connect,d=m.drag,g=v.selected}catch{}const b=typeof l[h]=="object"?`${l[h].top}px ${l[h].right}px ${l[h].bottom}px ${l[h].left}px`:`${l[h]}px`;return p.jsx("a",{ref:m=>m&&f&&d&&f(d(m)),href:e,target:r,rel:r==="_blank"?"noopener noreferrer":void 0,onClick:m=>m.preventDefault(),className:`cursor-move inline-block transition-colors hover:opacity-80 ${g?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${n}px`,fontWeight:o,color:a,textDecoration:s,textAlign:u,margin:b,opacity:c/100,display:"block"},children:t})},q5=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Content",defaultOpen:!0,children:[p.jsx($t,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)}),p.jsx($t,{label:"URL",value:e.url,onChange:n=>t(o=>o.url=n)}),p.jsx(J,{label:"Open in",value:e.target||"_self",options:[{value:"_self",label:"Same Tab"},{value:"_blank",label:"New Tab"}],onChange:n=>t(o=>o.target=n)})]}),p.jsxs(V,{title:"Typography",defaultOpen:!0,children:[p.jsx(pe,{unit:"px",label:"Font Size",value:e.fontSize||16,onChange:n=>t(o=>o.fontSize=n),min:10,max:48}),p.jsx(J,{label:"Weight",value:e.fontWeight||"400",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"}],onChange:n=>t(o=>o.fontWeight=n)}),p.jsx(J,{label:"Decoration",value:e.textDecoration||"underline",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"}],onChange:n=>t(o=>o.textDecoration=n)}),p.jsx(vt,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(zi,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Bi,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Hi,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)})]}),p.jsxs(V,{title:"Color",defaultOpen:!1,children:[p.jsx(Qe,{label:"Link Color",value:e.color||"#0066cc",onChange:n=>t(o=>o.color=n)}),p.jsx(aa,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Qs.craft={displayName:"Link",props:{text:"Click here",url:"#",target:"_self",fontSize:16,fontWeight:"400",color:"#0066cc",hoverColor:"#0052a3",textDecoration:"underline",textAlign:"left",margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100},related:{settings:q5}};const S0=({src:t="https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:e="Image",width:r="full",height:n="auto",maxWidth:o="none",objectFit:a="cover",borderRadius:i=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const c=Ce();let h,f,d;try{const{connectors:b,events:m}=ne(v=>({events:v.events}));h=b.connect,f=b.drag,d=m.selected}catch{}const g=typeof s[c]=="object"?`${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px`:`${s[c]}px`;return p.jsx("img",{ref:b=>b&&h&&f&&h(f(b)),src:t,alt:e,className:`cursor-move ${d?"outline outline-blue-500":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:a,borderRadius:`${i}px`,margin:g,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},U5=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Source",defaultOpen:!0,children:[p.jsx($t,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx($t,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(V,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Width",value:typeof e.width=="number"?"custom":e.width,options:[{value:"full",label:"Full Width"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(pe,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(J,{label:"Height",value:typeof e.height=="number"?"custom":e.height,options:[{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(pe,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(J,{label:"Object Fit",value:e.objectFit||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"}],onChange:n=>t(o=>o.objectFit=n)})]}),p.jsxs(V,{title:"Style",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(aa,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 4px 12px rgba(0,0,0,0.1)",label:"Small"},{value:"0 8px 24px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 16px 48px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};S0.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100,boxShadow:"none"},related:{settings:U5}};function ac(t=12){const e="abcdefghijklmnopqrstuvwxyz",r=e+"0123456789";let n=e[Math.floor(Math.random()*e.length)];for(let o=1;o<t;o++)n+=r[Math.floor(Math.random()*r.length)];return n}const C0=({children:t,className:e})=>{let r,n,o=!1;try{const{connectors:s,events:u}=ne(l=>({events:l.events}));r=s.connect,n=s.drag,o=u.selected}catch{}const a=ac(),i=ac();return p.jsx("div",{ref:s=>{s&&r&&n&&r(n(s))},className:tt(`min-h-2.5 ${o?"border border-blue-500":""}`,"w-full flex justify-center",e),children:p.jsx(Pt,{is:qr,id:`section-wrapper-${a}`,children:p.jsx(Pt,{is:Nn,canvas:!0,id:`section-container-${i}`,children:t})})})};C0.craft={displayName:"Section",props:{},rules:{canDrag:()=>!0}};const eu=t=>{let e,r,n=!1;try{const{connectors:o,events:a}=ne(i=>({events:i.events}));e=o.connect,r=o.drag,n=a.selected}catch{}return p.jsx("div",{style:Es(t),className:tt(t.className,`${n?"outline outline-blue-500":""}`),ref:o=>{o&&e&&r&&e(r(o))},children:t.children})};eu.craft={isCanvas:!0,props:hn,related:{settings:ia}};const E0=({background:t="transparent",padding:e={top:16,right:16,bottom:16,left:16},margin:r={top:0,right:0,bottom:0,left:0},width:n="auto",minHeight:o=100,maxWidth:a="none",display:i="block",flexDirection:s="column",justifyContent:u="flex-start",alignItems:l="stretch",gap:c=0,borderRadius:h=8,borderWidth:f=1,borderColor:d="transparent",borderStyle:g="dashed",boxShadow:b="none",children:m})=>{const v=Ce();let x,S,C;try{const{connectors:D,events:$}=ne(E=>({events:E.events}));x=D.connect,S=D.drag,C=$.selected}catch{}const j=D=>[D][v]||[D].desktop,k=typeof j("padding")=="object"?`${j("padding").top}px ${j("padding").right}px ${j("padding").bottom}px ${j("padding").left}px`:`${j("padding")}px`,R=typeof j("margin")=="object"?`${j("margin").top}px ${j("margin").right}px ${j("margin").bottom}px ${j("margin").left}px`:`${j("margin")}px`,M=[{url:"https://myracereel.com/privacy-data-privacy",name:"Privacy & Data Policy"},{url:"https://myracereel.com/terms-of-service",name:"Terms of Service"},{url:"https://myracereel.com/faq",name:"FAQ"},{url:"https://myracereel.com/contact",name:"Contact Us"}];return p.jsx(qr,{style:{backgroundColor:t,padding:k,margin:R,width:n==="auto"?"100%":n,minHeight:`${o}px`,maxWidth:a==="none"?"none":`${a}px`,display:i,flexDirection:i==="flex"?s:void 0,justifyContent:i==="flex"?u:void 0,alignItems:i==="flex"?l:void 0,gap:i==="flex"?`${c}px`:void 0,borderRadius:`${h}px`,borderWidth:`${f}px`,borderColor:d,borderStyle:g,boxShadow:b==="none"?"none":b},className:"bg-black",ref:D=>D&&x&&S&&x(S(D)),children:p.jsx("div",{className:"flex justify-center w-full",children:p.jsxs("div",{className:"w-full flex flex-col py-10 gap-y-3.5 ",children:[p.jsx("div",{className:"flex w-full gap-x-1 justify-center items-center",children:p.jsx("div",{className:"text-white text-sm",children:"Powered by MyRaceReel"})}),p.jsx("div",{className:"flex @md:flex-row @max-md:flex-col md:flex-row justify-center items-center gap-x-6 gap-y-2 w-full flex-col",children:M.map(D=>p.jsx("a",{className:"text-white",href:D.url,target:"_blank",children:D.name},D.name))})]})})})};E0.craft={displayName:"Footer",props:{background:"transparent",padding:{desktop:{top:16,right:16,bottom:16,left:16}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},width:"auto",minHeight:100,maxWidth:"none",display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:8,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},related:{settings:ia}};const V5=()=>{const{connectors:t}=at(),e=[{name:"Wrapper",icon:mh,element:p.jsx(Pt,{is:qr,canvas:!0})},{name:"Container",icon:bh,element:p.jsx(Pt,{is:Nn,canvas:!0})},{name:"Div",icon:qa,element:p.jsx(Pt,{is:eu,canvas:!0})}],r=[{name:"Heading",icon:Ec,element:p.jsx(Ws,{})},{name:"Text",icon:Oc,element:p.jsx(Vs,{})},{name:"Button",icon:jc,element:p.jsx(Cs,{})},{name:"Link",icon:Vi,element:p.jsx(Qs,{})}],n=[{name:"Image",icon:Nc,element:p.jsx(Gs,{})},{name:"Video",icon:Cc,element:p.jsx(Zs,{})}],o=[{name:"Divider",icon:Tc,element:p.jsx(Ys,{})},{name:"Spacer",icon:Ac,element:p.jsx(Xs,{})}],a=(i,s)=>p.jsxs("div",{className:"space-y-2",children:[p.jsx("span",{className:"text-xs text-muted-foreground/70",children:i}),p.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:s.map(u=>p.jsxs(Xe,{variant:"outline",size:"sm",className:"flex flex-col items-center justify-center h-14 cursor-grab active:cursor-grabbing text-muted-foreground hover:text-foreground",ref:l=>l&&t.create(l,u.element),children:[p.jsx(u.icon,{className:"h-4 w-4 mb-1"}),p.jsx("span",{className:"text-[10px]",children:u.name})]},u.name))})]});return p.jsxs("div",{className:"space-y-4",children:[p.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Components"}),a("Layout",e),a("Basic",r),a("Media",n),a("Utility",o)]})};var W5=y.createContext(void 0);function tu(t){const e=y.useContext(W5);return t||e||"ltr"}function G5(t,[e,r]){return Math.min(r,Math.max(e,t))}function Y5(t,e){return y.useReducer((r,n)=>e[r][n]??r,t)}var ru="ScrollArea",[N0]=tr(ru),[X5,Le]=N0(ru),T0=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=t,[s,u]=y.useState(null),[l,c]=y.useState(null),[h,f]=y.useState(null),[d,g]=y.useState(null),[b,m]=y.useState(null),[v,x]=y.useState(0),[S,C]=y.useState(0),[j,k]=y.useState(!1),[R,M]=y.useState(!1),D=we(e,E=>u(E)),$=tu(o);return p.jsx(X5,{scope:r,type:n,dir:$,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:c,content:h,onContentChange:f,scrollbarX:d,onScrollbarXChange:g,scrollbarXEnabled:j,onScrollbarXEnabledChange:k,scrollbarY:b,onScrollbarYChange:m,scrollbarYEnabled:R,onScrollbarYEnabledChange:M,onCornerWidthChange:x,onCornerHeightChange:C,children:p.jsx(me.div,{dir:$,...i,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":S+"px",...t.style}})})});T0.displayName=ru;var j0="ScrollAreaViewport",A0=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,children:n,nonce:o,...a}=t,i=Le(j0,r),s=y.useRef(null),u=we(e,s,i.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),p.jsx(me.div,{"data-radix-scroll-area-viewport":"",...a,ref:u,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...t.style},children:p.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});A0.displayName=j0;var ut="ScrollAreaScrollbar",nu=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Le(ut,t.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s=t.orientation==="horizontal";return y.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),o.type==="hover"?p.jsx(K5,{...n,ref:e,forceMount:r}):o.type==="scroll"?p.jsx(J5,{...n,ref:e,forceMount:r}):o.type==="auto"?p.jsx(O0,{...n,ref:e,forceMount:r}):o.type==="always"?p.jsx(ou,{...n,ref:e}):null});nu.displayName=ut;var K5=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Le(ut,t.__scopeScrollArea),[a,i]=y.useState(!1);return y.useEffect(()=>{const s=o.scrollArea;let u=0;if(s){const l=()=>{window.clearTimeout(u),i(!0)},c=()=>{u=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",l),s.addEventListener("pointerleave",c),()=>{window.clearTimeout(u),s.removeEventListener("pointerenter",l),s.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),p.jsx(rr,{present:r||a,children:p.jsx(O0,{"data-state":a?"visible":"hidden",...n,ref:e})})}),J5=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Le(ut,t.__scopeScrollArea),a=t.orientation==="horizontal",i=ba(()=>u("SCROLL_END"),100),[s,u]=Y5("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return y.useEffect(()=>{if(s==="idle"){const l=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(l)}},[s,o.scrollHideDelay,u]),y.useEffect(()=>{const l=o.viewport,c=a?"scrollLeft":"scrollTop";if(l){let h=l[c];const f=()=>{const d=l[c];h!==d&&(u("SCROLL"),i()),h=d};return l.addEventListener("scroll",f),()=>l.removeEventListener("scroll",f)}},[o.viewport,a,u,i]),p.jsx(rr,{present:r||s!=="hidden",children:p.jsx(ou,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:e,onPointerEnter:ue(t.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:ue(t.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),O0=y.forwardRef((t,e)=>{const r=Le(ut,t.__scopeScrollArea),{forceMount:n,...o}=t,[a,i]=y.useState(!1),s=t.orientation==="horizontal",u=ba(()=>{if(r.viewport){const l=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;i(s?l:c)}},10);return kr(r.viewport,u),kr(r.content,u),p.jsx(rr,{present:n||a,children:p.jsx(ou,{"data-state":a?"visible":"hidden",...o,ref:e})})}),ou=y.forwardRef((t,e)=>{const{orientation:r="vertical",...n}=t,o=Le(ut,t.__scopeScrollArea),a=y.useRef(null),i=y.useRef(0),[s,u]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=I0(s.viewport,s.content),c={...n,sizes:s,onSizesChange:u,hasThumb:l>0&&l<1,onThumbChange:f=>a.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function h(f,d){return nS(f,i.current,s,d)}return r==="horizontal"?p.jsx(Z5,{...c,ref:e,onThumbPositionChange:()=>{if(o.viewport&&a.current){const f=o.viewport.scrollLeft,d=ic(f,s,o.dir);a.current.style.transform=`translate3d(${d}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=h(f,o.dir))}}):r==="vertical"?p.jsx(Q5,{...c,ref:e,onThumbPositionChange:()=>{if(o.viewport&&a.current){const f=o.viewport.scrollTop,d=ic(f,s);a.current.style.transform=`translate3d(0, ${d}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=h(f))}}):null}),Z5=y.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,a=Le(ut,t.__scopeScrollArea),[i,s]=y.useState(),u=y.useRef(null),l=we(e,u,a.onScrollbarXChange);return y.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),p.jsx(P0,{"data-orientation":"horizontal",...o,ref:l,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ga(r)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.x),onDragScroll:c=>t.onDragScroll(c.x),onWheelScroll:(c,h)=>{if(a.viewport){const f=a.viewport.scrollLeft+c.deltaX;t.onWheelScroll(f),M0(f,h)&&c.preventDefault()}},onResize:()=>{u.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Io(i.paddingLeft),paddingEnd:Io(i.paddingRight)}})}})}),Q5=y.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,a=Le(ut,t.__scopeScrollArea),[i,s]=y.useState(),u=y.useRef(null),l=we(e,u,a.onScrollbarYChange);return y.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),p.jsx(P0,{"data-orientation":"vertical",...o,ref:l,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ga(r)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.y),onDragScroll:c=>t.onDragScroll(c.y),onWheelScroll:(c,h)=>{if(a.viewport){const f=a.viewport.scrollTop+c.deltaY;t.onWheelScroll(f),M0(f,h)&&c.preventDefault()}},onResize:()=>{u.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Io(i.paddingTop),paddingEnd:Io(i.paddingBottom)}})}})}),[eS,k0]=N0(ut),P0=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:u,onDragScroll:l,onWheelScroll:c,onResize:h,...f}=t,d=Le(ut,r),[g,b]=y.useState(null),m=we(e,D=>b(D)),v=y.useRef(null),x=y.useRef(""),S=d.viewport,C=n.content-n.viewport,j=De(c),k=De(u),R=ba(h,10);function M(D){if(v.current){const $=D.clientX-v.current.left,E=D.clientY-v.current.top;l({x:$,y:E})}}return y.useEffect(()=>{const D=$=>{const E=$.target;(g==null?void 0:g.contains(E))&&j($,C)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[S,g,C,j]),y.useEffect(k,[n,k]),kr(g,R),kr(d.content,R),p.jsx(eS,{scope:r,scrollbar:g,hasThumb:o,onThumbChange:De(a),onThumbPointerUp:De(i),onThumbPositionChange:k,onThumbPointerDown:De(s),children:p.jsx(me.div,{...f,ref:m,style:{position:"absolute",...f.style},onPointerDown:ue(t.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),v.current=g.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",d.viewport&&(d.viewport.style.scrollBehavior="auto"),M(D))}),onPointerMove:ue(t.onPointerMove,M),onPointerUp:ue(t.onPointerUp,D=>{const $=D.target;$.hasPointerCapture(D.pointerId)&&$.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=x.current,d.viewport&&(d.viewport.style.scrollBehavior=""),v.current=null})})})}),Ro="ScrollAreaThumb",_0=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=k0(Ro,t.__scopeScrollArea);return p.jsx(rr,{present:r||o.hasThumb,children:p.jsx(tS,{ref:e,...n})})}),tS=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,style:n,...o}=t,a=Le(Ro,r),i=k0(Ro,r),{onThumbPositionChange:s}=i,u=we(e,h=>i.onThumbChange(h)),l=y.useRef(void 0),c=ba(()=>{l.current&&(l.current(),l.current=void 0)},100);return y.useEffect(()=>{const h=a.viewport;if(h){const f=()=>{if(c(),!l.current){const d=oS(h,s);l.current=d,s()}};return s(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[a.viewport,c,s]),p.jsx(me.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:ue(t.onPointerDownCapture,h=>{const d=h.target.getBoundingClientRect(),g=h.clientX-d.left,b=h.clientY-d.top;i.onThumbPointerDown({x:g,y:b})}),onPointerUp:ue(t.onPointerUp,i.onThumbPointerUp)})});_0.displayName=Ro;var au="ScrollAreaCorner",R0=y.forwardRef((t,e)=>{const r=Le(au,t.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?p.jsx(rS,{...t,ref:e}):null});R0.displayName=au;var rS=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,...n}=t,o=Le(au,r),[a,i]=y.useState(0),[s,u]=y.useState(0),l=!!(a&&s);return kr(o.scrollbarX,()=>{var h;const c=((h=o.scrollbarX)==null?void 0:h.offsetHeight)||0;o.onCornerHeightChange(c),u(c)}),kr(o.scrollbarY,()=>{var h;const c=((h=o.scrollbarY)==null?void 0:h.offsetWidth)||0;o.onCornerWidthChange(c),i(c)}),l?p.jsx(me.div,{...n,ref:e,style:{width:a,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function Io(t){return t?parseInt(t,10):0}function I0(t,e){const r=t/e;return isNaN(r)?0:r}function ga(t){const e=I0(t.viewport,t.content),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=(t.scrollbar.size-r)*e;return Math.max(n,18)}function nS(t,e,r,n="ltr"){const o=ga(r),a=o/2,i=e||a,s=o-i,u=r.scrollbar.paddingStart+i,l=r.scrollbar.size-r.scrollbar.paddingEnd-s,c=r.content-r.viewport,h=n==="ltr"?[0,c]:[c*-1,0];return D0([u,l],h)(t)}function ic(t,e,r="ltr"){const n=ga(e),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=e.scrollbar.size-o,i=e.content-e.viewport,s=a-n,u=r==="ltr"?[0,i]:[i*-1,0],l=G5(t,u);return D0([0,i],[0,s])(l)}function D0(t,e){return r=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const n=(e[1]-e[0])/(t[1]-t[0]);return e[0]+n*(r-t[0])}}function M0(t,e){return t>0&&t<e}var oS=(t,e=()=>{})=>{let r={left:t.scrollLeft,top:t.scrollTop},n=0;return function o(){const a={left:t.scrollLeft,top:t.scrollTop},i=r.left!==a.left,s=r.top!==a.top;(i||s)&&e(),r=a,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function ba(t,e){const r=De(t),n=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(n.current),[]),y.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,e)},[r,e])}function kr(t,e){const r=De(e);Dt(()=>{let n=0;if(t){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(t),()=>{window.cancelAnimationFrame(n),o.unobserve(t)}}},[t,r])}var L0=T0,aS=A0,iS=R0;const iu=y.forwardRef(({className:t,children:e,...r},n)=>p.jsxs(L0,{ref:n,className:Se("relative overflow-hidden",t),...r,children:[p.jsx(aS,{className:"h-full w-full rounded-[inherit]",children:e}),p.jsx($0,{}),p.jsx(iS,{})]}));iu.displayName=L0.displayName;const $0=y.forwardRef(({className:t,orientation:e="vertical",...r},n)=>p.jsx(nu,{ref:n,orientation:e,className:Se("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...r,children:p.jsx(_0,{className:"relative flex-1 rounded-full bg-border"})}));$0.displayName=nu.displayName;const sS=()=>{const{selected:t,actions:e}=at(r=>{var a,i,s,u,l,c,h;const n=r.events.selected?Array.from(r.events.selected)[0]:null;let o;return n&&(o={id:n,name:((i=(a=r.nodes[n])==null?void 0:a.data)==null?void 0:i.displayName)||((u=(s=r.nodes[n])==null?void 0:s.data)==null?void 0:u.name),settings:(c=(l=r.nodes[n])==null?void 0:l.related)==null?void 0:c.settings,isDeletable:((h=r.nodes[n])==null?void 0:h.id)!=="ROOT"}),{selected:o}});return p.jsx("div",{className:"h-full flex flex-col",children:t?p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-border mb-3",children:[p.jsxs("div",{children:[p.jsx("span",{className:"text-xs text-muted-foreground",children:"Selected"}),p.jsx("h3",{className:"text-sm font-semibold",children:t.name})]}),t.isDeletable&&p.jsx("button",{onClick:()=>e.delete(t.id),className:"p-1.5 rounded hover:bg-destructive/10 text-destructive transition-colors",title:"Delete element",children:p.jsx(yh,{className:"h-4 w-4"})})]}),p.jsx(iu,{className:"flex-1 -mr-4 pr-4",children:t.settings&&w.createElement(t.settings)})]}):p.jsx("div",{className:"text-center py-8",children:p.jsx("p",{className:"text-sm text-muted-foreground",children:"Select an element to edit its properties"})})})},uS=t=>{switch(t){case"Container":return qa;case"Text":return Oc;case"Heading":return Ec;case"Button":return jc;case"Image":return Nc;case"Divider":return Tc;case"Spacer":return Ac;case"Video":return Sh;case"Columns":return ah;case"Link":return Vi;default:return qa}},B0=({nodeId:t,depth:e=0,onDragStart:r,onDragOver:n,onDrop:o,draggedId:a})=>{const{node:i,actions:s,selectedNodeId:u,childNodes:l,parentId:c}=at((T,P)=>{var _,L;const I=T.nodes[t],N=((_=I==null?void 0:I.data)==null?void 0:_.nodes)||[],O=T.events.selected?Array.from(T.events.selected)[0]:null,A=(L=I==null?void 0:I.data)==null?void 0:L.parent;return{node:I,childNodes:N,selectedNodeId:O,parentId:A}}),[h,f]=w.useState(!0),[d,g]=w.useState(!1);if(!i)return null;const b=i.data.displayName||i.data.name||"Unknown",m=l.length>0,v=u===t,x=t==="ROOT",S=uS(b),C=a===t,j=i.data.isCanvas,k=T=>{T.stopPropagation(),x||s.selectNode(t)},R=T=>{T.stopPropagation(),f(!h)},M=T=>{if(x){T.preventDefault();return}T.stopPropagation(),r(t,c)},D=T=>{T.preventDefault(),T.stopPropagation(),a&&a!==t&&j&&g(!0)},$=T=>{T.stopPropagation(),g(!1)},E=T=>{T.preventDefault(),T.stopPropagation(),g(!1),a&&a!==t&&o(t)};return p.jsxs("div",{className:"select-none",children:[p.jsxs("div",{className:`flex items-center gap-1 py-1 px-1 rounded cursor-pointer text-sm transition-colors ${v?"bg-primary/10 text-primary":"hover:bg-secondary/50"} ${C?"opacity-50":""} ${d?"bg-primary/20 ring-1 ring-primary":""}`,style:{paddingLeft:`${e*12+4}px`},onClick:k,draggable:!x,onDragStart:M,onDragOver:D,onDragLeave:$,onDrop:E,children:[!x&&p.jsx(lh,{className:"h-3 w-3 text-muted-foreground/50 cursor-grab active:cursor-grabbing"}),m?p.jsx("button",{onClick:R,className:"p-0.5 hover:bg-secondary rounded",children:h?p.jsx(qi,{className:"h-3 w-3"}):p.jsx(Ui,{className:"h-3 w-3"})}):p.jsx("span",{className:"w-4"}),p.jsx(S,{className:"h-3.5 w-3.5 text-muted-foreground shrink-0"}),p.jsx("span",{className:`truncate ${x?"font-medium":""}`,children:x?"Root":b})]}),m&&h&&p.jsx("div",{children:l.map(T=>p.jsx(B0,{nodeId:T,depth:e+1,onDragStart:r,onDragOver:n,onDrop:o,draggedId:a},T))})]})},lS=()=>{const[t,e]=w.useState(null),[r,n]=w.useState(null),{nodeIds:o,actions:a}=at(l=>({nodeIds:Object.keys(l.nodes)})),i=(l,c)=>{e(l),n(c)},s=l=>{if(t&&l&&t!==l)try{a.move(t,l,0)}catch(c){console.log("Cannot move node:",c)}e(null),n(null)},u=()=>{e(null),n(null)};return p.jsxs("div",{className:"space-y-2",onDragEnd:u,children:[p.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Layers"}),p.jsx("div",{className:"border border-border rounded-lg p-2 max-h-[250px] overflow-y-auto bg-background",children:o.includes("ROOT")&&p.jsx(B0,{nodeId:"ROOT",onDragStart:i,onDrop:s,draggedId:t})}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"Drag to containers to reorder"})]})};function sc(t){const e=cS(t),r=y.forwardRef((n,o)=>{const{children:a,...i}=n,s=y.Children.toArray(a),u=s.find(fS);if(u){const l=u.props.children,c=s.map(h=>h===u?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...i,ref:o,children:y.isValidElement(l)?y.cloneElement(l,void 0,c):null})}return p.jsx(e,{...i,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}function cS(t){const e=y.forwardRef((r,n)=>{const{children:o,...a}=r;if(y.isValidElement(o)){const i=hS(o),s=pS(a,o.props);return o.type!==y.Fragment&&(s.ref=n?$o(n,i):i),y.cloneElement(o,s)}return y.Children.count(o)>1?y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var dS=Symbol("radix.slottable");function fS(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===dS}function pS(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const u=a(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function hS(t){var n,o;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function mS(t){const e=t+"CollectionProvider",[r,n]=tr(e),[o,a]=r(e,{collectionRef:{current:null},itemMap:new Map}),i=b=>{const{scope:m,children:v}=b,x=w.useRef(null),S=w.useRef(new Map).current;return p.jsx(o,{scope:m,itemMap:S,collectionRef:x,children:v})};i.displayName=e;const s=t+"CollectionSlot",u=sc(s),l=w.forwardRef((b,m)=>{const{scope:v,children:x}=b,S=a(s,v),C=we(m,S.collectionRef);return p.jsx(u,{ref:C,children:x})});l.displayName=s;const c=t+"CollectionItemSlot",h="data-radix-collection-item",f=sc(c),d=w.forwardRef((b,m)=>{const{scope:v,children:x,...S}=b,C=w.useRef(null),j=we(m,C),k=a(c,v);return w.useEffect(()=>(k.itemMap.set(C,{ref:C,...S}),()=>void k.itemMap.delete(C))),p.jsx(f,{[h]:"",ref:j,children:x})});d.displayName=c;function g(b){const m=a(t+"CollectionConsumer",b);return w.useCallback(()=>{const x=m.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${h}]`));return Array.from(m.itemMap.values()).sort((k,R)=>S.indexOf(k.ref.current)-S.indexOf(R.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:l,ItemSlot:d},g,n]}var za="rovingFocusGroup.onEntryFocus",gS={bubbles:!1,cancelable:!0},_n="RovingFocusGroup",[Di,z0,bS]=mS(_n),[vS,H0]=tr(_n,[bS]),[yS,xS]=vS(_n),F0=y.forwardRef((t,e)=>p.jsx(Di.Provider,{scope:t.__scopeRovingFocusGroup,children:p.jsx(Di.Slot,{scope:t.__scopeRovingFocusGroup,children:p.jsx(wS,{...t,ref:e})})}));F0.displayName=_n;var wS=y.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:c=!1,...h}=t,f=y.useRef(null),d=we(e,f),g=tu(a),[b,m]=Hr({prop:i,defaultProp:s??null,onChange:u,caller:_n}),[v,x]=y.useState(!1),S=De(l),C=z0(r),j=y.useRef(!1),[k,R]=y.useState(0);return y.useEffect(()=>{const M=f.current;if(M)return M.addEventListener(za,S),()=>M.removeEventListener(za,S)},[S]),p.jsx(yS,{scope:r,orientation:n,dir:g,loop:o,currentTabStopId:b,onItemFocus:y.useCallback(M=>m(M),[m]),onItemShiftTab:y.useCallback(()=>x(!0),[]),onFocusableItemAdd:y.useCallback(()=>R(M=>M+1),[]),onFocusableItemRemove:y.useCallback(()=>R(M=>M-1),[]),children:p.jsx(me.div,{tabIndex:v||k===0?-1:0,"data-orientation":n,...h,ref:d,style:{outline:"none",...t.style},onMouseDown:ue(t.onMouseDown,()=>{j.current=!0}),onFocus:ue(t.onFocus,M=>{const D=!j.current;if(M.target===M.currentTarget&&D&&!v){const $=new CustomEvent(za,gS);if(M.currentTarget.dispatchEvent($),!$.defaultPrevented){const E=C().filter(O=>O.focusable),T=E.find(O=>O.active),P=E.find(O=>O.id===b),N=[T,P,...E].filter(Boolean).map(O=>O.ref.current);V0(N,c)}}j.current=!1}),onBlur:ue(t.onBlur,()=>x(!1))})})}),q0="RovingFocusGroupItem",U0=y.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...s}=t,u=xd(),l=a||u,c=xS(q0,r),h=c.currentTabStopId===l,f=z0(r),{onFocusableItemAdd:d,onFocusableItemRemove:g,currentTabStopId:b}=c;return y.useEffect(()=>{if(n)return d(),()=>g()},[n,d,g]),p.jsx(Di.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:p.jsx(me.span,{tabIndex:h?0:-1,"data-orientation":c.orientation,...s,ref:e,onMouseDown:ue(t.onMouseDown,m=>{n?c.onItemFocus(l):m.preventDefault()}),onFocus:ue(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:ue(t.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const v=ES(m,c.orientation,c.dir);if(v!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let S=f().filter(C=>C.focusable).map(C=>C.ref.current);if(v==="last")S.reverse();else if(v==="prev"||v==="next"){v==="prev"&&S.reverse();const C=S.indexOf(m.currentTarget);S=c.loop?NS(S,C+1):S.slice(C+1)}setTimeout(()=>V0(S))}}),children:typeof i=="function"?i({isCurrentTabStop:h,hasTabStop:b!=null}):i})})});U0.displayName=q0;var SS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function CS(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function ES(t,e,r){const n=CS(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return SS[n]}function V0(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function NS(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var TS=F0,jS=U0,W0="Toggle",su=y.forwardRef((t,e)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=t,[i,s]=Hr({prop:r,onChange:o,defaultProp:n??!1,caller:W0});return p.jsx(me.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":t.disabled?"":void 0,...a,ref:e,onClick:ue(t.onClick,()=>{t.disabled||s(!i)})})});su.displayName=W0;var G0=su,Ft="ToggleGroup",[Y0]=tr(Ft,[H0]),X0=H0(),uu=w.forwardRef((t,e)=>{const{type:r,...n}=t;if(r==="single"){const o=n;return p.jsx(AS,{...o,ref:e})}if(r==="multiple"){const o=n;return p.jsx(OS,{...o,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${Ft}\``)});uu.displayName=Ft;var[K0,J0]=Y0(Ft),AS=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=t,[i,s]=Hr({prop:r,defaultProp:n??"",onChange:o,caller:Ft});return p.jsx(K0,{scope:t.__scopeToggleGroup,type:"single",value:w.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:w.useCallback(()=>s(""),[s]),children:p.jsx(Z0,{...a,ref:e})})}),OS=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=t,[i,s]=Hr({prop:r,defaultProp:n??[],onChange:o,caller:Ft}),u=w.useCallback(c=>s((h=[])=>[...h,c]),[s]),l=w.useCallback(c=>s((h=[])=>h.filter(f=>f!==c)),[s]);return p.jsx(K0,{scope:t.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:u,onItemDeactivate:l,children:p.jsx(Z0,{...a,ref:e})})});uu.displayName=Ft;var[kS,PS]=Y0(Ft),Z0=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...u}=t,l=X0(r),c=tu(i),h={role:"group",dir:c,...u};return p.jsx(kS,{scope:r,rovingFocus:o,disabled:n,children:o?p.jsx(TS,{asChild:!0,...l,orientation:a,dir:c,loop:s,children:p.jsx(me.div,{...h,ref:e})}):p.jsx(me.div,{...h,ref:e})})}),Do="ToggleGroupItem",Q0=w.forwardRef((t,e)=>{const r=J0(Do,t.__scopeToggleGroup),n=PS(Do,t.__scopeToggleGroup),o=X0(t.__scopeToggleGroup),a=r.value.includes(t.value),i=n.disabled||t.disabled,s={...t,pressed:a,disabled:i},u=w.useRef(null);return n.rovingFocus?p.jsx(jS,{asChild:!0,...o,focusable:!i,active:a,ref:u,children:p.jsx(uc,{...s,ref:e})}):p.jsx(uc,{...s,ref:e})});Q0.displayName=Do;var uc=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,value:n,...o}=t,a=J0(Do,r),i={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return p.jsx(su,{...s,...o,ref:e,onPressedChange:u=>{u?a.onItemActivate(n):a.onItemDeactivate(n)}})}),ep=uu,tp=Q0;const rp=Pc("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),_S=y.forwardRef(({className:t,variant:e,size:r,...n},o)=>p.jsx(G0,{ref:o,className:Se(rp({variant:e,size:r,className:t})),...n}));_S.displayName=G0.displayName;const np=y.createContext({size:"default",variant:"default"}),op=y.forwardRef(({className:t,variant:e,size:r,children:n,...o},a)=>p.jsx(ep,{ref:a,className:Se("flex items-center justify-center gap-1",t),...o,children:p.jsx(np.Provider,{value:{variant:e,size:r},children:n})}));op.displayName=ep.displayName;const ap=y.forwardRef(({className:t,children:e,variant:r,size:n,...o},a)=>{const i=y.useContext(np);return p.jsx(tp,{ref:a,className:Se(rp({variant:i.variant||r,size:i.size||n}),t),...o,children:e})});ap.displayName=tp.displayName;var RS=t=>{switch(t){case"success":return MS;case"info":return $S;case"warning":return LS;case"error":return BS;default:return null}},IS=Array(12).fill(0),DS=({visible:t,className:e})=>w.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},w.createElement("div",{className:"sonner-spinner"},IS.map((r,n)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),MS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),LS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),$S=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),BS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),zS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},w.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),w.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),HS=()=>{let[t,e]=w.useState(document.hidden);return w.useEffect(()=>{let r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t},Mi=1,FS=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:r,...n}=t,o=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Mi++,a=this.toasts.find(s=>s.id===o),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...t,id:o,title:r}),{...s,...t,id:o,dismissible:i,title:r}):s):this.addToast({title:r,...n,dismissible:i,id:o}),o},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(r=>r({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let r;e.loading!==void 0&&(r=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let n=t instanceof Promise?t:t(),o=r!==void 0,a,i=n.then(async u=>{if(a=["resolve",u],w.isValidElement(u))o=!1,this.create({id:r,type:"default",message:u});else if(US(u)&&!u.ok){o=!1;let l=typeof e.error=="function"?await e.error(`HTTP error! status: ${u.status}`):e.error,c=typeof e.description=="function"?await e.description(`HTTP error! status: ${u.status}`):e.description;this.create({id:r,type:"error",message:l,description:c})}else if(e.success!==void 0){o=!1;let l=typeof e.success=="function"?await e.success(u):e.success,c=typeof e.description=="function"?await e.description(u):e.description;this.create({id:r,type:"success",message:l,description:c})}}).catch(async u=>{if(a=["reject",u],e.error!==void 0){o=!1;let l=typeof e.error=="function"?await e.error(u):e.error,c=typeof e.description=="function"?await e.description(u):e.description;this.create({id:r,type:"error",message:l,description:c})}}).finally(()=>{var u;o&&(this.dismiss(r),r=void 0),(u=e.finally)==null||u.call(e)}),s=()=>new Promise((u,l)=>i.then(()=>a[0]==="reject"?l(a[1]):u(a[1])).catch(l));return typeof r!="string"&&typeof r!="number"?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(t,e)=>{let r=(e==null?void 0:e.id)||Mi++;return this.create({jsx:t(r),id:r,...e}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Te=new FS,qS=(t,e)=>{let r=(e==null?void 0:e.id)||Mi++;return Te.addToast({title:t,...e,id:r}),r},US=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",VS=qS,WS=()=>Te.toasts,GS=()=>Te.getActiveToasts(),YS=Object.assign(VS,{success:Te.success,info:Te.info,warning:Te.warning,error:Te.error,custom:Te.custom,message:Te.message,promise:Te.promise,dismiss:Te.dismiss,loading:Te.loading},{getHistory:WS,getToasts:GS});function XS(t,{insertAt:e}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}XS(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
280
+ `);function Zn(t){return t.label!==void 0}var KS=3,JS="32px",ZS="16px",lc=4e3,QS=356,eC=14,tC=20,rC=200;function He(...t){return t.filter(Boolean).join(" ")}function nC(t){let[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}var oC=t=>{var e,r,n,o,a,i,s,u,l,c,h;let{invert:f,toast:d,unstyled:g,interacting:b,setHeights:m,visibleToasts:v,heights:x,index:S,toasts:C,expanded:j,removeToast:k,defaultRichColors:R,closeButton:M,style:D,cancelButtonStyle:$,actionButtonStyle:E,className:T="",descriptionClassName:P="",duration:I,position:N,gap:O,loadingIcon:A,expandByDefault:_,classNames:L,icons:q,closeButtonAriaLabel:de="Close toast",pauseWhenPageIsHidden:Z}=t,[B,z]=w.useState(null),[he,X]=w.useState(null),[H,Ne]=w.useState(!1),[ye,ge]=w.useState(!1),[We,lt]=w.useState(!1),[Ge,Rn]=w.useState(!1),[va,In]=w.useState(!1),[ya,Ur]=w.useState(0),[ar,lu]=w.useState(0),Vr=w.useRef(d.duration||I||lc),cu=w.useRef(null),qt=w.useRef(null),lp=S===0,cp=S+1<=v,_e=d.type,ir=d.dismissible!==!1,dp=d.className||"",fp=d.descriptionClassName||"",Dn=w.useMemo(()=>x.findIndex(U=>U.toastId===d.id)||0,[x,d.id]),pp=w.useMemo(()=>{var U;return(U=d.closeButton)!=null?U:M},[d.closeButton,M]),du=w.useMemo(()=>d.duration||I||lc,[d.duration,I]),xa=w.useRef(0),sr=w.useRef(0),fu=w.useRef(0),ur=w.useRef(null),[hp,mp]=N.split("-"),pu=w.useMemo(()=>x.reduce((U,te,le)=>le>=Dn?U:U+te.height,0),[x,Dn]),hu=HS(),gp=d.invert||f,wa=_e==="loading";sr.current=w.useMemo(()=>Dn*O+pu,[Dn,pu]),w.useEffect(()=>{Vr.current=du},[du]),w.useEffect(()=>{Ne(!0)},[]),w.useEffect(()=>{let U=qt.current;if(U){let te=U.getBoundingClientRect().height;return lu(te),m(le=>[{toastId:d.id,height:te,position:d.position},...le]),()=>m(le=>le.filter($e=>$e.toastId!==d.id))}},[m,d.id]),w.useLayoutEffect(()=>{if(!H)return;let U=qt.current,te=U.style.height;U.style.height="auto";let le=U.getBoundingClientRect().height;U.style.height=te,lu(le),m($e=>$e.find(Be=>Be.toastId===d.id)?$e.map(Be=>Be.toastId===d.id?{...Be,height:le}:Be):[{toastId:d.id,height:le,position:d.position},...$e])},[H,d.title,d.description,m,d.id]);let Nt=w.useCallback(()=>{ge(!0),Ur(sr.current),m(U=>U.filter(te=>te.toastId!==d.id)),setTimeout(()=>{k(d)},rC)},[d,k,m,sr]);w.useEffect(()=>{if(d.promise&&_e==="loading"||d.duration===1/0||d.type==="loading")return;let U;return j||b||Z&&hu?(()=>{if(fu.current<xa.current){let te=new Date().getTime()-xa.current;Vr.current=Vr.current-te}fu.current=new Date().getTime()})():Vr.current!==1/0&&(xa.current=new Date().getTime(),U=setTimeout(()=>{var te;(te=d.onAutoClose)==null||te.call(d,d),Nt()},Vr.current)),()=>clearTimeout(U)},[j,b,d,_e,Z,hu,Nt]),w.useEffect(()=>{d.delete&&Nt()},[Nt,d.delete]);function bp(){var U,te,le;return q!=null&&q.loading?w.createElement("div",{className:He(L==null?void 0:L.loader,(U=d==null?void 0:d.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":_e==="loading"},q.loading):A?w.createElement("div",{className:He(L==null?void 0:L.loader,(te=d==null?void 0:d.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":_e==="loading"},A):w.createElement(DS,{className:He(L==null?void 0:L.loader,(le=d==null?void 0:d.classNames)==null?void 0:le.loader),visible:_e==="loading"})}return w.createElement("li",{tabIndex:0,ref:qt,className:He(T,dp,L==null?void 0:L.toast,(e=d==null?void 0:d.classNames)==null?void 0:e.toast,L==null?void 0:L.default,L==null?void 0:L[_e],(r=d==null?void 0:d.classNames)==null?void 0:r[_e]),"data-sonner-toast":"","data-rich-colors":(n=d.richColors)!=null?n:R,"data-styled":!(d.jsx||d.unstyled||g),"data-mounted":H,"data-promise":!!d.promise,"data-swiped":va,"data-removed":ye,"data-visible":cp,"data-y-position":hp,"data-x-position":mp,"data-index":S,"data-front":lp,"data-swiping":We,"data-dismissible":ir,"data-type":_e,"data-invert":gp,"data-swipe-out":Ge,"data-swipe-direction":he,"data-expanded":!!(j||_&&H),style:{"--index":S,"--toasts-before":S,"--z-index":C.length-S,"--offset":`${ye?ya:sr.current}px`,"--initial-height":_?"auto":`${ar}px`,...D,...d.style},onDragEnd:()=>{lt(!1),z(null),ur.current=null},onPointerDown:U=>{wa||!ir||(cu.current=new Date,Ur(sr.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(lt(!0),ur.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,te,le,$e;if(Ge||!ir)return;ur.current=null;let Be=Number(((U=qt.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Tt=Number(((te=qt.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ut=new Date().getTime()-((le=cu.current)==null?void 0:le.getTime()),ze=B==="x"?Be:Tt,jt=Math.abs(ze)/Ut;if(Math.abs(ze)>=tC||jt>.11){Ur(sr.current),($e=d.onDismiss)==null||$e.call(d,d),X(B==="x"?Be>0?"right":"left":Tt>0?"down":"up"),Nt(),Rn(!0),In(!1);return}lt(!1),z(null)},onPointerMove:U=>{var te,le,$e,Be;if(!ur.current||!ir||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let Tt=U.clientY-ur.current.y,Ut=U.clientX-ur.current.x,ze=(le=t.swipeDirections)!=null?le:nC(N);!B&&(Math.abs(Ut)>1||Math.abs(Tt)>1)&&z(Math.abs(Ut)>Math.abs(Tt)?"x":"y");let jt={x:0,y:0};B==="y"?(ze.includes("top")||ze.includes("bottom"))&&(ze.includes("top")&&Tt<0||ze.includes("bottom")&&Tt>0)&&(jt.y=Tt):B==="x"&&(ze.includes("left")||ze.includes("right"))&&(ze.includes("left")&&Ut<0||ze.includes("right")&&Ut>0)&&(jt.x=Ut),(Math.abs(jt.x)>0||Math.abs(jt.y)>0)&&In(!0),($e=qt.current)==null||$e.style.setProperty("--swipe-amount-x",`${jt.x}px`),(Be=qt.current)==null||Be.style.setProperty("--swipe-amount-y",`${jt.y}px`)}},pp&&!d.jsx?w.createElement("button",{"aria-label":de,"data-disabled":wa,"data-close-button":!0,onClick:wa||!ir?()=>{}:()=>{var U;Nt(),(U=d.onDismiss)==null||U.call(d,d)},className:He(L==null?void 0:L.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},(a=q==null?void 0:q.close)!=null?a:zS):null,d.jsx||w.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:w.createElement(w.Fragment,null,_e||d.icon||d.promise?w.createElement("div",{"data-icon":"",className:He(L==null?void 0:L.icon,(i=d==null?void 0:d.classNames)==null?void 0:i.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||bp():null,d.type!=="loading"?d.icon||(q==null?void 0:q[_e])||RS(_e):null):null,w.createElement("div",{"data-content":"",className:He(L==null?void 0:L.content,(s=d==null?void 0:d.classNames)==null?void 0:s.content)},w.createElement("div",{"data-title":"",className:He(L==null?void 0:L.title,(u=d==null?void 0:d.classNames)==null?void 0:u.title)},typeof d.title=="function"?d.title():d.title),d.description?w.createElement("div",{"data-description":"",className:He(P,fp,L==null?void 0:L.description,(l=d==null?void 0:d.classNames)==null?void 0:l.description)},typeof d.description=="function"?d.description():d.description):null),w.isValidElement(d.cancel)?d.cancel:d.cancel&&Zn(d.cancel)?w.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||$,onClick:U=>{var te,le;Zn(d.cancel)&&ir&&((le=(te=d.cancel).onClick)==null||le.call(te,U),Nt())},className:He(L==null?void 0:L.cancelButton,(c=d==null?void 0:d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,w.isValidElement(d.action)?d.action:d.action&&Zn(d.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||E,onClick:U=>{var te,le;Zn(d.action)&&((le=(te=d.action).onClick)==null||le.call(te,U),!U.defaultPrevented&&Nt())},className:He(L==null?void 0:L.actionButton,(h=d==null?void 0:d.classNames)==null?void 0:h.actionButton)},d.action.label):null))};function cc(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function aC(t,e){let r={};return[t,e].forEach((n,o)=>{let a=o===1,i=a?"--mobile-offset":"--offset",s=a?ZS:JS;function u(l){["top","right","bottom","left"].forEach(c=>{r[`${i}-${c}`]=typeof l=="number"?`${l}px`:l})}typeof n=="number"||typeof n=="string"?u(n):typeof n=="object"?["top","right","bottom","left"].forEach(l=>{n[l]===void 0?r[`${i}-${l}`]=s:r[`${i}-${l}`]=typeof n[l]=="number"?`${n[l]}px`:n[l]}):u(s)}),r}w.forwardRef(function(t,e){let{invert:r,position:n="bottom-right",hotkey:o=["altKey","KeyT"],expand:a,closeButton:i,className:s,offset:u,mobileOffset:l,theme:c="light",richColors:h,duration:f,style:d,visibleToasts:g=KS,toastOptions:b,dir:m=cc(),gap:v=eC,loadingIcon:x,icons:S,containerAriaLabel:C="Notifications",pauseWhenPageIsHidden:j}=t,[k,R]=w.useState([]),M=w.useMemo(()=>Array.from(new Set([n].concat(k.filter(Z=>Z.position).map(Z=>Z.position)))),[k,n]),[D,$]=w.useState([]),[E,T]=w.useState(!1),[P,I]=w.useState(!1),[N,O]=w.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=w.useRef(null),_=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=w.useRef(null),q=w.useRef(!1),de=w.useCallback(Z=>{R(B=>{var z;return(z=B.find(he=>he.id===Z.id))!=null&&z.delete||Te.dismiss(Z.id),B.filter(({id:he})=>he!==Z.id)})},[]);return w.useEffect(()=>Te.subscribe(Z=>{if(Z.dismiss){R(B=>B.map(z=>z.id===Z.id?{...z,delete:!0}:z));return}setTimeout(()=>{Li.flushSync(()=>{R(B=>{let z=B.findIndex(he=>he.id===Z.id);return z!==-1?[...B.slice(0,z),{...B[z],...Z},...B.slice(z+1)]:[Z,...B]})})})}),[]),w.useEffect(()=>{if(c!=="system"){O(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?O("dark"):O("light")),typeof window>"u")return;let Z=window.matchMedia("(prefers-color-scheme: dark)");try{Z.addEventListener("change",({matches:B})=>{O(B?"dark":"light")})}catch{Z.addListener(({matches:z})=>{try{O(z?"dark":"light")}catch(he){console.error(he)}})}},[c]),w.useEffect(()=>{k.length<=1&&T(!1)},[k]),w.useEffect(()=>{let Z=B=>{var z,he;o.every(X=>B[X]||B.code===X)&&(T(!0),(z=A.current)==null||z.focus()),B.code==="Escape"&&(document.activeElement===A.current||(he=A.current)!=null&&he.contains(document.activeElement))&&T(!1)};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[o]),w.useEffect(()=>{if(A.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,q.current=!1)}},[A.current]),w.createElement("section",{ref:e,"aria-label":`${C} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((Z,B)=>{var z;let[he,X]=Z.split("-");return k.length?w.createElement("ol",{key:Z,dir:m==="auto"?cc():m,tabIndex:-1,ref:A,className:s,"data-sonner-toaster":!0,"data-theme":N,"data-y-position":he,"data-lifted":E&&k.length>1&&!a,"data-x-position":X,style:{"--front-toast-height":`${((z=D[0])==null?void 0:z.height)||0}px`,"--width":`${QS}px`,"--gap":`${v}px`,...d,...aC(u,l)},onBlur:H=>{q.current&&!H.currentTarget.contains(H.relatedTarget)&&(q.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||q.current||(q.current=!0,L.current=H.relatedTarget)},onMouseEnter:()=>T(!0),onMouseMove:()=>T(!0),onMouseLeave:()=>{P||T(!1)},onDragEnd:()=>T(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},k.filter(H=>!H.position&&B===0||H.position===Z).map((H,Ne)=>{var ye,ge;return w.createElement(oC,{key:H.id,icons:S,index:Ne,toast:H,defaultRichColors:h,duration:(ye=b==null?void 0:b.duration)!=null?ye:f,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:r,visibleToasts:g,closeButton:(ge=b==null?void 0:b.closeButton)!=null?ge:i,interacting:P,position:Z,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,removeToast:de,toasts:k.filter(We=>We.position==H.position),heights:D.filter(We=>We.position==H.position),setHeights:$,expandByDefault:a,gap:v,loadingIcon:x,expanded:E,pauseWhenPageIsHidden:j,swipeDirections:t.swipeDirections})})):null}))});const pr={mobile:{width:375,icon:Gi,label:"Mobile (375px)"},tablet:{width:768,icon:Yi,label:"Tablet (768px)"},small:{width:1024,icon:Wi,label:"Small Desktop (1024px)"},desktop:{width:"100%",icon:Xi,label:"Desktop (Full)"}},iC=({handleSavePopup:t,setIsOpen:e,onSave:r,deviceSize:n,onDeviceSizeChange:o,setEditPopup:a,editPopup:i})=>{const{actions:s,query:u,canUndo:l,canRedo:c}=at((f,d)=>({canUndo:d.history.canUndo(),canRedo:d.history.canRedo()})),h=()=>{const f=u.serialize();i?t==null||t(f):r==null||r(f),YS.success("Page saved successfully")};return p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx(pn,{children:p.jsx(op,{type:"single",value:n,onValueChange:f=>f&&o(f),className:"bg-muted rounded-md p-1",children:Object.entries(pr).map(([f,{icon:d,label:g}])=>p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx(ap,{value:f,size:"sm",className:"data-[state=on]:bg-background data-[state=on]:shadow-sm",children:p.jsx(d,{className:"h-4 w-4"})})}),p.jsx(Kt,{side:"bottom",children:p.jsx("p",{children:g})})]},f))})}),p.jsx("div",{className:"h-6 w-px bg-border"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs(Xe,{variant:"outline",size:"sm",onClick:()=>a(f=>!f),children:[i?"Edit page":"Edit popup"," ",p.jsx(gh,{className:"h-4 w-4"})]}),p.jsx(Xe,{variant:"outline",size:"sm",onClick:()=>s.history.undo(),disabled:!l,children:p.jsx(wh,{className:"h-4 w-4"})}),p.jsx(Xe,{variant:"outline",size:"sm",onClick:()=>s.history.redo(),disabled:!c,children:p.jsx(ph,{className:"h-4 w-4"})}),p.jsxs(Xe,{size:"sm",onClick:()=>e(!0),children:["Preview Page ",p.jsx(uh,{className:"ml-2 h-4 w-4"})]}),p.jsxs(Xe,{size:"sm",onClick:h,children:[p.jsx(hh,{className:"h-4 w-4 mr-2"}),"Save"]})]})]})},ip=({children:t,className:e})=>{let r,n,o=!1;try{const{connectors:a,events:i}=ne(s=>({events:s.events}));r=a.connect,n=a.drag,o=i.selected}catch{}return p.jsx("div",{ref:a=>{a&&r&&n&&(r==null||r(n(a)))},className:tt("relative min-h-[100vh]",e||""),children:t})};ip.craft={props:{},displayName:"Body",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Body")}};const dc=({htmlJson:t,editorState:e})=>{const{actions:r}=at();return w.useEffect(()=>{t?r.deserialize(t):e?r.deserialize(e):r.deserialize({ROOT:{type:{resolvedName:"Body"},isCanvas:!0,props:{id:"mainBody",className:"bg-transparent"},displayName:"Body"}})},[]),p.jsx(fs,{})},sC=({htmlJson:t,enabled:e,popupEditorState:r})=>{const{actions:n}=at();return w.useEffect(()=>{if(t)n.deserialize(t);else if(r)n.deserialize(r);else{const o={ROOT:{type:{resolvedName:"Body"},isCanvas:!0,props:{id:"mainBody",className:"bg-transparent"},displayName:"Body",nodes:["popupWrapperNode"],linkedNodes:{}},popupWrapperNode:{type:{resolvedName:"Wrapper"},isCanvas:!0,props:{...hn,width:{desktop:{type:"custom",value:"100",unit:"%"}},height:{desktop:{type:"custom",value:"100",unit:"vh"}},backgroundColor:"rgba(0,0,0,0.25)",position:"absolute",top:0,left:0,display:"flex",justifyContent:"center",alignItems:"center",id:"popupWrapper",onClick:a=>{console.log("test"),a.target.id}},displayName:"Wrapper",nodes:["popupContainerNode"],parent:"ROOT",linkedNodes:{}},popupContainerNode:{type:{resolvedName:"Container"},isCanvas:!0,props:{...hn,width:{desktop:{type:"custom",value:"90",unit:"%"}},height:{desktop:{type:"custom",value:"60",unit:"%"}},backgroundColor:"white",id:"popupContainer"},displayName:"Container",nodes:[],parent:"popupWrapperNode",linkedNodes:{}}};n.deserialize(o)}},[]),p.jsx(fs,{})},Mo={Body:ip,Div:eu,Wrapper:qr,Section:C0,Container:Nn,Text:Vs,ButtonComponent:Cs,Heading:Ws,Image:Gs,Img:S0,Divider:Ys,Spacer:Xs,Video:Zs,Columns:w0,Link:Qs,Footer:E0},uC=({handleSavePopup:t,popupEditorState:e,handleStateChangePopup:r,editorState:n,setIsOpen:o,initialData:a,onSave:i,onStateChange:s,enabled:u=!0})=>{var S;const l=Cn(),[c,h]=w.useState("desktop"),[f,d]=w.useState(!1),g=w.useRef(f);g.current=f;const[b,m]=w.useState(((S=pr[c])==null?void 0:S.width)||"100%");w.useEffect(()=>{if(!u){const C=()=>{const j=window.innerWidth;j<640?m(pr.mobile.width):j<1024?m(pr.tablet.width):j<1280?m(pr.small.width):m(pr.desktop.width)};return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)}},[u]);const v=C=>{if(console.log("handleStateChange"),s)try{const j=C.serialize();s(j)}catch(j){console.log(j)}},x=C=>{if(console.log("handleStateChange - popup"),r)try{const j=C.serialize();r(j)}catch(j){console.log(j)}};return u?p.jsx(ci,{resolver:Mo,enabled:u,onNodesChange:C=>{g.current?x(C):v(C)},children:p.jsx(ps,{value:c,children:p.jsx(Lo,{value:l,children:p.jsxs("div",{className:"flex flex-col h-full",children:[p.jsxs("div",{className:"flex items-center justify-between pb-4 border-b border-border",children:[p.jsx("h2",{className:"text-lg font-semibold",children:f?"Popup Builder":"Page Builder"}),p.jsx(iC,{setIsOpen:o,onSave:i,handleSavePopup:t,deviceSize:c,onDeviceSizeChange:h,editPopup:f,setEditPopup:d})]}),p.jsxs("div",{className:"flex gap-4 mt-4 flex-1 min-h-0",children:[p.jsx(en,{className:"w-52",children:p.jsxs(tn,{className:"p-4 space-y-6",children:[p.jsx(V5,{}),p.jsx(lS,{})]})}),p.jsx(en,{className:"flex-1 overflow-hidden bg-muted/30 flex flex-col",children:p.jsx(tn,{className:"p-4 flex-1 flex justify-center overflow-hidden",children:p.jsx(iu,{className:"h-full w-full",children:p.jsx("div",{className:"flex justify-center min-h-full",children:p.jsx("div",{className:"bg-white rounded-lg min-h-full border border-dashed transition-all duration-300 ",style:{width:typeof b=="number"?`${b}px`:b,maxWidth:"100%"},children:f?p.jsx(sC,{popupEditorState:e,enabled:u}):p.jsx(dc,{editorState:n,htmlJson:a})})})})})}),p.jsx(en,{className:"w-64 flex flex-col",children:p.jsx(tn,{className:"p-4 flex-1 overflow-hidden",children:p.jsx(sS,{})})})]})]})})})}):p.jsx(ci,{resolver:Mo,enabled:u,children:p.jsx(dc,{htmlJson:a})})},Ha={mobile:{width:375,label:"Mobile",icon:Gi},tablet:{width:768,label:"Tablet",icon:Yi},small:{width:1024,label:"Small",icon:Wi},desktop:{width:1440,label:"Desktop",icon:Xi}},lC=({editorState:t,deviceSize:e})=>p.jsx(ci,{resolver:Mo,enabled:!1,children:p.jsx(ps,{value:e,children:p.jsx(cC,{editorState:t})})}),cC=({editorState:t})=>{const{actions:e}=at();return w.useEffect(()=>{if(t&&(e!=null&&e.deserialize))try{e.deserialize(t)}catch(r){console.error("Failed to deserialize editor state:",r)}},[t,e]),p.jsx(fs,{})},sp=({isOpen:t,onClose:e,eventData:r,editorState:n,popupEditorState:o})=>{var u,l;const[a,i]=w.useState("desktop");if(w.useEffect(()=>{const c=h=>{h.key==="Escape"&&e()};if(t)return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[t,e]),!t)return null;const s=((u=Ha[a])==null?void 0:u.width)||1440;return p.jsxs("div",{className:"fixed inset-0 z-50 bg-background flex flex-col bg-white",children:[p.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border bg-card",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("h2",{className:"text-lg font-semibold",children:"Preview"}),p.jsxs("span",{className:"text-sm text-muted-foreground",children:["(",(l=Ha[a])==null?void 0:l.width,"px)"]})]}),p.jsx("div",{className:"flex items-center gap-1 bg-muted rounded-lg p-1",children:Object.entries(Ha).map(([c,{label:h,icon:f}])=>p.jsxs(Xe,{variant:"ghost",size:"sm",onClick:()=>i(c),className:Ih("h-8 px-3 gap-2",a===c&&"bg-background shadow-sm"),children:[p.jsx(f,{className:"h-4 w-4"}),p.jsx("span",{className:"hidden sm:inline",children:h})]},c))}),p.jsx(Xe,{variant:"ghost",size:"icon",onClick:e,children:p.jsx(Ch,{className:"h-5 w-5"})})]}),p.jsx("div",{className:"flex-1 overflow-auto bg-muted/50 p-6",children:p.jsx("div",{className:"flex justify-center min-h-full",children:p.jsx("div",{className:"bg-white rounded-lg shadow-xl transition-all duration-300 overflow-hidden p-4",style:{width:`${s}px`,maxWidth:"100%"},children:p.jsx(Lo,{value:r,children:n?p.jsx(lC,{editorState:n,deviceSize:a}):p.jsx("div",{className:"flex items-center justify-center h-48 text-muted-foreground",children:"No content to preview. Start building your page first."})})})})})]})},dC=({handleSavePopup:t,popupEditorState:e,handleStateChangePopup:r,editorState:n,initialData:o,onSave:a,onStateChange:i,eventData:s,enabled:u=!0})=>{const[l,c]=w.useState(!1);return p.jsx(Lo,{value:s,children:p.jsxs(w.Suspense,{fallback:p.jsx(en,{children:p.jsx(tn,{className:"p-4",children:p.jsxs("div",{className:"space-y-4",children:[p.jsx(Mn,{className:"h-8 w-48"}),p.jsxs("div",{className:"flex gap-4",children:[p.jsx(Mn,{className:"h-[500px] w-48"}),p.jsx(Mn,{className:"h-[500px] flex-1"}),p.jsx(Mn,{className:"h-[500px] w-64"})]})]})})}),children:[p.jsx(uC,{popupEditorState:e,handleStateChangePopup:r,editorState:n,enabled:u,setIsOpen:c,initialData:o,onSave:a,handleSavePopup:t,onStateChange:i}),u?p.jsx(sp,{popupEditorState:e,eventData:s,editorState:n,isOpen:l,onClose:()=>c(!1)}):null]})})},up=w.createContext({fetchVideoByLocation:null}),fC=({children:t,fetchVideoByLocation:e})=>p.jsx(up.Provider,{value:{fetchVideoByLocation:e},children:t}),pC=()=>w.useContext(up);exports.ApiConfigProvider=fC;exports.DEVICE_ORDER=Ie;exports.DeviceSizeProvider=ps;exports.EventDataProvider=Lo;exports.PageBuilder=dC;exports.PreviewModal=sp;exports.TEMPLATE_VARIABLES=W3;exports.getPlaceholderPaths=V3;exports.getResponsiveValue=gt;exports.hasTemplatePlaceholders=U3;exports.processTemplate=Eo;exports.resolver=Mo;exports.useApiConfig=pC;exports.useDeviceSize=Ce;exports.useEventData=Cn;