@mp-front/components 0.0.1-next-3 → 0.0.1-next-5

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 (46) hide show
  1. package/dist/classNames-CN12fVA7.cjs +1 -0
  2. package/dist/{index-CcUNk-y0.js → classNames-EUcv3dqx.js} +174 -188
  3. package/dist/components/index.d.ts +2 -0
  4. package/dist/components/index.d.ts.map +1 -1
  5. package/dist/components/steps/steps.component.d.ts +1 -1
  6. package/dist/components/steps/steps.component.d.ts.map +1 -1
  7. package/dist/components/steps/steps.stories.d.ts +4 -0
  8. package/dist/components/steps/steps.stories.d.ts.map +1 -1
  9. package/dist/components/steps/steps.types.d.ts +2 -0
  10. package/dist/components/steps/steps.types.d.ts.map +1 -1
  11. package/dist/components/toggle/constants/variants.d.ts +18 -0
  12. package/dist/components/toggle/constants/variants.d.ts.map +1 -0
  13. package/dist/components/toggle/index.d.ts +3 -0
  14. package/dist/components/toggle/index.d.ts.map +1 -0
  15. package/dist/components/toggle/toggle.component.d.ts +27 -0
  16. package/dist/components/toggle/toggle.component.d.ts.map +1 -0
  17. package/dist/components/toggle/toggle.stories.d.ts +15 -0
  18. package/dist/components/toggle/toggle.stories.d.ts.map +1 -0
  19. package/dist/components/toggle/toggle.test.d.ts +2 -0
  20. package/dist/components/toggle/toggle.test.d.ts.map +1 -0
  21. package/dist/components/toggle-group/index.d.ts +2 -0
  22. package/dist/components/toggle-group/index.d.ts.map +1 -0
  23. package/dist/components/toggle-group/toggle-group-context.d.ts +22 -0
  24. package/dist/components/toggle-group/toggle-group-context.d.ts.map +1 -0
  25. package/dist/components/toggle-group/toggle-group-item.component.d.ts +28 -0
  26. package/dist/components/toggle-group/toggle-group-item.component.d.ts.map +1 -0
  27. package/dist/components/toggle-group/toggle-group.component.d.ts +37 -0
  28. package/dist/components/toggle-group/toggle-group.component.d.ts.map +1 -0
  29. package/dist/components/toggle-group/toggle-group.stories.d.ts +16 -0
  30. package/dist/components/toggle-group/toggle-group.stories.d.ts.map +1 -0
  31. package/dist/components/toggle-group/toggle-group.test.d.ts +2 -0
  32. package/dist/components/toggle-group/toggle-group.test.d.ts.map +1 -0
  33. package/dist/index-B2-I-g4_.js +18 -0
  34. package/dist/index-CFlnP8Em.cjs +1 -0
  35. package/dist/layout/content.component.d.ts.map +1 -1
  36. package/dist/styles.css +1 -1
  37. package/dist/ui-components-hooks.js +1 -1
  38. package/dist/ui-components-index.cjs +30 -30
  39. package/dist/ui-components-index.js +7022 -6698
  40. package/dist/ui-components-layout.cjs +32 -32
  41. package/dist/ui-components-layout.js +6058 -5901
  42. package/dist/ui-components-utils.cjs +1 -1
  43. package/dist/ui-components-utils.js +7 -6
  44. package/dist/{useTranslation-Cenukg7h.js → useTranslation-DlVfOUdM.js} +3 -3
  45. package/package.json +2 -1
  46. package/dist/index-B2DyV2Jl.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const pe=require("./index-BP9HuXkV.cjs"),R=require("react"),ma=require("react-dom"),k0=require("./useTranslation-CnSCmJou.cjs");function uf(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 g=uf(R),ri=uf(ma);var D0="Separator",Bl="horizontal",L0=["horizontal","vertical"],cf=g.forwardRef((e,t)=>{const{decorative:n,orientation:r=Bl,...o}=e,i=I0(r)?r:Bl,c=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return pe.jsxRuntimeExports.jsx(pe.Primitive.div,{"data-orientation":i,...c,...o,ref:t})});cf.displayName=D0;function I0(e){return L0.includes(e)}var N0=cf;function df(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=df(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function F0(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=df(e))&&(r&&(r+=" "),r+=t);return r}const va="-",V0=e=>{const t=B0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const i=o.split(va);return i[0]===""&&i.length!==1&&i.shift(),ff(i,t)||$0(o)},getConflictingClassGroupIds:(o,i)=>{const l=n[o]||[];return i&&r[o]?[...l,...r[o]]:l}}},ff=(e,t)=>{var n;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),i=o?ff(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;const l=e.join(va);return(n=t.validators.find(({validator:c})=>c(l)))==null?void 0:n.classGroupId},zl=/^\[(.+)\]$/,$0=e=>{if(zl.test(e)){const t=zl.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},B0=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return H0(Object.entries(e.classGroups),n).forEach(([o,i])=>{_s(i,r,o,t)}),r},_s=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Hl(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(z0(o)){_s(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{_s(l,Hl(t,i),n,r)})})},Hl=(e,t)=>{let n=e;return t.split(va).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},z0=e=>e.isThemeGetter,H0=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,c])=>[t+l,c])):i);return[n,o]}):e,U0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,l)=>{n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}},pf="!",W0=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,l=c=>{const u=[];let a=0,s=0,d;for(let v=0;v<c.length;v++){let y=c[v];if(a===0){if(y===o&&(r||c.slice(v,v+i)===t)){u.push(c.slice(s,v)),s=v+i;continue}if(y==="/"){d=v;continue}}y==="["?a++:y==="]"&&a--}const f=u.length===0?c:c.substring(s),p=f.startsWith(pf),m=p?f.substring(1):f,h=d&&d>s?d-s:void 0;return{modifiers:u,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:h}};return n?c=>n({className:c,parseClassName:l}):l},G0=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},X0=e=>({cache:U0(e.cacheSize),parseClassName:W0(e),...V0(e)}),K0=/\s+/,Y0=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],l=e.trim().split(K0);let c="";for(let u=l.length-1;u>=0;u-=1){const a=l[u],{modifiers:s,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(a);let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=a+(c.length>0?" "+c:c);continue}if(h=r(f),!h){c=a+(c.length>0?" "+c:c);continue}m=!1}const v=G0(s).join(":"),y=d?v+pf:v,b=y+h;if(i.includes(b))continue;i.push(b);const w=o(h,m);for(let S=0;S<w.length;++S){const E=w[S];i.push(y+E)}c=a+(c.length>0?" "+c:c)}return c};function q0(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=hf(t))&&(r&&(r+=" "),r+=n);return r}const hf=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=hf(e[r]))&&(n&&(n+=" "),n+=t);return n};function Z0(e,...t){let n,r,o,i=l;function l(u){const a=t.reduce((s,d)=>d(s),e());return n=X0(a),r=n.cache.get,o=n.cache.set,i=c,c(u)}function c(u){const a=r(u);if(a)return a;const s=Y0(u,n);return o(u,s),s}return function(){return i(q0.apply(null,arguments))}}const fe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},mf=/^\[(?:([a-z-]+):)?(.+)\]$/i,Q0=/^\d+\/\d+$/,J0=new Set(["px","full","screen"]),eg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tg=/\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$/,ng=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,rg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,og=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ft=e=>cn(e)||J0.has(e)||Q0.test(e),yt=e=>bn(e,"length",fg),cn=e=>!!e&&!Number.isNaN(Number(e)),Vi=e=>bn(e,"number",cn),An=e=>!!e&&Number.isInteger(Number(e)),ig=e=>e.endsWith("%")&&cn(e.slice(0,-1)),ie=e=>mf.test(e),bt=e=>eg.test(e),sg=new Set(["length","size","percentage"]),ag=e=>bn(e,sg,vf),lg=e=>bn(e,"position",vf),ug=new Set(["image","url"]),cg=e=>bn(e,ug,hg),dg=e=>bn(e,"",pg),kn=()=>!0,bn=(e,t,n)=>{const r=mf.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},fg=e=>tg.test(e)&&!ng.test(e),vf=()=>!1,pg=e=>rg.test(e),hg=e=>og.test(e),mg=()=>{const e=fe("colors"),t=fe("spacing"),n=fe("blur"),r=fe("brightness"),o=fe("borderColor"),i=fe("borderRadius"),l=fe("borderSpacing"),c=fe("borderWidth"),u=fe("contrast"),a=fe("grayscale"),s=fe("hueRotate"),d=fe("invert"),f=fe("gap"),p=fe("gradientColorStops"),m=fe("gradientColorStopPositions"),h=fe("inset"),v=fe("margin"),y=fe("opacity"),b=fe("padding"),w=fe("saturate"),S=fe("scale"),E=fe("sepia"),A=fe("skew"),j=fe("space"),O=fe("translate"),T=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto",ie,t],P=()=>[ie,t],$=()=>["",ft,yt],F=()=>["auto",cn,ie],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",ie],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[cn,ie];return{cacheSize:500,separator:":",theme:{colors:[kn],spacing:[ft,yt],blur:["none","",bt,ie],brightness:D(),borderColor:[e],borderRadius:["none","","full",bt,ie],borderSpacing:P(),borderWidth:$(),contrast:D(),grayscale:L(),hueRotate:D(),invert:L(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[ig,yt],inset:k(),margin:k(),opacity:D(),padding:P(),saturate:D(),scale:D(),sepia:L(),skew:D(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[bt]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...U(),ie]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",An,ie]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",An,ie]}],"grid-cols":[{"grid-cols":[kn]}],"col-start-end":[{col:["auto",{span:["full",An,ie]},ie]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[kn]}],"row-start-end":[{row:["auto",{span:[An,ie]},ie]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...W()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie,t]}],"min-w":[{"min-w":[ie,t,"min","max","fit"]}],"max-w":[{"max-w":[ie,t,"none","full","min","max","fit","prose",{screen:[bt]},bt]}],h:[{h:[ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",bt,yt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Vi]}],"font-family":[{font:[kn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ie]}],"line-clamp":[{"line-clamp":["none",cn,Vi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ft,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ft,yt]}],"underline-offset":[{"underline-offset":["auto",ft,ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),lg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ag]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cg]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[ft,ie]}],"outline-w":[{outline:[ft,yt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ft,yt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",bt,dg]}],"shadow-color":[{shadow:[kn]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",bt,ie]}],grayscale:[{grayscale:[a]}],"hue-rotate":[{"hue-rotate":[s]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[a]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[s]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ie]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[An,ie]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ft,yt,Vi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},vg=Z0(mg),he=(...e)=>vg(F0(e)),hn=he,nn=(e,t)=>`${e}-${t}`,gg=(e,t)=>t?[(t==null?void 0:t.sm)&&`sm:${nn(e,t.sm)}`,(t==null?void 0:t.md)&&`md:${nn(e,t.md)}`,(t==null?void 0:t.lg)&&`lg:${nn(e,t.lg)}`,(t==null?void 0:t.xl)&&`xl:${nn(e,t.xl)}`].filter(Boolean):[],$i=(e,t)=>{const n=[];if(typeof t=="number"||typeof t=="string")n.push(nn(e,t));else if(t&&t){const[r,o]=t;n.push(nn(e,r)),n.push(...gg(e,o))}return n.join(" ")},yg=({className:e,...t})=>pe.jsxRuntimeExports.jsx("div",{className:hn("[&_svg]:w-40",e),...t}),bg=e=>g.createElement("svg",{height:"1em",width:"1em",fill:"currentColor",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M1.86879 5.11875C2.52504 3.25 4.28754 2 6.26879 2H25.7813C27.7625 2 29.525 3.25 30.1813 5.11875L31.3313 8.40625C32.0188 10.375 31.3938 12.4 30.025 13.6812V25.5063C30.025 27.9937 28.0125 30.0063 25.525 30.0063H6.52504C4.03754 30.0063 2.02504 27.9937 2.02504 25.5063V13.6812C0.656291 12.4 0.0312907 10.375 0.718791 8.40625L1.86879 5.11875ZM5.02504 14.9875V20H27.025V14.9875C26.9 14.9938 26.7813 15 26.6563 15C25.2938 15 24.0438 14.4437 23.1438 13.5437C22.2313 14.4437 20.9813 15 19.5875 15C18.2 15 16.9375 14.4375 16.025 13.5312C15.1125 14.4375 13.85 15 12.4625 15C11.0688 15 9.81879 14.4437 8.90629 13.5437C8.00629 14.45 6.76254 15 5.39379 15C5.26879 15 5.14379 14.9938 5.01879 14.9875H5.02504ZM10.8813 5L10.4063 9.73125C10.2875 10.9437 11.2375 12 12.4563 12C13.5938 12 14.5188 11.075 14.5188 9.9375V5H10.875H10.8813ZM17.525 9.9375C17.525 11.075 18.45 12 19.5875 12C20.8063 12 21.7625 10.9437 21.6375 9.73125L21.1625 5H17.5188V9.9375H17.525ZM24.7063 10.2375C24.8063 11.2375 25.65 12 26.65 12C28 12 28.9438 10.6687 28.4938 9.4L27.35 6.1125C27.1188 5.44375 26.4875 5 25.7813 5H24.1813L24.7063 10.2375ZM5.40004 12C6.40629 12 7.24379 11.2375 7.34379 10.2375L7.86879 5H6.26879C5.56254 5 4.93754 5.44375 4.70004 6.1125L3.55004 9.4C3.10629 10.675 4.05004 12 5.39379 12H5.40004ZM5.02504 25.5C5.02504 26.3312 5.69379 27 6.52504 27H25.525C26.3563 27 27.025 26.3312 27.025 25.5V23H5.02504V25.5Z"})),wg=e=>g.createElement("svg",{height:"1em",width:"1em",fill:"currentColor",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M14.7688 8.45C15.5563 7.80625 16.7125 7.85625 17.4438 8.5875L25.4438 16.5875C26.0188 17.1625 26.1875 18.0188 25.875 18.7688C25.5625 19.5188 24.8375 20 24.0313 20H8.03127C7.22502 20 6.49377 19.5125 6.18127 18.7625C5.86877 18.0125 6.04377 17.1563 6.61877 16.5875L14.6188 8.5875L14.7688 8.45Z"}));var Bi={exports:{}},Dn={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const pe=require("./index-BP9HuXkV.cjs"),gn=require("./classNames-CN12fVA7.cjs"),_=require("react"),bs=require("react-dom"),Hg=require("./useTranslation-CnSCmJou.cjs");function ff(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 g=ff(_),ii=ff(bs);var Gg="Separator",Ul="horizontal",Wg=["horizontal","vertical"],pf=g.forwardRef((e,t)=>{const{decorative:n,orientation:r=Ul,...o}=e,i=Xg(r)?r:Ul,c=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return pe.jsxRuntimeExports.jsx(pe.Primitive.div,{"data-orientation":i,...c,...o,ref:t})});pf.displayName=Gg;function Xg(e){return Wg.includes(e)}var Kg=pf;const Yg=({className:e,...t})=>pe.jsxRuntimeExports.jsx("div",{className:gn.cn("[&_svg]:w-40",e),...t}),qg=e=>g.createElement("svg",{height:"1em",width:"1em",fill:"currentColor",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M1.86879 5.11875C2.52504 3.25 4.28754 2 6.26879 2H25.7813C27.7625 2 29.525 3.25 30.1813 5.11875L31.3313 8.40625C32.0188 10.375 31.3938 12.4 30.025 13.6812V25.5063C30.025 27.9937 28.0125 30.0063 25.525 30.0063H6.52504C4.03754 30.0063 2.02504 27.9937 2.02504 25.5063V13.6812C0.656291 12.4 0.0312907 10.375 0.718791 8.40625L1.86879 5.11875ZM5.02504 14.9875V20H27.025V14.9875C26.9 14.9938 26.7813 15 26.6563 15C25.2938 15 24.0438 14.4437 23.1438 13.5437C22.2313 14.4437 20.9813 15 19.5875 15C18.2 15 16.9375 14.4375 16.025 13.5312C15.1125 14.4375 13.85 15 12.4625 15C11.0688 15 9.81879 14.4437 8.90629 13.5437C8.00629 14.45 6.76254 15 5.39379 15C5.26879 15 5.14379 14.9938 5.01879 14.9875H5.02504ZM10.8813 5L10.4063 9.73125C10.2875 10.9437 11.2375 12 12.4563 12C13.5938 12 14.5188 11.075 14.5188 9.9375V5H10.875H10.8813ZM17.525 9.9375C17.525 11.075 18.45 12 19.5875 12C20.8063 12 21.7625 10.9437 21.6375 9.73125L21.1625 5H17.5188V9.9375H17.525ZM24.7063 10.2375C24.8063 11.2375 25.65 12 26.65 12C28 12 28.9438 10.6687 28.4938 9.4L27.35 6.1125C27.1188 5.44375 26.4875 5 25.7813 5H24.1813L24.7063 10.2375ZM5.40004 12C6.40629 12 7.24379 11.2375 7.34379 10.2375L7.86879 5H6.26879C5.56254 5 4.93754 5.44375 4.70004 6.1125L3.55004 9.4C3.10629 10.675 4.05004 12 5.39379 12H5.40004ZM5.02504 25.5C5.02504 26.3312 5.69379 27 6.52504 27H25.525C26.3563 27 27.025 26.3312 27.025 25.5V23H5.02504V25.5Z"})),Zg=e=>g.createElement("svg",{height:"1em",width:"1em",fill:"currentColor",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M14.7688 8.45C15.5563 7.80625 16.7125 7.85625 17.4438 8.5875L25.4438 16.5875C26.0188 17.1625 26.1875 18.0188 25.875 18.7688C25.5625 19.5188 24.8375 20 24.0313 20H8.03127C7.22502 20 6.49377 19.5125 6.18127 18.7625C5.86877 18.0125 6.04377 17.1563 6.61877 16.5875L14.6188 8.5875L14.7688 8.45Z"}));var Ui={exports:{}},kn={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Ul;function xg(){if(Ul)return Dn;Ul=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var l=null;if(i!==void 0&&(l=""+i),o.key!==void 0&&(l=""+o.key),"key"in o){i={};for(var c in o)c!=="key"&&(i[c]=o[c])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:l,ref:o!==void 0?o:null,props:i}}return Dn.Fragment=t,Dn.jsx=n,Dn.jsxs=n,Dn}var Lr={};/**
9
+ */var Hl;function Qg(){if(Hl)return kn;Hl=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var l=null;if(i!==void 0&&(l=""+i),o.key!==void 0&&(l=""+o.key),"key"in o){i={};for(var c in o)c!=="key"&&(i[c]=o[c])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:l,ref:o!==void 0?o:null,props:i}}return kn.Fragment=t,kn.jsx=n,kn.jsxs=n,kn}var Ir={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,26 +14,26 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Wl;function Eg(){return Wl||(Wl=1,process.env.NODE_ENV!=="production"&&(function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===W?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case A:return"Fragment";case E:return"Portal";case O:return"Profiler";case j:return"StrictMode";case P:return"Suspense";case $:return"SuspenseList"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case _:return(C.displayName||"Context")+".Provider";case T:return(C._context.displayName||"Context")+".Consumer";case k:var Z=C.render;return C=C.displayName,C||(C=Z.displayName||Z.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case F:return Z=C.displayName||null,Z!==null?Z:e(C.type)||"Memo";case U:Z=C._payload,C=C._init;try{return e(C(Z))}catch{}}return null}function t(C){return""+C}function n(C){try{t(C);var Z=!1}catch{Z=!0}if(Z){Z=console;var Q=Z.error,le=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return Q.call(Z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",le),t(C)}}function r(){}function o(){if(K===0){ne=console.log,te=console.info,V=console.warn,q=console.error,Y=console.group,H=console.groupCollapsed,oe=console.groupEnd;var C={configurable:!0,enumerable:!0,value:r,writable:!0};Object.defineProperties(console,{info:C,log:C,warn:C,error:C,group:C,groupCollapsed:C,groupEnd:C})}K++}function i(){if(K--,K===0){var C={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},C,{value:ne}),info:D({},C,{value:te}),warn:D({},C,{value:V}),error:D({},C,{value:q}),group:D({},C,{value:Y}),groupCollapsed:D({},C,{value:H}),groupEnd:D({},C,{value:oe})})}0>K&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function l(C){if(I===void 0)try{throw Error()}catch(Q){var Z=Q.stack.trim().match(/\n( *(at )?)/);I=Z&&Z[1]||"",de=-1<Q.stack.indexOf(`
17
+ */var Gl;function Jg(){return Gl||(Gl=1,process.env.NODE_ENV!=="production"&&(function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===G?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case A:return"Fragment";case E:return"Portal";case O:return"Profiler";case j:return"StrictMode";case R:return"Suspense";case $:return"SuspenseList"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case P:return(C.displayName||"Context")+".Provider";case T:return(C._context.displayName||"Context")+".Consumer";case k:var Z=C.render;return C=C.displayName,C||(C=Z.displayName||Z.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case F:return Z=C.displayName||null,Z!==null?Z:e(C.type)||"Memo";case H:Z=C._payload,C=C._init;try{return e(C(Z))}catch{}}return null}function t(C){return""+C}function n(C){try{t(C);var Z=!1}catch{Z=!0}if(Z){Z=console;var Q=Z.error,le=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return Q.call(Z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",le),t(C)}}function r(){}function o(){if(K===0){ne=console.log,te=console.info,V=console.warn,q=console.error,Y=console.group,U=console.groupCollapsed,oe=console.groupEnd;var C={configurable:!0,enumerable:!0,value:r,writable:!0};Object.defineProperties(console,{info:C,log:C,warn:C,error:C,group:C,groupCollapsed:C,groupEnd:C})}K++}function i(){if(K--,K===0){var C={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},C,{value:ne}),info:D({},C,{value:te}),warn:D({},C,{value:V}),error:D({},C,{value:q}),group:D({},C,{value:Y}),groupCollapsed:D({},C,{value:U}),groupEnd:D({},C,{value:oe})})}0>K&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function l(C){if(I===void 0)try{throw Error()}catch(Q){var Z=Q.stack.trim().match(/\n( *(at )?)/);I=Z&&Z[1]||"",de=-1<Q.stack.indexOf(`
18
18
  at`)?" (<anonymous>)":-1<Q.stack.indexOf("@")?"@unknown:0:0":""}return`
19
- `+I+C+de}function c(C,Z){if(!C||ke)return"";var Q=$e.get(C);if(Q!==void 0)return Q;ke=!0,Q=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var le=null;le=L.H,L.H=null,o();try{var Re={DetermineComponentFrameRoot:function(){try{if(Z){var gt=function(){throw Error()};if(Object.defineProperty(gt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(gt,[])}catch(dt){var Dr=dt}Reflect.construct(C,[],gt)}else{try{gt.call()}catch(dt){Dr=dt}C.call(gt.prototype)}}else{try{throw Error()}catch(dt){Dr=dt}(gt=C())&&typeof gt.catch=="function"&&gt.catch(function(){})}}catch(dt){if(dt&&Dr&&typeof dt.stack=="string")return[dt.stack,Dr.stack]}return[null,null]}};Re.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var ve=Object.getOwnPropertyDescriptor(Re.DetermineComponentFrameRoot,"name");ve&&ve.configurable&&Object.defineProperty(Re.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var se=Re.DetermineComponentFrameRoot(),ct=se[0],Zt=se[1];if(ct&&Zt){var Oe=ct.split(`
20
- `),It=Zt.split(`
21
- `);for(se=ve=0;ve<Oe.length&&!Oe[ve].includes("DetermineComponentFrameRoot");)ve++;for(;se<It.length&&!It[se].includes("DetermineComponentFrameRoot");)se++;if(ve===Oe.length||se===It.length)for(ve=Oe.length-1,se=It.length-1;1<=ve&&0<=se&&Oe[ve]!==It[se];)se--;for(;1<=ve&&0<=se;ve--,se--)if(Oe[ve]!==It[se]){if(ve!==1||se!==1)do if(ve--,se--,0>se||Oe[ve]!==It[se]){var Mn=`
22
- `+Oe[ve].replace(" at new "," at ");return C.displayName&&Mn.includes("<anonymous>")&&(Mn=Mn.replace("<anonymous>",C.displayName)),typeof C=="function"&&$e.set(C,Mn),Mn}while(1<=ve&&0<=se);break}}}finally{ke=!1,L.H=le,i(),Error.prepareStackTrace=Q}return Oe=(Oe=C?C.displayName||C.name:"")?l(Oe):"",typeof C=="function"&&$e.set(C,Oe),Oe}function u(C){if(C==null)return"";if(typeof C=="function"){var Z=C.prototype;return c(C,!(!Z||!Z.isReactComponent))}if(typeof C=="string")return l(C);switch(C){case P:return l("Suspense");case $:return l("SuspenseList")}if(typeof C=="object")switch(C.$$typeof){case k:return C=c(C.render,!1),C;case F:return u(C.type);case U:Z=C._payload,C=C._init;try{return u(C(Z))}catch{}}return""}function a(){var C=L.A;return C===null?null:C.getOwner()}function s(C){if(M.call(C,"key")){var Z=Object.getOwnPropertyDescriptor(C,"key").get;if(Z&&Z.isReactWarning)return!1}return C.key!==void 0}function d(C,Z){function Q(){Ar||(Ar=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Z))}Q.isReactWarning=!0,Object.defineProperty(C,"key",{get:Q,configurable:!0})}function f(){var C=e(this.type);return kr[C]||(kr[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function p(C,Z,Q,le,Re,ve){return Q=ve.ref,C={$$typeof:S,type:C,key:Z,props:ve,_owner:Re},(Q!==void 0?Q:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:f}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function m(C,Z,Q,le,Re,ve){if(typeof C=="string"||typeof C=="function"||C===A||C===O||C===j||C===P||C===$||C===B||typeof C=="object"&&C!==null&&(C.$$typeof===U||C.$$typeof===F||C.$$typeof===_||C.$$typeof===T||C.$$typeof===k||C.$$typeof===ee||C.getModuleId!==void 0)){var se=Z.children;if(se!==void 0)if(le)if(J(se)){for(le=0;le<se.length;le++)h(se[le],C);Object.freeze&&Object.freeze(se)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(se,C)}else se="",(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(se+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),C===null?le="null":J(C)?le="array":C!==void 0&&C.$$typeof===S?(le="<"+(e(C.type)||"Unknown")+" />",se=" Did you accidentally export a JSX literal instead of a component?"):le=typeof C,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",le,se);if(M.call(Z,"key")){se=e(C);var ct=Object.keys(Z).filter(function(Oe){return Oe!=="key"});le=0<ct.length?"{key: someKey, "+ct.join(": ..., ")+": ...}":"{key: someKey}",Lt[se+le]||(ct=0<ct.length?"{"+ct.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
19
+ `+I+C+de}function c(C,Z){if(!C||ke)return"";var Q=Be.get(C);if(Q!==void 0)return Q;ke=!0,Q=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var le=null;le=L.H,L.H=null,o();try{var Re={DetermineComponentFrameRoot:function(){try{if(Z){var gt=function(){throw Error()};if(Object.defineProperty(gt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(gt,[])}catch(dt){var Lr=dt}Reflect.construct(C,[],gt)}else{try{gt.call()}catch(dt){Lr=dt}C.call(gt.prototype)}}else{try{throw Error()}catch(dt){Lr=dt}(gt=C())&&typeof gt.catch=="function"&&gt.catch(function(){})}}catch(dt){if(dt&&Lr&&typeof dt.stack=="string")return[dt.stack,Lr.stack]}return[null,null]}};Re.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var ve=Object.getOwnPropertyDescriptor(Re.DetermineComponentFrameRoot,"name");ve&&ve.configurable&&Object.defineProperty(Re.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var ae=Re.DetermineComponentFrameRoot(),ct=ae[0],en=ae[1];if(ct&&en){var Oe=ct.split(`
20
+ `),Ft=en.split(`
21
+ `);for(ae=ve=0;ve<Oe.length&&!Oe[ve].includes("DetermineComponentFrameRoot");)ve++;for(;ae<Ft.length&&!Ft[ae].includes("DetermineComponentFrameRoot");)ae++;if(ve===Oe.length||ae===Ft.length)for(ve=Oe.length-1,ae=Ft.length-1;1<=ve&&0<=ae&&Oe[ve]!==Ft[ae];)ae--;for(;1<=ve&&0<=ae;ve--,ae--)if(Oe[ve]!==Ft[ae]){if(ve!==1||ae!==1)do if(ve--,ae--,0>ae||Oe[ve]!==Ft[ae]){var An=`
22
+ `+Oe[ve].replace(" at new "," at ");return C.displayName&&An.includes("<anonymous>")&&(An=An.replace("<anonymous>",C.displayName)),typeof C=="function"&&Be.set(C,An),An}while(1<=ve&&0<=ae);break}}}finally{ke=!1,L.H=le,i(),Error.prepareStackTrace=Q}return Oe=(Oe=C?C.displayName||C.name:"")?l(Oe):"",typeof C=="function"&&Be.set(C,Oe),Oe}function u(C){if(C==null)return"";if(typeof C=="function"){var Z=C.prototype;return c(C,!(!Z||!Z.isReactComponent))}if(typeof C=="string")return l(C);switch(C){case R:return l("Suspense");case $:return l("SuspenseList")}if(typeof C=="object")switch(C.$$typeof){case k:return C=c(C.render,!1),C;case F:return u(C.type);case H:Z=C._payload,C=C._init;try{return u(C(Z))}catch{}}return""}function s(){var C=L.A;return C===null?null:C.getOwner()}function a(C){if(M.call(C,"key")){var Z=Object.getOwnPropertyDescriptor(C,"key").get;if(Z&&Z.isReactWarning)return!1}return C.key!==void 0}function d(C,Z){function Q(){kr||(kr=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Z))}Q.isReactWarning=!0,Object.defineProperty(C,"key",{get:Q,configurable:!0})}function f(){var C=e(this.type);return Dr[C]||(Dr[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function p(C,Z,Q,le,Re,ve){return Q=ve.ref,C={$$typeof:S,type:C,key:Z,props:ve,_owner:Re},(Q!==void 0?Q:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:f}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function m(C,Z,Q,le,Re,ve){if(typeof C=="string"||typeof C=="function"||C===A||C===O||C===j||C===R||C===$||C===B||typeof C=="object"&&C!==null&&(C.$$typeof===H||C.$$typeof===F||C.$$typeof===P||C.$$typeof===T||C.$$typeof===k||C.$$typeof===ee||C.getModuleId!==void 0)){var ae=Z.children;if(ae!==void 0)if(le)if(J(ae)){for(le=0;le<ae.length;le++)h(ae[le],C);Object.freeze&&Object.freeze(ae)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(ae,C)}else ae="",(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(ae+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),C===null?le="null":J(C)?le="array":C!==void 0&&C.$$typeof===S?(le="<"+(e(C.type)||"Unknown")+" />",ae=" Did you accidentally export a JSX literal instead of a component?"):le=typeof C,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",le,ae);if(M.call(Z,"key")){ae=e(C);var ct=Object.keys(Z).filter(function(Oe){return Oe!=="key"});le=0<ct.length?"{key: someKey, "+ct.join(": ..., ")+": ...}":"{key: someKey}",Nt[ae+le]||(ct=0<ct.length?"{"+ct.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
23
23
  let props = %s;
24
24
  <%s {...props} />
25
25
  React keys must be passed directly to JSX without using spread:
26
26
  let props = %s;
27
- <%s key={someKey} {...props} />`,le,se,ct,se),Lt[se+le]=!0)}if(se=null,Q!==void 0&&(n(Q),se=""+Q),s(Z)&&(n(Z.key),se=""+Z.key),"key"in Z){Q={};for(var Zt in Z)Zt!=="key"&&(Q[Zt]=Z[Zt])}else Q=Z;return se&&d(Q,typeof C=="function"?C.displayName||C.name||"Unknown":C),p(C,se,ve,Re,a(),Q)}function h(C,Z){if(typeof C=="object"&&C&&C.$$typeof!==Dt){if(J(C))for(var Q=0;Q<C.length;Q++){var le=C[Q];v(le)&&y(le,Z)}else if(v(C))C._store&&(C._store.validated=1);else if(C===null||typeof C!="object"?Q=null:(Q=X&&C[X]||C["@@iterator"],Q=typeof Q=="function"?Q:null),typeof Q=="function"&&Q!==C.entries&&(Q=Q.call(C),Q!==C))for(;!(C=Q.next()).done;)v(C.value)&&y(C.value,Z)}}function v(C){return typeof C=="object"&&C!==null&&C.$$typeof===S}function y(C,Z){if(C._store&&!C._store.validated&&C.key==null&&(C._store.validated=1,Z=b(Z),!$l[Z])){$l[Z]=!0;var Q="";C&&C._owner!=null&&C._owner!==a()&&(Q=null,typeof C._owner.tag=="number"?Q=e(C._owner.type):typeof C._owner.name=="string"&&(Q=C._owner.name),Q=" It was passed a child from "+Q+".");var le=L.getCurrentStack;L.getCurrentStack=function(){var Re=u(C.type);return le&&(Re+=le()||""),Re},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',Z,Q),L.getCurrentStack=le}}function b(C){var Z="",Q=a();return Q&&(Q=e(Q.type))&&(Z=`
27
+ <%s key={someKey} {...props} />`,le,ae,ct,ae),Nt[ae+le]=!0)}if(ae=null,Q!==void 0&&(n(Q),ae=""+Q),a(Z)&&(n(Z.key),ae=""+Z.key),"key"in Z){Q={};for(var en in Z)en!=="key"&&(Q[en]=Z[en])}else Q=Z;return ae&&d(Q,typeof C=="function"?C.displayName||C.name||"Unknown":C),p(C,ae,ve,Re,s(),Q)}function h(C,Z){if(typeof C=="object"&&C&&C.$$typeof!==It){if(J(C))for(var Q=0;Q<C.length;Q++){var le=C[Q];v(le)&&y(le,Z)}else if(v(C))C._store&&(C._store.validated=1);else if(C===null||typeof C!="object"?Q=null:(Q=X&&C[X]||C["@@iterator"],Q=typeof Q=="function"?Q:null),typeof Q=="function"&&Q!==C.entries&&(Q=Q.call(C),Q!==C))for(;!(C=Q.next()).done;)v(C.value)&&y(C.value,Z)}}function v(C){return typeof C=="object"&&C!==null&&C.$$typeof===S}function y(C,Z){if(C._store&&!C._store.validated&&C.key==null&&(C._store.validated=1,Z=b(Z),!zl[Z])){zl[Z]=!0;var Q="";C&&C._owner!=null&&C._owner!==s()&&(Q=null,typeof C._owner.tag=="number"?Q=e(C._owner.type):typeof C._owner.name=="string"&&(Q=C._owner.name),Q=" It was passed a child from "+Q+".");var le=L.getCurrentStack;L.getCurrentStack=function(){var Re=u(C.type);return le&&(Re+=le()||""),Re},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',Z,Q),L.getCurrentStack=le}}function b(C){var Z="",Q=s();return Q&&(Q=e(Q.type))&&(Z=`
28
28
 
29
29
  Check the render method of \``+Q+"`."),Z||(C=e(C))&&(Z=`
30
30
 
31
- Check the top-level render call using <`+C+">."),Z}var w=R,S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),_=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),X=Symbol.iterator,W=Symbol.for("react.client.reference"),L=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,D=Object.assign,ee=Symbol.for("react.client.reference"),J=Array.isArray,K=0,ne,te,V,q,Y,H,oe;r.__reactDisabledLog=!0;var I,de,ke=!1,$e=new(typeof WeakMap=="function"?WeakMap:Map),Dt=Symbol.for("react.client.reference"),Ar,kr={},Lt={},$l={};Lr.Fragment=A,Lr.jsx=function(C,Z,Q,le,Re){return m(C,Z,Q,!1,le,Re)},Lr.jsxs=function(C,Z,Q,le,Re){return m(C,Z,Q,!0,le,Re)}})()),Lr}var Gl;function Sg(){return Gl||(Gl=1,process.env.NODE_ENV==="production"?Bi.exports=xg():Bi.exports=Eg()),Bi.exports}var x=Sg();function Xl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function oi(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Xl(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Xl(e[o],null)}}}}function re(...e){return g.useCallback(oi(...e),e)}function _t(e){const t=_g(e),n=g.forwardRef((r,o)=>{const{children:i,...l}=r,c=g.Children.toArray(i),u=c.find(Rg);if(u){const a=u.props.children,s=c.map(d=>d===u?g.Children.count(a)>1?g.Children.only(null):g.isValidElement(a)?a.props.children:null:d);return x.jsx(t,{...l,ref:o,children:g.isValidElement(a)?g.cloneElement(a,void 0,s):null})}return x.jsx(t,{...l,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Cg=_t("Slot");function _g(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const l=Tg(o),c=Og(i,o.props);return o.type!==g.Fragment&&(c.ref=r?oi(r,l):l),g.cloneElement(o,c)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gf=Symbol("radix.slottable");function Pg(e){const t=({children:n})=>x.jsx(x.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=gf,t}function Rg(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gf}function Og(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Tg(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var jg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=jg.reduce((e,t)=>{const n=_t(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:l,...c}=o,u=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(u,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function yf(e,t){e&&ri.flushSync(()=>e.dispatchEvent(t))}var Ee=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},Mg="Portal",bf=g.forwardRef((e,t)=>{var n;const{container:r,...o}=e,[i,l]=g.useState(!1);Ee(()=>l(!0),[]);const c=r||i&&((n=globalThis==null?void 0:globalThis.document)==null?void 0:n.body);return c?ma.createPortal(x.jsx(z.div,{...o,ref:t}),c):null});bf.displayName=Mg;const Ag=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{clipPath:"url(#clip0_1359_16290)"},g.createElement("path",{d:"M13.422 5.75502L8.37215 10.8048C8.19178 10.9856 7.97752 11.129 7.74166 11.2268C7.50579 11.3246 7.25295 11.375 6.9976 11.375C6.74224 11.375 6.4894 11.3246 6.25353 11.2268C6.01767 11.129 5.80341 10.9856 5.62304 10.8048L0.573244 5.75502C-0.655085 4.52669 0.222293 2.42098 1.95755 2.42098L12.0571 2.42098C13.7924 2.42098 14.6503 4.52669 13.422 5.75502Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_1359_16290"},g.createElement("rect",{width:14,height:14,fill:"white",transform:"translate(14 14) rotate(-180)"})))),kg=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 15 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M5.88995 10.1388L5.86646 10.1623L0 4.29579L1.91024 2.38556L5.89003 6.36536L12.2554 0L14.1656 1.91024L5.91352 10.1623L5.88995 10.1388Z",fill:"currentColor"})),Dg=e=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",...e},g.createElement("path",{d:"M21.2805 18.736C20.7752 17.5392 20.0419 16.452 19.1216 15.5351C18.204 14.6156 17.117 13.8825 15.9207 13.3762C15.9099 13.3709 15.8992 13.3682 15.8885 13.3628C17.5573 12.1575 18.6421 10.1941 18.6421 7.97889C18.6421 4.30924 15.6689 1.33603 11.9992 1.33603C8.32959 1.33603 5.35637 4.30924 5.35637 7.97889C5.35637 10.1941 6.44119 12.1575 8.10994 13.3655C8.09923 13.3709 8.08852 13.3735 8.0778 13.3789C6.8778 13.8851 5.80102 14.611 4.87691 15.5378C3.95738 16.4554 3.22424 17.5424 2.71798 18.7387C2.22063 19.9099 1.9524 21.1656 1.9278 22.4378C1.92709 22.4664 1.9321 22.4948 1.94255 22.5215C1.953 22.5481 1.96867 22.5723 1.98864 22.5928C2.00861 22.6133 2.03247 22.6296 2.05883 22.6407C2.08518 22.6518 2.11349 22.6575 2.14209 22.6575H3.74923C3.86709 22.6575 3.96084 22.5637 3.96352 22.4485C4.01709 20.3807 4.84744 18.4441 6.3153 16.9762C7.83405 15.4575 9.85102 14.6217 11.9992 14.6217C14.1474 14.6217 16.1644 15.4575 17.6832 16.9762C19.151 18.4441 19.9814 20.3807 20.0349 22.4485C20.0376 22.5664 20.1314 22.6575 20.2492 22.6575H21.8564C21.885 22.6575 21.9133 22.6518 21.9396 22.6407C21.966 22.6296 21.9899 22.6133 22.0098 22.5928C22.0298 22.5723 22.0455 22.5481 22.0559 22.5215C22.0664 22.4948 22.0714 22.4664 22.0707 22.4378C22.0439 21.1575 21.7787 19.9119 21.2805 18.736ZM11.9992 12.586C10.7698 12.586 9.61262 12.1066 8.74209 11.236C7.87155 10.3655 7.39209 9.20835 7.39209 7.97889C7.39209 6.74942 7.87155 5.59228 8.74209 4.72174C9.61262 3.85121 10.7698 3.37174 11.9992 3.37174C13.2287 3.37174 14.3858 3.85121 15.2564 4.72174C16.1269 5.59228 16.6064 6.74942 16.6064 7.97889C16.6064 9.20835 16.1269 10.3655 15.2564 11.236C14.3858 12.1066 13.2287 12.586 11.9992 12.586Z"})),Lg=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{clipPath:"url(#clip0_13053_6230)"},g.createElement("path",{d:"M7 0.875C3.61758 0.875 0.875 3.61758 0.875 7C0.875 10.3824 3.61758 13.125 7 13.125C10.3824 13.125 13.125 10.3824 13.125 7C13.125 3.61758 10.3824 0.875 7 0.875ZM9.26133 9.32695L8.35898 9.32285L7 7.70273L5.64238 9.32148L4.73867 9.32559C4.67852 9.32559 4.6293 9.27773 4.6293 9.21621C4.6293 9.19023 4.63887 9.16563 4.65527 9.14512L6.43398 7.02598L4.65527 4.9082C4.63875 4.88817 4.62959 4.86308 4.6293 4.83711C4.6293 4.77695 4.67852 4.72773 4.73867 4.72773L5.64238 4.73184L7 6.35195L8.35762 4.7332L9.25996 4.7291C9.32012 4.7291 9.36934 4.77695 9.36934 4.83848C9.36934 4.86445 9.35977 4.88906 9.34336 4.90957L7.56738 7.02734L9.34473 9.14648C9.36113 9.16699 9.3707 9.1916 9.3707 9.21758C9.3707 9.27773 9.32148 9.32695 9.26133 9.32695Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_13053_6230"},g.createElement("rect",{width:14,height:14,fill:"white"})))),Ig=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("rect",{width:16,height:16,fill:"currentColor"}));function Ng(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wf=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Fg="VisuallyHidden",xf=g.forwardRef((e,t)=>x.jsx(z.span,{...e,ref:t,style:{...wf,...e.style}}));xf.displayName=Fg;var Vg=xf;function $g(e,t){const n=g.createContext(t),r=i=>{const{children:l,...c}=i,u=g.useMemo(()=>c,Object.values(c));return x.jsx(n.Provider,{value:u,children:l})};r.displayName=e+"Provider";function o(i){const l=g.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Se(e,t=[]){let n=[];function r(i,l){const c=g.createContext(l),u=n.length;n=[...n,l];const a=d=>{var f;const{scope:p,children:m,...h}=d,v=((f=p==null?void 0:p[e])==null?void 0:f[u])||c,y=g.useMemo(()=>h,Object.values(h));return x.jsx(v.Provider,{value:y,children:m})};a.displayName=i+"Provider";function s(d,f){var p;const m=((p=f==null?void 0:f[e])==null?void 0:p[u])||c,h=g.useContext(m);if(h)return h;if(l!==void 0)return l;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[a,s]}const o=()=>{const i=n.map(l=>g.createContext(l));return function(l){const c=(l==null?void 0:l[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Bg(o,...t)]}function Bg(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const i=r.reduce((l,{useScope:c,scopeName:u})=>{const a=c(o)[`__scope${u}`];return{...l,...a}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ur(e){const t=e+"CollectionProvider",[n,r]=Se(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=h=>{const{scope:v,children:y}=h,b=R.useRef(null),w=R.useRef(new Map).current;return x.jsx(o,{scope:v,itemMap:w,collectionRef:b,children:y})};l.displayName=t;const c=e+"CollectionSlot",u=_t(c),a=R.forwardRef((h,v)=>{const{scope:y,children:b}=h,w=i(c,y),S=re(v,w.collectionRef);return x.jsx(u,{ref:S,children:b})});a.displayName=c;const s=e+"CollectionItemSlot",d="data-radix-collection-item",f=_t(s),p=R.forwardRef((h,v)=>{const{scope:y,children:b,...w}=h,S=R.useRef(null),E=re(v,S),A=i(s,y);return R.useEffect(()=>(A.itemMap.set(S,{ref:S,...w}),()=>void A.itemMap.delete(S))),x.jsx(f,{[d]:"",ref:E,children:b})});p.displayName=s;function m(h){const v=i(e+"CollectionConsumer",h);return R.useCallback(()=>{const y=v.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((w,S)=>b.indexOf(w.ref.current)-b.indexOf(S.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:l,Slot:a,ItemSlot:p},m,r]}function N(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}var zg=g[" useInsertionEffect ".trim().toString()]||Ee;function at({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,l]=Hg({defaultProp:t,onChange:n}),c=e!==void 0,u=c?e:o;{const s=g.useRef(e!==void 0);g.useEffect(()=>{const d=s.current;d!==c&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),s.current=c},[c,r])}const a=g.useCallback(s=>{var d;if(c){const f=Ug(s)?s(e):s;f!==e&&((d=l.current)==null||d.call(l,f))}else i(s)},[c,e,i,l]);return[u,a]}function Hg({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),o=g.useRef(n),i=g.useRef(t);return zg(()=>{i.current=t},[t]),g.useEffect(()=>{var l;o.current!==n&&((l=i.current)==null||l.call(i,n),o.current=n)},[n,o]),[n,r,i]}function Ug(e){return typeof e=="function"}function Wg(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var Fe=e=>{const{present:t,children:n}=e,r=Gg(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=re(r.ref,Xg(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:i}):null};Fe.displayName="Presence";function Gg(e){const[t,n]=g.useState(),r=g.useRef(null),o=g.useRef(e),i=g.useRef("none"),l=e?"mounted":"unmounted",[c,u]=Wg(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const a=Ir(r.current);i.current=c==="mounted"?a:"none"},[c]),Ee(()=>{const a=r.current,s=o.current;if(s!==e){const d=i.current,f=Ir(a);e?u("MOUNT"):f==="none"||(a==null?void 0:a.display)==="none"?u("UNMOUNT"):u(s&&d!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Ee(()=>{if(t){let a;const s=t.ownerDocument.defaultView??window,d=p=>{const m=Ir(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(u("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",a=s.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},f=p=>{p.target===t&&(i.current=Ir(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{s.clearTimeout(a),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:g.useCallback(a=>{r.current=a?getComputedStyle(a):null,n(a)},[])}}function Ir(e){return(e==null?void 0:e.animationName)||"none"}function Xg(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Kg=g[" useId ".trim().toString()]||(()=>{}),Yg=0;function Ye(e){const[t,n]=g.useState(Kg());return Ee(()=>{n(r=>r??String(Yg++))},[e]),t?`radix-${t}`:""}var ii="Collapsible",[qg,Ef]=Se(ii),[Zg,ga]=qg(ii),Sf=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:l,...c}=e,[u,a]=at({prop:r,defaultProp:o??!1,onChange:l,caller:ii});return x.jsx(Zg,{scope:n,disabled:i,contentId:Ye(),open:u,onOpenToggle:g.useCallback(()=>a(s=>!s),[a]),children:x.jsx(z.div,{"data-state":ba(u),"data-disabled":i?"":void 0,...c,ref:t})})});Sf.displayName=ii;var Cf="CollapsibleTrigger",_f=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=ga(Cf,n);return x.jsx(z.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ba(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:N(e.onClick,o.onOpenToggle)})});_f.displayName=Cf;var ya="CollapsibleContent",Pf=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ga(ya,e.__scopeCollapsible);return x.jsx(Fe,{present:n||o.open,children:({present:i})=>x.jsx(Qg,{...r,ref:t,present:i})})});Pf.displayName=ya;var Qg=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,l=ga(ya,n),[c,u]=g.useState(r),a=g.useRef(null),s=re(t,a),d=g.useRef(0),f=d.current,p=g.useRef(0),m=p.current,h=l.open||c,v=g.useRef(h),y=g.useRef(void 0);return g.useEffect(()=>{const b=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(b)},[]),Ee(()=>{const b=a.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const w=b.getBoundingClientRect();d.current=w.height,p.current=w.width,v.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),u(r)}},[l.open,r]),x.jsx(z.div,{"data-state":ba(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!h,...i,ref:s,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&o})});function ba(e){return e?"open":"closed"}var Jg=Sf,ey=_f,ty=Pf,ny=g.createContext(void 0);function wn(e){const t=g.useContext(ny);return e||t||"ltr"}var Je="Accordion",ry=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[wa,oy,iy]=ur(Je),[si]=Se(Je,[iy,Ef]),xa=Ef(),sy=R.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return x.jsx(wa.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?x.jsx(cy,{...i,ref:t}):x.jsx(uy,{...o,ref:t})})});sy.displayName=Je;var[Rf,ay]=si(Je),[Of,ly]=si(Je,{collapsible:!1}),uy=R.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...l}=e,[c,u]=at({prop:n,defaultProp:r??"",onChange:o,caller:Je});return x.jsx(Rf,{scope:e.__scopeAccordion,value:R.useMemo(()=>c?[c]:[],[c]),onItemOpen:u,onItemClose:R.useCallback(()=>i&&u(""),[i,u]),children:x.jsx(Of,{scope:e.__scopeAccordion,collapsible:i,children:x.jsx(Tf,{...l,ref:t})})})}),cy=R.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[l,c]=at({prop:n,defaultProp:r??[],onChange:o,caller:Je}),u=R.useCallback(s=>c((d=[])=>[...d,s]),[c]),a=R.useCallback(s=>c((d=[])=>d.filter(f=>f!==s)),[c]);return x.jsx(Rf,{scope:e.__scopeAccordion,value:l,onItemOpen:u,onItemClose:a,children:x.jsx(Of,{scope:e.__scopeAccordion,collapsible:!0,children:x.jsx(Tf,{...i,ref:t})})})}),[dy,ai]=si(Je),Tf=R.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...l}=e,c=R.useRef(null),u=re(c,t),a=oy(n),s=wn(o)==="ltr",d=N(e.onKeyDown,f=>{var p;if(!ry.includes(f.key))return;const m=f.target,h=a().filter(O=>{var T;return!((T=O.ref.current)!=null&&T.disabled)}),v=h.findIndex(O=>O.ref.current===m),y=h.length;if(v===-1)return;f.preventDefault();let b=v;const w=0,S=y-1,E=()=>{b=v+1,b>S&&(b=w)},A=()=>{b=v-1,b<w&&(b=S)};switch(f.key){case"Home":b=w;break;case"End":b=S;break;case"ArrowRight":i==="horizontal"&&(s?E():A());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(s?A():E());break;case"ArrowUp":i==="vertical"&&A();break}const j=b%y;(p=h[j].ref.current)==null||p.focus()});return x.jsx(dy,{scope:n,disabled:r,direction:o,orientation:i,children:x.jsx(wa.Slot,{scope:n,children:x.jsx(z.div,{...l,"data-orientation":i,ref:u,onKeyDown:r?void 0:d})})})}),Fo="AccordionItem",[fy,Ea]=si(Fo),jf=R.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,i=ai(Fo,n),l=ay(Fo,n),c=xa(n),u=Ye(),a=r&&l.value.includes(r)||!1,s=i.disabled||e.disabled;return x.jsx(fy,{scope:n,open:a,disabled:s,triggerId:u,children:x.jsx(Jg,{"data-orientation":i.orientation,"data-state":If(a),...c,...o,ref:t,disabled:s,open:a,onOpenChange:d=>{d?l.onItemOpen(r):l.onItemClose(r)}})})});jf.displayName=Fo;var Mf="AccordionHeader",Af=R.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ai(Je,n),i=Ea(Mf,n);return x.jsx(z.h3,{"data-orientation":o.orientation,"data-state":If(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});Af.displayName=Mf;var Ps="AccordionTrigger",kf=R.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ai(Je,n),i=Ea(Ps,n),l=ly(Ps,n),c=xa(n);return x.jsx(wa.ItemSlot,{scope:n,children:x.jsx(ey,{"aria-disabled":i.open&&!l.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...c,...r,ref:t})})});kf.displayName=Ps;var Df="AccordionContent",Lf=R.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ai(Je,n),i=Ea(Df,n),l=xa(n);return x.jsx(ty,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...l,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Lf.displayName=Df;function If(e){return e?"open":"closed"}var py=jf,hy=Af,my=kf,vy=Lf;function qe(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function gy(e,t=globalThis==null?void 0:globalThis.document){const n=qe(e);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var yy="DismissableLayer",Rs="dismissableLayer.update",by="dismissableLayer.pointerDownOutside",wy="dismissableLayer.focusOutside",Kl,Nf=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xn=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:c,...u}=e,a=g.useContext(Nf),[s,d]=g.useState(null),f=(s==null?void 0:s.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=g.useState({}),m=re(t,j=>d(j)),h=Array.from(a.layers),[v]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(v),b=s?h.indexOf(s):-1,w=a.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,E=Sy(j=>{const O=j.target,T=[...a.branches].some(_=>_.contains(O));!S||T||(o==null||o(j),l==null||l(j),j.defaultPrevented||c==null||c())},f),A=Cy(j=>{const O=j.target;[...a.branches].some(T=>T.contains(O))||(i==null||i(j),l==null||l(j),j.defaultPrevented||c==null||c())},f);return gy(j=>{b===a.layers.size-1&&(r==null||r(j),!j.defaultPrevented&&c&&(j.preventDefault(),c()))},f),g.useEffect(()=>{if(s)return n&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(Kl=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(s)),a.layers.add(s),Yl(),()=>{n&&a.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Kl)}},[s,f,n,a]),g.useEffect(()=>()=>{s&&(a.layers.delete(s),a.layersWithOutsidePointerEventsDisabled.delete(s),Yl())},[s,a]),g.useEffect(()=>{const j=()=>p({});return document.addEventListener(Rs,j),()=>document.removeEventListener(Rs,j)},[]),x.jsx(z.div,{...u,ref:m,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:N(e.onFocusCapture,A.onFocusCapture),onBlurCapture:N(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:N(e.onPointerDownCapture,E.onPointerDownCapture)})});xn.displayName=yy;var xy="DismissableLayerBranch",Ey=g.forwardRef((e,t)=>{const n=g.useContext(Nf),r=g.useRef(null),o=re(t,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),x.jsx(z.div,{...e,ref:o})});Ey.displayName=xy;function Sy(e,t=globalThis==null?void 0:globalThis.document){const n=qe(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const i=c=>{if(c.target&&!r.current){let u=function(){Ff(by,n,a,{discrete:!0})};const a={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Cy(e,t=globalThis==null?void 0:globalThis.document){const n=qe(e),r=g.useRef(!1);return g.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ff(wy,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Yl(){const e=new CustomEvent(Rs);document.dispatchEvent(e)}function Ff(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?yf(o,i):o.dispatchEvent(i)}var zi="focusScope.autoFocusOnMount",Hi="focusScope.autoFocusOnUnmount",ql={bubbles:!1,cancelable:!0},_y="FocusScope",cr=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[c,u]=g.useState(null),a=qe(o),s=qe(i),d=g.useRef(null),f=re(t,h=>u(h)),p=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let h=function(w){if(p.paused||!c)return;const S=w.target;c.contains(S)?d.current=S:xt(d.current,{select:!0})},v=function(w){if(p.paused||!c)return;const S=w.relatedTarget;S!==null&&(c.contains(S)||xt(d.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&xt(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const b=new MutationObserver(y);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),b.disconnect()}}},[r,c,p.paused]),g.useEffect(()=>{if(c){Ql.add(p);const h=document.activeElement;if(!c.contains(h)){const v=new CustomEvent(zi,ql);c.addEventListener(zi,a),c.dispatchEvent(v),v.defaultPrevented||(Py(My(Vf(c)),{select:!0}),document.activeElement===h&&xt(c))}return()=>{c.removeEventListener(zi,a),setTimeout(()=>{const v=new CustomEvent(Hi,ql);c.addEventListener(Hi,s),c.dispatchEvent(v),v.defaultPrevented||xt(h??document.body,{select:!0}),c.removeEventListener(Hi,s),Ql.remove(p)},0)}}},[c,a,s,p]);const m=g.useCallback(h=>{if(!n&&!r||p.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(v&&y){const b=h.currentTarget,[w,S]=Ry(b);w&&S?!h.shiftKey&&y===S?(h.preventDefault(),n&&xt(w,{select:!0})):h.shiftKey&&y===w&&(h.preventDefault(),n&&xt(S,{select:!0})):y===b&&h.preventDefault()}},[n,r,p.paused]);return x.jsx(z.div,{tabIndex:-1,...l,ref:f,onKeyDown:m})});cr.displayName=_y;function Py(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xt(r,{select:t}),document.activeElement!==n)return}function Ry(e){const t=Vf(e),n=Zl(t,e),r=Zl(t.reverse(),e);return[n,r]}function Vf(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zl(e,t){for(const n of e)if(!Oy(n,{upTo:t}))return n}function Oy(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ty(e){return e instanceof HTMLInputElement&&"select"in e}function xt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ty(e)&&t&&e.select()}}var Ql=jy();function jy(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Jl(e,t),e.unshift(t)},remove(t){var n;e=Jl(e,t),(n=e[0])==null||n.resume()}}}function Jl(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function My(e){return e.filter(t=>t.tagName!=="A")}var Ui=0;function li(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??eu()),document.body.insertAdjacentElement("beforeend",e[1]??eu()),Ui++,()=>{Ui===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ui--}},[])}function eu(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var et=function(){return et=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},et.apply(this,arguments)};function $f(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Ay(e,t,n){for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var jo="right-scroll-bar-position",Mo="width-before-scroll-bar",ky="with-scroll-bars-hidden",Dy="--removed-body-scroll-bar-size";function Wi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ly(e,t){var n=R.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Iy=typeof window<"u"?g.useLayoutEffect:g.useEffect,tu=new WeakMap;function Ny(e,t){var n=Ly(null,function(r){return e.forEach(function(o){return Wi(o,r)})});return Iy(function(){var r=tu.get(n);if(r){var o=new Set(r),i=new Set(e),l=n.current;o.forEach(function(c){i.has(c)||Wi(c,null)}),i.forEach(function(c){o.has(c)||Wi(c,l)})}tu.set(n,e)},[e]),n}function Fy(e){return e}function Vy(e,t){t===void 0&&(t=Fy);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(i),l=n}var u=function(){var s=l;l=[],s.forEach(i)},a=function(){return Promise.resolve().then(u)};a(),n={push:function(s){l.push(s),a()},filter:function(s){return l=l.filter(s),n}}}};return o}function $y(e){e===void 0&&(e={});var t=Vy(null);return t.options=et({async:!0,ssr:!1},e),t}var Bf=function(e){var t=e.sideCar,n=$f(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,et({},n))};Bf.isSideCarExport=!0;function By(e,t){return e.useMedium(t),Bf}var zf=$y(),Gi=function(){},ui=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:Gi,onWheelCapture:Gi,onTouchMoveCapture:Gi}),o=r[0],i=r[1],l=e.forwardProps,c=e.children,u=e.className,a=e.removeScrollBar,s=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,v=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,S=$f(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,A=Ny([n,t]),j=et(et({},S),o);return g.createElement(g.Fragment,null,s&&g.createElement(E,{sideCar:zf,removeScrollBar:a,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:w}),l?g.cloneElement(g.Children.only(c),et(et({},j),{ref:A})):g.createElement(b,et({},j,{className:u,ref:A}),c))});ui.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ui.classNames={fullWidth:Mo,zeroRight:jo};var zy=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Hy(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zy();return t&&e.setAttribute("nonce",t),e}function Uy(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Wy(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Gy=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Hy())&&(Uy(t,n),Wy(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Xy=function(){var e=Gy();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Hf=function(){var e=Xy(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ky={left:0,top:0,right:0,gap:0},Xi=function(e){return parseInt(e||"",10)||0},Yy=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Xi(n),Xi(r),Xi(o)]},qy=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ky;var t=Yy(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Zy=Hf(),dn="data-scroll-locked",Qy=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
32
- .`.concat(ky,` {
31
+ Check the top-level render call using <`+C+">."),Z}var x=_,S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),P=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),X=Symbol.iterator,G=Symbol.for("react.client.reference"),L=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,D=Object.assign,ee=Symbol.for("react.client.reference"),J=Array.isArray,K=0,ne,te,V,q,Y,U,oe;r.__reactDisabledLog=!0;var I,de,ke=!1,Be=new(typeof WeakMap=="function"?WeakMap:Map),It=Symbol.for("react.client.reference"),kr,Dr={},Nt={},zl={};Ir.Fragment=A,Ir.jsx=function(C,Z,Q,le,Re){return m(C,Z,Q,!1,le,Re)},Ir.jsxs=function(C,Z,Q,le,Re){return m(C,Z,Q,!0,le,Re)}})()),Ir}var Wl;function e0(){return Wl||(Wl=1,process.env.NODE_ENV==="production"?Ui.exports=Qg():Ui.exports=Jg()),Ui.exports}var w=e0();function Xl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ai(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Xl(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Xl(e[o],null)}}}}function re(...e){return g.useCallback(ai(...e),e)}function _t(e){const t=n0(e),n=g.forwardRef((r,o)=>{const{children:i,...l}=r,c=g.Children.toArray(i),u=c.find(o0);if(u){const s=u.props.children,a=c.map(d=>d===u?g.Children.count(s)>1?g.Children.only(null):g.isValidElement(s)?s.props.children:null:d);return w.jsx(t,{...l,ref:o,children:g.isValidElement(s)?g.cloneElement(s,void 0,a):null})}return w.jsx(t,{...l,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var t0=_t("Slot");function n0(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const l=a0(o),c=i0(i,o.props);return o.type!==g.Fragment&&(c.ref=r?ai(r,l):l),g.cloneElement(o,c)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hf=Symbol("radix.slottable");function r0(e){const t=({children:n})=>w.jsx(w.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=hf,t}function o0(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hf}function i0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function a0(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var s0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=s0.reduce((e,t)=>{const n=_t(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:l,...c}=o,u=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function mf(e,t){e&&ii.flushSync(()=>e.dispatchEvent(t))}var Se=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},l0="Portal",vf=g.forwardRef((e,t)=>{var n;const{container:r,...o}=e,[i,l]=g.useState(!1);Se(()=>l(!0),[]);const c=r||i&&((n=globalThis==null?void 0:globalThis.document)==null?void 0:n.body);return c?bs.createPortal(w.jsx(z.div,{...o,ref:t}),c):null});vf.displayName=l0;function gf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=gf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function u0(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gf(e))&&(r&&(r+=" "),r+=t);return r}const ws="-",c0=e=>{const t=f0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const i=o.split(ws);return i[0]===""&&i.length!==1&&i.shift(),yf(i,t)||d0(o)},getConflictingClassGroupIds:(o,i)=>{const l=n[o]||[];return i&&r[o]?[...l,...r[o]]:l}}},yf=(e,t)=>{var n;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),i=o?yf(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;const l=e.join(ws);return(n=t.validators.find(({validator:c})=>c(l)))==null?void 0:n.classGroupId},Kl=/^\[(.+)\]$/,d0=e=>{if(Kl.test(e)){const t=Kl.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},f0=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return h0(Object.entries(e.classGroups),n).forEach(([o,i])=>{Ta(i,r,o,t)}),r},Ta=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Yl(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(p0(o)){Ta(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{Ta(l,Yl(t,i),n,r)})})},Yl=(e,t)=>{let n=e;return t.split(ws).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},p0=e=>e.isThemeGetter,h0=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,c])=>[t+l,c])):i);return[n,o]}):e,m0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,l)=>{n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}},bf="!",v0=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,l=c=>{const u=[];let s=0,a=0,d;for(let v=0;v<c.length;v++){let y=c[v];if(s===0){if(y===o&&(r||c.slice(v,v+i)===t)){u.push(c.slice(a,v)),a=v+i;continue}if(y==="/"){d=v;continue}}y==="["?s++:y==="]"&&s--}const f=u.length===0?c:c.substring(a),p=f.startsWith(bf),m=p?f.substring(1):f,h=d&&d>a?d-a:void 0;return{modifiers:u,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:h}};return n?c=>n({className:c,parseClassName:l}):l},g0=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},y0=e=>({cache:m0(e.cacheSize),parseClassName:v0(e),...c0(e)}),b0=/\s+/,w0=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],l=e.trim().split(b0);let c="";for(let u=l.length-1;u>=0;u-=1){const s=l[u],{modifiers:a,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(s);let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=s+(c.length>0?" "+c:c);continue}if(h=r(f),!h){c=s+(c.length>0?" "+c:c);continue}m=!1}const v=g0(a).join(":"),y=d?v+bf:v,b=y+h;if(i.includes(b))continue;i.push(b);const x=o(h,m);for(let S=0;S<x.length;++S){const E=x[S];i.push(y+E)}c=s+(c.length>0?" "+c:c)}return c};function x0(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=wf(t))&&(r&&(r+=" "),r+=n);return r}const wf=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=wf(e[r]))&&(n&&(n+=" "),n+=t);return n};function E0(e,...t){let n,r,o,i=l;function l(u){const s=t.reduce((a,d)=>d(a),e());return n=y0(s),r=n.cache.get,o=n.cache.set,i=c,c(u)}function c(u){const s=r(u);if(s)return s;const a=w0(u,n);return o(u,a),a}return function(){return i(x0.apply(null,arguments))}}const fe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},xf=/^\[(?:([a-z-]+):)?(.+)\]$/i,S0=/^\d+\/\d+$/,C0=new Set(["px","full","screen"]),_0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,P0=/\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$/,R0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,O0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,T0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ft=e=>pn(e)||C0.has(e)||S0.test(e),yt=e=>En(e,"length",N0),pn=e=>!!e&&!Number.isNaN(Number(e)),Hi=e=>En(e,"number",pn),Dn=e=>!!e&&Number.isInteger(Number(e)),j0=e=>e.endsWith("%")&&pn(e.slice(0,-1)),ie=e=>xf.test(e),bt=e=>_0.test(e),M0=new Set(["length","size","percentage"]),A0=e=>En(e,M0,Ef),k0=e=>En(e,"position",Ef),D0=new Set(["image","url"]),L0=e=>En(e,D0,V0),I0=e=>En(e,"",F0),Ln=()=>!0,En=(e,t,n)=>{const r=xf.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},N0=e=>P0.test(e)&&!R0.test(e),Ef=()=>!1,F0=e=>O0.test(e),V0=e=>T0.test(e),$0=()=>{const e=fe("colors"),t=fe("spacing"),n=fe("blur"),r=fe("brightness"),o=fe("borderColor"),i=fe("borderRadius"),l=fe("borderSpacing"),c=fe("borderWidth"),u=fe("contrast"),s=fe("grayscale"),a=fe("hueRotate"),d=fe("invert"),f=fe("gap"),p=fe("gradientColorStops"),m=fe("gradientColorStopPositions"),h=fe("inset"),v=fe("margin"),y=fe("opacity"),b=fe("padding"),x=fe("saturate"),S=fe("scale"),E=fe("sepia"),A=fe("skew"),j=fe("space"),O=fe("translate"),T=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto",ie,t],R=()=>[ie,t],$=()=>["",ft,yt],F=()=>["auto",pn,ie],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",ie],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[pn,ie];return{cacheSize:500,separator:":",theme:{colors:[Ln],spacing:[ft,yt],blur:["none","",bt,ie],brightness:D(),borderColor:[e],borderRadius:["none","","full",bt,ie],borderSpacing:R(),borderWidth:$(),contrast:D(),grayscale:L(),hueRotate:D(),invert:L(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[j0,yt],inset:k(),margin:k(),opacity:D(),padding:R(),saturate:D(),scale:D(),sepia:L(),skew:D(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[bt]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),ie]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Dn,ie]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",Dn,ie]}],"grid-cols":[{"grid-cols":[Ln]}],"col-start-end":[{col:["auto",{span:["full",Dn,ie]},ie]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Ln]}],"row-start-end":[{row:["auto",{span:[Dn,ie]},ie]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie,t]}],"min-w":[{"min-w":[ie,t,"min","max","fit"]}],"max-w":[{"max-w":[ie,t,"none","full","min","max","fit","prose",{screen:[bt]},bt]}],h:[{h:[ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",bt,yt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Hi]}],"font-family":[{font:[Ln]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ie]}],"line-clamp":[{"line-clamp":["none",pn,Hi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ft,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ft,yt]}],"underline-offset":[{"underline-offset":["auto",ft,ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),k0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",A0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},L0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[ft,ie]}],"outline-w":[{outline:[ft,yt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ft,yt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",bt,I0]}],"shadow-color":[{shadow:[Ln]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",bt,ie]}],grayscale:[{grayscale:[s]}],"hue-rotate":[{"hue-rotate":[a]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[a]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ie]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Dn,ie]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ft,yt,Hi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},B0=E0($0),me=(...e)=>B0(u0(e)),an=(e,t)=>`${e}-${t}`,z0=(e,t)=>t?[(t==null?void 0:t.sm)&&`sm:${an(e,t.sm)}`,(t==null?void 0:t.md)&&`md:${an(e,t.md)}`,(t==null?void 0:t.lg)&&`lg:${an(e,t.lg)}`,(t==null?void 0:t.xl)&&`xl:${an(e,t.xl)}`].filter(Boolean):[],Gi=(e,t)=>{const n=[];if(typeof t=="number"||typeof t=="string")n.push(an(e,t));else if(t&&t){const[r,o]=t;n.push(an(e,r)),n.push(...z0(e,o))}return n.join(" ")},U0=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{clipPath:"url(#clip0_1359_16290)"},g.createElement("path",{d:"M13.422 5.75502L8.37215 10.8048C8.19178 10.9856 7.97752 11.129 7.74166 11.2268C7.50579 11.3246 7.25295 11.375 6.9976 11.375C6.74224 11.375 6.4894 11.3246 6.25353 11.2268C6.01767 11.129 5.80341 10.9856 5.62304 10.8048L0.573244 5.75502C-0.655085 4.52669 0.222293 2.42098 1.95755 2.42098L12.0571 2.42098C13.7924 2.42098 14.6503 4.52669 13.422 5.75502Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_1359_16290"},g.createElement("rect",{width:14,height:14,fill:"white",transform:"translate(14 14) rotate(-180)"})))),H0=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 15 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M5.88995 10.1388L5.86646 10.1623L0 4.29579L1.91024 2.38556L5.89003 6.36536L12.2554 0L14.1656 1.91024L5.91352 10.1623L5.88995 10.1388Z",fill:"currentColor"})),G0=e=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",...e},g.createElement("path",{d:"M21.2805 18.736C20.7752 17.5392 20.0419 16.452 19.1216 15.5351C18.204 14.6156 17.117 13.8825 15.9207 13.3762C15.9099 13.3709 15.8992 13.3682 15.8885 13.3628C17.5573 12.1575 18.6421 10.1941 18.6421 7.97889C18.6421 4.30924 15.6689 1.33603 11.9992 1.33603C8.32959 1.33603 5.35637 4.30924 5.35637 7.97889C5.35637 10.1941 6.44119 12.1575 8.10994 13.3655C8.09923 13.3709 8.08852 13.3735 8.0778 13.3789C6.8778 13.8851 5.80102 14.611 4.87691 15.5378C3.95738 16.4554 3.22424 17.5424 2.71798 18.7387C2.22063 19.9099 1.9524 21.1656 1.9278 22.4378C1.92709 22.4664 1.9321 22.4948 1.94255 22.5215C1.953 22.5481 1.96867 22.5723 1.98864 22.5928C2.00861 22.6133 2.03247 22.6296 2.05883 22.6407C2.08518 22.6518 2.11349 22.6575 2.14209 22.6575H3.74923C3.86709 22.6575 3.96084 22.5637 3.96352 22.4485C4.01709 20.3807 4.84744 18.4441 6.3153 16.9762C7.83405 15.4575 9.85102 14.6217 11.9992 14.6217C14.1474 14.6217 16.1644 15.4575 17.6832 16.9762C19.151 18.4441 19.9814 20.3807 20.0349 22.4485C20.0376 22.5664 20.1314 22.6575 20.2492 22.6575H21.8564C21.885 22.6575 21.9133 22.6518 21.9396 22.6407C21.966 22.6296 21.9899 22.6133 22.0098 22.5928C22.0298 22.5723 22.0455 22.5481 22.0559 22.5215C22.0664 22.4948 22.0714 22.4664 22.0707 22.4378C22.0439 21.1575 21.7787 19.9119 21.2805 18.736ZM11.9992 12.586C10.7698 12.586 9.61262 12.1066 8.74209 11.236C7.87155 10.3655 7.39209 9.20835 7.39209 7.97889C7.39209 6.74942 7.87155 5.59228 8.74209 4.72174C9.61262 3.85121 10.7698 3.37174 11.9992 3.37174C13.2287 3.37174 14.3858 3.85121 15.2564 4.72174C16.1269 5.59228 16.6064 6.74942 16.6064 7.97889C16.6064 9.20835 16.1269 10.3655 15.2564 11.236C14.3858 12.1066 13.2287 12.586 11.9992 12.586Z"})),W0=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{clipPath:"url(#clip0_13053_6230)"},g.createElement("path",{d:"M7 0.875C3.61758 0.875 0.875 3.61758 0.875 7C0.875 10.3824 3.61758 13.125 7 13.125C10.3824 13.125 13.125 10.3824 13.125 7C13.125 3.61758 10.3824 0.875 7 0.875ZM9.26133 9.32695L8.35898 9.32285L7 7.70273L5.64238 9.32148L4.73867 9.32559C4.67852 9.32559 4.6293 9.27773 4.6293 9.21621C4.6293 9.19023 4.63887 9.16563 4.65527 9.14512L6.43398 7.02598L4.65527 4.9082C4.63875 4.88817 4.62959 4.86308 4.6293 4.83711C4.6293 4.77695 4.67852 4.72773 4.73867 4.72773L5.64238 4.73184L7 6.35195L8.35762 4.7332L9.25996 4.7291C9.32012 4.7291 9.36934 4.77695 9.36934 4.83848C9.36934 4.86445 9.35977 4.88906 9.34336 4.90957L7.56738 7.02734L9.34473 9.14648C9.36113 9.16699 9.3707 9.1916 9.3707 9.21758C9.3707 9.27773 9.32148 9.32695 9.26133 9.32695Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_13053_6230"},g.createElement("rect",{width:14,height:14,fill:"white"})))),X0=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("rect",{width:16,height:16,fill:"currentColor"}));function K0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sf=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Y0="VisuallyHidden",Cf=g.forwardRef((e,t)=>w.jsx(z.span,{...e,ref:t,style:{...Sf,...e.style}}));Cf.displayName=Y0;var q0=Cf;function Z0(e,t){const n=g.createContext(t),r=i=>{const{children:l,...c}=i,u=g.useMemo(()=>c,Object.values(c));return w.jsx(n.Provider,{value:u,children:l})};r.displayName=e+"Provider";function o(i){const l=g.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function xe(e,t=[]){let n=[];function r(i,l){const c=g.createContext(l),u=n.length;n=[...n,l];const s=d=>{var f;const{scope:p,children:m,...h}=d,v=((f=p==null?void 0:p[e])==null?void 0:f[u])||c,y=g.useMemo(()=>h,Object.values(h));return w.jsx(v.Provider,{value:y,children:m})};s.displayName=i+"Provider";function a(d,f){var p;const m=((p=f==null?void 0:f[e])==null?void 0:p[u])||c,h=g.useContext(m);if(h)return h;if(l!==void 0)return l;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[s,a]}const o=()=>{const i=n.map(l=>g.createContext(l));return function(l){const c=(l==null?void 0:l[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Q0(o,...t)]}function Q0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const i=r.reduce((l,{useScope:c,scopeName:u})=>{const s=c(o)[`__scope${u}`];return{...l,...s}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function cr(e){const t=e+"CollectionProvider",[n,r]=xe(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=h=>{const{scope:v,children:y}=h,b=_.useRef(null),x=_.useRef(new Map).current;return w.jsx(o,{scope:v,itemMap:x,collectionRef:b,children:y})};l.displayName=t;const c=e+"CollectionSlot",u=_t(c),s=_.forwardRef((h,v)=>{const{scope:y,children:b}=h,x=i(c,y),S=re(v,x.collectionRef);return w.jsx(u,{ref:S,children:b})});s.displayName=c;const a=e+"CollectionItemSlot",d="data-radix-collection-item",f=_t(a),p=_.forwardRef((h,v)=>{const{scope:y,children:b,...x}=h,S=_.useRef(null),E=re(v,S),A=i(a,y);return _.useEffect(()=>(A.itemMap.set(S,{ref:S,...x}),()=>void A.itemMap.delete(S))),w.jsx(f,{[d]:"",ref:E,children:b})});p.displayName=a;function m(h){const v=i(e+"CollectionConsumer",h);return _.useCallback(()=>{const y=v.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((x,S)=>b.indexOf(x.ref.current)-b.indexOf(S.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:l,Slot:s,ItemSlot:p},m,r]}function N(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}var J0=g[" useInsertionEffect ".trim().toString()]||Se;function Fe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,l]=ey({defaultProp:t,onChange:n}),c=e!==void 0,u=c?e:o;{const a=g.useRef(e!==void 0);g.useEffect(()=>{const d=a.current;d!==c&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),a.current=c},[c,r])}const s=g.useCallback(a=>{var d;if(c){const f=ty(a)?a(e):a;f!==e&&((d=l.current)==null||d.call(l,f))}else i(a)},[c,e,i,l]);return[u,s]}function ey({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),o=g.useRef(n),i=g.useRef(t);return J0(()=>{i.current=t},[t]),g.useEffect(()=>{var l;o.current!==n&&((l=i.current)==null||l.call(i,n),o.current=n)},[n,o]),[n,r,i]}function ty(e){return typeof e=="function"}function ny(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var Ve=e=>{const{present:t,children:n}=e,r=ry(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=re(r.ref,oy(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:i}):null};Ve.displayName="Presence";function ry(e){const[t,n]=g.useState(),r=g.useRef(null),o=g.useRef(e),i=g.useRef("none"),l=e?"mounted":"unmounted",[c,u]=ny(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const s=Nr(r.current);i.current=c==="mounted"?s:"none"},[c]),Se(()=>{const s=r.current,a=o.current;if(a!==e){const d=i.current,f=Nr(s);e?u("MOUNT"):f==="none"||(s==null?void 0:s.display)==="none"?u("UNMOUNT"):u(a&&d!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Se(()=>{if(t){let s;const a=t.ownerDocument.defaultView??window,d=p=>{const m=Nr(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(u("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",s=a.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},f=p=>{p.target===t&&(i.current=Nr(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{a.clearTimeout(s),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:g.useCallback(s=>{r.current=s?getComputedStyle(s):null,n(s)},[])}}function Nr(e){return(e==null?void 0:e.animationName)||"none"}function oy(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var iy=g[" useId ".trim().toString()]||(()=>{}),ay=0;function qe(e){const[t,n]=g.useState(iy());return Se(()=>{n(r=>r??String(ay++))},[e]),t?`radix-${t}`:""}var si="Collapsible",[sy,_f]=xe(si),[ly,xs]=sy(si),Pf=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:l,...c}=e,[u,s]=Fe({prop:r,defaultProp:o??!1,onChange:l,caller:si});return w.jsx(ly,{scope:n,disabled:i,contentId:qe(),open:u,onOpenToggle:g.useCallback(()=>s(a=>!a),[s]),children:w.jsx(z.div,{"data-state":Ss(u),"data-disabled":i?"":void 0,...c,ref:t})})});Pf.displayName=si;var Rf="CollapsibleTrigger",Of=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=xs(Rf,n);return w.jsx(z.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Ss(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:N(e.onClick,o.onOpenToggle)})});Of.displayName=Rf;var Es="CollapsibleContent",Tf=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=xs(Es,e.__scopeCollapsible);return w.jsx(Ve,{present:n||o.open,children:({present:i})=>w.jsx(uy,{...r,ref:t,present:i})})});Tf.displayName=Es;var uy=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,l=xs(Es,n),[c,u]=g.useState(r),s=g.useRef(null),a=re(t,s),d=g.useRef(0),f=d.current,p=g.useRef(0),m=p.current,h=l.open||c,v=g.useRef(h),y=g.useRef(void 0);return g.useEffect(()=>{const b=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(b)},[]),Se(()=>{const b=s.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const x=b.getBoundingClientRect();d.current=x.height,p.current=x.width,v.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),u(r)}},[l.open,r]),w.jsx(z.div,{"data-state":Ss(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!h,...i,ref:a,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&o})});function Ss(e){return e?"open":"closed"}var cy=Pf,dy=Of,fy=Tf,py=g.createContext(void 0);function qt(e){const t=g.useContext(py);return e||t||"ltr"}var et="Accordion",hy=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Cs,my,vy]=cr(et),[li]=xe(et,[vy,_f]),_s=_f(),gy=_.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return w.jsx(Cs.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?w.jsx(xy,{...i,ref:t}):w.jsx(wy,{...o,ref:t})})});gy.displayName=et;var[jf,yy]=li(et),[Mf,by]=li(et,{collapsible:!1}),wy=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...l}=e,[c,u]=Fe({prop:n,defaultProp:r??"",onChange:o,caller:et});return w.jsx(jf,{scope:e.__scopeAccordion,value:_.useMemo(()=>c?[c]:[],[c]),onItemOpen:u,onItemClose:_.useCallback(()=>i&&u(""),[i,u]),children:w.jsx(Mf,{scope:e.__scopeAccordion,collapsible:i,children:w.jsx(Af,{...l,ref:t})})})}),xy=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[l,c]=Fe({prop:n,defaultProp:r??[],onChange:o,caller:et}),u=_.useCallback(a=>c((d=[])=>[...d,a]),[c]),s=_.useCallback(a=>c((d=[])=>d.filter(f=>f!==a)),[c]);return w.jsx(jf,{scope:e.__scopeAccordion,value:l,onItemOpen:u,onItemClose:s,children:w.jsx(Mf,{scope:e.__scopeAccordion,collapsible:!0,children:w.jsx(Af,{...i,ref:t})})})}),[Ey,ui]=li(et),Af=_.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...l}=e,c=_.useRef(null),u=re(c,t),s=my(n),a=qt(o)==="ltr",d=N(e.onKeyDown,f=>{var p;if(!hy.includes(f.key))return;const m=f.target,h=s().filter(O=>{var T;return!((T=O.ref.current)!=null&&T.disabled)}),v=h.findIndex(O=>O.ref.current===m),y=h.length;if(v===-1)return;f.preventDefault();let b=v;const x=0,S=y-1,E=()=>{b=v+1,b>S&&(b=x)},A=()=>{b=v-1,b<x&&(b=S)};switch(f.key){case"Home":b=x;break;case"End":b=S;break;case"ArrowRight":i==="horizontal"&&(a?E():A());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(a?A():E());break;case"ArrowUp":i==="vertical"&&A();break}const j=b%y;(p=h[j].ref.current)==null||p.focus()});return w.jsx(Ey,{scope:n,disabled:r,direction:o,orientation:i,children:w.jsx(Cs.Slot,{scope:n,children:w.jsx(z.div,{...l,"data-orientation":i,ref:u,onKeyDown:r?void 0:d})})})}),Vo="AccordionItem",[Sy,Ps]=li(Vo),kf=_.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,i=ui(Vo,n),l=yy(Vo,n),c=_s(n),u=qe(),s=r&&l.value.includes(r)||!1,a=i.disabled||e.disabled;return w.jsx(Sy,{scope:n,open:s,disabled:a,triggerId:u,children:w.jsx(cy,{"data-orientation":i.orientation,"data-state":Vf(s),...c,...o,ref:t,disabled:a,open:s,onOpenChange:d=>{d?l.onItemOpen(r):l.onItemClose(r)}})})});kf.displayName=Vo;var Df="AccordionHeader",Lf=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ui(et,n),i=Ps(Df,n);return w.jsx(z.h3,{"data-orientation":o.orientation,"data-state":Vf(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});Lf.displayName=Df;var ja="AccordionTrigger",If=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ui(et,n),i=Ps(ja,n),l=by(ja,n),c=_s(n);return w.jsx(Cs.ItemSlot,{scope:n,children:w.jsx(dy,{"aria-disabled":i.open&&!l.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...c,...r,ref:t})})});If.displayName=ja;var Nf="AccordionContent",Ff=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ui(et,n),i=Ps(Nf,n),l=_s(n);return w.jsx(fy,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...l,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Ff.displayName=Nf;function Vf(e){return e?"open":"closed"}var Cy=kf,_y=Lf,Py=If,Ry=Ff;function Ze(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Oy(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ty="DismissableLayer",Ma="dismissableLayer.update",jy="dismissableLayer.pointerDownOutside",My="dismissableLayer.focusOutside",ql,$f=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sn=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:c,...u}=e,s=g.useContext($f),[a,d]=g.useState(null),f=(a==null?void 0:a.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=g.useState({}),m=re(t,j=>d(j)),h=Array.from(s.layers),[v]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(v),b=a?h.indexOf(a):-1,x=s.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,E=Dy(j=>{const O=j.target,T=[...s.branches].some(P=>P.contains(O));!S||T||(o==null||o(j),l==null||l(j),j.defaultPrevented||c==null||c())},f),A=Ly(j=>{const O=j.target;[...s.branches].some(T=>T.contains(O))||(i==null||i(j),l==null||l(j),j.defaultPrevented||c==null||c())},f);return Oy(j=>{b===s.layers.size-1&&(r==null||r(j),!j.defaultPrevented&&c&&(j.preventDefault(),c()))},f),g.useEffect(()=>{if(a)return n&&(s.layersWithOutsidePointerEventsDisabled.size===0&&(ql=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(a)),s.layers.add(a),Zl(),()=>{n&&s.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=ql)}},[a,f,n,s]),g.useEffect(()=>()=>{a&&(s.layers.delete(a),s.layersWithOutsidePointerEventsDisabled.delete(a),Zl())},[a,s]),g.useEffect(()=>{const j=()=>p({});return document.addEventListener(Ma,j),()=>document.removeEventListener(Ma,j)},[]),w.jsx(z.div,{...u,ref:m,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:N(e.onFocusCapture,A.onFocusCapture),onBlurCapture:N(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:N(e.onPointerDownCapture,E.onPointerDownCapture)})});Sn.displayName=Ty;var Ay="DismissableLayerBranch",ky=g.forwardRef((e,t)=>{const n=g.useContext($f),r=g.useRef(null),o=re(t,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(z.div,{...e,ref:o})});ky.displayName=Ay;function Dy(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const i=c=>{if(c.target&&!r.current){let u=function(){Bf(jy,n,s,{discrete:!0})};const s={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ly(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e),r=g.useRef(!1);return g.useEffect(()=>{const o=i=>{i.target&&!r.current&&Bf(My,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Zl(){const e=new CustomEvent(Ma);document.dispatchEvent(e)}function Bf(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?mf(o,i):o.dispatchEvent(i)}var Wi="focusScope.autoFocusOnMount",Xi="focusScope.autoFocusOnUnmount",Ql={bubbles:!1,cancelable:!0},Iy="FocusScope",dr=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[c,u]=g.useState(null),s=Ze(o),a=Ze(i),d=g.useRef(null),f=re(t,h=>u(h)),p=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let h=function(x){if(p.paused||!c)return;const S=x.target;c.contains(S)?d.current=S:xt(d.current,{select:!0})},v=function(x){if(p.paused||!c)return;const S=x.relatedTarget;S!==null&&(c.contains(S)||xt(d.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&xt(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const b=new MutationObserver(y);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),b.disconnect()}}},[r,c,p.paused]),g.useEffect(()=>{if(c){eu.add(p);const h=document.activeElement;if(!c.contains(h)){const v=new CustomEvent(Wi,Ql);c.addEventListener(Wi,s),c.dispatchEvent(v),v.defaultPrevented||(Ny(zy(zf(c)),{select:!0}),document.activeElement===h&&xt(c))}return()=>{c.removeEventListener(Wi,s),setTimeout(()=>{const v=new CustomEvent(Xi,Ql);c.addEventListener(Xi,a),c.dispatchEvent(v),v.defaultPrevented||xt(h??document.body,{select:!0}),c.removeEventListener(Xi,a),eu.remove(p)},0)}}},[c,s,a,p]);const m=g.useCallback(h=>{if(!n&&!r||p.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(v&&y){const b=h.currentTarget,[x,S]=Fy(b);x&&S?!h.shiftKey&&y===S?(h.preventDefault(),n&&xt(x,{select:!0})):h.shiftKey&&y===x&&(h.preventDefault(),n&&xt(S,{select:!0})):y===b&&h.preventDefault()}},[n,r,p.paused]);return w.jsx(z.div,{tabIndex:-1,...l,ref:f,onKeyDown:m})});dr.displayName=Iy;function Ny(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xt(r,{select:t}),document.activeElement!==n)return}function Fy(e){const t=zf(e),n=Jl(t,e),r=Jl(t.reverse(),e);return[n,r]}function zf(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Jl(e,t){for(const n of e)if(!Vy(n,{upTo:t}))return n}function Vy(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function $y(e){return e instanceof HTMLInputElement&&"select"in e}function xt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$y(e)&&t&&e.select()}}var eu=By();function By(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=tu(e,t),e.unshift(t)},remove(t){var n;e=tu(e,t),(n=e[0])==null||n.resume()}}}function tu(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zy(e){return e.filter(t=>t.tagName!=="A")}var Ki=0;function ci(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??nu()),document.body.insertAdjacentElement("beforeend",e[1]??nu()),Ki++,()=>{Ki===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ki--}},[])}function nu(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var tt=function(){return tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tt.apply(this,arguments)};function Uf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Uy(e,t,n){for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Mo="right-scroll-bar-position",Ao="width-before-scroll-bar",Hy="with-scroll-bars-hidden",Gy="--removed-body-scroll-bar-size";function Yi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Wy(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Xy=typeof window<"u"?g.useLayoutEffect:g.useEffect,ru=new WeakMap;function Ky(e,t){var n=Wy(null,function(r){return e.forEach(function(o){return Yi(o,r)})});return Xy(function(){var r=ru.get(n);if(r){var o=new Set(r),i=new Set(e),l=n.current;o.forEach(function(c){i.has(c)||Yi(c,null)}),i.forEach(function(c){o.has(c)||Yi(c,l)})}ru.set(n,e)},[e]),n}function Yy(e){return e}function qy(e,t){t===void 0&&(t=Yy);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(i),l=n}var u=function(){var a=l;l=[],a.forEach(i)},s=function(){return Promise.resolve().then(u)};s(),n={push:function(a){l.push(a),s()},filter:function(a){return l=l.filter(a),n}}}};return o}function Zy(e){e===void 0&&(e={});var t=qy(null);return t.options=tt({async:!0,ssr:!1},e),t}var Hf=function(e){var t=e.sideCar,n=Uf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,tt({},n))};Hf.isSideCarExport=!0;function Qy(e,t){return e.useMedium(t),Hf}var Gf=Zy(),qi=function(){},di=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:qi,onWheelCapture:qi,onTouchMoveCapture:qi}),o=r[0],i=r[1],l=e.forwardProps,c=e.children,u=e.className,s=e.removeScrollBar,a=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,v=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,x=e.gapMode,S=Uf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,A=Ky([n,t]),j=tt(tt({},S),o);return g.createElement(g.Fragment,null,a&&g.createElement(E,{sideCar:Gf,removeScrollBar:s,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:x}),l?g.cloneElement(g.Children.only(c),tt(tt({},j),{ref:A})):g.createElement(b,tt({},j,{className:u,ref:A}),c))});di.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};di.classNames={fullWidth:Ao,zeroRight:Mo};var Jy=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function e1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Jy();return t&&e.setAttribute("nonce",t),e}function t1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function n1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var r1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=e1())&&(t1(t,n),n1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},o1=function(){var e=r1();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Wf=function(){var e=o1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},i1={left:0,top:0,right:0,gap:0},Zi=function(e){return parseInt(e||"",10)||0},a1=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Zi(n),Zi(r),Zi(o)]},s1=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return i1;var t=a1(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},l1=Wf(),hn="data-scroll-locked",u1=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
32
+ .`.concat(Hy,` {
33
33
  overflow: hidden `).concat(r,`;
34
34
  padding-right: `).concat(c,"px ").concat(r,`;
35
35
  }
36
- body[`).concat(dn,`] {
36
+ body[`).concat(hn,`] {
37
37
  overflow: hidden `).concat(r,`;
38
38
  overscroll-behavior: contain;
39
39
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
@@ -46,33 +46,33 @@ Check the top-level render call using <`+C+">."),Z}var w=R,S=Symbol.for("react.t
46
46
  `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
47
47
  }
48
48
 
49
- .`).concat(jo,` {
49
+ .`).concat(Mo,` {
50
50
  right: `).concat(c,"px ").concat(r,`;
51
51
  }
52
52
 
53
- .`).concat(Mo,` {
53
+ .`).concat(Ao,` {
54
54
  margin-right: `).concat(c,"px ").concat(r,`;
55
55
  }
56
56
 
57
- .`).concat(jo," .").concat(jo,` {
57
+ .`).concat(Mo," .").concat(Mo,` {
58
58
  right: 0 `).concat(r,`;
59
59
  }
60
60
 
61
- .`).concat(Mo," .").concat(Mo,` {
61
+ .`).concat(Ao," .").concat(Ao,` {
62
62
  margin-right: 0 `).concat(r,`;
63
63
  }
64
64
 
65
- body[`).concat(dn,`] {
66
- `).concat(Dy,": ").concat(c,`px;
65
+ body[`).concat(hn,`] {
66
+ `).concat(Gy,": ").concat(c,`px;
67
67
  }
68
- `)},nu=function(){var e=parseInt(document.body.getAttribute(dn)||"0",10);return isFinite(e)?e:0},Jy=function(){g.useEffect(function(){return document.body.setAttribute(dn,(nu()+1).toString()),function(){var e=nu()-1;e<=0?document.body.removeAttribute(dn):document.body.setAttribute(dn,e.toString())}},[])},e1=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Jy();var i=g.useMemo(function(){return qy(o)},[o]);return g.createElement(Zy,{styles:Qy(i,!t,o,n?"":"!important")})},Os=!1;if(typeof window<"u")try{var Nr=Object.defineProperty({},"passive",{get:function(){return Os=!0,!0}});window.addEventListener("test",Nr,Nr),window.removeEventListener("test",Nr,Nr)}catch{Os=!1}var Qt=Os?{passive:!1}:!1,t1=function(e){return e.tagName==="TEXTAREA"},Uf=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!t1(e)&&n[t]==="visible")},n1=function(e){return Uf(e,"overflowY")},r1=function(e){return Uf(e,"overflowX")},ru=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Wf(e,r);if(o){var i=Gf(e,r),l=i[1],c=i[2];if(l>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},o1=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},i1=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Wf=function(e,t){return e==="v"?n1(t):r1(t)},Gf=function(e,t){return e==="v"?o1(t):i1(t)},s1=function(e,t){return e==="h"&&t==="rtl"?-1:1},a1=function(e,t,n,r,o){var i=s1(e,window.getComputedStyle(t).direction),l=i*r,c=n.target,u=t.contains(c),a=!1,s=l>0,d=0,f=0;do{if(!c)break;var p=Gf(e,c),m=p[0],h=p[1],v=p[2],y=h-v-i*m;(m||y)&&Wf(e,c)&&(d+=y,f+=m);var b=c.parentNode;c=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(s&&Math.abs(d)<1||!s&&Math.abs(f)<1)&&(a=!0),a},Fr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ou=function(e){return[e.deltaX,e.deltaY]},iu=function(e){return e&&"current"in e?e.current:e},l1=function(e,t){return e[0]===t[0]&&e[1]===t[1]},u1=function(e){return`
68
+ `)},ou=function(){var e=parseInt(document.body.getAttribute(hn)||"0",10);return isFinite(e)?e:0},c1=function(){g.useEffect(function(){return document.body.setAttribute(hn,(ou()+1).toString()),function(){var e=ou()-1;e<=0?document.body.removeAttribute(hn):document.body.setAttribute(hn,e.toString())}},[])},d1=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;c1();var i=g.useMemo(function(){return s1(o)},[o]);return g.createElement(l1,{styles:u1(i,!t,o,n?"":"!important")})},Aa=!1;if(typeof window<"u")try{var Fr=Object.defineProperty({},"passive",{get:function(){return Aa=!0,!0}});window.addEventListener("test",Fr,Fr),window.removeEventListener("test",Fr,Fr)}catch{Aa=!1}var tn=Aa?{passive:!1}:!1,f1=function(e){return e.tagName==="TEXTAREA"},Xf=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!f1(e)&&n[t]==="visible")},p1=function(e){return Xf(e,"overflowY")},h1=function(e){return Xf(e,"overflowX")},iu=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Kf(e,r);if(o){var i=Yf(e,r),l=i[1],c=i[2];if(l>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},m1=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},v1=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Kf=function(e,t){return e==="v"?p1(t):h1(t)},Yf=function(e,t){return e==="v"?m1(t):v1(t)},g1=function(e,t){return e==="h"&&t==="rtl"?-1:1},y1=function(e,t,n,r,o){var i=g1(e,window.getComputedStyle(t).direction),l=i*r,c=n.target,u=t.contains(c),s=!1,a=l>0,d=0,f=0;do{if(!c)break;var p=Yf(e,c),m=p[0],h=p[1],v=p[2],y=h-v-i*m;(m||y)&&Kf(e,c)&&(d+=y,f+=m);var b=c.parentNode;c=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(a&&Math.abs(d)<1||!a&&Math.abs(f)<1)&&(s=!0),s},Vr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},au=function(e){return[e.deltaX,e.deltaY]},su=function(e){return e&&"current"in e?e.current:e},b1=function(e,t){return e[0]===t[0]&&e[1]===t[1]},w1=function(e){return`
69
69
  .block-interactivity-`.concat(e,` {pointer-events: none;}
70
70
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
71
- `)},c1=0,Jt=[];function d1(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(c1++)[0],i=g.useState(Hf)[0],l=g.useRef(e);g.useEffect(function(){l.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Ay([e.lockRef.current],(e.shards||[]).map(iu)).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=g.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!l.current.allowPinchZoom;var y=Fr(h),b=n.current,w="deltaX"in h?h.deltaX:b[0]-y[0],S="deltaY"in h?h.deltaY:b[1]-y[1],E,A=h.target,j=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in h&&j==="h"&&A.type==="range")return!1;var O=window.getSelection(),T=O&&O.anchorNode,_=T?T===A||T.contains(A):!1;if(_)return!1;var k=ru(j,A);if(!k)return!0;if(k?E=j:(E=j==="v"?"h":"v",k=ru(j,A)),!k)return!1;if(!r.current&&"changedTouches"in h&&(w||S)&&(r.current=E),!E)return!0;var P=r.current||E;return a1(P,v,h,P==="h"?w:S)},[]),u=g.useCallback(function(h){var v=h;if(!(!Jt.length||Jt[Jt.length-1]!==i)){var y="deltaY"in v?ou(v):Fr(v),b=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&l1(E.delta,y)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var w=(l.current.shards||[]).map(iu).filter(Boolean).filter(function(E){return E.contains(v.target)}),S=w.length>0?c(v,w[0]):!l.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),a=g.useCallback(function(h,v,y,b){var w={name:h,delta:v,target:y,should:b,shadowParent:f1(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),s=g.useCallback(function(h){n.current=Fr(h),r.current=void 0},[]),d=g.useCallback(function(h){a(h.type,ou(h),h.target,c(h,e.lockRef.current))},[]),f=g.useCallback(function(h){a(h.type,Fr(h),h.target,c(h,e.lockRef.current))},[]);g.useEffect(function(){return Jt.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,Qt),document.addEventListener("touchmove",u,Qt),document.addEventListener("touchstart",s,Qt),function(){Jt=Jt.filter(function(h){return h!==i}),document.removeEventListener("wheel",u,Qt),document.removeEventListener("touchmove",u,Qt),document.removeEventListener("touchstart",s,Qt)}},[]);var p=e.removeScrollBar,m=e.inert;return g.createElement(g.Fragment,null,m?g.createElement(i,{styles:u1(o)}):null,p?g.createElement(e1,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function f1(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const p1=By(zf,d1);var dr=g.forwardRef(function(e,t){return g.createElement(ui,et({},e,{ref:t,sideCar:p1}))});dr.classNames=ui.classNames;var h1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},en=new WeakMap,Vr=new WeakMap,$r={},Ki=0,Xf=function(e){return e&&(e.host||Xf(e.parentNode))},m1=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Xf(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},v1=function(e,t,n,r){var o=m1(t,Array.isArray(e)?e:[e]);$r[n]||($r[n]=new WeakMap);var i=$r[n],l=[],c=new Set,u=new Set(o),a=function(d){!d||c.has(d)||(c.add(d),a(d.parentNode))};o.forEach(a);var s=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(f){if(c.has(f))s(f);else try{var p=f.getAttribute(r),m=p!==null&&p!=="false",h=(en.get(f)||0)+1,v=(i.get(f)||0)+1;en.set(f,h),i.set(f,v),l.push(f),h===1&&m&&Vr.set(f,!0),v===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return s(t),c.clear(),Ki++,function(){l.forEach(function(d){var f=en.get(d)-1,p=i.get(d)-1;en.set(d,f),i.set(d,p),f||(Vr.has(d)||d.removeAttribute(r),Vr.delete(d)),p||d.removeAttribute(n)}),Ki--,Ki||(en=new WeakMap,en=new WeakMap,Vr=new WeakMap,$r={})}},ci=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=h1(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),v1(r,o,n,"aria-hidden")):function(){return null}},Kf="Dialog",[Yf]=Se(Kf),[k2,lt]=Yf(Kf),qf="DialogTrigger",g1=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(qf,n),i=re(t,o.triggerRef);return x.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ca(o.open),...r,ref:i,onClick:N(e.onClick,o.onOpenToggle)})});g1.displayName=qf;var y1="DialogPortal",[D2,Zf]=Yf(y1,{forceMount:void 0}),Vo="DialogOverlay",b1=g.forwardRef((e,t)=>{const n=Zf(Vo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=lt(Vo,e.__scopeDialog);return i.modal?x.jsx(Fe,{present:r||i.open,children:x.jsx(x1,{...o,ref:t})}):null});b1.displayName=Vo;var w1=_t("DialogOverlay.RemoveScroll"),x1=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(Vo,n);return x.jsx(dr,{as:w1,allowPinchZoom:!0,shards:[o.contentRef],children:x.jsx(z.div,{"data-state":Ca(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ut="DialogContent",E1=g.forwardRef((e,t)=>{const n=Zf(Ut,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=lt(Ut,e.__scopeDialog);return x.jsx(Fe,{present:r||i.open,children:i.modal?x.jsx(S1,{...o,ref:t}):x.jsx(C1,{...o,ref:t})})});E1.displayName=Ut;var S1=g.forwardRef((e,t)=>{const n=lt(Ut,e.__scopeDialog),r=g.useRef(null),o=re(t,n.contentRef,r);return g.useEffect(()=>{const i=r.current;if(i)return ci(i)},[]),x.jsx(Qf,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:N(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:N(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&i.preventDefault()}),onFocusOutside:N(e.onFocusOutside,i=>i.preventDefault())})}),C1=g.forwardRef((e,t)=>{const n=lt(Ut,e.__scopeDialog),r=g.useRef(!1),o=g.useRef(!1);return x.jsx(Qf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=i.target;(c=n.triggerRef.current)!=null&&c.contains(u)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Qf=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,c=lt(Ut,n),u=g.useRef(null),a=re(t,u);return li(),x.jsxs(x.Fragment,{children:[x.jsx(cr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:x.jsx(xn,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Ca(c.open),...l,ref:a,onDismiss:()=>c.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(O1,{titleId:c.titleId}),x.jsx(j1,{contentRef:u,descriptionId:c.descriptionId})]})]})}),Sa="DialogTitle",_1=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(Sa,n);return x.jsx(z.h2,{id:o.titleId,...r,ref:t})});_1.displayName=Sa;var Jf="DialogDescription",P1=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(Jf,n);return x.jsx(z.p,{id:o.descriptionId,...r,ref:t})});P1.displayName=Jf;var ep="DialogClose",R1=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(ep,n);return x.jsx(z.button,{type:"button",...r,ref:t,onClick:N(e.onClick,()=>o.onOpenChange(!1))})});R1.displayName=ep;function Ca(e){return e?"open":"closed"}var tp="DialogTitleWarning",[L2,np]=$g(tp,{contentName:Ut,titleName:Sa,docsSlug:"dialog"}),O1=({titleId:e})=>{const t=np(tp),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
71
+ `)},x1=0,nn=[];function E1(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(x1++)[0],i=g.useState(Wf)[0],l=g.useRef(e);g.useEffect(function(){l.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Uy([e.lockRef.current],(e.shards||[]).map(su)).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=g.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!l.current.allowPinchZoom;var y=Vr(h),b=n.current,x="deltaX"in h?h.deltaX:b[0]-y[0],S="deltaY"in h?h.deltaY:b[1]-y[1],E,A=h.target,j=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in h&&j==="h"&&A.type==="range")return!1;var O=window.getSelection(),T=O&&O.anchorNode,P=T?T===A||T.contains(A):!1;if(P)return!1;var k=iu(j,A);if(!k)return!0;if(k?E=j:(E=j==="v"?"h":"v",k=iu(j,A)),!k)return!1;if(!r.current&&"changedTouches"in h&&(x||S)&&(r.current=E),!E)return!0;var R=r.current||E;return y1(R,v,h,R==="h"?x:S)},[]),u=g.useCallback(function(h){var v=h;if(!(!nn.length||nn[nn.length-1]!==i)){var y="deltaY"in v?au(v):Vr(v),b=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&b1(E.delta,y)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var x=(l.current.shards||[]).map(su).filter(Boolean).filter(function(E){return E.contains(v.target)}),S=x.length>0?c(v,x[0]):!l.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),s=g.useCallback(function(h,v,y,b){var x={name:h,delta:v,target:y,should:b,shadowParent:S1(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),a=g.useCallback(function(h){n.current=Vr(h),r.current=void 0},[]),d=g.useCallback(function(h){s(h.type,au(h),h.target,c(h,e.lockRef.current))},[]),f=g.useCallback(function(h){s(h.type,Vr(h),h.target,c(h,e.lockRef.current))},[]);g.useEffect(function(){return nn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,tn),document.addEventListener("touchmove",u,tn),document.addEventListener("touchstart",a,tn),function(){nn=nn.filter(function(h){return h!==i}),document.removeEventListener("wheel",u,tn),document.removeEventListener("touchmove",u,tn),document.removeEventListener("touchstart",a,tn)}},[]);var p=e.removeScrollBar,m=e.inert;return g.createElement(g.Fragment,null,m?g.createElement(i,{styles:w1(o)}):null,p?g.createElement(d1,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function S1(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const C1=Qy(Gf,E1);var fr=g.forwardRef(function(e,t){return g.createElement(di,tt({},e,{ref:t,sideCar:C1}))});fr.classNames=di.classNames;var _1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},rn=new WeakMap,$r=new WeakMap,Br={},Qi=0,qf=function(e){return e&&(e.host||qf(e.parentNode))},P1=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=qf(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},R1=function(e,t,n,r){var o=P1(t,Array.isArray(e)?e:[e]);Br[n]||(Br[n]=new WeakMap);var i=Br[n],l=[],c=new Set,u=new Set(o),s=function(d){!d||c.has(d)||(c.add(d),s(d.parentNode))};o.forEach(s);var a=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(f){if(c.has(f))a(f);else try{var p=f.getAttribute(r),m=p!==null&&p!=="false",h=(rn.get(f)||0)+1,v=(i.get(f)||0)+1;rn.set(f,h),i.set(f,v),l.push(f),h===1&&m&&$r.set(f,!0),v===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return a(t),c.clear(),Qi++,function(){l.forEach(function(d){var f=rn.get(d)-1,p=i.get(d)-1;rn.set(d,f),i.set(d,p),f||($r.has(d)||d.removeAttribute(r),$r.delete(d)),p||d.removeAttribute(n)}),Qi--,Qi||(rn=new WeakMap,rn=new WeakMap,$r=new WeakMap,Br={})}},fi=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=_1(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),R1(r,o,n,"aria-hidden")):function(){return null}},Zf="Dialog",[Qf]=xe(Zf),[Y2,lt]=Qf(Zf),Jf="DialogTrigger",O1=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(Jf,n),i=re(t,o.triggerRef);return w.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Os(o.open),...r,ref:i,onClick:N(e.onClick,o.onOpenToggle)})});O1.displayName=Jf;var T1="DialogPortal",[q2,ep]=Qf(T1,{forceMount:void 0}),$o="DialogOverlay",j1=g.forwardRef((e,t)=>{const n=ep($o,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=lt($o,e.__scopeDialog);return i.modal?w.jsx(Ve,{present:r||i.open,children:w.jsx(A1,{...o,ref:t})}):null});j1.displayName=$o;var M1=_t("DialogOverlay.RemoveScroll"),A1=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt($o,n);return w.jsx(fr,{as:M1,allowPinchZoom:!0,shards:[o.contentRef],children:w.jsx(z.div,{"data-state":Os(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Wt="DialogContent",k1=g.forwardRef((e,t)=>{const n=ep(Wt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=lt(Wt,e.__scopeDialog);return w.jsx(Ve,{present:r||i.open,children:i.modal?w.jsx(D1,{...o,ref:t}):w.jsx(L1,{...o,ref:t})})});k1.displayName=Wt;var D1=g.forwardRef((e,t)=>{const n=lt(Wt,e.__scopeDialog),r=g.useRef(null),o=re(t,n.contentRef,r);return g.useEffect(()=>{const i=r.current;if(i)return fi(i)},[]),w.jsx(tp,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:N(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:N(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&i.preventDefault()}),onFocusOutside:N(e.onFocusOutside,i=>i.preventDefault())})}),L1=g.forwardRef((e,t)=>{const n=lt(Wt,e.__scopeDialog),r=g.useRef(!1),o=g.useRef(!1);return w.jsx(tp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=i.target;(c=n.triggerRef.current)!=null&&c.contains(u)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),tp=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,c=lt(Wt,n),u=g.useRef(null),s=re(t,u);return ci(),w.jsxs(w.Fragment,{children:[w.jsx(dr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(Sn,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Os(c.open),...l,ref:s,onDismiss:()=>c.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(V1,{titleId:c.titleId}),w.jsx(B1,{contentRef:u,descriptionId:c.descriptionId})]})]})}),Rs="DialogTitle",I1=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(Rs,n);return w.jsx(z.h2,{id:o.titleId,...r,ref:t})});I1.displayName=Rs;var np="DialogDescription",N1=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(np,n);return w.jsx(z.p,{id:o.descriptionId,...r,ref:t})});N1.displayName=np;var rp="DialogClose",F1=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(rp,n);return w.jsx(z.button,{type:"button",...r,ref:t,onClick:N(e.onClick,()=>o.onOpenChange(!1))})});F1.displayName=rp;function Os(e){return e?"open":"closed"}var op="DialogTitleWarning",[Z2,ip]=Z0(op,{contentName:Wt,titleName:Rs,docsSlug:"dialog"}),V1=({titleId:e})=>{const t=ip(op),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
72
72
 
73
73
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
74
74
 
75
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},T1="DialogDescriptionWarning",j1=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${np(T1).contentName}}.`;return g.useEffect(()=>{var r;const o=(r=e.current)==null?void 0:r.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Yi={exports:{}},qi={};/**
75
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},$1="DialogDescriptionWarning",B1=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ip($1).contentName}}.`;return g.useEffect(()=>{var r;const o=(r=e.current)==null?void 0:r.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Ji={exports:{}},ea={};/**
76
76
  * @license React
77
77
  * use-sync-external-store-shim.production.js
78
78
  *
@@ -80,7 +80,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
80
80
  *
81
81
  * This source code is licensed under the MIT license found in the
82
82
  * LICENSE file in the root directory of this source tree.
83
- */var su;function M1(){if(su)return qi;su=1;var e=R;function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function c(d,f){var p=f(),m=r({inst:{value:p,getSnapshot:f}}),h=m[0].inst,v=m[1];return i(function(){h.value=p,h.getSnapshot=f,u(h)&&v({inst:h})},[d,p,f]),o(function(){return u(h)&&v({inst:h}),d(function(){u(h)&&v({inst:h})})},[d]),l(p),p}function u(d){var f=d.getSnapshot;d=d.value;try{var p=f();return!n(d,p)}catch{return!0}}function a(d,f){return f()}var s=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a:c;return qi.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:s,qi}var au={};/**
83
+ */var lu;function z1(){if(lu)return ea;lu=1;var e=_;function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function c(d,f){var p=f(),m=r({inst:{value:p,getSnapshot:f}}),h=m[0].inst,v=m[1];return i(function(){h.value=p,h.getSnapshot=f,u(h)&&v({inst:h})},[d,p,f]),o(function(){return u(h)&&v({inst:h}),d(function(){u(h)&&v({inst:h})})},[d]),l(p),p}function u(d){var f=d.getSnapshot;d=d.value;try{var p=f();return!n(d,p)}catch{return!0}}function s(d,f){return f()}var a=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:c;return ea.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:a,ea}var uu={};/**
84
84
  * @license React
85
85
  * use-sync-external-store-shim.development.js
86
86
  *
@@ -88,12 +88,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
88
88
  *
89
89
  * This source code is licensed under the MIT license found in the
90
90
  * LICENSE file in the root directory of this source tree.
91
- */var lu;function A1(){return lu||(lu=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}function t(p,m){s||o.startTransition===void 0||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=m();if(!d){var v=m();i(h,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}v=l({inst:{value:h,getSnapshot:m}});var y=v[0].inst,b=v[1];return u(function(){y.value=h,y.getSnapshot=m,n(y)&&b({inst:y})},[p,h,m]),c(function(){return n(y)&&b({inst:y}),p(function(){n(y)&&b({inst:y})})},[p]),a(h),h}function n(p){var m=p.getSnapshot;p=p.value;try{var h=m();return!i(p,h)}catch{return!0}}function r(p,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=R,i=typeof Object.is=="function"?Object.is:e,l=o.useState,c=o.useEffect,u=o.useLayoutEffect,a=o.useDebugValue,s=!1,d=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;au.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),au}var uu;function k1(){return uu||(uu=1,process.env.NODE_ENV==="production"?Yi.exports=M1():Yi.exports=A1()),Yi.exports}var D1=k1();function L1(){return D1.useSyncExternalStore(I1,()=>!0,()=>!1)}function I1(){return()=>{}}var _a="Avatar",[N1]=Se(_a),[F1,rp]=N1(_a),op=g.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,i]=g.useState("idle");return x.jsx(F1,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i,children:x.jsx(z.span,{...r,ref:t})})});op.displayName=_a;var ip="AvatarImage",sp=g.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...i}=e,l=rp(ip,n),c=V1(r,i),u=qe(a=>{o(a),l.onImageLoadingStatusChange(a)});return Ee(()=>{c!=="idle"&&u(c)},[c,u]),c==="loaded"?x.jsx(z.img,{...i,ref:t,src:r}):null});sp.displayName=ip;var ap="AvatarFallback",lp=g.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,i=rp(ap,n),[l,c]=g.useState(r===void 0);return g.useEffect(()=>{if(r!==void 0){const u=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(u)}},[r]),l&&i.imageLoadingStatus!=="loaded"?x.jsx(z.span,{...o,ref:t}):null});lp.displayName=ap;function cu(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function V1(e,{referrerPolicy:t,crossOrigin:n}){const r=L1(),o=g.useRef(null),i=r?(o.current||(o.current=new window.Image),o.current):null,[l,c]=g.useState(()=>cu(i,e));return Ee(()=>{c(cu(i,e))},[i,e]),Ee(()=>{const u=d=>()=>{c(d)};if(!i)return;const a=u("loaded"),s=u("error");return i.addEventListener("load",a),i.addEventListener("error",s),t&&(i.referrerPolicy=t),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",a),i.removeEventListener("error",s)}},[i,n,t]),l}var $1=op,B1=sp,z1=lp;function fr(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function pr(e){const[t,n]=g.useState(void 0);return Ee(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,c;if("borderBoxSize"in i){const u=i.borderBoxSize,a=Array.isArray(u)?u[0]:u;l=a.inlineSize,c=a.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var di="Checkbox",[H1]=Se(di),[U1,Pa]=H1(di);function W1(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:l,name:c,onCheckedChange:u,required:a,value:s="on",internal_do_not_use_render:d}=e,[f,p]=at({prop:n,defaultProp:o??!1,onChange:u,caller:di}),[m,h]=g.useState(null),[v,y]=g.useState(null),b=g.useRef(!1),w=m?!!l||!!m.closest("form"):!0,S={checked:f,disabled:i,setChecked:p,control:m,setControl:h,name:c,form:l,value:s,hasConsumerStoppedPropagationRef:b,required:a,defaultChecked:Ct(o)?!1:o,isFormControl:w,bubbleInput:v,setBubbleInput:y};return x.jsx(U1,{scope:t,...S,children:X1(d)?d(S):r})}var up="CheckboxTrigger",cp=g.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:l,disabled:c,checked:u,required:a,setControl:s,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:m}=Pa(up,e),h=re(o,s),v=g.useRef(u);return g.useEffect(()=>{const y=i==null?void 0:i.form;if(y){const b=()=>d(v.current);return y.addEventListener("reset",b),()=>y.removeEventListener("reset",b)}},[i,d]),x.jsx(z.button,{type:"button",role:"checkbox","aria-checked":Ct(u)?"mixed":u,"aria-required":a,"data-state":mp(u),"data-disabled":c?"":void 0,disabled:c,value:l,...r,ref:h,onKeyDown:N(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:N(n,y=>{d(b=>Ct(b)?!0:!b),m&&p&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});cp.displayName=up;var dp=g.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:l,disabled:c,value:u,onCheckedChange:a,form:s,...d}=e;return x.jsx(W1,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:c,required:l,onCheckedChange:a,name:r,form:s,value:u,internal_do_not_use_render:({isFormControl:f})=>x.jsxs(x.Fragment,{children:[x.jsx(cp,{...d,ref:t,__scopeCheckbox:n}),f&&x.jsx(hp,{__scopeCheckbox:n})]})})});dp.displayName=di;var fp="CheckboxIndicator",G1=g.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Pa(fp,n);return x.jsx(Fe,{present:r||Ct(i.checked)||i.checked===!0,children:x.jsx(z.span,{"data-state":mp(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});G1.displayName=fp;var pp="CheckboxBubbleInput",hp=g.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:l,required:c,disabled:u,name:a,value:s,form:d,bubbleInput:f,setBubbleInput:p}=Pa(pp,e),m=re(n,p),h=fr(i),v=pr(r);g.useEffect(()=>{const b=f;if(!b)return;const w=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(w,"checked").set,E=!o.current;if(h!==i&&S){const A=new Event("click",{bubbles:E});b.indeterminate=Ct(i),S.call(b,Ct(i)?!1:i),b.dispatchEvent(A)}},[f,h,i,o]);const y=g.useRef(Ct(i)?!1:i);return x.jsx(z.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??y.current,required:c,disabled:u,name:a,value:s,form:d,...t,tabIndex:-1,ref:m,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});hp.displayName=pp;function X1(e){return typeof e=="function"}function Ct(e){return e==="indeterminate"}function mp(e){return Ct(e)?"indeterminate":e?"checked":"unchecked"}const K1=["top","right","bottom","left"],Pt=Math.min,Ie=Math.max,$o=Math.round,Br=Math.floor,nt=e=>({x:e,y:e}),Y1={left:"right",right:"left",bottom:"top",top:"bottom"},q1={start:"end",end:"start"};function Ts(e,t,n){return Ie(e,Pt(t,n))}function pt(e,t){return typeof e=="function"?e(t):e}function ht(e){return e.split("-")[0]}function En(e){return e.split("-")[1]}function Ra(e){return e==="x"?"y":"x"}function Oa(e){return e==="y"?"height":"width"}const Z1=new Set(["top","bottom"]);function tt(e){return Z1.has(ht(e))?"y":"x"}function Ta(e){return Ra(tt(e))}function Q1(e,t,n){n===void 0&&(n=!1);const r=En(e),o=Ta(e),i=Oa(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Bo(l)),[l,Bo(l)]}function J1(e){const t=Bo(e);return[js(e),t,js(t)]}function js(e){return e.replace(/start|end/g,t=>q1[t])}const du=["left","right"],fu=["right","left"],eb=["top","bottom"],tb=["bottom","top"];function nb(e,t,n){switch(e){case"top":case"bottom":return n?t?fu:du:t?du:fu;case"left":case"right":return t?eb:tb;default:return[]}}function rb(e,t,n,r){const o=En(e);let i=nb(ht(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(js)))),i}function Bo(e){return e.replace(/left|right|bottom|top/g,t=>Y1[t])}function ob(e){return{top:0,right:0,bottom:0,left:0,...e}}function vp(e){return typeof e!="number"?ob(e):{top:e,right:e,bottom:e,left:e}}function zo(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function pu(e,t,n){let{reference:r,floating:o}=e;const i=tt(t),l=Ta(t),c=Oa(l),u=ht(t),a=i==="y",s=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[c]/2-o[c]/2;let p;switch(u){case"top":p={x:s,y:r.y-o.height};break;case"bottom":p={x:s,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(En(t)){case"start":p[l]-=f*(n&&a?-1:1);break;case"end":p[l]+=f*(n&&a?-1:1);break}return p}const ib=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,c=i.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(t));let a=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=pu(a,r,u),f=r,p={},m=0;for(let h=0;h<c.length;h++){const{name:v,fn:y}=c[h],{x:b,y:w,data:S,reset:E}=await y({x:s,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:a,platform:l,elements:{reference:e,floating:t}});s=b??s,d=w??d,p={...p,[v]:{...p[v],...S}},E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(a=E.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:s,y:d}=pu(a,f,u)),h=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:p}};async function Qn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:l,elements:c,strategy:u}=e,{boundary:a="clippingAncestors",rootBoundary:s="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=pt(t,e),m=vp(p),h=c[f?d==="floating"?"reference":"floating":d],v=zo(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(h)))==null||n?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:s,strategy:u})),y=d==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),w=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},S=zo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:b,strategy:u}):y);return{top:(v.top-S.top+m.top)/w.y,bottom:(S.bottom-v.bottom+m.bottom)/w.y,left:(v.left-S.left+m.left)/w.x,right:(S.right-v.right+m.right)/w.x}}const sb=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:c,middlewareData:u}=t,{element:a,padding:s=0}=pt(e,t)||{};if(a==null)return{};const d=vp(s),f={x:n,y:r},p=Ta(o),m=Oa(p),h=await l.getDimensions(a),v=p==="y",y=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",S=i.reference[m]+i.reference[p]-f[p]-i.floating[m],E=f[p]-i.reference[p],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(a));let j=A?A[w]:0;(!j||!await(l.isElement==null?void 0:l.isElement(A)))&&(j=c.floating[w]||i.floating[m]);const O=S/2-E/2,T=j/2-h[m]/2-1,_=Pt(d[y],T),k=Pt(d[b],T),P=_,$=j-h[m]-k,F=j/2-h[m]/2+O,U=Ts(P,F,$),B=!u.arrow&&En(o)!=null&&F!==U&&i.reference[m]/2-(F<P?_:k)-h[m]/2<0,X=B?F<P?F-P:F-$:0;return{[p]:f[p]+X,data:{[p]:U,centerOffset:F-U-X,...B&&{alignmentOffset:X}},reset:B}}}),ab=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:c,platform:u,elements:a}=t,{mainAxis:s=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=pt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=ht(o),b=tt(c),w=ht(c)===c,S=await(u.isRTL==null?void 0:u.isRTL(a.floating)),E=f||(w||!h?[Bo(c)]:J1(c)),A=m!=="none";!f&&A&&E.push(...rb(c,h,m,S));const j=[c,...E],O=await Qn(t,v),T=[];let _=((r=i.flip)==null?void 0:r.overflows)||[];if(s&&T.push(O[y]),d){const F=Q1(o,l,S);T.push(O[F[0]],O[F[1]])}if(_=[..._,{placement:o,overflows:T}],!T.every(F=>F<=0)){var k,P;const F=(((k=i.flip)==null?void 0:k.index)||0)+1,U=j[F];if(U&&(!(d==="alignment"&&b!==tt(U))||_.every(X=>tt(X.placement)===b?X.overflows[0]>0:!0)))return{data:{index:F,overflows:_},reset:{placement:U}};let B=(P=_.filter(X=>X.overflows[0]<=0).sort((X,W)=>X.overflows[1]-W.overflows[1])[0])==null?void 0:P.placement;if(!B)switch(p){case"bestFit":{var $;const X=($=_.filter(W=>{if(A){const L=tt(W.placement);return L===b||L==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(L=>L>0).reduce((L,M)=>L+M,0)]).sort((W,L)=>W[1]-L[1])[0])==null?void 0:$[0];X&&(B=X);break}case"initialPlacement":B=c;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function hu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function mu(e){return K1.some(t=>e[t]>=0)}const lb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=pt(e,t);switch(r){case"referenceHidden":{const i=await Qn(t,{...o,elementContext:"reference"}),l=hu(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:mu(l)}}}case"escaped":{const i=await Qn(t,{...o,altBoundary:!0}),l=hu(i,n.floating);return{data:{escapedOffsets:l,escaped:mu(l)}}}default:return{}}}}},gp=new Set(["left","top"]);async function ub(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=ht(n),c=En(n),u=tt(n)==="y",a=gp.has(l)?-1:1,s=i&&u?-1:1,d=pt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof m=="number"&&(p=c==="end"?m*-1:m),u?{x:p*s,y:f*a}:{x:f*a,y:p*s}}const cb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:c}=t,u=await ub(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}},db=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:v=>{let{x:y,y:b}=v;return{x:y,y:b}}},...u}=pt(e,t),a={x:n,y:r},s=await Qn(t,u),d=tt(ht(o)),f=Ra(d);let p=a[f],m=a[d];if(i){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",b=p+s[v],w=p-s[y];p=Ts(b,p,w)}if(l){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=m+s[v],w=m-s[y];m=Ts(b,m,w)}const h=c.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:l}}}}}},fb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:c=0,mainAxis:u=!0,crossAxis:a=!0}=pt(e,t),s={x:n,y:r},d=tt(o),f=Ra(d);let p=s[f],m=s[d];const h=pt(c,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const w=f==="y"?"height":"width",S=i.reference[f]-i.floating[w]+v.mainAxis,E=i.reference[f]+i.reference[w]-v.mainAxis;p<S?p=S:p>E&&(p=E)}if(a){var y,b;const w=f==="y"?"width":"height",S=gp.has(ht(o)),E=i.reference[d]-i.floating[w]+(S&&((y=l.offset)==null?void 0:y[d])||0)+(S?0:v.crossAxis),A=i.reference[d]+i.reference[w]+(S?0:((b=l.offset)==null?void 0:b[d])||0)-(S?v.crossAxis:0);m<E?m=E:m>A&&(m=A)}return{[f]:p,[d]:m}}}},pb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:l,elements:c}=t,{apply:u=()=>{},...a}=pt(e,t),s=await Qn(t,a),d=ht(o),f=En(o),p=tt(o)==="y",{width:m,height:h}=i.floating;let v,y;d==="top"||d==="bottom"?(v=d,y=f===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(y=d,v=f==="end"?"top":"bottom");const b=h-s.top-s.bottom,w=m-s.left-s.right,S=Pt(h-s[v],b),E=Pt(m-s[y],w),A=!t.middlewareData.shift;let j=S,O=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=b),A&&!f){const _=Ie(s.left,0),k=Ie(s.right,0),P=Ie(s.top,0),$=Ie(s.bottom,0);p?O=m-2*(_!==0||k!==0?_+k:Ie(s.left,s.right)):j=h-2*(P!==0||$!==0?P+$:Ie(s.top,s.bottom))}await u({...t,availableWidth:O,availableHeight:j});const T=await l.getDimensions(c.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function fi(){return typeof window<"u"}function Sn(e){return yp(e)?(e.nodeName||"").toLowerCase():"#document"}function Ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(yp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yp(e){return fi()?e instanceof Node||e instanceof Ne(e).Node:!1}function Ze(e){return fi()?e instanceof Element||e instanceof Ne(e).Element:!1}function it(e){return fi()?e instanceof HTMLElement||e instanceof Ne(e).HTMLElement:!1}function vu(e){return!fi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ne(e).ShadowRoot}const hb=new Set(["inline","contents"]);function hr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!hb.has(o)}const mb=new Set(["table","td","th"]);function vb(e){return mb.has(Sn(e))}const gb=[":popover-open",":modal"];function pi(e){return gb.some(t=>{try{return e.matches(t)}catch{return!1}})}const yb=["transform","translate","scale","rotate","perspective"],bb=["transform","translate","scale","rotate","perspective","filter"],wb=["paint","layout","strict","content"];function ja(e){const t=Ma(),n=Ze(e)?Qe(e):e;return yb.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||bb.some(r=>(n.willChange||"").includes(r))||wb.some(r=>(n.contain||"").includes(r))}function xb(e){let t=Rt(e);for(;it(t)&&!mn(t);){if(ja(t))return t;if(pi(t))return null;t=Rt(t)}return null}function Ma(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Eb=new Set(["html","body","#document"]);function mn(e){return Eb.has(Sn(e))}function Qe(e){return Ne(e).getComputedStyle(e)}function hi(e){return Ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rt(e){if(Sn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vu(e)&&e.host||ut(e);return vu(t)?t.host:t}function bp(e){const t=Rt(e);return mn(t)?e.ownerDocument?e.ownerDocument.body:e.body:it(t)&&hr(t)?t:bp(t)}function Jn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=bp(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=Ne(o);if(i){const c=Ms(l);return t.concat(l,l.visualViewport||[],hr(o)?o:[],c&&n?Jn(c):[])}return t.concat(o,Jn(o,[],n))}function Ms(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wp(e){const t=Qe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=it(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,c=$o(n)!==i||$o(r)!==l;return c&&(n=i,r=l),{width:n,height:r,$:c}}function Aa(e){return Ze(e)?e:e.contextElement}function fn(e){const t=Aa(e);if(!it(t))return nt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=wp(t);let l=(i?$o(n.width):n.width)/r,c=(i?$o(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const Sb=nt(0);function xp(e){const t=Ne(e);return!Ma()||!t.visualViewport?Sb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ne(e)?!1:t}function Wt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Aa(e);let l=nt(1);t&&(r?Ze(r)&&(l=fn(r)):l=fn(e));const c=Cb(i,n,r)?xp(i):nt(0);let u=(o.left+c.x)/l.x,a=(o.top+c.y)/l.y,s=o.width/l.x,d=o.height/l.y;if(i){const f=Ne(i),p=r&&Ze(r)?Ne(r):r;let m=f,h=Ms(m);for(;h&&r&&p!==m;){const v=fn(h),y=h.getBoundingClientRect(),b=Qe(h),w=y.left+(h.clientLeft+parseFloat(b.paddingLeft))*v.x,S=y.top+(h.clientTop+parseFloat(b.paddingTop))*v.y;u*=v.x,a*=v.y,s*=v.x,d*=v.y,u+=w,a+=S,m=Ne(h),h=Ms(m)}}return zo({width:s,height:d,x:u,y:a})}function mi(e,t){const n=hi(e).scrollLeft;return t?t.left+n:Wt(ut(e)).left+n}function Ep(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-mi(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function _b(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=ut(r),c=t?pi(t.floating):!1;if(r===l||c&&i)return n;let u={scrollLeft:0,scrollTop:0},a=nt(1);const s=nt(0),d=it(r);if((d||!d&&!i)&&((Sn(r)!=="body"||hr(l))&&(u=hi(r)),it(r))){const p=Wt(r);a=fn(r),s.x=p.x+r.clientLeft,s.y=p.y+r.clientTop}const f=l&&!d&&!i?Ep(l,u):nt(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-u.scrollLeft*a.x+s.x+f.x,y:n.y*a.y-u.scrollTop*a.y+s.y+f.y}}function Pb(e){return Array.from(e.getClientRects())}function Rb(e){const t=ut(e),n=hi(e),r=e.ownerDocument.body,o=Ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+mi(e);const c=-n.scrollTop;return Qe(r).direction==="rtl"&&(l+=Ie(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:c}}const gu=25;function Ob(e,t){const n=Ne(e),r=ut(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,c=0,u=0;if(o){i=o.width,l=o.height;const s=Ma();(!s||s&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const a=mi(r);if(a<=0){const s=r.ownerDocument,d=s.body,f=getComputedStyle(d),p=s.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(r.clientWidth-d.clientWidth-p);m<=gu&&(i-=m)}else a<=gu&&(i+=a);return{width:i,height:l,x:c,y:u}}const Tb=new Set(["absolute","fixed"]);function jb(e,t){const n=Wt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=it(e)?fn(e):nt(1),l=e.clientWidth*i.x,c=e.clientHeight*i.y,u=o*i.x,a=r*i.y;return{width:l,height:c,x:u,y:a}}function yu(e,t,n){let r;if(t==="viewport")r=Ob(e,n);else if(t==="document")r=Rb(ut(e));else if(Ze(t))r=jb(t,n);else{const o=xp(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return zo(r)}function Sp(e,t){const n=Rt(e);return n===t||!Ze(n)||mn(n)?!1:Qe(n).position==="fixed"||Sp(n,t)}function Mb(e,t){const n=t.get(e);if(n)return n;let r=Jn(e,[],!1).filter(c=>Ze(c)&&Sn(c)!=="body"),o=null;const i=Qe(e).position==="fixed";let l=i?Rt(e):e;for(;Ze(l)&&!mn(l);){const c=Qe(l),u=ja(l);!u&&c.position==="fixed"&&(o=null),(i?!u&&!o:!u&&c.position==="static"&&o&&Tb.has(o.position)||hr(l)&&!u&&Sp(e,l))?r=r.filter(a=>a!==l):o=c,l=Rt(l)}return t.set(e,r),r}function Ab(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?pi(t)?[]:Mb(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((u,a)=>{const s=yu(t,a,o);return u.top=Ie(s.top,u.top),u.right=Pt(s.right,u.right),u.bottom=Pt(s.bottom,u.bottom),u.left=Ie(s.left,u.left),u},yu(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function kb(e){const{width:t,height:n}=wp(e);return{width:t,height:n}}function Db(e,t,n){const r=it(t),o=ut(t),i=n==="fixed",l=Wt(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const u=nt(0);function a(){u.x=mi(o)}if(r||!r&&!i)if((Sn(t)!=="body"||hr(o))&&(c=hi(t)),r){const p=Wt(t,!0,i,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else o&&a();i&&!r&&o&&a();const s=o&&!r&&!i?Ep(o,c):nt(0),d=l.left+c.scrollLeft-u.x-s.x,f=l.top+c.scrollTop-u.y-s.y;return{x:d,y:f,width:l.width,height:l.height}}function Zi(e){return Qe(e).position==="static"}function bu(e,t){if(!it(e)||Qe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function Cp(e,t){const n=Ne(e);if(pi(e))return n;if(!it(e)){let o=Rt(e);for(;o&&!mn(o);){if(Ze(o)&&!Zi(o))return o;o=Rt(o)}return n}let r=bu(e,t);for(;r&&vb(r)&&Zi(r);)r=bu(r,t);return r&&mn(r)&&Zi(r)&&!ja(r)?n:r||xb(e)||n}const Lb=async function(e){const t=this.getOffsetParent||Cp,n=this.getDimensions,r=await n(e.floating);return{reference:Db(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ib(e){return Qe(e).direction==="rtl"}const Nb={convertOffsetParentRelativeRectToViewportRelativeRect:_b,getDocumentElement:ut,getClippingRect:Ab,getOffsetParent:Cp,getElementRects:Lb,getClientRects:Pb,getDimensions:kb,getScale:fn,isElement:Ze,isRTL:Ib};function _p(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Fb(e,t){let n=null,r;const o=ut(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),i();const a=e.getBoundingClientRect(),{left:s,top:d,width:f,height:p}=a;if(c||t(),!f||!p)return;const m=Br(d),h=Br(o.clientWidth-(s+f)),v=Br(o.clientHeight-(d+p)),y=Br(s),b={rootMargin:-m+"px "+-h+"px "+-v+"px "+-y+"px",threshold:Ie(0,Pt(1,u))||1};let w=!0;function S(E){const A=E[0].intersectionRatio;if(A!==u){if(!w)return l();A?l(!1,A):r=setTimeout(()=>{l(!1,1e-7)},1e3)}A===1&&!_p(a,e.getBoundingClientRect())&&l(),w=!1}try{n=new IntersectionObserver(S,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return l(!0),i}function Vb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,a=Aa(e),s=o||i?[...a?Jn(a):[],...Jn(t)]:[];s.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=a&&c?Fb(a,n):null;let f=-1,p=null;l&&(p=new ResizeObserver(y=>{let[b]=y;b&&b.target===a&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),a&&!u&&p.observe(a),p.observe(t));let m,h=u?Wt(e):null;u&&v();function v(){const y=Wt(e);h&&!_p(h,y)&&n(),h=y,m=requestAnimationFrame(v)}return n(),()=>{var y;s.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(y=p)==null||y.disconnect(),p=null,u&&cancelAnimationFrame(m)}}const $b=cb,Bb=db,zb=ab,Hb=pb,Ub=lb,wu=sb,Wb=fb,Gb=(e,t,n)=>{const r=new Map,o={platform:Nb,...n},i={...o.platform,_c:r};return ib(e,t,{...o,platform:i})};var Xb=typeof document<"u",Kb=function(){},Ao=Xb?R.useLayoutEffect:Kb;function Ho(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ho(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ho(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Pp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xu(e,t){const n=Pp(e);return Math.round(t*n)/n}function Qi(e){const t=g.useRef(e);return Ao(()=>{t.current=e}),t}function Yb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:c=!0,whileElementsMounted:u,open:a}=e,[s,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=g.useState(r);Ho(f,r)||p(r);const[m,h]=g.useState(null),[v,y]=g.useState(null),b=g.useCallback(W=>{W!==A.current&&(A.current=W,h(W))},[]),w=g.useCallback(W=>{W!==j.current&&(j.current=W,y(W))},[]),S=i||m,E=l||v,A=g.useRef(null),j=g.useRef(null),O=g.useRef(s),T=u!=null,_=Qi(u),k=Qi(o),P=Qi(a),$=g.useCallback(()=>{if(!A.current||!j.current)return;const W={placement:t,strategy:n,middleware:f};k.current&&(W.platform=k.current),Gb(A.current,j.current,W).then(L=>{const M={...L,isPositioned:P.current!==!1};F.current&&!Ho(O.current,M)&&(O.current=M,ri.flushSync(()=>{d(M)}))})},[f,t,n,k,P]);Ao(()=>{a===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(W=>({...W,isPositioned:!1})))},[a]);const F=g.useRef(!1);Ao(()=>(F.current=!0,()=>{F.current=!1}),[]),Ao(()=>{if(S&&(A.current=S),E&&(j.current=E),S&&E){if(_.current)return _.current(S,E,$);$()}},[S,E,$,_,T]);const U=g.useMemo(()=>({reference:A,floating:j,setReference:b,setFloating:w}),[b,w]),B=g.useMemo(()=>({reference:S,floating:E}),[S,E]),X=g.useMemo(()=>{const W={position:n,left:0,top:0};if(!B.floating)return W;const L=xu(B.floating,s.x),M=xu(B.floating,s.y);return c?{...W,transform:"translate("+L+"px, "+M+"px)",...Pp(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:M}},[n,c,B.floating,s.x,s.y]);return g.useMemo(()=>({...s,update:$,refs:U,elements:B,floatingStyles:X}),[s,$,U,B,X])}const qb=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?wu({element:r.current,padding:o}).fn(n):{}:r?wu({element:r,padding:o}).fn(n):{}}}},Zb=(e,t)=>({...$b(e),options:[e,t]}),Qb=(e,t)=>({...Bb(e),options:[e,t]}),Jb=(e,t)=>({...Wb(e),options:[e,t]}),ew=(e,t)=>({...zb(e),options:[e,t]}),tw=(e,t)=>({...Hb(e),options:[e,t]}),nw=(e,t)=>({...Ub(e),options:[e,t]}),rw=(e,t)=>({...qb(e),options:[e,t]});var ow="Arrow",Rp=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return x.jsx(z.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});Rp.displayName=ow;var iw=Rp,ka="Popper",[Op,jt]=Se(ka),[sw,Tp]=Op(ka),jp=e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null);return x.jsx(sw,{scope:t,anchor:r,onAnchorChange:o,children:n})};jp.displayName=ka;var Mp="PopperAnchor",Ap=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Tp(Mp,n),l=g.useRef(null),c=re(t,l),u=g.useRef(null);return g.useEffect(()=>{const a=u.current;u.current=(r==null?void 0:r.current)||l.current,a!==u.current&&i.onAnchorChange(u.current)}),r?null:x.jsx(z.div,{...o,ref:c})});Ap.displayName=Mp;var Da="PopperContent",[aw,lw]=Op(Da),kp=g.forwardRef((e,t)=>{var n,r,o,i,l,c;const{__scopePopper:u,side:a="bottom",sideOffset:s=0,align:d="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:h=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:S,...E}=e,A=Tp(Da,u),[j,O]=g.useState(null),T=re(t,de=>O(de)),[_,k]=g.useState(null),P=pr(_),$=(P==null?void 0:P.width)??0,F=(P==null?void 0:P.height)??0,U=a+(d!=="center"?"-"+d:""),B=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},X=Array.isArray(h)?h:[h],W=X.length>0,L={padding:B,boundary:X.filter(cw),altBoundary:W},{refs:M,floatingStyles:D,placement:ee,isPositioned:J,middlewareData:K}=Yb({strategy:"fixed",placement:U,whileElementsMounted:(...de)=>Vb(...de,{animationFrame:w==="always"}),elements:{reference:A.anchor},middleware:[Zb({mainAxis:s+F,alignmentAxis:f}),m&&Qb({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?Jb():void 0,...L}),m&&ew({...L}),tw({...L,apply:({elements:de,rects:ke,availableWidth:$e,availableHeight:Dt})=>{const{width:Ar,height:kr}=ke.reference,Lt=de.floating.style;Lt.setProperty("--radix-popper-available-width",`${$e}px`),Lt.setProperty("--radix-popper-available-height",`${Dt}px`),Lt.setProperty("--radix-popper-anchor-width",`${Ar}px`),Lt.setProperty("--radix-popper-anchor-height",`${kr}px`)}}),_&&rw({element:_,padding:p}),dw({arrowWidth:$,arrowHeight:F}),b&&nw({strategy:"referenceHidden",...L})]}),[ne,te]=Ip(ee),V=qe(S);Ee(()=>{J&&(V==null||V())},[J,V]);const q=(n=K.arrow)==null?void 0:n.x,Y=(r=K.arrow)==null?void 0:r.y,H=((o=K.arrow)==null?void 0:o.centerOffset)!==0,[oe,I]=g.useState();return Ee(()=>{j&&I(window.getComputedStyle(j).zIndex)},[j]),x.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:J?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(i=K.transformOrigin)==null?void 0:i.x,(l=K.transformOrigin)==null?void 0:l.y].join(" "),...((c=K.hide)==null?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(aw,{scope:u,placedSide:ne,onArrowChange:k,arrowX:q,arrowY:Y,shouldHideArrow:H,children:x.jsx(z.div,{"data-side":ne,"data-align":te,...E,ref:T,style:{...E.style,animation:J?void 0:"none"}})})})});kp.displayName=Da;var Dp="PopperArrow",uw={top:"bottom",right:"left",bottom:"top",left:"right"},Lp=g.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=lw(Dp,n),i=uw[o.placedSide];return x.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:x.jsx(iw,{...r,ref:t,style:{...r.style,display:"block"}})})});Lp.displayName=Dp;function cw(e){return e!==null}var dw=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:i,rects:l,middlewareData:c}=t,u=((n=c.arrow)==null?void 0:n.centerOffset)!==0,a=u?0:e.arrowWidth,s=u?0:e.arrowHeight,[d,f]=Ip(i),p={start:"0%",center:"50%",end:"100%"}[f],m=(((r=c.arrow)==null?void 0:r.x)??0)+a/2,h=(((o=c.arrow)==null?void 0:o.y)??0)+s/2;let v="",y="";return d==="bottom"?(v=u?p:`${m}px`,y=`${-s}px`):d==="top"?(v=u?p:`${m}px`,y=`${l.floating.height+s}px`):d==="right"?(v=`${-s}px`,y=u?p:`${h}px`):d==="left"&&(v=`${l.floating.width+s}px`,y=u?p:`${h}px`),{data:{x:v,y}}}});function Ip(e){const[t,n="center"]=e.split("-");return[t,n]}var fw=jp,mr=Ap,vi=kp,gi=Lp,Ji="rovingFocusGroup.onEntryFocus",pw={bubbles:!1,cancelable:!0},vr="RovingFocusGroup",[As,Np,hw]=ur(vr),[mw,Cn]=Se(vr,[hw]),[vw,gw]=mw(vr),Fp=g.forwardRef((e,t)=>x.jsx(As.Provider,{scope:e.__scopeRovingFocusGroup,children:x.jsx(As.Slot,{scope:e.__scopeRovingFocusGroup,children:x.jsx(yw,{...e,ref:t})})}));Fp.displayName=vr;var yw=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:a,preventScrollOnEntryFocus:s=!1,...d}=e,f=g.useRef(null),p=re(t,f),m=wn(i),[h,v]=at({prop:l,defaultProp:c??null,onChange:u,caller:vr}),[y,b]=g.useState(!1),w=qe(a),S=Np(n),E=g.useRef(!1),[A,j]=g.useState(0);return g.useEffect(()=>{const O=f.current;if(O)return O.addEventListener(Ji,w),()=>O.removeEventListener(Ji,w)},[w]),x.jsx(vw,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:h,onItemFocus:g.useCallback(O=>v(O),[v]),onItemShiftTab:g.useCallback(()=>b(!0),[]),onFocusableItemAdd:g.useCallback(()=>j(O=>O+1),[]),onFocusableItemRemove:g.useCallback(()=>j(O=>O-1),[]),children:x.jsx(z.div,{tabIndex:y||A===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:N(e.onMouseDown,()=>{E.current=!0}),onFocus:N(e.onFocus,O=>{const T=!E.current;if(O.target===O.currentTarget&&T&&!y){const _=new CustomEvent(Ji,pw);if(O.currentTarget.dispatchEvent(_),!_.defaultPrevented){const k=S().filter(U=>U.focusable),P=k.find(U=>U.active),$=k.find(U=>U.id===h),F=[P,$,...k].filter(Boolean).map(U=>U.ref.current);Bp(F,s)}}E.current=!1}),onBlur:N(e.onBlur,()=>b(!1))})})}),Vp="RovingFocusGroupItem",$p=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:l,...c}=e,u=Ye(),a=i||u,s=gw(Vp,n),d=s.currentTabStopId===a,f=Np(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=s;return g.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),x.jsx(As.ItemSlot,{scope:n,id:a,focusable:r,active:o,children:x.jsx(z.span,{tabIndex:d?0:-1,"data-orientation":s.orientation,...c,ref:t,onMouseDown:N(e.onMouseDown,v=>{r?s.onItemFocus(a):v.preventDefault()}),onFocus:N(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:N(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){s.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=xw(v,s.orientation,s.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let b=f().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(v.currentTarget);b=s.loop?Ew(b,w+1):b.slice(w+1)}setTimeout(()=>Bp(b))}}),children:typeof l=="function"?l({isCurrentTabStop:d,hasTabStop:h!=null}):l})})});$p.displayName=Vp;var bw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ww(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xw(e,t,n){const r=ww(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return bw[r]}function Bp(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Ew(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var La=Fp,Ia=$p,ks=["Enter"," "],Sw=["ArrowDown","PageUp","Home"],zp=["ArrowUp","PageDown","End"],Cw=[...Sw,...zp],_w={ltr:[...ks,"ArrowRight"],rtl:[...ks,"ArrowLeft"]},Pw={ltr:["ArrowLeft"],rtl:["ArrowRight"]},gr="Menu",[er,Rw,Ow]=ur(gr),[Kt,Hp]=Se(gr,[Ow,jt,Cn]),yi=jt(),Up=Cn(),[Tw,Yt]=Kt(gr),[jw,yr]=Kt(gr),Wp=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:l=!0}=e,c=yi(t),[u,a]=g.useState(null),s=g.useRef(!1),d=qe(i),f=wn(o);return g.useEffect(()=>{const p=()=>{s.current=!0,document.addEventListener("pointerdown",m,{capture:!0,once:!0}),document.addEventListener("pointermove",m,{capture:!0,once:!0})},m=()=>s.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),x.jsx(fw,{...c,children:x.jsx(Tw,{scope:t,open:n,onOpenChange:d,content:u,onContentChange:a,children:x.jsx(jw,{scope:t,onClose:g.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:s,dir:f,modal:l,children:r})})})};Wp.displayName=gr;var Mw="MenuAnchor",Na=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=yi(n);return x.jsx(mr,{...o,...r,ref:t})});Na.displayName=Mw;var Fa="MenuPortal",[Aw,Gp]=Kt(Fa,{forceMount:void 0}),Xp=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=Yt(Fa,t);return x.jsx(Aw,{scope:t,forceMount:n,children:x.jsx(Fe,{present:n||i.open,children:x.jsx(bf,{asChild:!0,container:o,children:r})})})};Xp.displayName=Fa;var He="MenuContent",[kw,Va]=Kt(He),Kp=g.forwardRef((e,t)=>{const n=Gp(He,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Yt(He,e.__scopeMenu),l=yr(He,e.__scopeMenu);return x.jsx(er.Provider,{scope:e.__scopeMenu,children:x.jsx(Fe,{present:r||i.open,children:x.jsx(er.Slot,{scope:e.__scopeMenu,children:l.modal?x.jsx(Dw,{...o,ref:t}):x.jsx(Lw,{...o,ref:t})})})})}),Dw=g.forwardRef((e,t)=>{const n=Yt(He,e.__scopeMenu),r=g.useRef(null),o=re(t,r);return g.useEffect(()=>{const i=r.current;if(i)return ci(i)},[]),x.jsx($a,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:N(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Lw=g.forwardRef((e,t)=>{const n=Yt(He,e.__scopeMenu);return x.jsx($a,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Iw=_t("MenuContent.ScrollLock"),$a=g.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,v=Yt(He,n),y=yr(He,n),b=yi(n),w=Up(n),S=Rw(n),[E,A]=g.useState(null),j=g.useRef(null),O=re(t,j,v.onContentChange),T=g.useRef(0),_=g.useRef(""),k=g.useRef(0),P=g.useRef(null),$=g.useRef("right"),F=g.useRef(0),U=m?dr:g.Fragment,B=m?{as:Iw,allowPinchZoom:!0}:void 0,X=L=>{var M,D;const ee=_.current+L,J=S().filter(Y=>!Y.disabled),K=document.activeElement,ne=(M=J.find(Y=>Y.ref.current===K))==null?void 0:M.textValue,te=J.map(Y=>Y.textValue),V=Kw(te,ee,ne),q=(D=J.find(Y=>Y.textValue===V))==null?void 0:D.ref.current;(function Y(H){_.current=H,window.clearTimeout(T.current),H!==""&&(T.current=window.setTimeout(()=>Y(""),1e3))})(ee),q&&setTimeout(()=>q.focus())};g.useEffect(()=>()=>window.clearTimeout(T.current),[]),li();const W=g.useCallback(L=>{var M,D;return $.current===((M=P.current)==null?void 0:M.side)&&qw(L,(D=P.current)==null?void 0:D.area)},[]);return x.jsx(kw,{scope:n,searchRef:_,onItemEnter:g.useCallback(L=>{W(L)&&L.preventDefault()},[W]),onItemLeave:g.useCallback(L=>{var M;W(L)||((M=j.current)==null||M.focus(),A(null))},[W]),onTriggerLeave:g.useCallback(L=>{W(L)&&L.preventDefault()},[W]),pointerGraceTimerRef:k,onPointerGraceIntentChange:g.useCallback(L=>{P.current=L},[]),children:x.jsx(U,{...B,children:x.jsx(cr,{asChild:!0,trapped:o,onMountAutoFocus:N(i,L=>{var M;L.preventDefault(),(M=j.current)==null||M.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:x.jsx(xn,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:x.jsx(La,{asChild:!0,...w,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:A,onEntryFocus:N(u,L=>{y.isUsingKeyboardRef.current||L.preventDefault()}),preventScrollOnEntryFocus:!0,children:x.jsx(vi,{role:"menu","aria-orientation":"vertical","data-state":ch(v.open),"data-radix-menu-content":"",dir:y.dir,...b,...h,ref:O,style:{outline:"none",...h.style},onKeyDown:N(h.onKeyDown,L=>{const M=L.target.closest("[data-radix-menu-content]")===L.currentTarget,D=L.ctrlKey||L.altKey||L.metaKey,ee=L.key.length===1;M&&(L.key==="Tab"&&L.preventDefault(),!D&&ee&&X(L.key));const J=j.current;if(L.target!==J||!Cw.includes(L.key))return;L.preventDefault();const K=S().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);zp.includes(L.key)&&K.reverse(),Gw(K)}),onBlur:N(e.onBlur,L=>{L.currentTarget.contains(L.target)||(window.clearTimeout(T.current),_.current="")}),onPointerMove:N(e.onPointerMove,tr(L=>{const M=L.target,D=F.current!==L.clientX;if(L.currentTarget.contains(M)&&D){const ee=L.clientX>F.current?"right":"left";$.current=ee,F.current=L.clientX}}))})})})})})})});Kp.displayName=He;var Nw="MenuGroup",Ba=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return x.jsx(z.div,{role:"group",...r,ref:t})});Ba.displayName=Nw;var Fw="MenuLabel",Yp=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return x.jsx(z.div,{...r,ref:t})});Yp.displayName=Fw;var Uo="MenuItem",Eu="menu.itemSelect",bi=g.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=g.useRef(null),l=yr(Uo,e.__scopeMenu),c=Va(Uo,e.__scopeMenu),u=re(t,i),a=g.useRef(!1),s=()=>{const d=i.current;if(!n&&d){const f=new CustomEvent(Eu,{bubbles:!0,cancelable:!0});d.addEventListener(Eu,p=>r==null?void 0:r(p),{once:!0}),yf(d,f),f.defaultPrevented?a.current=!1:l.onClose()}};return x.jsx(qp,{...o,ref:u,disabled:n,onClick:N(e.onClick,s),onPointerDown:d=>{var f;(f=e.onPointerDown)==null||f.call(e,d),a.current=!0},onPointerUp:N(e.onPointerUp,d=>{var f;a.current||(f=d.currentTarget)==null||f.click()}),onKeyDown:N(e.onKeyDown,d=>{const f=c.searchRef.current!=="";n||f&&d.key===" "||ks.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});bi.displayName=Uo;var qp=g.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,l=Va(Uo,n),c=Up(n),u=g.useRef(null),a=re(t,u),[s,d]=g.useState(!1),[f,p]=g.useState("");return g.useEffect(()=>{const m=u.current;m&&p((m.textContent??"").trim())},[i.children]),x.jsx(er.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:x.jsx(Ia,{asChild:!0,...c,focusable:!r,children:x.jsx(z.div,{role:"menuitem","data-highlighted":s?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:a,onPointerMove:N(e.onPointerMove,tr(m=>{r?l.onItemLeave(m):(l.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:N(e.onPointerLeave,tr(m=>l.onItemLeave(m))),onFocus:N(e.onFocus,()=>d(!0)),onBlur:N(e.onBlur,()=>d(!1))})})})}),Vw="MenuCheckboxItem",Zp=g.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return x.jsx(nh,{scope:e.__scopeMenu,checked:n,children:x.jsx(bi,{role:"menuitemcheckbox","aria-checked":Wo(n)?"mixed":n,...o,ref:t,"data-state":Ha(n),onSelect:N(o.onSelect,()=>r==null?void 0:r(Wo(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Zp.displayName=Vw;var Qp="MenuRadioGroup",[$w,Bw]=Kt(Qp,{value:void 0,onValueChange:()=>{}}),Jp=g.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=qe(r);return x.jsx($w,{scope:e.__scopeMenu,value:n,onValueChange:i,children:x.jsx(Ba,{...o,ref:t})})});Jp.displayName=Qp;var eh="MenuRadioItem",th=g.forwardRef((e,t)=>{const{value:n,...r}=e,o=Bw(eh,e.__scopeMenu),i=n===o.value;return x.jsx(nh,{scope:e.__scopeMenu,checked:i,children:x.jsx(bi,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Ha(i),onSelect:N(r.onSelect,()=>{var l;return(l=o.onValueChange)==null?void 0:l.call(o,n)},{checkForDefaultPrevented:!1})})})});th.displayName=eh;var za="MenuItemIndicator",[nh,zw]=Kt(za,{checked:!1}),rh=g.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=zw(za,n);return x.jsx(Fe,{present:r||Wo(i.checked)||i.checked===!0,children:x.jsx(z.span,{...o,ref:t,"data-state":Ha(i.checked)})})});rh.displayName=za;var Hw="MenuSeparator",oh=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return x.jsx(z.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});oh.displayName=Hw;var Uw="MenuArrow",ih=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=yi(n);return x.jsx(gi,{...o,...r,ref:t})});ih.displayName=Uw;var Ww="MenuSub",[I2,sh]=Kt(Ww),Wn="MenuSubTrigger",ah=g.forwardRef((e,t)=>{const n=Yt(Wn,e.__scopeMenu),r=yr(Wn,e.__scopeMenu),o=sh(Wn,e.__scopeMenu),i=Va(Wn,e.__scopeMenu),l=g.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=i,a={__scopeMenu:e.__scopeMenu},s=g.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return g.useEffect(()=>s,[s]),g.useEffect(()=>{const d=c.current;return()=>{window.clearTimeout(d),u(null)}},[c,u]),x.jsx(Na,{asChild:!0,...a,children:x.jsx(qp,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":ch(n.open),...e,ref:oi(t,o.onTriggerChange),onClick:d=>{var f;(f=e.onClick)==null||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:N(e.onPointerMove,tr(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(i.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),s()},100))})),onPointerLeave:N(e.onPointerLeave,tr(d=>{var f,p;s();const m=(f=n.content)==null?void 0:f.getBoundingClientRect();if(m){const h=(p=n.content)==null?void 0:p.dataset.side,v=h==="right",y=v?-5:5,b=m[v?"left":"right"],w=m[v?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:b,y:m.top},{x:w,y:m.top},{x:w,y:m.bottom},{x:b,y:m.bottom}],side:h}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:N(e.onKeyDown,d=>{var f;const p=i.searchRef.current!=="";e.disabled||p&&d.key===" "||_w[r.dir].includes(d.key)&&(n.onOpenChange(!0),(f=n.content)==null||f.focus(),d.preventDefault())})})})});ah.displayName=Wn;var lh="MenuSubContent",uh=g.forwardRef((e,t)=>{const n=Gp(He,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Yt(He,e.__scopeMenu),l=yr(He,e.__scopeMenu),c=sh(lh,e.__scopeMenu),u=g.useRef(null),a=re(t,u);return x.jsx(er.Provider,{scope:e.__scopeMenu,children:x.jsx(Fe,{present:r||i.open,children:x.jsx(er.Slot,{scope:e.__scopeMenu,children:x.jsx($a,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:a,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:s=>{var d;l.isUsingKeyboardRef.current&&((d=u.current)==null||d.focus()),s.preventDefault()},onCloseAutoFocus:s=>s.preventDefault(),onFocusOutside:N(e.onFocusOutside,s=>{s.target!==c.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:N(e.onEscapeKeyDown,s=>{l.onClose(),s.preventDefault()}),onKeyDown:N(e.onKeyDown,s=>{var d;const f=s.currentTarget.contains(s.target),p=Pw[l.dir].includes(s.key);f&&p&&(i.onOpenChange(!1),(d=c.trigger)==null||d.focus(),s.preventDefault())})})})})})});uh.displayName=lh;function ch(e){return e?"open":"closed"}function Wo(e){return e==="indeterminate"}function Ha(e){return Wo(e)?"indeterminate":e?"checked":"unchecked"}function Gw(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Xw(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Kw(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=Xw(e,Math.max(o,0));r.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Yw(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const c=t[i],u=t[l],a=c.x,s=c.y,d=u.x,f=u.y;s>r!=f>r&&n<(d-a)*(r-s)/(f-s)+a&&(o=!o)}return o}function qw(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Yw(n,t)}function tr(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Zw=Wp,Qw=Na,Jw=Xp,ex=Kp,tx=Ba,nx=Yp,rx=bi,ox=Zp,ix=Jp,sx=th,ax=rh,lx=oh,ux=ih,cx=ah,dx=uh,wi="DropdownMenu",[fx]=Se(wi,[Hp]),Ae=Hp(),[px,dh]=fx(wi),fh=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:l,modal:c=!0}=e,u=Ae(t),a=g.useRef(null),[s,d]=at({prop:o,defaultProp:i??!1,onChange:l,caller:wi});return x.jsx(px,{scope:t,triggerId:Ye(),triggerRef:a,contentId:Ye(),open:s,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(f=>!f),[d]),modal:c,children:x.jsx(Zw,{...u,open:s,onOpenChange:d,dir:r,modal:c,children:n})})};fh.displayName=wi;var ph="DropdownMenuTrigger",hh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=dh(ph,n),l=Ae(n);return x.jsx(Qw,{asChild:!0,...l,children:x.jsx(z.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:oi(t,i.triggerRef),onPointerDown:N(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(i.onOpenToggle(),i.open||c.preventDefault())}),onKeyDown:N(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&i.onOpenToggle(),c.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});hh.displayName=ph;var hx="DropdownMenuPortal",mh=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ae(t);return x.jsx(Jw,{...r,...n})};mh.displayName=hx;var vh="DropdownMenuContent",gh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dh(vh,n),i=Ae(n),l=g.useRef(!1);return x.jsx(ex,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:N(e.onCloseAutoFocus,c=>{var u;l.current||(u=o.triggerRef.current)==null||u.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:N(e.onInteractOutside,c=>{const u=c.detail.originalEvent,a=u.button===0&&u.ctrlKey===!0,s=u.button===2||a;(!o.modal||s)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});gh.displayName=vh;var mx="DropdownMenuGroup",vx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return x.jsx(tx,{...o,...r,ref:t})});vx.displayName=mx;var gx="DropdownMenuLabel",yh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return x.jsx(nx,{...o,...r,ref:t})});yh.displayName=gx;var yx="DropdownMenuItem",bh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return x.jsx(rx,{...o,...r,ref:t})});bh.displayName=yx;var bx="DropdownMenuCheckboxItem",wx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return x.jsx(ox,{...o,...r,ref:t})});wx.displayName=bx;var xx="DropdownMenuRadioGroup",Ex=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return x.jsx(ix,{...o,...r,ref:t})});Ex.displayName=xx;var Sx="DropdownMenuRadioItem",Cx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return x.jsx(sx,{...o,...r,ref:t})});Cx.displayName=Sx;var _x="DropdownMenuItemIndicator",Px=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return x.jsx(ax,{...o,...r,ref:t})});Px.displayName=_x;var Rx="DropdownMenuSeparator",wh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return x.jsx(lx,{...o,...r,ref:t})});wh.displayName=Rx;var Ox="DropdownMenuArrow",Tx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return x.jsx(ux,{...o,...r,ref:t})});Tx.displayName=Ox;var jx="DropdownMenuSubTrigger",Mx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return x.jsx(cx,{...o,...r,ref:t})});Mx.displayName=jx;var Ax="DropdownMenuSubContent",kx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return x.jsx(dx,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});kx.displayName=Ax;var Dx=fh,Lx=hh,Ix=mh,Nx=gh,Fx=yh,Vx=bh,$x=wh,Bx="Label",xh=g.forwardRef((e,t)=>x.jsx(z.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));xh.displayName=Bx;var[Ua]=Se("Form"),Wa="Form",[zx,br]=Ua(Wa),[Hx,Eh]=Ua(Wa),Ux=g.forwardRef((e,t)=>{const{__scopeForm:n,onClearServerErrors:r=()=>{},...o}=e,i=g.useRef(null),l=re(t,i),[c,u]=g.useState({}),a=g.useCallback(_=>c[_],[c]),s=g.useCallback((_,k)=>u(P=>({...P,[_]:{...P[_]??{},...k}})),[]),d=g.useCallback(_=>{u(k=>({...k,[_]:void 0})),b(k=>({...k,[_]:{}}))},[]),[f,p]=g.useState({}),m=g.useCallback(_=>f[_]??[],[f]),h=g.useCallback((_,k)=>{p(P=>({...P,[_]:[...P[_]??[],k]}))},[]),v=g.useCallback((_,k)=>{p(P=>({...P,[_]:(P[_]??[]).filter($=>$.id!==k)}))},[]),[y,b]=g.useState({}),w=g.useCallback(_=>y[_]??{},[y]),S=g.useCallback((_,k)=>{b(P=>({...P,[_]:{...P[_]??{},...k}}))},[]),[E,A]=g.useState({}),j=g.useCallback((_,k)=>{A(P=>{const $=new Set(P[_]).add(k);return{...P,[_]:$}})},[]),O=g.useCallback((_,k)=>{A(P=>{const $=new Set(P[_]);return $.delete(k),{...P,[_]:$}})},[]),T=g.useCallback(_=>Array.from(E[_]??[]).join(" ")||void 0,[E]);return x.jsx(zx,{scope:n,getFieldValidity:a,onFieldValidityChange:s,getFieldCustomMatcherEntries:m,onFieldCustomMatcherEntryAdd:h,onFieldCustomMatcherEntryRemove:v,getFieldCustomErrors:w,onFieldCustomErrorsChange:S,onFieldValiditionClear:d,children:x.jsx(Hx,{scope:n,onFieldMessageIdAdd:j,onFieldMessageIdRemove:O,getFieldDescription:T,children:x.jsx(z.form,{...o,ref:l,onInvalid:N(e.onInvalid,_=>{const k=Sh(_.currentTarget);k===_.target&&k.focus(),_.preventDefault()}),onSubmit:N(e.onSubmit,r,{checkForDefaultPrevented:!1}),onReset:N(e.onReset,r)})})})});Ux.displayName=Wa;var Ga="FormField",[Wx,Xa]=Ua(Ga),Gx=g.forwardRef((e,t)=>{const{__scopeForm:n,name:r,serverInvalid:o=!1,...i}=e,l=br(Ga,n).getFieldValidity(r),c=Ye();return x.jsx(Wx,{scope:n,id:c,name:r,serverInvalid:o,children:x.jsx(z.div,{"data-valid":Ya(l,o),"data-invalid":qa(l,o),...i,ref:t})})});Gx.displayName=Ga;var Ds="FormLabel",Xx=g.forwardRef((e,t)=>{const{__scopeForm:n,...r}=e,o=br(Ds,n),i=Xa(Ds,n),l=r.htmlFor||i.id,c=o.getFieldValidity(i.name);return x.jsx(xh,{"data-valid":Ya(c,i.serverInvalid),"data-invalid":qa(c,i.serverInvalid),...r,ref:t,htmlFor:l})});Xx.displayName=Ds;var ko="FormControl",Kx=g.forwardRef((e,t)=>{const{__scopeForm:n,...r}=e,o=br(ko,n),i=Xa(ko,n),l=Eh(ko,n),c=g.useRef(null),u=re(t,c),a=r.name||i.name,s=r.id||i.id,d=o.getFieldCustomMatcherEntries(a),{onFieldValidityChange:f,onFieldCustomErrorsChange:p,onFieldValiditionClear:m}=o,h=g.useCallback(async b=>{if(Ch(b.validity)){const P=es(b.validity);f(a,P);return}const w=b.form?new FormData(b.form):new FormData,S=[b.value,w],E=[],A=[];d.forEach(P=>{oE(P,S)?A.push(P):iE(P)&&E.push(P)});const j=E.map(({id:P,match:$})=>[P,$(...S)]),O=Object.fromEntries(j),T=Object.values(O).some(Boolean),_=T;b.setCustomValidity(_?nr:"");const k=es(b.validity);if(f(a,k),p(a,O),!T&&A.length>0){const P=A.map(({id:X,match:W})=>W(...S).then(L=>[X,L])),$=await Promise.all(P),F=Object.fromEntries($),U=Object.values(F).some(Boolean);b.setCustomValidity(U?nr:"");const B=es(b.validity);f(a,B),p(a,F)}},[d,a,p,f]);g.useEffect(()=>{const b=c.current;if(b){const w=()=>h(b);return b.addEventListener("change",w),()=>b.removeEventListener("change",w)}},[h]);const v=g.useCallback(()=>{const b=c.current;b&&(b.setCustomValidity(""),m(a))},[a,m]);g.useEffect(()=>{var b;const w=(b=c.current)==null?void 0:b.form;if(w)return w.addEventListener("reset",v),()=>w.removeEventListener("reset",v)},[v]),g.useEffect(()=>{const b=c.current,w=b==null?void 0:b.closest("form");if(w&&i.serverInvalid){const S=Sh(w);S===b&&S.focus()}},[i.serverInvalid]);const y=o.getFieldValidity(a);return x.jsx(z.input,{"data-valid":Ya(y,i.serverInvalid),"data-invalid":qa(y,i.serverInvalid),"aria-invalid":i.serverInvalid?!0:void 0,"aria-describedby":l.getFieldDescription(a),title:"",...r,ref:u,id:s,name:a,onInvalid:N(e.onInvalid,b=>{const w=b.currentTarget;h(w)}),onChange:N(e.onChange,b=>{v()})})});Kx.displayName=ko;var nr="This value is not valid",Yx={badInput:nr,patternMismatch:"This value does not match the required pattern",rangeOverflow:"This value is too large",rangeUnderflow:"This value is too small",stepMismatch:"This value does not match the required step",tooLong:"This value is too long",tooShort:"This value is too short",typeMismatch:"This value does not match the required type",valid:void 0,valueMissing:"This value is missing"},wr="FormMessage",qx=g.forwardRef((e,t)=>{const{match:n,name:r,...o}=e,i=Xa(wr,e.__scopeForm),l=r??i.name;return n===void 0?x.jsx(Ka,{...o,ref:t,name:l,children:e.children||nr}):typeof n=="function"?x.jsx(Qx,{match:n,...o,ref:t,name:l}):x.jsx(Zx,{match:n,...o,ref:t,name:l})});qx.displayName=wr;var Zx=g.forwardRef((e,t)=>{const{match:n,forceMatch:r=!1,name:o,children:i,...l}=e,c=br(wr,l.__scopeForm).getFieldValidity(o);return r||c!=null&&c[n]?x.jsx(Ka,{ref:t,...l,name:o,children:i??Yx[n]}):null}),Qx=g.forwardRef((e,t)=>{const{match:n,forceMatch:r=!1,name:o,id:i,children:l,...c}=e,u=br(wr,c.__scopeForm),a=g.useRef(null),s=re(t,a),d=Ye(),f=i??d,p=g.useMemo(()=>({id:f,match:n}),[f,n]),{onFieldCustomMatcherEntryAdd:m,onFieldCustomMatcherEntryRemove:h}=u;g.useEffect(()=>(m(o,p),()=>h(o,p.id)),[p,o,m,h]);const v=u.getFieldValidity(o),y=u.getFieldCustomErrors(o)[f];return r||v&&!Ch(v)&&y?x.jsx(Ka,{id:f,ref:s,...c,name:o,children:l??nr}):null}),Ka=g.forwardRef((e,t)=>{const{__scopeForm:n,id:r,name:o,...i}=e,l=Eh(wr,n),c=Ye(),u=r??c,{onFieldMessageIdAdd:a,onFieldMessageIdRemove:s}=l;return g.useEffect(()=>(a(o,u),()=>s(o,u)),[o,u,a,s]),x.jsx(z.span,{id:u,...i,ref:t})}),Jx="FormSubmit",eE=g.forwardRef((e,t)=>{const{__scopeForm:n,...r}=e;return x.jsx(z.button,{type:"submit",...r,ref:t})});eE.displayName=Jx;function es(e){const t={};for(const n in e)t[n]=e[n];return t}function tE(e){return e instanceof HTMLElement}function nE(e){return"validity"in e}function rE(e){return nE(e)&&(e.validity.valid===!1||e.getAttribute("aria-invalid")==="true")}function Sh(e){const t=e.elements,[n]=Array.from(t).filter(tE).filter(rE);return n}function oE(e,t){return e.match.constructor.name==="AsyncFunction"||sE(e.match,t)}function iE(e){return e.match.constructor.name==="Function"}function sE(e,t){return e(...t)instanceof Promise}function Ch(e){let t=!1;for(const n in e){const r=n;if(r!=="valid"&&r!=="customError"&&e[r]){t=!0;break}}return t}function Ya(e,t){if((e==null?void 0:e.valid)===!0&&!t)return!0}function qa(e,t){if((e==null?void 0:e.valid)===!1||t)return!0}function Go(e,[t,n]){return Math.min(n,Math.max(t,e))}var _h="Popover",[Ph]=Se(_h,[jt]),xi=jt(),[N2,qt]=Ph(_h),Rh="PopoverAnchor",aE=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=qt(Rh,n),i=xi(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=o;return g.useEffect(()=>(l(),()=>c()),[l,c]),x.jsx(mr,{...i,...r,ref:t})});aE.displayName=Rh;var Oh="PopoverTrigger",lE=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=qt(Oh,n),i=xi(n),l=re(t,o.triggerRef),c=x.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Mh(o.open),...r,ref:l,onClick:N(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:x.jsx(mr,{asChild:!0,...i,children:c})});lE.displayName=Oh;var uE="PopoverPortal",[F2,cE]=Ph(uE,{forceMount:void 0}),vn="PopoverContent",dE=g.forwardRef((e,t)=>{const n=cE(vn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=qt(vn,e.__scopePopover);return x.jsx(Fe,{present:r||i.open,children:i.modal?x.jsx(pE,{...o,ref:t}):x.jsx(hE,{...o,ref:t})})});dE.displayName=vn;var fE=_t("PopoverContent.RemoveScroll"),pE=g.forwardRef((e,t)=>{const n=qt(vn,e.__scopePopover),r=g.useRef(null),o=re(t,r),i=g.useRef(!1);return g.useEffect(()=>{const l=r.current;if(l)return ci(l)},[]),x.jsx(dr,{as:fE,allowPinchZoom:!0,children:x.jsx(Th,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:N(e.onCloseAutoFocus,l=>{var c;l.preventDefault(),i.current||(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:N(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,a=c.button===2||u;i.current=a},{checkForDefaultPrevented:!1}),onFocusOutside:N(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),hE=g.forwardRef((e,t)=>{const n=qt(vn,e.__scopePopover),r=g.useRef(!1),o=g.useRef(!1);return x.jsx(Th,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=i.target;(c=n.triggerRef.current)!=null&&c.contains(u)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Th=g.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:a,onInteractOutside:s,...d}=e,f=qt(vn,n),p=xi(n);return li(),x.jsx(cr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:x.jsx(xn,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:a,onDismiss:()=>f.onOpenChange(!1),children:x.jsx(vi,{"data-state":Mh(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),jh="PopoverClose",mE=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=qt(jh,n);return x.jsx(z.button,{type:"button",...r,ref:t,onClick:N(e.onClick,()=>o.onOpenChange(!1))})});mE.displayName=jh;var vE="PopoverArrow",gE=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xi(n);return x.jsx(gi,{...o,...r,ref:t})});gE.displayName=vE;function Mh(e){return e?"open":"closed"}var Za="Progress",Qa=100,[yE]=Se(Za),[bE,wE]=yE(Za),xE=g.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=SE,...l}=e;(o||o===0)&&!Su(o)&&console.error(CE(`${o}`,"Progress"));const c=Su(o)?o:Qa;r!==null&&!Cu(r,c)&&console.error(_E(`${r}`,"Progress"));const u=Cu(r,c)?r:null,a=Xo(u)?i(u,c):void 0;return x.jsx(bE,{scope:n,value:u,max:c,children:x.jsx(z.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":Xo(u)?u:void 0,"aria-valuetext":a,role:"progressbar","data-state":kh(u,c),"data-value":u??void 0,"data-max":c,...l,ref:t})})});xE.displayName=Za;var Ah="ProgressIndicator",EE=g.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=wE(Ah,n);return x.jsx(z.div,{"data-state":kh(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});EE.displayName=Ah;function SE(e,t){return`${Math.round(e/t*100)}%`}function kh(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Xo(e){return typeof e=="number"}function Su(e){return Xo(e)&&!isNaN(e)&&e>0}function Cu(e,t){return Xo(e)&&!isNaN(e)&&e<=t&&e>=0}function CE(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Qa}\`.`}function _E(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
91
+ */var cu;function U1(){return cu||(cu=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}function t(p,m){a||o.startTransition===void 0||(a=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=m();if(!d){var v=m();i(h,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}v=l({inst:{value:h,getSnapshot:m}});var y=v[0].inst,b=v[1];return u(function(){y.value=h,y.getSnapshot=m,n(y)&&b({inst:y})},[p,h,m]),c(function(){return n(y)&&b({inst:y}),p(function(){n(y)&&b({inst:y})})},[p]),s(h),h}function n(p){var m=p.getSnapshot;p=p.value;try{var h=m();return!i(p,h)}catch{return!0}}function r(p,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=_,i=typeof Object.is=="function"?Object.is:e,l=o.useState,c=o.useEffect,u=o.useLayoutEffect,s=o.useDebugValue,a=!1,d=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;uu.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),uu}var du;function H1(){return du||(du=1,process.env.NODE_ENV==="production"?Ji.exports=z1():Ji.exports=U1()),Ji.exports}var G1=H1();function W1(){return G1.useSyncExternalStore(X1,()=>!0,()=>!1)}function X1(){return()=>{}}var Ts="Avatar",[K1]=xe(Ts),[Y1,ap]=K1(Ts),sp=g.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,i]=g.useState("idle");return w.jsx(Y1,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i,children:w.jsx(z.span,{...r,ref:t})})});sp.displayName=Ts;var lp="AvatarImage",up=g.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...i}=e,l=ap(lp,n),c=q1(r,i),u=Ze(s=>{o(s),l.onImageLoadingStatusChange(s)});return Se(()=>{c!=="idle"&&u(c)},[c,u]),c==="loaded"?w.jsx(z.img,{...i,ref:t,src:r}):null});up.displayName=lp;var cp="AvatarFallback",dp=g.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,i=ap(cp,n),[l,c]=g.useState(r===void 0);return g.useEffect(()=>{if(r!==void 0){const u=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(u)}},[r]),l&&i.imageLoadingStatus!=="loaded"?w.jsx(z.span,{...o,ref:t}):null});dp.displayName=cp;function fu(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function q1(e,{referrerPolicy:t,crossOrigin:n}){const r=W1(),o=g.useRef(null),i=r?(o.current||(o.current=new window.Image),o.current):null,[l,c]=g.useState(()=>fu(i,e));return Se(()=>{c(fu(i,e))},[i,e]),Se(()=>{const u=d=>()=>{c(d)};if(!i)return;const s=u("loaded"),a=u("error");return i.addEventListener("load",s),i.addEventListener("error",a),t&&(i.referrerPolicy=t),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",s),i.removeEventListener("error",a)}},[i,n,t]),l}var Z1=sp,Q1=up,J1=dp;function pr(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function hr(e){const[t,n]=g.useState(void 0);return Se(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,c;if("borderBoxSize"in i){const u=i.borderBoxSize,s=Array.isArray(u)?u[0]:u;l=s.inlineSize,c=s.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var pi="Checkbox",[eb]=xe(pi),[tb,js]=eb(pi);function nb(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:l,name:c,onCheckedChange:u,required:s,value:a="on",internal_do_not_use_render:d}=e,[f,p]=Fe({prop:n,defaultProp:o??!1,onChange:u,caller:pi}),[m,h]=g.useState(null),[v,y]=g.useState(null),b=g.useRef(!1),x=m?!!l||!!m.closest("form"):!0,S={checked:f,disabled:i,setChecked:p,control:m,setControl:h,name:c,form:l,value:a,hasConsumerStoppedPropagationRef:b,required:s,defaultChecked:Ct(o)?!1:o,isFormControl:x,bubbleInput:v,setBubbleInput:y};return w.jsx(tb,{scope:t,...S,children:ob(d)?d(S):r})}var fp="CheckboxTrigger",pp=g.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:l,disabled:c,checked:u,required:s,setControl:a,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:m}=js(fp,e),h=re(o,a),v=g.useRef(u);return g.useEffect(()=>{const y=i==null?void 0:i.form;if(y){const b=()=>d(v.current);return y.addEventListener("reset",b),()=>y.removeEventListener("reset",b)}},[i,d]),w.jsx(z.button,{type:"button",role:"checkbox","aria-checked":Ct(u)?"mixed":u,"aria-required":s,"data-state":yp(u),"data-disabled":c?"":void 0,disabled:c,value:l,...r,ref:h,onKeyDown:N(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:N(n,y=>{d(b=>Ct(b)?!0:!b),m&&p&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});pp.displayName=fp;var hp=g.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:l,disabled:c,value:u,onCheckedChange:s,form:a,...d}=e;return w.jsx(nb,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:c,required:l,onCheckedChange:s,name:r,form:a,value:u,internal_do_not_use_render:({isFormControl:f})=>w.jsxs(w.Fragment,{children:[w.jsx(pp,{...d,ref:t,__scopeCheckbox:n}),f&&w.jsx(gp,{__scopeCheckbox:n})]})})});hp.displayName=pi;var mp="CheckboxIndicator",rb=g.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=js(mp,n);return w.jsx(Ve,{present:r||Ct(i.checked)||i.checked===!0,children:w.jsx(z.span,{"data-state":yp(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});rb.displayName=mp;var vp="CheckboxBubbleInput",gp=g.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:l,required:c,disabled:u,name:s,value:a,form:d,bubbleInput:f,setBubbleInput:p}=js(vp,e),m=re(n,p),h=pr(i),v=hr(r);g.useEffect(()=>{const b=f;if(!b)return;const x=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(x,"checked").set,E=!o.current;if(h!==i&&S){const A=new Event("click",{bubbles:E});b.indeterminate=Ct(i),S.call(b,Ct(i)?!1:i),b.dispatchEvent(A)}},[f,h,i,o]);const y=g.useRef(Ct(i)?!1:i);return w.jsx(z.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??y.current,required:c,disabled:u,name:s,value:a,form:d,...t,tabIndex:-1,ref:m,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});gp.displayName=vp;function ob(e){return typeof e=="function"}function Ct(e){return e==="indeterminate"}function yp(e){return Ct(e)?"indeterminate":e?"checked":"unchecked"}const ib=["top","right","bottom","left"],Pt=Math.min,Ie=Math.max,Bo=Math.round,zr=Math.floor,rt=e=>({x:e,y:e}),ab={left:"right",right:"left",bottom:"top",top:"bottom"},sb={start:"end",end:"start"};function ka(e,t,n){return Ie(e,Pt(t,n))}function pt(e,t){return typeof e=="function"?e(t):e}function ht(e){return e.split("-")[0]}function Cn(e){return e.split("-")[1]}function Ms(e){return e==="x"?"y":"x"}function As(e){return e==="y"?"height":"width"}const lb=new Set(["top","bottom"]);function nt(e){return lb.has(ht(e))?"y":"x"}function ks(e){return Ms(nt(e))}function ub(e,t,n){n===void 0&&(n=!1);const r=Cn(e),o=ks(e),i=As(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=zo(l)),[l,zo(l)]}function cb(e){const t=zo(e);return[Da(e),t,Da(t)]}function Da(e){return e.replace(/start|end/g,t=>sb[t])}const pu=["left","right"],hu=["right","left"],db=["top","bottom"],fb=["bottom","top"];function pb(e,t,n){switch(e){case"top":case"bottom":return n?t?hu:pu:t?pu:hu;case"left":case"right":return t?db:fb;default:return[]}}function hb(e,t,n,r){const o=Cn(e);let i=pb(ht(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Da)))),i}function zo(e){return e.replace(/left|right|bottom|top/g,t=>ab[t])}function mb(e){return{top:0,right:0,bottom:0,left:0,...e}}function bp(e){return typeof e!="number"?mb(e):{top:e,right:e,bottom:e,left:e}}function Uo(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function mu(e,t,n){let{reference:r,floating:o}=e;const i=nt(t),l=ks(t),c=As(l),u=ht(t),s=i==="y",a=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[c]/2-o[c]/2;let p;switch(u){case"top":p={x:a,y:r.y-o.height};break;case"bottom":p={x:a,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Cn(t)){case"start":p[l]-=f*(n&&s?-1:1);break;case"end":p[l]+=f*(n&&s?-1:1);break}return p}const vb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,c=i.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(t));let s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:a,y:d}=mu(s,r,u),f=r,p={},m=0;for(let h=0;h<c.length;h++){const{name:v,fn:y}=c[h],{x:b,y:x,data:S,reset:E}=await y({x:a,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});a=b??a,d=x??d,p={...p,[v]:{...p[v],...S}},E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(s=E.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:a,y:d}=mu(s,f,u)),h=-1)}return{x:a,y:d,placement:f,strategy:o,middlewareData:p}};async function Jn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:l,elements:c,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:a="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=pt(t,e),m=bp(p),h=c[f?d==="floating"?"reference":"floating":d],v=Uo(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(h)))==null||n?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:s,rootBoundary:a,strategy:u})),y=d==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),x=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},S=Uo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:b,strategy:u}):y);return{top:(v.top-S.top+m.top)/x.y,bottom:(S.bottom-v.bottom+m.bottom)/x.y,left:(v.left-S.left+m.left)/x.x,right:(S.right-v.right+m.right)/x.x}}const gb=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:c,middlewareData:u}=t,{element:s,padding:a=0}=pt(e,t)||{};if(s==null)return{};const d=bp(a),f={x:n,y:r},p=ks(o),m=As(p),h=await l.getDimensions(s),v=p==="y",y=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",S=i.reference[m]+i.reference[p]-f[p]-i.floating[m],E=f[p]-i.reference[p],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s));let j=A?A[x]:0;(!j||!await(l.isElement==null?void 0:l.isElement(A)))&&(j=c.floating[x]||i.floating[m]);const O=S/2-E/2,T=j/2-h[m]/2-1,P=Pt(d[y],T),k=Pt(d[b],T),R=P,$=j-h[m]-k,F=j/2-h[m]/2+O,H=ka(R,F,$),B=!u.arrow&&Cn(o)!=null&&F!==H&&i.reference[m]/2-(F<R?P:k)-h[m]/2<0,X=B?F<R?F-R:F-$:0;return{[p]:f[p]+X,data:{[p]:H,centerOffset:F-H-X,...B&&{alignmentOffset:X}},reset:B}}}),yb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:c,platform:u,elements:s}=t,{mainAxis:a=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=pt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=ht(o),b=nt(c),x=ht(c)===c,S=await(u.isRTL==null?void 0:u.isRTL(s.floating)),E=f||(x||!h?[zo(c)]:cb(c)),A=m!=="none";!f&&A&&E.push(...hb(c,h,m,S));const j=[c,...E],O=await Jn(t,v),T=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(a&&T.push(O[y]),d){const F=ub(o,l,S);T.push(O[F[0]],O[F[1]])}if(P=[...P,{placement:o,overflows:T}],!T.every(F=>F<=0)){var k,R;const F=(((k=i.flip)==null?void 0:k.index)||0)+1,H=j[F];if(H&&(!(d==="alignment"&&b!==nt(H))||P.every(X=>nt(X.placement)===b?X.overflows[0]>0:!0)))return{data:{index:F,overflows:P},reset:{placement:H}};let B=(R=P.filter(X=>X.overflows[0]<=0).sort((X,G)=>X.overflows[1]-G.overflows[1])[0])==null?void 0:R.placement;if(!B)switch(p){case"bestFit":{var $;const X=($=P.filter(G=>{if(A){const L=nt(G.placement);return L===b||L==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(L=>L>0).reduce((L,M)=>L+M,0)]).sort((G,L)=>G[1]-L[1])[0])==null?void 0:$[0];X&&(B=X);break}case"initialPlacement":B=c;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function vu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gu(e){return ib.some(t=>e[t]>=0)}const bb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=pt(e,t);switch(r){case"referenceHidden":{const i=await Jn(t,{...o,elementContext:"reference"}),l=vu(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:gu(l)}}}case"escaped":{const i=await Jn(t,{...o,altBoundary:!0}),l=vu(i,n.floating);return{data:{escapedOffsets:l,escaped:gu(l)}}}default:return{}}}}},wp=new Set(["left","top"]);async function wb(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=ht(n),c=Cn(n),u=nt(n)==="y",s=wp.has(l)?-1:1,a=i&&u?-1:1,d=pt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof m=="number"&&(p=c==="end"?m*-1:m),u?{x:p*a,y:f*s}:{x:f*s,y:p*a}}const xb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:c}=t,u=await wb(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}},Eb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:v=>{let{x:y,y:b}=v;return{x:y,y:b}}},...u}=pt(e,t),s={x:n,y:r},a=await Jn(t,u),d=nt(ht(o)),f=Ms(d);let p=s[f],m=s[d];if(i){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",b=p+a[v],x=p-a[y];p=ka(b,p,x)}if(l){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=m+a[v],x=m-a[y];m=ka(b,m,x)}const h=c.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:l}}}}}},Sb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:c=0,mainAxis:u=!0,crossAxis:s=!0}=pt(e,t),a={x:n,y:r},d=nt(o),f=Ms(d);let p=a[f],m=a[d];const h=pt(c,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const x=f==="y"?"height":"width",S=i.reference[f]-i.floating[x]+v.mainAxis,E=i.reference[f]+i.reference[x]-v.mainAxis;p<S?p=S:p>E&&(p=E)}if(s){var y,b;const x=f==="y"?"width":"height",S=wp.has(ht(o)),E=i.reference[d]-i.floating[x]+(S&&((y=l.offset)==null?void 0:y[d])||0)+(S?0:v.crossAxis),A=i.reference[d]+i.reference[x]+(S?0:((b=l.offset)==null?void 0:b[d])||0)-(S?v.crossAxis:0);m<E?m=E:m>A&&(m=A)}return{[f]:p,[d]:m}}}},Cb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:l,elements:c}=t,{apply:u=()=>{},...s}=pt(e,t),a=await Jn(t,s),d=ht(o),f=Cn(o),p=nt(o)==="y",{width:m,height:h}=i.floating;let v,y;d==="top"||d==="bottom"?(v=d,y=f===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(y=d,v=f==="end"?"top":"bottom");const b=h-a.top-a.bottom,x=m-a.left-a.right,S=Pt(h-a[v],b),E=Pt(m-a[y],x),A=!t.middlewareData.shift;let j=S,O=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=b),A&&!f){const P=Ie(a.left,0),k=Ie(a.right,0),R=Ie(a.top,0),$=Ie(a.bottom,0);p?O=m-2*(P!==0||k!==0?P+k:Ie(a.left,a.right)):j=h-2*(R!==0||$!==0?R+$:Ie(a.top,a.bottom))}await u({...t,availableWidth:O,availableHeight:j});const T=await l.getDimensions(c.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function hi(){return typeof window<"u"}function _n(e){return xp(e)?(e.nodeName||"").toLowerCase():"#document"}function Ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(xp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xp(e){return hi()?e instanceof Node||e instanceof Ne(e).Node:!1}function Qe(e){return hi()?e instanceof Element||e instanceof Ne(e).Element:!1}function at(e){return hi()?e instanceof HTMLElement||e instanceof Ne(e).HTMLElement:!1}function yu(e){return!hi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ne(e).ShadowRoot}const _b=new Set(["inline","contents"]);function mr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Je(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!_b.has(o)}const Pb=new Set(["table","td","th"]);function Rb(e){return Pb.has(_n(e))}const Ob=[":popover-open",":modal"];function mi(e){return Ob.some(t=>{try{return e.matches(t)}catch{return!1}})}const Tb=["transform","translate","scale","rotate","perspective"],jb=["transform","translate","scale","rotate","perspective","filter"],Mb=["paint","layout","strict","content"];function Ds(e){const t=Ls(),n=Qe(e)?Je(e):e;return Tb.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||jb.some(r=>(n.willChange||"").includes(r))||Mb.some(r=>(n.contain||"").includes(r))}function Ab(e){let t=Rt(e);for(;at(t)&&!yn(t);){if(Ds(t))return t;if(mi(t))return null;t=Rt(t)}return null}function Ls(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const kb=new Set(["html","body","#document"]);function yn(e){return kb.has(_n(e))}function Je(e){return Ne(e).getComputedStyle(e)}function vi(e){return Qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rt(e){if(_n(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yu(e)&&e.host||ut(e);return yu(t)?t.host:t}function Ep(e){const t=Rt(e);return yn(t)?e.ownerDocument?e.ownerDocument.body:e.body:at(t)&&mr(t)?t:Ep(t)}function er(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ep(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=Ne(o);if(i){const c=La(l);return t.concat(l,l.visualViewport||[],mr(o)?o:[],c&&n?er(c):[])}return t.concat(o,er(o,[],n))}function La(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sp(e){const t=Je(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=at(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,c=Bo(n)!==i||Bo(r)!==l;return c&&(n=i,r=l),{width:n,height:r,$:c}}function Is(e){return Qe(e)?e:e.contextElement}function mn(e){const t=Is(e);if(!at(t))return rt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Sp(t);let l=(i?Bo(n.width):n.width)/r,c=(i?Bo(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const Db=rt(0);function Cp(e){const t=Ne(e);return!Ls()||!t.visualViewport?Db:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Lb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ne(e)?!1:t}function Xt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Is(e);let l=rt(1);t&&(r?Qe(r)&&(l=mn(r)):l=mn(e));const c=Lb(i,n,r)?Cp(i):rt(0);let u=(o.left+c.x)/l.x,s=(o.top+c.y)/l.y,a=o.width/l.x,d=o.height/l.y;if(i){const f=Ne(i),p=r&&Qe(r)?Ne(r):r;let m=f,h=La(m);for(;h&&r&&p!==m;){const v=mn(h),y=h.getBoundingClientRect(),b=Je(h),x=y.left+(h.clientLeft+parseFloat(b.paddingLeft))*v.x,S=y.top+(h.clientTop+parseFloat(b.paddingTop))*v.y;u*=v.x,s*=v.y,a*=v.x,d*=v.y,u+=x,s+=S,m=Ne(h),h=La(m)}}return Uo({width:a,height:d,x:u,y:s})}function gi(e,t){const n=vi(e).scrollLeft;return t?t.left+n:Xt(ut(e)).left+n}function _p(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-gi(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ib(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=ut(r),c=t?mi(t.floating):!1;if(r===l||c&&i)return n;let u={scrollLeft:0,scrollTop:0},s=rt(1);const a=rt(0),d=at(r);if((d||!d&&!i)&&((_n(r)!=="body"||mr(l))&&(u=vi(r)),at(r))){const p=Xt(r);s=mn(r),a.x=p.x+r.clientLeft,a.y=p.y+r.clientTop}const f=l&&!d&&!i?_p(l,u):rt(0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+a.x+f.x,y:n.y*s.y-u.scrollTop*s.y+a.y+f.y}}function Nb(e){return Array.from(e.getClientRects())}function Fb(e){const t=ut(e),n=vi(e),r=e.ownerDocument.body,o=Ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+gi(e);const c=-n.scrollTop;return Je(r).direction==="rtl"&&(l+=Ie(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:c}}const bu=25;function Vb(e,t){const n=Ne(e),r=ut(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,c=0,u=0;if(o){i=o.width,l=o.height;const a=Ls();(!a||a&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const s=gi(r);if(s<=0){const a=r.ownerDocument,d=a.body,f=getComputedStyle(d),p=a.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(r.clientWidth-d.clientWidth-p);m<=bu&&(i-=m)}else s<=bu&&(i+=s);return{width:i,height:l,x:c,y:u}}const $b=new Set(["absolute","fixed"]);function Bb(e,t){const n=Xt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=at(e)?mn(e):rt(1),l=e.clientWidth*i.x,c=e.clientHeight*i.y,u=o*i.x,s=r*i.y;return{width:l,height:c,x:u,y:s}}function wu(e,t,n){let r;if(t==="viewport")r=Vb(e,n);else if(t==="document")r=Fb(ut(e));else if(Qe(t))r=Bb(t,n);else{const o=Cp(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Uo(r)}function Pp(e,t){const n=Rt(e);return n===t||!Qe(n)||yn(n)?!1:Je(n).position==="fixed"||Pp(n,t)}function zb(e,t){const n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(c=>Qe(c)&&_n(c)!=="body"),o=null;const i=Je(e).position==="fixed";let l=i?Rt(e):e;for(;Qe(l)&&!yn(l);){const c=Je(l),u=Ds(l);!u&&c.position==="fixed"&&(o=null),(i?!u&&!o:!u&&c.position==="static"&&o&&$b.has(o.position)||mr(l)&&!u&&Pp(e,l))?r=r.filter(s=>s!==l):o=c,l=Rt(l)}return t.set(e,r),r}function Ub(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?mi(t)?[]:zb(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((u,s)=>{const a=wu(t,s,o);return u.top=Ie(a.top,u.top),u.right=Pt(a.right,u.right),u.bottom=Pt(a.bottom,u.bottom),u.left=Ie(a.left,u.left),u},wu(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Hb(e){const{width:t,height:n}=Sp(e);return{width:t,height:n}}function Gb(e,t,n){const r=at(t),o=ut(t),i=n==="fixed",l=Xt(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const u=rt(0);function s(){u.x=gi(o)}if(r||!r&&!i)if((_n(t)!=="body"||mr(o))&&(c=vi(t)),r){const p=Xt(t,!0,i,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else o&&s();i&&!r&&o&&s();const a=o&&!r&&!i?_p(o,c):rt(0),d=l.left+c.scrollLeft-u.x-a.x,f=l.top+c.scrollTop-u.y-a.y;return{x:d,y:f,width:l.width,height:l.height}}function ta(e){return Je(e).position==="static"}function xu(e,t){if(!at(e)||Je(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function Rp(e,t){const n=Ne(e);if(mi(e))return n;if(!at(e)){let o=Rt(e);for(;o&&!yn(o);){if(Qe(o)&&!ta(o))return o;o=Rt(o)}return n}let r=xu(e,t);for(;r&&Rb(r)&&ta(r);)r=xu(r,t);return r&&yn(r)&&ta(r)&&!Ds(r)?n:r||Ab(e)||n}const Wb=async function(e){const t=this.getOffsetParent||Rp,n=this.getDimensions,r=await n(e.floating);return{reference:Gb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xb(e){return Je(e).direction==="rtl"}const Kb={convertOffsetParentRelativeRectToViewportRelativeRect:Ib,getDocumentElement:ut,getClippingRect:Ub,getOffsetParent:Rp,getElementRects:Wb,getClientRects:Nb,getDimensions:Hb,getScale:mn,isElement:Qe,isRTL:Xb};function Op(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Yb(e,t){let n=null,r;const o=ut(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),i();const s=e.getBoundingClientRect(),{left:a,top:d,width:f,height:p}=s;if(c||t(),!f||!p)return;const m=zr(d),h=zr(o.clientWidth-(a+f)),v=zr(o.clientHeight-(d+p)),y=zr(a),b={rootMargin:-m+"px "+-h+"px "+-v+"px "+-y+"px",threshold:Ie(0,Pt(1,u))||1};let x=!0;function S(E){const A=E[0].intersectionRatio;if(A!==u){if(!x)return l();A?l(!1,A):r=setTimeout(()=>{l(!1,1e-7)},1e3)}A===1&&!Op(s,e.getBoundingClientRect())&&l(),x=!1}try{n=new IntersectionObserver(S,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return l(!0),i}function qb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,s=Is(e),a=o||i?[...s?er(s):[],...er(t)]:[];a.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=s&&c?Yb(s,n):null;let f=-1,p=null;l&&(p=new ResizeObserver(y=>{let[b]=y;b&&b.target===s&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),s&&!u&&p.observe(s),p.observe(t));let m,h=u?Xt(e):null;u&&v();function v(){const y=Xt(e);h&&!Op(h,y)&&n(),h=y,m=requestAnimationFrame(v)}return n(),()=>{var y;a.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(y=p)==null||y.disconnect(),p=null,u&&cancelAnimationFrame(m)}}const Zb=xb,Qb=Eb,Jb=yb,ew=Cb,tw=bb,Eu=gb,nw=Sb,rw=(e,t,n)=>{const r=new Map,o={platform:Kb,...n},i={...o.platform,_c:r};return vb(e,t,{...o,platform:i})};var ow=typeof document<"u",iw=function(){},ko=ow?_.useLayoutEffect:iw;function Ho(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ho(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ho(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Tp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Su(e,t){const n=Tp(e);return Math.round(t*n)/n}function na(e){const t=g.useRef(e);return ko(()=>{t.current=e}),t}function aw(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:c=!0,whileElementsMounted:u,open:s}=e,[a,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=g.useState(r);Ho(f,r)||p(r);const[m,h]=g.useState(null),[v,y]=g.useState(null),b=g.useCallback(G=>{G!==A.current&&(A.current=G,h(G))},[]),x=g.useCallback(G=>{G!==j.current&&(j.current=G,y(G))},[]),S=i||m,E=l||v,A=g.useRef(null),j=g.useRef(null),O=g.useRef(a),T=u!=null,P=na(u),k=na(o),R=na(s),$=g.useCallback(()=>{if(!A.current||!j.current)return;const G={placement:t,strategy:n,middleware:f};k.current&&(G.platform=k.current),rw(A.current,j.current,G).then(L=>{const M={...L,isPositioned:R.current!==!1};F.current&&!Ho(O.current,M)&&(O.current=M,ii.flushSync(()=>{d(M)}))})},[f,t,n,k,R]);ko(()=>{s===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(G=>({...G,isPositioned:!1})))},[s]);const F=g.useRef(!1);ko(()=>(F.current=!0,()=>{F.current=!1}),[]),ko(()=>{if(S&&(A.current=S),E&&(j.current=E),S&&E){if(P.current)return P.current(S,E,$);$()}},[S,E,$,P,T]);const H=g.useMemo(()=>({reference:A,floating:j,setReference:b,setFloating:x}),[b,x]),B=g.useMemo(()=>({reference:S,floating:E}),[S,E]),X=g.useMemo(()=>{const G={position:n,left:0,top:0};if(!B.floating)return G;const L=Su(B.floating,a.x),M=Su(B.floating,a.y);return c?{...G,transform:"translate("+L+"px, "+M+"px)",...Tp(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:M}},[n,c,B.floating,a.x,a.y]);return g.useMemo(()=>({...a,update:$,refs:H,elements:B,floatingStyles:X}),[a,$,H,B,X])}const sw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Eu({element:r.current,padding:o}).fn(n):{}:r?Eu({element:r,padding:o}).fn(n):{}}}},lw=(e,t)=>({...Zb(e),options:[e,t]}),uw=(e,t)=>({...Qb(e),options:[e,t]}),cw=(e,t)=>({...nw(e),options:[e,t]}),dw=(e,t)=>({...Jb(e),options:[e,t]}),fw=(e,t)=>({...ew(e),options:[e,t]}),pw=(e,t)=>({...tw(e),options:[e,t]}),hw=(e,t)=>({...sw(e),options:[e,t]});var mw="Arrow",jp=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return w.jsx(z.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});jp.displayName=mw;var vw=jp,Ns="Popper",[Mp,jt]=xe(Ns),[gw,Ap]=Mp(Ns),kp=e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null);return w.jsx(gw,{scope:t,anchor:r,onAnchorChange:o,children:n})};kp.displayName=Ns;var Dp="PopperAnchor",Lp=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ap(Dp,n),l=g.useRef(null),c=re(t,l),u=g.useRef(null);return g.useEffect(()=>{const s=u.current;u.current=(r==null?void 0:r.current)||l.current,s!==u.current&&i.onAnchorChange(u.current)}),r?null:w.jsx(z.div,{...o,ref:c})});Lp.displayName=Dp;var Fs="PopperContent",[yw,bw]=Mp(Fs),Ip=g.forwardRef((e,t)=>{var n,r,o,i,l,c;const{__scopePopper:u,side:s="bottom",sideOffset:a=0,align:d="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:h=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:x="optimized",onPlaced:S,...E}=e,A=Ap(Fs,u),[j,O]=g.useState(null),T=re(t,de=>O(de)),[P,k]=g.useState(null),R=hr(P),$=(R==null?void 0:R.width)??0,F=(R==null?void 0:R.height)??0,H=s+(d!=="center"?"-"+d:""),B=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},X=Array.isArray(h)?h:[h],G=X.length>0,L={padding:B,boundary:X.filter(xw),altBoundary:G},{refs:M,floatingStyles:D,placement:ee,isPositioned:J,middlewareData:K}=aw({strategy:"fixed",placement:H,whileElementsMounted:(...de)=>qb(...de,{animationFrame:x==="always"}),elements:{reference:A.anchor},middleware:[lw({mainAxis:a+F,alignmentAxis:f}),m&&uw({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?cw():void 0,...L}),m&&dw({...L}),fw({...L,apply:({elements:de,rects:ke,availableWidth:Be,availableHeight:It})=>{const{width:kr,height:Dr}=ke.reference,Nt=de.floating.style;Nt.setProperty("--radix-popper-available-width",`${Be}px`),Nt.setProperty("--radix-popper-available-height",`${It}px`),Nt.setProperty("--radix-popper-anchor-width",`${kr}px`),Nt.setProperty("--radix-popper-anchor-height",`${Dr}px`)}}),P&&hw({element:P,padding:p}),Ew({arrowWidth:$,arrowHeight:F}),b&&pw({strategy:"referenceHidden",...L})]}),[ne,te]=Vp(ee),V=Ze(S);Se(()=>{J&&(V==null||V())},[J,V]);const q=(n=K.arrow)==null?void 0:n.x,Y=(r=K.arrow)==null?void 0:r.y,U=((o=K.arrow)==null?void 0:o.centerOffset)!==0,[oe,I]=g.useState();return Se(()=>{j&&I(window.getComputedStyle(j).zIndex)},[j]),w.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:J?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(i=K.transformOrigin)==null?void 0:i.x,(l=K.transformOrigin)==null?void 0:l.y].join(" "),...((c=K.hide)==null?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(yw,{scope:u,placedSide:ne,onArrowChange:k,arrowX:q,arrowY:Y,shouldHideArrow:U,children:w.jsx(z.div,{"data-side":ne,"data-align":te,...E,ref:T,style:{...E.style,animation:J?void 0:"none"}})})})});Ip.displayName=Fs;var Np="PopperArrow",ww={top:"bottom",right:"left",bottom:"top",left:"right"},Fp=g.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=bw(Np,n),i=ww[o.placedSide];return w.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:w.jsx(vw,{...r,ref:t,style:{...r.style,display:"block"}})})});Fp.displayName=Np;function xw(e){return e!==null}var Ew=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:i,rects:l,middlewareData:c}=t,u=((n=c.arrow)==null?void 0:n.centerOffset)!==0,s=u?0:e.arrowWidth,a=u?0:e.arrowHeight,[d,f]=Vp(i),p={start:"0%",center:"50%",end:"100%"}[f],m=(((r=c.arrow)==null?void 0:r.x)??0)+s/2,h=(((o=c.arrow)==null?void 0:o.y)??0)+a/2;let v="",y="";return d==="bottom"?(v=u?p:`${m}px`,y=`${-a}px`):d==="top"?(v=u?p:`${m}px`,y=`${l.floating.height+a}px`):d==="right"?(v=`${-a}px`,y=u?p:`${h}px`):d==="left"&&(v=`${l.floating.width+a}px`,y=u?p:`${h}px`),{data:{x:v,y}}}});function Vp(e){const[t,n="center"]=e.split("-");return[t,n]}var Sw=kp,vr=Lp,yi=Ip,bi=Fp,ra="rovingFocusGroup.onEntryFocus",Cw={bubbles:!1,cancelable:!0},gr="RovingFocusGroup",[Ia,$p,_w]=cr(gr),[Pw,Mt]=xe(gr,[_w]),[Rw,Ow]=Pw(gr),Bp=g.forwardRef((e,t)=>w.jsx(Ia.Provider,{scope:e.__scopeRovingFocusGroup,children:w.jsx(Ia.Slot,{scope:e.__scopeRovingFocusGroup,children:w.jsx(Tw,{...e,ref:t})})}));Bp.displayName=gr;var Tw=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:s,preventScrollOnEntryFocus:a=!1,...d}=e,f=g.useRef(null),p=re(t,f),m=qt(i),[h,v]=Fe({prop:l,defaultProp:c??null,onChange:u,caller:gr}),[y,b]=g.useState(!1),x=Ze(s),S=$p(n),E=g.useRef(!1),[A,j]=g.useState(0);return g.useEffect(()=>{const O=f.current;if(O)return O.addEventListener(ra,x),()=>O.removeEventListener(ra,x)},[x]),w.jsx(Rw,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:h,onItemFocus:g.useCallback(O=>v(O),[v]),onItemShiftTab:g.useCallback(()=>b(!0),[]),onFocusableItemAdd:g.useCallback(()=>j(O=>O+1),[]),onFocusableItemRemove:g.useCallback(()=>j(O=>O-1),[]),children:w.jsx(z.div,{tabIndex:y||A===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:N(e.onMouseDown,()=>{E.current=!0}),onFocus:N(e.onFocus,O=>{const T=!E.current;if(O.target===O.currentTarget&&T&&!y){const P=new CustomEvent(ra,Cw);if(O.currentTarget.dispatchEvent(P),!P.defaultPrevented){const k=S().filter(H=>H.focusable),R=k.find(H=>H.active),$=k.find(H=>H.id===h),F=[R,$,...k].filter(Boolean).map(H=>H.ref.current);Hp(F,a)}}E.current=!1}),onBlur:N(e.onBlur,()=>b(!1))})})}),zp="RovingFocusGroupItem",Up=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:l,...c}=e,u=qe(),s=i||u,a=Ow(zp,n),d=a.currentTabStopId===s,f=$p(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=a;return g.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),w.jsx(Ia.ItemSlot,{scope:n,id:s,focusable:r,active:o,children:w.jsx(z.span,{tabIndex:d?0:-1,"data-orientation":a.orientation,...c,ref:t,onMouseDown:N(e.onMouseDown,v=>{r?a.onItemFocus(s):v.preventDefault()}),onFocus:N(e.onFocus,()=>a.onItemFocus(s)),onKeyDown:N(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){a.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=Aw(v,a.orientation,a.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let b=f().filter(x=>x.focusable).map(x=>x.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const x=b.indexOf(v.currentTarget);b=a.loop?kw(b,x+1):b.slice(x+1)}setTimeout(()=>Hp(b))}}),children:typeof l=="function"?l({isCurrentTabStop:d,hasTabStop:h!=null}):l})})});Up.displayName=zp;var jw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mw(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Aw(e,t,n){const r=Mw(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return jw[r]}function Hp(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function kw(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var wi=Bp,xi=Up,Na=["Enter"," "],Dw=["ArrowDown","PageUp","Home"],Gp=["ArrowUp","PageDown","End"],Lw=[...Dw,...Gp],Iw={ltr:[...Na,"ArrowRight"],rtl:[...Na,"ArrowLeft"]},Nw={ltr:["ArrowLeft"],rtl:["ArrowRight"]},yr="Menu",[tr,Fw,Vw]=cr(yr),[Zt,Wp]=xe(yr,[Vw,jt,Mt]),Ei=jt(),Xp=Mt(),[$w,Qt]=Zt(yr),[Bw,br]=Zt(yr),Kp=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:l=!0}=e,c=Ei(t),[u,s]=g.useState(null),a=g.useRef(!1),d=Ze(i),f=qt(o);return g.useEffect(()=>{const p=()=>{a.current=!0,document.addEventListener("pointerdown",m,{capture:!0,once:!0}),document.addEventListener("pointermove",m,{capture:!0,once:!0})},m=()=>a.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),w.jsx(Sw,{...c,children:w.jsx($w,{scope:t,open:n,onOpenChange:d,content:u,onContentChange:s,children:w.jsx(Bw,{scope:t,onClose:g.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:a,dir:f,modal:l,children:r})})})};Kp.displayName=yr;var zw="MenuAnchor",Vs=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ei(n);return w.jsx(vr,{...o,...r,ref:t})});Vs.displayName=zw;var $s="MenuPortal",[Uw,Yp]=Zt($s,{forceMount:void 0}),qp=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=Qt($s,t);return w.jsx(Uw,{scope:t,forceMount:n,children:w.jsx(Ve,{present:n||i.open,children:w.jsx(vf,{asChild:!0,container:o,children:r})})})};qp.displayName=$s;var He="MenuContent",[Hw,Bs]=Zt(He),Zp=g.forwardRef((e,t)=>{const n=Yp(He,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Qt(He,e.__scopeMenu),l=br(He,e.__scopeMenu);return w.jsx(tr.Provider,{scope:e.__scopeMenu,children:w.jsx(Ve,{present:r||i.open,children:w.jsx(tr.Slot,{scope:e.__scopeMenu,children:l.modal?w.jsx(Gw,{...o,ref:t}):w.jsx(Ww,{...o,ref:t})})})})}),Gw=g.forwardRef((e,t)=>{const n=Qt(He,e.__scopeMenu),r=g.useRef(null),o=re(t,r);return g.useEffect(()=>{const i=r.current;if(i)return fi(i)},[]),w.jsx(zs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:N(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Ww=g.forwardRef((e,t)=>{const n=Qt(He,e.__scopeMenu);return w.jsx(zs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Xw=_t("MenuContent.ScrollLock"),zs=g.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,v=Qt(He,n),y=br(He,n),b=Ei(n),x=Xp(n),S=Fw(n),[E,A]=g.useState(null),j=g.useRef(null),O=re(t,j,v.onContentChange),T=g.useRef(0),P=g.useRef(""),k=g.useRef(0),R=g.useRef(null),$=g.useRef("right"),F=g.useRef(0),H=m?fr:g.Fragment,B=m?{as:Xw,allowPinchZoom:!0}:void 0,X=L=>{var M,D;const ee=P.current+L,J=S().filter(Y=>!Y.disabled),K=document.activeElement,ne=(M=J.find(Y=>Y.ref.current===K))==null?void 0:M.textValue,te=J.map(Y=>Y.textValue),V=ix(te,ee,ne),q=(D=J.find(Y=>Y.textValue===V))==null?void 0:D.ref.current;(function Y(U){P.current=U,window.clearTimeout(T.current),U!==""&&(T.current=window.setTimeout(()=>Y(""),1e3))})(ee),q&&setTimeout(()=>q.focus())};g.useEffect(()=>()=>window.clearTimeout(T.current),[]),ci();const G=g.useCallback(L=>{var M,D;return $.current===((M=R.current)==null?void 0:M.side)&&sx(L,(D=R.current)==null?void 0:D.area)},[]);return w.jsx(Hw,{scope:n,searchRef:P,onItemEnter:g.useCallback(L=>{G(L)&&L.preventDefault()},[G]),onItemLeave:g.useCallback(L=>{var M;G(L)||((M=j.current)==null||M.focus(),A(null))},[G]),onTriggerLeave:g.useCallback(L=>{G(L)&&L.preventDefault()},[G]),pointerGraceTimerRef:k,onPointerGraceIntentChange:g.useCallback(L=>{R.current=L},[]),children:w.jsx(H,{...B,children:w.jsx(dr,{asChild:!0,trapped:o,onMountAutoFocus:N(i,L=>{var M;L.preventDefault(),(M=j.current)==null||M.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:w.jsx(Sn,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:w.jsx(wi,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:A,onEntryFocus:N(u,L=>{y.isUsingKeyboardRef.current||L.preventDefault()}),preventScrollOnEntryFocus:!0,children:w.jsx(yi,{role:"menu","aria-orientation":"vertical","data-state":ph(v.open),"data-radix-menu-content":"",dir:y.dir,...b,...h,ref:O,style:{outline:"none",...h.style},onKeyDown:N(h.onKeyDown,L=>{const M=L.target.closest("[data-radix-menu-content]")===L.currentTarget,D=L.ctrlKey||L.altKey||L.metaKey,ee=L.key.length===1;M&&(L.key==="Tab"&&L.preventDefault(),!D&&ee&&X(L.key));const J=j.current;if(L.target!==J||!Lw.includes(L.key))return;L.preventDefault();const K=S().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);Gp.includes(L.key)&&K.reverse(),rx(K)}),onBlur:N(e.onBlur,L=>{L.currentTarget.contains(L.target)||(window.clearTimeout(T.current),P.current="")}),onPointerMove:N(e.onPointerMove,nr(L=>{const M=L.target,D=F.current!==L.clientX;if(L.currentTarget.contains(M)&&D){const ee=L.clientX>F.current?"right":"left";$.current=ee,F.current=L.clientX}}))})})})})})})});Zp.displayName=He;var Kw="MenuGroup",Us=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(z.div,{role:"group",...r,ref:t})});Us.displayName=Kw;var Yw="MenuLabel",Qp=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(z.div,{...r,ref:t})});Qp.displayName=Yw;var Go="MenuItem",Cu="menu.itemSelect",Si=g.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=g.useRef(null),l=br(Go,e.__scopeMenu),c=Bs(Go,e.__scopeMenu),u=re(t,i),s=g.useRef(!1),a=()=>{const d=i.current;if(!n&&d){const f=new CustomEvent(Cu,{bubbles:!0,cancelable:!0});d.addEventListener(Cu,p=>r==null?void 0:r(p),{once:!0}),mf(d,f),f.defaultPrevented?s.current=!1:l.onClose()}};return w.jsx(Jp,{...o,ref:u,disabled:n,onClick:N(e.onClick,a),onPointerDown:d=>{var f;(f=e.onPointerDown)==null||f.call(e,d),s.current=!0},onPointerUp:N(e.onPointerUp,d=>{var f;s.current||(f=d.currentTarget)==null||f.click()}),onKeyDown:N(e.onKeyDown,d=>{const f=c.searchRef.current!=="";n||f&&d.key===" "||Na.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Si.displayName=Go;var Jp=g.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,l=Bs(Go,n),c=Xp(n),u=g.useRef(null),s=re(t,u),[a,d]=g.useState(!1),[f,p]=g.useState("");return g.useEffect(()=>{const m=u.current;m&&p((m.textContent??"").trim())},[i.children]),w.jsx(tr.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:w.jsx(xi,{asChild:!0,...c,focusable:!r,children:w.jsx(z.div,{role:"menuitem","data-highlighted":a?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:s,onPointerMove:N(e.onPointerMove,nr(m=>{r?l.onItemLeave(m):(l.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:N(e.onPointerLeave,nr(m=>l.onItemLeave(m))),onFocus:N(e.onFocus,()=>d(!0)),onBlur:N(e.onBlur,()=>d(!1))})})})}),qw="MenuCheckboxItem",eh=g.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return w.jsx(ih,{scope:e.__scopeMenu,checked:n,children:w.jsx(Si,{role:"menuitemcheckbox","aria-checked":Wo(n)?"mixed":n,...o,ref:t,"data-state":Gs(n),onSelect:N(o.onSelect,()=>r==null?void 0:r(Wo(n)?!0:!n),{checkForDefaultPrevented:!1})})})});eh.displayName=qw;var th="MenuRadioGroup",[Zw,Qw]=Zt(th,{value:void 0,onValueChange:()=>{}}),nh=g.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Ze(r);return w.jsx(Zw,{scope:e.__scopeMenu,value:n,onValueChange:i,children:w.jsx(Us,{...o,ref:t})})});nh.displayName=th;var rh="MenuRadioItem",oh=g.forwardRef((e,t)=>{const{value:n,...r}=e,o=Qw(rh,e.__scopeMenu),i=n===o.value;return w.jsx(ih,{scope:e.__scopeMenu,checked:i,children:w.jsx(Si,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Gs(i),onSelect:N(r.onSelect,()=>{var l;return(l=o.onValueChange)==null?void 0:l.call(o,n)},{checkForDefaultPrevented:!1})})})});oh.displayName=rh;var Hs="MenuItemIndicator",[ih,Jw]=Zt(Hs,{checked:!1}),ah=g.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Jw(Hs,n);return w.jsx(Ve,{present:r||Wo(i.checked)||i.checked===!0,children:w.jsx(z.span,{...o,ref:t,"data-state":Gs(i.checked)})})});ah.displayName=Hs;var ex="MenuSeparator",sh=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(z.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});sh.displayName=ex;var tx="MenuArrow",lh=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ei(n);return w.jsx(bi,{...o,...r,ref:t})});lh.displayName=tx;var nx="MenuSub",[Q2,uh]=Zt(nx),Wn="MenuSubTrigger",ch=g.forwardRef((e,t)=>{const n=Qt(Wn,e.__scopeMenu),r=br(Wn,e.__scopeMenu),o=uh(Wn,e.__scopeMenu),i=Bs(Wn,e.__scopeMenu),l=g.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=i,s={__scopeMenu:e.__scopeMenu},a=g.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return g.useEffect(()=>a,[a]),g.useEffect(()=>{const d=c.current;return()=>{window.clearTimeout(d),u(null)}},[c,u]),w.jsx(Vs,{asChild:!0,...s,children:w.jsx(Jp,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":ph(n.open),...e,ref:ai(t,o.onTriggerChange),onClick:d=>{var f;(f=e.onClick)==null||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:N(e.onPointerMove,nr(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(i.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),a()},100))})),onPointerLeave:N(e.onPointerLeave,nr(d=>{var f,p;a();const m=(f=n.content)==null?void 0:f.getBoundingClientRect();if(m){const h=(p=n.content)==null?void 0:p.dataset.side,v=h==="right",y=v?-5:5,b=m[v?"left":"right"],x=m[v?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:b,y:m.top},{x,y:m.top},{x,y:m.bottom},{x:b,y:m.bottom}],side:h}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:N(e.onKeyDown,d=>{var f;const p=i.searchRef.current!=="";e.disabled||p&&d.key===" "||Iw[r.dir].includes(d.key)&&(n.onOpenChange(!0),(f=n.content)==null||f.focus(),d.preventDefault())})})})});ch.displayName=Wn;var dh="MenuSubContent",fh=g.forwardRef((e,t)=>{const n=Yp(He,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Qt(He,e.__scopeMenu),l=br(He,e.__scopeMenu),c=uh(dh,e.__scopeMenu),u=g.useRef(null),s=re(t,u);return w.jsx(tr.Provider,{scope:e.__scopeMenu,children:w.jsx(Ve,{present:r||i.open,children:w.jsx(tr.Slot,{scope:e.__scopeMenu,children:w.jsx(zs,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:s,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:a=>{var d;l.isUsingKeyboardRef.current&&((d=u.current)==null||d.focus()),a.preventDefault()},onCloseAutoFocus:a=>a.preventDefault(),onFocusOutside:N(e.onFocusOutside,a=>{a.target!==c.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:N(e.onEscapeKeyDown,a=>{l.onClose(),a.preventDefault()}),onKeyDown:N(e.onKeyDown,a=>{var d;const f=a.currentTarget.contains(a.target),p=Nw[l.dir].includes(a.key);f&&p&&(i.onOpenChange(!1),(d=c.trigger)==null||d.focus(),a.preventDefault())})})})})})});fh.displayName=dh;function ph(e){return e?"open":"closed"}function Wo(e){return e==="indeterminate"}function Gs(e){return Wo(e)?"indeterminate":e?"checked":"unchecked"}function rx(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ox(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function ix(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=ox(e,Math.max(o,0));r.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function ax(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const c=t[i],u=t[l],s=c.x,a=c.y,d=u.x,f=u.y;a>r!=f>r&&n<(d-s)*(r-a)/(f-a)+s&&(o=!o)}return o}function sx(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return ax(n,t)}function nr(e){return t=>t.pointerType==="mouse"?e(t):void 0}var lx=Kp,ux=Vs,cx=qp,dx=Zp,fx=Us,px=Qp,hx=Si,mx=eh,vx=nh,gx=oh,yx=ah,bx=sh,wx=lh,xx=ch,Ex=fh,Ci="DropdownMenu",[Sx]=xe(Ci,[Wp]),Ae=Wp(),[Cx,hh]=Sx(Ci),mh=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:l,modal:c=!0}=e,u=Ae(t),s=g.useRef(null),[a,d]=Fe({prop:o,defaultProp:i??!1,onChange:l,caller:Ci});return w.jsx(Cx,{scope:t,triggerId:qe(),triggerRef:s,contentId:qe(),open:a,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(f=>!f),[d]),modal:c,children:w.jsx(lx,{...u,open:a,onOpenChange:d,dir:r,modal:c,children:n})})};mh.displayName=Ci;var vh="DropdownMenuTrigger",gh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=hh(vh,n),l=Ae(n);return w.jsx(ux,{asChild:!0,...l,children:w.jsx(z.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:ai(t,i.triggerRef),onPointerDown:N(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(i.onOpenToggle(),i.open||c.preventDefault())}),onKeyDown:N(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&i.onOpenToggle(),c.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});gh.displayName=vh;var _x="DropdownMenuPortal",yh=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ae(t);return w.jsx(cx,{...r,...n})};yh.displayName=_x;var bh="DropdownMenuContent",wh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hh(bh,n),i=Ae(n),l=g.useRef(!1);return w.jsx(dx,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:N(e.onCloseAutoFocus,c=>{var u;l.current||(u=o.triggerRef.current)==null||u.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:N(e.onInteractOutside,c=>{const u=c.detail.originalEvent,s=u.button===0&&u.ctrlKey===!0,a=u.button===2||s;(!o.modal||a)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});wh.displayName=bh;var Px="DropdownMenuGroup",Rx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(fx,{...o,...r,ref:t})});Rx.displayName=Px;var Ox="DropdownMenuLabel",xh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(px,{...o,...r,ref:t})});xh.displayName=Ox;var Tx="DropdownMenuItem",Eh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(hx,{...o,...r,ref:t})});Eh.displayName=Tx;var jx="DropdownMenuCheckboxItem",Mx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(mx,{...o,...r,ref:t})});Mx.displayName=jx;var Ax="DropdownMenuRadioGroup",kx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(vx,{...o,...r,ref:t})});kx.displayName=Ax;var Dx="DropdownMenuRadioItem",Lx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(gx,{...o,...r,ref:t})});Lx.displayName=Dx;var Ix="DropdownMenuItemIndicator",Nx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(yx,{...o,...r,ref:t})});Nx.displayName=Ix;var Fx="DropdownMenuSeparator",Sh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(bx,{...o,...r,ref:t})});Sh.displayName=Fx;var Vx="DropdownMenuArrow",$x=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(wx,{...o,...r,ref:t})});$x.displayName=Vx;var Bx="DropdownMenuSubTrigger",zx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(xx,{...o,...r,ref:t})});zx.displayName=Bx;var Ux="DropdownMenuSubContent",Hx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(Ex,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Hx.displayName=Ux;var Gx=mh,Wx=gh,Xx=yh,Kx=wh,Yx=xh,qx=Eh,Zx=Sh,Qx="Label",Ch=g.forwardRef((e,t)=>w.jsx(z.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Ch.displayName=Qx;var[Ws]=xe("Form"),Xs="Form",[Jx,wr]=Ws(Xs),[eE,_h]=Ws(Xs),tE=g.forwardRef((e,t)=>{const{__scopeForm:n,onClearServerErrors:r=()=>{},...o}=e,i=g.useRef(null),l=re(t,i),[c,u]=g.useState({}),s=g.useCallback(P=>c[P],[c]),a=g.useCallback((P,k)=>u(R=>({...R,[P]:{...R[P]??{},...k}})),[]),d=g.useCallback(P=>{u(k=>({...k,[P]:void 0})),b(k=>({...k,[P]:{}}))},[]),[f,p]=g.useState({}),m=g.useCallback(P=>f[P]??[],[f]),h=g.useCallback((P,k)=>{p(R=>({...R,[P]:[...R[P]??[],k]}))},[]),v=g.useCallback((P,k)=>{p(R=>({...R,[P]:(R[P]??[]).filter($=>$.id!==k)}))},[]),[y,b]=g.useState({}),x=g.useCallback(P=>y[P]??{},[y]),S=g.useCallback((P,k)=>{b(R=>({...R,[P]:{...R[P]??{},...k}}))},[]),[E,A]=g.useState({}),j=g.useCallback((P,k)=>{A(R=>{const $=new Set(R[P]).add(k);return{...R,[P]:$}})},[]),O=g.useCallback((P,k)=>{A(R=>{const $=new Set(R[P]);return $.delete(k),{...R,[P]:$}})},[]),T=g.useCallback(P=>Array.from(E[P]??[]).join(" ")||void 0,[E]);return w.jsx(Jx,{scope:n,getFieldValidity:s,onFieldValidityChange:a,getFieldCustomMatcherEntries:m,onFieldCustomMatcherEntryAdd:h,onFieldCustomMatcherEntryRemove:v,getFieldCustomErrors:x,onFieldCustomErrorsChange:S,onFieldValiditionClear:d,children:w.jsx(eE,{scope:n,onFieldMessageIdAdd:j,onFieldMessageIdRemove:O,getFieldDescription:T,children:w.jsx(z.form,{...o,ref:l,onInvalid:N(e.onInvalid,P=>{const k=Ph(P.currentTarget);k===P.target&&k.focus(),P.preventDefault()}),onSubmit:N(e.onSubmit,r,{checkForDefaultPrevented:!1}),onReset:N(e.onReset,r)})})})});tE.displayName=Xs;var Ks="FormField",[nE,Ys]=Ws(Ks),rE=g.forwardRef((e,t)=>{const{__scopeForm:n,name:r,serverInvalid:o=!1,...i}=e,l=wr(Ks,n).getFieldValidity(r),c=qe();return w.jsx(nE,{scope:n,id:c,name:r,serverInvalid:o,children:w.jsx(z.div,{"data-valid":Zs(l,o),"data-invalid":Qs(l,o),...i,ref:t})})});rE.displayName=Ks;var Fa="FormLabel",oE=g.forwardRef((e,t)=>{const{__scopeForm:n,...r}=e,o=wr(Fa,n),i=Ys(Fa,n),l=r.htmlFor||i.id,c=o.getFieldValidity(i.name);return w.jsx(Ch,{"data-valid":Zs(c,i.serverInvalid),"data-invalid":Qs(c,i.serverInvalid),...r,ref:t,htmlFor:l})});oE.displayName=Fa;var Do="FormControl",iE=g.forwardRef((e,t)=>{const{__scopeForm:n,...r}=e,o=wr(Do,n),i=Ys(Do,n),l=_h(Do,n),c=g.useRef(null),u=re(t,c),s=r.name||i.name,a=r.id||i.id,d=o.getFieldCustomMatcherEntries(s),{onFieldValidityChange:f,onFieldCustomErrorsChange:p,onFieldValiditionClear:m}=o,h=g.useCallback(async b=>{if(Rh(b.validity)){const R=oa(b.validity);f(s,R);return}const x=b.form?new FormData(b.form):new FormData,S=[b.value,x],E=[],A=[];d.forEach(R=>{mE(R,S)?A.push(R):vE(R)&&E.push(R)});const j=E.map(({id:R,match:$})=>[R,$(...S)]),O=Object.fromEntries(j),T=Object.values(O).some(Boolean),P=T;b.setCustomValidity(P?rr:"");const k=oa(b.validity);if(f(s,k),p(s,O),!T&&A.length>0){const R=A.map(({id:X,match:G})=>G(...S).then(L=>[X,L])),$=await Promise.all(R),F=Object.fromEntries($),H=Object.values(F).some(Boolean);b.setCustomValidity(H?rr:"");const B=oa(b.validity);f(s,B),p(s,F)}},[d,s,p,f]);g.useEffect(()=>{const b=c.current;if(b){const x=()=>h(b);return b.addEventListener("change",x),()=>b.removeEventListener("change",x)}},[h]);const v=g.useCallback(()=>{const b=c.current;b&&(b.setCustomValidity(""),m(s))},[s,m]);g.useEffect(()=>{var b;const x=(b=c.current)==null?void 0:b.form;if(x)return x.addEventListener("reset",v),()=>x.removeEventListener("reset",v)},[v]),g.useEffect(()=>{const b=c.current,x=b==null?void 0:b.closest("form");if(x&&i.serverInvalid){const S=Ph(x);S===b&&S.focus()}},[i.serverInvalid]);const y=o.getFieldValidity(s);return w.jsx(z.input,{"data-valid":Zs(y,i.serverInvalid),"data-invalid":Qs(y,i.serverInvalid),"aria-invalid":i.serverInvalid?!0:void 0,"aria-describedby":l.getFieldDescription(s),title:"",...r,ref:u,id:a,name:s,onInvalid:N(e.onInvalid,b=>{const x=b.currentTarget;h(x)}),onChange:N(e.onChange,b=>{v()})})});iE.displayName=Do;var rr="This value is not valid",aE={badInput:rr,patternMismatch:"This value does not match the required pattern",rangeOverflow:"This value is too large",rangeUnderflow:"This value is too small",stepMismatch:"This value does not match the required step",tooLong:"This value is too long",tooShort:"This value is too short",typeMismatch:"This value does not match the required type",valid:void 0,valueMissing:"This value is missing"},xr="FormMessage",sE=g.forwardRef((e,t)=>{const{match:n,name:r,...o}=e,i=Ys(xr,e.__scopeForm),l=r??i.name;return n===void 0?w.jsx(qs,{...o,ref:t,name:l,children:e.children||rr}):typeof n=="function"?w.jsx(uE,{match:n,...o,ref:t,name:l}):w.jsx(lE,{match:n,...o,ref:t,name:l})});sE.displayName=xr;var lE=g.forwardRef((e,t)=>{const{match:n,forceMatch:r=!1,name:o,children:i,...l}=e,c=wr(xr,l.__scopeForm).getFieldValidity(o);return r||c!=null&&c[n]?w.jsx(qs,{ref:t,...l,name:o,children:i??aE[n]}):null}),uE=g.forwardRef((e,t)=>{const{match:n,forceMatch:r=!1,name:o,id:i,children:l,...c}=e,u=wr(xr,c.__scopeForm),s=g.useRef(null),a=re(t,s),d=qe(),f=i??d,p=g.useMemo(()=>({id:f,match:n}),[f,n]),{onFieldCustomMatcherEntryAdd:m,onFieldCustomMatcherEntryRemove:h}=u;g.useEffect(()=>(m(o,p),()=>h(o,p.id)),[p,o,m,h]);const v=u.getFieldValidity(o),y=u.getFieldCustomErrors(o)[f];return r||v&&!Rh(v)&&y?w.jsx(qs,{id:f,ref:a,...c,name:o,children:l??rr}):null}),qs=g.forwardRef((e,t)=>{const{__scopeForm:n,id:r,name:o,...i}=e,l=_h(xr,n),c=qe(),u=r??c,{onFieldMessageIdAdd:s,onFieldMessageIdRemove:a}=l;return g.useEffect(()=>(s(o,u),()=>a(o,u)),[o,u,s,a]),w.jsx(z.span,{id:u,...i,ref:t})}),cE="FormSubmit",dE=g.forwardRef((e,t)=>{const{__scopeForm:n,...r}=e;return w.jsx(z.button,{type:"submit",...r,ref:t})});dE.displayName=cE;function oa(e){const t={};for(const n in e)t[n]=e[n];return t}function fE(e){return e instanceof HTMLElement}function pE(e){return"validity"in e}function hE(e){return pE(e)&&(e.validity.valid===!1||e.getAttribute("aria-invalid")==="true")}function Ph(e){const t=e.elements,[n]=Array.from(t).filter(fE).filter(hE);return n}function mE(e,t){return e.match.constructor.name==="AsyncFunction"||gE(e.match,t)}function vE(e){return e.match.constructor.name==="Function"}function gE(e,t){return e(...t)instanceof Promise}function Rh(e){let t=!1;for(const n in e){const r=n;if(r!=="valid"&&r!=="customError"&&e[r]){t=!0;break}}return t}function Zs(e,t){if((e==null?void 0:e.valid)===!0&&!t)return!0}function Qs(e,t){if((e==null?void 0:e.valid)===!1||t)return!0}function Xo(e,[t,n]){return Math.min(n,Math.max(t,e))}var Oh="Popover",[Th]=xe(Oh,[jt]),_i=jt(),[J2,Jt]=Th(Oh),jh="PopoverAnchor",yE=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Jt(jh,n),i=_i(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=o;return g.useEffect(()=>(l(),()=>c()),[l,c]),w.jsx(vr,{...i,...r,ref:t})});yE.displayName=jh;var Mh="PopoverTrigger",bE=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Jt(Mh,n),i=_i(n),l=re(t,o.triggerRef),c=w.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Dh(o.open),...r,ref:l,onClick:N(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:w.jsx(vr,{asChild:!0,...i,children:c})});bE.displayName=Mh;var wE="PopoverPortal",[ej,xE]=Th(wE,{forceMount:void 0}),bn="PopoverContent",EE=g.forwardRef((e,t)=>{const n=xE(bn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Jt(bn,e.__scopePopover);return w.jsx(Ve,{present:r||i.open,children:i.modal?w.jsx(CE,{...o,ref:t}):w.jsx(_E,{...o,ref:t})})});EE.displayName=bn;var SE=_t("PopoverContent.RemoveScroll"),CE=g.forwardRef((e,t)=>{const n=Jt(bn,e.__scopePopover),r=g.useRef(null),o=re(t,r),i=g.useRef(!1);return g.useEffect(()=>{const l=r.current;if(l)return fi(l)},[]),w.jsx(fr,{as:SE,allowPinchZoom:!0,children:w.jsx(Ah,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:N(e.onCloseAutoFocus,l=>{var c;l.preventDefault(),i.current||(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:N(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,s=c.button===2||u;i.current=s},{checkForDefaultPrevented:!1}),onFocusOutside:N(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),_E=g.forwardRef((e,t)=>{const n=Jt(bn,e.__scopePopover),r=g.useRef(!1),o=g.useRef(!1);return w.jsx(Ah,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=i.target;(c=n.triggerRef.current)!=null&&c.contains(u)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Ah=g.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:s,onInteractOutside:a,...d}=e,f=Jt(bn,n),p=_i(n);return ci(),w.jsx(dr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(Sn,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:a,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:s,onDismiss:()=>f.onOpenChange(!1),children:w.jsx(yi,{"data-state":Dh(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),kh="PopoverClose",PE=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Jt(kh,n);return w.jsx(z.button,{type:"button",...r,ref:t,onClick:N(e.onClick,()=>o.onOpenChange(!1))})});PE.displayName=kh;var RE="PopoverArrow",OE=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=_i(n);return w.jsx(bi,{...o,...r,ref:t})});OE.displayName=RE;function Dh(e){return e?"open":"closed"}var Js="Progress",el=100,[TE]=xe(Js),[jE,ME]=TE(Js),AE=g.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=DE,...l}=e;(o||o===0)&&!_u(o)&&console.error(LE(`${o}`,"Progress"));const c=_u(o)?o:el;r!==null&&!Pu(r,c)&&console.error(IE(`${r}`,"Progress"));const u=Pu(r,c)?r:null,s=Ko(u)?i(u,c):void 0;return w.jsx(jE,{scope:n,value:u,max:c,children:w.jsx(z.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":Ko(u)?u:void 0,"aria-valuetext":s,role:"progressbar","data-state":Ih(u,c),"data-value":u??void 0,"data-max":c,...l,ref:t})})});AE.displayName=Js;var Lh="ProgressIndicator",kE=g.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=ME(Lh,n);return w.jsx(z.div,{"data-state":Ih(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});kE.displayName=Lh;function DE(e,t){return`${Math.round(e/t*100)}%`}function Ih(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Ko(e){return typeof e=="number"}function _u(e){return Ko(e)&&!isNaN(e)&&e>0}function Pu(e,t){return Ko(e)&&!isNaN(e)&&e<=t&&e>=0}function LE(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${el}\`.`}function IE(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
92
92
  - a positive number
93
- - less than the value passed to \`max\` (or ${Qa} if no \`max\` prop is set)
93
+ - less than the value passed to \`max\` (or ${el} if no \`max\` prop is set)
94
94
  - \`null\` or \`undefined\` if the progress is indeterminate.
95
95
 
96
- Defaulting to \`null\`.`}var Ja="Radio",[PE,Dh]=Se(Ja),[RE,OE]=PE(Ja),Lh=g.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:l,value:c="on",onCheck:u,form:a,...s}=e,[d,f]=g.useState(null),p=re(t,v=>f(v)),m=g.useRef(!1),h=d?a||!!d.closest("form"):!0;return x.jsxs(RE,{scope:n,checked:o,disabled:l,children:[x.jsx(z.button,{type:"button",role:"radio","aria-checked":o,"data-state":Vh(o),"data-disabled":l?"":void 0,disabled:l,value:c,...s,ref:p,onClick:N(e.onClick,v=>{o||u==null||u(),h&&(m.current=v.isPropagationStopped(),m.current||v.stopPropagation())})}),h&&x.jsx(Fh,{control:d,bubbles:!m.current,name:r,value:c,checked:o,required:i,disabled:l,form:a,style:{transform:"translateX(-100%)"}})]})});Lh.displayName=Ja;var Ih="RadioIndicator",Nh=g.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=OE(Ih,n);return x.jsx(Fe,{present:r||i.checked,children:x.jsx(z.span,{"data-state":Vh(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});Nh.displayName=Ih;var TE="RadioBubbleInput",Fh=g.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const l=g.useRef(null),c=re(l,i),u=fr(n),a=pr(t);return g.useEffect(()=>{const s=l.current;if(!s)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(u!==n&&f){const p=new Event("click",{bubbles:r});f.call(s,n),s.dispatchEvent(p)}},[u,n,r]),x.jsx(z.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:c,style:{...o.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Fh.displayName=TE;function Vh(e){return e?"checked":"unchecked"}var jE=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ei="RadioGroup",[ME]=Se(Ei,[Cn,Dh]),$h=Cn(),Bh=Dh(),[AE,kE]=ME(Ei),DE=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:l=!1,disabled:c=!1,orientation:u,dir:a,loop:s=!0,onValueChange:d,...f}=e,p=$h(n),m=wn(a),[h,v]=at({prop:i,defaultProp:o??null,onChange:d,caller:Ei});return x.jsx(AE,{scope:n,name:r,required:l,disabled:c,value:h,onValueChange:v,children:x.jsx(La,{asChild:!0,...p,orientation:u,dir:m,loop:s,children:x.jsx(z.div,{role:"radiogroup","aria-required":l,"aria-orientation":u,"data-disabled":c?"":void 0,dir:m,...f,ref:t})})})});DE.displayName=Ei;var zh="RadioGroupItem",LE=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=kE(zh,n),l=i.disabled||r,c=$h(n),u=Bh(n),a=g.useRef(null),s=re(t,a),d=i.value===o.value,f=g.useRef(!1);return g.useEffect(()=>{const p=h=>{jE.includes(h.key)&&(f.current=!0)},m=()=>f.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",m)}},[]),x.jsx(Ia,{asChild:!0,...c,focusable:!l,active:d,children:x.jsx(Lh,{disabled:l,required:i.required,checked:d,...u,...o,name:i.name,ref:s,onCheck:()=>i.onValueChange(o.value),onKeyDown:N(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:N(o.onFocus,()=>{var p;f.current&&((p=a.current)==null||p.click())})})})});LE.displayName=zh;var IE="RadioGroupIndicator",NE=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Bh(n);return x.jsx(Nh,{...o,...r,ref:t})});NE.displayName=IE;var FE=[" ","Enter","ArrowUp","ArrowDown"],VE=[" ","Enter"],Si="Select",[el,Ci,$E]=ur(Si),[_n]=Se(Si,[$E,jt]),tl=jt(),[V2,Mt]=_n(Si),[$2,BE]=_n(Si),Hh="SelectTrigger",zE=g.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=tl(n),l=Mt(Hh,n),c=l.disabled||r,u=re(t,l.onTriggerChange),a=Ci(n),s=g.useRef("touch"),[d,f,p]=nm(h=>{const v=a().filter(w=>!w.disabled),y=v.find(w=>w.value===l.value),b=rm(v,h,y);b!==void 0&&l.onValueChange(b.value)}),m=h=>{c||(l.onOpenChange(!0),p()),h&&(l.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return x.jsx(mr,{asChild:!0,...i,children:x.jsx(z.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":tm(l.value)?"":void 0,...o,ref:u,onClick:N(o.onClick,h=>{h.currentTarget.focus(),s.current!=="mouse"&&m(h)}),onPointerDown:N(o.onPointerDown,h=>{s.current=h.pointerType;const v=h.target;v.hasPointerCapture(h.pointerId)&&v.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(m(h),h.preventDefault())}),onKeyDown:N(o.onKeyDown,h=>{const v=d.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&f(h.key),!(v&&h.key===" ")&&FE.includes(h.key)&&(m(),h.preventDefault())})})})});zE.displayName=Hh;var Uh="SelectValue",HE=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...c}=e,u=Mt(Uh,n),{onValueNodeHasChildrenChange:a}=u,s=i!==void 0,d=re(t,u.onValueNodeChange);return Ee(()=>{a(s)},[a,s]),x.jsx(z.span,{...c,ref:d,style:{pointerEvents:"none"},children:tm(u.value)?x.jsx(x.Fragment,{children:l}):i})});HE.displayName=Uh;var UE="SelectIcon",WE=g.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return x.jsx(z.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});WE.displayName=UE;var Gt="SelectContent",GE=g.forwardRef((e,t)=>{const n=Mt(Gt,e.__scopeSelect),[r,o]=g.useState();if(Ee(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?ri.createPortal(x.jsx(Wh,{scope:e.__scopeSelect,children:x.jsx(el.Slot,{scope:e.__scopeSelect,children:x.jsx("div",{children:e.children})})}),i):null}return x.jsx(Gh,{...e,ref:t})});GE.displayName=Gt;var Xe=10,[Wh,At]=_n(Gt),XE="SelectContentImpl",KE=_t("SelectContent.RemoveScroll"),Gh=g.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:c,sideOffset:u,align:a,alignOffset:s,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:v,...y}=e,b=Mt(Gt,n),[w,S]=g.useState(null),[E,A]=g.useState(null),j=re(t,V=>S(V)),[O,T]=g.useState(null),[_,k]=g.useState(null),P=Ci(n),[$,F]=g.useState(!1),U=g.useRef(!1);g.useEffect(()=>{if(w)return ci(w)},[w]),li();const B=g.useCallback(V=>{const[q,...Y]=P().map(I=>I.ref.current),[H]=Y.slice(-1),oe=document.activeElement;for(const I of V)if(I===oe||(I==null||I.scrollIntoView({block:"nearest"}),I===q&&E&&(E.scrollTop=0),I===H&&E&&(E.scrollTop=E.scrollHeight),I==null||I.focus(),document.activeElement!==oe))return},[P,E]),X=g.useCallback(()=>B([O,w]),[B,O,w]);g.useEffect(()=>{$&&X()},[$,X]);const{onOpenChange:W,triggerPointerDownPosRef:L}=b;g.useEffect(()=>{if(w){let V={x:0,y:0};const q=H=>{var oe,I;V={x:Math.abs(Math.round(H.pageX)-(((oe=L.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(H.pageY)-(((I=L.current)==null?void 0:I.y)??0))}},Y=H=>{V.x<=10&&V.y<=10?H.preventDefault():w.contains(H.target)||W(!1),document.removeEventListener("pointermove",q),L.current=null};return L.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",Y,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",Y,{capture:!0})}}},[w,W,L]),g.useEffect(()=>{const V=()=>W(!1);return window.addEventListener("blur",V),window.addEventListener("resize",V),()=>{window.removeEventListener("blur",V),window.removeEventListener("resize",V)}},[W]);const[M,D]=nm(V=>{const q=P().filter(oe=>!oe.disabled),Y=q.find(oe=>oe.ref.current===document.activeElement),H=rm(q,V,Y);H&&setTimeout(()=>H.ref.current.focus())}),ee=g.useCallback((V,q,Y)=>{const H=!U.current&&!Y;(b.value!==void 0&&b.value===q||H)&&(T(V),H&&(U.current=!0))},[b.value]),J=g.useCallback(()=>w==null?void 0:w.focus(),[w]),K=g.useCallback((V,q,Y)=>{const H=!U.current&&!Y;(b.value!==void 0&&b.value===q||H)&&k(V)},[b.value]),ne=r==="popper"?Ls:Xh,te=ne===Ls?{side:c,sideOffset:u,align:a,alignOffset:s,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:v}:{};return x.jsx(Wh,{scope:n,content:w,viewport:E,onViewportChange:A,itemRefCallback:ee,selectedItem:O,onItemLeave:J,itemTextRefCallback:K,focusSelectedItem:X,selectedItemText:_,position:r,isPositioned:$,searchRef:M,children:x.jsx(dr,{as:KE,allowPinchZoom:!0,children:x.jsx(cr,{asChild:!0,trapped:b.open,onMountAutoFocus:V=>{V.preventDefault()},onUnmountAutoFocus:N(o,V=>{var q;(q=b.trigger)==null||q.focus({preventScroll:!0}),V.preventDefault()}),children:x.jsx(xn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:V=>V.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:x.jsx(ne,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:V=>V.preventDefault(),...y,...te,onPlaced:()=>F(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:N(y.onKeyDown,V=>{const q=V.ctrlKey||V.altKey||V.metaKey;if(V.key==="Tab"&&V.preventDefault(),!q&&V.key.length===1&&D(V.key),["ArrowUp","ArrowDown","Home","End"].includes(V.key)){let Y=P().filter(H=>!H.disabled).map(H=>H.ref.current);if(["ArrowUp","End"].includes(V.key)&&(Y=Y.slice().reverse()),["ArrowUp","ArrowDown"].includes(V.key)){const H=V.target,oe=Y.indexOf(H);Y=Y.slice(oe+1)}setTimeout(()=>B(Y)),V.preventDefault()}})})})})})})});Gh.displayName=XE;var YE="SelectItemAlignedPosition",Xh=g.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Mt(Gt,n),l=At(Gt,n),[c,u]=g.useState(null),[a,s]=g.useState(null),d=re(t,j=>s(j)),f=Ci(n),p=g.useRef(!1),m=g.useRef(!0),{viewport:h,selectedItem:v,selectedItemText:y,focusSelectedItem:b}=l,w=g.useCallback(()=>{if(i.trigger&&i.valueNode&&c&&a&&h&&v&&y){const j=i.trigger.getBoundingClientRect(),O=a.getBoundingClientRect(),T=i.valueNode.getBoundingClientRect(),_=y.getBoundingClientRect();if(i.dir!=="rtl"){const H=_.left-O.left,oe=T.left-H,I=j.left-oe,de=j.width+I,ke=Math.max(de,O.width),$e=window.innerWidth-Xe,Dt=Go(oe,[Xe,Math.max(Xe,$e-ke)]);c.style.minWidth=de+"px",c.style.left=Dt+"px"}else{const H=O.right-_.right,oe=window.innerWidth-T.right-H,I=window.innerWidth-j.right-oe,de=j.width+I,ke=Math.max(de,O.width),$e=window.innerWidth-Xe,Dt=Go(oe,[Xe,Math.max(Xe,$e-ke)]);c.style.minWidth=de+"px",c.style.right=Dt+"px"}const k=f(),P=window.innerHeight-Xe*2,$=h.scrollHeight,F=window.getComputedStyle(a),U=parseInt(F.borderTopWidth,10),B=parseInt(F.paddingTop,10),X=parseInt(F.borderBottomWidth,10),W=parseInt(F.paddingBottom,10),L=U+B+$+W+X,M=Math.min(v.offsetHeight*5,L),D=window.getComputedStyle(h),ee=parseInt(D.paddingTop,10),J=parseInt(D.paddingBottom,10),K=j.top+j.height/2-Xe,ne=P-K,te=v.offsetHeight/2,V=v.offsetTop+te,q=U+B+V,Y=L-q;if(q<=K){const H=k.length>0&&v===k[k.length-1].ref.current;c.style.bottom="0px";const oe=a.clientHeight-h.offsetTop-h.offsetHeight,I=Math.max(ne,te+(H?J:0)+oe+X),de=q+I;c.style.height=de+"px"}else{const H=k.length>0&&v===k[0].ref.current;c.style.top="0px";const oe=Math.max(K,U+h.offsetTop+(H?ee:0)+te)+Y;c.style.height=oe+"px",h.scrollTop=q-K+h.offsetTop}c.style.margin=`${Xe}px 0`,c.style.minHeight=M+"px",c.style.maxHeight=P+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[f,i.trigger,i.valueNode,c,a,h,v,y,i.dir,r]);Ee(()=>w(),[w]);const[S,E]=g.useState();Ee(()=>{a&&E(window.getComputedStyle(a).zIndex)},[a]);const A=g.useCallback(j=>{j&&m.current===!0&&(w(),b==null||b(),m.current=!1)},[w,b]);return x.jsx(ZE,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:p,onScrollButtonChange:A,children:x.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:x.jsx(z.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Xh.displayName=YE;var qE="SelectPopperPosition",Ls=g.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Xe,...i}=e,l=tl(n);return x.jsx(vi,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ls.displayName=qE;var[ZE,nl]=_n(Gt,{}),Is="SelectViewport",QE=g.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=At(Is,n),l=nl(Is,n),c=re(t,i.onViewportChange),u=g.useRef(0);return x.jsxs(x.Fragment,{children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),x.jsx(el.Slot,{scope:n,children:x.jsx(z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:N(o.onScroll,a=>{const s=a.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=l;if(f!=null&&f.current&&d){const p=Math.abs(u.current-s.scrollTop);if(p>0){const m=window.innerHeight-Xe*2,h=parseFloat(d.style.minHeight),v=parseFloat(d.style.height),y=Math.max(h,v);if(y<m){const b=y+p,w=Math.min(m,b),S=b-w;d.style.height=w+"px",d.style.bottom==="0px"&&(s.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}u.current=s.scrollTop})})})]})});QE.displayName=Is;var Kh="SelectGroup",[JE,eS]=_n(Kh),tS=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ye();return x.jsx(JE,{scope:n,id:o,children:x.jsx(z.div,{role:"group","aria-labelledby":o,...r,ref:t})})});tS.displayName=Kh;var Yh="SelectLabel",nS=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=eS(Yh,n);return x.jsx(z.div,{id:o.id,...r,ref:t})});nS.displayName=Yh;var Ko="SelectItem",[rS,qh]=_n(Ko),Zh=g.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...l}=e,c=Mt(Ko,n),u=At(Ko,n),a=c.value===r,[s,d]=g.useState(i??""),[f,p]=g.useState(!1),m=re(t,b=>{var w;return(w=u.itemRefCallback)==null?void 0:w.call(u,b,r,o)}),h=Ye(),v=g.useRef("touch"),y=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return x.jsx(rS,{scope:n,value:r,disabled:o,textId:h,isSelected:a,onItemTextChange:g.useCallback(b=>{d(w=>w||((b==null?void 0:b.textContent)??"").trim())},[]),children:x.jsx(el.ItemSlot,{scope:n,value:r,disabled:o,textValue:s,children:x.jsx(z.div,{role:"option","aria-labelledby":h,"data-highlighted":f?"":void 0,"aria-selected":a&&f,"data-state":a?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:m,onFocus:N(l.onFocus,()=>p(!0)),onBlur:N(l.onBlur,()=>p(!1)),onClick:N(l.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:N(l.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:N(l.onPointerDown,b=>{v.current=b.pointerType}),onPointerMove:N(l.onPointerMove,b=>{var w;v.current=b.pointerType,o?(w=u.onItemLeave)==null||w.call(u):v.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(l.onPointerLeave,b=>{var w;b.currentTarget===document.activeElement&&((w=u.onItemLeave)==null||w.call(u))}),onKeyDown:N(l.onKeyDown,b=>{var w;((w=u.searchRef)==null?void 0:w.current)!==""&&b.key===" "||(VE.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});Zh.displayName=Ko;var Gn="SelectItemText",Qh=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,l=Mt(Gn,n),c=At(Gn,n),u=qh(Gn,n),a=BE(Gn,n),[s,d]=g.useState(null),f=re(t,y=>d(y),u.onItemTextChange,y=>{var b;return(b=c.itemTextRefCallback)==null?void 0:b.call(c,y,u.value,u.disabled)}),p=s==null?void 0:s.textContent,m=g.useMemo(()=>x.jsx("option",{value:u.value,disabled:u.disabled,children:p},u.value),[u.disabled,u.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:v}=a;return Ee(()=>(h(m),()=>v(m)),[h,v,m]),x.jsxs(x.Fragment,{children:[x.jsx(z.span,{id:u.textId,...i,ref:f}),u.isSelected&&l.valueNode&&!l.valueNodeHasChildren?ri.createPortal(i.children,l.valueNode):null]})});Qh.displayName=Gn;var Jh="SelectItemIndicator",oS=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return qh(Jh,n).isSelected?x.jsx(z.span,{"aria-hidden":!0,...r,ref:t}):null});oS.displayName=Jh;var Ns="SelectScrollUpButton",iS=g.forwardRef((e,t)=>{const n=At(Ns,e.__scopeSelect),r=nl(Ns,e.__scopeSelect),[o,i]=g.useState(!1),l=re(t,r.onScrollButtonChange);return Ee(()=>{if(n.viewport&&n.isPositioned){let c=function(){const a=u.scrollTop>0;i(a)};const u=n.viewport;return c(),u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?x.jsx(em,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:u}=n;c&&u&&(c.scrollTop=c.scrollTop-u.offsetHeight)}}):null});iS.displayName=Ns;var Fs="SelectScrollDownButton",sS=g.forwardRef((e,t)=>{const n=At(Fs,e.__scopeSelect),r=nl(Fs,e.__scopeSelect),[o,i]=g.useState(!1),l=re(t,r.onScrollButtonChange);return Ee(()=>{if(n.viewport&&n.isPositioned){let c=function(){const a=u.scrollHeight-u.clientHeight,s=Math.ceil(u.scrollTop)<a;i(s)};const u=n.viewport;return c(),u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?x.jsx(em,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:u}=n;c&&u&&(c.scrollTop=c.scrollTop+u.offsetHeight)}}):null});sS.displayName=Fs;var em=g.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=At("SelectScrollButton",n),l=g.useRef(null),c=Ci(n),u=g.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return g.useEffect(()=>()=>u(),[u]),Ee(()=>{var a;const s=c().find(d=>d.ref.current===document.activeElement);(a=s==null?void 0:s.ref.current)==null||a.scrollIntoView({block:"nearest"})},[c]),x.jsx(z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:N(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:N(o.onPointerMove,()=>{var a;(a=i.onItemLeave)==null||a.call(i),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:N(o.onPointerLeave,()=>{u()})})}),aS="SelectSeparator",lS=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return x.jsx(z.div,{"aria-hidden":!0,...r,ref:t})});lS.displayName=aS;var Vs="SelectArrow",uS=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=tl(n),i=Mt(Vs,n),l=At(Vs,n);return i.open&&l.position==="popper"?x.jsx(gi,{...o,...r,ref:t}):null});uS.displayName=Vs;var cS="SelectBubbleInput",dS=g.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=g.useRef(null),i=re(r,o),l=fr(t);return g.useEffect(()=>{const c=o.current;if(!c)return;const u=window.HTMLSelectElement.prototype,a=Object.getOwnPropertyDescriptor(u,"value").set;if(l!==t&&a){const s=new Event("change",{bubbles:!0});a.call(c,t),c.dispatchEvent(s)}},[l,t]),x.jsx(z.select,{...n,style:{...wf,...n.style},ref:i,defaultValue:t})});dS.displayName=cS;function tm(e){return e===""||e===void 0}function nm(e){const t=qe(e),n=g.useRef(""),r=g.useRef(0),o=g.useCallback(l=>{const c=n.current+l;t(c),(function u(a){n.current=a,window.clearTimeout(r.current),a!==""&&(r.current=window.setTimeout(()=>u(""),1e3))})(c)},[t]),i=g.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function rm(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=fS(e,Math.max(o,0));r.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function fS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var pS=Zh,hS=Qh,om=["PageUp","PageDown"],im=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],sm={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Pn="Slider",[$s,mS,vS]=ur(Pn),[am]=Se(Pn,[vS]),[gS,_i]=am(Pn),yS=g.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:l="horizontal",disabled:c=!1,minStepsBetweenThumbs:u=0,defaultValue:a=[r],value:s,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:m,...h}=e,v=g.useRef(new Set),y=g.useRef(0),b=l==="horizontal"?bS:wS,[w=[],S]=at({prop:s,defaultProp:a,onChange:_=>{var k;(k=[...v.current][y.current])==null||k.focus(),d(_)}}),E=g.useRef(w);function A(_){const k=OS(w,_);T(_,k)}function j(_){T(_,y.current)}function O(){const _=E.current[y.current];w[y.current]!==_&&f(w)}function T(_,k,{commit:P}={commit:!1}){const $=AS(i),F=kS(Math.round((_-r)/i)*i+r,$),U=Go(F,[r,o]);S((B=[])=>{const X=PS(B,U,k);if(MS(X,u*i)){y.current=X.indexOf(U);const W=String(X)!==String(B);return W&&P&&f(X),W?X:B}else return B})}return x.jsx(gS,{scope:e.__scopeSlider,name:n,disabled:c,min:r,max:o,valueIndexToChangeRef:y,thumbs:v.current,values:w,orientation:l,form:m,children:x.jsx($s.Provider,{scope:e.__scopeSlider,children:x.jsx($s.Slot,{scope:e.__scopeSlider,children:x.jsx(b,{"aria-disabled":c,"data-disabled":c?"":void 0,...h,ref:t,onPointerDown:N(h.onPointerDown,()=>{c||(E.current=w)}),min:r,max:o,inverted:p,onSlideStart:c?void 0:A,onSlideMove:c?void 0:j,onSlideEnd:c?void 0:O,onHomeKeyDown:()=>!c&&T(r,0,{commit:!0}),onEndKeyDown:()=>!c&&T(o,w.length-1,{commit:!0}),onStepKeyDown:({event:_,direction:k})=>{if(!c){const P=om.includes(_.key)||_.shiftKey&&im.includes(_.key)?10:1,$=y.current,F=w[$],U=i*P*k;T(F+U,$,{commit:!0})}}})})})})});yS.displayName=Pn;var[lm,um]=am(Pn,{startEdge:"left",endEdge:"right",size:"width",direction:1}),bS=g.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:l,onSlideMove:c,onSlideEnd:u,onStepKeyDown:a,...s}=e,[d,f]=g.useState(null),p=re(t,w=>f(w)),m=g.useRef(void 0),h=wn(o),v=h==="ltr",y=v&&!i||!v&&i;function b(w){const S=m.current||d.getBoundingClientRect(),E=[0,S.width],A=rl(E,y?[n,r]:[r,n]);return m.current=S,A(w-S.left)}return x.jsx(lm,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:x.jsx(cm,{dir:h,"data-orientation":"horizontal",...s,ref:p,style:{...s.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const S=b(w.clientX);l==null||l(S)},onSlideMove:w=>{const S=b(w.clientX);c==null||c(S)},onSlideEnd:()=>{m.current=void 0,u==null||u()},onStepKeyDown:w=>{const S=sm[y?"from-left":"from-right"].includes(w.key);a==null||a({event:w,direction:S?-1:1})}})})}),wS=g.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...a}=e,s=g.useRef(null),d=re(t,s),f=g.useRef(void 0),p=!o;function m(h){const v=f.current||s.current.getBoundingClientRect(),y=[0,v.height],b=rl(y,p?[r,n]:[n,r]);return f.current=v,b(h-v.top)}return x.jsx(lm,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:x.jsx(cm,{"data-orientation":"vertical",...a,ref:d,style:{...a.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:h=>{const v=m(h.clientY);i==null||i(v)},onSlideMove:h=>{const v=m(h.clientY);l==null||l(v)},onSlideEnd:()=>{f.current=void 0,c==null||c()},onStepKeyDown:h=>{const v=sm[p?"from-bottom":"from-top"].includes(h.key);u==null||u({event:h,direction:v?-1:1})}})})}),cm=g.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:l,onEndKeyDown:c,onStepKeyDown:u,...a}=e,s=_i(Pn,n);return x.jsx(z.span,{...a,ref:t,onKeyDown:N(e.onKeyDown,d=>{d.key==="Home"?(l(d),d.preventDefault()):d.key==="End"?(c(d),d.preventDefault()):om.concat(im).includes(d.key)&&(u(d),d.preventDefault())}),onPointerDown:N(e.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),s.thumbs.has(f)?f.focus():r(d)}),onPointerMove:N(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:N(e.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),i(d))})})}),dm="SliderTrack",xS=g.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=_i(dm,n);return x.jsx(z.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});xS.displayName=dm;var Bs="SliderRange",ES=g.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=_i(Bs,n),i=um(Bs,n),l=g.useRef(null),c=re(t,l),u=o.values.length,a=o.values.map(f=>pm(f,o.min,o.max)),s=u>1?Math.min(...a):0,d=100-Math.max(...a);return x.jsx(z.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:c,style:{...e.style,[i.startEdge]:s+"%",[i.endEdge]:d+"%"}})});ES.displayName=Bs;var zs="SliderThumb",SS=g.forwardRef((e,t)=>{const n=mS(e.__scopeSlider),[r,o]=g.useState(null),i=re(t,c=>o(c)),l=g.useMemo(()=>r?n().findIndex(c=>c.ref.current===r):-1,[n,r]);return x.jsx(CS,{...e,ref:i,index:l})}),CS=g.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...i}=e,l=_i(zs,n),c=um(zs,n),[u,a]=g.useState(null),s=re(t,b=>a(b)),d=u?l.form||!!u.closest("form"):!0,f=pr(u),p=l.values[r],m=p===void 0?0:pm(p,l.min,l.max),h=RS(r,l.values.length),v=f==null?void 0:f[c.size],y=v?TS(v,m,c.direction):0;return g.useEffect(()=>{if(u)return l.thumbs.add(u),()=>{l.thumbs.delete(u)}},[u,l.thumbs]),x.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:`calc(${m}% + ${y}px)`},children:[x.jsx($s.ItemSlot,{scope:e.__scopeSlider,children:x.jsx(z.span,{role:"slider","aria-label":e["aria-label"]||h,"aria-valuemin":l.min,"aria-valuenow":p,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,tabIndex:l.disabled?void 0:0,...i,ref:s,style:p===void 0?{display:"none"}:e.style,onFocus:N(e.onFocus,()=>{l.valueIndexToChangeRef.current=r})})}),d&&x.jsx(fm,{name:o??(l.name?l.name+(l.values.length>1?"[]":""):void 0),form:l.form,value:p},r)]})});SS.displayName=zs;var _S="RadioBubbleInput",fm=g.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=g.useRef(null),i=re(o,r),l=fr(t);return g.useEffect(()=>{const c=o.current;if(!c)return;const u=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(u,"value").set;if(l!==t&&a){const s=new Event("input",{bubbles:!0});a.call(c,t),c.dispatchEvent(s)}},[l,t]),x.jsx(z.input,{style:{display:"none"},...n,ref:i,defaultValue:t})});fm.displayName=_S;function PS(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function pm(e,t,n){const r=100/(n-t)*(e-t);return Go(r,[0,100])}function RS(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function OS(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function TS(e,t,n){const r=e/2,o=rl([0,50],[0,r]);return(r-o(t)*n)*n}function jS(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function MS(e,t){if(t>0){const n=jS(e);return Math.min(...n)>=t}return!0}function rl(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function AS(e){return(String(e).split(".")[1]||"").length}function kS(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Pi="Switch",[DS]=Se(Pi),[LS,IS]=DS(Pi),NS=g.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:l,disabled:c,value:u="on",onCheckedChange:a,form:s,...d}=e,[f,p]=g.useState(null),m=re(t,w=>p(w)),h=g.useRef(!1),v=f?s||!!f.closest("form"):!0,[y,b]=at({prop:o,defaultProp:i??!1,onChange:a,caller:Pi});return x.jsxs(LS,{scope:n,checked:y,disabled:c,children:[x.jsx(z.button,{type:"button",role:"switch","aria-checked":y,"aria-required":l,"data-state":vm(y),"data-disabled":c?"":void 0,disabled:c,value:u,...d,ref:m,onClick:N(e.onClick,w=>{b(S=>!S),v&&(h.current=w.isPropagationStopped(),h.current||w.stopPropagation())})}),v&&x.jsx(mm,{control:f,bubbles:!h.current,name:r,value:u,checked:y,required:l,disabled:c,form:s,style:{transform:"translateX(-100%)"}})]})});NS.displayName=Pi;var hm="SwitchThumb",FS=g.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=IS(hm,n);return x.jsx(z.span,{"data-state":vm(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});FS.displayName=hm;var VS="SwitchBubbleInput",mm=g.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const l=g.useRef(null),c=re(l,i),u=fr(n),a=pr(t);return g.useEffect(()=>{const s=l.current;if(!s)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(u!==n&&f){const p=new Event("click",{bubbles:r});f.call(s,n),s.dispatchEvent(p)}},[u,n,r]),x.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:c,style:{...o.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});mm.displayName=VS;function vm(e){return e?"checked":"unchecked"}var Ri="Tabs",[$S]=Se(Ri,[Cn]),gm=Cn(),[BS,ol]=$S(Ri),zS=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:l="horizontal",dir:c,activationMode:u="automatic",...a}=e,s=wn(c),[d,f]=at({prop:r,onChange:o,defaultProp:i??"",caller:Ri});return x.jsx(BS,{scope:n,baseId:Ye(),value:d,onValueChange:f,orientation:l,dir:s,activationMode:u,children:x.jsx(z.div,{dir:s,"data-orientation":l,...a,ref:t})})});zS.displayName=Ri;var ym="TabsList",HS=g.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=ol(ym,n),l=gm(n);return x.jsx(La,{asChild:!0,...l,orientation:i.orientation,dir:i.dir,loop:r,children:x.jsx(z.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});HS.displayName=ym;var bm="TabsTrigger",US=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,l=ol(bm,n),c=gm(n),u=xm(l.baseId,r),a=Em(l.baseId,r),s=r===l.value;return x.jsx(Ia,{asChild:!0,...c,focusable:!o,active:s,children:x.jsx(z.button,{type:"button",role:"tab","aria-selected":s,"aria-controls":a,"data-state":s?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...i,ref:t,onMouseDown:N(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?l.onValueChange(r):d.preventDefault()}),onKeyDown:N(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&l.onValueChange(r)}),onFocus:N(e.onFocus,()=>{const d=l.activationMode!=="manual";!s&&!o&&d&&l.onValueChange(r)})})})});US.displayName=bm;var wm="TabsContent",WS=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...l}=e,c=ol(wm,n),u=xm(c.baseId,r),a=Em(c.baseId,r),s=r===c.value,d=g.useRef(s);return g.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),x.jsx(Fe,{present:o||s,children:({present:f})=>x.jsx(z.div,{"data-state":s?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!f,id:a,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&i})})});WS.displayName=wm;function xm(e,t){return`${e}-trigger-${t}`}function Em(e,t){return`${e}-content-${t}`}var[Oi]=Se("Tooltip",[jt]),il=jt(),GS="TooltipProvider",_u="tooltip.open",[B2,Sm]=Oi(GS),Cm="Tooltip",[z2,Ti]=Oi(Cm),Hs="TooltipTrigger",XS=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ti(Hs,n),i=Sm(Hs,n),l=il(n),c=g.useRef(null),u=re(t,c,o.onTriggerChange),a=g.useRef(!1),s=g.useRef(!1),d=g.useCallback(()=>a.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),x.jsx(mr,{asChild:!0,...l,children:x.jsx(z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:u,onPointerMove:N(e.onPointerMove,f=>{f.pointerType!=="touch"&&!s.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),s.current=!0)}),onPointerLeave:N(e.onPointerLeave,()=>{o.onTriggerLeave(),s.current=!1}),onPointerDown:N(e.onPointerDown,()=>{o.open&&o.onClose(),a.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:N(e.onFocus,()=>{a.current||o.onOpen()}),onBlur:N(e.onBlur,o.onClose),onClick:N(e.onClick,o.onClose)})})});XS.displayName=Hs;var KS="TooltipPortal",[H2,YS]=Oi(KS,{forceMount:void 0}),gn="TooltipContent",qS=g.forwardRef((e,t)=>{const n=YS(gn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=Ti(gn,e.__scopeTooltip);return x.jsx(Fe,{present:r||l.open,children:l.disableHoverableContent?x.jsx(_m,{side:o,...i,ref:t}):x.jsx(ZS,{side:o,...i,ref:t})})}),ZS=g.forwardRef((e,t)=>{const n=Ti(gn,e.__scopeTooltip),r=Sm(gn,e.__scopeTooltip),o=g.useRef(null),i=re(t,o),[l,c]=g.useState(null),{trigger:u,onClose:a}=n,s=o.current,{onPointerInTransitChange:d}=r,f=g.useCallback(()=>{c(null),d(!1)},[d]),p=g.useCallback((m,h)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},b=nC(y,v.getBoundingClientRect()),w=rC(y,b),S=oC(h.getBoundingClientRect()),E=sC([...w,...S]);c(E),d(!0)},[d]);return g.useEffect(()=>()=>f(),[f]),g.useEffect(()=>{if(u&&s){const m=v=>p(v,s),h=v=>p(v,u);return u.addEventListener("pointerleave",m),s.addEventListener("pointerleave",h),()=>{u.removeEventListener("pointerleave",m),s.removeEventListener("pointerleave",h)}}},[u,s,p,f]),g.useEffect(()=>{if(l){const m=h=>{const v=h.target,y={x:h.clientX,y:h.clientY},b=(u==null?void 0:u.contains(v))||(s==null?void 0:s.contains(v)),w=!iC(y,l);b?f():w&&(f(),a())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[u,s,l,a,f]),x.jsx(_m,{...e,ref:i})}),[QS,JS]=Oi(Cm,{isInside:!1}),eC=Pg("TooltipContent"),_m=g.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:l,...c}=e,u=Ti(gn,n),a=il(n),{onClose:s}=u;return g.useEffect(()=>(document.addEventListener(_u,s),()=>document.removeEventListener(_u,s)),[s]),g.useEffect(()=>{if(u.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(u.trigger)&&s()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[u.trigger,s]),x.jsx(xn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d=>d.preventDefault(),onDismiss:s,children:x.jsxs(vi,{"data-state":u.stateAttribute,...a,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[x.jsx(eC,{children:r}),x.jsx(QS,{scope:n,isInside:!0,children:x.jsx(Vg,{id:u.contentId,role:"tooltip",children:o||r})})]})})});qS.displayName=gn;var Pm="TooltipArrow",tC=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=il(n);return JS(Pm,n).isInside?null:x.jsx(gi,{...o,...r,ref:t})});tC.displayName=Pm;function nC(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function rC(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function oC(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function iC(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const c=t[i],u=t[l],a=c.x,s=c.y,d=u.x,f=u.y;s>r!=f>r&&n<(d-a)*(r-s)/(f-s)+a&&(o=!o)}return o}function sC(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),aC(t)}function aC(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],l=n[n.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}R.forwardRef(({children:e,className:t,...n},r)=>x.jsx(py,{className:he("overflow-hidden rounded-xl shadow-(--box-shadow-accordion)",t),ref:r,...n,children:e}));R.forwardRef(({children:e,className:t,triggerIcon:n,...r},o)=>x.jsx(hy,{className:"flex",children:x.jsxs(my,{className:he("group flex h-14 flex-1 cursor-pointer items-center justify-between px-6 text-[15px] leading-none bg-white space-x-2",t),ref:o,...r,children:[e,n??x.jsx(Ag,{className:"size-3 shrink-0 transition-transform duration-300 ease-in-out group-data-[state=open]:rotate-180 fill-primary-blue"})]})}));const sl=R.createContext({});function al(e){const t=R.useRef(null);return t.current===null&&(t.current=e()),t.current}const Rm=typeof window<"u",Om=Rm?R.useLayoutEffect:R.useEffect,ji=R.createContext(null);function ll(e,t){e.indexOf(t)===-1&&e.push(t)}function ul(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const st=(e,t,n)=>n>t?t:n<e?e:n;function Us(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Rn=()=>{},mt=()=>{};var Pu;typeof process<"u"&&((Pu=process.env)==null?void 0:Pu.NODE_ENV)!=="production"&&(Rn=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Us(t,n))},mt=(e,t,n)=>{if(!e)throw new Error(Us(t,n))});const vt={},Tm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function jm(e){return typeof e=="object"&&e!==null}const Mm=e=>/^0[^.\s]+$/u.test(e);function cl(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ue=e=>e,lC=(e,t)=>n=>t(e(n)),xr=(...e)=>e.reduce(lC),rr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class dl{constructor(){this.subscriptions=[]}add(t){return ll(this.subscriptions,t),()=>ul(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const l=this.subscriptions[i];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const rt=e=>e*1e3,ze=e=>e/1e3;function Am(e,t){return t?e*(1e3/t):0}const Ru=new Set;function fl(e,t,n){e||Ru.has(t)||(console.warn(Us(t,n)),Ru.add(t))}const km=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,uC=1e-7,cC=12;function dC(e,t,n,r,o){let i,l,c=0;do l=t+(n-t)/2,i=km(l,r,o)-e,i>0?n=l:t=l;while(Math.abs(i)>uC&&++c<cC);return l}function Er(e,t,n,r){if(e===t&&n===r)return Ue;const o=i=>dC(i,0,1,e,n);return i=>i===0||i===1?i:km(o(i),t,r)}const Dm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Lm=e=>t=>1-e(1-t),Im=Er(.33,1.53,.69,.99),pl=Lm(Im),Nm=Dm(pl),Fm=e=>(e*=2)<1?.5*pl(e):.5*(2-Math.pow(2,-10*(e-1))),hl=e=>1-Math.sin(Math.acos(e)),Vm=Lm(hl),$m=Dm(hl),fC=Er(.42,0,1,1),pC=Er(0,0,.58,1),Bm=Er(.42,0,.58,1),hC=e=>Array.isArray(e)&&typeof e[0]!="number",zm=e=>Array.isArray(e)&&typeof e[0]=="number",Ou={linear:Ue,easeIn:fC,easeInOut:Bm,easeOut:pC,circIn:hl,circInOut:$m,circOut:Vm,backIn:pl,backInOut:Nm,backOut:Im,anticipate:Fm},mC=e=>typeof e=="string",Tu=e=>{if(zm(e)){mt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Er(t,n,r,o)}else if(mC(e))return mt(Ou[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Ou[e];return e},zr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function vC(e,t){let n=new Set,r=new Set,o=!1,i=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function u(s){l.has(s)&&(a.schedule(s),e()),s(c)}const a={schedule:(s,d=!1,f=!1)=>{const p=f&&o?n:r;return d&&l.add(s),p.has(s)||p.add(s),s},cancel:s=>{r.delete(s),l.delete(s)},process:s=>{if(c=s,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(u),n.clear(),o=!1,i&&(i=!1,a.process(s))}};return a}const gC=40;function Hm(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,l=zr.reduce((y,b)=>(y[b]=vC(i),y),{}),{setup:c,read:u,resolveKeyframes:a,preUpdate:s,update:d,preRender:f,render:p,postRender:m}=l,h=()=>{const y=vt.useManualTiming?o.timestamp:performance.now();n=!1,vt.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(y-o.timestamp,gC),1)),o.timestamp=y,o.isProcessing=!0,c.process(o),u.process(o),a.process(o),s.process(o),d.process(o),f.process(o),p.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))},v=()=>{n=!0,r=!0,o.isProcessing||e(h)};return{schedule:zr.reduce((y,b)=>{const w=l[b];return y[b]=(S,E=!1,A=!1)=>(n||v(),w.schedule(S,E,A)),y},{}),cancel:y=>{for(let b=0;b<zr.length;b++)l[zr[b]].cancel(y)},state:o,steps:l}}const{schedule:me,cancel:Ot,state:_e,steps:ts}=Hm(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ue,!0);let Do;function yC(){Do=void 0}const je={now:()=>(Do===void 0&&je.set(_e.isProcessing||vt.useManualTiming?_e.timestamp:performance.now()),Do),set:e=>{Do=e,queueMicrotask(yC)}},Um=e=>t=>typeof t=="string"&&t.startsWith(e),Wm=Um("--"),bC=Um("var(--"),ml=e=>bC(e)?wC.test(e.split("/*")[0].trim()):!1,wC=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ju(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const On={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},or={...On,transform:e=>st(0,1,e)},Hr={...On,default:1},Yn=e=>Math.round(e*1e5)/1e5,vl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xC(e){return e==null}const EC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,gl=(e,t)=>n=>!!(typeof n=="string"&&EC.test(n)&&n.startsWith(e)||t&&!xC(n)&&Object.prototype.hasOwnProperty.call(n,t)),Gm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,l,c]=r.match(vl);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},SC=e=>st(0,255,e),ns={...On,transform:e=>Math.round(SC(e))},Bt={test:gl("rgb","red"),parse:Gm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ns.transform(e)+", "+ns.transform(t)+", "+ns.transform(n)+", "+Yn(or.transform(r))+")"};function CC(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Ws={test:gl("#"),parse:CC,transform:Bt.transform},Sr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Et=Sr("deg"),ot=Sr("%"),G=Sr("px"),_C=Sr("vh"),PC=Sr("vw"),Mu={...ot,parse:e=>ot.parse(e)/100,transform:e=>ot.transform(e*100)},rn={test:gl("hsl","hue"),parse:Gm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ot.transform(Yn(t))+", "+ot.transform(Yn(n))+", "+Yn(or.transform(r))+")"},xe={test:e=>Bt.test(e)||Ws.test(e)||rn.test(e),parse:e=>Bt.test(e)?Bt.parse(e):rn.test(e)?rn.parse(e):Ws.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Bt.transform(e):rn.transform(e),getAnimatableNone:e=>{const t=xe.parse(e);return t.alpha=0,xe.transform(t)}},RC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function OC(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(vl))==null?void 0:t.length)||0)+(((n=e.match(RC))==null?void 0:n.length)||0)>0}const Xm="number",Km="color",TC="var",jC="var(",Au="${}",MC=/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 ir(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const l=t.replace(MC,c=>(xe.test(c)?(r.color.push(i),o.push(Km),n.push(xe.parse(c))):c.startsWith(jC)?(r.var.push(i),o.push(TC),n.push(c)):(r.number.push(i),o.push(Xm),n.push(parseFloat(c))),++i,Au)).split(Au);return{values:n,split:l,indexes:r,types:o}}function Ym(e){return ir(e).values}function qm(e){const{split:t,types:n}=ir(e),r=t.length;return o=>{let i="";for(let l=0;l<r;l++)if(i+=t[l],o[l]!==void 0){const c=n[l];c===Xm?i+=Yn(o[l]):c===Km?i+=xe.transform(o[l]):i+=o[l]}return i}}const AC=e=>typeof e=="number"?0:xe.test(e)?xe.getAnimatableNone(e):e;function kC(e){const t=Ym(e);return qm(e)(t.map(AC))}const Tt={test:OC,parse:Ym,createTransformer:qm,getAnimatableNone:kC};function rs(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 DC({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,l=0;if(!t)o=i=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;o=rs(u,c,e+1/3),i=rs(u,c,e),l=rs(u,c,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(l*255),alpha:r}}function Yo(e,t){return n=>n>0?t:e}const ye=(e,t,n)=>e+(t-e)*n,os=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},LC=[Ws,Bt,rn],IC=e=>LC.find(t=>t.test(e));function ku(e){const t=IC(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===rn&&(n=DC(n)),n}const Du=(e,t)=>{const n=ku(e),r=ku(t);if(!n||!r)return Yo(e,t);const o={...n};return i=>(o.red=os(n.red,r.red,i),o.green=os(n.green,r.green,i),o.blue=os(n.blue,r.blue,i),o.alpha=ye(n.alpha,r.alpha,i),Bt.transform(o))},Gs=new Set(["none","hidden"]);function NC(e,t){return Gs.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function FC(e,t){return n=>ye(e,t,n)}function yl(e){return typeof e=="number"?FC:typeof e=="string"?ml(e)?Yo:xe.test(e)?Du:BC:Array.isArray(e)?Zm:typeof e=="object"?xe.test(e)?Du:VC:Yo}function Zm(e,t){const n=[...e],r=n.length,o=e.map((i,l)=>yl(i)(i,t[l]));return i=>{for(let l=0;l<r;l++)n[l]=o[l](i);return n}}function VC(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=yl(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function $C(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],l=e.indexes[i][r[i]],c=e.values[l]??0;n[o]=c,r[i]++}return n}const BC=(e,t)=>{const n=Tt.createTransformer(t),r=ir(e),o=ir(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Gs.has(e)&&!o.values.length||Gs.has(t)&&!r.values.length?NC(e,t):xr(Zm($C(r,o),o.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"),Yo(e,t))};function Qm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ye(e,t,n):yl(e)(e,t)}const zC=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>me.update(t,n),stop:()=>Ot(t),now:()=>_e.isProcessing?_e.timestamp:je.now()}},Jm=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},qo=2e4;function bl(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<qo;)t+=n,r=e.next(t);return t>=qo?1/0:t}function HC(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(bl(r),qo);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:ze(o)}}const UC=5;function ev(e,t,n){const r=Math.max(t-UC,0);return Am(n-e(r),t-r)}const ge={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},is=.001;function WC({duration:e=ge.duration,bounce:t=ge.bounce,velocity:n=ge.velocity,mass:r=ge.mass}){let o,i;Rn(e<=rt(ge.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let l=1-t;l=st(ge.minDamping,ge.maxDamping,l),e=st(ge.minDuration,ge.maxDuration,ze(e)),l<1?(o=a=>{const s=a*l,d=s*e,f=s-n,p=Xs(a,l),m=Math.exp(-d);return is-f/p*m},i=a=>{const s=a*l*e,d=s*n+n,f=Math.pow(l,2)*Math.pow(a,2)*e,p=Math.exp(-s),m=Xs(Math.pow(a,2),l);return(-o(a)+is>0?-1:1)*((d-f)*p)/m}):(o=a=>{const s=Math.exp(-a*e),d=(a-n)*e+1;return-is+s*d},i=a=>{const s=Math.exp(-a*e),d=(n-a)*(e*e);return s*d});const c=5/e,u=XC(o,i,c);if(e=rt(e),isNaN(u))return{stiffness:ge.stiffness,damping:ge.damping,duration:e};{const a=Math.pow(u,2)*r;return{stiffness:a,damping:l*2*Math.sqrt(r*a),duration:e}}}const GC=12;function XC(e,t,n){let r=n;for(let o=1;o<GC;o++)r=r-e(r)/t(r);return r}function Xs(e,t){return e*Math.sqrt(1-t*t)}const KC=["duration","bounce"],YC=["stiffness","damping","mass"];function Lu(e,t){return t.some(n=>e[n]!==void 0)}function qC(e){let t={velocity:ge.velocity,stiffness:ge.stiffness,damping:ge.damping,mass:ge.mass,isResolvedFromDuration:!1,...e};if(!Lu(e,YC)&&Lu(e,KC))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*st(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ge.mass,stiffness:o,damping:i}}else{const n=WC(e);t={...t,...n,mass:ge.mass},t.isResolvedFromDuration=!0}return t}function Zo(e=ge.visualDuration,t=ge.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:i},{stiffness:u,damping:a,mass:s,duration:d,velocity:f,isResolvedFromDuration:p}=qC({...n,velocity:-ze(n.velocity||0)}),m=f||0,h=a/(2*Math.sqrt(u*s)),v=l-i,y=ze(Math.sqrt(u/s)),b=Math.abs(v)<5;r||(r=b?ge.restSpeed.granular:ge.restSpeed.default),o||(o=b?ge.restDelta.granular:ge.restDelta.default);let w;if(h<1){const E=Xs(y,h);w=A=>{const j=Math.exp(-h*y*A);return l-j*((m+h*y*v)/E*Math.sin(E*A)+v*Math.cos(E*A))}}else if(h===1)w=E=>l-Math.exp(-y*E)*(v+(m+y*v)*E);else{const E=y*Math.sqrt(h*h-1);w=A=>{const j=Math.exp(-h*y*A),O=Math.min(E*A,300);return l-j*((m+h*y*v)*Math.sinh(O)+E*v*Math.cosh(O))/E}}const S={calculatedDuration:p&&d||null,next:E=>{const A=w(E);if(p)c.done=E>=d;else{let j=E===0?m:0;h<1&&(j=E===0?rt(m):ev(w,E,A));const O=Math.abs(j)<=r,T=Math.abs(l-A)<=o;c.done=O&&T}return c.value=c.done?l:A,c},toString:()=>{const E=Math.min(bl(S),qo),A=Jm(j=>S.next(E*j).value,E,30);return E+"ms "+A},toTransition:()=>{}};return S}Zo.applyToOptions=e=>{const t=HC(e,100,Zo);return e.ease=t.ease,e.duration=rt(t.duration),e.type="keyframes",e};function Ks({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:l,min:c,max:u,restDelta:a=.5,restSpeed:s}){const d=e[0],f={done:!1,value:d},p=O=>c!==void 0&&O<c||u!==void 0&&O>u,m=O=>c===void 0?u:u===void 0||Math.abs(c-O)<Math.abs(u-O)?c:u;let h=n*t;const v=d+h,y=l===void 0?v:l(v);y!==v&&(h=y-d);const b=O=>-h*Math.exp(-O/r),w=O=>y+b(O),S=O=>{const T=b(O),_=w(O);f.done=Math.abs(T)<=a,f.value=f.done?y:_};let E,A;const j=O=>{p(f.value)&&(E=O,A=Zo({keyframes:[f.value,m(f.value)],velocity:ev(w,O,f.value),damping:o,stiffness:i,restDelta:a,restSpeed:s}))};return j(0),{calculatedDuration:null,next:O=>{let T=!1;return!A&&E===void 0&&(T=!0,S(O),j(O)),E!==void 0&&O>=E?A.next(O-E):(!T&&S(O),f)}}}function ZC(e,t,n){const r=[],o=n||vt.mix||Qm,i=e.length-1;for(let l=0;l<i;l++){let c=o(e[l],e[l+1]);if(t){const u=Array.isArray(t)?t[l]||Ue:t;c=xr(u,c)}r.push(c)}return r}function QC(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(mt(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=ZC(t,r,o),u=c.length,a=s=>{if(l&&s<e[0])return t[0];let d=0;if(u>1)for(;d<e.length-2&&!(s<e[d+1]);d++);const f=rr(e[d],e[d+1],s);return c[d](f)};return n?s=>a(st(e[0],e[i-1],s)):a}function JC(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=rr(0,t,r);e.push(ye(n,1,o))}}function e_(e){const t=[0];return JC(t,e.length-1),t}function t_(e,t){return e.map(n=>n*t)}function n_(e,t){return e.map(()=>t||Bm).splice(0,e.length-1)}function on({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=hC(r)?r.map(Tu):Tu(r),i={done:!1,value:t[0]},l=t_(n&&n.length===t.length?n:e_(t),e),c=QC(l,t,{ease:Array.isArray(o)?o:n_(t,o)});return{calculatedDuration:e,next:u=>(i.value=c(u),i.done=u>=e,i)}}const r_=e=>e!==null;function wl(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(r_),l=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||r===void 0?i[l]:r}const o_={decay:Ks,inertia:Ks,tween:on,keyframes:on,spring:Zo};function tv(e){typeof e.type=="string"&&(e.type=o_[e.type])}class xl{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 i_=e=>e/100;class El extends xl{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var n,r;const{motionValue:o}=this.options;o&&o.updatedAt!==je.now()&&this.tick(je.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(n=this.options).onStop)==null||r.call(n))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;tv(t);const{type:n=on,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:l=0}=t;let{keyframes:c}=t;const u=n||on;process.env.NODE_ENV!=="production"&&u!==on&&mt(c.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${c}`,"spring-two-frames"),u!==on&&typeof c[0]!="number"&&(this.mixKeyframes=xr(i_,Qm(c[0],c[1])),c=[0,100]);const a=u({...t,keyframes:c});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...c].reverse(),velocity:-l})),a.calculatedDuration===null&&(a.calculatedDuration=bl(a));const{calculatedDuration:s}=a;this.calculatedDuration=s,this.resolvedDuration=s+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=a}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:o,mixKeyframes:i,mirroredGenerator:l,resolvedDuration:c,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:a=0,keyframes:s,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:h,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-a*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,S=r;if(d){const O=Math.min(this.currentTime,o)/c;let T=Math.floor(O),_=O%1;!_&&O>=1&&(_=1),_===1&&T--,T=Math.min(T,d+1),T%2&&(f==="reverse"?(_=1-_,p&&(_-=p/c)):f==="mirror"&&(S=l)),w=st(0,1,_)*c}const E=b?{done:!1,value:s[0]}:S.next(w);i&&(E.value=i(E.value));let{done:A}=E;!b&&u!==null&&(A=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return j&&m!==Ks&&(E.value=wl(s,this.options,v,this.speed)),h&&h(E.value),j&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return ze(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ze(t)}get time(){return ze(this.currentTime)}set time(t){var n;t=rt(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),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(je.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ze(this.currentTime))}play(){var t,n;if(this.isStopped)return;const{driver:r=zC,startTime:o}=this.options;this.driver||(this.driver=r(l=>this.tick(l))),(n=(t=this.options).onPlay)==null||n.call(t);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=o??i),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(je.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}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){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function s_(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const zt=e=>e*180/Math.PI,Ys=e=>{const t=zt(Math.atan2(e[1],e[0]));return qs(t)},a_={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ys,rotateZ:Ys,skewX:e=>zt(Math.atan(e[1])),skewY:e=>zt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},qs=e=>(e=e%360,e<0&&(e+=360),e),Iu=Ys,Nu=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Fu=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),l_={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Nu,scaleY:Fu,scale:e=>(Nu(e)+Fu(e))/2,rotateX:e=>qs(zt(Math.atan2(e[6],e[5]))),rotateY:e=>qs(zt(Math.atan2(-e[2],e[0]))),rotateZ:Iu,rotate:Iu,skewX:e=>zt(Math.atan(e[4])),skewY:e=>zt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Zs(e){return e.includes("scale")?1:0}function Qs(e,t){if(!e||e==="none")return Zs(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=l_,o=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=a_,o=c}if(!o)return Zs(t);const i=r[t],l=o[1].split(",").map(c_);return typeof i=="function"?i(l):l[i]}const u_=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Qs(n,t)};function c_(e){return parseFloat(e.trim())}const Tn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jn=new Set(Tn),Vu=e=>e===On||e===G,d_=new Set(["x","y","z"]),f_=Tn.filter(e=>!d_.has(e));function p_(e){const t=[];return f_.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const St={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-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})=>Qs(t,"x"),y:(e,{transform:t})=>Qs(t,"y")};St.translateX=St.x;St.translateY=St.y;const Ht=new Set;let Js=!1,ea=!1,ta=!1;function nv(){if(ea){const e=Array.from(Ht).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=p_(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,l])=>{var c;(c=r.getValue(i))==null||c.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ea=!1,Js=!1,Ht.forEach(e=>e.complete(ta)),Ht.clear()}function rv(){Ht.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ea=!0)})}function h_(){ta=!0,rv(),nv(),ta=!1}class Sl{constructor(t,n,r,o,i,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(Ht.add(this),Js||(Js=!0,me.read(rv),me.resolveKeyframes(nv))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o==null?void 0:o.get(),l=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),o&&i===void 0&&o.set(t[0])}s_(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ht.delete(this)}cancel(){this.state==="scheduled"&&(Ht.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const m_=e=>e.startsWith("--");function v_(e,t,n){m_(t)?e.style.setProperty(t,n):e.style[t]=n}const g_=cl(()=>window.ScrollTimeline!==void 0),y_={};function b_(e,t){const n=cl(e);return()=>y_[t]??n()}const ov=b_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Xn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,$u={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xn([0,.65,.55,1]),circOut:Xn([.55,0,1,.45]),backIn:Xn([.31,.01,.66,-.59]),backOut:Xn([.33,1.53,.69,.99])};function iv(e,t){if(e)return typeof e=="function"?ov()?Jm(e,t):"ease-out":zm(e)?Xn(e):Array.isArray(e)?e.map(n=>iv(n,t)||$u.easeOut):$u[e]}function w_(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:l="loop",ease:c="easeOut",times:u}={},a=void 0){const s={[t]:n};u&&(s.offset=u);const d=iv(c,o);Array.isArray(d)&&(s.easing=d);const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:l==="reverse"?"alternate":"normal"};return a&&(f.pseudoElement=a),e.animate(s,f)}function sv(e){return typeof e=="function"&&"applyToOptions"in e}function x_({type:e,...t}){return sv(e)&&ov()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class E_ extends xl{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:l=!1,finalKeyframe:c,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=l,this.options=t,mt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const a=x_(t);this.animation=w_(n,r,o,a,i),a.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const s=wl(o,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(s):v_(n,r,s),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}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(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var t,n;const r=((n=(t=this.animation.effect)==null?void 0:t.getComputedTiming)==null?void 0:n.call(t).duration)||0;return ze(Number(r))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ze(t)}get time(){return ze(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=rt(t)}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,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&g_()?(this.animation.timeline=t,Ue):n(this)}}const av={anticipate:Fm,backInOut:Nm,circInOut:$m};function S_(e){return e in av}function C_(e){typeof e.ease=="string"&&S_(e.ease)&&(e.ease=av[e.ease])}const ss=10;class __ extends E_{constructor(t){C_(t),tv(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new El({...l,autoplay:!1}),u=Math.max(ss,je.now()-this.startTime),a=st(0,ss,u-ss);n.setWithVelocity(c.sample(Math.max(0,u-a)).value,c.sample(u).value,a),c.stop()}}const Bu=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tt.test(e)||e==="0")&&!e.startsWith("url("));function P_(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 R_(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],l=Bu(o,t),c=Bu(i,t);return Rn(l===c,`You are trying to animate ${t} from "${o}" to "${i}". "${l?i:o}" is not an animatable value.`,"value-not-animatable"),!l||!c?!1:P_(e)||(n==="spring"||sv(n))&&r}function na(e){e.duration=0,e.type="keyframes"}const O_=new Set(["opacity","clipPath","filter","transform"]),T_=cl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function j_(e){var t;const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:l,type:c}=e;if(!(((t=n==null?void 0:n.owner)==null?void 0:t.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:a}=n.owner.getProps();return T_()&&r&&O_.has(r)&&(r!=="transform"||!a)&&!u&&!o&&i!=="mirror"&&l!==0&&c!=="inertia"}const M_=40;class A_ extends xl{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:l="loop",keyframes:c,name:u,motionValue:a,element:s,...d}){var f;super(),this.stop=()=>{var h,v;this._animation&&(this._animation.stop(),(h=this.stopTimeline)==null||h.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=je.now();const p={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:l,name:u,motionValue:a,element:s,...d},m=(s==null?void 0:s.KeyframeResolver)||Sl;this.keyframeResolver=new m(c,(h,v,y)=>this.onKeyframesResolved(h,v,p,!y),u,a,s),(f=this.keyframeResolver)==null||f.scheduleResolve()}onKeyframesResolved(t,n,r,o){var i,l;this.keyframeResolver=void 0;const{name:c,type:u,velocity:a,delay:s,isHandoff:d,onUpdate:f}=r;this.resolvedAt=je.now(),R_(t,c,u,a)||((vt.instantAnimations||!s)&&(f==null||f(wl(t,r,n))),t[0]=t[t.length-1],na(r),r.repeat=0);const p={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>M_?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!d&&j_(p),h=(l=(i=p.motionValue)==null?void 0:i.owner)==null?void 0:l.current,v=m?new __({...p,element:h}):new El(p);v.finished.then(()=>{this.notifyFinished()}).catch(Ue),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),h_()),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(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function lv(e,t,n,r=0,o=1){const i=Array.from(e).sort((u,a)=>u.sortNodePosition(a)).indexOf(t),l=e.size,c=(l-1)*r;return typeof n=="function"?n(i,l):o===1?i*r:c-i*r}const k_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function D_(e){const t=k_.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const L_=4;function uv(e,t,n=1){mt(n<=L_,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=D_(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const l=i.trim();return Tm(l)?parseFloat(l):l}return ml(o)?uv(o,t,n+1):o}const I_={type:"spring",stiffness:500,damping:25,restSpeed:10},N_=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),F_={type:"keyframes",duration:.8},V_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$_=(e,{keyframes:t})=>t.length>2?F_:jn.has(e)?e.startsWith("scale")?N_(t[1]):I_:V_,B_=e=>e!==null;function z_(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(B_),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}function Cl(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function H_({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:l,repeatDelay:c,from:u,elapsed:a,...s}){return!!Object.keys(s).length}const _l=(e,t,n,r={},o,i)=>l=>{const c=Cl(r,e)||{},u=c.delay||r.delay||0;let{elapsed:a=0}=r;a=a-rt(u);const s={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-a,onUpdate:f=>{t.set(f),c.onUpdate&&c.onUpdate(f)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:i?void 0:o};H_(c)||Object.assign(s,$_(e,s)),s.duration&&(s.duration=rt(s.duration)),s.repeatDelay&&(s.repeatDelay=rt(s.repeatDelay)),s.from!==void 0&&(s.keyframes[0]=s.from);let d=!1;if((s.type===!1||s.duration===0&&!s.repeatDelay)&&(na(s),s.delay===0&&(d=!0)),(vt.instantAnimations||vt.skipAnimations)&&(d=!0,na(s),s.delay=0),s.allowFlatten=!c.type&&!c.ease,d&&!i&&t.get()!==void 0){const f=z_(s.keyframes,c);if(f!==void 0){me.update(()=>{s.onUpdate(f),s.onComplete()});return}}return c.isSync?new El(s):new A_(s)};function zu(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Pl(e,t,n,r){if(typeof t=="function"){const[o,i]=zu(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=zu(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function pn(e,t,n){const r=e.getProps();return Pl(r,t,n!==void 0?n:r.custom,e)}const cv=new Set(["width","height","top","left","right","bottom",...Tn]),Hu=30,U_=e=>!isNaN(parseFloat(e));class W_{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=je.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=je.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=U_(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&fl(!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 dl);const r=this.events[t].add(n);return t==="change"?()=>{r(),me.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(){var t;(t=this.events.change)==null||t.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=je.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Hu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Hu);return Am(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yn(e,t){return new W_(e,t)}const ra=e=>Array.isArray(e);function G_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yn(n))}function X_(e){return ra(e)?e[e.length-1]||0:e}function K_(e,t){const n=pn(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const l in i){const c=X_(i[l]);G_(e,l,c)}}const Pe=e=>!!(e&&e.getVelocity);function Y_(e){return!!(Pe(e)&&e.add)}function oa(e,t){const n=e.getValue("willChange");if(Y_(n))return n.add(t);if(!n&&vt.WillChange){const r=new vt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Rl(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const q_="framerAppearId",dv="data-"+Rl(q_);function fv(e){return e.props[dv]}function Z_({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function pv(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(i=r);const u=[],a=o&&e.animationState&&e.animationState.getState()[o];for(const s in c){const d=e.getValue(s,e.latestValues[s]??null),f=c[s];if(f===void 0||a&&Z_(a,s))continue;const p={delay:n,...Cl(i||{},s)},m=d.get();if(m!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===m&&!p.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){const y=fv(e);if(y){const b=window.MotionHandoffAnimation(y,s,me);b!==null&&(p.startTime=b,h=!0)}}oa(e,s),d.start(_l(s,d,f,e.shouldReduceMotion&&cv.has(s)?{type:!1}:p,e,h));const v=d.animation;v&&u.push(v)}return l&&Promise.all(u).then(()=>{me.update(()=>{l&&K_(e,l)})}),u}function ia(e,t,n={}){var r;const o=pn(e,t,n.type==="exit"?(r=e.presenceContext)==null?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const l=o?()=>Promise.all(pv(e,o,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(a=0)=>{const{delayChildren:s=0,staggerChildren:d,staggerDirection:f}=i;return Q_(e,t,a,s,d,f,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[a,s]=u==="beforeChildren"?[l,c]:[c,l];return a().then(()=>s())}else return Promise.all([l(),c(n.delay)])}function Q_(e,t,n=0,r=0,o=0,i=1,l){const c=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),c.push(ia(u,t,{...l,delay:n+(typeof r=="function"?0:r)+lv(e.variantChildren,u,r,o,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(c)}function J_(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>ia(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=ia(e,t,n);else{const o=typeof t=="function"?pn(e,t,n.custom):t;r=Promise.all(pv(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const eP={test:e=>e==="auto",parse:e=>e},hv=e=>t=>t.test(e),mv=[On,G,ot,Et,PC,_C,eP],Uu=e=>mv.find(hv(e));function tP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Mm(e):!0}const nP=new Set(["brightness","contrast","saturate","opacity"]);function rP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(vl)||[];if(!r)return e;const o=n.replace(r,"");let i=nP.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const oP=/\b([a-z-]*)\(.*?\)/gu,sa={...Tt,getAnimatableNone:e=>{const t=e.match(oP);return t?t.map(rP).join(" "):e}},Wu={...On,transform:Math.round},iP={rotate:Et,rotateX:Et,rotateY:Et,rotateZ:Et,scale:Hr,scaleX:Hr,scaleY:Hr,scaleZ:Hr,skew:Et,skewX:Et,skewY:Et,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:or,originX:Mu,originY:Mu,originZ:G},Ol={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,radius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,inset:G,insetBlock:G,insetBlockStart:G,insetBlockEnd:G,insetInline:G,insetInlineStart:G,insetInlineEnd:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,paddingBlock:G,paddingBlockStart:G,paddingBlockEnd:G,paddingInline:G,paddingInlineStart:G,paddingInlineEnd:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,marginBlock:G,marginBlockStart:G,marginBlockEnd:G,marginInline:G,marginInlineStart:G,marginInlineEnd:G,backgroundPositionX:G,backgroundPositionY:G,...iP,zIndex:Wu,fillOpacity:or,strokeOpacity:or,numOctaves:Wu},sP={...Ol,color:xe,backgroundColor:xe,outlineColor:xe,fill:xe,stroke:xe,borderColor:xe,borderTopColor:xe,borderRightColor:xe,borderBottomColor:xe,borderLeftColor:xe,filter:sa,WebkitFilter:sa},vv=e=>sP[e];function gv(e,t){let n=vv(e);return n!==sa&&(n=Tt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const aP=new Set(["auto","none","0"]);function lP(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!aP.has(i)&&ir(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=gv(n,o)}class uP extends Sl{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let s=0;s<t.length;s++){let d=t[s];if(typeof d=="string"&&(d=d.trim(),ml(d))){const f=uv(d,n.current);f!==void 0&&(t[s]=f),s===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!cv.has(r)||t.length!==2)return;const[o,i]=t,l=Uu(o),c=Uu(i),u=ju(o),a=ju(i);if(u!==a&&St[r]){this.needsMeasurement=!0;return}if(l!==c)if(Vu(l)&&Vu(c))for(let s=0;s<t.length;s++){const d=t[s];typeof d=="string"&&(t[s]=parseFloat(d))}else St[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||tP(t[o]))&&r.push(o);r.length&&lP(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=St[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const l=o.length-1,c=o[l];o[l]=St[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),(t=this.removedTransforms)!=null&&t.length&&this.removedTransforms.forEach(([u,a])=>{n.getValue(u).set(a)}),this.resolveNoneKeyframes()}}function cP(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const o=document.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const yv=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function bv(e){return jm(e)&&"offsetHeight"in e}const{schedule:Tl}=Hm(queueMicrotask,!1),Ke={x:!1,y:!1};function wv(){return Ke.x||Ke.y}function dP(e){return e==="x"||e==="y"?Ke[e]?null:(Ke[e]=!0,()=>{Ke[e]=!1}):Ke.x||Ke.y?null:(Ke.x=Ke.y=!0,()=>{Ke.x=Ke.y=!1})}function xv(e,t){const n=cP(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Gu(e){return!(e.pointerType==="touch"||wv())}function fP(e,t,n={}){const[r,o,i]=xv(e,n),l=c=>{if(!Gu(c))return;const{target:u}=c,a=t(u,c);if(typeof a!="function"||!u)return;const s=d=>{Gu(d)&&(a(d),u.removeEventListener("pointerleave",s))};u.addEventListener("pointerleave",s,o)};return r.forEach(c=>{c.addEventListener("pointerenter",l,o)}),i}const Ev=(e,t)=>t?e===t?!0:Ev(e,t.parentElement):!1,jl=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,pP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Sv(e){return pP.has(e.tagName)||e.isContentEditable===!0}const Lo=new WeakSet;function Xu(e){return t=>{t.key==="Enter"&&e(t)}}function as(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const hP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Xu(()=>{if(Lo.has(n))return;as(n,"down");const o=Xu(()=>{as(n,"up")}),i=()=>as(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Ku(e){return jl(e)&&!wv()}function mP(e,t,n={}){const[r,o,i]=xv(e,n),l=c=>{const u=c.currentTarget;if(!Ku(c))return;Lo.add(u);const a=t(u,c),s=(p,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Lo.has(u)&&Lo.delete(u),Ku(p)&&typeof a=="function"&&a(p,{success:m})},d=p=>{s(p,u===window||u===document||n.useGlobalTarget||Ev(u,p.target))},f=p=>{s(p,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,o),bv(c)&&(c.addEventListener("focus",u=>hP(u,o)),!Sv(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),i}function Cv(e){return jm(e)&&"ownerSVGElement"in e}function vP(e){return Cv(e)&&e.tagName==="svg"}const gP=[...mv,xe,Tt],yP=e=>gP.find(hv(e)),Yu=()=>({translate:0,scale:1,origin:0,originPoint:0}),sn=()=>({x:Yu(),y:Yu()}),qu=()=>({min:0,max:0}),Ce=()=>({x:qu(),y:qu()}),aa={current:null},_v={current:!1},bP=typeof window<"u";function wP(){if(_v.current=!0,!!bP)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>aa.current=e.matches;e.addEventListener("change",t),t()}else aa.current=!1}const xP=new WeakMap;function Mi(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function sr(e){return typeof e=="string"||Array.isArray(e)}const Ml=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Al=["initial",...Ml];function Ai(e){return Mi(e.animate)||Al.some(t=>sr(e[t]))}function Pv(e){return!!(Ai(e)||e.variants)}function EP(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Pe(o))e.addValue(r,o);else if(Pe(i))e.addValue(r,yn(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=e.getStaticValue(r);e.addValue(r,yn(l!==void 0?l:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Zu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Qo={};function Rv(e){Qo=e}function SP(){return Qo}class CP{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Sl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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 f=je.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,me.render(this.render,!1,!0))};const{latestValues:u,renderState:a}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=a,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=c,this.blockInitialAnimation=!!i,this.isControllingVariants=Ai(n),this.isVariantNode=Pv(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:s,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];u[f]!==void 0&&Pe(p)&&p.set(u[f])}}mount(t){var n;this.current=t,xP.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((r,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(_v.current||wP(),this.shouldReduceMotion=aa.current),process.env.NODE_ENV!=="production"&&fl(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ot(this.notifyUpdate),Ot(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.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){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=jn.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&me.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}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 Qo){const n=Qo[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ce()}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<Zu.length;r++){const o=Zu[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,l=t[i];l&&(this.propEventSubscriptions[o]=this.on(o,l))}this.prevMotionValues=EP(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=yn(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"&&(Tm(r)||Mm(r))?r=parseFloat(r):!yP(r)&&Tt.test(n)&&(r=gv(t,n)),this.setBaseTarget(t,Pe(r)?r.get():r)),Pe(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const l=Pl(this.props,r,(n=this.presenceContext)==null?void 0:n.custom);l&&(o=l[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Pe(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new dl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Tl.render(this.render)}}class Ov extends CP{constructor(){super(...arguments),this.KeyframeResolver=uP}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;Pe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class kt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Tv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _P({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function PP(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 ls(e){return e===void 0||e===1}function la({scale:e,scaleX:t,scaleY:n}){return!ls(e)||!ls(t)||!ls(n)}function $t(e){return la(e)||jv(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function jv(e){return Qu(e.x)||Qu(e.y)}function Qu(e){return e&&e!=="0%"}function Jo(e,t,n){const r=e-n,o=t*r;return n+o}function Ju(e,t,n,r,o){return o!==void 0&&(e=Jo(e,o,r)),Jo(e,n,r)+t}function ua(e,t=0,n=1,r,o){e.min=Ju(e.min,t,n,r,o),e.max=Ju(e.max,t,n,r,o)}function Mv(e,{x:t,y:n}){ua(e.x,t.translate,t.scale,t.originPoint),ua(e.y,n.translate,n.scale,n.originPoint)}const ec=.999999999999,tc=1.0000000000001;function RP(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,l;for(let c=0;c<o;c++){i=n[c],l=i.projectionDelta;const{visualElement:u}=i.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ln(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Mv(e,l)),r&&$t(i.latestValues)&&ln(e,i.latestValues))}t.x<tc&&t.x>ec&&(t.x=1),t.y<tc&&t.y>ec&&(t.y=1)}function an(e,t){e.min=e.min+t,e.max=e.max+t}function nc(e,t,n,r,o=.5){const i=ye(e.min,e.max,o);ua(e,t,n,i,r)}function ln(e,t){nc(e.x,t.x,t.scaleX,t.scale,t.originX),nc(e.y,t.y,t.scaleY,t.scale,t.originY)}function Av(e,t){return Tv(PP(e.getBoundingClientRect(),t))}function OP(e,t,n){const r=Av(e,n),{scroll:o}=t;return o&&(an(r.x,o.offset.x),an(r.y,o.offset.y)),r}const TP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},jP=Tn.length;function MP(e,t,n){let r="",o=!0;for(let i=0;i<jP;i++){const l=Tn[i],c=e[l];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(l.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const a=yv(c,Ol[l]);if(!u){o=!1;const s=TP[l]||l;r+=`${s}(${a}) `}n&&(t[l]=a)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function kl(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let l=!1,c=!1;for(const u in t){const a=t[u];if(jn.has(u)){l=!0;continue}else if(Wm(u)){o[u]=a;continue}else{const s=yv(a,Ol[u]);u.startsWith("origin")?(c=!0,i[u]=s):r[u]=s}}if(t.transform||(l||n?r.transform=MP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:a="50%",originZ:s=0}=i;r.transformOrigin=`${u} ${a} ${s}`}}function kv(e,{style:t,vars:n},r,o){const i=e.style;let l;for(l in t)i[l]=t[l];o==null||o.applyProjectionStyles(i,r);for(l in n)i.setProperty(l,n[l])}function rc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ln={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(G.test(e))e=parseFloat(e);else return e;const n=rc(e,t.target.x),r=rc(e,t.target.y);return`${n}% ${r}%`}},AP={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Tt.parse(e);if(o.length>5)return r;const i=Tt.createTransformer(e),l=typeof o[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;o[0+l]/=c,o[1+l]/=u;const a=ye(c,u,.5);return typeof o[2+l]=="number"&&(o[2+l]/=a),typeof o[3+l]=="number"&&(o[3+l]/=a),i(o)}},ca={borderRadius:{...Ln,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ln,borderTopRightRadius:Ln,borderBottomLeftRadius:Ln,borderBottomRightRadius:Ln,boxShadow:AP};function Dv(e,{layout:t,layoutId:n}){return jn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ca[e]||e==="opacity")}function Dl(e,t,n){var r;const o=e.style,i=t==null?void 0:t.style,l={};if(!o)return l;for(const c in o)(Pe(o[c])||i&&Pe(i[c])||Dv(c,e)||((r=n==null?void 0:n.getValue(c))==null?void 0:r.liveStyle)!==void 0)&&(l[c]=o[c]);return l}function kP(e){return window.getComputedStyle(e)}class DP extends Ov{constructor(){super(...arguments),this.type="html",this.renderInstance=kv}readValueFromInstance(t,n){var r;if(jn.has(n))return(r=this.projection)!=null&&r.isProjecting?Zs(n):u_(t,n);{const o=kP(t),i=(Wm(n)?o.getPropertyValue(n):o[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Av(t,n)}build(t,n,r){kl(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Dl(t,n,r)}}const LP={offset:"stroke-dashoffset",array:"stroke-dasharray"},IP={offset:"strokeDashoffset",array:"strokeDasharray"};function NP(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?LP:IP;e[i.offset]=G.transform(-r);const l=G.transform(t),c=G.transform(n);e[i.array]=`${l} ${c}`}const FP=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Lv(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:l=0,...c},u,a,s){if(kl(e,c,a),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(s==null?void 0:s.transformBox)??"fill-box",delete d.transformBox);for(const p of FP)d[p]!==void 0&&(f[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&NP(d,o,i,l,!1)}const Iv=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"]),Nv=e=>typeof e=="string"&&e.toLowerCase()==="svg";function VP(e,t,n,r){kv(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Iv.has(o)?o:Rl(o),t.attrs[o])}function Fv(e,t,n){const r=Dl(e,t,n);for(const o in e)if(Pe(e[o])||Pe(t[o])){const i=Tn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}class $P extends Ov{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ce}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(jn.has(n)){const r=vv(n);return r&&r.default||0}return n=Iv.has(n)?n:Rl(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Fv(t,n,r)}build(t,n,r){Lv(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){VP(t,n,r,o)}mount(t){this.isSVGTag=Nv(t.tagName),super.mount(t)}}const BP=Al.length;function Vv(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Vv(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<BP;n++){const r=Al[n],o=e.props[r];(sr(o)||o===!1)&&(t[r]=o)}return t}function $v(e,t){if(!Array.isArray(t))return!1;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}const zP=[...Ml].reverse(),HP=Ml.length;function UP(e){return t=>Promise.all(t.map(({animation:n,options:r})=>J_(e,n,r)))}function WP(e){let t=UP(e),n=oc(),r=!0;const o=u=>(a,s)=>{var d;const f=pn(e,s,u==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:m,...h}=f;a={...a,...h,...m}}return a};function i(u){t=u(e)}function l(u){const{props:a}=e,s=Vv(e.parent)||{},d=[],f=new Set;let p={},m=1/0;for(let v=0;v<HP;v++){const y=zP[v],b=n[y],w=a[y]!==void 0?a[y]:s[y],S=sr(w),E=y===u?b.isActive:null;E===!1&&(m=v);let A=w===s[y]&&w!==a[y]&&S;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),b.protectedKeys={...p},!b.isActive&&E===null||!w&&!b.prevProp||Mi(w)||typeof w=="boolean")continue;const j=GP(b.prevProp,w);let O=j||y===u&&b.isActive&&!A&&S||v>m&&S,T=!1;const _=Array.isArray(w)?w:[w];let k=_.reduce(o(y),{});E===!1&&(k={});const{prevResolvedValues:P={}}=b,$={...P,...k},F=B=>{O=!0,f.has(B)&&(T=!0,f.delete(B)),b.needsAnimating[B]=!0;const X=e.getValue(B);X&&(X.liveStyle=!1)};for(const B in $){const X=k[B],W=P[B];if(p.hasOwnProperty(B))continue;let L=!1;ra(X)&&ra(W)?L=!$v(X,W):L=X!==W,L?X!=null?F(B):f.add(B):X!==void 0&&f.has(B)?F(B):b.protectedKeys[B]=!0}b.prevProp=w,b.prevResolvedValues=k,b.isActive&&(p={...p,...k}),r&&e.blockInitialAnimation&&(O=!1);const U=A&&j;O&&(!U||T)&&d.push(..._.map(B=>{const X={type:y};if(typeof B=="string"&&r&&!U&&e.manuallyAnimateOnMount&&e.parent){const{parent:W}=e,L=pn(W,B);if(W.enteringChildren&&L){const{delayChildren:M}=L.transition||{};X.delay=lv(W.enteringChildren,e,M)}}return{animation:B,options:X}}))}if(f.size){const v={};if(typeof a.initial!="boolean"){const y=pn(e,Array.isArray(a.initial)?a.initial[0]:a.initial);y&&y.transition&&(v.transition=y.transition)}f.forEach(y=>{const b=e.getBaseTarget(y),w=e.getValue(y);w&&(w.liveStyle=!0),v[y]=b??null}),d.push({animation:v})}let h=!!d.length;return r&&(a.initial===!1||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(d):Promise.resolve()}function c(u,a){var s;if(n[u].isActive===a)return Promise.resolve();(s=e.variantChildren)==null||s.forEach(f=>{var p;return(p=f.animationState)==null?void 0:p.setActive(u,a)}),n[u].isActive=a;const d=l(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:l,setActive:c,setAnimateFunction:i,getState:()=>n,reset:()=>{n=oc()}}}function GP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$v(t,e):!1}function Nt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function oc(){return{animate:Nt(!0),whileInView:Nt(),whileHover:Nt(),whileTap:Nt(),whileDrag:Nt(),whileFocus:Nt(),exit:Nt()}}function ic(e,t){e.min=t.min,e.max=t.max}function We(e,t){ic(e.x,t.x),ic(e.y,t.y)}function sc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Bv=1e-4,XP=1-Bv,KP=1+Bv,zv=.01,YP=0-zv,qP=0+zv;function Me(e){return e.max-e.min}function ZP(e,t,n){return Math.abs(e-t)<=n}function ac(e,t,n,r=.5){e.origin=r,e.originPoint=ye(t.min,t.max,e.origin),e.scale=Me(n)/Me(t),e.translate=ye(n.min,n.max,e.origin)-e.originPoint,(e.scale>=XP&&e.scale<=KP||isNaN(e.scale))&&(e.scale=1),(e.translate>=YP&&e.translate<=qP||isNaN(e.translate))&&(e.translate=0)}function qn(e,t,n,r){ac(e.x,t.x,n.x,r?r.originX:void 0),ac(e.y,t.y,n.y,r?r.originY:void 0)}function lc(e,t,n){e.min=n.min+t.min,e.max=e.min+Me(t)}function QP(e,t,n){lc(e.x,t.x,n.x),lc(e.y,t.y,n.y)}function uc(e,t,n){e.min=t.min-n.min,e.max=e.min+Me(t)}function ei(e,t,n){uc(e.x,t.x,n.x),uc(e.y,t.y,n.y)}function cc(e,t,n,r,o){return e-=t,e=Jo(e,1/n,r),o!==void 0&&(e=Jo(e,1/o,r)),e}function JP(e,t=0,n=1,r=.5,o,i=e,l=e){if(ot.test(t)&&(t=parseFloat(t),t=ye(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=ye(i.min,i.max,r);e===i&&(c-=t),e.min=cc(e.min,t,n,c,o),e.max=cc(e.max,t,n,c,o)}function dc(e,t,[n,r,o],i,l){JP(e,t[n],t[r],t[o],t.scale,i,l)}const eR=["x","scaleX","originX"],tR=["y","scaleY","originY"];function fc(e,t,n,r){dc(e.x,t,eR,n?n.x:void 0,r?r.x:void 0),dc(e.y,t,tR,n?n.y:void 0,r?r.y:void 0)}function pc(e){return e.translate===0&&e.scale===1}function Hv(e){return pc(e.x)&&pc(e.y)}function hc(e,t){return e.min===t.min&&e.max===t.max}function nR(e,t){return hc(e.x,t.x)&&hc(e.y,t.y)}function mc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Uv(e,t){return mc(e.x,t.x)&&mc(e.y,t.y)}function vc(e){return Me(e.x)/Me(e.y)}function gc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Be(e){return[e("x"),e("y")]}function rR(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((o||i||l)&&(r=`translate3d(${o}px, ${i}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:a,rotate:s,rotateX:d,rotateY:f,skewX:p,skewY:m}=n;a&&(r=`perspective(${a}px) ${r}`),s&&(r+=`rotate(${s}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),m&&(r+=`skewY(${m}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const Wv=["TopLeft","TopRight","BottomLeft","BottomRight"],oR=Wv.length,yc=e=>typeof e=="string"?parseFloat(e):e,bc=e=>typeof e=="number"||G.test(e);function iR(e,t,n,r,o,i){o?(e.opacity=ye(0,n.opacity??1,sR(r)),e.opacityExit=ye(t.opacity??1,0,aR(r))):i&&(e.opacity=ye(t.opacity??1,n.opacity??1,r));for(let l=0;l<oR;l++){const c=`border${Wv[l]}Radius`;let u=wc(t,c),a=wc(n,c);u===void 0&&a===void 0||(u||(u=0),a||(a=0),u===0||a===0||bc(u)===bc(a)?(e[c]=Math.max(ye(yc(u),yc(a),r),0),(ot.test(a)||ot.test(u))&&(e[c]+="%")):e[c]=a)}(t.rotate||n.rotate)&&(e.rotate=ye(t.rotate||0,n.rotate||0,r))}function wc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const sR=Gv(0,.5,Vm),aR=Gv(.5,.95,Ue);function Gv(e,t,n){return r=>r<e?0:r>t?1:n(rr(e,t,r))}function lR(e,t,n){const r=Pe(e)?e:yn(e);return r.start(_l("",r,t,n)),r.animation}function ar(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const uR=(e,t)=>e.depth-t.depth;class cR{constructor(){this.children=[],this.isDirty=!1}add(t){ll(this.children,t),this.isDirty=!0}remove(t){ul(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(uR),this.isDirty=!1,this.children.forEach(t)}}function dR(e,t){const n=je.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Ot(r),e(i-t))};return me.setup(r,!0),()=>Ot(r)}function Io(e){return Pe(e)?e.get():e}class fR{constructor(){this.members=[]}add(t){ll(this.members,t),t.scheduleRender()}remove(t){if(ul(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){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const No={hasAnimatedSinceResize:!0,hasEverUpdated:!1},us=["","X","Y","Z"],pR=1e3;let hR=0;function cs(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Xv(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=fv(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",me,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Xv(r)}function Kv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},l=t==null?void 0:t()){this.id=hR++,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(gR),this.nodes.forEach(xR),this.nodes.forEach(ER),this.nodes.forEach(yR)},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 c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new cR)}addEventListener(i,l){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new dl),this.eventHandlers.get(i).add(l)}notifyListeners(i,...l){const c=this.eventHandlers.get(i);c&&c.notify(...l)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=Cv(i)&&!vP(i),this.instance=i;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let a,s=0;const d=()=>this.root.updateBlockedByResize=!1;me.read(()=>{s=window.innerWidth}),e(i,()=>{const f=window.innerWidth;f!==s&&(s=f,this.root.updateBlockedByResize=!0,a&&a(),a=dR(d,250),No.hasAnimatedSinceResize&&(No.hasAnimatedSinceResize=!1,this.nodes.forEach(Sc)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:a,hasLayoutChanged:s,hasRelativeLayoutChanged:d,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||RR,{onLayoutAnimationStart:m,onLayoutAnimationComplete:h}=u.getProps(),v=!this.targetLayout||!Uv(this.targetLayout,f),y=!s&&d;if(this.options.layoutRoot||this.resumeFrom||y||s&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...Cl(p,"layout"),onPlay:m,onComplete:h};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(a,y)}else s||Sc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}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(),Ot(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(SR),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&&Xv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){const s=this.path[a];s.shouldResetTransform=!0,s.updateScroll("snapshot"),s.options.layoutRoot&&s.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(xc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ec);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(wR),this.nodes.forEach(mR),this.nodes.forEach(vR)):this.nodes.forEach(Ec),this.clearAllSnapshots();const i=je.now();_e.delta=st(0,1e3/60,i-_e.timestamp),_e.timestamp=i,_e.isProcessing=!0,ts.update.process(_e),ts.preRender.process(_e),ts.render.process(_e),_e.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Tl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(bR),this.sharedNodes.forEach(CR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,me.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){me.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Me(this.snapshot.measuredBox.x)&&!Me(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ce(),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 c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Hv(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,a=u!==this.prevTransformTemplateValue;i&&this.instance&&(l||$t(this.latestValues)||a)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return i&&(c=this.removeTransform(c)),OR(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var i;const{visualElement:l}=this.options;if(!l)return Ce();const c=l.measureViewportBox();if(!((i=this.scroll)!=null&&i.wasRoot||this.path.some(TR))){const{scroll:u}=this.root;u&&(an(c.x,u.offset.x),an(c.y,u.offset.y))}return c}removeElementScroll(i){var l;const c=Ce();if(We(c,i),(l=this.scroll)!=null&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const a=this.path[u],{scroll:s,options:d}=a;a!==this.root&&s&&d.layoutScroll&&(s.wasRoot&&We(c,i),an(c.x,s.offset.x),an(c.y,s.offset.y))}return c}applyTransform(i,l=!1){const c=Ce();We(c,i);for(let u=0;u<this.path.length;u++){const a=this.path[u];!l&&a.options.layoutScroll&&a.scroll&&a!==a.root&&ln(c,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),$t(a.latestValues)&&ln(c,a.latestValues)}return $t(this.latestValues)&&ln(c,this.latestValues),c}removeTransform(i){const l=Ce();We(l,i);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!$t(u.latestValues))continue;la(u.latestValues)&&u.updateSnapshot();const a=Ce(),s=u.measurePageBox();We(a,s),fc(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,a)}return $t(this.latestValues)&&fc(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!==_e.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(i||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(l=this.parent)!=null&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:a,layoutId:s}=this.options;if(!this.layout||!(a||s))return;this.resolvedRelativeTargetAt=_e.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ce(),this.targetWithTransforms=Ce()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),QP(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):We(this.target,this.layout.layoutBox),Mv(this.target,this.targetDelta)):We(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||la(this.parent.latestValues)||jv(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,c){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ce(),this.relativeTargetOrigin=Ce(),ei(this.relativeTargetOrigin,l,c),We(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var i;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||(i=this.parent)!=null&&i.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===_e.timestamp&&(u=!1),u)return;const{layout:a,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(a||s))return;We(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;RP(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Ce());const{target:p}=l;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(sc(this.prevProjectionDelta.x,this.projectionDelta.x),sc(this.prevProjectionDelta.y,this.projectionDelta.y)),qn(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!gc(this.projectionDelta.x,this.prevProjectionDelta.x)||!gc(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),i){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=sn(),this.projectionDelta=sn(),this.projectionDeltaWithTransform=sn()}setAnimationOrigin(i,l=!1){const c=this.snapshot,u=c?c.latestValues:{},a={...this.latestValues},s=sn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const d=Ce(),f=c?c.source:void 0,p=this.layout?this.layout.source:void 0,m=f!==p,h=this.getStack(),v=!h||h.members.length<=1,y=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some(PR));this.animationProgress=0;let b;this.mixTargetDelta=w=>{const S=w/1e3;Cc(s.x,i.x,S),Cc(s.y,i.y,S),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ei(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_R(this.relativeTarget,this.relativeTargetOrigin,d,S),b&&nR(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Ce()),We(b,this.relativeTarget)),m&&(this.animationValues=a,iR(a,u,this.latestValues,S,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){var l,c,u;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=me.update(()=>{No.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=yn(0)),this.currentAnimation=lR(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},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(pR),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:a}=i;if(!(!l||!c||!u)){if(this!==i&&this.layout&&u&&Yv(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Ce();const s=Me(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+s;const d=Me(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+d}We(l,c),ln(l,a),qn(this.projectionDeltaWithTransform,this.layoutCorrected,l,a)}}registerSharedNode(i,l){this.sharedNodes.has(i)||this.sharedNodes.set(i,new fR),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(){var i;const{layoutId:l}=this.options;return l?((i=this.getStack())==null?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:l}=this.options;return l?(i=this.getStack())==null?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),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:c}=i;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&cs("z",i,u,this.animationValues);for(let a=0;a<us.length;a++)cs(`rotate${us[a]}`,i,u,this.animationValues),cs(`skew${us[a]}`,i,u,this.animationValues);i.render();for(const a in u)i.setStaticValue(a,u[a]),this.animationValues&&(this.animationValues[a]=u[a]);i.scheduleRender()}applyProjectionStyles(i,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=Io(l==null?void 0:l.pointerEvents)||"",i.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=Io(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!$t(this.latestValues)&&(i.transform=c?c({},""):"none",this.hasProjected=!1);return}i.visibility="";const a=u.animationValues||u.latestValues;this.applyTransformsToTarget();let s=rR(this.projectionDeltaWithTransform,this.treeScale,a);c&&(s=c(a,s)),i.transform=s;const{x:d,y:f}=this.projectionDelta;i.transformOrigin=`${d.origin*100}% ${f.origin*100}% 0`,u.animationValues?i.opacity=u===this?a.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:i.opacity=u===this?a.opacity!==void 0?a.opacity:"":a.opacityExit!==void 0?a.opacityExit:0;for(const p in ca){if(a[p]===void 0)continue;const{correct:m,applyTo:h,isCSSVariable:v}=ca[p],y=s==="none"?a[p]:m(a[p],u);if(h){const b=h.length;for(let w=0;w<b;w++)i[h[w]]=y}else v?this.options.visualElement.renderState.vars[p]=y:i[p]=y}this.options.layoutId&&(i.pointerEvents=u===this?Io(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var l;return(l=i.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(xc),this.root.sharedNodes.clear()}}}function mR(e){e.updateLayout()}function vR(e){var t;const n=((t=e.resumeFrom)==null?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,l=n.source!==e.layout.source;i==="size"?Be(d=>{const f=l?n.measuredBox[d]:n.layoutBox[d],p=Me(f);f.min=r[d].min,f.max=f.min+p}):Yv(i,n.layoutBox,r)&&Be(d=>{const f=l?n.measuredBox[d]:n.layoutBox[d],p=Me(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const c=sn();qn(c,r,n.layoutBox);const u=sn();l?qn(u,e.applyTransform(o,!0),n.measuredBox):qn(u,r,n.layoutBox);const a=!Hv(c);let s=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=Ce();ei(m,n.layoutBox,f.layoutBox);const h=Ce();ei(h,r,p.layoutBox),Uv(m,h)||(s=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:a,hasRelativeLayoutChanged:s})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function gR(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 yR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function bR(e){e.clearSnapshot()}function xc(e){e.clearMeasurements()}function Ec(e){e.isLayoutDirty=!1}function wR(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xR(e){e.resolveTargetDelta()}function ER(e){e.calcProjection()}function SR(e){e.resetSkewAndRotation()}function CR(e){e.removeLeadSnapshot()}function Cc(e,t,n){e.translate=ye(t.translate,0,n),e.scale=ye(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _c(e,t,n,r){e.min=ye(t.min,n.min,r),e.max=ye(t.max,n.max,r)}function _R(e,t,n,r){_c(e.x,t.x,n.x,r),_c(e.y,t.y,n.y,r)}function PR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const RR={duration:.45,ease:[.4,0,.1,1]},Pc=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rc=Pc("applewebkit/")&&!Pc("chrome/")?Math.round:Ue;function Oc(e){e.min=Rc(e.min),e.max=Rc(e.max)}function OR(e){Oc(e.x),Oc(e.y)}function Yv(e,t,n){return e==="position"||e==="preserve-aspect"&&!ZP(vc(t),vc(n),.2)}function TR(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const jR=Kv({attachResizeListener:(e,t)=>ar(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ds={current:void 0},qv=Kv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ds.current){const e=new jR({});e.mount(window),e.setOptions({layoutScroll:!0}),ds.current=e}return ds.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ll=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Tc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function MR(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Tc(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Tc(e[o],null)}}}}function AR(...e){return g.useCallback(MR(...e),e)}class kR extends g.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=bv(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function DR({children:e,isPresent:t,anchorX:n,root:r}){var o;const i=R.useId(),l=R.useRef(null),c=R.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=R.useContext(Ll),a=((o=e.props)==null?void 0:o.ref)??(e==null?void 0:e.ref),s=AR(l,a);return R.useInsertionEffect(()=>{const{width:d,height:f,top:p,left:m,right:h}=c.current;if(t||!l.current||!d||!f)return;const v=n==="left"?`left: ${m}`:`right: ${h}`;l.current.dataset.motionPopId=i;const y=document.createElement("style");u&&(y.nonce=u);const b=r??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
96
+ Defaulting to \`null\`.`}var tl="Radio",[NE,Nh]=xe(tl),[FE,VE]=NE(tl),Fh=g.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:l,value:c="on",onCheck:u,form:s,...a}=e,[d,f]=g.useState(null),p=re(t,v=>f(v)),m=g.useRef(!1),h=d?s||!!d.closest("form"):!0;return w.jsxs(FE,{scope:n,checked:o,disabled:l,children:[w.jsx(z.button,{type:"button",role:"radio","aria-checked":o,"data-state":zh(o),"data-disabled":l?"":void 0,disabled:l,value:c,...a,ref:p,onClick:N(e.onClick,v=>{o||u==null||u(),h&&(m.current=v.isPropagationStopped(),m.current||v.stopPropagation())})}),h&&w.jsx(Bh,{control:d,bubbles:!m.current,name:r,value:c,checked:o,required:i,disabled:l,form:s,style:{transform:"translateX(-100%)"}})]})});Fh.displayName=tl;var Vh="RadioIndicator",$h=g.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=VE(Vh,n);return w.jsx(Ve,{present:r||i.checked,children:w.jsx(z.span,{"data-state":zh(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});$h.displayName=Vh;var $E="RadioBubbleInput",Bh=g.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const l=g.useRef(null),c=re(l,i),u=pr(n),s=hr(t);return g.useEffect(()=>{const a=l.current;if(!a)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(u!==n&&f){const p=new Event("click",{bubbles:r});f.call(a,n),a.dispatchEvent(p)}},[u,n,r]),w.jsx(z.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:c,style:{...o.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Bh.displayName=$E;function zh(e){return e?"checked":"unchecked"}var BE=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Pi="RadioGroup",[zE]=xe(Pi,[Mt,Nh]),Uh=Mt(),Hh=Nh(),[UE,HE]=zE(Pi),GE=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:l=!1,disabled:c=!1,orientation:u,dir:s,loop:a=!0,onValueChange:d,...f}=e,p=Uh(n),m=qt(s),[h,v]=Fe({prop:i,defaultProp:o??null,onChange:d,caller:Pi});return w.jsx(UE,{scope:n,name:r,required:l,disabled:c,value:h,onValueChange:v,children:w.jsx(wi,{asChild:!0,...p,orientation:u,dir:m,loop:a,children:w.jsx(z.div,{role:"radiogroup","aria-required":l,"aria-orientation":u,"data-disabled":c?"":void 0,dir:m,...f,ref:t})})})});GE.displayName=Pi;var Gh="RadioGroupItem",WE=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=HE(Gh,n),l=i.disabled||r,c=Uh(n),u=Hh(n),s=g.useRef(null),a=re(t,s),d=i.value===o.value,f=g.useRef(!1);return g.useEffect(()=>{const p=h=>{BE.includes(h.key)&&(f.current=!0)},m=()=>f.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",m)}},[]),w.jsx(xi,{asChild:!0,...c,focusable:!l,active:d,children:w.jsx(Fh,{disabled:l,required:i.required,checked:d,...u,...o,name:i.name,ref:a,onCheck:()=>i.onValueChange(o.value),onKeyDown:N(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:N(o.onFocus,()=>{var p;f.current&&((p=s.current)==null||p.click())})})})});WE.displayName=Gh;var XE="RadioGroupIndicator",KE=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Hh(n);return w.jsx($h,{...o,...r,ref:t})});KE.displayName=XE;var YE=[" ","Enter","ArrowUp","ArrowDown"],qE=[" ","Enter"],Ri="Select",[nl,Oi,ZE]=cr(Ri),[Pn]=xe(Ri,[ZE,jt]),rl=jt(),[tj,At]=Pn(Ri),[nj,QE]=Pn(Ri),Wh="SelectTrigger",JE=g.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=rl(n),l=At(Wh,n),c=l.disabled||r,u=re(t,l.onTriggerChange),s=Oi(n),a=g.useRef("touch"),[d,f,p]=im(h=>{const v=s().filter(x=>!x.disabled),y=v.find(x=>x.value===l.value),b=am(v,h,y);b!==void 0&&l.onValueChange(b.value)}),m=h=>{c||(l.onOpenChange(!0),p()),h&&(l.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return w.jsx(vr,{asChild:!0,...i,children:w.jsx(z.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":om(l.value)?"":void 0,...o,ref:u,onClick:N(o.onClick,h=>{h.currentTarget.focus(),a.current!=="mouse"&&m(h)}),onPointerDown:N(o.onPointerDown,h=>{a.current=h.pointerType;const v=h.target;v.hasPointerCapture(h.pointerId)&&v.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(m(h),h.preventDefault())}),onKeyDown:N(o.onKeyDown,h=>{const v=d.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&f(h.key),!(v&&h.key===" ")&&YE.includes(h.key)&&(m(),h.preventDefault())})})})});JE.displayName=Wh;var Xh="SelectValue",eS=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...c}=e,u=At(Xh,n),{onValueNodeHasChildrenChange:s}=u,a=i!==void 0,d=re(t,u.onValueNodeChange);return Se(()=>{s(a)},[s,a]),w.jsx(z.span,{...c,ref:d,style:{pointerEvents:"none"},children:om(u.value)?w.jsx(w.Fragment,{children:l}):i})});eS.displayName=Xh;var tS="SelectIcon",nS=g.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return w.jsx(z.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});nS.displayName=tS;var Kt="SelectContent",rS=g.forwardRef((e,t)=>{const n=At(Kt,e.__scopeSelect),[r,o]=g.useState();if(Se(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?ii.createPortal(w.jsx(Kh,{scope:e.__scopeSelect,children:w.jsx(nl.Slot,{scope:e.__scopeSelect,children:w.jsx("div",{children:e.children})})}),i):null}return w.jsx(Yh,{...e,ref:t})});rS.displayName=Kt;var Ke=10,[Kh,kt]=Pn(Kt),oS="SelectContentImpl",iS=_t("SelectContent.RemoveScroll"),Yh=g.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:c,sideOffset:u,align:s,alignOffset:a,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:v,...y}=e,b=At(Kt,n),[x,S]=g.useState(null),[E,A]=g.useState(null),j=re(t,V=>S(V)),[O,T]=g.useState(null),[P,k]=g.useState(null),R=Oi(n),[$,F]=g.useState(!1),H=g.useRef(!1);g.useEffect(()=>{if(x)return fi(x)},[x]),ci();const B=g.useCallback(V=>{const[q,...Y]=R().map(I=>I.ref.current),[U]=Y.slice(-1),oe=document.activeElement;for(const I of V)if(I===oe||(I==null||I.scrollIntoView({block:"nearest"}),I===q&&E&&(E.scrollTop=0),I===U&&E&&(E.scrollTop=E.scrollHeight),I==null||I.focus(),document.activeElement!==oe))return},[R,E]),X=g.useCallback(()=>B([O,x]),[B,O,x]);g.useEffect(()=>{$&&X()},[$,X]);const{onOpenChange:G,triggerPointerDownPosRef:L}=b;g.useEffect(()=>{if(x){let V={x:0,y:0};const q=U=>{var oe,I;V={x:Math.abs(Math.round(U.pageX)-(((oe=L.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(U.pageY)-(((I=L.current)==null?void 0:I.y)??0))}},Y=U=>{V.x<=10&&V.y<=10?U.preventDefault():x.contains(U.target)||G(!1),document.removeEventListener("pointermove",q),L.current=null};return L.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",Y,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",Y,{capture:!0})}}},[x,G,L]),g.useEffect(()=>{const V=()=>G(!1);return window.addEventListener("blur",V),window.addEventListener("resize",V),()=>{window.removeEventListener("blur",V),window.removeEventListener("resize",V)}},[G]);const[M,D]=im(V=>{const q=R().filter(oe=>!oe.disabled),Y=q.find(oe=>oe.ref.current===document.activeElement),U=am(q,V,Y);U&&setTimeout(()=>U.ref.current.focus())}),ee=g.useCallback((V,q,Y)=>{const U=!H.current&&!Y;(b.value!==void 0&&b.value===q||U)&&(T(V),U&&(H.current=!0))},[b.value]),J=g.useCallback(()=>x==null?void 0:x.focus(),[x]),K=g.useCallback((V,q,Y)=>{const U=!H.current&&!Y;(b.value!==void 0&&b.value===q||U)&&k(V)},[b.value]),ne=r==="popper"?Va:qh,te=ne===Va?{side:c,sideOffset:u,align:s,alignOffset:a,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:v}:{};return w.jsx(Kh,{scope:n,content:x,viewport:E,onViewportChange:A,itemRefCallback:ee,selectedItem:O,onItemLeave:J,itemTextRefCallback:K,focusSelectedItem:X,selectedItemText:P,position:r,isPositioned:$,searchRef:M,children:w.jsx(fr,{as:iS,allowPinchZoom:!0,children:w.jsx(dr,{asChild:!0,trapped:b.open,onMountAutoFocus:V=>{V.preventDefault()},onUnmountAutoFocus:N(o,V=>{var q;(q=b.trigger)==null||q.focus({preventScroll:!0}),V.preventDefault()}),children:w.jsx(Sn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:V=>V.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:w.jsx(ne,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:V=>V.preventDefault(),...y,...te,onPlaced:()=>F(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:N(y.onKeyDown,V=>{const q=V.ctrlKey||V.altKey||V.metaKey;if(V.key==="Tab"&&V.preventDefault(),!q&&V.key.length===1&&D(V.key),["ArrowUp","ArrowDown","Home","End"].includes(V.key)){let Y=R().filter(U=>!U.disabled).map(U=>U.ref.current);if(["ArrowUp","End"].includes(V.key)&&(Y=Y.slice().reverse()),["ArrowUp","ArrowDown"].includes(V.key)){const U=V.target,oe=Y.indexOf(U);Y=Y.slice(oe+1)}setTimeout(()=>B(Y)),V.preventDefault()}})})})})})})});Yh.displayName=oS;var aS="SelectItemAlignedPosition",qh=g.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=At(Kt,n),l=kt(Kt,n),[c,u]=g.useState(null),[s,a]=g.useState(null),d=re(t,j=>a(j)),f=Oi(n),p=g.useRef(!1),m=g.useRef(!0),{viewport:h,selectedItem:v,selectedItemText:y,focusSelectedItem:b}=l,x=g.useCallback(()=>{if(i.trigger&&i.valueNode&&c&&s&&h&&v&&y){const j=i.trigger.getBoundingClientRect(),O=s.getBoundingClientRect(),T=i.valueNode.getBoundingClientRect(),P=y.getBoundingClientRect();if(i.dir!=="rtl"){const U=P.left-O.left,oe=T.left-U,I=j.left-oe,de=j.width+I,ke=Math.max(de,O.width),Be=window.innerWidth-Ke,It=Xo(oe,[Ke,Math.max(Ke,Be-ke)]);c.style.minWidth=de+"px",c.style.left=It+"px"}else{const U=O.right-P.right,oe=window.innerWidth-T.right-U,I=window.innerWidth-j.right-oe,de=j.width+I,ke=Math.max(de,O.width),Be=window.innerWidth-Ke,It=Xo(oe,[Ke,Math.max(Ke,Be-ke)]);c.style.minWidth=de+"px",c.style.right=It+"px"}const k=f(),R=window.innerHeight-Ke*2,$=h.scrollHeight,F=window.getComputedStyle(s),H=parseInt(F.borderTopWidth,10),B=parseInt(F.paddingTop,10),X=parseInt(F.borderBottomWidth,10),G=parseInt(F.paddingBottom,10),L=H+B+$+G+X,M=Math.min(v.offsetHeight*5,L),D=window.getComputedStyle(h),ee=parseInt(D.paddingTop,10),J=parseInt(D.paddingBottom,10),K=j.top+j.height/2-Ke,ne=R-K,te=v.offsetHeight/2,V=v.offsetTop+te,q=H+B+V,Y=L-q;if(q<=K){const U=k.length>0&&v===k[k.length-1].ref.current;c.style.bottom="0px";const oe=s.clientHeight-h.offsetTop-h.offsetHeight,I=Math.max(ne,te+(U?J:0)+oe+X),de=q+I;c.style.height=de+"px"}else{const U=k.length>0&&v===k[0].ref.current;c.style.top="0px";const oe=Math.max(K,H+h.offsetTop+(U?ee:0)+te)+Y;c.style.height=oe+"px",h.scrollTop=q-K+h.offsetTop}c.style.margin=`${Ke}px 0`,c.style.minHeight=M+"px",c.style.maxHeight=R+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[f,i.trigger,i.valueNode,c,s,h,v,y,i.dir,r]);Se(()=>x(),[x]);const[S,E]=g.useState();Se(()=>{s&&E(window.getComputedStyle(s).zIndex)},[s]);const A=g.useCallback(j=>{j&&m.current===!0&&(x(),b==null||b(),m.current=!1)},[x,b]);return w.jsx(lS,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:p,onScrollButtonChange:A,children:w.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:w.jsx(z.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});qh.displayName=aS;var sS="SelectPopperPosition",Va=g.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ke,...i}=e,l=rl(n);return w.jsx(yi,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Va.displayName=sS;var[lS,ol]=Pn(Kt,{}),$a="SelectViewport",uS=g.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=kt($a,n),l=ol($a,n),c=re(t,i.onViewportChange),u=g.useRef(0);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),w.jsx(nl.Slot,{scope:n,children:w.jsx(z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:N(o.onScroll,s=>{const a=s.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=l;if(f!=null&&f.current&&d){const p=Math.abs(u.current-a.scrollTop);if(p>0){const m=window.innerHeight-Ke*2,h=parseFloat(d.style.minHeight),v=parseFloat(d.style.height),y=Math.max(h,v);if(y<m){const b=y+p,x=Math.min(m,b),S=b-x;d.style.height=x+"px",d.style.bottom==="0px"&&(a.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}u.current=a.scrollTop})})})]})});uS.displayName=$a;var Zh="SelectGroup",[cS,dS]=Pn(Zh),fS=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=qe();return w.jsx(cS,{scope:n,id:o,children:w.jsx(z.div,{role:"group","aria-labelledby":o,...r,ref:t})})});fS.displayName=Zh;var Qh="SelectLabel",pS=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dS(Qh,n);return w.jsx(z.div,{id:o.id,...r,ref:t})});pS.displayName=Qh;var Yo="SelectItem",[hS,Jh]=Pn(Yo),em=g.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...l}=e,c=At(Yo,n),u=kt(Yo,n),s=c.value===r,[a,d]=g.useState(i??""),[f,p]=g.useState(!1),m=re(t,b=>{var x;return(x=u.itemRefCallback)==null?void 0:x.call(u,b,r,o)}),h=qe(),v=g.useRef("touch"),y=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return w.jsx(hS,{scope:n,value:r,disabled:o,textId:h,isSelected:s,onItemTextChange:g.useCallback(b=>{d(x=>x||((b==null?void 0:b.textContent)??"").trim())},[]),children:w.jsx(nl.ItemSlot,{scope:n,value:r,disabled:o,textValue:a,children:w.jsx(z.div,{role:"option","aria-labelledby":h,"data-highlighted":f?"":void 0,"aria-selected":s&&f,"data-state":s?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:m,onFocus:N(l.onFocus,()=>p(!0)),onBlur:N(l.onBlur,()=>p(!1)),onClick:N(l.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:N(l.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:N(l.onPointerDown,b=>{v.current=b.pointerType}),onPointerMove:N(l.onPointerMove,b=>{var x;v.current=b.pointerType,o?(x=u.onItemLeave)==null||x.call(u):v.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(l.onPointerLeave,b=>{var x;b.currentTarget===document.activeElement&&((x=u.onItemLeave)==null||x.call(u))}),onKeyDown:N(l.onKeyDown,b=>{var x;((x=u.searchRef)==null?void 0:x.current)!==""&&b.key===" "||(qE.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});em.displayName=Yo;var Xn="SelectItemText",tm=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,l=At(Xn,n),c=kt(Xn,n),u=Jh(Xn,n),s=QE(Xn,n),[a,d]=g.useState(null),f=re(t,y=>d(y),u.onItemTextChange,y=>{var b;return(b=c.itemTextRefCallback)==null?void 0:b.call(c,y,u.value,u.disabled)}),p=a==null?void 0:a.textContent,m=g.useMemo(()=>w.jsx("option",{value:u.value,disabled:u.disabled,children:p},u.value),[u.disabled,u.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:v}=s;return Se(()=>(h(m),()=>v(m)),[h,v,m]),w.jsxs(w.Fragment,{children:[w.jsx(z.span,{id:u.textId,...i,ref:f}),u.isSelected&&l.valueNode&&!l.valueNodeHasChildren?ii.createPortal(i.children,l.valueNode):null]})});tm.displayName=Xn;var nm="SelectItemIndicator",mS=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Jh(nm,n).isSelected?w.jsx(z.span,{"aria-hidden":!0,...r,ref:t}):null});mS.displayName=nm;var Ba="SelectScrollUpButton",vS=g.forwardRef((e,t)=>{const n=kt(Ba,e.__scopeSelect),r=ol(Ba,e.__scopeSelect),[o,i]=g.useState(!1),l=re(t,r.onScrollButtonChange);return Se(()=>{if(n.viewport&&n.isPositioned){let c=function(){const s=u.scrollTop>0;i(s)};const u=n.viewport;return c(),u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?w.jsx(rm,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:u}=n;c&&u&&(c.scrollTop=c.scrollTop-u.offsetHeight)}}):null});vS.displayName=Ba;var za="SelectScrollDownButton",gS=g.forwardRef((e,t)=>{const n=kt(za,e.__scopeSelect),r=ol(za,e.__scopeSelect),[o,i]=g.useState(!1),l=re(t,r.onScrollButtonChange);return Se(()=>{if(n.viewport&&n.isPositioned){let c=function(){const s=u.scrollHeight-u.clientHeight,a=Math.ceil(u.scrollTop)<s;i(a)};const u=n.viewport;return c(),u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?w.jsx(rm,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:u}=n;c&&u&&(c.scrollTop=c.scrollTop+u.offsetHeight)}}):null});gS.displayName=za;var rm=g.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=kt("SelectScrollButton",n),l=g.useRef(null),c=Oi(n),u=g.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return g.useEffect(()=>()=>u(),[u]),Se(()=>{var s;const a=c().find(d=>d.ref.current===document.activeElement);(s=a==null?void 0:a.ref.current)==null||s.scrollIntoView({block:"nearest"})},[c]),w.jsx(z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:N(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:N(o.onPointerMove,()=>{var s;(s=i.onItemLeave)==null||s.call(i),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:N(o.onPointerLeave,()=>{u()})})}),yS="SelectSeparator",bS=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return w.jsx(z.div,{"aria-hidden":!0,...r,ref:t})});bS.displayName=yS;var Ua="SelectArrow",wS=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=rl(n),i=At(Ua,n),l=kt(Ua,n);return i.open&&l.position==="popper"?w.jsx(bi,{...o,...r,ref:t}):null});wS.displayName=Ua;var xS="SelectBubbleInput",ES=g.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=g.useRef(null),i=re(r,o),l=pr(t);return g.useEffect(()=>{const c=o.current;if(!c)return;const u=window.HTMLSelectElement.prototype,s=Object.getOwnPropertyDescriptor(u,"value").set;if(l!==t&&s){const a=new Event("change",{bubbles:!0});s.call(c,t),c.dispatchEvent(a)}},[l,t]),w.jsx(z.select,{...n,style:{...Sf,...n.style},ref:i,defaultValue:t})});ES.displayName=xS;function om(e){return e===""||e===void 0}function im(e){const t=Ze(e),n=g.useRef(""),r=g.useRef(0),o=g.useCallback(l=>{const c=n.current+l;t(c),(function u(s){n.current=s,window.clearTimeout(r.current),s!==""&&(r.current=window.setTimeout(()=>u(""),1e3))})(c)},[t]),i=g.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function am(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=SS(e,Math.max(o,0));r.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function SS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var CS=em,_S=tm,sm=["PageUp","PageDown"],lm=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],um={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Rn="Slider",[Ha,PS,RS]=cr(Rn),[cm]=xe(Rn,[RS]),[OS,Ti]=cm(Rn),TS=g.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:l="horizontal",disabled:c=!1,minStepsBetweenThumbs:u=0,defaultValue:s=[r],value:a,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:m,...h}=e,v=g.useRef(new Set),y=g.useRef(0),b=l==="horizontal"?jS:MS,[x=[],S]=Fe({prop:a,defaultProp:s,onChange:P=>{var k;(k=[...v.current][y.current])==null||k.focus(),d(P)}}),E=g.useRef(x);function A(P){const k=VS(x,P);T(P,k)}function j(P){T(P,y.current)}function O(){const P=E.current[y.current];x[y.current]!==P&&f(x)}function T(P,k,{commit:R}={commit:!1}){const $=US(i),F=HS(Math.round((P-r)/i)*i+r,$),H=Xo(F,[r,o]);S((B=[])=>{const X=NS(B,H,k);if(zS(X,u*i)){y.current=X.indexOf(H);const G=String(X)!==String(B);return G&&R&&f(X),G?X:B}else return B})}return w.jsx(OS,{scope:e.__scopeSlider,name:n,disabled:c,min:r,max:o,valueIndexToChangeRef:y,thumbs:v.current,values:x,orientation:l,form:m,children:w.jsx(Ha.Provider,{scope:e.__scopeSlider,children:w.jsx(Ha.Slot,{scope:e.__scopeSlider,children:w.jsx(b,{"aria-disabled":c,"data-disabled":c?"":void 0,...h,ref:t,onPointerDown:N(h.onPointerDown,()=>{c||(E.current=x)}),min:r,max:o,inverted:p,onSlideStart:c?void 0:A,onSlideMove:c?void 0:j,onSlideEnd:c?void 0:O,onHomeKeyDown:()=>!c&&T(r,0,{commit:!0}),onEndKeyDown:()=>!c&&T(o,x.length-1,{commit:!0}),onStepKeyDown:({event:P,direction:k})=>{if(!c){const R=sm.includes(P.key)||P.shiftKey&&lm.includes(P.key)?10:1,$=y.current,F=x[$],H=i*R*k;T(F+H,$,{commit:!0})}}})})})})});TS.displayName=Rn;var[dm,fm]=cm(Rn,{startEdge:"left",endEdge:"right",size:"width",direction:1}),jS=g.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:l,onSlideMove:c,onSlideEnd:u,onStepKeyDown:s,...a}=e,[d,f]=g.useState(null),p=re(t,x=>f(x)),m=g.useRef(void 0),h=qt(o),v=h==="ltr",y=v&&!i||!v&&i;function b(x){const S=m.current||d.getBoundingClientRect(),E=[0,S.width],A=il(E,y?[n,r]:[r,n]);return m.current=S,A(x-S.left)}return w.jsx(dm,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:w.jsx(pm,{dir:h,"data-orientation":"horizontal",...a,ref:p,style:{...a.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=b(x.clientX);l==null||l(S)},onSlideMove:x=>{const S=b(x.clientX);c==null||c(S)},onSlideEnd:()=>{m.current=void 0,u==null||u()},onStepKeyDown:x=>{const S=um[y?"from-left":"from-right"].includes(x.key);s==null||s({event:x,direction:S?-1:1})}})})}),MS=g.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...s}=e,a=g.useRef(null),d=re(t,a),f=g.useRef(void 0),p=!o;function m(h){const v=f.current||a.current.getBoundingClientRect(),y=[0,v.height],b=il(y,p?[r,n]:[n,r]);return f.current=v,b(h-v.top)}return w.jsx(dm,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:w.jsx(pm,{"data-orientation":"vertical",...s,ref:d,style:{...s.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:h=>{const v=m(h.clientY);i==null||i(v)},onSlideMove:h=>{const v=m(h.clientY);l==null||l(v)},onSlideEnd:()=>{f.current=void 0,c==null||c()},onStepKeyDown:h=>{const v=um[p?"from-bottom":"from-top"].includes(h.key);u==null||u({event:h,direction:v?-1:1})}})})}),pm=g.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:l,onEndKeyDown:c,onStepKeyDown:u,...s}=e,a=Ti(Rn,n);return w.jsx(z.span,{...s,ref:t,onKeyDown:N(e.onKeyDown,d=>{d.key==="Home"?(l(d),d.preventDefault()):d.key==="End"?(c(d),d.preventDefault()):sm.concat(lm).includes(d.key)&&(u(d),d.preventDefault())}),onPointerDown:N(e.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),a.thumbs.has(f)?f.focus():r(d)}),onPointerMove:N(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:N(e.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),i(d))})})}),hm="SliderTrack",AS=g.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Ti(hm,n);return w.jsx(z.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});AS.displayName=hm;var Ga="SliderRange",kS=g.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Ti(Ga,n),i=fm(Ga,n),l=g.useRef(null),c=re(t,l),u=o.values.length,s=o.values.map(f=>vm(f,o.min,o.max)),a=u>1?Math.min(...s):0,d=100-Math.max(...s);return w.jsx(z.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:c,style:{...e.style,[i.startEdge]:a+"%",[i.endEdge]:d+"%"}})});kS.displayName=Ga;var Wa="SliderThumb",DS=g.forwardRef((e,t)=>{const n=PS(e.__scopeSlider),[r,o]=g.useState(null),i=re(t,c=>o(c)),l=g.useMemo(()=>r?n().findIndex(c=>c.ref.current===r):-1,[n,r]);return w.jsx(LS,{...e,ref:i,index:l})}),LS=g.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...i}=e,l=Ti(Wa,n),c=fm(Wa,n),[u,s]=g.useState(null),a=re(t,b=>s(b)),d=u?l.form||!!u.closest("form"):!0,f=hr(u),p=l.values[r],m=p===void 0?0:vm(p,l.min,l.max),h=FS(r,l.values.length),v=f==null?void 0:f[c.size],y=v?$S(v,m,c.direction):0;return g.useEffect(()=>{if(u)return l.thumbs.add(u),()=>{l.thumbs.delete(u)}},[u,l.thumbs]),w.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:`calc(${m}% + ${y}px)`},children:[w.jsx(Ha.ItemSlot,{scope:e.__scopeSlider,children:w.jsx(z.span,{role:"slider","aria-label":e["aria-label"]||h,"aria-valuemin":l.min,"aria-valuenow":p,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,tabIndex:l.disabled?void 0:0,...i,ref:a,style:p===void 0?{display:"none"}:e.style,onFocus:N(e.onFocus,()=>{l.valueIndexToChangeRef.current=r})})}),d&&w.jsx(mm,{name:o??(l.name?l.name+(l.values.length>1?"[]":""):void 0),form:l.form,value:p},r)]})});DS.displayName=Wa;var IS="RadioBubbleInput",mm=g.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=g.useRef(null),i=re(o,r),l=pr(t);return g.useEffect(()=>{const c=o.current;if(!c)return;const u=window.HTMLInputElement.prototype,s=Object.getOwnPropertyDescriptor(u,"value").set;if(l!==t&&s){const a=new Event("input",{bubbles:!0});s.call(c,t),c.dispatchEvent(a)}},[l,t]),w.jsx(z.input,{style:{display:"none"},...n,ref:i,defaultValue:t})});mm.displayName=IS;function NS(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function vm(e,t,n){const r=100/(n-t)*(e-t);return Xo(r,[0,100])}function FS(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function VS(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function $S(e,t,n){const r=e/2,o=il([0,50],[0,r]);return(r-o(t)*n)*n}function BS(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function zS(e,t){if(t>0){const n=BS(e);return Math.min(...n)>=t}return!0}function il(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function US(e){return(String(e).split(".")[1]||"").length}function HS(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var ji="Switch",[GS]=xe(ji),[WS,XS]=GS(ji),KS=g.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:l,disabled:c,value:u="on",onCheckedChange:s,form:a,...d}=e,[f,p]=g.useState(null),m=re(t,x=>p(x)),h=g.useRef(!1),v=f?a||!!f.closest("form"):!0,[y,b]=Fe({prop:o,defaultProp:i??!1,onChange:s,caller:ji});return w.jsxs(WS,{scope:n,checked:y,disabled:c,children:[w.jsx(z.button,{type:"button",role:"switch","aria-checked":y,"aria-required":l,"data-state":bm(y),"data-disabled":c?"":void 0,disabled:c,value:u,...d,ref:m,onClick:N(e.onClick,x=>{b(S=>!S),v&&(h.current=x.isPropagationStopped(),h.current||x.stopPropagation())})}),v&&w.jsx(ym,{control:f,bubbles:!h.current,name:r,value:u,checked:y,required:l,disabled:c,form:a,style:{transform:"translateX(-100%)"}})]})});KS.displayName=ji;var gm="SwitchThumb",YS=g.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=XS(gm,n);return w.jsx(z.span,{"data-state":bm(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});YS.displayName=gm;var qS="SwitchBubbleInput",ym=g.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const l=g.useRef(null),c=re(l,i),u=pr(n),s=hr(t);return g.useEffect(()=>{const a=l.current;if(!a)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(u!==n&&f){const p=new Event("click",{bubbles:r});f.call(a,n),a.dispatchEvent(p)}},[u,n,r]),w.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:c,style:{...o.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ym.displayName=qS;function bm(e){return e?"checked":"unchecked"}var Mi="Tabs",[ZS]=xe(Mi,[Mt]),wm=Mt(),[QS,al]=ZS(Mi),JS=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:l="horizontal",dir:c,activationMode:u="automatic",...s}=e,a=qt(c),[d,f]=Fe({prop:r,onChange:o,defaultProp:i??"",caller:Mi});return w.jsx(QS,{scope:n,baseId:qe(),value:d,onValueChange:f,orientation:l,dir:a,activationMode:u,children:w.jsx(z.div,{dir:a,"data-orientation":l,...s,ref:t})})});JS.displayName=Mi;var xm="TabsList",eC=g.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=al(xm,n),l=wm(n);return w.jsx(wi,{asChild:!0,...l,orientation:i.orientation,dir:i.dir,loop:r,children:w.jsx(z.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});eC.displayName=xm;var Em="TabsTrigger",tC=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,l=al(Em,n),c=wm(n),u=Cm(l.baseId,r),s=_m(l.baseId,r),a=r===l.value;return w.jsx(xi,{asChild:!0,...c,focusable:!o,active:a,children:w.jsx(z.button,{type:"button",role:"tab","aria-selected":a,"aria-controls":s,"data-state":a?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...i,ref:t,onMouseDown:N(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?l.onValueChange(r):d.preventDefault()}),onKeyDown:N(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&l.onValueChange(r)}),onFocus:N(e.onFocus,()=>{const d=l.activationMode!=="manual";!a&&!o&&d&&l.onValueChange(r)})})})});tC.displayName=Em;var Sm="TabsContent",nC=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...l}=e,c=al(Sm,n),u=Cm(c.baseId,r),s=_m(c.baseId,r),a=r===c.value,d=g.useRef(a);return g.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),w.jsx(Ve,{present:o||a,children:({present:f})=>w.jsx(z.div,{"data-state":a?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!f,id:s,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&i})})});nC.displayName=Sm;function Cm(e,t){return`${e}-trigger-${t}`}function _m(e,t){return`${e}-content-${t}`}var Pm="Toggle",Rm=g.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...i}=e,[l,c]=Fe({prop:n,onChange:o,defaultProp:r??!1,caller:Pm});return w.jsx(z.button,{type:"button","aria-pressed":l,"data-state":l?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:N(e.onClick,()=>{e.disabled||c(!l)})})});Rm.displayName=Pm;var Dt="ToggleGroup",[Om]=xe(Dt,[Mt]),Tm=Mt(),jm=_.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return w.jsx(rC,{...o,ref:t})}if(n==="multiple"){const o=r;return w.jsx(oC,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${Dt}\``)});jm.displayName=Dt;var[Mm,Am]=Om(Dt),rC=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[l,c]=Fe({prop:n,defaultProp:r??"",onChange:o,caller:Dt});return w.jsx(Mm,{scope:e.__scopeToggleGroup,type:"single",value:_.useMemo(()=>l?[l]:[],[l]),onItemActivate:c,onItemDeactivate:_.useCallback(()=>c(""),[c]),children:w.jsx(km,{...i,ref:t})})}),oC=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[l,c]=Fe({prop:n,defaultProp:r??[],onChange:o,caller:Dt}),u=_.useCallback(a=>c((d=[])=>[...d,a]),[c]),s=_.useCallback(a=>c((d=[])=>d.filter(f=>f!==a)),[c]);return w.jsx(Mm,{scope:e.__scopeToggleGroup,type:"multiple",value:l,onItemActivate:u,onItemDeactivate:s,children:w.jsx(km,{...i,ref:t})})});jm.displayName=Dt;var[iC,aC]=Om(Dt),km=_.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:i,dir:l,loop:c=!0,...u}=e,s=Tm(n),a=qt(l),d={role:"group",dir:a,...u};return w.jsx(iC,{scope:n,rovingFocus:o,disabled:r,children:o?w.jsx(wi,{asChild:!0,...s,orientation:i,dir:a,loop:c,children:w.jsx(z.div,{...d,ref:t})}):w.jsx(z.div,{...d,ref:t})})}),qo="ToggleGroupItem",sC=_.forwardRef((e,t)=>{const n=Am(qo,e.__scopeToggleGroup),r=aC(qo,e.__scopeToggleGroup),o=Tm(e.__scopeToggleGroup),i=n.value.includes(e.value),l=r.disabled||e.disabled,c={...e,pressed:i,disabled:l},u=_.useRef(null);return r.rovingFocus?w.jsx(xi,{asChild:!0,...o,focusable:!l,active:i,ref:u,children:w.jsx(Ru,{...c,ref:t})}):w.jsx(Ru,{...c,ref:t})});sC.displayName=qo;var Ru=_.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,i=Am(qo,n),l={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},c=i.type==="single"?l:void 0;return w.jsx(Rm,{...c,...o,ref:t,onPressedChange:u=>{u?i.onItemActivate(r):i.onItemDeactivate(r)}})}),[Ai]=xe("Tooltip",[jt]),sl=jt(),lC="TooltipProvider",Ou="tooltip.open",[rj,Dm]=Ai(lC),Lm="Tooltip",[oj,ki]=Ai(Lm),Xa="TooltipTrigger",uC=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ki(Xa,n),i=Dm(Xa,n),l=sl(n),c=g.useRef(null),u=re(t,c,o.onTriggerChange),s=g.useRef(!1),a=g.useRef(!1),d=g.useCallback(()=>s.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),w.jsx(vr,{asChild:!0,...l,children:w.jsx(z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:u,onPointerMove:N(e.onPointerMove,f=>{f.pointerType!=="touch"&&!a.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),a.current=!0)}),onPointerLeave:N(e.onPointerLeave,()=>{o.onTriggerLeave(),a.current=!1}),onPointerDown:N(e.onPointerDown,()=>{o.open&&o.onClose(),s.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:N(e.onFocus,()=>{s.current||o.onOpen()}),onBlur:N(e.onBlur,o.onClose),onClick:N(e.onClick,o.onClose)})})});uC.displayName=Xa;var cC="TooltipPortal",[ij,dC]=Ai(cC,{forceMount:void 0}),wn="TooltipContent",fC=g.forwardRef((e,t)=>{const n=dC(wn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=ki(wn,e.__scopeTooltip);return w.jsx(Ve,{present:r||l.open,children:l.disableHoverableContent?w.jsx(Im,{side:o,...i,ref:t}):w.jsx(pC,{side:o,...i,ref:t})})}),pC=g.forwardRef((e,t)=>{const n=ki(wn,e.__scopeTooltip),r=Dm(wn,e.__scopeTooltip),o=g.useRef(null),i=re(t,o),[l,c]=g.useState(null),{trigger:u,onClose:s}=n,a=o.current,{onPointerInTransitChange:d}=r,f=g.useCallback(()=>{c(null),d(!1)},[d]),p=g.useCallback((m,h)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},b=yC(y,v.getBoundingClientRect()),x=bC(y,b),S=wC(h.getBoundingClientRect()),E=EC([...x,...S]);c(E),d(!0)},[d]);return g.useEffect(()=>()=>f(),[f]),g.useEffect(()=>{if(u&&a){const m=v=>p(v,a),h=v=>p(v,u);return u.addEventListener("pointerleave",m),a.addEventListener("pointerleave",h),()=>{u.removeEventListener("pointerleave",m),a.removeEventListener("pointerleave",h)}}},[u,a,p,f]),g.useEffect(()=>{if(l){const m=h=>{const v=h.target,y={x:h.clientX,y:h.clientY},b=(u==null?void 0:u.contains(v))||(a==null?void 0:a.contains(v)),x=!xC(y,l);b?f():x&&(f(),s())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[u,a,l,s,f]),w.jsx(Im,{...e,ref:i})}),[hC,mC]=Ai(Lm,{isInside:!1}),vC=r0("TooltipContent"),Im=g.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:l,...c}=e,u=ki(wn,n),s=sl(n),{onClose:a}=u;return g.useEffect(()=>(document.addEventListener(Ou,a),()=>document.removeEventListener(Ou,a)),[a]),g.useEffect(()=>{if(u.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(u.trigger)&&a()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[u.trigger,a]),w.jsx(Sn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d=>d.preventDefault(),onDismiss:a,children:w.jsxs(yi,{"data-state":u.stateAttribute,...s,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[w.jsx(vC,{children:r}),w.jsx(hC,{scope:n,isInside:!0,children:w.jsx(q0,{id:u.contentId,role:"tooltip",children:o||r})})]})})});fC.displayName=wn;var Nm="TooltipArrow",gC=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=sl(n);return mC(Nm,n).isInside?null:w.jsx(bi,{...o,...r,ref:t})});gC.displayName=Nm;function yC(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function bC(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function wC(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function xC(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const c=t[i],u=t[l],s=c.x,a=c.y,d=u.x,f=u.y;a>r!=f>r&&n<(d-s)*(r-a)/(f-a)+s&&(o=!o)}return o}function EC(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),SC(t)}function SC(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],l=n[n.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}_.forwardRef(({children:e,className:t,...n},r)=>w.jsx(Cy,{className:me("overflow-hidden rounded-xl shadow-(--box-shadow-accordion)",t),ref:r,...n,children:e}));_.forwardRef(({children:e,className:t,triggerIcon:n,...r},o)=>w.jsx(_y,{className:"flex",children:w.jsxs(Py,{className:me("group flex h-14 flex-1 cursor-pointer items-center justify-between px-6 text-[15px] leading-none bg-white space-x-2",t),ref:o,...r,children:[e,n??w.jsx(U0,{className:"size-3 shrink-0 transition-transform duration-300 ease-in-out group-data-[state=open]:rotate-180 fill-primary-blue"})]})}));const ll=_.createContext({});function ul(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fm=typeof window<"u",Vm=Fm?_.useLayoutEffect:_.useEffect,Di=_.createContext(null);function cl(e,t){e.indexOf(t)===-1&&e.push(t)}function dl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const st=(e,t,n)=>n>t?t:n<e?e:n;function Ka(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let On=()=>{},mt=()=>{};var Tu;typeof process<"u"&&((Tu=process.env)==null?void 0:Tu.NODE_ENV)!=="production"&&(On=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Ka(t,n))},mt=(e,t,n)=>{if(!e)throw new Error(Ka(t,n))});const vt={},$m=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Bm(e){return typeof e=="object"&&e!==null}const zm=e=>/^0[^.\s]+$/u.test(e);function fl(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ge=e=>e,CC=(e,t)=>n=>t(e(n)),Er=(...e)=>e.reduce(CC),or=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class pl{constructor(){this.subscriptions=[]}add(t){return cl(this.subscriptions,t),()=>dl(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const l=this.subscriptions[i];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ot=e=>e*1e3,Ue=e=>e/1e3;function Um(e,t){return t?e*(1e3/t):0}const ju=new Set;function hl(e,t,n){e||ju.has(t)||(console.warn(Ka(t,n)),ju.add(t))}const Hm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_C=1e-7,PC=12;function RC(e,t,n,r,o){let i,l,c=0;do l=t+(n-t)/2,i=Hm(l,r,o)-e,i>0?n=l:t=l;while(Math.abs(i)>_C&&++c<PC);return l}function Sr(e,t,n,r){if(e===t&&n===r)return Ge;const o=i=>RC(i,0,1,e,n);return i=>i===0||i===1?i:Hm(o(i),t,r)}const Gm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Wm=e=>t=>1-e(1-t),Xm=Sr(.33,1.53,.69,.99),ml=Wm(Xm),Km=Gm(ml),Ym=e=>(e*=2)<1?.5*ml(e):.5*(2-Math.pow(2,-10*(e-1))),vl=e=>1-Math.sin(Math.acos(e)),qm=Wm(vl),Zm=Gm(vl),OC=Sr(.42,0,1,1),TC=Sr(0,0,.58,1),Qm=Sr(.42,0,.58,1),jC=e=>Array.isArray(e)&&typeof e[0]!="number",Jm=e=>Array.isArray(e)&&typeof e[0]=="number",Mu={linear:Ge,easeIn:OC,easeInOut:Qm,easeOut:TC,circIn:vl,circInOut:Zm,circOut:qm,backIn:ml,backInOut:Km,backOut:Xm,anticipate:Ym},MC=e=>typeof e=="string",Au=e=>{if(Jm(e)){mt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Sr(t,n,r,o)}else if(MC(e))return mt(Mu[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Mu[e];return e},Ur=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function AC(e,t){let n=new Set,r=new Set,o=!1,i=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function u(a){l.has(a)&&(s.schedule(a),e()),a(c)}const s={schedule:(a,d=!1,f=!1)=>{const p=f&&o?n:r;return d&&l.add(a),p.has(a)||p.add(a),a},cancel:a=>{r.delete(a),l.delete(a)},process:a=>{if(c=a,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(u),n.clear(),o=!1,i&&(i=!1,s.process(a))}};return s}const kC=40;function ev(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,l=Ur.reduce((y,b)=>(y[b]=AC(i),y),{}),{setup:c,read:u,resolveKeyframes:s,preUpdate:a,update:d,preRender:f,render:p,postRender:m}=l,h=()=>{const y=vt.useManualTiming?o.timestamp:performance.now();n=!1,vt.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(y-o.timestamp,kC),1)),o.timestamp=y,o.isProcessing=!0,c.process(o),u.process(o),s.process(o),a.process(o),d.process(o),f.process(o),p.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))},v=()=>{n=!0,r=!0,o.isProcessing||e(h)};return{schedule:Ur.reduce((y,b)=>{const x=l[b];return y[b]=(S,E=!1,A=!1)=>(n||v(),x.schedule(S,E,A)),y},{}),cancel:y=>{for(let b=0;b<Ur.length;b++)l[Ur[b]].cancel(y)},state:o,steps:l}}const{schedule:he,cancel:Ot,state:_e,steps:ia}=ev(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ge,!0);let Lo;function DC(){Lo=void 0}const je={now:()=>(Lo===void 0&&je.set(_e.isProcessing||vt.useManualTiming?_e.timestamp:performance.now()),Lo),set:e=>{Lo=e,queueMicrotask(DC)}},tv=e=>t=>typeof t=="string"&&t.startsWith(e),nv=tv("--"),LC=tv("var(--"),gl=e=>LC(e)?IC.test(e.split("/*")[0].trim()):!1,IC=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ku(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Tn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ir={...Tn,transform:e=>st(0,1,e)},Hr={...Tn,default:1},qn=e=>Math.round(e*1e5)/1e5,yl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function NC(e){return e==null}const FC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bl=(e,t)=>n=>!!(typeof n=="string"&&FC.test(n)&&n.startsWith(e)||t&&!NC(n)&&Object.prototype.hasOwnProperty.call(n,t)),rv=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,l,c]=r.match(yl);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},VC=e=>st(0,255,e),aa={...Tn,transform:e=>Math.round(VC(e))},Ut={test:bl("rgb","red"),parse:rv("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+aa.transform(e)+", "+aa.transform(t)+", "+aa.transform(n)+", "+qn(ir.transform(r))+")"};function $C(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Ya={test:bl("#"),parse:$C,transform:Ut.transform},Cr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Et=Cr("deg"),it=Cr("%"),W=Cr("px"),BC=Cr("vh"),zC=Cr("vw"),Du={...it,parse:e=>it.parse(e)/100,transform:e=>it.transform(e*100)},sn={test:bl("hsl","hue"),parse:rv("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+it.transform(qn(t))+", "+it.transform(qn(n))+", "+qn(ir.transform(r))+")"},Ee={test:e=>Ut.test(e)||Ya.test(e)||sn.test(e),parse:e=>Ut.test(e)?Ut.parse(e):sn.test(e)?sn.parse(e):Ya.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ut.transform(e):sn.transform(e),getAnimatableNone:e=>{const t=Ee.parse(e);return t.alpha=0,Ee.transform(t)}},UC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function HC(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(yl))==null?void 0:t.length)||0)+(((n=e.match(UC))==null?void 0:n.length)||0)>0}const ov="number",iv="color",GC="var",WC="var(",Lu="${}",XC=/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 ar(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const l=t.replace(XC,c=>(Ee.test(c)?(r.color.push(i),o.push(iv),n.push(Ee.parse(c))):c.startsWith(WC)?(r.var.push(i),o.push(GC),n.push(c)):(r.number.push(i),o.push(ov),n.push(parseFloat(c))),++i,Lu)).split(Lu);return{values:n,split:l,indexes:r,types:o}}function av(e){return ar(e).values}function sv(e){const{split:t,types:n}=ar(e),r=t.length;return o=>{let i="";for(let l=0;l<r;l++)if(i+=t[l],o[l]!==void 0){const c=n[l];c===ov?i+=qn(o[l]):c===iv?i+=Ee.transform(o[l]):i+=o[l]}return i}}const KC=e=>typeof e=="number"?0:Ee.test(e)?Ee.getAnimatableNone(e):e;function YC(e){const t=av(e);return sv(e)(t.map(KC))}const Tt={test:HC,parse:av,createTransformer:sv,getAnimatableNone:YC};function sa(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 qC({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,l=0;if(!t)o=i=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;o=sa(u,c,e+1/3),i=sa(u,c,e),l=sa(u,c,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(l*255),alpha:r}}function Zo(e,t){return n=>n>0?t:e}const ye=(e,t,n)=>e+(t-e)*n,la=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},ZC=[Ya,Ut,sn],QC=e=>ZC.find(t=>t.test(e));function Iu(e){const t=QC(e);if(On(!!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===sn&&(n=qC(n)),n}const Nu=(e,t)=>{const n=Iu(e),r=Iu(t);if(!n||!r)return Zo(e,t);const o={...n};return i=>(o.red=la(n.red,r.red,i),o.green=la(n.green,r.green,i),o.blue=la(n.blue,r.blue,i),o.alpha=ye(n.alpha,r.alpha,i),Ut.transform(o))},qa=new Set(["none","hidden"]);function JC(e,t){return qa.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function e_(e,t){return n=>ye(e,t,n)}function wl(e){return typeof e=="number"?e_:typeof e=="string"?gl(e)?Zo:Ee.test(e)?Nu:r_:Array.isArray(e)?lv:typeof e=="object"?Ee.test(e)?Nu:t_:Zo}function lv(e,t){const n=[...e],r=n.length,o=e.map((i,l)=>wl(i)(i,t[l]));return i=>{for(let l=0;l<r;l++)n[l]=o[l](i);return n}}function t_(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=wl(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function n_(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],l=e.indexes[i][r[i]],c=e.values[l]??0;n[o]=c,r[i]++}return n}const r_=(e,t)=>{const n=Tt.createTransformer(t),r=ar(e),o=ar(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?qa.has(e)&&!o.values.length||qa.has(t)&&!r.values.length?JC(e,t):Er(lv(n_(r,o),o.values),n):(On(!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"),Zo(e,t))};function uv(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ye(e,t,n):wl(e)(e,t)}const o_=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>he.update(t,n),stop:()=>Ot(t),now:()=>_e.isProcessing?_e.timestamp:je.now()}},cv=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Qo=2e4;function xl(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Qo;)t+=n,r=e.next(t);return t>=Qo?1/0:t}function i_(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(xl(r),Qo);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ue(o)}}const a_=5;function dv(e,t,n){const r=Math.max(t-a_,0);return Um(n-e(r),t-r)}const ge={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},ua=.001;function s_({duration:e=ge.duration,bounce:t=ge.bounce,velocity:n=ge.velocity,mass:r=ge.mass}){let o,i;On(e<=ot(ge.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let l=1-t;l=st(ge.minDamping,ge.maxDamping,l),e=st(ge.minDuration,ge.maxDuration,Ue(e)),l<1?(o=s=>{const a=s*l,d=a*e,f=a-n,p=Za(s,l),m=Math.exp(-d);return ua-f/p*m},i=s=>{const a=s*l*e,d=a*n+n,f=Math.pow(l,2)*Math.pow(s,2)*e,p=Math.exp(-a),m=Za(Math.pow(s,2),l);return(-o(s)+ua>0?-1:1)*((d-f)*p)/m}):(o=s=>{const a=Math.exp(-s*e),d=(s-n)*e+1;return-ua+a*d},i=s=>{const a=Math.exp(-s*e),d=(n-s)*(e*e);return a*d});const c=5/e,u=u_(o,i,c);if(e=ot(e),isNaN(u))return{stiffness:ge.stiffness,damping:ge.damping,duration:e};{const s=Math.pow(u,2)*r;return{stiffness:s,damping:l*2*Math.sqrt(r*s),duration:e}}}const l_=12;function u_(e,t,n){let r=n;for(let o=1;o<l_;o++)r=r-e(r)/t(r);return r}function Za(e,t){return e*Math.sqrt(1-t*t)}const c_=["duration","bounce"],d_=["stiffness","damping","mass"];function Fu(e,t){return t.some(n=>e[n]!==void 0)}function f_(e){let t={velocity:ge.velocity,stiffness:ge.stiffness,damping:ge.damping,mass:ge.mass,isResolvedFromDuration:!1,...e};if(!Fu(e,d_)&&Fu(e,c_))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*st(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ge.mass,stiffness:o,damping:i}}else{const n=s_(e);t={...t,...n,mass:ge.mass},t.isResolvedFromDuration=!0}return t}function Jo(e=ge.visualDuration,t=ge.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:i},{stiffness:u,damping:s,mass:a,duration:d,velocity:f,isResolvedFromDuration:p}=f_({...n,velocity:-Ue(n.velocity||0)}),m=f||0,h=s/(2*Math.sqrt(u*a)),v=l-i,y=Ue(Math.sqrt(u/a)),b=Math.abs(v)<5;r||(r=b?ge.restSpeed.granular:ge.restSpeed.default),o||(o=b?ge.restDelta.granular:ge.restDelta.default);let x;if(h<1){const E=Za(y,h);x=A=>{const j=Math.exp(-h*y*A);return l-j*((m+h*y*v)/E*Math.sin(E*A)+v*Math.cos(E*A))}}else if(h===1)x=E=>l-Math.exp(-y*E)*(v+(m+y*v)*E);else{const E=y*Math.sqrt(h*h-1);x=A=>{const j=Math.exp(-h*y*A),O=Math.min(E*A,300);return l-j*((m+h*y*v)*Math.sinh(O)+E*v*Math.cosh(O))/E}}const S={calculatedDuration:p&&d||null,next:E=>{const A=x(E);if(p)c.done=E>=d;else{let j=E===0?m:0;h<1&&(j=E===0?ot(m):dv(x,E,A));const O=Math.abs(j)<=r,T=Math.abs(l-A)<=o;c.done=O&&T}return c.value=c.done?l:A,c},toString:()=>{const E=Math.min(xl(S),Qo),A=cv(j=>S.next(E*j).value,E,30);return E+"ms "+A},toTransition:()=>{}};return S}Jo.applyToOptions=e=>{const t=i_(e,100,Jo);return e.ease=t.ease,e.duration=ot(t.duration),e.type="keyframes",e};function Qa({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:l,min:c,max:u,restDelta:s=.5,restSpeed:a}){const d=e[0],f={done:!1,value:d},p=O=>c!==void 0&&O<c||u!==void 0&&O>u,m=O=>c===void 0?u:u===void 0||Math.abs(c-O)<Math.abs(u-O)?c:u;let h=n*t;const v=d+h,y=l===void 0?v:l(v);y!==v&&(h=y-d);const b=O=>-h*Math.exp(-O/r),x=O=>y+b(O),S=O=>{const T=b(O),P=x(O);f.done=Math.abs(T)<=s,f.value=f.done?y:P};let E,A;const j=O=>{p(f.value)&&(E=O,A=Jo({keyframes:[f.value,m(f.value)],velocity:dv(x,O,f.value),damping:o,stiffness:i,restDelta:s,restSpeed:a}))};return j(0),{calculatedDuration:null,next:O=>{let T=!1;return!A&&E===void 0&&(T=!0,S(O),j(O)),E!==void 0&&O>=E?A.next(O-E):(!T&&S(O),f)}}}function p_(e,t,n){const r=[],o=n||vt.mix||uv,i=e.length-1;for(let l=0;l<i;l++){let c=o(e[l],e[l+1]);if(t){const u=Array.isArray(t)?t[l]||Ge:t;c=Er(u,c)}r.push(c)}return r}function h_(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(mt(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=p_(t,r,o),u=c.length,s=a=>{if(l&&a<e[0])return t[0];let d=0;if(u>1)for(;d<e.length-2&&!(a<e[d+1]);d++);const f=or(e[d],e[d+1],a);return c[d](f)};return n?a=>s(st(e[0],e[i-1],a)):s}function m_(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=or(0,t,r);e.push(ye(n,1,o))}}function v_(e){const t=[0];return m_(t,e.length-1),t}function g_(e,t){return e.map(n=>n*t)}function y_(e,t){return e.map(()=>t||Qm).splice(0,e.length-1)}function ln({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=jC(r)?r.map(Au):Au(r),i={done:!1,value:t[0]},l=g_(n&&n.length===t.length?n:v_(t),e),c=h_(l,t,{ease:Array.isArray(o)?o:y_(t,o)});return{calculatedDuration:e,next:u=>(i.value=c(u),i.done=u>=e,i)}}const b_=e=>e!==null;function El(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(b_),l=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||r===void 0?i[l]:r}const w_={decay:Qa,inertia:Qa,tween:ln,keyframes:ln,spring:Jo};function fv(e){typeof e.type=="string"&&(e.type=w_[e.type])}class Sl{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 x_=e=>e/100;class Cl extends Sl{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var n,r;const{motionValue:o}=this.options;o&&o.updatedAt!==je.now()&&this.tick(je.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(n=this.options).onStop)==null||r.call(n))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;fv(t);const{type:n=ln,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:l=0}=t;let{keyframes:c}=t;const u=n||ln;process.env.NODE_ENV!=="production"&&u!==ln&&mt(c.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${c}`,"spring-two-frames"),u!==ln&&typeof c[0]!="number"&&(this.mixKeyframes=Er(x_,uv(c[0],c[1])),c=[0,100]);const s=u({...t,keyframes:c});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...c].reverse(),velocity:-l})),s.calculatedDuration===null&&(s.calculatedDuration=xl(s));const{calculatedDuration:a}=s;this.calculatedDuration=a,this.resolvedDuration=a+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=s}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:o,mixKeyframes:i,mirroredGenerator:l,resolvedDuration:c,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:s=0,keyframes:a,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:h,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-s*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let x=this.currentTime,S=r;if(d){const O=Math.min(this.currentTime,o)/c;let T=Math.floor(O),P=O%1;!P&&O>=1&&(P=1),P===1&&T--,T=Math.min(T,d+1),T%2&&(f==="reverse"?(P=1-P,p&&(P-=p/c)):f==="mirror"&&(S=l)),x=st(0,1,P)*c}const E=b?{done:!1,value:a[0]}:S.next(x);i&&(E.value=i(E.value));let{done:A}=E;!b&&u!==null&&(A=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return j&&m!==Qa&&(E.value=El(a,this.options,v,this.speed)),h&&h(E.value),j&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return Ue(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ue(t)}get time(){return Ue(this.currentTime)}set time(t){var n;t=ot(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),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(je.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ue(this.currentTime))}play(){var t,n;if(this.isStopped)return;const{driver:r=o_,startTime:o}=this.options;this.driver||(this.driver=r(l=>this.tick(l))),(n=(t=this.options).onPlay)==null||n.call(t);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=o??i),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(je.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}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){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function E_(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ht=e=>e*180/Math.PI,Ja=e=>{const t=Ht(Math.atan2(e[1],e[0]));return es(t)},S_={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ja,rotateZ:Ja,skewX:e=>Ht(Math.atan(e[1])),skewY:e=>Ht(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},es=e=>(e=e%360,e<0&&(e+=360),e),Vu=Ja,$u=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Bu=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),C_={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:$u,scaleY:Bu,scale:e=>($u(e)+Bu(e))/2,rotateX:e=>es(Ht(Math.atan2(e[6],e[5]))),rotateY:e=>es(Ht(Math.atan2(-e[2],e[0]))),rotateZ:Vu,rotate:Vu,skewX:e=>Ht(Math.atan(e[4])),skewY:e=>Ht(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ts(e){return e.includes("scale")?1:0}function ns(e,t){if(!e||e==="none")return ts(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=C_,o=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=S_,o=c}if(!o)return ts(t);const i=r[t],l=o[1].split(",").map(P_);return typeof i=="function"?i(l):l[i]}const __=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ns(n,t)};function P_(e){return parseFloat(e.trim())}const jn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mn=new Set(jn),zu=e=>e===Tn||e===W,R_=new Set(["x","y","z"]),O_=jn.filter(e=>!R_.has(e));function T_(e){const t=[];return O_.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const St={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-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})=>ns(t,"x"),y:(e,{transform:t})=>ns(t,"y")};St.translateX=St.x;St.translateY=St.y;const Gt=new Set;let rs=!1,os=!1,is=!1;function pv(){if(os){const e=Array.from(Gt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=T_(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,l])=>{var c;(c=r.getValue(i))==null||c.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}os=!1,rs=!1,Gt.forEach(e=>e.complete(is)),Gt.clear()}function hv(){Gt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(os=!0)})}function j_(){is=!0,hv(),pv(),is=!1}class _l{constructor(t,n,r,o,i,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(Gt.add(this),rs||(rs=!0,he.read(hv),he.resolveKeyframes(pv))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o==null?void 0:o.get(),l=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),o&&i===void 0&&o.set(t[0])}E_(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Gt.delete(this)}cancel(){this.state==="scheduled"&&(Gt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const M_=e=>e.startsWith("--");function A_(e,t,n){M_(t)?e.style.setProperty(t,n):e.style[t]=n}const k_=fl(()=>window.ScrollTimeline!==void 0),D_={};function L_(e,t){const n=fl(e);return()=>D_[t]??n()}const mv=L_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Kn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Uu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Kn([0,.65,.55,1]),circOut:Kn([.55,0,1,.45]),backIn:Kn([.31,.01,.66,-.59]),backOut:Kn([.33,1.53,.69,.99])};function vv(e,t){if(e)return typeof e=="function"?mv()?cv(e,t):"ease-out":Jm(e)?Kn(e):Array.isArray(e)?e.map(n=>vv(n,t)||Uu.easeOut):Uu[e]}function I_(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:l="loop",ease:c="easeOut",times:u}={},s=void 0){const a={[t]:n};u&&(a.offset=u);const d=vv(c,o);Array.isArray(d)&&(a.easing=d);const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:l==="reverse"?"alternate":"normal"};return s&&(f.pseudoElement=s),e.animate(a,f)}function gv(e){return typeof e=="function"&&"applyToOptions"in e}function N_({type:e,...t}){return gv(e)&&mv()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class F_ extends Sl{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:l=!1,finalKeyframe:c,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=l,this.options=t,mt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const s=N_(t);this.animation=I_(n,r,o,s,i),s.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const a=El(o,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(a):A_(n,r,a),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}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(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var t,n;const r=((n=(t=this.animation.effect)==null?void 0:t.getComputedTiming)==null?void 0:n.call(t).duration)||0;return Ue(Number(r))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ue(t)}get time(){return Ue(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ot(t)}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,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&k_()?(this.animation.timeline=t,Ge):n(this)}}const yv={anticipate:Ym,backInOut:Km,circInOut:Zm};function V_(e){return e in yv}function $_(e){typeof e.ease=="string"&&V_(e.ease)&&(e.ease=yv[e.ease])}const ca=10;class B_ extends F_{constructor(t){$_(t),fv(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new Cl({...l,autoplay:!1}),u=Math.max(ca,je.now()-this.startTime),s=st(0,ca,u-ca);n.setWithVelocity(c.sample(Math.max(0,u-s)).value,c.sample(u).value,s),c.stop()}}const Hu=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tt.test(e)||e==="0")&&!e.startsWith("url("));function z_(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 U_(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],l=Hu(o,t),c=Hu(i,t);return On(l===c,`You are trying to animate ${t} from "${o}" to "${i}". "${l?i:o}" is not an animatable value.`,"value-not-animatable"),!l||!c?!1:z_(e)||(n==="spring"||gv(n))&&r}function as(e){e.duration=0,e.type="keyframes"}const H_=new Set(["opacity","clipPath","filter","transform"]),G_=fl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function W_(e){var t;const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:l,type:c}=e;if(!(((t=n==null?void 0:n.owner)==null?void 0:t.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:s}=n.owner.getProps();return G_()&&r&&H_.has(r)&&(r!=="transform"||!s)&&!u&&!o&&i!=="mirror"&&l!==0&&c!=="inertia"}const X_=40;class K_ extends Sl{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:l="loop",keyframes:c,name:u,motionValue:s,element:a,...d}){var f;super(),this.stop=()=>{var h,v;this._animation&&(this._animation.stop(),(h=this.stopTimeline)==null||h.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=je.now();const p={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:l,name:u,motionValue:s,element:a,...d},m=(a==null?void 0:a.KeyframeResolver)||_l;this.keyframeResolver=new m(c,(h,v,y)=>this.onKeyframesResolved(h,v,p,!y),u,s,a),(f=this.keyframeResolver)==null||f.scheduleResolve()}onKeyframesResolved(t,n,r,o){var i,l;this.keyframeResolver=void 0;const{name:c,type:u,velocity:s,delay:a,isHandoff:d,onUpdate:f}=r;this.resolvedAt=je.now(),U_(t,c,u,s)||((vt.instantAnimations||!a)&&(f==null||f(El(t,r,n))),t[0]=t[t.length-1],as(r),r.repeat=0);const p={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>X_?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!d&&W_(p),h=(l=(i=p.motionValue)==null?void 0:i.owner)==null?void 0:l.current,v=m?new B_({...p,element:h}):new Cl(p);v.finished.then(()=>{this.notifyFinished()}).catch(Ge),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),j_()),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(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function bv(e,t,n,r=0,o=1){const i=Array.from(e).sort((u,s)=>u.sortNodePosition(s)).indexOf(t),l=e.size,c=(l-1)*r;return typeof n=="function"?n(i,l):o===1?i*r:c-i*r}const Y_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function q_(e){const t=Y_.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Z_=4;function wv(e,t,n=1){mt(n<=Z_,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=q_(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const l=i.trim();return $m(l)?parseFloat(l):l}return gl(o)?wv(o,t,n+1):o}const Q_={type:"spring",stiffness:500,damping:25,restSpeed:10},J_=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),eP={type:"keyframes",duration:.8},tP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nP=(e,{keyframes:t})=>t.length>2?eP:Mn.has(e)?e.startsWith("scale")?J_(t[1]):Q_:tP,rP=e=>e!==null;function oP(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(rP),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}function Pl(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function iP({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:l,repeatDelay:c,from:u,elapsed:s,...a}){return!!Object.keys(a).length}const Rl=(e,t,n,r={},o,i)=>l=>{const c=Pl(r,e)||{},u=c.delay||r.delay||0;let{elapsed:s=0}=r;s=s-ot(u);const a={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-s,onUpdate:f=>{t.set(f),c.onUpdate&&c.onUpdate(f)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:i?void 0:o};iP(c)||Object.assign(a,nP(e,a)),a.duration&&(a.duration=ot(a.duration)),a.repeatDelay&&(a.repeatDelay=ot(a.repeatDelay)),a.from!==void 0&&(a.keyframes[0]=a.from);let d=!1;if((a.type===!1||a.duration===0&&!a.repeatDelay)&&(as(a),a.delay===0&&(d=!0)),(vt.instantAnimations||vt.skipAnimations)&&(d=!0,as(a),a.delay=0),a.allowFlatten=!c.type&&!c.ease,d&&!i&&t.get()!==void 0){const f=oP(a.keyframes,c);if(f!==void 0){he.update(()=>{a.onUpdate(f),a.onComplete()});return}}return c.isSync?new Cl(a):new K_(a)};function Gu(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ol(e,t,n,r){if(typeof t=="function"){const[o,i]=Gu(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Gu(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function vn(e,t,n){const r=e.getProps();return Ol(r,t,n!==void 0?n:r.custom,e)}const xv=new Set(["width","height","top","left","right","bottom",...jn]),Wu=30,aP=e=>!isNaN(parseFloat(e));class sP{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=je.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=je.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=aP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&hl(!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 pl);const r=this.events[t].add(n);return t==="change"?()=>{r(),he.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(){var t;(t=this.events.change)==null||t.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=je.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Wu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Wu);return Um(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xn(e,t){return new sP(e,t)}const ss=e=>Array.isArray(e);function lP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xn(n))}function uP(e){return ss(e)?e[e.length-1]||0:e}function cP(e,t){const n=vn(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const l in i){const c=uP(i[l]);lP(e,l,c)}}const Pe=e=>!!(e&&e.getVelocity);function dP(e){return!!(Pe(e)&&e.add)}function ls(e,t){const n=e.getValue("willChange");if(dP(n))return n.add(t);if(!n&&vt.WillChange){const r=new vt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Tl(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const fP="framerAppearId",Ev="data-"+Tl(fP);function Sv(e){return e.props[Ev]}function pP({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Cv(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(i=r);const u=[],s=o&&e.animationState&&e.animationState.getState()[o];for(const a in c){const d=e.getValue(a,e.latestValues[a]??null),f=c[a];if(f===void 0||s&&pP(s,a))continue;const p={delay:n,...Pl(i||{},a)},m=d.get();if(m!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===m&&!p.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){const y=Sv(e);if(y){const b=window.MotionHandoffAnimation(y,a,he);b!==null&&(p.startTime=b,h=!0)}}ls(e,a),d.start(Rl(a,d,f,e.shouldReduceMotion&&xv.has(a)?{type:!1}:p,e,h));const v=d.animation;v&&u.push(v)}return l&&Promise.all(u).then(()=>{he.update(()=>{l&&cP(e,l)})}),u}function us(e,t,n={}){var r;const o=vn(e,t,n.type==="exit"?(r=e.presenceContext)==null?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const l=o?()=>Promise.all(Cv(e,o,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(s=0)=>{const{delayChildren:a=0,staggerChildren:d,staggerDirection:f}=i;return hP(e,t,s,a,d,f,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[s,a]=u==="beforeChildren"?[l,c]:[c,l];return s().then(()=>a())}else return Promise.all([l(),c(n.delay)])}function hP(e,t,n=0,r=0,o=0,i=1,l){const c=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),c.push(us(u,t,{...l,delay:n+(typeof r=="function"?0:r)+bv(e.variantChildren,u,r,o,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(c)}function mP(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>us(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=us(e,t,n);else{const o=typeof t=="function"?vn(e,t,n.custom):t;r=Promise.all(Cv(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const vP={test:e=>e==="auto",parse:e=>e},_v=e=>t=>t.test(e),Pv=[Tn,W,it,Et,zC,BC,vP],Xu=e=>Pv.find(_v(e));function gP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||zm(e):!0}const yP=new Set(["brightness","contrast","saturate","opacity"]);function bP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(yl)||[];if(!r)return e;const o=n.replace(r,"");let i=yP.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const wP=/\b([a-z-]*)\(.*?\)/gu,cs={...Tt,getAnimatableNone:e=>{const t=e.match(wP);return t?t.map(bP).join(" "):e}},Ku={...Tn,transform:Math.round},xP={rotate:Et,rotateX:Et,rotateY:Et,rotateZ:Et,scale:Hr,scaleX:Hr,scaleY:Hr,scaleZ:Hr,skew:Et,skewX:Et,skewY:Et,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:ir,originX:Du,originY:Du,originZ:W},jl={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,radius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,backgroundPositionX:W,backgroundPositionY:W,...xP,zIndex:Ku,fillOpacity:ir,strokeOpacity:ir,numOctaves:Ku},EP={...jl,color:Ee,backgroundColor:Ee,outlineColor:Ee,fill:Ee,stroke:Ee,borderColor:Ee,borderTopColor:Ee,borderRightColor:Ee,borderBottomColor:Ee,borderLeftColor:Ee,filter:cs,WebkitFilter:cs},Rv=e=>EP[e];function Ov(e,t){let n=Rv(e);return n!==cs&&(n=Tt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const SP=new Set(["auto","none","0"]);function CP(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!SP.has(i)&&ar(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Ov(n,o)}class _P extends _l{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let d=t[a];if(typeof d=="string"&&(d=d.trim(),gl(d))){const f=wv(d,n.current);f!==void 0&&(t[a]=f),a===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!xv.has(r)||t.length!==2)return;const[o,i]=t,l=Xu(o),c=Xu(i),u=ku(o),s=ku(i);if(u!==s&&St[r]){this.needsMeasurement=!0;return}if(l!==c)if(zu(l)&&zu(c))for(let a=0;a<t.length;a++){const d=t[a];typeof d=="string"&&(t[a]=parseFloat(d))}else St[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||gP(t[o]))&&r.push(o);r.length&&CP(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=St[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const l=o.length-1,c=o[l];o[l]=St[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),(t=this.removedTransforms)!=null&&t.length&&this.removedTransforms.forEach(([u,s])=>{n.getValue(u).set(s)}),this.resolveNoneKeyframes()}}function PP(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const o=document.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const Tv=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function jv(e){return Bm(e)&&"offsetHeight"in e}const{schedule:Ml}=ev(queueMicrotask,!1),Ye={x:!1,y:!1};function Mv(){return Ye.x||Ye.y}function RP(e){return e==="x"||e==="y"?Ye[e]?null:(Ye[e]=!0,()=>{Ye[e]=!1}):Ye.x||Ye.y?null:(Ye.x=Ye.y=!0,()=>{Ye.x=Ye.y=!1})}function Av(e,t){const n=PP(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Yu(e){return!(e.pointerType==="touch"||Mv())}function OP(e,t,n={}){const[r,o,i]=Av(e,n),l=c=>{if(!Yu(c))return;const{target:u}=c,s=t(u,c);if(typeof s!="function"||!u)return;const a=d=>{Yu(d)&&(s(d),u.removeEventListener("pointerleave",a))};u.addEventListener("pointerleave",a,o)};return r.forEach(c=>{c.addEventListener("pointerenter",l,o)}),i}const kv=(e,t)=>t?e===t?!0:kv(e,t.parentElement):!1,Al=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,TP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Dv(e){return TP.has(e.tagName)||e.isContentEditable===!0}const Io=new WeakSet;function qu(e){return t=>{t.key==="Enter"&&e(t)}}function da(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const jP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=qu(()=>{if(Io.has(n))return;da(n,"down");const o=qu(()=>{da(n,"up")}),i=()=>da(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Zu(e){return Al(e)&&!Mv()}function MP(e,t,n={}){const[r,o,i]=Av(e,n),l=c=>{const u=c.currentTarget;if(!Zu(c))return;Io.add(u);const s=t(u,c),a=(p,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Io.has(u)&&Io.delete(u),Zu(p)&&typeof s=="function"&&s(p,{success:m})},d=p=>{a(p,u===window||u===document||n.useGlobalTarget||kv(u,p.target))},f=p=>{a(p,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,o),jv(c)&&(c.addEventListener("focus",u=>jP(u,o)),!Dv(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),i}function Lv(e){return Bm(e)&&"ownerSVGElement"in e}function AP(e){return Lv(e)&&e.tagName==="svg"}const kP=[...Pv,Ee,Tt],DP=e=>kP.find(_v(e)),Qu=()=>({translate:0,scale:1,origin:0,originPoint:0}),un=()=>({x:Qu(),y:Qu()}),Ju=()=>({min:0,max:0}),Ce=()=>({x:Ju(),y:Ju()}),ds={current:null},Iv={current:!1},LP=typeof window<"u";function IP(){if(Iv.current=!0,!!LP)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ds.current=e.matches;e.addEventListener("change",t),t()}else ds.current=!1}const NP=new WeakMap;function Li(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function sr(e){return typeof e=="string"||Array.isArray(e)}const kl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Dl=["initial",...kl];function Ii(e){return Li(e.animate)||Dl.some(t=>sr(e[t]))}function Nv(e){return!!(Ii(e)||e.variants)}function FP(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Pe(o))e.addValue(r,o);else if(Pe(i))e.addValue(r,xn(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=e.getStaticValue(r);e.addValue(r,xn(l!==void 0?l:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ec=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ei={};function Fv(e){ei=e}function VP(){return ei}class $P{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=_l,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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 f=je.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,he.render(this.render,!1,!0))};const{latestValues:u,renderState:s}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=s,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=c,this.blockInitialAnimation=!!i,this.isControllingVariants=Ii(n),this.isVariantNode=Nv(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:a,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];u[f]!==void 0&&Pe(p)&&p.set(u[f])}}mount(t){var n;this.current=t,NP.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((r,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Iv.current||IP(),this.shouldReduceMotion=ds.current),process.env.NODE_ENV!=="production"&&hl(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ot(this.notifyUpdate),Ot(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.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){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Mn.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&he.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}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 ei){const n=ei[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ce()}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<ec.length;r++){const o=ec[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,l=t[i];l&&(this.propEventSubscriptions[o]=this.on(o,l))}this.prevMotionValues=FP(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=xn(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"&&($m(r)||zm(r))?r=parseFloat(r):!DP(r)&&Tt.test(n)&&(r=Ov(t,n)),this.setBaseTarget(t,Pe(r)?r.get():r)),Pe(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const l=Ol(this.props,r,(n=this.presenceContext)==null?void 0:n.custom);l&&(o=l[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Pe(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new pl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ml.render(this.render)}}class Vv extends $P{constructor(){super(...arguments),this.KeyframeResolver=_P}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;Pe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Lt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function $v({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function BP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zP(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 fa(e){return e===void 0||e===1}function fs({scale:e,scaleX:t,scaleY:n}){return!fa(e)||!fa(t)||!fa(n)}function zt(e){return fs(e)||Bv(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Bv(e){return tc(e.x)||tc(e.y)}function tc(e){return e&&e!=="0%"}function ti(e,t,n){const r=e-n,o=t*r;return n+o}function nc(e,t,n,r,o){return o!==void 0&&(e=ti(e,o,r)),ti(e,n,r)+t}function ps(e,t=0,n=1,r,o){e.min=nc(e.min,t,n,r,o),e.max=nc(e.max,t,n,r,o)}function zv(e,{x:t,y:n}){ps(e.x,t.translate,t.scale,t.originPoint),ps(e.y,n.translate,n.scale,n.originPoint)}const rc=.999999999999,oc=1.0000000000001;function UP(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,l;for(let c=0;c<o;c++){i=n[c],l=i.projectionDelta;const{visualElement:u}=i.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&dn(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,zv(e,l)),r&&zt(i.latestValues)&&dn(e,i.latestValues))}t.x<oc&&t.x>rc&&(t.x=1),t.y<oc&&t.y>rc&&(t.y=1)}function cn(e,t){e.min=e.min+t,e.max=e.max+t}function ic(e,t,n,r,o=.5){const i=ye(e.min,e.max,o);ps(e,t,n,i,r)}function dn(e,t){ic(e.x,t.x,t.scaleX,t.scale,t.originX),ic(e.y,t.y,t.scaleY,t.scale,t.originY)}function Uv(e,t){return $v(zP(e.getBoundingClientRect(),t))}function HP(e,t,n){const r=Uv(e,n),{scroll:o}=t;return o&&(cn(r.x,o.offset.x),cn(r.y,o.offset.y)),r}const GP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},WP=jn.length;function XP(e,t,n){let r="",o=!0;for(let i=0;i<WP;i++){const l=jn[i],c=e[l];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(l.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const s=Tv(c,jl[l]);if(!u){o=!1;const a=GP[l]||l;r+=`${a}(${s}) `}n&&(t[l]=s)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Ll(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let l=!1,c=!1;for(const u in t){const s=t[u];if(Mn.has(u)){l=!0;continue}else if(nv(u)){o[u]=s;continue}else{const a=Tv(s,jl[u]);u.startsWith("origin")?(c=!0,i[u]=a):r[u]=a}}if(t.transform||(l||n?r.transform=XP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:s="50%",originZ:a=0}=i;r.transformOrigin=`${u} ${s} ${a}`}}function Hv(e,{style:t,vars:n},r,o){const i=e.style;let l;for(l in t)i[l]=t[l];o==null||o.applyProjectionStyles(i,r);for(l in n)i.setProperty(l,n[l])}function ac(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const In={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(W.test(e))e=parseFloat(e);else return e;const n=ac(e,t.target.x),r=ac(e,t.target.y);return`${n}% ${r}%`}},KP={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Tt.parse(e);if(o.length>5)return r;const i=Tt.createTransformer(e),l=typeof o[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;o[0+l]/=c,o[1+l]/=u;const s=ye(c,u,.5);return typeof o[2+l]=="number"&&(o[2+l]/=s),typeof o[3+l]=="number"&&(o[3+l]/=s),i(o)}},hs={borderRadius:{...In,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:In,borderTopRightRadius:In,borderBottomLeftRadius:In,borderBottomRightRadius:In,boxShadow:KP};function Gv(e,{layout:t,layoutId:n}){return Mn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!hs[e]||e==="opacity")}function Il(e,t,n){var r;const o=e.style,i=t==null?void 0:t.style,l={};if(!o)return l;for(const c in o)(Pe(o[c])||i&&Pe(i[c])||Gv(c,e)||((r=n==null?void 0:n.getValue(c))==null?void 0:r.liveStyle)!==void 0)&&(l[c]=o[c]);return l}function YP(e){return window.getComputedStyle(e)}class qP extends Vv{constructor(){super(...arguments),this.type="html",this.renderInstance=Hv}readValueFromInstance(t,n){var r;if(Mn.has(n))return(r=this.projection)!=null&&r.isProjecting?ts(n):__(t,n);{const o=YP(t),i=(nv(n)?o.getPropertyValue(n):o[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Uv(t,n)}build(t,n,r){Ll(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Il(t,n,r)}}const ZP={offset:"stroke-dashoffset",array:"stroke-dasharray"},QP={offset:"strokeDashoffset",array:"strokeDasharray"};function JP(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?ZP:QP;e[i.offset]=W.transform(-r);const l=W.transform(t),c=W.transform(n);e[i.array]=`${l} ${c}`}const eR=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Wv(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:l=0,...c},u,s,a){if(Ll(e,c,s),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(a==null?void 0:a.transformBox)??"fill-box",delete d.transformBox);for(const p of eR)d[p]!==void 0&&(f[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&JP(d,o,i,l,!1)}const Xv=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"]),Kv=e=>typeof e=="string"&&e.toLowerCase()==="svg";function tR(e,t,n,r){Hv(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Xv.has(o)?o:Tl(o),t.attrs[o])}function Yv(e,t,n){const r=Il(e,t,n);for(const o in e)if(Pe(e[o])||Pe(t[o])){const i=jn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}class nR extends Vv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ce}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Mn.has(n)){const r=Rv(n);return r&&r.default||0}return n=Xv.has(n)?n:Tl(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Yv(t,n,r)}build(t,n,r){Wv(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){tR(t,n,r,o)}mount(t){this.isSVGTag=Kv(t.tagName),super.mount(t)}}const rR=Dl.length;function qv(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?qv(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<rR;n++){const r=Dl[n],o=e.props[r];(sr(o)||o===!1)&&(t[r]=o)}return t}function Zv(e,t){if(!Array.isArray(t))return!1;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}const oR=[...kl].reverse(),iR=kl.length;function aR(e){return t=>Promise.all(t.map(({animation:n,options:r})=>mP(e,n,r)))}function sR(e){let t=aR(e),n=sc(),r=!0;const o=u=>(s,a)=>{var d;const f=vn(e,a,u==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:m,...h}=f;s={...s,...h,...m}}return s};function i(u){t=u(e)}function l(u){const{props:s}=e,a=qv(e.parent)||{},d=[],f=new Set;let p={},m=1/0;for(let v=0;v<iR;v++){const y=oR[v],b=n[y],x=s[y]!==void 0?s[y]:a[y],S=sr(x),E=y===u?b.isActive:null;E===!1&&(m=v);let A=x===a[y]&&x!==s[y]&&S;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),b.protectedKeys={...p},!b.isActive&&E===null||!x&&!b.prevProp||Li(x)||typeof x=="boolean")continue;const j=lR(b.prevProp,x);let O=j||y===u&&b.isActive&&!A&&S||v>m&&S,T=!1;const P=Array.isArray(x)?x:[x];let k=P.reduce(o(y),{});E===!1&&(k={});const{prevResolvedValues:R={}}=b,$={...R,...k},F=B=>{O=!0,f.has(B)&&(T=!0,f.delete(B)),b.needsAnimating[B]=!0;const X=e.getValue(B);X&&(X.liveStyle=!1)};for(const B in $){const X=k[B],G=R[B];if(p.hasOwnProperty(B))continue;let L=!1;ss(X)&&ss(G)?L=!Zv(X,G):L=X!==G,L?X!=null?F(B):f.add(B):X!==void 0&&f.has(B)?F(B):b.protectedKeys[B]=!0}b.prevProp=x,b.prevResolvedValues=k,b.isActive&&(p={...p,...k}),r&&e.blockInitialAnimation&&(O=!1);const H=A&&j;O&&(!H||T)&&d.push(...P.map(B=>{const X={type:y};if(typeof B=="string"&&r&&!H&&e.manuallyAnimateOnMount&&e.parent){const{parent:G}=e,L=vn(G,B);if(G.enteringChildren&&L){const{delayChildren:M}=L.transition||{};X.delay=bv(G.enteringChildren,e,M)}}return{animation:B,options:X}}))}if(f.size){const v={};if(typeof s.initial!="boolean"){const y=vn(e,Array.isArray(s.initial)?s.initial[0]:s.initial);y&&y.transition&&(v.transition=y.transition)}f.forEach(y=>{const b=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),v[y]=b??null}),d.push({animation:v})}let h=!!d.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(d):Promise.resolve()}function c(u,s){var a;if(n[u].isActive===s)return Promise.resolve();(a=e.variantChildren)==null||a.forEach(f=>{var p;return(p=f.animationState)==null?void 0:p.setActive(u,s)}),n[u].isActive=s;const d=l(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:l,setActive:c,setAnimateFunction:i,getState:()=>n,reset:()=>{n=sc()}}}function lR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Zv(t,e):!1}function Vt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sc(){return{animate:Vt(!0),whileInView:Vt(),whileHover:Vt(),whileTap:Vt(),whileDrag:Vt(),whileFocus:Vt(),exit:Vt()}}function lc(e,t){e.min=t.min,e.max=t.max}function We(e,t){lc(e.x,t.x),lc(e.y,t.y)}function uc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Qv=1e-4,uR=1-Qv,cR=1+Qv,Jv=.01,dR=0-Jv,fR=0+Jv;function Me(e){return e.max-e.min}function pR(e,t,n){return Math.abs(e-t)<=n}function cc(e,t,n,r=.5){e.origin=r,e.originPoint=ye(t.min,t.max,e.origin),e.scale=Me(n)/Me(t),e.translate=ye(n.min,n.max,e.origin)-e.originPoint,(e.scale>=uR&&e.scale<=cR||isNaN(e.scale))&&(e.scale=1),(e.translate>=dR&&e.translate<=fR||isNaN(e.translate))&&(e.translate=0)}function Zn(e,t,n,r){cc(e.x,t.x,n.x,r?r.originX:void 0),cc(e.y,t.y,n.y,r?r.originY:void 0)}function dc(e,t,n){e.min=n.min+t.min,e.max=e.min+Me(t)}function hR(e,t,n){dc(e.x,t.x,n.x),dc(e.y,t.y,n.y)}function fc(e,t,n){e.min=t.min-n.min,e.max=e.min+Me(t)}function ni(e,t,n){fc(e.x,t.x,n.x),fc(e.y,t.y,n.y)}function pc(e,t,n,r,o){return e-=t,e=ti(e,1/n,r),o!==void 0&&(e=ti(e,1/o,r)),e}function mR(e,t=0,n=1,r=.5,o,i=e,l=e){if(it.test(t)&&(t=parseFloat(t),t=ye(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=ye(i.min,i.max,r);e===i&&(c-=t),e.min=pc(e.min,t,n,c,o),e.max=pc(e.max,t,n,c,o)}function hc(e,t,[n,r,o],i,l){mR(e,t[n],t[r],t[o],t.scale,i,l)}const vR=["x","scaleX","originX"],gR=["y","scaleY","originY"];function mc(e,t,n,r){hc(e.x,t,vR,n?n.x:void 0,r?r.x:void 0),hc(e.y,t,gR,n?n.y:void 0,r?r.y:void 0)}function vc(e){return e.translate===0&&e.scale===1}function eg(e){return vc(e.x)&&vc(e.y)}function gc(e,t){return e.min===t.min&&e.max===t.max}function yR(e,t){return gc(e.x,t.x)&&gc(e.y,t.y)}function yc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function tg(e,t){return yc(e.x,t.x)&&yc(e.y,t.y)}function bc(e){return Me(e.x)/Me(e.y)}function wc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function ze(e){return[e("x"),e("y")]}function bR(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((o||i||l)&&(r=`translate3d(${o}px, ${i}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:s,rotate:a,rotateX:d,rotateY:f,skewX:p,skewY:m}=n;s&&(r=`perspective(${s}px) ${r}`),a&&(r+=`rotate(${a}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),m&&(r+=`skewY(${m}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const ng=["TopLeft","TopRight","BottomLeft","BottomRight"],wR=ng.length,xc=e=>typeof e=="string"?parseFloat(e):e,Ec=e=>typeof e=="number"||W.test(e);function xR(e,t,n,r,o,i){o?(e.opacity=ye(0,n.opacity??1,ER(r)),e.opacityExit=ye(t.opacity??1,0,SR(r))):i&&(e.opacity=ye(t.opacity??1,n.opacity??1,r));for(let l=0;l<wR;l++){const c=`border${ng[l]}Radius`;let u=Sc(t,c),s=Sc(n,c);u===void 0&&s===void 0||(u||(u=0),s||(s=0),u===0||s===0||Ec(u)===Ec(s)?(e[c]=Math.max(ye(xc(u),xc(s),r),0),(it.test(s)||it.test(u))&&(e[c]+="%")):e[c]=s)}(t.rotate||n.rotate)&&(e.rotate=ye(t.rotate||0,n.rotate||0,r))}function Sc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const ER=rg(0,.5,qm),SR=rg(.5,.95,Ge);function rg(e,t,n){return r=>r<e?0:r>t?1:n(or(e,t,r))}function CR(e,t,n){const r=Pe(e)?e:xn(e);return r.start(Rl("",r,t,n)),r.animation}function lr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const _R=(e,t)=>e.depth-t.depth;class PR{constructor(){this.children=[],this.isDirty=!1}add(t){cl(this.children,t),this.isDirty=!0}remove(t){dl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_R),this.isDirty=!1,this.children.forEach(t)}}function RR(e,t){const n=je.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Ot(r),e(i-t))};return he.setup(r,!0),()=>Ot(r)}function No(e){return Pe(e)?e.get():e}class OR{constructor(){this.members=[]}add(t){cl(this.members,t),t.scheduleRender()}remove(t){if(dl(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){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Fo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},pa=["","X","Y","Z"],TR=1e3;let jR=0;function ha(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function og(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Sv(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",he,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&og(r)}function ig({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},l=t==null?void 0:t()){this.id=jR++,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(kR),this.nodes.forEach(NR),this.nodes.forEach(FR),this.nodes.forEach(DR)},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 c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new PR)}addEventListener(i,l){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new pl),this.eventHandlers.get(i).add(l)}notifyListeners(i,...l){const c=this.eventHandlers.get(i);c&&c.notify(...l)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=Lv(i)&&!AP(i),this.instance=i;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let s,a=0;const d=()=>this.root.updateBlockedByResize=!1;he.read(()=>{a=window.innerWidth}),e(i,()=>{const f=window.innerWidth;f!==a&&(a=f,this.root.updateBlockedByResize=!0,s&&s(),s=RR(d,250),Fo.hasAnimatedSinceResize&&(Fo.hasAnimatedSinceResize=!1,this.nodes.forEach(Pc)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:s,hasLayoutChanged:a,hasRelativeLayoutChanged:d,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||UR,{onLayoutAnimationStart:m,onLayoutAnimationComplete:h}=u.getProps(),v=!this.targetLayout||!tg(this.targetLayout,f),y=!a&&d;if(this.options.layoutRoot||this.resumeFrom||y||a&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...Pl(p,"layout"),onPlay:m,onComplete:h};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(s,y)}else a||Pc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}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(),Ot(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(VR),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&&og(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s<this.path.length;s++){const a=this.path[s];a.shouldResetTransform=!0,a.updateScroll("snapshot"),a.options.layoutRoot&&a.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Cc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(_c);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(IR),this.nodes.forEach(MR),this.nodes.forEach(AR)):this.nodes.forEach(_c),this.clearAllSnapshots();const i=je.now();_e.delta=st(0,1e3/60,i-_e.timestamp),_e.timestamp=i,_e.isProcessing=!0,ia.update.process(_e),ia.preRender.process(_e),ia.render.process(_e),_e.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ml.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(LR),this.sharedNodes.forEach($R)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,he.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){he.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Me(this.snapshot.measuredBox.x)&&!Me(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ce(),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 c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!eg(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,s=u!==this.prevTransformTemplateValue;i&&this.instance&&(l||zt(this.latestValues)||s)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return i&&(c=this.removeTransform(c)),HR(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var i;const{visualElement:l}=this.options;if(!l)return Ce();const c=l.measureViewportBox();if(!((i=this.scroll)!=null&&i.wasRoot||this.path.some(GR))){const{scroll:u}=this.root;u&&(cn(c.x,u.offset.x),cn(c.y,u.offset.y))}return c}removeElementScroll(i){var l;const c=Ce();if(We(c,i),(l=this.scroll)!=null&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const s=this.path[u],{scroll:a,options:d}=s;s!==this.root&&a&&d.layoutScroll&&(a.wasRoot&&We(c,i),cn(c.x,a.offset.x),cn(c.y,a.offset.y))}return c}applyTransform(i,l=!1){const c=Ce();We(c,i);for(let u=0;u<this.path.length;u++){const s=this.path[u];!l&&s.options.layoutScroll&&s.scroll&&s!==s.root&&dn(c,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),zt(s.latestValues)&&dn(c,s.latestValues)}return zt(this.latestValues)&&dn(c,this.latestValues),c}removeTransform(i){const l=Ce();We(l,i);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!zt(u.latestValues))continue;fs(u.latestValues)&&u.updateSnapshot();const s=Ce(),a=u.measurePageBox();We(s,a),mc(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,s)}return zt(this.latestValues)&&mc(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!==_e.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(i||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(l=this.parent)!=null&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:a}=this.options;if(!this.layout||!(s||a))return;this.resolvedRelativeTargetAt=_e.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ce(),this.targetWithTransforms=Ce()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hR(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):We(this.target,this.layout.layoutBox),zv(this.target,this.targetDelta)):We(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||fs(this.parent.latestValues)||Bv(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,c){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ce(),this.relativeTargetOrigin=Ce(),ni(this.relativeTargetOrigin,l,c),We(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var i;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||(i=this.parent)!=null&&i.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===_e.timestamp&&(u=!1),u)return;const{layout:s,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||a))return;We(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;UP(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Ce());const{target:p}=l;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(uc(this.prevProjectionDelta.x,this.projectionDelta.x),uc(this.prevProjectionDelta.y,this.projectionDelta.y)),Zn(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!wc(this.projectionDelta.x,this.prevProjectionDelta.x)||!wc(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),i){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=un(),this.projectionDelta=un(),this.projectionDeltaWithTransform=un()}setAnimationOrigin(i,l=!1){const c=this.snapshot,u=c?c.latestValues:{},s={...this.latestValues},a=un();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const d=Ce(),f=c?c.source:void 0,p=this.layout?this.layout.source:void 0,m=f!==p,h=this.getStack(),v=!h||h.members.length<=1,y=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some(zR));this.animationProgress=0;let b;this.mixTargetDelta=x=>{const S=x/1e3;Rc(a.x,i.x,S),Rc(a.y,i.y,S),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ni(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),BR(this.relativeTarget,this.relativeTargetOrigin,d,S),b&&yR(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Ce()),We(b,this.relativeTarget)),m&&(this.animationValues=s,xR(s,u,this.latestValues,S,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){var l,c,u;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=he.update(()=>{Fo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xn(0)),this.currentAnimation=CR(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},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(TR),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:s}=i;if(!(!l||!c||!u)){if(this!==i&&this.layout&&u&&ag(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Ce();const a=Me(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+a;const d=Me(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+d}We(l,c),dn(l,s),Zn(this.projectionDeltaWithTransform,this.layoutCorrected,l,s)}}registerSharedNode(i,l){this.sharedNodes.has(i)||this.sharedNodes.set(i,new OR),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(){var i;const{layoutId:l}=this.options;return l?((i=this.getStack())==null?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:l}=this.options;return l?(i=this.getStack())==null?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),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:c}=i;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&ha("z",i,u,this.animationValues);for(let s=0;s<pa.length;s++)ha(`rotate${pa[s]}`,i,u,this.animationValues),ha(`skew${pa[s]}`,i,u,this.animationValues);i.render();for(const s in u)i.setStaticValue(s,u[s]),this.animationValues&&(this.animationValues[s]=u[s]);i.scheduleRender()}applyProjectionStyles(i,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=No(l==null?void 0:l.pointerEvents)||"",i.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=No(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!zt(this.latestValues)&&(i.transform=c?c({},""):"none",this.hasProjected=!1);return}i.visibility="";const s=u.animationValues||u.latestValues;this.applyTransformsToTarget();let a=bR(this.projectionDeltaWithTransform,this.treeScale,s);c&&(a=c(s,a)),i.transform=a;const{x:d,y:f}=this.projectionDelta;i.transformOrigin=`${d.origin*100}% ${f.origin*100}% 0`,u.animationValues?i.opacity=u===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:i.opacity=u===this?s.opacity!==void 0?s.opacity:"":s.opacityExit!==void 0?s.opacityExit:0;for(const p in hs){if(s[p]===void 0)continue;const{correct:m,applyTo:h,isCSSVariable:v}=hs[p],y=a==="none"?s[p]:m(s[p],u);if(h){const b=h.length;for(let x=0;x<b;x++)i[h[x]]=y}else v?this.options.visualElement.renderState.vars[p]=y:i[p]=y}this.options.layoutId&&(i.pointerEvents=u===this?No(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var l;return(l=i.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(Cc),this.root.sharedNodes.clear()}}}function MR(e){e.updateLayout()}function AR(e){var t;const n=((t=e.resumeFrom)==null?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,l=n.source!==e.layout.source;i==="size"?ze(d=>{const f=l?n.measuredBox[d]:n.layoutBox[d],p=Me(f);f.min=r[d].min,f.max=f.min+p}):ag(i,n.layoutBox,r)&&ze(d=>{const f=l?n.measuredBox[d]:n.layoutBox[d],p=Me(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const c=un();Zn(c,r,n.layoutBox);const u=un();l?Zn(u,e.applyTransform(o,!0),n.measuredBox):Zn(u,r,n.layoutBox);const s=!eg(c);let a=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=Ce();ni(m,n.layoutBox,f.layoutBox);const h=Ce();ni(h,r,p.layoutBox),tg(m,h)||(a=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:s,hasRelativeLayoutChanged:a})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function kR(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 DR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function LR(e){e.clearSnapshot()}function Cc(e){e.clearMeasurements()}function _c(e){e.isLayoutDirty=!1}function IR(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Pc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function NR(e){e.resolveTargetDelta()}function FR(e){e.calcProjection()}function VR(e){e.resetSkewAndRotation()}function $R(e){e.removeLeadSnapshot()}function Rc(e,t,n){e.translate=ye(t.translate,0,n),e.scale=ye(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Oc(e,t,n,r){e.min=ye(t.min,n.min,r),e.max=ye(t.max,n.max,r)}function BR(e,t,n,r){Oc(e.x,t.x,n.x,r),Oc(e.y,t.y,n.y,r)}function zR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const UR={duration:.45,ease:[.4,0,.1,1]},Tc=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),jc=Tc("applewebkit/")&&!Tc("chrome/")?Math.round:Ge;function Mc(e){e.min=jc(e.min),e.max=jc(e.max)}function HR(e){Mc(e.x),Mc(e.y)}function ag(e,t,n){return e==="position"||e==="preserve-aspect"&&!pR(bc(t),bc(n),.2)}function GR(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const WR=ig({attachResizeListener:(e,t)=>lr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ma={current:void 0},sg=ig({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ma.current){const e=new WR({});e.mount(window),e.setOptions({layoutScroll:!0}),ma.current=e}return ma.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Nl=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Ac(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function XR(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Ac(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Ac(e[o],null)}}}}function KR(...e){return g.useCallback(XR(...e),e)}class YR extends g.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=jv(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function qR({children:e,isPresent:t,anchorX:n,root:r}){var o;const i=_.useId(),l=_.useRef(null),c=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=_.useContext(Nl),s=((o=e.props)==null?void 0:o.ref)??(e==null?void 0:e.ref),a=KR(l,s);return _.useInsertionEffect(()=>{const{width:d,height:f,top:p,left:m,right:h}=c.current;if(t||!l.current||!d||!f)return;const v=n==="left"?`left: ${m}`:`right: ${h}`;l.current.dataset.motionPopId=i;const y=document.createElement("style");u&&(y.nonce=u);const b=r??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
97
97
  [data-motion-pop-id="${i}"] {
98
98
  position: absolute !important;
99
99
  width: ${d}px !important;
@@ -101,35 +101,35 @@ Defaulting to \`null\`.`}var Ja="Radio",[PE,Dh]=Se(Ja),[RE,OE]=PE(Ja),Lh=g.forwa
101
101
  ${v}px !important;
102
102
  top: ${p}px !important;
103
103
  }
104
- `),()=>{b.contains(y)&&b.removeChild(y)}},[t]),x.jsx(kR,{isPresent:t,childRef:l,sizeRef:c,children:g.cloneElement(e,{ref:s})})}const LR=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:l,anchorX:c,root:u})=>{const a=al(IR),s=R.useId();let d=!0,f=R.useMemo(()=>(d=!1,{id:s,initial:t,isPresent:n,custom:o,onExitComplete:p=>{a.set(p,!0);for(const m of a.values())if(!m)return;r&&r()},register:p=>(a.set(p,!1),()=>a.delete(p))}),[n,a,r]);return i&&d&&(f={...f}),R.useMemo(()=>{a.forEach((p,m)=>a.set(m,!1))},[n]),g.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),l==="popLayout"&&(e=x.jsx(DR,{isPresent:n,anchorX:c,root:u,children:e})),x.jsx(ji.Provider,{value:f,children:e})};function IR(){return new Map}function Zv(e=!0){const t=R.useContext(ji);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=R.useId();R.useEffect(()=>{if(e)return o(i)},[e]);const l=R.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,l]:[!0]}const Ur=e=>e.key||"";function jc(e){const t=[];return R.Children.forEach(e,n=>{R.isValidElement(n)&&t.push(n)}),t}const NR=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:l=!1,anchorX:c="left",root:u})=>{const[a,s]=Zv(l),d=R.useMemo(()=>jc(e),[e]),f=l&&!a?[]:d.map(Ur),p=R.useRef(!0),m=R.useRef(d),h=al(()=>new Map),v=R.useRef(new Set),[y,b]=R.useState(d),[w,S]=R.useState(d);Om(()=>{p.current=!1,m.current=d;for(let j=0;j<w.length;j++){const O=Ur(w[j]);f.includes(O)?(h.delete(O),v.current.delete(O)):h.get(O)!==!0&&h.set(O,!1)}},[w,f.length,f.join("-")]);const E=[];if(d!==y){let j=[...d];for(let O=0;O<w.length;O++){const T=w[O],_=Ur(T);f.includes(_)||(j.splice(O,0,T),E.push(T))}return i==="wait"&&E.length&&(j=E),S(jc(j)),b(d),null}process.env.NODE_ENV!=="production"&&i==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:A}=R.useContext(sl);return x.jsx(x.Fragment,{children:w.map(j=>{const O=Ur(j),T=l&&!a?!1:d===w||f.includes(O),_=()=>{if(v.current.has(O))return;if(v.current.add(O),h.has(O))h.set(O,!0);else return;let k=!0;h.forEach(P=>{P||(k=!1)}),k&&(A==null||A(),S(m.current),l&&(s==null||s()),r&&r())};return x.jsx(LR,{isPresent:T,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:u,onExitComplete:T?void 0:_,anchorX:c,children:j},O)})})},Qv=R.createContext({strict:!1}),Mc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Ac=!1;function FR(){if(Ac)return;const e={};for(const t in Mc)e[t]={isEnabled:n=>Mc[t].some(r=>!!n[r])};Rv(e),Ac=!0}function Jv(){return FR(),SP()}function VR(e){const t=Jv();for(const n in e)t[n]={...t[n],...e[n]};Rv(t)}const $R=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ti(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$R.has(e)}let e0=e=>!ti(e);function BR(e){typeof e=="function"&&(e0=t=>t.startsWith("on")?!ti(t):e(t))}try{BR(require("@emotion/is-prop-valid").default)}catch{}function zR(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(e0(o)||n===!0&&ti(o)||!t&&!ti(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const ki=R.createContext({});function HR(e,t){if(Ai(e)){const{initial:n,animate:r}=e;return{initial:n===!1||sr(n)?n:void 0,animate:sr(r)?r:void 0}}return e.inherit!==!1?t:{}}function UR(e){const{initial:t,animate:n}=HR(e,R.useContext(ki));return R.useMemo(()=>({initial:t,animate:n}),[kc(t),kc(n)])}function kc(e){return Array.isArray(e)?e.join(" "):e}const Il=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function t0(e,t,n){for(const r in t)!Pe(t[r])&&!Dv(r,n)&&(e[r]=t[r])}function WR({transformTemplate:e},t){return R.useMemo(()=>{const n=Il();return kl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function GR(e,t){const n=e.style||{},r={};return t0(r,n,e),Object.assign(r,WR(e,t)),r}function XR(e,t){const n={},r=GR(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const n0=()=>({...Il(),attrs:{}});function KR(e,t,n,r){const o=R.useMemo(()=>{const i=n0();return Lv(i,t,Nv(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};t0(i,e.style,e),o.style={...i,...o.style}}return o}const YR=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Nl(e){return typeof e!="string"||e.includes("-")?!1:!!(YR.indexOf(e)>-1||/[A-Z]/u.test(e))}function qR(e,t,n,{latestValues:r},o,i=!1,l){const c=(l??Nl(e)?KR:XR)(t,r,o,e),u=zR(t,typeof e=="string",i),a=e!==R.Fragment?{...u,...c,ref:n}:{},{children:s}=t,d=R.useMemo(()=>Pe(s)?s.get():s,[s]);return R.createElement(e,{...a,children:d})}function ZR({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:QR(n,r,o,e),renderState:t()}}function QR(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Io(i[f]);let{initial:l,animate:c}=e;const u=Ai(e),a=Pv(e);t&&a&&!u&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let s=n?n.initial===!1:!1;s=s||l===!1;const d=s?c:l;if(d&&typeof d!="boolean"&&!Mi(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const m=Pl(e,f[p]);if(m){const{transitionEnd:h,transition:v,...y}=m;for(const b in y){let w=y[b];if(Array.isArray(w)){const S=s?w.length-1:0;w=w[S]}w!==null&&(o[b]=w)}for(const b in h)o[b]=h[b]}}}return o}const r0=e=>(t,n)=>{const r=R.useContext(ki),o=R.useContext(ji),i=()=>ZR(e,t,r,o);return n?i():al(i)},JR=r0({scrapeMotionValuesFromProps:Dl,createRenderState:Il}),eO=r0({scrapeMotionValuesFromProps:Fv,createRenderState:n0}),tO=Symbol.for("motionComponentSymbol");function nO(e,t,n){const r=R.useRef(n);R.useInsertionEffect(()=>{r.current=n});const o=R.useRef(null);return R.useCallback(i=>{var l;i&&((l=e.onMount)==null||l.call(e,i)),t&&(i?t.mount(i):t.unmount());const c=r.current;if(typeof c=="function")if(i){const u=c(i);typeof u=="function"&&(o.current=u)}else o.current?(o.current(),o.current=null):c(i);else c&&(c.current=i)},[t])}const o0=R.createContext({});function Kn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function rO(e,t,n,r,o,i){var l,c;const{visualElement:u}=R.useContext(ki),a=R.useContext(Qv),s=R.useContext(ji),d=R.useContext(Ll).reducedMotion,f=R.useRef(null);r=r||a.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:u,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:d,isSVG:i}));const p=f.current,m=R.useContext(o0);p&&!p.projection&&o&&(p.type==="html"||p.type==="svg")&&oO(f.current,n,o,m);const h=R.useRef(!1);R.useInsertionEffect(()=>{p&&h.current&&p.update(n,s)});const v=n[dv],y=R.useRef(!!v&&!((l=window.MotionHandoffIsComplete)!=null&&l.call(window,v))&&((c=window.MotionHasOptimisedAnimation)==null?void 0:c.call(window,v)));return Om(()=>{p&&(h.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),y.current&&p.animationState&&p.animationState.animateChanges())}),R.useEffect(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)==null||b.call(window,v)}),y.current=!1),p.enteringChildren=void 0)}),p}function oO(e,t,n,r){const{layoutId:o,layout:i,drag:l,dragConstraints:c,layoutScroll:u,layoutRoot:a,layoutCrossfade:s}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:i0(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!l||c&&Kn(c),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:s,layoutScroll:u,layoutRoot:a})}function i0(e){if(e)return e.options.allowProjection!==!1?e.projection:i0(e.parent)}function fs(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&VR(r);const i=n?n==="svg":Nl(e),l=i?eO:JR;function c(a,s){let d;const f={...R.useContext(Ll),...a,layoutId:iO(a)},{isStatic:p}=f,m=UR(a),h=l(a,p);if(!p&&Rm){sO(f,r);const v=aO(f);d=v.MeasureLayout,m.visualElement=rO(e,h,f,o,v.ProjectionNode,i)}return x.jsxs(ki.Provider,{value:m,children:[d&&m.visualElement?x.jsx(d,{visualElement:m.visualElement,...f}):null,qR(e,a,nO(h,m.visualElement,s),h,p,t,i)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=R.forwardRef(c);return u[tO]=e,u}function iO({layoutId:e}){const t=R.useContext(sl).id;return t&&e!==void 0?t+"-"+e:e}function sO(e,t){const n=R.useContext(Qv).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Rn(!1,r,"lazy-strict-mode"):mt(!1,r,"lazy-strict-mode")}}function aO(e){const t=Jv(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function lO(e,t){if(typeof Proxy>"u")return fs;const n=new Map,r=(i,l)=>fs(i,l,e,t),o=(i,l)=>(process.env.NODE_ENV!=="production"&&fl(!1,"motion() is deprecated. Use motion.create() instead."),r(i,l));return new Proxy(o,{get:(i,l)=>l==="create"?r:(n.has(l)||n.set(l,fs(l,void 0,e,t)),n.get(l))})}const uO=(e,t)=>t.isSVG??Nl(e)?new $P(t):new DP(t,{allowProjection:e!==R.Fragment});class cO extends kt{constructor(t){super(t),t.animationState||(t.animationState=WP(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Mi(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let dO=0;class fO extends kt{constructor(){super(...arguments),this.id=dO++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const pO={animation:{Feature:cO},exit:{Feature:fO}};function Cr(e){return{point:{x:e.pageX,y:e.pageY}}}const hO=e=>t=>jl(t)&&e(t,Cr(t));function Zn(e,t,n,r){return ar(e,t,hO(n),r)}const s0=({current:e})=>e?e.ownerDocument.defaultView:null,Dc=(e,t)=>Math.abs(e-t);function mO(e,t){const n=Dc(e.x,t.x),r=Dc(e.y,t.y);return Math.sqrt(n**2+r**2)}const Lc=new Set(["auto","scroll"]);class a0{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:l=3,element:c}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=hs(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,h=mO(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!h)return;const{point:v}=p,{timestamp:y}=_e;this.history.push({...v,timestamp:y});const{onStart:b,onMove:w}=this.handlers;m||(b&&b(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=ps(m,this.transformPagePoint),me.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=hs(p.type==="pointercancel"?this.lastMoveEventInfo:ps(m,this.transformPagePoint),this.history);this.startEvent&&h&&h(p,b),v&&v(p,b)},!jl(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=o||window;const u=Cr(t),a=ps(u,this.transformPagePoint),{point:s}=a,{timestamp:d}=_e;this.history=[{...s,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,hs(a,this.history)),this.removeListeners=xr(Zn(this.contextWindow,"pointermove",this.handlePointerMove),Zn(this.contextWindow,"pointerup",this.handlePointerUp),Zn(this.contextWindow,"pointercancel",this.handlePointerUp)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Lc.has(r.overflowX)||Lc.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.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(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-n.x,y:o.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),me.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ot(this.updatePoint)}}function ps(e,t){return t?{point:t(e.point)}:e}function Ic(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hs({point:e},t){return{point:e,delta:Ic(e,l0(t)),offset:Ic(e,vO(t)),velocity:gO(t,.1)}}function vO(e){return e[0]}function l0(e){return e[e.length-1]}function gO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=l0(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>rt(t)));)n--;if(!r)return{x:0,y:0};const i=ze(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const l={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function yO(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ye(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ye(n,e,r.max):Math.min(e,n)),e}function Nc(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 bO(e,{top:t,left:n,bottom:r,right:o}){return{x:Nc(e.x,n,o),y:Nc(e.y,t,r)}}function Fc(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 wO(e,t){return{x:Fc(e.x,t.x),y:Fc(e.y,t.y)}}function xO(e,t){let n=.5;const r=Me(e),o=Me(t);return o>r?n=rr(t.min,t.max-r,e.min):r>o&&(n=rr(e.min,e.max-o,t.min)),st(0,1,n)}function EO(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}const da=.35;function SO(e=da){return e===!1?e=0:e===!0&&(e=da),{x:Vc(e,"left","right"),y:Vc(e,"top","bottom")}}function Vc(e,t,n){return{min:$c(e,t),max:$c(e,n)}}function $c(e,t){return typeof e=="number"?e:e[t]||0}const CO=new WeakMap;class _O{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ce(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{n?(this.stopAnimation(),this.snapToCursor(Cr(d).point)):this.pauseAnimation()},l=(d,f)=>{this.stopAnimation();const{drag:p,dragPropagation:m,onDragStart:h}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=dP(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Be(y=>{let b=this.getAxisMotionValue(y).get()||0;if(ot.test(b)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[y];S&&(b=Me(S)*(parseFloat(b)/100))}}this.originPoint[y]=b}),h&&me.postRender(()=>h(d,f)),oa(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},c=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:h,onDrag:v}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=f;if(m&&this.currentDirection===null){this.currentDirection=PO(y),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),v&&v(d,f)},u=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},a=()=>Be(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:s}=this.getProps();this.panSession=new a0(t,{onSessionStart:i,onStart:l,onMove:c,onSessionEnd:u,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:r,contextWindow:s0(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:l}=o;this.startAnimation(l);const{onDragEnd:c}=this.getProps();c&&me.postRender(()=>c(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Wr(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=yO(l,this.constraints[t],this.elastic[t])),i.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)==null?void 0:t.layout,i=this.constraints;n&&Kn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=bO(o.layoutBox,n):this.constraints=!1,this.elastic=SO(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Be(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=EO(o.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Kn(t))return!1;const r=t.current;mt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=OP(r,o.root,this.visualElement.getTransformPagePoint());let l=wO(o.layout.layoutBox,i);if(n){const c=n(_P(l));this.hasMutatedConstraints=!!c,c&&(l=Tv(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},a=Be(s=>{if(!Wr(s,n,this.currentDirection))return;let d=u&&u[s]||{};l&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,m={type:"inertia",velocity:r?t[s]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(s,m)});return Promise.all(a).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return oa(this.visualElement,t),r.start(_l(t,r,0,n,this.visualElement,!1))}stopAnimation(){Be(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Be(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps();return r[n]||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Be(n=>{const{drag:r}=this.getProps();if(!Wr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:l,max:c}=o.layout.layoutBox[n],u=i.get()||0;i.set(t[n]-ye(l,c,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Kn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Be(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const u=c.get();o[l]=xO({min:u,max:u},this.constraints[l])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Be(l=>{if(!Wr(l,t,null))return;const c=this.getAxisMotionValue(l),{min:u,max:a}=this.constraints[l];c.set(ye(u,a,o[l]))})}addListeners(){if(!this.visualElement.current)return;CO.set(this.visualElement,this);const t=this.visualElement.current,n=Zn(t,"pointerdown",u=>{const{drag:a,dragListener:s=!0}=this.getProps();a&&s&&!Sv(u.target)&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Kn(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),me.read(r);const l=ar(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:a})=>{this.isDragging&&a&&(Be(s=>{const d=this.getAxisMotionValue(s);d&&(this.originPoint[s]+=u[s].translate,d.set(d.get()+u[s].translate))}),this.visualElement.render())}));return()=>{l(),n(),i(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:l=da,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:l,dragMomentum:c}}}function Wr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function PO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class RO extends kt{constructor(t){super(t),this.removeGroupControls=Ue,this.removeListeners=Ue,this.controls=new _O(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ue}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const Bc=e=>(t,n)=>{e&&me.postRender(()=>e(t,n))};class OO extends kt{constructor(){super(...arguments),this.removePointerDownListener=Ue}onPointerDown(t){this.session=new a0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:s0(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Bc(t),onStart:Bc(n),onMove:r,onEnd:(i,l)=>{delete this.session,o&&me.postRender(()=>o(i,l))}}}mount(){this.removePointerDownListener=Zn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ms=!1;class TO extends R.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),ms&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),No.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:l}=r;return l&&(l.isPresent=i,ms=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?l.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?l.promote():l.relegate()||me.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Tl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;ms=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function u0(e){const[t,n]=Zv(),r=R.useContext(sl);return x.jsx(TO,{...e,layoutGroup:r,switchLayoutGroup:R.useContext(o0),isPresent:t,safeToRemove:n})}const jO={pan:{Feature:OO},drag:{Feature:RO,ProjectionNode:qv,MeasureLayout:u0}};function zc(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&me.postRender(()=>i(t,Cr(t)))}class MO extends kt{mount(){const{current:t}=this.node;t&&(this.unmount=fP(t,(n,r)=>(zc(this.node,r,"Start"),o=>zc(this.node,o,"End"))))}unmount(){}}class AO extends kt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xr(ar(this.node.current,"focus",()=>this.onFocus()),ar(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Hc(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&me.postRender(()=>i(t,Cr(t)))}class kO extends kt{mount(){const{current:t}=this.node;t&&(this.unmount=mP(t,(n,r)=>(Hc(this.node,r,"Start"),(o,{success:i})=>Hc(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fa=new WeakMap,vs=new WeakMap,DO=e=>{const t=fa.get(e.target);t&&t(e)},LO=e=>{e.forEach(DO)};function IO({root:e,...t}){const n=e||document;vs.has(n)||vs.set(n,{});const r=vs.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(LO,{root:e,...t})),r[o]}function NO(e,t,n){const r=IO(t);return fa.set(e,n),r.observe(e),()=>{fa.delete(e),r.unobserve(e)}}const FO={some:0,all:1};class VO extends kt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:FO[o]},c=u=>{const{isIntersecting:a}=u;if(this.isInView===a||(this.isInView=a,i&&!a&&this.hasEnteredView))return;a&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",a);const{onViewportEnter:s,onViewportLeave:d}=this.node.getProps(),f=a?s:d;f&&f(u)};return NO(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some($O(t,n))&&this.startObserver()}unmount(){}}function $O({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const BO={inView:{Feature:VO},tap:{Feature:kO},focus:{Feature:AO},hover:{Feature:MO}},zO={layout:{ProjectionNode:qv,MeasureLayout:u0}},HO={...pO,...BO,...jO,...zO},_r=lO(HO,uO);R.forwardRef(({children:e,className:t,dividerClassName:n,showDivider:r=!0,...o},i)=>x.jsx(vy,{...o,className:he("overflow-hidden bg-white",t),ref:i,asChild:!0,children:x.jsxs(_r.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:[.04,.62,.23,.98]},children:[r&&x.jsx("hr",{className:he("bg-primary-blue h-0.5 border-0",n)}),x.jsx("div",{className:"px-5 py-[15px]",children:e})]})}));const UO={sm:"size-8 text-[1.3rem]",md:"size-10 text-[1.4rem]",lg:"size-12 text-[2.1rem]",xl:"size-14 text-[2.5rem]"},WO=({size:e="md",src:t,alt:n="avatar",icon:r=x.jsx(Dg,{}),bgClassName:o="bg-[#A1ADC0]",colorClassName:i="text-white",className:l="",onClick:c,style:u})=>x.jsxs($1,{className:he("inline-flex shrink-0 overflow-hidden rounded-full",UO[e],l),onClick:c,style:u,children:[t&&x.jsx(B1,{src:t,alt:n,className:"h-full w-full object-cover"}),x.jsx(z1,{delayMs:0,className:he("flex h-full w-full items-center justify-center rounded-full",i,o),children:r})]});he("bg-primary-blue border-primary-blue text-white","hover:bg-darks-blue-Macropay-30 hover:border-darks-blue-Macropay-30"),he("bg-primary-yellow border-primary-yellow text-primary-blue","hover:bg-shades-yellow-10 hover:border-shades-yellow-10"),he("bg-white text-primary-blue border-primary-blue","hover:border-darks-blue-Macropay-30 hover:text-darks-blue-Macropay-30"),he("bg-transparent text-primary-blue border-transparent shadow-none","hover:text-darks-blue-Macropay-30","disabled:bg-transparent disabled:border-transparent"),he("bg-primary-red border-primary-red text-white","hover:bg-shades-red-10 hover:border-shades-red-10");var Uc={exports:{}};/*!
104
+ `),()=>{b.contains(y)&&b.removeChild(y)}},[t]),w.jsx(YR,{isPresent:t,childRef:l,sizeRef:c,children:g.cloneElement(e,{ref:a})})}const ZR=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:l,anchorX:c,root:u})=>{const s=ul(QR),a=_.useId();let d=!0,f=_.useMemo(()=>(d=!1,{id:a,initial:t,isPresent:n,custom:o,onExitComplete:p=>{s.set(p,!0);for(const m of s.values())if(!m)return;r&&r()},register:p=>(s.set(p,!1),()=>s.delete(p))}),[n,s,r]);return i&&d&&(f={...f}),_.useMemo(()=>{s.forEach((p,m)=>s.set(m,!1))},[n]),g.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),l==="popLayout"&&(e=w.jsx(qR,{isPresent:n,anchorX:c,root:u,children:e})),w.jsx(Di.Provider,{value:f,children:e})};function QR(){return new Map}function lg(e=!0){const t=_.useContext(Di);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=_.useId();_.useEffect(()=>{if(e)return o(i)},[e]);const l=_.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,l]:[!0]}const Gr=e=>e.key||"";function kc(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const JR=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:l=!1,anchorX:c="left",root:u})=>{const[s,a]=lg(l),d=_.useMemo(()=>kc(e),[e]),f=l&&!s?[]:d.map(Gr),p=_.useRef(!0),m=_.useRef(d),h=ul(()=>new Map),v=_.useRef(new Set),[y,b]=_.useState(d),[x,S]=_.useState(d);Vm(()=>{p.current=!1,m.current=d;for(let j=0;j<x.length;j++){const O=Gr(x[j]);f.includes(O)?(h.delete(O),v.current.delete(O)):h.get(O)!==!0&&h.set(O,!1)}},[x,f.length,f.join("-")]);const E=[];if(d!==y){let j=[...d];for(let O=0;O<x.length;O++){const T=x[O],P=Gr(T);f.includes(P)||(j.splice(O,0,T),E.push(T))}return i==="wait"&&E.length&&(j=E),S(kc(j)),b(d),null}process.env.NODE_ENV!=="production"&&i==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:A}=_.useContext(ll);return w.jsx(w.Fragment,{children:x.map(j=>{const O=Gr(j),T=l&&!s?!1:d===x||f.includes(O),P=()=>{if(v.current.has(O))return;if(v.current.add(O),h.has(O))h.set(O,!0);else return;let k=!0;h.forEach(R=>{R||(k=!1)}),k&&(A==null||A(),S(m.current),l&&(a==null||a()),r&&r())};return w.jsx(ZR,{isPresent:T,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:u,onExitComplete:T?void 0:P,anchorX:c,children:j},O)})})},ug=_.createContext({strict:!1}),Dc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Lc=!1;function eO(){if(Lc)return;const e={};for(const t in Dc)e[t]={isEnabled:n=>Dc[t].some(r=>!!n[r])};Fv(e),Lc=!0}function cg(){return eO(),VP()}function tO(e){const t=cg();for(const n in e)t[n]={...t[n],...e[n]};Fv(t)}const nO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ri(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nO.has(e)}let dg=e=>!ri(e);function rO(e){typeof e=="function"&&(dg=t=>t.startsWith("on")?!ri(t):e(t))}try{rO(require("@emotion/is-prop-valid").default)}catch{}function oO(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(dg(o)||n===!0&&ri(o)||!t&&!ri(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Ni=_.createContext({});function iO(e,t){if(Ii(e)){const{initial:n,animate:r}=e;return{initial:n===!1||sr(n)?n:void 0,animate:sr(r)?r:void 0}}return e.inherit!==!1?t:{}}function aO(e){const{initial:t,animate:n}=iO(e,_.useContext(Ni));return _.useMemo(()=>({initial:t,animate:n}),[Ic(t),Ic(n)])}function Ic(e){return Array.isArray(e)?e.join(" "):e}const Fl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fg(e,t,n){for(const r in t)!Pe(t[r])&&!Gv(r,n)&&(e[r]=t[r])}function sO({transformTemplate:e},t){return _.useMemo(()=>{const n=Fl();return Ll(n,t,e),Object.assign({},n.vars,n.style)},[t])}function lO(e,t){const n=e.style||{},r={};return fg(r,n,e),Object.assign(r,sO(e,t)),r}function uO(e,t){const n={},r=lO(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const pg=()=>({...Fl(),attrs:{}});function cO(e,t,n,r){const o=_.useMemo(()=>{const i=pg();return Wv(i,t,Kv(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};fg(i,e.style,e),o.style={...i,...o.style}}return o}const dO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Vl(e){return typeof e!="string"||e.includes("-")?!1:!!(dO.indexOf(e)>-1||/[A-Z]/u.test(e))}function fO(e,t,n,{latestValues:r},o,i=!1,l){const c=(l??Vl(e)?cO:uO)(t,r,o,e),u=oO(t,typeof e=="string",i),s=e!==_.Fragment?{...u,...c,ref:n}:{},{children:a}=t,d=_.useMemo(()=>Pe(a)?a.get():a,[a]);return _.createElement(e,{...s,children:d})}function pO({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:hO(n,r,o,e),renderState:t()}}function hO(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=No(i[f]);let{initial:l,animate:c}=e;const u=Ii(e),s=Nv(e);t&&s&&!u&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let a=n?n.initial===!1:!1;a=a||l===!1;const d=a?c:l;if(d&&typeof d!="boolean"&&!Li(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const m=Ol(e,f[p]);if(m){const{transitionEnd:h,transition:v,...y}=m;for(const b in y){let x=y[b];if(Array.isArray(x)){const S=a?x.length-1:0;x=x[S]}x!==null&&(o[b]=x)}for(const b in h)o[b]=h[b]}}}return o}const hg=e=>(t,n)=>{const r=_.useContext(Ni),o=_.useContext(Di),i=()=>pO(e,t,r,o);return n?i():ul(i)},mO=hg({scrapeMotionValuesFromProps:Il,createRenderState:Fl}),vO=hg({scrapeMotionValuesFromProps:Yv,createRenderState:pg}),gO=Symbol.for("motionComponentSymbol");function yO(e,t,n){const r=_.useRef(n);_.useInsertionEffect(()=>{r.current=n});const o=_.useRef(null);return _.useCallback(i=>{var l;i&&((l=e.onMount)==null||l.call(e,i)),t&&(i?t.mount(i):t.unmount());const c=r.current;if(typeof c=="function")if(i){const u=c(i);typeof u=="function"&&(o.current=u)}else o.current?(o.current(),o.current=null):c(i);else c&&(c.current=i)},[t])}const mg=_.createContext({});function Yn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function bO(e,t,n,r,o,i){var l,c;const{visualElement:u}=_.useContext(Ni),s=_.useContext(ug),a=_.useContext(Di),d=_.useContext(Nl).reducedMotion,f=_.useRef(null);r=r||s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:u,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:d,isSVG:i}));const p=f.current,m=_.useContext(mg);p&&!p.projection&&o&&(p.type==="html"||p.type==="svg")&&wO(f.current,n,o,m);const h=_.useRef(!1);_.useInsertionEffect(()=>{p&&h.current&&p.update(n,a)});const v=n[Ev],y=_.useRef(!!v&&!((l=window.MotionHandoffIsComplete)!=null&&l.call(window,v))&&((c=window.MotionHasOptimisedAnimation)==null?void 0:c.call(window,v)));return Vm(()=>{p&&(h.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),y.current&&p.animationState&&p.animationState.animateChanges())}),_.useEffect(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)==null||b.call(window,v)}),y.current=!1),p.enteringChildren=void 0)}),p}function wO(e,t,n,r){const{layoutId:o,layout:i,drag:l,dragConstraints:c,layoutScroll:u,layoutRoot:s,layoutCrossfade:a}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:vg(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!l||c&&Yn(c),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:a,layoutScroll:u,layoutRoot:s})}function vg(e){if(e)return e.options.allowProjection!==!1?e.projection:vg(e.parent)}function va(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&tO(r);const i=n?n==="svg":Vl(e),l=i?vO:mO;function c(s,a){let d;const f={..._.useContext(Nl),...s,layoutId:xO(s)},{isStatic:p}=f,m=aO(s),h=l(s,p);if(!p&&Fm){EO(f,r);const v=SO(f);d=v.MeasureLayout,m.visualElement=bO(e,h,f,o,v.ProjectionNode,i)}return w.jsxs(Ni.Provider,{value:m,children:[d&&m.visualElement?w.jsx(d,{visualElement:m.visualElement,...f}):null,fO(e,s,yO(h,m.visualElement,a),h,p,t,i)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=_.forwardRef(c);return u[gO]=e,u}function xO({layoutId:e}){const t=_.useContext(ll).id;return t&&e!==void 0?t+"-"+e:e}function EO(e,t){const n=_.useContext(ug).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?On(!1,r,"lazy-strict-mode"):mt(!1,r,"lazy-strict-mode")}}function SO(e){const t=cg(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function CO(e,t){if(typeof Proxy>"u")return va;const n=new Map,r=(i,l)=>va(i,l,e,t),o=(i,l)=>(process.env.NODE_ENV!=="production"&&hl(!1,"motion() is deprecated. Use motion.create() instead."),r(i,l));return new Proxy(o,{get:(i,l)=>l==="create"?r:(n.has(l)||n.set(l,va(l,void 0,e,t)),n.get(l))})}const _O=(e,t)=>t.isSVG??Vl(e)?new nR(t):new qP(t,{allowProjection:e!==_.Fragment});class PO extends Lt{constructor(t){super(t),t.animationState||(t.animationState=sR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Li(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let RO=0;class OO extends Lt{constructor(){super(...arguments),this.id=RO++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const TO={animation:{Feature:PO},exit:{Feature:OO}};function _r(e){return{point:{x:e.pageX,y:e.pageY}}}const jO=e=>t=>Al(t)&&e(t,_r(t));function Qn(e,t,n,r){return lr(e,t,jO(n),r)}const gg=({current:e})=>e?e.ownerDocument.defaultView:null,Nc=(e,t)=>Math.abs(e-t);function MO(e,t){const n=Nc(e.x,t.x),r=Nc(e.y,t.y);return Math.sqrt(n**2+r**2)}const Fc=new Set(["auto","scroll"]);class yg{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:l=3,element:c}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=ya(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,h=MO(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!h)return;const{point:v}=p,{timestamp:y}=_e;this.history.push({...v,timestamp:y});const{onStart:b,onMove:x}=this.handlers;m||(b&&b(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=ga(m,this.transformPagePoint),he.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=ya(p.type==="pointercancel"?this.lastMoveEventInfo:ga(m,this.transformPagePoint),this.history);this.startEvent&&h&&h(p,b),v&&v(p,b)},!Al(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=o||window;const u=_r(t),s=ga(u,this.transformPagePoint),{point:a}=s,{timestamp:d}=_e;this.history=[{...a,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,ya(s,this.history)),this.removeListeners=Er(Qn(this.contextWindow,"pointermove",this.handlePointerMove),Qn(this.contextWindow,"pointerup",this.handlePointerUp),Qn(this.contextWindow,"pointercancel",this.handlePointerUp)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Fc.has(r.overflowX)||Fc.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.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(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-n.x,y:o.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),he.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ot(this.updatePoint)}}function ga(e,t){return t?{point:t(e.point)}:e}function Vc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ya({point:e},t){return{point:e,delta:Vc(e,bg(t)),offset:Vc(e,AO(t)),velocity:kO(t,.1)}}function AO(e){return e[0]}function bg(e){return e[e.length-1]}function kO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=bg(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ot(t)));)n--;if(!r)return{x:0,y:0};const i=Ue(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const l={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function DO(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ye(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ye(n,e,r.max):Math.min(e,n)),e}function $c(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 LO(e,{top:t,left:n,bottom:r,right:o}){return{x:$c(e.x,n,o),y:$c(e.y,t,r)}}function Bc(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 IO(e,t){return{x:Bc(e.x,t.x),y:Bc(e.y,t.y)}}function NO(e,t){let n=.5;const r=Me(e),o=Me(t);return o>r?n=or(t.min,t.max-r,e.min):r>o&&(n=or(e.min,e.max-o,t.min)),st(0,1,n)}function FO(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}const ms=.35;function VO(e=ms){return e===!1?e=0:e===!0&&(e=ms),{x:zc(e,"left","right"),y:zc(e,"top","bottom")}}function zc(e,t,n){return{min:Uc(e,t),max:Uc(e,n)}}function Uc(e,t){return typeof e=="number"?e:e[t]||0}const $O=new WeakMap;class BO{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ce(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{n?(this.stopAnimation(),this.snapToCursor(_r(d).point)):this.pauseAnimation()},l=(d,f)=>{this.stopAnimation();const{drag:p,dragPropagation:m,onDragStart:h}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=RP(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ze(y=>{let b=this.getAxisMotionValue(y).get()||0;if(it.test(b)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[y];S&&(b=Me(S)*(parseFloat(b)/100))}}this.originPoint[y]=b}),h&&he.postRender(()=>h(d,f)),ls(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},c=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:h,onDrag:v}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=f;if(m&&this.currentDirection===null){this.currentDirection=zO(y),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),v&&v(d,f)},u=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},s=()=>ze(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:a}=this.getProps();this.panSession=new yg(t,{onSessionStart:i,onStart:l,onMove:c,onSessionEnd:u,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:a,distanceThreshold:r,contextWindow:gg(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:l}=o;this.startAnimation(l);const{onDragEnd:c}=this.getProps();c&&he.postRender(()=>c(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Wr(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=DO(l,this.constraints[t],this.elastic[t])),i.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)==null?void 0:t.layout,i=this.constraints;n&&Yn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=LO(o.layoutBox,n):this.constraints=!1,this.elastic=VO(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ze(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=FO(o.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Yn(t))return!1;const r=t.current;mt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=HP(r,o.root,this.visualElement.getTransformPagePoint());let l=IO(o.layout.layoutBox,i);if(n){const c=n(BP(l));this.hasMutatedConstraints=!!c,c&&(l=$v(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},s=ze(a=>{if(!Wr(a,n,this.currentDirection))return;let d=u&&u[a]||{};l&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,m={type:"inertia",velocity:r?t[a]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(a,m)});return Promise.all(s).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ls(this.visualElement,t),r.start(Rl(t,r,0,n,this.visualElement,!1))}stopAnimation(){ze(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ze(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps();return r[n]||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ze(n=>{const{drag:r}=this.getProps();if(!Wr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:l,max:c}=o.layout.layoutBox[n],u=i.get()||0;i.set(t[n]-ye(l,c,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Yn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ze(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const u=c.get();o[l]=NO({min:u,max:u},this.constraints[l])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ze(l=>{if(!Wr(l,t,null))return;const c=this.getAxisMotionValue(l),{min:u,max:s}=this.constraints[l];c.set(ye(u,s,o[l]))})}addListeners(){if(!this.visualElement.current)return;$O.set(this.visualElement,this);const t=this.visualElement.current,n=Qn(t,"pointerdown",u=>{const{drag:s,dragListener:a=!0}=this.getProps();s&&a&&!Dv(u.target)&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Yn(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),he.read(r);const l=lr(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:s})=>{this.isDragging&&s&&(ze(a=>{const d=this.getAxisMotionValue(a);d&&(this.originPoint[a]+=u[a].translate,d.set(d.get()+u[a].translate))}),this.visualElement.render())}));return()=>{l(),n(),i(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:l=ms,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:l,dragMomentum:c}}}function Wr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function zO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class UO extends Lt{constructor(t){super(t),this.removeGroupControls=Ge,this.removeListeners=Ge,this.controls=new BO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ge}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const Hc=e=>(t,n)=>{e&&he.postRender(()=>e(t,n))};class HO extends Lt{constructor(){super(...arguments),this.removePointerDownListener=Ge}onPointerDown(t){this.session=new yg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Hc(t),onStart:Hc(n),onMove:r,onEnd:(i,l)=>{delete this.session,o&&he.postRender(()=>o(i,l))}}}mount(){this.removePointerDownListener=Qn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ba=!1;class GO extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),ba&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Fo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:l}=r;return l&&(l.isPresent=i,ba=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?l.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?l.promote():l.relegate()||he.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ml.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;ba=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function wg(e){const[t,n]=lg(),r=_.useContext(ll);return w.jsx(GO,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(mg),isPresent:t,safeToRemove:n})}const WO={pan:{Feature:HO},drag:{Feature:UO,ProjectionNode:sg,MeasureLayout:wg}};function Gc(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&he.postRender(()=>i(t,_r(t)))}class XO extends Lt{mount(){const{current:t}=this.node;t&&(this.unmount=OP(t,(n,r)=>(Gc(this.node,r,"Start"),o=>Gc(this.node,o,"End"))))}unmount(){}}class KO extends Lt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Er(lr(this.node.current,"focus",()=>this.onFocus()),lr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Wc(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&he.postRender(()=>i(t,_r(t)))}class YO extends Lt{mount(){const{current:t}=this.node;t&&(this.unmount=MP(t,(n,r)=>(Wc(this.node,r,"Start"),(o,{success:i})=>Wc(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const vs=new WeakMap,wa=new WeakMap,qO=e=>{const t=vs.get(e.target);t&&t(e)},ZO=e=>{e.forEach(qO)};function QO({root:e,...t}){const n=e||document;wa.has(n)||wa.set(n,{});const r=wa.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(ZO,{root:e,...t})),r[o]}function JO(e,t,n){const r=QO(t);return vs.set(e,n),r.observe(e),()=>{vs.delete(e),r.unobserve(e)}}const eT={some:0,all:1};class tT extends Lt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:eT[o]},c=u=>{const{isIntersecting:s}=u;if(this.isInView===s||(this.isInView=s,i&&!s&&this.hasEnteredView))return;s&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",s);const{onViewportEnter:a,onViewportLeave:d}=this.node.getProps(),f=s?a:d;f&&f(u)};return JO(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(nT(t,n))&&this.startObserver()}unmount(){}}function nT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const rT={inView:{Feature:tT},tap:{Feature:YO},focus:{Feature:KO},hover:{Feature:XO}},oT={layout:{ProjectionNode:sg,MeasureLayout:wg}},iT={...TO,...rT,...WO,...oT},Pr=CO(iT,_O);_.forwardRef(({children:e,className:t,dividerClassName:n,showDivider:r=!0,...o},i)=>w.jsx(Ry,{...o,className:me("overflow-hidden bg-white",t),ref:i,asChild:!0,children:w.jsxs(Pr.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:[.04,.62,.23,.98]},children:[r&&w.jsx("hr",{className:me("bg-primary-blue h-0.5 border-0",n)}),w.jsx("div",{className:"px-5 py-[15px]",children:e})]})}));const aT={sm:"size-8 text-[1.3rem]",md:"size-10 text-[1.4rem]",lg:"size-12 text-[2.1rem]",xl:"size-14 text-[2.5rem]"},sT=({size:e="md",src:t,alt:n="avatar",icon:r=w.jsx(G0,{}),bgClassName:o="bg-[#A1ADC0]",colorClassName:i="text-white",className:l="",onClick:c,style:u})=>w.jsxs(Z1,{className:me("inline-flex shrink-0 overflow-hidden rounded-full",aT[e],l),onClick:c,style:u,children:[t&&w.jsx(Q1,{src:t,alt:n,className:"h-full w-full object-cover"}),w.jsx(J1,{delayMs:0,className:me("flex h-full w-full items-center justify-center rounded-full",i,o),children:r})]});me("bg-primary-blue border-primary-blue text-white","hover:bg-darks-blue-Macropay-30 hover:border-darks-blue-Macropay-30"),me("bg-primary-yellow border-primary-yellow text-primary-blue","hover:bg-shades-yellow-10 hover:border-shades-yellow-10"),me("bg-white text-primary-blue border-primary-blue","hover:border-darks-blue-Macropay-30 hover:text-darks-blue-Macropay-30"),me("bg-transparent text-primary-blue border-transparent shadow-none","hover:text-darks-blue-Macropay-30","disabled:bg-transparent disabled:border-transparent"),me("bg-primary-red border-primary-red text-white","hover:bg-shades-red-10 hover:border-shades-red-10");var Xc={exports:{}};/*!
105
105
  Copyright (c) 2018 Jed Watson.
106
106
  Licensed under the MIT License (MIT), see
107
107
  http://jedwatson.github.io/classnames
108
- */var Wc;function GO(){return Wc||(Wc=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(i=o(i,r(c)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var c in i)t.call(i,c)&&i[c]&&(l=o(l,c));return l}function o(i,l){return l?i?i+" "+l:i+l:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Uc)),Uc.exports}var XO=GO();const In=Ng(XO),KO={sm:"h-4 w-4",md:"h-6 w-6"},YO={sm:"h-3 w-3",md:"h-4 w-4"},qO={sm:"h-2 w-2",md:"h-4 w-4"},ZO={sm:"text-sm",md:"text-base"},QO=g.forwardRef(({label:e,size:t="md",checked:n,indeterminate:r=!1,disabled:o=!1,onCheckedChange:i,className:l,...c},u)=>{const a=g.useId(),s=p=>{o||i==null||i(p===!0)},d=r?"indeterminate":n?"checked":"none",f={checked:x.jsx(kg,{className:In(YO[t],o?"text-stone-300 fill-stone-300":"text-white")}),indeterminate:x.jsx(Ig,{className:In(qO[t],o?"text-stone-300 fill-stone-300":"text-blue-800")})};return x.jsxs("div",{className:In("flex gap-2 items-start sm:items-center select-none",o?"pointer-events-none":"cursor-pointer",l),children:[x.jsx(dp,{id:a,ref:u,checked:n,"aria-checked":r?"mixed":n,disabled:o,onCheckedChange:s,className:In("flex justify-center items-center rounded-sm border relative transition-[background-color]",KO[t],{"bg-white border-gray-300 hover:border-blue-800":!n&&!o,"bg-blue-800 border-blue-800":n&&!r&&!o||r&&!o,"bg-neutral-100 border-stone-300":o}),...c,children:d!=="none"&&f[d]}),e&&x.jsx("label",{htmlFor:a,className:In(ZO[t],o&&"text-gray-400","cursor-pointer"),children:e})]})});QO.displayName="Checkbox";const JO=({children:e,id:t,className:n=""})=>{const r=R.useRef(null),[o,i]=R.useState(!1);return R.useEffect(()=>{const l=document.getElementById(t)||document.createElement("div");return r.current=l,r.current.id=t,n&&(r.current.className=n),document.body.appendChild(r.current),i(!0),()=>{r.current.parentElement&&r.current.parentElement.removeChild(r.current)}},[t]),o?ma.createPortal(e,r.current):null};R.memo(JO);const eT=R.forwardRef(({children:e,className:t,...n},r)=>x.jsx(Lx,{className:he("inline-flex items-center justify-center rounded px-4 py-2 text-sm font-medium","bg-white border border-gray-3 text-gray-12","hover:bg-gray-1 focus:outline-none focus:ring-2 focus:ring-primary-blue focus:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","transition-colors",t),ref:r,...n,children:e})),tT=R.forwardRef(({children:e,className:t,...n},r)=>x.jsx(Ix,{children:x.jsx(Nx,{...n,className:he("min-w-[220px] rounded-lg bg-white shadow-(--box-shadow-accordion) border border-gray-2","overflow-hidden",t),ref:r,asChild:!0,children:x.jsx(_r.div,{initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10},transition:{duration:.2,ease:[.04,.62,.23,.98]},children:x.jsx("div",{className:"p-1",children:e})})})})),nT=R.forwardRef(({children:e,className:t,icon:n,shortcut:r,...o},i)=>x.jsxs(Vx,{className:he("group relative flex cursor-pointer select-none items-center justify-between rounded px-3 py-2 text-sm outline-none","text-gray-12 hover:bg-blue-1 hover:text-blue-6","focus:bg-blue-1 focus:text-blue-6","data-disabled:pointer-events-none data-disabled:opacity-50","transition-colors",t),ref:i,...o,children:[x.jsxs("div",{className:"flex items-center gap-2",children:[n&&x.jsx("span",{className:"inline-flex shrink-0",children:n}),x.jsx("span",{children:e})]}),r&&x.jsx("span",{className:"ml-auto pl-4 text-xs text-gray-6 group-hover:text-blue-6",children:r})]})),rT=R.forwardRef(({className:e,...t},n)=>x.jsx($x,{className:he("my-1 h-px bg-gray-3",e),ref:n,...t})),oT=R.forwardRef(({children:e,className:t,...n},r)=>x.jsx(Fx,{className:he("px-3 py-2 text-xs font-semibold text-gray-6",t),ref:r,...n,children:e})),iT=(e,t)=>{const n={separator:()=>x.jsx(rT,{className:t==null?void 0:t.separator},e.id),label:()=>x.jsx(oT,{className:t==null?void 0:t.label,children:e.label},e.id),default:()=>x.jsx(nT,{className:t==null?void 0:t.item,icon:e.icon,shortcut:e.shortcut,disabled:e.disabled,onSelect:e.onSelect,children:e.label},e.id)};return(n[e.type]||n.default)()},sT=({trigger:e,items:t=[],align:n="start",sideOffset:r=4,classNames:o})=>x.jsxs(Dx,{children:[x.jsx(eT,{children:e}),x.jsx(tT,{align:n,sideOffset:r,className:o==null?void 0:o.content,children:t.map(i=>x.jsx("div",{children:iT(i,o)},i.id))})]});var c0=(e=>(e.justify="justify",e.align="items",e.gap="gap",e))(c0||{});const{align:aT,justify:lT,gap:uT}=c0,cT={horizontal:"flex-row",vertical:"flex-col"},dT={horizontal:"flex-row-reverse",vertical:"flex-col-reverse"},lr=({children:e,justify:t,align:n,gap:r,direction:o="horizontal",isReverse:i=!1,style:l,className:c="",onClick:u,wrap:a,...s})=>x.jsx(_r.div,{"aria-hidden":!0,className:he(`flex ${i?dT[o]:cT[o]}`,$i(uT,r),$i(lT,t),$i(aT,n),{[c]:c,"flex-wrap":a}),onClick:u,style:l,children:e,...s}),fT={md:"py-[5px] min-h-8 rounded-md",lg:"py-2 text-base min-h-10 rounded-lg",xl:"py-3 text-base min-h-12 rounded-lg"},pT=(e,t,n,r,o)=>{const i=["px-3 py-px min-h-6 text-sm leading-[22px] w-full","transition-all ease-out duration-300","placeholder:text-gray-6 text-gray-10 outline-none appearance-none","disabled:bg-gray-3 disabled:text-gray-6 disabled:border-gray-5"],l=e==="default"?["rounded border shadow-button border-gray-7","focus:border-light-blue-30 focus:ring-light-blue-30 focus:shadow-[0_0_0_2px_#E6EDF8]"]:["border-0 border-b border-gray-7 rounded-none! bg-transparent","focus:border-light-blue-30"],c={"pl-8":o,[e==="default"?"border-red text-red focus:border-red focus:ring-red focus:shadow-[0_0_0_2px_#FFCCC7]":"border-b-red text-red focus:border-b-red"]:n,[e==="default"?"border-green text-green focus:border-green focus:ring-green focus:shadow-[0_0_0_2px_#D4F0E0]":"border-b-green text-green focus:border-b-green"]:r};return{sizeStyles:fT[t],stateStyles:c,baseStyles:i,variantStyles:l}},hT=({onClick:e,disabled:t})=>x.jsx(_r.button,{initial:{opacity:0,y:"-50%"},animate:{opacity:1,y:"-50%"},exit:{opacity:0,y:"-50%"},transition:{duration:.2},type:"button",className:"absolute transition-colors ease-out duration-300 top-1/2 right-3 disabled:opacity-100 text-gray-6 hover:text-gray-7 disabled:hover:text-gray-6",onClick:e,disabled:t,children:x.jsx(Lg,{})},"clear-button"),mT=({num:e,format:t,useGrouping:n,minFractionDigits:r,maxFractionDigits:o,mode:i,currency:l,currencyDisplay:c,locale:u,prefix:a="",suffix:s=""})=>{if(e==null||!t)return(e==null?void 0:e.toString())??"";const d={useGrouping:n,minimumFractionDigits:r,maximumFractionDigits:o,...i==="currency"&&{style:"currency",currency:l,currencyDisplay:c}},f=new Intl.NumberFormat(u,d).format(e);return`${a} ${f} ${s}`.trim()},vT=(e,t="",n="",r=!0)=>{if(!e)return r?null:0;const o=e.replace(t,"").replace(n,"").replaceAll(/[^\d.-]/g,""),i=Number.parseFloat(o);return Number.isNaN(i)?null:i},gT=(e,t,n)=>e==null||(t==null||e>=t)&&(n==null||e<=n),yT=e=>{const{onChange:t,onValueChange:n,format:r=!0,locale:o="es-MX",mode:i="decimal",currency:l="MXN",currencyDisplay:c="symbol",useGrouping:u=!0,minFractionDigits:a,maxFractionDigits:s,min:d,max:f,allowEmpty:p=!0,prefix:m,suffix:h,...v}=e,[y,b]=R.useState(Number((v==null?void 0:v.value)??null)),[w,S]=R.useState(""),[E,A]=R.useState(!1),j=R.useMemo(()=>({format:r,useGrouping:u,minFractionDigits:a,maxFractionDigits:s,mode:i,currency:l,currencyDisplay:c,locale:o,prefix:m,suffix:h}),[r,u,a,s,i,l,c,o,m,h]),O=R.useCallback(F=>mT({num:F,...j}),[j]),T=R.useCallback(F=>vT(F,m,h,p),[m,h,p]);R.useEffect(()=>{E||S(O(y))},[y,O,E]);const _=R.useCallback(F=>{const U=F.target.value;S(U);const B=T(U);gT(B,d,f)&&(b(B),t==null||t(B),n==null||n({originalEvent:F.nativeEvent,value:B}))},[T,d,f,t,n]),k=R.useCallback(F=>{var U;A(!0),y!=null&&S(y.toString()),(U=v.onFocus)==null||U.call(v,F)},[y,v]),P=R.useCallback(F=>{var U;A(!1),S(O(y)),(U=v.onBlur)==null||U.call(v,F)},[O,y,v]),$=R.useCallback(()=>{S(""),b(null),t==null||t(null)},[t]);return{displayValue:w,handleChange:_,handleFocus:k,handleBlur:P,handleClear:$,...v}},bT=R.forwardRef((e,t)=>{const{error:n,size:r="md",check:o,icon:i,leftIcon:l,clear:c=!0,disabled:u=!1,variant:a="default",className:s,displayValue:d,handleChange:f,handleFocus:p,handleBlur:m,handleClear:h,...v}=yT(e),{baseStyles:y,variantStyles:b,sizeStyles:w,stateStyles:S}=pT(a,r,n,o,!!i),E=R.useMemo(()=>c&&d?x.jsx(hT,{disabled:u,onClick:h}):l?x.jsx("div",{className:he("absolute right-3 top-1/2 -translate-y-1/2",{"opacity-40":u}),children:l}):null,[c,d,l,u,h]);return x.jsxs("div",{className:he("relative",s),children:[i&&x.jsx("div",{className:he("absolute left-3 top-1/2 -translate-y-1/2",{"opacity-40":u}),children:i}),x.jsx(_r.input,{...v,ref:t,type:"text",value:d,disabled:u,onChange:f,onFocus:p,onBlur:m,className:he(...y,...b,w,S,s)}),x.jsx(NR,{children:E})]})});bT.displayName="InputNumber";const Gc=(e,t)=>`${e}-${t}`,Di=R.forwardRef(({children:e,as:t,asChild:n=!1,className:r,italic:o=!1,size:i="base",weight:l="normal",...c},u)=>{if(!e)return null;const a=Gc("text",i),s=Gc("font",l),d=n?Cg:t??"p";return x.jsx(d,{ref:u,className:he("text-grays-Macropay-10",a,s,r,{italic:o}),...c,children:e})});Di.displayName="Typography";const wT=({children:e,as:t="p",className:n,...r})=>x.jsx(Di,{as:t,className:n,...r,children:e}),xT={1:"text-4xl",2:"text-3xl",3:"text-2xl",4:"text-xl",5:"text-lg",6:"text-base"},ET={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},ST=({children:e,className:t="",level:n=1,...r})=>{const o=ET[n];return x.jsx(Di,{as:o,weight:"bold",className:`${xT[n]} ${t}`,...r,children:e})},Pr=Di;Pr.Text=wT;Pr.Title=ST;const{Title:U2,Text:W2}=Pr,CT=e=>{const t=R.createContext(void 0);return[({value:n,children:r})=>x.jsx(t.Provider,{value:n,children:r}),()=>{const n=R.useContext(t);if(n===void 0)throw new Error(`useContext must be used within a ${e}Provider`);return n}]};CT("PopoverContext");var _T=Object.defineProperty,ni=Object.getOwnPropertySymbols,d0=Object.prototype.hasOwnProperty,f0=Object.prototype.propertyIsEnumerable,Xc=(e,t,n)=>t in e?_T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pa=(e,t)=>{for(var n in t||(t={}))d0.call(t,n)&&Xc(e,n,t[n]);if(ni)for(var n of ni(t))f0.call(t,n)&&Xc(e,n,t[n]);return e},ha=(e,t)=>{var n={};for(var r in e)d0.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ni)for(var r of ni(e))t.indexOf(r)<0&&f0.call(e,r)&&(n[r]=e[r]);return n};/**
108
+ */var Kc;function lT(){return Kc||(Kc=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(i=o(i,r(c)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var c in i)t.call(i,c)&&i[c]&&(l=o(l,c));return l}function o(i,l){return l?i?i+" "+l:i+l:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Xc)),Xc.exports}var uT=lT();const Nn=K0(uT),cT={sm:"h-4 w-4",md:"h-6 w-6"},dT={sm:"h-3 w-3",md:"h-4 w-4"},fT={sm:"h-2 w-2",md:"h-4 w-4"},pT={sm:"text-sm",md:"text-base"},hT=g.forwardRef(({label:e,size:t="md",checked:n,indeterminate:r=!1,disabled:o=!1,onCheckedChange:i,className:l,...c},u)=>{const s=g.useId(),a=p=>{o||i==null||i(p===!0)},d=r?"indeterminate":n?"checked":"none",f={checked:w.jsx(H0,{className:Nn(dT[t],o?"text-stone-300 fill-stone-300":"text-white")}),indeterminate:w.jsx(X0,{className:Nn(fT[t],o?"text-stone-300 fill-stone-300":"text-blue-800")})};return w.jsxs("div",{className:Nn("flex gap-2 items-start sm:items-center select-none",o?"pointer-events-none":"cursor-pointer",l),children:[w.jsx(hp,{id:s,ref:u,checked:n,"aria-checked":r?"mixed":n,disabled:o,onCheckedChange:a,className:Nn("flex justify-center items-center rounded-sm border relative transition-[background-color]",cT[t],{"bg-white border-gray-300 hover:border-blue-800":!n&&!o,"bg-blue-800 border-blue-800":n&&!r&&!o||r&&!o,"bg-neutral-100 border-stone-300":o}),...c,children:d!=="none"&&f[d]}),e&&w.jsx("label",{htmlFor:s,className:Nn(pT[t],o&&"text-gray-400","cursor-pointer"),children:e})]})});hT.displayName="Checkbox";const mT=({children:e,id:t,className:n=""})=>{const r=_.useRef(null),[o,i]=_.useState(!1);return _.useEffect(()=>{const l=document.getElementById(t)||document.createElement("div");return r.current=l,r.current.id=t,n&&(r.current.className=n),document.body.appendChild(r.current),i(!0),()=>{r.current.parentElement&&r.current.parentElement.removeChild(r.current)}},[t]),o?bs.createPortal(e,r.current):null};_.memo(mT);const vT=_.forwardRef(({children:e,className:t,...n},r)=>w.jsx(Wx,{className:me("inline-flex items-center justify-center rounded px-4 py-2 text-sm font-medium","bg-white border border-gray-3 text-gray-12","hover:bg-gray-1 focus:outline-none focus:ring-2 focus:ring-primary-blue focus:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","transition-colors",t),ref:r,...n,children:e})),gT=_.forwardRef(({children:e,className:t,...n},r)=>w.jsx(Xx,{children:w.jsx(Kx,{...n,className:me("min-w-[220px] rounded-lg bg-white shadow-(--box-shadow-accordion) border border-gray-2","overflow-hidden",t),ref:r,asChild:!0,children:w.jsx(Pr.div,{initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10},transition:{duration:.2,ease:[.04,.62,.23,.98]},children:w.jsx("div",{className:"p-1",children:e})})})})),yT=_.forwardRef(({children:e,className:t,icon:n,shortcut:r,...o},i)=>w.jsxs(qx,{className:me("group relative flex cursor-pointer select-none items-center justify-between rounded px-3 py-2 text-sm outline-none","text-gray-12 hover:bg-blue-1 hover:text-blue-6","focus:bg-blue-1 focus:text-blue-6","data-disabled:pointer-events-none data-disabled:opacity-50","transition-colors",t),ref:i,...o,children:[w.jsxs("div",{className:"flex items-center gap-2",children:[n&&w.jsx("span",{className:"inline-flex shrink-0",children:n}),w.jsx("span",{children:e})]}),r&&w.jsx("span",{className:"ml-auto pl-4 text-xs text-gray-6 group-hover:text-blue-6",children:r})]})),bT=_.forwardRef(({className:e,...t},n)=>w.jsx(Zx,{className:me("my-1 h-px bg-gray-3",e),ref:n,...t})),wT=_.forwardRef(({children:e,className:t,...n},r)=>w.jsx(Yx,{className:me("px-3 py-2 text-xs font-semibold text-gray-6",t),ref:r,...n,children:e})),xT=(e,t)=>{const n={separator:()=>w.jsx(bT,{className:t==null?void 0:t.separator},e.id),label:()=>w.jsx(wT,{className:t==null?void 0:t.label,children:e.label},e.id),default:()=>w.jsx(yT,{className:t==null?void 0:t.item,icon:e.icon,shortcut:e.shortcut,disabled:e.disabled,onSelect:e.onSelect,children:e.label},e.id)};return(n[e.type]||n.default)()},ET=({trigger:e,items:t=[],align:n="start",sideOffset:r=4,classNames:o})=>w.jsxs(Gx,{children:[w.jsx(vT,{children:e}),w.jsx(gT,{align:n,sideOffset:r,className:o==null?void 0:o.content,children:t.map(i=>w.jsx("div",{children:xT(i,o)},i.id))})]});var xg=(e=>(e.justify="justify",e.align="items",e.gap="gap",e))(xg||{});const{align:ST,justify:CT,gap:_T}=xg,PT={horizontal:"flex-row",vertical:"flex-col"},RT={horizontal:"flex-row-reverse",vertical:"flex-col-reverse"},ur=({children:e,justify:t,align:n,gap:r,direction:o="horizontal",isReverse:i=!1,style:l,className:c="",onClick:u,wrap:s,...a})=>w.jsx(Pr.div,{"aria-hidden":!0,className:me(`flex ${i?RT[o]:PT[o]}`,Gi(_T,r),Gi(CT,t),Gi(ST,n),{[c]:c,"flex-wrap":s}),onClick:u,style:l,children:e,...a}),OT={md:"py-[5px] min-h-8 rounded-md",lg:"py-2 text-base min-h-10 rounded-lg",xl:"py-3 text-base min-h-12 rounded-lg"},TT=(e,t,n,r,o)=>{const i=["px-3 py-px min-h-6 text-sm leading-[22px] w-full","transition-all ease-out duration-300","placeholder:text-gray-6 text-gray-10 outline-none appearance-none","disabled:bg-gray-3 disabled:text-gray-6 disabled:border-gray-5"],l=e==="default"?["rounded border shadow-button border-gray-7","focus:border-light-blue-30 focus:ring-light-blue-30 focus:shadow-[0_0_0_2px_#E6EDF8]"]:["border-0 border-b border-gray-7 rounded-none! bg-transparent","focus:border-light-blue-30"],c={"pl-8":o,[e==="default"?"border-red text-red focus:border-red focus:ring-red focus:shadow-[0_0_0_2px_#FFCCC7]":"border-b-red text-red focus:border-b-red"]:n,[e==="default"?"border-green text-green focus:border-green focus:ring-green focus:shadow-[0_0_0_2px_#D4F0E0]":"border-b-green text-green focus:border-b-green"]:r};return{sizeStyles:OT[t],stateStyles:c,baseStyles:i,variantStyles:l}},jT=({onClick:e,disabled:t})=>w.jsx(Pr.button,{initial:{opacity:0,y:"-50%"},animate:{opacity:1,y:"-50%"},exit:{opacity:0,y:"-50%"},transition:{duration:.2},type:"button",className:"absolute transition-colors ease-out duration-300 top-1/2 right-3 disabled:opacity-100 text-gray-6 hover:text-gray-7 disabled:hover:text-gray-6",onClick:e,disabled:t,children:w.jsx(W0,{})},"clear-button"),MT=({num:e,format:t,useGrouping:n,minFractionDigits:r,maxFractionDigits:o,mode:i,currency:l,currencyDisplay:c,locale:u,prefix:s="",suffix:a=""})=>{if(e==null||!t)return(e==null?void 0:e.toString())??"";const d={useGrouping:n,minimumFractionDigits:r,maximumFractionDigits:o,...i==="currency"&&{style:"currency",currency:l,currencyDisplay:c}},f=new Intl.NumberFormat(u,d).format(e);return`${s} ${f} ${a}`.trim()},AT=(e,t="",n="",r=!0)=>{if(!e)return r?null:0;const o=e.replace(t,"").replace(n,"").replaceAll(/[^\d.-]/g,""),i=Number.parseFloat(o);return Number.isNaN(i)?null:i},kT=(e,t,n)=>e==null||(t==null||e>=t)&&(n==null||e<=n),DT=e=>{const{onChange:t,onValueChange:n,format:r=!0,locale:o="es-MX",mode:i="decimal",currency:l="MXN",currencyDisplay:c="symbol",useGrouping:u=!0,minFractionDigits:s,maxFractionDigits:a,min:d,max:f,allowEmpty:p=!0,prefix:m,suffix:h,...v}=e,[y,b]=_.useState(Number((v==null?void 0:v.value)??null)),[x,S]=_.useState(""),[E,A]=_.useState(!1),j=_.useMemo(()=>({format:r,useGrouping:u,minFractionDigits:s,maxFractionDigits:a,mode:i,currency:l,currencyDisplay:c,locale:o,prefix:m,suffix:h}),[r,u,s,a,i,l,c,o,m,h]),O=_.useCallback(F=>MT({num:F,...j}),[j]),T=_.useCallback(F=>AT(F,m,h,p),[m,h,p]);_.useEffect(()=>{E||S(O(y))},[y,O,E]);const P=_.useCallback(F=>{const H=F.target.value;S(H);const B=T(H);kT(B,d,f)&&(b(B),t==null||t(B),n==null||n({originalEvent:F.nativeEvent,value:B}))},[T,d,f,t,n]),k=_.useCallback(F=>{var H;A(!0),y!=null&&S(y.toString()),(H=v.onFocus)==null||H.call(v,F)},[y,v]),R=_.useCallback(F=>{var H;A(!1),S(O(y)),(H=v.onBlur)==null||H.call(v,F)},[O,y,v]),$=_.useCallback(()=>{S(""),b(null),t==null||t(null)},[t]);return{displayValue:x,handleChange:P,handleFocus:k,handleBlur:R,handleClear:$,...v}},LT=_.forwardRef((e,t)=>{const{error:n,size:r="md",check:o,icon:i,leftIcon:l,clear:c=!0,disabled:u=!1,variant:s="default",className:a,displayValue:d,handleChange:f,handleFocus:p,handleBlur:m,handleClear:h,...v}=DT(e),{baseStyles:y,variantStyles:b,sizeStyles:x,stateStyles:S}=TT(s,r,n,o,!!i),E=_.useMemo(()=>c&&d?w.jsx(jT,{disabled:u,onClick:h}):l?w.jsx("div",{className:me("absolute right-3 top-1/2 -translate-y-1/2",{"opacity-40":u}),children:l}):null,[c,d,l,u,h]);return w.jsxs("div",{className:me("relative",a),children:[i&&w.jsx("div",{className:me("absolute left-3 top-1/2 -translate-y-1/2",{"opacity-40":u}),children:i}),w.jsx(Pr.input,{...v,ref:t,type:"text",value:d,disabled:u,onChange:f,onFocus:p,onBlur:m,className:me(...y,...b,x,S,a)}),w.jsx(JR,{children:E})]})});LT.displayName="InputNumber";const Yc=(e,t)=>`${e}-${t}`,Fi=_.forwardRef(({children:e,as:t,asChild:n=!1,className:r,italic:o=!1,size:i="base",weight:l="normal",...c},u)=>{if(!e)return null;const s=Yc("text",i),a=Yc("font",l),d=n?t0:t??"p";return w.jsx(d,{ref:u,className:me("text-grays-Macropay-10",s,a,r,{italic:o}),...c,children:e})});Fi.displayName="Typography";const IT=({children:e,as:t="p",className:n,...r})=>w.jsx(Fi,{as:t,className:n,...r,children:e}),NT={1:"text-4xl",2:"text-3xl",3:"text-2xl",4:"text-xl",5:"text-lg",6:"text-base"},FT={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},VT=({children:e,className:t="",level:n=1,...r})=>{const o=FT[n];return w.jsx(Fi,{as:o,weight:"bold",className:`${NT[n]} ${t}`,...r,children:e})},Rr=Fi;Rr.Text=IT;Rr.Title=VT;const{Title:aj,Text:sj}=Rr,$T=e=>{const t=_.createContext(void 0);return[({value:n,children:r})=>w.jsx(t.Provider,{value:n,children:r}),()=>{const n=_.useContext(t);if(n===void 0)throw new Error(`useContext must be used within a ${e}Provider`);return n}]};$T("PopoverContext");var BT=Object.defineProperty,oi=Object.getOwnPropertySymbols,Eg=Object.prototype.hasOwnProperty,Sg=Object.prototype.propertyIsEnumerable,qc=(e,t,n)=>t in e?BT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gs=(e,t)=>{for(var n in t||(t={}))Eg.call(t,n)&&qc(e,n,t[n]);if(oi)for(var n of oi(t))Sg.call(t,n)&&qc(e,n,t[n]);return e},ys=(e,t)=>{var n={};for(var r in e)Eg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&oi)for(var r of oi(e))t.indexOf(r)<0&&Sg.call(e,r)&&(n[r]=e[r]);return n};/**
109
109
  * @license QR Code generator library (TypeScript)
110
110
  * Copyright (c) Project Nayuki.
111
111
  * SPDX-License-Identifier: MIT
112
- */var Xt;(e=>{const t=class ae{constructor(u,a,s,d){if(this.version=u,this.errorCorrectionLevel=a,this.modules=[],this.isFunction=[],u<ae.MIN_VERSION||u>ae.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=u*4+17;let f=[];for(let m=0;m<this.size;m++)f.push(!1);for(let m=0;m<this.size;m++)this.modules.push(f.slice()),this.isFunction.push(f.slice());this.drawFunctionPatterns();const p=this.addEccAndInterleave(s);if(this.drawCodewords(p),d==-1){let m=1e9;for(let h=0;h<8;h++){this.applyMask(h),this.drawFormatBits(h);const v=this.getPenaltyScore();v<m&&(d=h,m=v),this.applyMask(h)}}o(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[]}static encodeText(u,a){const s=e.QrSegment.makeSegments(u);return ae.encodeSegments(s,a)}static encodeBinary(u,a){const s=e.QrSegment.makeBytes(u);return ae.encodeSegments([s],a)}static encodeSegments(u,a,s=1,d=40,f=-1,p=!0){if(!(ae.MIN_VERSION<=s&&s<=d&&d<=ae.MAX_VERSION)||f<-1||f>7)throw new RangeError("Invalid value");let m,h;for(m=s;;m++){const w=ae.getNumDataCodewords(m,a)*8,S=l.getTotalBits(u,m);if(S<=w){h=S;break}if(m>=d)throw new RangeError("Data too long")}for(const w of[ae.Ecc.MEDIUM,ae.Ecc.QUARTILE,ae.Ecc.HIGH])p&&h<=ae.getNumDataCodewords(m,w)*8&&(a=w);let v=[];for(const w of u){n(w.mode.modeBits,4,v),n(w.numChars,w.mode.numCharCountBits(m),v);for(const S of w.getData())v.push(S)}o(v.length==h);const y=ae.getNumDataCodewords(m,a)*8;o(v.length<=y),n(0,Math.min(4,y-v.length),v),n(0,(8-v.length%8)%8,v),o(v.length%8==0);for(let w=236;v.length<y;w^=253)n(w,8,v);let b=[];for(;b.length*8<v.length;)b.push(0);return v.forEach((w,S)=>b[S>>>3]|=w<<7-(S&7)),new ae(m,a,b,f)}getModule(u,a){return 0<=u&&u<this.size&&0<=a&&a<this.size&&this.modules[a][u]}getModules(){return this.modules}drawFunctionPatterns(){for(let s=0;s<this.size;s++)this.setFunctionModule(6,s,s%2==0),this.setFunctionModule(s,6,s%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const u=this.getAlignmentPatternPositions(),a=u.length;for(let s=0;s<a;s++)for(let d=0;d<a;d++)s==0&&d==0||s==0&&d==a-1||s==a-1&&d==0||this.drawAlignmentPattern(u[s],u[d]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(u){const a=this.errorCorrectionLevel.formatBits<<3|u;let s=a;for(let f=0;f<10;f++)s=s<<1^(s>>>9)*1335;const d=(a<<10|s)^21522;o(d>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,r(d,f));this.setFunctionModule(8,7,r(d,6)),this.setFunctionModule(8,8,r(d,7)),this.setFunctionModule(7,8,r(d,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,r(d,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,r(d,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,r(d,f));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let u=this.version;for(let s=0;s<12;s++)u=u<<1^(u>>>11)*7973;const a=this.version<<12|u;o(a>>>18==0);for(let s=0;s<18;s++){const d=r(a,s),f=this.size-11+s%3,p=Math.floor(s/3);this.setFunctionModule(f,p,d),this.setFunctionModule(p,f,d)}}drawFinderPattern(u,a){for(let s=-4;s<=4;s++)for(let d=-4;d<=4;d++){const f=Math.max(Math.abs(d),Math.abs(s)),p=u+d,m=a+s;0<=p&&p<this.size&&0<=m&&m<this.size&&this.setFunctionModule(p,m,f!=2&&f!=4)}}drawAlignmentPattern(u,a){for(let s=-2;s<=2;s++)for(let d=-2;d<=2;d++)this.setFunctionModule(u+d,a+s,Math.max(Math.abs(d),Math.abs(s))!=1)}setFunctionModule(u,a,s){this.modules[a][u]=s,this.isFunction[a][u]=!0}addEccAndInterleave(u){const a=this.version,s=this.errorCorrectionLevel;if(u.length!=ae.getNumDataCodewords(a,s))throw new RangeError("Invalid argument");const d=ae.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][a],f=ae.ECC_CODEWORDS_PER_BLOCK[s.ordinal][a],p=Math.floor(ae.getNumRawDataModules(a)/8),m=d-p%d,h=Math.floor(p/d);let v=[];const y=ae.reedSolomonComputeDivisor(f);for(let w=0,S=0;w<d;w++){let E=u.slice(S,S+h-f+(w<m?0:1));S+=E.length;const A=ae.reedSolomonComputeRemainder(E,y);w<m&&E.push(0),v.push(E.concat(A))}let b=[];for(let w=0;w<v[0].length;w++)v.forEach((S,E)=>{(w!=h-f||E>=m)&&b.push(S[w])});return o(b.length==p),b}drawCodewords(u){if(u.length!=Math.floor(ae.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let a=0;for(let s=this.size-1;s>=1;s-=2){s==6&&(s=5);for(let d=0;d<this.size;d++)for(let f=0;f<2;f++){const p=s-f,m=(s+1&2)==0?this.size-1-d:d;!this.isFunction[m][p]&&a<u.length*8&&(this.modules[m][p]=r(u[a>>>3],7-(a&7)),a++)}}o(a==u.length*8)}applyMask(u){if(u<0||u>7)throw new RangeError("Mask value out of range");for(let a=0;a<this.size;a++)for(let s=0;s<this.size;s++){let d;switch(u){case 0:d=(s+a)%2==0;break;case 1:d=a%2==0;break;case 2:d=s%3==0;break;case 3:d=(s+a)%3==0;break;case 4:d=(Math.floor(s/3)+Math.floor(a/2))%2==0;break;case 5:d=s*a%2+s*a%3==0;break;case 6:d=(s*a%2+s*a%3)%2==0;break;case 7:d=((s+a)%2+s*a%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[a][s]&&d&&(this.modules[a][s]=!this.modules[a][s])}}getPenaltyScore(){let u=0;for(let f=0;f<this.size;f++){let p=!1,m=0,h=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[f][v]==p?(m++,m==5?u+=ae.PENALTY_N1:m>5&&u++):(this.finderPenaltyAddHistory(m,h),p||(u+=this.finderPenaltyCountPatterns(h)*ae.PENALTY_N3),p=this.modules[f][v],m=1);u+=this.finderPenaltyTerminateAndCount(p,m,h)*ae.PENALTY_N3}for(let f=0;f<this.size;f++){let p=!1,m=0,h=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[v][f]==p?(m++,m==5?u+=ae.PENALTY_N1:m>5&&u++):(this.finderPenaltyAddHistory(m,h),p||(u+=this.finderPenaltyCountPatterns(h)*ae.PENALTY_N3),p=this.modules[v][f],m=1);u+=this.finderPenaltyTerminateAndCount(p,m,h)*ae.PENALTY_N3}for(let f=0;f<this.size-1;f++)for(let p=0;p<this.size-1;p++){const m=this.modules[f][p];m==this.modules[f][p+1]&&m==this.modules[f+1][p]&&m==this.modules[f+1][p+1]&&(u+=ae.PENALTY_N2)}let a=0;for(const f of this.modules)a=f.reduce((p,m)=>p+(m?1:0),a);const s=this.size*this.size,d=Math.ceil(Math.abs(a*20-s*10)/s)-1;return o(0<=d&&d<=9),u+=d*ae.PENALTY_N4,o(0<=u&&u<=2568888),u}getAlignmentPatternPositions(){if(this.version==1)return[];{const u=Math.floor(this.version/7)+2,a=this.version==32?26:Math.ceil((this.version*4+4)/(u*2-2))*2;let s=[6];for(let d=this.size-7;s.length<u;d-=a)s.splice(1,0,d);return s}}static getNumRawDataModules(u){if(u<ae.MIN_VERSION||u>ae.MAX_VERSION)throw new RangeError("Version number out of range");let a=(16*u+128)*u+64;if(u>=2){const s=Math.floor(u/7)+2;a-=(25*s-10)*s-55,u>=7&&(a-=36)}return o(208<=a&&a<=29648),a}static getNumDataCodewords(u,a){return Math.floor(ae.getNumRawDataModules(u)/8)-ae.ECC_CODEWORDS_PER_BLOCK[a.ordinal][u]*ae.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][u]}static reedSolomonComputeDivisor(u){if(u<1||u>255)throw new RangeError("Degree out of range");let a=[];for(let d=0;d<u-1;d++)a.push(0);a.push(1);let s=1;for(let d=0;d<u;d++){for(let f=0;f<a.length;f++)a[f]=ae.reedSolomonMultiply(a[f],s),f+1<a.length&&(a[f]^=a[f+1]);s=ae.reedSolomonMultiply(s,2)}return a}static reedSolomonComputeRemainder(u,a){let s=a.map(d=>0);for(const d of u){const f=d^s.shift();s.push(0),a.forEach((p,m)=>s[m]^=ae.reedSolomonMultiply(p,f))}return s}static reedSolomonMultiply(u,a){if(u>>>8||a>>>8)throw new RangeError("Byte out of range");let s=0;for(let d=7;d>=0;d--)s=s<<1^(s>>>7)*285,s^=(a>>>d&1)*u;return o(s>>>8==0),s}finderPenaltyCountPatterns(u){const a=u[1];o(a<=this.size*3);const s=a>0&&u[2]==a&&u[3]==a*3&&u[4]==a&&u[5]==a;return(s&&u[0]>=a*4&&u[6]>=a?1:0)+(s&&u[6]>=a*4&&u[0]>=a?1:0)}finderPenaltyTerminateAndCount(u,a,s){return u&&(this.finderPenaltyAddHistory(a,s),a=0),a+=this.size,this.finderPenaltyAddHistory(a,s),this.finderPenaltyCountPatterns(s)}finderPenaltyAddHistory(u,a){a[0]==0&&(u+=this.size),a.pop(),a.unshift(u)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(c,u,a){if(u<0||u>31||c>>>u)throw new RangeError("Value out of range");for(let s=u-1;s>=0;s--)a.push(c>>>s&1)}function r(c,u){return(c>>>u&1)!=0}function o(c){if(!c)throw new Error("Assertion error")}const i=class we{constructor(u,a,s){if(this.mode=u,this.numChars=a,this.bitData=s,a<0)throw new RangeError("Invalid argument");this.bitData=s.slice()}static makeBytes(u){let a=[];for(const s of u)n(s,8,a);return new we(we.Mode.BYTE,u.length,a)}static makeNumeric(u){if(!we.isNumeric(u))throw new RangeError("String contains non-numeric characters");let a=[];for(let s=0;s<u.length;){const d=Math.min(u.length-s,3);n(parseInt(u.substring(s,s+d),10),d*3+1,a),s+=d}return new we(we.Mode.NUMERIC,u.length,a)}static makeAlphanumeric(u){if(!we.isAlphanumeric(u))throw new RangeError("String contains unencodable characters in alphanumeric mode");let a=[],s;for(s=0;s+2<=u.length;s+=2){let d=we.ALPHANUMERIC_CHARSET.indexOf(u.charAt(s))*45;d+=we.ALPHANUMERIC_CHARSET.indexOf(u.charAt(s+1)),n(d,11,a)}return s<u.length&&n(we.ALPHANUMERIC_CHARSET.indexOf(u.charAt(s)),6,a),new we(we.Mode.ALPHANUMERIC,u.length,a)}static makeSegments(u){return u==""?[]:we.isNumeric(u)?[we.makeNumeric(u)]:we.isAlphanumeric(u)?[we.makeAlphanumeric(u)]:[we.makeBytes(we.toUtf8ByteArray(u))]}static makeEci(u){let a=[];if(u<0)throw new RangeError("ECI assignment value out of range");if(u<128)n(u,8,a);else if(u<16384)n(2,2,a),n(u,14,a);else if(u<1e6)n(6,3,a),n(u,21,a);else throw new RangeError("ECI assignment value out of range");return new we(we.Mode.ECI,0,a)}static isNumeric(u){return we.NUMERIC_REGEX.test(u)}static isAlphanumeric(u){return we.ALPHANUMERIC_REGEX.test(u)}getData(){return this.bitData.slice()}static getTotalBits(u,a){let s=0;for(const d of u){const f=d.mode.numCharCountBits(a);if(d.numChars>=1<<f)return 1/0;s+=4+f+d.bitData.length}return s}static toUtf8ByteArray(u){u=encodeURI(u);let a=[];for(let s=0;s<u.length;s++)u.charAt(s)!="%"?a.push(u.charCodeAt(s)):(a.push(parseInt(u.substring(s+1,s+3),16)),s+=2);return a}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let l=i;e.QrSegment=i})(Xt||(Xt={}));(e=>{(t=>{const n=class{constructor(r,o){this.ordinal=r,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(Xt||(Xt={}));(e=>{(t=>{const n=class{constructor(r,o){this.modeBits=r,this.numBitsCharCount=o}numCharCountBits(r){return this.numBitsCharCount[Math.floor((r+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(Xt||(Xt={}));var un=Xt;/**
112
+ */var Yt;(e=>{const t=class se{constructor(u,s,a,d){if(this.version=u,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],u<se.MIN_VERSION||u>se.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=u*4+17;let f=[];for(let m=0;m<this.size;m++)f.push(!1);for(let m=0;m<this.size;m++)this.modules.push(f.slice()),this.isFunction.push(f.slice());this.drawFunctionPatterns();const p=this.addEccAndInterleave(a);if(this.drawCodewords(p),d==-1){let m=1e9;for(let h=0;h<8;h++){this.applyMask(h),this.drawFormatBits(h);const v=this.getPenaltyScore();v<m&&(d=h,m=v),this.applyMask(h)}}o(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[]}static encodeText(u,s){const a=e.QrSegment.makeSegments(u);return se.encodeSegments(a,s)}static encodeBinary(u,s){const a=e.QrSegment.makeBytes(u);return se.encodeSegments([a],s)}static encodeSegments(u,s,a=1,d=40,f=-1,p=!0){if(!(se.MIN_VERSION<=a&&a<=d&&d<=se.MAX_VERSION)||f<-1||f>7)throw new RangeError("Invalid value");let m,h;for(m=a;;m++){const x=se.getNumDataCodewords(m,s)*8,S=l.getTotalBits(u,m);if(S<=x){h=S;break}if(m>=d)throw new RangeError("Data too long")}for(const x of[se.Ecc.MEDIUM,se.Ecc.QUARTILE,se.Ecc.HIGH])p&&h<=se.getNumDataCodewords(m,x)*8&&(s=x);let v=[];for(const x of u){n(x.mode.modeBits,4,v),n(x.numChars,x.mode.numCharCountBits(m),v);for(const S of x.getData())v.push(S)}o(v.length==h);const y=se.getNumDataCodewords(m,s)*8;o(v.length<=y),n(0,Math.min(4,y-v.length),v),n(0,(8-v.length%8)%8,v),o(v.length%8==0);for(let x=236;v.length<y;x^=253)n(x,8,v);let b=[];for(;b.length*8<v.length;)b.push(0);return v.forEach((x,S)=>b[S>>>3]|=x<<7-(S&7)),new se(m,s,b,f)}getModule(u,s){return 0<=u&&u<this.size&&0<=s&&s<this.size&&this.modules[s][u]}getModules(){return this.modules}drawFunctionPatterns(){for(let a=0;a<this.size;a++)this.setFunctionModule(6,a,a%2==0),this.setFunctionModule(a,6,a%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const u=this.getAlignmentPatternPositions(),s=u.length;for(let a=0;a<s;a++)for(let d=0;d<s;d++)a==0&&d==0||a==0&&d==s-1||a==s-1&&d==0||this.drawAlignmentPattern(u[a],u[d]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(u){const s=this.errorCorrectionLevel.formatBits<<3|u;let a=s;for(let f=0;f<10;f++)a=a<<1^(a>>>9)*1335;const d=(s<<10|a)^21522;o(d>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,r(d,f));this.setFunctionModule(8,7,r(d,6)),this.setFunctionModule(8,8,r(d,7)),this.setFunctionModule(7,8,r(d,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,r(d,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,r(d,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,r(d,f));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let u=this.version;for(let a=0;a<12;a++)u=u<<1^(u>>>11)*7973;const s=this.version<<12|u;o(s>>>18==0);for(let a=0;a<18;a++){const d=r(s,a),f=this.size-11+a%3,p=Math.floor(a/3);this.setFunctionModule(f,p,d),this.setFunctionModule(p,f,d)}}drawFinderPattern(u,s){for(let a=-4;a<=4;a++)for(let d=-4;d<=4;d++){const f=Math.max(Math.abs(d),Math.abs(a)),p=u+d,m=s+a;0<=p&&p<this.size&&0<=m&&m<this.size&&this.setFunctionModule(p,m,f!=2&&f!=4)}}drawAlignmentPattern(u,s){for(let a=-2;a<=2;a++)for(let d=-2;d<=2;d++)this.setFunctionModule(u+d,s+a,Math.max(Math.abs(d),Math.abs(a))!=1)}setFunctionModule(u,s,a){this.modules[s][u]=a,this.isFunction[s][u]=!0}addEccAndInterleave(u){const s=this.version,a=this.errorCorrectionLevel;if(u.length!=se.getNumDataCodewords(s,a))throw new RangeError("Invalid argument");const d=se.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][s],f=se.ECC_CODEWORDS_PER_BLOCK[a.ordinal][s],p=Math.floor(se.getNumRawDataModules(s)/8),m=d-p%d,h=Math.floor(p/d);let v=[];const y=se.reedSolomonComputeDivisor(f);for(let x=0,S=0;x<d;x++){let E=u.slice(S,S+h-f+(x<m?0:1));S+=E.length;const A=se.reedSolomonComputeRemainder(E,y);x<m&&E.push(0),v.push(E.concat(A))}let b=[];for(let x=0;x<v[0].length;x++)v.forEach((S,E)=>{(x!=h-f||E>=m)&&b.push(S[x])});return o(b.length==p),b}drawCodewords(u){if(u.length!=Math.floor(se.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let a=this.size-1;a>=1;a-=2){a==6&&(a=5);for(let d=0;d<this.size;d++)for(let f=0;f<2;f++){const p=a-f,m=(a+1&2)==0?this.size-1-d:d;!this.isFunction[m][p]&&s<u.length*8&&(this.modules[m][p]=r(u[s>>>3],7-(s&7)),s++)}}o(s==u.length*8)}applyMask(u){if(u<0||u>7)throw new RangeError("Mask value out of range");for(let s=0;s<this.size;s++)for(let a=0;a<this.size;a++){let d;switch(u){case 0:d=(a+s)%2==0;break;case 1:d=s%2==0;break;case 2:d=a%3==0;break;case 3:d=(a+s)%3==0;break;case 4:d=(Math.floor(a/3)+Math.floor(s/2))%2==0;break;case 5:d=a*s%2+a*s%3==0;break;case 6:d=(a*s%2+a*s%3)%2==0;break;case 7:d=((a+s)%2+a*s%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[s][a]&&d&&(this.modules[s][a]=!this.modules[s][a])}}getPenaltyScore(){let u=0;for(let f=0;f<this.size;f++){let p=!1,m=0,h=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[f][v]==p?(m++,m==5?u+=se.PENALTY_N1:m>5&&u++):(this.finderPenaltyAddHistory(m,h),p||(u+=this.finderPenaltyCountPatterns(h)*se.PENALTY_N3),p=this.modules[f][v],m=1);u+=this.finderPenaltyTerminateAndCount(p,m,h)*se.PENALTY_N3}for(let f=0;f<this.size;f++){let p=!1,m=0,h=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[v][f]==p?(m++,m==5?u+=se.PENALTY_N1:m>5&&u++):(this.finderPenaltyAddHistory(m,h),p||(u+=this.finderPenaltyCountPatterns(h)*se.PENALTY_N3),p=this.modules[v][f],m=1);u+=this.finderPenaltyTerminateAndCount(p,m,h)*se.PENALTY_N3}for(let f=0;f<this.size-1;f++)for(let p=0;p<this.size-1;p++){const m=this.modules[f][p];m==this.modules[f][p+1]&&m==this.modules[f+1][p]&&m==this.modules[f+1][p+1]&&(u+=se.PENALTY_N2)}let s=0;for(const f of this.modules)s=f.reduce((p,m)=>p+(m?1:0),s);const a=this.size*this.size,d=Math.ceil(Math.abs(s*20-a*10)/a)-1;return o(0<=d&&d<=9),u+=d*se.PENALTY_N4,o(0<=u&&u<=2568888),u}getAlignmentPatternPositions(){if(this.version==1)return[];{const u=Math.floor(this.version/7)+2,s=this.version==32?26:Math.ceil((this.version*4+4)/(u*2-2))*2;let a=[6];for(let d=this.size-7;a.length<u;d-=s)a.splice(1,0,d);return a}}static getNumRawDataModules(u){if(u<se.MIN_VERSION||u>se.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*u+128)*u+64;if(u>=2){const a=Math.floor(u/7)+2;s-=(25*a-10)*a-55,u>=7&&(s-=36)}return o(208<=s&&s<=29648),s}static getNumDataCodewords(u,s){return Math.floor(se.getNumRawDataModules(u)/8)-se.ECC_CODEWORDS_PER_BLOCK[s.ordinal][u]*se.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][u]}static reedSolomonComputeDivisor(u){if(u<1||u>255)throw new RangeError("Degree out of range");let s=[];for(let d=0;d<u-1;d++)s.push(0);s.push(1);let a=1;for(let d=0;d<u;d++){for(let f=0;f<s.length;f++)s[f]=se.reedSolomonMultiply(s[f],a),f+1<s.length&&(s[f]^=s[f+1]);a=se.reedSolomonMultiply(a,2)}return s}static reedSolomonComputeRemainder(u,s){let a=s.map(d=>0);for(const d of u){const f=d^a.shift();a.push(0),s.forEach((p,m)=>a[m]^=se.reedSolomonMultiply(p,f))}return a}static reedSolomonMultiply(u,s){if(u>>>8||s>>>8)throw new RangeError("Byte out of range");let a=0;for(let d=7;d>=0;d--)a=a<<1^(a>>>7)*285,a^=(s>>>d&1)*u;return o(a>>>8==0),a}finderPenaltyCountPatterns(u){const s=u[1];o(s<=this.size*3);const a=s>0&&u[2]==s&&u[3]==s*3&&u[4]==s&&u[5]==s;return(a&&u[0]>=s*4&&u[6]>=s?1:0)+(a&&u[6]>=s*4&&u[0]>=s?1:0)}finderPenaltyTerminateAndCount(u,s,a){return u&&(this.finderPenaltyAddHistory(s,a),s=0),s+=this.size,this.finderPenaltyAddHistory(s,a),this.finderPenaltyCountPatterns(a)}finderPenaltyAddHistory(u,s){s[0]==0&&(u+=this.size),s.pop(),s.unshift(u)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(c,u,s){if(u<0||u>31||c>>>u)throw new RangeError("Value out of range");for(let a=u-1;a>=0;a--)s.push(c>>>a&1)}function r(c,u){return(c>>>u&1)!=0}function o(c){if(!c)throw new Error("Assertion error")}const i=class we{constructor(u,s,a){if(this.mode=u,this.numChars=s,this.bitData=a,s<0)throw new RangeError("Invalid argument");this.bitData=a.slice()}static makeBytes(u){let s=[];for(const a of u)n(a,8,s);return new we(we.Mode.BYTE,u.length,s)}static makeNumeric(u){if(!we.isNumeric(u))throw new RangeError("String contains non-numeric characters");let s=[];for(let a=0;a<u.length;){const d=Math.min(u.length-a,3);n(parseInt(u.substring(a,a+d),10),d*3+1,s),a+=d}return new we(we.Mode.NUMERIC,u.length,s)}static makeAlphanumeric(u){if(!we.isAlphanumeric(u))throw new RangeError("String contains unencodable characters in alphanumeric mode");let s=[],a;for(a=0;a+2<=u.length;a+=2){let d=we.ALPHANUMERIC_CHARSET.indexOf(u.charAt(a))*45;d+=we.ALPHANUMERIC_CHARSET.indexOf(u.charAt(a+1)),n(d,11,s)}return a<u.length&&n(we.ALPHANUMERIC_CHARSET.indexOf(u.charAt(a)),6,s),new we(we.Mode.ALPHANUMERIC,u.length,s)}static makeSegments(u){return u==""?[]:we.isNumeric(u)?[we.makeNumeric(u)]:we.isAlphanumeric(u)?[we.makeAlphanumeric(u)]:[we.makeBytes(we.toUtf8ByteArray(u))]}static makeEci(u){let s=[];if(u<0)throw new RangeError("ECI assignment value out of range");if(u<128)n(u,8,s);else if(u<16384)n(2,2,s),n(u,14,s);else if(u<1e6)n(6,3,s),n(u,21,s);else throw new RangeError("ECI assignment value out of range");return new we(we.Mode.ECI,0,s)}static isNumeric(u){return we.NUMERIC_REGEX.test(u)}static isAlphanumeric(u){return we.ALPHANUMERIC_REGEX.test(u)}getData(){return this.bitData.slice()}static getTotalBits(u,s){let a=0;for(const d of u){const f=d.mode.numCharCountBits(s);if(d.numChars>=1<<f)return 1/0;a+=4+f+d.bitData.length}return a}static toUtf8ByteArray(u){u=encodeURI(u);let s=[];for(let a=0;a<u.length;a++)u.charAt(a)!="%"?s.push(u.charCodeAt(a)):(s.push(parseInt(u.substring(a+1,a+3),16)),a+=2);return s}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let l=i;e.QrSegment=i})(Yt||(Yt={}));(e=>{(t=>{const n=class{constructor(r,o){this.ordinal=r,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(Yt||(Yt={}));(e=>{(t=>{const n=class{constructor(r,o){this.modeBits=r,this.numBitsCharCount=o}numCharCountBits(r){return this.numBitsCharCount[Math.floor((r+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(Yt||(Yt={}));var fn=Yt;/**
113
113
  * @license qrcode.react
114
114
  * Copyright (c) Paul O'Shannessy
115
115
  * SPDX-License-Identifier: ISC
116
- */var PT={L:un.QrCode.Ecc.LOW,M:un.QrCode.Ecc.MEDIUM,Q:un.QrCode.Ecc.QUARTILE,H:un.QrCode.Ecc.HIGH},p0=128,h0="L",m0="#FFFFFF",v0="#000000",g0=!1,y0=1,RT=4,OT=0,TT=.1;function b0(e,t=0){const n=[];return e.forEach(function(r,o){let i=null;r.forEach(function(l,c){if(!l&&i!==null){n.push(`M${i+t} ${o+t}h${c-i}v1H${i+t}z`),i=null;return}if(c===r.length-1){if(!l)return;i===null?n.push(`M${c+t},${o+t} h1v1H${c+t}z`):n.push(`M${i+t},${o+t} h${c+1-i}v1H${i+t}z`);return}l&&i===null&&(i=c)})}),n.join("")}function w0(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((o,i)=>i<t.x||i>=t.x+t.w?o:!1))}function jT(e,t,n,r){if(r==null)return null;const o=e.length+n*2,i=Math.floor(t*TT),l=o/t,c=(r.width||i)*l,u=(r.height||i)*l,a=r.x==null?e.length/2-c/2:r.x*l,s=r.y==null?e.length/2-u/2:r.y*l,d=r.opacity==null?1:r.opacity;let f=null;if(r.excavate){let m=Math.floor(a),h=Math.floor(s),v=Math.ceil(c+a-m),y=Math.ceil(u+s-h);f={x:m,y:h,w:v,h:y}}const p=r.crossOrigin;return{x:a,y:s,h:u,w:c,excavation:f,opacity:d,crossOrigin:p}}function MT(e,t){return t!=null?Math.max(Math.floor(t),0):e?RT:OT}function x0({value:e,level:t,minVersion:n,includeMargin:r,marginSize:o,imageSettings:i,size:l,boostLevel:c}){let u=R.useMemo(()=>{const p=(Array.isArray(e)?e:[e]).reduce((m,h)=>(m.push(...un.QrSegment.makeSegments(h)),m),[]);return un.QrCode.encodeSegments(p,PT[t],n,void 0,void 0,c)},[e,t,n,c]);const{cells:a,margin:s,numCells:d,calculatedImageSettings:f}=R.useMemo(()=>{let p=u.getModules();const m=MT(r,o),h=p.length+m*2,v=jT(p,l,m,i);return{cells:p,margin:m,numCells:h,calculatedImageSettings:v}},[u,l,i,r,o]);return{qrcode:u,margin:s,cells:a,numCells:d,calculatedImageSettings:f}}var AT=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),kT=R.forwardRef(function(e,t){const n=e,{value:r,size:o=p0,level:i=h0,bgColor:l=m0,fgColor:c=v0,includeMargin:u=g0,minVersion:a=y0,boostLevel:s,marginSize:d,imageSettings:f}=n,p=ha(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:m}=p,h=ha(p,["style"]),v=f==null?void 0:f.src,y=R.useRef(null),b=R.useRef(null),w=R.useCallback(P=>{y.current=P,typeof t=="function"?t(P):t&&(t.current=P)},[t]),[S,E]=R.useState(!1),{margin:A,cells:j,numCells:O,calculatedImageSettings:T}=x0({value:r,level:i,minVersion:a,boostLevel:s,includeMargin:u,marginSize:d,imageSettings:f,size:o});R.useEffect(()=>{if(y.current!=null){const P=y.current,$=P.getContext("2d");if(!$)return;let F=j;const U=b.current,B=T!=null&&U!==null&&U.complete&&U.naturalHeight!==0&&U.naturalWidth!==0;B&&T.excavation!=null&&(F=w0(j,T.excavation));const X=window.devicePixelRatio||1;P.height=P.width=o*X;const W=o/O*X;$.scale(W,W),$.fillStyle=l,$.fillRect(0,0,O,O),$.fillStyle=c,AT?$.fill(new Path2D(b0(F,A))):j.forEach(function(L,M){L.forEach(function(D,ee){D&&$.fillRect(ee+A,M+A,1,1)})}),T&&($.globalAlpha=T.opacity),B&&$.drawImage(U,T.x+A,T.y+A,T.w,T.h)}}),R.useEffect(()=>{E(!1)},[v]);const _=pa({height:o,width:o},m);let k=null;return v!=null&&(k=R.createElement("img",{src:v,key:v,style:{display:"none"},onLoad:()=>{E(!0)},ref:b,crossOrigin:T==null?void 0:T.crossOrigin})),R.createElement(R.Fragment,null,R.createElement("canvas",pa({style:_,height:o,width:o,ref:w,role:"img"},h)),k)});kT.displayName="QRCodeCanvas";var DT=R.forwardRef(function(e,t){const n=e,{value:r,size:o=p0,level:i=h0,bgColor:l=m0,fgColor:c=v0,includeMargin:u=g0,minVersion:a=y0,boostLevel:s,title:d,marginSize:f,imageSettings:p}=n,m=ha(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:h,cells:v,numCells:y,calculatedImageSettings:b}=x0({value:r,level:i,minVersion:a,boostLevel:s,includeMargin:u,marginSize:f,imageSettings:p,size:o});let w=v,S=null;p!=null&&b!=null&&(b.excavation!=null&&(w=w0(v,b.excavation)),S=R.createElement("image",{href:p.src,height:b.h,width:b.w,x:b.x+h,y:b.y+h,preserveAspectRatio:"none",opacity:b.opacity,crossOrigin:b.crossOrigin}));const E=b0(w,h);return R.createElement("svg",pa({height:o,width:o,viewBox:`0 0 ${y} ${y}`,ref:t,role:"img"},m),!!d&&R.createElement("title",null,d),R.createElement("path",{fill:l,d:`M0,0 h${y}v${y}H0z`,shapeRendering:"crispEdges"}),R.createElement("path",{fill:c,d:E,shapeRendering:"crispEdges"}),S)});DT.displayName="QRCodeSVG";var Gr={},Nn={},Xr={},Kc;function Ve(){if(Kc)return Xr;Kc=1,Object.defineProperty(Xr,"__esModule",{value:!0});function e(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}var t=function n(r,o){e(this,n),this.data=r,this.text=o.text||r,this.options=o};return Xr.default=t,Xr}var Yc;function LT(){if(Yc)return Nn;Yc=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.CODE39=void 0;var e=(function(){function h(v,y){for(var b=0;b<y.length;b++){var w=y[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,y,b){return y&&h(v.prototype,y),b&&h(v,b),v}})(),t=Ve(),n=r(t);function r(h){return h&&h.__esModule?h:{default:h}}function o(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}function i(h,v){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:h}function l(h,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);h.prototype=Object.create(v&&v.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(h,v):h.__proto__=v)}var c=(function(h){l(v,h);function v(y,b){return o(this,v),y=y.toUpperCase(),b.mod43&&(y+=f(m(y))),i(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,y,b))}return e(v,[{key:"encode",value:function(){for(var y=s("*"),b=0;b<this.data.length;b++)y+=s(this.data[b])+"0";return y+=s("*"),{data:y,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),v})(n.default),u=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],a=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function s(h){return d(p(h))}function d(h){return a[h].toString(2)}function f(h){return u[h]}function p(h){return u.indexOf(h)}function m(h){for(var v=0,y=0;y<h.length;y++)v+=p(h[y]);return v=v%43,v}return Nn.CODE39=c,Nn}var Ge={},Kr={},Yr={},be={},qc;function Rr(){if(qc)return be;qc=1,Object.defineProperty(be,"__esModule",{value:!0});var e;function t(u,a,s){return a in u?Object.defineProperty(u,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):u[a]=s,u}var n=be.SET_A=0,r=be.SET_B=1,o=be.SET_C=2;be.SHIFT=98;var i=be.START_A=103,l=be.START_B=104,c=be.START_C=105;return be.MODULO=103,be.STOP=106,be.FNC1=207,be.SET_BY_CODE=(e={},t(e,i,n),t(e,l,r),t(e,c,o),e),be.SWAP={101:n,100:r,99:o},be.A_START_CHAR="Ð",be.B_START_CHAR="Ñ",be.C_START_CHAR="Ò",be.A_CHARS="[\0-_È-Ï]",be.B_CHARS="[ -È-Ï]",be.C_CHARS="(Ï*[0-9]{2}Ï*)",be.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],be}var Zc;function Li(){if(Zc)return Yr;Zc=1,Object.defineProperty(Yr,"__esModule",{value:!0});var e=(function(){function a(s,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(s,p.key,p)}}return function(s,d,f){return d&&a(s.prototype,d),f&&a(s,f),s}})(),t=Ve(),n=o(t),r=Rr();function o(a){return a&&a.__esModule?a:{default:a}}function i(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function l(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:a}function c(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}var u=(function(a){c(s,a);function s(d,f){i(this,s);var p=l(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,d.substring(1),f));return p.bytes=d.split("").map(function(m){return m.charCodeAt(0)}),p}return e(s,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var d=this.bytes,f=d.shift()-105,p=r.SET_BY_CODE[f];if(p===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&d.unshift(r.FNC1);var m=s.next(d,1,p);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:s.getBar(f)+m.result+s.getBar((m.checksum+f)%r.MODULO)+s.getBar(r.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var d=this.options.ean128||!1;return typeof d=="string"&&(d=d.toLowerCase()==="true"),d}}],[{key:"getBar",value:function(d){return r.BARS[d]?r.BARS[d].toString():""}},{key:"correctIndex",value:function(d,f){if(f===r.SET_A){var p=d.shift();return p<32?p+64:p-32}else return f===r.SET_B?d.shift()-32:(d.shift()-48)*10+d.shift()-48}},{key:"next",value:function(d,f,p){if(!d.length)return{result:"",checksum:0};var m=void 0,h=void 0;if(d[0]>=200){h=d.shift()-105;var v=r.SWAP[h];v!==void 0?m=s.next(d,f+1,v):((p===r.SET_A||p===r.SET_B)&&h===r.SHIFT&&(d[0]=p===r.SET_A?d[0]>95?d[0]-96:d[0]:d[0]<32?d[0]+96:d[0]),m=s.next(d,f+1,p))}else h=s.correctIndex(d,p),m=s.next(d,f+1,p);var y=s.getBar(h),b=h*f;return{result:y+m.result,checksum:b+m.checksum}}}]),s})(n.default);return Yr.default=u,Yr}var qr={},Qc;function IT(){if(Qc)return qr;Qc=1,Object.defineProperty(qr,"__esModule",{value:!0});var e=Rr(),t=function(l){return l.match(new RegExp("^"+e.A_CHARS+"*"))[0].length},n=function(l){return l.match(new RegExp("^"+e.B_CHARS+"*"))[0].length},r=function(l){return l.match(new RegExp("^"+e.C_CHARS+"*"))[0]};function o(l,c){var u=c?e.A_CHARS:e.B_CHARS,a=l.match(new RegExp("^("+u+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(a)return a[1]+"Ì"+i(l.substring(a[1].length));var s=l.match(new RegExp("^"+u+"+"))[0];return s.length===l.length?l:s+String.fromCharCode(c?205:206)+o(l.substring(s.length),!c)}function i(l){var c=r(l),u=c.length;if(u===l.length)return l;l=l.substring(u);var a=t(l)>=n(l);return c+String.fromCharCode(a?206:205)+o(l,a)}return qr.default=function(l){var c=void 0,u=r(l).length;if(u>=2)c=e.C_START_CHAR+i(l);else{var a=t(l)>n(l);c=(a?e.A_START_CHAR:e.B_START_CHAR)+o(l,a)}return c.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(s,d){return"Ë"+d})},qr}var Jc;function NT(){if(Jc)return Kr;Jc=1,Object.defineProperty(Kr,"__esModule",{value:!0});var e=Li(),t=o(e),n=IT(),r=o(n);function o(a){return a&&a.__esModule?a:{default:a}}function i(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function l(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:a}function c(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}var u=(function(a){c(s,a);function s(d,f){if(i(this,s),/^[\x00-\x7F\xC8-\xD3]+$/.test(d))var p=l(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,(0,r.default)(d),f));else var p=l(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,d,f));return l(p)}return s})(t.default);return Kr.default=u,Kr}var Zr={},ed;function FT(){if(ed)return Zr;ed=1,Object.defineProperty(Zr,"__esModule",{value:!0});var e=(function(){function a(s,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(s,p.key,p)}}return function(s,d,f){return d&&a(s.prototype,d),f&&a(s,f),s}})(),t=Li(),n=o(t),r=Rr();function o(a){return a&&a.__esModule?a:{default:a}}function i(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function l(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:a}function c(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}var u=(function(a){c(s,a);function s(d,f){return i(this,s),l(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,r.A_START_CHAR+d,f))}return e(s,[{key:"valid",value:function(){return new RegExp("^"+r.A_CHARS+"+$").test(this.data)}}]),s})(n.default);return Zr.default=u,Zr}var Qr={},td;function VT(){if(td)return Qr;td=1,Object.defineProperty(Qr,"__esModule",{value:!0});var e=(function(){function a(s,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(s,p.key,p)}}return function(s,d,f){return d&&a(s.prototype,d),f&&a(s,f),s}})(),t=Li(),n=o(t),r=Rr();function o(a){return a&&a.__esModule?a:{default:a}}function i(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function l(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:a}function c(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}var u=(function(a){c(s,a);function s(d,f){return i(this,s),l(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,r.B_START_CHAR+d,f))}return e(s,[{key:"valid",value:function(){return new RegExp("^"+r.B_CHARS+"+$").test(this.data)}}]),s})(n.default);return Qr.default=u,Qr}var Jr={},nd;function $T(){if(nd)return Jr;nd=1,Object.defineProperty(Jr,"__esModule",{value:!0});var e=(function(){function a(s,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(s,p.key,p)}}return function(s,d,f){return d&&a(s.prototype,d),f&&a(s,f),s}})(),t=Li(),n=o(t),r=Rr();function o(a){return a&&a.__esModule?a:{default:a}}function i(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function l(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:a}function c(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}var u=(function(a){c(s,a);function s(d,f){return i(this,s),l(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,r.C_START_CHAR+d,f))}return e(s,[{key:"valid",value:function(){return new RegExp("^"+r.C_CHARS+"+$").test(this.data)}}]),s})(n.default);return Jr.default=u,Jr}var rd;function BT(){if(rd)return Ge;rd=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.CODE128C=Ge.CODE128B=Ge.CODE128A=Ge.CODE128=void 0;var e=NT(),t=u(e),n=FT(),r=u(n),o=VT(),i=u(o),l=$T(),c=u(l);function u(a){return a&&a.__esModule?a:{default:a}}return Ge.CODE128=t.default,Ge.CODE128A=r.default,Ge.CODE128B=i.default,Ge.CODE128C=c.default,Ge}var Te={},eo={},wt={},od;function Or(){return od||(od=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.SIDE_BIN="101",wt.MIDDLE_BIN="01010",wt.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},wt.EAN2_STRUCTURE=["LL","LG","GL","GG"],wt.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],wt.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]),wt}var to={},no={},id;function Tr(){if(id)return no;id=1,Object.defineProperty(no,"__esModule",{value:!0});var e=Or(),t=function(n,r,o){var i=n.split("").map(function(c,u){return e.BINARIES[r[u]]}).map(function(c,u){return c?c[n[u]]:""});if(o){var l=n.length-1;i=i.map(function(c,u){return u<l?c+o:c})}return i.join("")};return no.default=t,no}var sd;function E0(){if(sd)return to;sd=1,Object.defineProperty(to,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})(),t=Or(),n=Tr(),r=l(n),o=Ve(),i=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function c(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function u(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function a(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var s=(function(d){a(f,d);function f(p,m){c(this,f);var h=u(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m));return h.fontSize=!m.flat&&m.fontSize>m.width*10?m.width*10:m.fontSize,h.guardHeight=m.height+h.fontSize/2+m.textMargin,h}return e(f,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(p,m){return this.text.substr(p,m)}},{key:"leftEncode",value:function(p,m){return(0,r.default)(p,m)}},{key:"rightText",value:function(p,m){return this.text.substr(p,m)}},{key:"rightEncode",value:function(p,m){return(0,r.default)(p,m)}},{key:"encodeGuarded",value:function(){var p={fontSize:this.fontSize},m={height:this.guardHeight};return[{data:t.SIDE_BIN,options:m},{data:this.leftEncode(),text:this.leftText(),options:p},{data:t.MIDDLE_BIN,options:m},{data:this.rightEncode(),text:this.rightText(),options:p},{data:t.SIDE_BIN,options:m}]}},{key:"encodeFlat",value:function(){var p=[t.SIDE_BIN,this.leftEncode(),t.MIDDLE_BIN,this.rightEncode(),t.SIDE_BIN];return{data:p.join(""),text:this.text}}}]),f})(i.default);return to.default=s,to}var ad;function zT(){if(ad)return eo;ad=1,Object.defineProperty(eo,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})(),t=function d(f,p,m){f===null&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,p);if(h===void 0){var v=Object.getPrototypeOf(f);return v===null?void 0:d(v,p,m)}else{if("value"in h)return h.value;var y=h.get;return y===void 0?void 0:y.call(m)}},n=Or(),r=E0(),o=i(r);function i(d){return d&&d.__esModule?d:{default:d}}function l(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function c(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function u(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var a=function(d){var f=d.substr(0,12).split("").map(function(p){return+p}).reduce(function(p,m,h){return h%2?p+m*3:p+m},0);return(10-f%10)%10},s=(function(d){u(f,d);function f(p,m){l(this,f),p.search(/^[0-9]{12}$/)!==-1&&(p+=a(p));var h=c(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m));return h.lastChar=m.lastChar,h}return e(f,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===a(this.data)}},{key:"leftText",value:function(){return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var p=this.data.substr(1,6),m=n.EAN13_STRUCTURE[this.data[0]];return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"leftEncode",this).call(this,p,m)}},{key:"rightText",value:function(){return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var p=this.data.substr(7,6);return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"rightEncode",this).call(this,p,"RRRRRR")}},{key:"encodeGuarded",value:function(){var p=t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(p.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(p.push({data:"00"}),p.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),p}}]),f})(o.default);return eo.default=s,eo}var ro={},ld;function HT(){if(ld)return ro;ld=1,Object.defineProperty(ro,"__esModule",{value:!0});var e=(function(){function s(d,f){for(var p=0;p<f.length;p++){var m=f[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}return function(d,f,p){return f&&s(d.prototype,f),p&&s(d,p),d}})(),t=function s(d,f,p){d===null&&(d=Function.prototype);var m=Object.getOwnPropertyDescriptor(d,f);if(m===void 0){var h=Object.getPrototypeOf(d);return h===null?void 0:s(h,f,p)}else{if("value"in m)return m.value;var v=m.get;return v===void 0?void 0:v.call(p)}},n=E0(),r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}function i(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function l(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function c(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var u=function(s){var d=s.substr(0,7).split("").map(function(f){return+f}).reduce(function(f,p,m){return m%2?f+p:f+p*3},0);return(10-d%10)%10},a=(function(s){c(d,s);function d(f,p){return i(this,d),f.search(/^[0-9]{7}$/)!==-1&&(f+=u(f)),l(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,f,p))}return e(d,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===u(this.data)}},{key:"leftText",value:function(){return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var f=this.data.substr(0,4);return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"leftEncode",this).call(this,f,"LLLL")}},{key:"rightText",value:function(){return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var f=this.data.substr(4,4);return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"rightEncode",this).call(this,f,"RRRR")}}]),d})(r.default);return ro.default=a,ro}var oo={},ud;function UT(){if(ud)return oo;ud=1,Object.defineProperty(oo,"__esModule",{value:!0});var e=(function(){function f(p,m){for(var h=0;h<m.length;h++){var v=m[h];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}return function(p,m,h){return m&&f(p.prototype,m),h&&f(p,h),p}})(),t=Or(),n=Tr(),r=l(n),o=Ve(),i=l(o);function l(f){return f&&f.__esModule?f:{default:f}}function c(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function u(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function a(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var s=function(f){var p=f.split("").map(function(m){return+m}).reduce(function(m,h,v){return v%2?m+h*9:m+h*3},0);return p%10},d=(function(f){a(p,f);function p(m,h){return c(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,m,h))}return e(p,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var m=t.EAN5_STRUCTURE[s(this.data)];return{data:"1011"+(0,r.default)(this.data,m,"01"),text:this.text}}}]),p})(i.default);return oo.default=d,oo}var io={},cd;function WT(){if(cd)return io;cd=1,Object.defineProperty(io,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})(),t=Or(),n=Tr(),r=l(n),o=Ve(),i=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function c(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function u(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function a(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var s=(function(d){a(f,d);function f(p,m){return c(this,f),u(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m))}return e(f,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var p=t.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,r.default)(this.data,p,"01"),text:this.text}}}]),f})(i.default);return io.default=s,io}var Fn={},dd;function S0(){if(dd)return Fn;dd=1,Object.defineProperty(Fn,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})();Fn.checksum=s;var t=Tr(),n=i(t),r=Ve(),o=i(r);function i(d){return d&&d.__esModule?d:{default:d}}function l(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function c(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function u(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var a=(function(d){u(f,d);function f(p,m){l(this,f),p.search(/^[0-9]{11}$/)!==-1&&(p+=s(p));var h=c(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m));return h.displayValue=m.displayValue,m.fontSize>m.width*10?h.fontSize=m.width*10:h.fontSize=m.fontSize,h.guardHeight=m.height+h.fontSize/2+m.textMargin,h}return e(f,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==s(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var p="";return p+="101",p+=(0,n.default)(this.data.substr(0,6),"LLLLLL"),p+="01010",p+=(0,n.default)(this.data.substr(6,6),"RRRRRR"),p+="101",{data:p,text:this.text}}},{key:"guardedEncoding",value:function(){var p=[];return this.displayValue&&p.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),p.push({data:"101"+(0,n.default)(this.data[0],"L"),options:{height:this.guardHeight}}),p.push({data:(0,n.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),p.push({data:"01010",options:{height:this.guardHeight}}),p.push({data:(0,n.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),p.push({data:(0,n.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&p.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),p}}]),f})(o.default);function s(d){var f=0,p;for(p=1;p<11;p+=2)f+=parseInt(d[p]);for(p=0;p<11;p+=2)f+=parseInt(d[p])*3;return(10-f%10)%10}return Fn.default=a,Fn}var so={},fd;function GT(){if(fd)return so;fd=1,Object.defineProperty(so,"__esModule",{value:!0});var e=(function(){function m(h,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(h,b.key,b)}}return function(h,v,y){return v&&m(h.prototype,v),y&&m(h,y),h}})(),t=Tr(),n=l(t),r=Ve(),o=l(r),i=S0();function l(m){return m&&m.__esModule?m:{default:m}}function c(m,h){if(!(m instanceof h))throw new TypeError("Cannot call a class as a function")}function u(m,h){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:m}function a(m,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);m.prototype=Object.create(h&&h.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(m,h):m.__proto__=h)}var s=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],d=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],f=(function(m){a(h,m);function h(v,y){c(this,h);var b=u(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,v,y));if(b.isValid=!1,v.search(/^[0-9]{6}$/)!==-1)b.middleDigits=v,b.upcA=p(v,"0"),b.text=y.text||""+b.upcA[0]+v+b.upcA[b.upcA.length-1],b.isValid=!0;else if(v.search(/^[01][0-9]{7}$/)!==-1)if(b.middleDigits=v.substring(1,v.length-1),b.upcA=p(b.middleDigits,v[0]),b.upcA[b.upcA.length-1]===v[v.length-1])b.isValid=!0;else return u(b);else return u(b);return b.displayValue=y.displayValue,y.fontSize>y.width*10?b.fontSize=y.width*10:b.fontSize=y.fontSize,b.guardHeight=y.height+b.fontSize/2+y.textMargin,b}return e(h,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var v="";return v+="101",v+=this.encodeMiddleDigits(),v+="010101",{data:v,text:this.text}}},{key:"guardedEncoding",value:function(){var v=[];return this.displayValue&&v.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),v.push({data:"101",options:{height:this.guardHeight}}),v.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),v.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&v.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),v}},{key:"encodeMiddleDigits",value:function(){var v=this.upcA[0],y=this.upcA[this.upcA.length-1],b=d[parseInt(y)][parseInt(v)];return(0,n.default)(this.middleDigits,b)}}]),h})(o.default);function p(m,h){for(var v=parseInt(m[m.length-1]),y=s[v],b="",w=0,S=0;S<y.length;S++){var E=y[S];E==="X"?b+=m[w++]:b+=E}return b=""+h+b,""+b+(0,i.checksum)(b)}return so.default=f,so}var pd;function XT(){if(pd)return Te;pd=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.UPCE=Te.UPC=Te.EAN2=Te.EAN5=Te.EAN8=Te.EAN13=void 0;var e=zT(),t=f(e),n=HT(),r=f(n),o=UT(),i=f(o),l=WT(),c=f(l),u=S0(),a=f(u),s=GT(),d=f(s);function f(p){return p&&p.__esModule?p:{default:p}}return Te.EAN13=t.default,Te.EAN8=r.default,Te.EAN5=i.default,Te.EAN2=c.default,Te.UPC=a.default,Te.UPCE=d.default,Te}var Ft={},ao={},Vn={},hd;function KT(){return hd||(hd=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.START_BIN="1010",Vn.END_BIN="11101",Vn.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]),Vn}var md;function C0(){if(md)return ao;md=1,Object.defineProperty(ao,"__esModule",{value:!0});var e=(function(){function a(s,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(s,p.key,p)}}return function(s,d,f){return d&&a(s.prototype,d),f&&a(s,f),s}})(),t=KT(),n=Ve(),r=o(n);function o(a){return a&&a.__esModule?a:{default:a}}function i(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function l(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:a}function c(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}var u=(function(a){c(s,a);function s(){return i(this,s),l(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return e(s,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var d=this,f=this.data.match(/.{2}/g).map(function(p){return d.encodePair(p)}).join("");return{data:t.START_BIN+f+t.END_BIN,text:this.text}}},{key:"encodePair",value:function(d){var f=t.BINARIES[d[1]];return t.BINARIES[d[0]].split("").map(function(p,m){return(p==="1"?"111":"1")+(f[m]==="1"?"000":"0")}).join("")}}]),s})(r.default);return ao.default=u,ao}var lo={},vd;function YT(){if(vd)return lo;vd=1,Object.defineProperty(lo,"__esModule",{value:!0});var e=(function(){function a(s,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(s,p.key,p)}}return function(s,d,f){return d&&a(s.prototype,d),f&&a(s,f),s}})(),t=C0(),n=r(t);function r(a){return a&&a.__esModule?a:{default:a}}function o(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function i(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:a}function l(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}var c=function(a){var s=a.substr(0,13).split("").map(function(d){return parseInt(d,10)}).reduce(function(d,f,p){return d+f*(3-p%2*2)},0);return Math.ceil(s/10)*10-s},u=(function(a){l(s,a);function s(d,f){return o(this,s),d.search(/^[0-9]{13}$/)!==-1&&(d+=c(d)),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,d,f))}return e(s,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===c(this.data)}}]),s})(n.default);return lo.default=u,lo}var gd;function qT(){if(gd)return Ft;gd=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.ITF14=Ft.ITF=void 0;var e=C0(),t=o(e),n=YT(),r=o(n);function o(i){return i&&i.__esModule?i:{default:i}}return Ft.ITF=t.default,Ft.ITF14=r.default,Ft}var De={},uo={},yd;function jr(){if(yd)return uo;yd=1,Object.defineProperty(uo,"__esModule",{value:!0});var e=(function(){function a(s,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(s,p.key,p)}}return function(s,d,f){return d&&a(s.prototype,d),f&&a(s,f),s}})(),t=Ve(),n=r(t);function r(a){return a&&a.__esModule?a:{default:a}}function o(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function i(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:a}function l(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}var c=(function(a){l(s,a);function s(d,f){return o(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,d,f))}return e(s,[{key:"encode",value:function(){for(var d="110",f=0;f<this.data.length;f++){var p=parseInt(this.data[f]),m=p.toString(2);m=u(m,4-m.length);for(var h=0;h<m.length;h++)d+=m[h]=="0"?"100":"110"}return d+="1001",{data:d,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),s})(n.default);function u(a,s){for(var d=0;d<s;d++)a="0"+a;return a}return uo.default=c,uo}var co={},$n={},bd;function Ii(){if(bd)return $n;bd=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.mod10=e,$n.mod11=t;function e(n){for(var r=0,o=0;o<n.length;o++){var i=parseInt(n[o]);(o+n.length)%2===0?r+=i:r+=i*2%10+Math.floor(i*2/10)}return(10-r%10)%10}function t(n){for(var r=0,o=[2,3,4,5,6,7],i=0;i<n.length;i++){var l=parseInt(n[n.length-1-i]);r+=o[i%o.length]*l}return(11-r%11)%11}return $n}var wd;function ZT(){if(wd)return co;wd=1,Object.defineProperty(co,"__esModule",{value:!0});var e=jr(),t=r(e),n=Ii();function r(u){return u&&u.__esModule?u:{default:u}}function o(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function i(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function l(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var c=(function(u){l(a,u);function a(s,d){return o(this,a),i(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,s+(0,n.mod10)(s),d))}return a})(t.default);return co.default=c,co}var fo={},xd;function QT(){if(xd)return fo;xd=1,Object.defineProperty(fo,"__esModule",{value:!0});var e=jr(),t=r(e),n=Ii();function r(u){return u&&u.__esModule?u:{default:u}}function o(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function i(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function l(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var c=(function(u){l(a,u);function a(s,d){return o(this,a),i(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,s+(0,n.mod11)(s),d))}return a})(t.default);return fo.default=c,fo}var po={},Ed;function JT(){if(Ed)return po;Ed=1,Object.defineProperty(po,"__esModule",{value:!0});var e=jr(),t=r(e),n=Ii();function r(u){return u&&u.__esModule?u:{default:u}}function o(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function i(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function l(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var c=(function(u){l(a,u);function a(s,d){return o(this,a),s+=(0,n.mod10)(s),s+=(0,n.mod10)(s),i(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,s,d))}return a})(t.default);return po.default=c,po}var ho={},Sd;function e2(){if(Sd)return ho;Sd=1,Object.defineProperty(ho,"__esModule",{value:!0});var e=jr(),t=r(e),n=Ii();function r(u){return u&&u.__esModule?u:{default:u}}function o(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function i(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function l(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var c=(function(u){l(a,u);function a(s,d){return o(this,a),s+=(0,n.mod11)(s),s+=(0,n.mod10)(s),i(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,s,d))}return a})(t.default);return ho.default=c,ho}var Cd;function t2(){if(Cd)return De;Cd=1,Object.defineProperty(De,"__esModule",{value:!0}),De.MSI1110=De.MSI1010=De.MSI11=De.MSI10=De.MSI=void 0;var e=jr(),t=s(e),n=ZT(),r=s(n),o=QT(),i=s(o),l=JT(),c=s(l),u=e2(),a=s(u);function s(d){return d&&d.__esModule?d:{default:d}}return De.MSI=t.default,De.MSI10=r.default,De.MSI11=i.default,De.MSI1010=c.default,De.MSI1110=a.default,De}var Bn={},_d;function n2(){if(_d)return Bn;_d=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.pharmacode=void 0;var e=(function(){function u(a,s){for(var d=0;d<s.length;d++){var f=s[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,s,d){return s&&u(a.prototype,s),d&&u(a,d),a}})(),t=Ve(),n=r(t);function r(u){return u&&u.__esModule?u:{default:u}}function o(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function i(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function l(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var c=(function(u){l(a,u);function a(s,d){o(this,a);var f=i(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,s,d));return f.number=parseInt(s,10),f}return e(a,[{key:"encode",value:function(){for(var s=this.number,d="";!isNaN(s)&&s!=0;)s%2===0?(d="11100"+d,s=(s-2)/2):(d="100"+d,s=(s-1)/2);return d=d.slice(0,-2),{data:d,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),a})(n.default);return Bn.pharmacode=c,Bn}var zn={},Pd;function r2(){if(Pd)return zn;Pd=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.codabar=void 0;var e=(function(){function u(a,s){for(var d=0;d<s.length;d++){var f=s[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,s,d){return s&&u(a.prototype,s),d&&u(a,d),a}})(),t=Ve(),n=r(t);function r(u){return u&&u.__esModule?u:{default:u}}function o(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function i(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function l(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var c=(function(u){l(a,u);function a(s,d){o(this,a),s.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(s="A"+s+"A");var f=i(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,s.toUpperCase(),d));return f.text=f.options.text||f.text.replace(/[A-D]/g,""),f}return e(a,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var s=[],d=this.getEncodings(),f=0;f<this.data.length;f++)s.push(d[this.data.charAt(f)]),f!==this.data.length-1&&s.push("0");return{text:this.text,data:s.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),a})(n.default);return zn.codabar=c,zn}var Vt={},mo={},Hn={},Rd;function o2(){return Rd||(Rd=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.SYMBOLS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],Hn.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],Hn.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"\x07":["($)","G"],"\b":["($)","H"]," ":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"\x1B":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]}),Hn}var Od;function _0(){if(Od)return mo;Od=1,Object.defineProperty(mo,"__esModule",{value:!0});var e=(function(){function a(s,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(s,p.key,p)}}return function(s,d,f){return d&&a(s.prototype,d),f&&a(s,f),s}})(),t=o2(),n=Ve(),r=o(n);function o(a){return a&&a.__esModule?a:{default:a}}function i(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function l(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:a}function c(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}var u=(function(a){c(s,a);function s(d,f){return i(this,s),l(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,d,f))}return e(s,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var d=this.data.split("").flatMap(function(h){return t.MULTI_SYMBOLS[h]||h}),f=d.map(function(h){return s.getEncoding(h)}).join(""),p=s.checksum(d,20),m=s.checksum(d.concat(p),15);return{text:this.text,data:s.getEncoding("ÿ")+f+s.getEncoding(p)+s.getEncoding(m)+s.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(d){return t.BINARIES[s.symbolValue(d)]}},{key:"getSymbol",value:function(d){return t.SYMBOLS[d]}},{key:"symbolValue",value:function(d){return t.SYMBOLS.indexOf(d)}},{key:"checksum",value:function(d,f){var p=d.slice().reverse().reduce(function(m,h,v){var y=v%f+1;return m+s.symbolValue(h)*y},0);return s.getSymbol(p%47)}}]),s})(r.default);return mo.default=u,mo}var vo={},Td;function i2(){if(Td)return vo;Td=1,Object.defineProperty(vo,"__esModule",{value:!0});var e=(function(){function u(a,s){for(var d=0;d<s.length;d++){var f=s[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,s,d){return s&&u(a.prototype,s),d&&u(a,d),a}})(),t=_0(),n=r(t);function r(u){return u&&u.__esModule?u:{default:u}}function o(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function i(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function l(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var c=(function(u){l(a,u);function a(s,d){return o(this,a),i(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,s,d))}return e(a,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),a})(n.default);return vo.default=c,vo}var jd;function s2(){if(jd)return Vt;jd=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.CODE93FullASCII=Vt.CODE93=void 0;var e=_0(),t=o(e),n=i2(),r=o(n);function o(i){return i&&i.__esModule?i:{default:i}}return Vt.CODE93=t.default,Vt.CODE93FullASCII=r.default,Vt}var Un={},Md;function a2(){if(Md)return Un;Md=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.GenericBarcode=void 0;var e=(function(){function u(a,s){for(var d=0;d<s.length;d++){var f=s[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,s,d){return s&&u(a.prototype,s),d&&u(a,d),a}})(),t=Ve(),n=r(t);function r(u){return u&&u.__esModule?u:{default:u}}function o(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function i(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function l(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var c=(function(u){l(a,u);function a(s,d){return o(this,a),i(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,s,d))}return e(a,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),a})(n.default);return Un.GenericBarcode=c,Un}var Ad;function l2(){if(Ad)return Gr;Ad=1,Object.defineProperty(Gr,"__esModule",{value:!0});var e=LT(),t=BT(),n=XT(),r=qT(),o=t2(),i=n2(),l=r2(),c=s2(),u=a2();return Gr.default={CODE39:e.CODE39,CODE128:t.CODE128,CODE128A:t.CODE128A,CODE128B:t.CODE128B,CODE128C:t.CODE128C,EAN13:n.EAN13,EAN8:n.EAN8,EAN5:n.EAN5,EAN2:n.EAN2,UPC:n.UPC,UPCE:n.UPCE,ITF14:r.ITF14,ITF:r.ITF,MSI:o.MSI,MSI10:o.MSI10,MSI11:o.MSI11,MSI1010:o.MSI1010,MSI1110:o.MSI1110,pharmacode:i.pharmacode,codabar:l.codabar,CODE93:c.CODE93,CODE93FullASCII:c.CODE93FullASCII,GenericBarcode:u.GenericBarcode},Gr}var go={},kd;function Ni(){if(kd)return go;kd=1,Object.defineProperty(go,"__esModule",{value:!0});var e=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t};return go.default=function(t,n){return e({},t,n)},go}var yo={},Dd;function u2(){if(Dd)return yo;Dd=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=e;function e(t){var n=[];function r(o){if(Array.isArray(o))for(var i=0;i<o.length;i++)r(o[i]);else o.text=o.text||"",o.data=o.data||"",n.push(o)}return r(t),n}return yo}var bo={},Ld;function c2(){if(Ld)return bo;Ld=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=e;function e(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}return bo}var wo={},xo={},Eo={},Id;function P0(){if(Id)return Eo;Id=1,Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.default=e;function e(t){var n=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var r in n)n.hasOwnProperty(r)&&(r=n[r],typeof t[r]=="string"&&(t[r]=parseInt(t[r],10)));return typeof t.displayValue=="string"&&(t.displayValue=t.displayValue!="false"),t}return Eo}var So={},Nd;function R0(){if(Nd)return So;Nd=1,Object.defineProperty(So,"__esModule",{value:!0});var e={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};return So.default=e,So}var Fd;function d2(){if(Fd)return xo;Fd=1,Object.defineProperty(xo,"__esModule",{value:!0});var e=P0(),t=o(e),n=R0(),r=o(n);function o(l){return l&&l.__esModule?l:{default:l}}function i(l){var c={};for(var u in r.default)r.default.hasOwnProperty(u)&&(l.hasAttribute("jsbarcode-"+u.toLowerCase())&&(c[u]=l.getAttribute("jsbarcode-"+u.toLowerCase())),l.hasAttribute("data-"+u.toLowerCase())&&(c[u]=l.getAttribute("data-"+u.toLowerCase())));return c.value=l.getAttribute("jsbarcode-value")||l.getAttribute("data-value"),c=(0,t.default)(c),c}return xo.default=i,xo}var Co={},_o={},Le={},Vd;function O0(){if(Vd)return Le;Vd=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.getTotalWidthOfEncodings=Le.calculateEncodingAttributes=Le.getBarcodePadding=Le.getEncodingHeight=Le.getMaximumHeightOfEncodings=void 0;var e=Ni(),t=n(e);function n(a){return a&&a.__esModule?a:{default:a}}function r(a,s){return s.height+(s.displayValue&&a.text.length>0?s.fontSize+s.textMargin:0)+s.marginTop+s.marginBottom}function o(a,s,d){if(d.displayValue&&s<a){if(d.textAlign=="center")return Math.floor((a-s)/2);if(d.textAlign=="left")return 0;if(d.textAlign=="right")return Math.floor(a-s)}return 0}function i(a,s,d){for(var f=0;f<a.length;f++){var p=a[f],m=(0,t.default)(s,p.options),h;m.displayValue?h=u(p.text,m,d):h=0;var v=p.data.length*m.width;p.width=Math.ceil(Math.max(h,v)),p.height=r(p,m),p.barcodePadding=o(h,v,m)}}function l(a){for(var s=0,d=0;d<a.length;d++)s+=a[d].width;return s}function c(a){for(var s=0,d=0;d<a.length;d++)a[d].height>s&&(s=a[d].height);return s}function u(a,s,d){var f;if(d)f=d;else if(typeof document<"u")f=document.createElement("canvas").getContext("2d");else return 0;f.font=s.fontOptions+" "+s.fontSize+"px "+s.font;var p=f.measureText(a);if(!p)return 0;var m=p.width;return m}return Le.getMaximumHeightOfEncodings=c,Le.getEncodingHeight=r,Le.getBarcodePadding=o,Le.calculateEncodingAttributes=i,Le.getTotalWidthOfEncodings=l,Le}var $d;function f2(){if($d)return _o;$d=1,Object.defineProperty(_o,"__esModule",{value:!0});var e=(function(){function c(u,a){for(var s=0;s<a.length;s++){var d=a[s];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}return function(u,a,s){return a&&c(u.prototype,a),s&&c(u,s),u}})(),t=Ni(),n=o(t),r=O0();function o(c){return c&&c.__esModule?c:{default:c}}function i(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}var l=(function(){function c(u,a,s){i(this,c),this.canvas=u,this.encodings=a,this.options=s}return e(c,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var u=0;u<this.encodings.length;u++){var a=(0,n.default)(this.options,this.encodings[u].options);this.drawCanvasBarcode(a,this.encodings[u]),this.drawCanvasText(a,this.encodings[u]),this.moveCanvasDrawing(this.encodings[u])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var u=this.canvas.getContext("2d");u.save(),(0,r.calculateEncodingAttributes)(this.encodings,this.options,u);var a=(0,r.getTotalWidthOfEncodings)(this.encodings),s=(0,r.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=a+this.options.marginLeft+this.options.marginRight,this.canvas.height=s,u.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(u.fillStyle=this.options.background,u.fillRect(0,0,this.canvas.width,this.canvas.height)),u.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(u,a){var s=this.canvas.getContext("2d"),d=a.data,f;u.textPosition=="top"?f=u.marginTop+u.fontSize+u.textMargin:f=u.marginTop,s.fillStyle=u.lineColor;for(var p=0;p<d.length;p++){var m=p*u.width+a.barcodePadding;d[p]==="1"?s.fillRect(m,f,u.width,u.height):d[p]&&s.fillRect(m,f,u.width,u.height*d[p])}}},{key:"drawCanvasText",value:function(u,a){var s=this.canvas.getContext("2d"),d=u.fontOptions+" "+u.fontSize+"px "+u.font;if(u.displayValue){var f,p;u.textPosition=="top"?p=u.marginTop+u.fontSize-u.textMargin:p=u.height+u.textMargin+u.marginTop+u.fontSize,s.font=d,u.textAlign=="left"||a.barcodePadding>0?(f=0,s.textAlign="left"):u.textAlign=="right"?(f=a.width-1,s.textAlign="right"):(f=a.width/2,s.textAlign="center"),s.fillText(a.text,f,p)}}},{key:"moveCanvasDrawing",value:function(u){var a=this.canvas.getContext("2d");a.translate(u.width,0)}},{key:"restoreCanvas",value:function(){var u=this.canvas.getContext("2d");u.restore()}}]),c})();return _o.default=l,_o}var Po={},Bd;function p2(){if(Bd)return Po;Bd=1,Object.defineProperty(Po,"__esModule",{value:!0});var e=(function(){function u(a,s){for(var d=0;d<s.length;d++){var f=s[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,s,d){return s&&u(a.prototype,s),d&&u(a,d),a}})(),t=Ni(),n=o(t),r=O0();function o(u){return u&&u.__esModule?u:{default:u}}function i(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}var l="http://www.w3.org/2000/svg",c=(function(){function u(a,s,d){i(this,u),this.svg=a,this.encodings=s,this.options=d,this.document=d.xmlDocument||document}return e(u,[{key:"render",value:function(){var a=this.options.marginLeft;this.prepareSVG();for(var s=0;s<this.encodings.length;s++){var d=this.encodings[s],f=(0,n.default)(this.options,d.options),p=this.createGroup(a,f.marginTop,this.svg);this.setGroupOptions(p,f),this.drawSvgBarcode(p,f,d),this.drawSVGText(p,f,d),a+=d.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,r.calculateEncodingAttributes)(this.encodings,this.options);var a=(0,r.getTotalWidthOfEncodings)(this.encodings),s=(0,r.getMaximumHeightOfEncodings)(this.encodings),d=a+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(d,s),this.options.background&&this.drawRect(0,0,d,s,this.svg).setAttribute("fill",this.options.background)}},{key:"drawSvgBarcode",value:function(a,s,d){var f=d.data,p;s.textPosition=="top"?p=s.fontSize+s.textMargin:p=0;for(var m=0,h=0,v=0;v<f.length;v++)h=v*s.width+d.barcodePadding,f[v]==="1"?m++:m>0&&(this.drawRect(h-s.width*m,p,s.width*m,s.height,a),m=0);m>0&&this.drawRect(h-s.width*(m-1),p,s.width*m,s.height,a)}},{key:"drawSVGText",value:function(a,s,d){var f=this.document.createElementNS(l,"text");if(s.displayValue){var p,m;f.setAttribute("font-family",s.font),f.setAttribute("font-size",s.fontSize),s.fontOptions.includes("bold")&&f.setAttribute("font-weight","bold"),s.fontOptions.includes("italic")&&f.setAttribute("font-style","italic"),s.textPosition=="top"?m=s.fontSize-s.textMargin:m=s.height+s.textMargin+s.fontSize,s.textAlign=="left"||d.barcodePadding>0?(p=0,f.setAttribute("text-anchor","start")):s.textAlign=="right"?(p=d.width-1,f.setAttribute("text-anchor","end")):(p=d.width/2,f.setAttribute("text-anchor","middle")),f.setAttribute("x",p),f.setAttribute("y",m),f.appendChild(this.document.createTextNode(d.text)),a.appendChild(f)}}},{key:"setSvgAttributes",value:function(a,s){var d=this.svg;d.setAttribute("width",a+"px"),d.setAttribute("height",s+"px"),d.setAttribute("x","0px"),d.setAttribute("y","0px"),d.setAttribute("viewBox","0 0 "+a+" "+s),d.setAttribute("xmlns",l),d.setAttribute("version","1.1")}},{key:"createGroup",value:function(a,s,d){var f=this.document.createElementNS(l,"g");return f.setAttribute("transform","translate("+a+", "+s+")"),d.appendChild(f),f}},{key:"setGroupOptions",value:function(a,s){a.setAttribute("fill",s.lineColor)}},{key:"drawRect",value:function(a,s,d,f,p){var m=this.document.createElementNS(l,"rect");return m.setAttribute("x",a),m.setAttribute("y",s),m.setAttribute("width",d),m.setAttribute("height",f),p.appendChild(m),m}}]),u})();return Po.default=c,Po}var Ro={},zd;function h2(){if(zd)return Ro;zd=1,Object.defineProperty(Ro,"__esModule",{value:!0});var e=(function(){function r(o,i){for(var l=0;l<i.length;l++){var c=i[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,c.key,c)}}return function(o,i,l){return i&&r(o.prototype,i),l&&r(o,l),o}})();function t(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}var n=(function(){function r(o,i,l){t(this,r),this.object=o,this.encodings=i,this.options=l}return e(r,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),r})();return Ro.default=n,Ro}var Hd;function m2(){if(Hd)return Co;Hd=1,Object.defineProperty(Co,"__esModule",{value:!0});var e=f2(),t=l(e),n=p2(),r=l(n),o=h2(),i=l(o);function l(c){return c&&c.__esModule?c:{default:c}}return Co.default={CanvasRenderer:t.default,SVGRenderer:r.default,ObjectRenderer:i.default},Co}var tn={},Ud;function T0(){if(Ud)return tn;Ud=1,Object.defineProperty(tn,"__esModule",{value:!0});function e(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}function t(l,c){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:l}function n(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(l,c):l.__proto__=c)}var r=(function(l){n(c,l);function c(u,a){e(this,c);var s=t(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return s.name="InvalidInputException",s.symbology=u,s.input=a,s.message='"'+s.input+'" is not a valid input for '+s.symbology,s}return c})(Error),o=(function(l){n(c,l);function c(){e(this,c);var u=t(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return u.name="InvalidElementException",u.message="Not supported type to render on",u}return c})(Error),i=(function(l){n(c,l);function c(){e(this,c);var u=t(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return u.name="NoElementException",u.message="No element to render on.",u}return c})(Error);return tn.InvalidInputException=r,tn.InvalidElementException=o,tn.NoElementException=i,tn}var Wd;function v2(){if(Wd)return wo;Wd=1,Object.defineProperty(wo,"__esModule",{value:!0});var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t=d2(),n=l(t),r=m2(),o=l(r),i=T0();function l(s){return s&&s.__esModule?s:{default:s}}function c(s){if(typeof s=="string")return u(s);if(Array.isArray(s)){for(var d=[],f=0;f<s.length;f++)d.push(c(s[f]));return d}else{if(typeof HTMLCanvasElement<"u"&&s instanceof HTMLImageElement)return a(s);if(s&&s.nodeName&&s.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&s instanceof SVGElement)return{element:s,options:(0,n.default)(s),renderer:o.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&s instanceof HTMLCanvasElement)return{element:s,options:(0,n.default)(s),renderer:o.default.CanvasRenderer};if(s&&s.getContext)return{element:s,renderer:o.default.CanvasRenderer};if(s&&(typeof s>"u"?"undefined":e(s))==="object"&&!s.nodeName)return{element:s,renderer:o.default.ObjectRenderer};throw new i.InvalidElementException}}function u(s){var d=document.querySelectorAll(s);if(d.length!==0){for(var f=[],p=0;p<d.length;p++)f.push(c(d[p]));return f}}function a(s){var d=document.createElement("canvas");return{element:d,options:(0,n.default)(s),renderer:o.default.CanvasRenderer,afterRender:function(){s.setAttribute("src",d.toDataURL())}}}return wo.default=c,wo}var Oo={},Gd;function g2(){if(Gd)return Oo;Gd=1,Object.defineProperty(Oo,"__esModule",{value:!0});var e=(function(){function r(o,i){for(var l=0;l<i.length;l++){var c=i[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,c.key,c)}}return function(o,i,l){return i&&r(o.prototype,i),l&&r(o,l),o}})();function t(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}var n=(function(){function r(o){t(this,r),this.api=o}return e(r,[{key:"handleCatch",value:function(o){if(o.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw o.message;else throw o;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(o){try{var i=o.apply(void 0,arguments);return this.api._options.valid(!0),i}catch(l){return this.handleCatch(l),this.api}}}]),r})();return Oo.default=n,Oo}var gs,Xd;function y2(){if(Xd)return gs;Xd=1;var e=l2(),t=y(e),n=Ni(),r=y(n),o=u2(),i=y(o),l=c2(),c=y(l),u=v2(),a=y(u),s=P0(),d=y(s),f=g2(),p=y(f),m=T0(),h=R0(),v=y(h);function y(T){return T&&T.__esModule?T:{default:T}}var b=function(){},w=function(T,_,k){var P=new b;if(typeof T>"u")throw Error("No element to render on was provided.");return P._renderProperties=(0,a.default)(T),P._encodings=[],P._options=v.default,P._errorHandler=new p.default(P),typeof _<"u"&&(k=k||{},k.format||(k.format=j()),P.options(k)[k.format](_,k).render()),P};w.getModule=function(T){return t.default[T]};for(var S in t.default)t.default.hasOwnProperty(S)&&E(t.default,S);function E(T,_){b.prototype[_]=b.prototype[_.toUpperCase()]=b.prototype[_.toLowerCase()]=function(k,P){var $=this;return $._errorHandler.wrapBarcodeCall(function(){P.text=typeof P.text>"u"?void 0:""+P.text;var F=(0,r.default)($._options,P);F=(0,d.default)(F);var U=T[_],B=A(k,U,F);return $._encodings.push(B),$})}}function A(T,_,k){T=""+T;var P=new _(T,k);if(!P.valid())throw new m.InvalidInputException(P.constructor.name,T);var $=P.encode();$=(0,i.default)($);for(var F=0;F<$.length;F++)$[F].options=(0,r.default)(k,$[F].options);return $}function j(){return t.default.CODE128?"CODE128":Object.keys(t.default)[0]}b.prototype.options=function(T){return this._options=(0,r.default)(this._options,T),this},b.prototype.blank=function(T){var _=new Array(T+1).join("0");return this._encodings.push({data:_}),this},b.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var T;for(var _ in this._renderProperties){T=this._renderProperties[_];var k=(0,r.default)(this._options,T.options);k.format=="auto"&&(k.format=j()),this._errorHandler.wrapBarcodeCall(function(){var P=k.value,$=t.default[k.format.toUpperCase()],F=A(P,$,k);O(T,F,k)})}}},b.prototype.render=function(){if(!this._renderProperties)throw new m.NoElementException;if(Array.isArray(this._renderProperties))for(var T=0;T<this._renderProperties.length;T++)O(this._renderProperties[T],this._encodings,this._options);else O(this._renderProperties,this._encodings,this._options);return this},b.prototype._defaults=v.default;function O(T,_,k){_=(0,i.default)(_);for(var P=0;P<_.length;P++)_[P].options=(0,r.default)(k,_[P].options),(0,c.default)(_[P].options);(0,c.default)(k);var $=T.renderer,F=new $(T.element,_,k);F.render(),T.afterRender&&T.afterRender()}return typeof window<"u"&&(window.JsBarcode=w),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(T,_){var k=[];return jQuery(this).each(function(){k.push(this)}),w(k,T,_)}),gs=w,gs}var To={exports:{}},ys={exports:{}},ue={};/** @license React v16.13.1
116
+ */var zT={L:fn.QrCode.Ecc.LOW,M:fn.QrCode.Ecc.MEDIUM,Q:fn.QrCode.Ecc.QUARTILE,H:fn.QrCode.Ecc.HIGH},Cg=128,_g="L",Pg="#FFFFFF",Rg="#000000",Og=!1,Tg=1,UT=4,HT=0,GT=.1;function jg(e,t=0){const n=[];return e.forEach(function(r,o){let i=null;r.forEach(function(l,c){if(!l&&i!==null){n.push(`M${i+t} ${o+t}h${c-i}v1H${i+t}z`),i=null;return}if(c===r.length-1){if(!l)return;i===null?n.push(`M${c+t},${o+t} h1v1H${c+t}z`):n.push(`M${i+t},${o+t} h${c+1-i}v1H${i+t}z`);return}l&&i===null&&(i=c)})}),n.join("")}function Mg(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((o,i)=>i<t.x||i>=t.x+t.w?o:!1))}function WT(e,t,n,r){if(r==null)return null;const o=e.length+n*2,i=Math.floor(t*GT),l=o/t,c=(r.width||i)*l,u=(r.height||i)*l,s=r.x==null?e.length/2-c/2:r.x*l,a=r.y==null?e.length/2-u/2:r.y*l,d=r.opacity==null?1:r.opacity;let f=null;if(r.excavate){let m=Math.floor(s),h=Math.floor(a),v=Math.ceil(c+s-m),y=Math.ceil(u+a-h);f={x:m,y:h,w:v,h:y}}const p=r.crossOrigin;return{x:s,y:a,h:u,w:c,excavation:f,opacity:d,crossOrigin:p}}function XT(e,t){return t!=null?Math.max(Math.floor(t),0):e?UT:HT}function Ag({value:e,level:t,minVersion:n,includeMargin:r,marginSize:o,imageSettings:i,size:l,boostLevel:c}){let u=_.useMemo(()=>{const p=(Array.isArray(e)?e:[e]).reduce((m,h)=>(m.push(...fn.QrSegment.makeSegments(h)),m),[]);return fn.QrCode.encodeSegments(p,zT[t],n,void 0,void 0,c)},[e,t,n,c]);const{cells:s,margin:a,numCells:d,calculatedImageSettings:f}=_.useMemo(()=>{let p=u.getModules();const m=XT(r,o),h=p.length+m*2,v=WT(p,l,m,i);return{cells:p,margin:m,numCells:h,calculatedImageSettings:v}},[u,l,i,r,o]);return{qrcode:u,margin:a,cells:s,numCells:d,calculatedImageSettings:f}}var KT=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),YT=_.forwardRef(function(e,t){const n=e,{value:r,size:o=Cg,level:i=_g,bgColor:l=Pg,fgColor:c=Rg,includeMargin:u=Og,minVersion:s=Tg,boostLevel:a,marginSize:d,imageSettings:f}=n,p=ys(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:m}=p,h=ys(p,["style"]),v=f==null?void 0:f.src,y=_.useRef(null),b=_.useRef(null),x=_.useCallback(R=>{y.current=R,typeof t=="function"?t(R):t&&(t.current=R)},[t]),[S,E]=_.useState(!1),{margin:A,cells:j,numCells:O,calculatedImageSettings:T}=Ag({value:r,level:i,minVersion:s,boostLevel:a,includeMargin:u,marginSize:d,imageSettings:f,size:o});_.useEffect(()=>{if(y.current!=null){const R=y.current,$=R.getContext("2d");if(!$)return;let F=j;const H=b.current,B=T!=null&&H!==null&&H.complete&&H.naturalHeight!==0&&H.naturalWidth!==0;B&&T.excavation!=null&&(F=Mg(j,T.excavation));const X=window.devicePixelRatio||1;R.height=R.width=o*X;const G=o/O*X;$.scale(G,G),$.fillStyle=l,$.fillRect(0,0,O,O),$.fillStyle=c,KT?$.fill(new Path2D(jg(F,A))):j.forEach(function(L,M){L.forEach(function(D,ee){D&&$.fillRect(ee+A,M+A,1,1)})}),T&&($.globalAlpha=T.opacity),B&&$.drawImage(H,T.x+A,T.y+A,T.w,T.h)}}),_.useEffect(()=>{E(!1)},[v]);const P=gs({height:o,width:o},m);let k=null;return v!=null&&(k=_.createElement("img",{src:v,key:v,style:{display:"none"},onLoad:()=>{E(!0)},ref:b,crossOrigin:T==null?void 0:T.crossOrigin})),_.createElement(_.Fragment,null,_.createElement("canvas",gs({style:P,height:o,width:o,ref:x,role:"img"},h)),k)});YT.displayName="QRCodeCanvas";var qT=_.forwardRef(function(e,t){const n=e,{value:r,size:o=Cg,level:i=_g,bgColor:l=Pg,fgColor:c=Rg,includeMargin:u=Og,minVersion:s=Tg,boostLevel:a,title:d,marginSize:f,imageSettings:p}=n,m=ys(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:h,cells:v,numCells:y,calculatedImageSettings:b}=Ag({value:r,level:i,minVersion:s,boostLevel:a,includeMargin:u,marginSize:f,imageSettings:p,size:o});let x=v,S=null;p!=null&&b!=null&&(b.excavation!=null&&(x=Mg(v,b.excavation)),S=_.createElement("image",{href:p.src,height:b.h,width:b.w,x:b.x+h,y:b.y+h,preserveAspectRatio:"none",opacity:b.opacity,crossOrigin:b.crossOrigin}));const E=jg(x,h);return _.createElement("svg",gs({height:o,width:o,viewBox:`0 0 ${y} ${y}`,ref:t,role:"img"},m),!!d&&_.createElement("title",null,d),_.createElement("path",{fill:l,d:`M0,0 h${y}v${y}H0z`,shapeRendering:"crispEdges"}),_.createElement("path",{fill:c,d:E,shapeRendering:"crispEdges"}),S)});qT.displayName="QRCodeSVG";var Xr={},Fn={},Kr={},Zc;function $e(){if(Zc)return Kr;Zc=1,Object.defineProperty(Kr,"__esModule",{value:!0});function e(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}var t=function n(r,o){e(this,n),this.data=r,this.text=o.text||r,this.options=o};return Kr.default=t,Kr}var Qc;function ZT(){if(Qc)return Fn;Qc=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.CODE39=void 0;var e=(function(){function h(v,y){for(var b=0;b<y.length;b++){var x=y[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}return function(v,y,b){return y&&h(v.prototype,y),b&&h(v,b),v}})(),t=$e(),n=r(t);function r(h){return h&&h.__esModule?h:{default:h}}function o(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}function i(h,v){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:h}function l(h,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);h.prototype=Object.create(v&&v.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(h,v):h.__proto__=v)}var c=(function(h){l(v,h);function v(y,b){return o(this,v),y=y.toUpperCase(),b.mod43&&(y+=f(m(y))),i(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,y,b))}return e(v,[{key:"encode",value:function(){for(var y=a("*"),b=0;b<this.data.length;b++)y+=a(this.data[b])+"0";return y+=a("*"),{data:y,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),v})(n.default),u=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],s=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function a(h){return d(p(h))}function d(h){return s[h].toString(2)}function f(h){return u[h]}function p(h){return u.indexOf(h)}function m(h){for(var v=0,y=0;y<h.length;y++)v+=p(h[y]);return v=v%43,v}return Fn.CODE39=c,Fn}var Xe={},Yr={},qr={},be={},Jc;function Or(){if(Jc)return be;Jc=1,Object.defineProperty(be,"__esModule",{value:!0});var e;function t(u,s,a){return s in u?Object.defineProperty(u,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):u[s]=a,u}var n=be.SET_A=0,r=be.SET_B=1,o=be.SET_C=2;be.SHIFT=98;var i=be.START_A=103,l=be.START_B=104,c=be.START_C=105;return be.MODULO=103,be.STOP=106,be.FNC1=207,be.SET_BY_CODE=(e={},t(e,i,n),t(e,l,r),t(e,c,o),e),be.SWAP={101:n,100:r,99:o},be.A_START_CHAR="Ð",be.B_START_CHAR="Ñ",be.C_START_CHAR="Ò",be.A_CHARS="[\0-_È-Ï]",be.B_CHARS="[ -È-Ï]",be.C_CHARS="(Ï*[0-9]{2}Ï*)",be.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],be}var ed;function Vi(){if(ed)return qr;ed=1,Object.defineProperty(qr,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=$e(),n=o(t),r=Or();function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function c(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=(function(s){c(a,s);function a(d,f){i(this,a);var p=l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,d.substring(1),f));return p.bytes=d.split("").map(function(m){return m.charCodeAt(0)}),p}return e(a,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var d=this.bytes,f=d.shift()-105,p=r.SET_BY_CODE[f];if(p===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&d.unshift(r.FNC1);var m=a.next(d,1,p);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:a.getBar(f)+m.result+a.getBar((m.checksum+f)%r.MODULO)+a.getBar(r.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var d=this.options.ean128||!1;return typeof d=="string"&&(d=d.toLowerCase()==="true"),d}}],[{key:"getBar",value:function(d){return r.BARS[d]?r.BARS[d].toString():""}},{key:"correctIndex",value:function(d,f){if(f===r.SET_A){var p=d.shift();return p<32?p+64:p-32}else return f===r.SET_B?d.shift()-32:(d.shift()-48)*10+d.shift()-48}},{key:"next",value:function(d,f,p){if(!d.length)return{result:"",checksum:0};var m=void 0,h=void 0;if(d[0]>=200){h=d.shift()-105;var v=r.SWAP[h];v!==void 0?m=a.next(d,f+1,v):((p===r.SET_A||p===r.SET_B)&&h===r.SHIFT&&(d[0]=p===r.SET_A?d[0]>95?d[0]-96:d[0]:d[0]<32?d[0]+96:d[0]),m=a.next(d,f+1,p))}else h=a.correctIndex(d,p),m=a.next(d,f+1,p);var y=a.getBar(h),b=h*f;return{result:y+m.result,checksum:b+m.checksum}}}]),a})(n.default);return qr.default=u,qr}var Zr={},td;function QT(){if(td)return Zr;td=1,Object.defineProperty(Zr,"__esModule",{value:!0});var e=Or(),t=function(l){return l.match(new RegExp("^"+e.A_CHARS+"*"))[0].length},n=function(l){return l.match(new RegExp("^"+e.B_CHARS+"*"))[0].length},r=function(l){return l.match(new RegExp("^"+e.C_CHARS+"*"))[0]};function o(l,c){var u=c?e.A_CHARS:e.B_CHARS,s=l.match(new RegExp("^("+u+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(s)return s[1]+"Ì"+i(l.substring(s[1].length));var a=l.match(new RegExp("^"+u+"+"))[0];return a.length===l.length?l:a+String.fromCharCode(c?205:206)+o(l.substring(a.length),!c)}function i(l){var c=r(l),u=c.length;if(u===l.length)return l;l=l.substring(u);var s=t(l)>=n(l);return c+String.fromCharCode(s?206:205)+o(l,s)}return Zr.default=function(l){var c=void 0,u=r(l).length;if(u>=2)c=e.C_START_CHAR+i(l);else{var s=t(l)>n(l);c=(s?e.A_START_CHAR:e.B_START_CHAR)+o(l,s)}return c.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(a,d){return"Ë"+d})},Zr}var nd;function JT(){if(nd)return Yr;nd=1,Object.defineProperty(Yr,"__esModule",{value:!0});var e=Vi(),t=o(e),n=QT(),r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function c(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=(function(s){c(a,s);function a(d,f){if(i(this,a),/^[\x00-\x7F\xC8-\xD3]+$/.test(d))var p=l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,(0,r.default)(d),f));else var p=l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,d,f));return l(p)}return a})(t.default);return Yr.default=u,Yr}var Qr={},rd;function e2(){if(rd)return Qr;rd=1,Object.defineProperty(Qr,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=Vi(),n=o(t),r=Or();function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function c(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=(function(s){c(a,s);function a(d,f){return i(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,r.A_START_CHAR+d,f))}return e(a,[{key:"valid",value:function(){return new RegExp("^"+r.A_CHARS+"+$").test(this.data)}}]),a})(n.default);return Qr.default=u,Qr}var Jr={},od;function t2(){if(od)return Jr;od=1,Object.defineProperty(Jr,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=Vi(),n=o(t),r=Or();function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function c(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=(function(s){c(a,s);function a(d,f){return i(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,r.B_START_CHAR+d,f))}return e(a,[{key:"valid",value:function(){return new RegExp("^"+r.B_CHARS+"+$").test(this.data)}}]),a})(n.default);return Jr.default=u,Jr}var eo={},id;function n2(){if(id)return eo;id=1,Object.defineProperty(eo,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=Vi(),n=o(t),r=Or();function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function c(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=(function(s){c(a,s);function a(d,f){return i(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,r.C_START_CHAR+d,f))}return e(a,[{key:"valid",value:function(){return new RegExp("^"+r.C_CHARS+"+$").test(this.data)}}]),a})(n.default);return eo.default=u,eo}var ad;function r2(){if(ad)return Xe;ad=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.CODE128C=Xe.CODE128B=Xe.CODE128A=Xe.CODE128=void 0;var e=JT(),t=u(e),n=e2(),r=u(n),o=t2(),i=u(o),l=n2(),c=u(l);function u(s){return s&&s.__esModule?s:{default:s}}return Xe.CODE128=t.default,Xe.CODE128A=r.default,Xe.CODE128B=i.default,Xe.CODE128C=c.default,Xe}var Te={},to={},wt={},sd;function Tr(){return sd||(sd=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.SIDE_BIN="101",wt.MIDDLE_BIN="01010",wt.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},wt.EAN2_STRUCTURE=["LL","LG","GL","GG"],wt.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],wt.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]),wt}var no={},ro={},ld;function jr(){if(ld)return ro;ld=1,Object.defineProperty(ro,"__esModule",{value:!0});var e=Tr(),t=function(n,r,o){var i=n.split("").map(function(c,u){return e.BINARIES[r[u]]}).map(function(c,u){return c?c[n[u]]:""});if(o){var l=n.length-1;i=i.map(function(c,u){return u<l?c+o:c})}return i.join("")};return ro.default=t,ro}var ud;function kg(){if(ud)return no;ud=1,Object.defineProperty(no,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})(),t=Tr(),n=jr(),r=l(n),o=$e(),i=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function c(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function u(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function s(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var a=(function(d){s(f,d);function f(p,m){c(this,f);var h=u(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m));return h.fontSize=!m.flat&&m.fontSize>m.width*10?m.width*10:m.fontSize,h.guardHeight=m.height+h.fontSize/2+m.textMargin,h}return e(f,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(p,m){return this.text.substr(p,m)}},{key:"leftEncode",value:function(p,m){return(0,r.default)(p,m)}},{key:"rightText",value:function(p,m){return this.text.substr(p,m)}},{key:"rightEncode",value:function(p,m){return(0,r.default)(p,m)}},{key:"encodeGuarded",value:function(){var p={fontSize:this.fontSize},m={height:this.guardHeight};return[{data:t.SIDE_BIN,options:m},{data:this.leftEncode(),text:this.leftText(),options:p},{data:t.MIDDLE_BIN,options:m},{data:this.rightEncode(),text:this.rightText(),options:p},{data:t.SIDE_BIN,options:m}]}},{key:"encodeFlat",value:function(){var p=[t.SIDE_BIN,this.leftEncode(),t.MIDDLE_BIN,this.rightEncode(),t.SIDE_BIN];return{data:p.join(""),text:this.text}}}]),f})(i.default);return no.default=a,no}var cd;function o2(){if(cd)return to;cd=1,Object.defineProperty(to,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})(),t=function d(f,p,m){f===null&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,p);if(h===void 0){var v=Object.getPrototypeOf(f);return v===null?void 0:d(v,p,m)}else{if("value"in h)return h.value;var y=h.get;return y===void 0?void 0:y.call(m)}},n=Tr(),r=kg(),o=i(r);function i(d){return d&&d.__esModule?d:{default:d}}function l(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function c(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function u(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var s=function(d){var f=d.substr(0,12).split("").map(function(p){return+p}).reduce(function(p,m,h){return h%2?p+m*3:p+m},0);return(10-f%10)%10},a=(function(d){u(f,d);function f(p,m){l(this,f),p.search(/^[0-9]{12}$/)!==-1&&(p+=s(p));var h=c(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m));return h.lastChar=m.lastChar,h}return e(f,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===s(this.data)}},{key:"leftText",value:function(){return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var p=this.data.substr(1,6),m=n.EAN13_STRUCTURE[this.data[0]];return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"leftEncode",this).call(this,p,m)}},{key:"rightText",value:function(){return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var p=this.data.substr(7,6);return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"rightEncode",this).call(this,p,"RRRRRR")}},{key:"encodeGuarded",value:function(){var p=t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(p.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(p.push({data:"00"}),p.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),p}}]),f})(o.default);return to.default=a,to}var oo={},dd;function i2(){if(dd)return oo;dd=1,Object.defineProperty(oo,"__esModule",{value:!0});var e=(function(){function a(d,f){for(var p=0;p<f.length;p++){var m=f[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}return function(d,f,p){return f&&a(d.prototype,f),p&&a(d,p),d}})(),t=function a(d,f,p){d===null&&(d=Function.prototype);var m=Object.getOwnPropertyDescriptor(d,f);if(m===void 0){var h=Object.getPrototypeOf(d);return h===null?void 0:a(h,f,p)}else{if("value"in m)return m.value;var v=m.get;return v===void 0?void 0:v.call(p)}},n=kg(),r=o(n);function o(a){return a&&a.__esModule?a:{default:a}}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function l(a,d){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:a}function c(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(a,d):a.__proto__=d)}var u=function(a){var d=a.substr(0,7).split("").map(function(f){return+f}).reduce(function(f,p,m){return m%2?f+p:f+p*3},0);return(10-d%10)%10},s=(function(a){c(d,a);function d(f,p){return i(this,d),f.search(/^[0-9]{7}$/)!==-1&&(f+=u(f)),l(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,f,p))}return e(d,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===u(this.data)}},{key:"leftText",value:function(){return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var f=this.data.substr(0,4);return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"leftEncode",this).call(this,f,"LLLL")}},{key:"rightText",value:function(){return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var f=this.data.substr(4,4);return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"rightEncode",this).call(this,f,"RRRR")}}]),d})(r.default);return oo.default=s,oo}var io={},fd;function a2(){if(fd)return io;fd=1,Object.defineProperty(io,"__esModule",{value:!0});var e=(function(){function f(p,m){for(var h=0;h<m.length;h++){var v=m[h];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}return function(p,m,h){return m&&f(p.prototype,m),h&&f(p,h),p}})(),t=Tr(),n=jr(),r=l(n),o=$e(),i=l(o);function l(f){return f&&f.__esModule?f:{default:f}}function c(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function u(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function s(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var a=function(f){var p=f.split("").map(function(m){return+m}).reduce(function(m,h,v){return v%2?m+h*9:m+h*3},0);return p%10},d=(function(f){s(p,f);function p(m,h){return c(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,m,h))}return e(p,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var m=t.EAN5_STRUCTURE[a(this.data)];return{data:"1011"+(0,r.default)(this.data,m,"01"),text:this.text}}}]),p})(i.default);return io.default=d,io}var ao={},pd;function s2(){if(pd)return ao;pd=1,Object.defineProperty(ao,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})(),t=Tr(),n=jr(),r=l(n),o=$e(),i=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function c(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function u(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function s(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var a=(function(d){s(f,d);function f(p,m){return c(this,f),u(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m))}return e(f,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var p=t.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,r.default)(this.data,p,"01"),text:this.text}}}]),f})(i.default);return ao.default=a,ao}var Vn={},hd;function Dg(){if(hd)return Vn;hd=1,Object.defineProperty(Vn,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})();Vn.checksum=a;var t=jr(),n=i(t),r=$e(),o=i(r);function i(d){return d&&d.__esModule?d:{default:d}}function l(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function c(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function u(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var s=(function(d){u(f,d);function f(p,m){l(this,f),p.search(/^[0-9]{11}$/)!==-1&&(p+=a(p));var h=c(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m));return h.displayValue=m.displayValue,m.fontSize>m.width*10?h.fontSize=m.width*10:h.fontSize=m.fontSize,h.guardHeight=m.height+h.fontSize/2+m.textMargin,h}return e(f,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==a(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var p="";return p+="101",p+=(0,n.default)(this.data.substr(0,6),"LLLLLL"),p+="01010",p+=(0,n.default)(this.data.substr(6,6),"RRRRRR"),p+="101",{data:p,text:this.text}}},{key:"guardedEncoding",value:function(){var p=[];return this.displayValue&&p.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),p.push({data:"101"+(0,n.default)(this.data[0],"L"),options:{height:this.guardHeight}}),p.push({data:(0,n.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),p.push({data:"01010",options:{height:this.guardHeight}}),p.push({data:(0,n.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),p.push({data:(0,n.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&p.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),p}}]),f})(o.default);function a(d){var f=0,p;for(p=1;p<11;p+=2)f+=parseInt(d[p]);for(p=0;p<11;p+=2)f+=parseInt(d[p])*3;return(10-f%10)%10}return Vn.default=s,Vn}var so={},md;function l2(){if(md)return so;md=1,Object.defineProperty(so,"__esModule",{value:!0});var e=(function(){function m(h,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(h,b.key,b)}}return function(h,v,y){return v&&m(h.prototype,v),y&&m(h,y),h}})(),t=jr(),n=l(t),r=$e(),o=l(r),i=Dg();function l(m){return m&&m.__esModule?m:{default:m}}function c(m,h){if(!(m instanceof h))throw new TypeError("Cannot call a class as a function")}function u(m,h){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:m}function s(m,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);m.prototype=Object.create(h&&h.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(m,h):m.__proto__=h)}var a=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],d=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],f=(function(m){s(h,m);function h(v,y){c(this,h);var b=u(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,v,y));if(b.isValid=!1,v.search(/^[0-9]{6}$/)!==-1)b.middleDigits=v,b.upcA=p(v,"0"),b.text=y.text||""+b.upcA[0]+v+b.upcA[b.upcA.length-1],b.isValid=!0;else if(v.search(/^[01][0-9]{7}$/)!==-1)if(b.middleDigits=v.substring(1,v.length-1),b.upcA=p(b.middleDigits,v[0]),b.upcA[b.upcA.length-1]===v[v.length-1])b.isValid=!0;else return u(b);else return u(b);return b.displayValue=y.displayValue,y.fontSize>y.width*10?b.fontSize=y.width*10:b.fontSize=y.fontSize,b.guardHeight=y.height+b.fontSize/2+y.textMargin,b}return e(h,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var v="";return v+="101",v+=this.encodeMiddleDigits(),v+="010101",{data:v,text:this.text}}},{key:"guardedEncoding",value:function(){var v=[];return this.displayValue&&v.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),v.push({data:"101",options:{height:this.guardHeight}}),v.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),v.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&v.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),v}},{key:"encodeMiddleDigits",value:function(){var v=this.upcA[0],y=this.upcA[this.upcA.length-1],b=d[parseInt(y)][parseInt(v)];return(0,n.default)(this.middleDigits,b)}}]),h})(o.default);function p(m,h){for(var v=parseInt(m[m.length-1]),y=a[v],b="",x=0,S=0;S<y.length;S++){var E=y[S];E==="X"?b+=m[x++]:b+=E}return b=""+h+b,""+b+(0,i.checksum)(b)}return so.default=f,so}var vd;function u2(){if(vd)return Te;vd=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.UPCE=Te.UPC=Te.EAN2=Te.EAN5=Te.EAN8=Te.EAN13=void 0;var e=o2(),t=f(e),n=i2(),r=f(n),o=a2(),i=f(o),l=s2(),c=f(l),u=Dg(),s=f(u),a=l2(),d=f(a);function f(p){return p&&p.__esModule?p:{default:p}}return Te.EAN13=t.default,Te.EAN8=r.default,Te.EAN5=i.default,Te.EAN2=c.default,Te.UPC=s.default,Te.UPCE=d.default,Te}var $t={},lo={},$n={},gd;function c2(){return gd||(gd=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.START_BIN="1010",$n.END_BIN="11101",$n.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]),$n}var yd;function Lg(){if(yd)return lo;yd=1,Object.defineProperty(lo,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=c2(),n=$e(),r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function c(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=(function(s){c(a,s);function a(){return i(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return e(a,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var d=this,f=this.data.match(/.{2}/g).map(function(p){return d.encodePair(p)}).join("");return{data:t.START_BIN+f+t.END_BIN,text:this.text}}},{key:"encodePair",value:function(d){var f=t.BINARIES[d[1]];return t.BINARIES[d[0]].split("").map(function(p,m){return(p==="1"?"111":"1")+(f[m]==="1"?"000":"0")}).join("")}}]),a})(r.default);return lo.default=u,lo}var uo={},bd;function d2(){if(bd)return uo;bd=1,Object.defineProperty(uo,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=Lg(),n=r(t);function r(s){return s&&s.__esModule?s:{default:s}}function o(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function i(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function l(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var c=function(s){var a=s.substr(0,13).split("").map(function(d){return parseInt(d,10)}).reduce(function(d,f,p){return d+f*(3-p%2*2)},0);return Math.ceil(a/10)*10-a},u=(function(s){l(a,s);function a(d,f){return o(this,a),d.search(/^[0-9]{13}$/)!==-1&&(d+=c(d)),i(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,d,f))}return e(a,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===c(this.data)}}]),a})(n.default);return uo.default=u,uo}var wd;function f2(){if(wd)return $t;wd=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.ITF14=$t.ITF=void 0;var e=Lg(),t=o(e),n=d2(),r=o(n);function o(i){return i&&i.__esModule?i:{default:i}}return $t.ITF=t.default,$t.ITF14=r.default,$t}var De={},co={},xd;function Mr(){if(xd)return co;xd=1,Object.defineProperty(co,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=$e(),n=r(t);function r(s){return s&&s.__esModule?s:{default:s}}function o(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function i(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function l(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var c=(function(s){l(a,s);function a(d,f){return o(this,a),i(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,d,f))}return e(a,[{key:"encode",value:function(){for(var d="110",f=0;f<this.data.length;f++){var p=parseInt(this.data[f]),m=p.toString(2);m=u(m,4-m.length);for(var h=0;h<m.length;h++)d+=m[h]=="0"?"100":"110"}return d+="1001",{data:d,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),a})(n.default);function u(s,a){for(var d=0;d<a;d++)s="0"+s;return s}return co.default=c,co}var fo={},Bn={},Ed;function $i(){if(Ed)return Bn;Ed=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.mod10=e,Bn.mod11=t;function e(n){for(var r=0,o=0;o<n.length;o++){var i=parseInt(n[o]);(o+n.length)%2===0?r+=i:r+=i*2%10+Math.floor(i*2/10)}return(10-r%10)%10}function t(n){for(var r=0,o=[2,3,4,5,6,7],i=0;i<n.length;i++){var l=parseInt(n[n.length-1-i]);r+=o[i%o.length]*l}return(11-r%11)%11}return Bn}var Sd;function p2(){if(Sd)return fo;Sd=1,Object.defineProperty(fo,"__esModule",{value:!0});var e=Mr(),t=r(e),n=$i();function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){return o(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a+(0,n.mod10)(a),d))}return s})(t.default);return fo.default=c,fo}var po={},Cd;function h2(){if(Cd)return po;Cd=1,Object.defineProperty(po,"__esModule",{value:!0});var e=Mr(),t=r(e),n=$i();function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){return o(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a+(0,n.mod11)(a),d))}return s})(t.default);return po.default=c,po}var ho={},_d;function m2(){if(_d)return ho;_d=1,Object.defineProperty(ho,"__esModule",{value:!0});var e=Mr(),t=r(e),n=$i();function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){return o(this,s),a+=(0,n.mod10)(a),a+=(0,n.mod10)(a),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a,d))}return s})(t.default);return ho.default=c,ho}var mo={},Pd;function v2(){if(Pd)return mo;Pd=1,Object.defineProperty(mo,"__esModule",{value:!0});var e=Mr(),t=r(e),n=$i();function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){return o(this,s),a+=(0,n.mod11)(a),a+=(0,n.mod10)(a),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a,d))}return s})(t.default);return mo.default=c,mo}var Rd;function g2(){if(Rd)return De;Rd=1,Object.defineProperty(De,"__esModule",{value:!0}),De.MSI1110=De.MSI1010=De.MSI11=De.MSI10=De.MSI=void 0;var e=Mr(),t=a(e),n=p2(),r=a(n),o=h2(),i=a(o),l=m2(),c=a(l),u=v2(),s=a(u);function a(d){return d&&d.__esModule?d:{default:d}}return De.MSI=t.default,De.MSI10=r.default,De.MSI11=i.default,De.MSI1010=c.default,De.MSI1110=s.default,De}var zn={},Od;function y2(){if(Od)return zn;Od=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.pharmacode=void 0;var e=(function(){function u(s,a){for(var d=0;d<a.length;d++){var f=a[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,a,d){return a&&u(s.prototype,a),d&&u(s,d),s}})(),t=$e(),n=r(t);function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){o(this,s);var f=i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a,d));return f.number=parseInt(a,10),f}return e(s,[{key:"encode",value:function(){for(var a=this.number,d="";!isNaN(a)&&a!=0;)a%2===0?(d="11100"+d,a=(a-2)/2):(d="100"+d,a=(a-1)/2);return d=d.slice(0,-2),{data:d,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),s})(n.default);return zn.pharmacode=c,zn}var Un={},Td;function b2(){if(Td)return Un;Td=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.codabar=void 0;var e=(function(){function u(s,a){for(var d=0;d<a.length;d++){var f=a[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,a,d){return a&&u(s.prototype,a),d&&u(s,d),s}})(),t=$e(),n=r(t);function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){o(this,s),a.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(a="A"+a+"A");var f=i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a.toUpperCase(),d));return f.text=f.options.text||f.text.replace(/[A-D]/g,""),f}return e(s,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var a=[],d=this.getEncodings(),f=0;f<this.data.length;f++)a.push(d[this.data.charAt(f)]),f!==this.data.length-1&&a.push("0");return{text:this.text,data:a.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),s})(n.default);return Un.codabar=c,Un}var Bt={},vo={},Hn={},jd;function w2(){return jd||(jd=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.SYMBOLS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],Hn.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],Hn.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"\x07":["($)","G"],"\b":["($)","H"]," ":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"\x1B":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]}),Hn}var Md;function Ig(){if(Md)return vo;Md=1,Object.defineProperty(vo,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=w2(),n=$e(),r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function c(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=(function(s){c(a,s);function a(d,f){return i(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,d,f))}return e(a,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var d=this.data.split("").flatMap(function(h){return t.MULTI_SYMBOLS[h]||h}),f=d.map(function(h){return a.getEncoding(h)}).join(""),p=a.checksum(d,20),m=a.checksum(d.concat(p),15);return{text:this.text,data:a.getEncoding("ÿ")+f+a.getEncoding(p)+a.getEncoding(m)+a.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(d){return t.BINARIES[a.symbolValue(d)]}},{key:"getSymbol",value:function(d){return t.SYMBOLS[d]}},{key:"symbolValue",value:function(d){return t.SYMBOLS.indexOf(d)}},{key:"checksum",value:function(d,f){var p=d.slice().reverse().reduce(function(m,h,v){var y=v%f+1;return m+a.symbolValue(h)*y},0);return a.getSymbol(p%47)}}]),a})(r.default);return vo.default=u,vo}var go={},Ad;function x2(){if(Ad)return go;Ad=1,Object.defineProperty(go,"__esModule",{value:!0});var e=(function(){function u(s,a){for(var d=0;d<a.length;d++){var f=a[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,a,d){return a&&u(s.prototype,a),d&&u(s,d),s}})(),t=Ig(),n=r(t);function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){return o(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a,d))}return e(s,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),s})(n.default);return go.default=c,go}var kd;function E2(){if(kd)return Bt;kd=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.CODE93FullASCII=Bt.CODE93=void 0;var e=Ig(),t=o(e),n=x2(),r=o(n);function o(i){return i&&i.__esModule?i:{default:i}}return Bt.CODE93=t.default,Bt.CODE93FullASCII=r.default,Bt}var Gn={},Dd;function S2(){if(Dd)return Gn;Dd=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.GenericBarcode=void 0;var e=(function(){function u(s,a){for(var d=0;d<a.length;d++){var f=a[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,a,d){return a&&u(s.prototype,a),d&&u(s,d),s}})(),t=$e(),n=r(t);function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){return o(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a,d))}return e(s,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),s})(n.default);return Gn.GenericBarcode=c,Gn}var Ld;function C2(){if(Ld)return Xr;Ld=1,Object.defineProperty(Xr,"__esModule",{value:!0});var e=ZT(),t=r2(),n=u2(),r=f2(),o=g2(),i=y2(),l=b2(),c=E2(),u=S2();return Xr.default={CODE39:e.CODE39,CODE128:t.CODE128,CODE128A:t.CODE128A,CODE128B:t.CODE128B,CODE128C:t.CODE128C,EAN13:n.EAN13,EAN8:n.EAN8,EAN5:n.EAN5,EAN2:n.EAN2,UPC:n.UPC,UPCE:n.UPCE,ITF14:r.ITF14,ITF:r.ITF,MSI:o.MSI,MSI10:o.MSI10,MSI11:o.MSI11,MSI1010:o.MSI1010,MSI1110:o.MSI1110,pharmacode:i.pharmacode,codabar:l.codabar,CODE93:c.CODE93,CODE93FullASCII:c.CODE93FullASCII,GenericBarcode:u.GenericBarcode},Xr}var yo={},Id;function Bi(){if(Id)return yo;Id=1,Object.defineProperty(yo,"__esModule",{value:!0});var e=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t};return yo.default=function(t,n){return e({},t,n)},yo}var bo={},Nd;function _2(){if(Nd)return bo;Nd=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=e;function e(t){var n=[];function r(o){if(Array.isArray(o))for(var i=0;i<o.length;i++)r(o[i]);else o.text=o.text||"",o.data=o.data||"",n.push(o)}return r(t),n}return bo}var wo={},Fd;function P2(){if(Fd)return wo;Fd=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=e;function e(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}return wo}var xo={},Eo={},So={},Vd;function Ng(){if(Vd)return So;Vd=1,Object.defineProperty(So,"__esModule",{value:!0}),So.default=e;function e(t){var n=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var r in n)n.hasOwnProperty(r)&&(r=n[r],typeof t[r]=="string"&&(t[r]=parseInt(t[r],10)));return typeof t.displayValue=="string"&&(t.displayValue=t.displayValue!="false"),t}return So}var Co={},$d;function Fg(){if($d)return Co;$d=1,Object.defineProperty(Co,"__esModule",{value:!0});var e={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};return Co.default=e,Co}var Bd;function R2(){if(Bd)return Eo;Bd=1,Object.defineProperty(Eo,"__esModule",{value:!0});var e=Ng(),t=o(e),n=Fg(),r=o(n);function o(l){return l&&l.__esModule?l:{default:l}}function i(l){var c={};for(var u in r.default)r.default.hasOwnProperty(u)&&(l.hasAttribute("jsbarcode-"+u.toLowerCase())&&(c[u]=l.getAttribute("jsbarcode-"+u.toLowerCase())),l.hasAttribute("data-"+u.toLowerCase())&&(c[u]=l.getAttribute("data-"+u.toLowerCase())));return c.value=l.getAttribute("jsbarcode-value")||l.getAttribute("data-value"),c=(0,t.default)(c),c}return Eo.default=i,Eo}var _o={},Po={},Le={},zd;function Vg(){if(zd)return Le;zd=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.getTotalWidthOfEncodings=Le.calculateEncodingAttributes=Le.getBarcodePadding=Le.getEncodingHeight=Le.getMaximumHeightOfEncodings=void 0;var e=Bi(),t=n(e);function n(s){return s&&s.__esModule?s:{default:s}}function r(s,a){return a.height+(a.displayValue&&s.text.length>0?a.fontSize+a.textMargin:0)+a.marginTop+a.marginBottom}function o(s,a,d){if(d.displayValue&&a<s){if(d.textAlign=="center")return Math.floor((s-a)/2);if(d.textAlign=="left")return 0;if(d.textAlign=="right")return Math.floor(s-a)}return 0}function i(s,a,d){for(var f=0;f<s.length;f++){var p=s[f],m=(0,t.default)(a,p.options),h;m.displayValue?h=u(p.text,m,d):h=0;var v=p.data.length*m.width;p.width=Math.ceil(Math.max(h,v)),p.height=r(p,m),p.barcodePadding=o(h,v,m)}}function l(s){for(var a=0,d=0;d<s.length;d++)a+=s[d].width;return a}function c(s){for(var a=0,d=0;d<s.length;d++)s[d].height>a&&(a=s[d].height);return a}function u(s,a,d){var f;if(d)f=d;else if(typeof document<"u")f=document.createElement("canvas").getContext("2d");else return 0;f.font=a.fontOptions+" "+a.fontSize+"px "+a.font;var p=f.measureText(s);if(!p)return 0;var m=p.width;return m}return Le.getMaximumHeightOfEncodings=c,Le.getEncodingHeight=r,Le.getBarcodePadding=o,Le.calculateEncodingAttributes=i,Le.getTotalWidthOfEncodings=l,Le}var Ud;function O2(){if(Ud)return Po;Ud=1,Object.defineProperty(Po,"__esModule",{value:!0});var e=(function(){function c(u,s){for(var a=0;a<s.length;a++){var d=s[a];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}return function(u,s,a){return s&&c(u.prototype,s),a&&c(u,a),u}})(),t=Bi(),n=o(t),r=Vg();function o(c){return c&&c.__esModule?c:{default:c}}function i(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}var l=(function(){function c(u,s,a){i(this,c),this.canvas=u,this.encodings=s,this.options=a}return e(c,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var u=0;u<this.encodings.length;u++){var s=(0,n.default)(this.options,this.encodings[u].options);this.drawCanvasBarcode(s,this.encodings[u]),this.drawCanvasText(s,this.encodings[u]),this.moveCanvasDrawing(this.encodings[u])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var u=this.canvas.getContext("2d");u.save(),(0,r.calculateEncodingAttributes)(this.encodings,this.options,u);var s=(0,r.getTotalWidthOfEncodings)(this.encodings),a=(0,r.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=s+this.options.marginLeft+this.options.marginRight,this.canvas.height=a,u.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(u.fillStyle=this.options.background,u.fillRect(0,0,this.canvas.width,this.canvas.height)),u.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(u,s){var a=this.canvas.getContext("2d"),d=s.data,f;u.textPosition=="top"?f=u.marginTop+u.fontSize+u.textMargin:f=u.marginTop,a.fillStyle=u.lineColor;for(var p=0;p<d.length;p++){var m=p*u.width+s.barcodePadding;d[p]==="1"?a.fillRect(m,f,u.width,u.height):d[p]&&a.fillRect(m,f,u.width,u.height*d[p])}}},{key:"drawCanvasText",value:function(u,s){var a=this.canvas.getContext("2d"),d=u.fontOptions+" "+u.fontSize+"px "+u.font;if(u.displayValue){var f,p;u.textPosition=="top"?p=u.marginTop+u.fontSize-u.textMargin:p=u.height+u.textMargin+u.marginTop+u.fontSize,a.font=d,u.textAlign=="left"||s.barcodePadding>0?(f=0,a.textAlign="left"):u.textAlign=="right"?(f=s.width-1,a.textAlign="right"):(f=s.width/2,a.textAlign="center"),a.fillText(s.text,f,p)}}},{key:"moveCanvasDrawing",value:function(u){var s=this.canvas.getContext("2d");s.translate(u.width,0)}},{key:"restoreCanvas",value:function(){var u=this.canvas.getContext("2d");u.restore()}}]),c})();return Po.default=l,Po}var Ro={},Hd;function T2(){if(Hd)return Ro;Hd=1,Object.defineProperty(Ro,"__esModule",{value:!0});var e=(function(){function u(s,a){for(var d=0;d<a.length;d++){var f=a[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,a,d){return a&&u(s.prototype,a),d&&u(s,d),s}})(),t=Bi(),n=o(t),r=Vg();function o(u){return u&&u.__esModule?u:{default:u}}function i(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}var l="http://www.w3.org/2000/svg",c=(function(){function u(s,a,d){i(this,u),this.svg=s,this.encodings=a,this.options=d,this.document=d.xmlDocument||document}return e(u,[{key:"render",value:function(){var s=this.options.marginLeft;this.prepareSVG();for(var a=0;a<this.encodings.length;a++){var d=this.encodings[a],f=(0,n.default)(this.options,d.options),p=this.createGroup(s,f.marginTop,this.svg);this.setGroupOptions(p,f),this.drawSvgBarcode(p,f,d),this.drawSVGText(p,f,d),s+=d.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,r.calculateEncodingAttributes)(this.encodings,this.options);var s=(0,r.getTotalWidthOfEncodings)(this.encodings),a=(0,r.getMaximumHeightOfEncodings)(this.encodings),d=s+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(d,a),this.options.background&&this.drawRect(0,0,d,a,this.svg).setAttribute("fill",this.options.background)}},{key:"drawSvgBarcode",value:function(s,a,d){var f=d.data,p;a.textPosition=="top"?p=a.fontSize+a.textMargin:p=0;for(var m=0,h=0,v=0;v<f.length;v++)h=v*a.width+d.barcodePadding,f[v]==="1"?m++:m>0&&(this.drawRect(h-a.width*m,p,a.width*m,a.height,s),m=0);m>0&&this.drawRect(h-a.width*(m-1),p,a.width*m,a.height,s)}},{key:"drawSVGText",value:function(s,a,d){var f=this.document.createElementNS(l,"text");if(a.displayValue){var p,m;f.setAttribute("font-family",a.font),f.setAttribute("font-size",a.fontSize),a.fontOptions.includes("bold")&&f.setAttribute("font-weight","bold"),a.fontOptions.includes("italic")&&f.setAttribute("font-style","italic"),a.textPosition=="top"?m=a.fontSize-a.textMargin:m=a.height+a.textMargin+a.fontSize,a.textAlign=="left"||d.barcodePadding>0?(p=0,f.setAttribute("text-anchor","start")):a.textAlign=="right"?(p=d.width-1,f.setAttribute("text-anchor","end")):(p=d.width/2,f.setAttribute("text-anchor","middle")),f.setAttribute("x",p),f.setAttribute("y",m),f.appendChild(this.document.createTextNode(d.text)),s.appendChild(f)}}},{key:"setSvgAttributes",value:function(s,a){var d=this.svg;d.setAttribute("width",s+"px"),d.setAttribute("height",a+"px"),d.setAttribute("x","0px"),d.setAttribute("y","0px"),d.setAttribute("viewBox","0 0 "+s+" "+a),d.setAttribute("xmlns",l),d.setAttribute("version","1.1")}},{key:"createGroup",value:function(s,a,d){var f=this.document.createElementNS(l,"g");return f.setAttribute("transform","translate("+s+", "+a+")"),d.appendChild(f),f}},{key:"setGroupOptions",value:function(s,a){s.setAttribute("fill",a.lineColor)}},{key:"drawRect",value:function(s,a,d,f,p){var m=this.document.createElementNS(l,"rect");return m.setAttribute("x",s),m.setAttribute("y",a),m.setAttribute("width",d),m.setAttribute("height",f),p.appendChild(m),m}}]),u})();return Ro.default=c,Ro}var Oo={},Gd;function j2(){if(Gd)return Oo;Gd=1,Object.defineProperty(Oo,"__esModule",{value:!0});var e=(function(){function r(o,i){for(var l=0;l<i.length;l++){var c=i[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,c.key,c)}}return function(o,i,l){return i&&r(o.prototype,i),l&&r(o,l),o}})();function t(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}var n=(function(){function r(o,i,l){t(this,r),this.object=o,this.encodings=i,this.options=l}return e(r,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),r})();return Oo.default=n,Oo}var Wd;function M2(){if(Wd)return _o;Wd=1,Object.defineProperty(_o,"__esModule",{value:!0});var e=O2(),t=l(e),n=T2(),r=l(n),o=j2(),i=l(o);function l(c){return c&&c.__esModule?c:{default:c}}return _o.default={CanvasRenderer:t.default,SVGRenderer:r.default,ObjectRenderer:i.default},_o}var on={},Xd;function $g(){if(Xd)return on;Xd=1,Object.defineProperty(on,"__esModule",{value:!0});function e(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}function t(l,c){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:l}function n(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(l,c):l.__proto__=c)}var r=(function(l){n(c,l);function c(u,s){e(this,c);var a=t(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return a.name="InvalidInputException",a.symbology=u,a.input=s,a.message='"'+a.input+'" is not a valid input for '+a.symbology,a}return c})(Error),o=(function(l){n(c,l);function c(){e(this,c);var u=t(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return u.name="InvalidElementException",u.message="Not supported type to render on",u}return c})(Error),i=(function(l){n(c,l);function c(){e(this,c);var u=t(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return u.name="NoElementException",u.message="No element to render on.",u}return c})(Error);return on.InvalidInputException=r,on.InvalidElementException=o,on.NoElementException=i,on}var Kd;function A2(){if(Kd)return xo;Kd=1,Object.defineProperty(xo,"__esModule",{value:!0});var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t=R2(),n=l(t),r=M2(),o=l(r),i=$g();function l(a){return a&&a.__esModule?a:{default:a}}function c(a){if(typeof a=="string")return u(a);if(Array.isArray(a)){for(var d=[],f=0;f<a.length;f++)d.push(c(a[f]));return d}else{if(typeof HTMLCanvasElement<"u"&&a instanceof HTMLImageElement)return s(a);if(a&&a.nodeName&&a.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&a instanceof SVGElement)return{element:a,options:(0,n.default)(a),renderer:o.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&a instanceof HTMLCanvasElement)return{element:a,options:(0,n.default)(a),renderer:o.default.CanvasRenderer};if(a&&a.getContext)return{element:a,renderer:o.default.CanvasRenderer};if(a&&(typeof a>"u"?"undefined":e(a))==="object"&&!a.nodeName)return{element:a,renderer:o.default.ObjectRenderer};throw new i.InvalidElementException}}function u(a){var d=document.querySelectorAll(a);if(d.length!==0){for(var f=[],p=0;p<d.length;p++)f.push(c(d[p]));return f}}function s(a){var d=document.createElement("canvas");return{element:d,options:(0,n.default)(a),renderer:o.default.CanvasRenderer,afterRender:function(){a.setAttribute("src",d.toDataURL())}}}return xo.default=c,xo}var To={},Yd;function k2(){if(Yd)return To;Yd=1,Object.defineProperty(To,"__esModule",{value:!0});var e=(function(){function r(o,i){for(var l=0;l<i.length;l++){var c=i[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,c.key,c)}}return function(o,i,l){return i&&r(o.prototype,i),l&&r(o,l),o}})();function t(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}var n=(function(){function r(o){t(this,r),this.api=o}return e(r,[{key:"handleCatch",value:function(o){if(o.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw o.message;else throw o;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(o){try{var i=o.apply(void 0,arguments);return this.api._options.valid(!0),i}catch(l){return this.handleCatch(l),this.api}}}]),r})();return To.default=n,To}var xa,qd;function D2(){if(qd)return xa;qd=1;var e=C2(),t=y(e),n=Bi(),r=y(n),o=_2(),i=y(o),l=P2(),c=y(l),u=A2(),s=y(u),a=Ng(),d=y(a),f=k2(),p=y(f),m=$g(),h=Fg(),v=y(h);function y(T){return T&&T.__esModule?T:{default:T}}var b=function(){},x=function(T,P,k){var R=new b;if(typeof T>"u")throw Error("No element to render on was provided.");return R._renderProperties=(0,s.default)(T),R._encodings=[],R._options=v.default,R._errorHandler=new p.default(R),typeof P<"u"&&(k=k||{},k.format||(k.format=j()),R.options(k)[k.format](P,k).render()),R};x.getModule=function(T){return t.default[T]};for(var S in t.default)t.default.hasOwnProperty(S)&&E(t.default,S);function E(T,P){b.prototype[P]=b.prototype[P.toUpperCase()]=b.prototype[P.toLowerCase()]=function(k,R){var $=this;return $._errorHandler.wrapBarcodeCall(function(){R.text=typeof R.text>"u"?void 0:""+R.text;var F=(0,r.default)($._options,R);F=(0,d.default)(F);var H=T[P],B=A(k,H,F);return $._encodings.push(B),$})}}function A(T,P,k){T=""+T;var R=new P(T,k);if(!R.valid())throw new m.InvalidInputException(R.constructor.name,T);var $=R.encode();$=(0,i.default)($);for(var F=0;F<$.length;F++)$[F].options=(0,r.default)(k,$[F].options);return $}function j(){return t.default.CODE128?"CODE128":Object.keys(t.default)[0]}b.prototype.options=function(T){return this._options=(0,r.default)(this._options,T),this},b.prototype.blank=function(T){var P=new Array(T+1).join("0");return this._encodings.push({data:P}),this},b.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var T;for(var P in this._renderProperties){T=this._renderProperties[P];var k=(0,r.default)(this._options,T.options);k.format=="auto"&&(k.format=j()),this._errorHandler.wrapBarcodeCall(function(){var R=k.value,$=t.default[k.format.toUpperCase()],F=A(R,$,k);O(T,F,k)})}}},b.prototype.render=function(){if(!this._renderProperties)throw new m.NoElementException;if(Array.isArray(this._renderProperties))for(var T=0;T<this._renderProperties.length;T++)O(this._renderProperties[T],this._encodings,this._options);else O(this._renderProperties,this._encodings,this._options);return this},b.prototype._defaults=v.default;function O(T,P,k){P=(0,i.default)(P);for(var R=0;R<P.length;R++)P[R].options=(0,r.default)(k,P[R].options),(0,c.default)(P[R].options);(0,c.default)(k);var $=T.renderer,F=new $(T.element,P,k);F.render(),T.afterRender&&T.afterRender()}return typeof window<"u"&&(window.JsBarcode=x),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(T,P){var k=[];return jQuery(this).each(function(){k.push(this)}),x(k,T,P)}),xa=x,xa}var jo={exports:{}},Ea={exports:{}},ue={};/** @license React v16.13.1
117
117
  * react-is.production.min.js
118
118
  *
119
119
  * Copyright (c) Facebook, Inc. and its affiliates.
120
120
  *
121
121
  * This source code is licensed under the MIT license found in the
122
122
  * LICENSE file in the root directory of this source tree.
123
- */var Kd;function b2(){if(Kd)return ue;Kd=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,a=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(E){if(typeof E=="object"&&E!==null){var A=E.$$typeof;switch(A){case t:switch(E=E.type,E){case u:case a:case r:case i:case o:case d:return E;default:switch(E=E&&E.$$typeof,E){case c:case s:case m:case p:case l:return E;default:return A}}case n:return A}}}function S(E){return w(E)===a}return ue.AsyncMode=u,ue.ConcurrentMode=a,ue.ContextConsumer=c,ue.ContextProvider=l,ue.Element=t,ue.ForwardRef=s,ue.Fragment=r,ue.Lazy=m,ue.Memo=p,ue.Portal=n,ue.Profiler=i,ue.StrictMode=o,ue.Suspense=d,ue.isAsyncMode=function(E){return S(E)||w(E)===u},ue.isConcurrentMode=S,ue.isContextConsumer=function(E){return w(E)===c},ue.isContextProvider=function(E){return w(E)===l},ue.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},ue.isForwardRef=function(E){return w(E)===s},ue.isFragment=function(E){return w(E)===r},ue.isLazy=function(E){return w(E)===m},ue.isMemo=function(E){return w(E)===p},ue.isPortal=function(E){return w(E)===n},ue.isProfiler=function(E){return w(E)===i},ue.isStrictMode=function(E){return w(E)===o},ue.isSuspense=function(E){return w(E)===d},ue.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===a||E===i||E===o||E===d||E===f||typeof E=="object"&&E!==null&&(E.$$typeof===m||E.$$typeof===p||E.$$typeof===l||E.$$typeof===c||E.$$typeof===s||E.$$typeof===v||E.$$typeof===y||E.$$typeof===b||E.$$typeof===h)},ue.typeOf=w,ue}var ce={};/** @license React v16.13.1
123
+ */var Zd;function L2(){if(Zd)return ue;Zd=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,a=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(E){if(typeof E=="object"&&E!==null){var A=E.$$typeof;switch(A){case t:switch(E=E.type,E){case u:case s:case r:case i:case o:case d:return E;default:switch(E=E&&E.$$typeof,E){case c:case a:case m:case p:case l:return E;default:return A}}case n:return A}}}function S(E){return x(E)===s}return ue.AsyncMode=u,ue.ConcurrentMode=s,ue.ContextConsumer=c,ue.ContextProvider=l,ue.Element=t,ue.ForwardRef=a,ue.Fragment=r,ue.Lazy=m,ue.Memo=p,ue.Portal=n,ue.Profiler=i,ue.StrictMode=o,ue.Suspense=d,ue.isAsyncMode=function(E){return S(E)||x(E)===u},ue.isConcurrentMode=S,ue.isContextConsumer=function(E){return x(E)===c},ue.isContextProvider=function(E){return x(E)===l},ue.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},ue.isForwardRef=function(E){return x(E)===a},ue.isFragment=function(E){return x(E)===r},ue.isLazy=function(E){return x(E)===m},ue.isMemo=function(E){return x(E)===p},ue.isPortal=function(E){return x(E)===n},ue.isProfiler=function(E){return x(E)===i},ue.isStrictMode=function(E){return x(E)===o},ue.isSuspense=function(E){return x(E)===d},ue.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===s||E===i||E===o||E===d||E===f||typeof E=="object"&&E!==null&&(E.$$typeof===m||E.$$typeof===p||E.$$typeof===l||E.$$typeof===c||E.$$typeof===a||E.$$typeof===v||E.$$typeof===y||E.$$typeof===b||E.$$typeof===h)},ue.typeOf=x,ue}var ce={};/** @license React v16.13.1
124
124
  * react-is.development.js
125
125
  *
126
126
  * Copyright (c) Facebook, Inc. and its affiliates.
127
127
  *
128
128
  * This source code is licensed under the MIT license found in the
129
129
  * LICENSE file in the root directory of this source tree.
130
- */var Yd;function w2(){return Yd||(Yd=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,a=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(I){return typeof I=="string"||typeof I=="function"||I===r||I===a||I===i||I===o||I===d||I===f||typeof I=="object"&&I!==null&&(I.$$typeof===m||I.$$typeof===p||I.$$typeof===l||I.$$typeof===c||I.$$typeof===s||I.$$typeof===v||I.$$typeof===y||I.$$typeof===b||I.$$typeof===h)}function S(I){if(typeof I=="object"&&I!==null){var de=I.$$typeof;switch(de){case t:var ke=I.type;switch(ke){case u:case a:case r:case i:case o:case d:return ke;default:var $e=ke&&ke.$$typeof;switch($e){case c:case s:case m:case p:case l:return $e;default:return de}}case n:return de}}}var E=u,A=a,j=c,O=l,T=t,_=s,k=r,P=m,$=p,F=n,U=i,B=o,X=d,W=!1;function L(I){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(I)||S(I)===u}function M(I){return S(I)===a}function D(I){return S(I)===c}function ee(I){return S(I)===l}function J(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function K(I){return S(I)===s}function ne(I){return S(I)===r}function te(I){return S(I)===m}function V(I){return S(I)===p}function q(I){return S(I)===n}function Y(I){return S(I)===i}function H(I){return S(I)===o}function oe(I){return S(I)===d}ce.AsyncMode=E,ce.ConcurrentMode=A,ce.ContextConsumer=j,ce.ContextProvider=O,ce.Element=T,ce.ForwardRef=_,ce.Fragment=k,ce.Lazy=P,ce.Memo=$,ce.Portal=F,ce.Profiler=U,ce.StrictMode=B,ce.Suspense=X,ce.isAsyncMode=L,ce.isConcurrentMode=M,ce.isContextConsumer=D,ce.isContextProvider=ee,ce.isElement=J,ce.isForwardRef=K,ce.isFragment=ne,ce.isLazy=te,ce.isMemo=V,ce.isPortal=q,ce.isProfiler=Y,ce.isStrictMode=H,ce.isSuspense=oe,ce.isValidElementType=w,ce.typeOf=S})()),ce}var qd;function j0(){return qd||(qd=1,process.env.NODE_ENV==="production"?ys.exports=b2():ys.exports=w2()),ys.exports}/*
130
+ */var Qd;function I2(){return Qd||(Qd=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,a=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(I){return typeof I=="string"||typeof I=="function"||I===r||I===s||I===i||I===o||I===d||I===f||typeof I=="object"&&I!==null&&(I.$$typeof===m||I.$$typeof===p||I.$$typeof===l||I.$$typeof===c||I.$$typeof===a||I.$$typeof===v||I.$$typeof===y||I.$$typeof===b||I.$$typeof===h)}function S(I){if(typeof I=="object"&&I!==null){var de=I.$$typeof;switch(de){case t:var ke=I.type;switch(ke){case u:case s:case r:case i:case o:case d:return ke;default:var Be=ke&&ke.$$typeof;switch(Be){case c:case a:case m:case p:case l:return Be;default:return de}}case n:return de}}}var E=u,A=s,j=c,O=l,T=t,P=a,k=r,R=m,$=p,F=n,H=i,B=o,X=d,G=!1;function L(I){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(I)||S(I)===u}function M(I){return S(I)===s}function D(I){return S(I)===c}function ee(I){return S(I)===l}function J(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function K(I){return S(I)===a}function ne(I){return S(I)===r}function te(I){return S(I)===m}function V(I){return S(I)===p}function q(I){return S(I)===n}function Y(I){return S(I)===i}function U(I){return S(I)===o}function oe(I){return S(I)===d}ce.AsyncMode=E,ce.ConcurrentMode=A,ce.ContextConsumer=j,ce.ContextProvider=O,ce.Element=T,ce.ForwardRef=P,ce.Fragment=k,ce.Lazy=R,ce.Memo=$,ce.Portal=F,ce.Profiler=H,ce.StrictMode=B,ce.Suspense=X,ce.isAsyncMode=L,ce.isConcurrentMode=M,ce.isContextConsumer=D,ce.isContextProvider=ee,ce.isElement=J,ce.isForwardRef=K,ce.isFragment=ne,ce.isLazy=te,ce.isMemo=V,ce.isPortal=q,ce.isProfiler=Y,ce.isStrictMode=U,ce.isSuspense=oe,ce.isValidElementType=x,ce.typeOf=S})()),ce}var Jd;function Bg(){return Jd||(Jd=1,process.env.NODE_ENV==="production"?Ea.exports=L2():Ea.exports=I2()),Ea.exports}/*
131
131
  object-assign
132
132
  (c) Sindre Sorhus
133
133
  @license MIT
134
- */var bs,Zd;function x2(){if(Zd)return bs;Zd=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(s){return l[s]});if(u.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(s){a[s]=s}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return bs=o()?Object.assign:function(i,l){for(var c,u=r(i),a,s=1;s<arguments.length;s++){c=Object(arguments[s]);for(var d in c)t.call(c,d)&&(u[d]=c[d]);if(e){a=e(c);for(var f=0;f<a.length;f++)n.call(c,a[f])&&(u[a[f]]=c[a[f]])}}return u},bs}var ws,Qd;function Fl(){if(Qd)return ws;Qd=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ws=e,ws}var Jd,ef;function M0(){return ef||(ef=1,Jd=Function.call.bind(Object.prototype.hasOwnProperty)),Jd}var xs,tf;function E2(){if(tf)return xs;tf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Fl(),n={},r=M0();e=function(i){var l="Warning: "+i;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(i,l,c,u,a){if(process.env.NODE_ENV!=="production"){for(var s in i)if(r(i,s)){var d;try{if(typeof i[s]!="function"){var f=Error((u||"React class")+": "+c+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=i[s](l,s,u,c,null,t)}catch(m){d=m}if(d&&!(d instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=a?a():"";e("Failed "+c+" type: "+d.message+(p??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},xs=o,xs}var Es,nf;function S2(){if(nf)return Es;nf=1;var e=j0(),t=x2(),n=Fl(),r=M0(),o=E2(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return Es=function(c,u){var a=typeof Symbol=="function"&&Symbol.iterator,s="@@iterator";function d(M){var D=M&&(a&&M[a]||M[s]);if(typeof D=="function")return D}var f="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:b(),arrayOf:w,element:S(),elementType:E(),instanceOf:A,node:_(),objectOf:O,oneOf:j,oneOfType:T,shape:P,exact:$};function m(M,D){return M===D?M!==0||1/M===1/D:M!==M&&D!==D}function h(M,D){this.message=M,this.data=D&&typeof D=="object"?D:{},this.stack=""}h.prototype=Error.prototype;function v(M){if(process.env.NODE_ENV!=="production")var D={},ee=0;function J(ne,te,V,q,Y,H,oe){if(q=q||f,H=H||V,oe!==n){if(u){var I=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw I.name="Invariant Violation",I}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=q+":"+V;!D[de]&&ee<3&&(i("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[de]=!0,ee++)}}return te[V]==null?ne?te[V]===null?new h("The "+Y+" `"+H+"` is marked as required "+("in `"+q+"`, but its value is `null`.")):new h("The "+Y+" `"+H+"` is marked as required in "+("`"+q+"`, but its value is `undefined`.")):null:M(te,V,q,Y,H)}var K=J.bind(null,!1);return K.isRequired=J.bind(null,!0),K}function y(M){function D(ee,J,K,ne,te,V){var q=ee[J],Y=B(q);if(Y!==M){var H=X(q);return new h("Invalid "+ne+" `"+te+"` of type "+("`"+H+"` supplied to `"+K+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return v(D)}function b(){return v(l)}function w(M){function D(ee,J,K,ne,te){if(typeof M!="function")return new h("Property `"+te+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var V=ee[J];if(!Array.isArray(V)){var q=B(V);return new h("Invalid "+ne+" `"+te+"` of type "+("`"+q+"` supplied to `"+K+"`, expected an array."))}for(var Y=0;Y<V.length;Y++){var H=M(V,Y,K,ne,te+"["+Y+"]",n);if(H instanceof Error)return H}return null}return v(D)}function S(){function M(D,ee,J,K,ne){var te=D[ee];if(!c(te)){var V=B(te);return new h("Invalid "+K+" `"+ne+"` of type "+("`"+V+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return v(M)}function E(){function M(D,ee,J,K,ne){var te=D[ee];if(!e.isValidElementType(te)){var V=B(te);return new h("Invalid "+K+" `"+ne+"` of type "+("`"+V+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return v(M)}function A(M){function D(ee,J,K,ne,te){if(!(ee[J]instanceof M)){var V=M.name||f,q=L(ee[J]);return new h("Invalid "+ne+" `"+te+"` of type "+("`"+q+"` supplied to `"+K+"`, expected ")+("instance of `"+V+"`."))}return null}return v(D)}function j(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),l;function D(ee,J,K,ne,te){for(var V=ee[J],q=0;q<M.length;q++)if(m(V,M[q]))return null;var Y=JSON.stringify(M,function(H,oe){var I=X(oe);return I==="symbol"?String(oe):oe});return new h("Invalid "+ne+" `"+te+"` of value `"+String(V)+"` "+("supplied to `"+K+"`, expected one of "+Y+"."))}return v(D)}function O(M){function D(ee,J,K,ne,te){if(typeof M!="function")return new h("Property `"+te+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var V=ee[J],q=B(V);if(q!=="object")return new h("Invalid "+ne+" `"+te+"` of type "+("`"+q+"` supplied to `"+K+"`, expected an object."));for(var Y in V)if(r(V,Y)){var H=M(V,Y,K,ne,te+"."+Y,n);if(H instanceof Error)return H}return null}return v(D)}function T(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var D=0;D<M.length;D++){var ee=M[D];if(typeof ee!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(ee)+" at index "+D+"."),l}function J(K,ne,te,V,q){for(var Y=[],H=0;H<M.length;H++){var oe=M[H],I=oe(K,ne,te,V,q,n);if(I==null)return null;I.data&&r(I.data,"expectedType")&&Y.push(I.data.expectedType)}var de=Y.length>0?", expected one of type ["+Y.join(", ")+"]":"";return new h("Invalid "+V+" `"+q+"` supplied to "+("`"+te+"`"+de+"."))}return v(J)}function _(){function M(D,ee,J,K,ne){return F(D[ee])?null:new h("Invalid "+K+" `"+ne+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return v(M)}function k(M,D,ee,J,K){return new h((M||"React class")+": "+D+" type `"+ee+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function P(M){function D(ee,J,K,ne,te){var V=ee[J],q=B(V);if(q!=="object")return new h("Invalid "+ne+" `"+te+"` of type `"+q+"` "+("supplied to `"+K+"`, expected `object`."));for(var Y in M){var H=M[Y];if(typeof H!="function")return k(K,ne,te,Y,X(H));var oe=H(V,Y,K,ne,te+"."+Y,n);if(oe)return oe}return null}return v(D)}function $(M){function D(ee,J,K,ne,te){var V=ee[J],q=B(V);if(q!=="object")return new h("Invalid "+ne+" `"+te+"` of type `"+q+"` "+("supplied to `"+K+"`, expected `object`."));var Y=t({},ee[J],M);for(var H in Y){var oe=M[H];if(r(M,H)&&typeof oe!="function")return k(K,ne,te,H,X(oe));if(!oe)return new h("Invalid "+ne+" `"+te+"` key `"+H+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(ee[J],null," ")+`
135
- Valid keys: `+JSON.stringify(Object.keys(M),null," "));var I=oe(V,H,K,ne,te+"."+H,n);if(I)return I}return null}return v(D)}function F(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(F);if(M===null||c(M))return!0;var D=d(M);if(D){var ee=D.call(M),J;if(D!==M.entries){for(;!(J=ee.next()).done;)if(!F(J.value))return!1}else for(;!(J=ee.next()).done;){var K=J.value;if(K&&!F(K[1]))return!1}}else return!1;return!0;default:return!1}}function U(M,D){return M==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function B(M){var D=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":U(D,M)?"symbol":D}function X(M){if(typeof M>"u"||M===null)return""+M;var D=B(M);if(D==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return D}function W(M){var D=X(M);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function L(M){return!M.constructor||!M.constructor.name?f:M.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Es}var Ss,rf;function C2(){if(rf)return Ss;rf=1;var e=Fl();function t(){}function n(){}return n.resetWarningCache=t,Ss=function(){function r(l,c,u,a,s,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ss}var of;function _2(){if(of)return To.exports;if(of=1,process.env.NODE_ENV!=="production"){var e=j0(),t=!0;To.exports=S2()(e.isElement,t)}else To.exports=C2()();return To.exports}var Cs,sf;function P2(){if(sf)return Cs;sf=1;function e(v){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(y){return typeof y}:e=function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},e(v)}var t=o(R),n=o(y2()),r=o(_2());function o(v){return v&&v.__esModule?v:{default:v}}function i(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function l(v,y){for(var b=0;b<y.length;b++){var w=y[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}function c(v,y,b){return y&&l(v.prototype,y),v}function u(v,y){return y&&(e(y)==="object"||typeof y=="function")?y:s(v)}function a(v){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},a(v)}function s(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function d(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),y&&f(v,y)}function f(v,y){return f=Object.setPrototypeOf||function(b,w){return b.__proto__=w,b},f(v,y)}var p,m=t.default.version.split(/[.-]/);m[0]==="0"&&(m[1]==="13"||m[1]==="12")?p=function(v){return v.getDOMNode()}:p=function(v){return v};var h=(function(v){d(y,v);function y(b){var w;return i(this,y),w=u(this,a(y).call(this,b)),w.renderElementRef=t.default.createRef(),w.update=w.update.bind(s(w)),w}return c(y,[{key:"shouldComponentUpdate",value:function(b){var w=this;return Object.keys(y.propTypes).some(function(S){return w.props[S]!==b[S]})}},{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var b=p(this.renderElementRef.current);try{new n.default(b,this.props.value,Object.assign({text:this.props.text||this.props.value},this.props))}catch(w){window.console.error(w)}}},{key:"render",value:function(){var b=this.props,w=b.id,S=b.className;if(this.props.renderer==="svg")return t.default.createElement("svg",{ref:this.renderElementRef,id:w,className:S});if(this.props.renderer==="canvas")return t.default.createElement("canvas",{ref:this.renderElementRef,id:w,className:S});if(this.props.renderer==="img")return t.default.createElement("img",{ref:this.renderElementRef,id:w,className:S})}}]),y})(t.default.Component);return h.propTypes={value:r.default.string.isRequired,text:r.default.string,renderer:r.default.string,format:r.default.string,width:r.default.number,height:r.default.number,displayValue:r.default.bool,fontOptions:r.default.string,font:r.default.string,textAlign:r.default.string,textPosition:r.default.string,textMargin:r.default.number,fontSize:r.default.number,background:r.default.string,lineColor:r.default.string,margin:r.default.number,marginTop:r.default.number,marginBottom:r.default.number,marginLeft:r.default.number,marginRight:r.default.number,id:r.default.string,className:r.default.string,ean128:r.default.bool},h.defaultProps={format:"CODE128",renderer:"svg",width:2,height:100,displayValue:!0,fontOptions:"",font:"monospace",textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,className:"",ean128:!1},Cs=h,Cs}P2();const R2=R.forwardRef(({children:e,className:t,disabled:n,...r},o)=>x.jsx(pS,{ref:o,disabled:n,className:he("w-full h-auto outline-0 hover:bg-gray-3 px-4 py-[5px] cursor-pointer",{"text-gray-6 cursor-not-allowed":n},t),...r,children:x.jsx(hS,{className:"whitespace-nowrap",children:e})}));R2.displayName="SelectItem";const O2=R.forwardRef(({value:e,onChange:t,placeholder:n="Buscar...",disabled:r},o)=>x.jsx("div",{className:"px-2 py-2 border-b border-gray-4 bg-white sticky top-0",onPointerDown:i=>{i.stopPropagation()},children:x.jsx("input",{ref:o,type:"text",value:e,onChange:t,placeholder:n,disabled:r,autoComplete:"off",autoFocus:!0,className:he("w-full px-3 py-1.5 text-sm border border-gray-4 rounded outline-none","focus:border-primary-blue focus:ring-1 focus:ring-primary-blue","disabled:bg-gray-3 disabled:cursor-not-allowed"),onKeyDown:i=>{i.stopPropagation()},onMouseDown:i=>{i.stopPropagation()},onPointerDown:i=>{i.stopPropagation()}})}));O2.displayName="SearchInput";var Vl=(e=>(e.cols="grid-cols",e.rows="grid-rows",e.gap="gap",e.justifyItems="justify-items",e.alignContent="content",e.span="col-span",e.start="col-start",e.end="col-end",e.justifySelf="justify-self",e.alignSelf="self",e))(Vl||{});const{cols:G2,gap:X2,justifyItems:K2,alignContent:Y2}=Vl,{span:q2,start:Z2,end:Q2,justifySelf:J2,alignSelf:ej}=Vl,{Text:af}=Pr,T2=({className:e,children:t})=>{const{t:n}=k0.useTranslation();return!t||t.trim()===""?null:pe.jsxRuntimeExports.jsxs(lr,{className:e,align:"center",gap:2,children:[pe.jsxRuntimeExports.jsxs(lr,{align:"center",gap:1,children:[pe.jsxRuntimeExports.jsx(bg,{className:"text-primary-blue size-6"}),pe.jsxRuntimeExports.jsx(af,{className:"text-primary-blue",size:"sm",weight:"semibold",children:n("layout.header.store")})]}),pe.jsxRuntimeExports.jsx(af,{className:"text-grays-macropay-05",size:"sm",weight:"semibold",children:t})]})},{Text:lf}=Pr,j2=({name:e,role:t,imageUrl:n,items:r})=>!e||e.trim()===""?null:pe.jsxRuntimeExports.jsxs(lr,{align:"center",gap:2,children:[pe.jsxRuntimeExports.jsx(WO,{src:n,alt:e,size:"sm"}),pe.jsxRuntimeExports.jsxs(lr,{gap:1,direction:"vertical",children:[pe.jsxRuntimeExports.jsx(lf,{className:"text-primary-blue",size:"sm",weight:"semibold",children:e}),pe.jsxRuntimeExports.jsx(lf,{className:"text-grays-macropay-05",size:"sm",weight:"semibold",children:t})]}),pe.jsxRuntimeExports.jsx(sT,{classNames:{label:"p-0 border-0"},trigger:pe.jsxRuntimeExports.jsx(wg,{className:"rotate-180"}),items:r})]}),A0=({className:e,children:t})=>{if(Array.isArray(t)&&t.length===0)return null;const n=r=>r===t.length-1;return pe.jsxRuntimeExports.jsx(lr,{align:"center",gap:4,className:hn(e),children:t.map((r,o)=>pe.jsxRuntimeExports.jsxs(R.Fragment,{children:[r,n(o)?null:pe.jsxRuntimeExports.jsx(N0,{"data-slot":"separator",orientation:"vertical",decorative:!0,className:hn("shrink-0 bg-grays-macropay-05 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch")})]},o))})};A0.disPlayName="Layout.Header.RightSide";const Mr=({className:e,...t})=>pe.jsxRuntimeExports.jsx("header",{className:hn("sticky top-0 flex h-17 shrink-0 items-center justify-between gap-2 border-b border-gray-200 bg-white px-4 shadow-lg",e),...t});Mr.LeftSide=yg;Mr.Store=T2;Mr.User=j2;Mr.RightSide=A0;const M2=({className:e,children:t,...n})=>pe.jsxRuntimeExports.jsx("div",{className:hn("flex w-full flex-1 flex-col px-4 pt-5",e),...n,children:pe.jsxRuntimeExports.jsx("div",{className:"flex-1 rounded-lg bg-white p-4",children:t})}),A2=({className:e,...t})=>pe.jsxRuntimeExports.jsx("footer",{className:hn("bottom-0 w-full px-6 py-4 text-center text-xs text-grays-macropay-05",e),...t}),Fi=({children:e,loading:t,...n})=>pe.jsxRuntimeExports.jsxs("main",{"data-slot":"sidebar-inset",className:"relative flex min-h-svh w-full flex-1 flex-col bg-grays-macropay-02",...n,children:[e,t&&pe.jsxRuntimeExports.jsx(pe.Root,{className:"position bg-opacity-50 absolute top-0 left-0 z-50 flex h-full w-full items-center justify-center"})]});Fi.Header=Mr;Fi.Content=M2;Fi.Footer=A2;exports.RootLayout=Fi;
134
+ */var Sa,ef;function N2(){if(ef)return Sa;ef=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(a){return l[a]});if(u.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(a){s[a]=a}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sa=o()?Object.assign:function(i,l){for(var c,u=r(i),s,a=1;a<arguments.length;a++){c=Object(arguments[a]);for(var d in c)t.call(c,d)&&(u[d]=c[d]);if(e){s=e(c);for(var f=0;f<s.length;f++)n.call(c,s[f])&&(u[s[f]]=c[s[f]])}}return u},Sa}var Ca,tf;function $l(){if(tf)return Ca;tf=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ca=e,Ca}var nf,rf;function zg(){return rf||(rf=1,nf=Function.call.bind(Object.prototype.hasOwnProperty)),nf}var _a,of;function F2(){if(of)return _a;of=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=$l(),n={},r=zg();e=function(i){var l="Warning: "+i;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(i,l,c,u,s){if(process.env.NODE_ENV!=="production"){for(var a in i)if(r(i,a)){var d;try{if(typeof i[a]!="function"){var f=Error((u||"React class")+": "+c+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=i[a](l,a,u,c,null,t)}catch(m){d=m}if(d&&!(d instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=s?s():"";e("Failed "+c+" type: "+d.message+(p??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},_a=o,_a}var Pa,af;function V2(){if(af)return Pa;af=1;var e=Bg(),t=N2(),n=$l(),r=zg(),o=F2(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return Pa=function(c,u){var s=typeof Symbol=="function"&&Symbol.iterator,a="@@iterator";function d(M){var D=M&&(s&&M[s]||M[a]);if(typeof D=="function")return D}var f="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:b(),arrayOf:x,element:S(),elementType:E(),instanceOf:A,node:P(),objectOf:O,oneOf:j,oneOfType:T,shape:R,exact:$};function m(M,D){return M===D?M!==0||1/M===1/D:M!==M&&D!==D}function h(M,D){this.message=M,this.data=D&&typeof D=="object"?D:{},this.stack=""}h.prototype=Error.prototype;function v(M){if(process.env.NODE_ENV!=="production")var D={},ee=0;function J(ne,te,V,q,Y,U,oe){if(q=q||f,U=U||V,oe!==n){if(u){var I=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw I.name="Invariant Violation",I}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=q+":"+V;!D[de]&&ee<3&&(i("You are manually calling a React.PropTypes validation function for the `"+U+"` prop on `"+q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[de]=!0,ee++)}}return te[V]==null?ne?te[V]===null?new h("The "+Y+" `"+U+"` is marked as required "+("in `"+q+"`, but its value is `null`.")):new h("The "+Y+" `"+U+"` is marked as required in "+("`"+q+"`, but its value is `undefined`.")):null:M(te,V,q,Y,U)}var K=J.bind(null,!1);return K.isRequired=J.bind(null,!0),K}function y(M){function D(ee,J,K,ne,te,V){var q=ee[J],Y=B(q);if(Y!==M){var U=X(q);return new h("Invalid "+ne+" `"+te+"` of type "+("`"+U+"` supplied to `"+K+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return v(D)}function b(){return v(l)}function x(M){function D(ee,J,K,ne,te){if(typeof M!="function")return new h("Property `"+te+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var V=ee[J];if(!Array.isArray(V)){var q=B(V);return new h("Invalid "+ne+" `"+te+"` of type "+("`"+q+"` supplied to `"+K+"`, expected an array."))}for(var Y=0;Y<V.length;Y++){var U=M(V,Y,K,ne,te+"["+Y+"]",n);if(U instanceof Error)return U}return null}return v(D)}function S(){function M(D,ee,J,K,ne){var te=D[ee];if(!c(te)){var V=B(te);return new h("Invalid "+K+" `"+ne+"` of type "+("`"+V+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return v(M)}function E(){function M(D,ee,J,K,ne){var te=D[ee];if(!e.isValidElementType(te)){var V=B(te);return new h("Invalid "+K+" `"+ne+"` of type "+("`"+V+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return v(M)}function A(M){function D(ee,J,K,ne,te){if(!(ee[J]instanceof M)){var V=M.name||f,q=L(ee[J]);return new h("Invalid "+ne+" `"+te+"` of type "+("`"+q+"` supplied to `"+K+"`, expected ")+("instance of `"+V+"`."))}return null}return v(D)}function j(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),l;function D(ee,J,K,ne,te){for(var V=ee[J],q=0;q<M.length;q++)if(m(V,M[q]))return null;var Y=JSON.stringify(M,function(U,oe){var I=X(oe);return I==="symbol"?String(oe):oe});return new h("Invalid "+ne+" `"+te+"` of value `"+String(V)+"` "+("supplied to `"+K+"`, expected one of "+Y+"."))}return v(D)}function O(M){function D(ee,J,K,ne,te){if(typeof M!="function")return new h("Property `"+te+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var V=ee[J],q=B(V);if(q!=="object")return new h("Invalid "+ne+" `"+te+"` of type "+("`"+q+"` supplied to `"+K+"`, expected an object."));for(var Y in V)if(r(V,Y)){var U=M(V,Y,K,ne,te+"."+Y,n);if(U instanceof Error)return U}return null}return v(D)}function T(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var D=0;D<M.length;D++){var ee=M[D];if(typeof ee!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+G(ee)+" at index "+D+"."),l}function J(K,ne,te,V,q){for(var Y=[],U=0;U<M.length;U++){var oe=M[U],I=oe(K,ne,te,V,q,n);if(I==null)return null;I.data&&r(I.data,"expectedType")&&Y.push(I.data.expectedType)}var de=Y.length>0?", expected one of type ["+Y.join(", ")+"]":"";return new h("Invalid "+V+" `"+q+"` supplied to "+("`"+te+"`"+de+"."))}return v(J)}function P(){function M(D,ee,J,K,ne){return F(D[ee])?null:new h("Invalid "+K+" `"+ne+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return v(M)}function k(M,D,ee,J,K){return new h((M||"React class")+": "+D+" type `"+ee+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function R(M){function D(ee,J,K,ne,te){var V=ee[J],q=B(V);if(q!=="object")return new h("Invalid "+ne+" `"+te+"` of type `"+q+"` "+("supplied to `"+K+"`, expected `object`."));for(var Y in M){var U=M[Y];if(typeof U!="function")return k(K,ne,te,Y,X(U));var oe=U(V,Y,K,ne,te+"."+Y,n);if(oe)return oe}return null}return v(D)}function $(M){function D(ee,J,K,ne,te){var V=ee[J],q=B(V);if(q!=="object")return new h("Invalid "+ne+" `"+te+"` of type `"+q+"` "+("supplied to `"+K+"`, expected `object`."));var Y=t({},ee[J],M);for(var U in Y){var oe=M[U];if(r(M,U)&&typeof oe!="function")return k(K,ne,te,U,X(oe));if(!oe)return new h("Invalid "+ne+" `"+te+"` key `"+U+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(ee[J],null," ")+`
135
+ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var I=oe(V,U,K,ne,te+"."+U,n);if(I)return I}return null}return v(D)}function F(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(F);if(M===null||c(M))return!0;var D=d(M);if(D){var ee=D.call(M),J;if(D!==M.entries){for(;!(J=ee.next()).done;)if(!F(J.value))return!1}else for(;!(J=ee.next()).done;){var K=J.value;if(K&&!F(K[1]))return!1}}else return!1;return!0;default:return!1}}function H(M,D){return M==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function B(M){var D=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":H(D,M)?"symbol":D}function X(M){if(typeof M>"u"||M===null)return""+M;var D=B(M);if(D==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return D}function G(M){var D=X(M);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function L(M){return!M.constructor||!M.constructor.name?f:M.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Pa}var Ra,sf;function $2(){if(sf)return Ra;sf=1;var e=$l();function t(){}function n(){}return n.resetWarningCache=t,Ra=function(){function r(l,c,u,s,a,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ra}var lf;function B2(){if(lf)return jo.exports;if(lf=1,process.env.NODE_ENV!=="production"){var e=Bg(),t=!0;jo.exports=V2()(e.isElement,t)}else jo.exports=$2()();return jo.exports}var Oa,uf;function z2(){if(uf)return Oa;uf=1;function e(v){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(y){return typeof y}:e=function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},e(v)}var t=o(_),n=o(D2()),r=o(B2());function o(v){return v&&v.__esModule?v:{default:v}}function i(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function l(v,y){for(var b=0;b<y.length;b++){var x=y[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}function c(v,y,b){return y&&l(v.prototype,y),v}function u(v,y){return y&&(e(y)==="object"||typeof y=="function")?y:a(v)}function s(v){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},s(v)}function a(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function d(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),y&&f(v,y)}function f(v,y){return f=Object.setPrototypeOf||function(b,x){return b.__proto__=x,b},f(v,y)}var p,m=t.default.version.split(/[.-]/);m[0]==="0"&&(m[1]==="13"||m[1]==="12")?p=function(v){return v.getDOMNode()}:p=function(v){return v};var h=(function(v){d(y,v);function y(b){var x;return i(this,y),x=u(this,s(y).call(this,b)),x.renderElementRef=t.default.createRef(),x.update=x.update.bind(a(x)),x}return c(y,[{key:"shouldComponentUpdate",value:function(b){var x=this;return Object.keys(y.propTypes).some(function(S){return x.props[S]!==b[S]})}},{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var b=p(this.renderElementRef.current);try{new n.default(b,this.props.value,Object.assign({text:this.props.text||this.props.value},this.props))}catch(x){window.console.error(x)}}},{key:"render",value:function(){var b=this.props,x=b.id,S=b.className;if(this.props.renderer==="svg")return t.default.createElement("svg",{ref:this.renderElementRef,id:x,className:S});if(this.props.renderer==="canvas")return t.default.createElement("canvas",{ref:this.renderElementRef,id:x,className:S});if(this.props.renderer==="img")return t.default.createElement("img",{ref:this.renderElementRef,id:x,className:S})}}]),y})(t.default.Component);return h.propTypes={value:r.default.string.isRequired,text:r.default.string,renderer:r.default.string,format:r.default.string,width:r.default.number,height:r.default.number,displayValue:r.default.bool,fontOptions:r.default.string,font:r.default.string,textAlign:r.default.string,textPosition:r.default.string,textMargin:r.default.number,fontSize:r.default.number,background:r.default.string,lineColor:r.default.string,margin:r.default.number,marginTop:r.default.number,marginBottom:r.default.number,marginLeft:r.default.number,marginRight:r.default.number,id:r.default.string,className:r.default.string,ean128:r.default.bool},h.defaultProps={format:"CODE128",renderer:"svg",width:2,height:100,displayValue:!0,fontOptions:"",font:"monospace",textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,className:"",ean128:!1},Oa=h,Oa}z2();const U2=_.forwardRef(({children:e,className:t,disabled:n,...r},o)=>w.jsx(CS,{ref:o,disabled:n,className:me("w-full h-auto outline-0 hover:bg-gray-3 px-4 py-[5px] cursor-pointer",{"text-gray-6 cursor-not-allowed":n},t),...r,children:w.jsx(_S,{className:"whitespace-nowrap",children:e})}));U2.displayName="SelectItem";const H2=_.forwardRef(({value:e,onChange:t,placeholder:n="Buscar...",disabled:r},o)=>w.jsx("div",{className:"px-2 py-2 border-b border-gray-4 bg-white sticky top-0",onPointerDown:i=>{i.stopPropagation()},children:w.jsx("input",{ref:o,type:"text",value:e,onChange:t,placeholder:n,disabled:r,autoComplete:"off",autoFocus:!0,className:me("w-full px-3 py-1.5 text-sm border border-gray-4 rounded outline-none","focus:border-primary-blue focus:ring-1 focus:ring-primary-blue","disabled:bg-gray-3 disabled:cursor-not-allowed"),onKeyDown:i=>{i.stopPropagation()},onMouseDown:i=>{i.stopPropagation()},onPointerDown:i=>{i.stopPropagation()}})}));H2.displayName="SearchInput";var Bl=(e=>(e.cols="grid-cols",e.rows="grid-rows",e.gap="gap",e.justifyItems="justify-items",e.alignContent="content",e.span="col-span",e.start="col-start",e.end="col-end",e.justifySelf="justify-self",e.alignSelf="self",e))(Bl||{});const{cols:lj,gap:uj,justifyItems:cj,alignContent:dj}=Bl,{span:fj,start:pj,end:hj,justifySelf:mj,alignSelf:vj}=Bl;_.createContext({size:"default",variant:"default",spacing:0,orientation:"horizontal"});const{Text:cf}=Rr,G2=({className:e,children:t})=>{const{t:n}=Hg.useTranslation();return!t||t.trim()===""?null:pe.jsxRuntimeExports.jsxs(ur,{className:e,align:"center",gap:2,children:[pe.jsxRuntimeExports.jsxs(ur,{align:"center",gap:1,children:[pe.jsxRuntimeExports.jsx(qg,{className:"text-primary-blue size-6"}),pe.jsxRuntimeExports.jsx(cf,{className:"text-primary-blue",size:"sm",weight:"semibold",children:n("layout.header.store")})]}),pe.jsxRuntimeExports.jsx(cf,{className:"text-grays-macropay-05",size:"sm",weight:"semibold",children:t})]})},{Text:df}=Rr,W2=({name:e,role:t,imageUrl:n,items:r})=>!e||e.trim()===""?null:pe.jsxRuntimeExports.jsxs(ur,{align:"center",gap:2,children:[pe.jsxRuntimeExports.jsx(sT,{src:n,alt:e,size:"sm"}),pe.jsxRuntimeExports.jsxs(ur,{gap:1,direction:"vertical",children:[pe.jsxRuntimeExports.jsx(df,{className:"text-primary-blue",size:"sm",weight:"semibold",children:e}),pe.jsxRuntimeExports.jsx(df,{className:"text-grays-macropay-05",size:"sm",weight:"semibold",children:t})]}),pe.jsxRuntimeExports.jsx(ET,{classNames:{label:"p-0 border-0"},trigger:pe.jsxRuntimeExports.jsx(Zg,{className:"rotate-180"}),items:r})]}),Ug=({className:e,children:t})=>{if(Array.isArray(t)&&t.length===0)return null;const n=r=>r===t.length-1;return pe.jsxRuntimeExports.jsx(ur,{align:"center",gap:4,className:gn.cn(e),children:t.map((r,o)=>pe.jsxRuntimeExports.jsxs(_.Fragment,{children:[r,n(o)?null:pe.jsxRuntimeExports.jsx(Kg,{"data-slot":"separator",orientation:"vertical",decorative:!0,className:gn.cn("shrink-0 bg-grays-macropay-05 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch")})]},o))})};Ug.disPlayName="Layout.Header.RightSide";const Ar=({className:e,...t})=>pe.jsxRuntimeExports.jsx("header",{className:gn.cn("sticky top-0 flex h-17 shrink-0 items-center justify-between gap-2 border-b border-gray-200 bg-white px-4 shadow-lg",e),...t});Ar.LeftSide=Yg;Ar.Store=G2;Ar.User=W2;Ar.RightSide=Ug;const X2=({className:e,children:t,...n})=>pe.jsxRuntimeExports.jsx("div",{className:gn.cn("flex w-full flex-1 flex-col px-4 pt-5",e),...n,children:pe.jsxRuntimeExports.jsx("div",{className:"flex-1 rounded-lg bg-white p-4",children:t})}),K2=({className:e,...t})=>pe.jsxRuntimeExports.jsx("footer",{className:gn.cn("bottom-0 w-full px-6 py-4 text-center text-xs text-grays-macropay-05",e),...t}),zi=({children:e,loading:t,...n})=>pe.jsxRuntimeExports.jsxs("main",{"data-slot":"sidebar-inset",className:"relative flex min-h-svh w-full flex-1 flex-col bg-grays-macropay-02",...n,children:[e,t&&pe.jsxRuntimeExports.jsx(pe.Root,{className:"position bg-opacity-50 absolute top-0 left-0 z-50 flex h-full w-full items-center justify-center"})]});zi.Header=Ar;zi.Content=X2;zi.Footer=K2;exports.RootLayout=zi;