@tech_carthagos/page-builder 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CraftEditor-B8VkDZHb.js +2256 -0
- package/dist/CraftEditor-DHRDnczs.cjs +72 -0
- package/dist/{index-g1Iz35Bb.js → index-DWRynqVc.js} +3213 -2760
- package/dist/index-GH-PwMSN.cjs +189 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +5 -5
- package/dist/styles.css +3 -0
- package/dist-types/Builder.d.ts +3 -0
- package/dist-types/Builder.d.ts.map +1 -0
- package/dist-types/CraftEditor.d.ts.map +1 -1
- package/dist-types/Editor.d.ts.map +1 -1
- package/dist-types/editor/Toolbox.d.ts.map +1 -1
- package/dist-types/examples/App.d.ts +3 -0
- package/dist-types/examples/App.d.ts.map +1 -0
- package/dist-types/examples/main.d.ts +2 -0
- package/dist-types/examples/main.d.ts.map +1 -0
- package/dist-types/lib/api.d.ts.map +1 -1
- package/dist-types/user/Columns.d.ts.map +1 -1
- package/dist-types/user/Container.d.ts +47 -71
- package/dist-types/user/Container.d.ts.map +1 -1
- package/dist-types/user/ContainerOld.d.ts +77 -0
- package/dist-types/user/ContainerOld.d.ts.map +1 -0
- package/dist-types/user/Div.d.ts +66 -8
- package/dist-types/user/Div.d.ts.map +1 -1
- package/dist-types/user/Footer.d.ts +72 -0
- package/dist-types/user/Footer.d.ts.map +1 -0
- package/dist-types/user/Img.d.ts +43 -15
- package/dist-types/user/Img.d.ts.map +1 -1
- package/dist-types/user/Section.d.ts +2 -2
- package/dist-types/user/Section.d.ts.map +1 -1
- package/dist-types/user/Text.d.ts +2 -1
- package/dist-types/user/Text.d.ts.map +1 -1
- package/dist-types/user/Video.d.ts.map +1 -1
- package/dist-types/user/Wrapper.d.ts +36 -6
- package/dist-types/user/Wrapper.d.ts.map +1 -1
- package/package.json +11 -4
- package/dist/CraftEditor--t4EDwwC.cjs +0 -72
- package/dist/CraftEditor-swRFkvql.js +0 -1800
- package/dist/index-CsqvGzT3.cjs +0 -189
package/dist/index-CsqvGzT3.cjs
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
"use strict";const h=require("react/jsx-runtime"),j=require("react"),Ks=require("react-dom"),l0=require("@tanstack/react-query");function Zs(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=Zs(j),Qs=Zs(Ks);function el(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=el(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Tt(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=el(t))&&(n&&(n+=" "),n+=e);return n}const Lu="-",c0=t=>{const e=f0(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:o=>{const a=o.split(Lu);return a[0]===""&&a.length!==1&&a.shift(),tl(a,e)||d0(o)},getConflictingClassGroupIds:(o,a)=>{const s=r[o]||[];return a&&n[o]?[...s,...n[o]]:s}}},tl=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),i=n?tl(t.slice(1),n):void 0;if(i)return i;if(e.validators.length===0)return;const u=t.join(Lu);return(o=e.validators.find(({validator:a})=>a(u)))==null?void 0:o.classGroupId},oa=/^\[(.+)\]$/,d0=t=>{if(oa.test(t)){const e=oa.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},f0=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return h0(Object.entries(t.classGroups),r).forEach(([u,o])=>{Vi(o,n,u,e)}),n},Vi=(t,e,r,n)=>{t.forEach(i=>{if(typeof i=="string"){const u=i===""?e:aa(e,i);u.classGroupId=r;return}if(typeof i=="function"){if(p0(i)){Vi(i(n),e,r,n);return}e.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([u,o])=>{Vi(o,aa(e,u),r,n)})})},aa=(t,e)=>{let r=t;return e.split(Lu).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},p0=t=>t.isThemeGetter,h0=(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(([o,a])=>[e+o,a])):u);return[r,i]}):t,b0=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const i=(u,o)=>{r.set(u,o),e++,e>t&&(e=0,n=r,r=new Map)};return{get(u){let o=r.get(u);if(o!==void 0)return o;if((o=n.get(u))!==void 0)return i(u,o),o},set(u,o){r.has(u)?r.set(u,o):i(u,o)}}},rl="!",g0=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,i=e[0],u=e.length,o=a=>{const s=[];let l=0,c=0,p;for(let b=0;b<a.length;b++){let y=a[b];if(l===0){if(y===i&&(n||a.slice(b,b+u)===e)){s.push(a.slice(c,b)),c=b+u;continue}if(y==="/"){p=b;continue}}y==="["?l++:y==="]"&&l--}const d=s.length===0?a:a.substring(c),f=d.startsWith(rl),g=f?d.substring(1):d,m=p&&p>c?p-c:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:m}};return r?a=>r({className:a,parseClassName:o}):o},m0=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},y0=t=>({cache:b0(t.cacheSize),parseClassName:g0(t),...c0(t)}),v0=/\s+/,x0=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=e,u=[],o=t.trim().split(v0);let a="";for(let s=o.length-1;s>=0;s-=1){const l=o[s],{modifiers:c,hasImportantModifier:p,baseClassName:d,maybePostfixModifierPosition:f}=r(l);let g=!!f,m=n(g?d.substring(0,f):d);if(!m){if(!g){a=l+(a.length>0?" "+a:a);continue}if(m=n(d),!m){a=l+(a.length>0?" "+a:a);continue}g=!1}const b=m0(c).join(":"),y=p?b+rl:b,v=y+m;if(u.includes(v))continue;u.push(v);const C=i(m,g);for(let S=0;S<C.length;++S){const N=C[S];u.push(y+N)}a=l+(a.length>0?" "+a:a)}return a};function w0(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=nl(e))&&(n&&(n+=" "),n+=r);return n}const nl=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=nl(t[n]))&&(r&&(r+=" "),r+=e);return r};function E0(t,...e){let r,n,i,u=o;function o(s){const l=e.reduce((c,p)=>p(c),t());return r=y0(l),n=r.cache.get,i=r.cache.set,u=a,a(s)}function a(s){const l=n(s);if(l)return l;const c=x0(s,r);return i(s,c),c}return function(){return u(w0.apply(null,arguments))}}const Q=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},il=/^\[(?:([a-z-]+):)?(.+)\]$/i,S0=/^\d+\/\d+$/,C0=new Set(["px","full","screen"]),T0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,A0=/\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$/,N0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,O0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,j0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ze=t=>Dt(t)||C0.has(t)||S0.test(t),it=t=>Zt(t,"length",M0),Dt=t=>!!t&&!Number.isNaN(Number(t)),Ai=t=>Zt(t,"number",Dt),dr=t=>!!t&&Number.isInteger(Number(t)),_0=t=>t.endsWith("%")&&Dt(t.slice(0,-1)),q=t=>il.test(t),ut=t=>T0.test(t),P0=new Set(["length","size","percentage"]),k0=t=>Zt(t,P0,ul),R0=t=>Zt(t,"position",ul),I0=new Set(["image","url"]),D0=t=>Zt(t,I0,B0),L0=t=>Zt(t,"",$0),fr=()=>!0,Zt=(t,e,r)=>{const n=il.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},M0=t=>A0.test(t)&&!N0.test(t),ul=()=>!1,$0=t=>O0.test(t),B0=t=>j0.test(t),q0=()=>{const t=Q("colors"),e=Q("spacing"),r=Q("blur"),n=Q("brightness"),i=Q("borderColor"),u=Q("borderRadius"),o=Q("borderSpacing"),a=Q("borderWidth"),s=Q("contrast"),l=Q("grayscale"),c=Q("hueRotate"),p=Q("invert"),d=Q("gap"),f=Q("gradientColorStops"),g=Q("gradientColorStopPositions"),m=Q("inset"),b=Q("margin"),y=Q("opacity"),v=Q("padding"),C=Q("saturate"),S=Q("scale"),N=Q("sepia"),k=Q("skew"),R=Q("space"),D=Q("translate"),$=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",q,e],T=()=>[q,e],_=()=>["",ze,it],I=()=>["auto",Dt,q],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",q],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],le=()=>[Dt,q];return{cacheSize:500,separator:":",theme:{colors:[fr],spacing:[ze,it],blur:["none","",ut,q],brightness:le(),borderColor:[t],borderRadius:["none","","full",ut,q],borderSpacing:T(),borderWidth:_(),contrast:le(),grayscale:B(),hueRotate:le(),invert:B(),gap:T(),gradientColorStops:[t],gradientColorStopPositions:[_0,it],inset:E(),margin:E(),opacity:le(),padding:T(),saturate:le(),scale:le(),sepia:B(),skew:le(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],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(),q]}],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,q]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",dr,q]}],"grid-cols":[{"grid-cols":[fr]}],"col-start-end":[{col:["auto",{span:["full",dr,q]},q]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[fr]}],"row-start-end":[{row:["auto",{span:[dr,q]},q]}],"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",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],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",q,e]}],"min-w":[{"min-w":[q,e,"min","max","fit"]}],"max-w":[{"max-w":[q,e,"none","full","min","max","fit","prose",{screen:[ut]},ut]}],h:[{h:[q,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,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",Ai]}],"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",q]}],"line-clamp":[{"line-clamp":["none",Dt,Ai]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ze,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"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,q]}],"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",q]}],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",q]}],"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(),R0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",k0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},D0]}],"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:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"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,q]}],"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,L0]}],"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,q]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[C]}],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":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[dr,q]}],"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",q]}],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",q]}],"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",q]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ze,it,Ai]}],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"]}}},ol=E0(q0);function ge(...t){return ol(Tt(t))}const Mu=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));Mu.displayName="Card";const H0=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("flex flex-col space-y-1.5 p-6",t),...e}));H0.displayName="CardHeader";const F0=x.forwardRef(({className:t,...e},r)=>h.jsx("h3",{ref:r,className:ge("text-2xl font-semibold leading-none tracking-tight",t),...e}));F0.displayName="CardTitle";const z0=x.forwardRef(({className:t,...e},r)=>h.jsx("p",{ref:r,className:ge("text-sm text-muted-foreground",t),...e}));z0.displayName="CardDescription";const $u=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("p-6 pt-0",t),...e}));$u.displayName="CardContent";const U0=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("flex items-center p-6 pt-0",t),...e}));U0.displayName="CardFooter";function Jr({className:t,...e}){return h.jsx("div",{className:ge("animate-pulse rounded-md bg-muted",t),...e})}const al=j.createContext(null),Bu=({children:t,value:e})=>h.jsx(al.Provider,{value:e,children:t}),Br=()=>j.useContext(al),V0=j.lazy(()=>Promise.resolve().then(()=>require("./CraftEditor--t4EDwwC.cjs"))),W0=({initialData:t,onSave:e,onStateChange:r,eventData:n})=>h.jsx(Bu,{value:n,children:h.jsx(j.Suspense,{fallback:h.jsx(Mu,{children:h.jsx($u,{className:"p-4",children:h.jsxs("div",{className:"space-y-4",children:[h.jsx(Jr,{className:"h-8 w-48"}),h.jsxs("div",{className:"flex gap-4",children:[h.jsx(Jr,{className:"h-[500px] w-48"}),h.jsx(Jr,{className:"h-[500px] flex-1"}),h.jsx(Jr,{className:"h-[500px] w-64"})]})]})})}),children:h.jsx(V0,{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 G0=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sl=(...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 X0={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 Y0=j.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:u,iconNode:o,...a},s)=>j.createElement("svg",{ref:s,...X0,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:sl("lucide",i),...a},[...o.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 ue=(t,e)=>{const r=j.forwardRef(({className:n,...i},u)=>j.createElement(Y0,{ref:u,iconNode:e,className:sl(`lucide-${G0(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 qu=ue("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 Hu=ue("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 Fu=ue("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 J0=ue("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 zu=ue("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 Uu=ue("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 Vu=ue("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 K0=ue("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 Z0=ue("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 Q0=ue("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 ll=ue("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 ef=ue("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 cl=ue("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 tf=ue("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 rf=ue("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 Wu=ue("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 Gu=ue("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 nf=ue("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 Xu=ue("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 Yu=ue("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 uf=ue("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 of=ue("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function sa(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Vn(...t){return e=>{let r=!1;const n=t.map(i=>{const u=sa(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():sa(t[i],null)}}}}function Be(...t){return x.useCallback(Vn(...t),t)}var af=Symbol.for("react.lazy"),vn=x[" use ".trim().toString()];function sf(t){return typeof t=="object"&&t!==null&&"then"in t}function dl(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===af&&"_payload"in t&&sf(t._payload)}function lf(t){const e=df(t),r=x.forwardRef((n,i)=>{let{children:u,...o}=n;dl(u)&&typeof vn=="function"&&(u=vn(u._payload));const a=x.Children.toArray(u),s=a.find(pf);if(s){const l=s.props.children,c=a.map(p=>p===s?x.Children.count(l)>1?x.Children.only(null):x.isValidElement(l)?l.props.children:null:p);return h.jsx(e,{...o,ref:i,children:x.isValidElement(l)?x.cloneElement(l,void 0,c):null})}return h.jsx(e,{...o,ref:i,children:u})});return r.displayName=`${t}.Slot`,r}var cf=lf("Slot");function df(t){const e=x.forwardRef((r,n)=>{let{children:i,...u}=r;if(dl(i)&&typeof vn=="function"&&(i=vn(i._payload)),x.isValidElement(i)){const o=bf(i),a=hf(u,i.props);return i.type!==x.Fragment&&(a.ref=n?Vn(n,o):o),x.cloneElement(i,a)}return x.Children.count(i)>1?x.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var ff=Symbol("radix.slottable");function pf(t){return x.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===ff}function hf(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]=(...a)=>{const s=u(...a);return i(...a),s}:i&&(r[n]=i):n==="style"?r[n]={...i,...u}:n==="className"&&(r[n]=[i,u].filter(Boolean).join(" "))}return{...t,...r}}function bf(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 la=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,ca=Tt,fl=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return ca(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:u}=e,o=Object.keys(i).map(l=>{const c=r==null?void 0:r[l],p=u==null?void 0:u[l];if(c===null)return null;const d=la(c)||la(p);return i[l][d]}),a=r&&Object.entries(r).reduce((l,c)=>{let[p,d]=c;return d===void 0||(l[p]=d),l},{}),s=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((l,c)=>{let{class:p,className:d,...f}=c;return Object.entries(f).every(g=>{let[m,b]=g;return Array.isArray(b)?b.includes({...u,...a}[m]):{...u,...a}[m]===b})?[...l,p,d]:l},[]);return ca(t,o,s,r==null?void 0:r.class,r==null?void 0:r.className)},gf=fl("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"}}),Er=x.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...i},u)=>{const o=n?cf:"button";return h.jsx(o,{className:ge(gf({variant:e,size:r,className:t})),ref:u,...i})});Er.displayName="Button";function mf(...t){return ol(Tt(t))}function ne(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=Af[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(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function vt(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)===Nf}(t)||Array.isArray(t)||!!t[vr]||!!(!((e=t.constructor)===null||e===void 0)&&e[vr])||Wn(t)||Gn(t))}function xt(t,e,r){r===void 0&&(r=!1),st(t)===0?(r?Object.keys:to)(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:Wn(t)?2:Gn(t)?3:0}function Sr(t,e){return st(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function pn(t,e){return st(t)===2?t.get(e):t[e]}function pl(t,e,r){var n=st(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function yf(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Wn(t){return Cf&&t instanceof Map}function Gn(t){return Tf&&t instanceof Set}function ce(t){return t.o||t.t}function Ju(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Of(t);delete e[Y];for(var r=to(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 Ku(t,e){return e===void 0&&(e=!1),Zu(t)||vt(t)||!Me(t)||(st(t)>1&&(t.set=t.add=t.clear=t.delete=vf),Object.freeze(t),e&&xt(t,function(r,n){return Ku(n,!0)},!0)),t}function vf(){ne(2)}function Zu(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Re(t){var e=Gi[t];return e||ne(18,t),e}function hl(t,e){Gi[t]||(Gi[t]=e)}function xn(){return process.env.NODE_ENV==="production"||Bt||ne(0),Bt}function Ni(t,e){e&&(Re("Patches"),t.u=[],t.s=[],t.v=e)}function wn(t){Wi(t),t.p.forEach(xf),t.p=null}function Wi(t){t===Bt&&(Bt=t.l)}function da(t){return Bt={p:[],l:Bt,h:t,m:!0,_:0}}function xf(t){var e=t[Y];e.i===0||e.i===1?e.j():e.g=!0}function Oi(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&&(wn(e),ne(4)),Me(t)&&(t=En(e,t),e.l||Sn(e,t)),e.u&&Re("Patches").M(r[Y].t,t,e.u,e.s)):t=En(e,r,[]),wn(e),e.u&&e.v(e.u,e.s),t!==eo?t:void 0}function En(t,e,r){if(Zu(e))return e;var n=e[Y];if(!n)return xt(e,function(a,s){return fa(t,n,e,a,s,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Sn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ju(n.k):n.o,u=i,o=!1;n.i===3&&(u=new Set(i),i.clear(),o=!0),xt(u,function(a,s){return fa(t,n,i,a,s,r,o)}),Sn(t,i,!1),r&&t.u&&Re("Patches").N(n,r,t.u,t.s)}return n.o}function fa(t,e,r,n,i,u,o){if(process.env.NODE_ENV!=="production"&&i===r&&ne(5),vt(i)){var a=En(t,i,u&&e&&e.i!==3&&!Sr(e.R,n)?u.concat(n):void 0);if(pl(r,n,a),!vt(a))return;t.m=!1}else o&&r.add(i);if(Me(i)&&!Zu(i)){if(!t.h.D&&t._<1)return;En(t,i),e&&e.A.l||Sn(t,i)}}function Sn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ku(e,r)}function ji(t,e){var r=t[Y];return(r?ce(r):t)[e]}function pa(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 _i(t){t.o||(t.o=Ju(t.t))}function Cr(t,e,r){var n=Wn(e)?Re("MapSet").F(e,r):Gn(e)?Re("MapSet").T(e,r):t.O?function(i,u){var o=Array.isArray(i),a={i:o?1:0,A:u?u.A:xn(),P:!1,I:!1,R:{},l:u,t:i,k:null,o:null,j:null,C:!1},s=a,l=Xi;o&&(s=[a],l=mr);var c=Proxy.revocable(s,l),p=c.revoke,d=c.proxy;return a.k=d,a.j=p,d}(e,r):Re("ES5").J(e,r);return(r?r.A:xn()).p.push(n),n}function wf(t){return vt(t)||ne(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=ha(r,u),i.I=!1}else n=ha(r,u);return xt(n,function(o,a){i&&pn(i.t,o)===a||pl(n,o,e(a))}),u===3?new Set(n):n}(t)}function ha(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ju(t)}function Ef(){function t(n){if(!Me(n))return n;if(Array.isArray(n))return n.map(t);if(Wn(n))return new Map(Array.from(n.entries()).map(function(o){return[o[0],t(o[1])]}));if(Gn(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 Sr(n,vr)&&(i[vr]=n[vr]),i}function e(n){return vt(n)?t(n):n}var r="add";hl("Patches",{$:function(n,i){return i.forEach(function(u){for(var o=u.path,a=u.op,s=n,l=0;l<o.length-1;l++){var c=st(s),p=o[l];typeof p!="string"&&typeof p!="number"&&(p=""+p),c!==0&&c!==1||p!=="__proto__"&&p!=="constructor"||ne(24),typeof s=="function"&&p==="prototype"&&ne(24),typeof(s=pn(s,p))!="object"&&ne(15,o.join("/"))}var d=st(s),f=t(u.value),g=o[o.length-1];switch(a){case"replace":switch(d){case 2:return s.set(g,f);case 3:ne(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:ne(17,a)}}),n},N:function(n,i,u,o){switch(n.i){case 0:case 4:case 2:return function(a,s,l,c){var p=a.t,d=a.o;xt(a.R,function(f,g){var m=pn(p,f),b=pn(d,f),y=g?Sr(p,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,o);case 5:case 1:return function(a,s,l,c){var p=a.t,d=a.R,f=a.o;if(f.length<p.length){var g=[f,p];p=g[0],f=g[1];var m=[c,l];l=m[0],c=m[1]}for(var b=0;b<p.length;b++)if(d[b]&&f[b]!==p[b]){var y=s.concat([b]);l.push({op:"replace",path:y,value:e(f[b])}),c.push({op:"replace",path:y,value:e(p[b])})}for(var v=p.length;v<f.length;v++){var C=s.concat([v]);l.push({op:r,path:C,value:e(f[v])})}p.length<f.length&&c.push({op:"replace",path:s.concat(["length"]),value:p.length})}(n,i,u,o);case 3:return function(a,s,l,c){var p=a.t,d=a.o,f=0;p.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(!p.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,o)}},M:function(n,i,u,o){u.push({op:"replace",path:[],value:i===eo?void 0:i}),o.push({op:"replace",path:[],value:n})}})}function Sf(){function t(a,s){function l(){this.constructor=a}i(a,s),a.prototype=(l.prototype=s.prototype,new l)}function e(a){a.o||(a.R=new Map,a.o=new Map(a.t))}function r(a){a.o||(a.o=new Set,a.t.forEach(function(s){if(Me(s)){var l=Cr(a.A.h,s,a);a.p.set(s,l),a.o.add(l)}else a.o.add(s)}))}function n(a){a.g&&ne(3,JSON.stringify(ce(a)))}var i=function(a,s){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var p in c)c.hasOwnProperty(p)&&(l[p]=c[p])})(a,s)},u=function(){function a(l,c){return this[Y]={i:2,l:c,A:c?c.A:xn(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,g:!1},this}t(a,Map);var s=a.prototype;return Object.defineProperty(s,"size",{get:function(){return ce(this[Y]).size}}),s.has=function(l){return ce(this[Y]).has(l)},s.set=function(l,c){var p=this[Y];return n(p),ce(p).has(l)&&ce(p).get(l)===c||(e(p),Ge(p),p.R.set(l,!0),p.o.set(l,c),p.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),ce(l).size&&(e(l),Ge(l),l.R=new Map,xt(l.t,function(c){l.R.set(c,!1)}),l.o.clear())},s.forEach=function(l,c){var p=this;ce(this[Y]).forEach(function(d,f){l.call(c,p.get(f),f,p)})},s.get=function(l){var c=this[Y];n(c);var p=ce(c).get(l);if(c.I||!Me(p)||p!==c.t.get(l))return p;var d=Cr(c.A.h,p,c);return e(c),c.o.set(l,d),d},s.keys=function(){return ce(this[Y]).keys()},s.values=function(){var l,c=this,p=this.keys();return(l={})[Kr]=function(){return c.values()},l.next=function(){var d=p.next();return d.done?d:{done:!1,value:c.get(d.value)}},l},s.entries=function(){var l,c=this,p=this.keys();return(l={})[Kr]=function(){return c.entries()},l.next=function(){var d=p.next();if(d.done)return d;var f=c.get(d.value);return{done:!1,value:[d.value,f]}},l},s[Kr]=function(){return this.entries()},a}(),o=function(){function a(l,c){return this[Y]={i:3,l:c,A:c?c.A:xn(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,g:!1,C:!1},this}t(a,Set);var s=a.prototype;return Object.defineProperty(s,"size",{get:function(){return ce(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),ce(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[Kr]=function(){return this.values()},s.forEach=function(l,c){for(var p=this.values(),d=p.next();!d.done;)l.call(c,d.value,d.value,this),d=p.next()},a}();hl("MapSet",{F:function(a,s){return new u(a,s)},T:function(a,s){return new o(a,s)}})}var ba,Bt,Qu=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Cf=typeof Map<"u",Tf=typeof Set<"u",ga=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",eo=Qu?Symbol.for("immer-nothing"):((ba={})["immer-nothing"]=!0,ba),vr=Qu?Symbol.for("immer-draftable"):"__$immer_draftable",Y=Qu?Symbol.for("immer-state"):"__$immer_state",Kr=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",Af={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"},Nf=""+Object.prototype.constructor,to=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Of=Object.getOwnPropertyDescriptors||function(t){var e={};return to(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Gi={},Xi={get:function(t,e){if(e===Y)return t;var r=ce(t);if(!Sr(r,e))return function(i,u,o){var a,s=pa(u,o);return s?"value"in s?s.value:(a=s.get)===null||a===void 0?void 0:a.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!Me(n)?n:n===ji(t.t,e)?(_i(t),t.o[e]=Cr(t.A.h,n,t)):n},has:function(t,e){return e in ce(t)},ownKeys:function(t){return Reflect.ownKeys(ce(t))},set:function(t,e,r){var n=pa(ce(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var i=ji(ce(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(yf(r,i)&&(r!==void 0||Sr(t.t,e)))return!0;_i(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 ji(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,_i(t),Ge(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ce(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){ne(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ne(12)}},mr={};xt(Xi,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))&&ne(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))&&ne(14),Xi.set.call(this,t[0],e,r,t[0])};var jf=function(){function t(r){var n=this;this.O=ga,this.D=!0,this.produce=function(i,u,o){if(typeof i=="function"&&typeof u!="function"){var a=u;u=i;var s=n;return function(m){var b=this;m===void 0&&(m=a);for(var y=arguments.length,v=Array(y>1?y-1:0),C=1;C<y;C++)v[C-1]=arguments[C];return s.produce(m,function(S){var N;return(N=u).call.apply(N,[b,S].concat(v))})}}var l;if(typeof u!="function"&&ne(6),o!==void 0&&typeof o!="function"&&ne(7),Me(i)){var c=da(n),p=Cr(n,i,void 0),d=!0;try{l=u(p),d=!1}finally{d?wn(c):Wi(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(m){return Ni(c,o),Oi(m,c)},function(m){throw wn(c),m}):(Ni(c,o),Oi(l,c))}if(!i||typeof i!="object"){if((l=u(i))===void 0&&(l=i),l===eo&&(l=void 0),n.D&&Ku(l,!0),o){var f=[],g=[];Re("Patches").M(i,l,f,g),o(f,g)}return l}ne(21,i)},this.produceWithPatches=function(i,u){if(typeof i=="function")return function(l){for(var c=arguments.length,p=Array(c>1?c-1:0),d=1;d<c;d++)p[d-1]=arguments[d];return n.produceWithPatches(l,function(f){return i.apply(void 0,[f].concat(p))})};var o,a,s=n.produce(i,u,function(l,c){o=l,a=c});return typeof Promise<"u"&&s instanceof Promise?s.then(function(l){return[l,o,a]}):[s,o,a]},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)||ne(8),vt(r)&&(r=wf(r));var n=da(this),i=Cr(this,r,void 0);return i[Y].C=!0,Wi(n),i},e.finishDraft=function(r,n){var i=r&&r[Y];process.env.NODE_ENV!=="production"&&(i&&i.C||ne(9),i.I&&ne(10));var u=i.A;return Ni(u,n),Oi(void 0,u)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ga&&ne(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 o=Re("Patches").$;return vt(r)?o(r,n):this.produce(r,function(a){return o(a,n)})},t}(),ve=new jf,_f=ve.produce,ma=ve.produceWithPatches.bind(ve);ve.setAutoFreeze.bind(ve);ve.setUseProxies.bind(ve);var ya=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 Xn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Pf(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 kf(){this.__data__=[],this.size=0}var Rf=kf;function If(t,e){return t===e||t!==t&&e!==e}var bl=If,Df=bl;function Lf(t,e){for(var r=t.length;r--;)if(Df(t[r][0],e))return r;return-1}var Yn=Lf,Mf=Yn,$f=Array.prototype,Bf=$f.splice;function qf(t){var e=this.__data__,r=Mf(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Bf.call(e,r,1),--this.size,!0}var Hf=qf,Ff=Yn;function zf(t){var e=this.__data__,r=Ff(e,t);return r<0?void 0:e[r][1]}var Uf=zf,Vf=Yn;function Wf(t){return Vf(this.__data__,t)>-1}var Gf=Wf,Xf=Yn;function Yf(t,e){var r=this.__data__,n=Xf(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var Jf=Yf,Kf=Rf,Zf=Hf,Qf=Uf,ep=Gf,tp=Jf;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=Kf;Qt.prototype.delete=Zf;Qt.prototype.get=Qf;Qt.prototype.has=ep;Qt.prototype.set=tp;var Jn=Qt,rp=Jn;function np(){this.__data__=new rp,this.size=0}var ip=np;function up(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var op=up;function ap(t){return this.__data__.get(t)}var sp=ap;function lp(t){return this.__data__.has(t)}var cp=lp,dp=typeof M=="object"&&M&&M.Object===Object&&M,gl=dp,fp=gl,pp=typeof self=="object"&&self&&self.Object===Object&&self,hp=fp||pp||Function("return this")(),qe=hp,bp=qe,gp=bp.Symbol,Kn=gp,va=Kn,ml=Object.prototype,mp=ml.hasOwnProperty,yp=ml.toString,pr=va?va.toStringTag:void 0;function vp(t){var e=mp.call(t,pr),r=t[pr];try{t[pr]=void 0;var n=!0}catch{}var i=yp.call(t);return n&&(e?t[pr]=r:delete t[pr]),i}var xp=vp,wp=Object.prototype,Ep=wp.toString;function Sp(t){return Ep.call(t)}var Cp=Sp,xa=Kn,Tp=xp,Ap=Cp,Np="[object Null]",Op="[object Undefined]",wa=xa?xa.toStringTag:void 0;function jp(t){return t==null?t===void 0?Op:Np:wa&&wa in Object(t)?Tp(t):Ap(t)}var Zn=jp;function _p(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var yl=_p,Pp=Zn,kp=yl,Rp="[object AsyncFunction]",Ip="[object Function]",Dp="[object GeneratorFunction]",Lp="[object Proxy]";function Mp(t){if(!kp(t))return!1;var e=Pp(t);return e==Ip||e==Dp||e==Rp||e==Lp}var ro=Mp;const $p=Xn(ro);var Bp=qe,qp=Bp["__core-js_shared__"],Hp=qp,Pi=Hp,Ea=function(){var t=/[^.]+$/.exec(Pi&&Pi.keys&&Pi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Fp(t){return!!Ea&&Ea in t}var zp=Fp,Up=Function.prototype,Vp=Up.toString;function Wp(t){if(t!=null){try{return Vp.call(t)}catch{}try{return t+""}catch{}}return""}var vl=Wp,Gp=ro,Xp=zp,Yp=yl,Jp=vl,Kp=/[\\^$.*+?()[\]{}|]/g,Zp=/^\[object .+?Constructor\]$/,Qp=Function.prototype,eh=Object.prototype,th=Qp.toString,rh=eh.hasOwnProperty,nh=RegExp("^"+th.call(rh).replace(Kp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ih(t){if(!Yp(t)||Xp(t))return!1;var e=Gp(t)?nh:Zp;return e.test(Jp(t))}var uh=ih;function oh(t,e){return t==null?void 0:t[e]}var ah=oh,sh=uh,lh=ah;function ch(t,e){var r=lh(t,e);return sh(r)?r:void 0}var At=ch,dh=At,fh=qe,ph=dh(fh,"Map"),no=ph,hh=At,bh=hh(Object,"create"),Qn=bh,Sa=Qn;function gh(){this.__data__=Sa?Sa(null):{},this.size=0}var mh=gh;function yh(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var vh=yh,xh=Qn,wh="__lodash_hash_undefined__",Eh=Object.prototype,Sh=Eh.hasOwnProperty;function Ch(t){var e=this.__data__;if(xh){var r=e[t];return r===wh?void 0:r}return Sh.call(e,t)?e[t]:void 0}var Th=Ch,Ah=Qn,Nh=Object.prototype,Oh=Nh.hasOwnProperty;function jh(t){var e=this.__data__;return Ah?e[t]!==void 0:Oh.call(e,t)}var _h=jh,Ph=Qn,kh="__lodash_hash_undefined__";function Rh(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ph&&e===void 0?kh:e,this}var Ih=Rh,Dh=mh,Lh=vh,Mh=Th,$h=_h,Bh=Ih;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=Dh;er.prototype.delete=Lh;er.prototype.get=Mh;er.prototype.has=$h;er.prototype.set=Bh;var qh=er,Ca=qh,Hh=Jn,Fh=no;function zh(){this.size=0,this.__data__={hash:new Ca,map:new(Fh||Hh),string:new Ca}}var Uh=zh;function Vh(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Wh=Vh,Gh=Wh;function Xh(t,e){var r=t.__data__;return Gh(e)?r[typeof e=="string"?"string":"hash"]:r.map}var ei=Xh,Yh=ei;function Jh(t){var e=Yh(this,t).delete(t);return this.size-=e?1:0,e}var Kh=Jh,Zh=ei;function Qh(t){return Zh(this,t).get(t)}var eb=Qh,tb=ei;function rb(t){return tb(this,t).has(t)}var nb=rb,ib=ei;function ub(t,e){var r=ib(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var ob=ub,ab=Uh,sb=Kh,lb=eb,cb=nb,db=ob;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=ab;tr.prototype.delete=sb;tr.prototype.get=lb;tr.prototype.has=cb;tr.prototype.set=db;var xl=tr,fb=Jn,pb=no,hb=xl,bb=200;function gb(t,e){var r=this.__data__;if(r instanceof fb){var n=r.__data__;if(!pb||n.length<bb-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new hb(n)}return r.set(t,e),this.size=r.size,this}var mb=gb,yb=Jn,vb=ip,xb=op,wb=sp,Eb=cp,Sb=mb;function rr(t){var e=this.__data__=new yb(t);this.size=e.size}rr.prototype.clear=vb;rr.prototype.delete=xb;rr.prototype.get=wb;rr.prototype.has=Eb;rr.prototype.set=Sb;var Cb=rr,Tb="__lodash_hash_undefined__";function Ab(t){return this.__data__.set(t,Tb),this}var Nb=Ab;function Ob(t){return this.__data__.has(t)}var jb=Ob,_b=xl,Pb=Nb,kb=jb;function Cn(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new _b;++e<r;)this.add(t[e])}Cn.prototype.add=Cn.prototype.push=Pb;Cn.prototype.has=kb;var Rb=Cn;function Ib(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 Db=Ib;function Lb(t,e){return t.has(e)}var Mb=Lb,$b=Rb,Bb=Db,qb=Mb,Hb=1,Fb=2;function zb(t,e,r,n,i,u){var o=r&Hb,a=t.length,s=e.length;if(a!=s&&!(o&&s>a))return!1;var l=u.get(t),c=u.get(e);if(l&&c)return l==e&&c==t;var p=-1,d=!0,f=r&Fb?new $b:void 0;for(u.set(t,e),u.set(e,t);++p<a;){var g=t[p],m=e[p];if(n)var b=o?n(m,g,p,e,t,u):n(g,m,p,t,e,u);if(b!==void 0){if(b)continue;d=!1;break}if(f){if(!Bb(e,function(y,v){if(!qb(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 wl=zb,Ub=qe,Vb=Ub.Uint8Array,Wb=Vb;function Gb(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}var Xb=Gb;function Yb(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Jb=Yb,Ta=Kn,Aa=Wb,Kb=bl,Zb=wl,Qb=Xb,eg=Jb,tg=1,rg=2,ng="[object Boolean]",ig="[object Date]",ug="[object Error]",og="[object Map]",ag="[object Number]",sg="[object RegExp]",lg="[object Set]",cg="[object String]",dg="[object Symbol]",fg="[object ArrayBuffer]",pg="[object DataView]",Na=Ta?Ta.prototype:void 0,ki=Na?Na.valueOf:void 0;function hg(t,e,r,n,i,u,o){switch(r){case pg:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case fg:return!(t.byteLength!=e.byteLength||!u(new Aa(t),new Aa(e)));case ng:case ig:case ag:return Kb(+t,+e);case ug:return t.name==e.name&&t.message==e.message;case sg:case cg:return t==e+"";case og:var a=Qb;case lg:var s=n&tg;if(a||(a=eg),t.size!=e.size&&!s)return!1;var l=o.get(t);if(l)return l==e;n|=rg,o.set(t,e);var c=Zb(a(t),a(e),n,i,u,o);return o.delete(t),c;case dg:if(ki)return ki.call(t)==ki.call(e)}return!1}var bg=hg;function gg(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var mg=gg,yg=Array.isArray,io=yg,vg=mg,xg=io;function wg(t,e,r){var n=e(t);return xg(t)?n:vg(n,r(t))}var Eg=wg;function Sg(t,e){for(var r=-1,n=t==null?0:t.length,i=0,u=[];++r<n;){var o=t[r];e(o,r,t)&&(u[i++]=o)}return u}var Cg=Sg;function Tg(){return[]}var Ag=Tg,Ng=Cg,Og=Ag,jg=Object.prototype,_g=jg.propertyIsEnumerable,Oa=Object.getOwnPropertySymbols,Pg=Oa?function(t){return t==null?[]:(t=Object(t),Ng(Oa(t),function(e){return _g.call(t,e)}))}:Og,kg=Pg;function Rg(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Ig=Rg;function Dg(t){return t!=null&&typeof t=="object"}var ti=Dg,Lg=Zn,Mg=ti,$g="[object Arguments]";function Bg(t){return Mg(t)&&Lg(t)==$g}var qg=Bg,ja=qg,Hg=ti,El=Object.prototype,Fg=El.hasOwnProperty,zg=El.propertyIsEnumerable,Ug=ja(function(){return arguments}())?ja:function(t){return Hg(t)&&Fg.call(t,"callee")&&!zg.call(t,"callee")},Vg=Ug,Tn={exports:{}};function Wg(){return!1}var Gg=Wg;Tn.exports;(function(t,e){var r=qe,n=Gg,i=e&&!e.nodeType&&e,u=i&&!0&&t&&!t.nodeType&&t,o=u&&u.exports===i,a=o?r.Buffer:void 0,s=a?a.isBuffer:void 0,l=s||n;t.exports=l})(Tn,Tn.exports);var Sl=Tn.exports,Xg=9007199254740991,Yg=/^(?:0|[1-9]\d*)$/;function Jg(t,e){var r=typeof t;return e=e??Xg,!!e&&(r=="number"||r!="symbol"&&Yg.test(t))&&t>-1&&t%1==0&&t<e}var Kg=Jg,Zg=9007199254740991;function Qg(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Zg}var Cl=Qg,em=Zn,tm=Cl,rm=ti,nm="[object Arguments]",im="[object Array]",um="[object Boolean]",om="[object Date]",am="[object Error]",sm="[object Function]",lm="[object Map]",cm="[object Number]",dm="[object Object]",fm="[object RegExp]",pm="[object Set]",hm="[object String]",bm="[object WeakMap]",gm="[object ArrayBuffer]",mm="[object DataView]",ym="[object Float32Array]",vm="[object Float64Array]",xm="[object Int8Array]",wm="[object Int16Array]",Em="[object Int32Array]",Sm="[object Uint8Array]",Cm="[object Uint8ClampedArray]",Tm="[object Uint16Array]",Am="[object Uint32Array]",ee={};ee[ym]=ee[vm]=ee[xm]=ee[wm]=ee[Em]=ee[Sm]=ee[Cm]=ee[Tm]=ee[Am]=!0;ee[nm]=ee[im]=ee[gm]=ee[um]=ee[mm]=ee[om]=ee[am]=ee[sm]=ee[lm]=ee[cm]=ee[dm]=ee[fm]=ee[pm]=ee[hm]=ee[bm]=!1;function Nm(t){return rm(t)&&tm(t.length)&&!!ee[em(t)]}var Om=Nm;function jm(t){return function(e){return t(e)}}var _m=jm,An={exports:{}};An.exports;(function(t,e){var r=gl,n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,u=i&&i.exports===n,o=u&&r.process,a=function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();t.exports=a})(An,An.exports);var uo=An.exports,Pm=Om,km=_m,_a=uo,Pa=_a&&_a.isTypedArray,Rm=Pa?km(Pa):Pm,Tl=Rm,Im=Ig,Dm=Vg,Lm=io,Mm=Sl,$m=Kg,Bm=Tl,qm=Object.prototype,Hm=qm.hasOwnProperty;function Fm(t,e){var r=Lm(t),n=!r&&Dm(t),i=!r&&!n&&Mm(t),u=!r&&!n&&!i&&Bm(t),o=r||n||i||u,a=o?Im(t.length,String):[],s=a.length;for(var l in t)(e||Hm.call(t,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||u&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||$m(l,s)))&&a.push(l);return a}var zm=Fm,Um=Object.prototype;function Vm(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Um;return t===r}var Wm=Vm;function Gm(t,e){return function(r){return t(e(r))}}var Xm=Gm,Ym=Xm,Jm=Ym(Object.keys,Object),Km=Jm,Zm=Wm,Qm=Km,e1=Object.prototype,t1=e1.hasOwnProperty;function r1(t){if(!Zm(t))return Qm(t);var e=[];for(var r in Object(t))t1.call(t,r)&&r!="constructor"&&e.push(r);return e}var n1=r1,i1=ro,u1=Cl;function o1(t){return t!=null&&u1(t.length)&&!i1(t)}var a1=o1,s1=zm,l1=n1,c1=a1;function d1(t){return c1(t)?s1(t):l1(t)}var f1=d1,p1=Eg,h1=kg,b1=f1;function g1(t){return p1(t,b1,h1)}var m1=g1,ka=m1,y1=1,v1=Object.prototype,x1=v1.hasOwnProperty;function w1(t,e,r,n,i,u){var o=r&y1,a=ka(t),s=a.length,l=ka(e),c=l.length;if(s!=c&&!o)return!1;for(var p=s;p--;){var d=a[p];if(!(o?d in e:x1.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=o;++p<s;){d=a[p];var y=t[d],v=e[d];if(n)var C=o?n(v,y,d,e,t,u):n(y,v,d,t,e,u);if(!(C===void 0?y===v||i(y,v,r,n,u):C)){m=!1;break}b||(b=d=="constructor")}if(m&&!b){var S=t.constructor,N=e.constructor;S!=N&&"constructor"in t&&"constructor"in e&&!(typeof S=="function"&&S instanceof S&&typeof N=="function"&&N instanceof N)&&(m=!1)}return u.delete(t),u.delete(e),m}var E1=w1,S1=At,C1=qe,T1=S1(C1,"DataView"),A1=T1,N1=At,O1=qe,j1=N1(O1,"Promise"),_1=j1,P1=At,k1=qe,R1=P1(k1,"Set"),I1=R1,D1=At,L1=qe,M1=D1(L1,"WeakMap"),$1=M1,Yi=A1,Ji=no,Ki=_1,Zi=I1,Qi=$1,Al=Zn,nr=vl,Ra="[object Map]",B1="[object Object]",Ia="[object Promise]",Da="[object Set]",La="[object WeakMap]",Ma="[object DataView]",q1=nr(Yi),H1=nr(Ji),F1=nr(Ki),z1=nr(Zi),U1=nr(Qi),mt=Al;(Yi&&mt(new Yi(new ArrayBuffer(1)))!=Ma||Ji&&mt(new Ji)!=Ra||Ki&&mt(Ki.resolve())!=Ia||Zi&&mt(new Zi)!=Da||Qi&&mt(new Qi)!=La)&&(mt=function(t){var e=Al(t),r=e==B1?t.constructor:void 0,n=r?nr(r):"";if(n)switch(n){case q1:return Ma;case H1:return Ra;case F1:return Ia;case z1:return Da;case U1:return La}return e});var V1=mt,Ri=Cb,W1=wl,G1=bg,X1=E1,$a=V1,Ba=io,qa=Sl,Y1=Tl,J1=1,Ha="[object Arguments]",Fa="[object Array]",Zr="[object Object]",K1=Object.prototype,za=K1.hasOwnProperty;function Z1(t,e,r,n,i,u){var o=Ba(t),a=Ba(e),s=o?Fa:$a(t),l=a?Fa:$a(e);s=s==Ha?Zr:s,l=l==Ha?Zr:l;var c=s==Zr,p=l==Zr,d=s==l;if(d&&qa(t)){if(!qa(e))return!1;o=!0,c=!1}if(d&&!c)return u||(u=new Ri),o||Y1(t)?W1(t,e,r,n,i,u):G1(t,e,s,r,n,i,u);if(!(r&J1)){var f=c&&za.call(t,"__wrapped__"),g=p&&za.call(e,"__wrapped__");if(f||g){var m=f?t.value():t,b=g?e.value():e;return u||(u=new Ri),i(m,b,r,n,u)}}return d?(u||(u=new Ri),X1(t,e,r,n,i,u)):!1}var Q1=Z1,ey=Q1,Ua=ti;function Nl(t,e,r,n,i){return t===e?!0:t==null||e==null||!Ua(t)&&!Ua(e)?t!==t&&e!==e:ey(t,e,r,n,Nl,i)}var ty=Nl,ry=ty;function ny(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?ry(t,e,void 0,r):!!n}var iy=ny;const uy=Xn(iy);var oy=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 o=Object.keys(e),a=Object.keys(r);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(r),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var p=e[c],d=r[c];if(u=n?n.call(i,p,d,c):void 0,u===!1||u===void 0&&p!==d)return!1}return!0};const ay=Xn(oy);let sy=(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 ly=process.env.NODE_ENV==="production",Ii="Invariant failed";function Z(t,e){if(!t){if(ly)throw new Error(Ii);var r=typeof e=="function"?e():e,n=r?"".concat(Ii,": ").concat(r):Ii;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var Je="ROOT",Ol="canvas-ROOT",cy="Parent id cannot be ommited",dy="Attempting to add a node with duplicated id",jl="Node does not exist, it may have been removed",fy='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',py="Node cannot be dropped into target parent",hy="Target parent rejects incoming node",by="Current parent rejects outgoing node",Va="Cannot move node that is not a direct child of a Canvas node",gy="Cannot move node into a non-Canvas parent",Wa="A top-level Node cannot be moved",my="Cannot move node into a descendant",Nn="The component type specified for this node (%node_type%) does not exist in the resolver",yy="The node has specified a canDrag() rule that prevents it from being dragged",vy="Invalid parameter Node Id specified",xy="Attempting to delete a top-level Node",wy=`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`,Ey=`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`,Sy=`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.`,Cy=`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 Ga(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?Ga(Object(r),!0).forEach(function(n){se(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ga(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 Ty(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,Il(n.key),n)}}function ur(t,e,r){return e&&Ty(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function se(t,e,r){return(e=Il(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 eu(t,e){return eu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},eu(t,e)}function Di(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tu(){return tu=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(u,o){for(;!Object.prototype.hasOwnProperty.call(u,o)&&(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}},tu.apply(this,arguments)}function _l(t,e){return Pl(t)||function(r,n){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var u,o,a,s,l=[],c=!0,p=!1;try{if(a=(i=i.call(r)).next,n===0){if(Object(i)!==i)return;c=!1}else for(;!(c=(u=a.call(i)).done)&&(l.push(u.value),l.length!==n);c=!0);}catch(d){p=!0,o=d}finally{try{if(!c&&i.return!=null&&(s=i.return(),Object(s)!==s))return}finally{if(p)throw o}}return l}}(t,e)||oo(t,e)||Rl()}function fe(t){return function(e){if(Array.isArray(e))return ru(e)}(t)||kl(t)||oo(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 Pl(t){if(Array.isArray(t))return t}function kl(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function oo(t,e){if(t){if(typeof t=="string")return ru(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)?ru(t,e):void 0}}function ru(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 Rl(){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 Il(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"},Ay=function(){function t(){ir(this,t),se(this,"timeline",[]),se(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,o=i.inversePatches,a=i.timestamp;if(new Date().getTime()-a<n)return void(this.timeline[this.pointer]={timestamp:a,patches:[].concat(fe(u),fe(e)),inversePatches:[].concat(fe(r),fe(o))})}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,ya(e,r)}}},{key:"redo",value:function(e){if(this.canRedo())return this.pointer=this.pointer+1,ya(e,this.timeline[this.pointer].patches)}}]),t}();function Ny(t,e,r,n){var i,u=j.useMemo(function(){return new Ay},[]),o=j.useRef([]),a=j.useRef(function(){});typeof t=="function"?i=t:(i=t.methods,o.current=t.ignoreHistoryForActions,a.current=t.normalizeHistory);var s=j.useRef(n);s.current=n;var l=j.useRef(e),c=j.useMemo(function(){var b=a.current,y=o.current,v=s.current;return function(C,S){var N,k=r&&Xa(r,function(){return C},u),R=_l(ma(C,function(E){var T,_;switch(S.type){case oe.UNDO:return u.undo(E);case oe.REDO:return u.redo(E);case oe.CLEAR:return u.clear(),we({},E);case oe.IGNORE:case oe.MERGE:case oe.THROTTLE:var I,w=Pl(_=S.payload)||kl(_)||oo(_)||Rl(),O=w[0],A=w.slice(1);(I=i(E,k))[O].apply(I,fe(A));break;default:(T=i(E,k))[S.type].apply(T,fe(S.payload))}}),3),D=R[0],$=R[1],L=R[2];return N=D,v&&v(D,C,{type:S.type,params:S.payload,patches:$},k,function(E){var T=ma(D,E);N=T[0],$=[].concat(fe($),fe(T[1])),L=[].concat(fe(T[2]),fe(L))}),[oe.UNDO,oe.REDO].includes(S.type)&&b&&(N=_f(N,b)),[].concat(fe(y),[oe.UNDO,oe.REDO,oe.IGNORE,oe.CLEAR]).includes(S.type)||(S.type===oe.THROTTLE?u.throttleAdd($,L,S.config&&S.config.rate):S.type===oe.MERGE?u.merge($,L):u.add($,L)),N}},[u,i,r]),p=j.useCallback(function(){return l.current},[]),d=j.useMemo(function(){return new Oy(p)},[p]),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?Xa(r,function(){return l.current},u):[]},[u,r]),m=j.useMemo(function(){var b=Object.keys(i(null,null)),y=o.current;return we(we({},b.reduce(function(v,C){return v[C]=function(){for(var S=arguments.length,N=new Array(S),k=0;k<S;k++)N[k]=arguments[k];return f({type:C,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(C){return!y.includes(C)}).reduce(function(C,S){return C[S]=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:[S].concat(k),config:{rate:v}})},C},{}))},ignore:function(){return we({},b.filter(function(v){return!y.includes(v)}).reduce(function(v,C){return v[C]=function(){for(var S=arguments.length,N=new Array(S),k=0;k<S;k++)N[k]=arguments[k];return f({type:oe.IGNORE,payload:[C].concat(N)})},v},{}))},merge:function(){return we({},b.filter(function(v){return!y.includes(v)}).reduce(function(v,C){return v[C]=function(){for(var S=arguments.length,N=new Array(S),k=0;k<S;k++)N[k]=arguments[k];return f({type:oe.MERGE,payload:[C].concat(N)})},v},{}))}}})},[f,i]);return j.useMemo(function(){return{getState:p,subscribe:function(b,y,v){return d.subscribe(b,y,v)},actions:m,query:g,history:u}},[m,g,d,p,u])}function Xa(t,e,r){var n=Object.keys(t()).reduce(function(i,u){return we(we({},i),{},se({},u,function(){var o;return(o=t(e()))[u].apply(o,arguments)}))},{});return we(we({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}Sf(),Ef();var Oy=function(){function t(e){ir(this,t),se(this,"getState",void 0),se(this,"subscribers",[]),this.getState=e}return ur(t,[{key:"subscribe",value:function(e,r,n){var i=this,u=new jy(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}(),jy=function(){function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];ir(this,t),se(this,"collected",void 0),se(this,"collector",void 0),se(this,"onChange",void 0),se(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();uy(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,o=e.bottom,a=e.right,s=e.width,l=e.height,c=window.getComputedStyle(t),p={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:o,right:a,width:s,height:l,outerWidth:Math.round(s+p.left+p.right),outerHeight:Math.round(l+p.top+p.bottom),margin:p,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 _y(t,e){const{subscribe:r,getState:n,actions:i,query:u}=t,o=j.useRef(!0),a=j.useRef(null),s=j.useRef(e);s.current=e;const l=j.useCallback(d=>({...d,actions:i,query:u}),[i,u]);o.current&&e&&(a.current=e(n(),u),o.current=!1);const[c,p]=j.useState(l(a.current));return j.useEffect(()=>{let d;return s.current&&(d=r(f=>s.current(f,u),f=>{p(l(f))})),()=>{d&&d()}},[l,u,r]),c}var qt,Dl=function(){return sy(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},Py=function(){function t(){ir(this,t),se(this,"isEnabled",!0),se(this,"elementIdMap",new WeakMap),se(this,"registry",new Map)}return ur(t,[{key:"getElementId",value:function(e){var r=this.elementIdMap.get(e);if(r)return r;var n=Dl();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(ay(r.required,i.required))return i;this.getByElement(e,r.name).disable()}var u=null,o=this.getConnectorId(e,r.name);return this.registry.set(o,{id:o,required:r.required,enable:function(){u&&u(),u=r.connector(e,r.required,r.options)},disable:function(){u&&u()},remove:function(){return n.remove(o)}}),this.isEnabled&&this.registry.get(o).enable(),this.registry.get(o)}},{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 Ll=function(){function t(e){ir(this,t),se(this,"options",void 0),se(this,"registry",new Py),se(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(o){(function(a,s,l){a.craft||(a.craft={stopPropagation:function(){},blockedEvents:{}});for(var c=a.craft&&a.craft.blockedEvents[s]||[],p=0;p<c.length;p++){var d=c[p];if(l!==d&&l.contains(d))return!0}return!1})(o,r,e)||(o.craft.stopPropagation=function(){o.craft.blockedEvents[r]||(o.craft.blockedEvents[r]=[]),o.craft.blockedEvents[r].push(e)},n(o))};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(o,a){var s=_l(a,2),l=s[0],c=s[1];return we(we({},o),{},se({},l,function(p,d,f){var g=function(){var m=e.registry.register(p,{required:d,name:l,options:f,connector:c});return n.add(m.id),m};return u.set(e.registry.getConnectorId(p,l),g),i&&g(),p}))},{}),register:function(){i=!0,u.forEach(function(o){o()})},cleanup:function(){i=!1,n.forEach(function(o){return e.registry.remove(o)})}}}},{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(o,a,s){return a in i==0?Reflect.get(o,a,s):function(l){for(var c=arguments.length,p=new Array(c>1?c-1:0),d=1;d<c;d++)p[d-1]=arguments[d];var f=i[a].apply(i,[l].concat(p));f&&n.push(f)}}});return r(u),function(){n.forEach(function(o){o()})}}},{key:"reflect",value:function(e){return this.createProxyHandlers(this,e)}}]),t}(),ky=function(t){(function(u,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(o&&o.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),o&&eu(u,o)})(i,Ll);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,o=Lt(e);if(r){var a=Lt(this).constructor;u=Reflect.construct(o,arguments,a)}else u=o.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 Di(s)}(this,u)});function i(u,o){var a;return ir(this,i),se(Di(a=n.call(this,o)),"derived",void 0),se(Di(a),"unsubscribeParentHandlerListener",void 0),a.derived=u,a.options=o,a.unsubscribeParentHandlerListener=a.derived.listen(function(s){switch(s){case qt.HandlerEnabled:return a.enable();case qt.HandlerDisabled:return a.disable();default:return}}),a}return ur(i,[{key:"inherit",value:function(u){return this.createProxyHandlers(this.derived,u)}},{key:"cleanup",value:function(){tu(Lt(i.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),i}();function Ya(t,e){e&&(typeof t=="function"?t(e):t.current=e)}function Ry(t,e){const r=t.ref;return Z(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=>{Ya(r,n),Ya(e,n)}}:{ref:e})}function Iy(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),Ry(n,t)}}function Ml(t){return Object.keys(t).reduce((e,r)=>(e[r]=Iy((...n)=>t[r](...n)),e),{})}const Dy=({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?Ks.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)},$l=function(){return typeof window<"u"},Ly=function(){return $l()&&/Linux/i.test(window.navigator.userAgent)},My=function(){return $l()&&/Chrome/i.test(window.navigator.userAgent)},$y=At;(function(){try{var t=$y(Object,"defineProperty");return t({},"",{}),t}catch{}})();var On={exports:{}};On.exports;(function(t,e){var r=qe,n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,u=i&&i.exports===n,o=u?r.Buffer:void 0,a=o?o.allocUnsafe:void 0;function s(l,c){if(c)return l.slice();var p=l.length,d=a?a(p):new l.constructor(p);return l.copy(d),d}t.exports=s})(On,On.exports);On.exports;var Ja=Kn,Ka=Ja?Ja.prototype:void 0;Ka&&Ka.valueOf;var Za=uo;Za&&Za.isMap;var Qa=uo;Qa&&Qa.isSet;typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const Bl=j.createContext(null),ql=({id:t,related:e=!1,children:r})=>j.createElement(Bl.Provider,{value:{id:t,related:e}},r);function es(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 te(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?es(Object(r),!0).forEach(function(n){ae(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):es(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function nu(t){return nu=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},nu(t)}function ri(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function By(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,zl(n.key),n)}}function ni(t,e,r){return e&&By(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ae(t,e,r){return(e=zl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ao(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&&iu(t,e)}function jn(t){return jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jn(t)}function iu(t,e){return iu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},iu(t,e)}function so(t,e){if(t==null)return{};var r,n,i=function(o,a){if(o==null)return{};var s,l,c={},p=Object.keys(o);for(l=0;l<p.length;l++)a.indexOf(s=p[l])>=0||(c[s]=o[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 lo(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=jn(t);if(e){var i=jn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(u,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yr(u)}(this,r)}}function Hl(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,o,a,s,l=[],c=!0,p=!1;try{if(a=(i=i.call(r)).next,n!==0)for(;!(c=(u=a.call(i)).done)&&(l.push(u.value),l.length!==n);c=!0);}catch(d){p=!0,o=d}finally{try{if(!c&&i.return!=null&&(s=i.return(),Object(s)!==s))return}finally{if(p)throw o}}return l}}(t,e)||Fl(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 uu(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||Fl(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 Fl(t,e){if(t){if(typeof t=="string")return uu(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)?uu(t,e):void 0}}function uu(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 zl(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 co=j.createContext(null);var Ul=j.createContext(null),Vl=function(){return j.useContext(Ul)};function Nt(t){var e=Vl(),r=j.useContext(co);Z(r,Sy);var n=_y(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&&Ml(i.connectors)},[i]);return te(te({},n),{},{connectors:u,inContext:!!r,store:r})}var qy=["actions","query","connectors"];function ii(t){var e=j.useContext(Bl);Z(e,Cy);var r=e.id,n=e.related,i=Nt(function(c){return r&&c.nodes[r]&&t&&t(c.nodes[r])}),u=i.actions,o=i.connectors,a=so(i,qy),s=j.useMemo(function(){return Ml({connect:function(c){return o.connect(c,r)},drag:function(c){return o.drag(c,r)}})},[o,r]),l=j.useMemo(function(){return{setProp:function(c,p){p?u.history.throttle(p).setProp(r,c):u.setProp(r,c)},setCustom:function(c,p){p?u.history.throttle(p).setCustom(r,c):u.setCustom(r,c)},setHidden:function(c){return u.setHidden(r,c)}}},[u,r]);return te(te({},a),{},{id:r,related:n,inNodeContext:!!e,actions:l,connectors:s})}var Hy=["id","related","actions","inNodeContext","connectors"];function re(t){var e=ii(t),r=e.id,n=e.related,i=e.actions,u=e.inNodeContext,o=e.connectors;return te(te({},so(e,Hy)),{},{actions:i,id:r,related:n,setProp:function(a,s){return lt("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),i.setProp(a,s)},inNodeContext:u,connectors:o})}const Fy=({render:t})=>{const{connectors:{connect:e,drag:r}}=re();return typeof t.type=="string"?e(r(j.cloneElement(t))):t},zy=()=>{const{type:t,props:e,nodes:r,hydrationTimestamp:n}=ii(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(o=>j.createElement(fo,{id:o,key:o}))));const u=j.createElement(t,e,i);return typeof t=="string"?j.createElement(Fy,{render:u}):u},[t,e,n,r])},Uy=({render:t})=>{const{hidden:e}=ii(n=>({hidden:n.data.hidden})),{onRender:r}=Nt(n=>({onRender:n.options.onRender}));return e?null:j.createElement(r,{render:t||j.createElement(zy,null)})},fo=({id:t,render:e})=>j.createElement(ql,{id:t},j.createElement(Uy,{render:e})),ou={is:"div",canvas:!1,custom:{},hidden:!1},Vy={is:"type",canvas:"isCanvas"};function Ht({id:t,children:e,...r}){const{is:n}={...ou,...r},{query:i,actions:u}=Nt(),{id:o,inNodeContext:a}=ii(),[s]=j.useState(()=>{Z(!!t,fy);const l=i.node(o).get();if(a){const c=l.data.linkedNodes[t]?i.node(l.data.linkedNodes[t]).get():null;if(c&&c.data.type===n)return c.id;const p=j.createElement(Ht,r,e),d=i.parseReactElement(p).toNodeTree();return u.history.ignore().addLinkedNodeFromTree(d,o,t),d.rootNodeId}return null});return s?j.createElement(fo,{id:s}):null}const Wl=()=>lt("<Canvas />",{suggest:"<Element canvas={true} />"});function au({...t}){return j.useEffect(()=>Wl(),[]),j.createElement(Ht,{...t,canvas:!0})}const Wy=()=>{const{timestamp:t}=Nt(e=>({timestamp:e.nodes[Je]&&e.nodes[Je]._hydrationTimestamp}));return t?j.createElement(fo,{id:Je,key:t}):null},Gl=({children:t,json:e,data:r})=>{const{actions:n,query:i}=Nt();e&<("<Frame json={...} />",{suggest:"<Frame data={...} />"});const u=j.useRef(!1);if(!u.current){const o=r||e;if(o)n.history.ignore().deserialize(o);else if(t){const a=j.Children.only(t),s=i.parseReactElement(a).toNodeTree((l,c)=>(c===a&&(l.id=Je),l));n.history.ignore().addNodeTree(s)}u.current=!0}return j.createElement(Wy,null)};var ts;(function(t){t[t.Any=0]="Any",t[t.Id=1]="Id",t[t.Obj=2]="Obj"})(ts||(ts={}));const Li=t=>{const{addLinkedNodeFromTree:e,setDOM:r,setNodeEvent:n,replaceNodes:i,reset:u,...o}=t;return o};function po(t){const{connectors:e,actions:r,query:n,store:i,...u}=Nt(t),o=Li(r);return{connectors:e,actions:j.useMemo(()=>({...o,history:{...o.history,ignore:(...a)=>Li(o.history.ignore(...a)),throttle:(...a)=>Li(o.history.throttle(...a))}}),[o]),query:n,store:i,...u}}var Xl=function(t){return Object.fromEntries?Object.fromEntries(t):t.reduce(function(e,r){var n=Hl(r,2),i=n[0],u=n[1];return te(te({},e),{},ae({},i,u))},{})},Xe=function(t,e,r){var n=Array.isArray(e)?e:[e],i=te({existOnly:!1,idOnly:!1},r||{}),u=n.filter(function(o){return!!o}).map(function(o){return typeof o=="string"?{node:t[o],exists:!!t[o]}:nu(o)!=="object"||i.idOnly?{node:null,exists:!1}:{node:o,exists:!!t[o.id]}});return i.existOnly&&Z(u.filter(function(o){return!o.exists}).length===0,jl),u},Gy=["history"],Pt=null,_n=function(t,e){if(typeof e=="string")return e;var r,n=function(i,u){var o=function(a){if(Pt&&Pt.resolver===a)return Pt.reversed;Pt={resolver:a,reversed:new Map};for(var s=0,l=Object.entries(a);s<l.length;s++){var c=Hl(l[s],2);Pt.reversed.set(c[1],c[0])}return Pt.reversed}(i).get(u);return o!==void 0?o:null}(t,e);return Z(n,Nn.replace("%node_type%",(r=e).name||r.displayName)),n};const Xy=(t,e)=>typeof t=="string"?t:{resolvedName:_n(e,t)},su=(t,e)=>{let{type:r,isCanvas:n,props:i}=t;return i=Object.keys(i).reduce((u,o)=>{const a=i[o];return a==null||typeof a=="function"||(u[o]=o==="children"&&typeof a!="string"?j.Children.map(a,s=>typeof s=="string"?s:su(s,e)):typeof a.type=="function"?su(a,e):a),u},{}),{type:Xy(r,e),isCanvas:!!n,props:i}},Yy=(t,e)=>{const{type:r,props:n,isCanvas:i,name:u,...o}=t;return{...su({type:r,isCanvas:i,props:n},e),...o}};function lu(t,e){Z(typeof e=="string",vy);var r=t.nodes[e],n=function(i){return lu(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(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=t.nodes[o];return l?(a.push(o),l.data.parent&&(i||!i&&s===0)&&(a=u(l.data.parent,a,s+1)),a):a}(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 o(a){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[a]&&(u!=="childNodes"&&n(a).linkedNodes().forEach(function(c){s.push(c),s=o(c,s,l+1)}),u!=="linkedNodes"&&n(a).childNodes().forEach(function(c){s.push(c),s=o(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 Z(!this.isTopLevelNode(),Wa),Z(lu(t,u.data.parent).isCanvas(),Va),Z(u.rules.canDrag(u,n),yy),!0}catch(o){return i&&i(o),!1}},isDroppable:function(i,u){var o=Xe(t.nodes,i),a=r;try{Z(this.isCanvas(),gy),Z(a.rules.canMoveIn(o.map(function(l){return l.node}),a,n),hy);var s={};return o.forEach(function(l){var c=l.node,p=l.exists;if(Z(c.rules.canDrop(a,c,n),py),p){Z(!n(c.id).isTopLevelNode(),Wa);var d=n(c.id).descendants(!0);Z(!d.includes(a.id)&&a.id!==c.id,my);var f=c.data.parent&&t.nodes[c.data.parent];Z(f.data.isCanvas,Va),Z(f||!f&&!t.nodes[c.id],dy),f.id!==a.id&&(s[f.id]||(s[f.id]=[]),s[f.id].push(c))}}),Object.keys(s).forEach(function(l){var c=t.nodes[l];Z(c.rules.canMoveOut(s[l],c,n),by)}),!0}catch(l){return u&&u(l),!1}},toSerializedNode:function(){return Yy(r.data,t.options.resolver)},toNodeTree:function(i){var u=[e].concat(Ar(this.descendants(!0,i))).reduce(function(o,a){return o[a]=n(a).get(),o},{});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 Yl(t,e,r,n){for(var i={parent:t,index:0,where:"before"},u=0,o=0,a=0,s=0,l=0,c=0,p=0,d=e.length;p<d;p++){var f=e[p];if(c=f.top+f.outerHeight,s=f.left+f.outerWidth/2,l=f.top+f.outerHeight/2,!(o&&f.left>o||a&&l>=a||u&&f.left+f.outerWidth<u))if(i.index=p,f.inFlow){if(n<l){i.where="before";break}i.where="after"}else n<c&&(a=c),r<s?(o=s,i.where="before"):(u=s,i.where="after")}return i}var Qr=function(t){return typeof t=="string"?t:t.name};function rs(t,e){var r=t.data.type,n={id:t.id||Dl(),_hydrationTimestamp:Date.now(),data:te({type:r,name:Qr(r),displayName:Qr(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===au){var i=te(te({},ou),n.data.props);n.data.props=Object.keys(n.data.props).reduce(function(a,s){return Object.keys(ou).includes(s)?n.data[Vy[s]||s]=i[s]:a[s]=n.data.props[s],a},{}),n.data.name=Qr(r=n.data.type),n.data.displayName=Qr(r),n.data.type===au&&(n.data.isCanvas=!0,Wl())}e&&e(n);var u=r.craft;if(u){if(n.data.displayName=u.displayName||u.name||n.data.displayName,n.data.props=te(te({},u.props||u.defaultProps||{}),n.data.props),n.data.custom=te(te({},u.custom||{}),n.data.custom),u.isCanvas!=null&&(n.data.isCanvas=u.isCanvas),u.rules&&Object.keys(u.rules).forEach(function(a){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(a)&&(n.rules[a]=u.rules[a])}),u.related){var o={id:n.id,related:!0};Object.keys(u.related).forEach(function(a){n.related[a]=function(s){return j.createElement(ql,o,j.createElement(u.related[a],s))}})}u.info&&(n.info=u.info)}return n}const cu=(t,e,r)=>{let{type:n,props:i}=t;const u=((a,s)=>typeof a=="object"&&a.resolvedName?a.resolvedName==="Canvas"?au:s[a.resolvedName]:typeof a=="string"?a:null)(n,e);if(!u)return;i=Object.keys(i).reduce((a,s)=>{const l=i[s];return a[s]=l==null?null:typeof l=="object"&&l.resolvedName?cu(l,e):s==="children"&&Array.isArray(l)?l.map(c=>typeof c=="string"?c:cu(c,e)):l,a},{});const o={...j.createElement(u,{...i})};return{...o,name:_n(e,o.type)}},Jy=(t,e)=>{const{type:r,props:n,...i}=t;Z(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,Ey.replace("%displayName%",t.displayName).replace("%availableComponents%",Object.keys(e).join(", ")));const{type:u,name:o,props:a}=cu(t,e),{parent:s,custom:l,displayName:c,isCanvas:p,nodes:d,hidden:f}=i;return{type:u,name:o,displayName:c||o,props:a,custom:l||{},isCanvas:!!p,hidden:!!f,parent:s,linkedNodes:i.linkedNodes||i._childCanvas||{},nodes:d||[]}},Ky=(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 o=u.nodes[u.rootNodeId];return{...i,...u.nodes,[o.id]:{...o,data:{...o.data,parent:t.id}}}},{[t.id]:n})},Zy=(t,e)=>({rootNodeId:t.id,nodes:Ky(t,e)});function Jl(t){const e=t&&t.options,r=()=>Jl(t);return{getDropPlaceholder:(n,i,u,o=a=>t.nodes[a.id].dom)=>{const a=t.nodes[i],s=r().node(a.id).isCanvas()?a:t.nodes[a.data.parent];if(!s)return;const l=s.data.nodes||[],c=Yl(s,l?l.reduce((f,g)=>{const m=o(t.nodes[g]);if(m){const b={id:g,...Tr(m)};f.push(b)}return f},[]):[],u.x,u.y),p=l.length&&t.nodes[l[c.index]],d={placement:{...c,currentNode:p},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=>lu(t,n),getSerializedNodes(){const n=Object.keys(t.nodes).map(i=>[i,this.node(i).toSerializedNode()]);return Xl(n)},getEvent:n=>function(i,u){var o=i.events[u];return{contains:function(a){return o.has(a)},isEmpty:function(){return this.all().length===0},first:function(){return this.all()[0]},last:function(){var a=this.all();return a[a.length-1]},all:function(){return Array.from(o)},size:function(){return this.all().length},at:function(a){return this.all()[a]},raw:function(){return o}}}(t,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(i){let u=function(a,s){let l=a;return typeof l=="string"&&(l=j.createElement(j.Fragment,{},l)),rs({data:{type:l.type,props:{...l.props}}},c=>{s&&s(c,l)})}(n,(a,s)=>{const l=_n(t.options.resolver,a.data.type);a.data.displayName=a.data.displayName||l,a.data.name=l,i&&i(a,s)}),o=[];return n.props&&n.props.children&&(o=j.Children.toArray(n.props.children).reduce((a,s)=>(j.isValidElement(s)&&a.push(r().parseReactElement(s).toNodeTree(i)),a),[])),Zy(u,o)}}),parseSerializedNode:n=>({toNode(i){const u=Jy(n,t.options.resolver);Z(u.type,Nn);const o=typeof i=="string"&&i;return o&<("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...o?{id:o}:{},data:u}).toNode(!o&&i)}}),parseFreshNode:n=>({toNode:i=>rs(n,u=>{u.data.parent===Ol&&(u.data.parent=Je);const o=_n(t.options.resolver,u.data.type);Z(o!==null,Nn),u.data.displayName=u.data.displayName||o,u.data.name=o,i&&i(u)})}),createNode(n,i){lt(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const u=this.parseReactElement(n).toNodeTree(),o=u.nodes[u.rootNodeId];return i&&(i.id&&(o.id=i.id),i.data&&(o.data={...o.data,...i.data})),o},getState:()=>t}}var Qy=function(t){ao(r,Ll);var e=lo(r);function r(){return ri(this,r),e.apply(this,arguments)}return ni(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){ao(r,ky);var e=lo(r);function r(){return ri(this,r),e.apply(this,arguments)}return ni(r)})();var ns=function(t){t.preventDefault()},du=function(){function t(e,r){ri(this,t),ae(this,"store",void 0),ae(this,"dragTarget",void 0),ae(this,"currentDropTargetId",void 0),ae(this,"currentDropTargetCanvasAncestorId",void 0),ae(this,"currentIndicator",null),ae(this,"currentTargetId",void 0),ae(this,"currentTargetChildDimensions",void 0),ae(this,"dragError",void 0),ae(this,"draggedNodes",void 0),ae(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",ns,!1)}return ni(t,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",ns,!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 o=r.store.query.node(u).get().dom;return o&&i.push(te({id:u},Tr(o))),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 o=r.store.query.node(u).get();return o&&o.data.isCanvas?o:o.data.parent?i(o.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=Yl(i,this.currentTargetChildDimensions,r,n);if(this.isDiff(u)){var o=this.dragError;o||this.store.query.node(i.id).isDroppable(this.draggedNodes.map(function(l){return l.node}),function(l){o=l});var a=i.data.nodes[u.index],s=a&&this.store.query.node(a).get();return this.currentIndicator={placement:te(te({},u),{},{currentNode:s}),error:o},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),t}();ae(du,"BORDER_OFFSET",10);var is=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 o=document.createElement("div");return o.style.position="absolute",o.style.left="-100%",o.style.top="-100%",o.style.width="100%",o.style.height="100%",o.style.pointerEvents="none",o.classList.add("drag-shadow-container"),e.forEach(function(a){var s=a.getBoundingClientRect(),l=s.width,c=s.height,p=s.top,d=s.left,f=a.cloneNode(!0);f.style.position="absolute",f.style.left="".concat(d,"px"),f.style.top="".concat(p,"px"),f.style.width="".concat(l,"px"),f.style.height="".concat(c,"px"),f.classList.add("drag-shadow"),o.appendChild(f)}),document.body.appendChild(o),t.dataTransfer.setDragImage(o,t.clientX,t.clientY),o},Kl=function(t){ao(r,Qy);var e=lo(r);function r(){var n;ri(this,r);for(var i=arguments.length,u=new Array(i),o=0;o<i;o++)u[o]=arguments[o];return ae(yr(n=e.call.apply(e,[this].concat(u))),"draggedElementShadow",void 0),ae(yr(n),"dragTarget",void 0),ae(yr(n),"positioner",null),ae(yr(n),"currentSelectedElementIds",[]),n}return ni(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,o){return i.actions.setDOM(o,u),n.reflect(function(a){a.select(u,o),a.hover(u,o),a.drop(u,o)})},select:function(u,o){var a=n.addCraftEventListener(u,"mousedown",function(l){l.craft.stopPropagation();var c=[];if(o){var p=i.query,d=p.getEvent("selected").all();(n.options.isMultiSelectEnabled(l)||d.includes(o))&&(c=d.filter(function(f){var g=p.node(f).descendants(!0),m=p.node(f).ancestors(!0);return!g.includes(o)&&!m.includes(o)})),c.includes(o)||c.push(o)}i.actions.setNodeEvent("selected",c)}),s=n.addCraftEventListener(u,"click",function(l){l.craft.stopPropagation();var c=i.query.getEvent("selected").all(),p=n.options.isMultiSelectEnabled(l),d=n.currentSelectedElementIds.includes(o),f=Ar(c);p&&d?(f.splice(f.indexOf(o),1),i.actions.setNodeEvent("selected",f)):!p&&c.length>1&&i.actions.setNodeEvent("selected",f=[o]),n.currentSelectedElementIds=f});return function(){a(),s()}},hover:function(u,o){var a=n.addCraftEventListener(u,"mouseover",function(l){l.craft.stopPropagation(),i.actions.setNodeEvent("hovered",o)}),s=null;return n.options.removeHoverOnMouseleave&&(s=n.addCraftEventListener(u,"mouseleave",function(l){l.craft.stopPropagation(),i.actions.setNodeEvent("hovered",null)})),function(){a(),s&&s()}},drop:function(u,o){var a=n.addCraftEventListener(u,"dragover",function(l){if(l.craft.stopPropagation(),l.preventDefault(),n.positioner){var c=n.positioner.computeIndicator(o,l.clientX,l.clientY);c&&i.actions.setIndicator(c)}}),s=n.addCraftEventListener(u,"dragenter",function(l){l.craft.stopPropagation(),l.preventDefault()});return function(){s(),a()}},drag:function(u,o){if(!i.query.node(o).isDraggable())return function(){};u.setAttribute("draggable","true");var a=n.addCraftEventListener(u,"dragstart",function(l){l.craft.stopPropagation();var c=i.query,p=i.actions,d=c.getEvent("selected").all(),f=n.options.isMultiSelectEnabled(l);n.currentSelectedElementIds.includes(o)||(d=f?[].concat(Ar(d),[o]):[o],i.actions.setNodeEvent("selected",d)),p.setNodeEvent("dragged",d);var g=d.map(function(m){return c.node(m).get().dom});n.draggedElementShadow=is(l,g,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:d},n.positioner=new du(n.options.store,n.dragTarget)}),s=n.addCraftEventListener(u,"dragend",function(l){l.craft.stopPropagation(),n.dropElement(function(c,p){c.type!=="new"&&i.actions.move(c.nodes,p.placement.parent.id,p.placement.index+(p.placement.where==="after"?1:0))})});return function(){u.setAttribute("draggable","false"),a(),s()}},create:function(u,o,a){u.setAttribute("draggable","true");var s=n.addCraftEventListener(u,"dragstart",function(c){var p;if(c.craft.stopPropagation(),typeof o=="function"){var d=o();p=j.isValidElement(d)?i.query.parseReactElement(d).toNodeTree():d}else p=i.query.parseReactElement(o).toNodeTree();n.draggedElementShadow=is(c,[c.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:p},n.positioner=new du(n.options.store,n.dragTarget)}),l=n.addCraftEventListener(u,"dragend",function(c){c.craft.stopPropagation(),n.dropElement(function(p,d){p.type!=="existing"&&(i.actions.addNodeTree(p.tree,d.placement.parent.id,d.placement.index+(d.placement.where==="after"?1:0)),a&&$p(a.onCreate)&&a.onCreate(p.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,o=this.positioner.getIndicator();this.dragTarget&&o&&!o.error&&n(this.dragTarget,o),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 ev(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,i=0,u=0,o=0,a=0,s=t.where;return r?r.inFlow?(o=r.outerWidth,a=n,i=s==="before"?r.top:r.bottom,u=r.left):(o=n,a=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,o=e.outerWidth-e.padding.right-e.padding.left-e.margin.left-e.margin.right,a=n),{top:"".concat(i,"px"),left:"".concat(u,"px"),width:"".concat(o,"px"),height:"".concat(a,"px")}}ae(Kl,"forceSingleDragShadow",My()&&Ly());const tv=()=>{const{indicator:t,indicatorOptions:e,enabled:r}=Nt(i=>({indicator:i.indicator,indicatorOptions:i.options.indicator,enabled:i.options.enabled})),n=Vl();return j.useEffect(()=>{n&&(r?n.enable():n.disable())},[r,n]),t?j.createElement(Dy,{className:e.className,style:{...ev(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},rv=({children:t})=>{const e=j.useContext(co),r=j.useMemo(()=>e.query.getOptions().handlers(e),[e]);return r?j.createElement(Ul.Provider,{value:r},j.createElement(tv,null),t):null},us={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 Kl({store:t,removeHoverOnMouseleave:!1,isMultiSelectEnabled:e=>!!e.metaKey}),normalizeNodes:()=>{}}},nv={methods:function(t,e){return te(te({},function(r,n){var i=function(a,s,l){if(function d(f,g){var m=a.nodes[f];typeof m.data.type!="string"&&Z(r.options.resolver[m.data.name],Nn.replace("%node_type%","".concat(m.data.type.name))),r.nodes[f]=te(te({},m),{},{data:te(te({},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)})}(a.rootNodeId,s),s||a.rootNodeId!==Je){var c=u(s);if(l.type!=="child")c.data.linkedNodes[l.id]=a.rootNodeId;else{var p=l.index;p!=null?c.data.nodes.splice(p,0,a.rootNodeId):c.data.nodes.push(a.rootNodeId)}}},u=function(a){Z(a,cy);var s=r.nodes[a];return Z(s,jl),s},o=function a(s){var l=r.nodes[s],c=r.nodes[l.data.parent];if(l.data.nodes&&Ar(l.data.nodes).forEach(function(f){return a(f)}),l.data.linkedNodes&&Object.values(l.data.linkedNodes).map(function(f){return a(f)}),c.data.nodes.includes(s)){var p=c.data.nodes;p.splice(p.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(a,s,l){var c=u(s).data.linkedNodes[l];c&&o(c),i(a,s,{type:"linked",id:l})},add:function(a,s,l){var c=[a];Array.isArray(a)&&(lt("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),c=a),c.forEach(function(p){i({nodes:ae({},p.id,p),rootNodeId:p.id},s,{type:"child",index:l})})},addNodeTree:function(a,s,l){i(a,s,{type:"child",index:l})},delete:function(a){Xe(r.nodes,a,{existOnly:!0,idOnly:!0}).forEach(function(s){var l=s.node;Z(!n.node(l.id).isTopLevelNode(),xy),o(l.id)})},deserialize:function(a){var s=typeof a=="string"?JSON.parse(a):a,l=Object.keys(s).map(function(c){var p=c;return c===Ol&&(p=Je),[p,n.parseSerializedNode(s[c]).toNode(function(d){return d.id=p})]});this.replaceNodes(Xl(l))},move:function(a,s,l){var c=Xe(r.nodes,a,{existOnly:!0}),p=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(S){throw new Error(S)}),r.options.onBeforeMoveEnd(m,p,r.nodes[y]);var v=r.nodes[y].data.nodes;d.add(v);var C=v.indexOf(b);v[C]="$$",p.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(a){this.clearEvents(),r.nodes=a},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(a){a(r.options)},setNodeEvent:function(a,s){if(r.events[a].forEach(function(p){r.nodes[p]&&(r.nodes[p].events[a]=!1)}),r.events[a]=new Set,s){var l=Xe(r.nodes,s,{idOnly:!0,existOnly:!0}),c=new Set(l.map(function(p){return p.node.id}));c.forEach(function(p){r.nodes[p].events[a]=!0}),r.events[a]=c}},setCustom:function(a,s){Xe(r.nodes,a,{idOnly:!0,existOnly:!0}).forEach(function(l){return s(r.nodes[l.node.id].data.custom)})},setDOM:function(a,s){r.nodes[a]&&(r.nodes[a].dom=s)},setIndicator:function(a){a&&(!a.placement.parent.dom||a.placement.currentNode&&!a.placement.currentNode.dom)||(r.indicator=a)},setHidden:function(a,s){r.nodes[a].data.hidden=s},setProp:function(a,s){Xe(r.nodes,a,{idOnly:!0,existOnly:!0}).forEach(function(l){return s(r.nodes[l.node.id].data.props)})},selectNode:function(a){if(a){var s=Xe(r.nodes,a,{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=so(this,Gy);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)})})}},iv=(t,e)=>Ny(nv,{...us,options:{...us.options,...t}},Jl,e),Zl=({children:t,...e})=>{e.resolver!==void 0&&Z(typeof e.resolver=="object"&&!Array.isArray(e.resolver)&&e.resolver!==null,wy);const r=x.useRef(e),n=iv(r.current,(i,u,o,a,s)=>{if(!o)return;const{patches:l,...c}=o;for(let p=0;p<l.length;p++){const{path:d}=l[p],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,a)});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(co.Provider,{value:n},x.createElement(rv,null,t)):null},Ql=j.createContext("desktop"),ec=({value:t,children:e})=>h.jsx(Ql.Provider,{value:t,children:e}),Ot=()=>j.useContext(Ql),Se=["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=Se.indexOf(e);for(let i=n;i<Se.length;i++){const u=Se[i];if(t[u]!==void 0&&t[u]!==null)return t[u]}for(let i=n-1;i>=0;i--){const u=Se[i];if(t[u]!==void 0&&t[u]!==null)return t[u]}return r};function Ee(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 ui(t,e=[]){let r=[];function n(u,o){const a=x.createContext(o),s=r.length;r=[...r,o];const l=p=>{var y;const{scope:d,children:f,...g}=p,m=((y=d==null?void 0:d[t])==null?void 0:y[s])||a,b=x.useMemo(()=>g,Object.values(g));return h.jsx(m.Provider,{value:b,children:f})};l.displayName=u+"Provider";function c(p,d){var m;const f=((m=d==null?void 0:d[t])==null?void 0:m[s])||a,g=x.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${u}\``)}return[l,c]}const i=()=>{const u=r.map(o=>x.createContext(o));return function(a){const s=(a==null?void 0:a[t])||u;return x.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[n,uv(i,...e)]}function uv(...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 o=n.reduce((a,{useScope:s,scopeName:l})=>{const p=s(u)[`__scope${l}`];return{...a,...p}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function ov(t){const e=av(t),r=x.forwardRef((n,i)=>{const{children:u,...o}=n,a=x.Children.toArray(u),s=a.find(lv);if(s){const l=s.props.children,c=a.map(p=>p===s?x.Children.count(l)>1?x.Children.only(null):x.isValidElement(l)?l.props.children:null:p);return h.jsx(e,{...o,ref:i,children:x.isValidElement(l)?x.cloneElement(l,void 0,c):null})}return h.jsx(e,{...o,ref:i,children:u})});return r.displayName=`${t}.Slot`,r}function av(t){const e=x.forwardRef((r,n)=>{const{children:i,...u}=r;if(x.isValidElement(i)){const o=dv(i),a=cv(u,i.props);return i.type!==x.Fragment&&(a.ref=n?Vn(n,o):o),x.cloneElement(i,a)}return x.Children.count(i)>1?x.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var sv=Symbol("radix.slottable");function lv(t){return x.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===sv}function cv(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]=(...a)=>{const s=u(...a);return i(...a),s}:i&&(r[n]=i):n==="style"?r[n]={...i,...u}:n==="className"&&(r[n]=[i,u].filter(Boolean).join(" "))}return{...t,...r}}function dv(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 fv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Oe=fv.reduce((t,e)=>{const r=ov(`Primitive.${e}`),n=x.forwardRef((i,u)=>{const{asChild:o,...a}=i,s=o?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...a,ref:u})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function pv(t,e){t&&Qs.flushSync(()=>t.dispatchEvent(e))}function qr(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 hv(t,e=globalThis==null?void 0:globalThis.document){const r=qr(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 bv="DismissableLayer",fu="dismissableLayer.update",gv="dismissableLayer.pointerDownOutside",mv="dismissableLayer.focusOutside",os,tc=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rc=x.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:u,onInteractOutside:o,onDismiss:a,...s}=t,l=x.useContext(tc),[c,p]=x.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=x.useState({}),g=Be(e,R=>p(R)),m=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(b),v=c?m.indexOf(c):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,S=v>=y,N=xv(R=>{const D=R.target,$=[...l.branches].some(L=>L.contains(D));!S||$||(i==null||i(R),o==null||o(R),R.defaultPrevented||a==null||a())},d),k=wv(R=>{const D=R.target;[...l.branches].some(L=>L.contains(D))||(u==null||u(R),o==null||o(R),R.defaultPrevented||a==null||a())},d);return hv(R=>{v===l.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},d),x.useEffect(()=>{if(c)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(os=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),as(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=os)}},[c,d,r,l]),x.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),as())},[c,l]),x.useEffect(()=>{const R=()=>f({});return document.addEventListener(fu,R),()=>document.removeEventListener(fu,R)},[]),h.jsx(Oe.div,{...s,ref:g,style:{pointerEvents:C?S?"auto":"none":void 0,...t.style},onFocusCapture:Ee(t.onFocusCapture,k.onFocusCapture),onBlurCapture:Ee(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Ee(t.onPointerDownCapture,N.onPointerDownCapture)})});rc.displayName=bv;var yv="DismissableLayerBranch",vv=x.forwardRef((t,e)=>{const r=x.useContext(tc),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]),h.jsx(Oe.div,{...t,ref:i})});vv.displayName=yv;function xv(t,e=globalThis==null?void 0:globalThis.document){const r=qr(t),n=x.useRef(!1),i=x.useRef(()=>{});return x.useEffect(()=>{const u=a=>{if(a.target&&!n.current){let s=function(){nc(gv,r,l,{discrete:!0})};const l={originalEvent:a};a.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},o=window.setTimeout(()=>{e.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",u),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function wv(t,e=globalThis==null?void 0:globalThis.document){const r=qr(t),n=x.useRef(!1);return x.useEffect(()=>{const i=u=>{u.target&&!n.current&&nc(mv,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 as(){const t=new CustomEvent(fu);document.dispatchEvent(t)}function nc(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?pv(i,u):i.dispatchEvent(u)}var ct=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},Ev=x[" useId ".trim().toString()]||(()=>{}),Sv=0;function ic(t){const[e,r]=x.useState(Ev());return ct(()=>{r(n=>n??String(Sv++))},[t]),e?`radix-${e}`:""}const Cv=["top","right","bottom","left"],dt=Math.min,me=Math.max,Pn=Math.round,en=Math.floor,Ie=t=>({x:t,y:t}),Tv={left:"right",right:"left",bottom:"top",top:"bottom"},Av={start:"end",end:"start"};function pu(t,e,r){return me(t,dt(e,r))}function Ze(t,e){return typeof t=="function"?t(e):t}function Qe(t){return t.split("-")[0]}function or(t){return t.split("-")[1]}function ho(t){return t==="x"?"y":"x"}function bo(t){return t==="y"?"height":"width"}const Nv=new Set(["top","bottom"]);function ke(t){return Nv.has(Qe(t))?"y":"x"}function go(t){return ho(ke(t))}function Ov(t,e,r){r===void 0&&(r=!1);const n=or(t),i=go(t),u=bo(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[u]>e.floating[u]&&(o=kn(o)),[o,kn(o)]}function jv(t){const e=kn(t);return[hu(t),e,hu(e)]}function hu(t){return t.replace(/start|end/g,e=>Av[e])}const ss=["left","right"],ls=["right","left"],_v=["top","bottom"],Pv=["bottom","top"];function kv(t,e,r){switch(t){case"top":case"bottom":return r?e?ls:ss:e?ss:ls;case"left":case"right":return e?_v:Pv;default:return[]}}function Rv(t,e,r,n){const i=or(t);let u=kv(Qe(t),r==="start",n);return i&&(u=u.map(o=>o+"-"+i),e&&(u=u.concat(u.map(hu)))),u}function kn(t){return t.replace(/left|right|bottom|top/g,e=>Tv[e])}function Iv(t){return{top:0,right:0,bottom:0,left:0,...t}}function uc(t){return typeof t!="number"?Iv(t):{top:t,right:t,bottom:t,left:t}}function Rn(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 cs(t,e,r){let{reference:n,floating:i}=t;const u=ke(e),o=go(e),a=bo(o),s=Qe(e),l=u==="y",c=n.x+n.width/2-i.width/2,p=n.y+n.height/2-i.height/2,d=n[a]/2-i[a]/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:p};break;case"left":f={x:n.x-i.width,y:p};break;default:f={x:n.x,y:n.y}}switch(or(e)){case"start":f[o]-=d*(r&&l?-1:1);break;case"end":f[o]+=d*(r&&l?-1:1);break}return f}const Dv=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:u=[],platform:o}=r,a=u.filter(Boolean),s=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:p}=cs(l,n,s),d=n,f={},g=0;for(let m=0;m<a.length;m++){const{name:b,fn:y}=a[m],{x:v,y:C,data:S,reset:N}=await y({x:c,y:p,initialPlacement:n,placement:d,strategy:i,middlewareData:f,rects:l,platform:o,elements:{reference:t,floating:e}});c=v??c,p=C??p,f={...f,[b]:{...f[b],...S}},N&&g<=50&&(g++,typeof N=="object"&&(N.placement&&(d=N.placement),N.rects&&(l=N.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):N.rects),{x:c,y:p}=cs(l,d,s)),m=-1)}return{x:c,y:p,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:o,elements:a,strategy:s}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:p="floating",altBoundary:d=!1,padding:f=0}=Ze(e,t),g=uc(f),b=a[d?p==="floating"?"reference":"floating":p],y=Rn(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(a.floating)),boundary:l,rootBoundary:c,strategy:s})),v=p==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,C=await(u.getOffsetParent==null?void 0:u.getOffsetParent(a.floating)),S=await(u.isElement==null?void 0:u.isElement(C))?await(u.getScale==null?void 0:u.getScale(C))||{x:1,y:1}:{x:1,y:1},N=Rn(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:C,strategy:s}):v);return{top:(y.top-N.top+g.top)/S.y,bottom:(N.bottom-y.bottom+g.bottom)/S.y,left:(y.left-N.left+g.left)/S.x,right:(N.right-y.right+g.right)/S.x}}const Lv=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:i,rects:u,platform:o,elements:a,middlewareData:s}=e,{element:l,padding:c=0}=Ze(t,e)||{};if(l==null)return{};const p=uc(c),d={x:r,y:n},f=go(i),g=bo(f),m=await o.getDimensions(l),b=f==="y",y=b?"top":"left",v=b?"bottom":"right",C=b?"clientHeight":"clientWidth",S=u.reference[g]+u.reference[f]-d[f]-u.floating[g],N=d[f]-u.reference[f],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let R=k?k[C]:0;(!R||!await(o.isElement==null?void 0:o.isElement(k)))&&(R=a.floating[C]||u.floating[g]);const D=S/2-N/2,$=R/2-m[g]/2-1,L=dt(p[y],$),E=dt(p[v],$),T=L,_=R-m[g]-E,I=R/2-m[g]/2+D,w=pu(T,I,_),O=!s.arrow&&or(i)!=null&&I!==w&&u.reference[g]/2-(I<T?L:E)-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}}}),Mv=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:i,middlewareData:u,rects:o,initialPlacement:a,platform:s,elements:l}=e,{mainAxis:c=!0,crossAxis:p=!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(a),C=Qe(a)===a,S=await(s.isRTL==null?void 0:s.isRTL(l.floating)),N=d||(C||!m?[kn(a)]:jv(a)),k=g!=="none";!d&&k&&N.push(...Rv(a,m,g,S));const R=[a,...N],D=await Nr(e,b),$=[];let L=((n=u.flip)==null?void 0:n.overflows)||[];if(c&&$.push(D[y]),p){const I=Ov(i,o,S);$.push(D[I[0]],D[I[1]])}if(L=[...L,{placement:i,overflows:$}],!$.every(I=>I<=0)){var E,T;const I=(((E=u.flip)==null?void 0:E.index)||0)+1,w=R[I];if(w&&(!(p==="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=a;break}if(i!==O)return{reset:{placement:O}}}return{}}}};function ds(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function fs(t){return Cv.some(e=>t[e]>=0)}const $v=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"}),o=ds(u,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:fs(o)}}}case"escaped":{const u=await Nr(e,{...i,altBoundary:!0}),o=ds(u,r.floating);return{data:{escapedOffsets:o,escaped:fs(o)}}}default:return{}}}}},oc=new Set(["left","top"]);async function Bv(t,e){const{placement:r,platform:n,elements:i}=t,u=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=Qe(r),a=or(r),s=ke(r)==="y",l=oc.has(o)?-1:1,c=u&&s?-1:1,p=Ze(e,t);let{mainAxis:d,crossAxis:f,alignmentAxis:g}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof g=="number"&&(f=a==="end"?g*-1:g),s?{x:f*c,y:d*l}:{x:d*l,y:f*c}}const qv=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:i,y:u,placement:o,middlewareData:a}=e,s=await Bv(e,t);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:i+s.x,y:u+s.y,data:{...s,placement:o}}}}},Hv=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:o=!1,limiter:a={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),p=ke(Qe(i)),d=ho(p);let f=l[d],g=l[p];if(u){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=f+c[b],C=f-c[y];f=pu(v,f,C)}if(o){const b=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=g+c[b],C=g-c[y];g=pu(v,g,C)}const m=a.fn({...e,[d]:f,[p]:g});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[d]:u,[p]:o}}}}}},Fv=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:i,rects:u,middlewareData:o}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=Ze(t,e),c={x:r,y:n},p=ke(i),d=ho(p);let f=c[d],g=c[p];const m=Ze(a,e),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const C=d==="y"?"height":"width",S=u.reference[d]-u.floating[C]+b.mainAxis,N=u.reference[d]+u.reference[C]-b.mainAxis;f<S?f=S:f>N&&(f=N)}if(l){var y,v;const C=d==="y"?"width":"height",S=oc.has(Qe(i)),N=u.reference[p]-u.floating[C]+(S&&((y=o.offset)==null?void 0:y[p])||0)+(S?0:b.crossAxis),k=u.reference[p]+u.reference[C]+(S?0:((v=o.offset)==null?void 0:v[p])||0)-(S?b.crossAxis:0);g<N?g=N:g>k&&(g=k)}return{[d]:f,[p]:g}}}},zv=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:i,rects:u,platform:o,elements:a}=e,{apply:s=()=>{},...l}=Ze(t,e),c=await Nr(e,l),p=Qe(i),d=or(i),f=ke(i)==="y",{width:g,height:m}=u.floating;let b,y;p==="top"||p==="bottom"?(b=p,y=d===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=p,b=d==="end"?"top":"bottom");const v=m-c.top-c.bottom,C=g-c.left-c.right,S=dt(m-c[b],v),N=dt(g-c[y],C),k=!e.middlewareData.shift;let R=S,D=N;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(D=C),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(R=v),k&&!d){const L=me(c.left,0),E=me(c.right,0),T=me(c.top,0),_=me(c.bottom,0);f?D=g-2*(L!==0||E!==0?L+E:me(c.left,c.right)):R=m-2*(T!==0||_!==0?T+_:me(c.top,c.bottom))}await s({...e,availableWidth:D,availableHeight:R});const $=await o.getDimensions(a.floating);return g!==$.width||m!==$.height?{reset:{rects:!0}}:{}}}};function oi(){return typeof window<"u"}function ar(t){return ac(t)?(t.nodeName||"").toLowerCase():"#document"}function ye(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function He(t){var e;return(e=(ac(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ac(t){return oi()?t instanceof Node||t instanceof ye(t).Node:!1}function Te(t){return oi()?t instanceof Element||t instanceof ye(t).Element:!1}function $e(t){return oi()?t instanceof HTMLElement||t instanceof ye(t).HTMLElement:!1}function ps(t){return!oi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ye(t).ShadowRoot}const Uv=new Set(["inline","contents"]);function Hr(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=Ae(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!Uv.has(i)}const Vv=new Set(["table","td","th"]);function Wv(t){return Vv.has(ar(t))}const Gv=[":popover-open",":modal"];function ai(t){return Gv.some(e=>{try{return t.matches(e)}catch{return!1}})}const Xv=["transform","translate","scale","rotate","perspective"],Yv=["transform","translate","scale","rotate","perspective","filter"],Jv=["paint","layout","strict","content"];function mo(t){const e=yo(),r=Te(t)?Ae(t):t;return Xv.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)||Yv.some(n=>(r.willChange||"").includes(n))||Jv.some(n=>(r.contain||"").includes(n))}function Kv(t){let e=ft(t);for(;$e(e)&&!Ft(e);){if(mo(e))return e;if(ai(e))return null;e=ft(e)}return null}function yo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Zv=new Set(["html","body","#document"]);function Ft(t){return Zv.has(ar(t))}function Ae(t){return ye(t).getComputedStyle(t)}function si(t){return Te(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ft(t){if(ar(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ps(t)&&t.host||He(t);return ps(e)?e.host:e}function sc(t){const e=ft(t);return Ft(e)?t.ownerDocument?t.ownerDocument.body:t.body:$e(e)&&Hr(e)?e:sc(e)}function Or(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=sc(t),u=i===((n=t.ownerDocument)==null?void 0:n.body),o=ye(i);if(u){const a=bu(o);return e.concat(o,o.visualViewport||[],Hr(i)?i:[],a&&r?Or(a):[])}return e.concat(i,Or(i,[],r))}function bu(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function lc(t){const e=Ae(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=$e(t),u=i?t.offsetWidth:r,o=i?t.offsetHeight:n,a=Pn(r)!==u||Pn(n)!==o;return a&&(r=u,n=o),{width:r,height:n,$:a}}function vo(t){return Te(t)?t:t.contextElement}function Mt(t){const e=vo(t);if(!$e(e))return Ie(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:u}=lc(e);let o=(u?Pn(r.width):r.width)/n,a=(u?Pn(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Qv=Ie(0);function cc(t){const e=ye(t);return!yo()||!e.visualViewport?Qv:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function e2(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ye(t)?!1:e}function wt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),u=vo(t);let o=Ie(1);e&&(n?Te(n)&&(o=Mt(n)):o=Mt(t));const a=e2(u,r,n)?cc(u):Ie(0);let s=(i.left+a.x)/o.x,l=(i.top+a.y)/o.y,c=i.width/o.x,p=i.height/o.y;if(u){const d=ye(u),f=n&&Te(n)?ye(n):n;let g=d,m=bu(g);for(;m&&n&&f!==g;){const b=Mt(m),y=m.getBoundingClientRect(),v=Ae(m),C=y.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,S=y.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;s*=b.x,l*=b.y,c*=b.x,p*=b.y,s+=C,l+=S,g=ye(m),m=bu(g)}}return Rn({width:c,height:p,x:s,y:l})}function li(t,e){const r=si(t).scrollLeft;return e?e.left+r:wt(He(t)).left+r}function dc(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-li(t,r),i=r.top+e.scrollTop;return{x:n,y:i}}function t2(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const u=i==="fixed",o=He(n),a=e?ai(e.floating):!1;if(n===o||a&&u)return r;let s={scrollLeft:0,scrollTop:0},l=Ie(1);const c=Ie(0),p=$e(n);if((p||!p&&!u)&&((ar(n)!=="body"||Hr(o))&&(s=si(n)),$e(n))){const f=wt(n);l=Mt(n),c.x=f.x+n.clientLeft,c.y=f.y+n.clientTop}const d=o&&!p&&!u?dc(o,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 r2(t){return Array.from(t.getClientRects())}function n2(t){const e=He(t),r=si(t),n=t.ownerDocument.body,i=me(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),u=me(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+li(t);const a=-r.scrollTop;return Ae(n).direction==="rtl"&&(o+=me(e.clientWidth,n.clientWidth)-i),{width:i,height:u,x:o,y:a}}const hs=25;function i2(t,e){const r=ye(t),n=He(t),i=r.visualViewport;let u=n.clientWidth,o=n.clientHeight,a=0,s=0;if(i){u=i.width,o=i.height;const c=yo();(!c||c&&e==="fixed")&&(a=i.offsetLeft,s=i.offsetTop)}const l=li(n);if(l<=0){const c=n.ownerDocument,p=c.body,d=getComputedStyle(p),f=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,g=Math.abs(n.clientWidth-p.clientWidth-f);g<=hs&&(u-=g)}else l<=hs&&(u+=l);return{width:u,height:o,x:a,y:s}}const u2=new Set(["absolute","fixed"]);function o2(t,e){const r=wt(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,u=$e(t)?Mt(t):Ie(1),o=t.clientWidth*u.x,a=t.clientHeight*u.y,s=i*u.x,l=n*u.y;return{width:o,height:a,x:s,y:l}}function bs(t,e,r){let n;if(e==="viewport")n=i2(t,r);else if(e==="document")n=n2(He(t));else if(Te(e))n=o2(e,r);else{const i=cc(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Rn(n)}function fc(t,e){const r=ft(t);return r===e||!Te(r)||Ft(r)?!1:Ae(r).position==="fixed"||fc(r,e)}function a2(t,e){const r=e.get(t);if(r)return r;let n=Or(t,[],!1).filter(a=>Te(a)&&ar(a)!=="body"),i=null;const u=Ae(t).position==="fixed";let o=u?ft(t):t;for(;Te(o)&&!Ft(o);){const a=Ae(o),s=mo(o);!s&&a.position==="fixed"&&(i=null),(u?!s&&!i:!s&&a.position==="static"&&!!i&&u2.has(i.position)||Hr(o)&&!s&&fc(t,o))?n=n.filter(c=>c!==o):i=a,o=ft(o)}return e.set(t,n),n}function s2(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o=[...r==="clippingAncestors"?ai(e)?[]:a2(e,this._c):[].concat(r),n],a=o[0],s=o.reduce((l,c)=>{const p=bs(e,c,i);return l.top=me(p.top,l.top),l.right=dt(p.right,l.right),l.bottom=dt(p.bottom,l.bottom),l.left=me(p.left,l.left),l},bs(e,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function l2(t){const{width:e,height:r}=lc(t);return{width:e,height:r}}function c2(t,e,r){const n=$e(e),i=He(e),u=r==="fixed",o=wt(t,!0,u,e);let a={scrollLeft:0,scrollTop:0};const s=Ie(0);function l(){s.x=li(i)}if(n||!n&&!u)if((ar(e)!=="body"||Hr(i))&&(a=si(e)),n){const f=wt(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?dc(i,a):Ie(0),p=o.left+a.scrollLeft-s.x-c.x,d=o.top+a.scrollTop-s.y-c.y;return{x:p,y:d,width:o.width,height:o.height}}function Mi(t){return Ae(t).position==="static"}function gs(t,e){if(!$e(t)||Ae(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return He(t)===r&&(r=r.ownerDocument.body),r}function pc(t,e){const r=ye(t);if(ai(t))return r;if(!$e(t)){let i=ft(t);for(;i&&!Ft(i);){if(Te(i)&&!Mi(i))return i;i=ft(i)}return r}let n=gs(t,e);for(;n&&Wv(n)&&Mi(n);)n=gs(n,e);return n&&Ft(n)&&Mi(n)&&!mo(n)?r:n||Kv(t)||r}const d2=async function(t){const e=this.getOffsetParent||pc,r=this.getDimensions,n=await r(t.floating);return{reference:c2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function f2(t){return Ae(t).direction==="rtl"}const p2={convertOffsetParentRelativeRectToViewportRelativeRect:t2,getDocumentElement:He,getClippingRect:s2,getOffsetParent:pc,getElementRects:d2,getClientRects:r2,getDimensions:l2,getScale:Mt,isElement:Te,isRTL:f2};function hc(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function h2(t,e){let r=null,n;const i=He(t);function u(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),u();const l=t.getBoundingClientRect(),{left:c,top:p,width:d,height:f}=l;if(a||e(),!d||!f)return;const g=en(p),m=en(i.clientWidth-(c+d)),b=en(i.clientHeight-(p+f)),y=en(c),C={rootMargin:-g+"px "+-m+"px "+-b+"px "+-y+"px",threshold:me(0,dt(1,s))||1};let S=!0;function N(k){const R=k[0].intersectionRatio;if(R!==s){if(!S)return o();R?o(!1,R):n=setTimeout(()=>{o(!1,1e-7)},1e3)}R===1&&!hc(l,t.getBoundingClientRect())&&o(),S=!1}try{r=new IntersectionObserver(N,{...C,root:i.ownerDocument})}catch{r=new IntersectionObserver(N,C)}r.observe(t)}return o(!0),u}function b2(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:u=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,l=vo(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 p=l&&a?h2(l,r):null;let d=-1,f=null;o&&(f=new ResizeObserver(y=>{let[v]=y;v&&v.target===l&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var C;(C=f)==null||C.observe(e)})),r()}),l&&!s&&f.observe(l),f.observe(e));let g,m=s?wt(t):null;s&&b();function b(){const y=wt(t);m&&!hc(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)}),p==null||p(),(y=f)==null||y.disconnect(),f=null,s&&cancelAnimationFrame(g)}}const g2=qv,m2=Hv,y2=Mv,v2=zv,x2=$v,ms=Lv,w2=Fv,E2=(t,e,r)=>{const n=new Map,i={platform:p2,...r},u={...i.platform,_c:n};return Dv(t,e,{...i,platform:u})};var S2=typeof document<"u",C2=function(){},hn=S2?j.useLayoutEffect:C2;function In(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(!In(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)&&!In(t[u],e[u]))return!1}return!0}return t!==t&&e!==e}function bc(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function ys(t,e){const r=bc(t);return Math.round(e*r)/r}function $i(t){const e=x.useRef(t);return hn(()=>{e.current=t}),e}function T2(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:u,floating:o}={},transform:a=!0,whileElementsMounted:s,open:l}=t,[c,p]=x.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,f]=x.useState(n);In(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))},[]),C=x.useCallback(P=>{P!==R.current&&(R.current=P,y(P))},[]),S=u||g,N=o||b,k=x.useRef(null),R=x.useRef(null),D=x.useRef(c),$=s!=null,L=$i(s),E=$i(i),T=$i(l),_=x.useCallback(()=>{if(!k.current||!R.current)return;const P={placement:e,strategy:r,middleware:d};E.current&&(P.platform=E.current),E2(k.current,R.current,P).then(B=>{const U={...B,isPositioned:T.current!==!1};I.current&&!In(D.current,U)&&(D.current=U,Qs.flushSync(()=>{p(U)}))})},[d,e,r,E,T]);hn(()=>{l===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,p(P=>({...P,isPositioned:!1})))},[l]);const I=x.useRef(!1);hn(()=>(I.current=!0,()=>{I.current=!1}),[]),hn(()=>{if(S&&(k.current=S),N&&(R.current=N),S&&N){if(L.current)return L.current(S,N,_);_()}},[S,N,_,L,$]);const w=x.useMemo(()=>({reference:k,floating:R,setReference:v,setFloating:C}),[v,C]),O=x.useMemo(()=>({reference:S,floating:N}),[S,N]),A=x.useMemo(()=>{const P={position:r,left:0,top:0};if(!O.floating)return P;const B=ys(O.floating,c.x),U=ys(O.floating,c.y);return a?{...P,transform:"translate("+B+"px, "+U+"px)",...bc(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:B,top:U}},[r,a,O.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:_,refs:w,elements:O,floatingStyles:A}),[c,_,w,O,A])}const A2=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?ms({element:n.current,padding:i}).fn(r):{}:n?ms({element:n,padding:i}).fn(r):{}}}},N2=(t,e)=>({...g2(t),options:[t,e]}),O2=(t,e)=>({...m2(t),options:[t,e]}),j2=(t,e)=>({...w2(t),options:[t,e]}),_2=(t,e)=>({...y2(t),options:[t,e]}),P2=(t,e)=>({...v2(t),options:[t,e]}),k2=(t,e)=>({...x2(t),options:[t,e]}),R2=(t,e)=>({...A2(t),options:[t,e]});var I2="Arrow",gc=x.forwardRef((t,e)=>{const{children:r,width:n=10,height:i=5,...u}=t;return h.jsx(Oe.svg,{...u,ref:e,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});gc.displayName=I2;var D2=gc;function mc(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 o,a;if("borderBoxSize"in u){const s=u.borderBoxSize,l=Array.isArray(s)?s[0]:s;o=l.inlineSize,a=l.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var xo="Popper",[yc,vc]=ui(xo),[L2,xc]=yc(xo),wc=t=>{const{__scopePopper:e,children:r}=t,[n,i]=x.useState(null);return h.jsx(L2,{scope:e,anchor:n,onAnchorChange:i,children:r})};wc.displayName=xo;var Ec="PopperAnchor",Sc=x.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...i}=t,u=xc(Ec,r),o=x.useRef(null),a=Be(e,o),s=x.useRef(null);return x.useEffect(()=>{const l=s.current;s.current=(n==null?void 0:n.current)||o.current,l!==s.current&&u.onAnchorChange(s.current)}),n?null:h.jsx(Oe.div,{...i,ref:a})});Sc.displayName=Ec;var wo="PopperContent",[M2,$2]=yc(wo),Cc=x.forwardRef((t,e)=>{var W,_e,xe,pe,Xr,cr;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:u="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:s=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:p="partial",hideWhenDetached:d=!1,updatePositionStrategy:f="optimized",onPlaced:g,...m}=t,b=xc(wo,r),[y,v]=x.useState(null),C=Be(e,gt=>v(gt)),[S,N]=x.useState(null),k=mc(S),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},E=Array.isArray(l)?l:[l],T=E.length>0,_={padding:L,boundary:E.filter(q2),altBoundary:T},{refs:I,floatingStyles:w,placement:O,isPositioned:A,middlewareData:P}=T2({strategy:"fixed",placement:$,whileElementsMounted:(...gt)=>b2(...gt,{animationFrame:f==="always"}),elements:{reference:b.anchor},middleware:[N2({mainAxis:i+D,alignmentAxis:o}),s&&O2({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?j2():void 0,..._}),s&&_2({..._}),P2({..._,apply:({elements:gt,rects:ua,availableWidth:u0,availableHeight:o0})=>{const{width:a0,height:s0}=ua.reference,Yr=gt.floating.style;Yr.setProperty("--radix-popper-available-width",`${u0}px`),Yr.setProperty("--radix-popper-available-height",`${o0}px`),Yr.setProperty("--radix-popper-anchor-width",`${a0}px`),Yr.setProperty("--radix-popper-anchor-height",`${s0}px`)}}),S&&R2({element:S,padding:a}),H2({arrowWidth:R,arrowHeight:D}),d&&k2({strategy:"referenceHidden",..._})]}),[B,U]=Nc(O),le=qr(g);ct(()=>{A&&(le==null||le())},[A,le]);const ia=(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]),h.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,(Xr=P.transformOrigin)==null?void 0:Xr.y].join(" "),...((cr=P.hide)==null?void 0:cr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:h.jsx(M2,{scope:r,placedSide:B,onArrowChange:N,arrowX:ia,arrowY:X,shouldHideArrow:V,children:h.jsx(Oe.div,{"data-side":B,"data-align":U,...m,ref:C,style:{...m.style,animation:A?void 0:"none"}})})})});Cc.displayName=wo;var Tc="PopperArrow",B2={top:"bottom",right:"left",bottom:"top",left:"right"},Ac=x.forwardRef(function(e,r){const{__scopePopper:n,...i}=e,u=$2(Tc,n),o=B2[u.placedSide];return h.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[o]: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:h.jsx(D2,{...i,ref:r,style:{...i.style,display:"block"}})})});Ac.displayName=Tc;function q2(t){return t!==null}var H2=t=>({name:"transformOrigin",options:t,fn(e){var b,y,v;const{placement:r,rects:n,middlewareData:i}=e,o=((b=i.arrow)==null?void 0:b.centerOffset)!==0,a=o?0:t.arrowWidth,s=o?0:t.arrowHeight,[l,c]=Nc(r),p={start:"0%",center:"50%",end:"100%"}[c],d=(((y=i.arrow)==null?void 0:y.x)??0)+a/2,f=(((v=i.arrow)==null?void 0:v.y)??0)+s/2;let g="",m="";return l==="bottom"?(g=o?p:`${d}px`,m=`${-s}px`):l==="top"?(g=o?p:`${d}px`,m=`${n.floating.height+s}px`):l==="right"?(g=`${-s}px`,m=o?p:`${f}px`):l==="left"&&(g=`${n.floating.width+s}px`,m=o?p:`${f}px`),{data:{x:g,y:m}}}});function Nc(t){const[e,r="center"]=t.split("-");return[e,r]}var F2=wc,z2=Sc,U2=Cc,V2=Ac;function W2(t,e){return x.useReducer((r,n)=>e[r][n]??r,t)}var ci=t=>{const{present:e,children:r}=t,n=G2(e),i=typeof r=="function"?r({present:n.isPresent}):x.Children.only(r),u=Be(n.ref,X2(i));return typeof r=="function"||n.isPresent?x.cloneElement(i,{ref:u}):null};ci.displayName="Presence";function G2(t){const[e,r]=x.useState(),n=x.useRef(null),i=x.useRef(t),u=x.useRef("none"),o=t?"mounted":"unmounted",[a,s]=W2(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const l=tn(n.current);u.current=a==="mounted"?l:"none"},[a]),ct(()=>{const l=n.current,c=i.current;if(c!==t){const d=u.current,f=tn(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,p=f=>{const m=tn(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=tn(n.current))};return e.addEventListener("animationstart",d),e.addEventListener("animationcancel",p),e.addEventListener("animationend",p),()=>{c.clearTimeout(l),e.removeEventListener("animationstart",d),e.removeEventListener("animationcancel",p),e.removeEventListener("animationend",p)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function tn(t){return(t==null?void 0:t.animationName)||"none"}function X2(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 Y2=Symbol("radix.slottable");function J2(t){const e=({children:r})=>h.jsx(h.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=Y2,e}var K2=x[" useInsertionEffect ".trim().toString()]||ct;function Eo({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[i,u,o]=Z2({defaultProp:e,onChange:r}),a=t!==void 0,s=a?t:i;{const c=x.useRef(t!==void 0);x.useEffect(()=>{const p=c.current;p!==a&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${a?"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=a},[a,n])}const l=x.useCallback(c=>{var p;if(a){const d=Q2(c)?c(t):c;d!==t&&((p=o.current)==null||p.call(o,d))}else u(c)},[a,t,u,o]);return[s,l]}function Z2({defaultProp:t,onChange:e}){const[r,n]=x.useState(t),i=x.useRef(r),u=x.useRef(e);return K2(()=>{u.current=e},[e]),x.useEffect(()=>{var o;i.current!==r&&((o=u.current)==null||o.call(u,r),i.current=r)},[r,i]),[r,n,u]}function Q2(t){return typeof t=="function"}var ex=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"}),tx="VisuallyHidden",Oc=x.forwardRef((t,e)=>h.jsx(Oe.span,{...t,ref:e,style:{...ex,...t.style}}));Oc.displayName=tx;var rx=Oc,[di]=ui("Tooltip",[vc]),fi=vc(),jc="TooltipProvider",nx=700,gu="tooltip.open",[ix,So]=di(jc),_c=t=>{const{__scopeTooltip:e,delayDuration:r=nx,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:u}=t,o=x.useRef(!0),a=x.useRef(!1),s=x.useRef(0);return x.useEffect(()=>{const l=s.current;return()=>window.clearTimeout(l)},[]),h.jsx(ix,{scope:e,isOpenDelayedRef:o,delayDuration:r,onOpen:x.useCallback(()=>{window.clearTimeout(s.current),o.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:x.useCallback(l=>{a.current=l},[]),disableHoverableContent:i,children:u})};_c.displayName=jc;var jr="Tooltip",[ux,pi]=di(jr),Pc=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:i,onOpenChange:u,disableHoverableContent:o,delayDuration:a}=t,s=So(jr,t.__scopeTooltip),l=fi(e),[c,p]=x.useState(null),d=ic(),f=x.useRef(0),g=o??s.disableHoverableContent,m=a??s.delayDuration,b=x.useRef(!1),[y,v]=Eo({prop:n,defaultProp:i??!1,onChange:R=>{R?(s.onOpen(),document.dispatchEvent(new CustomEvent(gu))):s.onClose(),u==null||u(R)},caller:jr}),C=x.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),S=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)},[]),h.jsx(F2,{...l,children:h.jsx(ux,{scope:e,contentId:d,open:y,stateAttribute:C,trigger:c,onTriggerChange:p,onTriggerEnter:x.useCallback(()=>{s.isOpenDelayedRef.current?k():S()},[s.isOpenDelayedRef,k,S]),onTriggerLeave:x.useCallback(()=>{g?N():(window.clearTimeout(f.current),f.current=0)},[N,g]),onOpen:S,onClose:N,disableHoverableContent:g,children:r})})};Pc.displayName=jr;var mu="TooltipTrigger",kc=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,i=pi(mu,r),u=So(mu,r),o=fi(r),a=x.useRef(null),s=Be(e,a,i.onTriggerChange),l=x.useRef(!1),c=x.useRef(!1),p=x.useCallback(()=>l.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),h.jsx(z2,{asChild:!0,...o,children:h.jsx(Oe.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:s,onPointerMove:Ee(t.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!u.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:Ee(t.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:Ee(t.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Ee(t.onFocus,()=>{l.current||i.onOpen()}),onBlur:Ee(t.onBlur,i.onClose),onClick:Ee(t.onClick,i.onClose)})})});kc.displayName=mu;var ox="TooltipPortal",[_4,ax]=di(ox,{forceMount:void 0}),zt="TooltipContent",Rc=x.forwardRef((t,e)=>{const r=ax(zt,t.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...u}=t,o=pi(zt,t.__scopeTooltip);return h.jsx(ci,{present:n||o.open,children:o.disableHoverableContent?h.jsx(Ic,{side:i,...u,ref:e}):h.jsx(sx,{side:i,...u,ref:e})})}),sx=x.forwardRef((t,e)=>{const r=pi(zt,t.__scopeTooltip),n=So(zt,t.__scopeTooltip),i=x.useRef(null),u=Be(e,i),[o,a]=x.useState(null),{trigger:s,onClose:l}=r,c=i.current,{onPointerInTransitChange:p}=n,d=x.useCallback(()=>{a(null),p(!1)},[p]),f=x.useCallback((g,m)=>{const b=g.currentTarget,y={x:g.clientX,y:g.clientY},v=px(y,b.getBoundingClientRect()),C=hx(y,v),S=bx(m.getBoundingClientRect()),N=mx([...C,...S]);a(N),p(!0)},[p]);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(o){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)),C=!gx(y,o);v?d():C&&(d(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[s,c,o,l,d]),h.jsx(Ic,{...t,ref:u})}),[lx,cx]=di(jr,{isInside:!1}),dx=J2("TooltipContent"),Ic=x.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:u,onPointerDownOutside:o,...a}=t,s=pi(zt,r),l=fi(r),{onClose:c}=s;return x.useEffect(()=>(document.addEventListener(gu,c),()=>document.removeEventListener(gu,c)),[c]),x.useEffect(()=>{if(s.trigger){const p=d=>{const f=d.target;f!=null&&f.contains(s.trigger)&&c()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[s.trigger,c]),h.jsx(rc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:o,onFocusOutside:p=>p.preventDefault(),onDismiss:c,children:h.jsxs(U2,{"data-state":s.stateAttribute,...l,...a,ref:e,style:{...a.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:[h.jsx(dx,{children:n}),h.jsx(lx,{scope:r,isInside:!0,children:h.jsx(rx,{id:s.contentId,role:"tooltip",children:i||n})})]})})});Rc.displayName=zt;var Dc="TooltipArrow",fx=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,i=fi(r);return cx(Dc,r).isInside?null:h.jsx(V2,{...i,...n,ref:e})});fx.displayName=Dc;function px(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 hx(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 bx(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 gx(t,e){const{x:r,y:n}=t;let i=!1;for(let u=0,o=e.length-1;u<e.length;o=u++){const a=e[u],s=e[o],l=a.x,c=a.y,p=s.x,d=s.y;c>n!=d>n&&r<(p-l)*(n-c)/(d-c)+l&&(i=!i)}return i}function mx(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),yx(e)}function yx(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],o=e[e.length-2];if((u.x-o.x)*(i.y-o.y)>=(u.y-o.y)*(i.x-o.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],o=r[r.length-2];if((u.x-o.x)*(i.y-o.y)>=(u.y-o.y)*(i.x-o.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 vx=_c,xx=Pc,wx=kc,Lc=Rc;const _r=vx,Ut=xx,Vt=wx,Et=x.forwardRef(({className:t,sideOffset:e=4,...r},n)=>h.jsx(Lc,{ref:n,sideOffset:e,className:ge("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}));Et.displayName=Lc.displayName;const $t={mobile:{icon:Gu,label:"Mobile"},tablet:{icon:Xu,label:"Tablet"},small:{icon:Wu,label:"Small Desktop"},desktop:{icon:Yu,label:"Desktop"}},F=({title:t,children:e,defaultOpen:r=!0})=>{const[n,i]=j.useState(r);return h.jsxs("div",{className:"border-b border-border pb-3",children:[h.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?h.jsx(Uu,{className:"h-3 w-3"}):h.jsx(Vu,{className:"h-3 w-3"})]}),n&&h.jsx("div",{className:"mt-2 space-y-3",children:e})]})},de=({label:t,value:e,onChange:r,min:n=0,max:i=100,unit:u="px"})=>h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx("input",{type:"number",value:e,onChange:o=>r(parseInt(o.target.value)||0),min:n,max:i,className:"w-14 px-2 py-1 text-xs rounded border border-input bg-background text-right"}),h.jsx("span",{className:"text-xs text-muted-foreground w-6",children:u})]})]}),Dn=({label:t,values:e,onChange:r,min:n=0,max:i=100,unit:u="px",defaultValue:o=16})=>{const a=Ot(),[s,l]=j.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??o},p=()=>c[a]??c.desktop??o,d=(m,b)=>{const y={...c,[m]:b};r(y)},f=m=>{d(a,m)},g=Se.some(m=>m!=="desktop"&&c[m]!==void 0);return h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsx(_r,{children:h.jsxs(Ut,{children:[h.jsx(Vt,{asChild:!0,children:h.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[a].icon,{className:"h-3 w-3"})})}),h.jsx(Et,{side:"left",children:h.jsx("p",{children:s?"Hide breakpoints":"Edit per breakpoint"})})]})})]}),s?h.jsx("div",{className:"space-y-1.5 pl-2 border-l-2 border-primary/20",children:Se.map(m=>{const b=$t[m].icon,y=c[m],v=y===void 0?Se.find(C=>Se.indexOf(C)>Se.indexOf(m)&&c[C]!==void 0)||"desktop":null;return h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(_r,{children:h.jsxs(Ut,{children:[h.jsx(Vt,{asChild:!0,children:h.jsx("div",{className:`p-1 rounded ${m===a?"bg-primary/10":""}`,children:h.jsx(b,{className:"h-3 w-3 text-muted-foreground"})})}),h.jsx(Et,{side:"left",children:h.jsx("p",{children:$t[m].label})})]})}),h.jsx("input",{type:"number",value:y??"",placeholder:v?`${c[v]??o}`:"",onChange:C=>{const S=C.target.value===""?void 0:parseInt(C.target.value)||0;d(m,S)},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":""}`}),h.jsx("span",{className:"text-xs text-muted-foreground w-6",children:u})]},m)})}):h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx("input",{type:"number",value:p(),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"}),h.jsx("span",{className:"text-xs text-muted-foreground w-6",children:u})]})]})},Ne=({label:t,values:e,onChange:r})=>{const[n,i]=j.useState(!0),u=(o,a)=>{r(n?{top:a,right:a,bottom:a,left:a}:{...e,[o]:a})};return h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.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?h.jsx("input",{type:"number",value:e.top,onChange:o=>u("top",parseInt(o.target.value)||0),min:0,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-center"}):h.jsx("div",{className:"grid grid-cols-4 gap-1",children:["top","right","bottom","left"].map(o=>h.jsxs("div",{className:"text-center",children:[h.jsx("input",{type:"number",value:e[o],onChange:a=>u(o,parseInt(a.target.value)||0),min:0,className:"w-full px-1 py-1 text-xs rounded border border-input bg-background text-center"}),h.jsx("span",{className:"text-[10px] text-muted-foreground",children:o[0].toUpperCase()})]},o))})]})},ie=({label:t,value:e,options:r,onChange:n})=>h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.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=>h.jsx("option",{value:i.value,children:i.label},i.value))})]}),De=({label:t,value:e,onChange:r})=>h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.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"}),h.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})=>h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsx("div",{className:"flex gap-1",children:r.map(i=>h.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))})]}),Wt=({label:t,value:e,onChange:r,multiline:n=!1})=>h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),n?h.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}):h.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"})]}),Co=({label:t,value:e,onChange:r,min:n=0,max:i=100,unit:u=""})=>h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsxs("span",{className:"text-xs text-muted-foreground",children:[e,u]})]}),h.jsx("input",{type:"range",value:e,onChange:o=>r(parseInt(o.target.value)),min:n,max:i,className:"w-full h-1.5 accent-primary"})]}),Ln=({label:t,values:e,onChange:r,min:n=0,max:i=100,unit:u="",defaultValue:o=50})=>{const a=Ot(),[s,l]=j.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??o},p=()=>c[a]??c.desktop??o,d=(g,m)=>{const b={...c,[g]:m};r(b)},f=Se.some(g=>g!=="desktop"&&c[g]!==void 0);return h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs("span",{className:"text-xs text-muted-foreground",children:[p(),u]}),h.jsx(_r,{children:h.jsxs(Ut,{children:[h.jsx(Vt,{asChild:!0,children:h.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[a].icon,{className:"h-3 w-3"})})}),h.jsx(Et,{side:"left",children:h.jsx("p",{children:s?"Hide breakpoints":"Edit per breakpoint"})})]})})]})]}),s?h.jsx("div",{className:"space-y-2 pl-2 border-l-2 border-primary/20",children:Se.map(g=>{const m=$t[g].icon,b=c[g];return h.jsxs("div",{className:"space-y-1",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:`p-1 rounded ${g===a?"bg-primary/10":""}`,children:h.jsx(m,{className:"h-3 w-3 text-muted-foreground"})}),h.jsx("span",{className:"text-xs text-muted-foreground flex-1",children:$t[g].label}),h.jsxs("span",{className:"text-xs",children:[b??"-",b!==void 0?u:""]})]}),h.jsx("input",{type:"range",value:b??c.desktop??o,onChange:y=>d(g,parseInt(y.target.value)),min:n,max:i,className:"w-full h-1.5 accent-primary"})]},g)})}):h.jsx("input",{type:"range",value:p(),onChange:g=>d(a,parseInt(g.target.value)),min:n,max:i,className:"w-full h-1.5 accent-primary"})]})},hi=({background:t="transparent",padding:e={top:16,right:16,bottom:16,left:16},margin:r={top:0,right:0,bottom:0,left:0},width:n="auto",minHeight:i=100,maxWidth:u="none",display:o="block",flexDirection:a="column",justifyContent:s="flex-start",alignItems:l="stretch",gap:c=0,borderRadius:p=8,borderWidth:d=1,borderColor:f="transparent",borderStyle:g="dashed",boxShadow:m="none",children:b})=>{const{connectors:{connect:y,drag:v},isActive:C}=re(k=>({isActive:k.events.selected})),S=typeof e=="object"?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:`${e}px`,N=typeof r=="object"?`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`:`${r}px`;return h.jsx("div",{ref:k=>k&&y(v(k)),className:ge("w-full cursor-move",C&&"ring-2 ring-primary ring-offset-2"),style:{backgroundColor:t,padding:S,margin:N,width:n==="auto"?"100%":n,minHeight:`${i}px`,maxWidth:u==="none"?"none":`${u}px`,display:o,flexDirection:o==="flex"?a:void 0,justifyContent:o==="flex"?s:void 0,alignItems:o==="flex"?l:void 0,gap:o==="flex"?`${c}px`:void 0,borderRadius:`${p}px`,borderWidth:`${d}px`,borderColor:f,borderStyle:g,boxShadow:m==="none"?"none":m},children:b})},Ex=()=>{const{actions:{setProp:t},props:e}=re(i=>({props:i.data.props})),r=typeof e.padding=="object"?e.padding:{top:e.padding||16,right:e.padding||16,bottom:e.padding||16,left:e.padding||16},n=typeof e.margin=="object"?e.margin:{top:e.margin||0,right:e.margin||0,bottom:e.margin||0,left:e.margin||0};return h.jsxs("div",{className:"space-y-3",children:[h.jsxs(F,{title:"Layout",defaultOpen:!0,children:[h.jsx(ie,{label:"Display",value:e.display||"block",options:[{value:"block",label:"Block"},{value:"flex",label:"Flex"}],onChange:i=>t(u=>u.display=i)}),e.display==="flex"&&h.jsxs(h.Fragment,{children:[h.jsx(Ke,{label:"Direction",value:e.flexDirection||"column",options:[{value:"row",label:"Row"},{value:"column",label:"Col"}],onChange:i=>t(u=>u.flexDirection=i)}),h.jsx(ie,{label:"Justify",value:e.justifyContent||"flex-start",options:[{value:"flex-start",label:"Start"},{value:"center",label:"Center"},{value:"flex-end",label:"End"},{value:"space-between",label:"Between"}],onChange:i=>t(u=>u.justifyContent=i)}),h.jsx(de,{label:"Gap",value:e.gap||0,onChange:i=>t(u=>u.gap=i),max:64})]})]}),h.jsxs(F,{title:"Spacing",defaultOpen:!0,children:[h.jsx(Ne,{label:"Padding",values:r,onChange:i=>t(u=>u.padding=i)}),h.jsx(Ne,{label:"Margin",values:n,onChange:i=>t(u=>u.margin=i)})]}),h.jsx(F,{title:"Background",defaultOpen:!1,children:h.jsx(De,{label:"Color",value:e.background||"transparent",onChange:i=>t(u=>u.background=i)})}),h.jsxs(F,{title:"Border",defaultOpen:!1,children:[h.jsx(de,{label:"Radius",value:e.borderRadius||8,onChange:i=>t(u=>u.borderRadius=i),max:50}),h.jsx(de,{label:"Width",value:e.borderWidth||1,onChange:i=>t(u=>u.borderWidth=i),max:10}),h.jsx(De,{label:"Color",value:e.borderColor||"transparent",onChange:i=>t(u=>u.borderColor=i)})]})]})};hi.craft={displayName:"Container",props:{background:"transparent",padding:{top:16,right:16,bottom:16,left:16},margin:{top:0,right:0,bottom:0,left:0},width:"auto",minHeight:100,maxWidth:"none",display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:8,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},related:{settings:Ex}};const Sx=/\{\{\s*([\w.]+)\s*\}\}/g,Cx=(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},bi=(t,e)=>{if(!t||typeof t!="string"||!e)return t;const r=/\{\{\s*([\w.]+)\s*\}\}/g;return t.replace(r,(n,i)=>{const u=Cx(e,i);return u==null?n:String(u)})},Tx=t=>!t||typeof t!="string"?!1:/\{\{\s*([\w.]+)\s*\}\}/.test(t),Ax=t=>{if(!t||typeof t!="string")return[];const e=[];let r;const n=new RegExp(Sx.source,"g");for(;(r=n.exec(t))!==null;)e.push(r[1]);return e},Nx={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"}},Ox={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"}]}},jx=({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 h.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:[h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("code",{className:"text-xs font-mono text-primary bg-primary/10 px-1 py-0.5 rounded",children:`{{ ${t.key} }}`}),h.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:t.description})]}),h.jsx("div",{className:"shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:r?h.jsx(zu,{className:"h-3.5 w-3.5 text-green-500"}):h.jsx(Z0,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})},_x=({category:t,data:e,defaultOpen:r=!1})=>{const[n,i]=j.useState(r);return h.jsxs("div",{className:"border-b border-border last:border-0",children:[h.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?h.jsx(Uu,{className:"h-3.5 w-3.5 text-muted-foreground"}):h.jsx(Vu,{className:"h-3.5 w-3.5 text-muted-foreground"}),h.jsx("span",{className:"text-xs font-medium",children:e.label}),h.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",e.variables.length,")"]})]}),n&&h.jsx("div",{className:"pb-2 space-y-0.5",children:e.variables.map(u=>h.jsx(jx,{variable:u},u.key))})]})},Mc=({className:t})=>h.jsxs("div",{className:ge("rounded-lg border border-border bg-muted/30",t),children:[h.jsxs("div",{className:"px-3 py-2 border-b border-border",children:[h.jsx("h4",{className:"text-xs font-semibold",children:"Dynamic Variables"}),h.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Click to copy, then paste in your text"})]}),h.jsx("div",{className:"px-2",children:Object.entries(Ox).map(([e,r],n)=>h.jsx(_x,{category:e,data:r,defaultOpen:n===0},e))})]});var $c={},Pr={},To={},kr={},Ao={};Object.defineProperty(Ao,"__esModule",{value:!0});Ao.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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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 No={};Object.defineProperty(No,"__esModule",{value:!0});No.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var yu={};(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 o="";return u>65535&&(u-=65536,o+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),o+=String.fromCharCode(u),o};function n(u){var o;return u>=55296&&u<=57343||u>1114111?65533:(o=r.get(u))!==null&&o!==void 0?o:u}t.replaceCodePoint=n;function i(u){return(0,t.fromCodePoint)(n(u))}t.default=i})(yu);(function(t){var e=M&&M.__createBinding||(Object.create?function(E,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(E,I,w)}:function(E,T,_,I){I===void 0&&(I=_),E[I]=T[_]}),r=M&&M.__setModuleDefault||(Object.create?function(E,T){Object.defineProperty(E,"default",{enumerable:!0,value:T})}:function(E,T){E.default=T}),n=M&&M.__importStar||function(E){if(E&&E.__esModule)return E;var T={};if(E!=null)for(var _ in E)_!=="default"&&Object.prototype.hasOwnProperty.call(E,_)&&e(T,E,_);return r(T,E),T},i=M&&M.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var u=i(Ao);t.htmlDecodeTree=u.default;var o=i(No);t.xmlDecodeTree=o.default;var a=n(yu);t.decodeCodePoint=a.default;var s=yu;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(E){E[E.NUM=35]="NUM",E[E.SEMI=59]="SEMI",E[E.EQUALS=61]="EQUALS",E[E.ZERO=48]="ZERO",E[E.NINE=57]="NINE",E[E.LOWER_A=97]="LOWER_A",E[E.LOWER_F=102]="LOWER_F",E[E.LOWER_X=120]="LOWER_X",E[E.LOWER_Z=122]="LOWER_Z",E[E.UPPER_A=65]="UPPER_A",E[E.UPPER_F=70]="UPPER_F",E[E.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var c=32,p;(function(E){E[E.VALUE_LENGTH=49152]="VALUE_LENGTH",E[E.BRANCH_LENGTH=16256]="BRANCH_LENGTH",E[E.JUMP_TABLE=127]="JUMP_TABLE"})(p=t.BinTrieFlags||(t.BinTrieFlags={}));function d(E){return E>=l.ZERO&&E<=l.NINE}function f(E){return E>=l.UPPER_A&&E<=l.UPPER_F||E>=l.LOWER_A&&E<=l.LOWER_F}function g(E){return E>=l.UPPER_A&&E<=l.UPPER_Z||E>=l.LOWER_A&&E<=l.LOWER_Z||d(E)}function m(E){return E===l.EQUALS||g(E)}var b;(function(E){E[E.EntityStart=0]="EntityStart",E[E.NumericStart=1]="NumericStart",E[E.NumericDecimal=2]="NumericDecimal",E[E.NumericHex=3]="NumericHex",E[E.NamedEntity=4]="NamedEntity"})(b||(b={}));var y;(function(E){E[E.Legacy=0]="Legacy",E[E.Strict=1]="Strict",E[E.Attribute=2]="Attribute"})(y=t.DecodingMode||(t.DecodingMode={}));var v=function(){function E(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 E.prototype.startEntity=function(T){this.decodeMode=T,this.state=b.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},E.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,_)}},E.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,_))},E.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}},E.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},E.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},E.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,a.replaceCodePoint)(this.result),this.consumed),this.errors&&(T!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},E.prototype.stateNamedEntity=function(T,_){for(var I=this.decodeTree,w=I[this.treeIndex],O=(w&p.VALUE_LENGTH)>>14;_<T.length;_++,this.excess++){var A=T.charCodeAt(_);if(this.treeIndex=S(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&p.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},E.prototype.emitNotTerminatedNamedEntity=function(){var T,_=this,I=_.result,w=_.decodeTree,O=(w[I]&p.VALUE_LENGTH)>>14;return this.emitNamedEntityData(I,O,this.consumed),(T=this.errors)===null||T===void 0||T.missingSemicolonAfterCharacterReference(),this.consumed},E.prototype.emitNamedEntityData=function(T,_,I){var w=this.decodeTree;return this.emitCodePoint(_===1?w[T]&~p.VALUE_LENGTH:w[T+1],I),_===3&&this.emitCodePoint(w[T+2],I),I},E.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}},E}();t.EntityDecoder=v;function C(E){var T="",_=new v(E,function(I){return T+=(0,a.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 S(E,T,_,I){var w=(T&p.BRANCH_LENGTH)>>7,O=T&p.JUMP_TABLE;if(w===0)return O!==0&&I===O?_:-1;if(O){var A=I-O;return A<0||A>=w?-1:E[_+A]-1}for(var P=_,B=P+w-1;P<=B;){var U=P+B>>>1,le=E[U];if(le<I)P=U+1;else if(le>I)B=U-1;else return E[U+w]}return-1}t.determineBranch=S;var N=C(u.default),k=C(o.default);function R(E,T){return T===void 0&&(T=y.Legacy),N(E,T)}t.decodeHTML=R;function D(E){return N(E,y.Attribute)}t.decodeHTMLAttribute=D;function $(E){return N(E,y.Strict)}t.decodeHTMLStrict=$;function L(E){return k(E,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 o(d){return d>=r.Zero&&d<=r.Nine}function a(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])},p=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):a(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):o(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):o(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=p})(To);var Px=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]}),kx=M&&M.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Rx=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)&&Px(e,t,r);return kx(e,t),e};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.Parser=void 0;var rn=Rx(To),vs=kr,kt=new Set(["input","option","optgroup","select","button","datalist","textarea"]),K=new Set(["p"]),xs=new Set(["thead","tbody"]),ws=new Set(["dd","dt"]),Es=new Set(["rt","rp"]),Ix=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",K],["h1",K],["h2",K],["h3",K],["h4",K],["h5",K],["h6",K],["select",kt],["input",kt],["output",kt],["button",kt],["datalist",kt],["textarea",kt],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",ws],["dt",ws],["address",K],["article",K],["aside",K],["blockquote",K],["details",K],["div",K],["dl",K],["fieldset",K],["figcaption",K],["figure",K],["footer",K],["form",K],["header",K],["hr",K],["main",K],["nav",K],["ol",K],["pre",K],["section",K],["table",K],["ul",K],["rt",Es],["rp",Es],["tbody",xs],["tfoot",xs]]),Dx=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Ss=new Set(["math","svg"]),Cs=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Lx=/\s|\//,Mx=function(){function t(e,r){r===void 0&&(r={});var n,i,u,o,a;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:rn.default)(this.options,this),(a=(o=this.cbs).onparserinit)===null||a===void 0||a.call(o,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,vs.fromCodePoint)(e)),this.startIndex=i},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&Dx.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 o=!this.options.xmlMode&&Ix.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,a,!0)}this.isVoidElement(e)||(this.stack.push(e),Ss.has(e)?this.foreignContext.push(!0):Cs.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,o,a,s;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(Ss.has(l)||Cs.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"),(o=(u=this.cbs).onopentag)===null||o===void 0||o.call(u,"br",{},!0),(s=(a=this.cbs).onclosetag)===null||s===void 0||s.call(a,"br",!1));else{var c=this.stack.lastIndexOf(l);if(c!==-1)if(this.cbs.onclosetag)for(var p=this.stack.length-c;p--;)this.cbs.onclosetag(this.stack.pop(),p!==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,vs.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===rn.QuoteType.Double?'"':e===rn.QuoteType.Single?"'":e===rn.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(Lx),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,o,a;this.endIndex=r,(u=(i=this.cbs).oncomment)===null||u===void 0||u.call(i,this.getSlice(e,r-n)),(a=(o=this.cbs).oncommentend)===null||a===void 0||a.call(o),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var i,u,o,a,s,l,c,p,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),(a=(o=this.cbs).ontext)===null||a===void 0||a.call(o,g),(l=(s=this.cbs).oncdataend)===null||l===void 0||l.call(s)):((p=(c=this.cbs).oncomment)===null||p===void 0||p.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=Mx;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={},pt=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,Oo=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),jo(this,e)},t}();z.Node=Oo;var gi=function(t){pt(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}(Oo);z.DataNode=gi;var Bc=function(t){pt(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}(gi);z.Text=Bc;var qc=function(t){pt(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}(gi);z.Comment=qc;var Hc=function(t){pt(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}(gi);z.ProcessingInstruction=Hc;var mi=function(t){pt(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}(Oo);z.NodeWithChildren=mi;var Fc=function(t){pt(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}(mi);z.CDATA=Fc;var zc=function(t){pt(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}(mi);z.Document=zc;var Uc=function(t){pt(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 o=t.call(this,i)||this;return o.name=r,o.attribs=n,o.type=u,o}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}(mi);z.Element=Uc;function Vc(t){return(0,be.isTag)(t)}z.isTag=Vc;function Wc(t){return t.type===be.ElementType.CDATA}z.isCDATA=Wc;function Gc(t){return t.type===be.ElementType.Text}z.isText=Gc;function Xc(t){return t.type===be.ElementType.Comment}z.isComment=Xc;function Yc(t){return t.type===be.ElementType.Directive}z.isDirective=Yc;function Jc(t){return t.type===be.ElementType.Root}z.isDocument=Jc;function $x(t){return Object.prototype.hasOwnProperty.call(t,"children")}z.hasChildren=$x;function jo(t,e){e===void 0&&(e=!1);var r;if(Gc(t))r=new Bc(t.data);else if(Xc(t))r=new qc(t.data);else if(Vc(t)){var n=e?Bi(t.children):[],i=new Uc(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(Wc(t)){var n=e?Bi(t.children):[],u=new Fc(n);n.forEach(function(l){return l.parent=u}),r=u}else if(Jc(t)){var n=e?Bi(t.children):[],o=new zc(n);n.forEach(function(l){return l.parent=o}),t["x-mode"]&&(o["x-mode"]=t["x-mode"]),r=o}else if(Yc(t)){var a=new Hc(t.name,t.data);t["x-name"]!=null&&(a["x-name"]=t["x-name"],a["x-publicId"]=t["x-publicId"],a["x-systemId"]=t["x-systemId"]),r=a}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=jo;function Bi(t){for(var e=t.map(function(n){return jo(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(a,s,l,c){c===void 0&&(c=l);var p=Object.getOwnPropertyDescriptor(s,l);(!p||("get"in p?!s.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(a,c,p)}:function(a,s,l,c){c===void 0&&(c=l),a[c]=s[l]}),r=M&&M.__exportStar||function(a,s){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&e(s,a,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},o=function(){function a(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 a.prototype.onparserinit=function(s){this.parser=s},a.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},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(s){this.handleCallback(s)},a.prototype.onclosetag=function(){this.lastNode=null;var s=this.tagStack.pop();this.options.withEndIndices&&(s.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(s)},a.prototype.onopentag=function(s,l){var c=this.options.xmlMode?n.ElementType.Tag:void 0,p=new i.Element(s,l,void 0,c);this.addNode(p),this.tagStack.push(p)},a.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}},a.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},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var s=new i.Text(""),l=new i.CDATA([s]);this.addNode(l),s.parent=l,this.lastNode=s},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(s,l){var c=new i.ProcessingInstruction(s,l);this.addNode(c)},a.prototype.handleCallback=function(s){if(typeof this.callback=="function")this.callback(s,this.dom);else if(s)throw s},a.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},a}();t.DomHandler=o,t.default=o})(et);var bn={},ht={},Fr={},Kc={},St={},_o={};Object.defineProperty(_o,"__esModule",{value:!0});function nn(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}_o.default=new Map(nn([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(nn([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(nn([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(nn([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var Mn={};(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,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);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="",o=0,a;(a=t.xmlReplacer.exec(i))!==null;){var s=a.index,l=i.charCodeAt(s),c=e.get(l);c!==void 0?(u+=i.substring(o,s)+c,o=s+1):(u+="".concat(i.substring(o,s),"&#x").concat((0,t.getCodePoint)(i,s).toString(16),";"),o=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return u+i.substr(o)}t.encodeXML=r,t.escape=r;function n(i,u){return function(a){for(var s,l=0,c="";s=i.exec(a);)l!==s.index&&(c+=a.substring(l,s.index)),c+=u.get(s[0].charCodeAt(0)),l=s.index+1;return c+a.substring(l)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(Mn);var Bx=M&&M.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(St,"__esModule",{value:!0});St.encodeNonAsciiHTML=St.encodeHTML=void 0;var qx=Bx(_o),Zc=Mn,Hx=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function Fx(t){return Qc(Hx,t)}St.encodeHTML=Fx;function zx(t){return Qc(Zc.xmlReplacer,t)}St.encodeNonAsciiHTML=zx;function Qc(t,e){for(var r="",n=0,i;(i=t.exec(e))!==null;){var u=i.index;r+=e.substring(n,u);var o=e.charCodeAt(u),a=qx.default.get(o);if(typeof a=="object"){if(u+1<e.length){var s=e.charCodeAt(u+1),l=typeof a.n=="number"?a.n===s?a.o:void 0:a.n.get(s);if(l!==void 0){r+=l,n=t.lastIndex+=1;continue}}a=a.v}if(a!==void 0)r+=a,n=u+1;else{var c=(0,Zc.getCodePoint)(e,u);r+="&#x".concat(c.toString(16),";"),n=t.lastIndex+=+(c!==o)}}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=St,n=Mn,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 o(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=o;function a(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),o(d,m)}t.decodeStrict=a;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=Mn;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=St;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 p=kr;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return p.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return p.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return p.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return p.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return p.decodeXML}})})(Kc);var Gt={};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.attributeNames=Gt.elementNames=void 0;Gt.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]}));Gt.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)},Ux=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]}),Vx=M&&M.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Wx=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)&&Ux(e,t,r);return Vx(e,t),e};Object.defineProperty(Fr,"__esModule",{value:!0});Fr.render=void 0;var Ue=Wx(sr),$n=Kc,ed=Gt,Gx=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Xx(t){return t.replace(/"/g,""")}function Yx(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?Xx:e.xmlMode||e.encodeEntities!=="utf8"?$n.encodeXML:$n.escapeAttribute;return Object.keys(t).map(function(i){var u,o,a=(u=t[i])!==null&&u!==void 0?u:"";return e.xmlMode==="foreign"&&(i=(o=ed.attributeNames.get(i))!==null&&o!==void 0?o:i),!e.emptyAttrs&&!e.xmlMode&&a===""?i:"".concat(i,'="').concat(n(a),'"')}).join(" ")}}var Ts=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function yi(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",i=0;i<r.length;i++)n+=Jx(r[i],e);return n}Fr.render=yi;Fr.default=yi;function Jx(t,e){switch(t.type){case Ue.Root:return yi(t.children,e);case Ue.Doctype:case Ue.Directive:return e3(t);case Ue.Comment:return n3(t);case Ue.CDATA:return r3(t);case Ue.Script:case Ue.Style:case Ue.Tag:return Qx(t,e);case Ue.Text:return t3(t,e)}}var Kx=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Zx=new Set(["svg","math"]);function Qx(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=ed.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&Kx.has(t.parent.name)&&(e=It(It({},e),{xmlMode:!1}))),!e.xmlMode&&Zx.has(t.name)&&(e=It(It({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),i=Yx(t.attribs,e);return i&&(n+=" ".concat(i)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&Ts.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=yi(t.children,e)),(e.xmlMode||!Ts.has(t.name))&&(n+="</".concat(t.name,">"))),n}function e3(t){return"<".concat(t.data,">")}function t3(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&Gx.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,$n.encodeXML)(n):(0,$n.escapeText)(n)),n}function r3(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function n3(t){return"<!--".concat(t.data,"-->")}var i3=M&&M.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ht,"__esModule",{value:!0});ht.getOuterHTML=td;ht.getInnerHTML=a3;ht.getText=gn;ht.textContent=vu;ht.innerText=xu;var Le=et,u3=i3(Fr),o3=sr;function td(t,e){return(0,u3.default)(t,e)}function a3(t,e){return(0,Le.hasChildren)(t)?t.children.map(function(r){return td(r,e)}).join(""):""}function gn(t){return Array.isArray(t)?t.map(gn).join(""):(0,Le.isTag)(t)?t.name==="br"?`
|
|
146
|
-
`:gn(t.children):(0,Le.isCDATA)(t)?gn(t.children):(0,Le.isText)(t)?t.data:""}function vu(t){return Array.isArray(t)?t.map(vu).join(""):(0,Le.hasChildren)(t)&&!(0,Le.isComment)(t)?vu(t.children):(0,Le.isText)(t)?t.data:""}function xu(t){return Array.isArray(t)?t.map(xu).join(""):(0,Le.hasChildren)(t)&&(t.type===o3.ElementType.Tag||(0,Le.isCDATA)(t))?xu(t.children):(0,Le.isText)(t)?t.data:""}var Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.getChildren=rd;Fe.getParent=nd;Fe.getSiblings=s3;Fe.getAttributeValue=l3;Fe.hasAttrib=c3;Fe.getName=d3;Fe.nextElementSibling=f3;Fe.prevElementSibling=p3;var Po=et;function rd(t){return(0,Po.hasChildren)(t)?t.children:[]}function nd(t){return t.parent||null}function s3(t){var e,r,n=nd(t);if(n!=null)return rd(n);for(var i=[t],u=t.prev,o=t.next;u!=null;)i.unshift(u),e=u,u=e.prev;for(;o!=null;)i.push(o),r=o,o=r.next;return i}function l3(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function c3(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function d3(t){return t.name}function f3(t){for(var e,r=t.next;r!==null&&!(0,Po.isTag)(r);)e=r,r=e.next;return r}function p3(t){for(var e,r=t.prev;r!==null&&!(0,Po.isTag)(r);)e=r,r=e.prev;return r}var bt={};Object.defineProperty(bt,"__esModule",{value:!0});bt.removeElement=zr;bt.replaceElement=h3;bt.appendChild=b3;bt.append=g3;bt.prependChild=m3;bt.prepend=y3;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 h3(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 b3(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 g3(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 m3(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 y3(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=v3;rt.find=id;rt.findOneChild=x3;rt.findOne=ud;rt.existsOne=od;rt.findAll=w3;var Ct=et;function v3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),id(t,Array.isArray(e)?e:[e],r,n)}function id(t,e,r,n){for(var i=[],u=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=u[0].length){if(o.length===1)return i;u.shift(),o.shift();continue}var a=u[0][o[0]++];if(t(a)&&(i.push(a),--n<=0))return i;r&&(0,Ct.hasChildren)(a)&&a.children.length>0&&(o.unshift(0),u.unshift(a.children))}}function x3(t,e){return e.find(t)}function ud(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,Ct.isTag)(u)&&t(u))return u;if(r&&(0,Ct.hasChildren)(u)&&u.children.length>0){var o=ud(t,u.children,!0);if(o)return o}}return null}function od(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,Ct.isTag)(r)&&t(r)||(0,Ct.hasChildren)(r)&&od(t,r.children)})}function w3(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,Ct.isTag)(u)&&t(u)&&r.push(u),(0,Ct.hasChildren)(u)&&u.children.length>0&&(i.unshift(0),n.unshift(u.children))}}var nt={};Object.defineProperty(nt,"__esModule",{value:!0});nt.testElement=S3;nt.getElements=C3;nt.getElementById=T3;nt.getElementsByTagName=A3;nt.getElementsByClassName=N3;nt.getElementsByTagType=O3;var yt=et,Ur=rt,Bn={tag_name:function(t){return typeof t=="function"?function(e){return(0,yt.isTag)(e)&&t(e.name)}:t==="*"?yt.isTag:function(e){return(0,yt.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,yt.isText)(e)&&t(e.data)}:function(e){return(0,yt.isText)(e)&&e.data===t}}};function ko(t,e){return typeof e=="function"?function(r){return(0,yt.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,yt.isTag)(r)&&r.attribs[t]===e}}function E3(t,e){return function(r){return t(r)||e(r)}}function ad(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Bn,r)?Bn[r](n):ko(r,n)});return e.length===0?null:e.reduce(E3)}function S3(t,e){var r=ad(t);return r?r(e):!0}function C3(t,e,r,n){n===void 0&&(n=1/0);var i=ad(t);return i?(0,Ur.filter)(i,e,r,n):[]}function T3(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,Ur.findOne)(ko("id",t),e,r)}function A3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Ur.filter)(Bn.tag_name(t),e,r,n)}function N3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Ur.filter)(ko("class",t),e,r,n)}function O3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Ur.filter)(Bn.tag_type(t),e,r,n)}var jt={};Object.defineProperty(jt,"__esModule",{value:!0});jt.DocumentPosition=void 0;jt.removeSubsets=j3;jt.compareDocumentPosition=sd;jt.uniqueSort=_3;var As=et;function j3(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 Ce;(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"})(Ce||(jt.DocumentPosition=Ce={}));function sd(t,e){var r=[],n=[];if(t===e)return 0;for(var i=(0,As.hasChildren)(t)?t:t.parent;i;)r.unshift(i),i=i.parent;for(i=(0,As.hasChildren)(e)?e:e.parent;i;)n.unshift(i),i=i.parent;for(var u=Math.min(r.length,n.length),o=0;o<u&&r[o]===n[o];)o++;if(o===0)return Ce.DISCONNECTED;var a=r[o-1],s=a.children,l=r[o],c=n[o];return s.indexOf(l)>s.indexOf(c)?a===e?Ce.FOLLOWING|Ce.CONTAINED_BY:Ce.FOLLOWING:a===t?Ce.PRECEDING|Ce.CONTAINS:Ce.PRECEDING}function _3(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=sd(e,r);return n&Ce.PRECEDING?-1:n&Ce.FOLLOWING?1:0}),t}var Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.getFeed=k3;var P3=ht,Vr=nt;function k3(t){var e=qn(M3,t);return e?e.name==="feed"?R3(e):I3(e):null}function R3(t){var e,r=t.children,n={type:"atom",items:(0,Vr.getElementsByTagName)("entry",r).map(function(o){var a,s=o.children,l={media:ld(s)};he(l,"id","id",s),he(l,"title","title",s);var c=(a=qn("link",s))===null||a===void 0?void 0:a.attribs.href;c&&(l.link=c);var p=ot("summary",s)||ot("content",s);p&&(l.description=p);var d=ot("updated",s);return d&&(l.pubDate=new Date(d)),l})};he(n,"id","id",r),he(n,"title","title",r);var i=(e=qn("link",r))===null||e===void 0?void 0:e.attribs.href;i&&(n.link=i),he(n,"description","subtitle",r);var u=ot("updated",r);return u&&(n.updated=new Date(u)),he(n,"author","email",r,!0),n}function I3(t){var e,r,n=(r=(e=qn("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(o){var a=o.children,s={media:ld(a)};he(s,"id","guid",a),he(s,"title","title",a),he(s,"link","link",a),he(s,"description","description",a);var l=ot("pubDate",a)||ot("dc:date",a);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=ot("lastBuildDate",n);return u&&(i.updated=new Date(u)),he(i,"author","managingEditor",n,!0),i}var D3=["url","type","lang"],L3=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function ld(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=D3;i<u.length;i++){var o=u[i];r[o]&&(n[o]=r[o])}for(var a=0,s=L3;a<s.length;a++){var o=s[a];r[o]&&(n[o]=parseInt(r[o],10))}return r.expression&&(n.expression=r.expression),n})}function qn(t,e){return(0,Vr.getElementsByTagName)(t,e,!0,1)[0]}function ot(t,e,r){return r===void 0&&(r=!1),(0,P3.textContent)((0,Vr.getElementsByTagName)(t,e,r,1)).trim()}function he(t,e,r,n,i){i===void 0&&(i=!1);var u=ot(r,n,i);u&&(t[e]=u)}function M3(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=M&&M.__createBinding||(Object.create?function(i,u,o,a){a===void 0&&(a=o);var s=Object.getOwnPropertyDescriptor(u,o);(!s||("get"in s?!u.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return u[o]}}),Object.defineProperty(i,a,s)}:function(i,u,o,a){a===void 0&&(a=o),i[a]=u[o]}),r=M&&M.__exportStar||function(i,u){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(u,o)&&e(u,i,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(ht,t),r(Fe,t),r(bt,t),r(rt,t),r(nt,t),r(jt,t),r(Ro,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}})})(bn);(function(t){var e=M&&M.__createBinding||(Object.create?function(y,v,C,S){S===void 0&&(S=C);var N=Object.getOwnPropertyDescriptor(v,C);(!N||("get"in N?!v.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:function(){return v[C]}}),Object.defineProperty(y,S,N)}:function(y,v,C,S){S===void 0&&(S=C),y[S]=v[C]}),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 C in y)C!=="default"&&Object.prototype.hasOwnProperty.call(y,C)&&e(v,y,C);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,o=Pr;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return o.Parser}});var a=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 C=new a.DomHandler(void 0,v);return new u.Parser(C,v).end(y),C.root}t.parseDocument=l;function c(y,v){return l(y,v).children}t.parseDOM=c;function p(y,v,C){var S=new a.DomHandler(y,v,C);return new u.Parser(S,v)}t.createDomStream=p;var d=To;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return i(d).default}}),t.ElementType=n(sr);var f=bn,g=bn;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(bn)})($c);var $3=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Io={};Object.defineProperty(Io,"__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 Ns(t){return Object.prototype.toString.call(t)==="[object Object]"}function B3(t){var e,r;return Ns(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(Ns(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}Io.isPlainObject=B3;var q3=function(e){return H3(e)&&!F3(e)};function H3(t){return!!t&&typeof t=="object"}function F3(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||V3(t)}var z3=typeof Symbol=="function"&&Symbol.for,U3=z3?Symbol.for("react.element"):60103;function V3(t){return t.$$typeof===U3}function W3(t){return Array.isArray(t)?[]:{}}function Rr(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Xt(W3(t),t,e):t}function G3(t,e,r){return t.concat(e).map(function(n){return Rr(n,r)})}function X3(t,e){if(!e.customMerge)return Xt;var r=e.customMerge(t);return typeof r=="function"?r:Xt}function Y3(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Os(t){return Object.keys(t).concat(Y3(t))}function cd(t,e){try{return e in t}catch{return!1}}function J3(t,e){return cd(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function K3(t,e,r){var n={};return r.isMergeableObject(t)&&Os(t).forEach(function(i){n[i]=Rr(t[i],r)}),Os(e).forEach(function(i){J3(t,i)||(cd(t,i)&&r.isMergeableObject(e[i])?n[i]=X3(i,r)(t[i],e[i],r):n[i]=Rr(e[i],r))}),n}function Xt(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||G3,r.isMergeableObject=r.isMergeableObject||q3,r.cloneUnlessOtherwiseSpecified=Rr;var n=Array.isArray(e),i=Array.isArray(t),u=n===i;return u?n?r.arrayMerge(t,e,r):K3(t,e,r):Rr(e,r)}Xt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return Xt(n,i,r)},{})};var Z3=Xt,Q3=Z3,dd={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(M,function(){return function(e){function r(S){return S===" "||S===" "||S===`
|
|
152
|
-
`||S==="\f"||S==="\r"}function n(S){var N,k=S.exec(e.substring(b));if(k)return N=k[0],b+=N.length,N}for(var i=e.length,u=/^[ \t\n\r\u000c]+/,o=/^[, \t\n\r\u000c]+/,a=/^[^ \t\n\r\u000c]+/,s=/[,]+$/,l=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,p,d,f,g,m,b=0,y=[];;){if(n(o),b>=i)return y;p=n(a),d=[],p.slice(-1)===","?(p=p.replace(s,""),C()):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),C();return}else if(m==="(")f=f+m,g="in parens";else if(m===""){f&&d.push(f),C();return}else f=f+m;else if(g==="in parens")if(m===")")f=f+m,g="in descriptor";else if(m===""){d.push(f),C();return}else f=f+m;else if(g==="after descriptor"&&!r(m))if(m===""){C();return}else g="in descriptor",b-=1;b+=1}}function C(){var S=!1,N,k,R,D,$={},L,E,T,_,I;for(D=0;D<d.length;D++)L=d[D],E=L[L.length-1],T=L.substring(0,L.length-1),_=parseInt(T,10),I=parseFloat(T),l.test(T)&&E==="w"?((N||k)&&(S=!0),_===0?S=!0:N=_):c.test(T)&&E==="x"?((N||k||R)&&(S=!0),I<0?S=!0:k=I):l.test(T)&&E==="h"?((R||k)&&(S=!0),_===0?S=!0:R=_):S=!0;S?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+L+"'."):($.url=p,N&&($.w=N),k&&($.d=k),R&&($.h=R),y.push($))}}})})(dd);var ew=dd.exports,Do={exports:{}},H=String,fd=function(){return{isColorSupported:!1,reset:H,bold:H,dim:H,italic:H,underline:H,inverse:H,hidden:H,strikethrough:H,black:H,red:H,green:H,yellow:H,blue:H,magenta:H,cyan:H,white:H,gray:H,bgBlack:H,bgRed:H,bgGreen:H,bgYellow:H,bgBlue:H,bgMagenta:H,bgCyan:H,bgWhite:H,blackBright:H,redBright:H,greenBright:H,yellowBright:H,blueBright:H,magentaBright:H,cyanBright:H,whiteBright:H,bgBlackBright:H,bgRedBright:H,bgGreenBright:H,bgYellowBright:H,bgBlueBright:H,bgMagentaBright:H,bgCyanBright:H,bgWhiteBright:H}};Do.exports=fd();Do.exports.createColors=fd;var tw=Do.exports;const rw={},nw=Object.freeze(Object.defineProperty({__proto__:null,default:rw},Symbol.toStringTag,{value:"Module"})),je=Pf(nw);let js=tw,_s=je,wu=class pd extends Error{constructor(e,r,n,i,u,o){super(e),this.name="CssSyntaxError",this.reason=e,u&&(this.file=u),i&&(this.source=i),o&&(this.plugin=o),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,pd)}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=js.isColorSupported);let n=c=>c,i=c=>c,u=c=>c;if(e){let{bold:c,gray:p,red:d}=js.createColors(!0);i=f=>c(d(f)),n=f=>p(f),_s&&(u=f=>_s(f))}let o=r.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,o.length),l=String(s).length;return o.slice(a,s).map((c,p)=>{let d=a+1+p,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),C=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
|
-
`+C+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 Lo=wu;wu.default=wu;const Ps={after:`
|
|
159
|
-
`,beforeClose:`
|
|
160
|
-
`,beforeComment:`
|
|
161
|
-
`,beforeDecl:`
|
|
162
|
-
`,beforeOpen:" ",beforeRule:`
|
|
163
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function iw(t){return t[0].toUpperCase()+t.slice(1)}let Eu=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 o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<u;a++)n+=o}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],o=this.raw(u,"before");o&&this.builder(o),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 Ps[n];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[n]<"u")return o.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let a="raw"+iw(n);this[a]?i=this[a](o,e):o.walk(s=>{if(i=s.raws[r],typeof i<"u")return!1})}return typeof i>"u"&&(i=Ps[n]),o.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 hd=Eu;Eu.default=Eu;let uw=hd;function Su(t,e){new uw(e).stringify(t)}var vi=Su;Su.default=Su;var Wr={};Wr.isClean=Symbol("isClean");Wr.my=Symbol("my");let ow=Lo,aw=hd,sw=vi,{isClean:hr,my:lw}=Wr;function Cu(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(o=>Cu(o,r)):(u==="object"&&i!==null&&(i=Cu(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 Tu=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[hr]=!1,this[lw]=!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=Cu(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 ow(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),o=u+e;for(let a=u;a<o;a++)i[a]===`
|
|
171
|
-
`?(r=1,n+=1):r+=1;return{column:r,line:n,offset:o}}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 o=r.slice(Ve(r,this.source.start),Ve(r,this.source.end)).indexOf(e.word);o!==-1&&(n=this.positionInside(o),i=this.positionInside(o+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 aw().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 o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))n[o]=a.map(s=>typeof s=="object"&&s.toJSON?s.toJSON(null,r):s);else if(typeof a=="object"&&a.toJSON)n[o]=a.toJSON(null,r);else if(o==="source"){if(a==null)continue;let s=r.get(a.input);s==null&&(s=u,r.set(a.input,u),u++),n[o]={end:a.end,inputId:s,start:a.start}}else n[o]=a}return i&&(n.inputs=[...r.keys()].map(o=>o.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=sw){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 xi=Tu;Tu.default=Tu;let cw=xi,Au=class extends cw{constructor(e){super(e),this.type="comment"}};var wi=Au;Au.default=Au;let dw=xi,Nu=class extends dw{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=Nu;Nu.default=Nu;let bd=wi,gd=Ei,fw=xi,{isClean:md,my:yd}=Wr,Mo,vd,xd,$o;function wd(t){return t.map(e=>(e.nodes&&(e.nodes=wd(e.nodes)),delete e.source,e))}function Ed(t){if(t[md]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Ed(e)}let tt=class Sd extends fw{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,o)=>i(u.toProxy(),o):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 o of i)this.proxyOf.nodes.splice(n+1,0,o);let u;for(let o in this.indexes)u=this.indexes[o],n<u&&(this.indexes[o]=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 a of u)this.proxyOf.nodes.splice(n,0,a);let o;for(let a in this.indexes)o=this.indexes[a],n<=o&&(this.indexes[a]=o+u.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=wd(vd(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 gd(e)]}else if(e.selector||e.selectors)e=[new $o(e)];else if(e.name)e=[new Mo(e)];else if(e.text)e=[new bd(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[yd]||Sd.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[md]&&Ed(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=>{vd=t};tt.registerRule=t=>{$o=t};tt.registerAtRule=t=>{Mo=t};tt.registerRoot=t=>{xd=t};var _t=tt;tt.default=tt;tt.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Mo.prototype):t.type==="rule"?Object.setPrototypeOf(t,$o.prototype):t.type==="decl"?Object.setPrototypeOf(t,gd.prototype):t.type==="comment"?Object.setPrototypeOf(t,bd.prototype):t.type==="root"&&Object.setPrototypeOf(t,xd.prototype),t[yd]=!0,t.nodes&&t.nodes.forEach(e=>{tt.rebuild(e)})};let Cd=_t,Hn=class extends Cd{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 Bo=Hn;Hn.default=Hn;Cd.registerAtRule(Hn);let pw=_t,Td,Ad,Ir=class extends pw{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Td(new Ad,this,e).stringify()}};Ir.registerLazyResult=t=>{Td=t};Ir.registerProcessor=t=>{Ad=t};var qo=Ir;Ir.default=Ir;let hw="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",bw=(t=21)=>{let e="",r=t|0;for(;r--;)e+=hw[Math.random()*64|0];return e};var gw={nanoid:bw};let{existsSync:mw,readFileSync:yw}=je,{dirname:qi,join:vw}=je,{SourceMapConsumer:ks,SourceMapGenerator:Rs}=je;function xw(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let Ou=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=qi(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new ks(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,/,o=e.match(i)||e.match(u);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(r)||e.match(n);if(a)return xw(e.substr(a[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=qi(e),mw(e))return this.mapFile=e,yw(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 ks)return Rs.fromSourceMap(r).toString();if(r instanceof Rs)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=vw(qi(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 Nd=Ou;Ou.default=Ou;let{nanoid:ww}=gw,{isAbsolute:ju,resolve:_u}=je,{SourceMapConsumer:Ew,SourceMapGenerator:Sw}=je,{fileURLToPath:Is,pathToFileURL:un}=je,Ds=Lo,Cw=Nd,Hi=je,Fi=Symbol("lineToIndexCache"),Tw=!!(Ew&&Sw),Ls=!!(_u&&ju);function Ms(t){if(t[Fi])return t[Fi];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[Fi]=r,r}let Fn=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&&(!Ls||/^\w+:\/\//.test(r.from)||ju(r.from)?this.file=r.from:this.file=_u(r.from)),Ls&&Tw){let n=new Cw(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 "+ww(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,i={}){let u,o,a,s,l;if(r&&typeof r=="object"){let p=r,d=n;if(typeof p.offset=="number"){s=p.offset;let f=this.fromOffset(s);r=f.line,n=f.col}else r=p.line,n=p.column,s=this.fromLineAndColumn(r,n);if(typeof d.offset=="number"){a=d.offset;let f=this.fromOffset(a);o=f.line,u=f.col}else o=d.line,u=d.column,a=this.fromLineAndColumn(d.line,d.column)}else if(n)s=this.fromLineAndColumn(r,n);else{s=r;let p=this.fromOffset(s);r=p.line,n=p.col}let c=this.origin(r,n,o,u);return c?l=new Ds(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 Ds(e,o===void 0?r:{column:n,line:r},o===void 0?n:{column:u,line:o},this.css,this.file,i.plugin),l.input={column:n,endColumn:u,endLine:o,endOffset:a,line:r,offset:s,source:this.css},this.file&&(un&&(l.input.url=un(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,r){return Ms(this)[e-1]+r-1}fromOffset(e){let r=Ms(this),n=r[r.length-1],i=0;if(e>=n)i=r.length-1;else{let u=r.length-2,o;for(;i<u;)if(o=i+(u-i>>1),e<r[o])u=o-1;else if(e>=r[o+1])i=o+1;else{i=o;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:_u(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,i){if(!this.map)return!1;let u=this.map.consumer(),o=u.originalPositionFor({column:r,line:e});if(!o.source)return!1;let a;typeof n=="number"&&(a=u.originalPositionFor({column:i,line:n}));let s;ju(o.source)?s=un(o.source):s=new URL(o.source,this.map.consumer().sourceRoot||un(this.map.mapFile));let l={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:s.toString()};if(s.protocol==="file:")if(Is)l.file=Is(s);else throw new Error("file: protocol is not available in this PostCSS build");let c=u.sourceContentFor(o.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 Si=Fn;Fn.default=Fn;Hi&&Hi.registerInput&&Hi.registerInput(Fn);let Od=_t,jd,_d,Yt=class extends Od{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 jd(new _d,this,e).stringify()}};Yt.registerLazyResult=t=>{jd=t};Yt.registerProcessor=t=>{_d=t};var Gr=Yt;Yt.default=Yt;Od.registerRoot(Yt);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,o=0,a=!1,s="",l=!1;for(let c of t)l?l=!1:c==="\\"?l=!0:a?c===s&&(a=!1):c==='"'||c==="'"?(a=!0,s=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===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 Pd=Dr;Dr.default=Dr;let kd=_t,Aw=Pd,zn=class extends kd{get selectors(){return Aw.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 Ho=zn;zn.default=zn;kd.registerRule(zn);let Nw=Bo,Ow=wi,jw=Ei,_w=Si,Pw=Nd,kw=Gr,Rw=Ho;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__:_w.prototype};u.map&&(u.map={...u.map,__proto__:Pw.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 kw(n);if(n.type==="decl")return new jw(n);if(n.type==="rule")return new Rw(n);if(n.type==="comment")return new Ow(n);if(n.type==="atrule")return new Nw(n);throw new Error("Unknown node type: "+t.type)}var Iw=Lr;Lr.default=Lr;let{dirname:mn,relative:Rd,resolve:Id,sep:Dd}=je,{SourceMapConsumer:Ld,SourceMapGenerator:yn}=je,{pathToFileURL:$s}=je,Dw=Si,Lw=!!(Ld&&yn),Mw=!!(mn&&Id&&Rd&&Dd),$w=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||mn(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Ld(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(),Mw&&Lw&&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=yn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new yn({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 yn({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,o;this.stringify(this.root,(a,s,l)=>{if(this.css+=a,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))),o=a.match(/\n/g),o?(e+=o.length,u=a.lastIndexOf(`
|
|
177
|
-
`),r=a.length-u):r+=a.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?mn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=mn(Id(n,this.mapOpts.annotation)));let i=Rd(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 Dw(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($s){let n=$s(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;Dd==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Md=$w;const zi=39,Bs=34,on=92,qs=47,an=10,br=32,sn=12,ln=9,cn=13,Bw=91,qw=93,Hw=40,Fw=41,zw=123,Uw=125,Vw=59,Ww=42,Gw=58,Xw=64,dn=/[\t\n\f\r "#'()/;[\\\]{}]/g,fn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Yw=/.[\r\n"'(/\\]/,Hs=/[\da-f]/i;var Jw=function(e,r={}){let n=e.css.valueOf(),i=r.ignoreErrors,u,o,a,s,l,c,p,d,f,g,m=n.length,b=0,y=[],v=[];function C(){return b}function S(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 an:case br:case ln:case cn:case sn:{s=b;do s+=1,u=n.charCodeAt(s);while(u===br||u===an||u===ln||u===cn||u===sn);c=["space",n.slice(b,s)],b=s-1;break}case Bw:case qw:case zw:case Uw:case Gw:case Vw:case Fw:{let L=String.fromCharCode(u);c=[L,L,b];break}case Hw:{if(g=y.length?y.pop()[1]:"",f=n.charCodeAt(b+1),g==="url"&&f!==zi&&f!==Bs&&f!==br&&f!==an&&f!==ln&&f!==sn&&f!==cn){s=b;do{if(p=!1,s=n.indexOf(")",s+1),s===-1)if(i||$){s=b;break}else S("bracket");for(d=s;n.charCodeAt(d-1)===on;)d-=1,p=!p}while(p);c=["brackets",n.slice(b,s+1),b,s],b=s}else s=n.indexOf(")",b+1),o=n.slice(b,s+1),s===-1||Yw.test(o)?c=["(","(",b]:(c=["brackets",o,b,s],b=s);break}case zi:case Bs:{l=u===zi?"'":'"',s=b;do{if(p=!1,s=n.indexOf(l,s+1),s===-1)if(i||$){s=b+1;break}else S("string");for(d=s;n.charCodeAt(d-1)===on;)d-=1,p=!p}while(p);c=["string",n.slice(b,s+1),b,s],b=s;break}case Xw:{dn.lastIndex=b+1,dn.test(n),dn.lastIndex===0?s=n.length-1:s=dn.lastIndex-2,c=["at-word",n.slice(b,s+1),b,s],b=s;break}case on:{for(s=b,a=!0;n.charCodeAt(s+1)===on;)s+=1,a=!a;if(u=n.charCodeAt(s+1),a&&u!==qs&&u!==br&&u!==an&&u!==ln&&u!==cn&&u!==sn&&(s+=1,Hs.test(n.charAt(s)))){for(;Hs.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===qs&&n.charCodeAt(b+1)===Ww?(s=n.indexOf("*/",b+2)+1,s===0&&(i||$?s=n.length:S("comment")),c=["comment",n.slice(b,s+1),b,s],b=s):(fn.lastIndex=b+1,fn.test(n),fn.lastIndex===0?s=n.length-1:s=fn.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:C}};let Kw=Bo,Zw=wi,Qw=Ei,e6=Gr,Fs=Ho,t6=Jw;const zs={empty:!0,space:!0};function r6(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let n6=class{constructor(e){this.input=e,this.root=new e6,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 Kw;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,i,u,o=!1,a=!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==="{"){a=!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()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(r.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(r,"params",s),o&&(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=""),a&&(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[o,a]of e.entries()){if(i=a,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 o}n=i}return!1}comment(e){let r=new Zw;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=t6(this.input)}decl(e,r){let n=new Qw;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]||r6(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 o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.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),p="";for(let d=l;d>0;d--){let f=c[d][0];if(p.trim().startsWith("!")&&f!=="space")break;p=c.pop()[1]+p}p.trim().startsWith("!")&&(n.important=!0,n.raws.important=p,e=c)}if(u[0]!=="space"&&u[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(n.raws.between+=o.map(l=>l[1]).join(""),o=[]),this.raw(n,"value",o.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 Fs;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,o=[],a=e[1].startsWith("--"),s=[],l=e;for(;l;){if(n=l[0],s.push(l),n==="("||n==="[")u||(u=l),o.push(n==="("?")":"]");else if(a&&i&&n==="{")u||(u=l),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(s,a);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===o[o.length-1]&&(o.pop(),o.length===0&&(u=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),o.length>0&&this.unclosedBracket(u),r&&i){if(!a)for(;s.length&&(l=s[s.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(s.pop());this.decl(s,a)}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,o,a=n.length,s="",l=!0,c,p;for(let d=0;d<a;d+=1)u=n[d],o=u[0],o==="space"&&d===a-1&&!i?l=!1:o==="comment"?(p=n[d-1]?n[d-1][0]:"empty",c=n[d+1]?n[d+1][0]:"empty",!zs[p]&&!zs[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 Fs;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 i6=n6;let u6=_t,o6=Si,a6=i6;function Un(t,e){let r=new o6(t,e),n=new a6(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 Fo=Un;Un.default=Un;u6.registerParse(Un);let Pu=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 $d=Pu;Pu.default=Pu;let s6=$d,ku=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 s6(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var zo=ku;ku.default=ku;let Us={};var Bd=function(e){Us[e]||(Us[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let l6=_t,c6=qo,d6=Md,f6=Fo,Vs=zo,p6=Gr,h6=vi,{isClean:Pe,my:b6}=Wr,g6=Bd;const m6={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},y6={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},v6={Once:!0,postcssPlugin:!0,prepare:!0},Jt=0;function gr(t){return typeof t=="object"&&typeof t.then=="function"}function qd(t){let e=!1,r=m6[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Jt,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Jt,r+"Exit"]:[r,r+"Exit"]}function Ws(t){let e;return t.type==="document"?e=["Document",Jt,"DocumentExit"]:t.type==="root"?e=["Root",Jt,"RootExit"]:e=qd(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Ru(t){return t[Pe]=!1,t.nodes&&t.nodes.forEach(e=>Ru(e)),t}let Iu={},Kt=class Hd{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=Ru(r);else if(r instanceof Hd||r instanceof Vs)i=Ru(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=f6;n.syntax&&(u=n.syntax.parse),n.parser&&(u=n.parser),u.parse&&(u=u.parse);try{i=u(r,n)}catch(o){this.processed=!0,this.error=o}i&&!i[b6]&&l6.rebuild(i)}this.result=new Vs(e,i,n),this.helpers={...Iu,postcss:Iu,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,o=this.result.processor.version,a=u.split("."),s=o.split(".");(a[0]!==s[0]||parseInt(a[1])>parseInt(s[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", 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(!y6[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!v6[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=[Ws(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=h6;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new d6(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||g6("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(o){throw this.handleError(o,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[o,a]=i[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===i.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=o;try{return a(n.toProxy(),this.helpers)}catch(s){throw this.handleError(s,n)}}if(r.iterator!==0){let o=r.iterator,a;for(;a=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!a[Pe]){a[Pe]=!0,e.push(Ws(a));return}r.iterator=0,delete n.indexes[o]}let u=r.events;for(;r.eventIndex<u.length;){let o=u[r.eventIndex];if(r.eventIndex+=1,o===Jt){n.nodes&&n.nodes.length&&(n[Pe]=!0,r.iterator=n.getIterator());return}else if(this.listeners[o]){r.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Pe]=!0;let r=qd(e);for(let n of r)if(n===Jt)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()}};Kt.registerPostcss=t=>{Iu=t};var Fd=Kt;Kt.default=Kt;p6.registerLazyResult(Kt);c6.registerLazyResult(Kt);let x6=Md,w6=Fo;const E6=zo;let S6=vi,C6=Bd,Du=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=w6;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=S6;this.result=new E6(this._processor,i,this._opts),this.result.css=r;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new x6(u,i,this._opts,r);if(a.isMap()){let[s,l]=a.generate();s&&(this.result.css=s),l&&(this.result.map=l)}else a.clearAnnotation(),this.result.css=a.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||C6("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 T6=Du;Du.default=Du;let A6=qo,N6=Fd,O6=T6,j6=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 O6(this,e,r):new N6(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var _6=Mr;Mr.default=Mr;j6.registerProcessor(Mr);A6.registerProcessor(Mr);let zd=Bo,Ud=wi,P6=_t,k6=Lo,Vd=Ei,Wd=qo,R6=Iw,I6=Si,D6=Fd,L6=Pd,M6=xi,$6=Fo,Uo=_6,B6=zo,Gd=Gr,Xd=Ho,q6=vi,H6=$d;function J(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Uo(t)}J.plugin=function(e,r){let n=!1;function i(...o){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 a=r(...o);return a.postcssPlugin=e,a.postcssVersion=new Uo().version,a}let u;return Object.defineProperty(i,"postcss",{get(){return u||(u=i()),u}}),i.process=function(o,a,s){return J([i(s)]).process(o,a)},i};J.stringify=q6;J.parse=$6;J.fromJSON=R6;J.list=L6;J.comment=t=>new Ud(t);J.atRule=t=>new zd(t);J.decl=t=>new Vd(t);J.rule=t=>new Xd(t);J.root=t=>new Gd(t);J.document=t=>new Wd(t);J.CssSyntaxError=k6;J.Declaration=Vd;J.Container=P6;J.Processor=Uo;J.Document=Wd;J.Comment=Ud;J.Warning=H6;J.AtRule=zd;J.Result=B6;J.Input=I6;J.Rule=Xd;J.Root=Gd;J.Node=M6;D6.registerPostcss(J);var F6=J;J.default=J;const z6=$c,Gs=$3,{isPlainObject:U6}=Io,Xs=Q3,V6=ew,{parse:W6}=F6,G6=["img","audio","video","picture","svg","object","map","iframe","embed"],X6=["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 Ys(t,e){const r=[];return Rt(t,function(n){e(n)&&r.push(n)}),r}function Y6(t){for(const e in t)if(We(t,e))return!1;return!0}function J6(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 K6=$r;const Z6=/^[^\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&&G6.includes(this.tag)&&b[b.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},$r.defaults,e),e.parser=Object.assign({},Q6,e.parser);const o=function(w){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(w)>-1};X6.forEach(function(w){o(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 a=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(Gs(P).replace(/\\\*/g,".*")):s[O].push(P)}),A.length&&(l[O]=new RegExp("^("+A.join("|")+")$"))}));const c={},p={},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(Gs(P).replace(/\\\*/g,".*")):P instanceof RegExp?d[O].push(P):c[O].push(P)}),A.length&&(p[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,C,S,N=!1;R();const k=new z6.Parser({onopentag:function(w,O){if(e.onOpenTag&&e.onOpenTag(w,O),e.enforceHtmlBoundary&&w==="html"&&R(),C){S++;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)),(!o(w)||e.disallowedTagsMode==="recursiveEscape"&&!Y6(y)||e.nestingLimit!=null&&m>=e.nestingLimit)&&(P=!0,y[m]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&a.indexOf(w)!==-1&&(C=!0,S=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(!Z6.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(U6(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=V6(X);if(G.forEach(function(W){$("srcset",W.url)&&(W.evil=!0)}),G=Ys(G,function(W){return!W.evil}),G.length)X=J6(Ys(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=p[w],xe=d[w],pe=d["*"],Xr=p["*"],cr=[_e,Xr].concat(xe,pe).filter(function(gt){return gt});if(G&&W?X=I(X,Xs(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=W6(w+" {"+X+"}",{map:!1}),W=E(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(C)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"&&!o(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),C)if(S--,!S)C=!1;else return;const A=b.pop();if(!A)return;if(A.tag!==w){b.push(A);return}C=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&&!o(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={},C=!1,S=0}function D(w,O){return typeof w!="string"&&(w=w+""),e.parser.decodeEntities&&(w=w.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(w=w.replace(/"/g,"""))),w=w.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(w=w.replace(/"/g,""")),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 E(w,O){if(!O)return w;const A=w.nodes[0];let P;return O[A.selector]&&O["*"]?P=Xs(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 Q6={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 Yd=Xn(K6),e4=[{command:"bold",icon:J0,label:"Bold"},{command:"italic",icon:ef,label:"Italic"},{command:"underline",icon:uf,label:"Underline"},{command:"strikeThrough",icon:nf,label:"Strikethrough"},{command:"insertUnorderedList",icon:rf,label:"Bullet List"},{command:"insertOrderedList",icon:tf,label:"Numbered List"}],t4={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$/]}}},r4=({label:t,value:e,onChange:r})=>{const n=j.useRef(null),[i,u]=j.useState(!1),[o,a]=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=Yd(b,t4);r(y)}},p=()=>{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=()=>{p(),u(!0)},g=()=>{var b;if(o){d();let y=o.trim();y&&!y.match(/^https?:\/\//i)&&(y="https://"+y);try{new URL(y),document.execCommand("createLink",!1,y),c()}catch{}}u(!1),a(""),(b=n.current)==null||b.focus()},m=b=>{try{return document.queryCommandState(b)}catch{return!1}};return h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsx("div",{className:"flex items-center gap-0.5 p-1 bg-muted rounded-t border border-input border-b-0",children:h.jsxs(_r,{children:[e4.map(({command:b,icon:y,label:v})=>h.jsxs(Ut,{children:[h.jsx(Vt,{asChild:!0,children:h.jsx("button",{type:"button",onMouseDown:C=>{C.preventDefault(),l(b)},className:`p-1.5 rounded hover:bg-background transition-colors ${m(b)?"bg-background text-primary":"text-muted-foreground"}`,children:h.jsx(y,{className:"h-3.5 w-3.5"})})}),h.jsx(Et,{side:"top",children:h.jsx("p",{children:v})})]},b)),h.jsx("div",{className:"w-px h-4 bg-border mx-1"}),h.jsxs(Ut,{children:[h.jsx(Vt,{asChild:!0,children:h.jsx("button",{type:"button",onMouseDown:b=>{b.preventDefault(),f()},className:"p-1.5 rounded hover:bg-background transition-colors text-muted-foreground",children:h.jsx(cl,{className:"h-3.5 w-3.5"})})}),h.jsx(Et,{side:"top",children:h.jsx("p",{children:"Insert Link"})})]})]})}),h.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&&h.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:h.jsxs("div",{className:"bg-background p-4 rounded-lg shadow-lg w-80 space-y-3",children:[h.jsx("h4",{className:"text-sm font-medium",children:"Insert Link"}),h.jsx("input",{type:"url",value:o,onChange:b=>a(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),a(""))}}),h.jsxs("div",{className:"flex justify-end gap-2",children:[h.jsx("button",{onClick:()=>{u(!1),a("")},className:"px-3 py-1.5 text-xs rounded border border-input hover:bg-muted",children:"Cancel"}),h.jsx("button",{onClick:g,className:"px-3 py-1.5 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90",children:"Insert"})]})]})})]})},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$/]}}},Vo=({text:t="Edit me",fontSize:e={desktop:16},fontWeight:r="400",fontFamily:n="inherit",lineHeight:i={desktop:150},letterSpacing:u={desktop:0},textAlign:o="left",color:a="#000000",margin:s={top:0,right:0,bottom:0,left:0},textDecoration:l="none",textTransform:c="none",opacity:p=100})=>{const d=Ot(),f=Br(),{connectors:{connect:g,drag:m},isActive:b}=re(R=>({isActive:R.events.selected})),y=bi(t,f),v=typeof s=="object"&&!("desktop"in s)?`${s.top}px ${s.right}px ${s.bottom}px ${s.left}px`:`${s}px`,C=Ye(e,d,16),S=Ye(i,d,150)/100,N=Ye(u,d,0),k=/<[^>]+>/.test(y);return h.jsx("div",{ref:R=>R&&g(m(R)),className:`cursor-move ${b?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${C}px`,fontWeight:r,fontFamily:n,lineHeight:S,letterSpacing:`${N}px`,textAlign:o,color:a,margin:v,textDecoration:l,textTransform:c,opacity:p/100},children:k?h.jsx("div",{dangerouslySetInnerHTML:{__html:Yd(y,n4)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):h.jsx("p",{children:y})})},i4=()=>{const{actions:{setProp:t},props:e}=re(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 h.jsxs("div",{className:"space-y-3",children:[h.jsx(F,{title:"Content",defaultOpen:!0,children:h.jsx(r4,{label:"Text",value:e.text,onChange:n=>t(i=>i.text=n)})}),h.jsxs(F,{title:"Typography",defaultOpen:!0,children:[h.jsx(ie,{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)}),h.jsx(Dn,{label:"Size",values:e.fontSize,onChange:n=>t(i=>i.fontSize=n),min:8,max:120,defaultValue:16}),h.jsx(ie,{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)}),h.jsx(Ln,{label:"Line Height",values:e.lineHeight,onChange:n=>t(i=>i.lineHeight=n),min:80,max:250,unit:"%",defaultValue:150}),h.jsx(Dn,{label:"Letter Spacing",values:e.letterSpacing,onChange:n=>t(i=>i.letterSpacing=n),min:-5,max:20,defaultValue:0}),h.jsx(Ke,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:h.jsx(Hu,{className:"h-3 w-3"})},{value:"center",label:h.jsx(qu,{className:"h-3 w-3"})},{value:"right",label:h.jsx(Fu,{className:"h-3 w-3"})}],onChange:n=>t(i=>i.textAlign=n)}),h.jsx(ie,{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)}),h.jsx(ie,{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)})]}),h.jsxs(F,{title:"Color",defaultOpen:!1,children:[h.jsx(De,{label:"Text Color",value:e.color||"#000000",onChange:n=>t(i=>i.color=n)}),h.jsx(Ln,{label:"Opacity",values:e.opacity,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%",defaultValue:100})]}),h.jsx(F,{title:"Spacing",defaultOpen:!1,children:h.jsx(Ne,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})}),h.jsx(F,{title:"Dynamic Data",defaultOpen:!1,children:h.jsx(Mc,{})})]})};Vo.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:i4}};const Wo=({text:t="Click me",variant:e="solid",size:r="md",backgroundColor:n="#FF6B35",textColor:i="#ffffff",borderColor:u="#FF6B35",borderWidth:o=0,borderRadius:a=8,fontWeight:s="500",fontSize:l="auto",width:c="auto",paddingX:p=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}=re(_=>({isActive:_.events.selected})),C={sm:{px:12,py:6,fs:14},md:{px:16,py:10,fs:16},lg:{px:24,py:14,fs:18}},S=C[r]||C.md,N=p==="auto"?S.px:p,k=d==="auto"?S.py:d,R=l==="auto"?S.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,E=e==="outline"?2:o,T=e==="outline"?n:u;return h.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:`${E}px`,borderColor:T,borderStyle:"solid",borderRadius:`${a}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})},u4=()=>{const{actions:{setProp:t},props:e}=re(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return h.jsxs("div",{className:"space-y-3",children:[h.jsx(F,{title:"Content",defaultOpen:!0,children:h.jsx(Wt,{label:"Text",value:e.text,onChange:n=>t(i=>i.text=n)})}),h.jsxs(F,{title:"Style",defaultOpen:!0,children:[h.jsx(Ke,{label:"Variant",value:e.variant||"solid",options:[{value:"solid",label:"Solid"},{value:"outline",label:"Outline"}],onChange:n=>t(i=>i.variant=n)}),h.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)}),h.jsx(Ke,{label:"Width",value:e.width||"auto",options:[{value:"auto",label:"Auto"},{value:"full",label:"Full"}],onChange:n=>t(i=>i.width=n)})]}),h.jsxs(F,{title:"Colors",defaultOpen:!0,children:[h.jsx(De,{label:"Background",value:e.backgroundColor||"#FF6B35",onChange:n=>t(i=>i.backgroundColor=n)}),h.jsx(De,{label:"Text",value:e.textColor||"#ffffff",onChange:n=>t(i=>i.textColor=n)}),h.jsx(Co,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%"})]}),h.jsxs(F,{title:"Typography",defaultOpen:!1,children:[h.jsx(de,{label:"Font Size",value:e.fontSize==="auto"?16:e.fontSize,onChange:n=>t(i=>i.fontSize=n),min:10,max:32}),h.jsx(ie,{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)})]}),h.jsxs(F,{title:"Padding",defaultOpen:!1,children:[h.jsx(de,{label:"Horizontal",value:e.paddingX||16,onChange:n=>t(i=>i.paddingX=n),max:64}),h.jsx(de,{label:"Vertical",value:e.paddingY||10,onChange:n=>t(i=>i.paddingY=n),max:48})]}),h.jsxs(F,{title:"Border",defaultOpen:!1,children:[h.jsx(de,{label:"Radius",value:e.borderRadius||8,onChange:n=>t(i=>i.borderRadius=n),max:50}),h.jsx(de,{label:"Width",value:e.borderWidth||0,onChange:n=>t(i=>i.borderWidth=n),max:10}),h.jsx(De,{label:"Color",value:e.borderColor||"#FF6B35",onChange:n=>t(i=>i.borderColor=n)})]}),h.jsx(F,{title:"Effects",defaultOpen:!1,children:h.jsx(ie,{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)})}),h.jsx(F,{title:"Spacing",defaultOpen:!1,children:h.jsx(Ne,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};Wo.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:u4}};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}},Go=({text:t="Heading",level:e=2,textAlign:r="left",color:n="#000000",fontWeight:i="700",fontFamily:u="inherit",fontSize:o="auto",lineHeight:a={desktop:120},letterSpacing:s={desktop:-.5},margin:l={top:0,right:0,bottom:16,left:0},textTransform:c="none",opacity:p={desktop:100}})=>{var D,$,L;const d=Ot(),f=Br(),{connectors:{connect:g,drag:m},isActive:b}=re(E=>({isActive:E.events.selected})),y=bi(t,f),v=`h${e}`;let C;o==="auto"?C=((D=wr[e])==null?void 0:D[d])||(($=wr[e])==null?void 0:$.desktop)||36:C=Ye(o,d,((L=wr[e])==null?void 0:L.desktop)||36);const S=Ye(a,d,120)/100,N=Ye(s,d,-.5),k=Ye(p,d,100),R=typeof l=="object"&&!("desktop"in l)?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`;return h.jsx(v,{ref:E=>E&&g(m(E)),className:`cursor-move ${b?"ring-2 ring-primary ring-offset-2":""}`,style:{textAlign:r,color:n,fontWeight:i,fontFamily:u,fontSize:`${C}px`,lineHeight:S,letterSpacing:`${N}px`,margin:R,textTransform:c,opacity:k/100},children:y})},o4=()=>{var u;const t=Ot(),{actions:{setProp:e},props:r}=re(o=>({props:o.data.props})),n=typeof r.margin=="object"&&!("desktop"in r.margin)?r.margin:{top:0,right:0,bottom:16,left:0},i=()=>{var o;return r.fontSize==="auto"?((o=wr[r.level||2])==null?void 0:o[t])||36:Ye(r.fontSize,t,36)};return h.jsxs("div",{className:"space-y-3",children:[h.jsxs(F,{title:"Content",defaultOpen:!0,children:[h.jsx(Wt,{label:"Text",value:r.text,onChange:o=>e(a=>a.text=o)}),h.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:o=>e(a=>{a.level=o,a.fontSize})})]}),h.jsxs(F,{title:"Typography",defaultOpen:!0,children:[h.jsx(ie,{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:o=>e(a=>a.fontFamily=o)}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:"Size Mode"}),h.jsx("button",{onClick:()=>e(o=>o.fontSize=o.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"&&h.jsx(Dn,{label:"Size",values:r.fontSize,onChange:o=>e(a=>a.fontSize=o),min:12,max:120,defaultValue:((u=wr[r.level||2])==null?void 0:u.desktop)||36})]}),h.jsx(ie,{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:o=>e(a=>a.fontWeight=o)}),h.jsx(Ln,{label:"Line Height",values:r.lineHeight,onChange:o=>e(a=>a.lineHeight=o),min:80,max:200,unit:"%",defaultValue:120}),h.jsx(Dn,{label:"Letter Spacing",values:r.letterSpacing,onChange:o=>e(a=>a.letterSpacing=o),min:-5,max:20,defaultValue:-.5}),h.jsx(Ke,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:h.jsx(Hu,{className:"h-3 w-3"})},{value:"center",label:h.jsx(qu,{className:"h-3 w-3"})},{value:"right",label:h.jsx(Fu,{className:"h-3 w-3"})}],onChange:o=>e(a=>a.textAlign=o)}),h.jsx(ie,{label:"Transform",value:r.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:o=>e(a=>a.textTransform=o)})]}),h.jsxs(F,{title:"Color",defaultOpen:!1,children:[h.jsx(De,{label:"Text Color",value:r.color||"#000000",onChange:o=>e(a=>a.color=o)}),h.jsx(Ln,{label:"Opacity",values:r.opacity,onChange:o=>e(a=>a.opacity=o),min:0,max:100,unit:"%",defaultValue:100})]}),h.jsx(F,{title:"Spacing",defaultOpen:!1,children:h.jsx(Ne,{label:"Margin",values:n,onChange:o=>e(a=>a.margin=o)})}),h.jsx(F,{title:"Dynamic Data",defaultOpen:!1,children:h.jsx(Mc,{})})]})};Go.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:o4}};const Xo=({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:o=8,margin:a={top:0,right:0,bottom:0,left:0},opacity:s=100,boxShadow:l="none"})=>{const{connectors:{connect:c,drag:p},isActive:d}=re(g=>({isActive:g.events.selected})),f=typeof a=="object"?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:`${a}px`;return h.jsx("img",{ref:g=>g&&c(p(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:`${o}px`,margin:f,opacity:s/100,boxShadow:l==="none"?"none":l,display:"block"}})},a4=()=>{const{actions:{setProp:t},props:e}=re(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return h.jsxs("div",{className:"space-y-3",children:[h.jsxs(F,{title:"Source",defaultOpen:!0,children:[h.jsx(Wt,{label:"Image URL",value:e.src,onChange:n=>t(i=>i.src=n)}),h.jsx(Wt,{label:"Alt Text",value:e.alt,onChange:n=>t(i=>i.alt=n)})]}),h.jsxs(F,{title:"Size",defaultOpen:!0,children:[h.jsx(ie,{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"&&h.jsx(de,{label:"Width (px)",value:e.width,onChange:n=>t(i=>i.width=n),max:1200}),h.jsx(ie,{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"&&h.jsx(de,{label:"Height (px)",value:e.height,onChange:n=>t(i=>i.height=n),max:800}),h.jsx(ie,{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)})]}),h.jsxs(F,{title:"Style",defaultOpen:!1,children:[h.jsx(de,{label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(i=>i.borderRadius=n),max:100}),h.jsx(Co,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%"}),h.jsx(ie,{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)})]}),h.jsx(F,{title:"Spacing",defaultOpen:!1,children:h.jsx(Ne,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};Xo.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:a4}};const Yo=({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:o,drag:a},isActive:s}=re(c=>({isActive:c.events.selected})),l=typeof i=="object"?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:`${i}px`;return h.jsx("hr",{ref:c=>c&&o(a(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}})},s4=()=>{const{actions:{setProp:t},props:e}=re(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:16,right:0,bottom:16,left:0};return h.jsxs("div",{className:"space-y-3",children:[h.jsxs(F,{title:"Style",defaultOpen:!0,children:[h.jsx(ie,{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)}),h.jsx(De,{label:"Color",value:e.color||"#e5e5e5",onChange:n=>t(i=>i.color=n)}),h.jsx(de,{label:"Thickness",value:e.height||1,onChange:n=>t(i=>i.height=n),min:1,max:20}),h.jsx(ie,{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"&&h.jsx(de,{label:"Width %",value:e.width,onChange:n=>t(i=>i.width=n),min:10,max:100,unit:"%"})]}),h.jsx(F,{title:"Spacing",defaultOpen:!0,children:h.jsx(Ne,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};Yo.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:s4}};const Jo=({height:t=40,responsive:e=!1,mobileHeight:r=20})=>{const{connectors:{connect:n,drag:i},isActive:u}=re(o=>({isActive:o.events.selected}));return h.jsxs("div",{ref:o=>o&&n(i(o)),className:`cursor-move w-full relative group ${u?"ring-2 ring-primary ring-offset-2":""}`,style:{height:`${t}px`},children:[h.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:h.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-secondary/80 px-2 py-1 rounded",children:[h.jsx("span",{children:"↕"}),h.jsxs("span",{children:[t,"px"]})]})}),h.jsx("div",{className:"absolute inset-x-0 top-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"}),h.jsx("div",{className:"absolute inset-x-0 bottom-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"})]})},l4=()=>{const{actions:{setProp:t},props:e}=re(r=>({props:r.data.props}));return h.jsx("div",{className:"space-y-3",children:h.jsxs(F,{title:"Size",defaultOpen:!0,children:[h.jsx(ie,{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])}}),h.jsx(de,{label:"Height",value:e.height||40,onChange:r=>t(n=>n.height=r),min:4,max:300})]})})};Jo.craft={displayName:"Spacer",props:{height:40,responsive:!1,mobileHeight:20},related:{settings:l4}};const c4="https://api.myracereel.com/api";function d4(){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 f4(t,e={}){const r=await fetch(`${c4}${t}`,{...e,headers:{...d4(),...e.headers}}),n=await r.json();if(!r.ok)throw new Error(n.message||"Request failed");return n}async function p4(t,e){return(await f4(`/videos/${t}/${e||""}`)).data}function h4(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 Ci="Checkbox",[b4]=ui(Ci),[g4,Ko]=b4(Ci);function m4(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:i,disabled:u,form:o,name:a,onCheckedChange:s,required:l,value:c="on",internal_do_not_use_render:p}=t,[d,f]=Eo({prop:r,defaultProp:i??!1,onChange:s,caller:Ci}),[g,m]=x.useState(null),[b,y]=x.useState(null),v=x.useRef(!1),C=g?!!o||!!g.closest("form"):!0,S={checked:d,disabled:u,setChecked:f,control:g,setControl:m,name:a,form:o,value:c,hasConsumerStoppedPropagationRef:v,required:l,defaultChecked:at(i)?!1:i,isFormControl:C,bubbleInput:b,setBubbleInput:y};return h.jsx(g4,{scope:e,...S,children:y4(p)?p(S):n})}var Jd="CheckboxTrigger",Kd=x.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},i)=>{const{control:u,value:o,disabled:a,checked:s,required:l,setControl:c,setChecked:p,hasConsumerStoppedPropagationRef:d,isFormControl:f,bubbleInput:g}=Ko(Jd,t),m=Be(i,c),b=x.useRef(s);return x.useEffect(()=>{const y=u==null?void 0:u.form;if(y){const v=()=>p(b.current);return y.addEventListener("reset",v),()=>y.removeEventListener("reset",v)}},[u,p]),h.jsx(Oe.button,{type:"button",role:"checkbox","aria-checked":at(s)?"mixed":s,"aria-required":l,"data-state":r0(s),"data-disabled":a?"":void 0,disabled:a,value:o,...n,ref:m,onKeyDown:Ee(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:Ee(r,y=>{p(v=>at(v)?!0:!v),g&&f&&(d.current=y.isPropagationStopped(),d.current||y.stopPropagation())})})});Kd.displayName=Jd;var Zo=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:u,required:o,disabled:a,value:s,onCheckedChange:l,form:c,...p}=t;return h.jsx(m4,{__scopeCheckbox:r,checked:i,defaultChecked:u,disabled:a,required:o,onCheckedChange:l,name:n,form:c,value:s,internal_do_not_use_render:({isFormControl:d})=>h.jsxs(h.Fragment,{children:[h.jsx(Kd,{...p,ref:e,__scopeCheckbox:r}),d&&h.jsx(t0,{__scopeCheckbox:r})]})})});Zo.displayName=Ci;var Zd="CheckboxIndicator",Qd=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...i}=t,u=Ko(Zd,r);return h.jsx(ci,{present:n||at(u.checked)||u.checked===!0,children:h.jsx(Oe.span,{"data-state":r0(u.checked),"data-disabled":u.disabled?"":void 0,...i,ref:e,style:{pointerEvents:"none",...t.style}})})});Qd.displayName=Zd;var e0="CheckboxBubbleInput",t0=x.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:i,checked:u,defaultChecked:o,required:a,disabled:s,name:l,value:c,form:p,bubbleInput:d,setBubbleInput:f}=Ko(e0,t),g=Be(r,f),m=h4(u),b=mc(n);x.useEffect(()=>{const v=d;if(!v)return;const C=window.HTMLInputElement.prototype,N=Object.getOwnPropertyDescriptor(C,"checked").set,k=!i.current;if(m!==u&&N){const R=new Event("click",{bubbles:k});v.indeterminate=at(u),N.call(v,at(u)?!1:u),v.dispatchEvent(R)}},[d,m,u,i]);const y=x.useRef(at(u)?!1:u);return h.jsx(Oe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??y.current,required:a,disabled:s,name:l,value:c,form:p,...e,tabIndex:-1,ref:g,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});t0.displayName=e0;function y4(t){return typeof t=="function"}function at(t){return t==="indeterminate"}function r0(t){return at(t)?"indeterminate":t?"checked":"unchecked"}const n0=x.forwardRef(({className:t,...e},r)=>h.jsx(Zo,{ref:r,className:ge("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:h.jsx(Qd,{className:ge("flex items-center justify-center text-current"),children:h.jsx(zu,{className:"h-4 w-4"})})}));n0.displayName=Zo.displayName;const v4=({onDownload:t,disabled:e=!1})=>{const[r,n]=j.useState(!0),[i,u]=j.useState(!1),o=()=>{r&&t&&!i&&(t(),u(!0))};return h.jsxs("div",{className:"py-4 max-w-[600px] w-full flex flex-col justify-center items-center",children:[h.jsx("div",{className:"flex w-full md:w-1/2 justify-center items-center",children:h.jsx(Er,{disabled:!r||i||e,onClick:o,className:"w-full",children:i?h.jsxs(h.Fragment,{children:[h.jsx(zu,{className:"h-4 w-4 mr-2"}),"Thank you!"]}):h.jsxs(h.Fragment,{children:[h.jsx(Q0,{className:"h-4 w-4 mr-2"}),"Download"]})})}),h.jsxs("label",{className:"flex items-start space-x-2 cursor-pointer mt-4",children:[h.jsx(n0,{checked:r,onCheckedChange:a=>n(a===!0),className:"mt-0.5"}),h.jsxs("span",{className:"text-sm text-muted-foreground",children:["I accept the"," ",h.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"}),"."]})]})]})},x4=(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},w4=({locationId:t,bibId:e,editorEnabled:r,videoTitle:n})=>{const i=j.useRef(null),{data:u,isLoading:o,error:a}=l0.useQuery({queryKey:["video",t,e],queryFn:()=>p4(t,e),enabled:!!t});if(o)return h.jsx("div",{className:"flex items-center justify-center h-48 bg-muted rounded-lg",children:h.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-muted-foreground border-t-transparent"})});if(a||!u)return r?h.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:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(K0,{className:"h-5 w-5 text-muted-foreground"}),h.jsx("p",{className:"text-muted-foreground text-sm font-medium",children:"Video not found (404)"})]}),h.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 h.jsx("div",{className:"w-full",children:h.jsxs("div",{className:"flex flex-col items-center",children:[h.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:n}),h.jsxs("h3",{className:"text-lg font-semibold text-foreground mb-3",children:[s.name," (",s.start_no,")"]}),h.jsxs("video",{ref:i,controls:!0,controlsList:"nodownload",className:"w-full max-w-2xl rounded-lg shadow-md",children:[h.jsx("source",{src:s.mp4_hr_url,type:"video/mp4"}),"Your browser does not support HTML5 video."]}),h.jsx(v4,{onDownload:l,disabled:r})]})})},Qo=({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(),o=Br(),{connectors:{connect:a,drag:s},selected:l}=re(b=>({selected:b.events.selected})),{enabled:c}=po(b=>({enabled:b.options.enabled})),p=x4(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:`${p}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=(o==null?void 0:o.videos)||[],m=g.length>0;return h.jsx("div",{ref:b=>b&&a(s(b)),style:f,className:`transition-all ${l?"ring-2 ring-primary ring-offset-2":""}`,children:m?h.jsx("div",{className:"space-y-6",children:g.map(b=>h.jsx(w4,{locationId:b.locationId,bibId:o==null?void 0:o.bibId,editorEnabled:c,videoTitle:b.name||b.locationId},b.locationId))}):h.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:[h.jsx(ll,{className:"h-10 w-10 text-muted-foreground mb-2"}),h.jsxs("p",{className:"text-muted-foreground text-sm text-center",children:["No video locations available.",h.jsx("br",{}),h.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}=re(a=>({padding:a.data.props.padding,margin:a.data.props.margin,background:a.data.props.background,borderRadius:a.data.props.borderRadius,boxShadow:a.data.props.boxShadow})),o=[{value:"none",label:"None"},{value:"sm",label:"Small"},{value:"md",label:"Medium"},{value:"lg",label:"Large"},{value:"xl",label:"Extra Large"}];return h.jsxs("div",{className:"space-y-1",children:[h.jsx(F,{title:"Info",children:h.jsx("p",{className:"text-xs text-muted-foreground",children:"All available videos will be displayed automatically."})}),h.jsxs(F,{title:"Style",children:[h.jsx(de,{label:"Padding",value:(e==null?void 0:e.desktop)??24,onChange:a=>t(s=>s.padding={...s.padding,desktop:a,mobile:a}),min:0,max:100}),h.jsx(de,{label:"Border Radius",value:i,onChange:a=>t(s=>s.borderRadius=a),min:0,max:50}),h.jsx(De,{label:"Background",value:n,onChange:a=>t(s=>s.background=a)}),h.jsx(ie,{label:"Shadow",value:u,options:o,onChange:a=>t(s=>s.boxShadow=a)})]}),h.jsx(F,{title:"Spacing",children:h.jsx(Ne,{label:"Margin",values:r,onChange:a=>t(s=>s.margin=a)})})]})};Qo.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 ea=({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:o,drag:a},isActive:s}=re(p=>({isActive:p.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 h.jsx("div",{ref:p=>p&&o(a(p)),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})},S4=()=>{const{actions:{setProp:t},props:e}=re(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 h.jsxs("div",{className:"space-y-3",children:[h.jsxs(F,{title:"Layout",defaultOpen:!0,children:[h.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)}),h.jsx(de,{label:"Gap",value:e.gap||16,onChange:i=>t(u=>u.gap=i),max:64}),h.jsx(ie,{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)})]}),h.jsxs(F,{title:"Spacing",defaultOpen:!1,children:[h.jsx(Ne,{label:"Padding",values:r,onChange:i=>t(u=>u.padding=i)}),h.jsx(Ne,{label:"Margin",values:n,onChange:i=>t(u=>u.margin=i)})]})]})};ea.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:S4}};const ta=({text:t="Click here",url:e="#",target:r="_self",fontSize:n=16,fontWeight:i="400",color:u="#0066cc",hoverColor:o="#0052a3",textDecoration:a="underline",textAlign:s="left",margin:l={top:0,right:0,bottom:0,left:0},opacity:c=100})=>{const{connectors:{connect:p,drag:d},isActive:f}=re(m=>({isActive:m.events.selected})),g=typeof l=="object"?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`;return h.jsx("a",{ref:m=>m&&p(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:a,textAlign:s,margin:g,opacity:c/100,display:"block"},children:t})},C4=()=>{const{actions:{setProp:t},props:e}=re(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return h.jsxs("div",{className:"space-y-3",children:[h.jsxs(F,{title:"Content",defaultOpen:!0,children:[h.jsx(Wt,{label:"Text",value:e.text,onChange:n=>t(i=>i.text=n)}),h.jsx(Wt,{label:"URL",value:e.url,onChange:n=>t(i=>i.url=n)}),h.jsx(ie,{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)})]}),h.jsxs(F,{title:"Typography",defaultOpen:!0,children:[h.jsx(de,{label:"Font Size",value:e.fontSize||16,onChange:n=>t(i=>i.fontSize=n),min:10,max:48}),h.jsx(ie,{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)}),h.jsx(ie,{label:"Decoration",value:e.textDecoration||"underline",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"}],onChange:n=>t(i=>i.textDecoration=n)}),h.jsx(Ke,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:h.jsx(Hu,{className:"h-3 w-3"})},{value:"center",label:h.jsx(qu,{className:"h-3 w-3"})},{value:"right",label:h.jsx(Fu,{className:"h-3 w-3"})}],onChange:n=>t(i=>i.textAlign=n)})]}),h.jsxs(F,{title:"Color",defaultOpen:!1,children:[h.jsx(De,{label:"Link Color",value:e.color||"#0066cc",onChange:n=>t(i=>i.color=n)}),h.jsx(Co,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%"})]}),h.jsx(F,{title:"Spacing",defaultOpen:!1,children:h.jsx(Ne,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};ta.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:C4}};const ra=({className:t,src:e="",alt:r=""})=>{const n=Br(),{connectors:{connect:i,drag:u},selected:o}=re(s=>({selected:s.events.selected})),a=bi(e,n);return h.jsx("img",{src:a,alt:r,className:Tt(t,o?"border border-blue-500":""),ref:s=>{s&&i(u(s))}})};ra.craft={isCanvas:!0,props:{ClassNames:"",src:""}};const Ti=({children:t,className:e,...r})=>{const{connectors:{connect:n,drag:i},selected:u}=re(o=>({selected:o.events.selected}));return h.jsx("div",{ref:o=>{o&&n(i(o))},className:Tt(`min-h-2.5 ${u?"border border-blue-500":""}`,"w-full flex justify-center",e),...r,children:t})};Ti.craft={props:{},displayName:"Wrapper",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName==="Container")}};function Js(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 na=({children:t,className:e})=>{const{connectors:{connect:r,drag:n},selected:i}=re(a=>({selected:a.events.selected})),u=Js(),o=Js();return h.jsx("div",{ref:a=>{a&&r(n(a))},className:Tt(`min-h-2.5 ${i?"border border-blue-500":""}`,"w-full flex justify-center",e),children:h.jsx(Ht,{is:Ti,id:`section-wrapper-${u}`,children:h.jsx(Ht,{is:hi,canvas:!0,id:`section-container-${o}`,children:t})})})};na.craft={displayName:"Section",props:{},rules:{canDrag:()=>!0}};const Ui={mobile:{width:375,label:"Mobile",icon:Gu},tablet:{width:768,label:"Tablet",icon:Xu},small:{width:1024,label:"Small",icon:Wu},desktop:{width:1440,label:"Desktop",icon:Yu}},T4=({editorState:t,deviceSize:e})=>h.jsx(Zl,{resolver:{Body,Wrapper:Ti,Section:na,Container:hi,Text:Vo,ButtonComponent:Wo,Heading:Go,Image:Xo,Img:ra,Divider:Yo,Spacer:Jo,Video:Qo,Columns:ea,Link:ta},enabled:!1,children:h.jsx(ec,{value:e,children:h.jsx(A4,{editorState:t})})}),A4=({editorState:t})=>{const{actions:e}=po();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]),h.jsx(Gl,{})},N4=({isOpen:t,onClose:e,eventData:r,editorState:n})=>{var a,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 o=((a=Ui[i])==null?void 0:a.width)||1440;return h.jsxs("div",{className:"fixed inset-0 z-50 bg-background flex flex-col",children:[h.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border bg-card",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("h2",{className:"text-lg font-semibold",children:"Preview"}),h.jsxs("span",{className:"text-sm text-muted-foreground",children:["(",(s=Ui[i])==null?void 0:s.width,"px)"]})]}),h.jsx("div",{className:"flex items-center gap-1 bg-muted rounded-lg p-1",children:Object.entries(Ui).map(([l,{label:c,icon:p}])=>h.jsxs(Er,{variant:"ghost",size:"sm",onClick:()=>u(l),className:mf("h-8 px-3 gap-2",i===l&&"bg-background shadow-sm"),children:[h.jsx(p,{className:"h-4 w-4"}),h.jsx("span",{className:"hidden sm:inline",children:c})]},l))}),h.jsx(Er,{variant:"ghost",size:"icon",onClick:e,children:h.jsx(of,{className:"h-5 w-5"})})]}),h.jsx("div",{className:"flex-1 overflow-auto bg-muted/50 p-6",children:h.jsx("div",{className:"flex justify-center min-h-full",children:h.jsx("div",{className:"bg-white rounded-lg shadow-xl transition-all duration-300 overflow-hidden p-4",style:{width:`${o}px`,maxWidth:"100%"},children:h.jsx(Bu,{value:r,children:n?h.jsx(T4,{editorState:n,deviceSize:i}):h.jsx("div",{className:"flex items-center justify-center h-48 text-muted-foreground",children:"No content to preview. Start building your page first."})})})})})]})},i0=j.createContext({fetchVideoByLocation:null}),O4=({children:t,fetchVideoByLocation:e})=>h.jsx(i0.Provider,{value:{fetchVideoByLocation:e},children:t}),j4=()=>j.useContext(i0);exports.ApiConfigProvider=O4;exports.Button=Er;exports.ButtonComponent=Wo;exports.Card=Mu;exports.CardContent=$u;exports.ChevronDown=Uu;exports.ChevronRight=Vu;exports.Columns=ea;exports.Container=hi;exports.DEVICE_ORDER=Se;exports.De=Gl;exports.DeviceSizeProvider=ec;exports.Divider=Yo;exports.EventDataProvider=Bu;exports.Film=ll;exports.Heading=Go;exports.Image=Xo;exports.Img=ra;exports.Link=cl;exports.Link$1=ta;exports.Monitor=Wu;exports.Ne=re;exports.PageBuilder=W0;exports.Pe=po;exports.Presence=ci;exports.PreviewModal=N4;exports.Primitive=Oe;exports.Section=na;exports.Smartphone=Gu;exports.Spacer=Jo;exports.TEMPLATE_VARIABLES=Nx;exports.Tablet=Xu;exports.Text=Vo;exports.Tooltip=Ut;exports.TooltipContent=Et;exports.TooltipProvider=_r;exports.TooltipTrigger=Vt;exports.Tv=Yu;exports.Video=Qo;exports.Wrapper=Ti;exports.clsx=Tt;exports.cn=ge;exports.composeEventHandlers=Ee;exports.composeRefs=Vn;exports.createContextScope=ui;exports.createLucideIcon=ue;exports.cva=fl;exports.getPlaceholderPaths=Ax;exports.getResponsiveValue=Ye;exports.hasTemplatePlaceholders=Tx;exports.ke=Ht;exports.processTemplate=bi;exports.useApiConfig=j4;exports.useCallbackRef=qr;exports.useComposedRefs=Be;exports.useControllableState=Eo;exports.useDeviceSize=Ot;exports.useEventData=Br;exports.useId=ic;exports.useLayoutEffect2=ct;exports.ut=Zl;
|