@evixcard/evx-ui-kit 0.2.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/components/EvAlert/EvAlert.spec.d.ts +1 -0
  2. package/dist/components/EvButton/EvButton.spec.d.ts +1 -0
  3. package/dist/components/EvButton/EvButton.vue.d.ts +7 -3
  4. package/dist/components/EvButton/tokens.spec.d.ts +1 -0
  5. package/dist/components/EvButton/variants.d.ts +4 -0
  6. package/dist/components/EvDataTable/EvDataTable.spec.d.ts +1 -0
  7. package/dist/components/EvDataTable/EvDataTable.vue.d.ts +24 -0
  8. package/dist/components/EvDataTable/index.d.ts +2 -0
  9. package/dist/components/EvDataTable/types.d.ts +17 -0
  10. package/dist/components/EvModal/EvModal.spec.d.ts +1 -0
  11. package/dist/components/EvModal/EvModal.vue.d.ts +38 -0
  12. package/dist/components/EvModal/index.d.ts +3 -0
  13. package/dist/components/EvModal/modalStack.d.ts +9 -0
  14. package/dist/components/EvPopup/EvPopup.vue.d.ts +1 -1
  15. package/dist/components/EvSpinner/EvSpinner.vue.d.ts +2 -2
  16. package/dist/components/charts/ChartTooltip.vue.d.ts +16 -0
  17. package/dist/components/charts/EvxAreaChart.spec.d.ts +1 -0
  18. package/dist/components/charts/EvxAreaChart.vue.d.ts +16 -0
  19. package/dist/components/charts/EvxBarChart.spec.d.ts +1 -0
  20. package/dist/components/charts/EvxBarChart.vue.d.ts +16 -0
  21. package/dist/components/charts/EvxComposedChart.spec.d.ts +1 -0
  22. package/dist/components/charts/EvxComposedChart.vue.d.ts +18 -0
  23. package/dist/components/charts/EvxLineChart.spec.d.ts +1 -0
  24. package/dist/components/charts/EvxLineChart.vue.d.ts +16 -0
  25. package/dist/components/charts/EvxPieChart.spec.d.ts +1 -0
  26. package/dist/components/charts/EvxPieChart.vue.d.ts +17 -0
  27. package/dist/components/charts/EvxRadarChart.spec.d.ts +1 -0
  28. package/dist/components/charts/EvxRadarChart.vue.d.ts +16 -0
  29. package/dist/components/charts/EvxRadialChart.spec.d.ts +1 -0
  30. package/dist/components/charts/EvxRadialChart.vue.d.ts +16 -0
  31. package/dist/components/charts/index.d.ts +8 -0
  32. package/dist/components/charts/useCartesianFrame.d.ts +38 -0
  33. package/dist/components/charts/useChartTheme.d.ts +22 -0
  34. package/dist/evx-ui-kit.cjs.js +41 -13
  35. package/dist/evx-ui-kit.cjs.js.map +1 -1
  36. package/dist/evx-ui-kit.css +1 -1
  37. package/dist/evx-ui-kit.es.js +9988 -2256
  38. package/dist/evx-ui-kit.es.js.map +1 -1
  39. package/dist/index.d.ts +3 -0
  40. package/dist/test/setup.d.ts +1 -0
  41. package/dist/theme.css +337 -0
  42. package/package.json +16 -3
@@ -1,17 +1,18 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./ArrowLeftIcon.vue_vue_type_script_setup_true_lang-Cxm89Wdo.cjs"),e=require("vue");function _o(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const l=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,l.get?l:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const gt=_o(e),Vt={primary:`
2
- bg-[#343434]
3
- text-white
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("./ArrowLeftIcon.vue_vue_type_script_setup_true_lang-Cxm89Wdo.cjs"),o=require("vue");function tc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Qr=tc(o),aa={primary:`
2
+ bg-primary
3
+ text-primary-foreground
4
+ hover:bg-black
4
5
  active:bg-black
5
6
  disabled:opacity-20
6
7
  `,secondary:`
7
- bg-[#E4E4E4]
8
+ bg-gray-light
8
9
  text-black
9
10
  active:bg-transparent
10
11
  disabled:opacity-20
11
12
  `,link:`
12
13
  bg-transparent
13
14
  p-0
14
- text-[#0081BF]
15
+ text-accent-blue
15
16
  active:text-black
16
17
  disabled:opacity-20
17
18
  `,ghost:`
@@ -22,15 +23,42 @@
22
23
  `,black:`
23
24
  bg-black
24
25
  text-white
25
- active:bg-[#E4E4E4]
26
+ active:bg-gray-light
27
+ disabled:opacity-20
28
+ `,third:`
29
+ bg-white
30
+ text-black
31
+ border border-border
32
+ hover:bg-gray-lightest
33
+ active:bg-border
34
+ disabled:opacity-20
35
+ `,danger:`
36
+ bg-destructive
37
+ text-black
38
+ hover:bg-brand-red-hover
39
+ active:bg-brand-red-active
40
+ active:text-white
41
+ disabled:opacity-20
42
+ `,success:`
43
+ bg-success
44
+ text-black
45
+ hover:bg-brand-green-cold-hover
46
+ active:bg-brand-green-cold-active
47
+ active:text-white
48
+ disabled:opacity-20
49
+ `,warning:`
50
+ bg-warning
51
+ text-warning-text
52
+ hover:bg-brand-yellow-hover
53
+ active:bg-brand-pending
26
54
  disabled:opacity-20
27
55
  `,icon:`
28
- bg-[#E4E4E4]
29
- text-[#232525]
30
- `},Je={xl:"px-[33.5px] py-2 rounded-[4px] text-[14px] leading-[1.2]",lg:"px-4 py-3 rounded-[8px] text-[14px] leading-[1.2]",sm:"px-4 py-[7.5px] rounded-[4px] text-[14px] leading-[1.2]",icon:"p-2 rounded-[4px] text-[14px] leading-[1.2]"},No=(t,o)=>{const n=new Array(t.length+o.length);for(let l=0;l<t.length;l++)n[l]=t[l];for(let l=0;l<o.length;l++)n[t.length+l]=o[l];return n},Vo=(t,o)=>({classGroupId:t,validator:o}),Tt=(t=new Map,o=null,n)=>({nextPart:t,validators:o,classGroupId:n}),ze="-",ht=[],To="arbitrary..",Fo=t=>{const o=Lo(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:l}=t;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Ao(s);const i=s.split(ze),u=i[0]===""&&i.length>1?1:0;return Ft(i,u,o)},getConflictingClassGroupIds:(s,i)=>{if(i){const u=l[s],c=n[s];return u?c?No(c,u):u:c||ht}return n[s]||ht}}},Ft=(t,o,n)=>{if(t.length-o===0)return n.classGroupId;const r=t[o],a=n.nextPart.get(r);if(a){const c=Ft(t,o+1,a);if(c)return c}const s=n.validators;if(s===null)return;const i=o===0?t.join(ze):t.slice(o).join(ze),u=s.length;for(let c=0;c<u;c++){const d=s[c];if(d.validator(i))return d.classGroupId}},Ao=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=t.slice(1,-1),n=o.indexOf(":"),l=o.slice(0,n);return l?To+l:void 0})(),Lo=t=>{const{theme:o,classGroups:n}=t;return Do(n,o)},Do=(t,o)=>{const n=Tt();for(const l in t){const r=t[l];it(r,n,l,o)}return n},it=(t,o,n,l)=>{const r=t.length;for(let a=0;a<r;a++){const s=t[a];Po(s,o,n,l)}},Po=(t,o,n,l)=>{if(typeof t=="string"){Oo(t,o,n);return}if(typeof t=="function"){Io(t,o,n,l);return}Mo(t,o,n,l)},Oo=(t,o,n)=>{const l=t===""?o:At(o,t);l.classGroupId=n},Io=(t,o,n,l)=>{if(zo(t)){it(t(l),o,n,l);return}o.validators===null&&(o.validators=[]),o.validators.push(Vo(n,t))},Mo=(t,o,n,l)=>{const r=Object.entries(t),a=r.length;for(let s=0;s<a;s++){const[i,u]=r[s];it(u,At(o,i),n,l)}},At=(t,o)=>{let n=t;const l=o.split(ze),r=l.length;for(let a=0;a<r;a++){const s=l[a];let i=n.nextPart.get(s);i||(i=Tt(),n.nextPart.set(s,i)),n=i}return n},zo=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Ro=t=>{if(t<1)return{get:()=>{},set:()=>{}};let o=0,n=Object.create(null),l=Object.create(null);const r=(a,s)=>{n[a]=s,o++,o>t&&(o=0,l=n,n=Object.create(null))};return{get(a){let s=n[a];if(s!==void 0)return s;if((s=l[a])!==void 0)return r(a,s),s},set(a,s){a in n?n[a]=s:r(a,s)}}},Ze="!",yt=":",jo=[],xt=(t,o,n,l,r)=>({modifiers:t,hasImportantModifier:o,baseClassName:n,maybePostfixModifierPosition:l,isExternal:r}),Ho=t=>{const{prefix:o,experimentalParseClassName:n}=t;let l=r=>{const a=[];let s=0,i=0,u=0,c;const d=r.length;for(let v=0;v<d;v++){const p=r[v];if(s===0&&i===0){if(p===yt){a.push(r.slice(u,v)),u=v+1;continue}if(p==="/"){c=v;continue}}p==="["?s++:p==="]"?s--:p==="("?i++:p===")"&&i--}const b=a.length===0?r:r.slice(u);let m=b,g=!1;b.endsWith(Ze)?(m=b.slice(0,-1),g=!0):b.startsWith(Ze)&&(m=b.slice(1),g=!0);const h=c&&c>u?c-u:void 0;return xt(a,g,m,h)};if(o){const r=o+yt,a=l;l=s=>s.startsWith(r)?a(s.slice(r.length)):xt(jo,!1,s,void 0,!0)}if(n){const r=l;l=a=>n({className:a,parseClassName:r})}return l},Uo=t=>{const o=new Map;return t.orderSensitiveModifiers.forEach((n,l)=>{o.set(n,1e6+l)}),n=>{const l=[];let r=[];for(let a=0;a<n.length;a++){const s=n[a],i=s[0]==="[",u=o.has(s);i||u?(r.length>0&&(r.sort(),l.push(...r),r=[]),l.push(s)):r.push(s)}return r.length>0&&(r.sort(),l.push(...r)),l}},Go=t=>({cache:Ro(t.cacheSize),parseClassName:Ho(t),sortModifiers:Uo(t),...Fo(t)}),Wo=/\s+/,qo=(t,o)=>{const{parseClassName:n,getClassGroupId:l,getConflictingClassGroupIds:r,sortModifiers:a}=o,s=[],i=t.trim().split(Wo);let u="";for(let c=i.length-1;c>=0;c-=1){const d=i[c],{isExternal:b,modifiers:m,hasImportantModifier:g,baseClassName:h,maybePostfixModifierPosition:v}=n(d);if(b){u=d+(u.length>0?" "+u:u);continue}let p=!!v,y=l(p?h.substring(0,v):h);if(!y){if(!p){u=d+(u.length>0?" "+u:u);continue}if(y=l(h),!y){u=d+(u.length>0?" "+u:u);continue}p=!1}const f=m.length===0?"":m.length===1?m[0]:a(m).join(":"),w=g?f+Ze:f,C=w+y;if(s.indexOf(C)>-1)continue;s.push(C);const B=r(y,p);for(let _=0;_<B.length;++_){const F=B[_];s.push(w+F)}u=d+(u.length>0?" "+u:u)}return u},Ko=(...t)=>{let o=0,n,l,r="";for(;o<t.length;)(n=t[o++])&&(l=Lt(n))&&(r&&(r+=" "),r+=l);return r},Lt=t=>{if(typeof t=="string")return t;let o,n="";for(let l=0;l<t.length;l++)t[l]&&(o=Lt(t[l]))&&(n&&(n+=" "),n+=o);return n},Yo=(t,...o)=>{let n,l,r,a;const s=u=>{const c=o.reduce((d,b)=>b(d),t());return n=Go(c),l=n.cache.get,r=n.cache.set,a=i,i(u)},i=u=>{const c=l(u);if(c)return c;const d=qo(u,n);return r(u,d),d};return a=s,(...u)=>a(Ko(...u))},Xo=[],z=t=>{const o=n=>n[t]||Xo;return o.isThemeGetter=!0,o},Dt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Jo=/^\d+\/\d+$/,Zo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qo=/\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$/,en=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,on=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ge=t=>Jo.test(t),N=t=>!!t&&!Number.isNaN(Number(t)),oe=t=>!!t&&Number.isInteger(Number(t)),We=t=>t.endsWith("%")&&N(t.slice(0,-1)),Q=t=>Zo.test(t),nn=()=>!0,ln=t=>Qo.test(t)&&!en.test(t),Ot=()=>!1,rn=t=>tn.test(t),an=t=>on.test(t),sn=t=>!x(t)&&!k(t),un=t=>ye(t,zt,Ot),x=t=>Dt.test(t),ie=t=>ye(t,Rt,ln),qe=t=>ye(t,mn,N),kt=t=>ye(t,It,Ot),cn=t=>ye(t,Mt,an),De=t=>ye(t,jt,rn),k=t=>Pt.test(t),Ee=t=>xe(t,Rt),dn=t=>xe(t,vn),wt=t=>xe(t,It),pn=t=>xe(t,zt),fn=t=>xe(t,Mt),Pe=t=>xe(t,jt,!0),ye=(t,o,n)=>{const l=Dt.exec(t);return l?l[1]?o(l[1]):n(l[2]):!1},xe=(t,o,n=!1)=>{const l=Pt.exec(t);return l?l[1]?o(l[1]):n:!1},It=t=>t==="position"||t==="percentage",Mt=t=>t==="image"||t==="url",zt=t=>t==="length"||t==="size"||t==="bg-size",Rt=t=>t==="length",mn=t=>t==="number",vn=t=>t==="family-name",jt=t=>t==="shadow",bn=()=>{const t=z("color"),o=z("font"),n=z("text"),l=z("font-weight"),r=z("tracking"),a=z("leading"),s=z("breakpoint"),i=z("container"),u=z("spacing"),c=z("radius"),d=z("shadow"),b=z("inset-shadow"),m=z("text-shadow"),g=z("drop-shadow"),h=z("blur"),v=z("perspective"),p=z("aspect"),y=z("ease"),f=z("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...C(),k,x],_=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],E=()=>[k,x,u],q=()=>[ge,"full","auto",...E()],ae=()=>[oe,"none","subgrid",k,x],be=()=>["auto",{span:["full",oe,k,x]},oe,k,x],ee=()=>[oe,"auto",k,x],K=()=>["auto","min","max","fr",k,x],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...E()],W=()=>[ge,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],S=()=>[t,k,x],ke=()=>[...C(),wt,kt,{position:[k,x]}],we=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",pn,un,{size:[k,x]}],D=()=>[We,Ee,ie],T=()=>["","none","full",c,k,x],A=()=>["",N,Ee,ie],te=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[N,We,wt,kt],bt=()=>["","none",h,k,x],Fe=()=>["none",N,k,x],Ae=()=>["none",N,k,x],Ge=()=>[N,k,x],Le=()=>[ge,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Q],breakpoint:[Q],color:[nn],container:[Q],"drop-shadow":[Q],ease:["in","out","in-out"],font:[sn],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Q],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Q],shadow:[Q],spacing:["px",N],text:[Q],"text-shadow":[Q],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ge,x,k,p]}],container:["container"],columns:[{columns:[N,x,k,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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"],sr:["sr-only","not-sr-only"],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:B()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:q()}],"inset-x":[{"inset-x":q()}],"inset-y":[{"inset-y":q()}],start:[{start:q()}],end:[{end:q()}],top:[{top:q()}],right:[{right:q()}],bottom:[{bottom:q()}],left:[{left:q()}],visibility:["visible","invisible","collapse"],z:[{z:[oe,"auto",k,x]}],basis:[{basis:[ge,"full","auto",i,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[N,ge,"auto","initial","none",x]}],grow:[{grow:["",N,k,x]}],shrink:[{shrink:["",N,k,x]}],order:[{order:[oe,"first","last","none",k,x]}],"grid-cols":[{"grid-cols":ae()}],"col-start-end":[{col:be()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":ae()}],"row-start-end":[{row:be()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[i,"screen",...W()]}],"min-w":[{"min-w":[i,"screen","none",...W()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",n,Ee,ie]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,k,qe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",We,x]}],"font-family":[{font:[dn,x,o]}],"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:[r,k,x]}],"line-clamp":[{"line-clamp":[N,"none",k,qe]}],leading:[{leading:[a,...E()]}],"list-image":[{"list-image":["none",k,x]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[N,"from-font","auto",k,ie]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[N,"auto",k,x]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,x]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k,x]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ke()}],"bg-repeat":[{bg:we()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oe,k,x],radial:["",k,x],conic:[oe,k,x]},fn,cn]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"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()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":A()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[N,k,x]}],"outline-w":[{outline:["",N,Ee,ie]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",d,Pe,De]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",b,Pe,De]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[N,ie]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",m,Pe,De]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[N,k,x]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[k,x]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ke()}],"mask-repeat":[{mask:we()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,x]}],filter:[{filter:["","none",k,x]}],blur:[{blur:bt()}],brightness:[{brightness:[N,k,x]}],contrast:[{contrast:[N,k,x]}],"drop-shadow":[{"drop-shadow":["","none",g,Pe,De]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",N,k,x]}],"hue-rotate":[{"hue-rotate":[N,k,x]}],invert:[{invert:["",N,k,x]}],saturate:[{saturate:[N,k,x]}],sepia:[{sepia:["",N,k,x]}],"backdrop-filter":[{"backdrop-filter":["","none",k,x]}],"backdrop-blur":[{"backdrop-blur":bt()}],"backdrop-brightness":[{"backdrop-brightness":[N,k,x]}],"backdrop-contrast":[{"backdrop-contrast":[N,k,x]}],"backdrop-grayscale":[{"backdrop-grayscale":["",N,k,x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,k,x]}],"backdrop-invert":[{"backdrop-invert":["",N,k,x]}],"backdrop-opacity":[{"backdrop-opacity":[N,k,x]}],"backdrop-saturate":[{"backdrop-saturate":[N,k,x]}],"backdrop-sepia":[{"backdrop-sepia":["",N,k,x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,x]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[N,"initial",k,x]}],ease:[{ease:["linear","initial",y,k,x]}],delay:[{delay:[N,k,x]}],animate:[{animate:["none",f,k,x]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,k,x]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:Fe()}],"rotate-x":[{"rotate-x":Fe()}],"rotate-y":[{"rotate-y":Fe()}],"rotate-z":[{"rotate-z":Fe()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Ge()}],"skew-x":[{"skew-x":Ge()}],"skew-y":[{"skew-y":Ge()}],transform:[{transform:[k,x,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Le()}],"translate-x":[{"translate-x":Le()}],"translate-y":[{"translate-y":Le()}],"translate-z":[{"translate-z":Le()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",k,x]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",k,x]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[N,Ee,ie,qe]}],stroke:[{stroke:["none",...S()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},X=Yo(bn),gn=["disabled"],he=e.defineComponent({__name:"EvButton",props:{class:{},size:{default:"sm"},variant:{default:"primary"},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:o}){const n=t,l=o,r=e.computed(()=>{const a=Vt[n.variant];let s=Je[n.size];return n.variant==="icon"&&(s=Je.icon),X(a,s,n.class)});return(a,s)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["cursor-pointer disabled:cursor-not-allowed disabled:pointer-events-none",r.value]),onClick:s[0]||(s[0]=i=>l("click")),disabled:n.isDisabled},[e.renderSlot(a.$slots,"default")],10,gn))}});function Ht(t,o,n){let l=e.ref(n?.value),r=e.computed(()=>t.value!==void 0);return[e.computed(()=>r.value?t.value:l.value),function(a){return r.value||(l.value=a),o?.(a)}]}function Re(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(o=>setTimeout(()=>{throw o}))}function Be(){let t=[],o={addEventListener(n,l,r,a){return n.addEventListener(l,r,a),o.add(()=>n.removeEventListener(l,r,a))},requestAnimationFrame(...n){let l=requestAnimationFrame(...n);o.add(()=>cancelAnimationFrame(l))},nextFrame(...n){o.requestAnimationFrame(()=>{o.requestAnimationFrame(...n)})},setTimeout(...n){let l=setTimeout(...n);o.add(()=>clearTimeout(l))},microTask(...n){let l={current:!0};return Re(()=>{l.current&&n[0]()}),o.add(()=>{l.current=!1})},style(n,l,r){let a=n.style.getPropertyValue(l);return Object.assign(n.style,{[l]:r}),this.add(()=>{Object.assign(n.style,{[l]:a})})},group(n){let l=Be();return n(l),this.add(()=>l.dispose())},add(n){return t.push(n),()=>{let l=t.indexOf(n);if(l>=0)for(let r of t.splice(l,1))r()}},dispose(){for(let n of t.splice(0))n()}};return o}var Et;let hn=Symbol("headlessui.useid"),yn=0;const G=(Et=gt.useId)!=null?Et:function(){return gt.inject(hn,()=>`${++yn}`)()};function $(t){var o;if(t==null||t.value==null)return null;let n=(o=t.value.$el)!=null?o:t.value;return n instanceof Node?n:null}function U(t,o,...n){if(t in o){let r=o[t];return typeof r=="function"?r(...n):r}let l=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(o).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,U),l}var xn=Object.defineProperty,kn=(t,o,n)=>o in t?xn(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,Ct=(t,o,n)=>(kn(t,typeof o!="symbol"?o+"":o,n),n);let wn=class{constructor(){Ct(this,"current",this.detect()),Ct(this,"currentId",0)}set(o){this.current!==o&&(this.currentId=0,this.current=o)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},_e=new wn;function J(t){if(_e.isServer)return null;if(t instanceof Node)return t.ownerDocument;if(t!=null&&t.hasOwnProperty("value")){let o=$(t);if(o)return o.ownerDocument}return document}let Qe=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>`${t}:not([tabindex='-1'])`).join(",");var O=(t=>(t[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll",t))(O||{}),ne=(t=>(t[t.Error=0]="Error",t[t.Overflow=1]="Overflow",t[t.Success=2]="Success",t[t.Underflow=3]="Underflow",t))(ne||{}),En=(t=>(t[t.Previous=-1]="Previous",t[t.Next=1]="Next",t))(En||{});function Cn(t=document.body){return t==null?[]:Array.from(t.querySelectorAll(Qe)).sort((o,n)=>Math.sign((o.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ut=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(Ut||{});function Sn(t,o=0){var n;return t===((n=J(t))==null?void 0:n.body)?!1:U(o,{0(){return t.matches(Qe)},1(){let l=t;for(;l!==null;){if(l.matches(Qe))return!0;l=l.parentElement}return!1}})}var $n=(t=>(t[t.Keyboard=0]="Keyboard",t[t.Mouse=1]="Mouse",t))($n||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",t=>{t.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:t.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function fe(t){t?.focus({preventScroll:!0})}let Bn=["textarea","input"].join(",");function _n(t){var o,n;return(n=(o=t?.matches)==null?void 0:o.call(t,Bn))!=null?n:!1}function ce(t,o=n=>n){return t.slice().sort((n,l)=>{let r=o(n),a=o(l);if(r===null||a===null)return 0;let s=r.compareDocumentPosition(a);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Y(t,o,{sorted:n=!0,relativeTo:l=null,skipElements:r=[]}={}){var a;let s=(a=Array.isArray(t)?t.length>0?t[0].ownerDocument:document:t?.ownerDocument)!=null?a:document,i=Array.isArray(t)?n?ce(t):t:Cn(t);r.length>0&&i.length>1&&(i=i.filter(h=>!r.includes(h))),l=l??s.activeElement;let u=(()=>{if(o&5)return 1;if(o&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(o&1)return 0;if(o&2)return Math.max(0,i.indexOf(l))-1;if(o&4)return Math.max(0,i.indexOf(l))+1;if(o&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=o&32?{preventScroll:!0}:{},b=0,m=i.length,g;do{if(b>=m||b+m<=0)return 0;let h=c+b;if(o&16)h=(h+m)%m;else{if(h<0)return 3;if(h>=m)return 1}g=i[h],g?.focus(d),b+=u}while(g!==s.activeElement);return o&6&&_n(g)&&g.select(),2}function Gt(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Nn(){return/Android/gi.test(window.navigator.userAgent)}function Vn(){return Gt()||Nn()}function Oe(t,o,n){_e.isServer||e.watchEffect(l=>{document.addEventListener(t,o,n),l(()=>document.removeEventListener(t,o,n))})}function Wt(t,o,n){_e.isServer||e.watchEffect(l=>{window.addEventListener(t,o,n),l(()=>window.removeEventListener(t,o,n))})}function Tn(t,o,n=e.computed(()=>!0)){function l(a,s){if(!n.value||a.defaultPrevented)return;let i=s(a);if(i===null||!i.getRootNode().contains(i))return;let u=(function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]})(t);for(let c of u){if(c===null)continue;let d=c instanceof HTMLElement?c:$(c);if(d!=null&&d.contains(i)||a.composed&&a.composedPath().includes(d))return}return!Sn(i,Ut.Loose)&&i.tabIndex!==-1&&a.preventDefault(),o(a,i)}let r=e.ref(null);Oe("pointerdown",a=>{var s,i;n.value&&(r.value=((i=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:i[0])||a.target)},!0),Oe("mousedown",a=>{var s,i;n.value&&(r.value=((i=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:i[0])||a.target)},!0),Oe("click",a=>{Vn()||r.value&&(l(a,()=>r.value),r.value=null)},!0),Oe("touchend",a=>l(a,()=>a.target instanceof HTMLElement?a.target:null),!0),Wt("blur",a=>l(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function St(t,o){if(t)return t;let n=o??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function ut(t,o){let n=e.ref(St(t.value.type,t.value.as));return e.onMounted(()=>{n.value=St(t.value.type,t.value.as)}),e.watchEffect(()=>{var l;n.value||$(o)&&$(o)instanceof HTMLButtonElement&&!((l=$(o))!=null&&l.hasAttribute("type"))&&(n.value="button")}),n}function Fn({container:t,accept:o,walk:n,enabled:l}){e.watchEffect(()=>{let r=t.value;if(!r||l!==void 0&&!l.value)return;let a=J(t);if(!a)return;let s=Object.assign(u=>o(u),{acceptNode:o}),i=a.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,s,!1);for(;i.nextNode();)n(i.currentNode)})}var re=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(re||{}),le=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(le||{});function L({visible:t=!0,features:o=0,ourProps:n,theirProps:l,...r}){var a;let s=Kt(l,n),i=Object.assign(r,{props:s});if(t||o&2&&s.static)return Ke(i);if(o&1){let u=(a=s.unmount)==null||a?0:1;return U(u,{0(){return null},1(){return Ke({...r,props:{...s,hidden:!0,style:{display:"none"}}})}})}return Ke(i)}function Ke({props:t,attrs:o,slots:n,slot:l,name:r}){var a,s;let{as:i,...u}=Ne(t,["unmount","static"]),c=(a=n.default)==null?void 0:a.call(n,l),d={};if(l){let b=!1,m=[];for(let[g,h]of Object.entries(l))typeof h=="boolean"&&(b=!0),h===!0&&m.push(g);b&&(d["data-headlessui-state"]=m.join(" "))}if(i==="template"){if(c=qt(c??[]),Object.keys(u).length>0||Object.keys(o).length>0){let[b,...m]=c??[];if(!An(b)||m.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${r} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(u).concat(Object.keys(o)).map(v=>v.trim()).filter((v,p,y)=>y.indexOf(v)===p).sort((v,p)=>v.localeCompare(p)).map(v=>` - ${v}`).join(`
31
- `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(v=>` - ${v}`).join(`
56
+ bg-gray-light
57
+ text-foreground
58
+ `},Vo={xl:"px-[33.5px] py-2 rounded-button text-sm leading-[1.2]",lg:"px-4 py-3 rounded-md text-sm leading-[1.2]",sm:"px-4 py-[7.5px] rounded-button text-sm leading-[1.2]",icon:"p-2 rounded-button text-sm leading-[1.2]"},nc=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},oc=(e,t)=>({classGroupId:e,validator:t}),la=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Vn="-",es=[],rc="arbitrary..",sc=e=>{const t=ac(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return ic(i);const l=i.split(Vn),u=l[0]===""&&l.length>1?1:0;return ua(l,u,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const u=r[i],c=n[i];return u?c?nc(c,u):u:c||es}return n[i]||es}}},ua=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],a=n.nextPart.get(s);if(a){const c=ua(e,t+1,a);if(c)return c}const i=n.validators;if(i===null)return;const l=t===0?e.join(Vn):e.slice(t).join(Vn),u=i.length;for(let c=0;c<u;c++){const d=i[c];if(d.validator(l))return d.classGroupId}},ic=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?rc+r:void 0})(),ac=e=>{const{theme:t,classGroups:n}=e;return lc(n,t)},lc=(e,t)=>{const n=la();for(const r in e){const s=e[r];br(s,n,r,t)}return n},br=(e,t,n,r)=>{const s=e.length;for(let a=0;a<s;a++){const i=e[a];uc(i,t,n,r)}},uc=(e,t,n,r)=>{if(typeof e=="string"){cc(e,t,n);return}if(typeof e=="function"){dc(e,t,n,r);return}fc(e,t,n,r)},cc=(e,t,n)=>{const r=e===""?t:ca(t,e);r.classGroupId=n},dc=(e,t,n,r)=>{if(hc(e)){br(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(oc(n,e))},fc=(e,t,n,r)=>{const s=Object.entries(e),a=s.length;for(let i=0;i<a;i++){const[l,u]=s[i];br(u,ca(t,l),n,r)}},ca=(e,t)=>{let n=e;const r=t.split(Vn),s=r.length;for(let a=0;a<s;a++){const i=r[a];let l=n.nextPart.get(i);l||(l=la(),n.nextPart.set(i,l)),n=l}return n},hc=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,pc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const s=(a,i)=>{n[a]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let i=n[a];if(i!==void 0)return i;if((i=r[a])!==void 0)return s(a,i),i},set(a,i){a in n?n[a]=i:s(a,i)}}},Po="!",ts=":",mc=[],ns=(e,t,n,r,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:s}),gc=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const a=[];let i=0,l=0,u=0,c;const d=s.length;for(let g=0;g<d;g++){const p=s[g];if(i===0&&l===0){if(p===ts){a.push(s.slice(u,g)),u=g+1;continue}if(p==="/"){c=g;continue}}p==="["?i++:p==="]"?i--:p==="("?l++:p===")"&&l--}const f=a.length===0?s:s.slice(u);let h=f,m=!1;f.endsWith(Po)?(h=f.slice(0,-1),m=!0):f.startsWith(Po)&&(h=f.slice(1),m=!0);const v=c&&c>u?c-u:void 0;return ns(a,m,h,v)};if(t){const s=t+ts,a=r;r=i=>i.startsWith(s)?a(i.slice(s.length)):ns(mc,!1,i,void 0,!0)}if(n){const s=r;r=a=>n({className:a,parseClassName:s})}return r},vc=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let s=[];for(let a=0;a<n.length;a++){const i=n[a],l=i[0]==="[",u=t.has(i);l||u?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(i)):s.push(i)}return s.length>0&&(s.sort(),r.push(...s)),r}},yc=e=>({cache:pc(e.cacheSize),parseClassName:gc(e),sortModifiers:vc(e),...sc(e)}),bc=/\s+/,xc=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:a}=t,i=[],l=e.trim().split(bc);let u="";for(let c=l.length-1;c>=0;c-=1){const d=l[c],{isExternal:f,modifiers:h,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:g}=n(d);if(f){u=d+(u.length>0?" "+u:u);continue}let p=!!g,y=r(p?v.substring(0,g):v);if(!y){if(!p){u=d+(u.length>0?" "+u:u);continue}if(y=r(v),!y){u=d+(u.length>0?" "+u:u);continue}p=!1}const b=h.length===0?"":h.length===1?h[0]:a(h).join(":"),x=m?b+Po:b,w=x+y;if(i.indexOf(w)>-1)continue;i.push(w);const k=s(y,p);for(let S=0;S<k.length;++S){const E=k[S];i.push(x+E)}u=d+(u.length>0?" "+u:u)}return u},wc=(...e)=>{let t=0,n,r,s="";for(;t<e.length;)(n=e[t++])&&(r=da(n))&&(s&&(s+=" "),s+=r);return s},da=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=da(e[r]))&&(n&&(n+=" "),n+=t);return n},kc=(e,...t)=>{let n,r,s,a;const i=u=>{const c=t.reduce((d,f)=>f(d),e());return n=yc(c),r=n.cache.get,s=n.cache.set,a=l,l(u)},l=u=>{const c=r(u);if(c)return c;const d=xc(u,n);return s(u,d),d};return a=i,(...u)=>a(wc(...u))},Sc=[],oe=e=>{const t=n=>n[e]||Sc;return t.isThemeGetter=!0,t},fa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ha=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ec=/^\d+\/\d+$/,Cc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bc=/\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$/,Tc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$c=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ht=e=>Ec.test(e),I=e=>!!e&&!Number.isNaN(Number(e)),Fe=e=>!!e&&Number.isInteger(Number(e)),io=e=>e.endsWith("%")&&I(e.slice(0,-1)),Le=e=>Cc.test(e),Vc=()=>!0,Pc=e=>Bc.test(e)&&!Tc.test(e),pa=()=>!1,Ac=e=>$c.test(e),Lc=e=>Mc.test(e),Dc=e=>!A(e)&&!L(e),Nc=e=>Tt(e,va,pa),A=e=>fa.test(e),Ge=e=>Tt(e,ya,Pc),ao=e=>Tt(e,Ic,I),os=e=>Tt(e,ma,pa),Rc=e=>Tt(e,ga,Lc),fn=e=>Tt(e,ba,Ac),L=e=>ha.test(e),Lt=e=>$t(e,ya),_c=e=>$t(e,jc),rs=e=>$t(e,ma),Fc=e=>$t(e,va),Oc=e=>$t(e,ga),hn=e=>$t(e,ba,!0),Tt=(e,t,n)=>{const r=fa.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$t=(e,t,n=!1)=>{const r=ha.exec(e);return r?r[1]?t(r[1]):n:!1},ma=e=>e==="position"||e==="percentage",ga=e=>e==="image"||e==="url",va=e=>e==="length"||e==="size"||e==="bg-size",ya=e=>e==="length",Ic=e=>e==="number",jc=e=>e==="family-name",ba=e=>e==="shadow",zc=()=>{const e=oe("color"),t=oe("font"),n=oe("text"),r=oe("font-weight"),s=oe("tracking"),a=oe("leading"),i=oe("breakpoint"),l=oe("container"),u=oe("spacing"),c=oe("radius"),d=oe("shadow"),f=oe("inset-shadow"),h=oe("text-shadow"),m=oe("drop-shadow"),v=oe("blur"),g=oe("perspective"),p=oe("aspect"),y=oe("ease"),b=oe("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...w(),L,A],S=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],C=()=>[L,A,u],$=()=>[ht,"full","auto",...C()],B=()=>[Fe,"none","subgrid",L,A],N=()=>["auto",{span:["full",Fe,L,A]},Fe,L,A],T=()=>[Fe,"auto",L,A],M=()=>["auto","min","max","fr",L,A],P=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...C()],O=()=>[ht,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],V=()=>[e,L,A],J=()=>[...w(),rs,os,{position:[L,A]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],j=()=>["auto","cover","contain",Fc,Nc,{size:[L,A]}],H=()=>[io,Lt,Ge],K=()=>["","none","full",c,L,A],G=()=>["",I,Lt,Ge],se=()=>["solid","dashed","dotted","double"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[I,io,rs,os],dt=()=>["","none",v,L,A],_e=()=>["none",I,L,A],He=()=>["none",I,L,A],ft=()=>[I,L,A],dn=()=>[ht,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Le],breakpoint:[Le],color:[Vc],container:[Le],"drop-shadow":[Le],ease:["in","out","in-out"],font:[Dc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Le],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Le],shadow:[Le],spacing:["px",I],text:[Le],"text-shadow":[Le],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ht,A,L,p]}],container:["container"],columns:[{columns:[I,A,L,l]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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"],sr:["sr-only","not-sr-only"],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:k()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Fe,"auto",L,A]}],basis:[{basis:[ht,"full","auto",l,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[I,ht,"auto","initial","none",A]}],grow:[{grow:["",I,L,A]}],shrink:[{shrink:["",I,L,A]}],order:[{order:[Fe,"first","last","none",L,A]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":M()}],"auto-rows":[{"auto-rows":M()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...P(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...P()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":P()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[l,"screen",...O()]}],"min-w":[{"min-w":[l,"screen","none",...O()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",n,Lt,Ge]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,L,ao]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",io,A]}],"font-family":[{font:[_c,A,t]}],"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:[s,L,A]}],"line-clamp":[{"line-clamp":[I,"none",L,ao]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":["none",L,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[I,"from-font","auto",L,Ge]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[I,"auto",L,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:J()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:j()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fe,L,A],radial:["",L,A],conic:[Fe,L,A]},Oc,Rc]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[I,L,A]}],"outline-w":[{outline:["",I,Lt,Ge]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",d,hn,fn]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",f,hn,fn]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[I,Ge]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",h,hn,fn]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[I,L,A]}],"mix-blend":[{"mix-blend":[...ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ke()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[I]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[L,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[I]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:J()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,A]}],filter:[{filter:["","none",L,A]}],blur:[{blur:dt()}],brightness:[{brightness:[I,L,A]}],contrast:[{contrast:[I,L,A]}],"drop-shadow":[{"drop-shadow":["","none",m,hn,fn]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",I,L,A]}],"hue-rotate":[{"hue-rotate":[I,L,A]}],invert:[{invert:["",I,L,A]}],saturate:[{saturate:[I,L,A]}],sepia:[{sepia:["",I,L,A]}],"backdrop-filter":[{"backdrop-filter":["","none",L,A]}],"backdrop-blur":[{"backdrop-blur":dt()}],"backdrop-brightness":[{"backdrop-brightness":[I,L,A]}],"backdrop-contrast":[{"backdrop-contrast":[I,L,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",I,L,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[I,L,A]}],"backdrop-invert":[{"backdrop-invert":["",I,L,A]}],"backdrop-opacity":[{"backdrop-opacity":[I,L,A]}],"backdrop-saturate":[{"backdrop-saturate":[I,L,A]}],"backdrop-sepia":[{"backdrop-sepia":["",I,L,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",L,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[I,"initial",L,A]}],ease:[{ease:["linear","initial",y,L,A]}],delay:[{delay:[I,L,A]}],animate:[{animate:["none",b,L,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,L,A]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:He()}],"scale-x":[{"scale-x":He()}],"scale-y":[{"scale-y":He()}],"scale-z":[{"scale-z":He()}],"scale-3d":["scale-3d"],skew:[{skew:ft()}],"skew-x":[{"skew-x":ft()}],"skew-y":[{"skew-y":ft()}],transform:[{transform:[L,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:dn()}],"translate-x":[{"translate-x":dn()}],"translate-y":[{"translate-y":dn()}],"translate-z":[{"translate-z":dn()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",L,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",L,A]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[I,Lt,Ge,ao]}],stroke:[{stroke:["none",...V()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},we=kc(zc),Kc=["aria-label"],xr=o.defineComponent({__name:"EvSpinner",props:{size:{default:"md"},variant:{default:"arc"},color:{default:"var(--foreground)"},trackColor:{},class:{},label:{default:"Loading"}},setup(e){const t=e,n={xs:3,sm:5,md:8,lg:10,xl:12},r={3:"h-3 w-3 border-2",4:"h-4 w-4 border-2",5:"h-5 w-5 border-2",6:"h-6 w-6 border-2",8:"h-8 w-8 border-2",10:"h-10 w-10 border-[3px]",12:"h-12 w-12 border-[3px]",16:"h-16 w-16 border-[3px]"},s=o.computed(()=>typeof t.size=="number"?t.size:n[t.size]),a=o.computed(()=>r[s.value]),i=o.computed(()=>we("inline-block rounded-full animate-spin",a.value,t.class)),l=o.computed(()=>{if(t.variant==="track"){const u=t.trackColor??`color-mix(in srgb, ${t.color} 20%, transparent)`;return{borderColor:u,borderTopColor:t.color,borderRightColor:u,borderBottomColor:u,borderLeftColor:u}}return{borderColor:"transparent",borderTopColor:t.color,borderRightColor:t.color,borderBottomColor:"transparent",borderLeftColor:"transparent"}});return(u,c)=>(o.openBlock(),o.createElementBlock("span",{role:"status","aria-label":e.label,class:o.normalizeClass(i.value),style:o.normalizeStyle(l.value)},null,14,Kc))}}),Uc=["type","disabled","aria-busy"],Hc={key:0,class:"inline-flex items-center justify-center gap-2"},St=o.defineComponent({__name:"EvButton",props:{class:{},size:{default:"sm"},variant:{default:"primary"},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},type:{},loadingText:{},fullWidth:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,s=o.computed(()=>{const a=aa[n.variant];let i=Vo[n.size];return n.variant==="icon"&&(i=Vo.icon),we(a,i,n.fullWidth?"w-full":"",n.class)});return(a,i)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["cursor-pointer disabled:cursor-not-allowed disabled:pointer-events-none",s.value]),type:e.type,disabled:n.isDisabled||n.isLoading,"aria-busy":n.isLoading||void 0,onClick:i[0]||(i[0]=l=>r("click",l))},[n.isLoading?(o.openBlock(),o.createElementBlock("span",Hc,[o.createVNode(o.unref(xr),{size:"xs",color:"currentColor"}),e.loadingText?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(e.loadingText),1)],64)):o.createCommentVNode("",!0)])):o.renderSlot(a.$slots,"default",{key:1})],10,Uc))}});function xa(e,t,n){let r=o.ref(n?.value),s=o.computed(()=>e.value!==void 0);return[o.computed(()=>s.value?e.value:r.value),function(a){return s.value||(r.value=a),t?.(a)}]}function Zn(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Jt(){let e=[],t={addEventListener(n,r,s,a){return n.addEventListener(r,s,a),t.add(()=>n.removeEventListener(r,s,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Zn(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,s){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:s}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=Jt();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let s of e.splice(r,1))s()}},dispose(){for(let n of e.splice(0))n()}};return t}var ss;let Gc=Symbol("headlessui.useid"),Wc=0;const he=(ss=Qr.useId)!=null?ss:function(){return Qr.inject(Gc,()=>`${++Wc}`)()};function _(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function ce(e,t,...n){if(e in t){let s=t[e];return typeof s=="function"?s(...n):s}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ce),r}var qc=Object.defineProperty,Yc=(e,t,n)=>t in e?qc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,is=(e,t,n)=>(Yc(e,typeof t!="symbol"?t+"":t,n),n);let Xc=class{constructor(){is(this,"current",this.detect()),is(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Qt=new Xc;function Ce(e){if(Qt.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=_(e);if(t)return t.ownerDocument}return document}let Ao=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var te=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(te||{}),Oe=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Oe||{}),Zc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Zc||{});function Jc(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ao)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var wa=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wa||{});function Qc(e,t=0){var n;return e===((n=Ce(e))==null?void 0:n.body)?!1:ce(t,{0(){return e.matches(Ao)},1(){let r=e;for(;r!==null;){if(r.matches(Ao))return!0;r=r.parentElement}return!1}})}var ed=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ed||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function rt(e){e?.focus({preventScroll:!0})}let td=["textarea","input"].join(",");function nd(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,td))!=null?n:!1}function Je(e,t=n=>n){return e.slice().sort((n,r)=>{let s=t(n),a=t(r);if(s===null||a===null)return 0;let i=s.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ye(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:s=[]}={}){var a;let i=(a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?a:document,l=Array.isArray(e)?n?Je(e):e:Jc(e);s.length>0&&l.length>1&&(l=l.filter(v=>!s.includes(v))),r=r??i.activeElement;let u=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(r))-1;if(t&4)return Math.max(0,l.indexOf(r))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=t&32?{preventScroll:!0}:{},f=0,h=l.length,m;do{if(f>=h||f+h<=0)return 0;let v=c+f;if(t&16)v=(v+h)%h;else{if(v<0)return 3;if(v>=h)return 1}m=l[v],m?.focus(d),f+=u}while(m!==i.activeElement);return t&6&&nd(m)&&m.select(),2}function ka(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function od(){return/Android/gi.test(window.navigator.userAgent)}function rd(){return ka()||od()}function pn(e,t,n){Qt.isServer||o.watchEffect(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function Sa(e,t,n){Qt.isServer||o.watchEffect(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function sd(e,t,n=o.computed(()=>!0)){function r(a,i){if(!n.value||a.defaultPrevented)return;let l=i(a);if(l===null||!l.getRootNode().contains(l))return;let u=(function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]})(e);for(let c of u){if(c===null)continue;let d=c instanceof HTMLElement?c:_(c);if(d!=null&&d.contains(l)||a.composed&&a.composedPath().includes(d))return}return!Qc(l,wa.Loose)&&l.tabIndex!==-1&&a.preventDefault(),t(a,l)}let s=o.ref(null);pn("pointerdown",a=>{var i,l;n.value&&(s.value=((l=(i=a.composedPath)==null?void 0:i.call(a))==null?void 0:l[0])||a.target)},!0),pn("mousedown",a=>{var i,l;n.value&&(s.value=((l=(i=a.composedPath)==null?void 0:i.call(a))==null?void 0:l[0])||a.target)},!0),pn("click",a=>{rd()||s.value&&(r(a,()=>s.value),s.value=null)},!0),pn("touchend",a=>r(a,()=>a.target instanceof HTMLElement?a.target:null),!0),Sa("blur",a=>r(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function as(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function wr(e,t){let n=o.ref(as(e.value.type,e.value.as));return o.onMounted(()=>{n.value=as(e.value.type,e.value.as)}),o.watchEffect(()=>{var r;n.value||_(t)&&_(t)instanceof HTMLButtonElement&&!((r=_(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}function id({container:e,accept:t,walk:n,enabled:r}){o.watchEffect(()=>{let s=e.value;if(!s||r!==void 0&&!r.value)return;let a=Ce(e);if(!a)return;let i=Object.assign(u=>t(u),{acceptNode:t}),l=a.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)n(l.currentNode)})}var ze=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ze||{}),Ie=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ie||{});function q({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...s}){var a;let i=Ca(r,n),l=Object.assign(s,{props:i});if(e||t&2&&i.static)return lo(l);if(t&1){let u=(a=i.unmount)==null||a?0:1;return ce(u,{0(){return null},1(){return lo({...s,props:{...i,hidden:!0,style:{display:"none"}}})}})}return lo(l)}function lo({props:e,attrs:t,slots:n,slot:r,name:s}){var a,i;let{as:l,...u}=en(e,["unmount","static"]),c=(a=n.default)==null?void 0:a.call(n,r),d={};if(r){let f=!1,h=[];for(let[m,v]of Object.entries(r))typeof v=="boolean"&&(f=!0),v===!0&&h.push(m);f&&(d["data-headlessui-state"]=h.join(" "))}if(l==="template"){if(c=Ea(c??[]),Object.keys(u).length>0||Object.keys(t).length>0){let[f,...h]=c??[];if(!ad(f)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${s} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(u).concat(Object.keys(t)).map(g=>g.trim()).filter((g,p,y)=>y.indexOf(g)===p).sort((g,p)=>g.localeCompare(p)).map(g=>` - ${g}`).join(`
59
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(`
32
60
  `)].join(`
33
- `));let g=Kt((s=b.props)!=null?s:{},u,d),h=e.cloneVNode(b,g,!0);for(let v in g)v.startsWith("on")&&(h.props||(h.props={}),h.props[v]=g[v]);return h}return Array.isArray(c)&&c.length===1?c[0]:c}return e.h(i,Object.assign({},u,d),{default:()=>c})}function qt(t){return t.flatMap(o=>o.type===e.Fragment?qt(o.children):[o])}function Kt(...t){if(t.length===0)return{};if(t.length===1)return t[0];let o={},n={};for(let l of t)for(let r in l)r.startsWith("on")&&typeof l[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(l[r])):o[r]=l[r];if(o.disabled||o["aria-disabled"])return Object.assign(o,Object.fromEntries(Object.keys(n).map(l=>[l,void 0])));for(let l in n)Object.assign(o,{[l](r,...a){let s=n[l];for(let i of s){if(r instanceof Event&&r.defaultPrevented)return;i(r,...a)}}});return o}function Yt(t){let o=Object.assign({},t);for(let n in o)o[n]===void 0&&delete o[n];return o}function Ne(t,o=[]){let n=Object.assign({},t);for(let l of o)l in n&&delete n[l];return n}function An(t){return t==null?!1:typeof t.type=="string"||typeof t.type=="object"||typeof t.type=="function"}var me=(t=>(t[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t))(me||{});let ve=e.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(t,{slots:o,attrs:n}){return()=>{var l;let{features:r,...a}=t,s={"aria-hidden":(r&2)===2?!0:(l=a["aria-hidden"])!=null?l:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return L({ourProps:s,theirProps:a,slot:{},attrs:n,slots:o,name:"Hidden"})}}}),Xt=Symbol("Context");var j=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(j||{});function Ln(){return je()!==null}function je(){return e.inject(Xt,null)}function Jt(t){e.provide(Xt,t)}var P=(t=>(t.Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t))(P||{});function Dn(t){function o(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",o))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",o),o())}let de=[];Dn(()=>{function t(o){o.target instanceof HTMLElement&&o.target!==document.body&&de[0]!==o.target&&(de.unshift(o.target),de=de.filter(n=>n!=null&&n.isConnected),de.splice(10))}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});function Zt(t={},o=null,n=[]){for(let[l,r]of Object.entries(t))eo(n,Qt(o,l),r);return n}function Qt(t,o){return t?t+"["+o+"]":o}function eo(t,o,n){if(Array.isArray(n))for(let[l,r]of n.entries())eo(t,Qt(o,l.toString()),r);else n instanceof Date?t.push([o,n.toISOString()]):typeof n=="boolean"?t.push([o,n?"1":"0"]):typeof n=="string"?t.push([o,n]):typeof n=="number"?t.push([o,`${n}`]):n==null?t.push([o,""]):Zt(n,o,t)}function to(t){var o,n;let l=(o=t?.form)!=null?o:t.closest("form");if(l){for(let r of l.elements)if(r!==t&&(r.tagName==="INPUT"&&r.type==="submit"||r.tagName==="BUTTON"&&r.type==="submit"||r.nodeName==="INPUT"&&r.type==="image")){r.click();return}(n=l.requestSubmit)==null||n.call(l)}}function oo(t,o,n,l){_e.isServer||e.watchEffect(r=>{t=t??window,t.addEventListener(o,n,l),r(()=>t.removeEventListener(o,n,l))})}var $e=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))($e||{});function Pn(){let t=e.ref(0);return Wt("keydown",o=>{o.key==="Tab"&&(t.value=o.shiftKey?1:0)}),t}function no(t){if(!t)return new Set;if(typeof t=="function")return new Set(t());let o=new Set;for(let n of t.value){let l=$(n);l instanceof HTMLElement&&o.add(l)}return o}var lo=(t=>(t[t.None=1]="None",t[t.InitialFocus=2]="InitialFocus",t[t.TabLock=4]="TabLock",t[t.FocusLock=8]="FocusLock",t[t.RestoreFocus=16]="RestoreFocus",t[t.All=30]="All",t))(lo||{});let Ce=Object.assign(e.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:e.ref(new Set)}},inheritAttrs:!1,setup(t,{attrs:o,slots:n,expose:l}){let r=e.ref(null);l({el:r,$el:r});let a=e.computed(()=>J(r)),s=e.ref(!1);e.onMounted(()=>s.value=!0),e.onUnmounted(()=>s.value=!1),In({ownerDocument:a},e.computed(()=>s.value&&!!(t.features&16)));let i=Mn({ownerDocument:a,container:r,initialFocus:e.computed(()=>t.initialFocus)},e.computed(()=>s.value&&!!(t.features&2)));zn({ownerDocument:a,container:r,containers:t.containers,previousActiveElement:i},e.computed(()=>s.value&&!!(t.features&8)));let u=Pn();function c(g){let h=$(r);h&&(v=>v())(()=>{U(u.value,{[$e.Forwards]:()=>{Y(h,O.First,{skipElements:[g.relatedTarget]})},[$e.Backwards]:()=>{Y(h,O.Last,{skipElements:[g.relatedTarget]})}})})}let d=e.ref(!1);function b(g){g.key==="Tab"&&(d.value=!0,requestAnimationFrame(()=>{d.value=!1}))}function m(g){if(!s.value)return;let h=no(t.containers);$(r)instanceof HTMLElement&&h.add($(r));let v=g.relatedTarget;v instanceof HTMLElement&&v.dataset.headlessuiFocusGuard!=="true"&&(ro(h,v)||(d.value?Y($(r),U(u.value,{[$e.Forwards]:()=>O.Next,[$e.Backwards]:()=>O.Previous})|O.WrapAround,{relativeTo:g.target}):g.target instanceof HTMLElement&&fe(g.target)))}return()=>{let g={},h={ref:r,onKeydown:b,onFocusout:m},{features:v,initialFocus:p,containers:y,...f}=t;return e.h(e.Fragment,[!!(v&4)&&e.h(ve,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:me.Focusable}),L({ourProps:h,theirProps:{...o,...f},slot:g,attrs:o,slots:n,name:"FocusTrap"}),!!(v&4)&&e.h(ve,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:me.Focusable})])}}}),{features:lo});function On(t){let o=e.ref(de.slice());return e.watch([t],([n],[l])=>{l===!0&&n===!1?Re(()=>{o.value.splice(0)}):l===!1&&n===!0&&(o.value=de.slice())},{flush:"post"}),()=>{var n;return(n=o.value.find(l=>l!=null&&l.isConnected))!=null?n:null}}function In({ownerDocument:t},o){let n=On(o);e.onMounted(()=>{e.watchEffect(()=>{var l,r;o.value||((l=t.value)==null?void 0:l.activeElement)===((r=t.value)==null?void 0:r.body)&&fe(n())},{flush:"post"})}),e.onUnmounted(()=>{o.value&&fe(n())})}function Mn({ownerDocument:t,container:o,initialFocus:n},l){let r=e.ref(null),a=e.ref(!1);return e.onMounted(()=>a.value=!0),e.onUnmounted(()=>a.value=!1),e.onMounted(()=>{e.watch([o,n,l],(s,i)=>{if(s.every((c,d)=>i?.[d]===c)||!l.value)return;let u=$(o);u&&Re(()=>{var c,d;if(!a.value)return;let b=$(n),m=(c=t.value)==null?void 0:c.activeElement;if(b){if(b===m){r.value=m;return}}else if(u.contains(m)){r.value=m;return}b?fe(b):Y(u,O.First|O.NoScroll)===ne.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),r.value=(d=t.value)==null?void 0:d.activeElement})},{immediate:!0,flush:"post"})}),r}function zn({ownerDocument:t,container:o,containers:n,previousActiveElement:l},r){var a;oo((a=t.value)==null?void 0:a.defaultView,"focus",s=>{if(!r.value)return;let i=no(n);$(o)instanceof HTMLElement&&i.add($(o));let u=l.value;if(!u)return;let c=s.target;c&&c instanceof HTMLElement?ro(i,c)?(l.value=c,fe(c)):(s.preventDefault(),s.stopPropagation(),fe(u)):fe(l.value)},!0)}function ro(t,o){for(let n of t)if(n.contains(o))return!0;return!1}function Rn(t){let o=e.shallowRef(t.getSnapshot());return e.onUnmounted(t.subscribe(()=>{o.value=t.getSnapshot()})),o}function jn(t,o){let n=t(),l=new Set;return{getSnapshot(){return n},subscribe(r){return l.add(r),()=>l.delete(r)},dispatch(r,...a){let s=o[r].call(n,...a);s&&(n=s,l.forEach(i=>i()))}}}function Hn(){let t;return{before({doc:o}){var n;let l=o.documentElement;t=((n=o.defaultView)!=null?n:window).innerWidth-l.clientWidth},after({doc:o,d:n}){let l=o.documentElement,r=l.clientWidth-l.offsetWidth,a=t-r;n.style(l,"paddingRight",`${a}px`)}}}function Un(){return Gt()?{before({doc:t,d:o,meta:n}){function l(r){return n.containers.flatMap(a=>a()).some(a=>a.contains(r))}o.microTask(()=>{var r;if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){let i=Be();i.style(t.documentElement,"scrollBehavior","auto"),o.add(()=>o.microTask(()=>i.dispose()))}let a=(r=window.scrollY)!=null?r:window.pageYOffset,s=null;o.addEventListener(t,"click",i=>{if(i.target instanceof HTMLElement)try{let u=i.target.closest("a");if(!u)return;let{hash:c}=new URL(u.href),d=t.querySelector(c);d&&!l(d)&&(s=d)}catch{}},!0),o.addEventListener(t,"touchstart",i=>{if(i.target instanceof HTMLElement)if(l(i.target)){let u=i.target;for(;u.parentElement&&l(u.parentElement);)u=u.parentElement;o.style(u,"overscrollBehavior","contain")}else o.style(i.target,"touchAction","none")}),o.addEventListener(t,"touchmove",i=>{if(i.target instanceof HTMLElement){if(i.target.tagName==="INPUT")return;if(l(i.target)){let u=i.target;for(;u.parentElement&&u.dataset.headlessuiPortal!==""&&!(u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth);)u=u.parentElement;u.dataset.headlessuiPortal===""&&i.preventDefault()}else i.preventDefault()}},{passive:!1}),o.add(()=>{var i;let u=(i=window.scrollY)!=null?i:window.pageYOffset;a!==u&&window.scrollTo(0,a),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function Gn(){return{before({doc:t,d:o}){o.style(t.documentElement,"overflow","hidden")}}}function Wn(t){let o={};for(let n of t)Object.assign(o,n(o));return o}let pe=jn(()=>new Map,{PUSH(t,o){var n;let l=(n=this.get(t))!=null?n:{doc:t,count:0,d:Be(),meta:new Set};return l.count++,l.meta.add(o),this.set(t,l),this},POP(t,o){let n=this.get(t);return n&&(n.count--,n.meta.delete(o)),this},SCROLL_PREVENT({doc:t,d:o,meta:n}){let l={doc:t,d:o,meta:Wn(n)},r=[Un(),Hn(),Gn()];r.forEach(({before:a})=>a?.(l)),r.forEach(({after:a})=>a?.(l))},SCROLL_ALLOW({d:t}){t.dispose()},TEARDOWN({doc:t}){this.delete(t)}});pe.subscribe(()=>{let t=pe.getSnapshot(),o=new Map;for(let[n]of t)o.set(n,n.documentElement.style.overflow);for(let n of t.values()){let l=o.get(n.doc)==="hidden",r=n.count!==0;(r&&!l||!r&&l)&&pe.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&pe.dispatch("TEARDOWN",n)}});function qn(t,o,n){let l=Rn(pe),r=e.computed(()=>{let a=t.value?l.value.get(t.value):void 0;return a?a.count>0:!1});return e.watch([t,o],([a,s],[i],u)=>{if(!a||!s)return;pe.dispatch("PUSH",a,n);let c=!1;u(()=>{c||(pe.dispatch("POP",i??a,n),c=!0)})},{immediate:!0}),r}let Ye=new Map,Se=new Map;function $t(t,o=e.ref(!0)){e.watchEffect(n=>{var l;if(!o.value)return;let r=$(t);if(!r)return;n(function(){var s;if(!r)return;let i=(s=Se.get(r))!=null?s:1;if(i===1?Se.delete(r):Se.set(r,i-1),i!==1)return;let u=Ye.get(r);u&&(u["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",u["aria-hidden"]),r.inert=u.inert,Ye.delete(r))});let a=(l=Se.get(r))!=null?l:0;Se.set(r,a+1),a===0&&(Ye.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function Kn({defaultContainers:t=[],portals:o,mainTreeNodeRef:n}={}){let l=e.ref(null),r=J(l);function a(){var s,i,u;let c=[];for(let d of t)d!==null&&(d instanceof HTMLElement?c.push(d):"value"in d&&d.value instanceof HTMLElement&&c.push(d.value));if(o!=null&&o.value)for(let d of o.value)c.push(d);for(let d of(s=r?.querySelectorAll("html > *, body > *"))!=null?s:[])d!==document.body&&d!==document.head&&d instanceof HTMLElement&&d.id!=="headlessui-portal-root"&&(d.contains($(l))||d.contains((u=(i=$(l))==null?void 0:i.getRootNode())==null?void 0:u.host)||c.some(b=>d.contains(b))||c.push(d));return c}return{resolveContainers:a,contains(s){return a().some(i=>i.contains(s))},mainTreeNodeRef:l,MainTreeNode(){return n!=null?null:e.h(ve,{features:me.Hidden,ref:l})}}}let ao=Symbol("ForcePortalRootContext");function Yn(){return e.inject(ao,!1)}let et=e.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(t,{slots:o,attrs:n}){return e.provide(ao,t.force),()=>{let{force:l,...r}=t;return L({theirProps:r,ourProps:{},slot:{},slots:o,attrs:n,name:"ForcePortalRoot"})}}}),so=Symbol("StackContext");var tt=(t=>(t[t.Add=0]="Add",t[t.Remove=1]="Remove",t))(tt||{});function Xn(){return e.inject(so,()=>{})}function Jn({type:t,enabled:o,element:n,onUpdate:l}){let r=Xn();function a(...s){l?.(...s),r(...s)}e.onMounted(()=>{e.watch(o,(s,i)=>{s?a(0,t,n):i===!0&&a(1,t,n)},{immediate:!0,flush:"sync"})}),e.onUnmounted(()=>{o.value&&a(1,t,n)}),e.provide(so,a)}let io=Symbol("DescriptionContext");function Zn(){let t=e.inject(io,null);if(t===null)throw new Error("Missing parent");return t}function He({slot:t=e.ref({}),name:o="Description",props:n={}}={}){let l=e.ref([]);function r(a){return l.value.push(a),()=>{let s=l.value.indexOf(a);s!==-1&&l.value.splice(s,1)}}return e.provide(io,{register:r,slot:t,name:o,props:n}),e.computed(()=>l.value.length>0?l.value.join(" "):void 0)}let Qn=e.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(t,{attrs:o,slots:n}){var l;let r=(l=t.id)!=null?l:`headlessui-description-${G()}`,a=Zn();return e.onMounted(()=>e.onUnmounted(a.register(r))),()=>{let{name:s="Description",slot:i=e.ref({}),props:u={}}=a,{...c}=t,d={...Object.entries(u).reduce((b,[m,g])=>Object.assign(b,{[m]:e.unref(g)}),{}),id:r};return L({ourProps:d,theirProps:c,slot:i.value,attrs:o,slots:n,name:s})}}});function el(t){let o=J(t);if(!o){if(t===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${t}`)}let n=o.getElementById("headlessui-portal-root");if(n)return n;let l=o.createElement("div");return l.setAttribute("id","headlessui-portal-root"),o.body.appendChild(l)}const ot=new WeakMap;function tl(t){var o;return(o=ot.get(t))!=null?o:0}function Bt(t,o){let n=o(tl(t));return n<=0?ot.delete(t):ot.set(t,n),n}let uo=e.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(t,{slots:o,attrs:n}){let l=e.ref(null),r=e.computed(()=>J(l)),a=Yn(),s=e.inject(co,null),i=e.ref(a===!0||s==null?el(l.value):s.resolveTarget());i.value&&Bt(i.value,m=>m+1);let u=e.ref(!1);e.onMounted(()=>{u.value=!0}),e.watchEffect(()=>{a||s!=null&&(i.value=s.resolveTarget())});let c=e.inject(nt,null),d=!1,b=e.getCurrentInstance();return e.watch(l,()=>{if(d||!c)return;let m=$(l);m&&(e.onUnmounted(c.register(m),b),d=!0)}),e.onUnmounted(()=>{var m,g;let h=(m=r.value)==null?void 0:m.getElementById("headlessui-portal-root");!h||i.value!==h||Bt(i.value,v=>v-1)||i.value.children.length>0||(g=i.value.parentElement)==null||g.removeChild(i.value)}),()=>{if(!u.value||i.value===null)return null;let m={ref:l,"data-headlessui-portal":""};return e.h(e.Teleport,{to:i.value},L({ourProps:m,theirProps:t,slot:{},attrs:n,slots:o,name:"Portal"}))}}}),nt=Symbol("PortalParentContext");function ol(){let t=e.inject(nt,null),o=e.ref([]);function n(a){return o.value.push(a),t&&t.register(a),()=>l(a)}function l(a){let s=o.value.indexOf(a);s!==-1&&o.value.splice(s,1),t&&t.unregister(a)}let r={register:n,unregister:l,portals:o};return[o,e.defineComponent({name:"PortalWrapper",setup(a,{slots:s}){return e.provide(nt,r),()=>{var i;return(i=s.default)==null?void 0:i.call(s)}}})]}let co=Symbol("PortalGroupContext"),nl=e.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(t,{attrs:o,slots:n}){let l=e.reactive({resolveTarget(){return t.target}});return e.provide(co,l),()=>{let{target:r,...a}=t;return L({theirProps:a,ourProps:{},slot:{},attrs:o,slots:n,name:"PortalGroup"})}}});var ll=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(ll||{});let lt=Symbol("DialogContext");function Ve(t){let o=e.inject(lt,null);if(o===null){let n=new Error(`<${t} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ve),n}return o}let Ie="DC8F892D-2EBD-447C-A4C8-A03058436FF4",rl=e.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Ie},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:t=>!0},setup(t,{emit:o,attrs:n,slots:l,expose:r}){var a,s;let i=(a=t.id)!=null?a:`headlessui-dialog-${G()}`,u=e.ref(!1);e.onMounted(()=>{u.value=!0});let c=!1,d=e.computed(()=>t.role==="dialog"||t.role==="alertdialog"?t.role:(c||(c=!0,console.warn(`Invalid role [${d}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),b=e.ref(0),m=je(),g=e.computed(()=>t.open===Ie&&m!==null?(m.value&j.Open)===j.Open:t.open),h=e.ref(null),v=e.computed(()=>J(h));if(r({el:h,$el:h}),!(t.open!==Ie||m!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof g.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${g.value===Ie?void 0:t.open}`);let p=e.computed(()=>u.value&&g.value?0:1),y=e.computed(()=>p.value===0),f=e.computed(()=>b.value>1),w=e.inject(lt,null)!==null,[C,B]=ol(),{resolveContainers:_,mainTreeNodeRef:F,MainTreeNode:E}=Kn({portals:C,defaultContainers:[e.computed(()=>{var V;return(V=W.panelRef.value)!=null?V:h.value})]}),q=e.computed(()=>f.value?"parent":"leaf"),ae=e.computed(()=>m!==null?(m.value&j.Closing)===j.Closing:!1),be=e.computed(()=>w||ae.value?!1:y.value),ee=e.computed(()=>{var V,D,T;return(T=Array.from((D=(V=v.value)==null?void 0:V.querySelectorAll("body > *"))!=null?D:[]).find(A=>A.id==="headlessui-portal-root"?!1:A.contains($(F))&&A instanceof HTMLElement))!=null?T:null});$t(ee,be);let K=e.computed(()=>f.value?!0:y.value),Z=e.computed(()=>{var V,D,T;return(T=Array.from((D=(V=v.value)==null?void 0:V.querySelectorAll("[data-headlessui-portal]"))!=null?D:[]).find(A=>A.contains($(F))&&A instanceof HTMLElement))!=null?T:null});$t(Z,K),Jn({type:"Dialog",enabled:e.computed(()=>p.value===0),element:h,onUpdate:(V,D)=>{if(D==="Dialog")return U(V,{[tt.Add]:()=>b.value+=1,[tt.Remove]:()=>b.value-=1})}});let H=He({name:"DialogDescription",slot:e.computed(()=>({open:g.value}))}),M=e.ref(null),W={titleId:M,panelRef:e.ref(null),dialogState:p,setTitleId(V){M.value!==V&&(M.value=V)},close(){o("close",!1)}};e.provide(lt,W);let S=e.computed(()=>!(!y.value||f.value));Tn(_,(V,D)=>{V.preventDefault(),W.close(),e.nextTick(()=>D?.focus())},S);let ke=e.computed(()=>!(f.value||p.value!==0));oo((s=v.value)==null?void 0:s.defaultView,"keydown",V=>{ke.value&&(V.defaultPrevented||V.key===P.Escape&&(V.preventDefault(),V.stopPropagation(),W.close()))});let we=e.computed(()=>!(ae.value||p.value!==0||w));return qn(v,we,V=>{var D;return{containers:[...(D=V.containers)!=null?D:[],_]}}),e.watchEffect(V=>{if(p.value!==0)return;let D=$(h);if(!D)return;let T=new ResizeObserver(A=>{for(let te of A){let se=te.target.getBoundingClientRect();se.x===0&&se.y===0&&se.width===0&&se.height===0&&W.close()}});T.observe(D),V(()=>T.disconnect())}),()=>{let{open:V,initialFocus:D,...T}=t,A={...n,ref:h,id:i,role:d.value,"aria-modal":p.value===0?!0:void 0,"aria-labelledby":M.value,"aria-describedby":H.value},te={open:p.value===0};return e.h(et,{force:!0},()=>[e.h(uo,()=>e.h(nl,{target:h.value},()=>e.h(et,{force:!1},()=>e.h(Ce,{initialFocus:D,containers:_,features:y.value?U(q.value,{parent:Ce.features.RestoreFocus,leaf:Ce.features.All&~Ce.features.FocusLock}):Ce.features.None},()=>e.h(B,{},()=>L({ourProps:A,theirProps:{...T,...n},slot:te,attrs:n,slots:l,visible:p.value===0,features:re.RenderStrategy|re.Static,name:"Dialog"})))))),e.h(E)])}}});e.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(t,{attrs:o,slots:n}){var l;let r=(l=t.id)!=null?l:`headlessui-dialog-overlay-${G()}`,a=Ve("DialogOverlay");function s(i){i.target===i.currentTarget&&(i.preventDefault(),i.stopPropagation(),a.close())}return()=>{let{...i}=t;return L({ourProps:{id:r,"aria-hidden":!0,onClick:s},theirProps:i,slot:{open:a.dialogState.value===0},attrs:o,slots:n,name:"DialogOverlay"})}}});e.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(t,{attrs:o,slots:n,expose:l}){var r;let a=(r=t.id)!=null?r:`headlessui-dialog-backdrop-${G()}`,s=Ve("DialogBackdrop"),i=e.ref(null);return l({el:i,$el:i}),e.onMounted(()=>{if(s.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...u}=t,c={id:a,ref:i,"aria-hidden":!0};return e.h(et,{force:!0},()=>e.h(uo,()=>L({ourProps:c,theirProps:{...o,...u},slot:{open:s.dialogState.value===0},attrs:o,slots:n,name:"DialogBackdrop"})))}}});let al=e.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(t,{attrs:o,slots:n,expose:l}){var r;let a=(r=t.id)!=null?r:`headlessui-dialog-panel-${G()}`,s=Ve("DialogPanel");l({el:s.panelRef,$el:s.panelRef});function i(u){u.stopPropagation()}return()=>{let{...u}=t,c={id:a,ref:s.panelRef,onClick:i};return L({ourProps:c,theirProps:u,slot:{open:s.dialogState.value===0},attrs:o,slots:n,name:"DialogPanel"})}}}),sl=e.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(t,{attrs:o,slots:n}){var l;let r=(l=t.id)!=null?l:`headlessui-dialog-title-${G()}`,a=Ve("DialogTitle");return e.onMounted(()=>{a.setTitleId(r),e.onUnmounted(()=>a.setTitleId(null))}),()=>{let{...s}=t;return L({ourProps:{id:r},theirProps:s,slot:{open:a.dialogState.value===0},attrs:o,slots:n,name:"DialogTitle"})}}});var il=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(il||{});let po=Symbol("DisclosureContext");function ct(t){let o=e.inject(po,null);if(o===null){let n=new Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ct),n}return o}let fo=Symbol("DisclosurePanelContext");function ul(){return e.inject(fo,null)}let cl=e.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(t,{slots:o,attrs:n}){let l=e.ref(t.defaultOpen?0:1),r=e.ref(null),a=e.ref(null),s={buttonId:e.ref(`headlessui-disclosure-button-${G()}`),panelId:e.ref(`headlessui-disclosure-panel-${G()}`),disclosureState:l,panel:r,button:a,toggleDisclosure(){l.value=U(l.value,{0:1,1:0})},closeDisclosure(){l.value!==1&&(l.value=1)},close(i){s.closeDisclosure();let u=i?i instanceof HTMLElement?i:i.value instanceof HTMLElement?$(i):$(s.button):$(s.button);u?.focus()}};return e.provide(po,s),Jt(e.computed(()=>U(l.value,{0:j.Open,1:j.Closed}))),()=>{let{defaultOpen:i,...u}=t,c={open:l.value===0,close:s.close};return L({theirProps:u,ourProps:{},slot:c,slots:o,attrs:n,name:"Disclosure"})}}}),dl=e.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(t,{attrs:o,slots:n,expose:l}){let r=ct("DisclosureButton"),a=ul(),s=e.computed(()=>a===null?!1:a.value===r.panelId.value);e.onMounted(()=>{s.value||t.id!==null&&(r.buttonId.value=t.id)}),e.onUnmounted(()=>{s.value||(r.buttonId.value=null)});let i=e.ref(null);l({el:i,$el:i}),s.value||e.watchEffect(()=>{r.button.value=i.value});let u=ut(e.computed(()=>({as:t.as,type:o.type})),i);function c(){var m;t.disabled||(s.value?(r.toggleDisclosure(),(m=$(r.button))==null||m.focus()):r.toggleDisclosure())}function d(m){var g;if(!t.disabled)if(s.value)switch(m.key){case P.Space:case P.Enter:m.preventDefault(),m.stopPropagation(),r.toggleDisclosure(),(g=$(r.button))==null||g.focus();break}else switch(m.key){case P.Space:case P.Enter:m.preventDefault(),m.stopPropagation(),r.toggleDisclosure();break}}function b(m){switch(m.key){case P.Space:m.preventDefault();break}}return()=>{var m;let g={open:r.disclosureState.value===0},{id:h,...v}=t,p=s.value?{ref:i,type:u.value,onClick:c,onKeydown:d}:{id:(m=r.buttonId.value)!=null?m:h,ref:i,type:u.value,"aria-expanded":r.disclosureState.value===0,"aria-controls":r.disclosureState.value===0||$(r.panel)?r.panelId.value:void 0,disabled:t.disabled?!0:void 0,onClick:c,onKeydown:d,onKeyup:b};return L({ourProps:p,theirProps:v,slot:g,attrs:o,slots:n,name:"DisclosureButton"})}}}),pl=e.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(t,{attrs:o,slots:n,expose:l}){let r=ct("DisclosurePanel");e.onMounted(()=>{t.id!==null&&(r.panelId.value=t.id)}),e.onUnmounted(()=>{r.panelId.value=null}),l({el:r.panel,$el:r.panel}),e.provide(fo,r.panelId);let a=je(),s=e.computed(()=>a!==null?(a.value&j.Open)===j.Open:r.disclosureState.value===0);return()=>{var i;let u={open:r.disclosureState.value===0,close:r.close},{id:c,...d}=t,b={id:(i=r.panelId.value)!=null?i:c,ref:r.panel};return L({ourProps:b,theirProps:d,slot:u,attrs:o,slots:n,features:re.RenderStrategy|re.Static,visible:s.value,name:"DisclosurePanel"})}}}),mo=Symbol("LabelContext");function vo(){let t=e.inject(mo,null);if(t===null){let o=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(o,vo),o}return t}function dt({slot:t={},name:o="Label",props:n={}}={}){let l=e.ref([]);function r(a){return l.value.push(a),()=>{let s=l.value.indexOf(a);s!==-1&&l.value.splice(s,1)}}return e.provide(mo,{register:r,slot:t,name:o,props:n}),e.computed(()=>l.value.length>0?l.value.join(" "):void 0)}let fl=e.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(t,{slots:o,attrs:n}){var l;let r=(l=t.id)!=null?l:`headlessui-label-${G()}`,a=vo();return e.onMounted(()=>e.onUnmounted(a.register(r))),()=>{let{name:s="Label",slot:i={},props:u={}}=a,{passive:c,...d}=t,b={...Object.entries(u).reduce((m,[g,h])=>Object.assign(m,{[g]:e.unref(h)}),{}),id:r};return c&&(delete b.onClick,delete b.htmlFor,delete d.onClick),L({ourProps:b,theirProps:d,slot:i,attrs:n,slots:o,name:s})}}});function ml(t,o){return t===o}let bo=Symbol("RadioGroupContext");function go(t){let o=e.inject(bo,null);if(o===null){let n=new Error(`<${t} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,go),n}return o}let ho=e.defineComponent({name:"RadioGroup",emits:{"update:modelValue":t=>!0},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>ml},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},id:{type:String,default:null}},inheritAttrs:!1,setup(t,{emit:o,attrs:n,slots:l,expose:r}){var a;let s=(a=t.id)!=null?a:`headlessui-radiogroup-${G()}`,i=e.ref(null),u=e.ref([]),c=dt({name:"RadioGroupLabel"}),d=He({name:"RadioGroupDescription"});r({el:i,$el:i});let[b,m]=Ht(e.computed(()=>t.modelValue),p=>o("update:modelValue",p),e.computed(()=>t.defaultValue)),g={options:u,value:b,disabled:e.computed(()=>t.disabled),firstOption:e.computed(()=>u.value.find(p=>!p.propsRef.disabled)),containsCheckedOption:e.computed(()=>u.value.some(p=>g.compare(e.toRaw(p.propsRef.value),e.toRaw(t.modelValue)))),compare(p,y){if(typeof t.by=="string"){let f=t.by;return p?.[f]===y?.[f]}return t.by(p,y)},change(p){var y;if(t.disabled||g.compare(e.toRaw(b.value),e.toRaw(p)))return!1;let f=(y=u.value.find(w=>g.compare(e.toRaw(w.propsRef.value),e.toRaw(p))))==null?void 0:y.propsRef;return f!=null&&f.disabled?!1:(m(p),!0)},registerOption(p){u.value.push(p),u.value=ce(u.value,y=>y.element)},unregisterOption(p){let y=u.value.findIndex(f=>f.id===p);y!==-1&&u.value.splice(y,1)}};e.provide(bo,g),Fn({container:e.computed(()=>$(i)),accept(p){return p.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:p.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(p){p.setAttribute("role","none")}});function h(p){if(!i.value||!i.value.contains(p.target))return;let y=u.value.filter(f=>f.propsRef.disabled===!1).map(f=>f.element);switch(p.key){case P.Enter:to(p.currentTarget);break;case P.ArrowLeft:case P.ArrowUp:if(p.preventDefault(),p.stopPropagation(),Y(y,O.Previous|O.WrapAround)===ne.Success){let f=u.value.find(w=>{var C;return w.element===((C=J(i))==null?void 0:C.activeElement)});f&&g.change(f.propsRef.value)}break;case P.ArrowRight:case P.ArrowDown:if(p.preventDefault(),p.stopPropagation(),Y(y,O.Next|O.WrapAround)===ne.Success){let f=u.value.find(w=>{var C;return w.element===((C=J(w.element))==null?void 0:C.activeElement)});f&&g.change(f.propsRef.value)}break;case P.Space:{p.preventDefault(),p.stopPropagation();let f=u.value.find(w=>{var C;return w.element===((C=J(w.element))==null?void 0:C.activeElement)});f&&g.change(f.propsRef.value)}break}}let v=e.computed(()=>{var p;return(p=$(i))==null?void 0:p.closest("form")});return e.onMounted(()=>{e.watch([v],()=>{if(!v.value||t.defaultValue===void 0)return;function p(){g.change(t.defaultValue)}return v.value.addEventListener("reset",p),()=>{var y;(y=v.value)==null||y.removeEventListener("reset",p)}},{immediate:!0})}),()=>{let{disabled:p,name:y,form:f,...w}=t,C={ref:i,id:s,role:"radiogroup","aria-labelledby":c.value,"aria-describedby":d.value,onKeydown:h};return e.h(e.Fragment,[...y!=null&&b.value!=null?Zt({[y]:b.value}).map(([B,_])=>e.h(ve,Yt({features:me.Hidden,key:B,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:f,disabled:p,name:B,value:_}))):[],L({ourProps:C,theirProps:{...n,...Ne(w,["modelValue","defaultValue","by"])},slot:{},attrs:n,slots:l,name:"RadioGroup"})])}}});var vl=(t=>(t[t.Empty=1]="Empty",t[t.Active=2]="Active",t))(vl||{});let yo=e.defineComponent({name:"RadioGroupOption",props:{as:{type:[Object,String],default:"div"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(t,{attrs:o,slots:n,expose:l}){var r;let a=(r=t.id)!=null?r:`headlessui-radiogroup-option-${G()}`,s=go("RadioGroupOption"),i=dt({name:"RadioGroupLabel"}),u=He({name:"RadioGroupDescription"}),c=e.ref(null),d=e.computed(()=>({value:t.value,disabled:t.disabled})),b=e.ref(1);l({el:c,$el:c});let m=e.computed(()=>$(c));e.onMounted(()=>s.registerOption({id:a,element:m,propsRef:d})),e.onUnmounted(()=>s.unregisterOption(a));let g=e.computed(()=>{var C;return((C=s.firstOption.value)==null?void 0:C.id)===a}),h=e.computed(()=>s.disabled.value||t.disabled),v=e.computed(()=>s.compare(e.toRaw(s.value.value),e.toRaw(t.value))),p=e.computed(()=>h.value?-1:v.value||!s.containsCheckedOption.value&&g.value?0:-1);function y(){var C;s.change(t.value)&&(b.value|=2,(C=$(c))==null||C.focus())}function f(){b.value|=2}function w(){b.value&=-3}return()=>{let{value:C,disabled:B,..._}=t,F={checked:v.value,disabled:h.value,active:!!(b.value&2)},E={id:a,ref:c,role:"radio","aria-checked":v.value?"true":"false","aria-labelledby":i.value,"aria-describedby":u.value,"aria-disabled":h.value?!0:void 0,tabIndex:p.value,onClick:h.value?void 0:y,onFocus:h.value?void 0:f,onBlur:h.value?void 0:w};return L({ourProps:E,theirProps:_,slot:F,attrs:o,slots:n,name:"RadioGroupOption"})}}}),rt=fl,bl=Qn,xo=Symbol("GroupContext");e.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(t,{slots:o,attrs:n}){let l=e.ref(null),r=dt({name:"SwitchLabel",props:{htmlFor:e.computed(()=>{var s;return(s=l.value)==null?void 0:s.id}),onClick(s){l.value&&(s.currentTarget.tagName==="LABEL"&&s.preventDefault(),l.value.click(),l.value.focus({preventScroll:!0}))}}}),a=He({name:"SwitchDescription"});return e.provide(xo,{switchRef:l,labelledby:r,describedby:a}),()=>L({theirProps:t,ourProps:{},slot:{},slots:o,attrs:n,name:"SwitchGroup"})}});let gl=e.defineComponent({name:"Switch",emits:{"update:modelValue":t=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(t,{emit:o,attrs:n,slots:l,expose:r}){var a;let s=(a=t.id)!=null?a:`headlessui-switch-${G()}`,i=e.inject(xo,null),[u,c]=Ht(e.computed(()=>t.modelValue),f=>o("update:modelValue",f),e.computed(()=>t.defaultChecked));function d(){c(!u.value)}let b=e.ref(null),m=i===null?b:i.switchRef,g=ut(e.computed(()=>({as:t.as,type:n.type})),m);r({el:m,$el:m});function h(f){f.preventDefault(),d()}function v(f){f.key===P.Space?(f.preventDefault(),d()):f.key===P.Enter&&to(f.currentTarget)}function p(f){f.preventDefault()}let y=e.computed(()=>{var f,w;return(w=(f=$(m))==null?void 0:f.closest)==null?void 0:w.call(f,"form")});return e.onMounted(()=>{e.watch([y],()=>{if(!y.value||t.defaultChecked===void 0)return;function f(){c(t.defaultChecked)}return y.value.addEventListener("reset",f),()=>{var w;(w=y.value)==null||w.removeEventListener("reset",f)}},{immediate:!0})}),()=>{let{name:f,value:w,form:C,tabIndex:B,..._}=t,F={checked:u.value},E={id:s,ref:m,role:"switch",type:g.value,tabIndex:B===-1?0:B,"aria-checked":u.value,"aria-labelledby":i?.labelledby.value,"aria-describedby":i?.describedby.value,onClick:h,onKeyup:v,onKeypress:p};return e.h(e.Fragment,[f!=null&&u.value!=null?e.h(ve,Yt({features:me.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:u.value,form:C,disabled:_.disabled,name:f,value:w})):null,L({ourProps:E,theirProps:{...n,...Ne(_,["modelValue","defaultChecked"])},slot:F,attrs:n,slots:l,name:"Switch"})])}}}),hl=e.defineComponent({props:{onFocus:{type:Function,required:!0}},setup(t){let o=e.ref(!0);return()=>o.value?e.h(ve,{as:"button",type:"button",features:me.Focusable,onFocus(n){n.preventDefault();let l,r=50;function a(){var s;if(r--<=0){l&&cancelAnimationFrame(l);return}if((s=t.onFocus)!=null&&s.call(t)){o.value=!1,cancelAnimationFrame(l);return}l=requestAnimationFrame(a)}l=requestAnimationFrame(a)}}):null}});var yl=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(yl||{}),xl=(t=>(t[t.Less=-1]="Less",t[t.Equal=0]="Equal",t[t.Greater=1]="Greater",t))(xl||{});let ko=Symbol("TabsContext");function Te(t){let o=e.inject(ko,null);if(o===null){let n=new Error(`<${t} /> is missing a parent <TabGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Te),n}return o}let pt=Symbol("TabsSSRContext"),kl=e.defineComponent({name:"TabGroup",emits:{change:t=>!0},props:{as:{type:[Object,String],default:"template"},selectedIndex:{type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(t,{slots:o,attrs:n,emit:l}){var r;let a=e.ref((r=t.selectedIndex)!=null?r:t.defaultIndex),s=e.ref([]),i=e.ref([]),u=e.computed(()=>t.selectedIndex!==null),c=e.computed(()=>u.value?t.selectedIndex:a.value);function d(v){var p;let y=ce(b.tabs.value,$),f=ce(b.panels.value,$),w=y.filter(C=>{var B;return!((B=$(C))!=null&&B.hasAttribute("disabled"))});if(v<0||v>y.length-1){let C=U(a.value===null?0:Math.sign(v-a.value),{[-1]:()=>1,0:()=>U(Math.sign(v),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),B=U(C,{0:()=>y.indexOf(w[0]),1:()=>y.indexOf(w[w.length-1])});B!==-1&&(a.value=B),b.tabs.value=y,b.panels.value=f}else{let C=y.slice(0,v),B=[...y.slice(v),...C].find(F=>w.includes(F));if(!B)return;let _=(p=y.indexOf(B))!=null?p:b.selectedIndex.value;_===-1&&(_=b.selectedIndex.value),a.value=_,b.tabs.value=y,b.panels.value=f}}let b={selectedIndex:e.computed(()=>{var v,p;return(p=(v=a.value)!=null?v:t.defaultIndex)!=null?p:null}),orientation:e.computed(()=>t.vertical?"vertical":"horizontal"),activation:e.computed(()=>t.manual?"manual":"auto"),tabs:s,panels:i,setSelectedIndex(v){c.value!==v&&l("change",v),u.value||d(v)},registerTab(v){var p;if(s.value.includes(v))return;let y=s.value[a.value];if(s.value.push(v),s.value=ce(s.value,$),!u.value){let f=(p=s.value.indexOf(y))!=null?p:a.value;f!==-1&&(a.value=f)}},unregisterTab(v){let p=s.value.indexOf(v);p!==-1&&s.value.splice(p,1)},registerPanel(v){i.value.includes(v)||(i.value.push(v),i.value=ce(i.value,$))},unregisterPanel(v){let p=i.value.indexOf(v);p!==-1&&i.value.splice(p,1)}};e.provide(ko,b);let m=e.ref({tabs:[],panels:[]}),g=e.ref(!1);e.onMounted(()=>{g.value=!0}),e.provide(pt,e.computed(()=>g.value?null:m.value));let h=e.computed(()=>t.selectedIndex);return e.onMounted(()=>{e.watch([h],()=>{var v;return d((v=t.selectedIndex)!=null?v:t.defaultIndex)},{immediate:!0})}),e.watchEffect(()=>{if(!u.value||c.value==null||b.tabs.value.length<=0)return;let v=ce(b.tabs.value,$);v.some((p,y)=>$(b.tabs.value[y])!==$(p))&&b.setSelectedIndex(v.findIndex(p=>$(p)===$(b.tabs.value[c.value])))}),()=>{let v={selectedIndex:a.value};return e.h(e.Fragment,[s.value.length<=0&&e.h(hl,{onFocus:()=>{for(let p of s.value){let y=$(p);if(y?.tabIndex===0)return y.focus(),!0}return!1}}),L({theirProps:{...n,...Ne(t,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:v,slots:o,attrs:n,name:"TabGroup"})])}}}),wl=e.defineComponent({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(t,{attrs:o,slots:n}){let l=Te("TabList");return()=>{let r={selectedIndex:l.selectedIndex.value},a={role:"tablist","aria-orientation":l.orientation.value};return L({ourProps:a,theirProps:t,slot:r,attrs:o,slots:n,name:"TabList"})}}}),El=e.defineComponent({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(t,{attrs:o,slots:n,expose:l}){var r;let a=(r=t.id)!=null?r:`headlessui-tabs-tab-${G()}`,s=Te("Tab"),i=e.ref(null);l({el:i,$el:i}),e.onMounted(()=>s.registerTab(i)),e.onUnmounted(()=>s.unregisterTab(i));let u=e.inject(pt),c=e.computed(()=>{if(u.value){let f=u.value.tabs.indexOf(a);return f===-1?u.value.tabs.push(a)-1:f}return-1}),d=e.computed(()=>{let f=s.tabs.value.indexOf(i);return f===-1?c.value:f}),b=e.computed(()=>d.value===s.selectedIndex.value);function m(f){var w;let C=f();if(C===ne.Success&&s.activation.value==="auto"){let B=(w=J(i))==null?void 0:w.activeElement,_=s.tabs.value.findIndex(F=>$(F)===B);_!==-1&&s.setSelectedIndex(_)}return C}function g(f){let w=s.tabs.value.map(C=>$(C)).filter(Boolean);if(f.key===P.Space||f.key===P.Enter){f.preventDefault(),f.stopPropagation(),s.setSelectedIndex(d.value);return}switch(f.key){case P.Home:case P.PageUp:return f.preventDefault(),f.stopPropagation(),m(()=>Y(w,O.First));case P.End:case P.PageDown:return f.preventDefault(),f.stopPropagation(),m(()=>Y(w,O.Last))}if(m(()=>U(s.orientation.value,{vertical(){return f.key===P.ArrowUp?Y(w,O.Previous|O.WrapAround):f.key===P.ArrowDown?Y(w,O.Next|O.WrapAround):ne.Error},horizontal(){return f.key===P.ArrowLeft?Y(w,O.Previous|O.WrapAround):f.key===P.ArrowRight?Y(w,O.Next|O.WrapAround):ne.Error}}))===ne.Success)return f.preventDefault()}let h=e.ref(!1);function v(){var f;h.value||(h.value=!0,!t.disabled&&((f=$(i))==null||f.focus({preventScroll:!0}),s.setSelectedIndex(d.value),Re(()=>{h.value=!1})))}function p(f){f.preventDefault()}let y=ut(e.computed(()=>({as:t.as,type:o.type})),i);return()=>{var f,w;let C={selected:b.value,disabled:(f=t.disabled)!=null?f:!1},{...B}=t,_={ref:i,onKeydown:g,onMousedown:p,onClick:v,id:a,role:"tab",type:y.value,"aria-controls":(w=$(s.panels.value[d.value]))==null?void 0:w.id,"aria-selected":b.value,tabIndex:b.value?0:-1,disabled:t.disabled?!0:void 0};return L({ourProps:_,theirProps:B,slot:C,attrs:o,slots:n,name:"Tab"})}}}),Cl=e.defineComponent({name:"TabPanels",props:{as:{type:[Object,String],default:"div"}},setup(t,{slots:o,attrs:n}){let l=Te("TabPanels");return()=>{let r={selectedIndex:l.selectedIndex.value};return L({theirProps:t,ourProps:{},slot:r,attrs:n,slots:o,name:"TabPanels"})}}}),Sl=e.defineComponent({name:"TabPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null},tabIndex:{type:Number,default:0}},setup(t,{attrs:o,slots:n,expose:l}){var r;let a=(r=t.id)!=null?r:`headlessui-tabs-panel-${G()}`,s=Te("TabPanel"),i=e.ref(null);l({el:i,$el:i}),e.onMounted(()=>s.registerPanel(i)),e.onUnmounted(()=>s.unregisterPanel(i));let u=e.inject(pt),c=e.computed(()=>{if(u.value){let m=u.value.panels.indexOf(a);return m===-1?u.value.panels.push(a)-1:m}return-1}),d=e.computed(()=>{let m=s.panels.value.indexOf(i);return m===-1?c.value:m}),b=e.computed(()=>d.value===s.selectedIndex.value);return()=>{var m;let g={selected:b.value},{tabIndex:h,...v}=t,p={ref:i,id:a,role:"tabpanel","aria-labelledby":(m=$(s.tabs.value[d.value]))==null?void 0:m.id,tabIndex:b.value?h:-1};return!b.value&&t.unmount&&!t.static?e.h(ve,{as:"span","aria-hidden":!0,...p}):L({ourProps:p,theirProps:v,slot:g,attrs:o,slots:n,features:re.Static|re.RenderStrategy,visible:b.value,name:"TabPanel"})}}});function $l(t){let o={called:!1};return(...n)=>{if(!o.called)return o.called=!0,t(...n)}}function Xe(t,...o){t&&o.length>0&&t.classList.add(...o)}function Me(t,...o){t&&o.length>0&&t.classList.remove(...o)}var at=(t=>(t.Finished="finished",t.Cancelled="cancelled",t))(at||{});function Bl(t,o){let n=Be();if(!t)return n.dispose;let{transitionDuration:l,transitionDelay:r}=getComputedStyle(t),[a,s]=[l,r].map(i=>{let[u=0]=i.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,d)=>d-c);return u});return a!==0?n.setTimeout(()=>o("finished"),a+s):o("finished"),n.add(()=>o("cancelled")),n.dispose}function _t(t,o,n,l,r,a){let s=Be(),i=a!==void 0?$l(a):()=>{};return Me(t,...r),Xe(t,...o,...n),s.nextFrame(()=>{Me(t,...n),Xe(t,...l),s.add(Bl(t,u=>(Me(t,...l,...o),Xe(t,...r),i(u))))}),s.add(()=>Me(t,...o,...n,...l,...r)),s.add(()=>i("cancelled")),s.dispose}function ue(t=""){return t.split(/\s+/).filter(o=>o.length>1)}let ft=Symbol("TransitionContext");var _l=(t=>(t.Visible="visible",t.Hidden="hidden",t))(_l||{});function Nl(){return e.inject(ft,null)!==null}function Vl(){let t=e.inject(ft,null);if(t===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return t}function Tl(){let t=e.inject(mt,null);if(t===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return t}let mt=Symbol("NestingContext");function Ue(t){return"children"in t?Ue(t.children):t.value.filter(({state:o})=>o==="visible").length>0}function wo(t){let o=e.ref([]),n=e.ref(!1);e.onMounted(()=>n.value=!0),e.onUnmounted(()=>n.value=!1);function l(a,s=le.Hidden){let i=o.value.findIndex(({id:u})=>u===a);i!==-1&&(U(s,{[le.Unmount](){o.value.splice(i,1)},[le.Hidden](){o.value[i].state="hidden"}}),!Ue(o)&&n.value&&t?.())}function r(a){let s=o.value.find(({id:i})=>i===a);return s?s.state!=="visible"&&(s.state="visible"):o.value.push({id:a,state:"visible"}),()=>l(a,le.Unmount)}return{children:o,register:r,unregister:l}}let Eo=re.RenderStrategy,st=e.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(t,{emit:o,attrs:n,slots:l,expose:r}){let a=e.ref(0);function s(){a.value|=j.Opening,o("beforeEnter")}function i(){a.value&=~j.Opening,o("afterEnter")}function u(){a.value|=j.Closing,o("beforeLeave")}function c(){a.value&=~j.Closing,o("afterLeave")}if(!Nl()&&Ln())return()=>e.h(Co,{...t,onBeforeEnter:s,onAfterEnter:i,onBeforeLeave:u,onAfterLeave:c},l);let d=e.ref(null),b=e.computed(()=>t.unmount?le.Unmount:le.Hidden);r({el:d,$el:d});let{show:m,appear:g}=Vl(),{register:h,unregister:v}=Tl(),p=e.ref(m.value?"visible":"hidden"),y={value:!0},f=G(),w={value:!1},C=wo(()=>{!w.value&&p.value!=="hidden"&&(p.value="hidden",v(f),c())});e.onMounted(()=>{let K=h(f);e.onUnmounted(K)}),e.watchEffect(()=>{if(b.value===le.Hidden&&f){if(m.value&&p.value!=="visible"){p.value="visible";return}U(p.value,{hidden:()=>v(f),visible:()=>h(f)})}});let B=ue(t.enter),_=ue(t.enterFrom),F=ue(t.enterTo),E=ue(t.entered),q=ue(t.leave),ae=ue(t.leaveFrom),be=ue(t.leaveTo);e.onMounted(()=>{e.watchEffect(()=>{if(p.value==="visible"){let K=$(d);if(K instanceof Comment&&K.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function ee(K){let Z=y.value&&!g.value,H=$(d);!H||!(H instanceof HTMLElement)||Z||(w.value=!0,m.value&&s(),m.value||u(),K(m.value?_t(H,B,_,F,E,M=>{w.value=!1,M===at.Finished&&i()}):_t(H,q,ae,be,E,M=>{w.value=!1,M===at.Finished&&(Ue(C)||(p.value="hidden",v(f),c()))})))}return e.onMounted(()=>{e.watch([m],(K,Z,H)=>{ee(H),y.value=!1},{immediate:!0})}),e.provide(mt,C),Jt(e.computed(()=>U(p.value,{visible:j.Open,hidden:j.Closed})|a.value)),()=>{let{appear:K,show:Z,enter:H,enterFrom:M,enterTo:W,entered:S,leave:ke,leaveFrom:we,leaveTo:V,...D}=t,T={ref:d},A={...D,...g.value&&m.value&&_e.isServer?{class:e.normalizeClass([n.class,D.class,...B,..._])}:{}};return L({theirProps:A,ourProps:T,slot:{},slots:l,attrs:n,features:Eo,visible:p.value==="visible",name:"TransitionChild"})}}}),Fl=st,Co=e.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(t,{emit:o,attrs:n,slots:l}){let r=je(),a=e.computed(()=>t.show===null&&r!==null?(r.value&j.Open)===j.Open:t.show);e.watchEffect(()=>{if(![!0,!1].includes(a.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let s=e.ref(a.value?"visible":"hidden"),i=wo(()=>{s.value="hidden"}),u=e.ref(!0),c={show:a,appear:e.computed(()=>t.appear||!u.value)};return e.onMounted(()=>{e.watchEffect(()=>{u.value=!1,a.value?s.value="visible":Ue(i)||(s.value="hidden")})}),e.provide(mt,i),e.provide(ft,c),()=>{let d=Ne(t,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),b={unmount:t.unmount};return L({ourProps:{...b,as:"template"},theirProps:{},slot:{},slots:{...l,default:()=>[e.h(Fl,{onBeforeEnter:()=>o("beforeEnter"),onAfterEnter:()=>o("afterEnter"),onBeforeLeave:()=>o("beforeLeave"),onAfterLeave:()=>o("afterLeave"),...n,...b,...d},l.default)]},attrs:{},features:Eo,visible:s.value==="visible",name:"Transition"})}}});const Al={class:"w-fit min-w-full"},Ll=e.defineComponent({__name:"EvTabs",props:{tabs:{},size:{default:"sm"}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",Al,[e.createVNode(e.unref(kl),null,{default:e.withCtx(()=>[e.createVNode(e.unref(wl),{class:e.normalizeClass(["inline-flex space-x-1 rounded-full p-0.5",t.size==="sm"?"h-6":"h-8"]),style:{background:"linear-gradient(83.73deg, #ffffff -45.99%, #f4ceff 115.78%, #84c7fe 169.71%)"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabs,l=>(e.openBlock(),e.createBlock(e.unref(El),{key:l.label,as:"template"},{default:e.withCtx(({selected:r})=>[e.createElementVNode("div",{class:e.normalizeClass(["cursor-pointer flex items-center rounded-full px-3 transition-all duration-200 focus:outline-none",t.size==="sm"?"text-[12px]":"text-[14px]",r?"bg-white shadow-sm text-[#232525]":"text-[#232525]/60 hover:bg-white/40"])},e.toDisplayString(l.label),3)]),_:2},1024))),128))]),_:1},8,["class"]),e.createVNode(e.unref(Cl),{class:"mt-2"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabs,(l,r)=>(e.openBlock(),e.createBlock(e.unref(Sl),{key:r,class:e.normalizeClass(["rounded-full bg-white p-3","ring-white ring-opacity-60 ring-offset-2 ring-offset-blue-400 focus:outline-none focus:ring-2"])},{default:e.withCtx(()=>[e.renderSlot(o.$slots,`tab-${r}`,{tab:l},()=>[e.createTextVNode(e.toDisplayString(l.content),1)])]),_:2},1024))),128))]),_:3})]),_:3})]))}}),Dl={class:"relative inline-flex cursor-pointer select-none has-disabled:cursor-not-allowed has-disabled:opacity-50"},Pl={class:"h-4 w-4 relative rounded-[4px] border border-[#343434] bg-transparent transition-all peer-checked:bg-[#343434] peer-checked:border-[#343434] peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-[#0052FF] peer-disabled:border-[#D9D9D9] peer-disabled:bg-[#F5F5F5] flex items-center justify-center peer-disabled:hover:border-[#D9D9D9] text-white peer-disabled:text-[#BDBDBD] shrink-0"},Ol={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Il=e.defineComponent({inheritAttrs:!1,__name:"EvCheckbox",props:{modelValue:{type:Boolean,default:!1},modelModifiers:{}},emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(n,l)=>(e.openBlock(),e.createElementBlock("label",Dl,[e.withDirectives(e.createElementVNode("input",e.mergeProps({"onUpdate:modelValue":l[0]||(l[0]=r=>o.value=r),type:"checkbox"},n.$attrs,{class:"peer sr-only"}),null,16),[[e.vModelCheckbox,o.value]]),e.createElementVNode("div",Pl,[e.withDirectives((e.openBlock(),e.createElementBlock("svg",Ol,[...l[1]||(l[1]=[e.createElementVNode("path",{d:"M6.86164 0.128191C7.01677 -0.0360585 7.27587 -0.043451 7.44012 0.111679C7.60437 0.266811 7.61176 0.525904 7.45663 0.690159L3.20646 5.19016C3.1292 5.2719 3.0217 5.31824 2.90923 5.31827C2.81077 5.31827 2.71599 5.28284 2.64209 5.21919L2.61173 5.19016L0.111642 2.54305L0.0844757 2.51109C-0.0418796 2.34674 -0.025816 2.10999 0.128155 1.96457C0.282151 1.81915 0.519406 1.81673 0.676273 1.95232L0.706635 1.98135L2.90896 4.31312L6.86164 0.128191Z",fill:"white"},null,-1)])],512)),[[e.vShow,o.value]])])]))}}),Ml={md:"px-4 py-[22px] rounded-[8px]",sm:"px-4 py-2 rounded-[6px]"},zl=`
61
+ `));let m=Ca((i=f.props)!=null?i:{},u,d),v=o.cloneVNode(f,m,!0);for(let g in m)g.startsWith("on")&&(v.props||(v.props={}),v.props[g]=m[g]);return v}return Array.isArray(c)&&c.length===1?c[0]:c}return o.h(l,Object.assign({},u,d),{default:()=>c})}function Ea(e){return e.flatMap(t=>t.type===o.Fragment?Ea(t.children):[t])}function Ca(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let s in r)s.startsWith("on")&&typeof r[s]=="function"?(n[s]!=null||(n[s]=[]),n[s].push(r[s])):t[s]=r[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](s,...a){let i=n[r];for(let l of i){if(s instanceof Event&&s.defaultPrevented)return;l(s,...a)}}});return t}function Ba(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function en(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function ad(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var at=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(at||{});let lt=o.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:s,...a}=e,i={"aria-hidden":(s&2)===2?!0:(r=a["aria-hidden"])!=null?r:void 0,hidden:(s&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(s&4)===4&&(s&2)!==2&&{display:"none"}}};return q({ourProps:i,theirProps:a,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),Ta=Symbol("Context");var ae=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ae||{});function ld(){return Jn()!==null}function Jn(){return o.inject(Ta,null)}function $a(e){o.provide(Ta,e)}var Y=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Y||{});function ud(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Qe=[];ud(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Qe[0]!==t.target&&(Qe.unshift(t.target),Qe=Qe.filter(n=>n!=null&&n.isConnected),Qe.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Ma(e={},t=null,n=[]){for(let[r,s]of Object.entries(e))Pa(n,Va(t,r),s);return n}function Va(e,t){return e?e+"["+t+"]":t}function Pa(e,t,n){if(Array.isArray(n))for(let[r,s]of n.entries())Pa(e,Va(t,r.toString()),s);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Ma(n,t,e)}function Aa(e){var t,n;let r=(t=e?.form)!=null?t:e.closest("form");if(r){for(let s of r.elements)if(s!==e&&(s.tagName==="INPUT"&&s.type==="submit"||s.tagName==="BUTTON"&&s.type==="submit"||s.nodeName==="INPUT"&&s.type==="image")){s.click();return}(n=r.requestSubmit)==null||n.call(r)}}function La(e,t,n,r){Qt.isServer||o.watchEffect(s=>{e=e??window,e.addEventListener(t,n,r),s(()=>e.removeEventListener(t,n,r))})}var _t=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(_t||{});function cd(){let e=o.ref(0);return Sa("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function Da(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=_(n);r instanceof HTMLElement&&t.add(r)}return t}var Na=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Na||{});let Dt=Object.assign(o.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:o.ref(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let s=o.ref(null);r({el:s,$el:s});let a=o.computed(()=>Ce(s)),i=o.ref(!1);o.onMounted(()=>i.value=!0),o.onUnmounted(()=>i.value=!1),fd({ownerDocument:a},o.computed(()=>i.value&&!!(e.features&16)));let l=hd({ownerDocument:a,container:s,initialFocus:o.computed(()=>e.initialFocus)},o.computed(()=>i.value&&!!(e.features&2)));pd({ownerDocument:a,container:s,containers:e.containers,previousActiveElement:l},o.computed(()=>i.value&&!!(e.features&8)));let u=cd();function c(m){let v=_(s);v&&(g=>g())(()=>{ce(u.value,{[_t.Forwards]:()=>{ye(v,te.First,{skipElements:[m.relatedTarget]})},[_t.Backwards]:()=>{ye(v,te.Last,{skipElements:[m.relatedTarget]})}})})}let d=o.ref(!1);function f(m){m.key==="Tab"&&(d.value=!0,requestAnimationFrame(()=>{d.value=!1}))}function h(m){if(!i.value)return;let v=Da(e.containers);_(s)instanceof HTMLElement&&v.add(_(s));let g=m.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(Ra(v,g)||(d.value?ye(_(s),ce(u.value,{[_t.Forwards]:()=>te.Next,[_t.Backwards]:()=>te.Previous})|te.WrapAround,{relativeTo:m.target}):m.target instanceof HTMLElement&&rt(m.target)))}return()=>{let m={},v={ref:s,onKeydown:f,onFocusout:h},{features:g,initialFocus:p,containers:y,...b}=e;return o.h(o.Fragment,[!!(g&4)&&o.h(lt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:at.Focusable}),q({ourProps:v,theirProps:{...t,...b},slot:m,attrs:t,slots:n,name:"FocusTrap"}),!!(g&4)&&o.h(lt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:at.Focusable})])}}}),{features:Na});function dd(e){let t=o.ref(Qe.slice());return o.watch([e],([n],[r])=>{r===!0&&n===!1?Zn(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Qe.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function fd({ownerDocument:e},t){let n=dd(t);o.onMounted(()=>{o.watchEffect(()=>{var r,s;t.value||((r=e.value)==null?void 0:r.activeElement)===((s=e.value)==null?void 0:s.body)&&rt(n())},{flush:"post"})}),o.onUnmounted(()=>{t.value&&rt(n())})}function hd({ownerDocument:e,container:t,initialFocus:n},r){let s=o.ref(null),a=o.ref(!1);return o.onMounted(()=>a.value=!0),o.onUnmounted(()=>a.value=!1),o.onMounted(()=>{o.watch([t,n,r],(i,l)=>{if(i.every((c,d)=>l?.[d]===c)||!r.value)return;let u=_(t);u&&Zn(()=>{var c,d;if(!a.value)return;let f=_(n),h=(c=e.value)==null?void 0:c.activeElement;if(f){if(f===h){s.value=h;return}}else if(u.contains(h)){s.value=h;return}f?rt(f):ye(u,te.First|te.NoScroll)===Oe.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),s.value=(d=e.value)==null?void 0:d.activeElement})},{immediate:!0,flush:"post"})}),s}function pd({ownerDocument:e,container:t,containers:n,previousActiveElement:r},s){var a;La((a=e.value)==null?void 0:a.defaultView,"focus",i=>{if(!s.value)return;let l=Da(n);_(t)instanceof HTMLElement&&l.add(_(t));let u=r.value;if(!u)return;let c=i.target;c&&c instanceof HTMLElement?Ra(l,c)?(r.value=c,rt(c)):(i.preventDefault(),i.stopPropagation(),rt(u)):rt(r.value)},!0)}function Ra(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function md(e){let t=o.shallowRef(e.getSnapshot());return o.onUnmounted(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function gd(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(s){return r.add(s),()=>r.delete(s)},dispatch(s,...a){let i=t[s].call(n,...a);i&&(n=i,r.forEach(l=>l()))}}}function vd(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,s=r.clientWidth-r.offsetWidth,a=e-s;n.style(r,"paddingRight",`${a}px`)}}}function yd(){return ka()?{before({doc:e,d:t,meta:n}){function r(s){return n.containers.flatMap(a=>a()).some(a=>a.contains(s))}t.microTask(()=>{var s;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=Jt();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let a=(s=window.scrollY)!=null?s:window.pageYOffset,i=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let u=l.target.closest("a");if(!u)return;let{hash:c}=new URL(u.href),d=e.querySelector(c);d&&!r(d)&&(i=d)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(r(l.target)){let u=l.target;for(;u.parentElement&&r(u.parentElement);)u=u.parentElement;t.style(u,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(r(l.target)){let u=l.target;for(;u.parentElement&&u.dataset.headlessuiPortal!==""&&!(u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth);)u=u.parentElement;u.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let u=(l=window.scrollY)!=null?l:window.pageYOffset;a!==u&&window.scrollTo(0,a),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function bd(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function xd(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let et=gd(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Jt(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:xd(n)},s=[yd(),vd(),bd()];s.forEach(({before:a})=>a?.(r)),s.forEach(({after:a})=>a?.(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});et.subscribe(()=>{let e=et.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",s=n.count!==0;(s&&!r||!s&&r)&&et.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&et.dispatch("TEARDOWN",n)}});function wd(e,t,n){let r=md(et),s=o.computed(()=>{let a=e.value?r.value.get(e.value):void 0;return a?a.count>0:!1});return o.watch([e,t],([a,i],[l],u)=>{if(!a||!i)return;et.dispatch("PUSH",a,n);let c=!1;u(()=>{c||(et.dispatch("POP",l??a,n),c=!0)})},{immediate:!0}),s}let uo=new Map,Nt=new Map;function ls(e,t=o.ref(!0)){o.watchEffect(n=>{var r;if(!t.value)return;let s=_(e);if(!s)return;n(function(){var i;if(!s)return;let l=(i=Nt.get(s))!=null?i:1;if(l===1?Nt.delete(s):Nt.set(s,l-1),l!==1)return;let u=uo.get(s);u&&(u["aria-hidden"]===null?s.removeAttribute("aria-hidden"):s.setAttribute("aria-hidden",u["aria-hidden"]),s.inert=u.inert,uo.delete(s))});let a=(r=Nt.get(s))!=null?r:0;Nt.set(s,a+1),a===0&&(uo.set(s,{"aria-hidden":s.getAttribute("aria-hidden"),inert:s.inert}),s.setAttribute("aria-hidden","true"),s.inert=!0)})}function kd({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=o.ref(null),s=Ce(r);function a(){var i,l,u;let c=[];for(let d of e)d!==null&&(d instanceof HTMLElement?c.push(d):"value"in d&&d.value instanceof HTMLElement&&c.push(d.value));if(t!=null&&t.value)for(let d of t.value)c.push(d);for(let d of(i=s?.querySelectorAll("html > *, body > *"))!=null?i:[])d!==document.body&&d!==document.head&&d instanceof HTMLElement&&d.id!=="headlessui-portal-root"&&(d.contains(_(r))||d.contains((u=(l=_(r))==null?void 0:l.getRootNode())==null?void 0:u.host)||c.some(f=>d.contains(f))||c.push(d));return c}return{resolveContainers:a,contains(i){return a().some(l=>l.contains(i))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:o.h(lt,{features:at.Hidden,ref:r})}}}let _a=Symbol("ForcePortalRootContext");function Sd(){return o.inject(_a,!1)}let Lo=o.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return o.provide(_a,e.force),()=>{let{force:r,...s}=e;return q({theirProps:s,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),Fa=Symbol("StackContext");var Do=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Do||{});function Ed(){return o.inject(Fa,()=>{})}function Cd({type:e,enabled:t,element:n,onUpdate:r}){let s=Ed();function a(...i){r?.(...i),s(...i)}o.onMounted(()=>{o.watch(t,(i,l)=>{i?a(0,e,n):l===!0&&a(1,e,n)},{immediate:!0,flush:"sync"})}),o.onUnmounted(()=>{t.value&&a(1,e,n)}),o.provide(Fa,a)}let Oa=Symbol("DescriptionContext");function Bd(){let e=o.inject(Oa,null);if(e===null)throw new Error("Missing parent");return e}function Qn({slot:e=o.ref({}),name:t="Description",props:n={}}={}){let r=o.ref([]);function s(a){return r.value.push(a),()=>{let i=r.value.indexOf(a);i!==-1&&r.value.splice(i,1)}}return o.provide(Oa,{register:s,slot:e,name:t,props:n}),o.computed(()=>r.value.length>0?r.value.join(" "):void 0)}let Td=o.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let s=(r=e.id)!=null?r:`headlessui-description-${he()}`,a=Bd();return o.onMounted(()=>o.onUnmounted(a.register(s))),()=>{let{name:i="Description",slot:l=o.ref({}),props:u={}}=a,{...c}=e,d={...Object.entries(u).reduce((f,[h,m])=>Object.assign(f,{[h]:o.unref(m)}),{}),id:s};return q({ourProps:d,theirProps:c,slot:l.value,attrs:t,slots:n,name:i})}}});function $d(e){let t=Ce(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const No=new WeakMap;function Md(e){var t;return(t=No.get(e))!=null?t:0}function us(e,t){let n=t(Md(e));return n<=0?No.delete(e):No.set(e,n),n}let Ia=o.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=o.ref(null),s=o.computed(()=>Ce(r)),a=Sd(),i=o.inject(ja,null),l=o.ref(a===!0||i==null?$d(r.value):i.resolveTarget());l.value&&us(l.value,h=>h+1);let u=o.ref(!1);o.onMounted(()=>{u.value=!0}),o.watchEffect(()=>{a||i!=null&&(l.value=i.resolveTarget())});let c=o.inject(Ro,null),d=!1,f=o.getCurrentInstance();return o.watch(r,()=>{if(d||!c)return;let h=_(r);h&&(o.onUnmounted(c.register(h),f),d=!0)}),o.onUnmounted(()=>{var h,m;let v=(h=s.value)==null?void 0:h.getElementById("headlessui-portal-root");!v||l.value!==v||us(l.value,g=>g-1)||l.value.children.length>0||(m=l.value.parentElement)==null||m.removeChild(l.value)}),()=>{if(!u.value||l.value===null)return null;let h={ref:r,"data-headlessui-portal":""};return o.h(o.Teleport,{to:l.value},q({ourProps:h,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),Ro=Symbol("PortalParentContext");function Vd(){let e=o.inject(Ro,null),t=o.ref([]);function n(a){return t.value.push(a),e&&e.register(a),()=>r(a)}function r(a){let i=t.value.indexOf(a);i!==-1&&t.value.splice(i,1),e&&e.unregister(a)}let s={register:n,unregister:r,portals:t};return[t,o.defineComponent({name:"PortalWrapper",setup(a,{slots:i}){return o.provide(Ro,s),()=>{var l;return(l=i.default)==null?void 0:l.call(i)}}})]}let ja=Symbol("PortalGroupContext"),Pd=o.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=o.reactive({resolveTarget(){return e.target}});return o.provide(ja,r),()=>{let{target:s,...a}=e;return q({theirProps:a,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var Ad=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ad||{});let _o=Symbol("DialogContext");function tn(e){let t=o.inject(_o,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,tn),n}return t}let mn="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Ld=o.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:mn},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:s}){var a,i;let l=(a=e.id)!=null?a:`headlessui-dialog-${he()}`,u=o.ref(!1);o.onMounted(()=>{u.value=!0});let c=!1,d=o.computed(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(c||(c=!0,console.warn(`Invalid role [${d}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),f=o.ref(0),h=Jn(),m=o.computed(()=>e.open===mn&&h!==null?(h.value&ae.Open)===ae.Open:e.open),v=o.ref(null),g=o.computed(()=>Ce(v));if(s({el:v,$el:v}),!(e.open!==mn||h!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof m.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${m.value===mn?void 0:e.open}`);let p=o.computed(()=>u.value&&m.value?0:1),y=o.computed(()=>p.value===0),b=o.computed(()=>f.value>1),x=o.inject(_o,null)!==null,[w,k]=Vd(),{resolveContainers:S,mainTreeNodeRef:E,MainTreeNode:C}=kd({portals:w,defaultContainers:[o.computed(()=>{var j;return(j=O.panelRef.value)!=null?j:v.value})]}),$=o.computed(()=>b.value?"parent":"leaf"),B=o.computed(()=>h!==null?(h.value&ae.Closing)===ae.Closing:!1),N=o.computed(()=>x||B.value?!1:y.value),T=o.computed(()=>{var j,H,K;return(K=Array.from((H=(j=g.value)==null?void 0:j.querySelectorAll("body > *"))!=null?H:[]).find(G=>G.id==="headlessui-portal-root"?!1:G.contains(_(E))&&G instanceof HTMLElement))!=null?K:null});ls(T,N);let M=o.computed(()=>b.value?!0:y.value),P=o.computed(()=>{var j,H,K;return(K=Array.from((H=(j=g.value)==null?void 0:j.querySelectorAll("[data-headlessui-portal]"))!=null?H:[]).find(G=>G.contains(_(E))&&G instanceof HTMLElement))!=null?K:null});ls(P,M),Cd({type:"Dialog",enabled:o.computed(()=>p.value===0),element:v,onUpdate:(j,H)=>{if(H==="Dialog")return ce(j,{[Do.Add]:()=>f.value+=1,[Do.Remove]:()=>f.value-=1})}});let F=Qn({name:"DialogDescription",slot:o.computed(()=>({open:m.value}))}),R=o.ref(null),O={titleId:R,panelRef:o.ref(null),dialogState:p,setTitleId(j){R.value!==j&&(R.value=j)},close(){t("close",!1)}};o.provide(_o,O);let V=o.computed(()=>!(!y.value||b.value));sd(S,(j,H)=>{j.preventDefault(),O.close(),o.nextTick(()=>H?.focus())},V);let J=o.computed(()=>!(b.value||p.value!==0));La((i=g.value)==null?void 0:i.defaultView,"keydown",j=>{J.value&&(j.defaultPrevented||j.key===Y.Escape&&(j.preventDefault(),j.stopPropagation(),O.close()))});let Q=o.computed(()=>!(B.value||p.value!==0||x));return wd(g,Q,j=>{var H;return{containers:[...(H=j.containers)!=null?H:[],S]}}),o.watchEffect(j=>{if(p.value!==0)return;let H=_(v);if(!H)return;let K=new ResizeObserver(G=>{for(let se of G){let ke=se.target.getBoundingClientRect();ke.x===0&&ke.y===0&&ke.width===0&&ke.height===0&&O.close()}});K.observe(H),j(()=>K.disconnect())}),()=>{let{open:j,initialFocus:H,...K}=e,G={...n,ref:v,id:l,role:d.value,"aria-modal":p.value===0?!0:void 0,"aria-labelledby":R.value,"aria-describedby":F.value},se={open:p.value===0};return o.h(Lo,{force:!0},()=>[o.h(Ia,()=>o.h(Pd,{target:v.value},()=>o.h(Lo,{force:!1},()=>o.h(Dt,{initialFocus:H,containers:S,features:y.value?ce($.value,{parent:Dt.features.RestoreFocus,leaf:Dt.features.All&~Dt.features.FocusLock}):Dt.features.None},()=>o.h(k,{},()=>q({ourProps:G,theirProps:{...K,...n},slot:se,attrs:n,slots:r,visible:p.value===0,features:ze.RenderStrategy|ze.Static,name:"Dialog"})))))),o.h(C)])}}});o.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let s=(r=e.id)!=null?r:`headlessui-dialog-overlay-${he()}`,a=tn("DialogOverlay");function i(l){l.target===l.currentTarget&&(l.preventDefault(),l.stopPropagation(),a.close())}return()=>{let{...l}=e;return q({ourProps:{id:s,"aria-hidden":!0,onClick:i},theirProps:l,slot:{open:a.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}});o.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var s;let a=(s=e.id)!=null?s:`headlessui-dialog-backdrop-${he()}`,i=tn("DialogBackdrop"),l=o.ref(null);return r({el:l,$el:l}),o.onMounted(()=>{if(i.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...u}=e,c={id:a,ref:l,"aria-hidden":!0};return o.h(Lo,{force:!0},()=>o.h(Ia,()=>q({ourProps:c,theirProps:{...t,...u},slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});let Dd=o.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var s;let a=(s=e.id)!=null?s:`headlessui-dialog-panel-${he()}`,i=tn("DialogPanel");r({el:i.panelRef,$el:i.panelRef});function l(u){u.stopPropagation()}return()=>{let{...u}=e,c={id:a,ref:i.panelRef,onClick:l};return q({ourProps:c,theirProps:u,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}}),Nd=o.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let s=(r=e.id)!=null?r:`headlessui-dialog-title-${he()}`,a=tn("DialogTitle");return o.onMounted(()=>{a.setTitleId(s),o.onUnmounted(()=>a.setTitleId(null))}),()=>{let{...i}=e;return q({ourProps:{id:s},theirProps:i,slot:{open:a.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}});var Rd=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Rd||{});let za=Symbol("DisclosureContext");function kr(e){let t=o.inject(za,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,kr),n}return t}let Ka=Symbol("DisclosurePanelContext");function _d(){return o.inject(Ka,null)}let Fd=o.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let r=o.ref(e.defaultOpen?0:1),s=o.ref(null),a=o.ref(null),i={buttonId:o.ref(`headlessui-disclosure-button-${he()}`),panelId:o.ref(`headlessui-disclosure-panel-${he()}`),disclosureState:r,panel:s,button:a,toggleDisclosure(){r.value=ce(r.value,{0:1,1:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(l){i.closeDisclosure();let u=l?l instanceof HTMLElement?l:l.value instanceof HTMLElement?_(l):_(i.button):_(i.button);u?.focus()}};return o.provide(za,i),$a(o.computed(()=>ce(r.value,{0:ae.Open,1:ae.Closed}))),()=>{let{defaultOpen:l,...u}=e,c={open:r.value===0,close:i.close};return q({theirProps:u,ourProps:{},slot:c,slots:t,attrs:n,name:"Disclosure"})}}}),Od=o.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let s=kr("DisclosureButton"),a=_d(),i=o.computed(()=>a===null?!1:a.value===s.panelId.value);o.onMounted(()=>{i.value||e.id!==null&&(s.buttonId.value=e.id)}),o.onUnmounted(()=>{i.value||(s.buttonId.value=null)});let l=o.ref(null);r({el:l,$el:l}),i.value||o.watchEffect(()=>{s.button.value=l.value});let u=wr(o.computed(()=>({as:e.as,type:t.type})),l);function c(){var h;e.disabled||(i.value?(s.toggleDisclosure(),(h=_(s.button))==null||h.focus()):s.toggleDisclosure())}function d(h){var m;if(!e.disabled)if(i.value)switch(h.key){case Y.Space:case Y.Enter:h.preventDefault(),h.stopPropagation(),s.toggleDisclosure(),(m=_(s.button))==null||m.focus();break}else switch(h.key){case Y.Space:case Y.Enter:h.preventDefault(),h.stopPropagation(),s.toggleDisclosure();break}}function f(h){switch(h.key){case Y.Space:h.preventDefault();break}}return()=>{var h;let m={open:s.disclosureState.value===0},{id:v,...g}=e,p=i.value?{ref:l,type:u.value,onClick:c,onKeydown:d}:{id:(h=s.buttonId.value)!=null?h:v,ref:l,type:u.value,"aria-expanded":s.disclosureState.value===0,"aria-controls":s.disclosureState.value===0||_(s.panel)?s.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:c,onKeydown:d,onKeyup:f};return q({ourProps:p,theirProps:g,slot:m,attrs:t,slots:n,name:"DisclosureButton"})}}}),Id=o.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let s=kr("DisclosurePanel");o.onMounted(()=>{e.id!==null&&(s.panelId.value=e.id)}),o.onUnmounted(()=>{s.panelId.value=null}),r({el:s.panel,$el:s.panel}),o.provide(Ka,s.panelId);let a=Jn(),i=o.computed(()=>a!==null?(a.value&ae.Open)===ae.Open:s.disclosureState.value===0);return()=>{var l;let u={open:s.disclosureState.value===0,close:s.close},{id:c,...d}=e,f={id:(l=s.panelId.value)!=null?l:c,ref:s.panel};return q({ourProps:f,theirProps:d,slot:u,attrs:t,slots:n,features:ze.RenderStrategy|ze.Static,visible:i.value,name:"DisclosurePanel"})}}}),Ua=Symbol("LabelContext");function Ha(){let e=o.inject(Ua,null);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Ha),t}return e}function Sr({slot:e={},name:t="Label",props:n={}}={}){let r=o.ref([]);function s(a){return r.value.push(a),()=>{let i=r.value.indexOf(a);i!==-1&&r.value.splice(i,1)}}return o.provide(Ua,{register:s,slot:e,name:t,props:n}),o.computed(()=>r.value.length>0?r.value.join(" "):void 0)}let jd=o.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n}){var r;let s=(r=e.id)!=null?r:`headlessui-label-${he()}`,a=Ha();return o.onMounted(()=>o.onUnmounted(a.register(s))),()=>{let{name:i="Label",slot:l={},props:u={}}=a,{passive:c,...d}=e,f={...Object.entries(u).reduce((h,[m,v])=>Object.assign(h,{[m]:o.unref(v)}),{}),id:s};return c&&(delete f.onClick,delete f.htmlFor,delete d.onClick),q({ourProps:f,theirProps:d,slot:l,attrs:n,slots:t,name:i})}}});function zd(e,t){return e===t}let Ga=Symbol("RadioGroupContext");function Wa(e){let t=o.inject(Ga,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Wa),n}return t}let qa=o.defineComponent({name:"RadioGroup",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>zd},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{emit:t,attrs:n,slots:r,expose:s}){var a;let i=(a=e.id)!=null?a:`headlessui-radiogroup-${he()}`,l=o.ref(null),u=o.ref([]),c=Sr({name:"RadioGroupLabel"}),d=Qn({name:"RadioGroupDescription"});s({el:l,$el:l});let[f,h]=xa(o.computed(()=>e.modelValue),p=>t("update:modelValue",p),o.computed(()=>e.defaultValue)),m={options:u,value:f,disabled:o.computed(()=>e.disabled),firstOption:o.computed(()=>u.value.find(p=>!p.propsRef.disabled)),containsCheckedOption:o.computed(()=>u.value.some(p=>m.compare(o.toRaw(p.propsRef.value),o.toRaw(e.modelValue)))),compare(p,y){if(typeof e.by=="string"){let b=e.by;return p?.[b]===y?.[b]}return e.by(p,y)},change(p){var y;if(e.disabled||m.compare(o.toRaw(f.value),o.toRaw(p)))return!1;let b=(y=u.value.find(x=>m.compare(o.toRaw(x.propsRef.value),o.toRaw(p))))==null?void 0:y.propsRef;return b!=null&&b.disabled?!1:(h(p),!0)},registerOption(p){u.value.push(p),u.value=Je(u.value,y=>y.element)},unregisterOption(p){let y=u.value.findIndex(b=>b.id===p);y!==-1&&u.value.splice(y,1)}};o.provide(Ga,m),id({container:o.computed(()=>_(l)),accept(p){return p.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:p.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(p){p.setAttribute("role","none")}});function v(p){if(!l.value||!l.value.contains(p.target))return;let y=u.value.filter(b=>b.propsRef.disabled===!1).map(b=>b.element);switch(p.key){case Y.Enter:Aa(p.currentTarget);break;case Y.ArrowLeft:case Y.ArrowUp:if(p.preventDefault(),p.stopPropagation(),ye(y,te.Previous|te.WrapAround)===Oe.Success){let b=u.value.find(x=>{var w;return x.element===((w=Ce(l))==null?void 0:w.activeElement)});b&&m.change(b.propsRef.value)}break;case Y.ArrowRight:case Y.ArrowDown:if(p.preventDefault(),p.stopPropagation(),ye(y,te.Next|te.WrapAround)===Oe.Success){let b=u.value.find(x=>{var w;return x.element===((w=Ce(x.element))==null?void 0:w.activeElement)});b&&m.change(b.propsRef.value)}break;case Y.Space:{p.preventDefault(),p.stopPropagation();let b=u.value.find(x=>{var w;return x.element===((w=Ce(x.element))==null?void 0:w.activeElement)});b&&m.change(b.propsRef.value)}break}}let g=o.computed(()=>{var p;return(p=_(l))==null?void 0:p.closest("form")});return o.onMounted(()=>{o.watch([g],()=>{if(!g.value||e.defaultValue===void 0)return;function p(){m.change(e.defaultValue)}return g.value.addEventListener("reset",p),()=>{var y;(y=g.value)==null||y.removeEventListener("reset",p)}},{immediate:!0})}),()=>{let{disabled:p,name:y,form:b,...x}=e,w={ref:l,id:i,role:"radiogroup","aria-labelledby":c.value,"aria-describedby":d.value,onKeydown:v};return o.h(o.Fragment,[...y!=null&&f.value!=null?Ma({[y]:f.value}).map(([k,S])=>o.h(lt,Ba({features:at.Hidden,key:k,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:b,disabled:p,name:k,value:S}))):[],q({ourProps:w,theirProps:{...n,...en(x,["modelValue","defaultValue","by"])},slot:{},attrs:n,slots:r,name:"RadioGroup"})])}}});var Kd=(e=>(e[e.Empty=1]="Empty",e[e.Active=2]="Active",e))(Kd||{});let Ya=o.defineComponent({name:"RadioGroupOption",props:{as:{type:[Object,String],default:"div"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var s;let a=(s=e.id)!=null?s:`headlessui-radiogroup-option-${he()}`,i=Wa("RadioGroupOption"),l=Sr({name:"RadioGroupLabel"}),u=Qn({name:"RadioGroupDescription"}),c=o.ref(null),d=o.computed(()=>({value:e.value,disabled:e.disabled})),f=o.ref(1);r({el:c,$el:c});let h=o.computed(()=>_(c));o.onMounted(()=>i.registerOption({id:a,element:h,propsRef:d})),o.onUnmounted(()=>i.unregisterOption(a));let m=o.computed(()=>{var w;return((w=i.firstOption.value)==null?void 0:w.id)===a}),v=o.computed(()=>i.disabled.value||e.disabled),g=o.computed(()=>i.compare(o.toRaw(i.value.value),o.toRaw(e.value))),p=o.computed(()=>v.value?-1:g.value||!i.containsCheckedOption.value&&m.value?0:-1);function y(){var w;i.change(e.value)&&(f.value|=2,(w=_(c))==null||w.focus())}function b(){f.value|=2}function x(){f.value&=-3}return()=>{let{value:w,disabled:k,...S}=e,E={checked:g.value,disabled:v.value,active:!!(f.value&2)},C={id:a,ref:c,role:"radio","aria-checked":g.value?"true":"false","aria-labelledby":l.value,"aria-describedby":u.value,"aria-disabled":v.value?!0:void 0,tabIndex:p.value,onClick:v.value?void 0:y,onFocus:v.value?void 0:b,onBlur:v.value?void 0:x};return q({ourProps:C,theirProps:S,slot:E,attrs:t,slots:n,name:"RadioGroupOption"})}}}),Fo=jd,Ud=Td,Xa=Symbol("GroupContext");o.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=o.ref(null),s=Sr({name:"SwitchLabel",props:{htmlFor:o.computed(()=>{var i;return(i=r.value)==null?void 0:i.id}),onClick(i){r.value&&(i.currentTarget.tagName==="LABEL"&&i.preventDefault(),r.value.click(),r.value.focus({preventScroll:!0}))}}}),a=Qn({name:"SwitchDescription"});return o.provide(Xa,{switchRef:r,labelledby:s,describedby:a}),()=>q({theirProps:e,ourProps:{},slot:{},slots:t,attrs:n,name:"SwitchGroup"})}});let Hd=o.defineComponent({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(e,{emit:t,attrs:n,slots:r,expose:s}){var a;let i=(a=e.id)!=null?a:`headlessui-switch-${he()}`,l=o.inject(Xa,null),[u,c]=xa(o.computed(()=>e.modelValue),b=>t("update:modelValue",b),o.computed(()=>e.defaultChecked));function d(){c(!u.value)}let f=o.ref(null),h=l===null?f:l.switchRef,m=wr(o.computed(()=>({as:e.as,type:n.type})),h);s({el:h,$el:h});function v(b){b.preventDefault(),d()}function g(b){b.key===Y.Space?(b.preventDefault(),d()):b.key===Y.Enter&&Aa(b.currentTarget)}function p(b){b.preventDefault()}let y=o.computed(()=>{var b,x;return(x=(b=_(h))==null?void 0:b.closest)==null?void 0:x.call(b,"form")});return o.onMounted(()=>{o.watch([y],()=>{if(!y.value||e.defaultChecked===void 0)return;function b(){c(e.defaultChecked)}return y.value.addEventListener("reset",b),()=>{var x;(x=y.value)==null||x.removeEventListener("reset",b)}},{immediate:!0})}),()=>{let{name:b,value:x,form:w,tabIndex:k,...S}=e,E={checked:u.value},C={id:i,ref:h,role:"switch",type:m.value,tabIndex:k===-1?0:k,"aria-checked":u.value,"aria-labelledby":l?.labelledby.value,"aria-describedby":l?.describedby.value,onClick:v,onKeyup:g,onKeypress:p};return o.h(o.Fragment,[b!=null&&u.value!=null?o.h(lt,Ba({features:at.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:u.value,form:w,disabled:S.disabled,name:b,value:x})):null,q({ourProps:C,theirProps:{...n,...en(S,["modelValue","defaultChecked"])},slot:E,attrs:n,slots:r,name:"Switch"})])}}}),Gd=o.defineComponent({props:{onFocus:{type:Function,required:!0}},setup(e){let t=o.ref(!0);return()=>t.value?o.h(lt,{as:"button",type:"button",features:at.Focusable,onFocus(n){n.preventDefault();let r,s=50;function a(){var i;if(s--<=0){r&&cancelAnimationFrame(r);return}if((i=e.onFocus)!=null&&i.call(e)){t.value=!1,cancelAnimationFrame(r);return}r=requestAnimationFrame(a)}r=requestAnimationFrame(a)}}):null}});var Wd=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Wd||{}),qd=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(qd||{});let Za=Symbol("TabsContext");function nn(e){let t=o.inject(Za,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <TabGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,nn),n}return t}let Er=Symbol("TabsSSRContext"),Yd=o.defineComponent({name:"TabGroup",emits:{change:e=>!0},props:{as:{type:[Object,String],default:"template"},selectedIndex:{type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){var s;let a=o.ref((s=e.selectedIndex)!=null?s:e.defaultIndex),i=o.ref([]),l=o.ref([]),u=o.computed(()=>e.selectedIndex!==null),c=o.computed(()=>u.value?e.selectedIndex:a.value);function d(g){var p;let y=Je(f.tabs.value,_),b=Je(f.panels.value,_),x=y.filter(w=>{var k;return!((k=_(w))!=null&&k.hasAttribute("disabled"))});if(g<0||g>y.length-1){let w=ce(a.value===null?0:Math.sign(g-a.value),{[-1]:()=>1,0:()=>ce(Math.sign(g),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),k=ce(w,{0:()=>y.indexOf(x[0]),1:()=>y.indexOf(x[x.length-1])});k!==-1&&(a.value=k),f.tabs.value=y,f.panels.value=b}else{let w=y.slice(0,g),k=[...y.slice(g),...w].find(E=>x.includes(E));if(!k)return;let S=(p=y.indexOf(k))!=null?p:f.selectedIndex.value;S===-1&&(S=f.selectedIndex.value),a.value=S,f.tabs.value=y,f.panels.value=b}}let f={selectedIndex:o.computed(()=>{var g,p;return(p=(g=a.value)!=null?g:e.defaultIndex)!=null?p:null}),orientation:o.computed(()=>e.vertical?"vertical":"horizontal"),activation:o.computed(()=>e.manual?"manual":"auto"),tabs:i,panels:l,setSelectedIndex(g){c.value!==g&&r("change",g),u.value||d(g)},registerTab(g){var p;if(i.value.includes(g))return;let y=i.value[a.value];if(i.value.push(g),i.value=Je(i.value,_),!u.value){let b=(p=i.value.indexOf(y))!=null?p:a.value;b!==-1&&(a.value=b)}},unregisterTab(g){let p=i.value.indexOf(g);p!==-1&&i.value.splice(p,1)},registerPanel(g){l.value.includes(g)||(l.value.push(g),l.value=Je(l.value,_))},unregisterPanel(g){let p=l.value.indexOf(g);p!==-1&&l.value.splice(p,1)}};o.provide(Za,f);let h=o.ref({tabs:[],panels:[]}),m=o.ref(!1);o.onMounted(()=>{m.value=!0}),o.provide(Er,o.computed(()=>m.value?null:h.value));let v=o.computed(()=>e.selectedIndex);return o.onMounted(()=>{o.watch([v],()=>{var g;return d((g=e.selectedIndex)!=null?g:e.defaultIndex)},{immediate:!0})}),o.watchEffect(()=>{if(!u.value||c.value==null||f.tabs.value.length<=0)return;let g=Je(f.tabs.value,_);g.some((p,y)=>_(f.tabs.value[y])!==_(p))&&f.setSelectedIndex(g.findIndex(p=>_(p)===_(f.tabs.value[c.value])))}),()=>{let g={selectedIndex:a.value};return o.h(o.Fragment,[i.value.length<=0&&o.h(Gd,{onFocus:()=>{for(let p of i.value){let y=_(p);if(y?.tabIndex===0)return y.focus(),!0}return!1}}),q({theirProps:{...n,...en(e,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:g,slots:t,attrs:n,name:"TabGroup"})])}}}),Xd=o.defineComponent({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n}){let r=nn("TabList");return()=>{let s={selectedIndex:r.selectedIndex.value},a={role:"tablist","aria-orientation":r.orientation.value};return q({ourProps:a,theirProps:e,slot:s,attrs:t,slots:n,name:"TabList"})}}}),Zd=o.defineComponent({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var s;let a=(s=e.id)!=null?s:`headlessui-tabs-tab-${he()}`,i=nn("Tab"),l=o.ref(null);r({el:l,$el:l}),o.onMounted(()=>i.registerTab(l)),o.onUnmounted(()=>i.unregisterTab(l));let u=o.inject(Er),c=o.computed(()=>{if(u.value){let b=u.value.tabs.indexOf(a);return b===-1?u.value.tabs.push(a)-1:b}return-1}),d=o.computed(()=>{let b=i.tabs.value.indexOf(l);return b===-1?c.value:b}),f=o.computed(()=>d.value===i.selectedIndex.value);function h(b){var x;let w=b();if(w===Oe.Success&&i.activation.value==="auto"){let k=(x=Ce(l))==null?void 0:x.activeElement,S=i.tabs.value.findIndex(E=>_(E)===k);S!==-1&&i.setSelectedIndex(S)}return w}function m(b){let x=i.tabs.value.map(w=>_(w)).filter(Boolean);if(b.key===Y.Space||b.key===Y.Enter){b.preventDefault(),b.stopPropagation(),i.setSelectedIndex(d.value);return}switch(b.key){case Y.Home:case Y.PageUp:return b.preventDefault(),b.stopPropagation(),h(()=>ye(x,te.First));case Y.End:case Y.PageDown:return b.preventDefault(),b.stopPropagation(),h(()=>ye(x,te.Last))}if(h(()=>ce(i.orientation.value,{vertical(){return b.key===Y.ArrowUp?ye(x,te.Previous|te.WrapAround):b.key===Y.ArrowDown?ye(x,te.Next|te.WrapAround):Oe.Error},horizontal(){return b.key===Y.ArrowLeft?ye(x,te.Previous|te.WrapAround):b.key===Y.ArrowRight?ye(x,te.Next|te.WrapAround):Oe.Error}}))===Oe.Success)return b.preventDefault()}let v=o.ref(!1);function g(){var b;v.value||(v.value=!0,!e.disabled&&((b=_(l))==null||b.focus({preventScroll:!0}),i.setSelectedIndex(d.value),Zn(()=>{v.value=!1})))}function p(b){b.preventDefault()}let y=wr(o.computed(()=>({as:e.as,type:t.type})),l);return()=>{var b,x;let w={selected:f.value,disabled:(b=e.disabled)!=null?b:!1},{...k}=e,S={ref:l,onKeydown:m,onMousedown:p,onClick:g,id:a,role:"tab",type:y.value,"aria-controls":(x=_(i.panels.value[d.value]))==null?void 0:x.id,"aria-selected":f.value,tabIndex:f.value?0:-1,disabled:e.disabled?!0:void 0};return q({ourProps:S,theirProps:k,slot:w,attrs:t,slots:n,name:"Tab"})}}}),Jd=o.defineComponent({name:"TabPanels",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=nn("TabPanels");return()=>{let s={selectedIndex:r.selectedIndex.value};return q({theirProps:e,ourProps:{},slot:s,attrs:n,slots:t,name:"TabPanels"})}}}),Qd=o.defineComponent({name:"TabPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null},tabIndex:{type:Number,default:0}},setup(e,{attrs:t,slots:n,expose:r}){var s;let a=(s=e.id)!=null?s:`headlessui-tabs-panel-${he()}`,i=nn("TabPanel"),l=o.ref(null);r({el:l,$el:l}),o.onMounted(()=>i.registerPanel(l)),o.onUnmounted(()=>i.unregisterPanel(l));let u=o.inject(Er),c=o.computed(()=>{if(u.value){let h=u.value.panels.indexOf(a);return h===-1?u.value.panels.push(a)-1:h}return-1}),d=o.computed(()=>{let h=i.panels.value.indexOf(l);return h===-1?c.value:h}),f=o.computed(()=>d.value===i.selectedIndex.value);return()=>{var h;let m={selected:f.value},{tabIndex:v,...g}=e,p={ref:l,id:a,role:"tabpanel","aria-labelledby":(h=_(i.tabs.value[d.value]))==null?void 0:h.id,tabIndex:f.value?v:-1};return!f.value&&e.unmount&&!e.static?o.h(lt,{as:"span","aria-hidden":!0,...p}):q({ourProps:p,theirProps:g,slot:m,attrs:t,slots:n,features:ze.Static|ze.RenderStrategy,visible:f.value,name:"TabPanel"})}}});function ef(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function co(e,...t){e&&t.length>0&&e.classList.add(...t)}function gn(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Oo=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Oo||{});function tf(e,t){let n=Jt();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:s}=getComputedStyle(e),[a,i]=[r,s].map(l=>{let[u=0]=l.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,d)=>d-c);return u});return a!==0?n.setTimeout(()=>t("finished"),a+i):t("finished"),n.add(()=>t("cancelled")),n.dispose}function cs(e,t,n,r,s,a){let i=Jt(),l=a!==void 0?ef(a):()=>{};return gn(e,...s),co(e,...t,...n),i.nextFrame(()=>{gn(e,...n),co(e,...r),i.add(tf(e,u=>(gn(e,...r,...t),co(e,...s),l(u))))}),i.add(()=>gn(e,...t,...n,...r,...s)),i.add(()=>l("cancelled")),i.dispose}function We(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Cr=Symbol("TransitionContext");var nf=(e=>(e.Visible="visible",e.Hidden="hidden",e))(nf||{});function of(){return o.inject(Cr,null)!==null}function rf(){let e=o.inject(Cr,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function sf(){let e=o.inject(Br,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Br=Symbol("NestingContext");function eo(e){return"children"in e?eo(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function Ja(e){let t=o.ref([]),n=o.ref(!1);o.onMounted(()=>n.value=!0),o.onUnmounted(()=>n.value=!1);function r(a,i=Ie.Hidden){let l=t.value.findIndex(({id:u})=>u===a);l!==-1&&(ce(i,{[Ie.Unmount](){t.value.splice(l,1)},[Ie.Hidden](){t.value[l].state="hidden"}}),!eo(t)&&n.value&&e?.())}function s(a){let i=t.value.find(({id:l})=>l===a);return i?i.state!=="visible"&&(i.state="visible"):t.value.push({id:a,state:"visible"}),()=>r(a,Ie.Unmount)}return{children:t,register:s,unregister:r}}let Qa=ze.RenderStrategy,Io=o.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:s}){let a=o.ref(0);function i(){a.value|=ae.Opening,t("beforeEnter")}function l(){a.value&=~ae.Opening,t("afterEnter")}function u(){a.value|=ae.Closing,t("beforeLeave")}function c(){a.value&=~ae.Closing,t("afterLeave")}if(!of()&&ld())return()=>o.h(el,{...e,onBeforeEnter:i,onAfterEnter:l,onBeforeLeave:u,onAfterLeave:c},r);let d=o.ref(null),f=o.computed(()=>e.unmount?Ie.Unmount:Ie.Hidden);s({el:d,$el:d});let{show:h,appear:m}=rf(),{register:v,unregister:g}=sf(),p=o.ref(h.value?"visible":"hidden"),y={value:!0},b=he(),x={value:!1},w=Ja(()=>{!x.value&&p.value!=="hidden"&&(p.value="hidden",g(b),c())});o.onMounted(()=>{let M=v(b);o.onUnmounted(M)}),o.watchEffect(()=>{if(f.value===Ie.Hidden&&b){if(h.value&&p.value!=="visible"){p.value="visible";return}ce(p.value,{hidden:()=>g(b),visible:()=>v(b)})}});let k=We(e.enter),S=We(e.enterFrom),E=We(e.enterTo),C=We(e.entered),$=We(e.leave),B=We(e.leaveFrom),N=We(e.leaveTo);o.onMounted(()=>{o.watchEffect(()=>{if(p.value==="visible"){let M=_(d);if(M instanceof Comment&&M.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function T(M){let P=y.value&&!m.value,F=_(d);!F||!(F instanceof HTMLElement)||P||(x.value=!0,h.value&&i(),h.value||u(),M(h.value?cs(F,k,S,E,C,R=>{x.value=!1,R===Oo.Finished&&l()}):cs(F,$,B,N,C,R=>{x.value=!1,R===Oo.Finished&&(eo(w)||(p.value="hidden",g(b),c()))})))}return o.onMounted(()=>{o.watch([h],(M,P,F)=>{T(F),y.value=!1},{immediate:!0})}),o.provide(Br,w),$a(o.computed(()=>ce(p.value,{visible:ae.Open,hidden:ae.Closed})|a.value)),()=>{let{appear:M,show:P,enter:F,enterFrom:R,enterTo:O,entered:V,leave:J,leaveFrom:Q,leaveTo:j,...H}=e,K={ref:d},G={...H,...m.value&&h.value&&Qt.isServer?{class:o.normalizeClass([n.class,H.class,...k,...S])}:{}};return q({theirProps:G,ourProps:K,slot:{},slots:r,attrs:n,features:Qa,visible:p.value==="visible",name:"TransitionChild"})}}}),af=Io,el=o.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let s=Jn(),a=o.computed(()=>e.show===null&&s!==null?(s.value&ae.Open)===ae.Open:e.show);o.watchEffect(()=>{if(![!0,!1].includes(a.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let i=o.ref(a.value?"visible":"hidden"),l=Ja(()=>{i.value="hidden"}),u=o.ref(!0),c={show:a,appear:o.computed(()=>e.appear||!u.value)};return o.onMounted(()=>{o.watchEffect(()=>{u.value=!1,a.value?i.value="visible":eo(l)||(i.value="hidden")})}),o.provide(Br,l),o.provide(Cr,c),()=>{let d=en(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),f={unmount:e.unmount};return q({ourProps:{...f,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[o.h(af,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...f,...d},r.default)]},attrs:{},features:Qa,visible:i.value==="visible",name:"Transition"})}}});const lf={class:"w-fit min-w-full"},uf=o.defineComponent({__name:"EvTabs",props:{tabs:{},size:{default:"sm"}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",lf,[o.createVNode(o.unref(Yd),null,{default:o.withCtx(()=>[o.createVNode(o.unref(Xd),{class:o.normalizeClass(["inline-flex space-x-1 rounded-full p-0.5",e.size==="sm"?"h-6":"h-8"]),style:{background:"var(--gradient-control)"}},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.tabs,r=>(o.openBlock(),o.createBlock(o.unref(Zd),{key:r.label,as:"template"},{default:o.withCtx(({selected:s})=>[o.createElementVNode("div",{class:o.normalizeClass(["cursor-pointer flex items-center rounded-full px-3 transition-all duration-200 focus:outline-none",e.size==="sm"?"text-[12px]":"text-[14px]",s?"bg-white shadow-sm text-foreground":"text-foreground/60 hover:bg-white/40"])},o.toDisplayString(r.label),3)]),_:2},1024))),128))]),_:1},8,["class"]),o.createVNode(o.unref(Jd),{class:"mt-2"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.tabs,(r,s)=>(o.openBlock(),o.createBlock(o.unref(Qd),{key:s,class:o.normalizeClass(["rounded-full bg-white p-3","ring-white ring-opacity-60 ring-offset-2 ring-offset-blue-400 focus:outline-none focus:ring-2"])},{default:o.withCtx(()=>[o.renderSlot(t.$slots,`tab-${s}`,{tab:r},()=>[o.createTextVNode(o.toDisplayString(r.content),1)])]),_:2},1024))),128))]),_:3})]),_:3})]))}}),cf={class:"relative inline-flex cursor-pointer select-none has-disabled:cursor-not-allowed has-disabled:opacity-50"},df={class:"h-4 w-4 relative rounded-[4px] border border-foreground bg-transparent transition-all peer-checked:bg-foreground peer-checked:border-foreground peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-accent-blue peer-disabled:border-gray-medium peer-disabled:bg-disabled-bg flex items-center justify-center peer-disabled:hover:border-gray-medium text-white peer-disabled:text-gray-dark shrink-0"},ff={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hf=o.defineComponent({inheritAttrs:!1,__name:"EvCheckbox",props:{modelValue:{type:Boolean,default:!1},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue");return(n,r)=>(o.openBlock(),o.createElementBlock("label",cf,[o.withDirectives(o.createElementVNode("input",o.mergeProps({"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),type:"checkbox"},n.$attrs,{class:"peer sr-only"}),null,16),[[o.vModelCheckbox,t.value]]),o.createElementVNode("div",df,[o.withDirectives((o.openBlock(),o.createElementBlock("svg",ff,[...r[1]||(r[1]=[o.createElementVNode("path",{d:"M6.86164 0.128191C7.01677 -0.0360585 7.27587 -0.043451 7.44012 0.111679C7.60437 0.266811 7.61176 0.525904 7.45663 0.690159L3.20646 5.19016C3.1292 5.2719 3.0217 5.31824 2.90923 5.31827C2.81077 5.31827 2.71599 5.28284 2.64209 5.21919L2.61173 5.19016L0.111642 2.54305L0.0844757 2.51109C-0.0418796 2.34674 -0.025816 2.10999 0.128155 1.96457C0.282151 1.81915 0.519406 1.81673 0.676273 1.95232L0.706635 1.98135L2.90896 4.31312L6.86164 0.128191Z",fill:"white"},null,-1)])],512)),[[o.vShow,t.value]])])]))}}),pf={md:"px-4 py-[22px] rounded-[8px]",sm:"px-4 py-2 rounded-[6px]"},mf=`
34
62
  w-full cursor-text
35
63
  flex items-center
36
64
  gap-4
@@ -39,7 +67,7 @@
39
67
  outline-none
40
68
  transition-colors
41
69
  focus-within:border-[#888A8D]
42
- `,Rl=`
70
+ `,gf=`
43
71
  flex-1
44
72
  bg-transparent
45
73
  border-0 outline-none
@@ -47,5 +75,5 @@
47
75
  !leading-[12px]
48
76
  text-[14px]
49
77
  disabled:cursor-not-allowed
50
- `,jl={class:"w-full"},Hl={class:"relative"},Ul=["data-state","data-disabled"],Gl={key:0,class:"flex items-center text-[#8C8C8C]"},Wl=["id","name","type","placeholder","disabled","required","aria-invalid","aria-required","aria-describedby","value"],ql={key:1,class:"flex items-center text-[#8C8C8C]"},Kl=["id"],Yl=["id"],So=e.defineComponent({inheritAttrs:!1,__name:"EvInput",props:{modelValue:{},placeholder:{},class:{},inputClass:{},type:{default:"text"},id:{},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{type:Boolean},errorMessage:{},helperText:{},size:{default:"md"}},emits:["update:modelValue","input","change","focus","blur"],setup(t,{expose:o,emit:n}){const l=t,r=n,a=e.useSlots(),s=e.computed(()=>!!a.prefix),i=e.computed(()=>!!a.suffix),u=e.ref(null),c=e.computed(()=>l.error?"border border-[#E53935]":""),d=e.computed(()=>l.disabled?"bg-[#F2F2F2] border-[#E4E4E4] border cursor-not-allowed":""),b=e.computed(()=>Ml[l.size]),m=e.computed(()=>l.class??""),g=e.computed(()=>X(zl,b.value,m.value,c.value,d.value)),h=`ev-input-${Math.random().toString(36).slice(2,9)}`,v=e.computed(()=>l.id??h),p=e.computed(()=>l.error&&l.errorMessage?`${v.value}-error`:l.helperText?`${v.value}-help`:void 0);function y(B){const _=B.target,F=l.type==="number"&&_.value!==""?Number(_.value):_.value;r("update:modelValue",F),r("input",B)}const f=()=>{l.disabled||u.value?.focus()};return o({focus:f,blur:()=>u.value?.blur(),select:()=>u.value?.select()}),(B,_)=>(e.openBlock(),e.createElementBlock("div",jl,[e.createElementVNode("div",Hl,[e.createElementVNode("div",{class:e.normalizeClass(g.value),onClick:f,"data-state":t.error?"error":"normal","data-disabled":t.disabled||null},[s.value?(e.openBlock(),e.createElementBlock("div",Gl,[e.renderSlot(B.$slots,"prefix")])):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({ref_key:"inputRef",ref:u},B.$attrs,{id:v.value,name:t.name,type:t.type,placeholder:t.placeholder,disabled:t.disabled,required:t.required,"aria-invalid":t.error?"true":"false","aria-required":t.required?"true":"false","aria-describedby":p.value,value:t.modelValue,class:e.unref(X)(e.unref(Rl),t.inputClass),onInput:y,onChange:_[0]||(_[0]=F=>B.$emit("change",F)),onFocus:_[1]||(_[1]=F=>B.$emit("focus",F)),onBlur:_[2]||(_[2]=F=>B.$emit("blur",F))}),null,16,Wl),i.value?(e.openBlock(),e.createElementBlock("div",ql,[e.renderSlot(B.$slots,"suffix")])):e.createCommentVNode("",!0)],10,Ul)]),t.error&&t.errorMessage?(e.openBlock(),e.createElementBlock("p",{key:0,id:`${v.value}-error`,class:"mt-2 px-3 text-xs text-[#E53935]",role:"alert"},e.toDisplayString(t.errorMessage),9,Kl)):t.helperText?(e.openBlock(),e.createElementBlock("p",{key:1,id:`${v.value}-help`,class:"mt-2 px-3 text-xs text-[#6F6F6F]"},e.toDisplayString(t.helperText),9,Yl)):e.createCommentVNode("",!0)]))}}),Xl=e.defineComponent({__name:"EvSearch",props:e.mergeModels({placeholder:{},disabled:{type:Boolean,default:!1},size:{default:"md"},id:{},name:{},class:{},inputClass:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=t,n=e.useModel(t,"modelValue"),l=e.ref(null),r=e.computed(()=>n.value?.length),a=e.ref(!1);function s(){a.value=!0}function i(){a.value=!1}function u(){o.disabled||(n.value="",l.value?.focus?.())}return(c,d)=>(e.openBlock(),e.createBlock(e.unref(So),e.mergeProps({ref_key:"evInputRef",ref:l},c.$attrs,{modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=b=>n.value=b),placeholder:t.placeholder,disabled:t.disabled,size:t.size,id:t.id,name:t.name,class:e.unref(X)("bg-white/70 border-[#F1F1F1] flex gap-3 px-3 py-[10px]",o.class),inputClass:t.inputClass,onFocus:s,onBlur:i}),{prefix:e.withCtx(()=>[e.createVNode(I._sfc_main$1,{class:"w-4 h-4",color:a.value?"#343434":"#888A8D","aria-hidden":"true"},null,8,["color"])]),suffix:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"inline-flex items-center justify-center text-[#8C8C8C] hover:opacity-80 transition-opacity cursor-pointer","aria-label":"Clear search",onClick:e.withModifiers(u,["stop"])},[e.createVNode(I._sfc_main,{class:"w-[10px] h-[10px]","aria-hidden":"true"})])):e.createCommentVNode("",!0)]),_:1},16,["modelValue","placeholder","disabled","size","id","name","class","inputClass"]))}}),Jl=e.defineComponent({__name:"EvToggle",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(n,l)=>(e.openBlock(),e.createBlock(e.unref(gl),{modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=r=>o.value=r),"aria-label":"Toggle",class:e.normalizeClass([o.value?"bg-[linear-gradient(83.73deg,_#ffffff_-68.67%,_#f4ceff_95.15%,_#84c7fe_263.27%)]":"bg-[#E3E3E3]","relative inline-flex h-6 w-11 items-center rounded-full px-[2px] focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed"])},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass([o.value?"translate-x-[21px]":"","inline-block h-[19px] w-[19px] transform rounded-full bg-white transition"])},null,2)]),_:1},8,["modelValue","class"]))}}),Zl=e.defineComponent({__name:"EvRadioGroup",props:{modelValue:{},disabled:{type:Boolean},name:{}},emits:["update:modelValue"],setup(t){return(o,n)=>(e.openBlock(),e.createBlock(e.unref(ho),{"model-value":t.modelValue,"onUpdate:modelValue":n[0]||(n[0]=l=>o.$emit("update:modelValue",l)),disabled:t.disabled,name:t.name},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},8,["model-value","disabled","name"]))}}),Ql={class:"flex w-full items-center justify-between"},er={class:"flex items-center"},tr={class:"text-sm"},or={class:e.normalizeClass(["shrink-0 flex items-center justify-center rounded-full border transition-all duration-200","h-4 w-4","border-[#343434]"])},nr={class:"h-2 w-2 rounded-full bg-[#343434]"},lr=e.defineComponent({__name:"EvRadioOption",props:{value:{},disabled:{type:Boolean},as:{default:"div"}},setup(t){return(o,n)=>(e.openBlock(),e.createBlock(e.unref(yo),{value:t.value,disabled:t.disabled,as:"template"},{default:e.withCtx(({checked:l,active:r,disabled:a})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.as),{class:e.normalizeClass(["relative flex cursor-pointer focus:outline-none transition-all duration-200",a?"opacity-50 cursor-not-allowed":""])},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{checked:l,active:r,disabled:a},()=>[e.createElementVNode("div",Ql,[e.createElementVNode("div",er,[e.createElementVNode("div",tr,[e.renderSlot(o.$slots,"label",{checked:l,disabled:a}),e.renderSlot(o.$slots,"description",{checked:l,disabled:a})])]),e.createElementVNode("div",or,[e.withDirectives(e.createElementVNode("div",nr,null,512),[[e.vShow,l]])])])])]),_:2},1032,["class"]))]),_:3},8,["value","disabled"]))}}),rr=e.defineComponent({__name:"EvRadioLabel",props:{as:{default:"p"}},setup(t){return(o,n)=>(e.openBlock(),e.createBlock(e.unref(rt),{as:t.as},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},8,["as"]))}}),ar={class:"space-y-2"},sr={class:"flex w-full items-center justify-between"},ir={class:"flex items-center"},ur={class:"text-sm"},cr={class:e.normalizeClass(["shrink-0 flex items-center justify-center rounded-full border transition-all duration-200","h-4 w-4","border-[#343434]"])},dr={class:"h-2 w-2 rounded-full bg-[#343434]"},pr=e.defineComponent({__name:"EvRadio",props:{modelValue:{},options:{},label:{},disabled:{type:Boolean},name:{}},emits:["update:modelValue","change"],setup(t,{emit:o}){const n=t,l=o,r=e.computed({get:()=>n.modelValue,set:a=>{l("update:modelValue",a),l("change",a)}});return(a,s)=>(e.openBlock(),e.createBlock(e.unref(ho),{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=i=>r.value=i),disabled:t.disabled,name:t.name,class:"space-y-2"},{default:e.withCtx(()=>[t.label?(e.openBlock(),e.createBlock(e.unref(rt),{key:0,class:"text-sm font-medium text-[#232525]"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",ar,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,i=>(e.openBlock(),e.createBlock(e.unref(yo),{key:i.value,value:i.value,disabled:i.disabled??!1,as:"template"},{default:e.withCtx(({checked:u,disabled:c})=>[e.createElementVNode("div",{class:e.normalizeClass(["relative flex cursor-pointer rounded-lg px-3 py-2 focus:outline-none transition-all duration-200",c?"opacity-50 cursor-not-allowed":"hover:bg-gray-50"])},[e.createElementVNode("div",sr,[e.createElementVNode("div",ir,[e.createElementVNode("div",ur,[e.createVNode(e.unref(rt),{as:"p",class:e.normalizeClass(u?"text-[#232525] font-medium":"text-[#232525]/60")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.label||i.value),1)]),_:2},1032,["class"]),i.description?(e.openBlock(),e.createBlock(e.unref(bl),{key:0,as:"span",class:e.normalizeClass(u?"text-[#232525]/80":"text-[#232525]/40")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.description),1)]),_:2},1032,["class"])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",cr,[e.withDirectives(e.createElementVNode("div",dr,null,512),[[e.vShow,u]])])])],2)]),_:2},1032,["value","disabled"]))),128))])]),_:1},8,["modelValue","disabled","name"]))}}),fr={class:"w-[362px] sm:w-[447px] space-y-6 bg-white rounded-[20px] py-5 px-[29.3px]"},mr={key:0,class:"flex w-full flex-col gap-3 items-center text-center"},vr={key:0,class:"text-[32px] font-medium"},br={key:0,class:"text-[14px]"},gr={key:0,class:"flex flex-col gap-[14.4px]"},hr={key:1,class:"text-center"},yr=e.defineComponent({__name:"CredentialForm",props:{title:{},description:{}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",fr,[e.renderSlot(o.$slots,"header",{},()=>[t.title||t.description||o.$slots.title||o.$slots.description?(e.openBlock(),e.createElementBlock("div",mr,[e.renderSlot(o.$slots,"title",{},()=>[t.title?(e.openBlock(),e.createElementBlock("span",vr,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0)]),e.renderSlot(o.$slots,"description",{},()=>[t.description?(e.openBlock(),e.createElementBlock("span",br,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),o.$slots.default?(e.openBlock(),e.createElementBlock("div",gr,[e.renderSlot(o.$slots,"default")])):e.createCommentVNode("",!0),o.$slots.footer?(e.openBlock(),e.createElementBlock("div",hr,[e.renderSlot(o.$slots,"footer")])):e.createCommentVNode("",!0)]))}}),xr={class:"flex justify-between items-center"},kr={class:"logo"},wr={key:0,class:"flex items-center gap-4"},Er=["href"],Cr=e.defineComponent({__name:"EvHeader",props:{items:{}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("nav",xr,[e.createElementVNode("div",kr,[e.renderSlot(o.$slots,"logo",{},()=>[e.createVNode(I.EvixLogo)])]),e.createElementVNode("div",null,[e.renderSlot(o.$slots,"navigation-buttons",{},()=>[t.items?.length?(e.openBlock(),e.createElementBlock("ul",wr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,r)=>(e.openBlock(),e.createElementBlock("li",{key:r},[e.createElementVNode("a",{href:l.href},[e.createVNode(e.unref(he),{variant:l.variant,size:l.size,class:e.normalizeClass(l.class)},{default:e.withCtx(()=>[l.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon),{key:0})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.label),1)],64))]),_:2},1032,["variant","size","class"])],8,Er)]))),128))])):e.createCommentVNode("",!0)])])]))}}),Sr={class:"ev-accordion__surface"},$r={class:"ev-accordion__button-content"},Br={class:"ev-accordion__icon"},_r={class:"ev-accordion__panel-content"},Nr=e.defineComponent({__name:"EvAccordion",setup(t){return(o,n)=>(e.openBlock(),e.createBlock(e.unref(cl),{as:"div",class:"ev-accordion"},{default:e.withCtx(({open:l})=>[e.createElementVNode("div",Sr,[e.createVNode(e.unref(dl),{class:"ev-accordion__button"},{default:e.withCtx(()=>[e.createElementVNode("span",$r,[e.renderSlot(o.$slots,"button",{open:l},void 0,!0)]),e.createElementVNode("span",Br,[e.renderSlot(o.$slots,"icon",{open:l},()=>[l?(e.openBlock(),e.createBlock(I.MinusIcon,{key:0})):(e.openBlock(),e.createBlock(I.PlusIcon,{key:1}))],!0)])]),_:2},1024),e.createVNode(e.unref(pl),{class:"ev-accordion__panel"},{default:e.withCtx(()=>[e.createElementVNode("div",_r,[e.renderSlot(o.$slots,"default",{open:l},void 0,!0)])]),_:2},1024)])]),_:3}))}}),Vr=I._export_sfc(Nr,[["__scopeId","data-v-8b1f2444"]]),Tr=["title"],Fr=e.defineComponent({__name:"BrandCard",props:{orientation:{default:"portrait"},direction:{default:"col"},opacity:{},name:{},logo:{}},setup(t){const o=t,n=e.useSlots(),l=e.computed(()=>o.direction==="row"||o.orientation==="albom"),r=e.computed(()=>!!(n.logo||o.logo)),a=e.computed(()=>!!(n.default||o.name)),s=e.computed(()=>o.opacity!==void 0?`rgba(255, 255, 255, ${o.opacity})`:"rgba(255, 255, 255, 0.72)");return(i,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ev-brand-card",[l.value?"ev-brand-card--row":"ev-brand-card--portrait",{"ev-brand-card--no-logo":!r.value}]]),style:e.normalizeStyle({backgroundColor:s.value})},[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["ev-brand-card__logo",l.value?"ev-brand-card__logo--row":"ev-brand-card__logo--portrait"])},[e.renderSlot(i.$slots,"logo",{},()=>[t.logo?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.logo),{key:0})):e.createCommentVNode("",!0)],!0)],2)):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["ev-brand-card__content",l.value?"ev-brand-card__content--row":"ev-brand-card__content--portrait"])},[e.renderSlot(i.$slots,"default",{},()=>[t.name?(e.openBlock(),e.createElementBlock("span",{key:0,class:"ev-brand-card__name",title:t.name},e.toDisplayString(t.name),9,Tr)):e.createCommentVNode("",!0)],!0)],2)):e.createCommentVNode("",!0)],6))}}),Ar=I._export_sfc(Fr,[["__scopeId","data-v-cb3d01a2"]]),Lr=540,Dr=440,Pr=980,Or=760,Nt=-360,Ir=4,Mr=e.defineComponent({__name:"EvBackground",props:{animate:{type:Boolean,default:!0},speed:{default:28}},setup(t){e.useCssVars(f=>({aa2fdabc:d.value,ef5f5724:i.value,ef6b7a6e:u.value,v50ce6c44:c.value,v1a9224cd:s.value}));const o=t,n=e.ref(null),l=e.ref(!1),r=e.ref(3);let a=null;const s=e.computed(()=>`${Math.max(o.speed,12)}s`),i=e.computed(()=>`${Math.max(o.speed*1.25,16)}s`),u=e.computed(()=>`${Math.max(o.speed*.82,10)}s`),c=e.computed(()=>`${Math.max(o.speed*1.55,20)}s`),d=e.computed(()=>`${Math.max(o.speed*1.08,14)}s`),b=()=>l.value?Dr:Lr,m=()=>l.value?Or:Pr,g=()=>{l.value=window.matchMedia("(max-width: 639px)").matches},h=()=>{const f=n.value?.clientHeight??window.innerHeight,w=b(),C=Math.ceil((f-Nt)/w)+2;r.value=Math.max(Ir,C)},v=()=>{g(),h()},p=e.computed(()=>{const f=b(),w=m(),C=[-10,3,-4,8],B=[-1.4,.8,-.4,1.2],_=[1,.96,.98,.95];return Array.from({length:r.value},(F,E)=>({key:E,offsetY:Nt+E*f,shiftX:C[E%C.length]??0,tilt:B[E%B.length]??0,opacity:_[E%_.length]??1,span:w}))}),y=f=>({"--cluster-offset-y":`${f.offsetY}px`,"--cluster-shift-x":`${f.shiftX}%`,"--cluster-tilt":`${f.tilt}deg`,"--cluster-opacity":`${f.opacity}`,"--cluster-span":`${f.span}px`});return e.onMounted(()=>{g(),h(),window.addEventListener("resize",v,{passive:!0}),typeof ResizeObserver<"u"&&(a=new ResizeObserver(h),n.value&&a.observe(n.value))}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",v),a?.disconnect(),a=null}),(f,w)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"rootEl",ref:n,class:e.normalizeClass(["ev-background",{"is-animated":t.animate}]),"aria-hidden":"true"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,C=>(e.openBlock(),e.createElementBlock("div",{key:C.key,class:"ev-background__cluster",style:e.normalizeStyle(y(C))},[...w[0]||(w[0]=[e.createStaticVNode('<div class="ev-background__glow ev-background__glow--blue-top" data-v-e15d3d3a></div><div class="ev-background__glow ev-background__glow--pink-left" data-v-e15d3d3a></div><div class="ev-background__glow ev-background__glow--yellow-left-bottom" data-v-e15d3d3a></div><div class="ev-background__glow ev-background__glow--pink-bottom" data-v-e15d3d3a></div><div class="ev-background__glow ev-background__glow--blue-right" data-v-e15d3d3a></div><div class="ev-background__glow ev-background__glow--violet-center" data-v-e15d3d3a></div><div class="ev-background__glow ev-background__glow--blue-top-left-accent" data-v-e15d3d3a></div><div class="ev-background__glow ev-background__glow--pink-upper-mid" data-v-e15d3d3a></div><div class="ev-background__glow ev-background__glow--blue-right-mid-accent" data-v-e15d3d3a></div><div class="ev-background__glow ev-background__glow--warm-left-mid" data-v-e15d3d3a></div><div class="ev-background__glow ev-background__glow--center-pink-cloud" data-v-e15d3d3a></div><div class="ev-background__glow ev-background__glow--center-blue-cloud" data-v-e15d3d3a></div>',12)])],4))),128))],2))}}),vt=I._export_sfc(Mr,[["__scopeId","data-v-e15d3d3a"]]),zr=e.defineComponent({__name:"EvBackgroundAnimated",props:{speed:{default:28}},setup(t){const o=t;return(n,l)=>(e.openBlock(),e.createBlock(vt,{animate:!0,speed:o.speed},null,8,["speed"]))}}),Rr=e.defineComponent({__name:"EvBackgroundStatic",props:{speed:{default:28}},setup(t){const o=t;return(n,l)=>(e.openBlock(),e.createBlock(vt,{animate:!1,speed:o.speed},null,8,["speed"]))}}),jr={class:"max-w-[1376px] sm:pb-2 max-sm:pb-1 flex flex-col justify-between sm:h-[270px] w-full border-t border-[#231F20] sm:mt-20 max-sm:mt-15 sm:pt-[26px] max-sm:pt-[24px]"},Hr={class:"flex flex-col sm:flex-row justify-between gap-10 sm:gap-0"},Ur={class:"flex flex-col lg:flex-row gap-6 lg:gap-20"},Gr={class:"max-w-[446px] whitespace-pre-line"},Wr={class:"flex gap-10 lg:gap-15 flex-wrap sm:flex-nowrap"},qr=["href"],Kr={key:1,class:"whitespace-nowrap"},Yr={class:"mt-8 sm:mt-0"},Xr=e.defineComponent({__name:"EvFooter",props:{description:{},columns:{},copyright:{}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("footer",jr,[e.createElementVNode("div",Hr,[e.createElementVNode("div",Ur,[e.renderSlot(o.$slots,"logo",{},()=>[e.createVNode(I.EvixLogo)]),e.createElementVNode("span",Gr,[e.renderSlot(o.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)])])]),e.createElementVNode("div",Wr,[e.renderSlot(o.$slots,"columns",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columns,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"flex flex-col gap-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.links,(a,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s},[a.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:a.href,class:"hover:opacity-70 transition-opacity whitespace-nowrap"},e.toDisplayString(a.label),9,qr)):(e.openBlock(),e.createElementBlock("span",Kr,e.toDisplayString(a.label),1))],64))),128))]))),128))])])]),e.createElementVNode("div",Yr,[e.renderSlot(o.$slots,"copyright",{},()=>[e.createElementVNode("span",null,e.toDisplayString(t.copyright),1)])])]))}}),Jr={class:"flex flex-wrap gap-2"},Zr=["onClick"],Qr=e.defineComponent({__name:"BadgeFilters",props:e.mergeModels({items:{},activeColor:{default:"#FFFFFF"},activeTextColor:{default:"#000000"}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),n=r=>o.value.some(a=>JSON.stringify(a)===JSON.stringify(r)),l=r=>{const a=o.value.findIndex(s=>JSON.stringify(s)===JSON.stringify(r));a===-1?o.value=[...o.value,r]:o.value=o.value.filter((s,i)=>i!==a)};return(r,a)=>(e.openBlock(),e.createElementBlock("div",Jr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(s,i)=>(e.openBlock(),e.createElementBlock("button",{key:i,type:"button",onClick:u=>l(s),class:e.normalizeClass(["rounded-[28px] leading-[17px]! border px-3 flex items-center text-[12px]! h-8 transition-all cursor-pointer whitespace-nowrap",[n(s)?"border-transparent":"border-white bg-transparent text-white"]]),style:e.normalizeStyle(n(s)?{backgroundColor:s.activeColor||t.activeColor,color:s.activeTextColor||t.activeTextColor}:{})},e.toDisplayString(s.label),15,Zr))),128))]))}}),ea={class:"flex flex-col w-full"},ta=e.defineComponent({__name:"EvList",setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",ea,[e.renderSlot(o.$slots,"default")]))}}),oa={class:"flex items-center gap-3 flex-1 min-w-0"},na={class:"w-12 h-12 shrink-0 rounded-full bg-[#d9d9d9] overflow-hidden flex items-center justify-center"},la={class:"flex flex-col min-w-0 md:w-[132px]"},ra={class:"text-[16px] font-medium text-[#232525] leading-[19.2px] truncate"},aa={class:"text-[14px] text-[#5c5c5c] mt-1 leading-[19.6px] truncate"},sa={class:"flex flex-col items-end shrink-0 text-right"},ia={class:"text-[16px] font-medium text-[#232525] leading-[19.2px] whitespace-nowrap"},ua={class:"text-[14px] text-[#5c5c5c] mt-1 leading-[19.6px] whitespace-nowrap"},ca=e.defineComponent({__name:"EvListItem",props:{id:{},title:{},subtitle:{},value:{},subvalue:{},icon:{},hoverable:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:o}){const n=t,l=o,r=()=>{l("click",n.id)};return(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(X)("flex items-center justify-between gap-3 h-[72px] w-full min-w-0 overflow-hidden px-4 border-b border-[#F1F1F1] last:border-b-0 transition-colors",t.hoverable&&"hover:bg-white/40 cursor-pointer")),onClick:r},[e.createElementVNode("div",oa,[e.createElementVNode("div",na,[e.renderSlot(a.$slots,"icon",{},()=>[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:"w-full h-full object-contain"})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",la,[e.createElementVNode("span",ra,[e.renderSlot(a.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])]),e.createElementVNode("span",aa,[e.renderSlot(a.$slots,"subtitle",{},()=>[e.createTextVNode(e.toDisplayString(t.subtitle),1)])])])]),e.createElementVNode("div",sa,[e.createElementVNode("span",ia,[e.renderSlot(a.$slots,"value",{},()=>[e.createTextVNode(e.toDisplayString(t.value),1)])]),e.createElementVNode("span",ua,[e.renderSlot(a.$slots,"subvalue",{},()=>[e.createTextVNode(e.toDisplayString(t.subvalue),1)])])])],2))}}),da={class:"fixed inset-0 flex items-center justify-center p-4"},pa={key:1},$o=e.defineComponent({__name:"EvPopup",props:{isOpen:{type:Boolean},title:{},size:{default:"md"},showCloseButton:{type:Boolean,default:!0},blur:{type:Boolean,default:!1}},emits:["close"],setup(t){const o=t,n=e.computed(()=>o.blur?"fixed inset-0 bg-black/40 backdrop-blur-sm":"fixed inset-0 bg-black/30"),l=e.computed(()=>o.size==="sm"?"w-full max-w-sm rounded-2xl bg-white p-6 shadow-xl":"w-full max-w-[500px] rounded-lg bg-white p-6 shadow-xl"),r=e.computed(()=>!o.title&&!o.showCloseButton?"":o.size==="sm"?"flex items-center justify-between mb-4":"flex items-center justify-between mb-8"),a=e.computed(()=>o.size==="sm"?"text-lg font-semibold text-[#231F20]":"text-[24px] font-bold text-black leading-tight"),s=e.computed(()=>!!o.title||o.showCloseButton);return(i,u)=>(e.openBlock(),e.createBlock(e.unref(Co),{appear:"",show:t.isOpen,as:"template"},{default:e.withCtx(()=>[e.createVNode(e.unref(rl),{as:"div",class:"relative z-50",onClose:u[1]||(u[1]=c=>i.$emit("close"))},{default:e.withCtx(()=>[e.createVNode(e.unref(st),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(n.value),"aria-hidden":"true"},null,2)]),_:1}),e.createElementVNode("div",da,[e.createVNode(e.unref(st),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:e.withCtx(()=>[e.createVNode(e.unref(al),{class:e.normalizeClass(l.value)},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.value)},[t.title?(e.openBlock(),e.createBlock(e.unref(sl),{key:0,class:e.normalizeClass(a.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1},8,["class"])):(e.openBlock(),e.createElementBlock("span",pa)),t.showCloseButton?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"inline-flex items-center justify-center text-gray-400 hover:text-gray-500 transition-colors focus:outline-none cursor-pointer",onClick:u[0]||(u[0]=c=>i.$emit("close"))},[e.createVNode(e.unref(I._sfc_main),{class:"w-4 h-4"})])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default")]),_:3},8,["class"])]),_:3})])]),_:3})]),_:3},8,["show"]))}}),fa={class:"flex flex-col w-full"},ma={class:"text-[#343434] text-[16px]"},va={class:"flex items-center gap-2"},ba={class:"text-black text-[16px] text-right"},ga=["onClick"],ha=e.defineComponent({__name:"TableInfo",props:{items:{}},setup(t){const o=async n=>{try{await navigator.clipboard.writeText(String(n))}catch(l){console.error("Failed to copy text: ",l)}};return(n,l)=>(e.openBlock(),e.createElementBlock("div",fa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(r,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"flex justify-between items-center py-4 border-b border-[#F1F1F1] last:border-0"},[e.createElementVNode("span",ma,e.toDisplayString(r.label),1),e.createElementVNode("div",va,[e.createElementVNode("span",ba,e.toDisplayString(r.value),1),r.copyable?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s=>o(r.value),class:"cursor-pointer hover:opacity-70 transition-opacity flex items-center justify-center p-1","aria-label":"Copy to clipboard"},[...l[0]||(l[0]=[e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M14 4.30273C14.2575 4.30299 14.4658 4.51196 14.4658 4.76953V13.0771C14.4657 13.4455 14.32 13.799 14.0596 14.0596C13.7989 14.3202 13.4448 14.4668 13.0762 14.4668H4.76855C4.51096 14.4667 4.30184 14.2576 4.30176 14C4.30176 13.7423 4.51091 13.5333 4.76855 13.5332H13.0762C13.1972 13.5332 13.3138 13.485 13.3994 13.3994C13.4848 13.3139 13.5331 13.198 13.5332 13.0771V4.76953C13.5332 4.5118 13.7423 4.30273 14 4.30273ZM10.7695 1.5332C11.537 1.5332 12.1591 2.15536 12.1592 2.92285V10.7695C12.1589 11.5369 11.5369 12.1592 10.7695 12.1592H2.92383C2.15644 12.1592 1.53441 11.5369 1.53418 10.7695V2.92285C1.53423 2.15536 2.15633 1.5332 2.92383 1.5332H10.7695ZM2.92383 2.4668C2.67179 2.4668 2.46685 2.67083 2.4668 2.92285V10.7695C2.46703 11.0214 2.6719 11.2256 2.92383 11.2256H10.7695C11.0215 11.2256 11.2263 11.0214 11.2266 10.7695V2.92285C11.2265 2.67083 11.0216 2.4668 10.7695 2.4668H2.92383Z",fill:"#343434"})],-1)])],8,ga)):e.createCommentVNode("",!0)])]))),128))]))}}),ya={class:"flex flex-row gap-5"},xa=["src"],ka={key:1,class:"sm:size-[97px] max-sm:size-[76px] bg-gray-200 flex items-center justify-center"},wa={class:"text-gray-400 text-2xl uppercase"},Ea={class:"flex flex-col gap-1 justify-center"},Ca={class:"text-[14px]"},Sa={class:"text-[28px] font-medium leading-tight"},$a={class:"text-[16px] font-medium text-black/60"},Ba=e.defineComponent({__name:"AccountInfo",props:{avatar:{},label:{},name:{},email:{}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",ya,[e.renderSlot(o.$slots,"avatar",{},()=>[t.avatar?(e.openBlock(),e.createElementBlock("img",{key:0,class:"sm:size-[97px] max-sm:size-[76px] object-cover rounded-full",src:t.avatar,alt:"Profile picture"},null,8,xa)):(e.openBlock(),e.createElementBlock("div",ka,[e.renderSlot(o.$slots,"avatar-fallback",{},()=>[e.createElementVNode("span",wa,e.toDisplayString(t.name?.charAt(0)||"U"),1)])]))]),e.createElementVNode("div",Ea,[e.createElementVNode("span",Ca,[e.renderSlot(o.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label||"Account:"),1)])]),e.createElementVNode("span",Sa,[e.renderSlot(o.$slots,"name",{},()=>[e.createTextVNode(e.toDisplayString(t.name),1)])]),e.createElementVNode("span",$a,[e.renderSlot(o.$slots,"email",{},()=>[e.createTextVNode(e.toDisplayString(t.email),1)])])])]))}}),_a={class:"flex items-center gap-4"},Na={class:"text-[32px] font-medium text-[#231F20] leading-tight"},Va=e.defineComponent({__name:"PageHeader",props:{title:{},showArrow:{type:Boolean,default:!0}},emits:["onclick"],setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",_a,[t.showArrow?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"cursor-pointer hover:opacity-70 transition-opacity",onClick:n[0]||(n[0]=l=>o.$emit("onclick"))},[e.createVNode(e.unref(I._sfc_main$2))])):e.createCommentVNode("",!0),e.createElementVNode("h1",Na,[e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])])]))}}),Ta=["aria-label"],Bo=e.defineComponent({__name:"EvSpinner",props:{size:{default:"md"},variant:{default:"arc"},color:{default:"#232525"},trackColor:{},class:{},label:{default:"Loading"}},setup(t){const o=t,n={xs:3,sm:5,md:8,lg:10,xl:12},l={3:"h-3 w-3 border-2",4:"h-4 w-4 border-2",5:"h-5 w-5 border-2",6:"h-6 w-6 border-2",8:"h-8 w-8 border-2",10:"h-10 w-10 border-[3px]",12:"h-12 w-12 border-[3px]",16:"h-16 w-16 border-[3px]"},r=e.computed(()=>typeof o.size=="number"?o.size:n[o.size]),a=e.computed(()=>l[r.value]),s=e.computed(()=>X("inline-block rounded-full animate-spin",a.value,o.class)),i=e.computed(()=>{if(o.variant==="track"){const u=o.trackColor??`color-mix(in srgb, ${o.color} 20%, transparent)`;return{borderColor:u,borderTopColor:o.color,borderRightColor:u,borderBottomColor:u,borderLeftColor:u}}return{borderColor:"transparent",borderTopColor:o.color,borderRightColor:o.color,borderBottomColor:"transparent",borderLeftColor:"transparent"}});return(u,c)=>(e.openBlock(),e.createElementBlock("span",{role:"status","aria-label":t.label,class:e.normalizeClass(s.value),style:e.normalizeStyle(i.value)},null,14,Ta))}}),Fa=["role"],Aa={class:"flex items-start gap-3"},La={class:"flex-1 min-w-0"},Da={key:1,class:"mt-3"},Pa=e.defineComponent({__name:"EvAlert",props:{variant:{default:"info"},title:{},class:{}},setup(t){const o=t,n=e.useSlots(),l={info:{container:"bg-[#EEF2FF] border-[#C7D2FE]",title:"text-[#263780]",body:"text-[#3A54C9]",iconColor:"#4F6DE8"},warning:{container:"bg-[#FFF8F0] border-[#F0D8B0]",title:"text-[#6B4A1A]",body:"text-[#8B6B3A]",iconColor:"#C08030"},success:{container:"bg-[#F0FFF4] border-[#B0E0C0]",title:"text-[#1C5F3B]",body:"text-[#4A8B6A]",iconColor:"#2F855A"},error:{container:"bg-[#FEF2F2] border-[#FCA5A5]",title:"text-[#7F1D1D]",body:"text-[#B91C1C]",iconColor:"#DC2626"}},r=e.computed(()=>l[o.variant]),a=e.computed(()=>X("p-4 border rounded-2xl",r.value.container,o.class)),s=e.computed(()=>o.variant==="error"||o.variant==="warning"?"alert":"status"),i=e.computed(()=>!!n.icon),u=e.computed(()=>!!n.actions);return(c,d)=>(e.openBlock(),e.createElementBlock("div",{role:s.value,class:e.normalizeClass(a.value)},[e.createElementVNode("div",Aa,[i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex-shrink-0 mt-0.5",style:e.normalizeStyle({color:r.value.iconColor})},[e.renderSlot(c.$slots,"icon")],4)):(e.openBlock(),e.createElementBlock("svg",{key:1,class:"flex-shrink-0 mt-0.5 h-5 w-5",style:e.normalizeStyle({color:r.value.iconColor}),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[t.variant==="success"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[d[0]||(d[0]=e.createElementVNode("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"},null,-1)),d[1]||(d[1]=e.createElementVNode("path",{d:"M22 4 12 14.01l-3-3"},null,-1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[d[2]||(d[2]=e.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1)),d[3]||(d[3]=e.createElementVNode("path",{d:"M12 16v-4"},null,-1)),d[4]||(d[4]=e.createElementVNode("path",{d:"M12 8h.01"},null,-1))],64))],4)),e.createElementVNode("div",La,[t.title?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["text-[14px] font-semibold",r.value.title])},e.toDisplayString(t.title),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["text-[13px] leading-relaxed",r.value.body,t.title?"mt-1":""])},[e.renderSlot(c.$slots,"default")],2),u.value?(e.openBlock(),e.createElementBlock("div",Da,[e.renderSlot(c.$slots,"actions")])):e.createCommentVNode("",!0)])])],10,Fa))}}),Oa={class:"w-full"},Ia=["id","name","value","disabled","required","aria-invalid","aria-required","aria-describedby"],Ma={key:0,value:"",disabled:"",hidden:""},za=["value","disabled"],Ra=["id"],ja=["id"],Ha=e.defineComponent({inheritAttrs:!1,__name:"EvSelect",props:{modelValue:{},options:{},placeholder:{},size:{default:"md"},id:{},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{type:Boolean},errorMessage:{},helperText:{},class:{},selectClass:{}},emits:["update:modelValue","change","focus","blur"],setup(t,{emit:o}){const n=t,l=o,r={md:"h-[56px] px-4 rounded-[10px] text-[14px] sm:text-[15px]",sm:"h-10 px-3 rounded-[6px] text-[13px]"},a=`ev-select-${Math.random().toString(36).slice(2,9)}`,s=e.computed(()=>n.id??a),i=e.computed(()=>X("relative w-full bg-white border transition-colors",r[n.size],"flex items-center",n.error?"border-[#E53935]":"border-[#E4E4E4]",n.disabled?"bg-[#F2F2F2] cursor-not-allowed":"",n.class)),u=e.computed(()=>X("w-full appearance-none bg-transparent pr-8 outline-none cursor-pointer font-medium text-[#1C1C1C]","disabled:cursor-not-allowed disabled:text-[#A0A0A0]",!n.modelValue&&n.placeholder?"text-[#A0A0A0]":"",n.selectClass)),c=e.computed(()=>n.error&&n.errorMessage?`${s.value}-error`:n.helperText?`${s.value}-help`:void 0);function d(b){const g=b.target.value,h=n.options.find(p=>String(p.value)===g),v=h?h.value:g;l("update:modelValue",v===""?null:v),l("change",b)}return(b,m)=>(e.openBlock(),e.createElementBlock("div",Oa,[e.createElementVNode("div",{class:e.normalizeClass(i.value)},[e.createElementVNode("select",e.mergeProps(b.$attrs,{id:s.value,name:t.name,value:t.modelValue??"",disabled:t.disabled,required:t.required,"aria-invalid":t.error?"true":"false","aria-required":t.required?"true":"false","aria-describedby":c.value,class:u.value,onChange:d,onFocus:m[0]||(m[0]=g=>b.$emit("focus",g)),onBlur:m[1]||(m[1]=g=>b.$emit("blur",g))}),[t.placeholder?(e.openBlock(),e.createElementBlock("option",Ma,e.toDisplayString(t.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,g=>(e.openBlock(),e.createElementBlock("option",{key:String(g.value),value:g.value,disabled:g.disabled},e.toDisplayString(g.label),9,za))),128))],16,Ia),m[2]||(m[2]=e.createElementVNode("span",{class:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-[#A0A0A0]"},[e.createElementVNode("svg",{class:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e.createElementVNode("path",{d:"M6 9l6 6 6-6"})])],-1))],2),t.error&&t.errorMessage?(e.openBlock(),e.createElementBlock("p",{key:0,id:`${s.value}-error`,class:"mt-2 px-3 text-xs text-[#E53935]",role:"alert"},e.toDisplayString(t.errorMessage),9,Ra)):t.helperText?(e.openBlock(),e.createElementBlock("p",{key:1,id:`${s.value}-help`,class:"mt-2 px-3 text-xs text-[#6F6F6F]"},e.toDisplayString(t.helperText),9,ja)):e.createCommentVNode("",!0)]))}}),Ua={key:0,class:"text-sm text-[#6D6D6D] leading-relaxed"},Ga={key:1,class:"mt-4 text-sm text-red-600",role:"alert"},Wa={class:"mt-6 flex gap-3"},qa={class:"inline-flex items-center justify-center gap-2"},Ka=e.defineComponent({__name:"EvConfirmDialog",props:{isOpen:{type:Boolean},title:{},description:{},confirmLabel:{default:"Confirm"},cancelLabel:{default:"Cancel"},loading:{type:Boolean,default:!1},destructive:{type:Boolean,default:!1},error:{},size:{default:"sm"},showCloseButton:{type:Boolean,default:!1},blur:{type:Boolean,default:!0}},emits:["confirm","cancel","close"],setup(t,{emit:o}){const n=t,l=o,r=e.computed(()=>n.destructive?"flex-1 bg-red-600":"flex-1");function a(){n.loading||(l("cancel"),l("close"))}function s(){n.loading||l("confirm")}return(i,u)=>(e.openBlock(),e.createBlock(e.unref($o),{"is-open":t.isOpen,title:t.title,size:t.size,"show-close-button":t.showCloseButton,blur:t.blur,onClose:a},{default:e.withCtx(()=>[t.description||i.$slots.default?(e.openBlock(),e.createElementBlock("div",Ua,[e.renderSlot(i.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)])])):e.createCommentVNode("",!0),t.error?(e.openBlock(),e.createElementBlock("p",Ga,e.toDisplayString(t.error),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Wa,[e.createVNode(e.unref(he),{variant:"ghost",size:"xl",class:"flex-1 border border-[#E4E4E4]","is-disabled":t.loading,onClick:a},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelLabel),1)]),_:1},8,["is-disabled"]),e.createVNode(e.unref(he),{variant:"black",size:"xl",class:e.normalizeClass(r.value),"is-disabled":t.loading,onClick:s},{default:e.withCtx(()=>[e.createElementVNode("span",qa,[t.loading?(e.openBlock(),e.createBlock(e.unref(Bo),{key:0,size:"xs",color:"#FFFFFF"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.confirmLabel),1)])]),_:1},8,["class","is-disabled"])])]),_:3},8,["is-open","title","size","show-close-button","blur"]))}}),Ya={key:0,class:"absolute inset-0 overflow-hidden pointer-events-none rounded-3xl","aria-hidden":"true"},Xa={class:"relative z-10 w-full"},Ja=e.defineComponent({__name:"EvGlassCard",props:{variant:{default:"default"},animated:{type:Boolean,default:!0},bubbles:{default:5},class:{}},setup(t){const o=t,n={default:"rgba(15, 23, 42, 0.35)",blue:"rgba(30, 64, 175, 0.30)",purple:"rgba(88, 28, 135, 0.35)",pink:"rgba(157, 23, 77, 0.30)",dark:"rgba(0, 0, 0, 0.55)"},l=["bg-gradient-to-r from-blue-400 to-purple-500","bg-gradient-to-r from-purple-400 to-pink-500","bg-gradient-to-r from-pink-400 to-red-500","bg-gradient-to-r from-yellow-400 to-orange-500","bg-gradient-to-r from-green-400 to-blue-500","bg-gradient-to-r from-indigo-400 to-purple-500"],r=e.computed(()=>X("relative min-h-screen w-full rounded-3xl shadow-2xl overflow-hidden",o.class)),a=e.computed(()=>({backgroundColor:n[o.variant],backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",border:"1px solid rgba(255, 255, 255, 0.16)"})),s=e.computed(()=>Array.from({length:o.bubbles},(i,u)=>{const c=80+u*40,d=u*37%100,b=u*53%100,m=u*.8;return{key:u,class:l[u%l.length],style:{width:`${c}px`,height:`${c}px`,left:`${d}%`,top:`${b}%`,animationDelay:`${m}s`,animationDuration:`${8+u*2}s`}}}));return(i,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(r.value),style:e.normalizeStyle(a.value)},[t.animated?(e.openBlock(),e.createElementBlock("div",Ya,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,c=>(e.openBlock(),e.createElementBlock("div",{key:c.key,class:e.normalizeClass(["ev-glass-bubble absolute rounded-full",c.class]),style:e.normalizeStyle(c.style)},null,6))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",Xa,[e.renderSlot(i.$slots,"default",{},void 0,!0)])],6))}}),Za=I._export_sfc(Ja,[["__scopeId","data-v-2caf0eb8"]]),Qa=e.defineComponent({__name:"EvAppBackground",props:{desktopSrc:{},mobileSrc:{},backgroundColor:{default:"#dde4ff"},animate:{type:Boolean,default:!1},speed:{default:28}},setup(t){e.useCssVars(r=>({v7963111e:n.value,v071517c5:l.value}));const o=t,n=e.computed(()=>o.desktopSrc?`url("${o.desktopSrc}")`:"none"),l=e.computed(()=>o.mobileSrc?`url("${o.mobileSrc}")`:n.value);return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:"ev-app-background","aria-hidden":"true",style:e.normalizeStyle({backgroundColor:t.backgroundColor})},null,4))}}),es=I._export_sfc(Qa,[["__scopeId","data-v-f82296ec"]]),ts={class:"mx-auto max-w-4xl rounded-2xl bg-[#1a1a1a] border border-white/10 px-6 py-5 flex flex-col sm:flex-row items-start sm:items-center gap-4 shadow-2xl"},os={class:"flex-1 text-sm text-white/90 leading-relaxed"},ns=["href"],ls={class:"flex items-center gap-3 shrink-0"},rs=e.defineComponent({__name:"EvCookieBanner",props:{visible:{type:Boolean},text:{},learnMoreHref:{},acceptAllLabel:{default:"Accept All"},acceptEssentialLabel:{default:"Only Essential"},class:{}},emits:["accept-all","accept-essential"],setup(t,{emit:o}){const n=t,l=o,r=e.computed(()=>X("fixed bottom-0 inset-x-0 z-40 p-4 sm:p-6",n.class));return(a,s)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"transition duration-300 ease-out","enter-from-class":"translate-y-full opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-200 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-full opacity-0"},{default:e.withCtx(()=>[t.visible?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.value)},[e.createElementVNode("div",ts,[e.createElementVNode("div",os,[e.renderSlot(a.$slots,"text",{},()=>[e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(t.text||"We use cookies to ensure the site works correctly and to improve your experience. Essential cookies are always active. You can choose to allow analytics cookies that help us understand how you use the site.")+" ",1),t.learnMoreHref?(e.openBlock(),e.createElementBlock("a",{key:0,href:t.learnMoreHref,class:"underline text-white hover:text-white/70 transition-colors"}," Learn more ",8,ns)):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",ls,[e.renderSlot(a.$slots,"actions",{},()=>[e.createVNode(e.unref(he),{variant:"ghost",size:"sm",class:"text-white/80 border border-white/20",onClick:s[0]||(s[0]=i=>l("accept-essential"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.acceptEssentialLabel),1)]),_:1}),e.createVNode(e.unref(he),{variant:"black",size:"sm",class:"bg-white text-black",onClick:s[1]||(s[1]=i=>l("accept-all"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.acceptAllLabel),1)]),_:1})])])])],2)):e.createCommentVNode("",!0)]),_:3}))}}),as={key:0},ss={class:"flex sm:flex-col max-sm:flex-row gap-1"},is={class:"font-bold"},us=e.defineComponent({__name:"EvHowToStep",props:{number:{},class:{}},setup(t){const o=t,n=e.computed(()=>X("flex gap-2 sm:w-54 max-sm:w-full",o.class));return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value)},[l.$slots.icon?(e.openBlock(),e.createElementBlock("div",as,[e.renderSlot(l.$slots,"icon")])):e.createCommentVNode("",!0),e.createElementVNode("div",ss,[e.createElementVNode("span",is,"#"+e.toDisplayString(t.number),1),e.createElementVNode("span",null,[e.renderSlot(l.$slots,"default")])])],2))}});exports.AmazonLogoIcon=I.AmazonLogoIcon;exports.ArrowLeftIcon=I._sfc_main$2;exports.CrossIcon=I._sfc_main;exports.EvixLogo=I.EvixLogo;exports.LenseIcon=I._sfc_main$1;exports.LogOutIcon=I.LogOutIcon;exports.MinusIcon=I.MinusIcon;exports.PlusIcon=I.PlusIcon;exports.UserIcon=I.UserIcon;exports.AccountInfo=Ba;exports.BadgeFilters=Qr;exports.BrandCard=Ar;exports.CredentialForm=yr;exports.EvAccordion=Vr;exports.EvAlert=Pa;exports.EvAppBackground=es;exports.EvBackground=vt;exports.EvBackgroundAnimated=zr;exports.EvBackgroundStatic=Rr;exports.EvButton=he;exports.EvCheckbox=Il;exports.EvConfirmDialog=Ka;exports.EvCookieBanner=rs;exports.EvFooter=Xr;exports.EvGlassCard=Za;exports.EvHeader=Cr;exports.EvHowToStep=us;exports.EvInput=So;exports.EvList=ta;exports.EvListItem=ca;exports.EvPopup=$o;exports.EvRadio=pr;exports.EvRadioGroup=Zl;exports.EvRadioLabel=rr;exports.EvRadioOption=lr;exports.EvSearch=Xl;exports.EvSelect=Ha;exports.EvSpinner=Bo;exports.EvTabs=Ll;exports.EvToggle=Jl;exports.PageHeader=Va;exports.TableInfo=ha;exports.sizes=Je;exports.variants=Vt;
78
+ `,vf={class:"w-full"},yf={class:"relative"},bf=["data-state","data-disabled"],xf={key:0,class:"flex items-center text-gray-dark"},wf=["id","name","type","placeholder","disabled","required","aria-invalid","aria-required","aria-describedby","value"],kf={key:1,class:"flex items-center text-gray-dark"},Sf=["id"],Ef=["id"],tl=o.defineComponent({inheritAttrs:!1,__name:"EvInput",props:{modelValue:{},placeholder:{},class:{},inputClass:{},type:{default:"text"},id:{},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{type:Boolean},errorMessage:{},helperText:{},size:{default:"md"}},emits:["update:modelValue","input","change","focus","blur"],setup(e,{expose:t,emit:n}){const r=e,s=n,a=o.useSlots(),i=o.computed(()=>!!a.prefix),l=o.computed(()=>!!a.suffix),u=o.ref(null),c=o.computed(()=>r.error?"border border-error":""),d=o.computed(()=>r.disabled?"bg-disabled-bg border-gray-light border cursor-not-allowed":""),f=o.computed(()=>pf[r.size]),h=o.computed(()=>r.class??""),m=o.computed(()=>we(mf,f.value,h.value,c.value,d.value)),v=`ev-input-${Math.random().toString(36).slice(2,9)}`,g=o.computed(()=>r.id??v),p=o.computed(()=>r.error&&r.errorMessage?`${g.value}-error`:r.helperText?`${g.value}-help`:void 0);function y(k){const S=k.target,E=r.type==="number"&&S.value!==""?Number(S.value):S.value;s("update:modelValue",E),s("input",k)}const b=()=>{r.disabled||u.value?.focus()};return t({focus:b,blur:()=>u.value?.blur(),select:()=>u.value?.select()}),(k,S)=>(o.openBlock(),o.createElementBlock("div",vf,[o.createElementVNode("div",yf,[o.createElementVNode("div",{class:o.normalizeClass(m.value),onClick:b,"data-state":e.error?"error":"normal","data-disabled":e.disabled||null},[i.value?(o.openBlock(),o.createElementBlock("div",xf,[o.renderSlot(k.$slots,"prefix")])):o.createCommentVNode("",!0),o.createElementVNode("input",o.mergeProps({ref_key:"inputRef",ref:u},k.$attrs,{id:g.value,name:e.name,type:e.type,placeholder:e.placeholder,disabled:e.disabled,required:e.required,"aria-invalid":e.error?"true":"false","aria-required":e.required?"true":"false","aria-describedby":p.value,value:e.modelValue,class:o.unref(we)(o.unref(gf),e.inputClass),onInput:y,onChange:S[0]||(S[0]=E=>k.$emit("change",E)),onFocus:S[1]||(S[1]=E=>k.$emit("focus",E)),onBlur:S[2]||(S[2]=E=>k.$emit("blur",E))}),null,16,wf),l.value?(o.openBlock(),o.createElementBlock("div",kf,[o.renderSlot(k.$slots,"suffix")])):o.createCommentVNode("",!0)],10,bf)]),e.error&&e.errorMessage?(o.openBlock(),o.createElementBlock("p",{key:0,id:`${g.value}-error`,class:"mt-2 px-3 text-xs text-error",role:"alert"},o.toDisplayString(e.errorMessage),9,Sf)):e.helperText?(o.openBlock(),o.createElementBlock("p",{key:1,id:`${g.value}-help`,class:"mt-2 px-3 text-xs text-gray-darkest"},o.toDisplayString(e.helperText),9,Ef)):o.createCommentVNode("",!0)]))}}),Cf=o.defineComponent({__name:"EvSearch",props:o.mergeModels({placeholder:{},disabled:{type:Boolean,default:!1},size:{default:"md"},id:{},name:{},class:{},inputClass:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=o.useModel(e,"modelValue"),r=o.ref(null),s=o.computed(()=>n.value?.length),a=o.ref(!1);function i(){a.value=!0}function l(){a.value=!1}function u(){t.disabled||(n.value="",r.value?.focus?.())}return(c,d)=>(o.openBlock(),o.createBlock(o.unref(tl),o.mergeProps({ref_key:"evInputRef",ref:r},c.$attrs,{modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=f=>n.value=f),placeholder:e.placeholder,disabled:e.disabled,size:e.size,id:e.id,name:e.name,class:o.unref(we)("bg-white/70 border-gray-light flex gap-3 px-3 py-[10px]",t.class),inputClass:e.inputClass,onFocus:i,onBlur:l}),{prefix:o.withCtx(()=>[o.createVNode(Z._sfc_main$1,{class:"w-4 h-4",color:a.value?"var(--foreground)":"var(--gray-dark)","aria-hidden":"true"},null,8,["color"])]),suffix:o.withCtx(()=>[s.value?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",class:"inline-flex items-center justify-center text-gray-dark hover:opacity-80 transition-opacity cursor-pointer","aria-label":"Clear search",onClick:o.withModifiers(u,["stop"])},[o.createVNode(Z._sfc_main,{class:"w-[10px] h-[10px]","aria-hidden":"true"})])):o.createCommentVNode("",!0)]),_:1},16,["modelValue","placeholder","disabled","size","id","name","class","inputClass"]))}}),Bf=o.defineComponent({__name:"EvToggle",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue");return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Hd),{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),"aria-label":"Toggle",class:o.normalizeClass([t.value?"bg-[image:var(--gradient-control)]":"bg-gray-light","relative inline-flex h-6 w-11 items-center rounded-full px-[2px] focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed"])},{default:o.withCtx(()=>[o.createElementVNode("span",{class:o.normalizeClass([t.value?"translate-x-[21px]":"","inline-block h-[19px] w-[19px] transform rounded-full bg-white transition"])},null,2)]),_:1},8,["modelValue","class"]))}}),Tf=o.defineComponent({__name:"EvRadioGroup",props:{modelValue:{},disabled:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(qa),{"model-value":e.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>t.$emit("update:modelValue",r)),disabled:e.disabled,name:e.name},{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},8,["model-value","disabled","name"]))}}),$f={class:"flex w-full items-center justify-between"},Mf={class:"flex items-center"},Vf={class:"text-sm"},Pf={class:o.normalizeClass(["shrink-0 flex items-center justify-center rounded-full border transition-all duration-200","h-4 w-4","border-foreground"])},Af={class:"h-2 w-2 rounded-full bg-foreground"},Lf=o.defineComponent({__name:"EvRadioOption",props:{value:{},disabled:{type:Boolean},as:{default:"div"}},setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Ya),{value:e.value,disabled:e.disabled,as:"template"},{default:o.withCtx(({checked:r,active:s,disabled:a})=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.as),{class:o.normalizeClass(["relative flex cursor-pointer focus:outline-none transition-all duration-200",a?"opacity-50 cursor-not-allowed":""])},{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default",{checked:r,active:s,disabled:a},()=>[o.createElementVNode("div",$f,[o.createElementVNode("div",Mf,[o.createElementVNode("div",Vf,[o.renderSlot(t.$slots,"label",{checked:r,disabled:a}),o.renderSlot(t.$slots,"description",{checked:r,disabled:a})])]),o.createElementVNode("div",Pf,[o.withDirectives(o.createElementVNode("div",Af,null,512),[[o.vShow,r]])])])])]),_:2},1032,["class"]))]),_:3},8,["value","disabled"]))}}),Df=o.defineComponent({__name:"EvRadioLabel",props:{as:{default:"p"}},setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Fo),{as:e.as},{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},8,["as"]))}}),Nf={class:"space-y-2"},Rf={class:"flex w-full items-center justify-between"},_f={class:"flex items-center"},Ff={class:"text-sm"},Of={class:o.normalizeClass(["shrink-0 flex items-center justify-center rounded-full border transition-all duration-200","h-4 w-4","border-foreground"])},If={class:"h-2 w-2 rounded-full bg-foreground"},jf=o.defineComponent({__name:"EvRadio",props:{modelValue:{},options:{},label:{},disabled:{type:Boolean},name:{}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=e,r=t,s=o.computed({get:()=>n.modelValue,set:a=>{r("update:modelValue",a),r("change",a)}});return(a,i)=>(o.openBlock(),o.createBlock(o.unref(qa),{modelValue:s.value,"onUpdate:modelValue":i[0]||(i[0]=l=>s.value=l),disabled:e.disabled,name:e.name,class:"space-y-2"},{default:o.withCtx(()=>[e.label?(o.openBlock(),o.createBlock(o.unref(Fo),{key:0,class:"text-sm font-medium text-foreground"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.label),1)]),_:1})):o.createCommentVNode("",!0),o.createElementVNode("div",Nf,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,l=>(o.openBlock(),o.createBlock(o.unref(Ya),{key:l.value,value:l.value,disabled:l.disabled??!1,as:"template"},{default:o.withCtx(({checked:u,disabled:c})=>[o.createElementVNode("div",{class:o.normalizeClass(["relative flex cursor-pointer rounded-lg px-3 py-2 focus:outline-none transition-all duration-200",c?"opacity-50 cursor-not-allowed":"hover:bg-gray-50"])},[o.createElementVNode("div",Rf,[o.createElementVNode("div",_f,[o.createElementVNode("div",Ff,[o.createVNode(o.unref(Fo),{as:"p",class:o.normalizeClass(u?"text-foreground font-medium":"text-foreground/60")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.label||l.value),1)]),_:2},1032,["class"]),l.description?(o.openBlock(),o.createBlock(o.unref(Ud),{key:0,as:"span",class:o.normalizeClass(u?"text-foreground/80":"text-foreground/40")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.description),1)]),_:2},1032,["class"])):o.createCommentVNode("",!0)])]),o.createElementVNode("div",Of,[o.withDirectives(o.createElementVNode("div",If,null,512),[[o.vShow,u]])])])],2)]),_:2},1032,["value","disabled"]))),128))])]),_:1},8,["modelValue","disabled","name"]))}}),zf={class:"max-w-full w-[362px] sm:w-[447px] space-y-6 bg-white rounded-[1.25rem] p-5 sm:px-7"},Kf={key:0,class:"flex w-full flex-col gap-3 items-center text-center"},Uf={key:0,class:"text-[2rem] font-medium"},Hf={key:0,class:"text-sm"},Gf={key:0,class:"flex flex-col gap-3.5"},Wf={key:1,class:"text-center"},qf=o.defineComponent({__name:"CredentialForm",props:{title:{},description:{}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",zf,[o.renderSlot(t.$slots,"header",{},()=>[e.title||e.description||t.$slots.title||t.$slots.description?(o.openBlock(),o.createElementBlock("div",Kf,[o.renderSlot(t.$slots,"title",{},()=>[e.title?(o.openBlock(),o.createElementBlock("span",Uf,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0)]),o.renderSlot(t.$slots,"description",{},()=>[e.description?(o.openBlock(),o.createElementBlock("span",Hf,o.toDisplayString(e.description),1)):o.createCommentVNode("",!0)])])):o.createCommentVNode("",!0)]),t.$slots.default?(o.openBlock(),o.createElementBlock("div",Gf,[o.renderSlot(t.$slots,"default")])):o.createCommentVNode("",!0),t.$slots.footer?(o.openBlock(),o.createElementBlock("div",Wf,[o.renderSlot(t.$slots,"footer")])):o.createCommentVNode("",!0)]))}}),Yf={class:"flex justify-between items-center"},Xf={class:"logo"},Zf={key:0,class:"flex items-center gap-4"},Jf=["href"],Qf=o.defineComponent({__name:"EvHeader",props:{items:{}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("nav",Yf,[o.createElementVNode("div",Xf,[o.renderSlot(t.$slots,"logo",{},()=>[o.createVNode(Z.EvixLogo)])]),o.createElementVNode("div",null,[o.renderSlot(t.$slots,"navigation-buttons",{},()=>[e.items?.length?(o.openBlock(),o.createElementBlock("ul",Zf,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(r,s)=>(o.openBlock(),o.createElementBlock("li",{key:s},[o.createElementVNode("a",{href:r.href},[o.createVNode(o.unref(St),{variant:r.variant,size:r.size,class:o.normalizeClass(r.class)},{default:o.withCtx(()=>[r.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.icon),{key:0})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(r.label),1)],64))]),_:2},1032,["variant","size","class"])],8,Jf)]))),128))])):o.createCommentVNode("",!0)])])]))}}),eh={class:"ev-accordion__surface"},th={class:"ev-accordion__button-content"},nh={class:"ev-accordion__icon"},oh={class:"ev-accordion__panel-content"},rh=o.defineComponent({__name:"EvAccordion",setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Fd),{as:"div",class:"ev-accordion"},{default:o.withCtx(({open:r})=>[o.createElementVNode("div",eh,[o.createVNode(o.unref(Od),{class:"ev-accordion__button"},{default:o.withCtx(()=>[o.createElementVNode("span",th,[o.renderSlot(t.$slots,"button",{open:r},void 0,!0)]),o.createElementVNode("span",nh,[o.renderSlot(t.$slots,"icon",{open:r},()=>[r?(o.openBlock(),o.createBlock(Z.MinusIcon,{key:0})):(o.openBlock(),o.createBlock(Z.PlusIcon,{key:1}))],!0)])]),_:2},1024),o.createVNode(o.unref(Id),{class:"ev-accordion__panel"},{default:o.withCtx(()=>[o.createElementVNode("div",oh,[o.renderSlot(t.$slots,"default",{open:r},void 0,!0)])]),_:2},1024)])]),_:3}))}}),sh=Z._export_sfc(rh,[["__scopeId","data-v-f7d7c9fc"]]),ih=["title"],ah=o.defineComponent({__name:"BrandCard",props:{orientation:{default:"portrait"},direction:{default:"col"},opacity:{},name:{},logo:{}},setup(e){const t=e,n=o.useSlots(),r=o.computed(()=>t.direction==="row"||t.orientation==="albom"),s=o.computed(()=>!!(n.logo||t.logo)),a=o.computed(()=>!!(n.default||t.name)),i=o.computed(()=>t.opacity!==void 0?`rgba(255, 255, 255, ${t.opacity})`:"rgba(255, 255, 255, 0.72)");return(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["ev-brand-card",[r.value?"ev-brand-card--row":"ev-brand-card--portrait",{"ev-brand-card--no-logo":!s.value}]]),style:o.normalizeStyle({backgroundColor:i.value})},[s.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["ev-brand-card__logo",r.value?"ev-brand-card__logo--row":"ev-brand-card__logo--portrait"])},[o.renderSlot(l.$slots,"logo",{},()=>[e.logo?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.logo),{key:0})):o.createCommentVNode("",!0)],!0)],2)):o.createCommentVNode("",!0),a.value?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["ev-brand-card__content",r.value?"ev-brand-card__content--row":"ev-brand-card__content--portrait"])},[o.renderSlot(l.$slots,"default",{},()=>[e.name?(o.openBlock(),o.createElementBlock("span",{key:0,class:"ev-brand-card__name",title:e.name},o.toDisplayString(e.name),9,ih)):o.createCommentVNode("",!0)],!0)],2)):o.createCommentVNode("",!0)],6))}}),lh=Z._export_sfc(ah,[["__scopeId","data-v-a910bf19"]]),uh=540,ch=440,dh=980,fh=760,ds=-360,hh=4,ph=o.defineComponent({__name:"EvBackground",props:{animate:{type:Boolean,default:!0},speed:{default:28}},setup(e){o.useCssVars(b=>({v46caa4c6:d.value,v3b391f92:l.value,v3b330ded:u.value,v7e550568:c.value,a073bc1e:i.value}));const t=e,n=o.ref(null),r=o.ref(!1),s=o.ref(3);let a=null;const i=o.computed(()=>`${Math.max(t.speed,12)}s`),l=o.computed(()=>`${Math.max(t.speed*1.25,16)}s`),u=o.computed(()=>`${Math.max(t.speed*.82,10)}s`),c=o.computed(()=>`${Math.max(t.speed*1.55,20)}s`),d=o.computed(()=>`${Math.max(t.speed*1.08,14)}s`),f=()=>r.value?ch:uh,h=()=>r.value?fh:dh,m=()=>{r.value=window.matchMedia("(max-width: 639px)").matches},v=()=>{const b=n.value?.clientHeight??window.innerHeight,x=f(),w=Math.ceil((b-ds)/x)+2;s.value=Math.max(hh,w)},g=()=>{m(),v()},p=o.computed(()=>{const b=f(),x=h(),w=[-10,3,-4,8],k=[-1.4,.8,-.4,1.2],S=[1,.96,.98,.95];return Array.from({length:s.value},(E,C)=>({key:C,offsetY:ds+C*b,shiftX:w[C%w.length]??0,tilt:k[C%k.length]??0,opacity:S[C%S.length]??1,span:x}))}),y=b=>({"--cluster-offset-y":`${b.offsetY}px`,"--cluster-shift-x":`${b.shiftX}%`,"--cluster-tilt":`${b.tilt}deg`,"--cluster-opacity":`${b.opacity}`,"--cluster-span":`${b.span}px`});return o.onMounted(()=>{m(),v(),window.addEventListener("resize",g,{passive:!0}),typeof ResizeObserver<"u"&&(a=new ResizeObserver(v),n.value&&a.observe(n.value))}),o.onBeforeUnmount(()=>{window.removeEventListener("resize",g),a?.disconnect(),a=null}),(b,x)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"rootEl",ref:n,class:o.normalizeClass(["ev-background",{"is-animated":e.animate}]),"aria-hidden":"true"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.value,w=>(o.openBlock(),o.createElementBlock("div",{key:w.key,class:"ev-background__cluster",style:o.normalizeStyle(y(w))},[...x[0]||(x[0]=[o.createStaticVNode('<div class="ev-background__glow ev-background__glow--blue-top" data-v-fee2da9f></div><div class="ev-background__glow ev-background__glow--pink-left" data-v-fee2da9f></div><div class="ev-background__glow ev-background__glow--yellow-left-bottom" data-v-fee2da9f></div><div class="ev-background__glow ev-background__glow--pink-bottom" data-v-fee2da9f></div><div class="ev-background__glow ev-background__glow--blue-right" data-v-fee2da9f></div><div class="ev-background__glow ev-background__glow--violet-center" data-v-fee2da9f></div><div class="ev-background__glow ev-background__glow--blue-top-left-accent" data-v-fee2da9f></div><div class="ev-background__glow ev-background__glow--pink-upper-mid" data-v-fee2da9f></div><div class="ev-background__glow ev-background__glow--blue-right-mid-accent" data-v-fee2da9f></div><div class="ev-background__glow ev-background__glow--warm-left-mid" data-v-fee2da9f></div><div class="ev-background__glow ev-background__glow--center-pink-cloud" data-v-fee2da9f></div><div class="ev-background__glow ev-background__glow--center-blue-cloud" data-v-fee2da9f></div>',12)])],4))),128))],2))}}),Tr=Z._export_sfc(ph,[["__scopeId","data-v-fee2da9f"]]),mh=o.defineComponent({__name:"EvBackgroundAnimated",props:{speed:{default:28}},setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createBlock(Tr,{animate:!0,speed:t.speed},null,8,["speed"]))}}),gh=o.defineComponent({__name:"EvBackgroundStatic",props:{speed:{default:28}},setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createBlock(Tr,{animate:!1,speed:t.speed},null,8,["speed"]))}}),vh={class:"max-w-[1376px] sm:pb-2 max-sm:pb-1 flex flex-col justify-between sm:h-[270px] w-full border-t border-foreground sm:mt-20 max-sm:mt-15 sm:pt-[26px] max-sm:pt-[24px]"},yh={class:"flex flex-col sm:flex-row justify-between gap-10 sm:gap-0"},bh={class:"flex flex-col lg:flex-row gap-6 lg:gap-20"},xh={class:"max-w-[446px] whitespace-pre-line"},wh={class:"flex gap-10 lg:gap-15 flex-wrap sm:flex-nowrap"},kh=["href"],Sh={key:1,class:"whitespace-nowrap"},Eh={class:"mt-8 sm:mt-0"},Ch=o.defineComponent({__name:"EvFooter",props:{description:{},columns:{},copyright:{}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("footer",vh,[o.createElementVNode("div",yh,[o.createElementVNode("div",bh,[o.renderSlot(t.$slots,"logo",{},()=>[o.createVNode(Z.EvixLogo)]),o.createElementVNode("span",xh,[o.renderSlot(t.$slots,"description",{},()=>[o.createTextVNode(o.toDisplayString(e.description),1)])])]),o.createElementVNode("div",wh,[o.renderSlot(t.$slots,"columns",{},()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.columns,(r,s)=>(o.openBlock(),o.createElementBlock("div",{key:s,class:"flex flex-col gap-2"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.links,(a,i)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:i},[a.href?(o.openBlock(),o.createElementBlock("a",{key:0,href:a.href,class:"hover:opacity-70 transition-opacity whitespace-nowrap"},o.toDisplayString(a.label),9,kh)):(o.openBlock(),o.createElementBlock("span",Sh,o.toDisplayString(a.label),1))],64))),128))]))),128))])])]),o.createElementVNode("div",Eh,[o.renderSlot(t.$slots,"copyright",{},()=>[o.createElementVNode("span",null,o.toDisplayString(e.copyright),1)])])]))}}),Bh={class:"flex flex-wrap gap-2"},Th=["onClick"],$h=o.defineComponent({__name:"BadgeFilters",props:o.mergeModels({items:{},activeColor:{default:"var(--white)"},activeTextColor:{default:"var(--foreground)"}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue"),n=s=>t.value.some(a=>JSON.stringify(a)===JSON.stringify(s)),r=s=>{const a=t.value.findIndex(i=>JSON.stringify(i)===JSON.stringify(s));a===-1?t.value=[...t.value,s]:t.value=t.value.filter((i,l)=>l!==a)};return(s,a)=>(o.openBlock(),o.createElementBlock("div",Bh,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(i,l)=>(o.openBlock(),o.createElementBlock("button",{key:l,type:"button",onClick:u=>r(i),class:o.normalizeClass(["rounded-[28px] leading-[17px]! border px-3 flex items-center text-[12px]! h-8 transition-all cursor-pointer whitespace-nowrap",[n(i)?"border-transparent":"border-white bg-transparent text-white"]]),style:o.normalizeStyle(n(i)?{backgroundColor:i.activeColor||e.activeColor,color:i.activeTextColor||e.activeTextColor}:{})},o.toDisplayString(i.label),15,Th))),128))]))}}),Mh={class:"flex flex-col w-full"},Vh=o.defineComponent({__name:"EvList",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",Mh,[o.renderSlot(t.$slots,"default")]))}}),Ph={class:"flex items-center gap-3 flex-1 min-w-0"},Ah={class:"w-12 h-12 shrink-0 rounded-full bg-gray-medium overflow-hidden flex items-center justify-center"},Lh={class:"flex flex-col min-w-0 md:w-33"},Dh={class:"text-base font-medium text-foreground leading-[1.2] truncate"},Nh={class:"text-sm text-gray-darkest mt-0.5 leading-[1.2] truncate"},Rh={class:"flex flex-col items-end shrink-0 text-right"},_h={class:"text-base font-medium text-foreground leading-[1.2] whitespace-nowrap"},Fh={class:"text-sm text-gray-darkest leading-[1.2] whitespace-nowrap"},Oh=o.defineComponent({__name:"EvListItem",props:{id:{},title:{},subtitle:{},value:{},subvalue:{},icon:{},hoverable:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,s=()=>{r("click",n.id)};return(a,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(we)("flex items-center justify-between gap-3 h-18 w-full min-w-0 overflow-hidden px-4 border-b border-gray-light last:border-b-0 transition-colors",e.hoverable&&"hover:bg-white/40 cursor-pointer")),onClick:s},[o.createElementVNode("div",Ph,[o.createElementVNode("div",Ah,[o.renderSlot(a.$slots,"icon",{},()=>[e.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.icon),{key:0,class:"w-full h-full object-contain"})):o.createCommentVNode("",!0)])]),o.createElementVNode("div",Lh,[o.createElementVNode("span",Dh,[o.renderSlot(a.$slots,"title",{},()=>[o.createTextVNode(o.toDisplayString(e.title),1)])]),o.createElementVNode("span",Nh,[o.renderSlot(a.$slots,"subtitle",{},()=>[o.createTextVNode(o.toDisplayString(e.subtitle),1)])])])]),o.createElementVNode("div",Rh,[o.createElementVNode("span",_h,[o.renderSlot(a.$slots,"value",{},()=>[o.createTextVNode(o.toDisplayString(e.value),1)])]),o.createElementVNode("span",Fh,[o.renderSlot(a.$slots,"subvalue",{},()=>[o.createTextVNode(o.toDisplayString(e.subvalue),1)])])])],2))}}),Ih={class:"fixed inset-0 flex items-center justify-center p-4"},jh={key:1},nl=o.defineComponent({__name:"EvPopup",props:{isOpen:{type:Boolean},title:{},size:{default:"md"},showCloseButton:{type:Boolean,default:!0},blur:{type:Boolean,default:!1}},emits:["close"],setup(e){const t=e,n=o.computed(()=>t.blur?"fixed inset-0 bg-black/40 backdrop-blur-sm":"fixed inset-0 bg-black/30"),r=o.computed(()=>t.size==="sm"?"w-full max-w-sm rounded-2xl bg-white p-6 shadow-xl":"w-full max-w-[500px] rounded-lg bg-white p-6 shadow-xl"),s=o.computed(()=>!t.title&&!t.showCloseButton?"":t.size==="sm"?"flex items-center justify-between mb-4":"flex items-center justify-between mb-8"),a=o.computed(()=>t.size==="sm"?"text-lg font-semibold text-foreground":"text-[24px] font-bold text-black leading-tight"),i=o.computed(()=>!!t.title||t.showCloseButton);return(l,u)=>(o.openBlock(),o.createBlock(o.unref(el),{appear:"",show:e.isOpen,as:"template"},{default:o.withCtx(()=>[o.createVNode(o.unref(Ld),{as:"div",class:"relative z-50",onClose:u[1]||(u[1]=c=>l.$emit("close"))},{default:o.withCtx(()=>[o.createVNode(o.unref(Io),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(n.value),"aria-hidden":"true"},null,2)]),_:1}),o.createElementVNode("div",Ih,[o.createVNode(o.unref(Io),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:o.withCtx(()=>[o.createVNode(o.unref(Dd),{class:o.normalizeClass(r.value)},{default:o.withCtx(()=>[i.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(s.value)},[e.title?(o.openBlock(),o.createBlock(o.unref(Nd),{key:0,class:o.normalizeClass(a.value)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["class"])):(o.openBlock(),o.createElementBlock("span",jh)),e.showCloseButton?(o.openBlock(),o.createElementBlock("button",{key:2,type:"button",class:"inline-flex items-center justify-center text-gray-400 hover:text-gray-500 transition-colors focus:outline-none cursor-pointer",onClick:u[0]||(u[0]=c=>l.$emit("close"))},[o.createVNode(o.unref(Z._sfc_main),{class:"w-4 h-4"})])):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0),o.renderSlot(l.$slots,"default")]),_:3},8,["class"])]),_:3})])]),_:3})]),_:3},8,["show"]))}}),zh={class:"flex flex-col w-full"},Kh={class:"text-foreground text-base"},Uh={class:"flex items-center gap-2"},Hh={class:"text-black text-base text-right"},Gh=["onClick"],Wh=o.defineComponent({__name:"TableInfo",props:{items:{}},setup(e){const t=async n=>{try{await navigator.clipboard.writeText(String(n))}catch(r){console.error("Failed to copy text: ",r)}};return(n,r)=>(o.openBlock(),o.createElementBlock("div",zh,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(s,a)=>(o.openBlock(),o.createElementBlock("div",{key:a,class:"flex justify-between items-center py-3 border-b border-gray-light last:border-0"},[o.createElementVNode("span",Kh,o.toDisplayString(s.label),1),o.createElementVNode("div",Uh,[o.createElementVNode("span",Hh,o.toDisplayString(s.value),1),s.copyable?(o.openBlock(),o.createElementBlock("button",{key:0,onClick:i=>t(s.value),class:"cursor-pointer hover:opacity-70 transition-opacity flex items-center justify-center p-1","aria-label":"Copy to clipboard"},[...r[0]||(r[0]=[o.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M14 4.30273C14.2575 4.30299 14.4658 4.51196 14.4658 4.76953V13.0771C14.4657 13.4455 14.32 13.799 14.0596 14.0596C13.7989 14.3202 13.4448 14.4668 13.0762 14.4668H4.76855C4.51096 14.4667 4.30184 14.2576 4.30176 14C4.30176 13.7423 4.51091 13.5333 4.76855 13.5332H13.0762C13.1972 13.5332 13.3138 13.485 13.3994 13.3994C13.4848 13.3139 13.5331 13.198 13.5332 13.0771V4.76953C13.5332 4.5118 13.7423 4.30273 14 4.30273ZM10.7695 1.5332C11.537 1.5332 12.1591 2.15536 12.1592 2.92285V10.7695C12.1589 11.5369 11.5369 12.1592 10.7695 12.1592H2.92383C2.15644 12.1592 1.53441 11.5369 1.53418 10.7695V2.92285C1.53423 2.15536 2.15633 1.5332 2.92383 1.5332H10.7695ZM2.92383 2.4668C2.67179 2.4668 2.46685 2.67083 2.4668 2.92285V10.7695C2.46703 11.0214 2.6719 11.2256 2.92383 11.2256H10.7695C11.0215 11.2256 11.2263 11.0214 11.2266 10.7695V2.92285C11.2265 2.67083 11.0216 2.4668 10.7695 2.4668H2.92383Z",fill:"var(--foreground)"})],-1)])],8,Gh)):o.createCommentVNode("",!0)])]))),128))]))}}),qh={class:"flex flex-row gap-5"},Yh=["src"],Xh={key:1,class:"shrink-0 sm:size-24 max-sm:size-[4.75rem] bg-gray-200 flex items-center justify-center"},Zh={class:"text-gray-400 text-2xl uppercase"},Jh={class:"flex flex-col gap-1 justify-center"},Qh={class:"text-sm"},ep={class:"text-[1.75rem] font-medium leading-tight",style:{"word-break":"break-word"}},tp={class:"text-base font-medium text-black/60"},np=o.defineComponent({__name:"AccountInfo",props:{avatar:{},label:{},name:{},email:{}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",qh,[o.renderSlot(t.$slots,"avatar",{},()=>[e.avatar?(o.openBlock(),o.createElementBlock("img",{key:0,class:"shrink-0 sm:size-24 max-sm:size-[4.75rem] object-cover rounded-full",src:e.avatar,alt:"Profile picture"},null,8,Yh)):(o.openBlock(),o.createElementBlock("div",Xh,[o.renderSlot(t.$slots,"avatar-fallback",{},()=>[o.createElementVNode("span",Zh,o.toDisplayString(e.name?.charAt(0)||"U"),1)])]))]),o.createElementVNode("div",Jh,[o.createElementVNode("span",Qh,[o.renderSlot(t.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(e.label||"Account:"),1)])]),o.createElementVNode("span",ep,[o.renderSlot(t.$slots,"name",{},()=>[o.createTextVNode(o.toDisplayString(e.name),1)])]),o.createElementVNode("span",tp,[o.renderSlot(t.$slots,"email",{},()=>[o.createTextVNode(o.toDisplayString(e.email),1)])])])]))}}),op={class:"flex items-start gap-3"},rp={class:"m-0 text-[2rem] font-medium text-foreground leading-[1.2] max-sm:text-[1.75rem]"},sp=o.defineComponent({__name:"PageHeader",props:{title:{},showArrow:{type:Boolean,default:!0}},emits:["onclick"],setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",op,[e.showArrow?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",class:"shrink-0 inline-flex items-center justify-center w-8 h-8 cursor-pointer translate-y-1 hover:opacity-70 transition-opacity max-sm:translate-y-0",onClick:n[0]||(n[0]=r=>t.$emit("onclick"))},[o.createVNode(o.unref(Z._sfc_main$2))])):o.createCommentVNode("",!0),o.createElementVNode("h1",rp,[o.renderSlot(t.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(e.title),1)])])]))}}),ip=["role"],ap={class:"flex items-start gap-3"},lp={class:"flex-1 min-w-0"},up={key:1,class:"mt-3"},cp=o.defineComponent({__name:"EvAlert",props:{variant:{default:"info"},title:{},class:{}},setup(e){const t=e,n=o.useSlots(),r={info:{container:"bg-info-bg border-info",title:"text-foreground",body:"text-info",iconColor:"var(--color-info)"},warning:{container:"bg-warning-bg border-warning",title:"text-warning-text",body:"text-warning-text",iconColor:"var(--color-warning-text)"},success:{container:"bg-success-bg border-success",title:"text-foreground",body:"text-foreground",iconColor:"var(--color-success)"},error:{container:"bg-error-bg border-error",title:"text-error-text",body:"text-error",iconColor:"var(--color-error)"}},s=o.computed(()=>r[t.variant]),a=o.computed(()=>we("p-4 border rounded-2xl",s.value.container,t.class)),i=o.computed(()=>t.variant==="error"||t.variant==="warning"?"alert":"status"),l=o.computed(()=>!!n.icon),u=o.computed(()=>!!n.actions);return(c,d)=>(o.openBlock(),o.createElementBlock("div",{role:i.value,class:o.normalizeClass(a.value)},[o.createElementVNode("div",ap,[l.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"flex-shrink-0 mt-0.5",style:o.normalizeStyle({color:s.value.iconColor})},[o.renderSlot(c.$slots,"icon")],4)):(o.openBlock(),o.createElementBlock("svg",{key:1,class:"flex-shrink-0 mt-0.5 h-5 w-5",style:o.normalizeStyle({color:s.value.iconColor}),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e.variant==="success"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[d[0]||(d[0]=o.createElementVNode("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"},null,-1)),d[1]||(d[1]=o.createElementVNode("path",{d:"M22 4 12 14.01l-3-3"},null,-1))],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[d[2]||(d[2]=o.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1)),d[3]||(d[3]=o.createElementVNode("path",{d:"M12 16v-4"},null,-1)),d[4]||(d[4]=o.createElementVNode("path",{d:"M12 8h.01"},null,-1))],64))],4)),o.createElementVNode("div",lp,[e.title?(o.openBlock(),o.createElementBlock("p",{key:0,class:o.normalizeClass(["text-[14px] font-semibold",s.value.title])},o.toDisplayString(e.title),3)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["text-[13px] leading-relaxed",s.value.body,e.title?"mt-1":""])},[o.renderSlot(c.$slots,"default")],2),u.value?(o.openBlock(),o.createElementBlock("div",up,[o.renderSlot(c.$slots,"actions")])):o.createCommentVNode("",!0)])])],10,ip))}}),dp={class:"w-full"},fp=["id","name","value","disabled","required","aria-invalid","aria-required","aria-describedby"],hp={key:0,value:"",disabled:"",hidden:""},pp=["value","disabled"],mp=["id"],gp=["id"],vp=o.defineComponent({inheritAttrs:!1,__name:"EvSelect",props:{modelValue:{},options:{},placeholder:{},size:{default:"md"},id:{},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{type:Boolean},errorMessage:{},helperText:{},class:{},selectClass:{}},emits:["update:modelValue","change","focus","blur"],setup(e,{emit:t}){const n=e,r=t,s={md:"h-[56px] px-4 rounded-[10px] text-[14px] sm:text-[15px]",sm:"h-10 px-3 rounded-[6px] text-[13px]"},a=`ev-select-${Math.random().toString(36).slice(2,9)}`,i=o.computed(()=>n.id??a),l=o.computed(()=>we("relative w-full bg-white border transition-colors",s[n.size],"flex items-center",n.error?"border-error":"border-gray-light",n.disabled?"bg-disabled-bg cursor-not-allowed":"",n.class)),u=o.computed(()=>we("w-full appearance-none bg-transparent pr-8 outline-none cursor-pointer font-medium text-foreground","disabled:cursor-not-allowed disabled:text-gray-dark",!n.modelValue&&n.placeholder?"text-gray-dark":"",n.selectClass)),c=o.computed(()=>n.error&&n.errorMessage?`${i.value}-error`:n.helperText?`${i.value}-help`:void 0);function d(f){const m=f.target.value,v=n.options.find(p=>String(p.value)===m),g=v?v.value:m;r("update:modelValue",g===""?null:g),r("change",f)}return(f,h)=>(o.openBlock(),o.createElementBlock("div",dp,[o.createElementVNode("div",{class:o.normalizeClass(l.value)},[o.createElementVNode("select",o.mergeProps(f.$attrs,{id:i.value,name:e.name,value:e.modelValue??"",disabled:e.disabled,required:e.required,"aria-invalid":e.error?"true":"false","aria-required":e.required?"true":"false","aria-describedby":c.value,class:u.value,onChange:d,onFocus:h[0]||(h[0]=m=>f.$emit("focus",m)),onBlur:h[1]||(h[1]=m=>f.$emit("blur",m))}),[e.placeholder?(o.openBlock(),o.createElementBlock("option",hp,o.toDisplayString(e.placeholder),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,m=>(o.openBlock(),o.createElementBlock("option",{key:String(m.value),value:m.value,disabled:m.disabled},o.toDisplayString(m.label),9,pp))),128))],16,fp),h[2]||(h[2]=o.createElementVNode("span",{class:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-gray-dark"},[o.createElementVNode("svg",{class:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[o.createElementVNode("path",{d:"M6 9l6 6 6-6"})])],-1))],2),e.error&&e.errorMessage?(o.openBlock(),o.createElementBlock("p",{key:0,id:`${i.value}-error`,class:"mt-2 px-3 text-xs text-error",role:"alert"},o.toDisplayString(e.errorMessage),9,mp)):e.helperText?(o.openBlock(),o.createElementBlock("p",{key:1,id:`${i.value}-help`,class:"mt-2 px-3 text-xs text-gray-darkest"},o.toDisplayString(e.helperText),9,gp)):o.createCommentVNode("",!0)]))}}),yp={key:0,class:"text-sm text-gray-darkest leading-relaxed"},bp={key:1,class:"mt-4 text-sm text-error",role:"alert"},xp={class:"mt-6 flex gap-3"},wp={class:"inline-flex items-center justify-center gap-2"},kp=o.defineComponent({__name:"EvConfirmDialog",props:{isOpen:{type:Boolean},title:{},description:{},confirmLabel:{default:"Confirm"},cancelLabel:{default:"Cancel"},loading:{type:Boolean,default:!1},destructive:{type:Boolean,default:!1},error:{},size:{default:"sm"},showCloseButton:{type:Boolean,default:!1},blur:{type:Boolean,default:!0}},emits:["confirm","cancel","close"],setup(e,{emit:t}){const n=e,r=t,s=o.computed(()=>n.destructive?"flex-1 bg-destructive":"flex-1");function a(){n.loading||(r("cancel"),r("close"))}function i(){n.loading||r("confirm")}return(l,u)=>(o.openBlock(),o.createBlock(o.unref(nl),{"is-open":e.isOpen,title:e.title,size:e.size,"show-close-button":e.showCloseButton,blur:e.blur,onClose:a},{default:o.withCtx(()=>[e.description||l.$slots.default?(o.openBlock(),o.createElementBlock("div",yp,[o.renderSlot(l.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(e.description),1)])])):o.createCommentVNode("",!0),e.error?(o.openBlock(),o.createElementBlock("p",bp,o.toDisplayString(e.error),1)):o.createCommentVNode("",!0),o.createElementVNode("div",xp,[o.createVNode(o.unref(St),{variant:"ghost",size:"xl",class:"flex-1 border border-gray-light","is-disabled":e.loading,onClick:a},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.cancelLabel),1)]),_:1},8,["is-disabled"]),o.createVNode(o.unref(St),{variant:"black",size:"xl",class:o.normalizeClass(s.value),"is-disabled":e.loading,onClick:i},{default:o.withCtx(()=>[o.createElementVNode("span",wp,[e.loading?(o.openBlock(),o.createBlock(o.unref(xr),{key:0,size:"xs",color:"var(--white)"})):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(e.confirmLabel),1)])]),_:1},8,["class","is-disabled"])])]),_:3},8,["is-open","title","size","show-close-button","blur"]))}}),Sp={key:0,class:"absolute inset-0 overflow-hidden pointer-events-none rounded-3xl","aria-hidden":"true"},Ep={class:"relative z-10 w-full"},Cp=o.defineComponent({__name:"EvGlassCard",props:{variant:{default:"default"},animated:{type:Boolean,default:!0},bubbles:{default:5},class:{}},setup(e){const t=e,n={default:"rgba(15, 23, 42, 0.35)",blue:"rgba(30, 64, 175, 0.30)",purple:"rgba(88, 28, 135, 0.35)",pink:"rgba(157, 23, 77, 0.30)",dark:"rgba(0, 0, 0, 0.55)"},r=["bg-gradient-to-r from-blue-400 to-purple-500","bg-gradient-to-r from-purple-400 to-pink-500","bg-gradient-to-r from-pink-400 to-red-500","bg-gradient-to-r from-yellow-400 to-orange-500","bg-gradient-to-r from-green-400 to-blue-500","bg-gradient-to-r from-indigo-400 to-purple-500"],s=o.computed(()=>we("relative min-h-screen w-full rounded-3xl shadow-2xl overflow-hidden",t.class)),a=o.computed(()=>({backgroundColor:n[t.variant],backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",border:"1px solid rgba(255, 255, 255, 0.16)"})),i=o.computed(()=>Array.from({length:t.bubbles},(l,u)=>{const c=80+u*40,d=u*37%100,f=u*53%100,h=u*.8;return{key:u,class:r[u%r.length],style:{width:`${c}px`,height:`${c}px`,left:`${d}%`,top:`${f}%`,animationDelay:`${h}s`,animationDuration:`${8+u*2}s`}}}));return(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(s.value),style:o.normalizeStyle(a.value)},[e.animated?(o.openBlock(),o.createElementBlock("div",Sp,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,c=>(o.openBlock(),o.createElementBlock("div",{key:c.key,class:o.normalizeClass(["ev-glass-bubble absolute rounded-full",c.class]),style:o.normalizeStyle(c.style)},null,6))),128))])):o.createCommentVNode("",!0),o.createElementVNode("div",Ep,[o.renderSlot(l.$slots,"default",{},void 0,!0)])],6))}}),Bp=Z._export_sfc(Cp,[["__scopeId","data-v-2caf0eb8"]]),Tp=o.defineComponent({__name:"EvAppBackground",props:{desktopSrc:{},mobileSrc:{},backgroundColor:{default:"var(--color-info-bg)"},animate:{type:Boolean,default:!1},speed:{default:28}},setup(e){o.useCssVars(s=>({v21798c66:n.value,v4a9099e9:r.value}));const t=e,n=o.computed(()=>t.desktopSrc?`url("${t.desktopSrc}")`:"none"),r=o.computed(()=>t.mobileSrc?`url("${t.mobileSrc}")`:n.value);return(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:"ev-app-background","aria-hidden":"true",style:o.normalizeStyle({backgroundColor:e.backgroundColor})},null,4))}}),$p=Z._export_sfc(Tp,[["__scopeId","data-v-e2423991"]]),Mp={class:"mx-auto max-w-4xl rounded-2xl bg-foreground border border-white/10 px-6 py-5 flex flex-col sm:flex-row items-start sm:items-center gap-4 shadow-2xl"},Vp={class:"flex-1 text-sm text-white/90 leading-relaxed"},Pp=["href"],Ap={class:"flex items-center gap-3 shrink-0"},Lp=o.defineComponent({__name:"EvCookieBanner",props:{visible:{type:Boolean},text:{},learnMoreHref:{},acceptAllLabel:{default:"Accept All"},acceptEssentialLabel:{default:"Only Essential"},class:{}},emits:["accept-all","accept-essential"],setup(e,{emit:t}){const n=e,r=t,s=o.computed(()=>we("fixed bottom-0 inset-x-0 z-40 p-4 sm:p-6",n.class));return(a,i)=>(o.openBlock(),o.createBlock(o.Transition,{"enter-active-class":"transition duration-300 ease-out","enter-from-class":"translate-y-full opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-200 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-full opacity-0"},{default:o.withCtx(()=>[e.visible?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(s.value)},[o.createElementVNode("div",Mp,[o.createElementVNode("div",Vp,[o.renderSlot(a.$slots,"text",{},()=>[o.createElementVNode("p",null,[o.createTextVNode(o.toDisplayString(e.text||"We use cookies to ensure the site works correctly and to improve your experience. Essential cookies are always active. You can choose to allow analytics cookies that help us understand how you use the site.")+" ",1),e.learnMoreHref?(o.openBlock(),o.createElementBlock("a",{key:0,href:e.learnMoreHref,class:"underline text-white hover:text-white/70 transition-colors"}," Learn more ",8,Pp)):o.createCommentVNode("",!0)])])]),o.createElementVNode("div",Ap,[o.renderSlot(a.$slots,"actions",{},()=>[o.createVNode(o.unref(St),{variant:"ghost",size:"sm",class:"text-white/80 border border-white/20",onClick:i[0]||(i[0]=l=>r("accept-essential"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.acceptEssentialLabel),1)]),_:1}),o.createVNode(o.unref(St),{variant:"black",size:"sm",class:"bg-white text-black",onClick:i[1]||(i[1]=l=>r("accept-all"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.acceptAllLabel),1)]),_:1})])])])],2)):o.createCommentVNode("",!0)]),_:3}))}}),Dp={key:0},Np={class:"flex sm:flex-col max-sm:flex-row gap-1"},Rp={class:"font-bold"},_p=o.defineComponent({__name:"EvHowToStep",props:{number:{},class:{}},setup(e){const t=e,n=o.computed(()=>we("flex gap-2 sm:w-54 max-sm:w-full",t.class));return(r,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(n.value)},[r.$slots.icon?(o.openBlock(),o.createElementBlock("div",Dp,[o.renderSlot(r.$slots,"icon")])):o.createCommentVNode("",!0),o.createElementVNode("div",Np,[o.createElementVNode("span",Rp,"#"+o.toDisplayString(e.number),1),o.createElementVNode("span",null,[o.renderSlot(r.$slots,"default")])])],2))}}),Fp=50,Op=10;let Kt=[],xt=0,Pn=null;function fs(){const e=Fp+Kt.length*Op;return Kt.push(e),{backdropZ:e,panelZ:e+1}}function hs(e){const t=Kt.indexOf(e.backdropZ);t!==-1&&Kt.splice(t,1)}function ps(){xt===0&&(Pn=document.body.style.overflow,document.body.style.overflow="hidden"),xt+=1}function ms(){xt=Math.max(0,xt-1),xt===0&&(document.body.style.overflow=Pn??"",Pn=null)}function Ip(){Kt=[],xt=0,Pn=null}const jp={class:"flex items-center justify-between px-6 py-5 border-b border-border"},zp={class:"flex-1 min-h-0 overflow-y-auto"},Kp={class:"p-6 text-foreground"},Up={key:0,class:"flex items-center justify-end gap-3 px-6 py-4 border-t border-border"},Hp=200,Gp=o.defineComponent({__name:"EvModal",props:{open:{type:Boolean},title:{},size:{default:"md"},closable:{type:Boolean,default:!0}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,s=`modal-title-${Math.random().toString(36).slice(2,9)}`,a=o.ref(null),i=o.ref(null),l=o.ref(null),u=o.ref(null),c=o.ref(!1),d=o.ref(!1);let f=null;const h=o.computed(()=>u.value?.panelZ??51),m=o.computed(()=>["relative w-full max-h-[90vh] overflow-hidden rounded-xl shadow-md border border-border bg-white text-foreground flex flex-col",{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl"}[n.size]].join(" "));function v(p){return p?Array.from(p.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(y=>y.offsetParent!==null||y===document.activeElement):[]}function g(p){if(!(!c.value||!n.open)){if(p.key==="Escape"&&n.closable){p.preventDefault(),r("close");return}if(p.key==="Tab"){const y=v(i.value);if(y.length===0){p.preventDefault();return}const b=y[0],x=y[y.length-1];if(!b||!x)return;const w=document.activeElement;p.shiftKey&&(w===b||!i.value?.contains(w))?(p.preventDefault(),x.focus()):!p.shiftKey&&w===x&&(p.preventDefault(),b.focus())}}}return o.watch(()=>n.open,async p=>{if(p)f&&(clearTimeout(f),f=null),l.value=document.activeElement,u.value=fs(),ps(),c.value=!0,await o.nextTick(),i.value?.getBoundingClientRect(),await new Promise(b=>setTimeout(b,0)),d.value=!0,await o.nextTick(),(v(i.value)[0]??i.value)?.focus();else{d.value=!1,f=setTimeout(()=>{c.value=!1,f=null,u.value&&(hs(u.value),ms(),u.value=null)},Hp);const y=l.value;l.value=null,y&&typeof y.focus=="function"&&y.focus()}}),document.addEventListener("keydown",g),o.onMounted(async()=>{n.open&&(l.value=document.activeElement,u.value=fs(),ps(),c.value=!0,await o.nextTick(),requestAnimationFrame(()=>{d.value=!0}),await o.nextTick(),(v(i.value)[0]??i.value)?.focus())}),o.onBeforeUnmount(()=>{document.removeEventListener("keydown",g),f&&(clearTimeout(f),f=null),u.value&&(hs(u.value),ms(),u.value=null)}),(p,y)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[c.value?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"containerRef",ref:a,class:o.normalizeClass(["fixed inset-0 overflow-y-auto transition-opacity duration-200",d.value?"ease-out opacity-100":"ease-in opacity-0"]),style:o.normalizeStyle({zIndex:h.value}),role:"dialog","aria-modal":"true","aria-labelledby":s},[o.createElementVNode("div",{class:"fixed inset-0 bg-black/40","aria-hidden":"true",onClick:y[0]||(y[0]=b=>e.closable&&r("close"))}),o.createElementVNode("div",{class:"relative flex min-h-full items-center justify-center p-4 text-left",onClick:y[2]||(y[2]=o.withModifiers(b=>e.closable&&r("close"),["self"]))},[o.createElementVNode("div",{ref_key:"panelRef",ref:i,class:o.normalizeClass([m.value,"transition-all duration-200",d.value?"ease-out opacity-100 scale-100 translate-y-0":"ease-in opacity-0 scale-95 translate-y-3"])},[o.createElementVNode("div",jp,[o.createElementVNode("h2",{id:s,class:"text-xl font-semibold text-foreground"},o.toDisplayString(e.title),1),e.closable?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",class:"p-2 rounded-md text-gray-darkest hover:text-foreground hover:bg-gray-lightest transition-colors duration-150","aria-label":"Close",onClick:y[1]||(y[1]=b=>r("close"))},[o.createVNode(Z._sfc_main,{class:"w-5 h-5",color:"currentColor"})])):o.createCommentVNode("",!0)]),o.createElementVNode("div",zp,[o.createElementVNode("div",Kp,[o.renderSlot(p.$slots,"default")])]),p.$slots.footer?(o.openBlock(),o.createElementBlock("div",Up,[o.renderSlot(p.$slots,"footer")])):o.createCommentVNode("",!0)],2)])],6)):o.createCommentVNode("",!0)]))}}),Wp={class:"min-w-full divide-y divide-gray-lightest"},qp={class:"bg-gray-lightest"},Yp={key:0,class:"px-3 py-3 w-10"},Xp=["checked","indeterminate"],Zp=["onClick"],Jp={class:"flex items-center space-x-1"},Qp={key:0,class:"flex flex-col"},em={class:"bg-white divide-y divide-gray-lightest"},tm=["onClick"],nm=["checked","onChange"],om=["onClick"],rm={key:0},sm=o.defineComponent({__name:"EvDataTable",props:{data:{default:()=>[]},columns:{},sortField:{default:""},sortDirection:{default:"asc"},page:{default:1},pageSize:{default:0},selectable:{type:Boolean,default:!1},selectedKeys:{default:()=>[]},rowKey:{default:"id"}},emits:["sort","update:page","row-click","update:selectedKeys"],setup(e,{emit:t}){const n=o.ref(null);let r=0,s=!1;function a(k){const E=k.target?.closest("button");E&&n.value&&n.value.contains(E)&&E.focus({preventScroll:!0})}function i(){s=!0,n.value&&(n.value.scrollLeft=r),requestAnimationFrame(()=>{s=!1})}function l(){s||n.value&&(r=n.value.scrollLeft)}o.onMounted(()=>{const k=n.value;k&&(k.addEventListener("focusin",i),k.addEventListener("scroll",l,{passive:!0}))}),o.onBeforeUnmount(()=>{const k=n.value;k&&(k.removeEventListener("focusin",i),k.removeEventListener("scroll",l))});const u=e,c=t;function d(k){const S=k[u.rowKey];return typeof S=="string"||typeof S=="number"?S:0}function f(k){return u.selectedKeys.includes(d(k))}const h=o.computed(()=>w.value.length>0&&w.value.every(k=>f(k))),m=o.computed(()=>w.value.some(k=>f(k)));function v(k){const S=d(k),E=f(k)?u.selectedKeys.filter(C=>C!==S):[...u.selectedKeys,S];c("update:selectedKeys",E)}function g(){if(h.value){const k=new Set(w.value.map(d));c("update:selectedKeys",u.selectedKeys.filter(S=>!k.has(S)))}else{const k=new Set(u.selectedKeys),S=w.value.map(d).filter(E=>!k.has(E));c("update:selectedKeys",[...u.selectedKeys,...S])}}function p(k,S){return S.split(".").reduce((E,C)=>{if(E&&typeof E=="object"&&E!==null&&C in E)return E[C]},k)}function y(k,S){return typeof k.id=="string"||typeof k.id=="number"?k.id:typeof k.key=="string"||typeof k.key=="number"?k.key:S}function b(k){const S=u.sortField===k&&u.sortDirection==="asc"?"desc":"asc";c("sort",k,S)}function x(k){c("row-click",k)}const w=o.computed(()=>{if(!u.data)return[];const k=Array.isArray(u.data)?u.data:[];if(!u.pageSize||u.pageSize<=0)return k;const S=(u.page-1)*u.pageSize,E=S+u.pageSize;return k.slice(S,E)});return(k,S)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"wrapperRef",ref:n,class:"overflow-x-auto rounded-lg border border-border bg-white",onMousedown:a},[o.createElementVNode("table",Wp,[o.createElementVNode("thead",qp,[o.createElementVNode("tr",null,[e.selectable?(o.openBlock(),o.createElementBlock("th",Yp,[o.createElementVNode("input",{type:"checkbox",checked:h.value,indeterminate:m.value&&!h.value,class:"rounded border-border accent-foreground",onChange:g},null,40,Xp)])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.columns,E=>(o.openBlock(),o.createElementBlock("th",{key:E.key,scope:"col",class:o.normalizeClass(["px-6 py-3 text-left text-xs font-medium text-gray-darkest uppercase tracking-wider",E.sortable?"cursor-pointer hover:bg-gray-lightest":"",E.class||""]),onClick:C=>E.sortable?b(E.key):null},[o.createElementVNode("div",Jp,[o.createElementVNode("span",null,o.toDisplayString(E.label),1),E.sortable?(o.openBlock(),o.createElementBlock("span",Qp,[(o.openBlock(),o.createElementBlock("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:o.normalizeClass(["h-4 w-4",e.sortField===E.key&&e.sortDirection==="asc"?"text-foreground":"text-gray-dark"])},[...S[1]||(S[1]=[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.77 12.79a.75.75 0 0 1-1.06-.02L10 8.832 6.29 12.77a.75.75 0 1 1-1.08-1.04l4.25-4.5a.75.75 0 0 1 1.08 0l4.25 4.5a.75.75 0 0 1-.02 1.06Z","clip-rule":"evenodd"},null,-1)])],2)),(o.openBlock(),o.createElementBlock("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:o.normalizeClass(["h-4 w-4 -mt-1",e.sortField===E.key&&e.sortDirection==="desc"?"text-foreground":"text-gray-dark"])},[...S[2]||(S[2]=[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 0 1 1.06.02L10 11.168l3.71-3.938a.75.75 0 1 1 1.08 1.04l-4.25 4.5a.75.75 0 0 1-1.08 0l-4.25-4.5a.75.75 0 0 1 .02-1.06Z","clip-rule":"evenodd"},null,-1)])],2))])):o.createCommentVNode("",!0)])],10,Zp))),128))])]),o.createElementVNode("tbody",em,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w.value,(E,C)=>(o.openBlock(),o.createElementBlock("tr",{key:y(E,C),class:"bg-white hover:bg-gray-lightest cursor-pointer transition-colors",onClick:$=>x(E)},[e.selectable?(o.openBlock(),o.createElementBlock("td",{key:0,class:"px-3 py-4 w-10",onClick:S[0]||(S[0]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("input",{type:"checkbox",checked:f(E),class:"rounded border-border accent-foreground",onChange:$=>v(E)},null,40,nm)])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.columns,$=>(o.openBlock(),o.createElementBlock("td",{key:$.key,class:o.normalizeClass(["px-6 py-4 whitespace-nowrap text-sm text-foreground",$.class||""]),onClick:o.withModifiers(B=>$.key==="actions"?null:x(E),["stop"])},[o.renderSlot(k.$slots,`cell-${$.key}`,{row:E,value:p(E,$.key)},()=>[o.createTextVNode(o.toDisplayString(p(E,$.key)),1)])],10,om))),128))],8,tm))),128))])]),w.value.length?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",rm,[o.renderSlot(k.$slots,"empty",{},()=>[S[3]||(S[3]=o.createElementVNode("div",{class:"text-center py-12 text-gray-darkest text-sm"},"No data",-1))])]))],544))}});function on(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(n);return[i=>{const l=o.inject(r,i);if(l===void 0)throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`);return l},i=>(o.provide(r,i),i),r]}function im(e,t){const{layoutGroup:n,presenceContext:r,config:s}=t,a=n.id&&e.layoutId?`${n.id}-${e.layoutId}`:e.layoutId||void 0;return{...e,layoutId:a,transition:e.transition??s.transition,layoutGroup:n,motionConfig:s,inViewOptions:e.inViewOptions??s.inViewOptions,presenceContext:r,initial:r.initial===!1?r.initial:e.initial===!0?void 0:e.initial}}function $r(e,t){e.indexOf(t)===-1&&e.push(t)}function An(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ae=(e,t,n)=>n>t?t:n<e?e:n;function jo(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let rn=()=>{},ut=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(rn=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(jo(t,n))},ut=(e,t,n)=>{if(!e)throw new Error(jo(t,n))});const Ke={},ol=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),rl=e=>typeof e=="object"&&e!==null,sl=e=>/^0[^.\s]+$/u.test(e);function il(e){let t;return()=>(t===void 0&&(t=e()),t)}const xe=e=>e,sn=(...e)=>e.reduce((t,n)=>r=>n(t(r))),Ut=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class Mr{constructor(){this.subscriptions=[]}add(t){return $r(this.subscriptions,t),()=>An(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let a=0;a<s;a++){const i=this.subscriptions[a];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ge=e=>e*1e3,be=e=>e/1e3,al=(e,t)=>t?e*(1e3/t):0,gs=new Set;function ll(e,t,n){e||gs.has(t)||(console.warn(jo(t,n)),gs.add(t))}const ul=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,am=1e-7,lm=12;function um(e,t,n,r,s){let a,i,l=0;do i=t+(n-t)/2,a=ul(i,r,s)-e,a>0?n=i:t=i;while(Math.abs(a)>am&&++l<lm);return i}function an(e,t,n,r){if(e===t&&n===r)return xe;const s=a=>um(a,0,1,e,n);return a=>a===0||a===1?a:ul(s(a),t,r)}const cl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,dl=e=>t=>1-e(1-t),fl=an(.33,1.53,.69,.99),Vr=dl(fl),hl=cl(Vr),pl=e=>e>=1?1:(e*=2)<1?.5*Vr(e):.5*(2-Math.pow(2,-10*(e-1))),Pr=e=>1-Math.sin(Math.acos(e)),ml=dl(Pr),gl=cl(Pr),cm=an(.42,0,1,1),dm=an(0,0,.58,1),vl=an(.42,0,.58,1),fm=e=>Array.isArray(e)&&typeof e[0]!="number",yl=e=>Array.isArray(e)&&typeof e[0]=="number",vs={linear:xe,easeIn:cm,easeInOut:vl,easeOut:dm,circIn:Pr,circInOut:gl,circOut:ml,backIn:Vr,backInOut:hl,backOut:fl,anticipate:pl},hm=e=>typeof e=="string",ys=e=>{if(yl(e)){ut(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return an(t,n,r,s)}else if(hm(e))return ut(vs[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),vs[e];return e},vn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function pm(e,t){let n=new Set,r=new Set,s=!1,a=!1;const i=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function u(d){i.has(d)&&(c.schedule(d),e()),d(l)}const c={schedule:(d,f=!1,h=!1)=>{const v=h&&s?n:r;return f&&i.add(d),v.add(d),d},cancel:d=>{r.delete(d),i.delete(d)},process:d=>{if(l=d,s){a=!0;return}s=!0;const f=n;n=r,r=f,n.forEach(u),n.clear(),s=!1,a&&(a=!1,c.process(d))}};return c}const mm=40;function bl(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,i=vn.reduce((x,w)=>(x[w]=pm(a),x),{}),{setup:l,read:u,resolveKeyframes:c,preUpdate:d,update:f,preRender:h,render:m,postRender:v}=i,g=()=>{const x=Ke.useManualTiming,w=x?s.timestamp:performance.now();n=!1,x||(s.delta=r?1e3/60:Math.max(Math.min(w-s.timestamp,mm),1)),s.timestamp=w,s.isProcessing=!0,l.process(s),u.process(s),c.process(s),d.process(s),f.process(s),h.process(s),m.process(s),v.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(g))},p=()=>{n=!0,r=!0,s.isProcessing||e(g)};return{schedule:vn.reduce((x,w)=>{const k=i[w];return x[w]=(S,E=!1,C=!1)=>(n||p(),k.schedule(S,E,C)),x},{}),cancel:x=>{for(let w=0;w<vn.length;w++)i[vn[w]].cancel(x)},state:s,steps:i}}const{schedule:U,cancel:Ue,state:ie,steps:fo}=bl(typeof requestAnimationFrame<"u"?requestAnimationFrame:xe,!0);let En;function gm(){En=void 0}const de={now:()=>(En===void 0&&de.set(ie.isProcessing||Ke.useManualTiming?ie.timestamp:performance.now()),En),set:e=>{En=e,queueMicrotask(gm)}},xl=e=>t=>typeof t=="string"&&t.startsWith(e),Ar=xl("--"),vm=xl("var(--"),Lr=e=>vm(e)?ym.test(e.split("/*")[0].trim()):!1,ym=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function bs(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Mt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ht={...Mt,transform:e=>Ae(0,1,e)},yn={...Mt,default:1},It=e=>Math.round(e*1e5)/1e5,Dr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function bm(e){return e==null}const xm=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nr=(e,t)=>n=>!!(typeof n=="string"&&xm.test(n)&&n.startsWith(e)||t&&!bm(n)&&Object.prototype.hasOwnProperty.call(n,t)),wl=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,a,i,l]=r.match(Dr);return{[e]:parseFloat(s),[t]:parseFloat(a),[n]:parseFloat(i),alpha:l!==void 0?parseFloat(l):1}},wm=e=>Ae(0,255,e),ho={...Mt,transform:e=>Math.round(wm(e))},tt={test:Nr("rgb","red"),parse:wl("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ho.transform(e)+", "+ho.transform(t)+", "+ho.transform(n)+", "+It(Ht.transform(r))+")"};function km(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const zo={test:Nr("#"),parse:km,transform:tt.transform},ln=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),De=ln("deg"),Ve=ln("%"),D=ln("px"),Sm=ln("vh"),Em=ln("vw"),xs={...Ve,parse:e=>Ve.parse(e)/100,transform:e=>Ve.transform(e*100)},mt={test:Nr("hsl","hue"),parse:wl("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ve.transform(It(t))+", "+Ve.transform(It(n))+", "+It(Ht.transform(r))+")"},ne={test:e=>tt.test(e)||zo.test(e)||mt.test(e),parse:e=>tt.test(e)?tt.parse(e):mt.test(e)?mt.parse(e):zo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?tt.transform(e):mt.transform(e),getAnimatableNone:e=>{const t=ne.parse(e);return t.alpha=0,ne.transform(t)}},Cm=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Bm(e){return isNaN(e)&&typeof e=="string"&&(e.match(Dr)?.length||0)+(e.match(Cm)?.length||0)>0}const kl="number",Sl="color",Tm="var",$m="var(",ws="${}",Mm=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Et(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let a=0;const l=t.replace(Mm,u=>(ne.test(u)?(r.color.push(a),s.push(Sl),n.push(ne.parse(u))):u.startsWith($m)?(r.var.push(a),s.push(Tm),n.push(u)):(r.number.push(a),s.push(kl),n.push(parseFloat(u))),++a,ws)).split(ws);return{values:n,split:l,indexes:r,types:s}}function Vm(e){return Et(e).values}function El({split:e,types:t}){const n=e.length;return r=>{let s="";for(let a=0;a<n;a++)if(s+=e[a],r[a]!==void 0){const i=t[a];i===kl?s+=It(r[a]):i===Sl?s+=ne.transform(r[a]):s+=r[a]}return s}}function Pm(e){return El(Et(e))}const Am=e=>typeof e=="number"?0:ne.test(e)?ne.getAnimatableNone(e):e,Lm=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:Am(e);function Dm(e){const t=Et(e);return El(t)(t.values.map((r,s)=>Lm(r,t.split[s])))}const Be={test:Bm,parse:Vm,createTransformer:Pm,getAnimatableNone:Dm};function po(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Nm({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,a=0,i=0;if(!t)s=a=i=n;else{const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;s=po(u,l,e+1/3),a=po(u,l,e),i=po(u,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:r}}function Ln(e,t){return n=>n>0?t:e}const W=(e,t,n)=>e+(t-e)*n,mo=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Rm=[zo,tt,mt],_m=e=>Rm.find(t=>t.test(e));function ks(e){const t=_m(e);if(rn(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===mt&&(n=Nm(n)),n}const Ss=(e,t)=>{const n=ks(e),r=ks(t);if(!n||!r)return Ln(e,t);const s={...n};return a=>(s.red=mo(n.red,r.red,a),s.green=mo(n.green,r.green,a),s.blue=mo(n.blue,r.blue,a),s.alpha=W(n.alpha,r.alpha,a),tt.transform(s))},Ko=new Set(["none","hidden"]);function Fm(e,t){return Ko.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Om(e,t){return n=>W(e,t,n)}function Rr(e){return typeof e=="number"?Om:typeof e=="string"?Lr(e)?Ln:ne.test(e)?Ss:zm:Array.isArray(e)?Cl:typeof e=="object"?ne.test(e)?Ss:Im:Ln}function Cl(e,t){const n=[...e],r=n.length,s=e.map((a,i)=>Rr(a)(a,t[i]));return a=>{for(let i=0;i<r;i++)n[i]=s[i](a);return n}}function Im(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Rr(e[s])(e[s],t[s]));return s=>{for(const a in r)n[a]=r[a](s);return n}}function jm(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const a=t.types[s],i=e.indexes[a][r[a]],l=e.values[i]??0;n[s]=l,r[a]++}return n}const zm=(e,t)=>{const n=Be.createTransformer(t),r=Et(e),s=Et(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Ko.has(e)&&!s.values.length||Ko.has(t)&&!r.values.length?Fm(e,t):sn(Cl(jm(r,s),s.values),n):(rn(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Ln(e,t))};function Bl(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?W(e,t,n):Rr(e)(e,t)}const Km=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>U.update(t,n),stop:()=>Ue(t),now:()=>ie.isProcessing?ie.timestamp:de.now()}},Tl=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let a=0;a<s;a++)r+=Math.round(e(a/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Dn=2e4;function _r(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Dn;)t+=n,r=e.next(t);return t>=Dn?1/0:t}function Um(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(_r(r),Dn);return{type:"keyframes",ease:a=>r.next(s*a).value/t,duration:be(s)}}const X={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Uo(e,t){return e*Math.sqrt(1-t*t)}const Hm=12;function Gm(e,t,n){let r=n;for(let s=1;s<Hm;s++)r=r-e(r)/t(r);return r}const go=.001;function Wm({duration:e=X.duration,bounce:t=X.bounce,velocity:n=X.velocity,mass:r=X.mass}){let s,a;rn(e<=ge(X.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=Ae(X.minDamping,X.maxDamping,i),e=Ae(X.minDuration,X.maxDuration,be(e)),i<1?(s=c=>{const d=c*i,f=d*e,h=d-n,m=Uo(c,i),v=Math.exp(-f);return go-h/m*v},a=c=>{const f=c*i*e,h=f*n+n,m=Math.pow(i,2)*Math.pow(c,2)*e,v=Math.exp(-f),g=Uo(Math.pow(c,2),i);return(-s(c)+go>0?-1:1)*((h-m)*v)/g}):(s=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-go+d*f},a=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const l=5/e,u=Gm(s,a,l);if(e=ge(e),isNaN(u))return{stiffness:X.stiffness,damping:X.damping,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:i*2*Math.sqrt(r*c),duration:e}}}const qm=["duration","bounce"],Ym=["stiffness","damping","mass"];function Es(e,t){return t.some(n=>e[n]!==void 0)}function Xm(e){let t={velocity:X.velocity,stiffness:X.stiffness,damping:X.damping,mass:X.mass,isResolvedFromDuration:!1,...e};if(!Es(e,Ym)&&Es(e,qm))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,a=2*Ae(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:X.mass,stiffness:s,damping:a}}else{const n=Wm({...e,velocity:0});t={...t,...n,mass:X.mass},t.isResolvedFromDuration=!0}return t}function Nn(e=X.visualDuration,t=X.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const a=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:c,mass:d,duration:f,velocity:h,isResolvedFromDuration:m}=Xm({...n,velocity:-be(n.velocity||0)}),v=h||0,g=c/(2*Math.sqrt(u*d)),p=i-a,y=be(Math.sqrt(u/d)),b=Math.abs(p)<5;r||(r=b?X.restSpeed.granular:X.restSpeed.default),s||(s=b?X.restDelta.granular:X.restDelta.default);let x,w,k,S,E,C;if(g<1)k=Uo(y,g),S=(v+g*y*p)/k,x=B=>{const N=Math.exp(-g*y*B);return i-N*(S*Math.sin(k*B)+p*Math.cos(k*B))},E=g*y*S+p*k,C=g*y*p-S*k,w=B=>Math.exp(-g*y*B)*(E*Math.sin(k*B)+C*Math.cos(k*B));else if(g===1){x=N=>i-Math.exp(-y*N)*(p+(v+y*p)*N);const B=v+y*p;w=N=>Math.exp(-y*N)*(y*B*N-v)}else{const B=y*Math.sqrt(g*g-1);x=P=>{const F=Math.exp(-g*y*P),R=Math.min(B*P,300);return i-F*((v+g*y*p)*Math.sinh(R)+B*p*Math.cosh(R))/B};const N=(v+g*y*p)/B,T=g*y*N-p*B,M=g*y*p-N*B;w=P=>{const F=Math.exp(-g*y*P),R=Math.min(B*P,300);return F*(T*Math.sinh(R)+M*Math.cosh(R))}}const $={calculatedDuration:m&&f||null,velocity:B=>ge(w(B)),next:B=>{if(!m&&g<1){const T=Math.exp(-g*y*B),M=Math.sin(k*B),P=Math.cos(k*B),F=i-T*(S*M+p*P),R=ge(T*(E*M+C*P));return l.done=Math.abs(R)<=r&&Math.abs(i-F)<=s,l.value=l.done?i:F,l}const N=x(B);if(m)l.done=B>=f;else{const T=ge(w(B));l.done=Math.abs(T)<=r&&Math.abs(i-N)<=s}return l.value=l.done?i:N,l},toString:()=>{const B=Math.min(_r($),Dn),N=Tl(T=>$.next(B*T).value,B,30);return B+"ms "+N},toTransition:()=>{}};return $}Nn.applyToOptions=e=>{const t=Um(e,100,Nn);return e.ease=t.ease,e.duration=ge(t.duration),e.type="keyframes",e};const Zm=5;function $l(e,t,n){const r=Math.max(t-Zm,0);return al(n-e(r),t-r)}function Ho({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:i,min:l,max:u,restDelta:c=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},m=C=>l!==void 0&&C<l||u!==void 0&&C>u,v=C=>l===void 0?u:u===void 0||Math.abs(l-C)<Math.abs(u-C)?l:u;let g=n*t;const p=f+g,y=i===void 0?p:i(p);y!==p&&(g=y-f);const b=C=>-g*Math.exp(-C/r),x=C=>y+b(C),w=C=>{const $=b(C),B=x(C);h.done=Math.abs($)<=c,h.value=h.done?y:B};let k,S;const E=C=>{m(h.value)&&(k=C,S=Nn({keyframes:[h.value,v(h.value)],velocity:$l(x,C,h.value),damping:s,stiffness:a,restDelta:c,restSpeed:d}))};return E(0),{calculatedDuration:null,next:C=>{let $=!1;return!S&&k===void 0&&($=!0,w(C),E(C)),k!==void 0&&C>=k?S.next(C-k):(!$&&w(C),h)}}}function Jm(e,t,n){const r=[],s=n||Ke.mix||Bl,a=e.length-1;for(let i=0;i<a;i++){let l=s(e[i],e[i+1]);if(t){const u=Array.isArray(t)?t[i]||xe:t;l=sn(u,l)}r.push(l)}return r}function Qm(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const a=e.length;if(ut(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Jm(t,r,s),u=l.length,c=d=>{if(i&&d<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=Ut(e[f],e[f+1],d);return l[f](h)};return n?d=>c(Ae(e[0],e[a-1],d)):c}function eg(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Ut(0,t,r);e.push(W(n,1,s))}}function tg(e){const t=[0];return eg(t,e.length-1),t}function ng(e,t){return e.map(n=>n*t)}function og(e,t){return e.map(()=>t||vl).splice(0,e.length-1)}function gt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=fm(r)?r.map(ys):ys(r),a={done:!1,value:t[0]},i=ng(n&&n.length===t.length?n:tg(t),e),l=Qm(i,t,{ease:Array.isArray(s)?s:og(t,s)});return{calculatedDuration:e,next:u=>(a.value=l(u),a.done=u>=e,a)}}const rg=e=>e!==null;function to(e,{repeat:t,repeatType:n="loop"},r,s=1){const a=e.filter(rg),l=s<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!l||r===void 0?a[l]:r}const sg={decay:Ho,inertia:Ho,tween:gt,keyframes:gt,spring:Nn};function Ml(e){typeof e.type=="string"&&(e.type=sg[e.type])}class Fr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const ig=e=>e/100;class Rn extends Fr{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==de.now()&&this.tick(de.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ml(t);const{type:n=gt,repeat:r=0,repeatDelay:s=0,repeatType:a,velocity:i=0}=t;let{keyframes:l}=t;const u=n||gt;process.env.NODE_ENV!=="production"&&u!==gt&&ut(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),u!==gt&&typeof l[0]!="number"&&(this.mixKeyframes=sn(ig,Bl(l[0],l[1])),l=[0,100]);const c=u({...t,keyframes:l});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...l].reverse(),velocity:-i})),c.calculatedDuration===null&&(c.calculatedDuration=_r(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:a,mirroredGenerator:i,resolvedDuration:l,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:m,type:v,onUpdate:g,finalKeyframe:p}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-c*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>s;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let x=this.currentTime,w=r;if(f){const C=Math.min(this.currentTime,s)/l;let $=Math.floor(C),B=C%1;!B&&C>=1&&(B=1),B===1&&$--,$=Math.min($,f+1),!!($%2)&&(h==="reverse"?(B=1-B,m&&(B-=m/l)):h==="mirror"&&(w=i)),x=Ae(0,1,B)*l}let k;b?(this.delayState.value=d[0],k=this.delayState):k=w.next(x),a&&!b&&(k.value=a(k.value));let{done:S}=k;!b&&u!==null&&(S=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return E&&v!==Ho&&(k.value=to(d,this.options,p,this.speed)),g&&g(k.value),E&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return be(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+be(t)}get time(){return be(this.currentTime)}set time(t){t=ge(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return $l(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(de.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=be(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Km,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(de.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function ag(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const nt=e=>e*180/Math.PI,Go=e=>{const t=nt(Math.atan2(e[1],e[0]));return Wo(t)},lg={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Go,rotateZ:Go,skewX:e=>nt(Math.atan(e[1])),skewY:e=>nt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Wo=e=>(e=e%360,e<0&&(e+=360),e),Cs=Go,Bs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ts=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ug={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bs,scaleY:Ts,scale:e=>(Bs(e)+Ts(e))/2,rotateX:e=>Wo(nt(Math.atan2(e[6],e[5]))),rotateY:e=>Wo(nt(Math.atan2(-e[2],e[0]))),rotateZ:Cs,rotate:Cs,skewX:e=>nt(Math.atan(e[4])),skewY:e=>nt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function qo(e){return e.includes("scale")?1:0}function Yo(e,t){if(!e||e==="none")return qo(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=ug,s=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=lg,s=l}if(!s)return qo(t);const a=r[t],i=s[1].split(",").map(dg);return typeof a=="function"?a(i):i[a]}const cg=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Yo(n,t)};function dg(e){return parseFloat(e.trim())}const Vt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Pt=new Set([...Vt,"pathRotation"]),$s=e=>e===Mt||e===D,fg=new Set(["x","y","z"]),hg=Vt.filter(e=>!fg.has(e));function pg(e){const t=[];return hg.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const je={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Yo(t,"x"),y:(e,{transform:t})=>Yo(t,"y")};je.translateX=je.x;je.translateY=je.y;const st=new Set;let Xo=!1,Zo=!1,Jo=!1;function Vl(){if(Zo){const e=Array.from(st).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=pg(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([a,i])=>{r.getValue(a)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Zo=!1,Xo=!1,st.forEach(e=>e.complete(Jo)),st.clear()}function Pl(){st.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Zo=!0)})}function mg(){Jo=!0,Pl(),Vl(),Jo=!1}class Or{constructor(t,n,r,s,a,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=a,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(st.add(this),Xo||(Xo=!0,U.read(Pl),U.resolveKeyframes(Vl))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const a=s?.get(),i=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const l=r.readValue(n,i);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=i),s&&a===void 0&&s.set(t[0])}ag(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),st.delete(this)}cancel(){this.state==="scheduled"&&(st.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const gg=e=>e.startsWith("--");function Al(e,t,n){gg(t)?e.style.setProperty(t,n):e.style[t]=n}const vg={};function Ll(e,t){const n=il(e);return()=>vg[t]??n()}const yg=Ll(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Dl=Ll(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ft=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ms={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ft([0,.65,.55,1]),circOut:Ft([.55,0,1,.45]),backIn:Ft([.31,.01,.66,-.59]),backOut:Ft([.33,1.53,.69,.99])};function Nl(e,t){if(e)return typeof e=="function"?Dl()?Tl(e,t):"ease-out":yl(e)?Ft(e):Array.isArray(e)?e.map(n=>Nl(n,t)||Ms.easeOut):Ms[e]}function bg(e,t,n,{delay:r=0,duration:s=300,repeat:a=0,repeatType:i="loop",ease:l="easeOut",times:u}={},c=void 0){const d={[t]:n};u&&(d.offset=u);const f=Nl(l,s);Array.isArray(f)&&(d.easing=f);const h={delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:i==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}function Rl(e){return typeof e=="function"&&"applyToOptions"in e}function xg({type:e,...t}){return Rl(e)&&Dl()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class _l extends Fr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:a,allowFlatten:i=!1,finalKeyframe:l,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=i,this.options=t,ut(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=xg(t);this.animation=bg(n,r,s,c,a),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const d=to(s,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(d),Al(n,r,d),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return be(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+be(t)}get time(){return be(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ge(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&yg()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),xe):s(this)}}const Fl={anticipate:pl,backInOut:hl,circInOut:gl};function wg(e){return e in Fl}function kg(e){typeof e.ease=="string"&&wg(e.ease)&&(e.ease=Fl[e.ease])}const vo=10;class Sg extends _l{constructor(t){kg(t),Ml(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:a,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Rn({...i,autoplay:!1}),u=Math.max(vo,de.now()-this.startTime),c=Ae(0,vo,u-vo),d=l.sample(u).value,{name:f}=this.options;a&&f&&Al(a,f,d),n.setWithVelocity(l.sample(Math.max(0,u-c)).value,d,c),l.stop()}}const Vs=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Be.test(e)||e==="0")&&!e.startsWith("url("));function Eg(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Cg(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],i=Vs(s,t),l=Vs(a,t);return rn(i===l,`You are trying to animate ${t} from "${s}" to "${a}". "${i?a:s}" is not an animatable value.`,"value-not-animatable"),!i||!l?!1:Eg(e)||(n==="spring"||Rl(n))&&r}function Qo(e){e.duration=0,e.type="keyframes"}const Ol=new Set(["opacity","clipPath","filter","transform"]),Bg=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Tg(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Bg.test(e[t]))return!0;return!1}const $g=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Mg=il(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Vg(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:a,type:i,keyframes:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return Mg()&&n&&(Ol.has(n)||$g.has(n)&&Tg(l))&&(n!=="transform"||!d)&&!c&&!r&&s!=="mirror"&&a!==0&&i!=="inertia"}const Pg=40;class Ag extends Fr{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:i="loop",keyframes:l,name:u,motionValue:c,element:d,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=de.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:a,repeatType:i,name:u,motionValue:c,element:d,...f},m=d?.KeyframeResolver||Or;this.keyframeResolver=new m(l,(v,g,p)=>this.onKeyframesResolved(v,g,h,!p),u,c,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,s){this.keyframeResolver=void 0;const{name:a,type:i,velocity:l,delay:u,isHandoff:c,onUpdate:d}=r;this.resolvedAt=de.now();let f=!0;Cg(t,a,i,l)||(f=!1,(Ke.instantAnimations||!u)&&d?.(to(t,r,n)),t[0]=t[t.length-1],Qo(r),r.repeat=0);const m={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>Pg?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},v=f&&!c&&Vg(m),g=m.motionValue?.owner?.current;let p;if(v)try{p=new Sg({...m,element:g})}catch{p=new Rn(m)}else p=new Rn(m);p.finished.then(()=>{this.notifyFinished()}).catch(xe),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),mg()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Il(e,t,n,r=0,s=1){const a=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),i=e.size,l=(i-1)*r;return typeof n=="function"?n(a,i):s===1?a*r:l-a*r}const Ps=30,Lg=e=>!isNaN(parseFloat(e));class Dg{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const s=de.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=de.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Lg(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ll(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Mr);const r=this.events[t].add(n);return t==="change"?()=>{r(),U.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=de.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ps)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ps);return al(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ct(e,t){return new Dg(e,t)}function jl(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Ir(e,t){const n=e?.[t]??e?.default??e;return n!==e?jl(n,e):n}const Ng={type:"spring",stiffness:500,damping:25,restSpeed:10},Rg=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_g={type:"keyframes",duration:.8},Fg={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Og=(e,{keyframes:t})=>t.length>2?_g:Pt.has(e)?e.startsWith("scale")?Rg(t[1]):Ng:Fg,Ig=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function jg(e){for(const t in e)if(!Ig.has(t))return!0;return!1}const jr=(e,t,n,r={},s,a)=>i=>{const l=Ir(r,e)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c=c-ge(u);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:h=>{t.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{i(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:s};jg(l)||Object.assign(d,Og(e,d)),d.duration&&(d.duration=ge(d.duration)),d.repeatDelay&&(d.repeatDelay=ge(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Qo(d),d.delay===0&&(f=!0)),(Ke.instantAnimations||Ke.skipAnimations||s?.shouldSkipAnimations||l.skipAnimations)&&(f=!0,Qo(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,f&&!a&&t.get()!==void 0){const h=to(d.keyframes,l);if(h!==void 0){U.update(()=>{d.onUpdate(h),d.onComplete()});return}}return l.isSync?new Rn(d):new Ag(d)},zg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Kg(e){const t=zg.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const Ug=4;function zl(e,t,n=1){ut(n<=Ug,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=Kg(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const i=a.trim();return ol(i)?parseFloat(i):i}return Lr(s)?zl(s,t,n+1):s}function As(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Kl(e,t,n,r){if(typeof t=="function"){const[s,a]=As(r);t=t(n!==void 0?n:e.custom,s,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,a]=As(r);t=t(n!==void 0?n:e.custom,s,a)}return t}function wt(e,t,n){const r=e.getProps();return Kl(r,t,n!==void 0?n:r.custom,e)}const Ul=new Set(["width","height","top","left","right","bottom",...Vt]),Hg=e=>Array.isArray(e);function Gg(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ct(n))}function Wg(e){return Hg(e)?e[e.length-1]||0:e}function qg(e,t){const n=wt(e,t);let{transitionEnd:r={},transition:s={},...a}=n||{};a={...a,...r};for(const i in a){const l=Wg(a[i]);Gg(e,i,l)}}const ue=e=>!!(e&&e.getVelocity);function Yg(e){return!!(ue(e)&&e.add)}function er(e,t){const n=e.getValue("willChange");if(Yg(n))return n.add(t);if(!n&&Ke.WillChange){const r=new Ke.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function zr(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Xg="framerAppearId",Zg="data-"+zr(Xg);function Hl(e){return e.props[Zg]}function Jg({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Gl(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:a,transitionEnd:i,...l}=t;const u=e.getDefaultTransition();a=a?jl(a,u):u;const c=a?.reduceMotion,d=a?.skipAnimations;r&&(a=r);const f=[],h=s&&e.animationState&&e.animationState.getState()[s],m=a?.path;m&&m.animateVisualElement(e,l,a,n,f);for(const v in l){const g=e.getValue(v,e.latestValues[v]??null),p=l[v];if(p===void 0||h&&Jg(h,v))continue;const y={delay:n,...Ir(a||{},v)};d&&(y.skipAnimations=!0);const b=g.get();if(b!==void 0&&!g.isAnimating()&&!Array.isArray(p)&&p===b&&!y.velocity){U.update(()=>g.set(p));continue}let x=!1;if(window.MotionHandoffAnimation){const S=Hl(e);if(S){const E=window.MotionHandoffAnimation(S,v,U);E!==null&&(y.startTime=E,x=!0)}}er(e,v);const w=c??e.shouldReduceMotion;g.start(jr(v,g,p,w&&Ul.has(v)?{type:!1}:y,e,x));const k=g.animation;k&&f.push(k)}if(i){const v=()=>U.update(()=>{i&&qg(e,i)});f.length?Promise.all(f).then(v):v()}return f}function tr(e,t,n={}){const r=wt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const a=r?()=>Promise.all(Gl(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=s;return Qg(e,t,u,c,d,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,c]=l==="beforeChildren"?[a,i]:[i,a];return u().then(()=>c())}else return Promise.all([a(),i(n.delay)])}function Qg(e,t,n=0,r=0,s=0,a=1,i){const l=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),l.push(tr(u,t,{...i,delay:n+(typeof r=="function"?0:r)+Il(e.variantChildren,u,r,s,a)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(l)}function ev(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(a=>tr(e,a,n));r=Promise.all(s)}else if(typeof t=="string")r=tr(e,t,n);else{const s=typeof t=="function"?wt(e,t,n.custom):t;r=Promise.all(Gl(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const tv={test:e=>e==="auto",parse:e=>e},Wl=e=>t=>t.test(e),ql=[Mt,D,Ve,De,Em,Sm,tv],Ls=e=>ql.find(Wl(e));function nv(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||sl(e):!0}const ov=new Set(["brightness","contrast","saturate","opacity"]);function rv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Dr)||[];if(!r)return e;const s=n.replace(r,"");let a=ov.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+s+")"}const sv=/\b([a-z-]*)\(.*?\)/gu,nr={...Be,getAnimatableNone:e=>{const t=e.match(sv);return t?t.map(rv).join(" "):e}},or={...Be,getAnimatableNone:e=>{const t=Be.parse(e);return Be.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Ds={...Mt,transform:Math.round},iv={rotate:De,pathRotation:De,rotateX:De,rotateY:De,rotateZ:De,scale:yn,scaleX:yn,scaleY:yn,scaleZ:yn,skew:De,skewX:De,skewY:De,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:Ht,originX:xs,originY:xs,originZ:D},_n={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,top:D,right:D,bottom:D,left:D,inset:D,insetBlock:D,insetBlockStart:D,insetBlockEnd:D,insetInline:D,insetInlineStart:D,insetInlineEnd:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,paddingBlock:D,paddingBlockStart:D,paddingBlockEnd:D,paddingInline:D,paddingInlineStart:D,paddingInlineEnd:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,marginBlock:D,marginBlockStart:D,marginBlockEnd:D,marginInline:D,marginInlineStart:D,marginInlineEnd:D,fontSize:D,backgroundPositionX:D,backgroundPositionY:D,...iv,zIndex:Ds,fillOpacity:Ht,strokeOpacity:Ht,numOctaves:Ds},av={..._n,color:ne,backgroundColor:ne,outlineColor:ne,fill:ne,stroke:ne,borderColor:ne,borderTopColor:ne,borderRightColor:ne,borderBottomColor:ne,borderLeftColor:ne,filter:nr,WebkitFilter:nr,mask:or,WebkitMask:or},Yl=e=>av[e],lv=new Set([nr,or]);function Xl(e,t){let n=Yl(e);return lv.has(n)||(n=Be),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const uv=new Set(["auto","none","0"]);function cv(e,t,n){let r=0,s;for(;r<e.length&&!s;){const a=e[r];typeof a=="string"&&!uv.has(a)&&Et(a).values.length&&(s=e[r]),r++}if(s&&n)for(const a of t)e[a]=Xl(n,s)}class dv extends Or{constructor(t,n,r,s,a){super(t,n,r,s,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),Lr(f))){const h=zl(f,n.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Ul.has(r)||t.length!==2)return;const[s,a]=t,i=Ls(s),l=Ls(a),u=bs(s),c=bs(a);if(u!==c&&je[r]){this.needsMeasurement=!0;return}if(i!==l)if($s(i)&&$s(l))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else je[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||nv(t[s]))&&r.push(s);r.length&&cv(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=je[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const a=r.length-1,i=r[a];r[a]=je[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Zl(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const s=n?.[e]??r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const rr=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function fv(e){return rl(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Jl}=bl(queueMicrotask,!1),hv={y:!1};function pv(){return hv.y}function Ql(e,t){const n=Zl(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function mv(e){return!(e.pointerType==="touch"||pv())}function gv(e,t,n={}){const[r,s,a]=Ql(e,n);return r.forEach(i=>{let l=!1,u=!1,c;const d=()=>{i.removeEventListener("pointerleave",v)},f=p=>{c&&(c(p),c=void 0),d()},h=p=>{l=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,f(p))},m=()=>{l=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},v=p=>{if(p.pointerType!=="touch"){if(l){u=!0;return}f(p)}},g=p=>{if(!mv(p))return;u=!1;const y=t(i,p);typeof y=="function"&&(c=y,i.addEventListener("pointerleave",v,s))};i.addEventListener("pointerenter",g,s),i.addEventListener("pointerdown",m,s)}),a}const eu=(e,t)=>t?e===t?!0:eu(e,t.parentElement):!1,vv=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,yv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function bv(e){return yv.has(e.tagName)||e.isContentEditable===!0}const Cn=new WeakSet;function Ns(e){return t=>{t.key==="Enter"&&e(t)}}function yo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const xv=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Ns(()=>{if(Cn.has(n))return;yo(n,"down");const s=Ns(()=>{yo(n,"up")}),a=()=>yo(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Rs(e){return vv(e)&&!0}const _s=new WeakSet;function wv(e,t,n={}){const[r,s,a]=Ql(e,n),i=l=>{const u=l.currentTarget;if(!Rs(l)||_s.has(l))return;Cn.add(u),n.stopPropagation&&_s.add(l);const c=t(u,l),d=(m,v)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Cn.has(u)&&Cn.delete(u),Rs(m)&&typeof c=="function"&&c(m,{success:v})},f=m=>{d(m,u===window||u===document||n.useGlobalTarget||eu(u,m.target))},h=m=>{d(m,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",h,s)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",i,s),fv(l)&&(l.addEventListener("focus",c=>xv(c,s)),!bv(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),a}function tu(e){return rl(e)&&"ownerSVGElement"in e}function kv(e){return tu(e)&&e.tagName==="svg"}const Sv=[...ql,ne,Be],Ev=e=>Sv.find(Wl(e)),Fs=()=>({translate:0,scale:1,origin:0,originPoint:0}),vt=()=>({x:Fs(),y:Fs()}),Os=()=>({min:0,max:0}),re=()=>({x:Os(),y:Os()}),Cv=new WeakMap;function Kr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function no(e){return typeof e=="string"||Array.isArray(e)}const Bv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Tv=["initial",...Bv];function nu(e){return Kr(e.animate)||Tv.some(t=>no(e[t]))}function $v(e){return!!(nu(e)||e.variants)}function Mv(e,t,n){for(const r in t){const s=t[r],a=n[r];if(ue(s))e.addValue(r,s);else if(ue(a))e.addValue(r,Ct(s,{owner:e}));else if(a!==s)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(s):i.hasAnimated||i.set(s)}else{const i=e.getStaticValue(r);e.addValue(r,Ct(i!==void 0?i:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const sr={current:null},ou={current:!1},Vv=typeof window<"u";function Pv(){if(ou.current=!0,!!Vv)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sr.current=e.matches;e.addEventListener("change",t),t()}else sr.current=!1}const Is=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let js={};class Av{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:a,blockInitialAnimation:i,visualState:l},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Or,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=de.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,U.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=l;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=a,this.options=u,this.blockInitialAnimation=!!i,this.isControllingVariants=nu(n),this.isVariantNode=$v(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const v=h[m];c[m]!==void 0&&ue(v)&&v.set(c[m])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,Cv.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ou.current||Pv(),this.shouldReduceMotion=sr.current),process.env.NODE_ENV!=="production"&&ll(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Ue(this.notifyUpdate),Ue(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Ol.has(t)&&this.current instanceof HTMLElement){const{factory:i,keyframes:l,times:u,ease:c,duration:d}=n.accelerate,f=new _l({element:this.current,name:t,keyframes:l,times:u,ease:c,duration:ge(d)}),h=i(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const r=Pt.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&U.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),a&&a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in js){const n=js[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):re()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Is.length;r++){const s=Is[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const a="on"+s,i=t[a];i&&(this.propEventSubscriptions[s]=this.on(s,i))}this.prevMotionValues=Mv(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ct(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(ol(r)||sl(r))?r=parseFloat(r):!Ev(r)&&Be.test(n)&&(r=Xl(t,n)),this.setBaseTarget(t,ue(r)?r.get():r)),ue(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=Kl(this.props,n,this.presenceContext?.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!ue(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Mr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Jl.render(this.render)}}class ru extends Av{constructor(){super(...arguments),this.KeyframeResolver=dv}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ue(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function su({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Lv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Dv(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function bo(e){return e===void 0||e===1}function ir({scale:e,scaleX:t,scaleY:n}){return!bo(e)||!bo(t)||!bo(n)}function Xe(e){return ir(e)||iu(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function iu(e){return zs(e.x)||zs(e.y)}function zs(e){return e&&e!=="0%"}function Fn(e,t,n){const r=e-n,s=t*r;return n+s}function Ks(e,t,n,r,s){return s!==void 0&&(e=Fn(e,s,r)),Fn(e,n,r)+t}function ar(e,t=0,n=1,r,s){e.min=Ks(e.min,t,n,r,s),e.max=Ks(e.max,t,n,r,s)}function au(e,{x:t,y:n}){ar(e.x,t.translate,t.scale,t.originPoint),ar(e.y,n.translate,n.scale,n.originPoint)}const Us=.999999999999,Hs=1.0000000000001;function Nv(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let a,i;for(let l=0;l<s;l++){a=n[l],i=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&($e(e.x,-a.scroll.offset.x),$e(e.y,-a.scroll.offset.y)),i&&(t.x*=i.x.scale,t.y*=i.y.scale,au(e,i)),r&&Xe(a.latestValues)&&Bn(e,a.latestValues,a.layout?.layoutBox))}t.x<Hs&&t.x>Us&&(t.x=1),t.y<Hs&&t.y>Us&&(t.y=1)}function $e(e,t){e.min+=t,e.max+=t}function Gs(e,t,n,r,s=.5){const a=W(e.min,e.max,s);ar(e,t,n,a,r)}function Ws(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Bn(e,t,n){const r=n??e;Gs(e.x,Ws(t.x,r.x),t.scaleX,t.scale,t.originX),Gs(e.y,Ws(t.y,r.y),t.scaleY,t.scale,t.originY)}function lu(e,t){return su(Dv(e.getBoundingClientRect(),t))}function Rv(e,t,n){const r=lu(e,n),{scroll:s}=t;return s&&($e(r.x,s.offset.x),$e(r.y,s.offset.y)),r}const _v={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Fv=Vt.length;function Ov(e,t,n){let r="",s=!0;for(let i=0;i<Fv;i++){const l=Vt[i],u=e[l];if(u===void 0)continue;let c=!0;if(typeof u=="number")c=u===(l.startsWith("scale")?1:0);else{const d=parseFloat(u);c=l.startsWith("scale")?d===1:d===0}if(!c||n){const d=rr(u,_n[l]);if(!c){s=!1;const f=_v[l]||l;r+=`${f}(${d}) `}n&&(t[l]=d)}}const a=e.pathRotation;return a&&(s=!1,r+=`rotate(${rr(a,_n.pathRotation)}) `),r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Ur(e,t,n){const{style:r,vars:s,transformOrigin:a}=e;let i=!1,l=!1;for(const u in t){const c=t[u];if(Pt.has(u)){i=!0;continue}else if(Ar(u)){s[u]=c;continue}else{const d=rr(c,_n[u]);u.startsWith("origin")?(l=!0,a[u]=d):r[u]=d}}if(t.transform||(i||n?r.transform=Ov(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:u="50%",originY:c="50%",originZ:d=0}=a;r.transformOrigin=`${u} ${c} ${d}`}}function uu(e,{style:t,vars:n},r,s){const a=e.style;let i;for(i in t)a[i]=t[i];s?.applyProjectionStyles(a,r);for(i in n)a.setProperty(i,n[i])}function qs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Me={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(D.test(e))e=parseFloat(e);else return e;const n=qs(e,t.target.x),r=qs(e,t.target.y);return`${n}% ${r}%`}},cu={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Be.parse(e);if(s.length>5)return r;const a=Be.createTransformer(e),i=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;s[0+i]/=l,s[1+i]/=u;const c=W(l,u,.5);return typeof s[2+i]=="number"&&(s[2+i]/=c),typeof s[3+i]=="number"&&(s[3+i]/=c),a(s)}},Gt={borderRadius:{...Me,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Me,borderTopRightRadius:Me,borderBottomLeftRadius:Me,borderBottomRightRadius:Me,boxShadow:cu};function du(e){for(const t in e)Gt[t]=e[t],Ar(t)&&(Gt[t].isCSSVariable=!0)}function Iv(e,{layout:t,layoutId:n}){return Pt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Gt[e]||e==="opacity")}function fu(e,t,n){const r=e.style,s=t?.style,a={};if(!r)return a;for(const i in r)(ue(r[i])||s&&ue(s[i])||Iv(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(a[i]=r[i]);return a}function jv(e){return window.getComputedStyle(e)}class zv extends ru{constructor(){super(...arguments),this.type="html",this.renderInstance=uu}readValueFromInstance(t,n){if(Pt.has(n))return this.projection?.isProjecting?qo(n):cg(t,n);{const r=jv(t),s=(Ar(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return lu(t,n)}build(t,n,r){Ur(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return fu(t,n,r)}}const Kv={offset:"stroke-dashoffset",array:"stroke-dasharray"},Uv={offset:"strokeDashoffset",array:"strokeDasharray"};function Hv(e,t,n=1,r=0,s=!0){e.pathLength=1;const a=s?Kv:Uv;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}const Gv=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function hu(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:a=1,pathOffset:i=0,...l},u,c,d){if(Ur(e,l,c),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete f.transformBox);for(const m of Gv)f[m]!==void 0&&(h[m]=f[m],delete f[m]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&Hv(f,s,a,i,!1)}const Hr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),pu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Wv(e,t,n,r){uu(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Hr.has(s)?s:zr(s),t.attrs[s])}function qv(e,t,n){const r=fu(e,t,n);for(const s in e)if(ue(e[s])||ue(t[s])){const a=Vt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[a]=e[s]}return r}class Yv extends ru{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=re}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Pt.has(n)){const r=Yl(n);return r&&r.default||0}return n=Hr.has(n)?n:zr(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return qv(t,n,r)}build(t,n,r){hu(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){Wv(t,n,r,s)}mount(t){this.isSVGTag=pu(t.tagName),super.mount(t)}}function lr(e,t){e.min=t.min,e.max=t.max}function Se(e,t){lr(e.x,t.x),lr(e.y,t.y)}function Ys(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const mu=1e-4,Xv=1-mu,Zv=1+mu,gu=.01,Jv=0-gu,Qv=0+gu;function fe(e){return e.max-e.min}function ey(e,t,n){return Math.abs(e-t)<=n}function Xs(e,t,n,r=.5){e.origin=r,e.originPoint=W(t.min,t.max,e.origin),e.scale=fe(n)/fe(t),e.translate=W(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Xv&&e.scale<=Zv||isNaN(e.scale))&&(e.scale=1),(e.translate>=Jv&&e.translate<=Qv||isNaN(e.translate))&&(e.translate=0)}function jt(e,t,n,r){Xs(e.x,t.x,n.x,r?r.originX:void 0),Xs(e.y,t.y,n.y,r?r.originY:void 0)}function Zs(e,t,n,r=0){const s=r?W(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+fe(t)}function ty(e,t,n,r){Zs(e.x,t.x,n.x,r?.x),Zs(e.y,t.y,n.y,r?.y)}function Js(e,t,n,r=0){const s=r?W(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+fe(t)}function On(e,t,n,r){Js(e.x,t.x,n.x,r?.x),Js(e.y,t.y,n.y,r?.y)}function Qs(e,t,n,r,s){return e-=t,e=Fn(e,1/n,r),s!==void 0&&(e=Fn(e,1/s,r)),e}function ny(e,t=0,n=1,r=.5,s,a=e,i=e){if(Ve.test(t)&&(t=parseFloat(t),t=W(i.min,i.max,t/100)-i.min),typeof t!="number")return;let l=W(a.min,a.max,r);e===a&&(l-=t),e.min=Qs(e.min,t,n,l,s),e.max=Qs(e.max,t,n,l,s)}function ei(e,t,[n,r,s],a,i){ny(e,t[n],t[r],t[s],t.scale,a,i)}const oy=["x","scaleX","originX"],ry=["y","scaleY","originY"];function ti(e,t,n,r){ei(e.x,t,oy,n?n.x:void 0,r?r.x:void 0),ei(e.y,t,ry,n?n.y:void 0,r?r.y:void 0)}function ni(e){return e.translate===0&&e.scale===1}function vu(e){return ni(e.x)&&ni(e.y)}function oi(e,t){return e.min===t.min&&e.max===t.max}function sy(e,t){return oi(e.x,t.x)&&oi(e.y,t.y)}function ri(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function yu(e,t){return ri(e.x,t.x)&&ri(e.y,t.y)}function si(e){return fe(e.x)/fe(e.y)}function ii(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function ve(e){return[e("x"),e("y")]}function iy(e,t,n){let r="";const s=e.x.translate/t.x,a=e.y.translate/t.y,i=n?.z||0;if((s||a||i)&&(r=`translate3d(${s}px, ${a}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,pathRotation:f,rotateX:h,rotateY:m,skewX:v,skewY:g}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),v&&(r+=`skewX(${v}deg) `),g&&(r+=`skewY(${g}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const bu=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],ay=bu.length,ai=e=>typeof e=="string"?parseFloat(e):e,li=e=>typeof e=="number"||D.test(e);function ly(e,t,n,r,s,a){s?(e.opacity=W(0,n.opacity??1,uy(r)),e.opacityExit=W(t.opacity??1,0,cy(r))):a&&(e.opacity=W(t.opacity??1,n.opacity??1,r));for(let i=0;i<ay;i++){const l=bu[i];let u=ui(t,l),c=ui(n,l);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||li(u)===li(c)?(e[l]=Math.max(W(ai(u),ai(c),r),0),(Ve.test(c)||Ve.test(u))&&(e[l]+="%")):e[l]=c}(t.rotate||n.rotate)&&(e.rotate=W(t.rotate||0,n.rotate||0,r))}function ui(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const uy=xu(0,.5,ml),cy=xu(.5,.95,xe);function xu(e,t,n){return r=>r<e?0:r>t?1:n(Ut(e,t,r))}function dy(e,t,n){const r=ue(e)?e:Ct(e);return r.start(jr("",r,t,n)),r.animation}function fy(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const hy=(e,t)=>e.depth-t.depth;class py{constructor(){this.children=[],this.isDirty=!1}add(t){$r(this.children,t),this.isDirty=!0}remove(t){An(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(hy),this.isDirty=!1,this.children.forEach(t)}}function my(e,t){const n=de.now(),r=({timestamp:s})=>{const a=s-n;a>=t&&(Ue(r),e(a-t))};return U.setup(r,!0),()=>Ue(r)}function xo(e){return ue(e)?e.get():e}class gy{constructor(){this.members=[]}add(t){$r(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const s=r.instance;(!s||s.isConnected===!1)&&!r.snapshot&&(An(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(An(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){const r=this.members[n];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=r.options,{layoutDependency:a}=t.options;(s===void 0||s!==a)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Tn={hasAnimatedSinceResize:!0,hasEverUpdated:!1},wo=["","X","Y","Z"],vy=1e3;let yy=0;function ko(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function wu(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Hl(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",U,!(s||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&wu(r)}function ku({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(i={},l=t?.()){this.id=yy++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(wy),this.nodes.forEach(Ty),this.nodes.forEach($y),this.nodes.forEach(ky)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new py)}addEventListener(i,l){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Mr),this.eventHandlers.get(i).add(l)}notifyListeners(i,...l){const u=this.eventHandlers.get(i);u&&u.notify(...l)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=tu(i)&&!kv(i),this.instance=i;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||l)&&(this.isLayoutDirty=!0),e){let d,f=0;const h=()=>this.root.updateBlockedByResize=!1;U.read(()=>{f=window.innerWidth}),e(i,()=>{const m=window.innerWidth;m!==f&&(f=m,this.root.updateBlockedByResize=!0,d&&d(),d=my(h,250),Tn.hasAnimatedSinceResize&&(Tn.hasAnimatedSinceResize=!1,this.nodes.forEach(fi)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||Ly,{onLayoutAnimationStart:g,onLayoutAnimationComplete:p}=c.getProps(),y=!this.targetLayout||!yu(this.targetLayout,m),b=!f&&h;if(this.options.layoutRoot||this.resumeFrom||b||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...Ir(v,"layout"),onPlay:g,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(d,b,x.path)}else f||fi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ue(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(My),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&wu(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:u}=this.options;if(l===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const u=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),u&&this.nodes.forEach(Ey),this.nodes.forEach(ci);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(di);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Cy),this.nodes.forEach(By),this.nodes.forEach(by),this.nodes.forEach(xy)):this.nodes.forEach(di),this.clearAllSnapshots();const l=de.now();ie.delta=Ae(0,1e3/60,l-ie.timestamp),ie.timestamp=l,ie.isProcessing=!0,fo.update.process(ie),fo.preRender.process(ie),fo.render.process(ie),ie.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Jl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Sy),this.sharedNodes.forEach(Vy)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,U.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){U.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!fe(this.snapshot.measuredBox.x)&&!fe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=re()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(l=!1),l&&this.instance){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!vu(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;i&&this.instance&&(l||Xe(this.latestValues)||d)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const l=this.measurePageBox();let u=this.removeElementScroll(l);return i&&(u=this.removeTransform(u)),Dy(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return re();const l=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ny))){const{scroll:c}=this.root;c&&($e(l.x,c.offset.x),$e(l.y,c.offset.y))}return l}removeElementScroll(i){const l=re();if(Se(l,i),this.scroll?.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Se(l,i),$e(l.x,d.offset.x),$e(l.y,d.offset.y))}return l}applyTransform(i,l=!1,u){const c=u||re();Se(c,i);for(let d=0;d<this.path.length;d++){const f=this.path[d];!l&&f.options.layoutScroll&&f.scroll&&f!==f.root&&($e(c.x,-f.scroll.offset.x),$e(c.y,-f.scroll.offset.y)),Xe(f.latestValues)&&Bn(c,f.latestValues,f.layout?.layoutBox)}return Xe(this.latestValues)&&Bn(c,this.latestValues,this.layout?.layoutBox),c}removeTransform(i){const l=re();Se(l,i);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!Xe(c.latestValues))continue;let d;c.instance&&(ir(c.latestValues)&&c.updateSnapshot(),d=re(),Se(d,c.measurePageBox())),ti(l,c.latestValues,c.snapshot?.layoutBox,d)}return Xe(this.latestValues)&&ti(l,this.latestValues),l}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ie.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(i||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=ie.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=re(),this.targetWithTransforms=re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ty(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Se(this.target,this.layout.layoutBox),au(this.target,this.targetDelta)):Se(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ir(this.parent.latestValues)||iu(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,l,u){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),On(this.relativeTargetOrigin,l,u,this.options.layoutAnchor||void 0),Se(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const i=this.getLead(),l=!!this.resumingFrom||this!==i;let u=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===ie.timestamp&&(u=!1),u)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;Se(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;Nv(this.layoutCorrected,this.treeScale,this.path,l),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=re());const{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ys(this.prevProjectionDelta.x,this.projectionDelta.x),Ys(this.prevProjectionDelta.y,this.projectionDelta.y)),jt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!ii(this.projectionDelta.x,this.prevProjectionDelta.x)||!ii(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=vt(),this.projectionDelta=vt(),this.projectionDeltaWithTransform=vt()}setAnimationOrigin(i,l=!1,u){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},h=vt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=re(),v=c?c.source:void 0,g=this.layout?this.layout.source:void 0,p=v!==g,y=this.getStack(),b=!y||y.members.length<=1,x=!!(p&&!b&&this.options.crossfade===!0&&!this.path.some(Ay));this.animationProgress=0;let w;const k=u?.interpolateProjection(i);this.mixTargetDelta=S=>{const E=S/1e3,C=k?.(E);C?(h.x.translate=C.x,h.x.scale=W(i.x.scale,1,E),h.x.origin=i.x.origin,h.x.originPoint=i.x.originPoint,h.y.translate=C.y,h.y.scale=W(i.y.scale,1,E),h.y.origin=i.y.origin,h.y.originPoint=i.y.originPoint):(hi(h.x,i.x,E),hi(h.y,i.y,E)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(On(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Py(this.relativeTarget,this.relativeTargetOrigin,m,E),w&&sy(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=re()),Se(w,this.relativeTarget)),p&&(this.animationValues=f,ly(f,d,this.latestValues,E,x,b)),C&&C.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=C.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ue(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=U.update(()=>{Tn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ct(0)),this.motionValue.jump(0,!1),this.currentAnimation=dy(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),i.onUpdate&&i.onUpdate(l)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(vy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:l,target:u,layout:c,latestValues:d}=i;if(!(!l||!u||!c)){if(this!==i&&this.layout&&c&&Su(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||re();const f=fe(this.layout.layoutBox.x);u.x.min=i.target.x.min,u.x.max=u.x.min+f;const h=fe(this.layout.layoutBox.y);u.y.min=i.target.y.min,u.y.max=u.y.min+h}Se(l,u),Bn(l,d),jt(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(i,l){this.sharedNodes.has(i)||this.sharedNodes.set(i,new gy),this.sharedNodes.get(i).add(l);const c=l.options.initialPromotionConfig;l.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(l):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:l,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),i&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let l=!1;const{latestValues:u}=i;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const c={};u.z&&ko("z",i,c,this.animationValues);for(let d=0;d<wo.length;d++)ko(`rotate${wo[d]}`,i,c,this.animationValues),ko(`skew${wo[d]}`,i,c,this.animationValues);i.render();for(const d in c)i.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);i.scheduleRender()}applyProjectionStyles(i,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=xo(l?.pointerEvents)||"",i.transform=u?u(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=xo(l?.pointerEvents)||""),this.hasProjected&&!Xe(this.latestValues)&&(i.transform=u?u({},""):"none",this.hasProjected=!1);return}i.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=iy(this.projectionDeltaWithTransform,this.treeScale,d);u&&(f=u(d,f)),i.transform=f;const{x:h,y:m}=this.projectionDelta;i.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,c.animationValues?i.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:i.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const v in Gt){if(d[v]===void 0)continue;const{correct:g,applyTo:p,isCSSVariable:y}=Gt[v],b=f==="none"?d[v]:g(d[v],c);if(p){const x=p.length;for(let w=0;w<x;w++)i[p[w]]=b}else y?this.options.visualElement.renderState.vars[v]=b:i[v]=b}this.options.layoutId&&(i.pointerEvents=c===this?xo(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(ci),this.root.sharedNodes.clear()}}}function by(e){e.updateLayout()}function xy(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:s}=e.options,a=t.source!==e.layout.source;if(s==="size")ve(d=>{const f=a?t.measuredBox[d]:t.layoutBox[d],h=fe(f);f.min=n[d].min,f.max=f.min+h});else if(s==="x"||s==="y"){const d=s==="x"?"y":"x";lr(a?t.measuredBox[d]:t.layoutBox[d],n[d])}else Su(s,t.layoutBox,n)&&ve(d=>{const f=a?t.measuredBox[d]:t.layoutBox[d],h=fe(n[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const i=vt();jt(i,n,t.layoutBox);const l=vt();a?jt(l,e.applyTransform(r,!0),t.measuredBox):jt(l,n,t.layoutBox);const u=!vu(i);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const m=e.options.layoutAnchor||void 0,v=re();On(v,t.layoutBox,f.layoutBox,m);const g=re();On(g,n,h.layoutBox,m),yu(v,g)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:l,layoutDelta:i,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function wy(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ky(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Sy(e){e.clearSnapshot()}function ci(e){e.clearMeasurements()}function Ey(e){e.isLayoutDirty=!0,e.updateLayout()}function di(e){e.isLayoutDirty=!1}function Cy(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function By(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function fi(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ty(e){e.resolveTargetDelta()}function $y(e){e.calcProjection()}function My(e){e.resetSkewAndRotation()}function Vy(e){e.removeLeadSnapshot()}function hi(e,t,n){e.translate=W(t.translate,0,n),e.scale=W(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function pi(e,t,n,r){e.min=W(t.min,n.min,r),e.max=W(t.max,n.max,r)}function Py(e,t,n,r){pi(e.x,t.x,n.x,r),pi(e.y,t.y,n.y,r)}function Ay(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Ly={duration:.45,ease:[.4,0,.1,1]},mi=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),gi=mi("applewebkit/")&&!mi("chrome/")?Math.round:xe;function vi(e){e.min=gi(e.min),e.max=gi(e.max)}function Dy(e){vi(e.x),vi(e.y)}function Su(e,t,n){return e==="position"||e==="preserve-aspect"&&!ey(si(t),si(n),.2)}function Ny(e){return e!==e.root&&e.scroll?.wasRoot}const Ry=ku({attachResizeListener:(e,t)=>fy(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),So={current:void 0},_y=ku({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!So.current){const e=new Ry({});e.mount(window),e.setOptions({layoutScroll:!0}),So.current=e}return So.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Fy={some:0,all:1};function Oy(e,t,{root:n,margin:r,amount:s="some"}={}){const a=Zl(e),i=new WeakMap,l=c=>{c.forEach(d=>{const f=i.get(d.target);if(d.isIntersecting!==!!f)if(d.isIntersecting){const h=t(d.target,d);typeof h=="function"?i.set(d.target,h):u.unobserve(d.target)}else typeof f=="function"&&(f(d),i.delete(d.target))})},u=new IntersectionObserver(l,{root:n,rootMargin:r,threshold:typeof s=="number"?s:Fy[s]});return a.forEach(c=>u.observe(c)),()=>u.disconnect()}const yi=(e,t)=>Math.abs(e-t);function Iy(e,t){const n=yi(e.x,t.x),r=yi(e.y,t.y);return Math.sqrt(n**2+r**2)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const bi=e=>typeof e<"u";function Eu({current:e}){return e?e.ownerDocument.defaultView:null}function ur(e){if(e)return e.nodeType===3||e.nodeType===8?ur(e.nextSibling):e}const[jy,zy]=on("Motion"),[Ky]=on("LayoutGroup"),Uy={reducedMotion:"never",transition:void 0,nonce:void 0},[Hy]=on("MotionConfig");function Gy(){return Hy(o.computed(()=>Uy))}var Cu=function(){},oo=function(){};process.env.NODE_ENV!=="production"&&(Cu=function(e,t){!e&&typeof console<"u"&&console.warn(t)},oo=function(e,t){if(!e)throw new Error(t)});const Wy={motionAttribute:"data-ap"},cr=[];function Bu(e){for(const t of e)t&&!cr.includes(t)&&cr.push(t)}function Tu(e,t,n){if(Array.isArray(e))return e.reduce((r,s)=>{const a=Tu(s,t,n);return a?{...r,...a}:r},{});if(typeof e=="object")return e;if(e&&t){const r=t[e];return typeof r=="function"?r(n):r}}function qy(e,t,n){const r=Tu(e,t,n);if(!r)return;const{transition:s,transitionEnd:a,...i}=r;return{...i,...a}}function Yy(e,t){const n=(e.initial===void 0&&e.variants?t?.initial:e.initial)===!1?["initial","animate"]:["initial"],r=e.custom??e.presenceContext?.custom;return n.reduce((s,a)=>({...s,...qy(e[a]||t?.[a],e.variants,r)}),{})}function $u(e,t){const n=t?.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Xy=new Set(["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","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","linearGradient","radialGradient","textPath"]);function Mu(e){return Xy.has(e)}const xi=new WeakMap;var Zy=class{constructor(e,t){this.element=null,this.isExiting=!1,this.presenceContainer=null,this.children=new Set,this.features=new Map,this._context=null,this.options=e,this.parent=t,t?.children?.add(this),this.latestValues=Yy(e,this.context),this.type=Mu(this.options.as)?"svg":"html"}get context(){return this._context||(this._context=new Proxy({},{get:(e,t)=>{const n=this.options[t];return no(n)||t==="initial"&&n===!1?n:this.parent?.context[t]}})),this._context}updateFeatures(){if(this.visualElement)for(const e of cr){this.features.has(e.key)||this.features.set(e.key,new e(this));const t=this.features.get(e.key);this.isMounted()&&(t.isMount?t.update():(t.mount(),t.isMount=!0))}}updateOptions(e){this.options=e,this.visualElement?.update({...this.options,whileTap:this.options.whilePress},this.options.presenceContext??null)}mount(e){oo(!!e,"Animation state must be mounted with valid Element"),xi.set(e,this),this.element=e;const t=this.options.presenceContext?.presenceId;t!==void 0&&e.setAttribute(Wy.motionAttribute,t),this.visualElement?.mount(e),this.updateFeatures()}beforeUnmount(){this.getSnapshot(this.options,!1)}unmount(){this.parent?.children?.delete(this),xi.delete(this.element),this.features.forEach(e=>e.unmount?.()),this.visualElement?.unmount()}beforeUpdate(){this.getSnapshot(this.options,void 0)}update(){this.updateFeatures(),this.didUpdate()}tryExitComplete(){this.isExiting||this.options?.layoutId&&this.visualElement.projection?.currentAnimation?.state==="running"||this.options.presenceContext?.onMotionExitComplete?.(this.presenceContainer,this)}setActive(e,t){e==="exit"&&t&&(this.isExiting=!0),this.visualElement?.animationState?.setActive(e,t).then(()=>{e==="exit"&&t&&(this.isExiting=!1,this.options?.layoutId?U.postRender(()=>this.tryExitComplete()):this.tryExitComplete())})}isMounted(){return!!this.element}initVisualElement(e){this.visualElement||(this.visualElement=e(this.options.as,{presenceContext:this.options.presenceContext??null,parent:this.parent?.visualElement,props:{...this.options,whileTap:this.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.latestValues}},reducedMotionConfig:this.options.motionConfig?.reducedMotion}),this.visualElement.parent?.addChild(this.visualElement),this.isMounted()&&this.visualElement.mount(this.element))}getSnapshot(e,t){}didUpdate(){}},Re=class{constructor(e){this.state=e}mount(){}unmount(){}update(){}};const Vu=["initial","animate","exit","whileHover","whileDrag","whileFocus","whilePress"];var Jy=Vu.length;function Pu(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Pu(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Jy;n++){const r=Vu[n],s=e.props[r];(no(s)||s===!1)&&(t[r]=s)}return t}var Au=["animate","whileInView","whileFocus","whileHover","whilePress","whileDrag","exit"],Qy=[...Au].reverse(),e0=Au.length;function qe(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wi(){return{animate:qe(!0),whileInView:qe(),whileHover:qe(),whilePress:qe(),whileDrag:qe(),whileFocus:qe(),exit:qe()}}function t0(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$u(t,e):!1}function ki(e){return Array.isArray(e)}function n0(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ev(e,n,r)))}function o0(e){let t=n0(e),n=wi(),r=!0;const s=u=>(c,d)=>{const f=wt(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:m,...v}=f;c={...c,...v,...m}}return c};function a(u){t=u(e)}function i(u){const{props:c}=e,d=Pu(e.parent)||{},f=[],h=new Set;let m={},v=1/0;for(let p=0;p<e0;p++){const y=Qy[p],b=n[y],x=c[y]!==void 0?c[y]:d[y],w=no(x),k=y===u?b.isActive:null;k===!1&&(v=p);let S=x===d[y]&&x!==c[y]&&w;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),b.protectedKeys={...m},!b.isActive&&k===null||!x&&!b.prevProp||Kr(x)||typeof x=="boolean")continue;const E=t0(b.prevProp,x);let C=E||y===u&&b.isActive&&!S&&w||p>v&&w,$=!1;const B=Array.isArray(x)?x:[x];let N=B.reduce(s(y),{});k===!1&&(N={});const{prevResolvedValues:T={}}=b,M={...T,...N},P=R=>{C=!0,h.has(R)&&($=!0,h.delete(R)),b.needsAnimating[R]=!0;const O=e.getValue(R);O&&(O.liveStyle=!1)};for(const R in M){const O=N[R],V=T[R];if(Object.hasOwnProperty.call(m,R))continue;let J=!1;ki(O)&&ki(V)?J=!$u(O,V):J=O!==V,J?O!=null?P(R):h.add(R):O!==void 0&&h.has(R)?P(R):b.protectedKeys[R]=!0}b.prevProp=x,b.prevResolvedValues=N,b.isActive&&(m={...m,...N}),r&&e.blockInitialAnimation&&(C=!1);const F=S&&E;C&&(!F||$)&&f.push(...B.map(R=>{const O={type:y};if(typeof R=="string"&&r&&!F&&e.manuallyAnimateOnMount&&e.parent){const{parent:V}=e,J=wt(V,R);if(V.enteringChildren&&J){const{delayChildren:Q}=J.transition||{};O.delay=Il(V.enteringChildren,e,Q)}}return{animation:R,options:O}}))}if(h.size){const p={};if(typeof c.initial!="boolean"){const y=wt(e,Array.isArray(c.initial)?c.initial[0]:c.initial);y&&y.transition&&(p.transition=y.transition)}h.forEach(y=>{const b=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),p[y]=b??null}),f.push({animation:p})}let g=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function l(u,c){if(n[u].isActive===c)return Promise.resolve();e.variantChildren?.forEach(f=>{f.animationState?.setActive(u,c)}),n[u].isActive=c;const d=i(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:i,setActive:l,setAnimateFunction:a,getState:()=>n,reset:()=>{n=wi(),r=!0}}}function Lu(e){return e.style.display==="none"||e.offsetParent===null&&window.getComputedStyle(e).position!=="fixed"}var r0=class extends Re{static#e=this.key="animation";constructor(e){super(e);const t=e.visualElement;t.animationState||=o0(t)}updateAnimationControlsSubscription(){const{animate:e}=this.state.options;Kr(e)&&(this.unmountControls=e.subscribe(this.state.visualElement))}mount(){Lu(this.state.element)?this.state.setActive("exit",!0):this.state.visualElement.animationState?.animateChanges(),this.updateAnimationControlsSubscription()}update(){this.state.visualElement.animationState?.animateChanges();const{animate:e}=this.state.visualElement.getProps(),{animate:t}=this.state.visualElement.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.state.visualElement.animationState.reset(),this.unmountControls?.()}};function s0(e,t){return Mu(e)?new Yv(t):new zv(t)}function Si(e){return{point:{x:e.pageX,y:e.pageY}}}var i0=class extends Re{static#e=this.key="press";constructor(e){super(e)}isActive(){const{whilePress:e,onPress:t,onPressCancel:n,onPressStart:r}=this.state.options;return!!(e||t||n||r)}register(){const e=this.state.element;!e||!this.isActive()||(this.removePress?.(),this.removePress=wv(e,(t,n)=>{const r=this.state.options;return this.state.setActive("whilePress",!0),r.onPressStart&&U.postRender(()=>r.onPressStart(n,Si(n))),(s,{success:a})=>{this.state.setActive("whilePress",!1);const i=a?"onPress":"onPressCancel",l=this.state.options[i];l&&U.postRender(()=>l(s,Si(s)))}},{useGlobalTarget:this.state.options.globalPressTarget}))}mount(){this.register()}update(){const e=this.state.visualElement.prevProps;!(e?.whilePress||e?.whileTap||e?.onPress||e?.onPressCancel||e?.onPressStart)&&this.isActive()&&this.register()}unmount(){this.removePress?.(),this.removePress=void 0}};function Du(e){return e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1}function Wt(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}function a0(e){return t=>Du(t)&&e(t,Wt(t))}var l0=class extends Re{static#e=this.key="hover";constructor(e){super(e)}isActive(){const{whileHover:e,onHoverStart:t,onHoverEnd:n}=this.state.options;return!!(e||t||n)}register(){const e=this.state.element;!e||!this.isActive()||(this.removeHover?.(),this.removeHover=gv(e,(t,n)=>{const r=this.state.options;return this.state.setActive("whileHover",!0),r.onHoverStart&&U.postRender(()=>r.onHoverStart(n,Wt(n))),s=>{this.state.setActive("whileHover",!1);const a=this.state.options.onHoverEnd;a&&U.postRender(()=>a(s,Wt(s)))}}))}mount(){this.register()}update(){const e=this.state.visualElement.prevProps;!(e?.whileHover||e?.onHoverStart||e?.onHoverEnd)&&this.isActive()&&this.register()}unmount(){this.removeHover?.(),this.removeHover=void 0}},u0=class extends Re{static#e=this.key="inView";constructor(e){super(e)}isActive(){const{whileInView:e,onViewportEnter:t,onViewportLeave:n}=this.state.options;return!!(e||t||n)}startObserver(){const e=this.state.element;if(!e||!this.isActive())return;this.removeObserver?.();const{once:t,...n}=this.state.options.inViewOptions||{};this.removeObserver=Oy(e,(r,s)=>{const a=this.state.options;if(this.state.setActive("whileInView",!0),a.onViewportEnter&&U.postRender(()=>a.onViewportEnter(s)),!t)return()=>{this.state.setActive("whileInView",!1);const i=this.state.options.onViewportLeave;i&&U.postRender(()=>i(s))}},n)}mount(){this.startObserver()}update(){const{props:e,prevProps:t}=this.state.visualElement;["amount","margin","root"].some(n=>e.inViewOptions?.[n]!==t?.inViewOptions?.[n])&&this.startObserver()}unmount(){this.removeObserver?.(),this.removeObserver=void 0}};function In(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var c0=class extends Re{static#e=this.key="focus";constructor(e){super(e),this.isFocused=!1}onFocus(){let e=!1;try{e=this.state.element.matches(":focus-visible")}catch{e=!0}e&&(this.state.setActive("whileFocus",!0),this.isFocused=!0)}onBlur(){this.isFocused&&(this.state.setActive("whileFocus",!1),this.isFocused=!1)}mount(){const e=this.state.element;this.removeFocus=sn(In(e,"focus",()=>this.onFocus()),In(e,"blur",()=>this.onBlur()))}unmount(){this.removeFocus?.(),this.removeFocus=void 0}};function Nu(e){if(e)return e.options.allowProjection!==!1?e.projection:Nu(e.parent)}const Ru={borderRadius:{...Me,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Me,borderTopRightRadius:Me,borderBottomLeftRadius:Me,borderBottomRightRadius:Me,boxShadow:cu};function Ot(e){return typeof e=="object"&&e!==null&&"nodeType"in e}const d0=typeof window>"u";var f0=class extends Re{static#e=this.key="projection";constructor(e){super(e),du(Ru),d0||this.initProjection()}initProjection(){const e=this.state.options;this.state.visualElement.projection=new _y(this.state.visualElement.latestValues,e["data-framer-portal-id"]?void 0:Nu(this.state.visualElement.parent)),this.projection=this.state.visualElement.projection,this.projection.isPresent=!0,this.setOptions()}setOptions(){const e=this.state.options,{layoutId:t,layout:n,drag:r=!1,dragConstraints:s=!1}=e;this.projection?.setOptions({layout:n,layoutId:t,alwaysMeasureLayout:!!t||!!r||s&&Ot(s),visualElement:this.state.visualElement,animationType:typeof e.layout=="string"?e.layout:"both",layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{!this.projection?.isPresent&&this.state.options.layoutId&&!this.state.isExiting&&queueMicrotask(()=>{this.state.options.presenceContext?.onMotionExitComplete?.(this.state.presenceContainer,this.state)})}})}update(){this.setOptions()}mount(){this.projection?.mount(this.state.element)}};function zt(e,t,n,r){return In(e,t,a0(n),r)}var Ei=new Set(["auto","scroll"]),_u=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:s=!1,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Co(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=Iy(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:m}=d,{timestamp:v}=ie;this.history.push({...m,timestamp:v});const{onStart:g,onMove:p}=this.handlers;f||(g&&g(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Eo(f,this.transformPagePoint),U.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:m,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Co(d.type==="pointercancel"?this.lastMoveEventInfo:Eo(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,g),m&&m(d,g)},!Du(e))return;this.dragSnapToOrigin=s,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=Eo(Wt(e),this.transformPagePoint),{point:l}=i,{timestamp:u}=ie;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,Co(i,this.history)),this.removeListeners=sn(zt(this.contextWindow,"pointermove",this.handlePointerMove),zt(this.contextWindow,"pointerup",this.handlePointerUp),zt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}isScrollable(e){const t=window.getComputedStyle(e);return t.overflow==="auto"||t.overflow==="scroll"||t.overflowX==="auto"||t.overflowX==="scroll"||t.overflowY==="auto"||t.overflowY==="scroll"}startScrollTracking(e){let t=e.parentElement;for(;t;){const n=getComputedStyle(t);(Ei.has(n.overflowX)||Ei.has(n.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const t=this.scrollPositions.get(e);if(!t)return;const n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},s={x:r.x-t.x,y:r.y-t.y};s.x===0&&s.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(e,r),U.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners?.(),this.scrollPositions.clear(),Ue(this.updatePoint)}};function Eo(e,t){return t?{point:t(e.point)}:e}function Ci(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Co({point:e},t){return{point:e,delta:Ci(e,Fu(t)),offset:Ci(e,h0(t)),velocity:p0(t,.1)}}function h0(e){return e[0]}function Fu(e){return e[e.length-1]}function p0(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Fu(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>ge(t)));)n--;if(!r)return{x:0,y:0};const a=be(s.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const i={x:(s.x-r.x)/a,y:(s.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Bi(e){return(t,n)=>{e&&U.postRender(()=>e(t,n))}}var m0=class extends Re{constructor(...e){super(...e),this.removePointerDownListener=xe}static#e=this.key="pan";onPointerDown(e){this.session=new _u(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:Eu(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:Bi((e,t)=>{const{onPanSessionStart:n}=this.state.options;n&&n(e,t)}),onStart:Bi((e,t)=>{const{onPanStart:n}=this.state.options;n&&n(e,t)}),onMove:(e,t)=>{const{onPan:n}=this.state.options;n&&n(e,t)},onEnd:(e,t)=>{const{onPanEnd:n}=this.state.options;delete this.session,n&&U.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=zt(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};function Ou(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}var Ti=Ou("dragHorizontal"),$i=Ou("dragVertical");function g0(e){let t=!1;if(e==="y")t=$i();else if(e==="x")t=Ti();else{const n=Ti(),r=$i();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function v0(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?W(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?W(n,e,r.max):Math.min(e,n)),e}const dr=.35;function y0(e,{top:t,left:n,bottom:r,right:s}){return{x:Mi(e.x,n,s),y:Mi(e.y,t,r)}}function Mi(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function b0(e=dr){return e===!1?e=0:e===!0&&(e=dr),{x:Vi(e,"left","right"),y:Vi(e,"top","bottom")}}function Vi(e,t,n){return{min:Pi(e,t),max:Pi(e,n)}}function Pi(e,t){return typeof e=="number"?e:e[t]||0}function x0(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}function w0(e,t){return{x:Ai(e.x,t.x),y:Ai(e.y,t.y)}}function Ai(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function k0(e,t){let n=.5;const r=fe(e),s=fe(t);return s>r?n=Ut(t.min,t.max-r,e.min):r>s&&(n=Ut(e.min,e.max-s,t.min)),Ae(0,1,n)}const S0=new WeakMap;var E0=class{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=re(),this.state=e}get visualElement(){return this.state.visualElement}start(e,{snapToCursor:t=!1}={}){const n=u=>{t?this.stopAnimation():this.pauseAnimation(),t&&this.snapToCursor(Wt(u,"page").point)},r=(u,c)=>{this.stopAnimation();const{drag:d,dragPropagation:f,onDragStart:h}=this.getProps();d&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=g0(d),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ve(m=>{let v=this.getAxisMotionValue(m).get()||0;if(Ve.test(v)){const{projection:g}=this.visualElement;if(g&&g.layout){const p=g.layout.layoutBox[m];p&&(v=fe(p)*(parseFloat(v)/100))}}this.originPoint[m]=v}),h&&U.postRender(()=>h(u,c)),er(this.visualElement,"transform"),this.state.setActive("whileDrag",!0))},s=(u,c)=>{const{dragPropagation:d,dragDirectionLock:f,onDirectionLock:h,onDrag:m}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:v}=c;if(f&&this.currentDirection===null){this.currentDirection=C0(v),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",c.point,v),this.updateAxis("y",c.point,v),this.visualElement.render(),m&&m(u,c)},a=(u,c)=>this.stop(u,c),i=()=>ve(u=>this.getAnimationState(u)==="paused"&&this.getAxisMotionValue(u).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new _u(e,{onSessionStart:n,onStart:r,onMove:s,onSessionEnd:a,resumeAnimation:i},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Eu(this.visualElement),element:this.state.element})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:s}=this.getProps();s&&U.postRender(()=>s(e,t))}cancel(){this.isDragging=!1;const{projection:e}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:t}=this.getProps();!t&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.state.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!bn(e,r,this.currentDirection))return;const s=this.getAxisMotionValue(e);let a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=v0(a,this.constraints[e],this.elastic[e])),s.set(a)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Ot(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=y0(n.layoutBox,e):this.constraints=!1,this.elastic=b0(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ve(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=x0(n.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ot(e))return!1;const n=e;oo(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const s=Rv(n,r.root,this.visualElement.getTransformPagePoint());let a=w0(r.layout.layoutBox,s);if(t){const i=t(Lv(a));this.hasMutatedConstraints=!!i,i&&(a=su(i))}return a}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},u=ve(c=>{if(!bn(c,t,this.currentDirection))return;let d=l&&l[c]||{};a&&(d={min:0,max:0});const f=r?200:1e6,h=r?40:1e7,m={type:"inertia",velocity:n?e[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(i)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return er(this.visualElement,e),n.start(jr(e,n,0,t,this.visualElement,!1))}stopAnimation(){this.visualElement.projection?.isPresent&&ve(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){ve(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){ve(t=>{const{drag:n}=this.getProps();if(!bn(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(t);if(r&&r.layout){const{min:a,max:i}=r.layout.layoutBox[t];s.set(e[t]-W(a,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ot(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ve(a=>{const i=this.getAxisMotionValue(a);if(i&&this.constraints!==!1){const l=i.get();r[a]=k0({min:l,max:l},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.state.element.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ve(a=>{if(!bn(a,e,null))return;const i=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];i.set(W(l,u,r[a]))})}addListeners(){if(!this.state.element)return;S0.set(this.visualElement,this);const e=this.state.element,t=zt(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Ot(l)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),U.read(n);const a=In(window,"resize",()=>this.scalePositionWithinConstraints()),i=r.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ve(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())}));return()=>{a(),t(),s(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:a=dr,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:s,dragElastic:a,dragMomentum:i}}};function bn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function C0(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}var B0=class extends Re{static#e=this.key="drag";constructor(e){super(e),this.removeGroupControls=xe,this.removeListeners=xe,this.controls=new E0(e)}mount(){const{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xe}unmount(){this.removeGroupControls(),this.removeListeners()}},Rt=!1,T0=class extends Re{static#e=this.key="layout";constructor(e){super(e),this.hasMountSettled=!1,du(Ru),e.getSnapshot=this.getSnapshot.bind(this),e.didUpdate=this.didUpdate.bind(this)}updatePrevLead(e){const t=e.getStack();t?.prevLead&&!t.prevLead.snapshot&&(t.prevLead.willUpdate(),Rt=!0)}didUpdate(){Rt&&(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&(Rt=!1,this.state.visualElement.projection?.root?.didUpdate())}mount(){const e=this.state.options,t=this.state.options.layoutGroup;if(e.layout||e.layoutId){const n=this.state.visualElement.projection;if(e.layoutId){const r=!Lu(this.state.element);n.isPresent=r,r?n.promote():n.relegate(),this.updatePrevLead(n)}t?.group?.add(n),Tn.hasEverUpdated=!0}this.didUpdate(),U.postRender(()=>{this.hasMountSettled=!0})}unmount(){const e=this.state.options.layoutGroup,t=this.state.visualElement.projection;t&&(e?.group&&(this.state.options.layout||this.state.options.layoutId)&&e.group.remove(t),this.state.options.layoutId&&(Rt=!0),this.didUpdate())}getSnapshot(e,t){const n=this.state.visualElement.projection,{drag:r,layoutDependency:s,layout:a,layoutId:i}=e;if(!n||!a&&!i&&!r||!this.hasMountSettled)return;Rt=!0;const l=this.state.options;(r||l.layoutDependency!==s||s===void 0||bi(t)&&n.isPresent!==t)&&n.willUpdate(),bi(t)&&t!==n.isPresent&&(n.isPresent=t,t?(n.promote(),this.updatePrevLead(n)):n.relegate())}};const $0={renderer:s0,features:[r0,i0,l0,u0,c0,f0,m0,B0,T0]},[M0]=on("LazyMotionContext"),[V0]=on("AnimatePresenceContext");function P0(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}function Iu(){return{transform:{},transformOrigin:{},style:{},vars:{}}}function A0(){return{...Iu(),attrs:{}}}function L0(e){const t=Iu();Ur(t,e);const n={...t.style};for(const r in t.vars)n[r]=t.vars[r];return Object.keys(n).length===0?null:n}function D0(e,t,n){const r=A0();hu(r,e,pu(t),void 0,n);const s={};for(const a in r.attrs){const i=Hr.has(a)?a:P0(a);s[i]=r.attrs[a]}return{attrs:s,style:{...r.style,...r.vars}}}function N0(e,t){const n=jy(null),r=Ky({}),s=Gy(),a=V0({}),i=M0({features:o.ref({}),strict:!1});if(process.env.NODE_ENV!=="production"&&t&&i.strict){const m="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Cu(!1,m):oo(!1,m)}const l=o.useAttrs();function u(){return im(e,{layoutGroup:r,presenceContext:a,config:s.value})}function c(){return{...l,...u()}}const d=new Zy(c(),n);zy(d),t&&d.initVisualElement(t),o.watch(i.features,m=>{m.features?.length&&Bu(m.features),m.renderer&&d.initVisualElement(m.renderer),d.updateFeatures()},{immediate:!0,flush:"pre"});function f(){const m=d.type==="svg",v={...l};Object.keys(l).forEach(b=>{ue(l[b])&&(v[b]=l[b].get())});const g=d.visualElement?.latestValues||d.latestValues;let p={...e.style,...m?{}:g};for(const b in p)ue(p[b])&&(p[b]=p[b].get());if(m){const{attrs:b,style:x}=D0({...g,...p},d.options.as,e.style);Object.assign(v,b),p=x}e.drag&&e.dragListener!==!1&&Object.assign(p,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`});const y=L0(p);return y&&(v.style=y),v}const h=o.getCurrentInstance().proxy;return o.onMounted(()=>{const m=ur(h.$el);d.mount(m)}),o.onBeforeUnmount(()=>d.beforeUnmount()),o.onUnmounted(()=>{ur(h.$el)?.isConnected||d.unmount()}),o.onBeforeUpdate(()=>{d.beforeUpdate(),d.updateOptions(c())}),o.onUpdated(()=>{d.update()}),{getProps:u,getAttrs:f,layoutGroup:r,state:d}}const R0={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object]},whilePress:{type:[String,Array,Object]},whileInView:{type:[String,Array,Object]},whileFocus:{type:[String,Array,Object]},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null,default:void 0},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}};var _0=new Map,F0=new Map;function O0(e){if(!Array.isArray(e))return[e];const t=[];for(const n of e)Array.isArray(n)?t.push(...n):t.push(n);return t}var I0=["area","img","input"];function j0(e,t,n){if(typeof e=="string"&&I0.includes(e))return o.h(e,t);if(e==="template"){if(!n.default)return null;const r=O0(n.default()),s=r.findIndex(u=>u.type!==o.Comment);if(s===-1)return r;const a=r[s];delete a.props?.ref;const i=a.props?o.mergeProps(t,a.props):t;t.class&&a.props?.class&&delete a.props.class;const l=o.cloneVNode(a,i);for(const u in i)u.startsWith("on")&&(l.props||={},l.props[u]=i[u]);return r.length===1?l:(r[s]=l,r)}return null}function Li(e,t={}){const n=typeof e=="string",r=n?e:e.name||"",s=t.renderer?_0:F0;if(n&&s?.has(e))return s.get(e);const a=o.defineComponent({inheritAttrs:!1,props:{...R0,as:{type:[String,Object],default:e||"div"}},name:r?`motion.${r}`:"Motion",setup(i,{slots:l}){const{getProps:u,getAttrs:c,state:d}=N0(i,t.renderer);function f(){const h=d.element;if((typeof i.as!="object"||i.asChild)&&h){const{style:m}=c();if(m)for(const[v,g]of Object.entries(m))h.style[v]=g}}return()=>{const h=u(),m=c(),v=i.asChild?"template":i.as,g={...i.forwardMotionProps?h:{},...m,onVnodeUpdated:f},p=j0(v,g,l);return p!==null?p:o.h(v,{...g},l)}}});return n&&s?.set(e,a),a}function z0(e){const t=e?.renderer;return Bu(e?.features||[]),new Proxy({},{get(n,r){return r==="create"?(s,a)=>Li(s,{...a,renderer:t}):Li(r,{renderer:t})}})}const K0=z0($0),Ne=K0.create("div");function z(e){return function(){return e}}const Di=Math.abs,le=Math.atan2,Ye=Math.cos,U0=Math.max,Bo=Math.min,Te=Math.sin,yt=Math.sqrt,pe=1e-12,qt=Math.PI,jn=qt/2,$n=2*qt;function H0(e){return e>1?0:e<-1?qt:Math.acos(e)}function Ni(e){return e>=1?jn:e<=-1?-jn:Math.asin(e)}const fr=Math.PI,hr=2*fr,Ze=1e-6,G0=hr-Ze;function ju(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function W0(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return ju;const n=10**t;return function(r){this._+=r[0];for(let s=1,a=r.length;s<a;++s)this._+=Math.round(arguments[s]*n)/n+r[s]}}class q0{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?ju:W0(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,s){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+s}`}bezierCurveTo(t,n,r,s,a,i){this._append`C${+t},${+n},${+r},${+s},${this._x1=+a},${this._y1=+i}`}arcTo(t,n,r,s,a){if(t=+t,n=+n,r=+r,s=+s,a=+a,a<0)throw new Error(`negative radius: ${a}`);let i=this._x1,l=this._y1,u=r-t,c=s-n,d=i-t,f=l-n,h=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Ze)if(!(Math.abs(f*u-c*d)>Ze)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-i,v=s-l,g=u*u+c*c,p=m*m+v*v,y=Math.sqrt(g),b=Math.sqrt(h),x=a*Math.tan((fr-Math.acos((g+h-p)/(2*y*b)))/2),w=x/b,k=x/y;Math.abs(w-1)>Ze&&this._append`L${t+w*d},${n+w*f}`,this._append`A${a},${a},0,0,${+(f*m>d*v)},${this._x1=t+k*u},${this._y1=n+k*c}`}}arc(t,n,r,s,a,i){if(t=+t,n=+n,r=+r,i=!!i,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(s),u=r*Math.sin(s),c=t+l,d=n+u,f=1^i,h=i?s-a:a-s;this._x1===null?this._append`M${c},${d}`:(Math.abs(this._x1-c)>Ze||Math.abs(this._y1-d)>Ze)&&this._append`L${c},${d}`,r&&(h<0&&(h=h%hr+hr),h>G0?this._append`A${r},${r},0,1,${f},${t-l},${n-u}A${r},${r},0,1,${f},${this._x1=c},${this._y1=d}`:h>Ze&&this._append`A${r},${r},0,${+(h>=fr)},${f},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+s}h${-r}Z`}toString(){return this._}}function Gr(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new q0(t)}function Y0(e){return e.innerRadius}function X0(e){return e.outerRadius}function Z0(e){return e.startAngle}function J0(e){return e.endAngle}function Q0(e){return e&&e.padAngle}function eb(e,t,n,r,s,a,i,l){var u=n-e,c=r-t,d=i-s,f=l-a,h=f*u-d*c;if(!(h*h<pe))return h=(d*(t-a)-f*(e-s))/h,[e+h*u,t+h*c]}function xn(e,t,n,r,s,a,i){var l=e-n,u=t-r,c=(i?a:-a)/yt(l*l+u*u),d=c*u,f=-c*l,h=e+d,m=t+f,v=n+d,g=r+f,p=(h+v)/2,y=(m+g)/2,b=v-h,x=g-m,w=b*b+x*x,k=s-a,S=h*g-v*m,E=(x<0?-1:1)*yt(U0(0,k*k*w-S*S)),C=(S*x-b*E)/w,$=(-S*b-x*E)/w,B=(S*x+b*E)/w,N=(-S*b+x*E)/w,T=C-p,M=$-y,P=B-p,F=N-y;return T*T+M*M>P*P+F*F&&(C=B,$=N),{cx:C,cy:$,x01:-d,y01:-f,x11:C*(s/k-1),y11:$*(s/k-1)}}function pr(){var e=Y0,t=X0,n=z(0),r=null,s=Z0,a=J0,i=Q0,l=null,u=Gr(c);function c(){var d,f,h=+e.apply(this,arguments),m=+t.apply(this,arguments),v=s.apply(this,arguments)-jn,g=a.apply(this,arguments)-jn,p=Di(g-v),y=g>v;if(l||(l=d=u()),m<h&&(f=m,m=h,h=f),!(m>pe))l.moveTo(0,0);else if(p>$n-pe)l.moveTo(m*Ye(v),m*Te(v)),l.arc(0,0,m,v,g,!y),h>pe&&(l.moveTo(h*Ye(g),h*Te(g)),l.arc(0,0,h,g,v,y));else{var b=v,x=g,w=v,k=g,S=p,E=p,C=i.apply(this,arguments)/2,$=C>pe&&(r?+r.apply(this,arguments):yt(h*h+m*m)),B=Bo(Di(m-h)/2,+n.apply(this,arguments)),N=B,T=B,M,P;if($>pe){var F=Ni($/h*Te(C)),R=Ni($/m*Te(C));(S-=F*2)>pe?(F*=y?1:-1,w+=F,k-=F):(S=0,w=k=(v+g)/2),(E-=R*2)>pe?(R*=y?1:-1,b+=R,x-=R):(E=0,b=x=(v+g)/2)}var O=m*Ye(b),V=m*Te(b),J=h*Ye(k),Q=h*Te(k);if(B>pe){var j=m*Ye(x),H=m*Te(x),K=h*Ye(w),G=h*Te(w),se;if(p<qt)if(se=eb(O,V,K,G,j,H,J,Q)){var ke=O-se[0],ee=V-se[1],dt=j-se[0],_e=H-se[1],He=1/Te(H0((ke*dt+ee*_e)/(yt(ke*ke+ee*ee)*yt(dt*dt+_e*_e)))/2),ft=yt(se[0]*se[0]+se[1]*se[1]);N=Bo(B,(h-ft)/(He-1)),T=Bo(B,(m-ft)/(He+1))}else N=T=0}E>pe?T>pe?(M=xn(K,G,O,V,m,T,y),P=xn(j,H,J,Q,m,T,y),l.moveTo(M.cx+M.x01,M.cy+M.y01),T<B?l.arc(M.cx,M.cy,T,le(M.y01,M.x01),le(P.y01,P.x01),!y):(l.arc(M.cx,M.cy,T,le(M.y01,M.x01),le(M.y11,M.x11),!y),l.arc(0,0,m,le(M.cy+M.y11,M.cx+M.x11),le(P.cy+P.y11,P.cx+P.x11),!y),l.arc(P.cx,P.cy,T,le(P.y11,P.x11),le(P.y01,P.x01),!y))):(l.moveTo(O,V),l.arc(0,0,m,b,x,!y)):l.moveTo(O,V),!(h>pe)||!(S>pe)?l.lineTo(J,Q):N>pe?(M=xn(J,Q,j,H,h,-N,y),P=xn(O,V,K,G,h,-N,y),l.lineTo(M.cx+M.x01,M.cy+M.y01),N<B?l.arc(M.cx,M.cy,N,le(M.y01,M.x01),le(P.y01,P.x01),!y):(l.arc(M.cx,M.cy,N,le(M.y01,M.x01),le(M.y11,M.x11),!y),l.arc(0,0,h,le(M.cy+M.y11,M.cx+M.x11),le(P.cy+P.y11,P.cx+P.x11),y),l.arc(P.cx,P.cy,N,le(P.y11,P.x11),le(P.y01,P.x01),!y))):l.arc(0,0,h,k,w,y)}if(l.closePath(),d)return l=null,d+""||null}return c.centroid=function(){var d=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,f=(+s.apply(this,arguments)+ +a.apply(this,arguments))/2-qt/2;return[Ye(f)*d,Te(f)*d]},c.innerRadius=function(d){return arguments.length?(e=typeof d=="function"?d:z(+d),c):e},c.outerRadius=function(d){return arguments.length?(t=typeof d=="function"?d:z(+d),c):t},c.cornerRadius=function(d){return arguments.length?(n=typeof d=="function"?d:z(+d),c):n},c.padRadius=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:z(+d),c):r},c.startAngle=function(d){return arguments.length?(s=typeof d=="function"?d:z(+d),c):s},c.endAngle=function(d){return arguments.length?(a=typeof d=="function"?d:z(+d),c):a},c.padAngle=function(d){return arguments.length?(i=typeof d=="function"?d:z(+d),c):i},c.context=function(d){return arguments.length?(l=d??null,c):l},c}function Wr(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function zu(e){this._context=e}zu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ku(e){return new zu(e)}function Uu(e){return e[0]}function Hu(e){return e[1]}function ro(e,t){var n=z(!0),r=null,s=Ku,a=null,i=Gr(l);e=typeof e=="function"?e:e===void 0?Uu:z(e),t=typeof t=="function"?t:t===void 0?Hu:z(t);function l(u){var c,d=(u=Wr(u)).length,f,h=!1,m;for(r==null&&(a=s(m=i())),c=0;c<=d;++c)!(c<d&&n(f=u[c],c,u))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,c,u),+t(f,c,u));if(m)return a=null,m+""||null}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:z(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:z(+u),l):t},l.defined=function(u){return arguments.length?(n=typeof u=="function"?u:z(!!u),l):n},l.curve=function(u){return arguments.length?(s=u,r!=null&&(a=s(r)),l):s},l.context=function(u){return arguments.length?(u==null?r=a=null:a=s(r=u),l):r},l}function tb(e,t,n){var r=null,s=z(!0),a=null,i=Ku,l=null,u=Gr(c);e=typeof e=="function"?e:e===void 0?Uu:z(+e),t=typeof t=="function"?t:z(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Hu:z(+n);function c(f){var h,m,v,g=(f=Wr(f)).length,p,y=!1,b,x=new Array(g),w=new Array(g);for(a==null&&(l=i(b=u())),h=0;h<=g;++h){if(!(h<g&&s(p=f[h],h,f))===y)if(y=!y)m=h,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),v=h-1;v>=m;--v)l.point(x[v],w[v]);l.lineEnd(),l.areaEnd()}y&&(x[h]=+e(p,h,f),w[h]=+t(p,h,f),l.point(r?+r(p,h,f):x[h],n?+n(p,h,f):w[h]))}if(b)return l=null,b+""||null}function d(){return ro().defined(s).curve(i).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:z(+f),r=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:z(+f),c):e},c.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:z(+f),c):r},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:z(+f),n=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:z(+f),c):t},c.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:z(+f),c):n},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(n)},c.lineX1=function(){return d().x(r).y(t)},c.defined=function(f){return arguments.length?(s=typeof f=="function"?f:z(!!f),c):s},c.curve=function(f){return arguments.length?(i=f,a!=null&&(l=i(a)),c):i},c.context=function(f){return arguments.length?(f==null?a=l=null:l=i(a=f),c):a},c}function nb(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function ob(e){return e}function rb(){var e=ob,t=nb,n=null,r=z(0),s=z($n),a=z(0);function i(l){var u,c=(l=Wr(l)).length,d,f,h=0,m=new Array(c),v=new Array(c),g=+r.apply(this,arguments),p=Math.min($n,Math.max(-$n,s.apply(this,arguments)-g)),y,b=Math.min(Math.abs(p)/c,a.apply(this,arguments)),x=b*(p<0?-1:1),w;for(u=0;u<c;++u)(w=v[m[u]=u]=+e(l[u],u,l))>0&&(h+=w);for(t!=null?m.sort(function(k,S){return t(v[k],v[S])}):n!=null&&m.sort(function(k,S){return n(l[k],l[S])}),u=0,f=h?(p-c*x)/h:0;u<c;++u,g=y)d=m[u],w=v[d],y=g+(w>0?w*f:0)+x,v[d]={data:l[d],index:u,value:w,startAngle:g,endAngle:y,padAngle:b};return v}return i.value=function(l){return arguments.length?(e=typeof l=="function"?l:z(+l),i):e},i.sortValues=function(l){return arguments.length?(t=l,n=null,i):t},i.sort=function(l){return arguments.length?(n=l,t=null,i):n},i.startAngle=function(l){return arguments.length?(r=typeof l=="function"?l:z(+l),i):r},i.endAngle=function(l){return arguments.length?(s=typeof l=="function"?l:z(+l),i):s},i.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:z(+l),i):a},i}function Ri(e){return e<0?-1:1}function _i(e,t,n){var r=e._x1-e._x0,s=t-e._x1,a=(e._y1-e._y0)/(r||s<0&&-0),i=(n-e._y1)/(s||r<0&&-0),l=(a*s+i*r)/(r+s);return(Ri(a)+Ri(i))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs(l))||0}function Fi(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function To(e,t,n){var r=e._x0,s=e._y0,a=e._x1,i=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,s+l*t,a-l,i-l*n,a,i)}function zn(e){this._context=e}zn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:To(this,this._t0,Fi(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,To(this,Fi(this,n=_i(this,e,t)),n);break;default:To(this,this._t0,n=_i(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};Object.create(zn.prototype).point=function(e,t){zn.prototype.point.call(this,t,e)};function Kn(e){return new zn(e)}const Oi=["#6888fb","#f7a1f4","#f6dd85","#c447be","#36dec1"],Ii="#707070",ji="#f2f2f2",zi="#e2e2e2";function ct(){const e=o.ref([...Oi]),t=o.ref(Ii),n=o.ref(ji),r=o.ref({border:zi,radius:8,shadow:"0 8px 24px rgba(0,0,0,0.06)",background:"#ffffff"});return o.onMounted(()=>{const s=getComputedStyle(document.documentElement),a=(i,l)=>s.getPropertyValue(i).trim()||l;e.value=[1,2,3,4,5].map(i=>a(`--chart-${i}`,Oi[i-1])),t.value=a("--color-muted",Ii),n.value=a("--color-surface",ji),r.value={...r.value,border:a("--color-border",zi),background:a("--card","#ffffff")}}),{colors:e,axis:t,grid:n,tooltip:r}}function Mn(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function sb(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Gu(e){let t,n,r;e.length!==2?(t=Mn,n=(l,u)=>Mn(e(l),u),r=(l,u)=>e(l)-u):(t=e===Mn||e===sb?e:ib,n=e,r=e);function s(l,u,c=0,d=l.length){if(c<d){if(t(u,u)!==0)return d;do{const f=c+d>>>1;n(l[f],u)<0?c=f+1:d=f}while(c<d)}return c}function a(l,u,c=0,d=l.length){if(c<d){if(t(u,u)!==0)return d;do{const f=c+d>>>1;n(l[f],u)<=0?c=f+1:d=f}while(c<d)}return c}function i(l,u,c=0,d=l.length){const f=s(l,u,c,d-1);return f>c&&r(l[f-1],u)>-r(l[f],u)?f-1:f}return{left:s,center:i,right:a}}function ib(){return 0}function ab(e){return e===null?NaN:+e}const lb=Gu(Mn),ub=lb.right;Gu(ab).center;class Ki extends Map{constructor(t,n=fb){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,s]of t)this.set(r,s)}get(t){return super.get(Ui(this,t))}has(t){return super.has(Ui(this,t))}set(t,n){return super.set(cb(this,t),n)}delete(t){return super.delete(db(this,t))}}function Ui({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function cb({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function db({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function fb(e){return e!==null&&typeof e=="object"?e.valueOf():e}const hb=Math.sqrt(50),pb=Math.sqrt(10),mb=Math.sqrt(2);function Un(e,t,n){const r=(t-e)/Math.max(0,n),s=Math.floor(Math.log10(r)),a=r/Math.pow(10,s),i=a>=hb?10:a>=pb?5:a>=mb?2:1;let l,u,c;return s<0?(c=Math.pow(10,-s)/i,l=Math.round(e*c),u=Math.round(t*c),l/c<e&&++l,u/c>t&&--u,c=-c):(c=Math.pow(10,s)*i,l=Math.round(e/c),u=Math.round(t/c),l*c<e&&++l,u*c>t&&--u),u<l&&.5<=n&&n<2?Un(e,t,n*2):[l,u,c]}function gb(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[s,a,i]=r?Un(t,e,n):Un(e,t,n);if(!(a>=s))return[];const l=a-s+1,u=new Array(l);if(r)if(i<0)for(let c=0;c<l;++c)u[c]=(a-c)/-i;else for(let c=0;c<l;++c)u[c]=(a-c)*i;else if(i<0)for(let c=0;c<l;++c)u[c]=(s+c)/-i;else for(let c=0;c<l;++c)u[c]=(s+c)*i;return u}function mr(e,t,n){return t=+t,e=+e,n=+n,Un(e,t,n)[2]}function vb(e,t,n){t=+t,e=+e,n=+n;const r=t<e,s=r?mr(t,e,n):mr(e,t,n);return(r?-1:1)*(s<0?1/-s:s)}function yb(e,t,n){e=+e,t=+t,n=(s=arguments.length)<2?(t=e,e=0,1):s<3?1:+n;for(var r=-1,s=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(s);++r<s;)a[r]=e+r*n;return a}function qr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const Hi=Symbol("implicit");function Wu(){var e=new Ki,t=[],n=[],r=Hi;function s(a){let i=e.get(a);if(i===void 0){if(r!==Hi)return r;e.set(a,i=t.push(a)-1)}return n[i%n.length]}return s.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Ki;for(const i of a)e.has(i)||e.set(i,t.push(i)-1);return s},s.range=function(a){return arguments.length?(n=Array.from(a),s):n.slice()},s.unknown=function(a){return arguments.length?(r=a,s):r},s.copy=function(){return Wu(t,n).unknown(r)},qr.apply(s,arguments),s}function un(){var e=Wu().unknown(void 0),t=e.domain,n=e.range,r=0,s=1,a,i,l=!1,u=0,c=0,d=.5;delete e.unknown;function f(){var h=t().length,m=s<r,v=m?s:r,g=m?r:s;a=(g-v)/Math.max(1,h-u+c*2),l&&(a=Math.floor(a)),v+=(g-v-a*(h-u))*d,i=a*(1-u),l&&(v=Math.round(v),i=Math.round(i));var p=yb(h).map(function(y){return v+a*y});return n(m?p.reverse():p)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([r,s]=h,r=+r,s=+s,f()):[r,s]},e.rangeRound=function(h){return[r,s]=h,r=+r,s=+s,l=!0,f()},e.bandwidth=function(){return i},e.step=function(){return a},e.round=function(h){return arguments.length?(l=!!h,f()):l},e.padding=function(h){return arguments.length?(u=Math.min(1,c=+h),f()):u},e.paddingInner=function(h){return arguments.length?(u=Math.min(1,h),f()):u},e.paddingOuter=function(h){return arguments.length?(c=+h,f()):c},e.align=function(h){return arguments.length?(d=Math.max(0,Math.min(1,h)),f()):d},e.copy=function(){return un(t(),[r,s]).round(l).paddingInner(u).paddingOuter(c).align(d)},qr.apply(f(),arguments)}function qu(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return qu(t())},e}function bb(){return qu(un.apply(null,arguments).paddingInner(1))}function Yr(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Yu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function cn(){}var Yt=.7,Hn=1/Yt,kt="\\s*([+-]?\\d+)\\s*",Xt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xb=/^#([0-9a-f]{3,8})$/,wb=new RegExp(`^rgb\\(${kt},${kt},${kt}\\)$`),kb=new RegExp(`^rgb\\(${Pe},${Pe},${Pe}\\)$`),Sb=new RegExp(`^rgba\\(${kt},${kt},${kt},${Xt}\\)$`),Eb=new RegExp(`^rgba\\(${Pe},${Pe},${Pe},${Xt}\\)$`),Cb=new RegExp(`^hsl\\(${Xt},${Pe},${Pe}\\)$`),Bb=new RegExp(`^hsla\\(${Xt},${Pe},${Pe},${Xt}\\)$`),Gi={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Yr(cn,Zt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Wi,formatHex:Wi,formatHex8:Tb,formatHsl:$b,formatRgb:qi,toString:qi});function Wi(){return this.rgb().formatHex()}function Tb(){return this.rgb().formatHex8()}function $b(){return Xu(this).formatHsl()}function qi(){return this.rgb().formatRgb()}function Zt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=xb.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Yi(t):n===3?new me(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?wn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?wn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=wb.exec(e))?new me(t[1],t[2],t[3],1):(t=kb.exec(e))?new me(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Sb.exec(e))?wn(t[1],t[2],t[3],t[4]):(t=Eb.exec(e))?wn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Cb.exec(e))?Ji(t[1],t[2]/100,t[3]/100,1):(t=Bb.exec(e))?Ji(t[1],t[2]/100,t[3]/100,t[4]):Gi.hasOwnProperty(e)?Yi(Gi[e]):e==="transparent"?new me(NaN,NaN,NaN,0):null}function Yi(e){return new me(e>>16&255,e>>8&255,e&255,1)}function wn(e,t,n,r){return r<=0&&(e=t=n=NaN),new me(e,t,n,r)}function Mb(e){return e instanceof cn||(e=Zt(e)),e?(e=e.rgb(),new me(e.r,e.g,e.b,e.opacity)):new me}function gr(e,t,n,r){return arguments.length===1?Mb(e):new me(e,t,n,r??1)}function me(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Yr(me,gr,Yu(cn,{brighter(e){return e=e==null?Hn:Math.pow(Hn,e),new me(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Yt:Math.pow(Yt,e),new me(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new me(it(this.r),it(this.g),it(this.b),Gn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xi,formatHex:Xi,formatHex8:Vb,formatRgb:Zi,toString:Zi}));function Xi(){return`#${ot(this.r)}${ot(this.g)}${ot(this.b)}`}function Vb(){return`#${ot(this.r)}${ot(this.g)}${ot(this.b)}${ot((isNaN(this.opacity)?1:this.opacity)*255)}`}function Zi(){const e=Gn(this.opacity);return`${e===1?"rgb(":"rgba("}${it(this.r)}, ${it(this.g)}, ${it(this.b)}${e===1?")":`, ${e})`}`}function Gn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function it(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ot(e){return e=it(e),(e<16?"0":"")+e.toString(16)}function Ji(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ee(e,t,n,r)}function Xu(e){if(e instanceof Ee)return new Ee(e.h,e.s,e.l,e.opacity);if(e instanceof cn||(e=Zt(e)),!e)return new Ee;if(e instanceof Ee)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,s=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-s,u=(a+s)/2;return l?(t===a?i=(n-r)/l+(n<r)*6:n===a?i=(r-t)/l+2:i=(t-n)/l+4,l/=u<.5?a+s:2-a-s,i*=60):l=u>0&&u<1?0:i,new Ee(i,l,u,e.opacity)}function Pb(e,t,n,r){return arguments.length===1?Xu(e):new Ee(e,t,n,r??1)}function Ee(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Yr(Ee,Pb,Yu(cn,{brighter(e){return e=e==null?Hn:Math.pow(Hn,e),new Ee(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Yt:Math.pow(Yt,e),new Ee(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,s=2*n-r;return new me($o(e>=240?e-240:e+120,s,r),$o(e,s,r),$o(e<120?e+240:e-120,s,r),this.opacity)},clamp(){return new Ee(Qi(this.h),kn(this.s),kn(this.l),Gn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Gn(this.opacity);return`${e===1?"hsl(":"hsla("}${Qi(this.h)}, ${kn(this.s)*100}%, ${kn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Qi(e){return e=(e||0)%360,e<0?e+360:e}function kn(e){return Math.max(0,Math.min(1,e||0))}function $o(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Xr=e=>()=>e;function Ab(e,t){return function(n){return e+n*t}}function Lb(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Db(e){return(e=+e)==1?Zu:function(t,n){return n-t?Lb(t,n,e):Xr(isNaN(t)?n:t)}}function Zu(e,t){var n=t-e;return n?Ab(e,n):Xr(isNaN(e)?t:e)}const ea=(function e(t){var n=Db(t);function r(s,a){var i=n((s=gr(s)).r,(a=gr(a)).r),l=n(s.g,a.g),u=n(s.b,a.b),c=Zu(s.opacity,a.opacity);return function(d){return s.r=i(d),s.g=l(d),s.b=u(d),s.opacity=c(d),s+""}}return r.gamma=e,r})(1);function Nb(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),s;return function(a){for(s=0;s<n;++s)r[s]=e[s]*(1-a)+t[s]*a;return r}}function Rb(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function _b(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,s=new Array(r),a=new Array(n),i;for(i=0;i<r;++i)s[i]=Zr(e[i],t[i]);for(;i<n;++i)a[i]=t[i];return function(l){for(i=0;i<r;++i)a[i]=s[i](l);return a}}function Fb(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Wn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Ob(e,t){var n={},r={},s;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(s in t)s in e?n[s]=Zr(e[s],t[s]):r[s]=t[s];return function(a){for(s in n)r[s]=n[s](a);return r}}var vr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mo=new RegExp(vr.source,"g");function Ib(e){return function(){return e}}function jb(e){return function(t){return e(t)+""}}function zb(e,t){var n=vr.lastIndex=Mo.lastIndex=0,r,s,a,i=-1,l=[],u=[];for(e=e+"",t=t+"";(r=vr.exec(e))&&(s=Mo.exec(t));)(a=s.index)>n&&(a=t.slice(n,a),l[i]?l[i]+=a:l[++i]=a),(r=r[0])===(s=s[0])?l[i]?l[i]+=s:l[++i]=s:(l[++i]=null,u.push({i,x:Wn(r,s)})),n=Mo.lastIndex;return n<t.length&&(a=t.slice(n),l[i]?l[i]+=a:l[++i]=a),l.length<2?u[0]?jb(u[0].x):Ib(t):(t=u.length,function(c){for(var d=0,f;d<t;++d)l[(f=u[d]).i]=f.x(c);return l.join("")})}function Zr(e,t){var n=typeof t,r;return t==null||n==="boolean"?Xr(t):(n==="number"?Wn:n==="string"?(r=Zt(t))?(t=r,ea):zb:t instanceof Zt?ea:t instanceof Date?Fb:Rb(t)?Nb:Array.isArray(t)?_b:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Ob:Wn)(e,t)}function Kb(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Ub(e){return function(){return e}}function Hb(e){return+e}var ta=[0,1];function bt(e){return e}function yr(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ub(isNaN(t)?NaN:.5)}function Gb(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Wb(e,t,n){var r=e[0],s=e[1],a=t[0],i=t[1];return s<r?(r=yr(s,r),a=n(i,a)):(r=yr(r,s),a=n(a,i)),function(l){return a(r(l))}}function qb(e,t,n){var r=Math.min(e.length,t.length)-1,s=new Array(r),a=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<r;)s[i]=yr(e[i],e[i+1]),a[i]=n(t[i],t[i+1]);return function(l){var u=ub(e,l,1,r)-1;return a[u](s[u](l))}}function Yb(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Xb(){var e=ta,t=ta,n=Zr,r,s,a,i=bt,l,u,c;function d(){var h=Math.min(e.length,t.length);return i!==bt&&(i=Gb(e[0],e[h-1])),l=h>2?qb:Wb,u=c=null,f}function f(h){return h==null||isNaN(h=+h)?a:(u||(u=l(e.map(r),t,n)))(r(i(h)))}return f.invert=function(h){return i(s((c||(c=l(t,e.map(r),Wn)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Hb),d()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),d()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=Kb,d()},f.clamp=function(h){return arguments.length?(i=h?!0:bt,d()):i!==bt},f.interpolate=function(h){return arguments.length?(n=h,d()):n},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,m){return r=h,s=m,d()}}function Zb(){return Xb()(bt,bt)}function Jb(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function qn(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Bt(e){return e=qn(Math.abs(e)),e?e[1]:NaN}function Qb(e,t){return function(n,r){for(var s=n.length,a=[],i=0,l=e[0],u=0;s>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),a.push(n.substring(s-=l,s+l)),!((u+=l+1)>r));)l=e[i=(i+1)%e.length];return a.reverse().join(t)}}function ex(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var tx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Yn(e){if(!(t=tx.exec(e)))throw new Error("invalid format: "+e);var t;return new Jr({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Yn.prototype=Jr.prototype;function Jr(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Jr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function nx(e){e:for(var t=e.length,n=1,r=-1,s;n<t;++n)switch(e[n]){case".":r=s=n;break;case"0":r===0&&(r=n),s=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(s+1):e}var Xn;function ox(e,t){var n=qn(e,t);if(!n)return Xn=void 0,e.toPrecision(t);var r=n[0],s=n[1],a=s-(Xn=Math.max(-8,Math.min(8,Math.floor(s/3)))*3)+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+qn(e,Math.max(0,t+a-1))[0]}function na(e,t){var n=qn(e,t);if(!n)return e+"";var r=n[0],s=n[1];return s<0?"0."+new Array(-s).join("0")+r:r.length>s+1?r.slice(0,s+1)+"."+r.slice(s+1):r+new Array(s-r.length+2).join("0")}const oa={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Jb,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>na(e*100,t),r:na,s:ox,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ra(e){return e}var sa=Array.prototype.map,ia=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function rx(e){var t=e.grouping===void 0||e.thousands===void 0?ra:Qb(sa.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",s=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?ra:ex(sa.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(f,h){f=Yn(f);var m=f.fill,v=f.align,g=f.sign,p=f.symbol,y=f.zero,b=f.width,x=f.comma,w=f.precision,k=f.trim,S=f.type;S==="n"?(x=!0,S="g"):oa[S]||(w===void 0&&(w=12),k=!0,S="g"),(y||m==="0"&&v==="=")&&(y=!0,m="0",v="=");var E=(h&&h.prefix!==void 0?h.prefix:"")+(p==="$"?n:p==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():""),C=(p==="$"?r:/[%p]/.test(S)?i:"")+(h&&h.suffix!==void 0?h.suffix:""),$=oa[S],B=/[defgprs%]/.test(S);w=w===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function N(T){var M=E,P=C,F,R,O;if(S==="c")P=$(T)+P,T="";else{T=+T;var V=T<0||1/T<0;if(T=isNaN(T)?u:$(Math.abs(T),w),k&&(T=nx(T)),V&&+T==0&&g!=="+"&&(V=!1),M=(V?g==="("?g:l:g==="-"||g==="("?"":g)+M,P=(S==="s"&&!isNaN(T)&&Xn!==void 0?ia[8+Xn/3]:"")+P+(V&&g==="("?")":""),B){for(F=-1,R=T.length;++F<R;)if(O=T.charCodeAt(F),48>O||O>57){P=(O===46?s+T.slice(F+1):T.slice(F))+P,T=T.slice(0,F);break}}}x&&!y&&(T=t(T,1/0));var J=M.length+T.length+P.length,Q=J<b?new Array(b-J+1).join(m):"";switch(x&&y&&(T=t(Q+T,Q.length?b-P.length:1/0),Q=""),v){case"<":T=M+T+P+Q;break;case"=":T=M+Q+T+P;break;case"^":T=Q.slice(0,J=Q.length>>1)+M+T+P+Q.slice(J);break;default:T=Q+M+T+P;break}return a(T)}return N.toString=function(){return f+""},N}function d(f,h){var m=Math.max(-8,Math.min(8,Math.floor(Bt(h)/3)))*3,v=Math.pow(10,-m),g=c((f=Yn(f),f.type="f",f),{suffix:ia[8+m/3]});return function(p){return g(v*p)}}return{format:c,formatPrefix:d}}var Sn,Ju,Qu;sx({thousands:",",grouping:[3],currency:["$",""]});function sx(e){return Sn=rx(e),Ju=Sn.format,Qu=Sn.formatPrefix,Sn}function ix(e){return Math.max(0,-Bt(Math.abs(e)))}function ax(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Bt(t)/3)))*3-Bt(Math.abs(e)))}function lx(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Bt(t)-Bt(e))+1}function ux(e,t,n,r){var s=vb(e,t,n),a;switch(r=Yn(r??",f"),r.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=ax(s,i))&&(r.precision=a),Qu(r,i)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=lx(s,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=ix(s))&&(r.precision=a-(r.type==="%")*2);break}}return Ju(r)}function cx(e){var t=e.domain;return e.ticks=function(n){var r=t();return gb(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var s=t();return ux(s[0],s[s.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),s=0,a=r.length-1,i=r[s],l=r[a],u,c,d=10;for(l<i&&(c=i,i=l,l=c,c=s,s=a,a=c);d-- >0;){if(c=mr(i,l,n),c===u)return r[s]=i,r[a]=l,t(r);if(c>0)i=Math.floor(i/c)*c,l=Math.ceil(l/c)*c;else if(c<0)i=Math.ceil(i*c)/c,l=Math.floor(l*c)/c;else break;u=c}return e},e}function ec(){var e=Zb();return e.copy=function(){return Yb(e,ec())},qr.apply(e,arguments),cx(e)}const pt={top:12,right:14,bottom:24,left:38};function so(e){const t=o.ref(600);let n=null;o.onMounted(()=>{const v=e.wrapperRef.value;v&&(t.value=v.clientWidth||600,n=new ResizeObserver(g=>{const p=g[0]?.contentRect.width;p&&(t.value=p)}),n.observe(v))}),o.onBeforeUnmount(()=>n?.disconnect());const r=o.computed(()=>Math.max(0,t.value-pt.left-pt.right)),s=o.computed(()=>Math.max(0,e.height()-pt.top-pt.bottom)),a=o.computed(()=>e.data().map(v=>String(v[e.xKey()]))),i=o.computed(()=>bb().domain(a.value).range([0,r.value])),l=o.computed(()=>un().domain(a.value).range([0,r.value]).padding(e.bandPadding??.3)),u=o.computed(()=>{let v=0;for(const g of e.data())for(const p of e.yKeys()){const y=Number(g[p])||0;y>v&&(v=y)}return v}),c=o.computed(()=>ec().domain([0,u.value*1.1||1]).range([s.value,0])),d=o.computed(()=>c.value.ticks(4)),f=o.ref(null);function h(v){const g=e.wrapperRef.value,p=a.value.length;if(!g||p===0)return;const y=g.getBoundingClientRect(),b=v.clientX-y.left-pt.left,x=e.mode==="band"?Math.floor(b/(r.value/p)):Math.round(b/(r.value/Math.max(1,p-1)));f.value=Math.max(0,Math.min(p-1,x))}function m(){f.value=null}return{width:t,margin:pt,innerW:r,innerH:s,categories:a,xPoint:i,xBand:l,y:c,yTicks:d,maxY:u,hoverIndex:f,onMove:h,onLeave:m}}const dx={key:0,class:"mb-1 font-medium text-foreground"},fx={class:"text-gray-darkest"},hx={class:"ml-auto font-medium text-foreground"},At=o.defineComponent({__name:"ChartTooltip",props:{visible:{type:Boolean},x:{},y:{},title:{},items:{},style:{}},setup(e){return(t,n)=>e.visible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"pointer-events-none absolute z-10 -translate-x-1/2 -translate-y-full px-3 py-2 text-xs",style:o.normalizeStyle({left:`${e.x}px`,top:`${e.y-8}px`,background:e.style.background,border:`1px solid ${e.style.border}`,borderRadius:`${e.style.radius}px`,boxShadow:e.style.shadow})},[e.title?(o.openBlock(),o.createElementBlock("div",dx,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,r=>(o.openBlock(),o.createElementBlock("div",{key:r.label,class:"flex items-center gap-2 whitespace-nowrap"},[o.createElementVNode("span",{class:"inline-block h-2 w-2 rounded-full",style:o.normalizeStyle({background:r.color})},null,4),o.createElementVNode("span",fx,o.toDisplayString(r.label),1),o.createElementVNode("span",hx,o.toDisplayString(r.value),1)]))),128))],4)):o.createCommentVNode("",!0)}}),px=["width","height","viewBox"],mx=["id"],gx=["stop-color"],vx=["stop-color"],yx=["transform"],bx=["x2","y1","y2","stroke"],xx=["y","fill"],wx=["x","y","fill"],kx=["x1","x2","y2","stroke"],Sx=o.defineComponent({__name:"EvxAreaChart",props:{data:{},xKey:{default:"x"},yKeys:{default:()=>["y"]},seriesLabels:{},height:{default:260}},setup(e){const t=e,{colors:n,axis:r,grid:s,tooltip:a}=ct(),i=o.useId(),l=o.ref(null),{width:u,margin:c,innerW:d,innerH:f,categories:h,xPoint:m,y:v,yTicks:g,hoverIndex:p,onMove:y,onLeave:b}=so({wrapperRef:l,data:()=>t.data,xKey:()=>t.xKey,yKeys:()=>t.yKeys,height:()=>t.height}),x=o.computed(()=>{const k=m.value,S=v.value;return t.yKeys.map((E,C)=>{const $=n.value[C%n.value.length],B=tb().x(T=>k(String(T[t.xKey]))??0).y0(f.value).y1(T=>S(Number(T[E])||0)).curve(Kn),N=ro().x(T=>k(String(T[t.xKey]))??0).y(T=>S(Number(T[E])||0)).curve(Kn);return{key:E,label:t.seriesLabels?.[C]??E,color:$,areaPath:B(t.data)??"",linePath:N(t.data)??"",fillId:`evx-area-${i}-${C}`}})}),w=o.computed(()=>{if(p.value===null)return null;const k=t.data[p.value];if(!k)return null;const S=(m.value(String(k[t.xKey]))??0)+c.left,E=x.value.map($=>({label:$.label,color:$.color,value:Number(k[$.key])||0})),C=c.top+Math.min(...t.yKeys.map($=>v.value(Number(k[$])||0)));return{px:S,topY:C,title:String(k[t.xKey]),items:E}});return(k,S)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"wrapperRef",ref:l,class:"relative w-full",style:o.normalizeStyle({height:`${e.height}px`})},[(o.openBlock(),o.createElementBlock("svg",{width:o.unref(u),height:e.height,viewBox:`0 0 ${o.unref(u)} ${e.height}`,onMousemove:S[0]||(S[0]=(...E)=>o.unref(y)&&o.unref(y)(...E)),onMouseleave:S[1]||(S[1]=(...E)=>o.unref(b)&&o.unref(b)(...E))},[o.createElementVNode("defs",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.value,E=>(o.openBlock(),o.createElementBlock("linearGradient",{id:E.fillId,key:E.fillId,x1:"0",y1:"0",x2:"0",y2:"1"},[o.createElementVNode("stop",{offset:"0%","stop-color":E.color,"stop-opacity":"0.35"},null,8,gx),o.createElementVNode("stop",{offset:"100%","stop-color":E.color,"stop-opacity":"0.02"},null,8,vx)],8,mx))),128))]),o.createElementVNode("g",{transform:`translate(${o.unref(c).left},${o.unref(c).top})`},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(g),E=>(o.openBlock(),o.createElementBlock("line",{key:`g-${E}`,x1:"0",x2:o.unref(d),y1:o.unref(v)(E),y2:o.unref(v)(E),stroke:o.unref(s),"stroke-dasharray":"3 3"},null,8,bx))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(g),E=>(o.openBlock(),o.createElementBlock("text",{key:`yl-${E}`,x:"-8",y:o.unref(v)(E),dy:"0.32em","text-anchor":"end",fill:o.unref(r),"font-size":"11"},o.toDisplayString(E),9,xx))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(h),(E,C)=>(o.openBlock(),o.createElementBlock("text",{key:`xl-${E}-${C}`,x:o.unref(m)(E),y:o.unref(f)+18,"text-anchor":"middle",fill:o.unref(r),"font-size":"11"},o.toDisplayString(E),9,wx))),128)),w.value?(o.openBlock(),o.createElementBlock("line",{key:0,x1:w.value.px-o.unref(c).left,x2:w.value.px-o.unref(c).left,y1:"0",y2:o.unref(f),stroke:o.unref(r),"stroke-opacity":"0.25"},null,8,kx)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.value,E=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:E.key},[o.createVNode(o.unref(Ne),{as:"path",d:E.areaPath,fill:`url(#${E.fillId})`,initial:{opacity:0},animate:{opacity:1},transition:{duration:.5}},null,8,["d","fill"]),o.createVNode(o.unref(Ne),{as:"path",d:E.linePath,fill:"none",stroke:E.color,"stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.7,ease:"easeOut"}},null,8,["d","stroke"])],64))),128))],8,yx)],40,px)),w.value?(o.openBlock(),o.createBlock(At,{key:0,visible:!0,x:w.value.px,y:w.value.topY,title:w.value.title,items:w.value.items,style:o.normalizeStyle(o.unref(a))},null,8,["x","y","title","items","style"])):o.createCommentVNode("",!0)],4))}}),Ex=["width","height","viewBox"],Cx=["transform"],Bx=["x2","y1","y2","stroke"],Tx=["y","fill"],$x=["x","y","fill"],Mx=o.defineComponent({__name:"EvxBarChart",props:{data:{},xKey:{default:"x"},yKeys:{default:()=>["y"]},seriesLabels:{},height:{default:260}},setup(e){const t=e,{colors:n,axis:r,grid:s,tooltip:a}=ct(),i=o.ref(null),{width:l,margin:u,innerW:c,innerH:d,categories:f,xBand:h,y:m,yTicks:v,hoverIndex:g,onMove:p,onLeave:y}=so({wrapperRef:i,data:()=>t.data,xKey:()=>t.xKey,yKeys:()=>t.yKeys,height:()=>t.height,mode:"band"}),b=o.computed(()=>un().domain(t.yKeys).range([0,h.value.bandwidth()]).padding(.15)),x=o.computed(()=>{const k=[],S=b.value;for(const E of t.data){const C=h.value(String(E[t.xKey]))??0;t.yKeys.forEach(($,B)=>{const N=Number(E[$])||0,T=m.value(N);k.push({key:`${E[t.xKey]}-${$}`,x:C+(S($)??0),y:T,w:S.bandwidth(),h:d.value-T,color:n.value[B%n.value.length]})})}return k}),w=o.computed(()=>{if(g.value===null)return null;const k=t.data[g.value];if(!k)return null;const S=u.left+(h.value(String(k[t.xKey]))??0)+h.value.bandwidth()/2,E=t.yKeys.map(($,B)=>({label:t.seriesLabels?.[B]??$,color:n.value[B%n.value.length],value:Number(k[$])||0})),C=u.top+Math.min(...t.yKeys.map($=>m.value(Number(k[$])||0)));return{px:S,topY:C,title:String(k[t.xKey]),items:E}});return(k,S)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"wrapperRef",ref:i,class:"relative w-full",style:o.normalizeStyle({height:`${e.height}px`})},[(o.openBlock(),o.createElementBlock("svg",{width:o.unref(l),height:e.height,viewBox:`0 0 ${o.unref(l)} ${e.height}`,onMousemove:S[0]||(S[0]=(...E)=>o.unref(p)&&o.unref(p)(...E)),onMouseleave:S[1]||(S[1]=(...E)=>o.unref(y)&&o.unref(y)(...E))},[o.createElementVNode("g",{transform:`translate(${o.unref(u).left},${o.unref(u).top})`},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(v),E=>(o.openBlock(),o.createElementBlock("line",{key:`g-${E}`,x1:"0",x2:o.unref(c),y1:o.unref(m)(E),y2:o.unref(m)(E),stroke:o.unref(s),"stroke-dasharray":"3 3"},null,8,Bx))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(v),E=>(o.openBlock(),o.createElementBlock("text",{key:`yl-${E}`,x:"-8",y:o.unref(m)(E),dy:"0.32em","text-anchor":"end",fill:o.unref(r),"font-size":"11"},o.toDisplayString(E),9,Tx))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(f),(E,C)=>(o.openBlock(),o.createElementBlock("text",{key:`xl-${E}-${C}`,x:(o.unref(h)(E)??0)+o.unref(h).bandwidth()/2,y:o.unref(d)+18,"text-anchor":"middle",fill:o.unref(r),"font-size":"11"},o.toDisplayString(E),9,$x))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.value,E=>(o.openBlock(),o.createBlock(o.unref(Ne),{key:E.key,as:"rect",x:E.x,y:E.y,width:E.w,height:E.h,rx:"4",fill:E.color,style:{transformBox:"fill-box",transformOrigin:"bottom"},initial:{scaleY:0},animate:{scaleY:1},transition:{duration:.5,ease:"easeOut"}},null,8,["x","y","width","height","fill"]))),128))],8,Cx)],40,Ex)),w.value?(o.openBlock(),o.createBlock(At,{key:0,visible:!0,x:w.value.px,y:w.value.topY,title:w.value.title,items:w.value.items,style:o.normalizeStyle(o.unref(a))},null,8,["x","y","title","items","style"])):o.createCommentVNode("",!0)],4))}}),Vx=["width","height","viewBox"],Px=["transform"],Ax=["x2","y1","y2","stroke"],Lx=["y","fill"],Dx=["x","y","fill"],Nx=["x1","x2","y2","stroke"],Rx=o.defineComponent({__name:"EvxLineChart",props:{data:{},xKey:{default:"x"},yKeys:{default:()=>["y"]},seriesLabels:{},height:{default:260}},setup(e){const t=e,{colors:n,axis:r,grid:s,tooltip:a}=ct(),i=o.ref(null),{width:l,margin:u,innerW:c,innerH:d,categories:f,xPoint:h,y:m,yTicks:v,hoverIndex:g,onMove:p,onLeave:y}=so({wrapperRef:i,data:()=>t.data,xKey:()=>t.xKey,yKeys:()=>t.yKeys,height:()=>t.height}),b=o.computed(()=>{const w=h.value,k=m.value;return t.yKeys.map((S,E)=>{const C=ro().x($=>w(String($[t.xKey]))??0).y($=>k(Number($[S])||0)).curve(Kn);return{key:S,label:t.seriesLabels?.[E]??S,color:n.value[E%n.value.length],linePath:C(t.data)??""}})}),x=o.computed(()=>{if(g.value===null)return null;const w=t.data[g.value];if(!w)return null;const k=(h.value(String(w[t.xKey]))??0)+u.left,S=b.value.map(C=>({label:C.label,color:C.color,value:Number(w[C.key])||0})),E=u.top+Math.min(...t.yKeys.map(C=>m.value(Number(w[C])||0)));return{px:k,topY:E,title:String(w[t.xKey]),items:S}});return(w,k)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"wrapperRef",ref:i,class:"relative w-full",style:o.normalizeStyle({height:`${e.height}px`})},[(o.openBlock(),o.createElementBlock("svg",{width:o.unref(l),height:e.height,viewBox:`0 0 ${o.unref(l)} ${e.height}`,onMousemove:k[0]||(k[0]=(...S)=>o.unref(p)&&o.unref(p)(...S)),onMouseleave:k[1]||(k[1]=(...S)=>o.unref(y)&&o.unref(y)(...S))},[o.createElementVNode("g",{transform:`translate(${o.unref(u).left},${o.unref(u).top})`},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(v),S=>(o.openBlock(),o.createElementBlock("line",{key:`g-${S}`,x1:"0",x2:o.unref(c),y1:o.unref(m)(S),y2:o.unref(m)(S),stroke:o.unref(s),"stroke-dasharray":"3 3"},null,8,Ax))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(v),S=>(o.openBlock(),o.createElementBlock("text",{key:`yl-${S}`,x:"-8",y:o.unref(m)(S),dy:"0.32em","text-anchor":"end",fill:o.unref(r),"font-size":"11"},o.toDisplayString(S),9,Lx))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(f),(S,E)=>(o.openBlock(),o.createElementBlock("text",{key:`xl-${S}-${E}`,x:o.unref(h)(S),y:o.unref(d)+18,"text-anchor":"middle",fill:o.unref(r),"font-size":"11"},o.toDisplayString(S),9,Dx))),128)),x.value?(o.openBlock(),o.createElementBlock("line",{key:0,x1:x.value.px-o.unref(u).left,x2:x.value.px-o.unref(u).left,y1:"0",y2:o.unref(d),stroke:o.unref(r),"stroke-opacity":"0.25"},null,8,Nx)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(b.value,S=>(o.openBlock(),o.createBlock(o.unref(Ne),{key:S.key,as:"path",d:S.linePath,fill:"none",stroke:S.color,"stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.7,ease:"easeOut"}},null,8,["d","stroke"]))),128))],8,Px)],40,Vx)),x.value?(o.openBlock(),o.createBlock(At,{key:0,visible:!0,x:x.value.px,y:x.value.topY,title:x.value.title,items:x.value.items,style:o.normalizeStyle(o.unref(a))},null,8,["x","y","title","items","style"])):o.createCommentVNode("",!0)],4))}}),_x=["width","height","viewBox"],Fx=["transform"],Ox=o.defineComponent({__name:"EvxPieChart",props:{data:{},nameKey:{default:"name"},valueKey:{default:"value"},donut:{type:Boolean,default:!1},height:{default:260}},setup(e){const t=e,{colors:n,tooltip:r}=ct(),s=o.ref(null),a=o.ref(600);let i=null;o.onMounted(()=>{const v=s.value;v&&(a.value=v.clientWidth||600,i=new ResizeObserver(g=>{const p=g[0]?.contentRect.width;p&&(a.value=p)}),i.observe(v))}),o.onBeforeUnmount(()=>i?.disconnect());const l=o.computed(()=>a.value/2),u=o.computed(()=>t.height/2),c=o.computed(()=>Math.max(0,Math.min(a.value,t.height)/2-8)),d=o.computed(()=>t.donut?c.value*.6:0),f=o.computed(()=>{const v=rb().value(p=>Number(p[t.valueKey])||0).sort(null),g=pr().innerRadius(d.value).outerRadius(c.value).cornerRadius(2).padAngle(.015);return v(t.data).map((p,y)=>({key:`${p.data[t.nameKey]}-${y}`,label:String(p.data[t.nameKey]),value:Number(p.data[t.valueKey])||0,color:n.value[y%n.value.length],path:g({startAngle:p.startAngle,endAngle:p.endAngle})??""}))}),h=o.ref(null),m=o.computed(()=>{if(h.value===null)return null;const v=f.value[h.value];if(!v)return null;const g=[{label:v.label,color:v.color,value:v.value}];return{px:l.value,topY:u.value-c.value,title:v.label,items:g}});return(v,g)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"wrapperRef",ref:s,class:"relative w-full",style:o.normalizeStyle({height:`${e.height}px`})},[(o.openBlock(),o.createElementBlock("svg",{width:a.value,height:e.height,viewBox:`0 0 ${a.value} ${e.height}`},[o.createElementVNode("g",{transform:`translate(${l.value},${u.value})`},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(p,y)=>(o.openBlock(),o.createBlock(o.unref(Ne),{key:p.key,as:"path",d:p.path,fill:p.color,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.4,ease:"easeOut"},onMouseenter:b=>h.value=y,onMouseleave:g[0]||(g[0]=b=>h.value=null)},null,8,["d","fill","onMouseenter"]))),128))],8,Fx)],8,_x)),m.value?(o.openBlock(),o.createBlock(At,{key:0,visible:!0,x:m.value.px,y:m.value.topY,title:m.value.title,items:m.value.items,style:o.normalizeStyle(o.unref(r))},null,8,["x","y","title","items","style"])):o.createCommentVNode("",!0)],4))}}),Ix=["width","height","viewBox"],jx=["points","stroke"],zx=["x1","y1","x2","y2","stroke"],Kx=["x","y","fill"],Ux=o.defineComponent({__name:"EvxRadarChart",props:{data:{},nameKey:{default:"name"},valueKeys:{default:()=>["value"]},seriesLabels:{},height:{default:260}},setup(e){const t=e,{colors:n,axis:r,grid:s}=ct(),a=o.ref(null),i=o.ref(600);let l=null;o.onMounted(()=>{const y=a.value;y&&(i.value=y.clientWidth||600,l=new ResizeObserver(b=>{const x=b[0]?.contentRect.width;x&&(i.value=x)}),l.observe(y))}),o.onBeforeUnmount(()=>l?.disconnect());const u=o.computed(()=>i.value/2),c=o.computed(()=>t.height/2),d=o.computed(()=>Math.max(0,Math.min(i.value,t.height)/2-28)),f=o.computed(()=>t.data.map(y=>String(y[t.nameKey]))),h=o.computed(()=>{let y=0;for(const b of t.data)for(const x of t.valueKeys){const w=Number(b[x])||0;w>y&&(y=w)}return y||1});function m(y,b,x){const w=Math.PI*2*b/x-Math.PI/2,k=y/h.value*d.value;return[u.value+Math.cos(w)*k,c.value+Math.sin(w)*k]}const v=o.computed(()=>{const y=f.value.length;return[.25,.5,.75,1].map(b=>f.value.map((x,w)=>{const[k,S]=m(h.value*b,w,y);return`${k},${S}`}).join(" "))}),g=o.computed(()=>{const y=f.value.length;return f.value.map((b,x)=>{const[w,k]=m(h.value,x,y),[S,E]=m(h.value*1.12,x,y);return{x:w,y:k,lx:S,ly:E,label:b}})}),p=o.computed(()=>{const y=f.value.length;return t.valueKeys.map((b,x)=>({key:b,label:t.seriesLabels?.[x]??b,color:n.value[x%n.value.length],points:t.data.map((w,k)=>{const[S,E]=m(Number(w[b])||0,k,y);return`${S},${E}`}).join(" ")}))});return(y,b)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"wrapperRef",ref:a,class:"relative w-full",style:o.normalizeStyle({height:`${e.height}px`})},[(o.openBlock(),o.createElementBlock("svg",{width:i.value,height:e.height,viewBox:`0 0 ${i.value} ${e.height}`},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(v.value,(x,w)=>(o.openBlock(),o.createElementBlock("polygon",{key:`ring-${w}`,points:x,fill:"none",stroke:o.unref(s)},null,8,jx))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g.value,(x,w)=>(o.openBlock(),o.createElementBlock("line",{key:`spoke-${w}`,x1:u.value,y1:c.value,x2:x.x,y2:x.y,stroke:o.unref(s)},null,8,zx))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g.value,(x,w)=>(o.openBlock(),o.createElementBlock("text",{key:`axis-${w}`,x:x.lx,y:x.ly,"text-anchor":"middle",dy:"0.32em",fill:o.unref(r),"font-size":"11"},o.toDisplayString(x.label),9,Kx))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.value,x=>(o.openBlock(),o.createBlock(o.unref(Ne),{key:x.key,as:"polygon",points:x.points,fill:x.color,"fill-opacity":"0.15",stroke:x.color,"stroke-width":"2",initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,ease:"easeOut"}},null,8,["points","fill","stroke"]))),128))],8,Ix))],4))}}),Hx=["width","height","viewBox"],Gx=["transform"],Wx=["d","fill"],qx=o.defineComponent({__name:"EvxRadialChart",props:{data:{},nameKey:{default:"name"},valueKey:{default:"value"},max:{},height:{default:260}},setup(e){const t=e,{colors:n,grid:r,tooltip:s}=ct(),a=o.ref(null),i=o.ref(600);let l=null;o.onMounted(()=>{const g=a.value;g&&(i.value=g.clientWidth||600,l=new ResizeObserver(p=>{const y=p[0]?.contentRect.width;y&&(i.value=y)}),l.observe(g))}),o.onBeforeUnmount(()=>l?.disconnect());const u=o.computed(()=>i.value/2),c=o.computed(()=>t.height/2),d=o.computed(()=>Math.max(0,Math.min(i.value,t.height)/2-8)),f=o.computed(()=>{if(t.max)return t.max;let g=0;for(const p of t.data){const y=Number(p[t.valueKey])||0;y>g&&(g=y)}return g||1}),h=o.computed(()=>{const g=t.data.length,p=d.value*.7/Math.max(1,g),y=p*.25;return t.data.map((b,x)=>{const w=d.value-x*p,k=w-(p-y),S=Number(b[t.valueKey])||0,E=Math.max(0,Math.min(1,S/f.value)),C=pr().innerRadius(k).outerRadius(w).startAngle(0).endAngle(Math.PI*2).cornerRadius(p),$=pr().innerRadius(k).outerRadius(w).startAngle(0).endAngle(Math.PI*2*E).cornerRadius(p);return{key:`${b[t.nameKey]}-${x}`,label:String(b[t.nameKey]),value:S,color:n.value[x%n.value.length],track:C(null)??"",fill:$(null)??""}})}),m=o.ref(null),v=o.computed(()=>{if(m.value===null)return null;const g=h.value[m.value];if(!g)return null;const p=[{label:g.label,color:g.color,value:g.value}];return{px:u.value,topY:c.value-d.value,title:g.label,items:p}});return(g,p)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"wrapperRef",ref:a,class:"relative w-full",style:o.normalizeStyle({height:`${e.height}px`})},[(o.openBlock(),o.createElementBlock("svg",{width:i.value,height:e.height,viewBox:`0 0 ${i.value} ${e.height}`},[o.createElementVNode("g",{transform:`translate(${u.value},${c.value})`},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,y=>(o.openBlock(),o.createElementBlock("path",{key:`track-${y.key}`,d:y.track,fill:o.unref(r)},null,8,Wx))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,(y,b)=>(o.openBlock(),o.createBlock(o.unref(Ne),{key:`fill-${y.key}`,as:"path",d:y.fill,fill:y.color,initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,ease:"easeOut"},onMouseenter:x=>m.value=b,onMouseleave:p[0]||(p[0]=x=>m.value=null)},null,8,["d","fill","onMouseenter"]))),128))],8,Gx)],8,Hx)),v.value?(o.openBlock(),o.createBlock(At,{key:0,visible:!0,x:v.value.px,y:v.value.topY,title:v.value.title,items:v.value.items,style:o.normalizeStyle(o.unref(s))},null,8,["x","y","title","items","style"])):o.createCommentVNode("",!0)],4))}}),Yx=["width","height","viewBox"],Xx=["transform"],Zx=["x2","y1","y2","stroke"],Jx=["y","fill"],Qx=["x","y","fill"],ew=o.defineComponent({__name:"EvxComposedChart",props:{data:{},xKey:{default:"x"},barKeys:{default:()=>["bar"]},lineKeys:{default:()=>["line"]},seriesLabels:{},height:{default:260}},setup(e){const t=e,n=o.computed(()=>[...t.barKeys,...t.lineKeys]),{colors:r,axis:s,grid:a,tooltip:i}=ct(),l=o.ref(null),{width:u,margin:c,innerW:d,innerH:f,categories:h,xBand:m,y:v,yTicks:g,hoverIndex:p,onMove:y,onLeave:b}=so({wrapperRef:l,data:()=>t.data,xKey:()=>t.xKey,yKeys:()=>n.value,height:()=>t.height,mode:"band"}),x=o.computed(()=>un().domain(t.barKeys).range([0,m.value.bandwidth()]).padding(.15)),w=C=>r.value[n.value.indexOf(C)%r.value.length],k=o.computed(()=>{const C=[],$=x.value;for(const B of t.data){const N=m.value(String(B[t.xKey]))??0;t.barKeys.forEach(T=>{const M=Number(B[T])||0,P=v.value(M);C.push({key:`${B[t.xKey]}-${T}`,x:N+($(T)??0),y:P,w:$.bandwidth(),h:f.value-P,color:w(T)})})}return C}),S=o.computed(()=>t.lineKeys.map(C=>{const $=ro().x(B=>(m.value(String(B[t.xKey]))??0)+m.value.bandwidth()/2).y(B=>v.value(Number(B[C])||0)).curve(Kn);return{key:C,color:w(C),path:$(t.data)??""}})),E=o.computed(()=>{if(p.value===null)return null;const C=t.data[p.value];if(!C)return null;const $=c.left+(m.value(String(C[t.xKey]))??0)+m.value.bandwidth()/2,B=n.value.map((T,M)=>({label:t.seriesLabels?.[M]??T,color:w(T),value:Number(C[T])||0})),N=c.top+Math.min(...n.value.map(T=>v.value(Number(C[T])||0)));return{px:$,topY:N,title:String(C[t.xKey]),items:B}});return(C,$)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"wrapperRef",ref:l,class:"relative w-full",style:o.normalizeStyle({height:`${e.height}px`})},[(o.openBlock(),o.createElementBlock("svg",{width:o.unref(u),height:e.height,viewBox:`0 0 ${o.unref(u)} ${e.height}`,onMousemove:$[0]||($[0]=(...B)=>o.unref(y)&&o.unref(y)(...B)),onMouseleave:$[1]||($[1]=(...B)=>o.unref(b)&&o.unref(b)(...B))},[o.createElementVNode("g",{transform:`translate(${o.unref(c).left},${o.unref(c).top})`},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(g),B=>(o.openBlock(),o.createElementBlock("line",{key:`g-${B}`,x1:"0",x2:o.unref(d),y1:o.unref(v)(B),y2:o.unref(v)(B),stroke:o.unref(a),"stroke-dasharray":"3 3"},null,8,Zx))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(g),B=>(o.openBlock(),o.createElementBlock("text",{key:`yl-${B}`,x:"-8",y:o.unref(v)(B),dy:"0.32em","text-anchor":"end",fill:o.unref(s),"font-size":"11"},o.toDisplayString(B),9,Jx))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(h),(B,N)=>(o.openBlock(),o.createElementBlock("text",{key:`xl-${B}-${N}`,x:(o.unref(m)(B)??0)+o.unref(m).bandwidth()/2,y:o.unref(f)+18,"text-anchor":"middle",fill:o.unref(s),"font-size":"11"},o.toDisplayString(B),9,Qx))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(k.value,B=>(o.openBlock(),o.createBlock(o.unref(Ne),{key:B.key,as:"rect",x:B.x,y:B.y,width:B.w,height:B.h,rx:"4",fill:B.color,style:{transformBox:"fill-box",transformOrigin:"bottom"},initial:{scaleY:0},animate:{scaleY:1},transition:{duration:.5,ease:"easeOut"}},null,8,["x","y","width","height","fill"]))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.value,B=>(o.openBlock(),o.createBlock(o.unref(Ne),{key:B.key,as:"path",d:B.path,fill:"none",stroke:B.color,"stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.7,ease:"easeOut"}},null,8,["d","stroke"]))),128))],8,Xx)],40,Yx)),E.value?(o.openBlock(),o.createBlock(At,{key:0,visible:!0,x:E.value.px,y:E.value.topY,title:E.value.title,items:E.value.items,style:o.normalizeStyle(o.unref(i))},null,8,["x","y","title","items","style"])):o.createCommentVNode("",!0)],4))}});exports.AmazonLogoIcon=Z.AmazonLogoIcon;exports.ArrowLeftIcon=Z._sfc_main$2;exports.CrossIcon=Z._sfc_main;exports.EvixLogo=Z.EvixLogo;exports.LenseIcon=Z._sfc_main$1;exports.LogOutIcon=Z.LogOutIcon;exports.MinusIcon=Z.MinusIcon;exports.PlusIcon=Z.PlusIcon;exports.UserIcon=Z.UserIcon;exports.AccountInfo=np;exports.BadgeFilters=$h;exports.BrandCard=lh;exports.CredentialForm=qf;exports.EvAccordion=sh;exports.EvAlert=cp;exports.EvAppBackground=$p;exports.EvBackground=Tr;exports.EvBackgroundAnimated=mh;exports.EvBackgroundStatic=gh;exports.EvButton=St;exports.EvCheckbox=hf;exports.EvConfirmDialog=kp;exports.EvCookieBanner=Lp;exports.EvDataTable=sm;exports.EvFooter=Ch;exports.EvGlassCard=Bp;exports.EvHeader=Qf;exports.EvHowToStep=_p;exports.EvInput=tl;exports.EvList=Vh;exports.EvListItem=Oh;exports.EvModal=Gp;exports.EvPopup=nl;exports.EvRadio=jf;exports.EvRadioGroup=Tf;exports.EvRadioLabel=Df;exports.EvRadioOption=Lf;exports.EvSearch=Cf;exports.EvSelect=vp;exports.EvSpinner=xr;exports.EvTabs=uf;exports.EvToggle=Bf;exports.EvxAreaChart=Sx;exports.EvxBarChart=Mx;exports.EvxComposedChart=ew;exports.EvxLineChart=Rx;exports.EvxPieChart=Ox;exports.EvxRadarChart=Ux;exports.EvxRadialChart=qx;exports.PageHeader=sp;exports.TableInfo=Wh;exports.__resetModalStackForTests=Ip;exports.sizes=Vo;exports.variants=aa;
51
79
  //# sourceMappingURL=evx-ui-kit.cjs.js.map