@tech_carthagos/page-builder 1.0.27 → 1.0.29

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.
Files changed (39) hide show
  1. package/dist/index.cjs.js +275 -1
  2. package/dist/index.es.js +18388 -15
  3. package/dist/style.css +3 -1
  4. package/dist/styles.css +106 -1
  5. package/dist-types/CraftEditor.d.ts +23 -1
  6. package/dist-types/CraftEditor.d.ts.map +1 -1
  7. package/dist-types/PageBuilder.d.ts +2 -1
  8. package/dist-types/PageBuilder.d.ts.map +1 -1
  9. package/dist-types/PreviewModal.d.ts.map +1 -1
  10. package/dist-types/editor/SettingsUI.d.ts +9 -6
  11. package/dist-types/editor/SettingsUI.d.ts.map +1 -1
  12. package/dist-types/editor/Toolbox.d.ts.map +1 -1
  13. package/dist-types/editor/Topbar.d.ts +2 -1
  14. package/dist-types/editor/Topbar.d.ts.map +1 -1
  15. package/dist-types/examples/App.d.ts.map +1 -1
  16. package/dist-types/user/Button.d.ts.map +1 -1
  17. package/dist-types/user/Columns.d.ts.map +1 -1
  18. package/dist-types/user/Container.d.ts +20 -6
  19. package/dist-types/user/Container.d.ts.map +1 -1
  20. package/dist-types/user/ContainerOld.d.ts +53 -12
  21. package/dist-types/user/ContainerOld.d.ts.map +1 -1
  22. package/dist-types/user/Div.d.ts +20 -6
  23. package/dist-types/user/Div.d.ts.map +1 -1
  24. package/dist-types/user/Divider.d.ts.map +1 -1
  25. package/dist-types/user/Footer.d.ts +2 -3
  26. package/dist-types/user/Footer.d.ts.map +1 -1
  27. package/dist-types/user/Image.d.ts.map +1 -1
  28. package/dist-types/user/Img.d.ts.map +1 -1
  29. package/dist-types/user/Link.d.ts.map +1 -1
  30. package/dist-types/user/Spacer.d.ts.map +1 -1
  31. package/dist-types/user/Video.d.ts.map +1 -1
  32. package/dist-types/user/Wrapper.d.ts +20 -6
  33. package/dist-types/user/Wrapper.d.ts.map +1 -1
  34. package/dist-types/user/index.d.ts +2 -0
  35. package/package.json +2 -4
  36. package/dist/CraftEditor-D2EBrpQi.js +0 -1930
  37. package/dist/CraftEditor-bE3h6p8p.cjs +0 -72
  38. package/dist/index-Bq79BZ9n.cjs +0 -189
  39. package/dist/index-C_JmCif3.js +0 -16295
@@ -1,189 +0,0 @@
1
- "use strict";const p=require("react/jsx-runtime"),j=require("react"),el=require("react-dom"),f0=require("@tanstack/react-query");function tl(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 x=tl(j),rl=tl(el);function nl(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=nl(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Kt(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=nl(t))&&(n&&(n+=" "),n+=e);return n}const Mu="-",p0=t=>{const e=b0(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:a=>{const o=a.split(Mu);return o[0]===""&&o.length!==1&&o.shift(),il(o,e)||h0(a)},getConflictingClassGroupIds:(a,o)=>{const s=r[a]||[];return o&&n[a]?[...s,...n[a]]:s}}},il=(t,e)=>{var a;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),i=n?il(t.slice(1),n):void 0;if(i)return i;if(e.validators.length===0)return;const u=t.join(Mu);return(a=e.validators.find(({validator:o})=>o(u)))==null?void 0:a.classGroupId},so=/^\[(.+)\]$/,h0=t=>{if(so.test(t)){const e=so.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},b0=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return m0(Object.entries(t.classGroups),r).forEach(([u,a])=>{Wi(a,n,u,e)}),n},Wi=(t,e,r,n)=>{t.forEach(i=>{if(typeof i=="string"){const u=i===""?e:lo(e,i);u.classGroupId=r;return}if(typeof i=="function"){if(g0(i)){Wi(i(n),e,r,n);return}e.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([u,a])=>{Wi(a,lo(e,u),r,n)})})},lo=(t,e)=>{let r=t;return e.split(Mu).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},g0=t=>t.isThemeGetter,m0=(t,e)=>e?t.map(([r,n])=>{const i=n.map(u=>typeof u=="string"?e+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([a,o])=>[e+a,o])):u);return[r,i]}):t,y0=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const i=(u,a)=>{r.set(u,a),e++,e>t&&(e=0,n=r,r=new Map)};return{get(u){let a=r.get(u);if(a!==void 0)return a;if((a=n.get(u))!==void 0)return i(u,a),a},set(u,a){r.has(u)?r.set(u,a):i(u,a)}}},ul="!",v0=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,i=e[0],u=e.length,a=o=>{const s=[];let l=0,c=0,h;for(let b=0;b<o.length;b++){let y=o[b];if(l===0){if(y===i&&(n||o.slice(b,b+u)===e)){s.push(o.slice(c,b)),c=b+u;continue}if(y==="/"){h=b;continue}}y==="["?l++:y==="]"&&l--}const d=s.length===0?o:o.substring(c),f=d.startsWith(ul),g=f?d.substring(1):d,m=h&&h>c?h-c:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:m}};return r?o=>r({className:o,parseClassName:a}):a},x0=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},w0=t=>({cache:y0(t.cacheSize),parseClassName:v0(t),...p0(t)}),S0=/\s+/,C0=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=e,u=[],a=t.trim().split(S0);let o="";for(let s=a.length-1;s>=0;s-=1){const l=a[s],{modifiers:c,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:f}=r(l);let g=!!f,m=n(g?d.substring(0,f):d);if(!m){if(!g){o=l+(o.length>0?" "+o:o);continue}if(m=n(d),!m){o=l+(o.length>0?" "+o:o);continue}g=!1}const b=x0(c).join(":"),y=h?b+ul:b,v=y+m;if(u.includes(v))continue;u.push(v);const E=i(m,g);for(let C=0;C<E.length;++C){const N=E[C];u.push(y+N)}o=l+(o.length>0?" "+o:o)}return o};function E0(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=al(e))&&(n&&(n+=" "),n+=r);return n}const al=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=al(t[n]))&&(r&&(r+=" "),r+=e);return r};function T0(t,...e){let r,n,i,u=a;function a(s){const l=e.reduce((c,h)=>h(c),t());return r=w0(l),n=r.cache.get,i=r.cache.set,u=o,o(s)}function o(s){const l=n(s);if(l)return l;const c=C0(s,r);return i(s,c),c}return function(){return u(E0.apply(null,arguments))}}const re=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},ol=/^\[(?:([a-z-]+):)?(.+)\]$/i,A0=/^\d+\/\d+$/,N0=new Set(["px","full","screen"]),O0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,j0=/\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$/,_0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,P0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,k0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ze=t=>Dt(t)||N0.has(t)||A0.test(t),it=t=>Zt(t,"length",q0),Dt=t=>!!t&&!Number.isNaN(Number(t)),Ni=t=>Zt(t,"number",Dt),dr=t=>!!t&&Number.isInteger(Number(t)),R0=t=>t.endsWith("%")&&Dt(t.slice(0,-1)),H=t=>ol.test(t),ut=t=>O0.test(t),I0=new Set(["length","size","percentage"]),D0=t=>Zt(t,I0,sl),L0=t=>Zt(t,"position",sl),M0=new Set(["image","url"]),$0=t=>Zt(t,M0,F0),B0=t=>Zt(t,"",H0),fr=()=>!0,Zt=(t,e,r)=>{const n=ol.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},q0=t=>j0.test(t)&&!_0.test(t),sl=()=>!1,H0=t=>P0.test(t),F0=t=>k0.test(t),z0=()=>{const t=re("colors"),e=re("spacing"),r=re("blur"),n=re("brightness"),i=re("borderColor"),u=re("borderRadius"),a=re("borderSpacing"),o=re("borderWidth"),s=re("contrast"),l=re("grayscale"),c=re("hueRotate"),h=re("invert"),d=re("gap"),f=re("gradientColorStops"),g=re("gradientColorStopPositions"),m=re("inset"),b=re("margin"),y=re("opacity"),v=re("padding"),E=re("saturate"),C=re("scale"),N=re("sepia"),k=re("skew"),R=re("space"),D=re("translate"),$=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto",H,e],T=()=>[H,e],_=()=>["",ze,it],I=()=>["auto",Dt,H],w=()=>["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"],P=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",H],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[Dt,H];return{cacheSize:500,separator:":",theme:{colors:[fr],spacing:[ze,it],blur:["none","",ut,H],brightness:ce(),borderColor:[t],borderRadius:["none","","full",ut,H],borderSpacing:T(),borderWidth:_(),contrast:ce(),grayscale:B(),hueRotate:ce(),invert:B(),gap:T(),gradientColorStops:[t],gradientColorStopPositions:[R0,it],inset:S(),margin:S(),opacity:ce(),padding:T(),saturate:ce(),scale:ce(),sepia:B(),skew:ce(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[ut]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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:[...w(),H]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",dr,H]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",dr,H]}],"grid-cols":[{"grid-cols":[fr]}],"col-start-end":[{col:["auto",{span:["full",dr,H]},H]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[fr]}],"row-start-end":[{row:["auto",{span:[dr,H]},H]}],"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",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"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",H,e]}],"min-w":[{"min-w":[H,e,"min","max","fit"]}],"max-w":[{"max-w":[H,e,"none","full","min","max","fit","prose",{screen:[ut]},ut]}],h:[{h:[H,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[H,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[H,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,e,"auto","min","max","fit"]}],"font-size":[{text:["base",ut,it]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ni]}],"font-family":[{font:[fr]}],"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",H]}],"line-clamp":[{"line-clamp":["none",Dt,Ni]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ze,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ze,it]}],"underline-offset":[{"underline-offset":["auto",ze,H]}],"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",H]}],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",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...w(),L0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",D0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$0]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:O()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[ze,H]}],"outline-w":[{outline:[ze,it]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ze,it]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",ut,B0]}],"shadow-color":[{shadow:[fr]}],opacity:[{opacity:[y]}],"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:[s]}],"drop-shadow":[{"drop-shadow":["","none",ut,H]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[E]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",H]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[dr,H]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"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",H]}],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",H]}],"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",H]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ze,it,Ni]}],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"]}}},ll=T0(z0);function ye(...t){return ll(Kt(t))}const $u=x.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:ye("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));$u.displayName="Card";const U0=x.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:ye("flex flex-col space-y-1.5 p-6",t),...e}));U0.displayName="CardHeader";const V0=x.forwardRef(({className:t,...e},r)=>p.jsx("h3",{ref:r,className:ye("text-2xl font-semibold leading-none tracking-tight",t),...e}));V0.displayName="CardTitle";const W0=x.forwardRef(({className:t,...e},r)=>p.jsx("p",{ref:r,className:ye("text-sm text-muted-foreground",t),...e}));W0.displayName="CardDescription";const Bu=x.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:ye("p-6 pt-0",t),...e}));Bu.displayName="CardContent";const G0=x.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:ye("flex items-center p-6 pt-0",t),...e}));G0.displayName="CardFooter";function Kr({className:t,...e}){return p.jsx("div",{className:ye("animate-pulse rounded-md bg-muted",t),...e})}const cl=j.createContext(null),qu=({children:t,value:e})=>p.jsx(cl.Provider,{value:e,children:t}),Gn=()=>j.useContext(cl),X0=j.lazy(()=>Promise.resolve().then(()=>require("./CraftEditor-bE3h6p8p.cjs"))),Y0=({initialData:t,onSave:e,onStateChange:r,eventData:n})=>p.jsx(qu,{value:n,children:p.jsx(j.Suspense,{fallback:p.jsx($u,{children:p.jsx(Bu,{className:"p-4",children:p.jsxs("div",{className:"space-y-4",children:[p.jsx(Kr,{className:"h-8 w-48"}),p.jsxs("div",{className:"flex gap-4",children:[p.jsx(Kr,{className:"h-[500px] w-48"}),p.jsx(Kr,{className:"h-[500px] flex-1"}),p.jsx(Kr,{className:"h-[500px] w-64"})]})]})})}),children:p.jsx(X0,{initialData:t,onSave:e,onStateChange:r})})});/**
2
- * @license lucide-react v0.462.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const J0=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dl=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/**
7
- * @license lucide-react v0.462.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */var K0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12
- * @license lucide-react v0.462.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const Z0=j.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:u,iconNode:a,...o},s)=>j.createElement("svg",{ref:s,...K0,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:dl("lucide",i),...o},[...a.map(([l,c])=>j.createElement(l,c)),...Array.isArray(u)?u:[u]]));/**
17
- * @license lucide-react v0.462.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const ae=(t,e)=>{const r=j.forwardRef(({className:n,...i},u)=>j.createElement(Z0,{ref:u,iconNode:e,className:dl(`lucide-${J0(t)}`,n),...i}));return r.displayName=`${t}`,r};/**
22
- * @license lucide-react v0.462.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const Hu=ae("AlignCenter",[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
27
- * @license lucide-react v0.462.0 - ISC
28
- *
29
- * This source code is licensed under the ISC license.
30
- * See the LICENSE file in the root directory of this source tree.
31
- */const Fu=ae("AlignLeft",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
32
- * @license lucide-react v0.462.0 - ISC
33
- *
34
- * This source code is licensed under the ISC license.
35
- * See the LICENSE file in the root directory of this source tree.
36
- */const zu=ae("AlignRight",[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
37
- * @license lucide-react v0.462.0 - ISC
38
- *
39
- * This source code is licensed under the ISC license.
40
- * See the LICENSE file in the root directory of this source tree.
41
- */const Q0=ae("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/**
42
- * @license lucide-react v0.462.0 - ISC
43
- *
44
- * This source code is licensed under the ISC license.
45
- * See the LICENSE file in the root directory of this source tree.
46
- */const Uu=ae("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
47
- * @license lucide-react v0.462.0 - ISC
48
- *
49
- * This source code is licensed under the ISC license.
50
- * See the LICENSE file in the root directory of this source tree.
51
- */const Vu=ae("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
52
- * @license lucide-react v0.462.0 - ISC
53
- *
54
- * This source code is licensed under the ISC license.
55
- * See the LICENSE file in the root directory of this source tree.
56
- */const Wu=ae("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
57
- * @license lucide-react v0.462.0 - ISC
58
- *
59
- * This source code is licensed under the ISC license.
60
- * See the LICENSE file in the root directory of this source tree.
61
- */const ef=ae("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
62
- * @license lucide-react v0.462.0 - ISC
63
- *
64
- * This source code is licensed under the ISC license.
65
- * See the LICENSE file in the root directory of this source tree.
66
- */const tf=ae("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
67
- * @license lucide-react v0.462.0 - ISC
68
- *
69
- * This source code is licensed under the ISC license.
70
- * See the LICENSE file in the root directory of this source tree.
71
- */const rf=ae("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
72
- * @license lucide-react v0.462.0 - ISC
73
- *
74
- * This source code is licensed under the ISC license.
75
- * See the LICENSE file in the root directory of this source tree.
76
- */const fl=ae("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"}]]);/**
77
- * @license lucide-react v0.462.0 - ISC
78
- *
79
- * This source code is licensed under the ISC license.
80
- * See the LICENSE file in the root directory of this source tree.
81
- */const nf=ae("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/**
82
- * @license lucide-react v0.462.0 - ISC
83
- *
84
- * This source code is licensed under the ISC license.
85
- * See the LICENSE file in the root directory of this source tree.
86
- */const pl=ae("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"}]]);/**
87
- * @license lucide-react v0.462.0 - ISC
88
- *
89
- * This source code is licensed under the ISC license.
90
- * See the LICENSE file in the root directory of this source tree.
91
- */const uf=ae("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
92
- * @license lucide-react v0.462.0 - ISC
93
- *
94
- * This source code is licensed under the ISC license.
95
- * See the LICENSE file in the root directory of this source tree.
96
- */const af=ae("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
97
- * @license lucide-react v0.462.0 - ISC
98
- *
99
- * This source code is licensed under the ISC license.
100
- * See the LICENSE file in the root directory of this source tree.
101
- */const Gu=ae("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"}]]);/**
102
- * @license lucide-react v0.462.0 - ISC
103
- *
104
- * This source code is licensed under the ISC license.
105
- * See the LICENSE file in the root directory of this source tree.
106
- */const Xu=ae("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
107
- * @license lucide-react v0.462.0 - ISC
108
- *
109
- * This source code is licensed under the ISC license.
110
- * See the LICENSE file in the root directory of this source tree.
111
- */const of=ae("Strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]);/**
112
- * @license lucide-react v0.462.0 - ISC
113
- *
114
- * This source code is licensed under the ISC license.
115
- * See the LICENSE file in the root directory of this source tree.
116
- */const Yu=ae("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"}]]);/**
117
- * @license lucide-react v0.462.0 - ISC
118
- *
119
- * This source code is licensed under the ISC license.
120
- * See the LICENSE file in the root directory of this source tree.
121
- */const Ju=ae("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"}]]);/**
122
- * @license lucide-react v0.462.0 - ISC
123
- *
124
- * This source code is licensed under the ISC license.
125
- * See the LICENSE file in the root directory of this source tree.
126
- */const sf=ae("Underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);/**
127
- * @license lucide-react v0.462.0 - ISC
128
- *
129
- * This source code is licensed under the ISC license.
130
- * See the LICENSE file in the root directory of this source tree.
131
- */const lf=ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function co(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Xn(...t){return e=>{let r=!1;const n=t.map(i=>{const u=co(i,e);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let i=0;i<n.length;i++){const u=n[i];typeof u=="function"?u():co(t[i],null)}}}}function Be(...t){return x.useCallback(Xn(...t),t)}var cf=Symbol.for("react.lazy"),xn=x[" use ".trim().toString()];function df(t){return typeof t=="object"&&t!==null&&"then"in t}function hl(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===cf&&"_payload"in t&&df(t._payload)}function ff(t){const e=hf(t),r=x.forwardRef((n,i)=>{let{children:u,...a}=n;hl(u)&&typeof xn=="function"&&(u=xn(u._payload));const o=x.Children.toArray(u),s=o.find(gf);if(s){const l=s.props.children,c=o.map(h=>h===s?x.Children.count(l)>1?x.Children.only(null):x.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...a,ref:i,children:x.isValidElement(l)?x.cloneElement(l,void 0,c):null})}return p.jsx(e,{...a,ref:i,children:u})});return r.displayName=`${t}.Slot`,r}var pf=ff("Slot");function hf(t){const e=x.forwardRef((r,n)=>{let{children:i,...u}=r;if(hl(i)&&typeof xn=="function"&&(i=xn(i._payload)),x.isValidElement(i)){const a=yf(i),o=mf(u,i.props);return i.type!==x.Fragment&&(o.ref=n?Xn(n,a):a),x.cloneElement(i,o)}return x.Children.count(i)>1?x.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var bf=Symbol("radix.slottable");function gf(t){return x.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===bf}function mf(t,e){const r={...e};for(const n in e){const i=t[n],u=e[n];/^on[A-Z]/.test(n)?i&&u?r[n]=(...o)=>{const s=u(...o);return i(...o),s}:i&&(r[n]=i):n==="style"?r[n]={...i,...u}:n==="className"&&(r[n]=[i,u].filter(Boolean).join(" "))}return{...t,...r}}function yf(t){var n,i;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=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const fo=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,po=Kt,bl=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return po(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:u}=e,a=Object.keys(i).map(l=>{const c=r==null?void 0:r[l],h=u==null?void 0:u[l];if(c===null)return null;const d=fo(c)||fo(h);return i[l][d]}),o=r&&Object.entries(r).reduce((l,c)=>{let[h,d]=c;return d===void 0||(l[h]=d),l},{}),s=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((l,c)=>{let{class:h,className:d,...f}=c;return Object.entries(f).every(g=>{let[m,b]=g;return Array.isArray(b)?b.includes({...u,...o}[m]):{...u,...o}[m]===b})?[...l,h,d]:l},[]);return po(t,a,s,r==null?void 0:r.class,r==null?void 0:r.className)},vf=bl("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"}}),Sr=x.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...i},u)=>{const a=n?pf:"button";return p.jsx(a,{className:ye(vf({variant:e,size:r,className:t})),ref:u,...i})});Sr.displayName="Button";function xf(...t){return ll(Kt(t))}function ue(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 i=jf[t],u=i?typeof i=="function"?i.apply(null,r):i:"unknown error nr: "+t;throw Error("[Immer] "+u)}throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function xt(t){return!!t&&!!t[Y]}function Me(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 i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===_f}(t)||Array.isArray(t)||!!t[vr]||!!(!((e=t.constructor)===null||e===void 0)&&e[vr])||Yn(t)||Jn(t))}function wt(t,e,r){r===void 0&&(r=!1),st(t)===0?(r?Object.keys:ra)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function st(t){var e=t[Y];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Yn(t)?2:Jn(t)?3:0}function Cr(t,e){return st(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function hn(t,e){return st(t)===2?t.get(e):t[e]}function gl(t,e,r){var n=st(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function wf(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Yn(t){return Nf&&t instanceof Map}function Jn(t){return Of&&t instanceof Set}function de(t){return t.o||t.t}function Ku(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Pf(t);delete e[Y];for(var r=ra(e),n=0;n<r.length;n++){var i=r[n],u=e[i];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(e[i]={configurable:!0,writable:!0,enumerable:u.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Zu(t,e){return e===void 0&&(e=!1),Qu(t)||xt(t)||!Me(t)||(st(t)>1&&(t.set=t.add=t.clear=t.delete=Sf),Object.freeze(t),e&&wt(t,function(r,n){return Zu(n,!0)},!0)),t}function Sf(){ue(2)}function Qu(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Re(t){var e=Xi[t];return e||ue(18,t),e}function ml(t,e){Xi[t]||(Xi[t]=e)}function wn(){return process.env.NODE_ENV==="production"||Bt||ue(0),Bt}function Oi(t,e){e&&(Re("Patches"),t.u=[],t.s=[],t.v=e)}function Sn(t){Gi(t),t.p.forEach(Cf),t.p=null}function Gi(t){t===Bt&&(Bt=t.l)}function ho(t){return Bt={p:[],l:Bt,h:t,m:!0,_:0}}function Cf(t){var e=t[Y];e.i===0||e.i===1?e.j():e.g=!0}function ji(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Re("ES5").S(e,t,n),n?(r[Y].P&&(Sn(e),ue(4)),Me(t)&&(t=Cn(e,t),e.l||En(e,t)),e.u&&Re("Patches").M(r[Y].t,t,e.u,e.s)):t=Cn(e,r,[]),Sn(e),e.u&&e.v(e.u,e.s),t!==ta?t:void 0}function Cn(t,e,r){if(Qu(e))return e;var n=e[Y];if(!n)return wt(e,function(o,s){return bo(t,n,e,o,s,r)},!0),e;if(n.A!==t)return e;if(!n.P)return En(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ku(n.k):n.o,u=i,a=!1;n.i===3&&(u=new Set(i),i.clear(),a=!0),wt(u,function(o,s){return bo(t,n,i,o,s,r,a)}),En(t,i,!1),r&&t.u&&Re("Patches").N(n,r,t.u,t.s)}return n.o}function bo(t,e,r,n,i,u,a){if(process.env.NODE_ENV!=="production"&&i===r&&ue(5),xt(i)){var o=Cn(t,i,u&&e&&e.i!==3&&!Cr(e.R,n)?u.concat(n):void 0);if(gl(r,n,o),!xt(o))return;t.m=!1}else a&&r.add(i);if(Me(i)&&!Qu(i)){if(!t.h.D&&t._<1)return;Cn(t,i),e&&e.A.l||En(t,i)}}function En(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Zu(e,r)}function _i(t,e){var r=t[Y];return(r?de(r):t)[e]}function go(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 Ge(t){t.P||(t.P=!0,t.l&&Ge(t.l))}function Pi(t){t.o||(t.o=Ku(t.t))}function Er(t,e,r){var n=Yn(e)?Re("MapSet").F(e,r):Jn(e)?Re("MapSet").T(e,r):t.O?function(i,u){var a=Array.isArray(i),o={i:a?1:0,A:u?u.A:wn(),P:!1,I:!1,R:{},l:u,t:i,k:null,o:null,j:null,C:!1},s=o,l=Yi;a&&(s=[o],l=mr);var c=Proxy.revocable(s,l),h=c.revoke,d=c.proxy;return o.k=d,o.j=h,d}(e,r):Re("ES5").J(e,r);return(r?r.A:wn()).p.push(n),n}function Ef(t){return xt(t)||ue(22,t),function e(r){if(!Me(r))return r;var n,i=r[Y],u=st(r);if(i){if(!i.P&&(i.i<4||!Re("ES5").K(i)))return i.t;i.I=!0,n=mo(r,u),i.I=!1}else n=mo(r,u);return wt(n,function(a,o){i&&hn(i.t,a)===o||gl(n,a,e(o))}),u===3?new Set(n):n}(t)}function mo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ku(t)}function Tf(){function t(n){if(!Me(n))return n;if(Array.isArray(n))return n.map(t);if(Yn(n))return new Map(Array.from(n.entries()).map(function(a){return[a[0],t(a[1])]}));if(Jn(n))return new Set(Array.from(n).map(t));var i=Object.create(Object.getPrototypeOf(n));for(var u in n)i[u]=t(n[u]);return Cr(n,vr)&&(i[vr]=n[vr]),i}function e(n){return xt(n)?t(n):n}var r="add";ml("Patches",{$:function(n,i){return i.forEach(function(u){for(var a=u.path,o=u.op,s=n,l=0;l<a.length-1;l++){var c=st(s),h=a[l];typeof h!="string"&&typeof h!="number"&&(h=""+h),c!==0&&c!==1||h!=="__proto__"&&h!=="constructor"||ue(24),typeof s=="function"&&h==="prototype"&&ue(24),typeof(s=hn(s,h))!="object"&&ue(15,a.join("/"))}var d=st(s),f=t(u.value),g=a[a.length-1];switch(o){case"replace":switch(d){case 2:return s.set(g,f);case 3:ue(16);default:return s[g]=f}case r:switch(d){case 1:return g==="-"?s.push(f):s.splice(g,0,f);case 2:return s.set(g,f);case 3:return s.add(f);default:return s[g]=f}case"remove":switch(d){case 1:return s.splice(g,1);case 2:return s.delete(g);case 3:return s.delete(u.value);default:return delete s[g]}default:ue(17,o)}}),n},N:function(n,i,u,a){switch(n.i){case 0:case 4:case 2:return function(o,s,l,c){var h=o.t,d=o.o;wt(o.R,function(f,g){var m=hn(h,f),b=hn(d,f),y=g?Cr(h,f)?"replace":r:"remove";if(m!==b||y!=="replace"){var v=s.concat(f);l.push(y==="remove"?{op:y,path:v}:{op:y,path:v,value:b}),c.push(y===r?{op:"remove",path:v}:y==="remove"?{op:r,path:v,value:e(m)}:{op:"replace",path:v,value:e(m)})}})}(n,i,u,a);case 5:case 1:return function(o,s,l,c){var h=o.t,d=o.R,f=o.o;if(f.length<h.length){var g=[f,h];h=g[0],f=g[1];var m=[c,l];l=m[0],c=m[1]}for(var b=0;b<h.length;b++)if(d[b]&&f[b]!==h[b]){var y=s.concat([b]);l.push({op:"replace",path:y,value:e(f[b])}),c.push({op:"replace",path:y,value:e(h[b])})}for(var v=h.length;v<f.length;v++){var E=s.concat([v]);l.push({op:r,path:E,value:e(f[v])})}h.length<f.length&&c.push({op:"replace",path:s.concat(["length"]),value:h.length})}(n,i,u,a);case 3:return function(o,s,l,c){var h=o.t,d=o.o,f=0;h.forEach(function(g){if(!d.has(g)){var m=s.concat([f]);l.push({op:"remove",path:m,value:g}),c.unshift({op:r,path:m,value:g})}f++}),f=0,d.forEach(function(g){if(!h.has(g)){var m=s.concat([f]);l.push({op:r,path:m,value:g}),c.unshift({op:"remove",path:m,value:g})}f++})}(n,i,u,a)}},M:function(n,i,u,a){u.push({op:"replace",path:[],value:i===ta?void 0:i}),a.push({op:"replace",path:[],value:n})}})}function Af(){function t(o,s){function l(){this.constructor=o}i(o,s),o.prototype=(l.prototype=s.prototype,new l)}function e(o){o.o||(o.R=new Map,o.o=new Map(o.t))}function r(o){o.o||(o.o=new Set,o.t.forEach(function(s){if(Me(s)){var l=Er(o.A.h,s,o);o.p.set(s,l),o.o.add(l)}else o.o.add(s)}))}function n(o){o.g&&ue(3,JSON.stringify(de(o)))}var i=function(o,s){return(i=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])})(o,s)},u=function(){function o(l,c){return this[Y]={i:2,l:c,A:c?c.A:wn(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,g:!1},this}t(o,Map);var s=o.prototype;return Object.defineProperty(s,"size",{get:function(){return de(this[Y]).size}}),s.has=function(l){return de(this[Y]).has(l)},s.set=function(l,c){var h=this[Y];return n(h),de(h).has(l)&&de(h).get(l)===c||(e(h),Ge(h),h.R.set(l,!0),h.o.set(l,c),h.R.set(l,!0)),this},s.delete=function(l){if(!this.has(l))return!1;var c=this[Y];return n(c),e(c),Ge(c),c.t.has(l)?c.R.set(l,!1):c.R.delete(l),c.o.delete(l),!0},s.clear=function(){var l=this[Y];n(l),de(l).size&&(e(l),Ge(l),l.R=new Map,wt(l.t,function(c){l.R.set(c,!1)}),l.o.clear())},s.forEach=function(l,c){var h=this;de(this[Y]).forEach(function(d,f){l.call(c,h.get(f),f,h)})},s.get=function(l){var c=this[Y];n(c);var h=de(c).get(l);if(c.I||!Me(h)||h!==c.t.get(l))return h;var d=Er(c.A.h,h,c);return e(c),c.o.set(l,d),d},s.keys=function(){return de(this[Y]).keys()},s.values=function(){var l,c=this,h=this.keys();return(l={})[Zr]=function(){return c.values()},l.next=function(){var d=h.next();return d.done?d:{done:!1,value:c.get(d.value)}},l},s.entries=function(){var l,c=this,h=this.keys();return(l={})[Zr]=function(){return c.entries()},l.next=function(){var d=h.next();if(d.done)return d;var f=c.get(d.value);return{done:!1,value:[d.value,f]}},l},s[Zr]=function(){return this.entries()},o}(),a=function(){function o(l,c){return this[Y]={i:3,l:c,A:c?c.A:wn(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,g:!1,C:!1},this}t(o,Set);var s=o.prototype;return Object.defineProperty(s,"size",{get:function(){return de(this[Y]).size}}),s.has=function(l){var c=this[Y];return n(c),c.o?!!c.o.has(l)||!(!c.p.has(l)||!c.o.has(c.p.get(l))):c.t.has(l)},s.add=function(l){var c=this[Y];return n(c),this.has(l)||(r(c),Ge(c),c.o.add(l)),this},s.delete=function(l){if(!this.has(l))return!1;var c=this[Y];return n(c),r(c),Ge(c),c.o.delete(l)||!!c.p.has(l)&&c.o.delete(c.p.get(l))},s.clear=function(){var l=this[Y];n(l),de(l).size&&(r(l),Ge(l),l.o.clear())},s.values=function(){var l=this[Y];return n(l),r(l),l.o.values()},s.entries=function(){var l=this[Y];return n(l),r(l),l.o.entries()},s.keys=function(){return this.values()},s[Zr]=function(){return this.values()},s.forEach=function(l,c){for(var h=this.values(),d=h.next();!d.done;)l.call(c,d.value,d.value,this),d=h.next()},o}();ml("MapSet",{F:function(o,s){return new u(o,s)},T:function(o,s){return new a(o,s)}})}var yo,Bt,ea=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Nf=typeof Map<"u",Of=typeof Set<"u",vo=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ta=ea?Symbol.for("immer-nothing"):((yo={})["immer-nothing"]=!0,yo),vr=ea?Symbol.for("immer-draftable"):"__$immer_draftable",Y=ea?Symbol.for("immer-state"):"__$immer_state",Zr=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",jf={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"},_f=""+Object.prototype.constructor,ra=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Pf=Object.getOwnPropertyDescriptors||function(t){var e={};return ra(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Xi={},Yi={get:function(t,e){if(e===Y)return t;var r=de(t);if(!Cr(r,e))return function(i,u,a){var o,s=go(u,a);return s?"value"in s?s.value:(o=s.get)===null||o===void 0?void 0:o.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!Me(n)?n:n===_i(t.t,e)?(Pi(t),t.o[e]=Er(t.A.h,n,t)):n},has:function(t,e){return e in de(t)},ownKeys:function(t){return Reflect.ownKeys(de(t))},set:function(t,e,r){var n=go(de(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var i=_i(de(t),e),u=i==null?void 0:i[Y];if(u&&u.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(wf(r,i)&&(r!==void 0||Cr(t.t,e)))return!0;Pi(t),Ge(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 _i(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Pi(t),Ge(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=de(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){ue(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ue(12)}},mr={};wt(Yi,function(t,e){mr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),mr.deleteProperty=function(t,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&ue(13),mr.set.call(this,t,e,void 0)},mr.set=function(t,e,r){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&ue(14),Yi.set.call(this,t[0],e,r,t[0])};var kf=function(){function t(r){var n=this;this.O=vo,this.D=!0,this.produce=function(i,u,a){if(typeof i=="function"&&typeof u!="function"){var o=u;u=i;var s=n;return function(m){var b=this;m===void 0&&(m=o);for(var y=arguments.length,v=Array(y>1?y-1:0),E=1;E<y;E++)v[E-1]=arguments[E];return s.produce(m,function(C){var N;return(N=u).call.apply(N,[b,C].concat(v))})}}var l;if(typeof u!="function"&&ue(6),a!==void 0&&typeof a!="function"&&ue(7),Me(i)){var c=ho(n),h=Er(n,i,void 0),d=!0;try{l=u(h),d=!1}finally{d?Sn(c):Gi(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(m){return Oi(c,a),ji(m,c)},function(m){throw Sn(c),m}):(Oi(c,a),ji(l,c))}if(!i||typeof i!="object"){if((l=u(i))===void 0&&(l=i),l===ta&&(l=void 0),n.D&&Zu(l,!0),a){var f=[],g=[];Re("Patches").M(i,l,f,g),a(f,g)}return l}ue(21,i)},this.produceWithPatches=function(i,u){if(typeof i=="function")return function(l){for(var c=arguments.length,h=Array(c>1?c-1:0),d=1;d<c;d++)h[d-1]=arguments[d];return n.produceWithPatches(l,function(f){return i.apply(void 0,[f].concat(h))})};var a,o,s=n.produce(i,u,function(l,c){a=l,o=c});return typeof Promise<"u"&&s instanceof Promise?s.then(function(l){return[l,a,o]}):[s,a,o]},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){Me(r)||ue(8),xt(r)&&(r=Ef(r));var n=ho(this),i=Er(this,r,void 0);return i[Y].C=!0,Gi(n),i},e.finishDraft=function(r,n){var i=r&&r[Y];process.env.NODE_ENV!=="production"&&(i&&i.C||ue(9),i.I&&ue(10));var u=i.A;return Oi(u,n),ji(void 0,u)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!vo&&ue(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var u=n[i];if(u.path.length===0&&u.op==="replace"){r=u.value;break}}i>-1&&(n=n.slice(i+1));var a=Re("Patches").$;return xt(r)?a(r,n):this.produce(r,function(o){return a(o,n)})},t}(),ve=new kf,Rf=ve.produce,xo=ve.produceWithPatches.bind(ve);ve.setAutoFreeze.bind(ve);ve.setUseProxies.bind(ve);var wo=ve.applyPatches.bind(ve);ve.createDraft.bind(ve);ve.finishDraft.bind(ve);var M=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function If(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 i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}function Df(){this.__data__=[],this.size=0}var Lf=Df;function Mf(t,e){return t===e||t!==t&&e!==e}var yl=Mf,$f=yl;function Bf(t,e){for(var r=t.length;r--;)if($f(t[r][0],e))return r;return-1}var Zn=Bf,qf=Zn,Hf=Array.prototype,Ff=Hf.splice;function zf(t){var e=this.__data__,r=qf(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Ff.call(e,r,1),--this.size,!0}var Uf=zf,Vf=Zn;function Wf(t){var e=this.__data__,r=Vf(e,t);return r<0?void 0:e[r][1]}var Gf=Wf,Xf=Zn;function Yf(t){return Xf(this.__data__,t)>-1}var Jf=Yf,Kf=Zn;function Zf(t,e){var r=this.__data__,n=Kf(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var Qf=Zf,ep=Lf,tp=Uf,rp=Gf,np=Jf,ip=Qf;function Qt(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])}}Qt.prototype.clear=ep;Qt.prototype.delete=tp;Qt.prototype.get=rp;Qt.prototype.has=np;Qt.prototype.set=ip;var Qn=Qt,up=Qn;function ap(){this.__data__=new up,this.size=0}var op=ap;function sp(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var lp=sp;function cp(t){return this.__data__.get(t)}var dp=cp;function fp(t){return this.__data__.has(t)}var pp=fp,hp=typeof M=="object"&&M&&M.Object===Object&&M,vl=hp,bp=vl,gp=typeof self=="object"&&self&&self.Object===Object&&self,mp=bp||gp||Function("return this")(),qe=mp,yp=qe,vp=yp.Symbol,ei=vp,So=ei,xl=Object.prototype,xp=xl.hasOwnProperty,wp=xl.toString,pr=So?So.toStringTag:void 0;function Sp(t){var e=xp.call(t,pr),r=t[pr];try{t[pr]=void 0;var n=!0}catch{}var i=wp.call(t);return n&&(e?t[pr]=r:delete t[pr]),i}var Cp=Sp,Ep=Object.prototype,Tp=Ep.toString;function Ap(t){return Tp.call(t)}var Np=Ap,Co=ei,Op=Cp,jp=Np,_p="[object Null]",Pp="[object Undefined]",Eo=Co?Co.toStringTag:void 0;function kp(t){return t==null?t===void 0?Pp:_p:Eo&&Eo in Object(t)?Op(t):jp(t)}var ti=kp;function Rp(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var wl=Rp,Ip=ti,Dp=wl,Lp="[object AsyncFunction]",Mp="[object Function]",$p="[object GeneratorFunction]",Bp="[object Proxy]";function qp(t){if(!Dp(t))return!1;var e=Ip(t);return e==Mp||e==$p||e==Lp||e==Bp}var na=qp;const Hp=Kn(na);var Fp=qe,zp=Fp["__core-js_shared__"],Up=zp,ki=Up,To=function(){var t=/[^.]+$/.exec(ki&&ki.keys&&ki.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Vp(t){return!!To&&To in t}var Wp=Vp,Gp=Function.prototype,Xp=Gp.toString;function Yp(t){if(t!=null){try{return Xp.call(t)}catch{}try{return t+""}catch{}}return""}var Sl=Yp,Jp=na,Kp=Wp,Zp=wl,Qp=Sl,eh=/[\\^$.*+?()[\]{}|]/g,th=/^\[object .+?Constructor\]$/,rh=Function.prototype,nh=Object.prototype,ih=rh.toString,uh=nh.hasOwnProperty,ah=RegExp("^"+ih.call(uh).replace(eh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oh(t){if(!Zp(t)||Kp(t))return!1;var e=Jp(t)?ah:th;return e.test(Qp(t))}var sh=oh;function lh(t,e){return t==null?void 0:t[e]}var ch=lh,dh=sh,fh=ch;function ph(t,e){var r=fh(t,e);return dh(r)?r:void 0}var At=ph,hh=At,bh=qe,gh=hh(bh,"Map"),ia=gh,mh=At,yh=mh(Object,"create"),ri=yh,Ao=ri;function vh(){this.__data__=Ao?Ao(null):{},this.size=0}var xh=vh;function wh(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Sh=wh,Ch=ri,Eh="__lodash_hash_undefined__",Th=Object.prototype,Ah=Th.hasOwnProperty;function Nh(t){var e=this.__data__;if(Ch){var r=e[t];return r===Eh?void 0:r}return Ah.call(e,t)?e[t]:void 0}var Oh=Nh,jh=ri,_h=Object.prototype,Ph=_h.hasOwnProperty;function kh(t){var e=this.__data__;return jh?e[t]!==void 0:Ph.call(e,t)}var Rh=kh,Ih=ri,Dh="__lodash_hash_undefined__";function Lh(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ih&&e===void 0?Dh:e,this}var Mh=Lh,$h=xh,Bh=Sh,qh=Oh,Hh=Rh,Fh=Mh;function er(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])}}er.prototype.clear=$h;er.prototype.delete=Bh;er.prototype.get=qh;er.prototype.has=Hh;er.prototype.set=Fh;var zh=er,No=zh,Uh=Qn,Vh=ia;function Wh(){this.size=0,this.__data__={hash:new No,map:new(Vh||Uh),string:new No}}var Gh=Wh;function Xh(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Yh=Xh,Jh=Yh;function Kh(t,e){var r=t.__data__;return Jh(e)?r[typeof e=="string"?"string":"hash"]:r.map}var ni=Kh,Zh=ni;function Qh(t){var e=Zh(this,t).delete(t);return this.size-=e?1:0,e}var eb=Qh,tb=ni;function rb(t){return tb(this,t).get(t)}var nb=rb,ib=ni;function ub(t){return ib(this,t).has(t)}var ab=ub,ob=ni;function sb(t,e){var r=ob(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var lb=sb,cb=Gh,db=eb,fb=nb,pb=ab,hb=lb;function tr(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])}}tr.prototype.clear=cb;tr.prototype.delete=db;tr.prototype.get=fb;tr.prototype.has=pb;tr.prototype.set=hb;var Cl=tr,bb=Qn,gb=ia,mb=Cl,yb=200;function vb(t,e){var r=this.__data__;if(r instanceof bb){var n=r.__data__;if(!gb||n.length<yb-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new mb(n)}return r.set(t,e),this.size=r.size,this}var xb=vb,wb=Qn,Sb=op,Cb=lp,Eb=dp,Tb=pp,Ab=xb;function rr(t){var e=this.__data__=new wb(t);this.size=e.size}rr.prototype.clear=Sb;rr.prototype.delete=Cb;rr.prototype.get=Eb;rr.prototype.has=Tb;rr.prototype.set=Ab;var Nb=rr,Ob="__lodash_hash_undefined__";function jb(t){return this.__data__.set(t,Ob),this}var _b=jb;function Pb(t){return this.__data__.has(t)}var kb=Pb,Rb=Cl,Ib=_b,Db=kb;function Tn(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Rb;++e<r;)this.add(t[e])}Tn.prototype.add=Tn.prototype.push=Ib;Tn.prototype.has=Db;var Lb=Tn;function Mb(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 $b=Mb;function Bb(t,e){return t.has(e)}var qb=Bb,Hb=Lb,Fb=$b,zb=qb,Ub=1,Vb=2;function Wb(t,e,r,n,i,u){var a=r&Ub,o=t.length,s=e.length;if(o!=s&&!(a&&s>o))return!1;var l=u.get(t),c=u.get(e);if(l&&c)return l==e&&c==t;var h=-1,d=!0,f=r&Vb?new Hb:void 0;for(u.set(t,e),u.set(e,t);++h<o;){var g=t[h],m=e[h];if(n)var b=a?n(m,g,h,e,t,u):n(g,m,h,t,e,u);if(b!==void 0){if(b)continue;d=!1;break}if(f){if(!Fb(e,function(y,v){if(!zb(f,v)&&(g===y||i(g,y,r,n,u)))return f.push(v)})){d=!1;break}}else if(!(g===m||i(g,m,r,n,u))){d=!1;break}}return u.delete(t),u.delete(e),d}var El=Wb,Gb=qe,Xb=Gb.Uint8Array,Yb=Xb;function Jb(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}var Kb=Jb;function Zb(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Qb=Zb,Oo=ei,jo=Yb,eg=yl,tg=El,rg=Kb,ng=Qb,ig=1,ug=2,ag="[object Boolean]",og="[object Date]",sg="[object Error]",lg="[object Map]",cg="[object Number]",dg="[object RegExp]",fg="[object Set]",pg="[object String]",hg="[object Symbol]",bg="[object ArrayBuffer]",gg="[object DataView]",_o=Oo?Oo.prototype:void 0,Ri=_o?_o.valueOf:void 0;function mg(t,e,r,n,i,u,a){switch(r){case gg:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case bg:return!(t.byteLength!=e.byteLength||!u(new jo(t),new jo(e)));case ag:case og:case cg:return eg(+t,+e);case sg:return t.name==e.name&&t.message==e.message;case dg:case pg:return t==e+"";case lg:var o=rg;case fg:var s=n&ig;if(o||(o=ng),t.size!=e.size&&!s)return!1;var l=a.get(t);if(l)return l==e;n|=ug,a.set(t,e);var c=tg(o(t),o(e),n,i,u,a);return a.delete(t),c;case hg:if(Ri)return Ri.call(t)==Ri.call(e)}return!1}var yg=mg;function vg(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var xg=vg,wg=Array.isArray,ua=wg,Sg=xg,Cg=ua;function Eg(t,e,r){var n=e(t);return Cg(t)?n:Sg(n,r(t))}var Tg=Eg;function Ag(t,e){for(var r=-1,n=t==null?0:t.length,i=0,u=[];++r<n;){var a=t[r];e(a,r,t)&&(u[i++]=a)}return u}var Ng=Ag;function Og(){return[]}var jg=Og,_g=Ng,Pg=jg,kg=Object.prototype,Rg=kg.propertyIsEnumerable,Po=Object.getOwnPropertySymbols,Ig=Po?function(t){return t==null?[]:(t=Object(t),_g(Po(t),function(e){return Rg.call(t,e)}))}:Pg,Dg=Ig;function Lg(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Mg=Lg;function $g(t){return t!=null&&typeof t=="object"}var ii=$g,Bg=ti,qg=ii,Hg="[object Arguments]";function Fg(t){return qg(t)&&Bg(t)==Hg}var zg=Fg,ko=zg,Ug=ii,Tl=Object.prototype,Vg=Tl.hasOwnProperty,Wg=Tl.propertyIsEnumerable,Gg=ko(function(){return arguments}())?ko:function(t){return Ug(t)&&Vg.call(t,"callee")&&!Wg.call(t,"callee")},Xg=Gg,An={exports:{}};function Yg(){return!1}var Jg=Yg;An.exports;(function(t,e){var r=qe,n=Jg,i=e&&!e.nodeType&&e,u=i&&!0&&t&&!t.nodeType&&t,a=u&&u.exports===i,o=a?r.Buffer:void 0,s=o?o.isBuffer:void 0,l=s||n;t.exports=l})(An,An.exports);var Al=An.exports,Kg=9007199254740991,Zg=/^(?:0|[1-9]\d*)$/;function Qg(t,e){var r=typeof t;return e=e??Kg,!!e&&(r=="number"||r!="symbol"&&Zg.test(t))&&t>-1&&t%1==0&&t<e}var em=Qg,tm=9007199254740991;function rm(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=tm}var Nl=rm,nm=ti,im=Nl,um=ii,am="[object Arguments]",om="[object Array]",sm="[object Boolean]",lm="[object Date]",cm="[object Error]",dm="[object Function]",fm="[object Map]",pm="[object Number]",hm="[object Object]",bm="[object RegExp]",gm="[object Set]",mm="[object String]",ym="[object WeakMap]",vm="[object ArrayBuffer]",xm="[object DataView]",wm="[object Float32Array]",Sm="[object Float64Array]",Cm="[object Int8Array]",Em="[object Int16Array]",Tm="[object Int32Array]",Am="[object Uint8Array]",Nm="[object Uint8ClampedArray]",Om="[object Uint16Array]",jm="[object Uint32Array]",ne={};ne[wm]=ne[Sm]=ne[Cm]=ne[Em]=ne[Tm]=ne[Am]=ne[Nm]=ne[Om]=ne[jm]=!0;ne[am]=ne[om]=ne[vm]=ne[sm]=ne[xm]=ne[lm]=ne[cm]=ne[dm]=ne[fm]=ne[pm]=ne[hm]=ne[bm]=ne[gm]=ne[mm]=ne[ym]=!1;function _m(t){return um(t)&&im(t.length)&&!!ne[nm(t)]}var Pm=_m;function km(t){return function(e){return t(e)}}var Rm=km,Nn={exports:{}};Nn.exports;(function(t,e){var r=vl,n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,u=i&&i.exports===n,a=u&&r.process,o=function(){try{var s=i&&i.require&&i.require("util").types;return s||a&&a.binding&&a.binding("util")}catch{}}();t.exports=o})(Nn,Nn.exports);var aa=Nn.exports,Im=Pm,Dm=Rm,Ro=aa,Io=Ro&&Ro.isTypedArray,Lm=Io?Dm(Io):Im,Ol=Lm,Mm=Mg,$m=Xg,Bm=ua,qm=Al,Hm=em,Fm=Ol,zm=Object.prototype,Um=zm.hasOwnProperty;function Vm(t,e){var r=Bm(t),n=!r&&$m(t),i=!r&&!n&&qm(t),u=!r&&!n&&!i&&Fm(t),a=r||n||i||u,o=a?Mm(t.length,String):[],s=o.length;for(var l in t)(e||Um.call(t,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||u&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Hm(l,s)))&&o.push(l);return o}var Wm=Vm,Gm=Object.prototype;function Xm(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Gm;return t===r}var Ym=Xm;function Jm(t,e){return function(r){return t(e(r))}}var Km=Jm,Zm=Km,Qm=Zm(Object.keys,Object),e1=Qm,t1=Ym,r1=e1,n1=Object.prototype,i1=n1.hasOwnProperty;function u1(t){if(!t1(t))return r1(t);var e=[];for(var r in Object(t))i1.call(t,r)&&r!="constructor"&&e.push(r);return e}var a1=u1,o1=na,s1=Nl;function l1(t){return t!=null&&s1(t.length)&&!o1(t)}var c1=l1,d1=Wm,f1=a1,p1=c1;function h1(t){return p1(t)?d1(t):f1(t)}var b1=h1,g1=Tg,m1=Dg,y1=b1;function v1(t){return g1(t,y1,m1)}var x1=v1,Do=x1,w1=1,S1=Object.prototype,C1=S1.hasOwnProperty;function E1(t,e,r,n,i,u){var a=r&w1,o=Do(t),s=o.length,l=Do(e),c=l.length;if(s!=c&&!a)return!1;for(var h=s;h--;){var d=o[h];if(!(a?d in e:C1.call(e,d)))return!1}var f=u.get(t),g=u.get(e);if(f&&g)return f==e&&g==t;var m=!0;u.set(t,e),u.set(e,t);for(var b=a;++h<s;){d=o[h];var y=t[d],v=e[d];if(n)var E=a?n(v,y,d,e,t,u):n(y,v,d,t,e,u);if(!(E===void 0?y===v||i(y,v,r,n,u):E)){m=!1;break}b||(b=d=="constructor")}if(m&&!b){var C=t.constructor,N=e.constructor;C!=N&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof N=="function"&&N instanceof N)&&(m=!1)}return u.delete(t),u.delete(e),m}var T1=E1,A1=At,N1=qe,O1=A1(N1,"DataView"),j1=O1,_1=At,P1=qe,k1=_1(P1,"Promise"),R1=k1,I1=At,D1=qe,L1=I1(D1,"Set"),M1=L1,$1=At,B1=qe,q1=$1(B1,"WeakMap"),H1=q1,Ji=j1,Ki=ia,Zi=R1,Qi=M1,eu=H1,jl=ti,nr=Sl,Lo="[object Map]",F1="[object Object]",Mo="[object Promise]",$o="[object Set]",Bo="[object WeakMap]",qo="[object DataView]",z1=nr(Ji),U1=nr(Ki),V1=nr(Zi),W1=nr(Qi),G1=nr(eu),yt=jl;(Ji&&yt(new Ji(new ArrayBuffer(1)))!=qo||Ki&&yt(new Ki)!=Lo||Zi&&yt(Zi.resolve())!=Mo||Qi&&yt(new Qi)!=$o||eu&&yt(new eu)!=Bo)&&(yt=function(t){var e=jl(t),r=e==F1?t.constructor:void 0,n=r?nr(r):"";if(n)switch(n){case z1:return qo;case U1:return Lo;case V1:return Mo;case W1:return $o;case G1:return Bo}return e});var X1=yt,Ii=Nb,Y1=El,J1=yg,K1=T1,Ho=X1,Fo=ua,zo=Al,Z1=Ol,Q1=1,Uo="[object Arguments]",Vo="[object Array]",Qr="[object Object]",ey=Object.prototype,Wo=ey.hasOwnProperty;function ty(t,e,r,n,i,u){var a=Fo(t),o=Fo(e),s=a?Vo:Ho(t),l=o?Vo:Ho(e);s=s==Uo?Qr:s,l=l==Uo?Qr:l;var c=s==Qr,h=l==Qr,d=s==l;if(d&&zo(t)){if(!zo(e))return!1;a=!0,c=!1}if(d&&!c)return u||(u=new Ii),a||Z1(t)?Y1(t,e,r,n,i,u):J1(t,e,s,r,n,i,u);if(!(r&Q1)){var f=c&&Wo.call(t,"__wrapped__"),g=h&&Wo.call(e,"__wrapped__");if(f||g){var m=f?t.value():t,b=g?e.value():e;return u||(u=new Ii),i(m,b,r,n,u)}}return d?(u||(u=new Ii),K1(t,e,r,n,i,u)):!1}var ry=ty,ny=ry,Go=ii;function _l(t,e,r,n,i){return t===e?!0:t==null||e==null||!Go(t)&&!Go(e)?t!==t&&e!==e:ny(t,e,r,n,_l,i)}var iy=_l,uy=iy;function ay(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?uy(t,e,void 0,r):!!n}var oy=ay;const sy=Kn(oy);var ly=function(e,r,n,i){var u=n?n.call(i,e,r):void 0;if(u!==void 0)return!!u;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var a=Object.keys(e),o=Object.keys(r);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(r),l=0;l<a.length;l++){var c=a[l];if(!s(c))return!1;var h=e[c],d=r[c];if(u=n?n.call(i,h,d,c):void 0,u===!1||u===void 0&&h!==d)return!1}return!0};const cy=Kn(ly);let dy=(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 fy=process.env.NODE_ENV==="production",Di="Invariant failed";function ee(t,e){if(!t){if(fy)throw new Error(Di);var r=typeof e=="function"?e():e,n=r?"".concat(Di,": ").concat(r):Di;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var Je="ROOT",Pl="canvas-ROOT",py="Parent id cannot be ommited",hy="Attempting to add a node with duplicated id",kl="Node does not exist, it may have been removed",by='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',gy="Node cannot be dropped into target parent",my="Target parent rejects incoming node",yy="Current parent rejects outgoing node",Xo="Cannot move node that is not a direct child of a Canvas node",vy="Cannot move node into a non-Canvas parent",Yo="A top-level Node cannot be moved",xy="Cannot move node into a descendant",On="The component type specified for this node (%node_type%) does not exist in the resolver",wy="The node has specified a canDrag() rule that prevents it from being dragged",Sy="Invalid parameter Node Id specified",Cy="Attempting to delete a top-level Node",Ey=`Resolver in <Editor /> has to be an object. For (de)serialization Craft.js needs a list of all the User Components.
132
-
133
- More info: https://craft.js.org/r/docs/api/editor#props`,Ty=`An Error occurred while deserializing components: Cannot find component <%displayName% /> in resolver map. Please check your resolver in <Editor />
134
-
135
- Available components in resolver: %availableComponents%
136
-
137
- More info: https://craft.js.org/r/docs/api/editor#props`,Ay=`You can only use useEditor in the context of <Editor />.
138
-
139
- Please only use useEditor in components that are children of the <Editor /> component.`,Ny=`You can only use useNode in the context of <Editor />.
140
-
141
- Please only use useNode in components that are children of the <Editor /> component.`;function Jo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jo(Object(r),!0).forEach(function(n){le(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ir(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Oy(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,Ml(n.key),n)}}function ur(t,e,r){return e&&Oy(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function le(t,e,r){return(e=Ml(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lt(t){return Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lt(t)}function tu(t,e){return tu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},tu(t,e)}function Li(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ru(){return ru=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(u,a){for(;!Object.prototype.hasOwnProperty.call(u,a)&&(u=Lt(u))!==null;);return u}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},ru.apply(this,arguments)}function Rl(t,e){return Il(t)||function(r,n){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var u,a,o,s,l=[],c=!0,h=!1;try{if(o=(i=i.call(r)).next,n===0){if(Object(i)!==i)return;c=!1}else for(;!(c=(u=o.call(i)).done)&&(l.push(u.value),l.length!==n);c=!0);}catch(d){h=!0,a=d}finally{try{if(!c&&i.return!=null&&(s=i.return(),Object(s)!==s))return}finally{if(h)throw a}}return l}}(t,e)||oa(t,e)||Ll()}function fe(t){return function(e){if(Array.isArray(e))return nu(e)}(t)||Dl(t)||oa(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
142
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Il(t){if(Array.isArray(t))return t}function Dl(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function oa(t,e){if(t){if(typeof t=="string")return nu(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)?nu(t,e):void 0}}function nu(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 Ll(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
143
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ml(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var u=i.call(r,"string");if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}var oe={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},jy=function(){function t(){ir(this,t),le(this,"timeline",[]),le(this,"pointer",-1)}return ur(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 i=this.timeline[this.pointer],u=i.patches,a=i.inversePatches,o=i.timestamp;if(new Date().getTime()-o<n)return void(this.timeline[this.pointer]={timestamp:o,patches:[].concat(fe(u),fe(e)),inversePatches:[].concat(fe(r),fe(a))})}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],i=n.inversePatches;this.timeline[this.pointer]={timestamp:n.timestamp,patches:[].concat(fe(n.patches),fe(e)),inversePatches:[].concat(fe(r),fe(i))}}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,wo(e,r)}}},{key:"redo",value:function(e){if(this.canRedo())return this.pointer=this.pointer+1,wo(e,this.timeline[this.pointer].patches)}}]),t}();function _y(t,e,r,n){var i,u=j.useMemo(function(){return new jy},[]),a=j.useRef([]),o=j.useRef(function(){});typeof t=="function"?i=t:(i=t.methods,a.current=t.ignoreHistoryForActions,o.current=t.normalizeHistory);var s=j.useRef(n);s.current=n;var l=j.useRef(e),c=j.useMemo(function(){var b=o.current,y=a.current,v=s.current;return function(E,C){var N,k=r&&Ko(r,function(){return E},u),R=Rl(xo(E,function(S){var T,_;switch(C.type){case oe.UNDO:return u.undo(S);case oe.REDO:return u.redo(S);case oe.CLEAR:return u.clear(),we({},S);case oe.IGNORE:case oe.MERGE:case oe.THROTTLE:var I,w=Il(_=C.payload)||Dl(_)||oa(_)||Ll(),O=w[0],A=w.slice(1);(I=i(S,k))[O].apply(I,fe(A));break;default:(T=i(S,k))[C.type].apply(T,fe(C.payload))}}),3),D=R[0],$=R[1],L=R[2];return N=D,v&&v(D,E,{type:C.type,params:C.payload,patches:$},k,function(S){var T=xo(D,S);N=T[0],$=[].concat(fe($),fe(T[1])),L=[].concat(fe(T[2]),fe(L))}),[oe.UNDO,oe.REDO].includes(C.type)&&b&&(N=Rf(N,b)),[].concat(fe(y),[oe.UNDO,oe.REDO,oe.IGNORE,oe.CLEAR]).includes(C.type)||(C.type===oe.THROTTLE?u.throttleAdd($,L,C.config&&C.config.rate):C.type===oe.MERGE?u.merge($,L):u.add($,L)),N}},[u,i,r]),h=j.useCallback(function(){return l.current},[]),d=j.useMemo(function(){return new Py(h)},[h]),f=j.useCallback(function(b){var y=c(l.current,b);l.current=y,d.notify()},[c,d]);j.useEffect(function(){d.notify()},[d]);var g=j.useMemo(function(){return r?Ko(r,function(){return l.current},u):[]},[u,r]),m=j.useMemo(function(){var b=Object.keys(i(null,null)),y=a.current;return we(we({},b.reduce(function(v,E){return v[E]=function(){for(var C=arguments.length,N=new Array(C),k=0;k<C;k++)N[k]=arguments[k];return f({type:E,payload:N})},v},{})),{},{history:{undo:function(){return f({type:oe.UNDO})},redo:function(){return f({type:oe.REDO})},clear:function(){return f({type:oe.CLEAR})},throttle:function(v){return we({},b.filter(function(E){return!y.includes(E)}).reduce(function(E,C){return E[C]=function(){for(var N=arguments.length,k=new Array(N),R=0;R<N;R++)k[R]=arguments[R];return f({type:oe.THROTTLE,payload:[C].concat(k),config:{rate:v}})},E},{}))},ignore:function(){return we({},b.filter(function(v){return!y.includes(v)}).reduce(function(v,E){return v[E]=function(){for(var C=arguments.length,N=new Array(C),k=0;k<C;k++)N[k]=arguments[k];return f({type:oe.IGNORE,payload:[E].concat(N)})},v},{}))},merge:function(){return we({},b.filter(function(v){return!y.includes(v)}).reduce(function(v,E){return v[E]=function(){for(var C=arguments.length,N=new Array(C),k=0;k<C;k++)N[k]=arguments[k];return f({type:oe.MERGE,payload:[E].concat(N)})},v},{}))}}})},[f,i]);return j.useMemo(function(){return{getState:h,subscribe:function(b,y,v){return d.subscribe(b,y,v)},actions:m,query:g,history:u}},[m,g,d,h,u])}function Ko(t,e,r){var n=Object.keys(t()).reduce(function(i,u){return we(we({},i),{},le({},u,function(){var a;return(a=t(e()))[u].apply(a,arguments)}))},{});return we(we({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}Af(),Tf();var Py=function(){function t(e){ir(this,t),le(this,"getState",void 0),le(this,"subscribers",[]),this.getState=e}return ur(t,[{key:"subscribe",value:function(e,r,n){var i=this,u=new ky(function(){return e(i.getState())},r,n);return this.subscribers.push(u),this.unsubscribe.bind(this,u)}},{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}(),ky=function(){function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];ir(this,t),le(this,"collected",void 0),le(this,"collector",void 0),le(this,"onChange",void 0),le(this,"id",void 0),this.collector=e,this.onChange=r,n&&this.collect()}return ur(t,[{key:"collect",value:function(){try{var e=this.collector();sy(e,this.collected)||(this.collected=e,this.onChange&&this.onChange(this.collected))}catch(r){console.warn(r)}}}]),t}(),Tr=function(t){var e=t.getBoundingClientRect(),r=e.x,n=e.y,i=e.top,u=e.left,a=e.bottom,o=e.right,s=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)},d={left:parseInt(c.paddingLeft),right:parseInt(c.paddingRight),bottom:parseInt(c.paddingBottom),top:parseInt(c.paddingTop)};return{x:r,y:n,top:i,left:u,bottom:a,right:o,width:s,height:l,outerWidth:Math.round(s+h.left+h.right),outerHeight:Math.round(l+h.top+h.bottom),margin:h,padding:d,inFlow:t.parentElement&&!!function(f){var g=getComputedStyle(f);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 Ry(t,e){const{subscribe:r,getState:n,actions:i,query:u}=t,a=j.useRef(!0),o=j.useRef(null),s=j.useRef(e);s.current=e;const l=j.useCallback(d=>({...d,actions:i,query:u}),[i,u]);a.current&&e&&(o.current=e(n(),u),a.current=!1);const[c,h]=j.useState(l(o.current));return j.useEffect(()=>{let d;return s.current&&(d=r(f=>s.current(f,u),f=>{h(l(f))})),()=>{d&&d()}},[l,u,r]),c}var qt,$l=function(){return dy(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},Iy=function(){function t(){ir(this,t),le(this,"isEnabled",!0),le(this,"elementIdMap",new WeakMap),le(this,"registry",new Map)}return ur(t,[{key:"getElementId",value:function(e){var r=this.elementIdMap.get(e);if(r)return r;var n=$l();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,i=this.getByElement(e,r.name);if(i){if(cy(r.required,i.required))return i;this.getByElement(e,r.name).disable()}var u=null,a=this.getConnectorId(e,r.name);return this.registry.set(a,{id:a,required:r.required,enable:function(){u&&u(),u=r.connector(e,r.required,r.options)},disable:function(){u&&u()},remove:function(){return n.remove(a)}}),this.isEnabled&&this.registry.get(a).enable(),this.registry.get(a)}},{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"})(qt||(qt={}));var Bl=function(){function t(e){ir(this,t),le(this,"options",void 0),le(this,"registry",new Iy),le(this,"subscribers",new Set),this.options=e}return ur(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(qt.HandlerDisabled)})}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach(function(e){e(qt.HandlerEnabled)})}},{key:"cleanup",value:function(){this.disable(),this.subscribers.clear(),this.registry.clear()}},{key:"addCraftEventListener",value:function(e,r,n,i){var u=function(a){(function(o,s,l){o.craft||(o.craft={stopPropagation:function(){},blockedEvents:{}});for(var c=o.craft&&o.craft.blockedEvents[s]||[],h=0;h<c.length;h++){var d=c[h];if(l!==d&&l.contains(d))return!0}return!1})(a,r,e)||(a.craft.stopPropagation=function(){a.craft.blockedEvents[r]||(a.craft.blockedEvents[r]=[]),a.craft.blockedEvents[r].push(e)},n(a))};return e.addEventListener(r,u,i),function(){return e.removeEventListener(r,u,i)}}},{key:"createConnectorsUsage",value:function(){var e=this,r=this.handlers(),n=new Set,i=!1,u=new Map;return{connectors:Object.entries(r).reduce(function(a,o){var s=Rl(o,2),l=s[0],c=s[1];return we(we({},a),{},le({},l,function(h,d,f){var g=function(){var m=e.registry.register(h,{required:d,name:l,options:f,connector:c});return n.add(m.id),m};return u.set(e.registry.getConnectorId(h,l),g),i&&g(),h}))},{}),register:function(){i=!0,u.forEach(function(a){a()})},cleanup:function(){i=!1,n.forEach(function(a){return e.registry.remove(a)})}}}},{key:"derive",value:function(e,r){return new e(this,r)}},{key:"createProxyHandlers",value:function(e,r){var n=[],i=e.handlers(),u=new Proxy(i,{get:function(a,o,s){return o in i==0?Reflect.get(a,o,s):function(l){for(var c=arguments.length,h=new Array(c>1?c-1:0),d=1;d<c;d++)h[d-1]=arguments[d];var f=i[o].apply(i,[l].concat(h));f&&n.push(f)}}});return r(u),function(){n.forEach(function(a){a()})}}},{key:"reflect",value:function(e){return this.createProxyHandlers(this,e)}}]),t}(),Dy=function(t){(function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),a&&tu(u,a)})(i,Bl);var e,r,n=(e=i,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 u,a=Lt(e);if(r){var o=Lt(this).constructor;u=Reflect.construct(a,arguments,o)}else u=a.apply(this,arguments);return function(s,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 Li(s)}(this,u)});function i(u,a){var o;return ir(this,i),le(Li(o=n.call(this,a)),"derived",void 0),le(Li(o),"unsubscribeParentHandlerListener",void 0),o.derived=u,o.options=a,o.unsubscribeParentHandlerListener=o.derived.listen(function(s){switch(s){case qt.HandlerEnabled:return o.enable();case qt.HandlerDisabled:return o.disable();default:return}}),o}return ur(i,[{key:"inherit",value:function(u){return this.createProxyHandlers(this.derived,u)}},{key:"cleanup",value:function(){ru(Lt(i.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),i}();function Zo(t,e){e&&(typeof t=="function"?t(e):t.current=e)}function Ly(t,e){const r=t.ref;return ee(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"),j.cloneElement(t,r?{ref:n=>{Zo(r,n),Zo(e,n)}}:{ref:e})}function My(t){return(e=null,...r)=>{if(!j.isValidElement(e)){if(!e)return;const i=e;return i&&t(i,...r),i}const n=e;return function(i){if(typeof i.type!="string")throw new Error}(n),Ly(n,t)}}function ql(t){return Object.keys(t).reduce((e,r)=>(e[r]=My((...n)=>t[r](...n)),e),{})}const $y=({style:t,className:e,parentDom:r})=>{const n=j.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?el.createPortal(n,r.ownerDocument.body):n};var lt=function(t,e){var r="Deprecation warning: ".concat(t," will be deprecated in future relases."),n=e.suggest,i=e.doc;n&&(r+=" Please use ".concat(n," instead.")),i&&(r+="(".concat(i,")")),console.warn(r)},Hl=function(){return typeof window<"u"},By=function(){return Hl()&&/Linux/i.test(window.navigator.userAgent)},qy=function(){return Hl()&&/Chrome/i.test(window.navigator.userAgent)},Hy=At;(function(){try{var t=Hy(Object,"defineProperty");return t({},"",{}),t}catch{}})();var jn={exports:{}};jn.exports;(function(t,e){var r=qe,n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,u=i&&i.exports===n,a=u?r.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(l,c){if(c)return l.slice();var h=l.length,d=o?o(h):new l.constructor(h);return l.copy(d),d}t.exports=s})(jn,jn.exports);jn.exports;var Qo=ei,es=Qo?Qo.prototype:void 0;es&&es.valueOf;var ts=aa;ts&&ts.isMap;var rs=aa;rs&&rs.isSet;typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const Fl=j.createContext(null),zl=({id:t,related:e=!1,children:r})=>j.createElement(Fl.Provider,{value:{id:t,related:e}},r);function ns(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ie(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ns(Object(r),!0).forEach(function(n){se(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ns(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function iu(t){return iu=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},iu(t)}function ui(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fy(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,Wl(n.key),n)}}function ai(t,e,r){return e&&Fy(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function se(t,e,r){return(e=Wl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sa(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&&uu(t,e)}function _n(t){return _n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_n(t)}function uu(t,e){return uu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},uu(t,e)}function la(t,e){if(t==null)return{};var r,n,i=function(a,o){if(a==null)return{};var s,l,c={},h=Object.keys(a);for(l=0;l<h.length;l++)o.indexOf(s=h[l])>=0||(c[s]=a[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(n=0;n<u.length;n++)e.indexOf(r=u[n])>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function yr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ca(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=_n(t);if(e){var i=_n(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(u,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yr(u)}(this,r)}}function Ul(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,n){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var u,a,o,s,l=[],c=!0,h=!1;try{if(o=(i=i.call(r)).next,n!==0)for(;!(c=(u=o.call(i)).done)&&(l.push(u.value),l.length!==n);c=!0);}catch(d){h=!0,a=d}finally{try{if(!c&&i.return!=null&&(s=i.return(),Object(s)!==s))return}finally{if(h)throw a}}return l}}(t,e)||Vl(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
144
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ar(t){return function(e){if(Array.isArray(e))return au(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||Vl(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
145
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Vl(t,e){if(t){if(typeof t=="string")return au(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)?au(t,e):void 0}}function au(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 Wl(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var u=i.call(r,"string");if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}const da=j.createContext(null);var Gl=j.createContext(null),Xl=function(){return j.useContext(Gl)};function Nt(t){var e=Xl(),r=j.useContext(da);ee(r,Ay);var n=Ry(r,t),i=j.useMemo(function(){return e&&e.createConnectorsUsage()},[e]);j.useEffect(function(){return i.register(),function(){i.cleanup()}},[i]);var u=j.useMemo(function(){return i&&ql(i.connectors)},[i]);return ie(ie({},n),{},{connectors:u,inContext:!!r,store:r})}var zy=["actions","query","connectors"];function oi(t){var e=j.useContext(Fl);ee(e,Ny);var r=e.id,n=e.related,i=Nt(function(c){return r&&c.nodes[r]&&t&&t(c.nodes[r])}),u=i.actions,a=i.connectors,o=la(i,zy),s=j.useMemo(function(){return ql({connect:function(c){return a.connect(c,r)},drag:function(c){return a.drag(c,r)}})},[a,r]),l=j.useMemo(function(){return{setProp:function(c,h){h?u.history.throttle(h).setProp(r,c):u.setProp(r,c)},setCustom:function(c,h){h?u.history.throttle(h).setCustom(r,c):u.setCustom(r,c)},setHidden:function(c){return u.setHidden(r,c)}}},[u,r]);return ie(ie({},o),{},{id:r,related:n,inNodeContext:!!e,actions:l,connectors:s})}var Uy=["id","related","actions","inNodeContext","connectors"];function te(t){var e=oi(t),r=e.id,n=e.related,i=e.actions,u=e.inNodeContext,a=e.connectors;return ie(ie({},la(e,Uy)),{},{actions:i,id:r,related:n,setProp:function(o,s){return lt("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),i.setProp(o,s)},inNodeContext:u,connectors:a})}const Vy=({render:t})=>{const{connectors:{connect:e,drag:r}}=te();return typeof t.type=="string"?e(r(j.cloneElement(t))):t},Wy=()=>{const{type:t,props:e,nodes:r,hydrationTimestamp:n}=oi(i=>({type:i.data.type,props:i.data.props,nodes:i.data.nodes,hydrationTimestamp:i._hydrationTimestamp}));return j.useMemo(()=>{let i=e.children;r&&r.length>0&&(i=j.createElement(j.Fragment,null,r.map(a=>j.createElement(fa,{id:a,key:a}))));const u=j.createElement(t,e,i);return typeof t=="string"?j.createElement(Vy,{render:u}):u},[t,e,n,r])},Gy=({render:t})=>{const{hidden:e}=oi(n=>({hidden:n.data.hidden})),{onRender:r}=Nt(n=>({onRender:n.options.onRender}));return e?null:j.createElement(r,{render:t||j.createElement(Wy,null)})},fa=({id:t,render:e})=>j.createElement(zl,{id:t},j.createElement(Gy,{render:e})),ou={is:"div",canvas:!1,custom:{},hidden:!1},Xy={is:"type",canvas:"isCanvas"};function Ht({id:t,children:e,...r}){const{is:n}={...ou,...r},{query:i,actions:u}=Nt(),{id:a,inNodeContext:o}=oi(),[s]=j.useState(()=>{ee(!!t,by);const l=i.node(a).get();if(o){const c=l.data.linkedNodes[t]?i.node(l.data.linkedNodes[t]).get():null;if(c&&c.data.type===n)return c.id;const h=j.createElement(Ht,r,e),d=i.parseReactElement(h).toNodeTree();return u.history.ignore().addLinkedNodeFromTree(d,a,t),d.rootNodeId}return null});return s?j.createElement(fa,{id:s}):null}const Yl=()=>lt("<Canvas />",{suggest:"<Element canvas={true} />"});function su({...t}){return j.useEffect(()=>Yl(),[]),j.createElement(Ht,{...t,canvas:!0})}const Yy=()=>{const{timestamp:t}=Nt(e=>({timestamp:e.nodes[Je]&&e.nodes[Je]._hydrationTimestamp}));return t?j.createElement(fa,{id:Je,key:t}):null},Jl=({children:t,json:e,data:r})=>{const{actions:n,query:i}=Nt();e&&lt("<Frame json={...} />",{suggest:"<Frame data={...} />"});const u=j.useRef(!1);if(!u.current){const a=r||e;if(a)n.history.ignore().deserialize(a);else if(t){const o=j.Children.only(t),s=i.parseReactElement(o).toNodeTree((l,c)=>(c===o&&(l.id=Je),l));n.history.ignore().addNodeTree(s)}u.current=!0}return j.createElement(Yy,null)};var is;(function(t){t[t.Any=0]="Any",t[t.Id=1]="Id",t[t.Obj=2]="Obj"})(is||(is={}));const Mi=t=>{const{addLinkedNodeFromTree:e,setDOM:r,setNodeEvent:n,replaceNodes:i,reset:u,...a}=t;return a};function pa(t){const{connectors:e,actions:r,query:n,store:i,...u}=Nt(t),a=Mi(r);return{connectors:e,actions:j.useMemo(()=>({...a,history:{...a.history,ignore:(...o)=>Mi(a.history.ignore(...o)),throttle:(...o)=>Mi(a.history.throttle(...o))}}),[a]),query:n,store:i,...u}}var Kl=function(t){return Object.fromEntries?Object.fromEntries(t):t.reduce(function(e,r){var n=Ul(r,2),i=n[0],u=n[1];return ie(ie({},e),{},se({},i,u))},{})},Xe=function(t,e,r){var n=Array.isArray(e)?e:[e],i=ie({existOnly:!1,idOnly:!1},r||{}),u=n.filter(function(a){return!!a}).map(function(a){return typeof a=="string"?{node:t[a],exists:!!t[a]}:iu(a)!=="object"||i.idOnly?{node:null,exists:!1}:{node:a,exists:!!t[a.id]}});return i.existOnly&&ee(u.filter(function(a){return!a.exists}).length===0,kl),u},Jy=["history"],Pt=null,Pn=function(t,e){if(typeof e=="string")return e;var r,n=function(i,u){var a=function(o){if(Pt&&Pt.resolver===o)return Pt.reversed;Pt={resolver:o,reversed:new Map};for(var s=0,l=Object.entries(o);s<l.length;s++){var c=Ul(l[s],2);Pt.reversed.set(c[1],c[0])}return Pt.reversed}(i).get(u);return a!==void 0?a:null}(t,e);return ee(n,On.replace("%node_type%",(r=e).name||r.displayName)),n};const Ky=(t,e)=>typeof t=="string"?t:{resolvedName:Pn(e,t)},lu=(t,e)=>{let{type:r,isCanvas:n,props:i}=t;return i=Object.keys(i).reduce((u,a)=>{const o=i[a];return o==null||typeof o=="function"||(u[a]=a==="children"&&typeof o!="string"?j.Children.map(o,s=>typeof s=="string"?s:lu(s,e)):typeof o.type=="function"?lu(o,e):o),u},{}),{type:Ky(r,e),isCanvas:!!n,props:i}},Zy=(t,e)=>{const{type:r,props:n,isCanvas:i,name:u,...a}=t;return{...lu({type:r,isCanvas:i,props:n},e),...a}};function cu(t,e){ee(typeof e=="string",Sy);var r=t.nodes[e],n=function(i){return cu(t,i)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===Je},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 lt("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 i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return function u(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=t.nodes[a];return l?(o.push(a),l.data.parent&&(i||!i&&s===0)&&(o=u(l.data.parent,o,s+1)),o):o}(r.data.parent)},descendants:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0],u=arguments.length>1?arguments[1]:void 0;return function a(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return(i||!i&&l===0)&&t.nodes[o]&&(u!=="childNodes"&&n(o).linkedNodes().forEach(function(c){s.push(c),s=a(c,s,l+1)}),u!=="linkedNodes"&&n(o).childNodes().forEach(function(c){s.push(c),s=a(c,s,l+1)})),s}(e)},linkedNodes:function(){return Object.values(r.data.linkedNodes||{})},childNodes:function(){return r.data.nodes||[]},isDraggable:function(i){try{var u=r;return ee(!this.isTopLevelNode(),Yo),ee(cu(t,u.data.parent).isCanvas(),Xo),ee(u.rules.canDrag(u,n),wy),!0}catch(a){return i&&i(a),!1}},isDroppable:function(i,u){var a=Xe(t.nodes,i),o=r;try{ee(this.isCanvas(),vy),ee(o.rules.canMoveIn(a.map(function(l){return l.node}),o,n),my);var s={};return a.forEach(function(l){var c=l.node,h=l.exists;if(ee(c.rules.canDrop(o,c,n),gy),h){ee(!n(c.id).isTopLevelNode(),Yo);var d=n(c.id).descendants(!0);ee(!d.includes(o.id)&&o.id!==c.id,xy);var f=c.data.parent&&t.nodes[c.data.parent];ee(f.data.isCanvas,Xo),ee(f||!f&&!t.nodes[c.id],hy),f.id!==o.id&&(s[f.id]||(s[f.id]=[]),s[f.id].push(c))}}),Object.keys(s).forEach(function(l){var c=t.nodes[l];ee(c.rules.canMoveOut(s[l],c,n),yy)}),!0}catch(l){return u&&u(l),!1}},toSerializedNode:function(){return Zy(r.data,t.options.resolver)},toNodeTree:function(i){var u=[e].concat(Ar(this.descendants(!0,i))).reduce(function(a,o){return a[o]=n(o).get(),a},{});return{rootNodeId:e,nodes:u}},decendants:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return lt("query.node(id).decendants",{suggest:"query.node(id).descendants"}),this.descendants(i)},isTopLevelCanvas:function(){return!this.isRoot()&&!r.data.parent}}}function Zl(t,e,r,n){for(var i={parent:t,index:0,where:"before"},u=0,a=0,o=0,s=0,l=0,c=0,h=0,d=e.length;h<d;h++){var f=e[h];if(c=f.top+f.outerHeight,s=f.left+f.outerWidth/2,l=f.top+f.outerHeight/2,!(a&&f.left>a||o&&l>=o||u&&f.left+f.outerWidth<u))if(i.index=h,f.inFlow){if(n<l){i.where="before";break}i.where="after"}else n<c&&(o=c),r<s?(a=s,i.where="before"):(u=s,i.where="after")}return i}var en=function(t){return typeof t=="string"?t:t.name};function us(t,e){var r=t.data.type,n={id:t.id||$l(),_hydrationTimestamp:Date.now(),data:ie({type:r,name:en(r),displayName:en(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===Ht||n.data.type===su){var i=ie(ie({},ou),n.data.props);n.data.props=Object.keys(n.data.props).reduce(function(o,s){return Object.keys(ou).includes(s)?n.data[Xy[s]||s]=i[s]:o[s]=n.data.props[s],o},{}),n.data.name=en(r=n.data.type),n.data.displayName=en(r),n.data.type===su&&(n.data.isCanvas=!0,Yl())}e&&e(n);var u=r.craft;if(u){if(n.data.displayName=u.displayName||u.name||n.data.displayName,n.data.props=ie(ie({},u.props||u.defaultProps||{}),n.data.props),n.data.custom=ie(ie({},u.custom||{}),n.data.custom),u.isCanvas!=null&&(n.data.isCanvas=u.isCanvas),u.rules&&Object.keys(u.rules).forEach(function(o){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(o)&&(n.rules[o]=u.rules[o])}),u.related){var a={id:n.id,related:!0};Object.keys(u.related).forEach(function(o){n.related[o]=function(s){return j.createElement(zl,a,j.createElement(u.related[o],s))}})}u.info&&(n.info=u.info)}return n}const du=(t,e,r)=>{let{type:n,props:i}=t;const u=((o,s)=>typeof o=="object"&&o.resolvedName?o.resolvedName==="Canvas"?su:s[o.resolvedName]:typeof o=="string"?o:null)(n,e);if(!u)return;i=Object.keys(i).reduce((o,s)=>{const l=i[s];return o[s]=l==null?null:typeof l=="object"&&l.resolvedName?du(l,e):s==="children"&&Array.isArray(l)?l.map(c=>typeof c=="string"?c:du(c,e)):l,o},{});const a={...j.createElement(u,{...i})};return{...a,name:Pn(e,a.type)}},Qy=(t,e)=>{const{type:r,props:n,...i}=t;ee(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,Ty.replace("%displayName%",t.displayName).replace("%availableComponents%",Object.keys(e).join(", ")));const{type:u,name:a,props:o}=du(t,e),{parent:s,custom:l,displayName:c,isCanvas:h,nodes:d,hidden:f}=i;return{type:u,name:a,displayName:c||a,props:o,custom:l||{},isCanvas:!!h,hidden:!!f,parent:s,linkedNodes:i.linkedNodes||i._childCanvas||{},nodes:d||[]}},ev=(t,e)=>{if(e.length<1)return{[t.id]:t};const r=e.map(({rootNodeId:i})=>i),n={...t,data:{...t.data,nodes:r}};return e.reduce((i,u)=>{const a=u.nodes[u.rootNodeId];return{...i,...u.nodes,[a.id]:{...a,data:{...a.data,parent:t.id}}}},{[t.id]:n})},tv=(t,e)=>({rootNodeId:t.id,nodes:ev(t,e)});function Ql(t){const e=t&&t.options,r=()=>Ql(t);return{getDropPlaceholder:(n,i,u,a=o=>t.nodes[o.id].dom)=>{const o=t.nodes[i],s=r().node(o.id).isCanvas()?o:t.nodes[o.data.parent];if(!s)return;const l=s.data.nodes||[],c=Zl(s,l?l.reduce((f,g)=>{const m=a(t.nodes[g]);if(m){const b={id:g,...Tr(m)};f.push(b)}return f},[]):[],u.x,u.y),h=l.length&&t.nodes[l[c.index]],d={placement:{...c,currentNode:h},error:null};return Xe(t.nodes,n).forEach(({node:f,exists:g})=>{g&&r().node(f.id).isDraggable(m=>d.error=m)}),r().node(s.id).isDroppable(n,f=>d.error=f),d},getOptions:()=>e,getNodes:()=>t.nodes,node:n=>cu(t,n),getSerializedNodes(){const n=Object.keys(t.nodes).map(i=>[i,this.node(i).toSerializedNode()]);return Kl(n)},getEvent:n=>function(i,u){var a=i.events[u];return{contains:function(o){return a.has(o)},isEmpty:function(){return this.all().length===0},first:function(){return this.all()[0]},last:function(){var o=this.all();return o[o.length-1]},all:function(){return Array.from(a)},size:function(){return this.all().length},at:function(o){return this.all()[o]},raw:function(){return a}}}(t,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(i){let u=function(o,s){let l=o;return typeof l=="string"&&(l=j.createElement(j.Fragment,{},l)),us({data:{type:l.type,props:{...l.props}}},c=>{s&&s(c,l)})}(n,(o,s)=>{const l=Pn(t.options.resolver,o.data.type);o.data.displayName=o.data.displayName||l,o.data.name=l,i&&i(o,s)}),a=[];return n.props&&n.props.children&&(a=j.Children.toArray(n.props.children).reduce((o,s)=>(j.isValidElement(s)&&o.push(r().parseReactElement(s).toNodeTree(i)),o),[])),tv(u,a)}}),parseSerializedNode:n=>({toNode(i){const u=Qy(n,t.options.resolver);ee(u.type,On);const a=typeof i=="string"&&i;return a&&lt("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...a?{id:a}:{},data:u}).toNode(!a&&i)}}),parseFreshNode:n=>({toNode:i=>us(n,u=>{u.data.parent===Pl&&(u.data.parent=Je);const a=Pn(t.options.resolver,u.data.type);ee(a!==null,On),u.data.displayName=u.data.displayName||a,u.data.name=a,i&&i(u)})}),createNode(n,i){lt(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const u=this.parseReactElement(n).toNodeTree(),a=u.nodes[u.rootNodeId];return i&&(i.id&&(a.id=i.id),i.data&&(a.data={...a.data,...i.data})),a},getState:()=>t}}var rv=function(t){sa(r,Bl);var e=ca(r);function r(){return ui(this,r),e.apply(this,arguments)}return ai(r,[{key:"handlers",value:function(){return{connect:function(n,i){},select:function(n,i){},hover:function(n,i){},drag:function(n,i){},drop:function(n,i){},create:function(n,i,u){}}}}]),r}();(function(t){sa(r,Dy);var e=ca(r);function r(){return ui(this,r),e.apply(this,arguments)}return ai(r)})();var as=function(t){t.preventDefault()},fu=function(){function t(e,r){ui(this,t),se(this,"store",void 0),se(this,"dragTarget",void 0),se(this,"currentDropTargetId",void 0),se(this,"currentDropTargetCanvasAncestorId",void 0),se(this,"currentIndicator",null),se(this,"currentTargetId",void 0),se(this,"currentTargetChildDimensions",void 0),se(this,"dragError",void 0),se(this,"draggedNodes",void 0),se(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",as,!1)}return ai(t,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",as,!1)}},{key:"onScroll",value:function(e){var r=e.target,n=this.store.query.node(Je).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return Xe(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(i,u){var a=r.store.query.node(u).get().dom;return a&&i.push(ie({id:u},Tr(a))),i},[])}},{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 i(u){var a=r.store.query.node(u).get();return a&&a.data.isCanvas?a:a.data.parent?i(a.data.parent):null}(e)}},{key:"computeIndicator",value:function(e,r,n){var i=this.getCanvasAncestor(e);if(i&&(this.currentDropTargetId=e,this.currentDropTargetCanvasAncestorId=i.id,i.data.parent&&this.isNearBorders(Tr(i.dom),r,n)&&!this.store.query.node(i.id).isLinkedNode()&&(i=this.store.query.node(i.data.parent).get()),i)){this.currentTargetChildDimensions=this.getChildDimensions(i),this.currentTargetId=i.id;var u=Zl(i,this.currentTargetChildDimensions,r,n);if(this.isDiff(u)){var a=this.dragError;a||this.store.query.node(i.id).isDroppable(this.draggedNodes.map(function(l){return l.node}),function(l){a=l});var o=i.data.nodes[u.index],s=o&&this.store.query.node(o).get();return this.currentIndicator={placement:ie(ie({},u),{},{currentNode:s}),error:a},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),t}();se(fu,"BORDER_OFFSET",10);var os=function(t,e){if(e.length===1||arguments.length>2&&arguments[2]!==void 0&&arguments[2]){var r=e[0].getBoundingClientRect(),n=r.width,i=r.height,u=e[0].cloneNode(!0);return u.style.position="absolute",u.style.left="-100%",u.style.top="-100%",u.style.width="".concat(n,"px"),u.style.height="".concat(i,"px"),u.style.pointerEvents="none",u.classList.add("drag-shadow"),document.body.appendChild(u),t.dataTransfer.setDragImage(u,0,0),u}var a=document.createElement("div");return a.style.position="absolute",a.style.left="-100%",a.style.top="-100%",a.style.width="100%",a.style.height="100%",a.style.pointerEvents="none",a.classList.add("drag-shadow-container"),e.forEach(function(o){var s=o.getBoundingClientRect(),l=s.width,c=s.height,h=s.top,d=s.left,f=o.cloneNode(!0);f.style.position="absolute",f.style.left="".concat(d,"px"),f.style.top="".concat(h,"px"),f.style.width="".concat(l,"px"),f.style.height="".concat(c,"px"),f.classList.add("drag-shadow"),a.appendChild(f)}),document.body.appendChild(a),t.dataTransfer.setDragImage(a,t.clientX,t.clientY),a},ec=function(t){sa(r,rv);var e=ca(r);function r(){var n;ui(this,r);for(var i=arguments.length,u=new Array(i),a=0;a<i;a++)u[a]=arguments[a];return se(yr(n=e.call.apply(e,[this].concat(u))),"draggedElementShadow",void 0),se(yr(n),"dragTarget",void 0),se(yr(n),"positioner",null),se(yr(n),"currentSelectedElementIds",[]),n}return ai(r,[{key:"onDisable",value:function(){this.options.store.actions.clearEvents()}},{key:"handlers",value:function(){var n=this,i=this.options.store;return{connect:function(u,a){return i.actions.setDOM(a,u),n.reflect(function(o){o.select(u,a),o.hover(u,a),o.drop(u,a)})},select:function(u,a){var o=n.addCraftEventListener(u,"mousedown",function(l){l.craft.stopPropagation();var c=[];if(a){var h=i.query,d=h.getEvent("selected").all();(n.options.isMultiSelectEnabled(l)||d.includes(a))&&(c=d.filter(function(f){var g=h.node(f).descendants(!0),m=h.node(f).ancestors(!0);return!g.includes(a)&&!m.includes(a)})),c.includes(a)||c.push(a)}i.actions.setNodeEvent("selected",c)}),s=n.addCraftEventListener(u,"click",function(l){l.craft.stopPropagation();var c=i.query.getEvent("selected").all(),h=n.options.isMultiSelectEnabled(l),d=n.currentSelectedElementIds.includes(a),f=Ar(c);h&&d?(f.splice(f.indexOf(a),1),i.actions.setNodeEvent("selected",f)):!h&&c.length>1&&i.actions.setNodeEvent("selected",f=[a]),n.currentSelectedElementIds=f});return function(){o(),s()}},hover:function(u,a){var o=n.addCraftEventListener(u,"mouseover",function(l){l.craft.stopPropagation(),i.actions.setNodeEvent("hovered",a)}),s=null;return n.options.removeHoverOnMouseleave&&(s=n.addCraftEventListener(u,"mouseleave",function(l){l.craft.stopPropagation(),i.actions.setNodeEvent("hovered",null)})),function(){o(),s&&s()}},drop:function(u,a){var o=n.addCraftEventListener(u,"dragover",function(l){if(l.craft.stopPropagation(),l.preventDefault(),n.positioner){var c=n.positioner.computeIndicator(a,l.clientX,l.clientY);c&&i.actions.setIndicator(c)}}),s=n.addCraftEventListener(u,"dragenter",function(l){l.craft.stopPropagation(),l.preventDefault()});return function(){s(),o()}},drag:function(u,a){if(!i.query.node(a).isDraggable())return function(){};u.setAttribute("draggable","true");var o=n.addCraftEventListener(u,"dragstart",function(l){l.craft.stopPropagation();var c=i.query,h=i.actions,d=c.getEvent("selected").all(),f=n.options.isMultiSelectEnabled(l);n.currentSelectedElementIds.includes(a)||(d=f?[].concat(Ar(d),[a]):[a],i.actions.setNodeEvent("selected",d)),h.setNodeEvent("dragged",d);var g=d.map(function(m){return c.node(m).get().dom});n.draggedElementShadow=os(l,g,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:d},n.positioner=new fu(n.options.store,n.dragTarget)}),s=n.addCraftEventListener(u,"dragend",function(l){l.craft.stopPropagation(),n.dropElement(function(c,h){c.type!=="new"&&i.actions.move(c.nodes,h.placement.parent.id,h.placement.index+(h.placement.where==="after"?1:0))})});return function(){u.setAttribute("draggable","false"),o(),s()}},create:function(u,a,o){u.setAttribute("draggable","true");var s=n.addCraftEventListener(u,"dragstart",function(c){var h;if(c.craft.stopPropagation(),typeof a=="function"){var d=a();h=j.isValidElement(d)?i.query.parseReactElement(d).toNodeTree():d}else h=i.query.parseReactElement(a).toNodeTree();n.draggedElementShadow=os(c,[c.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:h},n.positioner=new fu(n.options.store,n.dragTarget)}),l=n.addCraftEventListener(u,"dragend",function(c){c.craft.stopPropagation(),n.dropElement(function(h,d){h.type!=="existing"&&(i.actions.addNodeTree(h.tree,d.placement.parent.id,d.placement.index+(d.placement.where==="after"?1:0)),o&&Hp(o.onCreate)&&o.onCreate(h.tree))})});return function(){u.removeAttribute("draggable"),s(),l()}}}}},{key:"dropElement",value:function(n){var i=this.options.store;if(this.positioner){var u=this.draggedElementShadow,a=this.positioner.getIndicator();this.dragTarget&&a&&!a.error&&n(this.dragTarget,a),u&&(u.parentNode.removeChild(u),this.draggedElementShadow=null),this.dragTarget=null,i.actions.setIndicator(null),i.actions.setNodeEvent("dragged",null),this.positioner.cleanup(),this.positioner=null}}}]),r}();function nv(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,i=0,u=0,a=0,o=0,s=t.where;return r?r.inFlow?(a=r.outerWidth,o=n,i=s==="before"?r.top:r.bottom,u=r.left):(a=n,o=r.outerHeight,i=r.top,u=s==="before"?r.left:r.left+r.outerWidth):e&&(i=e.top+e.padding.top,u=e.left+e.padding.left,a=e.outerWidth-e.padding.right-e.padding.left-e.margin.left-e.margin.right,o=n),{top:"".concat(i,"px"),left:"".concat(u,"px"),width:"".concat(a,"px"),height:"".concat(o,"px")}}se(ec,"forceSingleDragShadow",qy()&&By());const iv=()=>{const{indicator:t,indicatorOptions:e,enabled:r}=Nt(i=>({indicator:i.indicator,indicatorOptions:i.options.indicator,enabled:i.options.enabled})),n=Xl();return j.useEffect(()=>{n&&(r?n.enable():n.disable())},[r,n]),t?j.createElement($y,{className:e.className,style:{...nv(t.placement,Tr(t.placement.parent.dom),t.placement.currentNode&&Tr(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},uv=({children:t})=>{const e=j.useContext(da),r=j.useMemo(()=>e.query.getOptions().handlers(e),[e]);return r?j.createElement(Gl.Provider,{value:r},j.createElement(iv,null),t):null},ss={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 ec({store:t,removeHoverOnMouseleave:!1,isMultiSelectEnabled:e=>!!e.metaKey}),normalizeNodes:()=>{}}},av={methods:function(t,e){return ie(ie({},function(r,n){var i=function(o,s,l){if(function d(f,g){var m=o.nodes[f];typeof m.data.type!="string"&&ee(r.options.resolver[m.data.name],On.replace("%node_type%","".concat(m.data.type.name))),r.nodes[f]=ie(ie({},m),{},{data:ie(ie({},m.data),{},{parent:g})}),m.data.nodes.length>0&&(delete r.nodes[f].data.props.children,m.data.nodes.forEach(function(b){return d(b,m.id)})),Object.values(m.data.linkedNodes).forEach(function(b){return d(b,m.id)})}(o.rootNodeId,s),s||o.rootNodeId!==Je){var c=u(s);if(l.type!=="child")c.data.linkedNodes[l.id]=o.rootNodeId;else{var h=l.index;h!=null?c.data.nodes.splice(h,0,o.rootNodeId):c.data.nodes.push(o.rootNodeId)}}},u=function(o){ee(o,py);var s=r.nodes[o];return ee(s,kl),s},a=function o(s){var l=r.nodes[s],c=r.nodes[l.data.parent];if(l.data.nodes&&Ar(l.data.nodes).forEach(function(f){return o(f)}),l.data.linkedNodes&&Object.values(l.data.linkedNodes).map(function(f){return o(f)}),c.data.nodes.includes(s)){var h=c.data.nodes;h.splice(h.indexOf(s),1)}else{var d=Object.keys(c.data.linkedNodes).find(function(f){return c.data.linkedNodes[f]===f});d&&delete c.data.linkedNodes[d]}(function(f,g){Object.keys(f.events).forEach(function(m){var b=f.events[m];b&&b.has&&b.has(g)&&(f.events[m]=new Set(Array.from(b).filter(function(y){return g!==y})))})})(r,s),delete r.nodes[s]};return{addLinkedNodeFromTree:function(o,s,l){var c=u(s).data.linkedNodes[l];c&&a(c),i(o,s,{type:"linked",id:l})},add:function(o,s,l){var c=[o];Array.isArray(o)&&(lt("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),c=o),c.forEach(function(h){i({nodes:se({},h.id,h),rootNodeId:h.id},s,{type:"child",index:l})})},addNodeTree:function(o,s,l){i(o,s,{type:"child",index:l})},delete:function(o){Xe(r.nodes,o,{existOnly:!0,idOnly:!0}).forEach(function(s){var l=s.node;ee(!n.node(l.id).isTopLevelNode(),Cy),a(l.id)})},deserialize:function(o){var s=typeof o=="string"?JSON.parse(o):o,l=Object.keys(s).map(function(c){var h=c;return c===Pl&&(h=Je),[h,n.parseSerializedNode(s[c]).toNode(function(d){return d.id=h})]});this.replaceNodes(Kl(l))},move:function(o,s,l){var c=Xe(r.nodes,o,{existOnly:!0}),h=r.nodes[s],d=new Set;c.forEach(function(f,g){var m=f.node,b=m.id,y=m.data.parent;n.node(s).isDroppable([b],function(C){throw new Error(C)}),r.options.onBeforeMoveEnd(m,h,r.nodes[y]);var v=r.nodes[y].data.nodes;d.add(v);var E=v.indexOf(b);v[E]="$$",h.data.nodes.splice(l+g,0,b),r.nodes[b].data.parent=s}),d.forEach(function(f){var g=f.length;Ar(f).reverse().forEach(function(m,b){m==="$$"&&f.splice(g-1-b,1)})})},replaceNodes:function(o){this.clearEvents(),r.nodes=o},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(o){o(r.options)},setNodeEvent:function(o,s){if(r.events[o].forEach(function(h){r.nodes[h]&&(r.nodes[h].events[o]=!1)}),r.events[o]=new Set,s){var l=Xe(r.nodes,s,{idOnly:!0,existOnly:!0}),c=new Set(l.map(function(h){return h.node.id}));c.forEach(function(h){r.nodes[h].events[o]=!0}),r.events[o]=c}},setCustom:function(o,s){Xe(r.nodes,o,{idOnly:!0,existOnly:!0}).forEach(function(l){return s(r.nodes[l.node.id].data.custom)})},setDOM:function(o,s){r.nodes[o]&&(r.nodes[o].dom=s)},setIndicator:function(o){o&&(!o.placement.parent.dom||o.placement.currentNode&&!o.placement.currentNode.dom)||(r.indicator=o)},setHidden:function(o,s){r.nodes[o].data.hidden=s},setProp:function(o,s){Xe(r.nodes,o,{idOnly:!0,existOnly:!0}).forEach(function(l){return s(r.nodes[l.node.id].data.props)})},selectNode:function(o){if(o){var s=Xe(r.nodes,o,{idOnly:!0,existOnly:!0});this.setNodeEvent("selected",s.map(function(l){return l.node.id}))}else this.setNodeEvent("selected",null);this.setNodeEvent("hovered",null)}}}(t,e)),{},{setState:function(r){var n=la(this,Jy);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)})})}},ov=(t,e)=>_y(av,{...ss,options:{...ss.options,...t}},Ql,e),tc=({children:t,...e})=>{e.resolver!==void 0&&ee(typeof e.resolver=="object"&&!Array.isArray(e.resolver)&&e.resolver!==null,Ey);const r=x.useRef(e),n=ov(r.current,(i,u,a,o,s)=>{if(!a)return;const{patches:l,...c}=a;for(let h=0;h<l.length;h++){const{path:d}=l[h],f=d.length>2&&d[0]==="nodes"&&d[2]==="data";if([oe.IGNORE,oe.THROTTLE].includes(c.type)&&c.params&&(c.type=c.params[0]),["setState","deserialize"].includes(c.type)||f){s(g=>{i.options.normalizeNodes&&i.options.normalizeNodes(g,u,c,o)});break}}});return x.useEffect(()=>{n&&e.enabled!==void 0&&n.query.getOptions().enabled!==e.enabled&&n.actions.setOptions(i=>{i.enabled=e.enabled})},[n,e.enabled]),x.useEffect(()=>{n.subscribe(i=>({json:n.query.serialize()}),()=>{n.query.getOptions().onNodesChange(n.query)})},[n]),n?x.createElement(da.Provider,{value:n},x.createElement(uv,null,t)):null},rc=j.createContext("desktop"),nc=({value:t,children:e})=>p.jsx(rc.Provider,{value:t,children:e}),Ot=()=>j.useContext(rc),Ce=["mobile","tablet","small","desktop"],Ye=(t,e,r)=>{if(typeof t!="object"||t===null)return t??r;if("top"in t||"right"in t)return t;const n=Ce.indexOf(e);for(let i=n;i<Ce.length;i++){const u=Ce[i];if(t[u]!==void 0&&t[u]!==null)return t[u]}for(let i=n-1;i>=0;i--){const u=Ce[i];if(t[u]!==void 0&&t[u]!==null)return t[u]}return r};function Se(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t==null||t(i),r===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function si(t,e=[]){let r=[];function n(u,a){const o=x.createContext(a),s=r.length;r=[...r,a];const l=h=>{var y;const{scope:d,children:f,...g}=h,m=((y=d==null?void 0:d[t])==null?void 0:y[s])||o,b=x.useMemo(()=>g,Object.values(g));return p.jsx(m.Provider,{value:b,children:f})};l.displayName=u+"Provider";function c(h,d){var m;const f=((m=d==null?void 0:d[t])==null?void 0:m[s])||o,g=x.useContext(f);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${u}\``)}return[l,c]}const i=()=>{const u=r.map(a=>x.createContext(a));return function(o){const s=(o==null?void 0:o[t])||u;return x.useMemo(()=>({[`__scope${t}`]:{...o,[t]:s}}),[o,s])}};return i.scopeName=t,[n,sv(i,...e)]}function sv(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(u){const a=n.reduce((o,{useScope:s,scopeName:l})=>{const h=s(u)[`__scope${l}`];return{...o,...h}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return r.scopeName=e.scopeName,r}function lv(t){const e=cv(t),r=x.forwardRef((n,i)=>{const{children:u,...a}=n,o=x.Children.toArray(u),s=o.find(fv);if(s){const l=s.props.children,c=o.map(h=>h===s?x.Children.count(l)>1?x.Children.only(null):x.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...a,ref:i,children:x.isValidElement(l)?x.cloneElement(l,void 0,c):null})}return p.jsx(e,{...a,ref:i,children:u})});return r.displayName=`${t}.Slot`,r}function cv(t){const e=x.forwardRef((r,n)=>{const{children:i,...u}=r;if(x.isValidElement(i)){const a=hv(i),o=pv(u,i.props);return i.type!==x.Fragment&&(o.ref=n?Xn(n,a):a),x.cloneElement(i,o)}return x.Children.count(i)>1?x.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var dv=Symbol("radix.slottable");function fv(t){return x.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===dv}function pv(t,e){const r={...e};for(const n in e){const i=t[n],u=e[n];/^on[A-Z]/.test(n)?i&&u?r[n]=(...o)=>{const s=u(...o);return i(...o),s}:i&&(r[n]=i):n==="style"?r[n]={...i,...u}:n==="className"&&(r[n]=[i,u].filter(Boolean).join(" "))}return{...t,...r}}function hv(t){var n,i;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=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var bv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Oe=bv.reduce((t,e)=>{const r=lv(`Primitive.${e}`),n=x.forwardRef((i,u)=>{const{asChild:a,...o}=i,s=a?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(s,{...o,ref:u})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function gv(t,e){t&&rl.flushSync(()=>t.dispatchEvent(e))}function Br(t){const e=x.useRef(t);return x.useEffect(()=>{e.current=t}),x.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function mv(t,e=globalThis==null?void 0:globalThis.document){const r=Br(t);x.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var yv="DismissableLayer",pu="dismissableLayer.update",vv="dismissableLayer.pointerDownOutside",xv="dismissableLayer.focusOutside",ls,ic=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),uc=x.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:u,onInteractOutside:a,onDismiss:o,...s}=t,l=x.useContext(ic),[c,h]=x.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=x.useState({}),g=Be(e,R=>h(R)),m=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(b),v=c?m.indexOf(c):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,C=v>=y,N=Cv(R=>{const D=R.target,$=[...l.branches].some(L=>L.contains(D));!C||$||(i==null||i(R),a==null||a(R),R.defaultPrevented||o==null||o())},d),k=Ev(R=>{const D=R.target;[...l.branches].some(L=>L.contains(D))||(u==null||u(R),a==null||a(R),R.defaultPrevented||o==null||o())},d);return mv(R=>{v===l.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&o&&(R.preventDefault(),o()))},d),x.useEffect(()=>{if(c)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ls=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),cs(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=ls)}},[c,d,r,l]),x.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),cs())},[c,l]),x.useEffect(()=>{const R=()=>f({});return document.addEventListener(pu,R),()=>document.removeEventListener(pu,R)},[]),p.jsx(Oe.div,{...s,ref:g,style:{pointerEvents:E?C?"auto":"none":void 0,...t.style},onFocusCapture:Se(t.onFocusCapture,k.onFocusCapture),onBlurCapture:Se(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Se(t.onPointerDownCapture,N.onPointerDownCapture)})});uc.displayName=yv;var wv="DismissableLayerBranch",Sv=x.forwardRef((t,e)=>{const r=x.useContext(ic),n=x.useRef(null),i=Be(e,n);return x.useEffect(()=>{const u=n.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),p.jsx(Oe.div,{...t,ref:i})});Sv.displayName=wv;function Cv(t,e=globalThis==null?void 0:globalThis.document){const r=Br(t),n=x.useRef(!1),i=x.useRef(()=>{});return x.useEffect(()=>{const u=o=>{if(o.target&&!n.current){let s=function(){ac(vv,r,l,{discrete:!0})};const l={originalEvent:o};o.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);n.current=!1},a=window.setTimeout(()=>{e.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",u),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function Ev(t,e=globalThis==null?void 0:globalThis.document){const r=Br(t),n=x.useRef(!1);return x.useEffect(()=>{const i=u=>{u.target&&!n.current&&ac(xv,r,{originalEvent:u},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function cs(){const t=new CustomEvent(pu);document.dispatchEvent(t)}function ac(t,e,r,{discrete:n}){const i=r.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?gv(i,u):i.dispatchEvent(u)}var ct=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},Tv=x[" useId ".trim().toString()]||(()=>{}),Av=0;function oc(t){const[e,r]=x.useState(Tv());return ct(()=>{r(n=>n??String(Av++))},[t]),e?`radix-${e}`:""}const Nv=["top","right","bottom","left"],dt=Math.min,ge=Math.max,kn=Math.round,tn=Math.floor,Ie=t=>({x:t,y:t}),Ov={left:"right",right:"left",bottom:"top",top:"bottom"},jv={start:"end",end:"start"};function hu(t,e,r){return ge(t,dt(e,r))}function Ze(t,e){return typeof t=="function"?t(e):t}function Qe(t){return t.split("-")[0]}function ar(t){return t.split("-")[1]}function ha(t){return t==="x"?"y":"x"}function ba(t){return t==="y"?"height":"width"}const _v=new Set(["top","bottom"]);function ke(t){return _v.has(Qe(t))?"y":"x"}function ga(t){return ha(ke(t))}function Pv(t,e,r){r===void 0&&(r=!1);const n=ar(t),i=ga(t),u=ba(i);let a=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[u]>e.floating[u]&&(a=Rn(a)),[a,Rn(a)]}function kv(t){const e=Rn(t);return[bu(t),e,bu(e)]}function bu(t){return t.replace(/start|end/g,e=>jv[e])}const ds=["left","right"],fs=["right","left"],Rv=["top","bottom"],Iv=["bottom","top"];function Dv(t,e,r){switch(t){case"top":case"bottom":return r?e?fs:ds:e?ds:fs;case"left":case"right":return e?Rv:Iv;default:return[]}}function Lv(t,e,r,n){const i=ar(t);let u=Dv(Qe(t),r==="start",n);return i&&(u=u.map(a=>a+"-"+i),e&&(u=u.concat(u.map(bu)))),u}function Rn(t){return t.replace(/left|right|bottom|top/g,e=>Ov[e])}function Mv(t){return{top:0,right:0,bottom:0,left:0,...t}}function sc(t){return typeof t!="number"?Mv(t):{top:t,right:t,bottom:t,left:t}}function In(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function ps(t,e,r){let{reference:n,floating:i}=t;const u=ke(e),a=ga(e),o=ba(a),s=Qe(e),l=u==="y",c=n.x+n.width/2-i.width/2,h=n.y+n.height/2-i.height/2,d=n[o]/2-i[o]/2;let f;switch(s){case"top":f={x:c,y:n.y-i.height};break;case"bottom":f={x:c,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:h};break;case"left":f={x:n.x-i.width,y:h};break;default:f={x:n.x,y:n.y}}switch(ar(e)){case"start":f[a]-=d*(r&&l?-1:1);break;case"end":f[a]+=d*(r&&l?-1:1);break}return f}const $v=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:u=[],platform:a}=r,o=u.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:h}=ps(l,n,s),d=n,f={},g=0;for(let m=0;m<o.length;m++){const{name:b,fn:y}=o[m],{x:v,y:E,data:C,reset:N}=await y({x:c,y:h,initialPlacement:n,placement:d,strategy:i,middlewareData:f,rects:l,platform:a,elements:{reference:t,floating:e}});c=v??c,h=E??h,f={...f,[b]:{...f[b],...C}},N&&g<=50&&(g++,typeof N=="object"&&(N.placement&&(d=N.placement),N.rects&&(l=N.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):N.rects),{x:c,y:h}=ps(l,d,s)),m=-1)}return{x:c,y:h,placement:d,strategy:i,middlewareData:f}};async function Nr(t,e){var r;e===void 0&&(e={});const{x:n,y:i,platform:u,rects:a,elements:o,strategy:s}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:d=!1,padding:f=0}=Ze(e,t),g=sc(f),b=o[d?h==="floating"?"reference":"floating":h],y=In(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(b)))==null||r?b:b.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(o.floating)),boundary:l,rootBoundary:c,strategy:s})),v=h==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,E=await(u.getOffsetParent==null?void 0:u.getOffsetParent(o.floating)),C=await(u.isElement==null?void 0:u.isElement(E))?await(u.getScale==null?void 0:u.getScale(E))||{x:1,y:1}:{x:1,y:1},N=In(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:v,offsetParent:E,strategy:s}):v);return{top:(y.top-N.top+g.top)/C.y,bottom:(N.bottom-y.bottom+g.bottom)/C.y,left:(y.left-N.left+g.left)/C.x,right:(N.right-y.right+g.right)/C.x}}const Bv=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:i,rects:u,platform:a,elements:o,middlewareData:s}=e,{element:l,padding:c=0}=Ze(t,e)||{};if(l==null)return{};const h=sc(c),d={x:r,y:n},f=ga(i),g=ba(f),m=await a.getDimensions(l),b=f==="y",y=b?"top":"left",v=b?"bottom":"right",E=b?"clientHeight":"clientWidth",C=u.reference[g]+u.reference[f]-d[f]-u.floating[g],N=d[f]-u.reference[f],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let R=k?k[E]:0;(!R||!await(a.isElement==null?void 0:a.isElement(k)))&&(R=o.floating[E]||u.floating[g]);const D=C/2-N/2,$=R/2-m[g]/2-1,L=dt(h[y],$),S=dt(h[v],$),T=L,_=R-m[g]-S,I=R/2-m[g]/2+D,w=hu(T,I,_),O=!s.arrow&&ar(i)!=null&&I!==w&&u.reference[g]/2-(I<T?L:S)-m[g]/2<0,A=O?I<T?I-T:I-_:0;return{[f]:d[f]+A,data:{[f]:w,centerOffset:I-w-A,...O&&{alignmentOffset:A}},reset:O}}}),qv=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:i,middlewareData:u,rects:a,initialPlacement:o,platform:s,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=Ze(t,e);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const y=Qe(i),v=ke(o),E=Qe(o)===o,C=await(s.isRTL==null?void 0:s.isRTL(l.floating)),N=d||(E||!m?[Rn(o)]:kv(o)),k=g!=="none";!d&&k&&N.push(...Lv(o,m,g,C));const R=[o,...N],D=await Nr(e,b),$=[];let L=((n=u.flip)==null?void 0:n.overflows)||[];if(c&&$.push(D[y]),h){const I=Pv(i,a,C);$.push(D[I[0]],D[I[1]])}if(L=[...L,{placement:i,overflows:$}],!$.every(I=>I<=0)){var S,T;const I=(((S=u.flip)==null?void 0:S.index)||0)+1,w=R[I];if(w&&(!(h==="alignment"?v!==ke(w):!1)||L.every(P=>ke(P.placement)===v?P.overflows[0]>0:!0)))return{data:{index:I,overflows:L},reset:{placement:w}};let O=(T=L.filter(A=>A.overflows[0]<=0).sort((A,P)=>A.overflows[1]-P.overflows[1])[0])==null?void 0:T.placement;if(!O)switch(f){case"bestFit":{var _;const A=(_=L.filter(P=>{if(k){const B=ke(P.placement);return B===v||B==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(B=>B>0).reduce((B,U)=>B+U,0)]).sort((P,B)=>P[1]-B[1])[0])==null?void 0:_[0];A&&(O=A);break}case"initialPlacement":O=o;break}if(i!==O)return{reset:{placement:O}}}return{}}}};function hs(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function bs(t){return Nv.some(e=>t[e]>=0)}const Hv=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...i}=Ze(t,e);switch(n){case"referenceHidden":{const u=await Nr(e,{...i,elementContext:"reference"}),a=hs(u,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:bs(a)}}}case"escaped":{const u=await Nr(e,{...i,altBoundary:!0}),a=hs(u,r.floating);return{data:{escapedOffsets:a,escaped:bs(a)}}}default:return{}}}}},lc=new Set(["left","top"]);async function Fv(t,e){const{placement:r,platform:n,elements:i}=t,u=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=Qe(r),o=ar(r),s=ke(r)==="y",l=lc.has(a)?-1:1,c=u&&s?-1:1,h=Ze(e,t);let{mainAxis:d,crossAxis:f,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return o&&typeof g=="number"&&(f=o==="end"?g*-1:g),s?{x:f*c,y:d*l}:{x:d*l,y:f*c}}const zv=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:i,y:u,placement:a,middlewareData:o}=e,s=await Fv(e,t);return a===((r=o.offset)==null?void 0:r.placement)&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:i+s.x,y:u+s.y,data:{...s,placement:a}}}}},Uv=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i}=e,{mainAxis:u=!0,crossAxis:a=!1,limiter:o={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...s}=Ze(t,e),l={x:r,y:n},c=await Nr(e,s),h=ke(Qe(i)),d=ha(h);let f=l[d],g=l[h];if(u){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=f+c[b],E=f-c[y];f=hu(v,f,E)}if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=g+c[b],E=g-c[y];g=hu(v,g,E)}const m=o.fn({...e,[d]:f,[h]:g});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[d]:u,[h]:a}}}}}},Vv=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:i,rects:u,middlewareData:a}=e,{offset:o=0,mainAxis:s=!0,crossAxis:l=!0}=Ze(t,e),c={x:r,y:n},h=ke(i),d=ha(h);let f=c[d],g=c[h];const m=Ze(o,e),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const E=d==="y"?"height":"width",C=u.reference[d]-u.floating[E]+b.mainAxis,N=u.reference[d]+u.reference[E]-b.mainAxis;f<C?f=C:f>N&&(f=N)}if(l){var y,v;const E=d==="y"?"width":"height",C=lc.has(Qe(i)),N=u.reference[h]-u.floating[E]+(C&&((y=a.offset)==null?void 0:y[h])||0)+(C?0:b.crossAxis),k=u.reference[h]+u.reference[E]+(C?0:((v=a.offset)==null?void 0:v[h])||0)-(C?b.crossAxis:0);g<N?g=N:g>k&&(g=k)}return{[d]:f,[h]:g}}}},Wv=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:i,rects:u,platform:a,elements:o}=e,{apply:s=()=>{},...l}=Ze(t,e),c=await Nr(e,l),h=Qe(i),d=ar(i),f=ke(i)==="y",{width:g,height:m}=u.floating;let b,y;h==="top"||h==="bottom"?(b=h,y=d===(await(a.isRTL==null?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(y=h,b=d==="end"?"top":"bottom");const v=m-c.top-c.bottom,E=g-c.left-c.right,C=dt(m-c[b],v),N=dt(g-c[y],E),k=!e.middlewareData.shift;let R=C,D=N;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(D=E),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(R=v),k&&!d){const L=ge(c.left,0),S=ge(c.right,0),T=ge(c.top,0),_=ge(c.bottom,0);f?D=g-2*(L!==0||S!==0?L+S:ge(c.left,c.right)):R=m-2*(T!==0||_!==0?T+_:ge(c.top,c.bottom))}await s({...e,availableWidth:D,availableHeight:R});const $=await a.getDimensions(o.floating);return g!==$.width||m!==$.height?{reset:{rects:!0}}:{}}}};function li(){return typeof window<"u"}function or(t){return cc(t)?(t.nodeName||"").toLowerCase():"#document"}function me(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function He(t){var e;return(e=(cc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function cc(t){return li()?t instanceof Node||t instanceof me(t).Node:!1}function Ae(t){return li()?t instanceof Element||t instanceof me(t).Element:!1}function $e(t){return li()?t instanceof HTMLElement||t instanceof me(t).HTMLElement:!1}function gs(t){return!li()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof me(t).ShadowRoot}const Gv=new Set(["inline","contents"]);function qr(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=Ne(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!Gv.has(i)}const Xv=new Set(["table","td","th"]);function Yv(t){return Xv.has(or(t))}const Jv=[":popover-open",":modal"];function ci(t){return Jv.some(e=>{try{return t.matches(e)}catch{return!1}})}const Kv=["transform","translate","scale","rotate","perspective"],Zv=["transform","translate","scale","rotate","perspective","filter"],Qv=["paint","layout","strict","content"];function ma(t){const e=ya(),r=Ae(t)?Ne(t):t;return Kv.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)||Zv.some(n=>(r.willChange||"").includes(n))||Qv.some(n=>(r.contain||"").includes(n))}function e2(t){let e=ft(t);for(;$e(e)&&!Ft(e);){if(ma(e))return e;if(ci(e))return null;e=ft(e)}return null}function ya(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const t2=new Set(["html","body","#document"]);function Ft(t){return t2.has(or(t))}function Ne(t){return me(t).getComputedStyle(t)}function di(t){return Ae(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ft(t){if(or(t)==="html")return t;const e=t.assignedSlot||t.parentNode||gs(t)&&t.host||He(t);return gs(e)?e.host:e}function dc(t){const e=ft(t);return Ft(e)?t.ownerDocument?t.ownerDocument.body:t.body:$e(e)&&qr(e)?e:dc(e)}function Or(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=dc(t),u=i===((n=t.ownerDocument)==null?void 0:n.body),a=me(i);if(u){const o=gu(a);return e.concat(a,a.visualViewport||[],qr(i)?i:[],o&&r?Or(o):[])}return e.concat(i,Or(i,[],r))}function gu(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function fc(t){const e=Ne(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=$e(t),u=i?t.offsetWidth:r,a=i?t.offsetHeight:n,o=kn(r)!==u||kn(n)!==a;return o&&(r=u,n=a),{width:r,height:n,$:o}}function va(t){return Ae(t)?t:t.contextElement}function Mt(t){const e=va(t);if(!$e(e))return Ie(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:u}=fc(e);let a=(u?kn(r.width):r.width)/n,o=(u?kn(r.height):r.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const r2=Ie(0);function pc(t){const e=me(t);return!ya()||!e.visualViewport?r2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function n2(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==me(t)?!1:e}function St(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),u=va(t);let a=Ie(1);e&&(n?Ae(n)&&(a=Mt(n)):a=Mt(t));const o=n2(u,r,n)?pc(u):Ie(0);let s=(i.left+o.x)/a.x,l=(i.top+o.y)/a.y,c=i.width/a.x,h=i.height/a.y;if(u){const d=me(u),f=n&&Ae(n)?me(n):n;let g=d,m=gu(g);for(;m&&n&&f!==g;){const b=Mt(m),y=m.getBoundingClientRect(),v=Ne(m),E=y.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,C=y.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;s*=b.x,l*=b.y,c*=b.x,h*=b.y,s+=E,l+=C,g=me(m),m=gu(g)}}return In({width:c,height:h,x:s,y:l})}function fi(t,e){const r=di(t).scrollLeft;return e?e.left+r:St(He(t)).left+r}function hc(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-fi(t,r),i=r.top+e.scrollTop;return{x:n,y:i}}function i2(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const u=i==="fixed",a=He(n),o=e?ci(e.floating):!1;if(n===a||o&&u)return r;let s={scrollLeft:0,scrollTop:0},l=Ie(1);const c=Ie(0),h=$e(n);if((h||!h&&!u)&&((or(n)!=="body"||qr(a))&&(s=di(n)),$e(n))){const f=St(n);l=Mt(n),c.x=f.x+n.clientLeft,c.y=f.y+n.clientTop}const d=a&&!h&&!u?hc(a,s):Ie(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-s.scrollLeft*l.x+c.x+d.x,y:r.y*l.y-s.scrollTop*l.y+c.y+d.y}}function u2(t){return Array.from(t.getClientRects())}function a2(t){const e=He(t),r=di(t),n=t.ownerDocument.body,i=ge(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),u=ge(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+fi(t);const o=-r.scrollTop;return Ne(n).direction==="rtl"&&(a+=ge(e.clientWidth,n.clientWidth)-i),{width:i,height:u,x:a,y:o}}const ms=25;function o2(t,e){const r=me(t),n=He(t),i=r.visualViewport;let u=n.clientWidth,a=n.clientHeight,o=0,s=0;if(i){u=i.width,a=i.height;const c=ya();(!c||c&&e==="fixed")&&(o=i.offsetLeft,s=i.offsetTop)}const l=fi(n);if(l<=0){const c=n.ownerDocument,h=c.body,d=getComputedStyle(h),f=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,g=Math.abs(n.clientWidth-h.clientWidth-f);g<=ms&&(u-=g)}else l<=ms&&(u+=l);return{width:u,height:a,x:o,y:s}}const s2=new Set(["absolute","fixed"]);function l2(t,e){const r=St(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,u=$e(t)?Mt(t):Ie(1),a=t.clientWidth*u.x,o=t.clientHeight*u.y,s=i*u.x,l=n*u.y;return{width:a,height:o,x:s,y:l}}function ys(t,e,r){let n;if(e==="viewport")n=o2(t,r);else if(e==="document")n=a2(He(t));else if(Ae(e))n=l2(e,r);else{const i=pc(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return In(n)}function bc(t,e){const r=ft(t);return r===e||!Ae(r)||Ft(r)?!1:Ne(r).position==="fixed"||bc(r,e)}function c2(t,e){const r=e.get(t);if(r)return r;let n=Or(t,[],!1).filter(o=>Ae(o)&&or(o)!=="body"),i=null;const u=Ne(t).position==="fixed";let a=u?ft(t):t;for(;Ae(a)&&!Ft(a);){const o=Ne(a),s=ma(a);!s&&o.position==="fixed"&&(i=null),(u?!s&&!i:!s&&o.position==="static"&&!!i&&s2.has(i.position)||qr(a)&&!s&&bc(t,a))?n=n.filter(c=>c!==a):i=o,a=ft(a)}return e.set(t,n),n}function d2(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const a=[...r==="clippingAncestors"?ci(e)?[]:c2(e,this._c):[].concat(r),n],o=a[0],s=a.reduce((l,c)=>{const h=ys(e,c,i);return l.top=ge(h.top,l.top),l.right=dt(h.right,l.right),l.bottom=dt(h.bottom,l.bottom),l.left=ge(h.left,l.left),l},ys(e,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function f2(t){const{width:e,height:r}=fc(t);return{width:e,height:r}}function p2(t,e,r){const n=$e(e),i=He(e),u=r==="fixed",a=St(t,!0,u,e);let o={scrollLeft:0,scrollTop:0};const s=Ie(0);function l(){s.x=fi(i)}if(n||!n&&!u)if((or(e)!=="body"||qr(i))&&(o=di(e)),n){const f=St(e,!0,u,e);s.x=f.x+e.clientLeft,s.y=f.y+e.clientTop}else i&&l();u&&!n&&i&&l();const c=i&&!n&&!u?hc(i,o):Ie(0),h=a.left+o.scrollLeft-s.x-c.x,d=a.top+o.scrollTop-s.y-c.y;return{x:h,y:d,width:a.width,height:a.height}}function $i(t){return Ne(t).position==="static"}function vs(t,e){if(!$e(t)||Ne(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return He(t)===r&&(r=r.ownerDocument.body),r}function gc(t,e){const r=me(t);if(ci(t))return r;if(!$e(t)){let i=ft(t);for(;i&&!Ft(i);){if(Ae(i)&&!$i(i))return i;i=ft(i)}return r}let n=vs(t,e);for(;n&&Yv(n)&&$i(n);)n=vs(n,e);return n&&Ft(n)&&$i(n)&&!ma(n)?r:n||e2(t)||r}const h2=async function(t){const e=this.getOffsetParent||gc,r=this.getDimensions,n=await r(t.floating);return{reference:p2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function b2(t){return Ne(t).direction==="rtl"}const g2={convertOffsetParentRelativeRectToViewportRelativeRect:i2,getDocumentElement:He,getClippingRect:d2,getOffsetParent:gc,getElementRects:h2,getClientRects:u2,getDimensions:f2,getScale:Mt,isElement:Ae,isRTL:b2};function mc(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function m2(t,e){let r=null,n;const i=He(t);function u(){var o;clearTimeout(n),(o=r)==null||o.disconnect(),r=null}function a(o,s){o===void 0&&(o=!1),s===void 0&&(s=1),u();const l=t.getBoundingClientRect(),{left:c,top:h,width:d,height:f}=l;if(o||e(),!d||!f)return;const g=tn(h),m=tn(i.clientWidth-(c+d)),b=tn(i.clientHeight-(h+f)),y=tn(c),E={rootMargin:-g+"px "+-m+"px "+-b+"px "+-y+"px",threshold:ge(0,dt(1,s))||1};let C=!0;function N(k){const R=k[0].intersectionRatio;if(R!==s){if(!C)return a();R?a(!1,R):n=setTimeout(()=>{a(!1,1e-7)},1e3)}R===1&&!mc(l,t.getBoundingClientRect())&&a(),C=!1}try{r=new IntersectionObserver(N,{...E,root:i.ownerDocument})}catch{r=new IntersectionObserver(N,E)}r.observe(t)}return a(!0),u}function y2(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:u=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,l=va(t),c=i||u?[...l?Or(l):[],...Or(e)]:[];c.forEach(y=>{i&&y.addEventListener("scroll",r,{passive:!0}),u&&y.addEventListener("resize",r)});const h=l&&o?m2(l,r):null;let d=-1,f=null;a&&(f=new ResizeObserver(y=>{let[v]=y;v&&v.target===l&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(e)})),r()}),l&&!s&&f.observe(l),f.observe(e));let g,m=s?St(t):null;s&&b();function b(){const y=St(t);m&&!mc(m,y)&&r(),m=y,g=requestAnimationFrame(b)}return r(),()=>{var y;c.forEach(v=>{i&&v.removeEventListener("scroll",r),u&&v.removeEventListener("resize",r)}),h==null||h(),(y=f)==null||y.disconnect(),f=null,s&&cancelAnimationFrame(g)}}const v2=zv,x2=Uv,w2=qv,S2=Wv,C2=Hv,xs=Bv,E2=Vv,T2=(t,e,r)=>{const n=new Map,i={platform:g2,...r},u={...i.platform,_c:n};return $v(t,e,{...i,platform:u})};var A2=typeof document<"u",N2=function(){},bn=A2?j.useLayoutEffect:N2;function Dn(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,i;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(!Dn(t[n],e[n]))return!1;return!0}if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){const u=i[n];if(!(u==="_owner"&&t.$$typeof)&&!Dn(t[u],e[u]))return!1}return!0}return t!==t&&e!==e}function yc(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function ws(t,e){const r=yc(t);return Math.round(e*r)/r}function Bi(t){const e=x.useRef(t);return bn(()=>{e.current=t}),e}function O2(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:u,floating:a}={},transform:o=!0,whileElementsMounted:s,open:l}=t,[c,h]=x.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,f]=x.useState(n);Dn(d,n)||f(n);const[g,m]=x.useState(null),[b,y]=x.useState(null),v=x.useCallback(P=>{P!==k.current&&(k.current=P,m(P))},[]),E=x.useCallback(P=>{P!==R.current&&(R.current=P,y(P))},[]),C=u||g,N=a||b,k=x.useRef(null),R=x.useRef(null),D=x.useRef(c),$=s!=null,L=Bi(s),S=Bi(i),T=Bi(l),_=x.useCallback(()=>{if(!k.current||!R.current)return;const P={placement:e,strategy:r,middleware:d};S.current&&(P.platform=S.current),T2(k.current,R.current,P).then(B=>{const U={...B,isPositioned:T.current!==!1};I.current&&!Dn(D.current,U)&&(D.current=U,rl.flushSync(()=>{h(U)}))})},[d,e,r,S,T]);bn(()=>{l===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,h(P=>({...P,isPositioned:!1})))},[l]);const I=x.useRef(!1);bn(()=>(I.current=!0,()=>{I.current=!1}),[]),bn(()=>{if(C&&(k.current=C),N&&(R.current=N),C&&N){if(L.current)return L.current(C,N,_);_()}},[C,N,_,L,$]);const w=x.useMemo(()=>({reference:k,floating:R,setReference:v,setFloating:E}),[v,E]),O=x.useMemo(()=>({reference:C,floating:N}),[C,N]),A=x.useMemo(()=>{const P={position:r,left:0,top:0};if(!O.floating)return P;const B=ws(O.floating,c.x),U=ws(O.floating,c.y);return o?{...P,transform:"translate("+B+"px, "+U+"px)",...yc(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:B,top:U}},[r,o,O.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:_,refs:w,elements:O,floatingStyles:A}),[c,_,w,O,A])}const j2=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:i}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?xs({element:n.current,padding:i}).fn(r):{}:n?xs({element:n,padding:i}).fn(r):{}}}},_2=(t,e)=>({...v2(t),options:[t,e]}),P2=(t,e)=>({...x2(t),options:[t,e]}),k2=(t,e)=>({...E2(t),options:[t,e]}),R2=(t,e)=>({...w2(t),options:[t,e]}),I2=(t,e)=>({...S2(t),options:[t,e]}),D2=(t,e)=>({...C2(t),options:[t,e]}),L2=(t,e)=>({...j2(t),options:[t,e]});var M2="Arrow",vc=x.forwardRef((t,e)=>{const{children:r,width:n=10,height:i=5,...u}=t;return p.jsx(Oe.svg,{...u,ref:e,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});vc.displayName=M2;var $2=vc;function xc(t){const[e,r]=x.useState(void 0);return ct(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const u=i[0];let a,o;if("borderBoxSize"in u){const s=u.borderBoxSize,l=Array.isArray(s)?s[0]:s;a=l.inlineSize,o=l.blockSize}else a=t.offsetWidth,o=t.offsetHeight;r({width:a,height:o})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var xa="Popper",[wc,Sc]=si(xa),[B2,Cc]=wc(xa),Ec=t=>{const{__scopePopper:e,children:r}=t,[n,i]=x.useState(null);return p.jsx(B2,{scope:e,anchor:n,onAnchorChange:i,children:r})};Ec.displayName=xa;var Tc="PopperAnchor",Ac=x.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...i}=t,u=Cc(Tc,r),a=x.useRef(null),o=Be(e,a),s=x.useRef(null);return x.useEffect(()=>{const l=s.current;s.current=(n==null?void 0:n.current)||a.current,l!==s.current&&u.onAnchorChange(s.current)}),n?null:p.jsx(Oe.div,{...i,ref:o})});Ac.displayName=Tc;var wa="PopperContent",[q2,H2]=wc(wa),Nc=x.forwardRef((t,e)=>{var W,_e,xe,pe,Yr,cr;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:u="center",alignOffset:a=0,arrowPadding:o=0,avoidCollisions:s=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:h="partial",hideWhenDetached:d=!1,updatePositionStrategy:f="optimized",onPlaced:g,...m}=t,b=Cc(wa,r),[y,v]=x.useState(null),E=Be(e,mt=>v(mt)),[C,N]=x.useState(null),k=xc(C),R=(k==null?void 0:k.width)??0,D=(k==null?void 0:k.height)??0,$=n+(u!=="center"?"-"+u:""),L=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},S=Array.isArray(l)?l:[l],T=S.length>0,_={padding:L,boundary:S.filter(z2),altBoundary:T},{refs:I,floatingStyles:w,placement:O,isPositioned:A,middlewareData:P}=O2({strategy:"fixed",placement:$,whileElementsMounted:(...mt)=>y2(...mt,{animationFrame:f==="always"}),elements:{reference:b.anchor},middleware:[_2({mainAxis:i+D,alignmentAxis:a}),s&&P2({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?k2():void 0,..._}),s&&R2({..._}),I2({..._,apply:({elements:mt,rects:oo,availableWidth:s0,availableHeight:l0})=>{const{width:c0,height:d0}=oo.reference,Jr=mt.floating.style;Jr.setProperty("--radix-popper-available-width",`${s0}px`),Jr.setProperty("--radix-popper-available-height",`${l0}px`),Jr.setProperty("--radix-popper-anchor-width",`${c0}px`),Jr.setProperty("--radix-popper-anchor-height",`${d0}px`)}}),C&&L2({element:C,padding:o}),U2({arrowWidth:R,arrowHeight:D}),d&&D2({strategy:"referenceHidden",..._})]}),[B,U]=_c(O),ce=Br(g);ct(()=>{A&&(ce==null||ce())},[A,ce]);const ao=(W=P.arrow)==null?void 0:W.x,X=(_e=P.arrow)==null?void 0:_e.y,V=((xe=P.arrow)==null?void 0:xe.centerOffset)!==0,[lr,G]=x.useState();return ct(()=>{y&&G(window.getComputedStyle(y).zIndex)},[y]),p.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...w,transform:A?w.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:lr,"--radix-popper-transform-origin":[(pe=P.transformOrigin)==null?void 0:pe.x,(Yr=P.transformOrigin)==null?void 0:Yr.y].join(" "),...((cr=P.hide)==null?void 0:cr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:p.jsx(q2,{scope:r,placedSide:B,onArrowChange:N,arrowX:ao,arrowY:X,shouldHideArrow:V,children:p.jsx(Oe.div,{"data-side":B,"data-align":U,...m,ref:E,style:{...m.style,animation:A?void 0:"none"}})})})});Nc.displayName=wa;var Oc="PopperArrow",F2={top:"bottom",right:"left",bottom:"top",left:"right"},jc=x.forwardRef(function(e,r){const{__scopePopper:n,...i}=e,u=H2(Oc,n),a=F2[u.placedSide];return p.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:p.jsx($2,{...i,ref:r,style:{...i.style,display:"block"}})})});jc.displayName=Oc;function z2(t){return t!==null}var U2=t=>({name:"transformOrigin",options:t,fn(e){var b,y,v;const{placement:r,rects:n,middlewareData:i}=e,a=((b=i.arrow)==null?void 0:b.centerOffset)!==0,o=a?0:t.arrowWidth,s=a?0:t.arrowHeight,[l,c]=_c(r),h={start:"0%",center:"50%",end:"100%"}[c],d=(((y=i.arrow)==null?void 0:y.x)??0)+o/2,f=(((v=i.arrow)==null?void 0:v.y)??0)+s/2;let g="",m="";return l==="bottom"?(g=a?h:`${d}px`,m=`${-s}px`):l==="top"?(g=a?h:`${d}px`,m=`${n.floating.height+s}px`):l==="right"?(g=`${-s}px`,m=a?h:`${f}px`):l==="left"&&(g=`${n.floating.width+s}px`,m=a?h:`${f}px`),{data:{x:g,y:m}}}});function _c(t){const[e,r="center"]=t.split("-");return[e,r]}var V2=Ec,W2=Ac,G2=Nc,X2=jc;function Y2(t,e){return x.useReducer((r,n)=>e[r][n]??r,t)}var pi=t=>{const{present:e,children:r}=t,n=J2(e),i=typeof r=="function"?r({present:n.isPresent}):x.Children.only(r),u=Be(n.ref,K2(i));return typeof r=="function"||n.isPresent?x.cloneElement(i,{ref:u}):null};pi.displayName="Presence";function J2(t){const[e,r]=x.useState(),n=x.useRef(null),i=x.useRef(t),u=x.useRef("none"),a=t?"mounted":"unmounted",[o,s]=Y2(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const l=rn(n.current);u.current=o==="mounted"?l:"none"},[o]),ct(()=>{const l=n.current,c=i.current;if(c!==t){const d=u.current,f=rn(l);t?s("MOUNT"):f==="none"||(l==null?void 0:l.display)==="none"?s("UNMOUNT"):s(c&&d!==f?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),ct(()=>{if(e){let l;const c=e.ownerDocument.defaultView??window,h=f=>{const m=rn(n.current).includes(CSS.escape(f.animationName));if(f.target===e&&m&&(s("ANIMATION_END"),!i.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",l=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},d=f=>{f.target===e&&(u.current=rn(n.current))};return e.addEventListener("animationstart",d),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{c.clearTimeout(l),e.removeEventListener("animationstart",d),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:x.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function rn(t){return(t==null?void 0:t.animationName)||"none"}function K2(t){var n,i;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=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var Z2=Symbol("radix.slottable");function Q2(t){const e=({children:r})=>p.jsx(p.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=Z2,e}var ex=x[" useInsertionEffect ".trim().toString()]||ct;function Sa({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[i,u,a]=tx({defaultProp:e,onChange:r}),o=t!==void 0,s=o?t:i;{const c=x.useRef(t!==void 0);x.useEffect(()=>{const h=c.current;h!==o&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${o?"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=o},[o,n])}const l=x.useCallback(c=>{var h;if(o){const d=rx(c)?c(t):c;d!==t&&((h=a.current)==null||h.call(a,d))}else u(c)},[o,t,u,a]);return[s,l]}function tx({defaultProp:t,onChange:e}){const[r,n]=x.useState(t),i=x.useRef(r),u=x.useRef(e);return ex(()=>{u.current=e},[e]),x.useEffect(()=>{var a;i.current!==r&&((a=u.current)==null||a.call(u,r),i.current=r)},[r,i]),[r,n,u]}function rx(t){return typeof t=="function"}var nx=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"}),ix="VisuallyHidden",Pc=x.forwardRef((t,e)=>p.jsx(Oe.span,{...t,ref:e,style:{...nx,...t.style}}));Pc.displayName=ix;var ux=Pc,[hi]=si("Tooltip",[Sc]),bi=Sc(),kc="TooltipProvider",ax=700,mu="tooltip.open",[ox,Ca]=hi(kc),Rc=t=>{const{__scopeTooltip:e,delayDuration:r=ax,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:u}=t,a=x.useRef(!0),o=x.useRef(!1),s=x.useRef(0);return x.useEffect(()=>{const l=s.current;return()=>window.clearTimeout(l)},[]),p.jsx(ox,{scope:e,isOpenDelayedRef:a,delayDuration:r,onOpen:x.useCallback(()=>{window.clearTimeout(s.current),a.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:o,onPointerInTransitChange:x.useCallback(l=>{o.current=l},[]),disableHoverableContent:i,children:u})};Rc.displayName=kc;var jr="Tooltip",[sx,gi]=hi(jr),Ic=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:i,onOpenChange:u,disableHoverableContent:a,delayDuration:o}=t,s=Ca(jr,t.__scopeTooltip),l=bi(e),[c,h]=x.useState(null),d=oc(),f=x.useRef(0),g=a??s.disableHoverableContent,m=o??s.delayDuration,b=x.useRef(!1),[y,v]=Sa({prop:n,defaultProp:i??!1,onChange:R=>{R?(s.onOpen(),document.dispatchEvent(new CustomEvent(mu))):s.onClose(),u==null||u(R)},caller:jr}),E=x.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),C=x.useCallback(()=>{window.clearTimeout(f.current),f.current=0,b.current=!1,v(!0)},[v]),N=x.useCallback(()=>{window.clearTimeout(f.current),f.current=0,v(!1)},[v]),k=x.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{b.current=!0,v(!0),f.current=0},m)},[m,v]);return x.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),p.jsx(V2,{...l,children:p.jsx(sx,{scope:e,contentId:d,open:y,stateAttribute:E,trigger:c,onTriggerChange:h,onTriggerEnter:x.useCallback(()=>{s.isOpenDelayedRef.current?k():C()},[s.isOpenDelayedRef,k,C]),onTriggerLeave:x.useCallback(()=>{g?N():(window.clearTimeout(f.current),f.current=0)},[N,g]),onOpen:C,onClose:N,disableHoverableContent:g,children:r})})};Ic.displayName=jr;var yu="TooltipTrigger",Dc=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,i=gi(yu,r),u=Ca(yu,r),a=bi(r),o=x.useRef(null),s=Be(e,o,i.onTriggerChange),l=x.useRef(!1),c=x.useRef(!1),h=x.useCallback(()=>l.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),p.jsx(W2,{asChild:!0,...a,children:p.jsx(Oe.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:s,onPointerMove:Se(t.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!u.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:Se(t.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:Se(t.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Se(t.onFocus,()=>{l.current||i.onOpen()}),onBlur:Se(t.onBlur,i.onClose),onClick:Se(t.onClick,i.onClose)})})});Dc.displayName=yu;var lx="TooltipPortal",[R4,cx]=hi(lx,{forceMount:void 0}),zt="TooltipContent",Lc=x.forwardRef((t,e)=>{const r=cx(zt,t.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...u}=t,a=gi(zt,t.__scopeTooltip);return p.jsx(pi,{present:n||a.open,children:a.disableHoverableContent?p.jsx(Mc,{side:i,...u,ref:e}):p.jsx(dx,{side:i,...u,ref:e})})}),dx=x.forwardRef((t,e)=>{const r=gi(zt,t.__scopeTooltip),n=Ca(zt,t.__scopeTooltip),i=x.useRef(null),u=Be(e,i),[a,o]=x.useState(null),{trigger:s,onClose:l}=r,c=i.current,{onPointerInTransitChange:h}=n,d=x.useCallback(()=>{o(null),h(!1)},[h]),f=x.useCallback((g,m)=>{const b=g.currentTarget,y={x:g.clientX,y:g.clientY},v=gx(y,b.getBoundingClientRect()),E=mx(y,v),C=yx(m.getBoundingClientRect()),N=xx([...E,...C]);o(N),h(!0)},[h]);return x.useEffect(()=>()=>d(),[d]),x.useEffect(()=>{if(s&&c){const g=b=>f(b,c),m=b=>f(b,s);return s.addEventListener("pointerleave",g),c.addEventListener("pointerleave",m),()=>{s.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",m)}}},[s,c,f,d]),x.useEffect(()=>{if(a){const g=m=>{const b=m.target,y={x:m.clientX,y:m.clientY},v=(s==null?void 0:s.contains(b))||(c==null?void 0:c.contains(b)),E=!vx(y,a);v?d():E&&(d(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[s,c,a,l,d]),p.jsx(Mc,{...t,ref:u})}),[fx,px]=hi(jr,{isInside:!1}),hx=Q2("TooltipContent"),Mc=x.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:u,onPointerDownOutside:a,...o}=t,s=gi(zt,r),l=bi(r),{onClose:c}=s;return x.useEffect(()=>(document.addEventListener(mu,c),()=>document.removeEventListener(mu,c)),[c]),x.useEffect(()=>{if(s.trigger){const h=d=>{const f=d.target;f!=null&&f.contains(s.trigger)&&c()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[s.trigger,c]),p.jsx(uc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:c,children:p.jsxs(G2,{"data-state":s.stateAttribute,...l,...o,ref:e,style:{...o.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(hx,{children:n}),p.jsx(fx,{scope:r,isInside:!0,children:p.jsx(ux,{id:s.contentId,role:"tooltip",children:i||n})})]})})});Lc.displayName=zt;var $c="TooltipArrow",bx=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,i=bi(r);return px($c,r).isInside?null:p.jsx(X2,{...i,...n,ref:e})});bx.displayName=$c;function gx(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),i=Math.abs(e.right-t.x),u=Math.abs(e.left-t.x);switch(Math.min(r,n,i,u)){case u:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function mx(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 yx(t){const{top:e,right:r,bottom:n,left:i}=t;return[{x:i,y:e},{x:r,y:e},{x:r,y:n},{x:i,y:n}]}function vx(t,e){const{x:r,y:n}=t;let i=!1;for(let u=0,a=e.length-1;u<e.length;a=u++){const o=e[u],s=e[a],l=o.x,c=o.y,h=s.x,d=s.y;c>n!=d>n&&r<(h-l)*(n-c)/(d-c)+l&&(i=!i)}return i}function xx(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),wx(e)}function wx(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n<t.length;n++){const i=t[n];for(;e.length>=2;){const u=e[e.length-1],a=e[e.length-2];if((u.x-a.x)*(i.y-a.y)>=(u.y-a.y)*(i.x-a.x))e.pop();else break}e.push(i)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const i=t[n];for(;r.length>=2;){const u=r[r.length-1],a=r[r.length-2];if((u.x-a.x)*(i.y-a.y)>=(u.y-a.y)*(i.x-a.x))r.pop();else break}r.push(i)}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 Sx=Rc,Cx=Ic,Ex=Dc,Bc=Lc;const _r=Sx,Ut=Cx,Vt=Ex,Ct=x.forwardRef(({className:t,sideOffset:e=4,...r},n)=>p.jsx(Bc,{ref:n,sideOffset:e,className:ye("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}));Ct.displayName=Bc.displayName;const $t={mobile:{icon:Xu,label:"Mobile"},tablet:{icon:Yu,label:"Tablet"},small:{icon:Gu,label:"Small Desktop"},desktop:{icon:Ju,label:"Desktop"}},q=({title:t,children:e,defaultOpen:r=!0})=>{const[n,i]=j.useState(r);return p.jsxs("div",{className:"border-b border-border pb-3",children:[p.jsxs("button",{onClick:()=>i(!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(Vu,{className:"h-3 w-3"}):p.jsx(Wu,{className:"h-3 w-3"})]}),n&&p.jsx("div",{className:"mt-2 space-y-3",children:e})]})},Q=({label:t,value:e,onChange:r,min:n=0,max:i=100,unit:u="px"})=>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-1",children:[p.jsx("input",{type:"number",value:e,onChange:a=>r(parseInt(a.target.value)||0),min:n,max:i,className:"w-14 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:u})]})]}),Ln=({label:t,values:e,onChange:r,min:n=0,max:i=100,unit:u="px",defaultValue:a=16})=>{const o=Ot(),[s,l]=j.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??a},h=()=>c[o]??c.desktop??a,d=(m,b)=>{const y={...c,[m]:b};r(y)},f=m=>{d(o,m)},g=Ce.some(m=>m!=="desktop"&&c[m]!==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(_r,{children:p.jsxs(Ut,{children:[p.jsx(Vt,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!s),className:`p-1 rounded transition-colors ${s||g?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:j.createElement($t[o].icon,{className:"h-3 w-3"})})}),p.jsx(Ct,{side:"left",children:p.jsx("p",{children:s?"Hide breakpoints":"Edit per breakpoint"})})]})})]}),s?p.jsx("div",{className:"space-y-1.5 pl-2 border-l-2 border-primary/20",children:Ce.map(m=>{const b=$t[m].icon,y=c[m],v=y===void 0?Ce.find(E=>Ce.indexOf(E)>Ce.indexOf(m)&&c[E]!==void 0)||"desktop":null;return p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(_r,{children:p.jsxs(Ut,{children:[p.jsx(Vt,{asChild:!0,children:p.jsx("div",{className:`p-1 rounded ${m===o?"bg-primary/10":""}`,children:p.jsx(b,{className:"h-3 w-3 text-muted-foreground"})})}),p.jsx(Ct,{side:"left",children:p.jsx("p",{children:$t[m].label})})]})}),p.jsx("input",{type:"number",value:y??"",placeholder:v?`${c[v]??a}`:"",onChange:E=>{const C=E.target.value===""?void 0:parseInt(E.target.value)||0;d(m,C)},min:n,max:i,className:`flex-1 px-2 py-1 text-xs rounded border border-input bg-background text-right ${y===void 0?"text-muted-foreground":""}`}),p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:u})]},m)})}):p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",value:h(),onChange:m=>f(parseInt(m.target.value)||0),min:n,max:i,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:u})]})]})},Ee=({label:t,values:e,onChange:r})=>{const[n,i]=j.useState(!0),u=(a,o)=>{r(n?{top:o,right:o,bottom:o,left:o}:{...e,[a]:o})};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:()=>i(!n),className:`text-xs px-2 py-0.5 rounded ${n?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:n?"Linked":"Individual"})]}),n?p.jsx("input",{type:"number",value:e.top,onChange:a=>u("top",parseInt(a.target.value)||0),min:0,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-center"}):p.jsx("div",{className:"grid grid-cols-4 gap-1",children:["top","right","bottom","left"].map(a=>p.jsxs("div",{className:"text-center",children:[p.jsx("input",{type:"number",value:e[a],onChange:o=>u(a,parseInt(o.target.value)||0),min:0,className:"w-full px-1 py-1 text-xs rounded border border-input bg-background text-center"}),p.jsx("span",{className:"text-[10px] text-muted-foreground",children:a[0].toUpperCase()})]},a))})]})},J=({label:t,value:e,options:r,onChange:n})=>p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("select",{value:e,onChange:i=>n(i.target.value),className:"px-2 py-1 text-xs rounded border border-input bg-background",children:r.map(i=>p.jsx("option",{value:i.value,children:i.label},i.value))})]}),De=({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"})]})]}),Ke=({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(i=>p.jsx("button",{onClick:()=>n(i.value),className:`flex-1 px-2 py-1.5 text-xs rounded border transition-colors ${e===i.value?"bg-primary text-primary-foreground border-primary":"border-input hover:bg-secondary"}`,title:i.label,children:i.icon||i.label},i.value))})]}),pt=({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:i=>r(i.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:i=>r(i.target.value),className:"w-full px-2 py-1.5 text-xs rounded border border-input bg-background"})]}),mi=({label:t,value:e,onChange:r,min:n=0,max:i=100,unit:u=""})=>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,u]})]}),p.jsx("input",{type:"range",value:e,onChange:a=>r(parseInt(a.target.value)),min:n,max:i,className:"w-full h-1.5 accent-primary"})]}),Mn=({label:t,values:e,onChange:r,min:n=0,max:i=100,unit:u="",defaultValue:a=50})=>{const o=Ot(),[s,l]=j.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??a},h=()=>c[o]??c.desktop??a,d=(g,m)=>{const b={...c,[g]:m};r(b)},f=Ce.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(),u]}),p.jsx(_r,{children:p.jsxs(Ut,{children:[p.jsx(Vt,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!s),className:`p-1 rounded transition-colors ${s||f?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:j.createElement($t[o].icon,{className:"h-3 w-3"})})}),p.jsx(Ct,{side:"left",children:p.jsx("p",{children:s?"Hide breakpoints":"Edit per breakpoint"})})]})})]})]}),s?p.jsx("div",{className:"space-y-2 pl-2 border-l-2 border-primary/20",children:Ce.map(g=>{const m=$t[g].icon,b=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===o?"bg-primary/10":""}`,children:p.jsx(m,{className:"h-3 w-3 text-muted-foreground"})}),p.jsx("span",{className:"text-xs text-muted-foreground flex-1",children:$t[g].label}),p.jsxs("span",{className:"text-xs",children:[b??"-",b!==void 0?u:""]})]}),p.jsx("input",{type:"range",value:b??c.desktop??a,onChange:y=>d(g,parseInt(y.target.value)),min:n,max:i,className:"w-full h-1.5 accent-primary"})]},g)})}):p.jsx("input",{type:"range",value:h(),onChange:g=>d(o,parseInt(g.target.value)),min:n,max:i,className:"w-full h-1.5 accent-primary"})]})},Ea=t=>{const e=typeof t.padding=="object"?`${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`:`${t.padding}px`,r=typeof t.margin=="object"?`${t.margin.top}px ${t.margin.right}px ${t.margin.bottom}px ${t.margin.left}px`:`${t.margin}px`;return{backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage?`url(${t.backgroundImage})`:"none",backgroundSize:t.backgroundSize,backgroundRepeat:t.backgroundRepeat,padding:e,margin:r,width:`${t.width}px`,height:`${t.height}px`,minHeight:`${t.minHeight}px`,maxHeight:`${t.maxHeight}px`,minWidth:`${t.minWidth}px`,maxWidth:`${t.maxWidth}px`,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}},Ta={backgroundColor:"transparent",backgroundImage:"",backgroundSize:"cover",backgroundRepeat:"no-repeat",padding:{top:16,right:16,bottom:16,left:16},margin:{top:0,right:0,bottom:0,left:0},width:"auto",height:0,minHeight:100,maxHeight:0,minWidth:0,maxWidth:"none",display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:0,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},Aa=t=>{const{actions:{setProp:e},props:r}=te(u=>({props:u.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},i=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(q,{title:"Layout",defaultOpen:!0,children:[p.jsx(J,{label:"Display",value:r.display||"block",options:[{value:"block",label:"Block"},{value:"flex",label:"Flex"}],onChange:u=>e(a=>a.display=u)}),r.display==="flex"&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{label:"Direction",value:r.flexDirection||"column",options:[{value:"row",label:"Row"},{value:"column",label:"Col"}],onChange:u=>e(a=>a.flexDirection=u)}),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:u=>e(a=>a.justifyContent=u)}),p.jsx(Q,{label:"Gap",value:r.gap||0,onChange:u=>e(a=>a.gap=u),max:64})]})]}),p.jsxs(q,{title:"Sizing",defaultOpen:!1,children:[p.jsx(Q,{label:"Width",value:r.width||0,onChange:u=>e(a=>a.width=u),max:1e4}),p.jsx(Q,{label:"Height",value:r.height||0,onChange:u=>e(a=>a.height=u),max:1e4}),p.jsx(Q,{label:"Min Height",value:r.minHeight||100,onChange:u=>e(a=>a.minHeight=u),max:1e4}),p.jsx(Q,{label:"Max Height",value:r.maxHeight||0,onChange:u=>e(a=>a.maxHeight=u),max:1e4}),p.jsx(Q,{label:"Min Width",value:r.minWidth||0,onChange:u=>e(a=>a.minWidth=u),max:1e4}),p.jsx(Q,{label:"Max Width",value:r.maxWidth||0,onChange:u=>e(a=>a.maxWidth=u),max:1e4})]}),p.jsxs(q,{title:"Spacing",defaultOpen:!0,children:[p.jsx(Ee,{label:"Padding",values:n,onChange:u=>e(a=>a.padding=u)}),p.jsx(Ee,{label:"Margin",values:i,onChange:u=>e(a=>a.margin=u)})]}),p.jsxs(q,{title:"Background",defaultOpen:!1,children:[p.jsx(De,{label:"Color",value:r.backgroundColor||"transparent",onChange:u=>e(a=>a.backgroundColor=u)}),p.jsx("input",{type:"text",placeholder:"Background image URL",value:r.backgroundImage||"",onChange:u=>e(a=>a.backgroundImage=u.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:u=>e(a=>a.backgroundSize=u)}),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:u=>e(a=>a.backgroundRepeat=u)})]}),p.jsxs(q,{title:"Border",defaultOpen:!1,children:[p.jsx(Q,{label:"Radius",value:r.borderRadius,onChange:u=>e(a=>a.borderRadius=u),max:5e3}),p.jsx(Q,{label:"Width",value:r.borderWidth||1,onChange:u=>e(a=>a.borderWidth=u),max:10}),p.jsx(De,{label:"Color",value:r.borderColor||"transparent",onChange:u=>e(a=>a.borderColor=u)})]})]})},Hr=t=>{const{connectors:{connect:e,drag:r},selected:n}=te(i=>({selected:i.events.selected}));return p.jsx("div",{ref:i=>{i&&e(r(i))},style:Ea(t),className:`min-h-[50px] w-full ${n?"outline outline-blue-500":""}`,children:t.children})};Hr.craft={isCanvas:!0,props:Ta,displayName:"Container",related:{settings:Aa},rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Wrapper")}};const Tx=/\{\{\s*([\w.]+)\s*\}\}/g,Ax=(t,e)=>{if(!t||!e)return;const r=e.split(".");let n=t;for(const i of r){if(n==null)return;n=n[i]}return n},$n=(t,e)=>{if(!t||typeof t!="string"||!e)return t;const r=/\{\{\s*([\w.]+)\s*\}\}/g;return t.replace(r,(n,i)=>{const u=Ax(e,i);return u==null?n:String(u)})},Nx=t=>!t||typeof t!="string"?!1:/\{\{\s*([\w.]+)\s*\}\}/.test(t),Ox=t=>{if(!t||typeof t!="string")return[];const e=[];let r;const n=new RegExp(Tx.source,"g");for(;(r=n.exec(t))!==null;)e.push(r[1]);return e},jx={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"}},_x={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"}]}},Px=({variable:t,onCopy:e})=>{const[r,n]=j.useState(!1),i=()=>{navigator.clipboard.writeText(`{{ ${t.key} }}`),n(!0),e==null||e(`{{ ${t.key} }}`),setTimeout(()=>n(!1),1500)};return p.jsxs("button",{onClick:i,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(Uu,{className:"h-3.5 w-3.5 text-green-500"}):p.jsx(tf,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})},kx=({category:t,data:e,defaultOpen:r=!1})=>{const[n,i]=j.useState(r);return p.jsxs("div",{className:"border-b border-border last:border-0",children:[p.jsxs("button",{onClick:()=>i(!n),className:"w-full flex items-center gap-2 py-2 text-left hover:bg-muted/50 transition-colors",children:[n?p.jsx(Vu,{className:"h-3.5 w-3.5 text-muted-foreground"}):p.jsx(Wu,{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(u=>p.jsx(Px,{variable:u},u.key))})]})},qc=({className:t})=>p.jsxs("div",{className:ye("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(_x).map(([e,r],n)=>p.jsx(kx,{category:e,data:r,defaultOpen:n===0},e))})]});var Hc={},Pr={},Na={},kr={},Oa={};Object.defineProperty(Oa,"__esModule",{value:!0});Oa.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 ja={};Object.defineProperty(ja,"__esModule",{value:!0});ja.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var vu={};(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(u){var a="";return u>65535&&(u-=65536,a+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),a+=String.fromCharCode(u),a};function n(u){var a;return u>=55296&&u<=57343||u>1114111?65533:(a=r.get(u))!==null&&a!==void 0?a:u}t.replaceCodePoint=n;function i(u){return(0,t.fromCodePoint)(n(u))}t.default=i})(vu);(function(t){var e=M&&M.__createBinding||(Object.create?function(S,T,_,I){I===void 0&&(I=_);var w=Object.getOwnPropertyDescriptor(T,_);(!w||("get"in w?!T.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return T[_]}}),Object.defineProperty(S,I,w)}:function(S,T,_,I){I===void 0&&(I=_),S[I]=T[_]}),r=M&&M.__setModuleDefault||(Object.create?function(S,T){Object.defineProperty(S,"default",{enumerable:!0,value:T})}:function(S,T){S.default=T}),n=M&&M.__importStar||function(S){if(S&&S.__esModule)return S;var T={};if(S!=null)for(var _ in S)_!=="default"&&Object.prototype.hasOwnProperty.call(S,_)&&e(T,S,_);return r(T,S),T},i=M&&M.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};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 u=i(Oa);t.htmlDecodeTree=u.default;var a=i(ja);t.xmlDecodeTree=a.default;var o=n(vu);t.decodeCodePoint=o.default;var s=vu;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return s.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return s.fromCodePoint}});var l;(function(S){S[S.NUM=35]="NUM",S[S.SEMI=59]="SEMI",S[S.EQUALS=61]="EQUALS",S[S.ZERO=48]="ZERO",S[S.NINE=57]="NINE",S[S.LOWER_A=97]="LOWER_A",S[S.LOWER_F=102]="LOWER_F",S[S.LOWER_X=120]="LOWER_X",S[S.LOWER_Z=122]="LOWER_Z",S[S.UPPER_A=65]="UPPER_A",S[S.UPPER_F=70]="UPPER_F",S[S.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var c=32,h;(function(S){S[S.VALUE_LENGTH=49152]="VALUE_LENGTH",S[S.BRANCH_LENGTH=16256]="BRANCH_LENGTH",S[S.JUMP_TABLE=127]="JUMP_TABLE"})(h=t.BinTrieFlags||(t.BinTrieFlags={}));function d(S){return S>=l.ZERO&&S<=l.NINE}function f(S){return S>=l.UPPER_A&&S<=l.UPPER_F||S>=l.LOWER_A&&S<=l.LOWER_F}function g(S){return S>=l.UPPER_A&&S<=l.UPPER_Z||S>=l.LOWER_A&&S<=l.LOWER_Z||d(S)}function m(S){return S===l.EQUALS||g(S)}var b;(function(S){S[S.EntityStart=0]="EntityStart",S[S.NumericStart=1]="NumericStart",S[S.NumericDecimal=2]="NumericDecimal",S[S.NumericHex=3]="NumericHex",S[S.NamedEntity=4]="NamedEntity"})(b||(b={}));var y;(function(S){S[S.Legacy=0]="Legacy",S[S.Strict=1]="Strict",S[S.Attribute=2]="Attribute"})(y=t.DecodingMode||(t.DecodingMode={}));var v=function(){function S(T,_,I){this.decodeTree=T,this.emitCodePoint=_,this.errors=I,this.state=b.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=y.Strict}return S.prototype.startEntity=function(T){this.decodeMode=T,this.state=b.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},S.prototype.write=function(T,_){switch(this.state){case b.EntityStart:return T.charCodeAt(_)===l.NUM?(this.state=b.NumericStart,this.consumed+=1,this.stateNumericStart(T,_+1)):(this.state=b.NamedEntity,this.stateNamedEntity(T,_));case b.NumericStart:return this.stateNumericStart(T,_);case b.NumericDecimal:return this.stateNumericDecimal(T,_);case b.NumericHex:return this.stateNumericHex(T,_);case b.NamedEntity:return this.stateNamedEntity(T,_)}},S.prototype.stateNumericStart=function(T,_){return _>=T.length?-1:(T.charCodeAt(_)|c)===l.LOWER_X?(this.state=b.NumericHex,this.consumed+=1,this.stateNumericHex(T,_+1)):(this.state=b.NumericDecimal,this.stateNumericDecimal(T,_))},S.prototype.addToNumericResult=function(T,_,I,w){if(_!==I){var O=I-_;this.result=this.result*Math.pow(w,O)+parseInt(T.substr(_,O),w),this.consumed+=O}},S.prototype.stateNumericHex=function(T,_){for(var I=_;_<T.length;){var w=T.charCodeAt(_);if(d(w)||f(w))_+=1;else return this.addToNumericResult(T,I,_,16),this.emitNumericEntity(w,3)}return this.addToNumericResult(T,I,_,16),-1},S.prototype.stateNumericDecimal=function(T,_){for(var I=_;_<T.length;){var w=T.charCodeAt(_);if(d(w))_+=1;else return this.addToNumericResult(T,I,_,10),this.emitNumericEntity(w,2)}return this.addToNumericResult(T,I,_,10),-1},S.prototype.emitNumericEntity=function(T,_){var I;if(this.consumed<=_)return(I=this.errors)===null||I===void 0||I.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(T===l.SEMI)this.consumed+=1;else if(this.decodeMode===y.Strict)return 0;return this.emitCodePoint((0,o.replaceCodePoint)(this.result),this.consumed),this.errors&&(T!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},S.prototype.stateNamedEntity=function(T,_){for(var I=this.decodeTree,w=I[this.treeIndex],O=(w&h.VALUE_LENGTH)>>14;_<T.length;_++,this.excess++){var A=T.charCodeAt(_);if(this.treeIndex=C(I,w,this.treeIndex+Math.max(1,O),A),this.treeIndex<0)return this.result===0||this.decodeMode===y.Attribute&&(O===0||m(A))?0:this.emitNotTerminatedNamedEntity();if(w=I[this.treeIndex],O=(w&h.VALUE_LENGTH)>>14,O!==0){if(A===l.SEMI)return this.emitNamedEntityData(this.treeIndex,O,this.consumed+this.excess);this.decodeMode!==y.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},S.prototype.emitNotTerminatedNamedEntity=function(){var T,_=this,I=_.result,w=_.decodeTree,O=(w[I]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(I,O,this.consumed),(T=this.errors)===null||T===void 0||T.missingSemicolonAfterCharacterReference(),this.consumed},S.prototype.emitNamedEntityData=function(T,_,I){var w=this.decodeTree;return this.emitCodePoint(_===1?w[T]&~h.VALUE_LENGTH:w[T+1],I),_===3&&this.emitCodePoint(w[T+2],I),I},S.prototype.end=function(){var T;switch(this.state){case b.NamedEntity:return this.result!==0&&(this.decodeMode!==y.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case b.NumericDecimal:return this.emitNumericEntity(0,2);case b.NumericHex:return this.emitNumericEntity(0,3);case b.NumericStart:return(T=this.errors)===null||T===void 0||T.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case b.EntityStart:return 0}},S}();t.EntityDecoder=v;function E(S){var T="",_=new v(S,function(I){return T+=(0,o.fromCodePoint)(I)});return function(w,O){for(var A=0,P=0;(P=w.indexOf("&",P))>=0;){T+=w.slice(A,P),_.startEntity(O);var B=_.write(w,P+1);if(B<0){A=P+_.end();break}A=P+B,P=B===0?A+1:A}var U=T+w.slice(A);return T="",U}}function C(S,T,_,I){var w=(T&h.BRANCH_LENGTH)>>7,O=T&h.JUMP_TABLE;if(w===0)return O!==0&&I===O?_:-1;if(O){var A=I-O;return A<0||A>=w?-1:S[_+A]-1}for(var P=_,B=P+w-1;P<=B;){var U=P+B>>>1,ce=S[U];if(ce<I)P=U+1;else if(ce>I)B=U-1;else return S[U+w]}return-1}t.determineBranch=C;var N=E(u.default),k=E(a.default);function R(S,T){return T===void 0&&(T=y.Legacy),N(S,T)}t.decodeHTML=R;function D(S){return N(S,y.Attribute)}t.decodeHTMLAttribute=D;function $(S){return N(S,y.Strict)}t.decodeHTMLStrict=$;function L(S){return k(S,y.Strict)}t.decodeXML=L})(kr);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=kr,r;(function(d){d[d.Tab=9]="Tab",d[d.NewLine=10]="NewLine",d[d.FormFeed=12]="FormFeed",d[d.CarriageReturn=13]="CarriageReturn",d[d.Space=32]="Space",d[d.ExclamationMark=33]="ExclamationMark",d[d.Number=35]="Number",d[d.Amp=38]="Amp",d[d.SingleQuote=39]="SingleQuote",d[d.DoubleQuote=34]="DoubleQuote",d[d.Dash=45]="Dash",d[d.Slash=47]="Slash",d[d.Zero=48]="Zero",d[d.Nine=57]="Nine",d[d.Semi=59]="Semi",d[d.Lt=60]="Lt",d[d.Eq=61]="Eq",d[d.Gt=62]="Gt",d[d.Questionmark=63]="Questionmark",d[d.UpperA=65]="UpperA",d[d.LowerA=97]="LowerA",d[d.UpperF=70]="UpperF",d[d.LowerF=102]="LowerF",d[d.UpperZ=90]="UpperZ",d[d.LowerZ=122]="LowerZ",d[d.LowerX=120]="LowerX",d[d.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(d){d[d.Text=1]="Text",d[d.BeforeTagName=2]="BeforeTagName",d[d.InTagName=3]="InTagName",d[d.InSelfClosingTag=4]="InSelfClosingTag",d[d.BeforeClosingTagName=5]="BeforeClosingTagName",d[d.InClosingTagName=6]="InClosingTagName",d[d.AfterClosingTagName=7]="AfterClosingTagName",d[d.BeforeAttributeName=8]="BeforeAttributeName",d[d.InAttributeName=9]="InAttributeName",d[d.AfterAttributeName=10]="AfterAttributeName",d[d.BeforeAttributeValue=11]="BeforeAttributeValue",d[d.InAttributeValueDq=12]="InAttributeValueDq",d[d.InAttributeValueSq=13]="InAttributeValueSq",d[d.InAttributeValueNq=14]="InAttributeValueNq",d[d.BeforeDeclaration=15]="BeforeDeclaration",d[d.InDeclaration=16]="InDeclaration",d[d.InProcessingInstruction=17]="InProcessingInstruction",d[d.BeforeComment=18]="BeforeComment",d[d.CDATASequence=19]="CDATASequence",d[d.InSpecialComment=20]="InSpecialComment",d[d.InCommentLike=21]="InCommentLike",d[d.BeforeSpecialS=22]="BeforeSpecialS",d[d.SpecialStartSequence=23]="SpecialStartSequence",d[d.InSpecialTag=24]="InSpecialTag",d[d.BeforeEntity=25]="BeforeEntity",d[d.BeforeNumericEntity=26]="BeforeNumericEntity",d[d.InNamedEntity=27]="InNamedEntity",d[d.InNumericEntity=28]="InNumericEntity",d[d.InHexEntity=29]="InHexEntity"})(n||(n={}));function i(d){return d===r.Space||d===r.NewLine||d===r.Tab||d===r.FormFeed||d===r.CarriageReturn}function u(d){return d===r.Slash||d===r.Gt||i(d)}function a(d){return d>=r.Zero&&d<=r.Nine}function o(d){return d>=r.LowerA&&d<=r.LowerZ||d>=r.UpperA&&d<=r.UpperZ}function s(d){return d>=r.UpperA&&d<=r.UpperF||d>=r.LowerA&&d<=r.LowerF}var l;(function(d){d[d.NoValue=0]="NoValue",d[d.Unquoted=1]="Unquoted",d[d.Single=2]="Single",d[d.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 d(f,g){var m=f.xmlMode,b=m===void 0?!1:m,y=f.decodeEntities,v=y===void 0?!0:y;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=b,this.decodeEntities=v,this.entityTrie=b?e.xmlDecodeTree:e.htmlDecodeTree}return d.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},d.prototype.write=function(f){this.offset+=this.buffer.length,this.buffer=f,this.parse()},d.prototype.end=function(){this.running&&this.finish()},d.prototype.pause=function(){this.running=!1},d.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},d.prototype.getIndex=function(){return this.index},d.prototype.getSectionStart=function(){return this.sectionStart},d.prototype.stateText=function(f){f===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&&f===r.Amp&&(this.state=n.BeforeEntity)},d.prototype.stateSpecialStartSequence=function(f){var g=this.sequenceIndex===this.currentSequence.length,m=g?u(f):(f|32)===this.currentSequence[this.sequenceIndex];if(!m)this.isSpecial=!1;else if(!g){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(f)},d.prototype.stateInSpecialTag=function(f){if(this.sequenceIndex===this.currentSequence.length){if(f===r.Gt||i(f)){var g=this.index-this.currentSequence.length;if(this.sectionStart<g){var m=this.index;this.index=g,this.cbs.ontext(this.sectionStart,g),this.index=m}this.isSpecial=!1,this.sectionStart=g+2,this.stateInClosingTagName(f);return}this.sequenceIndex=0}(f|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===c.TitleEnd?this.decodeEntities&&f===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(f===r.Lt)},d.prototype.stateCDATASequence=function(f){f===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(f))},d.prototype.fastForwardTo=function(f){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===f)return!0;return this.index=this.buffer.length+this.offset-1,!1},d.prototype.stateInCommentLike=function(f){f===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):f!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},d.prototype.isTagStartChar=function(f){return this.xmlMode?!u(f):o(f)},d.prototype.startSpecial=function(f,g){this.isSpecial=!0,this.currentSequence=f,this.sequenceIndex=g,this.state=n.SpecialStartSequence},d.prototype.stateBeforeTagName=function(f){if(f===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(f===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(f)){var g=f|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 f===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(f))},d.prototype.stateInTagName=function(f){u(f)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(f))},d.prototype.stateBeforeClosingTagName=function(f){i(f)||(f===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(f)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},d.prototype.stateInClosingTagName=function(f){(f===r.Gt||i(f))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(f))},d.prototype.stateAfterClosingTagName=function(f){(f===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},d.prototype.stateBeforeAttributeName=function(f){f===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):f===r.Slash?this.state=n.InSelfClosingTag:i(f)||(this.state=n.InAttributeName,this.sectionStart=this.index)},d.prototype.stateInSelfClosingTag=function(f){f===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):i(f)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(f))},d.prototype.stateInAttributeName=function(f){(f===r.Eq||u(f))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(f))},d.prototype.stateAfterAttributeName=function(f){f===r.Eq?this.state=n.BeforeAttributeValue:f===r.Slash||f===r.Gt?(this.cbs.onattribend(l.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(f)):i(f)||(this.cbs.onattribend(l.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},d.prototype.stateBeforeAttributeValue=function(f){f===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):f===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):i(f)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(f))},d.prototype.handleInAttributeValue=function(f,g){f===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&&f===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},d.prototype.stateInAttributeValueDoubleQuotes=function(f){this.handleInAttributeValue(f,r.DoubleQuote)},d.prototype.stateInAttributeValueSingleQuotes=function(f){this.handleInAttributeValue(f,r.SingleQuote)},d.prototype.stateInAttributeValueNoQuotes=function(f){i(f)||f===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(f)):this.decodeEntities&&f===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},d.prototype.stateBeforeDeclaration=function(f){f===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=f===r.Dash?n.BeforeComment:n.InDeclaration},d.prototype.stateInDeclaration=function(f){(f===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},d.prototype.stateInProcessingInstruction=function(f){(f===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},d.prototype.stateBeforeComment=function(f){f===r.Dash?(this.state=n.InCommentLike,this.currentSequence=c.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},d.prototype.stateInSpecialComment=function(f){(f===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},d.prototype.stateBeforeSpecialS=function(f){var g=f|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(f))},d.prototype.stateBeforeEntity=function(f){this.entityExcess=1,this.entityResult=0,f===r.Number?this.state=n.BeforeNumericEntity:f===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(f))},d.prototype.stateInNamedEntity=function(f){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,f),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 m=(g>>14)-1;if(!this.allowLegacyEntity()&&f!==r.Semi)this.trieIndex+=m;else{var b=this.index-this.entityExcess+1;b>this.sectionStart&&this.emitPartial(this.sectionStart,b),this.entityResult=this.trieIndex,this.trieIndex+=m,this.entityExcess=0,this.sectionStart=this.index+1,m===0&&this.emitNamedEntity()}}},d.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var f=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(f){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])}}},d.prototype.stateBeforeNumericEntity=function(f){(f|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(f))},d.prototype.emitNumericEntity=function(f){var g=this.index-this.entityExcess-1,m=g+2+ +(this.state===n.InHexEntity);m!==this.index&&(g>this.sectionStart&&this.emitPartial(this.sectionStart,g),this.sectionStart=this.index+Number(f),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},d.prototype.stateInNumericEntity=function(f){f===r.Semi?this.emitNumericEntity(!0):a(f)?(this.entityResult=this.entityResult*10+(f-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},d.prototype.stateInHexEntity=function(f){f===r.Semi?this.emitNumericEntity(!0):a(f)?(this.entityResult=this.entityResult*16+(f-r.Zero),this.entityExcess++):s(f)?(this.entityResult=this.entityResult*16+((f|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},d.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},d.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))},d.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},d.prototype.parse=function(){for(;this.shouldContinue();){var f=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(f);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(f);break}case n.InSpecialTag:{this.stateInSpecialTag(f);break}case n.CDATASequence:{this.stateCDATASequence(f);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(f);break}case n.InAttributeName:{this.stateInAttributeName(f);break}case n.InCommentLike:{this.stateInCommentLike(f);break}case n.InSpecialComment:{this.stateInSpecialComment(f);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(f);break}case n.InTagName:{this.stateInTagName(f);break}case n.InClosingTagName:{this.stateInClosingTagName(f);break}case n.BeforeTagName:{this.stateBeforeTagName(f);break}case n.AfterAttributeName:{this.stateAfterAttributeName(f);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(f);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(f);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(f);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(f);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(f);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(f);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(f);break}case n.InDeclaration:{this.stateInDeclaration(f);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(f);break}case n.BeforeComment:{this.stateBeforeComment(f);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(f);break}case n.InNamedEntity:{this.stateInNamedEntity(f);break}case n.BeforeEntity:{this.stateBeforeEntity(f);break}case n.InHexEntity:{this.stateInHexEntity(f);break}case n.InNumericEntity:{this.stateInNumericEntity(f);break}default:this.stateBeforeNumericEntity(f)}this.index++}this.cleanup()},d.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},d.prototype.handleTrailingData=function(){var f=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,f,0):this.cbs.oncomment(this.sectionStart,f,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,f)},d.prototype.emitPartial=function(f,g){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(f,g):this.cbs.ontext(f,g)},d.prototype.emitCodePoint=function(f){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(f):this.cbs.ontextentity(f)},d}();t.default=h})(Na);var Rx=M&&M.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ix=M&&M.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Dx=M&&M.__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)&&Rx(e,t,r);return Ix(e,t),e};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.Parser=void 0;var nn=Dx(Na),Ss=kr,kt=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Z=new Set(["p"]),Cs=new Set(["thead","tbody"]),Es=new Set(["dd","dt"]),Ts=new Set(["rt","rp"]),Lx=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",Z],["h1",Z],["h2",Z],["h3",Z],["h4",Z],["h5",Z],["h6",Z],["select",kt],["input",kt],["output",kt],["button",kt],["datalist",kt],["textarea",kt],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Es],["dt",Es],["address",Z],["article",Z],["aside",Z],["blockquote",Z],["details",Z],["div",Z],["dl",Z],["fieldset",Z],["figcaption",Z],["figure",Z],["footer",Z],["form",Z],["header",Z],["hr",Z],["main",Z],["nav",Z],["ol",Z],["pre",Z],["section",Z],["table",Z],["ul",Z],["rt",Ts],["rp",Ts],["tbody",Cs],["tfoot",Cs]]),Mx=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),As=new Set(["math","svg"]),Ns=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),$x=/\s|\//,Bx=function(){function t(e,r){r===void 0&&(r={});var n,i,u,a,o;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=(i=r.lowerCaseAttributeNames)!==null&&i!==void 0?i:!r.xmlMode,this.tokenizer=new((u=r.Tokenizer)!==null&&u!==void 0?u:nn.default)(this.options,this),(o=(a=this.cbs).onparserinit)===null||o===void 0||o.call(a,this)}return t.prototype.ontext=function(e,r){var n,i,u=this.getSlice(e,r);this.endIndex=r-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,u),this.startIndex=r},t.prototype.ontextentity=function(e){var r,n,i=this.tokenizer.getSectionStart();this.endIndex=i-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,Ss.fromCodePoint)(e)),this.startIndex=i},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&Mx.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,i,u;this.openTagStart=this.startIndex,this.tagname=e;var a=!this.options.xmlMode&&Lx.get(e);if(a)for(;this.stack.length>0&&a.has(this.stack[this.stack.length-1]);){var o=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,o,!0)}this.isVoidElement(e)||(this.stack.push(e),As.has(e)?this.foreignContext.push(!0):Ns.has(e)&&this.foreignContext.push(!1)),(u=(i=this.cbs).onopentagname)===null||u===void 0||u.call(i,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,i,u,a,o,s;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(As.has(l)||Ns.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((i=(n=this.cbs).onopentagname)===null||i===void 0||i.call(n,"br"),(a=(u=this.cbs).onopentag)===null||a===void 0||a.call(u,"br",{},!0),(s=(o=this.cbs).onclosetag)===null||s===void 0||s.call(o,"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,i=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===i&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,i,!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,Ss.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,i;this.endIndex=r,(i=(n=this.cbs).onattribute)===null||i===void 0||i.call(n,this.attribname,this.attribvalue,e===nn.QuoteType.Double?'"':e===nn.QuoteType.Single?"'":e===nn.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($x),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 i=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(i),"!".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 i=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(i),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var i,u,a,o;this.endIndex=r,(u=(i=this.cbs).oncomment)===null||u===void 0||u.call(i,this.getSlice(e,r-n)),(o=(a=this.cbs).oncommentend)===null||o===void 0||o.call(a),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var i,u,a,o,s,l,c,h,d,f;this.endIndex=r;var g=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((u=(i=this.cbs).oncdatastart)===null||u===void 0||u.call(i),(o=(a=this.cbs).ontext)===null||o===void 0||o.call(a,g),(l=(s=this.cbs).oncdataend)===null||l===void 0||l.call(s)):((h=(c=this.cbs).oncomment)===null||h===void 0||h.call(c,"[CDATA[".concat(g,"]]")),(f=(d=this.cbs).oncommentend)===null||f===void 0||f.call(d)),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,i;(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,(i=(n=this.cbs).onparserinit)===null||i===void 0||i.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}();Pr.Parser=Bx;var et={},sr={};(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})(sr);var z={},ht=M&&M.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},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)}}(),xr=M&&M.__assign||function(){return xr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},xr.apply(this,arguments)};Object.defineProperty(z,"__esModule",{value:!0});z.cloneNode=z.hasChildren=z.isDocument=z.isDirective=z.isComment=z.isText=z.isCDATA=z.isTag=z.Element=z.Document=z.CDATA=z.NodeWithChildren=z.ProcessingInstruction=z.Comment=z.Text=z.DataNode=z.Node=void 0;var be=sr,_a=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),Pa(this,e)},t}();z.Node=_a;var yi=function(t){ht(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}(_a);z.DataNode=yi;var Fc=function(t){ht(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=be.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(yi);z.Text=Fc;var zc=function(t){ht(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=be.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(yi);z.Comment=zc;var Uc=function(t){ht(e,t);function e(r,n){var i=t.call(this,n)||this;return i.name=r,i.type=be.ElementType.Directive,i}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(yi);z.ProcessingInstruction=Uc;var vi=function(t){ht(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}(_a);z.NodeWithChildren=vi;var Vc=function(t){ht(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=be.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(vi);z.CDATA=Vc;var Wc=function(t){ht(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=be.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(vi);z.Document=Wc;var Gc=function(t){ht(e,t);function e(r,n,i,u){i===void 0&&(i=[]),u===void 0&&(u=r==="script"?be.ElementType.Script:r==="style"?be.ElementType.Style:be.ElementType.Tag);var a=t.call(this,i)||this;return a.name=r,a.attribs=n,a.type=u,a}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 i,u;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(u=r["x-attribsPrefix"])===null||u===void 0?void 0:u[n]}})},enumerable:!1,configurable:!0}),e}(vi);z.Element=Gc;function Xc(t){return(0,be.isTag)(t)}z.isTag=Xc;function Yc(t){return t.type===be.ElementType.CDATA}z.isCDATA=Yc;function Jc(t){return t.type===be.ElementType.Text}z.isText=Jc;function Kc(t){return t.type===be.ElementType.Comment}z.isComment=Kc;function Zc(t){return t.type===be.ElementType.Directive}z.isDirective=Zc;function Qc(t){return t.type===be.ElementType.Root}z.isDocument=Qc;function qx(t){return Object.prototype.hasOwnProperty.call(t,"children")}z.hasChildren=qx;function Pa(t,e){e===void 0&&(e=!1);var r;if(Jc(t))r=new Fc(t.data);else if(Kc(t))r=new zc(t.data);else if(Xc(t)){var n=e?qi(t.children):[],i=new Gc(t.name,xr({},t.attribs),n);n.forEach(function(s){return s.parent=i}),t.namespace!=null&&(i.namespace=t.namespace),t["x-attribsNamespace"]&&(i["x-attribsNamespace"]=xr({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(i["x-attribsPrefix"]=xr({},t["x-attribsPrefix"])),r=i}else if(Yc(t)){var n=e?qi(t.children):[],u=new Vc(n);n.forEach(function(l){return l.parent=u}),r=u}else if(Qc(t)){var n=e?qi(t.children):[],a=new Wc(n);n.forEach(function(l){return l.parent=a}),t["x-mode"]&&(a["x-mode"]=t["x-mode"]),r=a}else if(Zc(t)){var o=new Uc(t.name,t.data);t["x-name"]!=null&&(o["x-name"]=t["x-name"],o["x-publicId"]=t["x-publicId"],o["x-systemId"]=t["x-systemId"]),r=o}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}z.cloneNode=Pa;function qi(t){for(var e=t.map(function(n){return Pa(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=M&&M.__createBinding||(Object.create?function(o,s,l,c){c===void 0&&(c=l);var h=Object.getOwnPropertyDescriptor(s,l);(!h||("get"in h?!s.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(o,c,h)}:function(o,s,l,c){c===void 0&&(c=l),o[c]=s[l]}),r=M&&M.__exportStar||function(o,s){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&e(s,o,l)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=sr,i=z;r(z,t);var u={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function o(s,l,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(c=l,l=u),typeof s=="object"&&(l=s,s=void 0),this.callback=s??null,this.options=l??u,this.elementCB=c??null}return o.prototype.onparserinit=function(s){this.parser=s},o.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},o.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},o.prototype.onerror=function(s){this.handleCallback(s)},o.prototype.onclosetag=function(){this.lastNode=null;var s=this.tagStack.pop();this.options.withEndIndices&&(s.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(s)},o.prototype.onopentag=function(s,l){var c=this.options.xmlMode?n.ElementType.Tag:void 0,h=new i.Element(s,l,void 0,c);this.addNode(h),this.tagStack.push(h)},o.prototype.ontext=function(s){var l=this.lastNode;if(l&&l.type===n.ElementType.Text)l.data+=s,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var c=new i.Text(s);this.addNode(c),this.lastNode=c}},o.prototype.oncomment=function(s){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=s;return}var l=new i.Comment(s);this.addNode(l),this.lastNode=l},o.prototype.oncommentend=function(){this.lastNode=null},o.prototype.oncdatastart=function(){var s=new i.Text(""),l=new i.CDATA([s]);this.addNode(l),s.parent=l,this.lastNode=s},o.prototype.oncdataend=function(){this.lastNode=null},o.prototype.onprocessinginstruction=function(s,l){var c=new i.ProcessingInstruction(s,l);this.addNode(c)},o.prototype.handleCallback=function(s){if(typeof this.callback=="function")this.callback(s,this.dom);else if(s)throw s},o.prototype.addNode=function(s){var l=this.tagStack[this.tagStack.length-1],c=l.children[l.children.length-1];this.options.withStartIndices&&(s.startIndex=this.parser.startIndex),this.options.withEndIndices&&(s.endIndex=this.parser.endIndex),l.children.push(s),c&&(s.prev=c,c.next=s),s.parent=l,this.lastNode=null},o}();t.DomHandler=a,t.default=a})(et);var gn={},bt={},Fr={},ed={},Et={},ka={};Object.defineProperty(ka,"__esModule",{value:!0});function un(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}ka.default=new Map(un([[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(un([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(un([[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(un([[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 Bn={};(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(i,u){return i.codePointAt(u)}:function(i,u){return(i.charCodeAt(u)&64512)===55296?(i.charCodeAt(u)-55296)*1024+i.charCodeAt(u+1)-56320+65536:i.charCodeAt(u)};function r(i){for(var u="",a=0,o;(o=t.xmlReplacer.exec(i))!==null;){var s=o.index,l=i.charCodeAt(s),c=e.get(l);c!==void 0?(u+=i.substring(a,s)+c,a=s+1):(u+="".concat(i.substring(a,s),"&#x").concat((0,t.getCodePoint)(i,s).toString(16),";"),a=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return u+i.substr(a)}t.encodeXML=r,t.escape=r;function n(i,u){return function(o){for(var s,l=0,c="";s=i.exec(o);)l!==s.index&&(c+=o.substring(l,s.index)),c+=u.get(s[0].charCodeAt(0)),l=s.index+1;return c+o.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;"]]))})(Bn);var Hx=M&&M.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Et,"__esModule",{value:!0});Et.encodeNonAsciiHTML=Et.encodeHTML=void 0;var Fx=Hx(ka),td=Bn,zx=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function Ux(t){return rd(zx,t)}Et.encodeHTML=Ux;function Vx(t){return rd(td.xmlReplacer,t)}Et.encodeNonAsciiHTML=Vx;function rd(t,e){for(var r="",n=0,i;(i=t.exec(e))!==null;){var u=i.index;r+=e.substring(n,u);var a=e.charCodeAt(u),o=Fx.default.get(a);if(typeof o=="object"){if(u+1<e.length){var s=e.charCodeAt(u+1),l=typeof o.n=="number"?o.n===s?o.o:void 0:o.n.get(s);if(l!==void 0){r+=l,n=t.lastIndex+=1;continue}}o=o.v}if(o!==void 0)r+=o,n=u+1;else{var c=(0,td.getCodePoint)(e,u);r+="&#x".concat(c.toString(16),";"),n=t.lastIndex+=+(c!==a)}}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=kr,r=Et,n=Bn,i;(function(d){d[d.XML=0]="XML",d[d.HTML=1]="HTML"})(i=t.EntityLevel||(t.EntityLevel={}));var u;(function(d){d[d.UTF8=0]="UTF8",d[d.ASCII=1]="ASCII",d[d.Extensive=2]="Extensive",d[d.Attribute=3]="Attribute",d[d.Text=4]="Text"})(u=t.EncodingMode||(t.EncodingMode={}));function a(d,f){f===void 0&&(f=i.XML);var g=typeof f=="number"?f:f.level;if(g===i.HTML){var m=typeof f=="object"?f.mode:void 0;return(0,e.decodeHTML)(d,m)}return(0,e.decodeXML)(d)}t.decode=a;function o(d,f){var g;f===void 0&&(f=i.XML);var m=typeof f=="number"?{level:f}:f;return(g=m.mode)!==null&&g!==void 0||(m.mode=e.DecodingMode.Strict),a(d,m)}t.decodeStrict=o;function s(d,f){f===void 0&&(f=i.XML);var g=typeof f=="number"?{level:f}:f;return g.mode===u.UTF8?(0,n.escapeUTF8)(d):g.mode===u.Attribute?(0,n.escapeAttribute)(d):g.mode===u.Text?(0,n.escapeText)(d):g.level===i.HTML?g.mode===u.ASCII?(0,r.encodeNonAsciiHTML)(d):(0,r.encodeHTML)(d):(0,n.encodeXML)(d)}t.encode=s;var l=Bn;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=Et;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=kr;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}})})(ed);var Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.attributeNames=Wt.elementNames=void 0;Wt.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]}));Wt.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 It=M&&M.__assign||function(){return It=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},It.apply(this,arguments)},Wx=M&&M.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Gx=M&&M.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Xx=M&&M.__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)&&Wx(e,t,r);return Gx(e,t),e};Object.defineProperty(Fr,"__esModule",{value:!0});Fr.render=void 0;var Ue=Xx(sr),qn=ed,nd=Wt,Yx=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Jx(t){return t.replace(/"/g,"&quot;")}function Kx(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?Jx:e.xmlMode||e.encodeEntities!=="utf8"?qn.encodeXML:qn.escapeAttribute;return Object.keys(t).map(function(i){var u,a,o=(u=t[i])!==null&&u!==void 0?u:"";return e.xmlMode==="foreign"&&(i=(a=nd.attributeNames.get(i))!==null&&a!==void 0?a:i),!e.emptyAttrs&&!e.xmlMode&&o===""?i:"".concat(i,'="').concat(n(o),'"')}).join(" ")}}var Os=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function xi(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",i=0;i<r.length;i++)n+=Zx(r[i],e);return n}Fr.render=xi;Fr.default=xi;function Zx(t,e){switch(t.type){case Ue.Root:return xi(t.children,e);case Ue.Doctype:case Ue.Directive:return r3(t);case Ue.Comment:return u3(t);case Ue.CDATA:return i3(t);case Ue.Script:case Ue.Style:case Ue.Tag:return t3(t,e);case Ue.Text:return n3(t,e)}}var Qx=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),e3=new Set(["svg","math"]);function t3(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=nd.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&Qx.has(t.parent.name)&&(e=It(It({},e),{xmlMode:!1}))),!e.xmlMode&&e3.has(t.name)&&(e=It(It({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),i=Kx(t.attribs,e);return i&&(n+=" ".concat(i)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&Os.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=xi(t.children,e)),(e.xmlMode||!Os.has(t.name))&&(n+="</".concat(t.name,">"))),n}function r3(t){return"<".concat(t.data,">")}function n3(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&Yx.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,qn.encodeXML)(n):(0,qn.escapeText)(n)),n}function i3(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function u3(t){return"<!--".concat(t.data,"-->")}var a3=M&&M.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bt,"__esModule",{value:!0});bt.getOuterHTML=id;bt.getInnerHTML=l3;bt.getText=mn;bt.textContent=xu;bt.innerText=wu;var Le=et,o3=a3(Fr),s3=sr;function id(t,e){return(0,o3.default)(t,e)}function l3(t,e){return(0,Le.hasChildren)(t)?t.children.map(function(r){return id(r,e)}).join(""):""}function mn(t){return Array.isArray(t)?t.map(mn).join(""):(0,Le.isTag)(t)?t.name==="br"?`
146
- `:mn(t.children):(0,Le.isCDATA)(t)?mn(t.children):(0,Le.isText)(t)?t.data:""}function xu(t){return Array.isArray(t)?t.map(xu).join(""):(0,Le.hasChildren)(t)&&!(0,Le.isComment)(t)?xu(t.children):(0,Le.isText)(t)?t.data:""}function wu(t){return Array.isArray(t)?t.map(wu).join(""):(0,Le.hasChildren)(t)&&(t.type===s3.ElementType.Tag||(0,Le.isCDATA)(t))?wu(t.children):(0,Le.isText)(t)?t.data:""}var Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.getChildren=ud;Fe.getParent=ad;Fe.getSiblings=c3;Fe.getAttributeValue=d3;Fe.hasAttrib=f3;Fe.getName=p3;Fe.nextElementSibling=h3;Fe.prevElementSibling=b3;var Ra=et;function ud(t){return(0,Ra.hasChildren)(t)?t.children:[]}function ad(t){return t.parent||null}function c3(t){var e,r,n=ad(t);if(n!=null)return ud(n);for(var i=[t],u=t.prev,a=t.next;u!=null;)i.unshift(u),e=u,u=e.prev;for(;a!=null;)i.push(a),r=a,a=r.next;return i}function d3(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function f3(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function p3(t){return t.name}function h3(t){for(var e,r=t.next;r!==null&&!(0,Ra.isTag)(r);)e=r,r=e.next;return r}function b3(t){for(var e,r=t.prev;r!==null&&!(0,Ra.isTag)(r);)e=r,r=e.prev;return r}var gt={};Object.defineProperty(gt,"__esModule",{value:!0});gt.removeElement=zr;gt.replaceElement=g3;gt.appendChild=m3;gt.append=y3;gt.prependChild=v3;gt.prepend=x3;function zr(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 g3(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var i=e.parent=t.parent;if(i){var u=i.children;u[u.lastIndexOf(t)]=e,t.parent=null}}function m3(t,e){if(zr(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 y3(t,e){zr(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 i=r.children;i.splice(i.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function v3(t,e){if(zr(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 x3(t,e){zr(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 rt={};Object.defineProperty(rt,"__esModule",{value:!0});rt.filter=w3;rt.find=od;rt.findOneChild=S3;rt.findOne=sd;rt.existsOne=ld;rt.findAll=C3;var Tt=et;function w3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),od(t,Array.isArray(e)?e:[e],r,n)}function od(t,e,r,n){for(var i=[],u=[Array.isArray(e)?e:[e]],a=[0];;){if(a[0]>=u[0].length){if(a.length===1)return i;u.shift(),a.shift();continue}var o=u[0][a[0]++];if(t(o)&&(i.push(o),--n<=0))return i;r&&(0,Tt.hasChildren)(o)&&o.children.length>0&&(a.unshift(0),u.unshift(o.children))}}function S3(t,e){return e.find(t)}function sd(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],i=0;i<n.length;i++){var u=n[i];if((0,Tt.isTag)(u)&&t(u))return u;if(r&&(0,Tt.hasChildren)(u)&&u.children.length>0){var a=sd(t,u.children,!0);if(a)return a}}return null}function ld(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,Tt.isTag)(r)&&t(r)||(0,Tt.hasChildren)(r)&&ld(t,r.children)})}function C3(t,e){for(var r=[],n=[Array.isArray(e)?e:[e]],i=[0];;){if(i[0]>=n[0].length){if(n.length===1)return r;n.shift(),i.shift();continue}var u=n[0][i[0]++];(0,Tt.isTag)(u)&&t(u)&&r.push(u),(0,Tt.hasChildren)(u)&&u.children.length>0&&(i.unshift(0),n.unshift(u.children))}}var nt={};Object.defineProperty(nt,"__esModule",{value:!0});nt.testElement=T3;nt.getElements=A3;nt.getElementById=N3;nt.getElementsByTagName=O3;nt.getElementsByClassName=j3;nt.getElementsByTagType=_3;var vt=et,Ur=rt,Hn={tag_name:function(t){return typeof t=="function"?function(e){return(0,vt.isTag)(e)&&t(e.name)}:t==="*"?vt.isTag:function(e){return(0,vt.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,vt.isText)(e)&&t(e.data)}:function(e){return(0,vt.isText)(e)&&e.data===t}}};function Ia(t,e){return typeof e=="function"?function(r){return(0,vt.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,vt.isTag)(r)&&r.attribs[t]===e}}function E3(t,e){return function(r){return t(r)||e(r)}}function cd(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Hn,r)?Hn[r](n):Ia(r,n)});return e.length===0?null:e.reduce(E3)}function T3(t,e){var r=cd(t);return r?r(e):!0}function A3(t,e,r,n){n===void 0&&(n=1/0);var i=cd(t);return i?(0,Ur.filter)(i,e,r,n):[]}function N3(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,Ur.findOne)(Ia("id",t),e,r)}function O3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Ur.filter)(Hn.tag_name(t),e,r,n)}function j3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Ur.filter)(Ia("class",t),e,r,n)}function _3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Ur.filter)(Hn.tag_type(t),e,r,n)}var jt={};Object.defineProperty(jt,"__esModule",{value:!0});jt.DocumentPosition=void 0;jt.removeSubsets=P3;jt.compareDocumentPosition=dd;jt.uniqueSort=k3;var js=et;function P3(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 Te;(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"})(Te||(jt.DocumentPosition=Te={}));function dd(t,e){var r=[],n=[];if(t===e)return 0;for(var i=(0,js.hasChildren)(t)?t:t.parent;i;)r.unshift(i),i=i.parent;for(i=(0,js.hasChildren)(e)?e:e.parent;i;)n.unshift(i),i=i.parent;for(var u=Math.min(r.length,n.length),a=0;a<u&&r[a]===n[a];)a++;if(a===0)return Te.DISCONNECTED;var o=r[a-1],s=o.children,l=r[a],c=n[a];return s.indexOf(l)>s.indexOf(c)?o===e?Te.FOLLOWING|Te.CONTAINED_BY:Te.FOLLOWING:o===t?Te.PRECEDING|Te.CONTAINS:Te.PRECEDING}function k3(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=dd(e,r);return n&Te.PRECEDING?-1:n&Te.FOLLOWING?1:0}),t}var Da={};Object.defineProperty(Da,"__esModule",{value:!0});Da.getFeed=I3;var R3=bt,Vr=nt;function I3(t){var e=Fn(B3,t);return e?e.name==="feed"?D3(e):L3(e):null}function D3(t){var e,r=t.children,n={type:"atom",items:(0,Vr.getElementsByTagName)("entry",r).map(function(a){var o,s=a.children,l={media:fd(s)};he(l,"id","id",s),he(l,"title","title",s);var c=(o=Fn("link",s))===null||o===void 0?void 0:o.attribs.href;c&&(l.link=c);var h=at("summary",s)||at("content",s);h&&(l.description=h);var d=at("updated",s);return d&&(l.pubDate=new Date(d)),l})};he(n,"id","id",r),he(n,"title","title",r);var i=(e=Fn("link",r))===null||e===void 0?void 0:e.attribs.href;i&&(n.link=i),he(n,"description","subtitle",r);var u=at("updated",r);return u&&(n.updated=new Date(u)),he(n,"author","email",r,!0),n}function L3(t){var e,r,n=(r=(e=Fn("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],i={type:t.name.substr(0,3),id:"",items:(0,Vr.getElementsByTagName)("item",t.children).map(function(a){var o=a.children,s={media:fd(o)};he(s,"id","guid",o),he(s,"title","title",o),he(s,"link","link",o),he(s,"description","description",o);var l=at("pubDate",o)||at("dc:date",o);return l&&(s.pubDate=new Date(l)),s})};he(i,"title","title",n),he(i,"link","link",n),he(i,"description","description",n);var u=at("lastBuildDate",n);return u&&(i.updated=new Date(u)),he(i,"author","managingEditor",n,!0),i}var M3=["url","type","lang"],$3=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function fd(t){return(0,Vr.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},i=0,u=M3;i<u.length;i++){var a=u[i];r[a]&&(n[a]=r[a])}for(var o=0,s=$3;o<s.length;o++){var a=s[o];r[a]&&(n[a]=parseInt(r[a],10))}return r.expression&&(n.expression=r.expression),n})}function Fn(t,e){return(0,Vr.getElementsByTagName)(t,e,!0,1)[0]}function at(t,e,r){return r===void 0&&(r=!1),(0,R3.textContent)((0,Vr.getElementsByTagName)(t,e,r,1)).trim()}function he(t,e,r,n,i){i===void 0&&(i=!1);var u=at(r,n,i);u&&(t[e]=u)}function B3(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=M&&M.__createBinding||(Object.create?function(i,u,a,o){o===void 0&&(o=a);var s=Object.getOwnPropertyDescriptor(u,a);(!s||("get"in s?!u.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return u[a]}}),Object.defineProperty(i,o,s)}:function(i,u,a,o){o===void 0&&(o=a),i[o]=u[a]}),r=M&&M.__exportStar||function(i,u){for(var a in i)a!=="default"&&!Object.prototype.hasOwnProperty.call(u,a)&&e(u,i,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(bt,t),r(Fe,t),r(gt,t),r(rt,t),r(nt,t),r(jt,t),r(Da,t);var n=et;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}})})(gn);(function(t){var e=M&&M.__createBinding||(Object.create?function(y,v,E,C){C===void 0&&(C=E);var N=Object.getOwnPropertyDescriptor(v,E);(!N||("get"in N?!v.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:function(){return v[E]}}),Object.defineProperty(y,C,N)}:function(y,v,E,C){C===void 0&&(C=E),y[C]=v[E]}),r=M&&M.__setModuleDefault||(Object.create?function(y,v){Object.defineProperty(y,"default",{enumerable:!0,value:v})}:function(y,v){y.default=v}),n=M&&M.__importStar||function(y){if(y&&y.__esModule)return y;var v={};if(y!=null)for(var E in y)E!=="default"&&Object.prototype.hasOwnProperty.call(y,E)&&e(v,y,E);return r(v,y),v},i=M&&M.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};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 u=Pr,a=Pr;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return a.Parser}});var o=et,s=et;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return s.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return s.DomHandler}});function l(y,v){var E=new o.DomHandler(void 0,v);return new u.Parser(E,v).end(y),E.root}t.parseDocument=l;function c(y,v){return l(y,v).children}t.parseDOM=c;function h(y,v,E){var C=new o.DomHandler(y,v,E);return new u.Parser(C,v)}t.createDomStream=h;var d=Na;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return i(d).default}}),t.ElementType=n(sr);var f=gn,g=gn;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return g.getFeed}});var m={xmlMode:!0};function b(y,v){return v===void 0&&(v=m),(0,f.getFeed)(c(y,v))}t.parseFeed=b,t.DomUtils=n(gn)})(Hc);var q3=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},La={};Object.defineProperty(La,"__esModule",{value:!0});/*!
147
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
148
- *
149
- * Copyright (c) 2014-2017, Jon Schlinkert.
150
- * Released under the MIT License.
151
- */function _s(t){return Object.prototype.toString.call(t)==="[object Object]"}function H3(t){var e,r;return _s(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(_s(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}La.isPlainObject=H3;var F3=function(e){return z3(e)&&!U3(e)};function z3(t){return!!t&&typeof t=="object"}function U3(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||G3(t)}var V3=typeof Symbol=="function"&&Symbol.for,W3=V3?Symbol.for("react.element"):60103;function G3(t){return t.$$typeof===W3}function X3(t){return Array.isArray(t)?[]:{}}function Rr(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Gt(X3(t),t,e):t}function Y3(t,e,r){return t.concat(e).map(function(n){return Rr(n,r)})}function J3(t,e){if(!e.customMerge)return Gt;var r=e.customMerge(t);return typeof r=="function"?r:Gt}function K3(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Ps(t){return Object.keys(t).concat(K3(t))}function pd(t,e){try{return e in t}catch{return!1}}function Z3(t,e){return pd(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function Q3(t,e,r){var n={};return r.isMergeableObject(t)&&Ps(t).forEach(function(i){n[i]=Rr(t[i],r)}),Ps(e).forEach(function(i){Z3(t,i)||(pd(t,i)&&r.isMergeableObject(e[i])?n[i]=J3(i,r)(t[i],e[i],r):n[i]=Rr(e[i],r))}),n}function Gt(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||Y3,r.isMergeableObject=r.isMergeableObject||F3,r.cloneUnlessOtherwiseSpecified=Rr;var n=Array.isArray(e),i=Array.isArray(t),u=n===i;return u?n?r.arrayMerge(t,e,r):Q3(t,e,r):Rr(e,r)}Gt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return Gt(n,i,r)},{})};var ew=Gt,tw=ew,hd={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(M,function(){return function(e){function r(C){return C===" "||C===" "||C===`
152
- `||C==="\f"||C==="\r"}function n(C){var N,k=C.exec(e.substring(b));if(k)return N=k[0],b+=N.length,N}for(var i=e.length,u=/^[ \t\n\r\u000c]+/,a=/^[, \t\n\r\u000c]+/,o=/^[^ \t\n\r\u000c]+/,s=/[,]+$/,l=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,h,d,f,g,m,b=0,y=[];;){if(n(a),b>=i)return y;h=n(o),d=[],h.slice(-1)===","?(h=h.replace(s,""),E()):v()}function v(){for(n(u),f="",g="in descriptor";;){if(m=e.charAt(b),g==="in descriptor")if(r(m))f&&(d.push(f),f="",g="after descriptor");else if(m===","){b+=1,f&&d.push(f),E();return}else if(m==="(")f=f+m,g="in parens";else if(m===""){f&&d.push(f),E();return}else f=f+m;else if(g==="in parens")if(m===")")f=f+m,g="in descriptor";else if(m===""){d.push(f),E();return}else f=f+m;else if(g==="after descriptor"&&!r(m))if(m===""){E();return}else g="in descriptor",b-=1;b+=1}}function E(){var C=!1,N,k,R,D,$={},L,S,T,_,I;for(D=0;D<d.length;D++)L=d[D],S=L[L.length-1],T=L.substring(0,L.length-1),_=parseInt(T,10),I=parseFloat(T),l.test(T)&&S==="w"?((N||k)&&(C=!0),_===0?C=!0:N=_):c.test(T)&&S==="x"?((N||k||R)&&(C=!0),I<0?C=!0:k=I):l.test(T)&&S==="h"?((R||k)&&(C=!0),_===0?C=!0:R=_):C=!0;C?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+L+"'."):($.url=h,N&&($.w=N),k&&($.d=k),R&&($.h=R),y.push($))}}})})(hd);var rw=hd.exports,Ma={exports:{}},F=String,bd=function(){return{isColorSupported:!1,reset:F,bold:F,dim:F,italic:F,underline:F,inverse:F,hidden:F,strikethrough:F,black:F,red:F,green:F,yellow:F,blue:F,magenta:F,cyan:F,white:F,gray:F,bgBlack:F,bgRed:F,bgGreen:F,bgYellow:F,bgBlue:F,bgMagenta:F,bgCyan:F,bgWhite:F,blackBright:F,redBright:F,greenBright:F,yellowBright:F,blueBright:F,magentaBright:F,cyanBright:F,whiteBright:F,bgBlackBright:F,bgRedBright:F,bgGreenBright:F,bgYellowBright:F,bgBlueBright:F,bgMagentaBright:F,bgCyanBright:F,bgWhiteBright:F}};Ma.exports=bd();Ma.exports.createColors=bd;var nw=Ma.exports;const iw={},uw=Object.freeze(Object.defineProperty({__proto__:null,default:iw},Symbol.toStringTag,{value:"Module"})),je=If(uw);let ks=nw,Rs=je,Su=class gd extends Error{constructor(e,r,n,i,u,a){super(e),this.name="CssSyntaxError",this.reason=e,u&&(this.file=u),i&&(this.source=i),a&&(this.plugin=a),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,gd)}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=ks.isColorSupported);let n=c=>c,i=c=>c,u=c=>c;if(e){let{bold:c,gray:h,red:d}=ks.createColors(!0);i=f=>c(d(f)),n=f=>h(f),Rs&&(u=f=>Rs(f))}let a=r.split(/\r?\n/),o=Math.max(this.line-3,0),s=Math.min(this.line+2,a.length),l=String(s).length;return a.slice(o,s).map((c,h)=>{let d=o+1+h,f=" "+(" "+d).slice(-l)+" | ";if(d===this.line){if(c.length>160){let m=20,b=Math.max(0,this.column-m),y=Math.max(this.column+m,this.endColumn+m),v=c.slice(b,y),E=n(f.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+n(f)+u(v)+`
153
- `+E+i("^")}let g=n(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+n(f)+u(c)+`
154
- `+g+i("^")}return" "+n(f)+u(c)}).join(`
155
- `)}toString(){let e=this.showSourceCode();return e&&(e=`
156
-
157
- `+e+`
158
- `),this.name+": "+this.message+e}};var $a=Su;Su.default=Su;const Is={after:`
159
- `,beforeClose:`
160
- `,beforeComment:`
161
- `,beforeDecl:`
162
- `,beforeOpen:" ",beforeRule:`
163
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function aw(t){return t[0].toUpperCase()+t.slice(1)}let Cu=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else{let u=(e.raws.between||"")+(r?";":"");this.builder(n+i+u,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 i=e.parent,u=0;for(;i&&i.type!=="root";)u+=1,i=i.parent;if(n.includes(`
164
- `)){let a=this.raw(e,null,"indent");if(a.length)for(let o=0;o<u;o++)n+=a}return n}block(e,r){let n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),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 i=0;i<e.nodes.length;i++){let u=e.nodes[i],a=this.raw(u,"before");a&&this.builder(a),this.stringify(u,r!==i||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"),i=e.prop+n+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),r&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,r,n){let i;if(n||(n=r),r&&(i=e.raws[r],typeof i<"u"))return i;let u=e.parent;if(n==="before"&&(!u||u.type==="root"&&u.first===e||u&&u.type==="document"))return"";if(!u)return Is[n];let a=e.root();if(a.rawCache||(a.rawCache={}),typeof a.rawCache[n]<"u")return a.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let o="raw"+aw(n);this[o]?i=this[o](a,e):a.walk(s=>{if(i=s.raws[r],typeof i<"u")return!1})}return typeof i>"u"&&(i=Is[n]),a.rawCache[n]=i,i}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(`
165
- `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let n;return e.walkComments(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
166
- `)&&(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(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
167
- `)&&(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(`
168
- `)&&(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 i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof n.raws.before<"u"){let u=n.raws.before.split(`
169
- `);return r=u[u.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],i=e.raws[r];return i&&i.value===n?i.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 md=Cu;Cu.default=Cu;let ow=md;function Eu(t,e){new ow(e).stringify(t)}var wi=Eu;Eu.default=Eu;var Wr={};Wr.isClean=Symbol("isClean");Wr.my=Symbol("my");let sw=$a,lw=md,cw=wi,{isClean:hr,my:dw}=Wr;function Tu(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let i=t[n],u=typeof i;n==="parent"&&u==="object"?e&&(r[n]=e):n==="source"?r[n]=i:Array.isArray(i)?r[n]=i.map(a=>Tu(a,r)):(u==="object"&&i!==null&&(i=Tu(i)),r[n]=i)}return r}function Ve(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,i=0;for(let u=0;u<t.length;u++){if(n===e.line&&r===e.column){i=u;break}t[u]===`
170
- `?(r=1,n+=1):r+=1}return i}let Au=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[hr]=!1,this[dw]=!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=Tu(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:i}=this.rangeBy(r);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},r)}return new sw(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[hr]=!0}markDirty(){if(this[hr]){this[hr]=!1;let e=this;for(;e=e.parent;)e[hr]=!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,u=n.slice(Ve(n,this.source.start),Ve(n,this.source.end)).indexOf(e.word);u!==-1&&(r=this.positionInside(u))}return r}positionInside(e){let r=this.source.start.column,n=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,u=Ve(i,this.source.start),a=u+e;for(let o=u;o<a;o++)i[o]===`
171
- `?(r=1,n+=1):r+=1;return{column:r,line:n,offset:a}}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:Ve(r,this.source.start)},i=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:Ve(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let a=r.slice(Ve(r,this.source.start),Ve(r,this.source.end)).indexOf(e.word);a!==-1&&(n=this.positionInside(a),i=this.positionInside(a+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:Ve(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:Ve(r,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line,offset:n.offset+1}),{end:i,start:n}}raw(e,r){return new lw().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 i of e)i===this?n=!0:n?(this.parent.insertAfter(r,i),r=i):this.parent.insertBefore(r,i);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={},i=r==null;r=r||new Map;let u=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let o=this[a];if(Array.isArray(o))n[a]=o.map(s=>typeof s=="object"&&s.toJSON?s.toJSON(null,r):s);else if(typeof o=="object"&&o.toJSON)n[a]=o.toJSON(null,r);else if(a==="source"){if(o==null)continue;let s=r.get(o.input);s==null&&(s=u,r.set(o.input,u),u++),n[a]={end:o.end,inputId:s,start:o.start}}else n[a]=o}return i&&(n.inputs=[...r.keys()].map(a=>a.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=cw){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let i={node:this};for(let u in n)i[u]=n[u];return e.warn(r,i)}};var Si=Au;Au.default=Au;let fw=Si,Nu=class extends fw{constructor(e){super(e),this.type="comment"}};var Ci=Nu;Nu.default=Nu;let pw=Si,Ou=class extends pw{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 Ei=Ou;Ou.default=Ou;let yd=Ci,vd=Ei,hw=Si,{isClean:xd,my:wd}=Wr,Ba,Sd,Cd,qa;function Ed(t){return t.map(e=>(e.nodes&&(e.nodes=Ed(e.nodes)),delete e.source,e))}function Td(t){if(t[xd]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Td(e)}let tt=class Ad extends hw{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 i of n)this.proxyOf.nodes.push(i)}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,i;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],i=e(this.proxyOf.nodes[n],n),i!==!1);)this.indexes[r]+=1;return delete this.indexes[r],i}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(i=>typeof i=="function"?(u,a)=>i(u.toProxy(),a):i)):r==="every"||r==="some"?n=>e[r]((i,...u)=>n(i.toProxy(),...u)):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),i=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let a of i)this.proxyOf.nodes.splice(n+1,0,a);let u;for(let a in this.indexes)u=this.indexes[a],n<u&&(this.indexes[a]=u+i.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),i=n===0?"prepend":!1,u=this.normalize(r,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let o of u)this.proxyOf.nodes.splice(n,0,o);let a;for(let o in this.indexes)a=this.indexes[o],n<=a&&(this.indexes[o]=a+u.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=Ed(Sd(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"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 vd(e)]}else if(e.selector||e.selectors)e=[new qa(e)];else if(e.name)e=[new Ba(e)];else if(e.text)e=[new yd(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[wd]||Ad.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[xd]&&Td(i),i.raws||(i.raws={}),typeof i.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(i.raws.before=r.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+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(i=>{r.props&&!r.props.includes(i.prop)||r.fast&&!i.value.includes(r.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let i;try{i=e(r,n)}catch(u){throw r.addToError(u)}return i!==!1&&r.walk&&(i=r.walk(e)),i})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="atrule")return r(n,i)}))}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,i)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="decl")return r(n,i)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="rule")return r(n,i)}))}};tt.registerParse=t=>{Sd=t};tt.registerRule=t=>{qa=t};tt.registerAtRule=t=>{Ba=t};tt.registerRoot=t=>{Cd=t};var _t=tt;tt.default=tt;tt.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Ba.prototype):t.type==="rule"?Object.setPrototypeOf(t,qa.prototype):t.type==="decl"?Object.setPrototypeOf(t,vd.prototype):t.type==="comment"?Object.setPrototypeOf(t,yd.prototype):t.type==="root"&&Object.setPrototypeOf(t,Cd.prototype),t[wd]=!0,t.nodes&&t.nodes.forEach(e=>{tt.rebuild(e)})};let Nd=_t,zn=class extends Nd{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 Ha=zn;zn.default=zn;Nd.registerAtRule(zn);let bw=_t,Od,jd,Ir=class extends bw{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Od(new jd,this,e).stringify()}};Ir.registerLazyResult=t=>{Od=t};Ir.registerProcessor=t=>{jd=t};var Fa=Ir;Ir.default=Ir;let gw="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",mw=(t=21)=>{let e="",r=t|0;for(;r--;)e+=gw[Math.random()*64|0];return e};var yw={nanoid:mw};let{existsSync:vw,readFileSync:xw}=je,{dirname:Hi,join:ww}=je,{SourceMapConsumer:Ds,SourceMapGenerator:Ls}=je;function Sw(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let ju=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,i=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Hi(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new Ds(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,u=/^data:application\/json,/,a=e.match(i)||e.match(u);if(a)return decodeURIComponent(e.substr(a[0].length));let o=e.match(r)||e.match(n);if(o)return Sw(e.substr(o[0].length));let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}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()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}loadFile(e){if(this.root=Hi(e),vw(e))return this.mapFile=e,xw(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 i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(r instanceof Ds)return Ls.fromSourceMap(r).toString();if(r instanceof Ls)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=ww(Hi(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 _d=ju;ju.default=ju;let{nanoid:Cw}=yw,{isAbsolute:_u,resolve:Pu}=je,{SourceMapConsumer:Ew,SourceMapGenerator:Tw}=je,{fileURLToPath:Ms,pathToFileURL:an}=je,$s=$a,Aw=_d,Fi=je,zi=Symbol("lineToIndexCache"),Nw=!!(Ew&&Tw),Bs=!!(Pu&&_u);function qs(t){if(t[zi])return t[zi];let e=t.css.split(`
172
- `),r=new Array(e.length),n=0;for(let i=0,u=e.length;i<u;i++)r[i]=n,n+=e[i].length+1;return t[zi]=r,r}let Un=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&&(!Bs||/^\w+:\/\//.test(r.from)||_u(r.from)?this.file=r.from:this.file=Pu(r.from)),Bs&&Nw){let n=new Aw(this.css,r);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Cw(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,i={}){let u,a,o,s,l;if(r&&typeof r=="object"){let h=r,d=n;if(typeof h.offset=="number"){s=h.offset;let f=this.fromOffset(s);r=f.line,n=f.col}else r=h.line,n=h.column,s=this.fromLineAndColumn(r,n);if(typeof d.offset=="number"){o=d.offset;let f=this.fromOffset(o);a=f.line,u=f.col}else a=d.line,u=d.column,o=this.fromLineAndColumn(d.line,d.column)}else if(n)s=this.fromLineAndColumn(r,n);else{s=r;let h=this.fromOffset(s);r=h.line,n=h.col}let c=this.origin(r,n,a,u);return c?l=new $s(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,i.plugin):l=new $s(e,a===void 0?r:{column:n,line:r},a===void 0?n:{column:u,line:a},this.css,this.file,i.plugin),l.input={column:n,endColumn:u,endLine:a,endOffset:o,line:r,offset:s,source:this.css},this.file&&(an&&(l.input.url=an(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,r){return qs(this)[e-1]+r-1}fromOffset(e){let r=qs(this),n=r[r.length-1],i=0;if(e>=n)i=r.length-1;else{let u=r.length-2,a;for(;i<u;)if(a=i+(u-i>>1),e<r[a])u=a-1;else if(e>=r[a+1])i=a+1;else{i=a;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Pu(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,i){if(!this.map)return!1;let u=this.map.consumer(),a=u.originalPositionFor({column:r,line:e});if(!a.source)return!1;let o;typeof n=="number"&&(o=u.originalPositionFor({column:i,line:n}));let s;_u(a.source)?s=an(a.source):s=new URL(a.source,this.map.consumer().sourceRoot||an(this.map.mapFile));let l={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:s.toString()};if(s.protocol==="file:")if(Ms)l.file=Ms(s);else throw new Error("file: protocol is not available in this PostCSS build");let c=u.sourceContentFor(a.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 Ti=Un;Un.default=Un;Fi&&Fi.registerInput&&Fi.registerInput(Un);let Pd=_t,kd,Rd,Xt=class extends Pd{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let i=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 u of i)u.raws.before=r.raws.before}return i}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 kd(new Rd,this,e).stringify()}};Xt.registerLazyResult=t=>{kd=t};Xt.registerProcessor=t=>{Rd=t};var Gr=Xt;Xt.default=Xt;Pd.registerRoot(Xt);let Dr={comma(t){return Dr.split(t,[","],!0)},space(t){let e=[" ",`
173
- `," "];return Dr.split(t,e)},split(t,e,r){let n=[],i="",u=!1,a=0,o=!1,s="",l=!1;for(let c of t)l?l=!1:c==="\\"?l=!0:o?c===s&&(o=!1):c==='"'||c==="'"?(o=!0,s=c):c==="("?a+=1:c===")"?a>0&&(a-=1):a===0&&e.includes(c)&&(u=!0),u?(i!==""&&n.push(i.trim()),i="",u=!1):i+=c;return(r||i!=="")&&n.push(i.trim()),n}};var Id=Dr;Dr.default=Dr;let Dd=_t,Ow=Id,Vn=class extends Dd{get selectors(){return Ow.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 za=Vn;Vn.default=Vn;Dd.registerRule(Vn);let jw=Ha,_w=Ci,Pw=Ei,kw=Ti,Rw=_d,Iw=Gr,Dw=za;function Lr(t,e){if(Array.isArray(t))return t.map(i=>Lr(i));let{inputs:r,...n}=t;if(r){e=[];for(let i of r){let u={...i,__proto__:kw.prototype};u.map&&(u.map={...u.map,__proto__:Rw.prototype}),e.push(u)}}if(n.nodes&&(n.nodes=t.nodes.map(i=>Lr(i,e))),n.source){let{inputId:i,...u}=n.source;n.source=u,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new Iw(n);if(n.type==="decl")return new Pw(n);if(n.type==="rule")return new Dw(n);if(n.type==="comment")return new _w(n);if(n.type==="atrule")return new jw(n);throw new Error("Unknown node type: "+t.type)}var Lw=Lr;Lr.default=Lr;let{dirname:yn,relative:Ld,resolve:Md,sep:$d}=je,{SourceMapConsumer:Bd,SourceMapGenerator:vn}=je,{pathToFileURL:Hs}=je,Mw=Ti,$w=!!(Bd&&vn),Bw=!!(yn&&Md&&Ld&&$d),qw=class{constructor(e,r,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=i,this.originalCSS=i,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=`
174
- `;this.css.includes(`\r
175
- `)&&(r=`\r
176
- `),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||yn(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Bd(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,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(),Bw&&$w&&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=vn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new vn({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 vn({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,a;this.stringify(this.root,(o,s,l)=>{if(this.css+=o,s&&l!=="end"&&(i.generated.line=e,i.generated.column=r-1,s.source&&s.source.start?(i.source=this.sourcePath(s),i.original.line=s.source.start.line,i.original.column=s.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),a=o.match(/\n/g),a?(e+=a.length,u=o.lastIndexOf(`
177
- `),r=o.length-u):r+=o.length,s&&l!=="start"){let c=s.parent||{raws:{}};(!(s.type==="decl"||s.type==="atrule"&&!s.nodes)||s!==c.last||c.raws.semicolon)&&(s.source&&s.source.end?(i.source=this.sourcePath(s),i.original.line=s.source.end.line,i.original.column=s.source.end.column-1,i.generated.line=e,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=r-1,this.map.addMapping(i)))}})}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?yn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=yn(Md(n,this.mapOpts.annotation)));let i=Ld(n,e);return this.memoizedPaths.set(e,i),i}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 Mw(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 i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,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(Hs){let n=Hs(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;$d==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var qd=qw;const Ui=39,Fs=34,on=92,zs=47,sn=10,br=32,ln=12,cn=9,dn=13,Hw=91,Fw=93,zw=40,Uw=41,Vw=123,Ww=125,Gw=59,Xw=42,Yw=58,Jw=64,fn=/[\t\n\f\r "#'()/;[\\\]{}]/g,pn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Kw=/.[\r\n"'(/\\]/,Us=/[\da-f]/i;var Zw=function(e,r={}){let n=e.css.valueOf(),i=r.ignoreErrors,u,a,o,s,l,c,h,d,f,g,m=n.length,b=0,y=[],v=[];function E(){return b}function C(D){throw e.error("Unclosed "+D,b)}function N(){return v.length===0&&b>=m}function k(D){if(v.length)return v.pop();if(b>=m)return;let $=D?D.ignoreUnclosed:!1;switch(u=n.charCodeAt(b),u){case sn:case br:case cn:case dn:case ln:{s=b;do s+=1,u=n.charCodeAt(s);while(u===br||u===sn||u===cn||u===dn||u===ln);c=["space",n.slice(b,s)],b=s-1;break}case Hw:case Fw:case Vw:case Ww:case Yw:case Gw:case Uw:{let L=String.fromCharCode(u);c=[L,L,b];break}case zw:{if(g=y.length?y.pop()[1]:"",f=n.charCodeAt(b+1),g==="url"&&f!==Ui&&f!==Fs&&f!==br&&f!==sn&&f!==cn&&f!==ln&&f!==dn){s=b;do{if(h=!1,s=n.indexOf(")",s+1),s===-1)if(i||$){s=b;break}else C("bracket");for(d=s;n.charCodeAt(d-1)===on;)d-=1,h=!h}while(h);c=["brackets",n.slice(b,s+1),b,s],b=s}else s=n.indexOf(")",b+1),a=n.slice(b,s+1),s===-1||Kw.test(a)?c=["(","(",b]:(c=["brackets",a,b,s],b=s);break}case Ui:case Fs:{l=u===Ui?"'":'"',s=b;do{if(h=!1,s=n.indexOf(l,s+1),s===-1)if(i||$){s=b+1;break}else C("string");for(d=s;n.charCodeAt(d-1)===on;)d-=1,h=!h}while(h);c=["string",n.slice(b,s+1),b,s],b=s;break}case Jw:{fn.lastIndex=b+1,fn.test(n),fn.lastIndex===0?s=n.length-1:s=fn.lastIndex-2,c=["at-word",n.slice(b,s+1),b,s],b=s;break}case on:{for(s=b,o=!0;n.charCodeAt(s+1)===on;)s+=1,o=!o;if(u=n.charCodeAt(s+1),o&&u!==zs&&u!==br&&u!==sn&&u!==cn&&u!==dn&&u!==ln&&(s+=1,Us.test(n.charAt(s)))){for(;Us.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===br&&(s+=1)}c=["word",n.slice(b,s+1),b,s],b=s;break}default:{u===zs&&n.charCodeAt(b+1)===Xw?(s=n.indexOf("*/",b+2)+1,s===0&&(i||$?s=n.length:C("comment")),c=["comment",n.slice(b,s+1),b,s],b=s):(pn.lastIndex=b+1,pn.test(n),pn.lastIndex===0?s=n.length-1:s=pn.lastIndex-2,c=["word",n.slice(b,s+1),b,s],y.push(c),b=s);break}}return b++,c}function R(D){v.push(D)}return{back:R,endOfFile:N,nextToken:k,position:E}};let Qw=Ha,e6=Ci,t6=Ei,r6=Gr,Vs=za,n6=Zw;const Ws={empty:!0,space:!0};function i6(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let u6=class{constructor(e){this.input=e,this.root=new r6,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 Qw;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,i,u,a=!1,o=!1,s=[],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==="{"){o=!0;break}else if(n==="}"){if(s.length>0){for(u=s.length-1,i=s[u];i&&i[0]==="space";)i=s[--u];i&&(r.source.end=this.getPosition(i[3]||i[2]),r.source.end.offset++)}this.end(e);break}else s.push(e);else s.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(r.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(r,"params",s),a&&(e=s[s.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=""),o&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,i;for(let u=r-1;u>=0&&(i=e[u],!(i[0]!=="space"&&(n+=1,n===2)));u--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let r=0,n,i,u;for(let[a,o]of e.entries()){if(i=o,u=i[0],u==="("&&(r+=1),u===")"&&(r-=1),r===0&&u===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return a}n=i}return!1}comment(e){let r=new e6;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 i=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}createTokenizer(){this.tokenizer=n6(this.input)}decl(e,r){let n=new t6;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||i6(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 u;for(;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a=[],o;for(;e.length&&(o=e[0][0],!(o!=="space"&&o!=="comment"));)a.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(u=e[l],u[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(u[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let d=l;d>0;d--){let f=c[d][0];if(h.trim().startsWith("!")&&f!=="space")break;h=c.pop()[1]+h}h.trim().startsWith("!")&&(n.important=!0,n.raws.important=h,e=c)}if(u[0]!=="space"&&u[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(n.raws.between+=a.map(l=>l[1]).join(""),a=[]),this.raw(n,"value",a.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 Vs;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,i=!1,u=null,a=[],o=e[1].startsWith("--"),s=[],l=e;for(;l;){if(n=l[0],s.push(l),n==="("||n==="[")u||(u=l),a.push(n==="("?")":"]");else if(o&&i&&n==="{")u||(u=l),a.push("}");else if(a.length===0)if(n===";")if(i){this.decl(s,o);return}else break;else if(n==="{"){this.rule(s);return}else if(n==="}"){this.tokenizer.back(s.pop()),r=!0;break}else n===":"&&(i=!0);else n===a[a.length-1]&&(a.pop(),a.length===0&&(u=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),a.length>0&&this.unclosedBracket(u),r&&i){if(!o)for(;s.length&&(l=s[s.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}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,i){let u,a,o=n.length,s="",l=!0,c,h;for(let d=0;d<o;d+=1)u=n[d],a=u[0],a==="space"&&d===o-1&&!i?l=!1:a==="comment"?(h=n[d-1]?n[d-1][0]:"empty",c=n[d+1]?n[d+1][0]:"empty",!Ws[h]&&!Ws[c]?s.slice(-1)===","?l=!1:s+=u[1]:l=!1):s+=u[1];if(!l){let d=n.reduce((f,g)=>f+g[1],"");e.raws[r]={raw:d,value:s}}e[r]=s}rule(e){e.pop();let r=new Vs;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 i=r;i<e.length;i++)n+=e[i][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 a6=u6;let o6=_t,s6=Ti,l6=a6;function Wn(t,e){let r=new s6(t,e),n=new l6(r);try{n.parse()}catch(i){throw process.env.NODE_ENV!=="production"&&i.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?i.message+=`
178
- You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?i.message+=`
179
- You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(i.message+=`
180
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),i}return n.root}var Ua=Wn;Wn.default=Wn;o6.registerParse(Wn);let ku=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 Hd=ku;ku.default=ku;let c6=Hd,Ru=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 c6(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Va=Ru;Ru.default=Ru;let Gs={};var Fd=function(e){Gs[e]||(Gs[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let d6=_t,f6=Fa,p6=qd,h6=Ua,Xs=Va,b6=Gr,g6=wi,{isClean:Pe,my:m6}=Wr,y6=Fd;const v6={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},x6={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},w6={Once:!0,postcssPlugin:!0,prepare:!0},Yt=0;function gr(t){return typeof t=="object"&&typeof t.then=="function"}function zd(t){let e=!1,r=v6[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Yt,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Yt,r+"Exit"]:[r,r+"Exit"]}function Ys(t){let e;return t.type==="document"?e=["Document",Yt,"DocumentExit"]:t.type==="root"?e=["Root",Yt,"RootExit"]:e=zd(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Iu(t){return t[Pe]=!1,t.nodes&&t.nodes.forEach(e=>Iu(e)),t}let Du={},Jt=class Ud{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 i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=Iu(r);else if(r instanceof Ud||r instanceof Xs)i=Iu(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let u=h6;n.syntax&&(u=n.syntax.parse),n.parser&&(u=n.parser),u.parse&&(u=u.parse);try{i=u(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[m6]&&d6.rebuild(i)}this.result=new Xs(e,i,n),this.helpers={...Du,postcss:Du,result:this.result},this.plugins=this.processor.plugins.map(u=>typeof u=="object"&&u.prepare?{...u,...u.prepare(this.result)}:u)}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 i=n.postcssPlugin,u=n.postcssVersion,a=this.result.processor.version,o=u.split("."),s=a.split(".");(o[0]!==s[0]||parseInt(o[1])>parseInt(s[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+a+", but "+i+" uses "+u+". Perhaps this is the source of the error below.")}}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!x6[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!w6[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);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(gr(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Pe];){e[Pe]=!0;let r=[Ys(e)];for(;r.length>0;){let n=this.visitTick(r);if(gr(n))try{await n}catch(i){let u=r[r.length-1].node;throw this.handleError(i,u)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(u=>n(u,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}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 gr(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=g6;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new p6(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[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(gr(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Pe];)e[Pe]=!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||y6("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,i]of e){this.result.lastPlugin=n;let u;try{u=i(r,this.helpers)}catch(a){throw this.handleError(a,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(gr(u))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&r.visitorIndex<i.length){let[a,o]=i[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===i.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=a;try{return o(n.toProxy(),this.helpers)}catch(s){throw this.handleError(s,n)}}if(r.iterator!==0){let a=r.iterator,o;for(;o=n.nodes[n.indexes[a]];)if(n.indexes[a]+=1,!o[Pe]){o[Pe]=!0,e.push(Ys(o));return}r.iterator=0,delete n.indexes[a]}let u=r.events;for(;r.eventIndex<u.length;){let a=u[r.eventIndex];if(r.eventIndex+=1,a===Yt){n.nodes&&n.nodes.length&&(n[Pe]=!0,r.iterator=n.getIterator());return}else if(this.listeners[a]){r.visitors=this.listeners[a];return}}e.pop()}walkSync(e){e[Pe]=!0;let r=zd(e);for(let n of r)if(n===Yt)e.nodes&&e.each(i=>{i[Pe]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Jt.registerPostcss=t=>{Du=t};var Vd=Jt;Jt.default=Jt;b6.registerLazyResult(Jt);f6.registerLazyResult(Jt);let S6=qd,C6=Ua;const E6=Va;let T6=wi,A6=Fd,Lu=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=C6;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 i,u=T6;this.result=new E6(this._processor,i,this._opts),this.result.css=r;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let o=new S6(u,i,this._opts,r);if(o.isMap()){let[s,l]=o.generate();s&&(this.result.css=s),l&&(this.result.map=l)}else o.clearAnnotation(),this.result.css=o.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||A6("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 N6=Lu;Lu.default=Lu;let O6=Fa,j6=Vd,_6=N6,P6=Gr,Mr=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 _6(this,e,r):new j6(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var k6=Mr;Mr.default=Mr;P6.registerProcessor(Mr);O6.registerProcessor(Mr);let Wd=Ha,Gd=Ci,R6=_t,I6=$a,Xd=Ei,Yd=Fa,D6=Lw,L6=Ti,M6=Vd,$6=Id,B6=Si,q6=Ua,Wa=k6,H6=Va,Jd=Gr,Kd=za,F6=wi,z6=Hd;function K(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Wa(t)}K.plugin=function(e,r){let n=!1;function i(...a){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
181
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
182
- https://www.w3ctech.com/topic/2226`));let o=r(...a);return o.postcssPlugin=e,o.postcssVersion=new Wa().version,o}let u;return Object.defineProperty(i,"postcss",{get(){return u||(u=i()),u}}),i.process=function(a,o,s){return K([i(s)]).process(a,o)},i};K.stringify=F6;K.parse=q6;K.fromJSON=D6;K.list=$6;K.comment=t=>new Gd(t);K.atRule=t=>new Wd(t);K.decl=t=>new Xd(t);K.rule=t=>new Kd(t);K.root=t=>new Jd(t);K.document=t=>new Yd(t);K.CssSyntaxError=I6;K.Declaration=Xd;K.Container=R6;K.Processor=Wa;K.Document=Yd;K.Comment=Gd;K.Warning=z6;K.AtRule=Wd;K.Result=H6;K.Input=L6;K.Rule=Kd;K.Root=Jd;K.Node=B6;M6.registerPostcss(K);var U6=K;K.default=K;const V6=Hc,Js=q3,{isPlainObject:W6}=La,Ks=tw,G6=rw,{parse:X6}=U6,Y6=["img","audio","video","picture","svg","object","map","iframe","embed"],J6=["script","style"];function Rt(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function We(t,e){return{}.hasOwnProperty.call(t,e)}function Zs(t,e){const r=[];return Rt(t,function(n){e(n)&&r.push(n)}),r}function K6(t){for(const e in t)if(We(t,e))return!1;return!0}function Z6(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 Q6=$r;const e4=/^[^\0\t\n\f\r /<=>]+$/;function $r(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",i="";function u(w,O){const A=this;this.tag=w,this.attribs=O||{},this.tagPosition=n.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(b.length){const P=b[b.length-1];P.text+=A.text}},this.updateParentNodeMediaChildren=function(){b.length&&Y6.includes(this.tag)&&b[b.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},$r.defaults,e),e.parser=Object.assign({},t4,e.parser);const a=function(w){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(w)>-1};J6.forEach(function(w){a(w)&&!e.allowVulnerableTags&&console.warn(`
183
-
184
- ⚠️ Your \`allowedTags\` option includes, \`${w}\`, which is inherently
185
- vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
186
- Or, to disable this warning, add the \`allowVulnerableTags\` option
187
- and ensure you are accounting for this risk.
188
-
189
- `)});const o=e.nonTextTags||["script","style","textarea","option"];let s,l;e.allowedAttributes&&(s={},l={},Rt(e.allowedAttributes,function(w,O){s[O]=[];const A=[];w.forEach(function(P){typeof P=="string"&&P.indexOf("*")>=0?A.push(Js(P).replace(/\\\*/g,".*")):s[O].push(P)}),A.length&&(l[O]=new RegExp("^("+A.join("|")+")$"))}));const c={},h={},d={};Rt(e.allowedClasses,function(w,O){if(s&&(We(s,O)||(s[O]=[]),s[O].push("class")),c[O]=w,Array.isArray(w)){const A=[];c[O]=[],d[O]=[],w.forEach(function(P){typeof P=="string"&&P.indexOf("*")>=0?A.push(Js(P).replace(/\\\*/g,".*")):P instanceof RegExp?d[O].push(P):c[O].push(P)}),A.length&&(h[O]=new RegExp("^("+A.join("|")+")$"))}});const f={};let g;Rt(e.transformTags,function(w,O){let A;typeof w=="function"?A=w:typeof w=="string"&&(A=$r.simpleTransform(w)),O==="*"?g=A:f[O]=A});let m,b,y,v,E,C,N=!1;R();const k=new V6.Parser({onopentag:function(w,O){if(e.onOpenTag&&e.onOpenTag(w,O),e.enforceHtmlBoundary&&w==="html"&&R(),E){C++;return}const A=new u(w,O);b.push(A);let P=!1;const B=!!A.text;let U;if(We(f,w)&&(U=f[w](w,O),A.attribs=O=U.attribs,U.text!==void 0&&(A.innerText=U.text),w!==U.tagName&&(A.name=w=U.tagName,v[m]=U.tagName)),g&&(U=g(w,O),A.attribs=O=U.attribs,w!==U.tagName&&(A.name=w=U.tagName,v[m]=U.tagName)),(!a(w)||e.disallowedTagsMode==="recursiveEscape"&&!K6(y)||e.nestingLimit!=null&&m>=e.nestingLimit)&&(P=!0,y[m]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&o.indexOf(w)!==-1&&(E=!0,C=1)),m++,P){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(A.innerText&&!B){const X=D(A.innerText);e.textFilter?n+=e.textFilter(X,w):n+=X,N=!0}return}i=n,n=""}n+="<"+w,w==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(A.innerText=""),P&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?Rt(O,function(X,V){n+=" "+V+'="'+D(X||"",!0)+'"'}):(!s||We(s,w)||s["*"])&&Rt(O,function(X,V){if(!e4.test(V)){delete A.attribs[V];return}if(X===""&&!e.allowedEmptyAttributes.includes(V)&&(e.nonBooleanAttributes.includes(V)||e.nonBooleanAttributes.includes("*"))){delete A.attribs[V];return}let lr=!1;if(!s||We(s,w)&&s[w].indexOf(V)!==-1||s["*"]&&s["*"].indexOf(V)!==-1||We(l,w)&&l[w].test(V)||l["*"]&&l["*"].test(V))lr=!0;else if(s&&s[w]){for(const G of s[w])if(W6(G)&&G.name&&G.name===V){lr=!0;let W="";if(G.multiple===!0){const _e=X.split(" ");for(const xe of _e)G.values.indexOf(xe)!==-1&&(W===""?W=xe:W+=" "+xe)}else G.values.indexOf(X)>=0&&(W=X);X=W}}if(lr){if(e.allowedSchemesAppliedToAttributes.indexOf(V)!==-1&&$(w,X)){delete A.attribs[V];return}if(w==="script"&&V==="src"){let G=!0;try{const W=L(X);if(e.allowedScriptHostnames||e.allowedScriptDomains){const _e=(e.allowedScriptHostnames||[]).find(function(pe){return pe===W.url.hostname}),xe=(e.allowedScriptDomains||[]).find(function(pe){return W.url.hostname===pe||W.url.hostname.endsWith(`.${pe}`)});G=_e||xe}}catch{G=!1}if(!G){delete A.attribs[V];return}}if(w==="iframe"&&V==="src"){let G=!0;try{const W=L(X);if(W.isRelativeUrl)G=We(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const _e=(e.allowedIframeHostnames||[]).find(function(pe){return pe===W.url.hostname}),xe=(e.allowedIframeDomains||[]).find(function(pe){return W.url.hostname===pe||W.url.hostname.endsWith(`.${pe}`)});G=_e||xe}}catch{G=!1}if(!G){delete A.attribs[V];return}}if(V==="srcset")try{let G=G6(X);if(G.forEach(function(W){$("srcset",W.url)&&(W.evil=!0)}),G=Zs(G,function(W){return!W.evil}),G.length)X=Z6(Zs(G,function(W){return!W.evil})),A.attribs[V]=X;else{delete A.attribs[V];return}}catch{delete A.attribs[V];return}if(V==="class"){const G=c[w],W=c["*"],_e=h[w],xe=d[w],pe=d["*"],Yr=h["*"],cr=[_e,Yr].concat(xe,pe).filter(function(mt){return mt});if(G&&W?X=I(X,Ks(G,W),cr):X=I(X,G||W,cr),!X.length){delete A.attribs[V];return}}if(V==="style"){if(e.parseStyleAttributes)try{const G=X6(w+" {"+X+"}",{map:!1}),W=S(G,e.allowedStyles);if(X=T(W),X.length===0){delete A.attribs[V];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+w+" {"+X+`}", 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[V];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+V,X&&X.length?n+='="'+D(X,!0)+'"':e.allowedEmptyAttributes.includes(V)&&(n+='=""')}else delete A.attribs[V]}),e.selfClosing.indexOf(w)!==-1?n+=" />":(n+=">",A.innerText&&!B&&!e.textFilter&&(n+=D(A.innerText),N=!0)),P&&(n=i+D(n),i=""),A.openingTagLength=n.length-A.tagPosition},ontext:function(w){if(E)return;const O=b[b.length-1];let A;if(O&&(A=O.tag,w=O.innerText!==void 0?O.innerText:w),e.disallowedTagsMode==="completelyDiscard"&&!a(A))w="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(A==="script"||A==="style"))n+=w;else if(!N){const P=D(w,!1);e.textFilter?n+=e.textFilter(P,A):n+=P}if(b.length){const P=b[b.length-1];P.text+=w}},onclosetag:function(w,O){if(e.onCloseTag&&e.onCloseTag(w,O),E)if(C--,!C)E=!1;else return;const A=b.pop();if(!A)return;if(A.tag!==w){b.push(A);return}E=e.enforceHtmlBoundary?w==="html":!1,m--;const P=y[m];if(P){if(delete y[m],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){A.updateParentNodeText();return}i=n,n=""}if(v[m]&&(w=v[m],delete v[m]),e.exclusiveFilter){const B=e.exclusiveFilter(A);if(B==="excludeTag"){P&&(n=i,i=""),n=n.substring(0,A.tagPosition)+n.substring(A.tagPosition+A.openingTagLength);return}else if(B){n=n.substring(0,A.tagPosition);return}}if(A.updateParentNodeMediaChildren(),A.updateParentNodeText(),e.selfClosing.indexOf(w)!==-1||O&&!a(w)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){P&&(n=i,i="");return}n+="</"+w+">",P&&(n=i+D(n),i=""),N=!1}},e.parser);return k.write(t),k.end(),n;function R(){n="",m=0,b=[],y={},v={},E=!1,C=0}function D(w,O){return typeof w!="string"&&(w=w+""),e.parser.decodeEntities&&(w=w.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(w=w.replace(/"/g,"&quot;"))),w=w.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(w=w.replace(/"/g,"&quot;")),w}function $(w,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const B=O.indexOf("<!--");if(B===-1)break;const U=O.indexOf("-->",B+4);if(U===-1)break;O=O.substring(0,B)+O.substring(U+3)}const A=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!A)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const P=A[1].toLowerCase();return We(e.allowedSchemesByTag,w)?e.allowedSchemesByTag[w].indexOf(P)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(P)===-1}function L(w){if(w=w.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),w.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let B=0;B<100;B++)O+=`/${B}`;const A=new URL(w,O);return{isRelativeUrl:A&&A.hostname==="relative-site"&&A.protocol==="relative:",url:A}}function S(w,O){if(!O)return w;const A=w.nodes[0];let P;return O[A.selector]&&O["*"]?P=Ks(O[A.selector],O["*"]):P=O[A.selector]||O["*"],P&&(w.nodes[0].nodes=A.nodes.reduce(_(P),[])),w}function T(w){return w.nodes[0].nodes.reduce(function(O,A){return O.push(`${A.prop}:${A.value}${A.important?" !important":""}`),O},[]).join(";")}function _(w){return function(O,A){return We(w,A.prop)&&w[A.prop].some(function(B){return B.test(A.value)})&&O.push(A),O}}function I(w,O,A){return O?(w=w.split(/\s+/),w.filter(function(P){return O.indexOf(P)!==-1||A.some(function(B){return B.test(P)})}).join(" ")):w}}const t4={decodeEntities:!0};$r.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};$r.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,i){let u;if(r)for(u in e)i[u]=e[u];else i=e;return{tagName:t,attribs:i}}};const Zd=Kn(Q6),r4=[{command:"bold",icon:Q0,label:"Bold"},{command:"italic",icon:nf,label:"Italic"},{command:"underline",icon:sf,label:"Underline"},{command:"strikeThrough",icon:of,label:"Strikethrough"},{command:"insertUnorderedList",icon:af,label:"Bullet List"},{command:"insertOrderedList",icon:uf,label:"Numbered List"}],n4={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$/]}}},i4=({label:t,value:e,onChange:r})=>{const n=j.useRef(null),[i,u]=j.useState(!1),[a,o]=j.useState(""),s=j.useRef(null);j.useEffect(()=>{n.current&&n.current.innerHTML!==e&&(n.current.innerHTML=e||"")},[]);const l=b=>{var y;document.execCommand(b,!1,null),(y=n.current)==null||y.focus(),c()},c=()=>{if(n.current){const b=n.current.innerHTML,y=Zd(b,n4);r(y)}},h=()=>{const b=window.getSelection();b&&b.rangeCount>0&&(s.current=b.getRangeAt(0))},d=()=>{if(s.current){const b=window.getSelection();b==null||b.removeAllRanges(),b==null||b.addRange(s.current)}},f=()=>{h(),u(!0)},g=()=>{var b;if(a){d();let y=a.trim();y&&!y.match(/^https?:\/\//i)&&(y="https://"+y);try{new URL(y),document.execCommand("createLink",!1,y),c()}catch{}}u(!1),o(""),(b=n.current)==null||b.focus()},m=b=>{try{return document.queryCommandState(b)}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(_r,{children:[r4.map(({command:b,icon:y,label:v})=>p.jsxs(Ut,{children:[p.jsx(Vt,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:E=>{E.preventDefault(),l(b)},className:`p-1.5 rounded hover:bg-background transition-colors ${m(b)?"bg-background text-primary":"text-muted-foreground"}`,children:p.jsx(y,{className:"h-3.5 w-3.5"})})}),p.jsx(Ct,{side:"top",children:p.jsx("p",{children:v})})]},b)),p.jsx("div",{className:"w-px h-4 bg-border mx-1"}),p.jsxs(Ut,{children:[p.jsx(Vt,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:b=>{b.preventDefault(),f()},className:"p-1.5 rounded hover:bg-background transition-colors text-muted-foreground",children:p.jsx(pl,{className:"h-3.5 w-3.5"})})}),p.jsx(Ct,{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"}}),i&&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:a,onChange:b=>o(b.target.value),placeholder:"https://example.com",className:"w-full px-3 py-2 text-sm rounded border border-input bg-background",autoFocus:!0,onKeyDown:b=>{b.key==="Enter"&&(b.preventDefault(),g()),b.key==="Escape"&&(u(!1),o(""))}}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx("button",{onClick:()=>{u(!1),o("")},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"})]})]})})]})},u4={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$/]}}},Ga=({text:t="",html:e,fontSize:r={desktop:16},fontWeight:n="400",fontFamily:i="inherit",lineHeight:u={desktop:150},letterSpacing:a={desktop:0},textAlign:o="left",color:s="#000000",margin:l={top:0,right:0,bottom:0,left:0},textDecoration:c="none",textTransform:h="none",opacity:d=100})=>{const f=Ot(),g=Gn(),{connectors:{connect:m,drag:b},isActive:y}=te(D=>({isActive:D.events.selected})),v=$n(t,g),E=typeof l=="object"&&!("desktop"in l)?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`,C=Ye(r,f,16),N=Ye(u,f,150)/100,k=Ye(a,f,0),R=/<[^>]+>/.test(v);return p.jsx("div",{ref:D=>D&&m(b(D)),className:`cursor-move ${y?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${C}px`,fontWeight:n,fontFamily:i,lineHeight:N,letterSpacing:`${k}px`,textAlign:o,color:s,margin:E,textDecoration:c,textTransform:h,opacity:d/100},children:e||R?p.jsx("div",{dangerouslySetInnerHTML:{__html:Zd($n(e||v,g),u4)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):p.jsx("p",{children:v})})},a4=()=>{const{actions:{setProp:t},props:e}=te(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(q,{title:"Content",defaultOpen:!0,children:p.jsx(i4,{label:"Text",value:e.html??e.text,onChange:n=>t(i=>{i.html=null,i.text=n})})}),p.jsxs(q,{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(i=>i.fontFamily=n)}),p.jsx(Ln,{label:"Size",values:e.fontSize,onChange:n=>t(i=>i.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(i=>i.fontWeight=n)}),p.jsx(Mn,{label:"Line Height",values:e.lineHeight,onChange:n=>t(i=>i.lineHeight=n),min:80,max:250,unit:"%",defaultValue:150}),p.jsx(Ln,{label:"Letter Spacing",values:e.letterSpacing,onChange:n=>t(i=>i.letterSpacing=n),min:-5,max:20,defaultValue:0}),p.jsx(Ke,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Fu,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Hu,{className:"h-3 w-3"})},{value:"right",label:p.jsx(zu,{className:"h-3 w-3"})}],onChange:n=>t(i=>i.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(i=>i.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(i=>i.textDecoration=n)})]}),p.jsxs(q,{title:"Color",defaultOpen:!1,children:[p.jsx(De,{label:"Text Color",value:e.color||"#000000",onChange:n=>t(i=>i.color=n)}),p.jsx(Mn,{label:"Opacity",values:e.opacity,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(q,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ee,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})}),p.jsx(q,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(qc,{})})]})};Ga.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:{top:0,right:0,bottom:0,left:0},textDecoration:"none",textTransform:"none",opacity:{desktop:100}},related:{settings:a4}};const Xa=({text:t="Click me",variant:e="solid",size:r="md",backgroundColor:n="#FF6B35",textColor:i="#ffffff",borderColor:u="#FF6B35",borderWidth:a=0,borderRadius:o=8,fontWeight:s="500",fontSize:l="auto",width:c="auto",paddingX:h=16,paddingY:d=10,margin:f={top:0,right:0,bottom:0,left:0},boxShadow:g="none",opacity:m=100})=>{const{connectors:{connect:b,drag:y},isActive:v}=te(_=>({isActive:_.events.selected})),E={sm:{px:12,py:6,fs:14},md:{px:16,py:10,fs:16},lg:{px:24,py:14,fs:18}},C=E[r]||E.md,N=h==="auto"?C.px:h,k=d==="auto"?C.py:d,R=l==="auto"?C.fs:l,D=typeof f=="object"?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:`${f}px`,$=e==="outline"?"transparent":n,L=e==="outline"?n:i,S=e==="outline"?2:a,T=e==="outline"?n:u;return p.jsx("button",{ref:_=>_&&b(y(_)),className:`cursor-move transition-all hover:opacity-90 ${v?"ring-2 ring-primary ring-offset-2":""}`,style:{backgroundColor:$,color:L,borderWidth:`${S}px`,borderColor:T,borderStyle:"solid",borderRadius:`${o}px`,fontWeight:s,fontSize:`${R}px`,padding:`${k}px ${N}px`,margin:D,width:c==="full"?"100%":"auto",boxShadow:g==="none"?"none":g,opacity:m/100},children:t})},o4=()=>{const{actions:{setProp:t},props:e}=te(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(q,{title:"Content",defaultOpen:!0,children:p.jsx(pt,{label:"Text",value:e.text,onChange:n=>t(i=>i.text=n)})}),p.jsxs(q,{title:"Style",defaultOpen:!0,children:[p.jsx(Ke,{label:"Variant",value:e.variant||"solid",options:[{value:"solid",label:"Solid"},{value:"outline",label:"Outline"}],onChange:n=>t(i=>i.variant=n)}),p.jsx(Ke,{label:"Size Preset",value:e.size||"md",options:[{value:"sm",label:"S"},{value:"md",label:"M"},{value:"lg",label:"L"}],onChange:n=>t(i=>i.size=n)}),p.jsx(Ke,{label:"Width",value:e.width||"auto",options:[{value:"auto",label:"Auto"},{value:"full",label:"Full"}],onChange:n=>t(i=>i.width=n)})]}),p.jsxs(q,{title:"Colors",defaultOpen:!0,children:[p.jsx(De,{label:"Background",value:e.backgroundColor||"#FF6B35",onChange:n=>t(i=>i.backgroundColor=n)}),p.jsx(De,{label:"Text",value:e.textColor||"#ffffff",onChange:n=>t(i=>i.textColor=n)}),p.jsx(mi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%"})]}),p.jsxs(q,{title:"Typography",defaultOpen:!1,children:[p.jsx(Q,{label:"Font Size",value:e.fontSize==="auto"?16:e.fontSize,onChange:n=>t(i=>i.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(i=>i.fontWeight=n)})]}),p.jsxs(q,{title:"Padding",defaultOpen:!1,children:[p.jsx(Q,{label:"Horizontal",value:e.paddingX||16,onChange:n=>t(i=>i.paddingX=n),max:64}),p.jsx(Q,{label:"Vertical",value:e.paddingY||10,onChange:n=>t(i=>i.paddingY=n),max:48})]}),p.jsxs(q,{title:"Border",defaultOpen:!1,children:[p.jsx(Q,{label:"Radius",value:e.borderRadius||8,onChange:n=>t(i=>i.borderRadius=n),max:50}),p.jsx(Q,{label:"Width",value:e.borderWidth||0,onChange:n=>t(i=>i.borderWidth=n),max:10}),p.jsx(De,{label:"Color",value:e.borderColor||"#FF6B35",onChange:n=>t(i=>i.borderColor=n)})]}),p.jsx(q,{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(i=>i.boxShadow=n)})}),p.jsx(q,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ee,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};Xa.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:{top:0,right:0,bottom:0,left:0},boxShadow:"none",opacity:100},related:{settings:o4}};const wr={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}},Ya=({text:t="Heading",level:e=2,textAlign:r="left",color:n="#000000",fontWeight:i="700",fontFamily:u="inherit",fontSize:a="auto",lineHeight:o={desktop:120},letterSpacing:s={desktop:-.5},margin:l={top:0,right:0,bottom:16,left:0},textTransform:c="none",opacity:h={desktop:100}})=>{var D,$,L;const d=Ot(),f=Gn(),{connectors:{connect:g,drag:m},isActive:b}=te(S=>({isActive:S.events.selected})),y=$n(t,f),v=`h${e}`;let E;a==="auto"?E=((D=wr[e])==null?void 0:D[d])||(($=wr[e])==null?void 0:$.desktop)||36:E=Ye(a,d,((L=wr[e])==null?void 0:L.desktop)||36);const C=Ye(o,d,120)/100,N=Ye(s,d,-.5),k=Ye(h,d,100),R=typeof l=="object"&&!("desktop"in l)?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`;return p.jsx(v,{ref:S=>S&&g(m(S)),className:`cursor-move ${b?"ring-2 ring-primary ring-offset-2":""}`,style:{textAlign:r,color:n,fontWeight:i,fontFamily:u,fontSize:`${E}px`,lineHeight:C,letterSpacing:`${N}px`,margin:R,textTransform:c,opacity:k/100},children:y})},s4=()=>{var u;const t=Ot(),{actions:{setProp:e},props:r}=te(a=>({props:a.data.props})),n=typeof r.margin=="object"&&!("desktop"in r.margin)?r.margin:{top:0,right:0,bottom:16,left:0},i=()=>{var a;return r.fontSize==="auto"?((a=wr[r.level||2])==null?void 0:a[t])||36:Ye(r.fontSize,t,36)};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(q,{title:"Content",defaultOpen:!0,children:[p.jsx(pt,{label:"Text",value:r.text,onChange:a=>e(o=>o.text=a)}),p.jsx(Ke,{label:"Level",value:r.level||2,options:[{value:1,label:"H1"},{value:2,label:"H2"},{value:3,label:"H3"},{value:4,label:"H4"}],onChange:a=>e(o=>{o.level=a,o.fontSize})})]}),p.jsxs(q,{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:a=>e(o=>o.fontFamily=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:"Size Mode"}),p.jsx("button",{onClick:()=>e(a=>a.fontSize=a.fontSize==="auto"?{desktop:i()}:"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(Ln,{label:"Size",values:r.fontSize,onChange:a=>e(o=>o.fontSize=a),min:12,max:120,defaultValue:((u=wr[r.level||2])==null?void 0:u.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:a=>e(o=>o.fontWeight=a)}),p.jsx(Mn,{label:"Line Height",values:r.lineHeight,onChange:a=>e(o=>o.lineHeight=a),min:80,max:200,unit:"%",defaultValue:120}),p.jsx(Ln,{label:"Letter Spacing",values:r.letterSpacing,onChange:a=>e(o=>o.letterSpacing=a),min:-5,max:20,defaultValue:-.5}),p.jsx(Ke,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:p.jsx(Fu,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Hu,{className:"h-3 w-3"})},{value:"right",label:p.jsx(zu,{className:"h-3 w-3"})}],onChange:a=>e(o=>o.textAlign=a)}),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:a=>e(o=>o.textTransform=a)})]}),p.jsxs(q,{title:"Color",defaultOpen:!1,children:[p.jsx(De,{label:"Text Color",value:r.color||"#000000",onChange:a=>e(o=>o.color=a)}),p.jsx(Mn,{label:"Opacity",values:r.opacity,onChange:a=>e(o=>o.opacity=a),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(q,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ee,{label:"Margin",values:n,onChange:a=>e(o=>o.margin=a)})}),p.jsx(q,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(qc,{})})]})};Ya.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:s4}};const Ja=({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:i="none",objectFit:u="cover",borderRadius:a=8,margin:o={top:0,right:0,bottom:0,left:0},opacity:s=100,boxShadow:l="none"})=>{const{connectors:{connect:c,drag:h},isActive:d}=te(g=>({isActive:g.events.selected})),f=typeof o=="object"?`${o.top}px ${o.right}px ${o.bottom}px ${o.left}px`:`${o}px`;return p.jsx("img",{ref:g=>g&&c(h(g)),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:i==="none"?"none":`${i}px`,objectFit:u,borderRadius:`${a}px`,margin:f,opacity:s/100,boxShadow:l==="none"?"none":l,display:"block"}})},l4=()=>{const{actions:{setProp:t},props:e}=te(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(q,{title:"Source",defaultOpen:!0,children:[p.jsx(pt,{label:"Image URL",value:e.src,onChange:n=>t(i=>i.src=n)}),p.jsx(pt,{label:"Alt Text",value:e.alt,onChange:n=>t(i=>i.alt=n)})]}),p.jsxs(q,{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(i=>i.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(Q,{label:"Width (px)",value:e.width,onChange:n=>t(i=>i.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(i=>i.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(Q,{label:"Height (px)",value:e.height,onChange:n=>t(i=>i.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(i=>i.objectFit=n)})]}),p.jsxs(q,{title:"Style",defaultOpen:!1,children:[p.jsx(Q,{label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(i=>i.borderRadius=n),max:100}),p.jsx(mi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.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(i=>i.boxShadow=n)})]}),p.jsx(q,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ee,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};Ja.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:{top:0,right:0,bottom:0,left:0},opacity:100,boxShadow:"none"},related:{settings:l4}};const Ka=({color:t="#e5e5e5",height:e=1,width:r="full",style:n="solid",margin:i={top:16,right:0,bottom:16,left:0},opacity:u=100})=>{const{connectors:{connect:a,drag:o},isActive:s}=te(c=>({isActive:c.events.selected})),l=typeof i=="object"?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:`${i}px`;return p.jsx("hr",{ref:c=>c&&a(o(c)),className:`cursor-move border-0 ${s?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":`${r}%`,height:`${e}px`,backgroundColor:t,margin:l,opacity:u/100,borderStyle:n,borderWidth:n==="solid"?0:`${e}px`,borderColor:t}})},c4=()=>{const{actions:{setProp:t},props:e}=te(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(q,{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(i=>i.style=n)}),p.jsx(De,{label:"Color",value:e.color||"#e5e5e5",onChange:n=>t(i=>i.color=n)}),p.jsx(Q,{label:"Thickness",value:e.height||1,onChange:n=>t(i=>i.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(i=>i.width=n==="full"?"full":50)}),e.width!=="full"&&p.jsx(Q,{label:"Width %",value:e.width,onChange:n=>t(i=>i.width=n),min:10,max:100,unit:"%"})]}),p.jsx(q,{title:"Spacing",defaultOpen:!0,children:p.jsx(Ee,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};Ka.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:c4}};const Za=({height:t=40,responsive:e=!1,mobileHeight:r=20})=>{const{connectors:{connect:n,drag:i},isActive:u}=te(a=>({isActive:a.events.selected}));return p.jsxs("div",{ref:a=>a&&n(i(a)),className:`cursor-move w-full relative group ${u?"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"})]})},d4=()=>{const{actions:{setProp:t},props:e}=te(r=>({props:r.data.props}));return p.jsx("div",{className:"space-y-3",children:p.jsxs(q,{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(i=>i.height=n[r])}}),p.jsx(Q,{label:"Height",value:e.height||40,onChange:r=>t(n=>n.height=r),min:4,max:300})]})})};Za.craft={displayName:"Spacer",props:{height:40,responsive:!1,mobileHeight:20},related:{settings:d4}};const f4=window.location.href.includes("localhost")?"http://localhost:5000/api":"https://api.myracereel.com/api";function p4(){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 h4(t,e={}){const r=await fetch(`${f4}${t}`,{...e,headers:{...p4(),...e.headers}}),n=await r.json();if(!r.ok)throw new Error(n.message||"Request failed");return n}async function b4(t,e){return(await h4(`/videos/${t}/${e||""}`)).data}function g4(t){const e=x.useRef({value:t,previous:t});return x.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var Ai="Checkbox",[m4]=si(Ai),[y4,Qa]=m4(Ai);function v4(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:i,disabled:u,form:a,name:o,onCheckedChange:s,required:l,value:c="on",internal_do_not_use_render:h}=t,[d,f]=Sa({prop:r,defaultProp:i??!1,onChange:s,caller:Ai}),[g,m]=x.useState(null),[b,y]=x.useState(null),v=x.useRef(!1),E=g?!!a||!!g.closest("form"):!0,C={checked:d,disabled:u,setChecked:f,control:g,setControl:m,name:o,form:a,value:c,hasConsumerStoppedPropagationRef:v,required:l,defaultChecked:ot(i)?!1:i,isFormControl:E,bubbleInput:b,setBubbleInput:y};return p.jsx(y4,{scope:e,...C,children:x4(h)?h(C):n})}var Qd="CheckboxTrigger",e0=x.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},i)=>{const{control:u,value:a,disabled:o,checked:s,required:l,setControl:c,setChecked:h,hasConsumerStoppedPropagationRef:d,isFormControl:f,bubbleInput:g}=Qa(Qd,t),m=Be(i,c),b=x.useRef(s);return x.useEffect(()=>{const y=u==null?void 0:u.form;if(y){const v=()=>h(b.current);return y.addEventListener("reset",v),()=>y.removeEventListener("reset",v)}},[u,h]),p.jsx(Oe.button,{type:"button",role:"checkbox","aria-checked":ot(s)?"mixed":s,"aria-required":l,"data-state":u0(s),"data-disabled":o?"":void 0,disabled:o,value:a,...n,ref:m,onKeyDown:Se(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:Se(r,y=>{h(v=>ot(v)?!0:!v),g&&f&&(d.current=y.isPropagationStopped(),d.current||y.stopPropagation())})})});e0.displayName=Qd;var eo=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:u,required:a,disabled:o,value:s,onCheckedChange:l,form:c,...h}=t;return p.jsx(v4,{__scopeCheckbox:r,checked:i,defaultChecked:u,disabled:o,required:a,onCheckedChange:l,name:n,form:c,value:s,internal_do_not_use_render:({isFormControl:d})=>p.jsxs(p.Fragment,{children:[p.jsx(e0,{...h,ref:e,__scopeCheckbox:r}),d&&p.jsx(i0,{__scopeCheckbox:r})]})})});eo.displayName=Ai;var t0="CheckboxIndicator",r0=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...i}=t,u=Qa(t0,r);return p.jsx(pi,{present:n||ot(u.checked)||u.checked===!0,children:p.jsx(Oe.span,{"data-state":u0(u.checked),"data-disabled":u.disabled?"":void 0,...i,ref:e,style:{pointerEvents:"none",...t.style}})})});r0.displayName=t0;var n0="CheckboxBubbleInput",i0=x.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:i,checked:u,defaultChecked:a,required:o,disabled:s,name:l,value:c,form:h,bubbleInput:d,setBubbleInput:f}=Qa(n0,t),g=Be(r,f),m=g4(u),b=xc(n);x.useEffect(()=>{const v=d;if(!v)return;const E=window.HTMLInputElement.prototype,N=Object.getOwnPropertyDescriptor(E,"checked").set,k=!i.current;if(m!==u&&N){const R=new Event("click",{bubbles:k});v.indeterminate=ot(u),N.call(v,ot(u)?!1:u),v.dispatchEvent(R)}},[d,m,u,i]);const y=x.useRef(ot(u)?!1:u);return p.jsx(Oe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:o,disabled:s,name:l,value:c,form:h,...e,tabIndex:-1,ref:g,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});i0.displayName=n0;function x4(t){return typeof t=="function"}function ot(t){return t==="indeterminate"}function u0(t){return ot(t)?"indeterminate":t?"checked":"unchecked"}const a0=x.forwardRef(({className:t,...e},r)=>p.jsx(eo,{ref:r,className:ye("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(r0,{className:ye("flex items-center justify-center text-current"),children:p.jsx(Uu,{className:"h-4 w-4"})})}));a0.displayName=eo.displayName;const w4=({onDownload:t,disabled:e=!1})=>{const[r,n]=j.useState(!0),[i,u]=j.useState(!1),a=()=>{r&&t&&!i&&(t(),u(!0))};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(Sr,{disabled:!r||i||e,onClick:a,className:"w-full",children:i?p.jsxs(p.Fragment,{children:[p.jsx(Uu,{className:"h-4 w-4 mr-2"}),"Thank you!"]}):p.jsxs(p.Fragment,{children:[p.jsx(rf,{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(a0,{checked:r,onCheckedChange:o=>n(o===!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"}),"."]})]})]})},Xr=t=>{const{connectors:{connect:e,drag:r},selected:n}=te(i=>({selected:i.events.selected}));return p.jsx("div",{ref:i=>i&&e(r(i)),style:Ea(t),className:Kt(`min-h-2.5 ${n?"outline outline-blue-500":""}`,"w-full flex justify-center",t.className),children:t.children})};Xr.craft={props:Ta,displayName:"Wrapper",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName==="Container")},related:{settings:Aa}};const S4=(t,e)=>{if(typeof t!="object"||t===null)return t;const r=["mobile","tablet","small","desktop"],n=r.indexOf(e);for(let i=n;i>=0;i--)if(t[r[i]]!==void 0)return t[r[i]];return t.desktop??t.mobile??0},C4=({locationId:t,bibId:e,editorEnabled:r,videoTitle:n})=>{const i=j.useRef(null),{data:u,isLoading:a,error:o}=f0.useQuery({queryKey:["video",t,e],queryFn:()=>b4(t,e),enabled:!!t});if(a)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(o||!u)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(ef,{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:s}=u,l=async()=>{if(!r)try{const c=document.createElement("a");c.href=s.mp4_hr_url,c.download=`${s.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(Xr,{children:p.jsx(Hr,{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:[s.name," (",s.start_no,")"]}),p.jsxs("video",{ref:i,controls:!0,controlsList:"nodownload",className:"w-full max-w-2xl rounded-lg shadow-md",children:[p.jsx("source",{src:s.mp4_hr_url,type:"video/mp4"}),"Your browser does not support HTML5 video."]}),p.jsx(w4,{onDownload:l,disabled:r})]})})})})},to=({padding:t={mobile:16,desktop:24},margin:e={top:0,right:0,bottom:0,left:0},background:r="transparent",borderRadius:n=8,boxShadow:i="none"})=>{const u=Ot(),a=Gn(),{connectors:{connect:o,drag:s},selected:l}=te(b=>({selected:b.events.selected})),{enabled:c}=pa(b=>({enabled:b.options.enabled})),h=S4(t,u),d={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)"},f={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:d[i]||"none"},g=(a==null?void 0:a.videos)||[],m=g.length>0;return p.jsx("div",{ref:b=>b&&o(s(b)),style:f,className:`transition-all ${l?"ring-2 ring-primary ring-offset-2":""}`,children:m?p.jsx("div",{className:"space-y-6",children:g.map(b=>p.jsx(C4,{locationId:b.locationId,bibId:a==null?void 0:a.bibId,editorEnabled:c,videoTitle:b.name||b.locationId},b.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(fl,{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."})]})]})})},E4=()=>{const{actions:{setProp:t},padding:e,margin:r,background:n,borderRadius:i,boxShadow:u}=te(o=>({padding:o.data.props.padding,margin:o.data.props.margin,background:o.data.props.background,borderRadius:o.data.props.borderRadius,boxShadow:o.data.props.boxShadow})),a=[{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(q,{title:"Info",children:p.jsx("p",{className:"text-xs text-muted-foreground",children:"All available videos will be displayed automatically."})}),p.jsxs(q,{title:"Style",children:[p.jsx(Q,{label:"Padding",value:(e==null?void 0:e.desktop)??24,onChange:o=>t(s=>s.padding={...s.padding,desktop:o,mobile:o}),min:0,max:100}),p.jsx(Q,{label:"Border Radius",value:i,onChange:o=>t(s=>s.borderRadius=o),min:0,max:50}),p.jsx(De,{label:"Background",value:n,onChange:o=>t(s=>s.background=o)}),p.jsx(J,{label:"Shadow",value:u,options:a,onChange:o=>t(s=>s.boxShadow=o)})]}),p.jsx(q,{title:"Spacing",children:p.jsx(Ee,{label:"Margin",values:r,onChange:o=>t(s=>s.margin=o)})})]})};to.craft={displayName:"Video",props:{padding:{mobile:16,desktop:24},margin:{top:0,right:0,bottom:0,left:0},background:"transparent",borderRadius:8,boxShadow:"none"},related:{settings:E4}};const ro=({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:i="stretch",children:u})=>{const{connectors:{connect:a,drag:o},isActive:s}=te(h=>({isActive:h.events.selected})),l=typeof r=="object"?`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`:`${r}px`,c=typeof n=="object"?`${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`:`${n}px`;return p.jsx("div",{ref:h=>h&&a(o(h)),className:`cursor-move w-full ${s?"ring-2 ring-primary ring-offset-2":""}`,style:{display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gap:`${e}px`,padding:l,margin:c,alignItems:i},children:u})},T4=()=>{const{actions:{setProp:t},props:e}=te(i=>({props:i.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(q,{title:"Layout",defaultOpen:!0,children:[p.jsx(Ke,{label:"Columns",value:e.columns||2,options:[{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"}],onChange:i=>t(u=>u.columns=i)}),p.jsx(Q,{label:"Gap",value:e.gap||16,onChange:i=>t(u=>u.gap=i),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:i=>t(u=>u.alignItems=i)})]}),p.jsxs(q,{title:"Spacing",defaultOpen:!1,children:[p.jsx(Ee,{label:"Padding",values:r,onChange:i=>t(u=>u.padding=i)}),p.jsx(Ee,{label:"Margin",values:n,onChange:i=>t(u=>u.margin=i)})]})]})};ro.craft={displayName:"Columns",props:{columns:2,gap:16,padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},alignItems:"stretch"},related:{settings:T4}};const no=({text:t="Click here",url:e="#",target:r="_self",fontSize:n=16,fontWeight:i="400",color:u="#0066cc",hoverColor:a="#0052a3",textDecoration:o="underline",textAlign:s="left",margin:l={top:0,right:0,bottom:0,left:0},opacity:c=100})=>{const{connectors:{connect:h,drag:d},isActive:f}=te(m=>({isActive:m.events.selected})),g=typeof l=="object"?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`;return p.jsx("a",{ref:m=>m&&h(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 ${f?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${n}px`,fontWeight:i,color:u,textDecoration:o,textAlign:s,margin:g,opacity:c/100,display:"block"},children:t})},A4=()=>{const{actions:{setProp:t},props:e}=te(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(q,{title:"Content",defaultOpen:!0,children:[p.jsx(pt,{label:"Text",value:e.text,onChange:n=>t(i=>i.text=n)}),p.jsx(pt,{label:"URL",value:e.url,onChange:n=>t(i=>i.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(i=>i.target=n)})]}),p.jsxs(q,{title:"Typography",defaultOpen:!0,children:[p.jsx(Q,{label:"Font Size",value:e.fontSize||16,onChange:n=>t(i=>i.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(i=>i.fontWeight=n)}),p.jsx(J,{label:"Decoration",value:e.textDecoration||"underline",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"}],onChange:n=>t(i=>i.textDecoration=n)}),p.jsx(Ke,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Fu,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Hu,{className:"h-3 w-3"})},{value:"right",label:p.jsx(zu,{className:"h-3 w-3"})}],onChange:n=>t(i=>i.textAlign=n)})]}),p.jsxs(q,{title:"Color",defaultOpen:!1,children:[p.jsx(De,{label:"Link Color",value:e.color||"#0066cc",onChange:n=>t(i=>i.color=n)}),p.jsx(mi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%"})]}),p.jsx(q,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ee,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};no.craft={displayName:"Link",props:{text:"Click here",url:"#",target:"_self",fontSize:16,fontWeight:"400",color:"#0066cc",hoverColor:"#0052a3",textDecoration:"underline",textAlign:"left",margin:{top:0,right:0,bottom:0,left:0},opacity:100},related:{settings:A4}};const io=({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:i="none",objectFit:u="cover",borderRadius:a=8,margin:o={top:0,right:0,bottom:0,left:0},opacity:s=100,boxShadow:l="none"})=>{const{connectors:{connect:c,drag:h},isActive:d}=te(g=>({isActive:g.events.selected})),f=typeof o=="object"?`${o.top}px ${o.right}px ${o.bottom}px ${o.left}px`:`${o}px`;return p.jsx("img",{ref:g=>g&&c(h(g)),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:i==="none"?"none":`${i}px`,objectFit:u,borderRadius:`${a}px`,margin:f,opacity:s/100,boxShadow:l==="none"?"none":l,display:"block"}})},N4=()=>{const{actions:{setProp:t},props:e}=te(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(q,{title:"Source",defaultOpen:!0,children:[p.jsx(pt,{label:"Image URL",value:e.src,onChange:n=>t(i=>i.src=n)}),p.jsx(pt,{label:"Alt Text",value:e.alt,onChange:n=>t(i=>i.alt=n)})]}),p.jsxs(q,{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(i=>i.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(Q,{label:"Width (px)",value:e.width,onChange:n=>t(i=>i.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(i=>i.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(Q,{label:"Height (px)",value:e.height,onChange:n=>t(i=>i.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(i=>i.objectFit=n)})]}),p.jsxs(q,{title:"Style",defaultOpen:!1,children:[p.jsx(Q,{label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(i=>i.borderRadius=n),max:100}),p.jsx(mi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.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(i=>i.boxShadow=n)})]}),p.jsx(q,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ee,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};io.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:{top:0,right:0,bottom:0,left:0},opacity:100,boxShadow:"none"},related:{settings:N4}};function Qs(t=12){const e="abcdefghijklmnopqrstuvwxyz",r=e+"0123456789";let n=e[Math.floor(Math.random()*e.length)];for(let i=1;i<t;i++)n+=r[Math.floor(Math.random()*r.length)];return n}const uo=({children:t,className:e})=>{const{connectors:{connect:r,drag:n},selected:i}=te(o=>({selected:o.events.selected})),u=Qs(),a=Qs();return p.jsx("div",{ref:o=>{o&&r(n(o))},className:Kt(`min-h-2.5 ${i?"border border-blue-500":""}`,"w-full flex justify-center",e),children:p.jsx(Ht,{is:Xr,id:`section-wrapper-${u}`,children:p.jsx(Ht,{is:Hr,canvas:!0,id:`section-container-${a}`,children:t})})})};uo.craft={displayName:"Section",props:{},rules:{canDrag:()=>!0}};const Vi={mobile:{width:375,label:"Mobile",icon:Xu},tablet:{width:768,label:"Tablet",icon:Yu},small:{width:1024,label:"Small",icon:Gu},desktop:{width:1440,label:"Desktop",icon:Ju}},O4=({editorState:t,deviceSize:e})=>p.jsx(tc,{resolver:{Body,Wrapper:Xr,Section:uo,Container:Hr,Text:Ga,ButtonComponent:Xa,Heading:Ya,Image:Ja,Img:io,Divider:Ka,Spacer:Za,Video:to,Columns:ro,Link:no},enabled:!1,children:p.jsx(nc,{value:e,children:p.jsx(j4,{editorState:t})})}),j4=({editorState:t})=>{const{actions:e}=pa();return j.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(Jl,{})},_4=({isOpen:t,onClose:e,eventData:r,editorState:n})=>{var o,s;const[i,u]=j.useState("desktop");if(j.useEffect(()=>{const l=c=>{c.key==="Escape"&&e()};if(t)return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[t,e]),!t)return null;const a=((o=Vi[i])==null?void 0:o.width)||1440;return p.jsxs("div",{className:"fixed inset-0 z-50 bg-background flex flex-col",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:["(",(s=Vi[i])==null?void 0:s.width,"px)"]})]}),p.jsx("div",{className:"flex items-center gap-1 bg-muted rounded-lg p-1",children:Object.entries(Vi).map(([l,{label:c,icon:h}])=>p.jsxs(Sr,{variant:"ghost",size:"sm",onClick:()=>u(l),className:xf("h-8 px-3 gap-2",i===l&&"bg-background shadow-sm"),children:[p.jsx(h,{className:"h-4 w-4"}),p.jsx("span",{className:"hidden sm:inline",children:c})]},l))}),p.jsx(Sr,{variant:"ghost",size:"icon",onClick:e,children:p.jsx(lf,{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:`${a}px`,maxWidth:"100%"},children:p.jsx(qu,{value:r,children:n?p.jsx(O4,{editorState:n,deviceSize:i}):p.jsx("div",{className:"flex items-center justify-center h-48 text-muted-foreground",children:"No content to preview. Start building your page first."})})})})})]})},o0=j.createContext({fetchVideoByLocation:null}),P4=({children:t,fetchVideoByLocation:e})=>p.jsx(o0.Provider,{value:{fetchVideoByLocation:e},children:t}),k4=()=>j.useContext(o0);exports.ApiConfigProvider=P4;exports.Button=Sr;exports.ButtonComponent=Xa;exports.Card=$u;exports.CardContent=Bu;exports.ChevronDown=Vu;exports.ChevronRight=Wu;exports.Columns=ro;exports.Container=Hr;exports.ContainerSettings=Aa;exports.DEVICE_ORDER=Ce;exports.De=Jl;exports.DeviceSizeProvider=nc;exports.Divider=Ka;exports.EventDataProvider=qu;exports.Film=fl;exports.Heading=Ya;exports.Image=Ja;exports.Img=io;exports.Link=pl;exports.Link$1=no;exports.Monitor=Gu;exports.Ne=te;exports.PageBuilder=Y0;exports.Pe=pa;exports.Presence=pi;exports.PreviewModal=_4;exports.Primitive=Oe;exports.Section=uo;exports.Smartphone=Xu;exports.Spacer=Za;exports.TEMPLATE_VARIABLES=jx;exports.Tablet=Yu;exports.Text=Ga;exports.Tooltip=Ut;exports.TooltipContent=Ct;exports.TooltipProvider=_r;exports.TooltipTrigger=Vt;exports.Tv=Ju;exports.Video=to;exports.Wrapper=Xr;exports.clsx=Kt;exports.cn=ye;exports.composeEventHandlers=Se;exports.composeRefs=Xn;exports.createContextScope=si;exports.createLucideIcon=ae;exports.cva=bl;exports.divDefaultProps=Ta;exports.divStyle=Ea;exports.getPlaceholderPaths=Ox;exports.getResponsiveValue=Ye;exports.hasTemplatePlaceholders=Nx;exports.ke=Ht;exports.processTemplate=$n;exports.useApiConfig=k4;exports.useCallbackRef=Br;exports.useComposedRefs=Be;exports.useControllableState=Sa;exports.useDeviceSize=Ot;exports.useEventData=Gn;exports.useId=oc;exports.useLayoutEffect2=ct;exports.ut=tc;