@local-logic/design-system 0.7.38 → 0.7.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(H,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],v):(H=typeof globalThis<"u"?globalThis:H||self,v(H.LocalLogicDesignSystem={},H.jsxRuntime,H.React,H.ReactDOM))})(this,function(H,v,E,ms){"use strict";function gs(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 d=gs(E),ys=gs(ms),_r="-",Of=e=>{const t=Ff(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(_r);return a[0]===""&&a.length!==1&&a.shift(),vs(a,t)||Vf(s)},getConflictingClassGroupIds:(s,a)=>{const c=n[s]||[];return a&&r[s]?[...c,...r[s]]:c}}},vs=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?vs(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(_r);return t.validators.find(({validator:s})=>s(i))?.classGroupId},bs=/^\[(.+)\]$/,Vf=e=>{if(bs.test(e)){const t=bs.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ff=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)jr(n[o],r,o,t);return r},jr=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:ws(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(kf(o)){jr(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{jr(s,ws(t,i),n,r)})})},ws=(e,t)=>{let n=e;return t.split(_r).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},kf=e=>e.isThemeGetter,If=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Br="!",$r=":",Nf=$r.length,Lf=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,c=0,l;for(let y=0;y<o.length;y++){let m=o[y];if(s===0&&a===0){if(m===$r){i.push(o.slice(c,y)),c=y+Nf;continue}if(m==="/"){l=y;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const u=i.length===0?o:o.substring(c),f=Rf(u),h=f!==u,p=l&&l>c?l-c:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:p}};if(t){const o=t+$r,i=r;r=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},Rf=e=>e.endsWith(Br)?e.substring(0,e.length-1):e.startsWith(Br)?e.substring(1):e,_f=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},jf=e=>({cache:If(e.cacheSize),parseClassName:Lf(e),sortModifiers:_f(e),...Of(e)}),Bf=/\s+/,$f=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Bf);let c="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{isExternal:f,modifiers:h,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}=n(u);if(f){c=u+(c.length>0?" "+c:c);continue}let g=!!m,b=r(g?y.substring(0,m):y);if(!b){if(!g){c=u+(c.length>0?" "+c:c);continue}if(b=r(y),!b){c=u+(c.length>0?" "+c:c);continue}g=!1}const x=i(h).join(":"),T=p?x+Br:x,P=T+b;if(s.includes(P))continue;s.push(P);const w=o(b,g);for(let C=0;C<w.length;++C){const A=w[C];s.push(T+A)}c=u+(c.length>0?" "+c:c)}return c};function Uf(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Ts(t))&&(r&&(r+=" "),r+=n);return r}const Ts=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ts(e[r]))&&(n&&(n+=" "),n+=t);return n};function Wf(e,...t){let n,r,o,i=s;function s(c){const l=t.reduce((u,f)=>f(u),e());return n=jf(l),r=n.cache.get,o=n.cache.set,i=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=$f(c,n);return o(c,u),u}return function(){return i(Uf.apply(null,arguments))}}const pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Es=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xs=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zf=/^\d+\/\d+$/,Zf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hf=/\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$/,Kf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Gf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ut=e=>zf.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),at=e=>!!e&&Number.isInteger(Number(e)),Ur=e=>e.endsWith("%")&&B(e.slice(0,-1)),Ge=e=>Zf.test(e),Xf=()=>!0,qf=e=>Hf.test(e)&&!Kf.test(e),Ss=()=>!1,Qf=e=>Gf.test(e),Jf=e=>Yf.test(e),eh=e=>!V(e)&&!F(e),th=e=>Wt(e,Ds,Ss),V=e=>Es.test(e),Tt=e=>Wt(e,Os,qf),Wr=e=>Wt(e,sh,B),As=e=>Wt(e,Ps,Ss),nh=e=>Wt(e,Ms,Jf),Zn=e=>Wt(e,Vs,Qf),F=e=>xs.test(e),gn=e=>zt(e,Os),rh=e=>zt(e,ah),Cs=e=>zt(e,Ps),oh=e=>zt(e,Ds),ih=e=>zt(e,Ms),Hn=e=>zt(e,Vs,!0),Wt=(e,t,n)=>{const r=Es.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},zt=(e,t,n=!1)=>{const r=xs.exec(e);return r?r[1]?t(r[1]):n:!1},Ps=e=>e==="position"||e==="percentage",Ms=e=>e==="image"||e==="url",Ds=e=>e==="length"||e==="size"||e==="bg-size",Os=e=>e==="length",sh=e=>e==="number",ah=e=>e==="family-name",Vs=e=>e==="shadow",ct=Wf(()=>{const e=pe("color"),t=pe("font"),n=pe("text"),r=pe("font-weight"),o=pe("tracking"),i=pe("leading"),s=pe("breakpoint"),a=pe("container"),c=pe("spacing"),l=pe("radius"),u=pe("shadow"),f=pe("inset-shadow"),h=pe("text-shadow"),p=pe("drop-shadow"),y=pe("blur"),m=pe("perspective"),g=pe("aspect"),b=pe("ease"),x=pe("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...P(),F,V],C=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],M=()=>[F,V,c],N=()=>[Ut,"full","auto",...M()],j=()=>[at,"none","subgrid",F,V],J=()=>["auto",{span:["full",at,F,V]},at,F,V],Ee=()=>[at,"auto",F,V],de=()=>["auto","min","max","fr",F,V],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ee=()=>["start","end","center","stretch","center-safe","end-safe"],ie=()=>["auto",...M()],U=()=>[Ut,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],D=()=>[e,F,V],he=()=>[...P(),Cs,As,{position:[F,V]}],we=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Me=()=>["auto","cover","contain",oh,th,{size:[F,V]}],xe=()=>[Ur,gn,Tt],X=()=>["","none","full",l,F,V],ae=()=>["",B,gn,Tt],De=()=>["solid","dashed","dotted","double"],Bt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[B,Ur,Cs,As],$t=()=>["","none",y,F,V],ot=()=>["none",B,F,V],it=()=>["none",B,F,V],st=()=>[B,F,V],k=()=>[Ut,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ge],breakpoint:[Ge],color:[Xf],container:[Ge],"drop-shadow":[Ge],ease:["in","out","in-out"],font:[eh],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ge],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ge],shadow:[Ge],spacing:["px",B],text:[Ge],"text-shadow":[Ge],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ut,V,F,g]}],container:["container"],columns:[{columns:[B,V,F,a]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[at,"auto",F,V]}],basis:[{basis:[Ut,"full","auto",a,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[B,Ut,"auto","initial","none",V]}],grow:[{grow:["",B,F,V]}],shrink:[{shrink:["",B,F,V]}],order:[{order:[at,"first","last","none",F,V]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":Ee()}],"col-end":[{"col-end":Ee()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":Ee()}],"row-end":[{"row-end":Ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:ie()}],mx:[{mx:ie()}],my:[{my:ie()}],ms:[{ms:ie()}],me:[{me:ie()}],mt:[{mt:ie()}],mr:[{mr:ie()}],mb:[{mb:ie()}],ml:[{ml:ie()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[a,"screen",...U()]}],"min-w":[{"min-w":[a,"screen","none",...U()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",n,gn,Tt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,F,Wr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ur,V]}],"font-family":[{font:[rh,V,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,F,V]}],"line-clamp":[{"line-clamp":[B,"none",F,Wr]}],leading:[{leading:[i,...M()]}],"list-image":[{"list-image":["none",F,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",F,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:[B,"from-font","auto",F,Tt]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[B,"auto",F,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F,V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:he()}],"bg-repeat":[{bg:we()}],"bg-size":[{bg:Me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},at,F,V],radial:["",F,V],conic:[at,F,V]},ih,nh]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:xe()}],"gradient-via-pos":[{via:xe()}],"gradient-to-pos":[{to:xe()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...De(),"hidden","none"]}],"divide-style":[{divide:[...De(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...De(),"none","hidden"]}],"outline-offset":[{"outline-offset":[B,F,V]}],"outline-w":[{outline:["",B,gn,Tt]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",u,Hn,Zn]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",f,Hn,Zn]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[B,Tt]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",h,Hn,Zn]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[B,F,V]}],"mix-blend":[{"mix-blend":[...Bt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Bt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[B]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[F,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[B]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:he()}],"mask-repeat":[{mask:we()}],"mask-size":[{mask:Me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,V]}],filter:[{filter:["","none",F,V]}],blur:[{blur:$t()}],brightness:[{brightness:[B,F,V]}],contrast:[{contrast:[B,F,V]}],"drop-shadow":[{"drop-shadow":["","none",p,Hn,Zn]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",B,F,V]}],"hue-rotate":[{"hue-rotate":[B,F,V]}],invert:[{invert:["",B,F,V]}],saturate:[{saturate:[B,F,V]}],sepia:[{sepia:["",B,F,V]}],"backdrop-filter":[{"backdrop-filter":["","none",F,V]}],"backdrop-blur":[{"backdrop-blur":$t()}],"backdrop-brightness":[{"backdrop-brightness":[B,F,V]}],"backdrop-contrast":[{"backdrop-contrast":[B,F,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",B,F,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,F,V]}],"backdrop-invert":[{"backdrop-invert":["",B,F,V]}],"backdrop-opacity":[{"backdrop-opacity":[B,F,V]}],"backdrop-saturate":[{"backdrop-saturate":[B,F,V]}],"backdrop-sepia":[{"backdrop-sepia":["",B,F,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",F,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[B,"initial",F,V]}],ease:[{ease:["linear","initial",b,F,V]}],delay:[{delay:[B,F,V]}],animate:[{animate:["none",x,F,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,F,V]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:ot()}],"rotate-x":[{"rotate-x":ot()}],"rotate-y":[{"rotate-y":ot()}],"rotate-z":[{"rotate-z":ot()}],scale:[{scale:it()}],"scale-x":[{"scale-x":it()}],"scale-y":[{"scale-y":it()}],"scale-z":[{"scale-z":it()}],"scale-3d":["scale-3d"],skew:[{skew:st()}],"skew-x":[{"skew-x":st()}],"skew-y":[{"skew-y":st()}],transform:[{transform:[F,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:k()}],"translate-x":[{"translate-x":k()}],"translate-y":[{"translate-y":k()}],"translate-z":[{"translate-z":k()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F,V]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",F,V]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[B,gn,Tt,Wr]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),ch=`
1
+ (function(H,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],v):(H=typeof globalThis<"u"?globalThis:H||self,v(H.LocalLogicDesignSystem={},H.jsxRuntime,H.React,H.ReactDOM))})(this,function(H,v,E,ms){"use strict";function gs(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 d=gs(E),ys=gs(ms),_r="-",Of=e=>{const t=Ff(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(_r);return a[0]===""&&a.length!==1&&a.shift(),vs(a,t)||Vf(s)},getConflictingClassGroupIds:(s,a)=>{const c=n[s]||[];return a&&r[s]?[...c,...r[s]]:c}}},vs=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?vs(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(_r);return t.validators.find(({validator:s})=>s(i))?.classGroupId},bs=/^\[(.+)\]$/,Vf=e=>{if(bs.test(e)){const t=bs.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ff=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)jr(n[o],r,o,t);return r},jr=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:ws(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(kf(o)){jr(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{jr(s,ws(t,i),n,r)})})},ws=(e,t)=>{let n=e;return t.split(_r).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},kf=e=>e.isThemeGetter,If=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Br="!",$r=":",Nf=$r.length,Lf=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,c=0,l;for(let y=0;y<o.length;y++){let m=o[y];if(s===0&&a===0){if(m===$r){i.push(o.slice(c,y)),c=y+Nf;continue}if(m==="/"){l=y;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const u=i.length===0?o:o.substring(c),f=Rf(u),h=f!==u,p=l&&l>c?l-c:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:p}};if(t){const o=t+$r,i=r;r=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},Rf=e=>e.endsWith(Br)?e.substring(0,e.length-1):e.startsWith(Br)?e.substring(1):e,_f=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},jf=e=>({cache:If(e.cacheSize),parseClassName:Lf(e),sortModifiers:_f(e),...Of(e)}),Bf=/\s+/,$f=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Bf);let c="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{isExternal:f,modifiers:h,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}=n(u);if(f){c=u+(c.length>0?" "+c:c);continue}let g=!!m,b=r(g?y.substring(0,m):y);if(!b){if(!g){c=u+(c.length>0?" "+c:c);continue}if(b=r(y),!b){c=u+(c.length>0?" "+c:c);continue}g=!1}const x=i(h).join(":"),T=p?x+Br:x,P=T+b;if(s.includes(P))continue;s.push(P);const w=o(b,g);for(let M=0;M<w.length;++M){const A=w[M];s.push(T+A)}c=u+(c.length>0?" "+c:c)}return c};function Uf(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Ts(t))&&(r&&(r+=" "),r+=n);return r}const Ts=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ts(e[r]))&&(n&&(n+=" "),n+=t);return n};function Wf(e,...t){let n,r,o,i=s;function s(c){const l=t.reduce((u,f)=>f(u),e());return n=jf(l),r=n.cache.get,o=n.cache.set,i=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=$f(c,n);return o(c,u),u}return function(){return i(Uf.apply(null,arguments))}}const pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Es=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xs=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zf=/^\d+\/\d+$/,Zf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hf=/\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$/,Kf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Gf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ut=e=>zf.test(e),j=e=>!!e&&!Number.isNaN(Number(e)),at=e=>!!e&&Number.isInteger(Number(e)),Ur=e=>e.endsWith("%")&&j(e.slice(0,-1)),Ge=e=>Zf.test(e),Xf=()=>!0,qf=e=>Hf.test(e)&&!Kf.test(e),Ss=()=>!1,Qf=e=>Gf.test(e),Jf=e=>Yf.test(e),eh=e=>!V(e)&&!F(e),th=e=>Wt(e,Ds,Ss),V=e=>Es.test(e),Tt=e=>Wt(e,Os,qf),Wr=e=>Wt(e,sh,j),As=e=>Wt(e,Ps,Ss),nh=e=>Wt(e,Ms,Jf),Zn=e=>Wt(e,Vs,Qf),F=e=>xs.test(e),gn=e=>zt(e,Os),rh=e=>zt(e,ah),Cs=e=>zt(e,Ps),oh=e=>zt(e,Ds),ih=e=>zt(e,Ms),Hn=e=>zt(e,Vs,!0),Wt=(e,t,n)=>{const r=Es.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},zt=(e,t,n=!1)=>{const r=xs.exec(e);return r?r[1]?t(r[1]):n:!1},Ps=e=>e==="position"||e==="percentage",Ms=e=>e==="image"||e==="url",Ds=e=>e==="length"||e==="size"||e==="bg-size",Os=e=>e==="length",sh=e=>e==="number",ah=e=>e==="family-name",Vs=e=>e==="shadow",ct=Wf(()=>{const e=pe("color"),t=pe("font"),n=pe("text"),r=pe("font-weight"),o=pe("tracking"),i=pe("leading"),s=pe("breakpoint"),a=pe("container"),c=pe("spacing"),l=pe("radius"),u=pe("shadow"),f=pe("inset-shadow"),h=pe("text-shadow"),p=pe("drop-shadow"),y=pe("blur"),m=pe("perspective"),g=pe("aspect"),b=pe("ease"),x=pe("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...P(),F,V],M=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],C=()=>[F,V,c],L=()=>[Ut,"full","auto",...C()],$=()=>[at,"none","subgrid",F,V],J=()=>["auto",{span:["full",at,F,V]},at,F,V],Ee=()=>[at,"auto",F,V],de=()=>["auto","min","max","fr",F,V],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ee=()=>["start","end","center","stretch","center-safe","end-safe"],ie=()=>["auto",...C()],U=()=>[Ut,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],D=()=>[e,F,V],he=()=>[...P(),Cs,As,{position:[F,V]}],we=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Me=()=>["auto","cover","contain",oh,th,{size:[F,V]}],xe=()=>[Ur,gn,Tt],X=()=>["","none","full",l,F,V],ae=()=>["",j,gn,Tt],De=()=>["solid","dashed","dotted","double"],Bt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[j,Ur,Cs,As],$t=()=>["","none",y,F,V],ot=()=>["none",j,F,V],it=()=>["none",j,F,V],st=()=>[j,F,V],k=()=>[Ut,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ge],breakpoint:[Ge],color:[Xf],container:[Ge],"drop-shadow":[Ge],ease:["in","out","in-out"],font:[eh],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ge],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ge],shadow:[Ge],spacing:["px",j],text:[Ge],"text-shadow":[Ge],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ut,V,F,g]}],container:["container"],columns:[{columns:[j,V,F,a]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[at,"auto",F,V]}],basis:[{basis:[Ut,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[j,Ut,"auto","initial","none",V]}],grow:[{grow:["",j,F,V]}],shrink:[{shrink:["",j,F,V]}],order:[{order:[at,"first","last","none",F,V]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":Ee()}],"col-end":[{"col-end":Ee()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":Ee()}],"row-end":[{"row-end":Ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:ie()}],mx:[{mx:ie()}],my:[{my:ie()}],ms:[{ms:ie()}],me:[{me:ie()}],mt:[{mt:ie()}],mr:[{mr:ie()}],mb:[{mb:ie()}],ml:[{ml:ie()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[a,"screen",...U()]}],"min-w":[{"min-w":[a,"screen","none",...U()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",n,gn,Tt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,F,Wr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ur,V]}],"font-family":[{font:[rh,V,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,F,V]}],"line-clamp":[{"line-clamp":[j,"none",F,Wr]}],leading:[{leading:[i,...C()]}],"list-image":[{"list-image":["none",F,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",F,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:[j,"from-font","auto",F,Tt]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[j,"auto",F,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F,V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:he()}],"bg-repeat":[{bg:we()}],"bg-size":[{bg:Me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},at,F,V],radial:["",F,V],conic:[at,F,V]},ih,nh]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:xe()}],"gradient-via-pos":[{via:xe()}],"gradient-to-pos":[{to:xe()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...De(),"hidden","none"]}],"divide-style":[{divide:[...De(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...De(),"none","hidden"]}],"outline-offset":[{"outline-offset":[j,F,V]}],"outline-w":[{outline:["",j,gn,Tt]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",u,Hn,Zn]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",f,Hn,Zn]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[j,Tt]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",h,Hn,Zn]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[j,F,V]}],"mix-blend":[{"mix-blend":[...Bt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Bt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[j]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[F,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[j]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:he()}],"mask-repeat":[{mask:we()}],"mask-size":[{mask:Me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,V]}],filter:[{filter:["","none",F,V]}],blur:[{blur:$t()}],brightness:[{brightness:[j,F,V]}],contrast:[{contrast:[j,F,V]}],"drop-shadow":[{"drop-shadow":["","none",p,Hn,Zn]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",j,F,V]}],"hue-rotate":[{"hue-rotate":[j,F,V]}],invert:[{invert:["",j,F,V]}],saturate:[{saturate:[j,F,V]}],sepia:[{sepia:["",j,F,V]}],"backdrop-filter":[{"backdrop-filter":["","none",F,V]}],"backdrop-blur":[{"backdrop-blur":$t()}],"backdrop-brightness":[{"backdrop-brightness":[j,F,V]}],"backdrop-contrast":[{"backdrop-contrast":[j,F,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",j,F,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[j,F,V]}],"backdrop-invert":[{"backdrop-invert":["",j,F,V]}],"backdrop-opacity":[{"backdrop-opacity":[j,F,V]}],"backdrop-saturate":[{"backdrop-saturate":[j,F,V]}],"backdrop-sepia":[{"backdrop-sepia":["",j,F,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",F,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[j,"initial",F,V]}],ease:[{ease:["linear","initial",b,F,V]}],delay:[{delay:[j,F,V]}],animate:[{animate:["none",x,F,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,F,V]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:ot()}],"rotate-x":[{"rotate-x":ot()}],"rotate-y":[{"rotate-y":ot()}],"rotate-z":[{"rotate-z":ot()}],scale:[{scale:it()}],"scale-x":[{"scale-x":it()}],"scale-y":[{"scale-y":it()}],"scale-z":[{"scale-z":it()}],"scale-3d":["scale-3d"],skew:[{skew:st()}],"skew-x":[{"skew-x":st()}],"skew-y":[{"skew-y":st()}],transform:[{transform:[F,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:k()}],"translate-x":[{"translate-x":k()}],"translate-y":[{"translate-y":k()}],"translate-z":[{"translate-z":k()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F,V]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",F,V]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[j,gn,Tt,Wr]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),ch=`
2
2
  group justify-center
3
3
  text-lg font-medium no-underline
4
4
  px-5 rounded-xl h-11
@@ -70,9 +70,9 @@
70
70
  fill-[var(--fill)]
71
71
  group-hover/color-icon:fill-base-white
72
72
  group-data-[is-active=true]/color-icon:fill-base-white
73
- `;function Is({element:e,backgroundColor:t="gray",fillColor:n="black"}){return v.jsx("span",{className:dh,"data-testid":"icon-background","data-background-color":t,"data-fill-color":n,style:{"--background":t,"--fill":n},children:E.cloneElement(e,{className:fh,"aria-hidden":"true","data-testid":"icon"})})}function hh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ns={exports:{}},ce=Ns.exports={},_e,je;function zr(){throw new Error("setTimeout has not been defined")}function Zr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_e=setTimeout:_e=zr}catch{_e=zr}try{typeof clearTimeout=="function"?je=clearTimeout:je=Zr}catch{je=Zr}})();function Ls(e){if(_e===setTimeout)return setTimeout(e,0);if((_e===zr||!_e)&&setTimeout)return _e=setTimeout,setTimeout(e,0);try{return _e(e,0)}catch{try{return _e.call(null,e,0)}catch{return _e.call(this,e,0)}}}function ph(e){if(je===clearTimeout)return clearTimeout(e);if((je===Zr||!je)&&clearTimeout)return je=clearTimeout,clearTimeout(e);try{return je(e)}catch{try{return je.call(null,e)}catch{return je.call(this,e)}}}var Ye=[],Zt=!1,Et,Kn=-1;function mh(){!Zt||!Et||(Zt=!1,Et.length?Ye=Et.concat(Ye):Kn=-1,Ye.length&&Rs())}function Rs(){if(!Zt){var e=Ls(mh);Zt=!0;for(var t=Ye.length;t;){for(Et=Ye,Ye=[];++Kn<t;)Et&&Et[Kn].run();Kn=-1,t=Ye.length}Et=null,Zt=!1,ph(e)}}ce.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ye.push(new _s(e,t)),Ye.length===1&&!Zt&&Ls(Rs)};function _s(e,t){this.fun=e,this.array=t}_s.prototype.run=function(){this.fun.apply(null,this.array)},ce.title="browser",ce.browser=!0,ce.env={},ce.argv=[],ce.version="",ce.versions={};function Xe(){}ce.on=Xe,ce.addListener=Xe,ce.once=Xe,ce.off=Xe,ce.removeListener=Xe,ce.removeAllListeners=Xe,ce.emit=Xe,ce.prependListener=Xe,ce.prependOnceListener=Xe,ce.listeners=function(e){return[]},ce.binding=function(e){throw new Error("process.binding is not supported")},ce.cwd=function(){return"/"},ce.chdir=function(e){throw new Error("process.chdir is not supported")},ce.umask=function(){return 0};var gh=Ns.exports;const ne=hh(gh);var yh=function(t){return vh(t)&&!bh(t)};function vh(e){return!!e&&typeof e=="object"}function bh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Eh(e)}var wh=typeof Symbol=="function"&&Symbol.for,Th=wh?Symbol.for("react.element"):60103;function Eh(e){return e.$$typeof===Th}function xh(e){return Array.isArray(e)?[]:{}}function Gn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?vn(xh(e),e,t):e}function Sh(e,t,n){return e.concat(t).map(function(r){return Gn(r,n)})}function Ah(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=Gn(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=Gn(t[o],n):r[o]=vn(e[o],t[o],n)}),r}function vn(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Sh,n.isMergeableObject=n.isMergeableObject||yh;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):Ah(e,t,n):Gn(t,n)}vn.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return vn(r,o,n)},{})};var Hr=vn;const Yn=globalThis||void 0||self;var js=typeof Yn=="object"&&Yn&&Yn.Object===Object&&Yn,Ch=typeof self=="object"&&self&&self.Object===Object&&self,Be=js||Ch||Function("return this")(),lt=Be.Symbol,Bs=Object.prototype,Ph=Bs.hasOwnProperty,Mh=Bs.toString,bn=lt?lt.toStringTag:void 0;function Dh(e){var t=Ph.call(e,bn),n=e[bn];try{e[bn]=void 0;var r=!0}catch{}var o=Mh.call(e);return r&&(t?e[bn]=n:delete e[bn]),o}var Oh=Object.prototype,Vh=Oh.toString;function Fh(e){return Vh.call(e)}var kh="[object Null]",Ih="[object Undefined]",$s=lt?lt.toStringTag:void 0;function xt(e){return e==null?e===void 0?Ih:kh:$s&&$s in Object(e)?Dh(e):Fh(e)}function Us(e,t){return function(n){return e(t(n))}}var Kr=Us(Object.getPrototypeOf,Object);function St(e){return e!=null&&typeof e=="object"}var Nh="[object Object]",Lh=Function.prototype,Rh=Object.prototype,Ws=Lh.toString,_h=Rh.hasOwnProperty,jh=Ws.call(Object);function zs(e){if(!St(e)||xt(e)!=Nh)return!1;var t=Kr(e);if(t===null)return!0;var n=_h.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ws.call(n)==jh}function Bh(){this.__data__=[],this.size=0}function Zs(e,t){return e===t||e!==e&&t!==t}function Xn(e,t){for(var n=e.length;n--;)if(Zs(e[n][0],t))return n;return-1}var $h=Array.prototype,Uh=$h.splice;function Wh(e){var t=this.__data__,n=Xn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Uh.call(t,n,1),--this.size,!0}function zh(e){var t=this.__data__,n=Xn(t,e);return n<0?void 0:t[n][1]}function Zh(e){return Xn(this.__data__,e)>-1}function Hh(e,t){var n=this.__data__,r=Xn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function qe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qe.prototype.clear=Bh,qe.prototype.delete=Wh,qe.prototype.get=zh,qe.prototype.has=Zh,qe.prototype.set=Hh;function Kh(){this.__data__=new qe,this.size=0}function Gh(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Yh(e){return this.__data__.get(e)}function Xh(e){return this.__data__.has(e)}function wn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qh="[object AsyncFunction]",Qh="[object Function]",Jh="[object GeneratorFunction]",ep="[object Proxy]";function Hs(e){if(!wn(e))return!1;var t=xt(e);return t==Qh||t==Jh||t==qh||t==ep}var Gr=Be["__core-js_shared__"],Ks=function(){var e=/[^.]+$/.exec(Gr&&Gr.keys&&Gr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tp(e){return!!Ks&&Ks in e}var np=Function.prototype,rp=np.toString;function At(e){if(e!=null){try{return rp.call(e)}catch{}try{return e+""}catch{}}return""}var op=/[\\^$.*+?()[\]{}|]/g,ip=/^\[object .+?Constructor\]$/,sp=Function.prototype,ap=Object.prototype,cp=sp.toString,lp=ap.hasOwnProperty,up=RegExp("^"+cp.call(lp).replace(op,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dp(e){if(!wn(e)||tp(e))return!1;var t=Hs(e)?up:ip;return t.test(At(e))}function fp(e,t){return e?.[t]}function Ct(e,t){var n=fp(e,t);return dp(n)?n:void 0}var Tn=Ct(Be,"Map"),En=Ct(Object,"create");function hp(){this.__data__=En?En(null):{},this.size=0}function pp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mp="__lodash_hash_undefined__",gp=Object.prototype,yp=gp.hasOwnProperty;function vp(e){var t=this.__data__;if(En){var n=t[e];return n===mp?void 0:n}return yp.call(t,e)?t[e]:void 0}var bp=Object.prototype,wp=bp.hasOwnProperty;function Tp(e){var t=this.__data__;return En?t[e]!==void 0:wp.call(t,e)}var Ep="__lodash_hash_undefined__";function xp(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=En&&t===void 0?Ep:t,this}function Pt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pt.prototype.clear=hp,Pt.prototype.delete=pp,Pt.prototype.get=vp,Pt.prototype.has=Tp,Pt.prototype.set=xp;function Sp(){this.size=0,this.__data__={hash:new Pt,map:new(Tn||qe),string:new Pt}}function Ap(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qn(e,t){var n=e.__data__;return Ap(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Cp(e){var t=qn(this,e).delete(e);return this.size-=t?1:0,t}function Pp(e){return qn(this,e).get(e)}function Mp(e){return qn(this,e).has(e)}function Dp(e,t){var n=qn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ut(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ut.prototype.clear=Sp,ut.prototype.delete=Cp,ut.prototype.get=Pp,ut.prototype.has=Mp,ut.prototype.set=Dp;var Op=200;function Vp(e,t){var n=this.__data__;if(n instanceof qe){var r=n.__data__;if(!Tn||r.length<Op-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ut(r)}return n.set(e,t),this.size=n.size,this}function Ht(e){var t=this.__data__=new qe(e);this.size=t.size}Ht.prototype.clear=Kh,Ht.prototype.delete=Gh,Ht.prototype.get=Yh,Ht.prototype.has=Xh,Ht.prototype.set=Vp;function Fp(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Gs=function(){try{var e=Ct(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Ys(e,t,n){t=="__proto__"&&Gs?Gs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var kp=Object.prototype,Ip=kp.hasOwnProperty;function Xs(e,t,n){var r=e[t];(!(Ip.call(e,t)&&Zs(r,n))||n===void 0&&!(t in e))&&Ys(e,t,n)}function Qn(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],c=void 0;c===void 0&&(c=e[a]),o?Ys(n,a,c):Xs(n,a,c)}return n}function Np(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Lp="[object Arguments]";function qs(e){return St(e)&&xt(e)==Lp}var Qs=Object.prototype,Rp=Qs.hasOwnProperty,_p=Qs.propertyIsEnumerable,jp=qs(function(){return arguments}())?qs:function(e){return St(e)&&Rp.call(e,"callee")&&!_p.call(e,"callee")},xn=Array.isArray;function Bp(){return!1}var Js=typeof H=="object"&&H&&!H.nodeType&&H,ea=Js&&typeof module=="object"&&module&&!module.nodeType&&module,$p=ea&&ea.exports===Js,ta=$p?Be.Buffer:void 0,Up=ta?ta.isBuffer:void 0,na=Up||Bp,Wp=9007199254740991,zp=/^(?:0|[1-9]\d*)$/;function Zp(e,t){var n=typeof e;return t=t??Wp,!!t&&(n=="number"||n!="symbol"&&zp.test(e))&&e>-1&&e%1==0&&e<t}var Hp=9007199254740991;function ra(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hp}var Kp="[object Arguments]",Gp="[object Array]",Yp="[object Boolean]",Xp="[object Date]",qp="[object Error]",Qp="[object Function]",Jp="[object Map]",em="[object Number]",tm="[object Object]",nm="[object RegExp]",rm="[object Set]",om="[object String]",im="[object WeakMap]",sm="[object ArrayBuffer]",am="[object DataView]",cm="[object Float32Array]",lm="[object Float64Array]",um="[object Int8Array]",dm="[object Int16Array]",fm="[object Int32Array]",hm="[object Uint8Array]",pm="[object Uint8ClampedArray]",mm="[object Uint16Array]",gm="[object Uint32Array]",Y={};Y[cm]=Y[lm]=Y[um]=Y[dm]=Y[fm]=Y[hm]=Y[pm]=Y[mm]=Y[gm]=!0,Y[Kp]=Y[Gp]=Y[sm]=Y[Yp]=Y[am]=Y[Xp]=Y[qp]=Y[Qp]=Y[Jp]=Y[em]=Y[tm]=Y[nm]=Y[rm]=Y[om]=Y[im]=!1;function ym(e){return St(e)&&ra(e.length)&&!!Y[xt(e)]}function Yr(e){return function(t){return e(t)}}var oa=typeof H=="object"&&H&&!H.nodeType&&H,Sn=oa&&typeof module=="object"&&module&&!module.nodeType&&module,vm=Sn&&Sn.exports===oa,Xr=vm&&js.process,Kt=function(){try{var e=Sn&&Sn.require&&Sn.require("util").types;return e||Xr&&Xr.binding&&Xr.binding("util")}catch{}}(),ia=Kt&&Kt.isTypedArray,bm=ia?Yr(ia):ym,wm=Object.prototype,Tm=wm.hasOwnProperty;function sa(e,t){var n=xn(e),r=!n&&jp(e),o=!n&&!r&&na(e),i=!n&&!r&&!o&&bm(e),s=n||r||o||i,a=s?Np(e.length,String):[],c=a.length;for(var l in e)(t||Tm.call(e,l))&&!(s&&(l=="length"||o&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Zp(l,c)))&&a.push(l);return a}var Em=Object.prototype;function qr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Em;return e===n}var xm=Us(Object.keys,Object),Sm=Object.prototype,Am=Sm.hasOwnProperty;function Cm(e){if(!qr(e))return xm(e);var t=[];for(var n in Object(e))Am.call(e,n)&&n!="constructor"&&t.push(n);return t}function aa(e){return e!=null&&ra(e.length)&&!Hs(e)}function Qr(e){return aa(e)?sa(e):Cm(e)}function Pm(e,t){return e&&Qn(t,Qr(t),e)}function Mm(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Dm=Object.prototype,Om=Dm.hasOwnProperty;function Vm(e){if(!wn(e))return Mm(e);var t=qr(e),n=[];for(var r in e)r=="constructor"&&(t||!Om.call(e,r))||n.push(r);return n}function Jr(e){return aa(e)?sa(e,!0):Vm(e)}function Fm(e,t){return e&&Qn(t,Jr(t),e)}var ca=typeof H=="object"&&H&&!H.nodeType&&H,la=ca&&typeof module=="object"&&module&&!module.nodeType&&module,km=la&&la.exports===ca,ua=km?Be.Buffer:void 0,da=ua?ua.allocUnsafe:void 0;function Im(e,t){if(t)return e.slice();var n=e.length,r=da?da(n):new e.constructor(n);return e.copy(r),r}function fa(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Nm(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function ha(){return[]}var Lm=Object.prototype,Rm=Lm.propertyIsEnumerable,pa=Object.getOwnPropertySymbols,eo=pa?function(e){return e==null?[]:(e=Object(e),Nm(pa(e),function(t){return Rm.call(e,t)}))}:ha;function _m(e,t){return Qn(e,eo(e),t)}function ma(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var jm=Object.getOwnPropertySymbols,ga=jm?function(e){for(var t=[];e;)ma(t,eo(e)),e=Kr(e);return t}:ha;function Bm(e,t){return Qn(e,ga(e),t)}function ya(e,t,n){var r=t(e);return xn(e)?r:ma(r,n(e))}function $m(e){return ya(e,Qr,eo)}function Um(e){return ya(e,Jr,ga)}var to=Ct(Be,"DataView"),no=Ct(Be,"Promise"),ro=Ct(Be,"Set"),oo=Ct(Be,"WeakMap"),va="[object Map]",Wm="[object Object]",ba="[object Promise]",wa="[object Set]",Ta="[object WeakMap]",Ea="[object DataView]",zm=At(to),Zm=At(Tn),Hm=At(no),Km=At(ro),Gm=At(oo),Qe=xt;(to&&Qe(new to(new ArrayBuffer(1)))!=Ea||Tn&&Qe(new Tn)!=va||no&&Qe(no.resolve())!=ba||ro&&Qe(new ro)!=wa||oo&&Qe(new oo)!=Ta)&&(Qe=function(e){var t=xt(e),n=t==Wm?e.constructor:void 0,r=n?At(n):"";if(r)switch(r){case zm:return Ea;case Zm:return va;case Hm:return ba;case Km:return wa;case Gm:return Ta}return t});var Ym=Object.prototype,Xm=Ym.hasOwnProperty;function qm(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Xm.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var xa=Be.Uint8Array;function io(e){var t=new e.constructor(e.byteLength);return new xa(t).set(new xa(e)),t}function Qm(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Jm=/\w*$/;function eg(e){var t=new e.constructor(e.source,Jm.exec(e));return t.lastIndex=e.lastIndex,t}var Sa=lt?lt.prototype:void 0,Aa=Sa?Sa.valueOf:void 0;function tg(e){return Aa?Object(Aa.call(e)):{}}function ng(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var rg="[object Boolean]",og="[object Date]",ig="[object Map]",sg="[object Number]",ag="[object RegExp]",cg="[object Set]",lg="[object String]",ug="[object Symbol]",dg="[object ArrayBuffer]",fg="[object DataView]",hg="[object Float32Array]",pg="[object Float64Array]",mg="[object Int8Array]",gg="[object Int16Array]",yg="[object Int32Array]",vg="[object Uint8Array]",bg="[object Uint8ClampedArray]",wg="[object Uint16Array]",Tg="[object Uint32Array]";function Eg(e,t,n){var r=e.constructor;switch(t){case dg:return io(e);case rg:case og:return new r(+e);case fg:return Qm(e,n);case hg:case pg:case mg:case gg:case yg:case vg:case bg:case wg:case Tg:return ng(e,n);case ig:return new r;case sg:case lg:return new r(e);case ag:return eg(e);case cg:return new r;case ug:return tg(e)}}var Ca=Object.create,xg=function(){function e(){}return function(t){if(!wn(t))return{};if(Ca)return Ca(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Sg(e){return typeof e.constructor=="function"&&!qr(e)?xg(Kr(e)):{}}var Ag="[object Map]";function Cg(e){return St(e)&&Qe(e)==Ag}var Pa=Kt&&Kt.isMap,Pg=Pa?Yr(Pa):Cg,Mg="[object Set]";function Dg(e){return St(e)&&Qe(e)==Mg}var Ma=Kt&&Kt.isSet,Og=Ma?Yr(Ma):Dg,Vg=1,Fg=2,kg=4,Da="[object Arguments]",Ig="[object Array]",Ng="[object Boolean]",Lg="[object Date]",Rg="[object Error]",Oa="[object Function]",_g="[object GeneratorFunction]",jg="[object Map]",Bg="[object Number]",Va="[object Object]",$g="[object RegExp]",Ug="[object Set]",Wg="[object String]",zg="[object Symbol]",Zg="[object WeakMap]",Hg="[object ArrayBuffer]",Kg="[object DataView]",Gg="[object Float32Array]",Yg="[object Float64Array]",Xg="[object Int8Array]",qg="[object Int16Array]",Qg="[object Int32Array]",Jg="[object Uint8Array]",e0="[object Uint8ClampedArray]",t0="[object Uint16Array]",n0="[object Uint32Array]",G={};G[Da]=G[Ig]=G[Hg]=G[Kg]=G[Ng]=G[Lg]=G[Gg]=G[Yg]=G[Xg]=G[qg]=G[Qg]=G[jg]=G[Bg]=G[Va]=G[$g]=G[Ug]=G[Wg]=G[zg]=G[Jg]=G[e0]=G[t0]=G[n0]=!0,G[Rg]=G[Oa]=G[Zg]=!1;function An(e,t,n,r,o,i){var s,a=t&Vg,c=t&Fg,l=t&kg;if(s!==void 0)return s;if(!wn(e))return e;var u=xn(e);if(u){if(s=qm(e),!a)return fa(e,s)}else{var f=Qe(e),h=f==Oa||f==_g;if(na(e))return Im(e,a);if(f==Va||f==Da||h&&!o){if(s=c||h?{}:Sg(e),!a)return c?Bm(e,Fm(s,e)):_m(e,Pm(s,e))}else{if(!G[f])return o?e:{};s=Eg(e,f,a)}}i||(i=new Ht);var p=i.get(e);if(p)return p;i.set(e,s),Og(e)?e.forEach(function(g){s.add(An(g,t,n,g,e,i))}):Pg(e)&&e.forEach(function(g,b){s.set(b,An(g,t,n,b,e,i))});var y=l?c?Um:$m:c?Jr:Qr,m=u?void 0:y(e);return Fp(m||e,function(g,b){m&&(b=g,g=e[b]),Xs(s,b,An(g,t,n,b,e,i))}),s}var r0=1,o0=4;function Cn(e){return An(e,r0|o0)}function Fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var so,ka;function i0(){if(ka)return so;ka=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r=typeof Element<"u";function o(i,s){if(i===s)return!0;if(i&&s&&typeof i=="object"&&typeof s=="object"){var a=e(i),c=e(s),l,u,f;if(a&&c){if(u=i.length,u!=s.length)return!1;for(l=u;l--!==0;)if(!o(i[l],s[l]))return!1;return!0}if(a!=c)return!1;var h=i instanceof Date,p=s instanceof Date;if(h!=p)return!1;if(h&&p)return i.getTime()==s.getTime();var y=i instanceof RegExp,m=s instanceof RegExp;if(y!=m)return!1;if(y&&m)return i.toString()==s.toString();var g=t(i);if(u=g.length,u!==t(s).length)return!1;for(l=u;l--!==0;)if(!n.call(s,g[l]))return!1;if(r&&i instanceof Element&&s instanceof Element)return i===s;for(l=u;l--!==0;)if(f=g[l],!(f==="_owner"&&i.$$typeof)&&!o(i[f],s[f]))return!1;return!0}return i!==i&&s!==s}return so=function(s,a){try{return o(s,a)}catch(c){if(c.message&&c.message.match(/stack|recursion/i)||c.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",c.name,c.message),!1;throw c}},so}var s0=i0();const dt=Fa(s0);var a0=ne.env.NODE_ENV==="production";function se(e,t){if(!a0){var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var c0=4;function Ia(e){return An(e,c0)}function Na(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var l0="[object Symbol]";function ao(e){return typeof e=="symbol"||St(e)&&xt(e)==l0}var u0="Expected a function";function co(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(u0);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(co.Cache||ut),n}co.Cache=ut;var d0=500;function f0(e){var t=co(e,function(r){return n.size===d0&&n.clear(),r}),n=t.cache;return t}var h0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p0=/\\(\\)?/g,m0=f0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(h0,function(n,r,o,i){t.push(o?i.replace(p0,"$1"):r||n)}),t});function g0(e){if(typeof e=="string"||ao(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var La=lt?lt.prototype:void 0,Ra=La?La.toString:void 0;function _a(e){if(typeof e=="string")return e;if(xn(e))return Na(e,_a)+"";if(ao(e))return Ra?Ra.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function y0(e){return e==null?"":_a(e)}function ja(e){return xn(e)?Na(e,g0):ao(e)?[e]:fa(m0(y0(e)))}var Jn={exports:{}},z={};var Ba;function v0(){if(Ba)return z;Ba=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,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function T(w){if(typeof w=="object"&&w!==null){var C=w.$$typeof;switch(C){case t:switch(w=w.type,w){case c:case l:case r:case i:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case a:case u:case y:case p:case s:return w;default:return C}}case n:return C}}}function P(w){return T(w)===l}return z.AsyncMode=c,z.ConcurrentMode=l,z.ContextConsumer=a,z.ContextProvider=s,z.Element=t,z.ForwardRef=u,z.Fragment=r,z.Lazy=y,z.Memo=p,z.Portal=n,z.Profiler=i,z.StrictMode=o,z.Suspense=f,z.isAsyncMode=function(w){return P(w)||T(w)===c},z.isConcurrentMode=P,z.isContextConsumer=function(w){return T(w)===a},z.isContextProvider=function(w){return T(w)===s},z.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},z.isForwardRef=function(w){return T(w)===u},z.isFragment=function(w){return T(w)===r},z.isLazy=function(w){return T(w)===y},z.isMemo=function(w){return T(w)===p},z.isPortal=function(w){return T(w)===n},z.isProfiler=function(w){return T(w)===i},z.isStrictMode=function(w){return T(w)===o},z.isSuspense=function(w){return T(w)===f},z.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===l||w===i||w===o||w===f||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===p||w.$$typeof===s||w.$$typeof===a||w.$$typeof===u||w.$$typeof===g||w.$$typeof===b||w.$$typeof===x||w.$$typeof===m)},z.typeOf=T,z}var Z={},$a;function b0(){return $a||($a=1,ne.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,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function T(k){return typeof k=="string"||typeof k=="function"||k===r||k===l||k===i||k===o||k===f||k===h||typeof k=="object"&&k!==null&&(k.$$typeof===y||k.$$typeof===p||k.$$typeof===s||k.$$typeof===a||k.$$typeof===u||k.$$typeof===g||k.$$typeof===b||k.$$typeof===x||k.$$typeof===m)}function P(k){if(typeof k=="object"&&k!==null){var pn=k.$$typeof;switch(pn){case t:var mn=k.type;switch(mn){case c:case l:case r:case i:case o:case f:return mn;default:var Rr=mn&&mn.$$typeof;switch(Rr){case a:case u:case y:case p:case s:return Rr;default:return pn}}case n:return pn}}}var w=c,C=l,A=a,M=s,N=t,j=u,J=r,Ee=y,de=p,_=n,ee=i,ie=o,U=f,D=!1;function he(k){return D||(D=!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.")),we(k)||P(k)===c}function we(k){return P(k)===l}function Me(k){return P(k)===a}function xe(k){return P(k)===s}function X(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function ae(k){return P(k)===u}function De(k){return P(k)===r}function Bt(k){return P(k)===y}function te(k){return P(k)===p}function $t(k){return P(k)===n}function ot(k){return P(k)===i}function it(k){return P(k)===o}function st(k){return P(k)===f}Z.AsyncMode=w,Z.ConcurrentMode=C,Z.ContextConsumer=A,Z.ContextProvider=M,Z.Element=N,Z.ForwardRef=j,Z.Fragment=J,Z.Lazy=Ee,Z.Memo=de,Z.Portal=_,Z.Profiler=ee,Z.StrictMode=ie,Z.Suspense=U,Z.isAsyncMode=he,Z.isConcurrentMode=we,Z.isContextConsumer=Me,Z.isContextProvider=xe,Z.isElement=X,Z.isForwardRef=ae,Z.isFragment=De,Z.isLazy=Bt,Z.isMemo=te,Z.isPortal=$t,Z.isProfiler=ot,Z.isStrictMode=it,Z.isSuspense=st,Z.isValidElementType=T,Z.typeOf=P}()),Z}var Ua;function w0(){return Ua||(Ua=1,ne.env.NODE_ENV==="production"?Jn.exports=v0():Jn.exports=b0()),Jn.exports}var lo,Wa;function T0(){if(Wa)return lo;Wa=1;var e=w0(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function s(y){return e.isMemo(y)?o:i[y.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function p(y,m,g){if(typeof m!="string"){if(h){var b=f(m);b&&b!==h&&p(y,b,g)}var x=c(m);l&&(x=x.concat(l(m)));for(var T=s(y),P=s(m),w=0;w<x.length;++w){var C=x[w];if(!n[C]&&!(g&&g[C])&&!(P&&P[C])&&!(T&&T[C])){var A=u(m,C);try{a(y,C,A)}catch{}}}}return y}return lo=p,lo}var E0=T0();const x0=Fa(E0);function K(){return K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(this,arguments)}function za(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ft(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Za(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var er=E.createContext(void 0);er.displayName="FormikContext";var S0=er.Provider,A0=er.Consumer;function Mt(){var e=E.useContext(er);return e||(ne.env.NODE_ENV!=="production"?se(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):se()),e}var Ha=function(t){return Array.isArray(t)&&t.length===0},me=function(t){return typeof t=="function"},Gt=function(t){return t!==null&&typeof t=="object"},C0=function(t){return String(Math.floor(Number(t)))===t},uo=function(t){return Object.prototype.toString.call(t)==="[object String]"},fo=function(t){return E.Children.count(t)===0},ho=function(t){return Gt(t)&&me(t.then)};function P0(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function q(e,t,n,r){r===void 0&&(r=0);for(var o=ja(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function $e(e,t,n){for(var r=Ia(e),o=r,i=0,s=ja(t);i<s.length-1;i++){var a=s[i],c=q(e,s.slice(0,i+1));if(c&&(Gt(c)||Array.isArray(c)))o=o[a]=Ia(c);else{var l=s[i+1];o=o[a]=C0(l)&&Number(l)>=0?[]:{}}}return(i===0?e:o)[s[i]]===n?e:(n===void 0?delete o[s[i]]:o[s[i]]=n,i===0&&n===void 0&&delete r[s[i]],r)}function Ka(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var s=i[o],a=e[s];Gt(a)?n.get(a)||(n.set(a,!0),r[s]=Array.isArray(a)?[]:{},Ka(a,t,n,r[s])):r[s]=t}return r}function M0(e,t){switch(t.type){case"SET_VALUES":return K({},e,{values:t.payload});case"SET_TOUCHED":return K({},e,{touched:t.payload});case"SET_ERRORS":return dt(e.errors,t.payload)?e:K({},e,{errors:t.payload});case"SET_STATUS":return K({},e,{status:t.payload});case"SET_ISSUBMITTING":return K({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return K({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return K({},e,{values:$e(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return K({},e,{touched:$e(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return K({},e,{errors:$e(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return K({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return K({},e,{touched:Ka(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return K({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return K({},e,{isSubmitting:!1});default:return e}}var Dt={},tr={};function D0(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,o=r===void 0?!0:r,i=e.validateOnMount,s=i===void 0?!1:i,a=e.isInitialValid,c=e.enableReinitialize,l=c===void 0?!1:c,u=e.onSubmit,f=ft(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=K({validateOnChange:n,validateOnBlur:o,validateOnMount:s,onSubmit:u},f),p=E.useRef(h.initialValues),y=E.useRef(h.initialErrors||Dt),m=E.useRef(h.initialTouched||tr),g=E.useRef(h.initialStatus),b=E.useRef(!1),x=E.useRef({});ne.env.NODE_ENV!=="production"&&E.useEffect(function(){typeof a>"u"||(ne.env.NODE_ENV!=="production"?se(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):se())},[]),E.useEffect(function(){return b.current=!0,function(){b.current=!1}},[]);var T=E.useState(0),P=T[1],w=E.useRef({values:Cn(h.initialValues),errors:Cn(h.initialErrors)||Dt,touched:Cn(h.initialTouched)||tr,status:Cn(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),C=w.current,A=E.useCallback(function(S){var O=w.current;w.current=M0(O,S),O!==w.current&&P(function(I){return I+1})},[]),M=E.useCallback(function(S,O){return new Promise(function(I,L){var $=h.validate(S,O);$==null?I(Dt):ho($)?$.then(function(W){I(W||Dt)},function(W){ne.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",W),L(W)}):I($)})},[h.validate]),N=E.useCallback(function(S,O){var I=h.validationSchema,L=me(I)?I(O):I,$=O&&L.validateAt?L.validateAt(O,S):F0(S,L);return new Promise(function(W,ye){$.then(function(){W(Dt)},function(Ke){Ke.name==="ValidationError"?W(V0(Ke)):(ne.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",Ke),ye(Ke))})})},[h.validationSchema]),j=E.useCallback(function(S,O){return new Promise(function(I){return I(x.current[S].validate(O))})},[]),J=E.useCallback(function(S){var O=Object.keys(x.current).filter(function(L){return me(x.current[L].validate)}),I=O.length>0?O.map(function(L){return j(L,q(S,L))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(I).then(function(L){return L.reduce(function($,W,ye){return W==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||W&&($=$e($,O[ye],W)),$},{})})},[j]),Ee=E.useCallback(function(S){return Promise.all([J(S),h.validationSchema?N(S):{},h.validate?M(S):{}]).then(function(O){var I=O[0],L=O[1],$=O[2],W=Hr.all([I,L,$],{arrayMerge:k0});return W})},[h.validate,h.validationSchema,J,M,N]),de=Oe(function(S){return S===void 0&&(S=C.values),A({type:"SET_ISVALIDATING",payload:!0}),Ee(S).then(function(O){return b.current&&(A({type:"SET_ISVALIDATING",payload:!1}),A({type:"SET_ERRORS",payload:O})),O})});E.useEffect(function(){s&&b.current===!0&&dt(p.current,h.initialValues)&&de(p.current)},[s,de]);var _=E.useCallback(function(S){var O=S&&S.values?S.values:p.current,I=S&&S.errors?S.errors:y.current?y.current:h.initialErrors||{},L=S&&S.touched?S.touched:m.current?m.current:h.initialTouched||{},$=S&&S.status?S.status:g.current?g.current:h.initialStatus;p.current=O,y.current=I,m.current=L,g.current=$;var W=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!S&&!!S.isSubmitting,errors:I,touched:L,status:$,values:O,isValidating:!!S&&!!S.isValidating,submitCount:S&&S.submitCount&&typeof S.submitCount=="number"?S.submitCount:0}})};if(h.onReset){var ye=h.onReset(C.values,pn);ho(ye)?ye.then(W):W()}else W()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);E.useEffect(function(){b.current===!0&&!dt(p.current,h.initialValues)&&l&&(p.current=h.initialValues,_(),s&&de(p.current))},[l,h.initialValues,_,s,de]),E.useEffect(function(){l&&b.current===!0&&!dt(y.current,h.initialErrors)&&(y.current=h.initialErrors||Dt,A({type:"SET_ERRORS",payload:h.initialErrors||Dt}))},[l,h.initialErrors]),E.useEffect(function(){l&&b.current===!0&&!dt(m.current,h.initialTouched)&&(m.current=h.initialTouched||tr,A({type:"SET_TOUCHED",payload:h.initialTouched||tr}))},[l,h.initialTouched]),E.useEffect(function(){l&&b.current===!0&&!dt(g.current,h.initialStatus)&&(g.current=h.initialStatus,A({type:"SET_STATUS",payload:h.initialStatus}))},[l,h.initialStatus,h.initialTouched]);var ee=Oe(function(S){if(x.current[S]&&me(x.current[S].validate)){var O=q(C.values,S),I=x.current[S].validate(O);return ho(I)?(A({type:"SET_ISVALIDATING",payload:!0}),I.then(function(L){return L}).then(function(L){A({type:"SET_FIELD_ERROR",payload:{field:S,value:L}}),A({type:"SET_ISVALIDATING",payload:!1})})):(A({type:"SET_FIELD_ERROR",payload:{field:S,value:I}}),Promise.resolve(I))}else if(h.validationSchema)return A({type:"SET_ISVALIDATING",payload:!0}),N(C.values,S).then(function(L){return L}).then(function(L){A({type:"SET_FIELD_ERROR",payload:{field:S,value:q(L,S)}}),A({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),ie=E.useCallback(function(S,O){var I=O.validate;x.current[S]={validate:I}},[]),U=E.useCallback(function(S){delete x.current[S]},[]),D=Oe(function(S,O){A({type:"SET_TOUCHED",payload:S});var I=O===void 0?o:O;return I?de(C.values):Promise.resolve()}),he=E.useCallback(function(S){A({type:"SET_ERRORS",payload:S})},[]),we=Oe(function(S,O){var I=me(S)?S(C.values):S;A({type:"SET_VALUES",payload:I});var L=O===void 0?n:O;return L?de(I):Promise.resolve()}),Me=E.useCallback(function(S,O){A({type:"SET_FIELD_ERROR",payload:{field:S,value:O}})},[]),xe=Oe(function(S,O,I){A({type:"SET_FIELD_VALUE",payload:{field:S,value:O}});var L=I===void 0?n:I;return L?de($e(C.values,S,O)):Promise.resolve()}),X=E.useCallback(function(S,O){var I=O,L=S,$;if(!uo(S)){S.persist&&S.persist();var W=S.target?S.target:S.currentTarget,ye=W.type,Ke=W.name,hs=W.id,ps=W.value,Sx=W.checked,Ax=W.outerHTML,Df=W.options,Cx=W.multiple;I=O||Ke||hs,!I&&ne.env.NODE_ENV!=="production"&&Ga({htmlContent:Ax,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),L=/number|range/.test(ye)?($=parseFloat(ps),isNaN($)?"":$):/checkbox/.test(ye)?N0(q(C.values,I),Sx,ps):Df&&Cx?I0(Df):ps}I&&xe(I,L)},[xe,C.values]),ae=Oe(function(S){if(uo(S))return function(O){return X(O,S)};X(S)}),De=Oe(function(S,O,I){O===void 0&&(O=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:S,value:O}});var L=I===void 0?o:I;return L?de(C.values):Promise.resolve()}),Bt=E.useCallback(function(S,O){S.persist&&S.persist();var I=S.target,L=I.name,$=I.id,W=I.outerHTML,ye=O||L||$;!ye&&ne.env.NODE_ENV!=="production"&&Ga({htmlContent:W,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),De(ye,!0)},[De]),te=Oe(function(S){if(uo(S))return function(O){return Bt(O,S)};Bt(S)}),$t=E.useCallback(function(S){me(S)?A({type:"SET_FORMIK_STATE",payload:S}):A({type:"SET_FORMIK_STATE",payload:function(){return S}})},[]),ot=E.useCallback(function(S){A({type:"SET_STATUS",payload:S})},[]),it=E.useCallback(function(S){A({type:"SET_ISSUBMITTING",payload:S})},[]),st=Oe(function(){return A({type:"SUBMIT_ATTEMPT"}),de().then(function(S){var O=S instanceof Error,I=!O&&Object.keys(S).length===0;if(I){var L;try{if(L=mn(),L===void 0)return}catch($){throw $}return Promise.resolve(L).then(function($){return b.current&&A({type:"SUBMIT_SUCCESS"}),$}).catch(function($){if(b.current)throw A({type:"SUBMIT_FAILURE"}),$})}else if(b.current&&(A({type:"SUBMIT_FAILURE"}),O))throw S})}),k=Oe(function(S){if(S&&S.preventDefault&&me(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&me(S.stopPropagation)&&S.stopPropagation(),ne.env.NODE_ENV!=="production"&&typeof document<"u"){var O=P0();O!==null&&O instanceof HTMLButtonElement&&(O.attributes&&O.attributes.getNamedItem("type")||(ne.env.NODE_ENV!=="production"?se(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):se()))}st().catch(function(I){console.warn("Warning: An unhandled error was caught from submitForm()",I)})}),pn={resetForm:_,validateForm:de,validateField:ee,setErrors:he,setFieldError:Me,setFieldTouched:De,setFieldValue:xe,setStatus:ot,setSubmitting:it,setTouched:D,setValues:we,setFormikState:$t,submitForm:st},mn=Oe(function(){return u(C.values,pn)}),Rr=Oe(function(S){S&&S.preventDefault&&me(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&me(S.stopPropagation)&&S.stopPropagation(),_()}),bx=E.useCallback(function(S){return{value:q(C.values,S),error:q(C.errors,S),touched:!!q(C.touched,S),initialValue:q(p.current,S),initialTouched:!!q(m.current,S),initialError:q(y.current,S)}},[C.errors,C.touched,C.values]),wx=E.useCallback(function(S){return{setValue:function(I,L){return xe(S,I,L)},setTouched:function(I,L){return De(S,I,L)},setError:function(I){return Me(S,I)}}},[xe,De,Me]),Tx=E.useCallback(function(S){var O=Gt(S),I=O?S.name:S,L=q(C.values,I),$={name:I,value:L,onChange:ae,onBlur:te};if(O){var W=S.type,ye=S.value,Ke=S.as,hs=S.multiple;W==="checkbox"?ye===void 0?$.checked=!!L:($.checked=!!(Array.isArray(L)&&~L.indexOf(ye)),$.value=ye):W==="radio"?($.checked=L===ye,$.value=ye):Ke==="select"&&hs&&($.value=$.value||[],$.multiple=!0)}return $},[te,ae,C.values]),fs=E.useMemo(function(){return!dt(p.current,C.values)},[p.current,C.values]),Ex=E.useMemo(function(){return typeof a<"u"?fs?C.errors&&Object.keys(C.errors).length===0:a!==!1&&me(a)?a(h):a:C.errors&&Object.keys(C.errors).length===0},[a,fs,C.errors,h]),xx=K({},C,{initialValues:p.current,initialErrors:y.current,initialTouched:m.current,initialStatus:g.current,handleBlur:te,handleChange:ae,handleReset:Rr,handleSubmit:k,resetForm:_,setErrors:he,setFormikState:$t,setFieldTouched:De,setFieldValue:xe,setFieldError:Me,setStatus:ot,setSubmitting:it,setTouched:D,setValues:we,submitForm:st,validateForm:de,validateField:ee,isValid:Ex,dirty:fs,unregisterField:U,registerField:ie,getFieldProps:Tx,getFieldMeta:bx,getFieldHelpers:wx,validateOnBlur:o,validateOnChange:n,validateOnMount:s});return xx}function O0(e){var t=D0(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return E.useImperativeHandle(i,function(){return t}),ne.env.NODE_ENV!=="production"&&E.useEffect(function(){e.render&&(ne.env.NODE_ENV!=="production"?se(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):se())},[]),E.createElement(S0,{value:t},n?E.createElement(n,t):o?o(t):r?me(r)?r(t):fo(r)?null:E.Children.only(r):null)}function Ga(e){var t=e.htmlContent,n=e.documentationAnchorLink,r=e.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
73
+ `;function Is({element:e,backgroundColor:t="gray",fillColor:n="black"}){return v.jsx("span",{className:dh,"data-testid":"icon-background","data-background-color":t,"data-fill-color":n,style:{"--background":t,"--fill":n},children:E.cloneElement(e,{className:fh,"aria-hidden":"true","data-testid":"icon"})})}function hh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ns={exports:{}},ce=Ns.exports={},_e,je;function zr(){throw new Error("setTimeout has not been defined")}function Zr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_e=setTimeout:_e=zr}catch{_e=zr}try{typeof clearTimeout=="function"?je=clearTimeout:je=Zr}catch{je=Zr}})();function Ls(e){if(_e===setTimeout)return setTimeout(e,0);if((_e===zr||!_e)&&setTimeout)return _e=setTimeout,setTimeout(e,0);try{return _e(e,0)}catch{try{return _e.call(null,e,0)}catch{return _e.call(this,e,0)}}}function ph(e){if(je===clearTimeout)return clearTimeout(e);if((je===Zr||!je)&&clearTimeout)return je=clearTimeout,clearTimeout(e);try{return je(e)}catch{try{return je.call(null,e)}catch{return je.call(this,e)}}}var Ye=[],Zt=!1,Et,Kn=-1;function mh(){!Zt||!Et||(Zt=!1,Et.length?Ye=Et.concat(Ye):Kn=-1,Ye.length&&Rs())}function Rs(){if(!Zt){var e=Ls(mh);Zt=!0;for(var t=Ye.length;t;){for(Et=Ye,Ye=[];++Kn<t;)Et&&Et[Kn].run();Kn=-1,t=Ye.length}Et=null,Zt=!1,ph(e)}}ce.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ye.push(new _s(e,t)),Ye.length===1&&!Zt&&Ls(Rs)};function _s(e,t){this.fun=e,this.array=t}_s.prototype.run=function(){this.fun.apply(null,this.array)},ce.title="browser",ce.browser=!0,ce.env={},ce.argv=[],ce.version="",ce.versions={};function Xe(){}ce.on=Xe,ce.addListener=Xe,ce.once=Xe,ce.off=Xe,ce.removeListener=Xe,ce.removeAllListeners=Xe,ce.emit=Xe,ce.prependListener=Xe,ce.prependOnceListener=Xe,ce.listeners=function(e){return[]},ce.binding=function(e){throw new Error("process.binding is not supported")},ce.cwd=function(){return"/"},ce.chdir=function(e){throw new Error("process.chdir is not supported")},ce.umask=function(){return 0};var gh=Ns.exports;const ne=hh(gh);var yh=function(t){return vh(t)&&!bh(t)};function vh(e){return!!e&&typeof e=="object"}function bh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Eh(e)}var wh=typeof Symbol=="function"&&Symbol.for,Th=wh?Symbol.for("react.element"):60103;function Eh(e){return e.$$typeof===Th}function xh(e){return Array.isArray(e)?[]:{}}function Gn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?vn(xh(e),e,t):e}function Sh(e,t,n){return e.concat(t).map(function(r){return Gn(r,n)})}function Ah(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=Gn(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=Gn(t[o],n):r[o]=vn(e[o],t[o],n)}),r}function vn(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Sh,n.isMergeableObject=n.isMergeableObject||yh;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):Ah(e,t,n):Gn(t,n)}vn.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return vn(r,o,n)},{})};var Hr=vn;const Yn=globalThis||void 0||self;var js=typeof Yn=="object"&&Yn&&Yn.Object===Object&&Yn,Ch=typeof self=="object"&&self&&self.Object===Object&&self,Be=js||Ch||Function("return this")(),lt=Be.Symbol,Bs=Object.prototype,Ph=Bs.hasOwnProperty,Mh=Bs.toString,bn=lt?lt.toStringTag:void 0;function Dh(e){var t=Ph.call(e,bn),n=e[bn];try{e[bn]=void 0;var r=!0}catch{}var o=Mh.call(e);return r&&(t?e[bn]=n:delete e[bn]),o}var Oh=Object.prototype,Vh=Oh.toString;function Fh(e){return Vh.call(e)}var kh="[object Null]",Ih="[object Undefined]",$s=lt?lt.toStringTag:void 0;function xt(e){return e==null?e===void 0?Ih:kh:$s&&$s in Object(e)?Dh(e):Fh(e)}function Us(e,t){return function(n){return e(t(n))}}var Kr=Us(Object.getPrototypeOf,Object);function St(e){return e!=null&&typeof e=="object"}var Nh="[object Object]",Lh=Function.prototype,Rh=Object.prototype,Ws=Lh.toString,_h=Rh.hasOwnProperty,jh=Ws.call(Object);function zs(e){if(!St(e)||xt(e)!=Nh)return!1;var t=Kr(e);if(t===null)return!0;var n=_h.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ws.call(n)==jh}function Bh(){this.__data__=[],this.size=0}function Zs(e,t){return e===t||e!==e&&t!==t}function Xn(e,t){for(var n=e.length;n--;)if(Zs(e[n][0],t))return n;return-1}var $h=Array.prototype,Uh=$h.splice;function Wh(e){var t=this.__data__,n=Xn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Uh.call(t,n,1),--this.size,!0}function zh(e){var t=this.__data__,n=Xn(t,e);return n<0?void 0:t[n][1]}function Zh(e){return Xn(this.__data__,e)>-1}function Hh(e,t){var n=this.__data__,r=Xn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function qe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qe.prototype.clear=Bh,qe.prototype.delete=Wh,qe.prototype.get=zh,qe.prototype.has=Zh,qe.prototype.set=Hh;function Kh(){this.__data__=new qe,this.size=0}function Gh(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Yh(e){return this.__data__.get(e)}function Xh(e){return this.__data__.has(e)}function wn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qh="[object AsyncFunction]",Qh="[object Function]",Jh="[object GeneratorFunction]",ep="[object Proxy]";function Hs(e){if(!wn(e))return!1;var t=xt(e);return t==Qh||t==Jh||t==qh||t==ep}var Gr=Be["__core-js_shared__"],Ks=function(){var e=/[^.]+$/.exec(Gr&&Gr.keys&&Gr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tp(e){return!!Ks&&Ks in e}var np=Function.prototype,rp=np.toString;function At(e){if(e!=null){try{return rp.call(e)}catch{}try{return e+""}catch{}}return""}var op=/[\\^$.*+?()[\]{}|]/g,ip=/^\[object .+?Constructor\]$/,sp=Function.prototype,ap=Object.prototype,cp=sp.toString,lp=ap.hasOwnProperty,up=RegExp("^"+cp.call(lp).replace(op,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dp(e){if(!wn(e)||tp(e))return!1;var t=Hs(e)?up:ip;return t.test(At(e))}function fp(e,t){return e?.[t]}function Ct(e,t){var n=fp(e,t);return dp(n)?n:void 0}var Tn=Ct(Be,"Map"),En=Ct(Object,"create");function hp(){this.__data__=En?En(null):{},this.size=0}function pp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mp="__lodash_hash_undefined__",gp=Object.prototype,yp=gp.hasOwnProperty;function vp(e){var t=this.__data__;if(En){var n=t[e];return n===mp?void 0:n}return yp.call(t,e)?t[e]:void 0}var bp=Object.prototype,wp=bp.hasOwnProperty;function Tp(e){var t=this.__data__;return En?t[e]!==void 0:wp.call(t,e)}var Ep="__lodash_hash_undefined__";function xp(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=En&&t===void 0?Ep:t,this}function Pt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pt.prototype.clear=hp,Pt.prototype.delete=pp,Pt.prototype.get=vp,Pt.prototype.has=Tp,Pt.prototype.set=xp;function Sp(){this.size=0,this.__data__={hash:new Pt,map:new(Tn||qe),string:new Pt}}function Ap(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qn(e,t){var n=e.__data__;return Ap(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Cp(e){var t=qn(this,e).delete(e);return this.size-=t?1:0,t}function Pp(e){return qn(this,e).get(e)}function Mp(e){return qn(this,e).has(e)}function Dp(e,t){var n=qn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ut(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ut.prototype.clear=Sp,ut.prototype.delete=Cp,ut.prototype.get=Pp,ut.prototype.has=Mp,ut.prototype.set=Dp;var Op=200;function Vp(e,t){var n=this.__data__;if(n instanceof qe){var r=n.__data__;if(!Tn||r.length<Op-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ut(r)}return n.set(e,t),this.size=n.size,this}function Ht(e){var t=this.__data__=new qe(e);this.size=t.size}Ht.prototype.clear=Kh,Ht.prototype.delete=Gh,Ht.prototype.get=Yh,Ht.prototype.has=Xh,Ht.prototype.set=Vp;function Fp(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Gs=function(){try{var e=Ct(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Ys(e,t,n){t=="__proto__"&&Gs?Gs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var kp=Object.prototype,Ip=kp.hasOwnProperty;function Xs(e,t,n){var r=e[t];(!(Ip.call(e,t)&&Zs(r,n))||n===void 0&&!(t in e))&&Ys(e,t,n)}function Qn(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],c=void 0;c===void 0&&(c=e[a]),o?Ys(n,a,c):Xs(n,a,c)}return n}function Np(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Lp="[object Arguments]";function qs(e){return St(e)&&xt(e)==Lp}var Qs=Object.prototype,Rp=Qs.hasOwnProperty,_p=Qs.propertyIsEnumerable,jp=qs(function(){return arguments}())?qs:function(e){return St(e)&&Rp.call(e,"callee")&&!_p.call(e,"callee")},xn=Array.isArray;function Bp(){return!1}var Js=typeof H=="object"&&H&&!H.nodeType&&H,ea=Js&&typeof module=="object"&&module&&!module.nodeType&&module,$p=ea&&ea.exports===Js,ta=$p?Be.Buffer:void 0,Up=ta?ta.isBuffer:void 0,na=Up||Bp,Wp=9007199254740991,zp=/^(?:0|[1-9]\d*)$/;function Zp(e,t){var n=typeof e;return t=t??Wp,!!t&&(n=="number"||n!="symbol"&&zp.test(e))&&e>-1&&e%1==0&&e<t}var Hp=9007199254740991;function ra(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hp}var Kp="[object Arguments]",Gp="[object Array]",Yp="[object Boolean]",Xp="[object Date]",qp="[object Error]",Qp="[object Function]",Jp="[object Map]",em="[object Number]",tm="[object Object]",nm="[object RegExp]",rm="[object Set]",om="[object String]",im="[object WeakMap]",sm="[object ArrayBuffer]",am="[object DataView]",cm="[object Float32Array]",lm="[object Float64Array]",um="[object Int8Array]",dm="[object Int16Array]",fm="[object Int32Array]",hm="[object Uint8Array]",pm="[object Uint8ClampedArray]",mm="[object Uint16Array]",gm="[object Uint32Array]",Y={};Y[cm]=Y[lm]=Y[um]=Y[dm]=Y[fm]=Y[hm]=Y[pm]=Y[mm]=Y[gm]=!0,Y[Kp]=Y[Gp]=Y[sm]=Y[Yp]=Y[am]=Y[Xp]=Y[qp]=Y[Qp]=Y[Jp]=Y[em]=Y[tm]=Y[nm]=Y[rm]=Y[om]=Y[im]=!1;function ym(e){return St(e)&&ra(e.length)&&!!Y[xt(e)]}function Yr(e){return function(t){return e(t)}}var oa=typeof H=="object"&&H&&!H.nodeType&&H,Sn=oa&&typeof module=="object"&&module&&!module.nodeType&&module,vm=Sn&&Sn.exports===oa,Xr=vm&&js.process,Kt=function(){try{var e=Sn&&Sn.require&&Sn.require("util").types;return e||Xr&&Xr.binding&&Xr.binding("util")}catch{}}(),ia=Kt&&Kt.isTypedArray,bm=ia?Yr(ia):ym,wm=Object.prototype,Tm=wm.hasOwnProperty;function sa(e,t){var n=xn(e),r=!n&&jp(e),o=!n&&!r&&na(e),i=!n&&!r&&!o&&bm(e),s=n||r||o||i,a=s?Np(e.length,String):[],c=a.length;for(var l in e)(t||Tm.call(e,l))&&!(s&&(l=="length"||o&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Zp(l,c)))&&a.push(l);return a}var Em=Object.prototype;function qr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Em;return e===n}var xm=Us(Object.keys,Object),Sm=Object.prototype,Am=Sm.hasOwnProperty;function Cm(e){if(!qr(e))return xm(e);var t=[];for(var n in Object(e))Am.call(e,n)&&n!="constructor"&&t.push(n);return t}function aa(e){return e!=null&&ra(e.length)&&!Hs(e)}function Qr(e){return aa(e)?sa(e):Cm(e)}function Pm(e,t){return e&&Qn(t,Qr(t),e)}function Mm(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Dm=Object.prototype,Om=Dm.hasOwnProperty;function Vm(e){if(!wn(e))return Mm(e);var t=qr(e),n=[];for(var r in e)r=="constructor"&&(t||!Om.call(e,r))||n.push(r);return n}function Jr(e){return aa(e)?sa(e,!0):Vm(e)}function Fm(e,t){return e&&Qn(t,Jr(t),e)}var ca=typeof H=="object"&&H&&!H.nodeType&&H,la=ca&&typeof module=="object"&&module&&!module.nodeType&&module,km=la&&la.exports===ca,ua=km?Be.Buffer:void 0,da=ua?ua.allocUnsafe:void 0;function Im(e,t){if(t)return e.slice();var n=e.length,r=da?da(n):new e.constructor(n);return e.copy(r),r}function fa(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Nm(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function ha(){return[]}var Lm=Object.prototype,Rm=Lm.propertyIsEnumerable,pa=Object.getOwnPropertySymbols,eo=pa?function(e){return e==null?[]:(e=Object(e),Nm(pa(e),function(t){return Rm.call(e,t)}))}:ha;function _m(e,t){return Qn(e,eo(e),t)}function ma(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var jm=Object.getOwnPropertySymbols,ga=jm?function(e){for(var t=[];e;)ma(t,eo(e)),e=Kr(e);return t}:ha;function Bm(e,t){return Qn(e,ga(e),t)}function ya(e,t,n){var r=t(e);return xn(e)?r:ma(r,n(e))}function $m(e){return ya(e,Qr,eo)}function Um(e){return ya(e,Jr,ga)}var to=Ct(Be,"DataView"),no=Ct(Be,"Promise"),ro=Ct(Be,"Set"),oo=Ct(Be,"WeakMap"),va="[object Map]",Wm="[object Object]",ba="[object Promise]",wa="[object Set]",Ta="[object WeakMap]",Ea="[object DataView]",zm=At(to),Zm=At(Tn),Hm=At(no),Km=At(ro),Gm=At(oo),Qe=xt;(to&&Qe(new to(new ArrayBuffer(1)))!=Ea||Tn&&Qe(new Tn)!=va||no&&Qe(no.resolve())!=ba||ro&&Qe(new ro)!=wa||oo&&Qe(new oo)!=Ta)&&(Qe=function(e){var t=xt(e),n=t==Wm?e.constructor:void 0,r=n?At(n):"";if(r)switch(r){case zm:return Ea;case Zm:return va;case Hm:return ba;case Km:return wa;case Gm:return Ta}return t});var Ym=Object.prototype,Xm=Ym.hasOwnProperty;function qm(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Xm.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var xa=Be.Uint8Array;function io(e){var t=new e.constructor(e.byteLength);return new xa(t).set(new xa(e)),t}function Qm(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Jm=/\w*$/;function eg(e){var t=new e.constructor(e.source,Jm.exec(e));return t.lastIndex=e.lastIndex,t}var Sa=lt?lt.prototype:void 0,Aa=Sa?Sa.valueOf:void 0;function tg(e){return Aa?Object(Aa.call(e)):{}}function ng(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var rg="[object Boolean]",og="[object Date]",ig="[object Map]",sg="[object Number]",ag="[object RegExp]",cg="[object Set]",lg="[object String]",ug="[object Symbol]",dg="[object ArrayBuffer]",fg="[object DataView]",hg="[object Float32Array]",pg="[object Float64Array]",mg="[object Int8Array]",gg="[object Int16Array]",yg="[object Int32Array]",vg="[object Uint8Array]",bg="[object Uint8ClampedArray]",wg="[object Uint16Array]",Tg="[object Uint32Array]";function Eg(e,t,n){var r=e.constructor;switch(t){case dg:return io(e);case rg:case og:return new r(+e);case fg:return Qm(e,n);case hg:case pg:case mg:case gg:case yg:case vg:case bg:case wg:case Tg:return ng(e,n);case ig:return new r;case sg:case lg:return new r(e);case ag:return eg(e);case cg:return new r;case ug:return tg(e)}}var Ca=Object.create,xg=function(){function e(){}return function(t){if(!wn(t))return{};if(Ca)return Ca(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Sg(e){return typeof e.constructor=="function"&&!qr(e)?xg(Kr(e)):{}}var Ag="[object Map]";function Cg(e){return St(e)&&Qe(e)==Ag}var Pa=Kt&&Kt.isMap,Pg=Pa?Yr(Pa):Cg,Mg="[object Set]";function Dg(e){return St(e)&&Qe(e)==Mg}var Ma=Kt&&Kt.isSet,Og=Ma?Yr(Ma):Dg,Vg=1,Fg=2,kg=4,Da="[object Arguments]",Ig="[object Array]",Ng="[object Boolean]",Lg="[object Date]",Rg="[object Error]",Oa="[object Function]",_g="[object GeneratorFunction]",jg="[object Map]",Bg="[object Number]",Va="[object Object]",$g="[object RegExp]",Ug="[object Set]",Wg="[object String]",zg="[object Symbol]",Zg="[object WeakMap]",Hg="[object ArrayBuffer]",Kg="[object DataView]",Gg="[object Float32Array]",Yg="[object Float64Array]",Xg="[object Int8Array]",qg="[object Int16Array]",Qg="[object Int32Array]",Jg="[object Uint8Array]",e0="[object Uint8ClampedArray]",t0="[object Uint16Array]",n0="[object Uint32Array]",G={};G[Da]=G[Ig]=G[Hg]=G[Kg]=G[Ng]=G[Lg]=G[Gg]=G[Yg]=G[Xg]=G[qg]=G[Qg]=G[jg]=G[Bg]=G[Va]=G[$g]=G[Ug]=G[Wg]=G[zg]=G[Jg]=G[e0]=G[t0]=G[n0]=!0,G[Rg]=G[Oa]=G[Zg]=!1;function An(e,t,n,r,o,i){var s,a=t&Vg,c=t&Fg,l=t&kg;if(s!==void 0)return s;if(!wn(e))return e;var u=xn(e);if(u){if(s=qm(e),!a)return fa(e,s)}else{var f=Qe(e),h=f==Oa||f==_g;if(na(e))return Im(e,a);if(f==Va||f==Da||h&&!o){if(s=c||h?{}:Sg(e),!a)return c?Bm(e,Fm(s,e)):_m(e,Pm(s,e))}else{if(!G[f])return o?e:{};s=Eg(e,f,a)}}i||(i=new Ht);var p=i.get(e);if(p)return p;i.set(e,s),Og(e)?e.forEach(function(g){s.add(An(g,t,n,g,e,i))}):Pg(e)&&e.forEach(function(g,b){s.set(b,An(g,t,n,b,e,i))});var y=l?c?Um:$m:c?Jr:Qr,m=u?void 0:y(e);return Fp(m||e,function(g,b){m&&(b=g,g=e[b]),Xs(s,b,An(g,t,n,b,e,i))}),s}var r0=1,o0=4;function Cn(e){return An(e,r0|o0)}function Fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var so,ka;function i0(){if(ka)return so;ka=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r=typeof Element<"u";function o(i,s){if(i===s)return!0;if(i&&s&&typeof i=="object"&&typeof s=="object"){var a=e(i),c=e(s),l,u,f;if(a&&c){if(u=i.length,u!=s.length)return!1;for(l=u;l--!==0;)if(!o(i[l],s[l]))return!1;return!0}if(a!=c)return!1;var h=i instanceof Date,p=s instanceof Date;if(h!=p)return!1;if(h&&p)return i.getTime()==s.getTime();var y=i instanceof RegExp,m=s instanceof RegExp;if(y!=m)return!1;if(y&&m)return i.toString()==s.toString();var g=t(i);if(u=g.length,u!==t(s).length)return!1;for(l=u;l--!==0;)if(!n.call(s,g[l]))return!1;if(r&&i instanceof Element&&s instanceof Element)return i===s;for(l=u;l--!==0;)if(f=g[l],!(f==="_owner"&&i.$$typeof)&&!o(i[f],s[f]))return!1;return!0}return i!==i&&s!==s}return so=function(s,a){try{return o(s,a)}catch(c){if(c.message&&c.message.match(/stack|recursion/i)||c.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",c.name,c.message),!1;throw c}},so}var s0=i0();const dt=Fa(s0);var a0=ne.env.NODE_ENV==="production";function se(e,t){if(!a0){var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var c0=4;function Ia(e){return An(e,c0)}function Na(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var l0="[object Symbol]";function ao(e){return typeof e=="symbol"||St(e)&&xt(e)==l0}var u0="Expected a function";function co(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(u0);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(co.Cache||ut),n}co.Cache=ut;var d0=500;function f0(e){var t=co(e,function(r){return n.size===d0&&n.clear(),r}),n=t.cache;return t}var h0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p0=/\\(\\)?/g,m0=f0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(h0,function(n,r,o,i){t.push(o?i.replace(p0,"$1"):r||n)}),t});function g0(e){if(typeof e=="string"||ao(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var La=lt?lt.prototype:void 0,Ra=La?La.toString:void 0;function _a(e){if(typeof e=="string")return e;if(xn(e))return Na(e,_a)+"";if(ao(e))return Ra?Ra.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function y0(e){return e==null?"":_a(e)}function ja(e){return xn(e)?Na(e,g0):ao(e)?[e]:fa(m0(y0(e)))}var Jn={exports:{}},z={};var Ba;function v0(){if(Ba)return z;Ba=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,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function T(w){if(typeof w=="object"&&w!==null){var M=w.$$typeof;switch(M){case t:switch(w=w.type,w){case c:case l:case r:case i:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case a:case u:case y:case p:case s:return w;default:return M}}case n:return M}}}function P(w){return T(w)===l}return z.AsyncMode=c,z.ConcurrentMode=l,z.ContextConsumer=a,z.ContextProvider=s,z.Element=t,z.ForwardRef=u,z.Fragment=r,z.Lazy=y,z.Memo=p,z.Portal=n,z.Profiler=i,z.StrictMode=o,z.Suspense=f,z.isAsyncMode=function(w){return P(w)||T(w)===c},z.isConcurrentMode=P,z.isContextConsumer=function(w){return T(w)===a},z.isContextProvider=function(w){return T(w)===s},z.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},z.isForwardRef=function(w){return T(w)===u},z.isFragment=function(w){return T(w)===r},z.isLazy=function(w){return T(w)===y},z.isMemo=function(w){return T(w)===p},z.isPortal=function(w){return T(w)===n},z.isProfiler=function(w){return T(w)===i},z.isStrictMode=function(w){return T(w)===o},z.isSuspense=function(w){return T(w)===f},z.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===l||w===i||w===o||w===f||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===p||w.$$typeof===s||w.$$typeof===a||w.$$typeof===u||w.$$typeof===g||w.$$typeof===b||w.$$typeof===x||w.$$typeof===m)},z.typeOf=T,z}var Z={},$a;function b0(){return $a||($a=1,ne.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,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function T(k){return typeof k=="string"||typeof k=="function"||k===r||k===l||k===i||k===o||k===f||k===h||typeof k=="object"&&k!==null&&(k.$$typeof===y||k.$$typeof===p||k.$$typeof===s||k.$$typeof===a||k.$$typeof===u||k.$$typeof===g||k.$$typeof===b||k.$$typeof===x||k.$$typeof===m)}function P(k){if(typeof k=="object"&&k!==null){var pn=k.$$typeof;switch(pn){case t:var mn=k.type;switch(mn){case c:case l:case r:case i:case o:case f:return mn;default:var Rr=mn&&mn.$$typeof;switch(Rr){case a:case u:case y:case p:case s:return Rr;default:return pn}}case n:return pn}}}var w=c,M=l,A=a,C=s,L=t,$=u,J=r,Ee=y,de=p,_=n,ee=i,ie=o,U=f,D=!1;function he(k){return D||(D=!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.")),we(k)||P(k)===c}function we(k){return P(k)===l}function Me(k){return P(k)===a}function xe(k){return P(k)===s}function X(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function ae(k){return P(k)===u}function De(k){return P(k)===r}function Bt(k){return P(k)===y}function te(k){return P(k)===p}function $t(k){return P(k)===n}function ot(k){return P(k)===i}function it(k){return P(k)===o}function st(k){return P(k)===f}Z.AsyncMode=w,Z.ConcurrentMode=M,Z.ContextConsumer=A,Z.ContextProvider=C,Z.Element=L,Z.ForwardRef=$,Z.Fragment=J,Z.Lazy=Ee,Z.Memo=de,Z.Portal=_,Z.Profiler=ee,Z.StrictMode=ie,Z.Suspense=U,Z.isAsyncMode=he,Z.isConcurrentMode=we,Z.isContextConsumer=Me,Z.isContextProvider=xe,Z.isElement=X,Z.isForwardRef=ae,Z.isFragment=De,Z.isLazy=Bt,Z.isMemo=te,Z.isPortal=$t,Z.isProfiler=ot,Z.isStrictMode=it,Z.isSuspense=st,Z.isValidElementType=T,Z.typeOf=P}()),Z}var Ua;function w0(){return Ua||(Ua=1,ne.env.NODE_ENV==="production"?Jn.exports=v0():Jn.exports=b0()),Jn.exports}var lo,Wa;function T0(){if(Wa)return lo;Wa=1;var e=w0(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function s(y){return e.isMemo(y)?o:i[y.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function p(y,m,g){if(typeof m!="string"){if(h){var b=f(m);b&&b!==h&&p(y,b,g)}var x=c(m);l&&(x=x.concat(l(m)));for(var T=s(y),P=s(m),w=0;w<x.length;++w){var M=x[w];if(!n[M]&&!(g&&g[M])&&!(P&&P[M])&&!(T&&T[M])){var A=u(m,M);try{a(y,M,A)}catch{}}}}return y}return lo=p,lo}var E0=T0();const x0=Fa(E0);function K(){return K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(this,arguments)}function za(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ft(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Za(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var er=E.createContext(void 0);er.displayName="FormikContext";var S0=er.Provider,A0=er.Consumer;function Mt(){var e=E.useContext(er);return e||(ne.env.NODE_ENV!=="production"?se(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):se()),e}var Ha=function(t){return Array.isArray(t)&&t.length===0},me=function(t){return typeof t=="function"},Gt=function(t){return t!==null&&typeof t=="object"},C0=function(t){return String(Math.floor(Number(t)))===t},uo=function(t){return Object.prototype.toString.call(t)==="[object String]"},fo=function(t){return E.Children.count(t)===0},ho=function(t){return Gt(t)&&me(t.then)};function P0(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function q(e,t,n,r){r===void 0&&(r=0);for(var o=ja(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function $e(e,t,n){for(var r=Ia(e),o=r,i=0,s=ja(t);i<s.length-1;i++){var a=s[i],c=q(e,s.slice(0,i+1));if(c&&(Gt(c)||Array.isArray(c)))o=o[a]=Ia(c);else{var l=s[i+1];o=o[a]=C0(l)&&Number(l)>=0?[]:{}}}return(i===0?e:o)[s[i]]===n?e:(n===void 0?delete o[s[i]]:o[s[i]]=n,i===0&&n===void 0&&delete r[s[i]],r)}function Ka(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var s=i[o],a=e[s];Gt(a)?n.get(a)||(n.set(a,!0),r[s]=Array.isArray(a)?[]:{},Ka(a,t,n,r[s])):r[s]=t}return r}function M0(e,t){switch(t.type){case"SET_VALUES":return K({},e,{values:t.payload});case"SET_TOUCHED":return K({},e,{touched:t.payload});case"SET_ERRORS":return dt(e.errors,t.payload)?e:K({},e,{errors:t.payload});case"SET_STATUS":return K({},e,{status:t.payload});case"SET_ISSUBMITTING":return K({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return K({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return K({},e,{values:$e(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return K({},e,{touched:$e(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return K({},e,{errors:$e(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return K({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return K({},e,{touched:Ka(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return K({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return K({},e,{isSubmitting:!1});default:return e}}var Dt={},tr={};function D0(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,o=r===void 0?!0:r,i=e.validateOnMount,s=i===void 0?!1:i,a=e.isInitialValid,c=e.enableReinitialize,l=c===void 0?!1:c,u=e.onSubmit,f=ft(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=K({validateOnChange:n,validateOnBlur:o,validateOnMount:s,onSubmit:u},f),p=E.useRef(h.initialValues),y=E.useRef(h.initialErrors||Dt),m=E.useRef(h.initialTouched||tr),g=E.useRef(h.initialStatus),b=E.useRef(!1),x=E.useRef({});ne.env.NODE_ENV!=="production"&&E.useEffect(function(){typeof a>"u"||(ne.env.NODE_ENV!=="production"?se(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):se())},[]),E.useEffect(function(){return b.current=!0,function(){b.current=!1}},[]);var T=E.useState(0),P=T[1],w=E.useRef({values:Cn(h.initialValues),errors:Cn(h.initialErrors)||Dt,touched:Cn(h.initialTouched)||tr,status:Cn(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),M=w.current,A=E.useCallback(function(S){var O=w.current;w.current=M0(O,S),O!==w.current&&P(function(I){return I+1})},[]),C=E.useCallback(function(S,O){return new Promise(function(I,N){var B=h.validate(S,O);B==null?I(Dt):ho(B)?B.then(function(W){I(W||Dt)},function(W){ne.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",W),N(W)}):I(B)})},[h.validate]),L=E.useCallback(function(S,O){var I=h.validationSchema,N=me(I)?I(O):I,B=O&&N.validateAt?N.validateAt(O,S):F0(S,N);return new Promise(function(W,ye){B.then(function(){W(Dt)},function(Ke){Ke.name==="ValidationError"?W(V0(Ke)):(ne.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",Ke),ye(Ke))})})},[h.validationSchema]),$=E.useCallback(function(S,O){return new Promise(function(I){return I(x.current[S].validate(O))})},[]),J=E.useCallback(function(S){var O=Object.keys(x.current).filter(function(N){return me(x.current[N].validate)}),I=O.length>0?O.map(function(N){return $(N,q(S,N))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(I).then(function(N){return N.reduce(function(B,W,ye){return W==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||W&&(B=$e(B,O[ye],W)),B},{})})},[$]),Ee=E.useCallback(function(S){return Promise.all([J(S),h.validationSchema?L(S):{},h.validate?C(S):{}]).then(function(O){var I=O[0],N=O[1],B=O[2],W=Hr.all([I,N,B],{arrayMerge:k0});return W})},[h.validate,h.validationSchema,J,C,L]),de=Oe(function(S){return S===void 0&&(S=M.values),A({type:"SET_ISVALIDATING",payload:!0}),Ee(S).then(function(O){return b.current&&(A({type:"SET_ISVALIDATING",payload:!1}),A({type:"SET_ERRORS",payload:O})),O})});E.useEffect(function(){s&&b.current===!0&&dt(p.current,h.initialValues)&&de(p.current)},[s,de]);var _=E.useCallback(function(S){var O=S&&S.values?S.values:p.current,I=S&&S.errors?S.errors:y.current?y.current:h.initialErrors||{},N=S&&S.touched?S.touched:m.current?m.current:h.initialTouched||{},B=S&&S.status?S.status:g.current?g.current:h.initialStatus;p.current=O,y.current=I,m.current=N,g.current=B;var W=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!S&&!!S.isSubmitting,errors:I,touched:N,status:B,values:O,isValidating:!!S&&!!S.isValidating,submitCount:S&&S.submitCount&&typeof S.submitCount=="number"?S.submitCount:0}})};if(h.onReset){var ye=h.onReset(M.values,pn);ho(ye)?ye.then(W):W()}else W()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);E.useEffect(function(){b.current===!0&&!dt(p.current,h.initialValues)&&l&&(p.current=h.initialValues,_(),s&&de(p.current))},[l,h.initialValues,_,s,de]),E.useEffect(function(){l&&b.current===!0&&!dt(y.current,h.initialErrors)&&(y.current=h.initialErrors||Dt,A({type:"SET_ERRORS",payload:h.initialErrors||Dt}))},[l,h.initialErrors]),E.useEffect(function(){l&&b.current===!0&&!dt(m.current,h.initialTouched)&&(m.current=h.initialTouched||tr,A({type:"SET_TOUCHED",payload:h.initialTouched||tr}))},[l,h.initialTouched]),E.useEffect(function(){l&&b.current===!0&&!dt(g.current,h.initialStatus)&&(g.current=h.initialStatus,A({type:"SET_STATUS",payload:h.initialStatus}))},[l,h.initialStatus,h.initialTouched]);var ee=Oe(function(S){if(x.current[S]&&me(x.current[S].validate)){var O=q(M.values,S),I=x.current[S].validate(O);return ho(I)?(A({type:"SET_ISVALIDATING",payload:!0}),I.then(function(N){return N}).then(function(N){A({type:"SET_FIELD_ERROR",payload:{field:S,value:N}}),A({type:"SET_ISVALIDATING",payload:!1})})):(A({type:"SET_FIELD_ERROR",payload:{field:S,value:I}}),Promise.resolve(I))}else if(h.validationSchema)return A({type:"SET_ISVALIDATING",payload:!0}),L(M.values,S).then(function(N){return N}).then(function(N){A({type:"SET_FIELD_ERROR",payload:{field:S,value:q(N,S)}}),A({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),ie=E.useCallback(function(S,O){var I=O.validate;x.current[S]={validate:I}},[]),U=E.useCallback(function(S){delete x.current[S]},[]),D=Oe(function(S,O){A({type:"SET_TOUCHED",payload:S});var I=O===void 0?o:O;return I?de(M.values):Promise.resolve()}),he=E.useCallback(function(S){A({type:"SET_ERRORS",payload:S})},[]),we=Oe(function(S,O){var I=me(S)?S(M.values):S;A({type:"SET_VALUES",payload:I});var N=O===void 0?n:O;return N?de(I):Promise.resolve()}),Me=E.useCallback(function(S,O){A({type:"SET_FIELD_ERROR",payload:{field:S,value:O}})},[]),xe=Oe(function(S,O,I){A({type:"SET_FIELD_VALUE",payload:{field:S,value:O}});var N=I===void 0?n:I;return N?de($e(M.values,S,O)):Promise.resolve()}),X=E.useCallback(function(S,O){var I=O,N=S,B;if(!uo(S)){S.persist&&S.persist();var W=S.target?S.target:S.currentTarget,ye=W.type,Ke=W.name,hs=W.id,ps=W.value,xx=W.checked,Sx=W.outerHTML,Df=W.options,Ax=W.multiple;I=O||Ke||hs,!I&&ne.env.NODE_ENV!=="production"&&Ga({htmlContent:Sx,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),N=/number|range/.test(ye)?(B=parseFloat(ps),isNaN(B)?"":B):/checkbox/.test(ye)?N0(q(M.values,I),xx,ps):Df&&Ax?I0(Df):ps}I&&xe(I,N)},[xe,M.values]),ae=Oe(function(S){if(uo(S))return function(O){return X(O,S)};X(S)}),De=Oe(function(S,O,I){O===void 0&&(O=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:S,value:O}});var N=I===void 0?o:I;return N?de(M.values):Promise.resolve()}),Bt=E.useCallback(function(S,O){S.persist&&S.persist();var I=S.target,N=I.name,B=I.id,W=I.outerHTML,ye=O||N||B;!ye&&ne.env.NODE_ENV!=="production"&&Ga({htmlContent:W,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),De(ye,!0)},[De]),te=Oe(function(S){if(uo(S))return function(O){return Bt(O,S)};Bt(S)}),$t=E.useCallback(function(S){me(S)?A({type:"SET_FORMIK_STATE",payload:S}):A({type:"SET_FORMIK_STATE",payload:function(){return S}})},[]),ot=E.useCallback(function(S){A({type:"SET_STATUS",payload:S})},[]),it=E.useCallback(function(S){A({type:"SET_ISSUBMITTING",payload:S})},[]),st=Oe(function(){return A({type:"SUBMIT_ATTEMPT"}),de().then(function(S){var O=S instanceof Error,I=!O&&Object.keys(S).length===0;if(I){var N;try{if(N=mn(),N===void 0)return}catch(B){throw B}return Promise.resolve(N).then(function(B){return b.current&&A({type:"SUBMIT_SUCCESS"}),B}).catch(function(B){if(b.current)throw A({type:"SUBMIT_FAILURE"}),B})}else if(b.current&&(A({type:"SUBMIT_FAILURE"}),O))throw S})}),k=Oe(function(S){if(S&&S.preventDefault&&me(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&me(S.stopPropagation)&&S.stopPropagation(),ne.env.NODE_ENV!=="production"&&typeof document<"u"){var O=P0();O!==null&&O instanceof HTMLButtonElement&&(O.attributes&&O.attributes.getNamedItem("type")||(ne.env.NODE_ENV!=="production"?se(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):se()))}st().catch(function(I){console.warn("Warning: An unhandled error was caught from submitForm()",I)})}),pn={resetForm:_,validateForm:de,validateField:ee,setErrors:he,setFieldError:Me,setFieldTouched:De,setFieldValue:xe,setStatus:ot,setSubmitting:it,setTouched:D,setValues:we,setFormikState:$t,submitForm:st},mn=Oe(function(){return u(M.values,pn)}),Rr=Oe(function(S){S&&S.preventDefault&&me(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&me(S.stopPropagation)&&S.stopPropagation(),_()}),vx=E.useCallback(function(S){return{value:q(M.values,S),error:q(M.errors,S),touched:!!q(M.touched,S),initialValue:q(p.current,S),initialTouched:!!q(m.current,S),initialError:q(y.current,S)}},[M.errors,M.touched,M.values]),bx=E.useCallback(function(S){return{setValue:function(I,N){return xe(S,I,N)},setTouched:function(I,N){return De(S,I,N)},setError:function(I){return Me(S,I)}}},[xe,De,Me]),wx=E.useCallback(function(S){var O=Gt(S),I=O?S.name:S,N=q(M.values,I),B={name:I,value:N,onChange:ae,onBlur:te};if(O){var W=S.type,ye=S.value,Ke=S.as,hs=S.multiple;W==="checkbox"?ye===void 0?B.checked=!!N:(B.checked=!!(Array.isArray(N)&&~N.indexOf(ye)),B.value=ye):W==="radio"?(B.checked=N===ye,B.value=ye):Ke==="select"&&hs&&(B.value=B.value||[],B.multiple=!0)}return B},[te,ae,M.values]),fs=E.useMemo(function(){return!dt(p.current,M.values)},[p.current,M.values]),Tx=E.useMemo(function(){return typeof a<"u"?fs?M.errors&&Object.keys(M.errors).length===0:a!==!1&&me(a)?a(h):a:M.errors&&Object.keys(M.errors).length===0},[a,fs,M.errors,h]),Ex=K({},M,{initialValues:p.current,initialErrors:y.current,initialTouched:m.current,initialStatus:g.current,handleBlur:te,handleChange:ae,handleReset:Rr,handleSubmit:k,resetForm:_,setErrors:he,setFormikState:$t,setFieldTouched:De,setFieldValue:xe,setFieldError:Me,setStatus:ot,setSubmitting:it,setTouched:D,setValues:we,submitForm:st,validateForm:de,validateField:ee,isValid:Tx,dirty:fs,unregisterField:U,registerField:ie,getFieldProps:wx,getFieldMeta:vx,getFieldHelpers:bx,validateOnBlur:o,validateOnChange:n,validateOnMount:s});return Ex}function O0(e){var t=D0(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return E.useImperativeHandle(i,function(){return t}),ne.env.NODE_ENV!=="production"&&E.useEffect(function(){e.render&&(ne.env.NODE_ENV!=="production"?se(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):se())},[]),E.createElement(S0,{value:t},n?E.createElement(n,t):o?o(t):r?me(r)?r(t):fo(r)?null:E.Children.only(r):null)}function Ga(e){var t=e.htmlContent,n=e.documentationAnchorLink,r=e.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
74
74
  Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+n+`
75
- `)}function V0(e){var t={};if(e.inner){if(e.inner.length===0)return $e(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var s=i;q(t,s.path)||(t=$e(t,s.path,s.message))}}return t}function F0(e,t,n,r){n===void 0&&(n=!1);var o=po(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function po(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||zs(o)?po(o):o!==""?o:void 0}):zs(e[r])?t[r]=po(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function k0(e,t,n){var r=e.slice();return t.forEach(function(i,s){if(typeof r[s]>"u"){var a=n.clone!==!1,c=a&&n.isMergeableObject(i);r[s]=c?Hr(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[s]=Hr(e[s],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function I0(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function N0(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var L0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?E.useLayoutEffect:E.useEffect;function Oe(e){var t=E.useRef(e);return L0(function(){t.current=e}),E.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current.apply(void 0,r)},[])}function Pn(e){var t=Mt(),n=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,i=t.registerField,s=t.unregisterField,a=Gt(e),c=a?e:{name:e},l=c.name,u=c.validate;E.useEffect(function(){return l&&i(l,{validate:u}),function(){l&&s(l)}},[i,s,l,u]),ne.env.NODE_ENV!=="production"&&(t||(ne.env.NODE_ENV!=="production"?se(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):se())),l||(ne.env.NODE_ENV!=="production"?se(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):se());var f=E.useMemo(function(){return o(l)},[o,l]);return[n(c),r(l),f]}function mo(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,s=e.component,a=e.className,c=ft(e,["validate","name","render","children","as","component","className"]),l=Mt(),u=ft(l,["validate","validationSchema"]);ne.env.NODE_ENV!=="production"&&E.useEffect(function(){r&&(ne.env.NODE_ENV!=="production"?se(!1,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+n+'" render={({field, form}) => ...} /> with <Field name="'+n+'">{({field, form, meta}) => ...}</Field>'):se()),i&&o&&me(o)&&(ne.env.NODE_ENV!=="production"?se(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):se()),s&&o&&me(o)&&(ne.env.NODE_ENV!=="production"?se(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):se()),r&&o&&!fo(o)&&(ne.env.NODE_ENV!=="production"?se(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):se())},[]);var f=u.registerField,h=u.unregisterField;E.useEffect(function(){return f(n,{validate:t}),function(){h(n)}},[f,h,n,t]);var p=u.getFieldProps(K({name:n},c)),y=u.getFieldMeta(n),m={field:p,form:u};if(r)return r(K({},m,{meta:y}));if(me(o))return o(K({},m,{meta:y}));if(s){if(typeof s=="string"){var g=c.innerRef,b=ft(c,["innerRef"]);return E.createElement(s,K({ref:g},p,b,{className:a}),o)}return E.createElement(s,K({field:p,form:u},c,{className:a}),o)}var x=i||"input";if(typeof x=="string"){var T=c.innerRef,P=ft(c,["innerRef"]);return E.createElement(x,K({ref:T},p,P,{className:a}),o)}return E.createElement(x,K({},p,c,{className:a}),o)}var R0=E.forwardRef(function(e,t){var n=e.action,r=ft(e,["action"]),o=n??"#",i=Mt(),s=i.handleReset,a=i.handleSubmit;return E.createElement("form",K({onSubmit:a,ref:t,onReset:s,action:o},r))});R0.displayName="Form";function _0(e){var t=function(o){return E.createElement(A0,null,function(i){return i||(ne.env.NODE_ENV!=="production"?se(!1,"Formik context is undefined, please verify you are rendering <Form>, <Field>, <FastField>, <FieldArray>, or your custom context-using component as a child of a <Formik> component. Component name: "+e.name):se()),E.createElement(e,K({},o,{formik:i}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",x0(t,e)}var j0=function(t,n,r){var o=Ot(t),i=o[n];return o.splice(n,1),o.splice(r,0,i),o},B0=function(t,n,r){var o=Ot(t),i=o[n];return o[n]=o[r],o[r]=i,o},go=function(t,n,r){var o=Ot(t);return o.splice(n,0,r),o},$0=function(t,n,r){var o=Ot(t);return o[n]=r,o},Ot=function(t){if(t){if(Array.isArray(t))return[].concat(t);var n=Object.keys(t).map(function(r){return parseInt(r)}).reduce(function(r,o){return o>r?o:r},0);return Array.from(K({},t,{length:n+1}))}else return[]},Ya=function(t,n){var r=typeof t=="function"?t:n;return function(o){if(Array.isArray(o)||Gt(o)){var i=Ot(o);return r(i)}return o}},U0=function(e){za(t,e);function t(r){var o;return o=e.call(this,r)||this,o.updateArrayField=function(i,s,a){var c=o.props,l=c.name,u=c.formik.setFormikState;u(function(f){var h=Ya(a,i),p=Ya(s,i),y=$e(f.values,l,i(q(f.values,l))),m=a?h(q(f.errors,l)):void 0,g=s?p(q(f.touched,l)):void 0;return Ha(m)&&(m=void 0),Ha(g)&&(g=void 0),K({},f,{values:y,errors:a?$e(f.errors,l,m):f.errors,touched:s?$e(f.touched,l,g):f.touched})})},o.push=function(i){return o.updateArrayField(function(s){return[].concat(Ot(s),[Cn(i)])},!1,!1)},o.handlePush=function(i){return function(){return o.push(i)}},o.swap=function(i,s){return o.updateArrayField(function(a){return B0(a,i,s)},!0,!0)},o.handleSwap=function(i,s){return function(){return o.swap(i,s)}},o.move=function(i,s){return o.updateArrayField(function(a){return j0(a,i,s)},!0,!0)},o.handleMove=function(i,s){return function(){return o.move(i,s)}},o.insert=function(i,s){return o.updateArrayField(function(a){return go(a,i,s)},function(a){return go(a,i,null)},function(a){return go(a,i,null)})},o.handleInsert=function(i,s){return function(){return o.insert(i,s)}},o.replace=function(i,s){return o.updateArrayField(function(a){return $0(a,i,s)},!1,!1)},o.handleReplace=function(i,s){return function(){return o.replace(i,s)}},o.unshift=function(i){var s=-1;return o.updateArrayField(function(a){var c=a?[i].concat(a):[i];return s=c.length,c},function(a){return a?[null].concat(a):[null]},function(a){return a?[null].concat(a):[null]}),s},o.handleUnshift=function(i){return function(){return o.unshift(i)}},o.handleRemove=function(i){return function(){return o.remove(i)}},o.handlePop=function(){return function(){return o.pop()}},o.remove=o.remove.bind(Za(o)),o.pop=o.pop.bind(Za(o)),o}var n=t.prototype;return n.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!dt(q(o.formik.values,o.name),q(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(o){var i;return this.updateArrayField(function(s){var a=s?Ot(s):[];return i||(i=a[o]),me(a.splice)&&a.splice(o,1),me(a.every)&&a.every(function(c){return c===void 0})?[]:a},!0,!0),i},n.pop=function(){var o;return this.updateArrayField(function(i){var s=i.slice();return o||(o=s&&s.pop&&s.pop()),s},!0,!0),o},n.render=function(){var o={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,s=i.component,a=i.render,c=i.children,l=i.name,u=i.formik,f=ft(u,["validate","validationSchema"]),h=K({},o,{form:f,name:l});return s?E.createElement(s,h):a?a(h):c?typeof c=="function"?c(h):fo(c)?null:E.Children.only(c):null},t}(E.Component);U0.defaultProps={validateOnChange:!0};var W0=function(e){za(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.shouldComponentUpdate=function(o){return q(this.props.formik.errors,this.props.name)!==q(o.formik.errors,this.props.name)||q(this.props.formik.touched,this.props.name)!==q(o.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(o).length},n.render=function(){var o=this.props,i=o.component,s=o.formik,a=o.render,c=o.children,l=o.name,u=ft(o,["component","formik","render","children","name"]),f=q(s.touched,l),h=q(s.errors,l);return f&&h?a?me(a)?a(h):null:c?me(c)?c(h):null:i?E.createElement(i,u,h):h:null},t}(E.Component),yo=_0(W0);const Xa=E.createContext({}),nr=()=>E.useContext(Xa),z0="w-full",vo="flex ml-5 mt-2 text-xs text-feedback-danger-200";function Z0({disableOnSubmit:e,disableOnNotDirty:t,disableOnNotValid:n,isDisabled:r,...o}){const{isSubmitting:i,dirty:s,isValid:a}=Mt(),{isForcedDirty:c,onNavigationEvent:l}=nr(),u=h=>{l(()=>o.onClick)},f=E.useMemo(()=>!!(r||e&&i||t&&!s||t&&typeof c=="boolean"&&!c||n&&!a),[e,t,r,i,c,s,a,n]);return v.jsx(yn,{...o,isDisabled:f,onClick:o.type!=="submit"&&(s||typeof c<"u"&&c)?u:o.onClick})}function H0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qa={exports:{}},le=qa.exports={},Ue,We;function bo(){throw new Error("setTimeout has not been defined")}function wo(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ue=setTimeout:Ue=bo}catch{Ue=bo}try{typeof clearTimeout=="function"?We=clearTimeout:We=wo}catch{We=wo}})();function Qa(e){if(Ue===setTimeout)return setTimeout(e,0);if((Ue===bo||!Ue)&&setTimeout)return Ue=setTimeout,setTimeout(e,0);try{return Ue(e,0)}catch{try{return Ue.call(null,e,0)}catch{return Ue.call(this,e,0)}}}function K0(e){if(We===clearTimeout)return clearTimeout(e);if((We===wo||!We)&&clearTimeout)return We=clearTimeout,clearTimeout(e);try{return We(e)}catch{try{return We.call(null,e)}catch{return We.call(this,e)}}}var Je=[],Yt=!1,Vt,rr=-1;function G0(){!Yt||!Vt||(Yt=!1,Vt.length?Je=Vt.concat(Je):rr=-1,Je.length&&Ja())}function Ja(){if(!Yt){var e=Qa(G0);Yt=!0;for(var t=Je.length;t;){for(Vt=Je,Je=[];++rr<t;)Vt&&Vt[rr].run();rr=-1,t=Je.length}Vt=null,Yt=!1,K0(e)}}le.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Je.push(new ec(e,t)),Je.length===1&&!Yt&&Qa(Ja)};function ec(e,t){this.fun=e,this.array=t}ec.prototype.run=function(){this.fun.apply(null,this.array)},le.title="browser",le.browser=!0,le.env={},le.argv=[],le.version="",le.versions={};function et(){}le.on=et,le.addListener=et,le.once=et,le.off=et,le.removeListener=et,le.removeAllListeners=et,le.emit=et,le.prependListener=et,le.prependOnceListener=et,le.listeners=function(e){return[]},le.binding=function(e){throw new Error("process.binding is not supported")},le.cwd=function(){return"/"},le.chdir=function(e){throw new Error("process.chdir is not supported")},le.umask=function(){return 0};var Y0=qa.exports;const Ft=H0(Y0),To=E.createContext({});function Eo(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const xo=typeof window<"u",tc=xo?E.useLayoutEffect:E.useEffect,or=E.createContext(null);function So(e,t){e.indexOf(t)===-1&&e.push(t)}function Ao(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const tt=(e,t,n)=>n>t?t:n<e?e:n;function Co(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Xt=()=>{},nt=()=>{};Ft.env.NODE_ENV!=="production"&&(Xt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Co(t,n))},nt=(e,t,n)=>{if(!e)throw new Error(Co(t,n))});const rt={},nc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function rc(e){return typeof e=="object"&&e!==null}const oc=e=>/^0[^.\s]+$/u.test(e);function Po(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ve=e=>e,X0=(e,t)=>n=>t(e(n)),Mn=(...e)=>e.reduce(X0),Dn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Mo{constructor(){this.subscriptions=[]}add(t){return So(this.subscriptions,t),()=>Ao(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 s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ie=e=>e*1e3,ze=e=>e/1e3;function ic(e,t){return t?e*(1e3/t):0}const sc=new Set;function Do(e,t,n){e||sc.has(t)||(console.warn(Co(t,n)),sc.add(t))}const ac=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,q0=1e-7,Q0=12;function J0(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=ac(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>q0&&++a<Q0);return s}function On(e,t,n,r){if(e===t&&n===r)return Ve;const o=i=>J0(i,0,1,e,n);return i=>i===0||i===1?i:ac(o(i),t,r)}const cc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,lc=e=>t=>1-e(1-t),uc=On(.33,1.53,.69,.99),Oo=lc(uc),dc=cc(Oo),fc=e=>(e*=2)<1?.5*Oo(e):.5*(2-Math.pow(2,-10*(e-1))),Vo=e=>1-Math.sin(Math.acos(e)),hc=lc(Vo),pc=cc(Vo),ey=On(.42,0,1,1),ty=On(0,0,.58,1),mc=On(.42,0,.58,1),ny=e=>Array.isArray(e)&&typeof e[0]!="number",gc=e=>Array.isArray(e)&&typeof e[0]=="number",yc={linear:Ve,easeIn:ey,easeInOut:mc,easeOut:ty,circIn:Vo,circInOut:pc,circOut:hc,backIn:Oo,backInOut:dc,backOut:uc,anticipate:fc},ry=e=>typeof e=="string",vc=e=>{if(gc(e)){nt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return On(t,n,r,o)}else if(ry(e))return nt(yc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),yc[e];return e},ir=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function oy(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){s.has(u)&&(l.schedule(u),e()),u(a)}const l={schedule:(u,f=!1,h=!1)=>{const y=h&&o?n:r;return f&&s.add(u),y.has(u)||y.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,i&&(i=!1,l.process(u))}};return l}const iy=40;function bc(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ir.reduce((T,P)=>(T[P]=oy(i),T),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:f,preRender:h,render:p,postRender:y}=s,m=()=>{const T=rt.useManualTiming?o.timestamp:performance.now();n=!1,rt.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(T-o.timestamp,iy),1)),o.timestamp=T,o.isProcessing=!0,a.process(o),c.process(o),l.process(o),u.process(o),f.process(o),h.process(o),p.process(o),y.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,o.isProcessing||e(m)};return{schedule:ir.reduce((T,P)=>{const w=s[P];return T[P]=(C,A=!1,M=!1)=>(n||g(),w.schedule(C,A,M)),T},{}),cancel:T=>{for(let P=0;P<ir.length;P++)s[ir[P]].cancel(T)},state:o,steps:s}}const{schedule:Q,cancel:ht,state:ve,steps:Fo}=bc(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ve,!0);let sr;function sy(){sr=void 0}const Ae={now:()=>(sr===void 0&&Ae.set(ve.isProcessing||rt.useManualTiming?ve.timestamp:performance.now()),sr),set:e=>{sr=e,queueMicrotask(sy)}},wc=e=>t=>typeof t=="string"&&t.startsWith(e),ko=wc("--"),ay=wc("var(--"),Io=e=>ay(e)?cy.test(e.split("/*")[0].trim()):!1,cy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,qt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vn={...qt,transform:e=>tt(0,1,e)},ar={...qt,default:1},Fn=e=>Math.round(e*1e5)/1e5,No=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ly(e){return e==null}const uy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Lo=(e,t)=>n=>!!(typeof n=="string"&&uy.test(n)&&n.startsWith(e)||t&&!ly(n)&&Object.prototype.hasOwnProperty.call(n,t)),Tc=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(No);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},dy=e=>tt(0,255,e),Ro={...qt,transform:e=>Math.round(dy(e))},kt={test:Lo("rgb","red"),parse:Tc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ro.transform(e)+", "+Ro.transform(t)+", "+Ro.transform(n)+", "+Fn(Vn.transform(r))+")"};function fy(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 _o={test:Lo("#"),parse:fy,transform:kt.transform},kn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pt=kn("deg"),Ze=kn("%"),R=kn("px"),hy=kn("vh"),py=kn("vw"),Ec={...Ze,parse:e=>Ze.parse(e)/100,transform:e=>Ze.transform(e*100)},Qt={test:Lo("hsl","hue"),parse:Tc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ze.transform(Fn(t))+", "+Ze.transform(Fn(n))+", "+Fn(Vn.transform(r))+")"},fe={test:e=>kt.test(e)||_o.test(e)||Qt.test(e),parse:e=>kt.test(e)?kt.parse(e):Qt.test(e)?Qt.parse(e):_o.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?kt.transform(e):Qt.transform(e),getAnimatableNone:e=>{const t=fe.parse(e);return t.alpha=0,fe.transform(t)}},my=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gy(e){return isNaN(e)&&typeof e=="string"&&(e.match(No)?.length||0)+(e.match(my)?.length||0)>0}const xc="number",Sc="color",yy="var",vy="var(",Ac="${}",by=/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 In(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(by,c=>(fe.test(c)?(r.color.push(i),o.push(Sc),n.push(fe.parse(c))):c.startsWith(vy)?(r.var.push(i),o.push(yy),n.push(c)):(r.number.push(i),o.push(xc),n.push(parseFloat(c))),++i,Ac)).split(Ac);return{values:n,split:a,indexes:r,types:o}}function Cc(e){return In(e).values}function Pc(e){const{split:t,types:n}=In(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===xc?i+=Fn(o[s]):a===Sc?i+=fe.transform(o[s]):i+=o[s]}return i}}const wy=e=>typeof e=="number"?0:fe.test(e)?fe.getAnimatableNone(e):e;function Ty(e){const t=Cc(e);return Pc(e)(t.map(wy))}const mt={test:gy,parse:Cc,createTransformer:Pc,getAnimatableNone:Ty};function jo(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 Ey({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;o=jo(c,a,e+1/3),i=jo(c,a,e),s=jo(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function cr(e,t){return n=>n>0?t:e}const re=(e,t,n)=>e+(t-e)*n,Bo=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},xy=[_o,kt,Qt],Sy=e=>xy.find(t=>t.test(e));function Mc(e){const t=Sy(e);if(Xt(!!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===Qt&&(n=Ey(n)),n}const Dc=(e,t)=>{const n=Mc(e),r=Mc(t);if(!n||!r)return cr(e,t);const o={...n};return i=>(o.red=Bo(n.red,r.red,i),o.green=Bo(n.green,r.green,i),o.blue=Bo(n.blue,r.blue,i),o.alpha=re(n.alpha,r.alpha,i),kt.transform(o))},$o=new Set(["none","hidden"]);function Ay(e,t){return $o.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Cy(e,t){return n=>re(e,t,n)}function Uo(e){return typeof e=="number"?Cy:typeof e=="string"?Io(e)?cr:fe.test(e)?Dc:Dy:Array.isArray(e)?Oc:typeof e=="object"?fe.test(e)?Dc:Py:cr}function Oc(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Uo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function Py(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Uo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function My(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],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const Dy=(e,t)=>{const n=mt.createTransformer(t),r=In(e),o=In(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?$o.has(e)&&!o.values.length||$o.has(t)&&!r.values.length?Ay(e,t):Mn(Oc(My(r,o),o.values),n):(Xt(!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"),cr(e,t))};function Vc(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?re(e,t,n):Uo(e)(e,t)}const Oy=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Q.update(t,n),stop:()=>ht(t),now:()=>ve.isProcessing?ve.timestamp:Ae.now()}},Fc=(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)})`},lr=2e4;function Wo(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<lr;)t+=n,r=e.next(t);return t>=lr?1/0:t}function Vy(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Wo(r),lr);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:ze(o)}}const Fy=5;function kc(e,t,n){const r=Math.max(t-Fy,0);return ic(n-e(r),t-r)}const oe={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},zo=.001;function ky({duration:e=oe.duration,bounce:t=oe.bounce,velocity:n=oe.velocity,mass:r=oe.mass}){let o,i;Xt(e<=Ie(oe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=tt(oe.minDamping,oe.maxDamping,s),e=tt(oe.minDuration,oe.maxDuration,ze(e)),s<1?(o=l=>{const u=l*s,f=u*e,h=u-n,p=Zo(l,s),y=Math.exp(-f);return zo-h/p*y},i=l=>{const f=l*s*e,h=f*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,y=Math.exp(-f),m=Zo(Math.pow(l,2),s);return(-o(l)+zo>0?-1:1)*((h-p)*y)/m}):(o=l=>{const u=Math.exp(-l*e),f=(l-n)*e+1;return-zo+u*f},i=l=>{const u=Math.exp(-l*e),f=(n-l)*(e*e);return u*f});const a=5/e,c=Ny(o,i,a);if(e=Ie(e),isNaN(c))return{stiffness:oe.stiffness,damping:oe.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const Iy=12;function Ny(e,t,n){let r=n;for(let o=1;o<Iy;o++)r=r-e(r)/t(r);return r}function Zo(e,t){return e*Math.sqrt(1-t*t)}const Ly=["duration","bounce"],Ry=["stiffness","damping","mass"];function Ic(e,t){return t.some(n=>e[n]!==void 0)}function _y(e){let t={velocity:oe.velocity,stiffness:oe.stiffness,damping:oe.damping,mass:oe.mass,isResolvedFromDuration:!1,...e};if(!Ic(e,Ry)&&Ic(e,Ly))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*tt(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:oe.mass,stiffness:o,damping:i}}else{const n=ky(e);t={...t,...n,mass:oe.mass},t.isResolvedFromDuration=!0}return t}function ur(e=oe.visualDuration,t=oe.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],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:f,velocity:h,isResolvedFromDuration:p}=_y({...n,velocity:-ze(n.velocity||0)}),y=h||0,m=l/(2*Math.sqrt(c*u)),g=s-i,b=ze(Math.sqrt(c/u)),x=Math.abs(g)<5;r||(r=x?oe.restSpeed.granular:oe.restSpeed.default),o||(o=x?oe.restDelta.granular:oe.restDelta.default);let T;if(m<1){const w=Zo(b,m);T=C=>{const A=Math.exp(-m*b*C);return s-A*((y+m*b*g)/w*Math.sin(w*C)+g*Math.cos(w*C))}}else if(m===1)T=w=>s-Math.exp(-b*w)*(g+(y+b*g)*w);else{const w=b*Math.sqrt(m*m-1);T=C=>{const A=Math.exp(-m*b*C),M=Math.min(w*C,300);return s-A*((y+m*b*g)*Math.sinh(M)+w*g*Math.cosh(M))/w}}const P={calculatedDuration:p&&f||null,next:w=>{const C=T(w);if(p)a.done=w>=f;else{let A=w===0?y:0;m<1&&(A=w===0?Ie(y):kc(T,w,C));const M=Math.abs(A)<=r,N=Math.abs(s-C)<=o;a.done=M&&N}return a.value=a.done?s:C,a},toString:()=>{const w=Math.min(Wo(P),lr),C=Fc(A=>P.next(w*A).value,w,30);return w+"ms "+C},toTransition:()=>{}};return P}ur.applyToOptions=e=>{const t=Vy(e,100,ur);return e.ease=t.ease,e.duration=Ie(t.duration),e.type="keyframes",e};function Ho({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:c,restDelta:l=.5,restSpeed:u}){const f=e[0],h={done:!1,value:f},p=M=>a!==void 0&&M<a||c!==void 0&&M>c,y=M=>a===void 0?c:c===void 0||Math.abs(a-M)<Math.abs(c-M)?a:c;let m=n*t;const g=f+m,b=s===void 0?g:s(g);b!==g&&(m=b-f);const x=M=>-m*Math.exp(-M/r),T=M=>b+x(M),P=M=>{const N=x(M),j=T(M);h.done=Math.abs(N)<=l,h.value=h.done?b:j};let w,C;const A=M=>{p(h.value)&&(w=M,C=ur({keyframes:[h.value,y(h.value)],velocity:kc(T,M,h.value),damping:o,stiffness:i,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:M=>{let N=!1;return!C&&w===void 0&&(N=!0,P(M),A(M)),w!==void 0&&M>=w?C.next(M-w):(!N&&P(M),h)}}}function jy(e,t,n){const r=[],o=n||rt.mix||Vc,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||Ve:t;a=Mn(c,a)}r.push(a)}return r}function By(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(nt(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 s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=jy(t,r,o),c=a.length,l=u=>{if(s&&u<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const h=Dn(e[f],e[f+1],u);return a[f](h)};return n?u=>l(tt(e[0],e[i-1],u)):l}function $y(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Dn(0,t,r);e.push(re(n,1,o))}}function Uy(e){const t=[0];return $y(t,e.length-1),t}function Wy(e,t){return e.map(n=>n*t)}function zy(e,t){return e.map(()=>t||mc).splice(0,e.length-1)}function Jt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=ny(r)?r.map(vc):vc(r),i={done:!1,value:t[0]},s=Wy(n&&n.length===t.length?n:Uy(t),e),a=By(s,t,{ease:Array.isArray(o)?o:zy(t,o)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const Zy=e=>e!==null;function Ko(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Zy),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Hy={decay:Ho,inertia:Ho,tween:Jt,keyframes:Jt,spring:ur};function Nc(e){typeof e.type=="string"&&(e.type=Hy[e.type])}class Go{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 Ky=e=>e/100;class Yo extends Go{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Ae.now()&&this.tick(Ae.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Nc(t);const{type:n=Jt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const c=n||Jt;Ft.env.NODE_ENV!=="production"&&c!==Jt&&nt(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Jt&&typeof a[0]!="number"&&(this.mixKeyframes=Mn(Ky,Vc(a[0],a[1])),a=[0,100]);const l=c({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=Wo(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=l}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:s,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:u,repeat:f,repeatType:h,repeatDelay:p,type:y,onUpdate:m,finalKeyframe:g}=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 b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?b<0:b>o;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let T=this.currentTime,P=r;if(f){const M=Math.min(this.currentTime,o)/a;let N=Math.floor(M),j=M%1;!j&&M>=1&&(j=1),j===1&&N--,N=Math.min(N,f+1),!!(N%2)&&(h==="reverse"?(j=1-j,p&&(j-=p/a)):h==="mirror"&&(P=s)),T=tt(0,1,j)*a}const w=x?{done:!1,value:u[0]}:P.next(T);i&&(w.value=i(w.value));let{done:C}=w;!x&&c!==null&&(C=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return A&&y!==Ho&&(w.value=Ko(u,this.options,g,this.speed)),m&&m(w.value),A&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return ze(this.calculatedDuration)}get time(){return ze(this.currentTime)}set time(t){t=Ie(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ae.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ze(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Oy,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ae.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Gy(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const It=e=>e*180/Math.PI,Xo=e=>{const t=It(Math.atan2(e[1],e[0]));return qo(t)},Yy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Xo,rotateZ:Xo,skewX:e=>It(Math.atan(e[1])),skewY:e=>It(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},qo=e=>(e=e%360,e<0&&(e+=360),e),Lc=Xo,Rc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),_c=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Xy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Rc,scaleY:_c,scale:e=>(Rc(e)+_c(e))/2,rotateX:e=>qo(It(Math.atan2(e[6],e[5]))),rotateY:e=>qo(It(Math.atan2(-e[2],e[0]))),rotateZ:Lc,rotate:Lc,skewX:e=>It(Math.atan(e[4])),skewY:e=>It(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Qo(e){return e.includes("scale")?1:0}function Jo(e,t){if(!e||e==="none")return Qo(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Xy,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Yy,o=a}if(!o)return Qo(t);const i=r[t],s=o[1].split(",").map(Qy);return typeof i=="function"?i(s):s[i]}const qy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Jo(n,t)};function Qy(e){return parseFloat(e.trim())}const en=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tn=new Set(en),jc=e=>e===qt||e===R,Jy=new Set(["x","y","z"]),ev=en.filter(e=>!Jy.has(e));function tv(e){const t=[];return ev.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Nt={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})=>Jo(t,"x"),y:(e,{transform:t})=>Jo(t,"y")};Nt.translateX=Nt.x,Nt.translateY=Nt.y;const Lt=new Set;let ei=!1,ti=!1,ni=!1;function Bc(){if(ti){const e=Array.from(Lt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=tv(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,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ti=!1,ei=!1,Lt.forEach(e=>e.complete(ni)),Lt.clear()}function $c(){Lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ti=!0)})}function nv(){ni=!0,$c(),Bc(),ni=!1}class ri{constructor(t,n,r,o,i,s=!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=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Lt.add(this),ei||(ei=!0,Q.read($c),Q.resolveKeyframes(Bc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}Gy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Lt.delete(this)}cancel(){this.state==="scheduled"&&(Lt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const rv=e=>e.startsWith("--");function ov(e,t,n){rv(t)?e.style.setProperty(t,n):e.style[t]=n}const iv=Po(()=>window.ScrollTimeline!==void 0),sv={};function av(e,t){const n=Po(e);return()=>sv[t]??n()}const Uc=av(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Nn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Wc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Nn([0,.65,.55,1]),circOut:Nn([.55,0,1,.45]),backIn:Nn([.31,.01,.66,-.59]),backOut:Nn([.33,1.53,.69,.99])};function zc(e,t){if(e)return typeof e=="function"?Uc()?Fc(e,t):"ease-out":gc(e)?Nn(e):Array.isArray(e)?e.map(n=>zc(n,t)||Wc.easeOut):Wc[e]}function cv(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[t]:n};c&&(u.offset=c);const f=zc(a,o);Array.isArray(f)&&(u.easing=f);const h={delay:r,duration:o,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return l&&(h.pseudoElement=l),e.animate(u,h)}function Zc(e){return typeof e=="function"&&"applyToOptions"in e}function lv({type:e,...t}){return Zc(e)&&Uc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class uv extends Go{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,nt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=lv(t);this.animation=cv(n,r,o,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Ko(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):ov(n,r,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return ze(Number(t))}get time(){return ze(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ie(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 Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&iv()?(this.animation.timeline=t,Ve):n(this)}}const Hc={anticipate:fc,backInOut:dc,circInOut:pc};function dv(e){return e in Hc}function fv(e){typeof e.ease=="string"&&dv(e.ease)&&(e.ease=Hc[e.ease])}const Kc=10;class hv extends uv{constructor(t){fv(t),Nc(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Yo({...s,autoplay:!1}),c=Ie(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Kc).value,a.sample(c).value,Kc),a.stop()}}const Gc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(mt.test(e)||e==="0")&&!e.startsWith("url("));function pv(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 mv(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],s=Gc(o,t),a=Gc(i,t);return Xt(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:pv(e)||(n==="spring"||Zc(n))&&r}function oi(e){e.duration=0,e.type}const gv=new Set(["opacity","clipPath","filter","transform"]),yv=Po(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function vv(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=t.owner.getProps();return yv()&&n&&gv.has(n)&&(n!=="transform"||!l)&&!c&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const bv=40;class wv extends Go{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:c,motionValue:l,element:u,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ae.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:c,motionValue:l,element:u,...f},p=u?.KeyframeResolver||ri;this.keyframeResolver=new p(a,(y,m,g)=>this.onKeyframesResolved(y,m,h,!g),c,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:c,isHandoff:l,onUpdate:u}=r;this.resolvedAt=Ae.now(),mv(t,i,s,a)||((rt.instantAnimations||!c)&&u?.(Ko(t,r,n)),t[0]=t[t.length-1],oi(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>bv?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!l&&vv(h)?new hv({...h,element:h.motionValue.owner.current}):new Yo(h);p.finished.then(()=>this.notifyFinished()).catch(Ve),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),nv()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Tv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ev(e){const t=Tv.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const xv=4;function Yc(e,t,n=1){nt(n<=xv,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=Ev(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return nc(s)?parseFloat(s):s}return Io(o)?Yc(o,t,n+1):o}function ii(e,t){return e?.[t]??e?.default??e}const Xc=new Set(["width","height","top","left","right","bottom",...en]),Sv={test:e=>e==="auto",parse:e=>e},qc=e=>t=>t.test(e),Qc=[qt,R,Ze,pt,py,hy,Sv],Jc=e=>Qc.find(qc(e));function Av(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||oc(e):!0}const Cv=new Set(["brightness","contrast","saturate","opacity"]);function Pv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(No)||[];if(!r)return e;const o=n.replace(r,"");let i=Cv.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Mv=/\b([a-z-]*)\(.*?\)/gu,si={...mt,getAnimatableNone:e=>{const t=e.match(Mv);return t?t.map(Pv).join(" "):e}},el={...qt,transform:Math.round},ai={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,radius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,backgroundPositionX:R,backgroundPositionY:R,...{rotate:pt,rotateX:pt,rotateY:pt,rotateZ:pt,scale:ar,scaleX:ar,scaleY:ar,scaleZ:ar,skew:pt,skewX:pt,skewY:pt,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:Vn,originX:Ec,originY:Ec,originZ:R},zIndex:el,fillOpacity:Vn,strokeOpacity:Vn,numOctaves:el},Dv={...ai,color:fe,backgroundColor:fe,outlineColor:fe,fill:fe,stroke:fe,borderColor:fe,borderTopColor:fe,borderRightColor:fe,borderBottomColor:fe,borderLeftColor:fe,filter:si,WebkitFilter:si},tl=e=>Dv[e];function nl(e,t){let n=tl(e);return n!==si&&(n=mt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ov=new Set(["auto","none","0"]);function Vv(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!Ov.has(i)&&In(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=nl(n,o)}class Fv extends ri{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 c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),Io(l))){const u=Yc(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Xc.has(r)||t.length!==2)return;const[o,i]=t,s=Jc(o),a=Jc(i);if(s!==a)if(jc(s)&&jc(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else Nt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Av(t[o]))&&r.push(o);r.length&&Vv(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=Nt[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(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=Nt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{t.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function kv(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const rl=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ol(e){return rc(e)&&"offsetHeight"in e}const il=30,Iv=e=>!isNaN(parseFloat(e));class Nv{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=Ae.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ae.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Iv(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return Ft.env.NODE_ENV!=="production"&&Do(!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 Mo);const r=this.events[t].add(n);return t==="change"?()=>{r(),Q.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ae.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>il)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,il);return ic(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nn(e,t){return new Nv(e,t)}const{schedule:ci}=bc(queueMicrotask,!1),Ne={x:!1,y:!1};function sl(){return Ne.x||Ne.y}function Lv(e){return e==="x"||e==="y"?Ne[e]?null:(Ne[e]=!0,()=>{Ne[e]=!1}):Ne.x||Ne.y?null:(Ne.x=Ne.y=!0,()=>{Ne.x=Ne.y=!1})}function al(e,t){const n=kv(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function cl(e){return!(e.pointerType==="touch"||sl())}function Rv(e,t,n={}){const[r,o,i]=al(e,n),s=a=>{if(!cl(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=f=>{cl(f)&&(l(f),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const ll=(e,t)=>t?e===t?!0:ll(e,t.parentElement):!1,li=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_v=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jv(e){return _v.has(e.tagName)||e.tabIndex!==-1}const dr=new WeakSet;function ul(e){return t=>{t.key==="Enter"&&e(t)}}function ui(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Bv=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ul(()=>{if(dr.has(n))return;ui(n,"down");const o=ul(()=>{ui(n,"up")}),i=()=>ui(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 dl(e){return li(e)&&!sl()}function $v(e,t,n={}){const[r,o,i]=al(e,n),s=a=>{const c=a.currentTarget;if(!dl(a))return;dr.add(c);const l=t(c,a),u=(p,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),dr.has(c)&&dr.delete(c),dl(p)&&typeof l=="function"&&l(p,{success:y})},f=p=>{u(p,c===window||c===document||n.useGlobalTarget||ll(c,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),ol(a)&&(a.addEventListener("focus",l=>Bv(l,o)),!jv(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function fl(e){return rc(e)&&"ownerSVGElement"in e}function Uv(e){return fl(e)&&e.tagName==="svg"}const Te=e=>!!(e&&e.getVelocity),Wv=[...Qc,fe,mt],zv=e=>Wv.find(qc(e)),di=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Zv extends d.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=ol(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 Hv({children:e,isPresent:t,anchorX:n,root:r}){const o=E.useId(),i=E.useRef(null),s=E.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=E.useContext(di);return E.useInsertionEffect(()=>{const{width:c,height:l,top:u,left:f,right:h}=s.current;if(t||!i.current||!c||!l)return;const p=n==="left"?`left: ${f}`:`right: ${h}`;i.current.dataset.motionPopId=o;const y=document.createElement("style");a&&(y.nonce=a);const m=r??document.head;return m.appendChild(y),y.sheet&&y.sheet.insertRule(`
75
+ `)}function V0(e){var t={};if(e.inner){if(e.inner.length===0)return $e(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var s=i;q(t,s.path)||(t=$e(t,s.path,s.message))}}return t}function F0(e,t,n,r){n===void 0&&(n=!1);var o=po(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function po(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||zs(o)?po(o):o!==""?o:void 0}):zs(e[r])?t[r]=po(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function k0(e,t,n){var r=e.slice();return t.forEach(function(i,s){if(typeof r[s]>"u"){var a=n.clone!==!1,c=a&&n.isMergeableObject(i);r[s]=c?Hr(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[s]=Hr(e[s],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function I0(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function N0(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var L0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?E.useLayoutEffect:E.useEffect;function Oe(e){var t=E.useRef(e);return L0(function(){t.current=e}),E.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current.apply(void 0,r)},[])}function Pn(e){var t=Mt(),n=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,i=t.registerField,s=t.unregisterField,a=Gt(e),c=a?e:{name:e},l=c.name,u=c.validate;E.useEffect(function(){return l&&i(l,{validate:u}),function(){l&&s(l)}},[i,s,l,u]),ne.env.NODE_ENV!=="production"&&(t||(ne.env.NODE_ENV!=="production"?se(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):se())),l||(ne.env.NODE_ENV!=="production"?se(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):se());var f=E.useMemo(function(){return o(l)},[o,l]);return[n(c),r(l),f]}function mo(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,s=e.component,a=e.className,c=ft(e,["validate","name","render","children","as","component","className"]),l=Mt(),u=ft(l,["validate","validationSchema"]);ne.env.NODE_ENV!=="production"&&E.useEffect(function(){r&&(ne.env.NODE_ENV!=="production"?se(!1,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+n+'" render={({field, form}) => ...} /> with <Field name="'+n+'">{({field, form, meta}) => ...}</Field>'):se()),i&&o&&me(o)&&(ne.env.NODE_ENV!=="production"?se(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):se()),s&&o&&me(o)&&(ne.env.NODE_ENV!=="production"?se(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):se()),r&&o&&!fo(o)&&(ne.env.NODE_ENV!=="production"?se(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):se())},[]);var f=u.registerField,h=u.unregisterField;E.useEffect(function(){return f(n,{validate:t}),function(){h(n)}},[f,h,n,t]);var p=u.getFieldProps(K({name:n},c)),y=u.getFieldMeta(n),m={field:p,form:u};if(r)return r(K({},m,{meta:y}));if(me(o))return o(K({},m,{meta:y}));if(s){if(typeof s=="string"){var g=c.innerRef,b=ft(c,["innerRef"]);return E.createElement(s,K({ref:g},p,b,{className:a}),o)}return E.createElement(s,K({field:p,form:u},c,{className:a}),o)}var x=i||"input";if(typeof x=="string"){var T=c.innerRef,P=ft(c,["innerRef"]);return E.createElement(x,K({ref:T},p,P,{className:a}),o)}return E.createElement(x,K({},p,c,{className:a}),o)}var R0=E.forwardRef(function(e,t){var n=e.action,r=ft(e,["action"]),o=n??"#",i=Mt(),s=i.handleReset,a=i.handleSubmit;return E.createElement("form",K({onSubmit:a,ref:t,onReset:s,action:o},r))});R0.displayName="Form";function _0(e){var t=function(o){return E.createElement(A0,null,function(i){return i||(ne.env.NODE_ENV!=="production"?se(!1,"Formik context is undefined, please verify you are rendering <Form>, <Field>, <FastField>, <FieldArray>, or your custom context-using component as a child of a <Formik> component. Component name: "+e.name):se()),E.createElement(e,K({},o,{formik:i}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",x0(t,e)}var j0=function(t,n,r){var o=Ot(t),i=o[n];return o.splice(n,1),o.splice(r,0,i),o},B0=function(t,n,r){var o=Ot(t),i=o[n];return o[n]=o[r],o[r]=i,o},go=function(t,n,r){var o=Ot(t);return o.splice(n,0,r),o},$0=function(t,n,r){var o=Ot(t);return o[n]=r,o},Ot=function(t){if(t){if(Array.isArray(t))return[].concat(t);var n=Object.keys(t).map(function(r){return parseInt(r)}).reduce(function(r,o){return o>r?o:r},0);return Array.from(K({},t,{length:n+1}))}else return[]},Ya=function(t,n){var r=typeof t=="function"?t:n;return function(o){if(Array.isArray(o)||Gt(o)){var i=Ot(o);return r(i)}return o}},U0=function(e){za(t,e);function t(r){var o;return o=e.call(this,r)||this,o.updateArrayField=function(i,s,a){var c=o.props,l=c.name,u=c.formik.setFormikState;u(function(f){var h=Ya(a,i),p=Ya(s,i),y=$e(f.values,l,i(q(f.values,l))),m=a?h(q(f.errors,l)):void 0,g=s?p(q(f.touched,l)):void 0;return Ha(m)&&(m=void 0),Ha(g)&&(g=void 0),K({},f,{values:y,errors:a?$e(f.errors,l,m):f.errors,touched:s?$e(f.touched,l,g):f.touched})})},o.push=function(i){return o.updateArrayField(function(s){return[].concat(Ot(s),[Cn(i)])},!1,!1)},o.handlePush=function(i){return function(){return o.push(i)}},o.swap=function(i,s){return o.updateArrayField(function(a){return B0(a,i,s)},!0,!0)},o.handleSwap=function(i,s){return function(){return o.swap(i,s)}},o.move=function(i,s){return o.updateArrayField(function(a){return j0(a,i,s)},!0,!0)},o.handleMove=function(i,s){return function(){return o.move(i,s)}},o.insert=function(i,s){return o.updateArrayField(function(a){return go(a,i,s)},function(a){return go(a,i,null)},function(a){return go(a,i,null)})},o.handleInsert=function(i,s){return function(){return o.insert(i,s)}},o.replace=function(i,s){return o.updateArrayField(function(a){return $0(a,i,s)},!1,!1)},o.handleReplace=function(i,s){return function(){return o.replace(i,s)}},o.unshift=function(i){var s=-1;return o.updateArrayField(function(a){var c=a?[i].concat(a):[i];return s=c.length,c},function(a){return a?[null].concat(a):[null]},function(a){return a?[null].concat(a):[null]}),s},o.handleUnshift=function(i){return function(){return o.unshift(i)}},o.handleRemove=function(i){return function(){return o.remove(i)}},o.handlePop=function(){return function(){return o.pop()}},o.remove=o.remove.bind(Za(o)),o.pop=o.pop.bind(Za(o)),o}var n=t.prototype;return n.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!dt(q(o.formik.values,o.name),q(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(o){var i;return this.updateArrayField(function(s){var a=s?Ot(s):[];return i||(i=a[o]),me(a.splice)&&a.splice(o,1),me(a.every)&&a.every(function(c){return c===void 0})?[]:a},!0,!0),i},n.pop=function(){var o;return this.updateArrayField(function(i){var s=i.slice();return o||(o=s&&s.pop&&s.pop()),s},!0,!0),o},n.render=function(){var o={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,s=i.component,a=i.render,c=i.children,l=i.name,u=i.formik,f=ft(u,["validate","validationSchema"]),h=K({},o,{form:f,name:l});return s?E.createElement(s,h):a?a(h):c?typeof c=="function"?c(h):fo(c)?null:E.Children.only(c):null},t}(E.Component);U0.defaultProps={validateOnChange:!0};var W0=function(e){za(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.shouldComponentUpdate=function(o){return q(this.props.formik.errors,this.props.name)!==q(o.formik.errors,this.props.name)||q(this.props.formik.touched,this.props.name)!==q(o.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(o).length},n.render=function(){var o=this.props,i=o.component,s=o.formik,a=o.render,c=o.children,l=o.name,u=ft(o,["component","formik","render","children","name"]),f=q(s.touched,l),h=q(s.errors,l);return f&&h?a?me(a)?a(h):null:c?me(c)?c(h):null:i?E.createElement(i,u,h):h:null},t}(E.Component),yo=_0(W0);const Xa=E.createContext({}),nr=()=>E.useContext(Xa),z0="w-full",vo="flex ml-5 mt-2 text-xs text-feedback-danger-200";function Z0({disableOnSubmit:e,disableOnNotDirty:t,disableOnNotValid:n,isDisabled:r,...o}){const{isSubmitting:i,dirty:s,isValid:a}=Mt(),{isForcedDirty:c,onNavigationEvent:l}=nr(),u=h=>{l(()=>o.onClick)},f=E.useMemo(()=>!!(r||e&&i||t&&!s||t&&typeof c=="boolean"&&!c||n&&!a),[e,t,r,i,c,s,a,n]);return v.jsx(yn,{...o,isDisabled:f,onClick:o.type!=="submit"&&(s||typeof c<"u"&&c)?u:o.onClick})}function H0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qa={exports:{}},le=qa.exports={},Ue,We;function bo(){throw new Error("setTimeout has not been defined")}function wo(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ue=setTimeout:Ue=bo}catch{Ue=bo}try{typeof clearTimeout=="function"?We=clearTimeout:We=wo}catch{We=wo}})();function Qa(e){if(Ue===setTimeout)return setTimeout(e,0);if((Ue===bo||!Ue)&&setTimeout)return Ue=setTimeout,setTimeout(e,0);try{return Ue(e,0)}catch{try{return Ue.call(null,e,0)}catch{return Ue.call(this,e,0)}}}function K0(e){if(We===clearTimeout)return clearTimeout(e);if((We===wo||!We)&&clearTimeout)return We=clearTimeout,clearTimeout(e);try{return We(e)}catch{try{return We.call(null,e)}catch{return We.call(this,e)}}}var Je=[],Yt=!1,Vt,rr=-1;function G0(){!Yt||!Vt||(Yt=!1,Vt.length?Je=Vt.concat(Je):rr=-1,Je.length&&Ja())}function Ja(){if(!Yt){var e=Qa(G0);Yt=!0;for(var t=Je.length;t;){for(Vt=Je,Je=[];++rr<t;)Vt&&Vt[rr].run();rr=-1,t=Je.length}Vt=null,Yt=!1,K0(e)}}le.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Je.push(new ec(e,t)),Je.length===1&&!Yt&&Qa(Ja)};function ec(e,t){this.fun=e,this.array=t}ec.prototype.run=function(){this.fun.apply(null,this.array)},le.title="browser",le.browser=!0,le.env={},le.argv=[],le.version="",le.versions={};function et(){}le.on=et,le.addListener=et,le.once=et,le.off=et,le.removeListener=et,le.removeAllListeners=et,le.emit=et,le.prependListener=et,le.prependOnceListener=et,le.listeners=function(e){return[]},le.binding=function(e){throw new Error("process.binding is not supported")},le.cwd=function(){return"/"},le.chdir=function(e){throw new Error("process.chdir is not supported")},le.umask=function(){return 0};var Y0=qa.exports;const Ft=H0(Y0),To=E.createContext({});function Eo(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const xo=typeof window<"u",tc=xo?E.useLayoutEffect:E.useEffect,or=E.createContext(null);function So(e,t){e.indexOf(t)===-1&&e.push(t)}function Ao(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const tt=(e,t,n)=>n>t?t:n<e?e:n;function Co(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Xt=()=>{},nt=()=>{};Ft.env.NODE_ENV!=="production"&&(Xt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Co(t,n))},nt=(e,t,n)=>{if(!e)throw new Error(Co(t,n))});const rt={},nc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function rc(e){return typeof e=="object"&&e!==null}const oc=e=>/^0[^.\s]+$/u.test(e);function Po(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ve=e=>e,X0=(e,t)=>n=>t(e(n)),Mn=(...e)=>e.reduce(X0),Dn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Mo{constructor(){this.subscriptions=[]}add(t){return So(this.subscriptions,t),()=>Ao(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 s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ie=e=>e*1e3,ze=e=>e/1e3;function ic(e,t){return t?e*(1e3/t):0}const sc=new Set;function Do(e,t,n){e||sc.has(t)||(console.warn(Co(t,n)),sc.add(t))}const ac=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,q0=1e-7,Q0=12;function J0(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=ac(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>q0&&++a<Q0);return s}function On(e,t,n,r){if(e===t&&n===r)return Ve;const o=i=>J0(i,0,1,e,n);return i=>i===0||i===1?i:ac(o(i),t,r)}const cc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,lc=e=>t=>1-e(1-t),uc=On(.33,1.53,.69,.99),Oo=lc(uc),dc=cc(Oo),fc=e=>(e*=2)<1?.5*Oo(e):.5*(2-Math.pow(2,-10*(e-1))),Vo=e=>1-Math.sin(Math.acos(e)),hc=lc(Vo),pc=cc(Vo),ey=On(.42,0,1,1),ty=On(0,0,.58,1),mc=On(.42,0,.58,1),ny=e=>Array.isArray(e)&&typeof e[0]!="number",gc=e=>Array.isArray(e)&&typeof e[0]=="number",yc={linear:Ve,easeIn:ey,easeInOut:mc,easeOut:ty,circIn:Vo,circInOut:pc,circOut:hc,backIn:Oo,backInOut:dc,backOut:uc,anticipate:fc},ry=e=>typeof e=="string",vc=e=>{if(gc(e)){nt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return On(t,n,r,o)}else if(ry(e))return nt(yc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),yc[e];return e},ir=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function oy(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){s.has(u)&&(l.schedule(u),e()),u(a)}const l={schedule:(u,f=!1,h=!1)=>{const y=h&&o?n:r;return f&&s.add(u),y.has(u)||y.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,i&&(i=!1,l.process(u))}};return l}const iy=40;function bc(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ir.reduce((T,P)=>(T[P]=oy(i),T),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:f,preRender:h,render:p,postRender:y}=s,m=()=>{const T=rt.useManualTiming?o.timestamp:performance.now();n=!1,rt.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(T-o.timestamp,iy),1)),o.timestamp=T,o.isProcessing=!0,a.process(o),c.process(o),l.process(o),u.process(o),f.process(o),h.process(o),p.process(o),y.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,o.isProcessing||e(m)};return{schedule:ir.reduce((T,P)=>{const w=s[P];return T[P]=(M,A=!1,C=!1)=>(n||g(),w.schedule(M,A,C)),T},{}),cancel:T=>{for(let P=0;P<ir.length;P++)s[ir[P]].cancel(T)},state:o,steps:s}}const{schedule:Q,cancel:ht,state:ve,steps:Fo}=bc(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ve,!0);let sr;function sy(){sr=void 0}const Ae={now:()=>(sr===void 0&&Ae.set(ve.isProcessing||rt.useManualTiming?ve.timestamp:performance.now()),sr),set:e=>{sr=e,queueMicrotask(sy)}},wc=e=>t=>typeof t=="string"&&t.startsWith(e),ko=wc("--"),ay=wc("var(--"),Io=e=>ay(e)?cy.test(e.split("/*")[0].trim()):!1,cy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,qt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vn={...qt,transform:e=>tt(0,1,e)},ar={...qt,default:1},Fn=e=>Math.round(e*1e5)/1e5,No=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ly(e){return e==null}const uy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Lo=(e,t)=>n=>!!(typeof n=="string"&&uy.test(n)&&n.startsWith(e)||t&&!ly(n)&&Object.prototype.hasOwnProperty.call(n,t)),Tc=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(No);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},dy=e=>tt(0,255,e),Ro={...qt,transform:e=>Math.round(dy(e))},kt={test:Lo("rgb","red"),parse:Tc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ro.transform(e)+", "+Ro.transform(t)+", "+Ro.transform(n)+", "+Fn(Vn.transform(r))+")"};function fy(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 _o={test:Lo("#"),parse:fy,transform:kt.transform},kn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pt=kn("deg"),Ze=kn("%"),R=kn("px"),hy=kn("vh"),py=kn("vw"),Ec={...Ze,parse:e=>Ze.parse(e)/100,transform:e=>Ze.transform(e*100)},Qt={test:Lo("hsl","hue"),parse:Tc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ze.transform(Fn(t))+", "+Ze.transform(Fn(n))+", "+Fn(Vn.transform(r))+")"},fe={test:e=>kt.test(e)||_o.test(e)||Qt.test(e),parse:e=>kt.test(e)?kt.parse(e):Qt.test(e)?Qt.parse(e):_o.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?kt.transform(e):Qt.transform(e),getAnimatableNone:e=>{const t=fe.parse(e);return t.alpha=0,fe.transform(t)}},my=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gy(e){return isNaN(e)&&typeof e=="string"&&(e.match(No)?.length||0)+(e.match(my)?.length||0)>0}const xc="number",Sc="color",yy="var",vy="var(",Ac="${}",by=/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 In(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(by,c=>(fe.test(c)?(r.color.push(i),o.push(Sc),n.push(fe.parse(c))):c.startsWith(vy)?(r.var.push(i),o.push(yy),n.push(c)):(r.number.push(i),o.push(xc),n.push(parseFloat(c))),++i,Ac)).split(Ac);return{values:n,split:a,indexes:r,types:o}}function Cc(e){return In(e).values}function Pc(e){const{split:t,types:n}=In(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===xc?i+=Fn(o[s]):a===Sc?i+=fe.transform(o[s]):i+=o[s]}return i}}const wy=e=>typeof e=="number"?0:fe.test(e)?fe.getAnimatableNone(e):e;function Ty(e){const t=Cc(e);return Pc(e)(t.map(wy))}const mt={test:gy,parse:Cc,createTransformer:Pc,getAnimatableNone:Ty};function jo(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 Ey({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;o=jo(c,a,e+1/3),i=jo(c,a,e),s=jo(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function cr(e,t){return n=>n>0?t:e}const re=(e,t,n)=>e+(t-e)*n,Bo=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},xy=[_o,kt,Qt],Sy=e=>xy.find(t=>t.test(e));function Mc(e){const t=Sy(e);if(Xt(!!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===Qt&&(n=Ey(n)),n}const Dc=(e,t)=>{const n=Mc(e),r=Mc(t);if(!n||!r)return cr(e,t);const o={...n};return i=>(o.red=Bo(n.red,r.red,i),o.green=Bo(n.green,r.green,i),o.blue=Bo(n.blue,r.blue,i),o.alpha=re(n.alpha,r.alpha,i),kt.transform(o))},$o=new Set(["none","hidden"]);function Ay(e,t){return $o.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Cy(e,t){return n=>re(e,t,n)}function Uo(e){return typeof e=="number"?Cy:typeof e=="string"?Io(e)?cr:fe.test(e)?Dc:Dy:Array.isArray(e)?Oc:typeof e=="object"?fe.test(e)?Dc:Py:cr}function Oc(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Uo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function Py(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Uo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function My(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],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const Dy=(e,t)=>{const n=mt.createTransformer(t),r=In(e),o=In(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?$o.has(e)&&!o.values.length||$o.has(t)&&!r.values.length?Ay(e,t):Mn(Oc(My(r,o),o.values),n):(Xt(!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"),cr(e,t))};function Vc(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?re(e,t,n):Uo(e)(e,t)}const Oy=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Q.update(t,n),stop:()=>ht(t),now:()=>ve.isProcessing?ve.timestamp:Ae.now()}},Fc=(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)})`},lr=2e4;function Wo(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<lr;)t+=n,r=e.next(t);return t>=lr?1/0:t}function Vy(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Wo(r),lr);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:ze(o)}}const Fy=5;function kc(e,t,n){const r=Math.max(t-Fy,0);return ic(n-e(r),t-r)}const oe={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},zo=.001;function ky({duration:e=oe.duration,bounce:t=oe.bounce,velocity:n=oe.velocity,mass:r=oe.mass}){let o,i;Xt(e<=Ie(oe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=tt(oe.minDamping,oe.maxDamping,s),e=tt(oe.minDuration,oe.maxDuration,ze(e)),s<1?(o=l=>{const u=l*s,f=u*e,h=u-n,p=Zo(l,s),y=Math.exp(-f);return zo-h/p*y},i=l=>{const f=l*s*e,h=f*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,y=Math.exp(-f),m=Zo(Math.pow(l,2),s);return(-o(l)+zo>0?-1:1)*((h-p)*y)/m}):(o=l=>{const u=Math.exp(-l*e),f=(l-n)*e+1;return-zo+u*f},i=l=>{const u=Math.exp(-l*e),f=(n-l)*(e*e);return u*f});const a=5/e,c=Ny(o,i,a);if(e=Ie(e),isNaN(c))return{stiffness:oe.stiffness,damping:oe.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const Iy=12;function Ny(e,t,n){let r=n;for(let o=1;o<Iy;o++)r=r-e(r)/t(r);return r}function Zo(e,t){return e*Math.sqrt(1-t*t)}const Ly=["duration","bounce"],Ry=["stiffness","damping","mass"];function Ic(e,t){return t.some(n=>e[n]!==void 0)}function _y(e){let t={velocity:oe.velocity,stiffness:oe.stiffness,damping:oe.damping,mass:oe.mass,isResolvedFromDuration:!1,...e};if(!Ic(e,Ry)&&Ic(e,Ly))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*tt(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:oe.mass,stiffness:o,damping:i}}else{const n=ky(e);t={...t,...n,mass:oe.mass},t.isResolvedFromDuration=!0}return t}function ur(e=oe.visualDuration,t=oe.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],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:f,velocity:h,isResolvedFromDuration:p}=_y({...n,velocity:-ze(n.velocity||0)}),y=h||0,m=l/(2*Math.sqrt(c*u)),g=s-i,b=ze(Math.sqrt(c/u)),x=Math.abs(g)<5;r||(r=x?oe.restSpeed.granular:oe.restSpeed.default),o||(o=x?oe.restDelta.granular:oe.restDelta.default);let T;if(m<1){const w=Zo(b,m);T=M=>{const A=Math.exp(-m*b*M);return s-A*((y+m*b*g)/w*Math.sin(w*M)+g*Math.cos(w*M))}}else if(m===1)T=w=>s-Math.exp(-b*w)*(g+(y+b*g)*w);else{const w=b*Math.sqrt(m*m-1);T=M=>{const A=Math.exp(-m*b*M),C=Math.min(w*M,300);return s-A*((y+m*b*g)*Math.sinh(C)+w*g*Math.cosh(C))/w}}const P={calculatedDuration:p&&f||null,next:w=>{const M=T(w);if(p)a.done=w>=f;else{let A=w===0?y:0;m<1&&(A=w===0?Ie(y):kc(T,w,M));const C=Math.abs(A)<=r,L=Math.abs(s-M)<=o;a.done=C&&L}return a.value=a.done?s:M,a},toString:()=>{const w=Math.min(Wo(P),lr),M=Fc(A=>P.next(w*A).value,w,30);return w+"ms "+M},toTransition:()=>{}};return P}ur.applyToOptions=e=>{const t=Vy(e,100,ur);return e.ease=t.ease,e.duration=Ie(t.duration),e.type="keyframes",e};function Ho({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:c,restDelta:l=.5,restSpeed:u}){const f=e[0],h={done:!1,value:f},p=C=>a!==void 0&&C<a||c!==void 0&&C>c,y=C=>a===void 0?c:c===void 0||Math.abs(a-C)<Math.abs(c-C)?a:c;let m=n*t;const g=f+m,b=s===void 0?g:s(g);b!==g&&(m=b-f);const x=C=>-m*Math.exp(-C/r),T=C=>b+x(C),P=C=>{const L=x(C),$=T(C);h.done=Math.abs(L)<=l,h.value=h.done?b:$};let w,M;const A=C=>{p(h.value)&&(w=C,M=ur({keyframes:[h.value,y(h.value)],velocity:kc(T,C,h.value),damping:o,stiffness:i,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:C=>{let L=!1;return!M&&w===void 0&&(L=!0,P(C),A(C)),w!==void 0&&C>=w?M.next(C-w):(!L&&P(C),h)}}}function jy(e,t,n){const r=[],o=n||rt.mix||Vc,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||Ve:t;a=Mn(c,a)}r.push(a)}return r}function By(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(nt(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 s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=jy(t,r,o),c=a.length,l=u=>{if(s&&u<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const h=Dn(e[f],e[f+1],u);return a[f](h)};return n?u=>l(tt(e[0],e[i-1],u)):l}function $y(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Dn(0,t,r);e.push(re(n,1,o))}}function Uy(e){const t=[0];return $y(t,e.length-1),t}function Wy(e,t){return e.map(n=>n*t)}function zy(e,t){return e.map(()=>t||mc).splice(0,e.length-1)}function Jt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=ny(r)?r.map(vc):vc(r),i={done:!1,value:t[0]},s=Wy(n&&n.length===t.length?n:Uy(t),e),a=By(s,t,{ease:Array.isArray(o)?o:zy(t,o)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const Zy=e=>e!==null;function Ko(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Zy),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Hy={decay:Ho,inertia:Ho,tween:Jt,keyframes:Jt,spring:ur};function Nc(e){typeof e.type=="string"&&(e.type=Hy[e.type])}class Go{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 Ky=e=>e/100;class Yo extends Go{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Ae.now()&&this.tick(Ae.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Nc(t);const{type:n=Jt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const c=n||Jt;Ft.env.NODE_ENV!=="production"&&c!==Jt&&nt(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Jt&&typeof a[0]!="number"&&(this.mixKeyframes=Mn(Ky,Vc(a[0],a[1])),a=[0,100]);const l=c({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=Wo(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=l}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:s,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:u,repeat:f,repeatType:h,repeatDelay:p,type:y,onUpdate:m,finalKeyframe:g}=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 b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?b<0:b>o;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let T=this.currentTime,P=r;if(f){const C=Math.min(this.currentTime,o)/a;let L=Math.floor(C),$=C%1;!$&&C>=1&&($=1),$===1&&L--,L=Math.min(L,f+1),!!(L%2)&&(h==="reverse"?($=1-$,p&&($-=p/a)):h==="mirror"&&(P=s)),T=tt(0,1,$)*a}const w=x?{done:!1,value:u[0]}:P.next(T);i&&(w.value=i(w.value));let{done:M}=w;!x&&c!==null&&(M=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return A&&y!==Ho&&(w.value=Ko(u,this.options,g,this.speed)),m&&m(w.value),A&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return ze(this.calculatedDuration)}get time(){return ze(this.currentTime)}set time(t){t=Ie(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ae.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ze(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Oy,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ae.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Gy(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const It=e=>e*180/Math.PI,Xo=e=>{const t=It(Math.atan2(e[1],e[0]));return qo(t)},Yy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Xo,rotateZ:Xo,skewX:e=>It(Math.atan(e[1])),skewY:e=>It(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},qo=e=>(e=e%360,e<0&&(e+=360),e),Lc=Xo,Rc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),_c=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Xy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Rc,scaleY:_c,scale:e=>(Rc(e)+_c(e))/2,rotateX:e=>qo(It(Math.atan2(e[6],e[5]))),rotateY:e=>qo(It(Math.atan2(-e[2],e[0]))),rotateZ:Lc,rotate:Lc,skewX:e=>It(Math.atan(e[4])),skewY:e=>It(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Qo(e){return e.includes("scale")?1:0}function Jo(e,t){if(!e||e==="none")return Qo(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Xy,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Yy,o=a}if(!o)return Qo(t);const i=r[t],s=o[1].split(",").map(Qy);return typeof i=="function"?i(s):s[i]}const qy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Jo(n,t)};function Qy(e){return parseFloat(e.trim())}const en=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tn=new Set(en),jc=e=>e===qt||e===R,Jy=new Set(["x","y","z"]),ev=en.filter(e=>!Jy.has(e));function tv(e){const t=[];return ev.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Nt={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})=>Jo(t,"x"),y:(e,{transform:t})=>Jo(t,"y")};Nt.translateX=Nt.x,Nt.translateY=Nt.y;const Lt=new Set;let ei=!1,ti=!1,ni=!1;function Bc(){if(ti){const e=Array.from(Lt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=tv(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,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ti=!1,ei=!1,Lt.forEach(e=>e.complete(ni)),Lt.clear()}function $c(){Lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ti=!0)})}function nv(){ni=!0,$c(),Bc(),ni=!1}class ri{constructor(t,n,r,o,i,s=!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=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Lt.add(this),ei||(ei=!0,Q.read($c),Q.resolveKeyframes(Bc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}Gy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Lt.delete(this)}cancel(){this.state==="scheduled"&&(Lt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const rv=e=>e.startsWith("--");function ov(e,t,n){rv(t)?e.style.setProperty(t,n):e.style[t]=n}const iv=Po(()=>window.ScrollTimeline!==void 0),sv={};function av(e,t){const n=Po(e);return()=>sv[t]??n()}const Uc=av(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Nn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Wc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Nn([0,.65,.55,1]),circOut:Nn([.55,0,1,.45]),backIn:Nn([.31,.01,.66,-.59]),backOut:Nn([.33,1.53,.69,.99])};function zc(e,t){if(e)return typeof e=="function"?Uc()?Fc(e,t):"ease-out":gc(e)?Nn(e):Array.isArray(e)?e.map(n=>zc(n,t)||Wc.easeOut):Wc[e]}function cv(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[t]:n};c&&(u.offset=c);const f=zc(a,o);Array.isArray(f)&&(u.easing=f);const h={delay:r,duration:o,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return l&&(h.pseudoElement=l),e.animate(u,h)}function Zc(e){return typeof e=="function"&&"applyToOptions"in e}function lv({type:e,...t}){return Zc(e)&&Uc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class uv extends Go{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,nt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=lv(t);this.animation=cv(n,r,o,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Ko(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):ov(n,r,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return ze(Number(t))}get time(){return ze(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ie(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 Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&iv()?(this.animation.timeline=t,Ve):n(this)}}const Hc={anticipate:fc,backInOut:dc,circInOut:pc};function dv(e){return e in Hc}function fv(e){typeof e.ease=="string"&&dv(e.ease)&&(e.ease=Hc[e.ease])}const Kc=10;class hv extends uv{constructor(t){fv(t),Nc(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Yo({...s,autoplay:!1}),c=Ie(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Kc).value,a.sample(c).value,Kc),a.stop()}}const Gc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(mt.test(e)||e==="0")&&!e.startsWith("url("));function pv(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 mv(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],s=Gc(o,t),a=Gc(i,t);return Xt(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:pv(e)||(n==="spring"||Zc(n))&&r}function oi(e){e.duration=0,e.type}const gv=new Set(["opacity","clipPath","filter","transform"]),yv=Po(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function vv(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=t.owner.getProps();return yv()&&n&&gv.has(n)&&(n!=="transform"||!l)&&!c&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const bv=40;class wv extends Go{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:c,motionValue:l,element:u,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ae.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:c,motionValue:l,element:u,...f},p=u?.KeyframeResolver||ri;this.keyframeResolver=new p(a,(y,m,g)=>this.onKeyframesResolved(y,m,h,!g),c,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:c,isHandoff:l,onUpdate:u}=r;this.resolvedAt=Ae.now(),mv(t,i,s,a)||((rt.instantAnimations||!c)&&u?.(Ko(t,r,n)),t[0]=t[t.length-1],oi(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>bv?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!l&&vv(h)?new hv({...h,element:h.motionValue.owner.current}):new Yo(h);p.finished.then(()=>this.notifyFinished()).catch(Ve),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),nv()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Tv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ev(e){const t=Tv.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const xv=4;function Yc(e,t,n=1){nt(n<=xv,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=Ev(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return nc(s)?parseFloat(s):s}return Io(o)?Yc(o,t,n+1):o}function ii(e,t){return e?.[t]??e?.default??e}const Xc=new Set(["width","height","top","left","right","bottom",...en]),Sv={test:e=>e==="auto",parse:e=>e},qc=e=>t=>t.test(e),Qc=[qt,R,Ze,pt,py,hy,Sv],Jc=e=>Qc.find(qc(e));function Av(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||oc(e):!0}const Cv=new Set(["brightness","contrast","saturate","opacity"]);function Pv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(No)||[];if(!r)return e;const o=n.replace(r,"");let i=Cv.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Mv=/\b([a-z-]*)\(.*?\)/gu,si={...mt,getAnimatableNone:e=>{const t=e.match(Mv);return t?t.map(Pv).join(" "):e}},el={...qt,transform:Math.round},ai={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,radius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,backgroundPositionX:R,backgroundPositionY:R,...{rotate:pt,rotateX:pt,rotateY:pt,rotateZ:pt,scale:ar,scaleX:ar,scaleY:ar,scaleZ:ar,skew:pt,skewX:pt,skewY:pt,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:Vn,originX:Ec,originY:Ec,originZ:R},zIndex:el,fillOpacity:Vn,strokeOpacity:Vn,numOctaves:el},Dv={...ai,color:fe,backgroundColor:fe,outlineColor:fe,fill:fe,stroke:fe,borderColor:fe,borderTopColor:fe,borderRightColor:fe,borderBottomColor:fe,borderLeftColor:fe,filter:si,WebkitFilter:si},tl=e=>Dv[e];function nl(e,t){let n=tl(e);return n!==si&&(n=mt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ov=new Set(["auto","none","0"]);function Vv(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!Ov.has(i)&&In(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=nl(n,o)}class Fv extends ri{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 c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),Io(l))){const u=Yc(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Xc.has(r)||t.length!==2)return;const[o,i]=t,s=Jc(o),a=Jc(i);if(s!==a)if(jc(s)&&jc(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else Nt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Av(t[o]))&&r.push(o);r.length&&Vv(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=Nt[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(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=Nt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{t.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function kv(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const rl=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ol(e){return rc(e)&&"offsetHeight"in e}const il=30,Iv=e=>!isNaN(parseFloat(e));class Nv{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=Ae.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ae.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Iv(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return Ft.env.NODE_ENV!=="production"&&Do(!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 Mo);const r=this.events[t].add(n);return t==="change"?()=>{r(),Q.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ae.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>il)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,il);return ic(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nn(e,t){return new Nv(e,t)}const{schedule:ci}=bc(queueMicrotask,!1),Ne={x:!1,y:!1};function sl(){return Ne.x||Ne.y}function Lv(e){return e==="x"||e==="y"?Ne[e]?null:(Ne[e]=!0,()=>{Ne[e]=!1}):Ne.x||Ne.y?null:(Ne.x=Ne.y=!0,()=>{Ne.x=Ne.y=!1})}function al(e,t){const n=kv(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function cl(e){return!(e.pointerType==="touch"||sl())}function Rv(e,t,n={}){const[r,o,i]=al(e,n),s=a=>{if(!cl(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=f=>{cl(f)&&(l(f),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const ll=(e,t)=>t?e===t?!0:ll(e,t.parentElement):!1,li=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_v=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jv(e){return _v.has(e.tagName)||e.tabIndex!==-1}const dr=new WeakSet;function ul(e){return t=>{t.key==="Enter"&&e(t)}}function ui(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Bv=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ul(()=>{if(dr.has(n))return;ui(n,"down");const o=ul(()=>{ui(n,"up")}),i=()=>ui(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 dl(e){return li(e)&&!sl()}function $v(e,t,n={}){const[r,o,i]=al(e,n),s=a=>{const c=a.currentTarget;if(!dl(a))return;dr.add(c);const l=t(c,a),u=(p,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),dr.has(c)&&dr.delete(c),dl(p)&&typeof l=="function"&&l(p,{success:y})},f=p=>{u(p,c===window||c===document||n.useGlobalTarget||ll(c,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),ol(a)&&(a.addEventListener("focus",l=>Bv(l,o)),!jv(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function fl(e){return rc(e)&&"ownerSVGElement"in e}function Uv(e){return fl(e)&&e.tagName==="svg"}const Te=e=>!!(e&&e.getVelocity),Wv=[...Qc,fe,mt],zv=e=>Wv.find(qc(e)),di=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Zv extends d.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=ol(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 Hv({children:e,isPresent:t,anchorX:n,root:r}){const o=E.useId(),i=E.useRef(null),s=E.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=E.useContext(di);return E.useInsertionEffect(()=>{const{width:c,height:l,top:u,left:f,right:h}=s.current;if(t||!i.current||!c||!l)return;const p=n==="left"?`left: ${f}`:`right: ${h}`;i.current.dataset.motionPopId=o;const y=document.createElement("style");a&&(y.nonce=a);const m=r??document.head;return m.appendChild(y),y.sheet&&y.sheet.insertRule(`
76
76
  [data-motion-pop-id="${o}"] {
77
77
  position: absolute !important;
78
78
  width: ${c}px !important;
@@ -80,7 +80,7 @@
80
80
  ${p}px !important;
81
81
  top: ${u}px !important;
82
82
  }
83
- `),()=>{m.contains(y)&&m.removeChild(y)}},[t]),v.jsx(Zv,{isPresent:t,childRef:i,sizeRef:s,children:d.cloneElement(e,{ref:i})})}const Kv=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:c})=>{const l=Eo(Gv),u=E.useId();let f=!0,h=E.useMemo(()=>(f=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:p=>{l.set(p,!0);for(const y of l.values())if(!y)return;r&&r()},register:p=>(l.set(p,!1),()=>l.delete(p))}),[n,l,r]);return i&&f&&(h={...h}),E.useMemo(()=>{l.forEach((p,y)=>l.set(y,!1))},[n]),d.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=v.jsx(Hv,{isPresent:n,anchorX:a,root:c,children:e})),v.jsx(or.Provider,{value:h,children:e})};function Gv(){return new Map}function hl(e=!0){const t=E.useContext(or);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=E.useId();E.useEffect(()=>{if(e)return o(i)},[e]);const s=E.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const fr=e=>e.key||"";function pl(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const Yv=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:c})=>{const[l,u]=hl(s),f=E.useMemo(()=>pl(e),[e]),h=s&&!l?[]:f.map(fr),p=E.useRef(!0),y=E.useRef(f),m=Eo(()=>new Map),[g,b]=E.useState(f),[x,T]=E.useState(f);tc(()=>{p.current=!1,y.current=f;for(let C=0;C<x.length;C++){const A=fr(x[C]);h.includes(A)?m.delete(A):m.get(A)!==!0&&m.set(A,!1)}},[x,h.length,h.join("-")]);const P=[];if(f!==g){let C=[...f];for(let A=0;A<x.length;A++){const M=x[A],N=fr(M);h.includes(N)||(C.splice(A,0,M),P.push(M))}return i==="wait"&&P.length&&(C=P),T(pl(C)),b(f),null}Ft.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:w}=E.useContext(To);return v.jsx(v.Fragment,{children:x.map(C=>{const A=fr(C),M=s&&!l?!1:f===x||h.includes(A),N=()=>{if(m.has(A))m.set(A,!0);else return;let j=!0;m.forEach(J=>{J||(j=!1)}),j&&(w?.(),T(y.current),s&&u?.(),r&&r())};return v.jsx(Kv,{isPresent:M,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:c,onExitComplete:M?void 0:N,anchorX:a,children:C},A)})})},ml=E.createContext({strict:!1}),gl={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"]},rn={};for(const e in gl)rn[e]={isEnabled:t=>gl[e].some(n=>!!t[n])};function Xv(e){for(const t in e)rn[t]={...rn[t],...e[t]}}const qv=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 hr(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qv.has(e)}let yl=e=>!hr(e);function Qv(e){typeof e=="function"&&(yl=t=>t.startsWith("on")?!hr(t):e(t))}try{Qv(require("@emotion/is-prop-valid").default)}catch{}function Jv(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(yl(o)||n===!0&&hr(o)||!t&&!hr(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const pr=E.createContext({});function mr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ln(e){return typeof e=="string"||Array.isArray(e)}const fi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hi=["initial",...fi];function gr(e){return mr(e.animate)||hi.some(t=>Ln(e[t]))}function vl(e){return!!(gr(e)||e.variants)}function e1(e,t){if(gr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ln(n)?n:void 0,animate:Ln(r)?r:void 0}}return e.inherit!==!1?t:{}}function t1(e){const{initial:t,animate:n}=e1(e,E.useContext(pr));return E.useMemo(()=>({initial:t,animate:n}),[bl(t),bl(n)])}function bl(e){return Array.isArray(e)?e.join(" "):e}const Rn={};function n1(e){for(const t in e)Rn[t]=e[t],ko(t)&&(Rn[t].isCSSVariable=!0)}function wl(e,{layout:t,layoutId:n}){return tn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Rn[e]||e==="opacity")}const r1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o1=en.length;function i1(e,t,n){let r="",o=!0;for(let i=0;i<o1;i++){const s=en[i],a=e[s];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(s.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const l=rl(a,ai[s]);if(!c){o=!1;const u=r1[s]||s;r+=`${u}(${l}) `}n&&(t[s]=l)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function pi(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const c in t){const l=t[c];if(tn.has(c)){s=!0;continue}else if(ko(c)){o[c]=l;continue}else{const u=rl(l,ai[c]);c.startsWith("origin")?(a=!0,i[c]=u):r[c]=u}}if(t.transform||(s||n?r.transform=i1(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=i;r.transformOrigin=`${c} ${l} ${u}`}}const mi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Tl(e,t,n){for(const r in t)!Te(t[r])&&!wl(r,n)&&(e[r]=t[r])}function s1({transformTemplate:e},t){return E.useMemo(()=>{const n=mi();return pi(n,t,e),Object.assign({},n.vars,n.style)},[t])}function a1(e,t){const n=e.style||{},r={};return Tl(r,n,e),Object.assign(r,s1(e,t)),r}function c1(e,t){const n={},r=a1(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 l1={offset:"stroke-dashoffset",array:"stroke-dasharray"},u1={offset:"strokeDashoffset",array:"strokeDasharray"};function d1(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?l1:u1;e[i.offset]=R.transform(-r);const s=R.transform(t),a=R.transform(n);e[i.array]=`${s} ${a}`}function El(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},c,l,u){if(pi(e,a,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&d1(f,o,i,s,!1)}const xl=()=>({...mi(),attrs:{}}),Sl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function f1(e,t,n,r){const o=E.useMemo(()=>{const i=xl();return El(i,t,Sl(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Tl(i,e.style,e),o.style={...i,...o.style}}return o}const h1=["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 gi(e){return typeof e!="string"||e.includes("-")?!1:!!(h1.indexOf(e)>-1||/[A-Z]/u.test(e))}function p1(e,t,n,{latestValues:r},o,i=!1){const a=(gi(e)?f1:c1)(t,r,o,e),c=Jv(t,typeof e=="string",i),l=e!==E.Fragment?{...c,...a,ref:n}:{},{children:u}=t,f=E.useMemo(()=>Te(u)?u.get():u,[u]);return E.createElement(e,{...l,children:f})}function Al(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function yi(e,t,n,r){if(typeof t=="function"){const[o,i]=Al(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]=Al(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function yr(e){return Te(e)?e.get():e}function m1({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:g1(n,r,o,e),renderState:t()}}function g1(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=yr(i[h]);let{initial:s,animate:a}=e;const c=gr(e),l=vl(e);t&&l&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const f=u?a:s;if(f&&typeof f!="boolean"&&!mr(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const y=yi(e,h[p]);if(y){const{transitionEnd:m,transition:g,...b}=y;for(const x in b){let T=b[x];if(Array.isArray(T)){const P=u?T.length-1:0;T=T[P]}T!==null&&(o[x]=T)}for(const x in m)o[x]=m[x]}}}return o}const Cl=e=>(t,n)=>{const r=E.useContext(pr),o=E.useContext(or),i=()=>m1(e,t,r,o);return n?i():Eo(i)};function vi(e,t,n){const{style:r}=e,o={};for(const i in r)(Te(r[i])||t.style&&Te(t.style[i])||wl(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const y1=Cl({scrapeMotionValuesFromProps:vi,createRenderState:mi});function Pl(e,t,n){const r=vi(e,t,n);for(const o in e)if(Te(e[o])||Te(t[o])){const i=en.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const v1=Cl({scrapeMotionValuesFromProps:Pl,createRenderState:xl}),b1=Symbol.for("motionComponentSymbol");function on(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function w1(e,t,n){return E.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):on(n)&&(n.current=r))},[t])}const bi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ml="data-"+bi("framerAppearId"),Dl=E.createContext({});function T1(e,t,n,r,o){const{visualElement:i}=E.useContext(pr),s=E.useContext(ml),a=E.useContext(or),c=E.useContext(di).reducedMotion,l=E.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const u=l.current,f=E.useContext(Dl);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&E1(l.current,n,o,f);const h=E.useRef(!1);E.useInsertionEffect(()=>{u&&h.current&&u.update(n,a)});const p=n[Ml],y=E.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return tc(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),y.current&&u.animationState&&u.animationState.animateChanges())}),E.useEffect(()=>{u&&(!y.current&&u.animationState&&u.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),y.current=!1),u.enteringChildren=void 0)}),u}function E1(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ol(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&on(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function Ol(e){if(e)return e.options.allowProjection!==!1?e.projection:Ol(e.parent)}function wi(e,{forwardMotionProps:t=!1}={},n,r){n&&Xv(n);const o=gi(e)?v1:y1;function i(a,c){let l;const u={...E.useContext(di),...a,layoutId:x1(a)},{isStatic:f}=u,h=t1(a),p=o(a,f);if(!f&&xo){S1(u,n);const y=A1(u);l=y.MeasureLayout,h.visualElement=T1(e,p,u,r,y.ProjectionNode)}return v.jsxs(pr.Provider,{value:h,children:[l&&h.visualElement?v.jsx(l,{visualElement:h.visualElement,...u}):null,p1(e,a,w1(p,h.visualElement,c),p,f,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=E.forwardRef(i);return s[b1]=e,s}function x1({layoutId:e}){const t=E.useContext(To).id;return t&&e!==void 0?t+"-"+e:e}function S1(e,t){const n=E.useContext(ml).strict;if(Ft.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?Xt(!1,r,"lazy-strict-mode"):nt(!1,r,"lazy-strict-mode")}}function A1(e){const{drag:t,layout:n}=rn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function C1(e,t){if(typeof Proxy>"u")return wi;const n=new Map,r=(i,s)=>wi(i,s,e,t),o=(i,s)=>(Ft.env.NODE_ENV!=="production"&&Do(!1,"motion() is deprecated. Use motion.create() instead."),r(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,wi(s,void 0,e,t)),n.get(s))})}function Vl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function P1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function M1(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 Ti(e){return e===void 0||e===1}function Ei({scale:e,scaleX:t,scaleY:n}){return!Ti(e)||!Ti(t)||!Ti(n)}function Rt(e){return Ei(e)||Fl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Fl(e){return kl(e.x)||kl(e.y)}function kl(e){return e&&e!=="0%"}function vr(e,t,n){const r=e-n,o=t*r;return n+o}function Il(e,t,n,r,o){return o!==void 0&&(e=vr(e,o,r)),vr(e,n,r)+t}function xi(e,t=0,n=1,r,o){e.min=Il(e.min,t,n,r,o),e.max=Il(e.max,t,n,r,o)}function Nl(e,{x:t,y:n}){xi(e.x,t.translate,t.scale,t.originPoint),xi(e.y,n.translate,n.scale,n.originPoint)}const Ll=.999999999999,Rl=1.0000000000001;function D1(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&an(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Nl(e,s)),r&&Rt(i.latestValues)&&an(e,i.latestValues))}t.x<Rl&&t.x>Ll&&(t.x=1),t.y<Rl&&t.y>Ll&&(t.y=1)}function sn(e,t){e.min=e.min+t,e.max=e.max+t}function _l(e,t,n,r,o=.5){const i=re(e.min,e.max,o);xi(e,t,n,i,r)}function an(e,t){_l(e.x,t.x,t.scaleX,t.scale,t.originX),_l(e.y,t.y,t.scaleY,t.scale,t.originY)}function jl(e,t){return Vl(M1(e.getBoundingClientRect(),t))}function O1(e,t,n){const r=jl(e,n),{scroll:o}=t;return o&&(sn(r.x,o.offset.x),sn(r.y,o.offset.y)),r}const Bl=()=>({translate:0,scale:1,origin:0,originPoint:0}),cn=()=>({x:Bl(),y:Bl()}),$l=()=>({min:0,max:0}),ue=()=>({x:$l(),y:$l()}),Si={current:null},Ul={current:!1};function V1(){if(Ul.current=!0,!!xo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Si.current=e.matches;e.addEventListener("change",t),t()}else Si.current=!1}const F1=new WeakMap;function k1(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Te(o))e.addValue(r,o);else if(Te(i))e.addValue(r,nn(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,nn(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Wl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class I1{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ri,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 h=Ae.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Q.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=gr(n),this.isVariantNode=vl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const p=f[h];c[h]!==void 0&&Te(p)&&p.set(c[h])}}mount(t){this.current=t,F1.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Ul.current||V1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Si.current,Ft.env.NODE_ENV!=="production"&&Do(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ht(this.notifyUpdate),ht(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=tn.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Q.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;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 rn){const n=rn[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):ue()}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<Wl.length;r++){const o=Wl[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=k1(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=nn(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"&&(nc(r)||oc(r))?r=parseFloat(r):!zv(r)&&mt.test(n)&&(r=nl(t,n)),this.setBaseTarget(t,Te(r)?r.get():r)),Te(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=yi(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Te(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Mo),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ci.render(this.render)}}class zl extends I1{constructor(){super(...arguments),this.KeyframeResolver=Fv}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[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;Te(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Zl(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function N1(e){return window.getComputedStyle(e)}class L1 extends zl{constructor(){super(...arguments),this.type="html",this.renderInstance=Zl}readValueFromInstance(t,n){if(tn.has(n))return this.projection?.isProjecting?Qo(n):qy(t,n);{const r=N1(t),o=(ko(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return jl(t,n)}build(t,n,r){pi(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return vi(t,n,r)}}const Hl=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"]);function R1(e,t,n,r){Zl(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Hl.has(o)?o:bi(o),t.attrs[o])}class _1 extends zl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ue}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(tn.has(n)){const r=tl(n);return r&&r.default||0}return n=Hl.has(n)?n:bi(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Pl(t,n,r)}build(t,n,r){El(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){R1(t,n,r,o)}mount(t){this.isSVGTag=Sl(t.tagName),super.mount(t)}}const j1=(e,t)=>gi(e)?new _1(t):new L1(t,{allowProjection:e!==E.Fragment});function ln(e,t,n){const r=e.getProps();return yi(r,t,n!==void 0?n:r.custom,e)}const Ai=e=>Array.isArray(e);function B1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nn(n))}function $1(e){return Ai(e)?e[e.length-1]||0:e}function U1(e,t){const n=ln(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=$1(i[s]);B1(e,s,a)}}function W1(e){return!!(Te(e)&&e.add)}function Ci(e,t){const n=e.getValue("willChange");if(W1(n))return n.add(t);if(!n&&rt.WillChange){const r=new rt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Kl(e){return e.props[Ml]}const z1=e=>e!==null;function Z1(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(z1),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const H1={type:"spring",stiffness:500,damping:25,restSpeed:10},K1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),G1={type:"keyframes",duration:.8},Y1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},X1=(e,{keyframes:t})=>t.length>2?G1:tn.has(e)?e.startsWith("scale")?K1(t[1]):H1:Y1;function q1({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const Pi=(e,t,n,r={},o,i)=>s=>{const a=ii(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Ie(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};q1(a)||Object.assign(u,X1(e,u)),u.duration&&(u.duration=Ie(u.duration)),u.repeatDelay&&(u.repeatDelay=Ie(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(oi(u),u.delay===0&&(f=!0)),(rt.instantAnimations||rt.skipAnimations)&&(f=!0,oi(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!i&&t.get()!==void 0){const h=Z1(u.keyframes,a);if(h!==void 0){Q.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Yo(u):new wv(u)};function Q1({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Gl(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const c=[],l=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const f=e.getValue(u,e.latestValues[u]??null),h=a[u];if(h===void 0||l&&Q1(l,u))continue;const p={delay:n,...ii(i||{},u)},y=f.get();if(y!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===y&&!p.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const b=Kl(e);if(b){const x=window.MotionHandoffAnimation(b,u,Q);x!==null&&(p.startTime=x,m=!0)}}Ci(e,u),f.start(Pi(u,f,h,e.shouldReduceMotion&&Xc.has(u)?{type:!1}:p,e,m));const g=f.animation;g&&c.push(g)}return s&&Promise.all(c).then(()=>{Q.update(()=>{s&&U1(e,s)})}),c}function Yl(e,t,n,r=0,o=1){const i=Array.from(e).sort((l,u)=>l.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}function Mi(e,t,n={}){const r=ln(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Gl(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:f}=o;return J1(e,t,c,l,u,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[c,l]=a==="beforeChildren"?[i,s]:[s,i];return c().then(()=>l())}else return Promise.all([i(),s(n.delay)])}function J1(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),a.push(Mi(c,t,{...s,delay:n+(typeof r=="function"?0:r)+Yl(e.variantChildren,c,r,o,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function eb(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Mi(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Mi(e,t,n);else{const o=typeof t=="function"?ln(e,t,n.custom):t;r=Promise.all(Gl(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Xl(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 tb=hi.length;function ql(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ql(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<tb;n++){const r=hi[n],o=e.props[r];(Ln(o)||o===!1)&&(t[r]=o)}return t}const nb=[...fi].reverse(),rb=fi.length;function ob(e){return t=>Promise.all(t.map(({animation:n,options:r})=>eb(e,n,r)))}function ib(e){let t=ob(e),n=Ql(),r=!0;const o=c=>(l,u)=>{const f=ln(e,u,c==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:p,...y}=f;l={...l,...y,...p}}return l};function i(c){t=c(e)}function s(c){const{props:l}=e,u=ql(e.parent)||{},f=[],h=new Set;let p={},y=1/0;for(let g=0;g<rb;g++){const b=nb[g],x=n[b],T=l[b]!==void 0?l[b]:u[b],P=Ln(T),w=b===c?x.isActive:null;w===!1&&(y=g);let C=T===u[b]&&T!==l[b]&&P;if(C&&r&&e.manuallyAnimateOnMount&&(C=!1),x.protectedKeys={...p},!x.isActive&&w===null||!T&&!x.prevProp||mr(T)||typeof T=="boolean")continue;const A=sb(x.prevProp,T);let M=A||b===c&&x.isActive&&!C&&P||g>y&&P,N=!1;const j=Array.isArray(T)?T:[T];let J=j.reduce(o(b),{});w===!1&&(J={});const{prevResolvedValues:Ee={}}=x,de={...Ee,...J},_=U=>{M=!0,h.has(U)&&(N=!0,h.delete(U)),x.needsAnimating[U]=!0;const D=e.getValue(U);D&&(D.liveStyle=!1)};for(const U in de){const D=J[U],he=Ee[U];if(p.hasOwnProperty(U))continue;let we=!1;Ai(D)&&Ai(he)?we=!Xl(D,he):we=D!==he,we?D!=null?_(U):h.add(U):D!==void 0&&h.has(U)?_(U):x.protectedKeys[U]=!0}x.prevProp=T,x.prevResolvedValues=J,x.isActive&&(p={...p,...J}),r&&e.blockInitialAnimation&&(M=!1);const ee=C&&A;M&&(!ee||N)&&f.push(...j.map(U=>{const D={type:b};if(typeof U=="string"&&r&&!ee&&e.manuallyAnimateOnMount&&e.parent){const{parent:he}=e,we=ln(he,U);if(he.enteringChildren&&we){const{delayChildren:Me}=we.transition||{};D.delay=Yl(he.enteringChildren,e,Me)}}return{animation:U,options:D}}))}if(h.size){const g={};if(typeof l.initial!="boolean"){const b=ln(e,Array.isArray(l.initial)?l.initial[0]:l.initial);b&&b.transition&&(g.transition=b.transition)}h.forEach(b=>{const x=e.getBaseTarget(b),T=e.getValue(b);T&&(T.liveStyle=!0),g[b]=x??null}),f.push({animation:g})}let m=!!f.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(f):Promise.resolve()}function a(c,l){if(n[c].isActive===l)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(c,l)),n[c].isActive=l;const u=s(c);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Ql(),r=!0}}}function sb(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Xl(t,e):!1}function _t(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ql(){return{animate:_t(!0),whileInView:_t(),whileHover:_t(),whileTap:_t(),whileDrag:_t(),whileFocus:_t(),exit:_t()}}class gt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ab extends gt{constructor(t){super(t),t.animationState||(t.animationState=ib(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();mr(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(){this.node.animationState.reset(),this.unmountControls?.()}}let cb=0;class lb extends gt{constructor(){super(...arguments),this.id=cb++}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 ub={animation:{Feature:ab},exit:{Feature:lb}};function _n(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function jn(e){return{point:{x:e.pageX,y:e.pageY}}}const db=e=>t=>li(t)&&e(t,jn(t));function Bn(e,t,n,r){return _n(e,t,db(n),r)}const Jl=1e-4,fb=1-Jl,hb=1+Jl,eu=.01,pb=0-eu,mb=0+eu;function Se(e){return e.max-e.min}function gb(e,t,n){return Math.abs(e-t)<=n}function tu(e,t,n,r=.5){e.origin=r,e.originPoint=re(t.min,t.max,e.origin),e.scale=Se(n)/Se(t),e.translate=re(n.min,n.max,e.origin)-e.originPoint,(e.scale>=fb&&e.scale<=hb||isNaN(e.scale))&&(e.scale=1),(e.translate>=pb&&e.translate<=mb||isNaN(e.translate))&&(e.translate=0)}function $n(e,t,n,r){tu(e.x,t.x,n.x,r?r.originX:void 0),tu(e.y,t.y,n.y,r?r.originY:void 0)}function nu(e,t,n){e.min=n.min+t.min,e.max=e.min+Se(t)}function yb(e,t,n){nu(e.x,t.x,n.x),nu(e.y,t.y,n.y)}function ru(e,t,n){e.min=t.min-n.min,e.max=e.min+Se(t)}function Un(e,t,n){ru(e.x,t.x,n.x),ru(e.y,t.y,n.y)}function Fe(e){return[e("x"),e("y")]}const ou=({current:e})=>e?e.ownerDocument.defaultView:null,iu=(e,t)=>Math.abs(e-t);function vb(e,t){const n=iu(e.x,t.x),r=iu(e.y,t.y);return Math.sqrt(n**2+r**2)}class su{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Oi(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=vb(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!y)return;const{point:m}=h,{timestamp:g}=ve;this.history.push({...m,timestamp:g});const{onStart:b,onMove:x}=this.handlers;p||(b&&b(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Di(p,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(h,p)=>{this.end();const{onEnd:y,onSessionEnd:m,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Oi(h.type==="pointercancel"?this.lastMoveEventInfo:Di(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(h,b),m&&m(h,b)},!li(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=jn(t),c=Di(a,this.transformPagePoint),{point:l}=c,{timestamp:u}=ve;this.history=[{...l,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,Oi(c,this.history)),this.removeListeners=Mn(Bn(this.contextWindow,"pointermove",this.handlePointerMove),Bn(this.contextWindow,"pointerup",this.handlePointerUp),Bn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ht(this.updatePoint)}}function Di(e,t){return t?{point:t(e.point)}:e}function au(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Oi({point:e},t){return{point:e,delta:au(e,cu(t)),offset:au(e,bb(t)),velocity:wb(t,.1)}}function bb(e){return e[0]}function cu(e){return e[e.length-1]}function wb(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=cu(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ie(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 s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Tb(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?re(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?re(n,e,r.max):Math.min(e,n)),e}function lu(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 Eb(e,{top:t,left:n,bottom:r,right:o}){return{x:lu(e.x,n,o),y:lu(e.y,t,r)}}function uu(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 xb(e,t){return{x:uu(e.x,t.x),y:uu(e.y,t.y)}}function Sb(e,t){let n=.5;const r=Se(e),o=Se(t);return o>r?n=Dn(t.min,t.max-r,e.min):r>o&&(n=Dn(e.min,e.max-o,t.min)),tt(0,1,n)}function Ab(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 Vi=.35;function Cb(e=Vi){return e===!1?e=0:e===!0&&(e=Vi),{x:du(e,"left","right"),y:du(e,"top","bottom")}}function du(e,t,n){return{min:fu(e,t),max:fu(e,n)}}function fu(e,t){return typeof e=="number"?e:e[t]||0}const Pb=new WeakMap;class Mb{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=ue(),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=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(jn(f).point)},s=(f,h)=>{const{drag:p,dragPropagation:y,onDragStart:m}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Lv(p),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fe(b=>{let x=this.getAxisMotionValue(b).get()||0;if(Ze.test(x)){const{projection:T}=this.visualElement;if(T&&T.layout){const P=T.layout.layoutBox[b];P&&(x=Se(P)*(parseFloat(x)/100))}}this.originPoint[b]=x}),m&&Q.postRender(()=>m(f,h)),Ci(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:m,onDrag:g}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:b}=h;if(y&&this.currentDirection===null){this.currentDirection=Db(b),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,b),this.updateAxis("y",h.point,b),this.visualElement.render(),g&&g(f,h)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>Fe(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new su(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:ou(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Q.postRender(()=>a(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||!br(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Tb(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&on(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Eb(r.layoutBox,t):this.constraints=!1,this.elastic=Cb(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Fe(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Ab(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!on(t))return!1;const r=t.current;nt(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=O1(r,o.root,this.visualElement.getTransformPagePoint());let s=xb(o.layout.layoutBox,i);if(n){const a=n(P1(s));this.hasMutatedConstraints=!!a,a&&(s=Vl(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Fe(u=>{if(!br(u,n,this.currentDirection))return;let f=c&&c[u]||{};s&&(f={min:0,max:0});const h=o?200:1e6,p=o?40:1e7,y={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(u,y)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ci(this.visualElement,t),r.start(Pi(t,r,0,n,this.visualElement,!1))}stopAnimation(){Fe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Fe(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Fe(n=>{const{drag:r}=this.getProps();if(!br(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-re(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!on(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Fe(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const c=a.get();o[s]=Sb({min:c,max:c},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fe(s=>{if(!br(s,t,null))return;const a=this.getAxisMotionValue(s),{min:c,max:l}=this.constraints[s];a.set(re(c,l,o[s]))})}addListeners(){if(!this.visualElement.current)return;Pb.set(this.visualElement,this);const t=this.visualElement.current,n=Bn(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();on(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Q.read(r);const s=_n(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(Fe(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Vi,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function br(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Db(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Ob extends gt{constructor(t){super(t),this.removeGroupControls=Ve,this.removeListeners=Ve,this.controls=new Mb(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ve}unmount(){this.removeGroupControls(),this.removeListeners()}}const hu=e=>(t,n)=>{e&&Q.postRender(()=>e(t,n))};class Vb extends gt{constructor(){super(...arguments),this.removePointerDownListener=Ve}onPointerDown(t){this.session=new su(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ou(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:hu(t),onStart:hu(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Q.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Bn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const wr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Wn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(R.test(e))e=parseFloat(e);else return e;const n=pu(e,t.target.x),r=pu(e,t.target.y);return`${n}% ${r}%`}},Fb={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=mt.parse(e);if(o.length>5)return r;const i=mt.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=c;const l=re(a,c,.5);return typeof o[2+s]=="number"&&(o[2+s]/=l),typeof o[3+s]=="number"&&(o[3+s]/=l),i(o)}};let Fi=!1;class kb extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;n1(Ib),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Fi&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),wr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Fi=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Q.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ci.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Fi=!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 mu(e){const[t,n]=hl(),r=E.useContext(To);return v.jsx(kb,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(Dl),isPresent:t,safeToRemove:n})}const Ib={borderRadius:{...Wn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Wn,borderTopRightRadius:Wn,borderBottomLeftRadius:Wn,borderBottomRightRadius:Wn,boxShadow:Fb};function Nb(e,t,n){const r=Te(e)?e:nn(e);return r.start(Pi("",r,t,n)),r.animation}const Lb=(e,t)=>e.depth-t.depth;class Rb{constructor(){this.children=[],this.isDirty=!1}add(t){So(this.children,t),this.isDirty=!0}remove(t){Ao(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Lb),this.isDirty=!1,this.children.forEach(t)}}function _b(e,t){const n=Ae.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(ht(r),e(i-t))};return Q.setup(r,!0),()=>ht(r)}const gu=["TopLeft","TopRight","BottomLeft","BottomRight"],jb=gu.length,yu=e=>typeof e=="string"?parseFloat(e):e,vu=e=>typeof e=="number"||R.test(e);function Bb(e,t,n,r,o,i){o?(e.opacity=re(0,n.opacity??1,$b(r)),e.opacityExit=re(t.opacity??1,0,Ub(r))):i&&(e.opacity=re(t.opacity??1,n.opacity??1,r));for(let s=0;s<jb;s++){const a=`border${gu[s]}Radius`;let c=bu(t,a),l=bu(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||vu(c)===vu(l)?(e[a]=Math.max(re(yu(c),yu(l),r),0),(Ze.test(l)||Ze.test(c))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=re(t.rotate||0,n.rotate||0,r))}function bu(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $b=wu(0,.5,hc),Ub=wu(.5,.95,Ve);function wu(e,t,n){return r=>r<e?0:r>t?1:n(Dn(e,t,r))}function Tu(e,t){e.min=t.min,e.max=t.max}function ke(e,t){Tu(e.x,t.x),Tu(e.y,t.y)}function Eu(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function xu(e,t,n,r,o){return e-=t,e=vr(e,1/n,r),o!==void 0&&(e=vr(e,1/o,r)),e}function Wb(e,t=0,n=1,r=.5,o,i=e,s=e){if(Ze.test(t)&&(t=parseFloat(t),t=re(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=re(i.min,i.max,r);e===i&&(a-=t),e.min=xu(e.min,t,n,a,o),e.max=xu(e.max,t,n,a,o)}function Su(e,t,[n,r,o],i,s){Wb(e,t[n],t[r],t[o],t.scale,i,s)}const zb=["x","scaleX","originX"],Zb=["y","scaleY","originY"];function Au(e,t,n,r){Su(e.x,t,zb,n?n.x:void 0,r?r.x:void 0),Su(e.y,t,Zb,n?n.y:void 0,r?r.y:void 0)}function Cu(e){return e.translate===0&&e.scale===1}function Pu(e){return Cu(e.x)&&Cu(e.y)}function Mu(e,t){return e.min===t.min&&e.max===t.max}function Hb(e,t){return Mu(e.x,t.x)&&Mu(e.y,t.y)}function Du(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ou(e,t){return Du(e.x,t.x)&&Du(e.y,t.y)}function Vu(e){return Se(e.x)/Se(e.y)}function Fu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Kb{constructor(){this.members=[]}add(t){So(this.members,t),t.scheduleRender()}remove(t){if(Ao(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)}}function Gb(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:f,rotateY:h,skewX:p,skewY:y}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const ki=["","X","Y","Z"],Yb=1e3;let Xb=0;function Ii(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ku(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Kl(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Q,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ku(r)}function Iu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=Xb++,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.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(Jb),this.nodes.forEach(rw),this.nodes.forEach(ow),this.nodes.forEach(ew)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Rb)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Mo),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const c=this.eventHandlers.get(s);c&&c.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=fl(s)&&!Uv(s),this.instance=s;const{layoutId:a,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),e){let u,f=0;const h=()=>this.root.updateBlockedByResize=!1;Q.read(()=>{f=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,u&&u(),u=_b(h,250),wr.hasAnimatedSinceResize&&(wr.hasAnimatedSinceResize=!1,this.nodes.forEach(Ru)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||l.getDefaultTransition()||lw,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=l.getProps(),b=!this.targetLayout||!Ou(this.targetLayout,p),x=!f&&h;if(this.options.layoutRoot||this.resumeFrom||x||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...ii(y,"layout"),onPlay:m,onComplete:g};(l.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,x)}else f||Ru(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ht(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(iw),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ku(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Nu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Lu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(nw),this.nodes.forEach(qb),this.nodes.forEach(Qb)):this.nodes.forEach(Lu),this.clearAllSnapshots();const a=Ae.now();ve.delta=tt(0,1e3/60,a-ve.timestamp),ve.timestamp=a,ve.isProcessing=!0,Fo.update.process(ve),Fo.preRender.process(ve),Fo.render.process(ve),ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ci.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tw),this.sharedNodes.forEach(sw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Q.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Q.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Se(this.snapshot.measuredBox.x)&&!Se(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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ue(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Pu(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;s&&this.instance&&(a||Rt(this.latestValues)||u)&&(o(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return s&&(c=this.removeTransform(c)),uw(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ue();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(dw))){const{scroll:l}=this.root;l&&(sn(a.x,l.offset.x),sn(a.y,l.offset.y))}return a}removeElementScroll(s){const a=ue();if(ke(a,s),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:u,options:f}=l;l!==this.root&&u&&f.layoutScroll&&(u.wasRoot&&ke(a,s),sn(a.x,u.offset.x),sn(a.y,u.offset.y))}return a}applyTransform(s,a=!1){const c=ue();ke(c,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&an(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Rt(u.latestValues)&&an(c,u.latestValues)}return Rt(this.latestValues)&&an(c,this.latestValues),c}removeTransform(s){const a=ue();ke(a,s);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!Rt(l.latestValues))continue;Ei(l.latestValues)&&l.updateSnapshot();const u=ue(),f=l.measurePageBox();ke(u,f),Au(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Rt(this.latestValues)&&Au(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==ve.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!(!this.layout||!(u||f))){if(this.resolvedRelativeTargetAt=ve.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),Un(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ue(),this.targetWithTransforms=ue()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),yb(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ke(this.target,this.layout.layoutBox),Nl(this.target,this.targetDelta)):ke(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),Un(this.relativeTargetOrigin,this.target,h.target),ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ei(this.parent.latestValues)||Fl(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ve.timestamp&&(c=!1),c)return;const{layout:l,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||u))return;ke(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;D1(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ue());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Eu(this.prevProjectionDelta.x,this.projectionDelta.x),Eu(this.prevProjectionDelta.y,this.projectionDelta.y)),$n(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Fu(this.projectionDelta.x,this.prevProjectionDelta.x)||!Fu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=cn(),this.projectionDelta=cn(),this.projectionDeltaWithTransform=cn()}setAnimationOrigin(s,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},f=cn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ue(),p=c?c.source:void 0,y=this.layout?this.layout.source:void 0,m=p!==y,g=this.getStack(),b=!g||g.members.length<=1,x=!!(m&&!b&&this.options.crossfade===!0&&!this.path.some(cw));this.animationProgress=0;let T;this.mixTargetDelta=P=>{const w=P/1e3;_u(f.x,s.x,w),_u(f.y,s.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Un(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),aw(this.relativeTarget,this.relativeTargetOrigin,h,w),T&&Hb(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=ue()),ke(T,this.relativeTarget)),m&&(this.animationValues=u,Bb(u,l,this.latestValues,w,x,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ht(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{wr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=nn(0)),this.currentAnimation=Nb(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Yb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=s;if(!(!a||!c||!l)){if(this!==s&&this.layout&&l&&Wu(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||ue();const f=Se(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+f;const h=Se(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+h}ke(a,c),an(a,u),$n(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Kb),this.sharedNodes.get(s).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:c}=s;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Ii("z",s,l,this.animationValues);for(let u=0;u<ki.length;u++)Ii(`rotate${ki[u]}`,s,l,this.animationValues),Ii(`skew${ki[u]}`,s,l,this.animationValues);s.render();for(const u in l)s.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=yr(a?.pointerEvents)||"",s.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=yr(a?.pointerEvents)||""),this.hasProjected&&!Rt(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=Gb(this.projectionDeltaWithTransform,this.treeScale,u);c&&(f=c(u,f)),s.transform=f;const{x:h,y:p}=this.projectionDelta;s.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,l.animationValues?s.opacity=l===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const y in Rn){if(u[y]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:b}=Rn[y],x=f==="none"?u[y]:m(u[y],l);if(g){const T=g.length;for(let P=0;P<T;P++)s[g[P]]=x}else b?this.options.visualElement.renderState.vars[y]=x:s[y]=x}this.options.layoutId&&(s.pointerEvents=l===this?yr(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Nu),this.root.sharedNodes.clear()}}}function qb(e){e.updateLayout()}function Qb(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;o==="size"?Fe(u=>{const f=i?t.measuredBox[u]:t.layoutBox[u],h=Se(f);f.min=n[u].min,f.max=f.min+h}):Wu(o,t.layoutBox,n)&&Fe(u=>{const f=i?t.measuredBox[u]:t.layoutBox[u],h=Se(n[u]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const s=cn();$n(s,n,t.layoutBox);const a=cn();i?$n(a,e.applyTransform(r,!0),t.measuredBox):$n(a,n,t.layoutBox);const c=!Pu(s);let l=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:f,layout:h}=u;if(f&&h){const p=ue();Un(p,t.layoutBox,f.layoutBox);const y=ue();Un(y,n,h.layoutBox),Ou(p,y)||(l=!0),u.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=p,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Jb(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 ew(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tw(e){e.clearSnapshot()}function Nu(e){e.clearMeasurements()}function Lu(e){e.isLayoutDirty=!1}function nw(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ru(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rw(e){e.resolveTargetDelta()}function ow(e){e.calcProjection()}function iw(e){e.resetSkewAndRotation()}function sw(e){e.removeLeadSnapshot()}function _u(e,t,n){e.translate=re(t.translate,0,n),e.scale=re(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ju(e,t,n,r){e.min=re(t.min,n.min,r),e.max=re(t.max,n.max,r)}function aw(e,t,n,r){ju(e.x,t.x,n.x,r),ju(e.y,t.y,n.y,r)}function cw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const lw={duration:.45,ease:[.4,0,.1,1]},Bu=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$u=Bu("applewebkit/")&&!Bu("chrome/")?Math.round:Ve;function Uu(e){e.min=$u(e.min),e.max=$u(e.max)}function uw(e){Uu(e.x),Uu(e.y)}function Wu(e,t,n){return e==="position"||e==="preserve-aspect"&&!gb(Vu(t),Vu(n),.2)}function dw(e){return e!==e.root&&e.scroll?.wasRoot}const fw=Iu({attachResizeListener:(e,t)=>_n(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ni={current:void 0},zu=Iu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ni.current){const e=new fw({});e.mount(window),e.setOptions({layoutScroll:!0}),Ni.current=e}return Ni.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hw={pan:{Feature:Vb},drag:{Feature:Ob,ProjectionNode:zu,MeasureLayout:mu}};function Zu(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&&Q.postRender(()=>i(t,jn(t)))}class pw extends gt{mount(){const{current:t}=this.node;t&&(this.unmount=Rv(t,(n,r)=>(Zu(this.node,r,"Start"),o=>Zu(this.node,o,"End"))))}unmount(){}}class mw extends gt{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=Mn(_n(this.node.current,"focus",()=>this.onFocus()),_n(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Hu(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&&Q.postRender(()=>i(t,jn(t)))}class gw extends gt{mount(){const{current:t}=this.node;t&&(this.unmount=$v(t,(n,r)=>(Hu(this.node,r,"Start"),(o,{success:i})=>Hu(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Li=new WeakMap,Ri=new WeakMap,yw=e=>{const t=Li.get(e.target);t&&t(e)},vw=e=>{e.forEach(yw)};function bw({root:e,...t}){const n=e||document;Ri.has(n)||Ri.set(n,{});const r=Ri.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(vw,{root:e,...t})),r[o]}function ww(e,t,n){const r=bw(t);return Li.set(e,n),r.observe(e),()=>{Li.delete(e),r.unobserve(e)}}const Tw={some:0,all:1};class Ew extends gt{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,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Tw[o]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),h=l?u:f;h&&h(c)};return ww(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(xw(t,n))&&this.startObserver()}unmount(){}}function xw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Sw={...ub,...{inView:{Feature:Ew},tap:{Feature:gw},focus:{Feature:mw},hover:{Feature:pw}},...hw,...{layout:{ProjectionNode:zu,MeasureLayout:mu}}},_i=C1(Sw,j1),Aw="flex flex-col relative cursor-text min-w-0",Cw=`
83
+ `),()=>{m.contains(y)&&m.removeChild(y)}},[t]),v.jsx(Zv,{isPresent:t,childRef:i,sizeRef:s,children:d.cloneElement(e,{ref:i})})}const Kv=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:c})=>{const l=Eo(Gv),u=E.useId();let f=!0,h=E.useMemo(()=>(f=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:p=>{l.set(p,!0);for(const y of l.values())if(!y)return;r&&r()},register:p=>(l.set(p,!1),()=>l.delete(p))}),[n,l,r]);return i&&f&&(h={...h}),E.useMemo(()=>{l.forEach((p,y)=>l.set(y,!1))},[n]),d.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=v.jsx(Hv,{isPresent:n,anchorX:a,root:c,children:e})),v.jsx(or.Provider,{value:h,children:e})};function Gv(){return new Map}function hl(e=!0){const t=E.useContext(or);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=E.useId();E.useEffect(()=>{if(e)return o(i)},[e]);const s=E.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const fr=e=>e.key||"";function pl(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const Yv=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:c})=>{const[l,u]=hl(s),f=E.useMemo(()=>pl(e),[e]),h=s&&!l?[]:f.map(fr),p=E.useRef(!0),y=E.useRef(f),m=Eo(()=>new Map),[g,b]=E.useState(f),[x,T]=E.useState(f);tc(()=>{p.current=!1,y.current=f;for(let M=0;M<x.length;M++){const A=fr(x[M]);h.includes(A)?m.delete(A):m.get(A)!==!0&&m.set(A,!1)}},[x,h.length,h.join("-")]);const P=[];if(f!==g){let M=[...f];for(let A=0;A<x.length;A++){const C=x[A],L=fr(C);h.includes(L)||(M.splice(A,0,C),P.push(C))}return i==="wait"&&P.length&&(M=P),T(pl(M)),b(f),null}Ft.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:w}=E.useContext(To);return v.jsx(v.Fragment,{children:x.map(M=>{const A=fr(M),C=s&&!l?!1:f===x||h.includes(A),L=()=>{if(m.has(A))m.set(A,!0);else return;let $=!0;m.forEach(J=>{J||($=!1)}),$&&(w?.(),T(y.current),s&&u?.(),r&&r())};return v.jsx(Kv,{isPresent:C,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:c,onExitComplete:C?void 0:L,anchorX:a,children:M},A)})})},ml=E.createContext({strict:!1}),gl={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"]},rn={};for(const e in gl)rn[e]={isEnabled:t=>gl[e].some(n=>!!t[n])};function Xv(e){for(const t in e)rn[t]={...rn[t],...e[t]}}const qv=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 hr(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qv.has(e)}let yl=e=>!hr(e);function Qv(e){typeof e=="function"&&(yl=t=>t.startsWith("on")?!hr(t):e(t))}try{Qv(require("@emotion/is-prop-valid").default)}catch{}function Jv(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(yl(o)||n===!0&&hr(o)||!t&&!hr(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const pr=E.createContext({});function mr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ln(e){return typeof e=="string"||Array.isArray(e)}const fi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hi=["initial",...fi];function gr(e){return mr(e.animate)||hi.some(t=>Ln(e[t]))}function vl(e){return!!(gr(e)||e.variants)}function e1(e,t){if(gr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ln(n)?n:void 0,animate:Ln(r)?r:void 0}}return e.inherit!==!1?t:{}}function t1(e){const{initial:t,animate:n}=e1(e,E.useContext(pr));return E.useMemo(()=>({initial:t,animate:n}),[bl(t),bl(n)])}function bl(e){return Array.isArray(e)?e.join(" "):e}const Rn={};function n1(e){for(const t in e)Rn[t]=e[t],ko(t)&&(Rn[t].isCSSVariable=!0)}function wl(e,{layout:t,layoutId:n}){return tn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Rn[e]||e==="opacity")}const r1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o1=en.length;function i1(e,t,n){let r="",o=!0;for(let i=0;i<o1;i++){const s=en[i],a=e[s];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(s.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const l=rl(a,ai[s]);if(!c){o=!1;const u=r1[s]||s;r+=`${u}(${l}) `}n&&(t[s]=l)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function pi(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const c in t){const l=t[c];if(tn.has(c)){s=!0;continue}else if(ko(c)){o[c]=l;continue}else{const u=rl(l,ai[c]);c.startsWith("origin")?(a=!0,i[c]=u):r[c]=u}}if(t.transform||(s||n?r.transform=i1(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=i;r.transformOrigin=`${c} ${l} ${u}`}}const mi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Tl(e,t,n){for(const r in t)!Te(t[r])&&!wl(r,n)&&(e[r]=t[r])}function s1({transformTemplate:e},t){return E.useMemo(()=>{const n=mi();return pi(n,t,e),Object.assign({},n.vars,n.style)},[t])}function a1(e,t){const n=e.style||{},r={};return Tl(r,n,e),Object.assign(r,s1(e,t)),r}function c1(e,t){const n={},r=a1(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 l1={offset:"stroke-dashoffset",array:"stroke-dasharray"},u1={offset:"strokeDashoffset",array:"strokeDasharray"};function d1(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?l1:u1;e[i.offset]=R.transform(-r);const s=R.transform(t),a=R.transform(n);e[i.array]=`${s} ${a}`}function El(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},c,l,u){if(pi(e,a,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&d1(f,o,i,s,!1)}const xl=()=>({...mi(),attrs:{}}),Sl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function f1(e,t,n,r){const o=E.useMemo(()=>{const i=xl();return El(i,t,Sl(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Tl(i,e.style,e),o.style={...i,...o.style}}return o}const h1=["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 gi(e){return typeof e!="string"||e.includes("-")?!1:!!(h1.indexOf(e)>-1||/[A-Z]/u.test(e))}function p1(e,t,n,{latestValues:r},o,i=!1){const a=(gi(e)?f1:c1)(t,r,o,e),c=Jv(t,typeof e=="string",i),l=e!==E.Fragment?{...c,...a,ref:n}:{},{children:u}=t,f=E.useMemo(()=>Te(u)?u.get():u,[u]);return E.createElement(e,{...l,children:f})}function Al(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function yi(e,t,n,r){if(typeof t=="function"){const[o,i]=Al(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]=Al(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function yr(e){return Te(e)?e.get():e}function m1({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:g1(n,r,o,e),renderState:t()}}function g1(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=yr(i[h]);let{initial:s,animate:a}=e;const c=gr(e),l=vl(e);t&&l&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const f=u?a:s;if(f&&typeof f!="boolean"&&!mr(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const y=yi(e,h[p]);if(y){const{transitionEnd:m,transition:g,...b}=y;for(const x in b){let T=b[x];if(Array.isArray(T)){const P=u?T.length-1:0;T=T[P]}T!==null&&(o[x]=T)}for(const x in m)o[x]=m[x]}}}return o}const Cl=e=>(t,n)=>{const r=E.useContext(pr),o=E.useContext(or),i=()=>m1(e,t,r,o);return n?i():Eo(i)};function vi(e,t,n){const{style:r}=e,o={};for(const i in r)(Te(r[i])||t.style&&Te(t.style[i])||wl(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const y1=Cl({scrapeMotionValuesFromProps:vi,createRenderState:mi});function Pl(e,t,n){const r=vi(e,t,n);for(const o in e)if(Te(e[o])||Te(t[o])){const i=en.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const v1=Cl({scrapeMotionValuesFromProps:Pl,createRenderState:xl}),b1=Symbol.for("motionComponentSymbol");function on(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function w1(e,t,n){return E.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):on(n)&&(n.current=r))},[t])}const bi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ml="data-"+bi("framerAppearId"),Dl=E.createContext({});function T1(e,t,n,r,o){const{visualElement:i}=E.useContext(pr),s=E.useContext(ml),a=E.useContext(or),c=E.useContext(di).reducedMotion,l=E.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const u=l.current,f=E.useContext(Dl);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&E1(l.current,n,o,f);const h=E.useRef(!1);E.useInsertionEffect(()=>{u&&h.current&&u.update(n,a)});const p=n[Ml],y=E.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return tc(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),y.current&&u.animationState&&u.animationState.animateChanges())}),E.useEffect(()=>{u&&(!y.current&&u.animationState&&u.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),y.current=!1),u.enteringChildren=void 0)}),u}function E1(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ol(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&on(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function Ol(e){if(e)return e.options.allowProjection!==!1?e.projection:Ol(e.parent)}function wi(e,{forwardMotionProps:t=!1}={},n,r){n&&Xv(n);const o=gi(e)?v1:y1;function i(a,c){let l;const u={...E.useContext(di),...a,layoutId:x1(a)},{isStatic:f}=u,h=t1(a),p=o(a,f);if(!f&&xo){S1(u,n);const y=A1(u);l=y.MeasureLayout,h.visualElement=T1(e,p,u,r,y.ProjectionNode)}return v.jsxs(pr.Provider,{value:h,children:[l&&h.visualElement?v.jsx(l,{visualElement:h.visualElement,...u}):null,p1(e,a,w1(p,h.visualElement,c),p,f,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=E.forwardRef(i);return s[b1]=e,s}function x1({layoutId:e}){const t=E.useContext(To).id;return t&&e!==void 0?t+"-"+e:e}function S1(e,t){const n=E.useContext(ml).strict;if(Ft.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?Xt(!1,r,"lazy-strict-mode"):nt(!1,r,"lazy-strict-mode")}}function A1(e){const{drag:t,layout:n}=rn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function C1(e,t){if(typeof Proxy>"u")return wi;const n=new Map,r=(i,s)=>wi(i,s,e,t),o=(i,s)=>(Ft.env.NODE_ENV!=="production"&&Do(!1,"motion() is deprecated. Use motion.create() instead."),r(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,wi(s,void 0,e,t)),n.get(s))})}function Vl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function P1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function M1(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 Ti(e){return e===void 0||e===1}function Ei({scale:e,scaleX:t,scaleY:n}){return!Ti(e)||!Ti(t)||!Ti(n)}function Rt(e){return Ei(e)||Fl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Fl(e){return kl(e.x)||kl(e.y)}function kl(e){return e&&e!=="0%"}function vr(e,t,n){const r=e-n,o=t*r;return n+o}function Il(e,t,n,r,o){return o!==void 0&&(e=vr(e,o,r)),vr(e,n,r)+t}function xi(e,t=0,n=1,r,o){e.min=Il(e.min,t,n,r,o),e.max=Il(e.max,t,n,r,o)}function Nl(e,{x:t,y:n}){xi(e.x,t.translate,t.scale,t.originPoint),xi(e.y,n.translate,n.scale,n.originPoint)}const Ll=.999999999999,Rl=1.0000000000001;function D1(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&an(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Nl(e,s)),r&&Rt(i.latestValues)&&an(e,i.latestValues))}t.x<Rl&&t.x>Ll&&(t.x=1),t.y<Rl&&t.y>Ll&&(t.y=1)}function sn(e,t){e.min=e.min+t,e.max=e.max+t}function _l(e,t,n,r,o=.5){const i=re(e.min,e.max,o);xi(e,t,n,i,r)}function an(e,t){_l(e.x,t.x,t.scaleX,t.scale,t.originX),_l(e.y,t.y,t.scaleY,t.scale,t.originY)}function jl(e,t){return Vl(M1(e.getBoundingClientRect(),t))}function O1(e,t,n){const r=jl(e,n),{scroll:o}=t;return o&&(sn(r.x,o.offset.x),sn(r.y,o.offset.y)),r}const Bl=()=>({translate:0,scale:1,origin:0,originPoint:0}),cn=()=>({x:Bl(),y:Bl()}),$l=()=>({min:0,max:0}),ue=()=>({x:$l(),y:$l()}),Si={current:null},Ul={current:!1};function V1(){if(Ul.current=!0,!!xo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Si.current=e.matches;e.addEventListener("change",t),t()}else Si.current=!1}const F1=new WeakMap;function k1(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Te(o))e.addValue(r,o);else if(Te(i))e.addValue(r,nn(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,nn(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Wl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class I1{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ri,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 h=Ae.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Q.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=gr(n),this.isVariantNode=vl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const p=f[h];c[h]!==void 0&&Te(p)&&p.set(c[h])}}mount(t){this.current=t,F1.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Ul.current||V1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Si.current,Ft.env.NODE_ENV!=="production"&&Do(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ht(this.notifyUpdate),ht(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=tn.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Q.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;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 rn){const n=rn[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):ue()}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<Wl.length;r++){const o=Wl[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=k1(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=nn(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"&&(nc(r)||oc(r))?r=parseFloat(r):!zv(r)&&mt.test(n)&&(r=nl(t,n)),this.setBaseTarget(t,Te(r)?r.get():r)),Te(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=yi(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Te(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Mo),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ci.render(this.render)}}class zl extends I1{constructor(){super(...arguments),this.KeyframeResolver=Fv}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[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;Te(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Zl(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function N1(e){return window.getComputedStyle(e)}class L1 extends zl{constructor(){super(...arguments),this.type="html",this.renderInstance=Zl}readValueFromInstance(t,n){if(tn.has(n))return this.projection?.isProjecting?Qo(n):qy(t,n);{const r=N1(t),o=(ko(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return jl(t,n)}build(t,n,r){pi(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return vi(t,n,r)}}const Hl=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"]);function R1(e,t,n,r){Zl(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Hl.has(o)?o:bi(o),t.attrs[o])}class _1 extends zl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ue}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(tn.has(n)){const r=tl(n);return r&&r.default||0}return n=Hl.has(n)?n:bi(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Pl(t,n,r)}build(t,n,r){El(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){R1(t,n,r,o)}mount(t){this.isSVGTag=Sl(t.tagName),super.mount(t)}}const j1=(e,t)=>gi(e)?new _1(t):new L1(t,{allowProjection:e!==E.Fragment});function ln(e,t,n){const r=e.getProps();return yi(r,t,n!==void 0?n:r.custom,e)}const Ai=e=>Array.isArray(e);function B1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nn(n))}function $1(e){return Ai(e)?e[e.length-1]||0:e}function U1(e,t){const n=ln(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=$1(i[s]);B1(e,s,a)}}function W1(e){return!!(Te(e)&&e.add)}function Ci(e,t){const n=e.getValue("willChange");if(W1(n))return n.add(t);if(!n&&rt.WillChange){const r=new rt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Kl(e){return e.props[Ml]}const z1=e=>e!==null;function Z1(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(z1),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const H1={type:"spring",stiffness:500,damping:25,restSpeed:10},K1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),G1={type:"keyframes",duration:.8},Y1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},X1=(e,{keyframes:t})=>t.length>2?G1:tn.has(e)?e.startsWith("scale")?K1(t[1]):H1:Y1;function q1({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const Pi=(e,t,n,r={},o,i)=>s=>{const a=ii(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Ie(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};q1(a)||Object.assign(u,X1(e,u)),u.duration&&(u.duration=Ie(u.duration)),u.repeatDelay&&(u.repeatDelay=Ie(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(oi(u),u.delay===0&&(f=!0)),(rt.instantAnimations||rt.skipAnimations)&&(f=!0,oi(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!i&&t.get()!==void 0){const h=Z1(u.keyframes,a);if(h!==void 0){Q.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Yo(u):new wv(u)};function Q1({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Gl(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const c=[],l=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const f=e.getValue(u,e.latestValues[u]??null),h=a[u];if(h===void 0||l&&Q1(l,u))continue;const p={delay:n,...ii(i||{},u)},y=f.get();if(y!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===y&&!p.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const b=Kl(e);if(b){const x=window.MotionHandoffAnimation(b,u,Q);x!==null&&(p.startTime=x,m=!0)}}Ci(e,u),f.start(Pi(u,f,h,e.shouldReduceMotion&&Xc.has(u)?{type:!1}:p,e,m));const g=f.animation;g&&c.push(g)}return s&&Promise.all(c).then(()=>{Q.update(()=>{s&&U1(e,s)})}),c}function Yl(e,t,n,r=0,o=1){const i=Array.from(e).sort((l,u)=>l.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}function Mi(e,t,n={}){const r=ln(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Gl(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:f}=o;return J1(e,t,c,l,u,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[c,l]=a==="beforeChildren"?[i,s]:[s,i];return c().then(()=>l())}else return Promise.all([i(),s(n.delay)])}function J1(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),a.push(Mi(c,t,{...s,delay:n+(typeof r=="function"?0:r)+Yl(e.variantChildren,c,r,o,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function eb(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Mi(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Mi(e,t,n);else{const o=typeof t=="function"?ln(e,t,n.custom):t;r=Promise.all(Gl(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Xl(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 tb=hi.length;function ql(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ql(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<tb;n++){const r=hi[n],o=e.props[r];(Ln(o)||o===!1)&&(t[r]=o)}return t}const nb=[...fi].reverse(),rb=fi.length;function ob(e){return t=>Promise.all(t.map(({animation:n,options:r})=>eb(e,n,r)))}function ib(e){let t=ob(e),n=Ql(),r=!0;const o=c=>(l,u)=>{const f=ln(e,u,c==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:p,...y}=f;l={...l,...y,...p}}return l};function i(c){t=c(e)}function s(c){const{props:l}=e,u=ql(e.parent)||{},f=[],h=new Set;let p={},y=1/0;for(let g=0;g<rb;g++){const b=nb[g],x=n[b],T=l[b]!==void 0?l[b]:u[b],P=Ln(T),w=b===c?x.isActive:null;w===!1&&(y=g);let M=T===u[b]&&T!==l[b]&&P;if(M&&r&&e.manuallyAnimateOnMount&&(M=!1),x.protectedKeys={...p},!x.isActive&&w===null||!T&&!x.prevProp||mr(T)||typeof T=="boolean")continue;const A=sb(x.prevProp,T);let C=A||b===c&&x.isActive&&!M&&P||g>y&&P,L=!1;const $=Array.isArray(T)?T:[T];let J=$.reduce(o(b),{});w===!1&&(J={});const{prevResolvedValues:Ee={}}=x,de={...Ee,...J},_=U=>{C=!0,h.has(U)&&(L=!0,h.delete(U)),x.needsAnimating[U]=!0;const D=e.getValue(U);D&&(D.liveStyle=!1)};for(const U in de){const D=J[U],he=Ee[U];if(p.hasOwnProperty(U))continue;let we=!1;Ai(D)&&Ai(he)?we=!Xl(D,he):we=D!==he,we?D!=null?_(U):h.add(U):D!==void 0&&h.has(U)?_(U):x.protectedKeys[U]=!0}x.prevProp=T,x.prevResolvedValues=J,x.isActive&&(p={...p,...J}),r&&e.blockInitialAnimation&&(C=!1);const ee=M&&A;C&&(!ee||L)&&f.push(...$.map(U=>{const D={type:b};if(typeof U=="string"&&r&&!ee&&e.manuallyAnimateOnMount&&e.parent){const{parent:he}=e,we=ln(he,U);if(he.enteringChildren&&we){const{delayChildren:Me}=we.transition||{};D.delay=Yl(he.enteringChildren,e,Me)}}return{animation:U,options:D}}))}if(h.size){const g={};if(typeof l.initial!="boolean"){const b=ln(e,Array.isArray(l.initial)?l.initial[0]:l.initial);b&&b.transition&&(g.transition=b.transition)}h.forEach(b=>{const x=e.getBaseTarget(b),T=e.getValue(b);T&&(T.liveStyle=!0),g[b]=x??null}),f.push({animation:g})}let m=!!f.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(f):Promise.resolve()}function a(c,l){if(n[c].isActive===l)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(c,l)),n[c].isActive=l;const u=s(c);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Ql(),r=!0}}}function sb(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Xl(t,e):!1}function _t(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ql(){return{animate:_t(!0),whileInView:_t(),whileHover:_t(),whileTap:_t(),whileDrag:_t(),whileFocus:_t(),exit:_t()}}class gt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ab extends gt{constructor(t){super(t),t.animationState||(t.animationState=ib(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();mr(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(){this.node.animationState.reset(),this.unmountControls?.()}}let cb=0;class lb extends gt{constructor(){super(...arguments),this.id=cb++}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 ub={animation:{Feature:ab},exit:{Feature:lb}};function _n(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function jn(e){return{point:{x:e.pageX,y:e.pageY}}}const db=e=>t=>li(t)&&e(t,jn(t));function Bn(e,t,n,r){return _n(e,t,db(n),r)}const Jl=1e-4,fb=1-Jl,hb=1+Jl,eu=.01,pb=0-eu,mb=0+eu;function Se(e){return e.max-e.min}function gb(e,t,n){return Math.abs(e-t)<=n}function tu(e,t,n,r=.5){e.origin=r,e.originPoint=re(t.min,t.max,e.origin),e.scale=Se(n)/Se(t),e.translate=re(n.min,n.max,e.origin)-e.originPoint,(e.scale>=fb&&e.scale<=hb||isNaN(e.scale))&&(e.scale=1),(e.translate>=pb&&e.translate<=mb||isNaN(e.translate))&&(e.translate=0)}function $n(e,t,n,r){tu(e.x,t.x,n.x,r?r.originX:void 0),tu(e.y,t.y,n.y,r?r.originY:void 0)}function nu(e,t,n){e.min=n.min+t.min,e.max=e.min+Se(t)}function yb(e,t,n){nu(e.x,t.x,n.x),nu(e.y,t.y,n.y)}function ru(e,t,n){e.min=t.min-n.min,e.max=e.min+Se(t)}function Un(e,t,n){ru(e.x,t.x,n.x),ru(e.y,t.y,n.y)}function Fe(e){return[e("x"),e("y")]}const ou=({current:e})=>e?e.ownerDocument.defaultView:null,iu=(e,t)=>Math.abs(e-t);function vb(e,t){const n=iu(e.x,t.x),r=iu(e.y,t.y);return Math.sqrt(n**2+r**2)}class su{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Oi(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=vb(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!y)return;const{point:m}=h,{timestamp:g}=ve;this.history.push({...m,timestamp:g});const{onStart:b,onMove:x}=this.handlers;p||(b&&b(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Di(p,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(h,p)=>{this.end();const{onEnd:y,onSessionEnd:m,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Oi(h.type==="pointercancel"?this.lastMoveEventInfo:Di(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(h,b),m&&m(h,b)},!li(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=jn(t),c=Di(a,this.transformPagePoint),{point:l}=c,{timestamp:u}=ve;this.history=[{...l,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,Oi(c,this.history)),this.removeListeners=Mn(Bn(this.contextWindow,"pointermove",this.handlePointerMove),Bn(this.contextWindow,"pointerup",this.handlePointerUp),Bn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ht(this.updatePoint)}}function Di(e,t){return t?{point:t(e.point)}:e}function au(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Oi({point:e},t){return{point:e,delta:au(e,cu(t)),offset:au(e,bb(t)),velocity:wb(t,.1)}}function bb(e){return e[0]}function cu(e){return e[e.length-1]}function wb(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=cu(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ie(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 s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Tb(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?re(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?re(n,e,r.max):Math.min(e,n)),e}function lu(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 Eb(e,{top:t,left:n,bottom:r,right:o}){return{x:lu(e.x,n,o),y:lu(e.y,t,r)}}function uu(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 xb(e,t){return{x:uu(e.x,t.x),y:uu(e.y,t.y)}}function Sb(e,t){let n=.5;const r=Se(e),o=Se(t);return o>r?n=Dn(t.min,t.max-r,e.min):r>o&&(n=Dn(e.min,e.max-o,t.min)),tt(0,1,n)}function Ab(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 Vi=.35;function Cb(e=Vi){return e===!1?e=0:e===!0&&(e=Vi),{x:du(e,"left","right"),y:du(e,"top","bottom")}}function du(e,t,n){return{min:fu(e,t),max:fu(e,n)}}function fu(e,t){return typeof e=="number"?e:e[t]||0}const Pb=new WeakMap;class Mb{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=ue(),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=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(jn(f).point)},s=(f,h)=>{const{drag:p,dragPropagation:y,onDragStart:m}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Lv(p),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fe(b=>{let x=this.getAxisMotionValue(b).get()||0;if(Ze.test(x)){const{projection:T}=this.visualElement;if(T&&T.layout){const P=T.layout.layoutBox[b];P&&(x=Se(P)*(parseFloat(x)/100))}}this.originPoint[b]=x}),m&&Q.postRender(()=>m(f,h)),Ci(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:m,onDrag:g}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:b}=h;if(y&&this.currentDirection===null){this.currentDirection=Db(b),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,b),this.updateAxis("y",h.point,b),this.visualElement.render(),g&&g(f,h)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>Fe(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new su(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:ou(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Q.postRender(()=>a(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||!br(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Tb(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&on(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Eb(r.layoutBox,t):this.constraints=!1,this.elastic=Cb(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Fe(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Ab(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!on(t))return!1;const r=t.current;nt(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=O1(r,o.root,this.visualElement.getTransformPagePoint());let s=xb(o.layout.layoutBox,i);if(n){const a=n(P1(s));this.hasMutatedConstraints=!!a,a&&(s=Vl(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Fe(u=>{if(!br(u,n,this.currentDirection))return;let f=c&&c[u]||{};s&&(f={min:0,max:0});const h=o?200:1e6,p=o?40:1e7,y={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(u,y)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ci(this.visualElement,t),r.start(Pi(t,r,0,n,this.visualElement,!1))}stopAnimation(){Fe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Fe(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Fe(n=>{const{drag:r}=this.getProps();if(!br(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-re(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!on(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Fe(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const c=a.get();o[s]=Sb({min:c,max:c},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fe(s=>{if(!br(s,t,null))return;const a=this.getAxisMotionValue(s),{min:c,max:l}=this.constraints[s];a.set(re(c,l,o[s]))})}addListeners(){if(!this.visualElement.current)return;Pb.set(this.visualElement,this);const t=this.visualElement.current,n=Bn(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();on(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Q.read(r);const s=_n(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(Fe(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Vi,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function br(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Db(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Ob extends gt{constructor(t){super(t),this.removeGroupControls=Ve,this.removeListeners=Ve,this.controls=new Mb(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ve}unmount(){this.removeGroupControls(),this.removeListeners()}}const hu=e=>(t,n)=>{e&&Q.postRender(()=>e(t,n))};class Vb extends gt{constructor(){super(...arguments),this.removePointerDownListener=Ve}onPointerDown(t){this.session=new su(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ou(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:hu(t),onStart:hu(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Q.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Bn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const wr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Wn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(R.test(e))e=parseFloat(e);else return e;const n=pu(e,t.target.x),r=pu(e,t.target.y);return`${n}% ${r}%`}},Fb={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=mt.parse(e);if(o.length>5)return r;const i=mt.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=c;const l=re(a,c,.5);return typeof o[2+s]=="number"&&(o[2+s]/=l),typeof o[3+s]=="number"&&(o[3+s]/=l),i(o)}};let Fi=!1;class kb extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;n1(Ib),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Fi&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),wr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Fi=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Q.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ci.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Fi=!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 mu(e){const[t,n]=hl(),r=E.useContext(To);return v.jsx(kb,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(Dl),isPresent:t,safeToRemove:n})}const Ib={borderRadius:{...Wn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Wn,borderTopRightRadius:Wn,borderBottomLeftRadius:Wn,borderBottomRightRadius:Wn,boxShadow:Fb};function Nb(e,t,n){const r=Te(e)?e:nn(e);return r.start(Pi("",r,t,n)),r.animation}const Lb=(e,t)=>e.depth-t.depth;class Rb{constructor(){this.children=[],this.isDirty=!1}add(t){So(this.children,t),this.isDirty=!0}remove(t){Ao(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Lb),this.isDirty=!1,this.children.forEach(t)}}function _b(e,t){const n=Ae.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(ht(r),e(i-t))};return Q.setup(r,!0),()=>ht(r)}const gu=["TopLeft","TopRight","BottomLeft","BottomRight"],jb=gu.length,yu=e=>typeof e=="string"?parseFloat(e):e,vu=e=>typeof e=="number"||R.test(e);function Bb(e,t,n,r,o,i){o?(e.opacity=re(0,n.opacity??1,$b(r)),e.opacityExit=re(t.opacity??1,0,Ub(r))):i&&(e.opacity=re(t.opacity??1,n.opacity??1,r));for(let s=0;s<jb;s++){const a=`border${gu[s]}Radius`;let c=bu(t,a),l=bu(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||vu(c)===vu(l)?(e[a]=Math.max(re(yu(c),yu(l),r),0),(Ze.test(l)||Ze.test(c))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=re(t.rotate||0,n.rotate||0,r))}function bu(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $b=wu(0,.5,hc),Ub=wu(.5,.95,Ve);function wu(e,t,n){return r=>r<e?0:r>t?1:n(Dn(e,t,r))}function Tu(e,t){e.min=t.min,e.max=t.max}function ke(e,t){Tu(e.x,t.x),Tu(e.y,t.y)}function Eu(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function xu(e,t,n,r,o){return e-=t,e=vr(e,1/n,r),o!==void 0&&(e=vr(e,1/o,r)),e}function Wb(e,t=0,n=1,r=.5,o,i=e,s=e){if(Ze.test(t)&&(t=parseFloat(t),t=re(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=re(i.min,i.max,r);e===i&&(a-=t),e.min=xu(e.min,t,n,a,o),e.max=xu(e.max,t,n,a,o)}function Su(e,t,[n,r,o],i,s){Wb(e,t[n],t[r],t[o],t.scale,i,s)}const zb=["x","scaleX","originX"],Zb=["y","scaleY","originY"];function Au(e,t,n,r){Su(e.x,t,zb,n?n.x:void 0,r?r.x:void 0),Su(e.y,t,Zb,n?n.y:void 0,r?r.y:void 0)}function Cu(e){return e.translate===0&&e.scale===1}function Pu(e){return Cu(e.x)&&Cu(e.y)}function Mu(e,t){return e.min===t.min&&e.max===t.max}function Hb(e,t){return Mu(e.x,t.x)&&Mu(e.y,t.y)}function Du(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ou(e,t){return Du(e.x,t.x)&&Du(e.y,t.y)}function Vu(e){return Se(e.x)/Se(e.y)}function Fu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Kb{constructor(){this.members=[]}add(t){So(this.members,t),t.scheduleRender()}remove(t){if(Ao(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)}}function Gb(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:f,rotateY:h,skewX:p,skewY:y}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const ki=["","X","Y","Z"],Yb=1e3;let Xb=0;function Ii(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ku(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Kl(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Q,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ku(r)}function Iu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=Xb++,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.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(Jb),this.nodes.forEach(rw),this.nodes.forEach(ow),this.nodes.forEach(ew)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Rb)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Mo),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const c=this.eventHandlers.get(s);c&&c.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=fl(s)&&!Uv(s),this.instance=s;const{layoutId:a,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),e){let u,f=0;const h=()=>this.root.updateBlockedByResize=!1;Q.read(()=>{f=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,u&&u(),u=_b(h,250),wr.hasAnimatedSinceResize&&(wr.hasAnimatedSinceResize=!1,this.nodes.forEach(Ru)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||l.getDefaultTransition()||lw,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=l.getProps(),b=!this.targetLayout||!Ou(this.targetLayout,p),x=!f&&h;if(this.options.layoutRoot||this.resumeFrom||x||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...ii(y,"layout"),onPlay:m,onComplete:g};(l.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,x)}else f||Ru(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ht(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(iw),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ku(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Nu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Lu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(nw),this.nodes.forEach(qb),this.nodes.forEach(Qb)):this.nodes.forEach(Lu),this.clearAllSnapshots();const a=Ae.now();ve.delta=tt(0,1e3/60,a-ve.timestamp),ve.timestamp=a,ve.isProcessing=!0,Fo.update.process(ve),Fo.preRender.process(ve),Fo.render.process(ve),ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ci.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tw),this.sharedNodes.forEach(sw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Q.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Q.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Se(this.snapshot.measuredBox.x)&&!Se(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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ue(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Pu(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;s&&this.instance&&(a||Rt(this.latestValues)||u)&&(o(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return s&&(c=this.removeTransform(c)),uw(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ue();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(dw))){const{scroll:l}=this.root;l&&(sn(a.x,l.offset.x),sn(a.y,l.offset.y))}return a}removeElementScroll(s){const a=ue();if(ke(a,s),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:u,options:f}=l;l!==this.root&&u&&f.layoutScroll&&(u.wasRoot&&ke(a,s),sn(a.x,u.offset.x),sn(a.y,u.offset.y))}return a}applyTransform(s,a=!1){const c=ue();ke(c,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&an(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Rt(u.latestValues)&&an(c,u.latestValues)}return Rt(this.latestValues)&&an(c,this.latestValues),c}removeTransform(s){const a=ue();ke(a,s);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!Rt(l.latestValues))continue;Ei(l.latestValues)&&l.updateSnapshot();const u=ue(),f=l.measurePageBox();ke(u,f),Au(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Rt(this.latestValues)&&Au(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==ve.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!(!this.layout||!(u||f))){if(this.resolvedRelativeTargetAt=ve.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),Un(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ue(),this.targetWithTransforms=ue()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),yb(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ke(this.target,this.layout.layoutBox),Nl(this.target,this.targetDelta)):ke(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),Un(this.relativeTargetOrigin,this.target,h.target),ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ei(this.parent.latestValues)||Fl(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ve.timestamp&&(c=!1),c)return;const{layout:l,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||u))return;ke(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;D1(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ue());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Eu(this.prevProjectionDelta.x,this.projectionDelta.x),Eu(this.prevProjectionDelta.y,this.projectionDelta.y)),$n(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Fu(this.projectionDelta.x,this.prevProjectionDelta.x)||!Fu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=cn(),this.projectionDelta=cn(),this.projectionDeltaWithTransform=cn()}setAnimationOrigin(s,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},f=cn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ue(),p=c?c.source:void 0,y=this.layout?this.layout.source:void 0,m=p!==y,g=this.getStack(),b=!g||g.members.length<=1,x=!!(m&&!b&&this.options.crossfade===!0&&!this.path.some(cw));this.animationProgress=0;let T;this.mixTargetDelta=P=>{const w=P/1e3;_u(f.x,s.x,w),_u(f.y,s.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Un(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),aw(this.relativeTarget,this.relativeTargetOrigin,h,w),T&&Hb(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=ue()),ke(T,this.relativeTarget)),m&&(this.animationValues=u,Bb(u,l,this.latestValues,w,x,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ht(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{wr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=nn(0)),this.currentAnimation=Nb(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Yb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=s;if(!(!a||!c||!l)){if(this!==s&&this.layout&&l&&Wu(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||ue();const f=Se(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+f;const h=Se(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+h}ke(a,c),an(a,u),$n(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Kb),this.sharedNodes.get(s).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:c}=s;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Ii("z",s,l,this.animationValues);for(let u=0;u<ki.length;u++)Ii(`rotate${ki[u]}`,s,l,this.animationValues),Ii(`skew${ki[u]}`,s,l,this.animationValues);s.render();for(const u in l)s.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=yr(a?.pointerEvents)||"",s.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=yr(a?.pointerEvents)||""),this.hasProjected&&!Rt(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=Gb(this.projectionDeltaWithTransform,this.treeScale,u);c&&(f=c(u,f)),s.transform=f;const{x:h,y:p}=this.projectionDelta;s.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,l.animationValues?s.opacity=l===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const y in Rn){if(u[y]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:b}=Rn[y],x=f==="none"?u[y]:m(u[y],l);if(g){const T=g.length;for(let P=0;P<T;P++)s[g[P]]=x}else b?this.options.visualElement.renderState.vars[y]=x:s[y]=x}this.options.layoutId&&(s.pointerEvents=l===this?yr(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Nu),this.root.sharedNodes.clear()}}}function qb(e){e.updateLayout()}function Qb(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;o==="size"?Fe(u=>{const f=i?t.measuredBox[u]:t.layoutBox[u],h=Se(f);f.min=n[u].min,f.max=f.min+h}):Wu(o,t.layoutBox,n)&&Fe(u=>{const f=i?t.measuredBox[u]:t.layoutBox[u],h=Se(n[u]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const s=cn();$n(s,n,t.layoutBox);const a=cn();i?$n(a,e.applyTransform(r,!0),t.measuredBox):$n(a,n,t.layoutBox);const c=!Pu(s);let l=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:f,layout:h}=u;if(f&&h){const p=ue();Un(p,t.layoutBox,f.layoutBox);const y=ue();Un(y,n,h.layoutBox),Ou(p,y)||(l=!0),u.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=p,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Jb(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 ew(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tw(e){e.clearSnapshot()}function Nu(e){e.clearMeasurements()}function Lu(e){e.isLayoutDirty=!1}function nw(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ru(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rw(e){e.resolveTargetDelta()}function ow(e){e.calcProjection()}function iw(e){e.resetSkewAndRotation()}function sw(e){e.removeLeadSnapshot()}function _u(e,t,n){e.translate=re(t.translate,0,n),e.scale=re(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ju(e,t,n,r){e.min=re(t.min,n.min,r),e.max=re(t.max,n.max,r)}function aw(e,t,n,r){ju(e.x,t.x,n.x,r),ju(e.y,t.y,n.y,r)}function cw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const lw={duration:.45,ease:[.4,0,.1,1]},Bu=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$u=Bu("applewebkit/")&&!Bu("chrome/")?Math.round:Ve;function Uu(e){e.min=$u(e.min),e.max=$u(e.max)}function uw(e){Uu(e.x),Uu(e.y)}function Wu(e,t,n){return e==="position"||e==="preserve-aspect"&&!gb(Vu(t),Vu(n),.2)}function dw(e){return e!==e.root&&e.scroll?.wasRoot}const fw=Iu({attachResizeListener:(e,t)=>_n(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ni={current:void 0},zu=Iu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ni.current){const e=new fw({});e.mount(window),e.setOptions({layoutScroll:!0}),Ni.current=e}return Ni.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hw={pan:{Feature:Vb},drag:{Feature:Ob,ProjectionNode:zu,MeasureLayout:mu}};function Zu(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&&Q.postRender(()=>i(t,jn(t)))}class pw extends gt{mount(){const{current:t}=this.node;t&&(this.unmount=Rv(t,(n,r)=>(Zu(this.node,r,"Start"),o=>Zu(this.node,o,"End"))))}unmount(){}}class mw extends gt{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=Mn(_n(this.node.current,"focus",()=>this.onFocus()),_n(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Hu(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&&Q.postRender(()=>i(t,jn(t)))}class gw extends gt{mount(){const{current:t}=this.node;t&&(this.unmount=$v(t,(n,r)=>(Hu(this.node,r,"Start"),(o,{success:i})=>Hu(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Li=new WeakMap,Ri=new WeakMap,yw=e=>{const t=Li.get(e.target);t&&t(e)},vw=e=>{e.forEach(yw)};function bw({root:e,...t}){const n=e||document;Ri.has(n)||Ri.set(n,{});const r=Ri.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(vw,{root:e,...t})),r[o]}function ww(e,t,n){const r=bw(t);return Li.set(e,n),r.observe(e),()=>{Li.delete(e),r.unobserve(e)}}const Tw={some:0,all:1};class Ew extends gt{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,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Tw[o]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),h=l?u:f;h&&h(c)};return ww(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(xw(t,n))&&this.startObserver()}unmount(){}}function xw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Sw={...ub,...{inView:{Feature:Ew},tap:{Feature:gw},focus:{Feature:mw},hover:{Feature:pw}},...hw,...{layout:{ProjectionNode:zu,MeasureLayout:mu}}},_i=C1(Sw,j1),Aw="flex flex-col relative cursor-text min-w-0",Cw=`
84
84
  peer transition-all
85
85
  px-4 pt-4 pb-2 border border-solid rounded outline-none
86
86
  border-gray-200 bg-white text-base-black text-base
@@ -208,13 +208,7 @@
208
208
  `,nT=`
209
209
  py-2.5 px-4 cursor-pointer transition-all
210
210
  bg-white hover:bg-primary-10 hover:font-medium hover:text-black
211
- `;function td({isOpen:e,options:t,onSelect:n}){return e?v.jsx("div",{className:eT,children:v.jsx("ul",{className:tT,children:t.map(r=>v.jsx("li",{className:nT,onClick:()=>n(r.value),children:r.label},r.key))})}):null}const rT="relative group/search-and-select min-w-0 w-full",oT=`
212
- absolute top-0 left-0 right-0 bottom-0
213
- px-4 flex items-center pointer-events-none
214
- text-gray-800
215
-
216
- data-[has-prefix-icon="true"]:pl-10
217
- `;function iT({name:e,label:t,direction:n="topToBottom",options:r=[],selectedLabel:o,isLoading:i,isDisabled:s,clearOnSelect:a=!0,maxLength:c=255,prefixIcon:l,suffixIcon:u,className:f,onChange:h,onClear:p,onFocus:y,onBlur:m,onSelect:g}){const[b,x]=E.useState(!1),[T,,P]=Pn(e),w=()=>{const j=r.length>0;b!==j&&x(j)};E.useEffect(()=>{w()},[r,w]);const C=E.useMemo(()=>o&&a&&!b&&!T.value,[o,a,b,T.value]),A=j=>{w(),typeof y<"u"&&y(j)},M=j=>{setTimeout(()=>{x(!1),typeof o>"u"&&a&&P.setValue(""),typeof h<"u"&&h({target:{value:""}}),typeof m<"u"&&m(j)},250)},N=j=>{typeof g<"u"&&g(j),x(!1),a?P.setValue(""):P.setValue(j)};return v.jsxs("div",{className:rT,tabIndex:0,"data-direction":n,children:[v.jsx(td,{isOpen:b&&n==="bottomToTop",options:r,onSelect:N}),v.jsx(ed,{name:e,label:C?"":t,isLoading:i,isDisabled:s,maxLength:c,prefixIcon:l,suffixIcon:b?void 0:u,className:f,onChange:h,onClear:p,onBlur:M,onFocus:A}),C&&a&&v.jsx("div",{className:oT,"data-has-prefix-icon":!!l,children:o}),v.jsx(td,{isOpen:b&&n==="topToBottom",options:r,onSelect:N})]})}function sT({isLoading:e=!1,enableReinitialize:t=!0,initialValues:n,validationSchema:r,validateOnMount:o=!1,isForcedDirty:i,onSubmit:s,className:a,children:c}){const[l,u]=E.useState(null),f=p=>{u(p)},h=(p,y)=>{typeof s<"u"?s(p).finally(()=>{y.setSubmitting(!1)}):y.setSubmitting(!1)};return v.jsx(Xa.Provider,{value:{isLoading:e,isForcedDirty:i,onNavigationEvent:f},children:v.jsx(O0,{enableReinitialize:t,initialValues:n,validationSchema:r,validateOnMount:o,onSubmit:h,children:p=>v.jsx("form",{onSubmit:p.handleSubmit,className:ct(z0,a),children:c})})})}const aT=Object.freeze(Object.defineProperty({__proto__:null,Button:Z0,Checkbox:Jw,Input:Ku,Root:sT,Search:ed,SearchAndSelect:iT,Textarea:Lw},Symbol.toStringTag,{value:"Module"})),nd=E.createContext({}),ji=()=>E.useContext(nd);function cT({activeFilter:e,children:t}){const[n,r]=E.useState(!1);return v.jsx(nd.Provider,{value:{activeFilter:e,isFiltersDialogOpen:n,setIsFiltersDialogOpen:r},children:t})}const lT=`
211
+ `;function td({isOpen:e,options:t,onSelect:n}){return e?v.jsx("div",{className:eT,children:v.jsx("ul",{className:tT,children:t.map(r=>v.jsx("li",{className:nT,onClick:()=>n(r.value),children:r.label},r.key))})}):null}const rT="relative group/search-and-select min-w-0 w-full";function oT({name:e,label:t,direction:n="topToBottom",options:r=[],selectedLabel:o,isLoading:i,isDisabled:s,clearOnSelect:a=!0,maxLength:c=255,prefixIcon:l,suffixIcon:u,className:f,onChange:h,onClear:p,onFocus:y,onBlur:m,onSelect:g}){const[b,x]=E.useState(!1),[,,T]=Pn(e),P=()=>{const C=r.length>0;b!==C&&x(C)};E.useEffect(()=>{P()},[r,P]),E.useEffect(()=>{T.setValue(o||"")},[o,T]);const w=C=>{P(),typeof y<"u"&&y(C)},M=C=>{setTimeout(()=>{x(!1),typeof o>"u"&&a&&T.setValue(""),typeof h<"u"&&h({target:{value:""}}),typeof m<"u"&&m(C)},250)},A=C=>{typeof g<"u"&&g(C),x(!1),a&&T.setValue("")};return v.jsxs("div",{className:rT,tabIndex:0,"data-direction":n,children:[v.jsx(td,{isOpen:b&&n==="bottomToTop",options:r,onSelect:A}),v.jsx(ed,{name:e,label:t,isLoading:i,isDisabled:s,maxLength:c,prefixIcon:l,suffixIcon:b?void 0:u,className:f,onChange:h,onClear:p,onBlur:M,onFocus:w}),v.jsx(td,{isOpen:b&&n==="topToBottom",options:r,onSelect:A})]})}function iT({isLoading:e=!1,enableReinitialize:t=!0,initialValues:n,validationSchema:r,validateOnMount:o=!1,isForcedDirty:i,onSubmit:s,className:a,children:c}){const[l,u]=E.useState(null),f=p=>{u(p)},h=(p,y)=>{typeof s<"u"?s(p).finally(()=>{y.setSubmitting(!1)}):y.setSubmitting(!1)};return v.jsx(Xa.Provider,{value:{isLoading:e,isForcedDirty:i,onNavigationEvent:f},children:v.jsx(O0,{enableReinitialize:t,initialValues:n,validationSchema:r,validateOnMount:o,onSubmit:h,children:p=>v.jsx("form",{onSubmit:p.handleSubmit,className:ct(z0,a),children:c})})})}const sT=Object.freeze(Object.defineProperty({__proto__:null,Button:Z0,Checkbox:Jw,Input:Ku,Root:iT,Search:ed,SearchAndSelect:oT,Textarea:Lw},Symbol.toStringTag,{value:"Module"})),nd=E.createContext({}),ji=()=>E.useContext(nd);function aT({activeFilter:e,children:t}){const[n,r]=E.useState(!1);return v.jsx(nd.Provider,{value:{activeFilter:e,isFiltersDialogOpen:n,setIsFiltersDialogOpen:r},children:t})}const cT=`
218
212
  flex flex-col
219
213
  items-center justify-center
220
214
  rounded-full
@@ -229,11 +223,11 @@
229
223
  hover:bg-primary-100
230
224
  hover:text-base-white
231
225
  hover:border-transparent
232
- `,uT=`
226
+ `,lT=`
233
227
  h-4 w-4
234
228
  text-inherit
235
229
  inline-block
236
- `,dT=({label:e})=>{const{setIsFiltersDialogOpen:t}=ji();return v.jsx("button",{"data-testid":"dialog-trigger",className:lT,"aria-label":e||"All filters",onClick:()=>t(!0),children:v.jsx(qu,{className:uT})})},fT="relative overflow-hidden",hT="h-full flex gap-x-2 items-center overflow-auto no-scrollbar outline-px focus:outline-primary-100 -outline-offset-2",rd="h-full hidden md:flex items-center w-16 absolute from-base-white via-base-white to-transparent",pT=`${rd} justify-start left-0 bg-gradient-to-r pl-1`,mT=`${rd} justify-end right-0 bg-gradient-to-l pr-1`,od="flex justify-center items-center border-2 border-gray-400 text-gray-400 rounded-full w-8 h-8 bg-base-white cursor-pointer hover:scale-110 hover:shadow-md transition-all",id=50,Bi=128;function gT(e,t,n,r,o){if(e||t===n||!o?.current||!t||!r)return;const i=o.current.querySelector("li[data-active='true']");i&&o.current?.scroll({left:i.offsetLeft-Bi,behavior:"smooth"})}const yT=({activeFilter:e,leftArrowAriaLabel:t,rightArrowAriaLabel:n,children:r})=>{const{isFiltersDialogOpen:o}=ji(),[i,s]=E.useState(e),[a,c]=E.useState(o),[l,u]=E.useState(!1),[f,h]=E.useState(!0),p=E.useRef(null);E.useEffect(()=>{c(o)},[o]),E.useEffect(()=>{s(e)},[e]),E.useEffect(()=>{gT(o,e,i,a,p)},[e,i,o,a]);const y=()=>{p.current?.scroll({left:p.current.scrollLeft-p.current.clientWidth+Bi,behavior:"smooth"})},m=()=>{p.current?.scroll({left:p.current.scrollLeft+p.current.clientWidth-Bi,behavior:"smooth"})},g=b=>{const x=id,T=b.currentTarget.scrollWidth-b.currentTarget.offsetWidth-id;b.currentTarget.scrollLeft>x&&!l?u(!0):b.currentTarget.scrollLeft<x&&l&&u(!1),b.currentTarget.scrollLeft<T&&!f?h(!0):b.currentTarget.scrollLeft>T&&f&&h(!1)};return v.jsx("div",{className:fT,"data-testid":"scroll-list-container",children:v.jsxs("ul",{"data-testid":"scroll-list",className:hT,ref:p,onScroll:g,tabIndex:0,children:[l&&v.jsx("li",{className:pT,children:v.jsx("button",{"data-testid":"left-arrow-button",className:od,"aria-label":t||"Scroll left",onClick:y,children:v.jsx(Gu,{weight:"bold"})})}),r,f&&v.jsx("li",{className:mT,children:v.jsx("button",{"data-testid":"right-arrow-button",className:od,"aria-label":n||"Scroll right",onClick:m,children:v.jsx(Yu,{weight:"bold"})})})]})})},vT="group list-none",bT=`
230
+ `,uT=({label:e})=>{const{setIsFiltersDialogOpen:t}=ji();return v.jsx("button",{"data-testid":"dialog-trigger",className:cT,"aria-label":e||"All filters",onClick:()=>t(!0),children:v.jsx(qu,{className:lT})})},dT="relative overflow-hidden",fT="h-full flex gap-x-2 items-center overflow-auto no-scrollbar outline-px focus:outline-primary-100 -outline-offset-2",rd="h-full hidden md:flex items-center w-16 absolute from-base-white via-base-white to-transparent",hT=`${rd} justify-start left-0 bg-gradient-to-r pl-1`,pT=`${rd} justify-end right-0 bg-gradient-to-l pr-1`,od="flex justify-center items-center border-2 border-gray-400 text-gray-400 rounded-full w-8 h-8 bg-base-white cursor-pointer hover:scale-110 hover:shadow-md transition-all",id=50,Bi=128;function mT(e,t,n,r,o){if(e||t===n||!o?.current||!t||!r)return;const i=o.current.querySelector("li[data-active='true']");i&&o.current?.scroll({left:i.offsetLeft-Bi,behavior:"smooth"})}const gT=({activeFilter:e,leftArrowAriaLabel:t,rightArrowAriaLabel:n,children:r})=>{const{isFiltersDialogOpen:o}=ji(),[i,s]=E.useState(e),[a,c]=E.useState(o),[l,u]=E.useState(!1),[f,h]=E.useState(!0),p=E.useRef(null);E.useEffect(()=>{c(o)},[o]),E.useEffect(()=>{s(e)},[e]),E.useEffect(()=>{mT(o,e,i,a,p)},[e,i,o,a]);const y=()=>{p.current?.scroll({left:p.current.scrollLeft-p.current.clientWidth+Bi,behavior:"smooth"})},m=()=>{p.current?.scroll({left:p.current.scrollLeft+p.current.clientWidth-Bi,behavior:"smooth"})},g=b=>{const x=id,T=b.currentTarget.scrollWidth-b.currentTarget.offsetWidth-id;b.currentTarget.scrollLeft>x&&!l?u(!0):b.currentTarget.scrollLeft<x&&l&&u(!1),b.currentTarget.scrollLeft<T&&!f?h(!0):b.currentTarget.scrollLeft>T&&f&&h(!1)};return v.jsx("div",{className:dT,"data-testid":"scroll-list-container",children:v.jsxs("ul",{"data-testid":"scroll-list",className:fT,ref:p,onScroll:g,tabIndex:0,children:[l&&v.jsx("li",{className:hT,children:v.jsx("button",{"data-testid":"left-arrow-button",className:od,"aria-label":t||"Scroll left",onClick:y,children:v.jsx(Gu,{weight:"bold"})})}),r,f&&v.jsx("li",{className:pT,children:v.jsx("button",{"data-testid":"right-arrow-button",className:od,"aria-label":n||"Scroll right",onClick:m,children:v.jsx(Yu,{weight:"bold"})})})]})})},yT="group list-none",vT=`
237
231
  text-gray-400 flex items-center gap-x-2 border border-gray-150
238
232
  h-10 px-5 rounded-full cursor-pointer transition-colors -outline-offset-2
239
233
 
@@ -244,8 +238,8 @@
244
238
  group-data-[active=true]:bg-[color:var(--background,_theme(colors.primary.100))]
245
239
  group-data-[active=true]:text-base-white
246
240
  group-data-[active=true]:border-transparent
247
- `,wT="w-5 h-5",TT="text-sm font-medium leading-5 text-nowrap";function ET({filter:e,label:t,icon:n,iconBackgroundColor:r,iconFillColor:o,isActive:i,onSelectFilter:s}){const a=()=>{s&&s(e)};return v.jsx("li",{className:vT,"data-active":i,"data-testid":"filter-item","data-filter":e,children:v.jsxs("button",{onClick:a,className:bT,"data-testid":"filter-item-button",style:o?{"--background":o}:void 0,children:[r&&o?v.jsx(Is,{element:v.jsx(n,{}),backgroundColor:r,fillColor:o}):v.jsx(n,{className:wT,"data-testid":"filter-item-icon"}),v.jsx("p",{className:TT,"data-testid":"filter-item-label",children:t})]})})}function vt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function sd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ad(...e){return t=>{let n=!1;const r=e.map(o=>{const i=sd(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():sd(e[o],null)}}}}function Ce(...e){return d.useCallback(ad(...e),e)}function xT(e,t){const n=d.createContext(t),r=i=>{const{children:s,...a}=i,c=d.useMemo(()=>a,Object.values(a));return v.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(i){const s=d.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function $i(e,t=[]){let n=[];function r(i,s){const a=d.createContext(s),c=n.length;n=[...n,s];const l=f=>{const{scope:h,children:p,...y}=f,m=h?.[e]?.[c]||a,g=d.useMemo(()=>y,Object.values(y));return v.jsx(m.Provider,{value:g,children:p})};l.displayName=i+"Provider";function u(f,h){const p=h?.[e]?.[c]||a,y=d.useContext(p);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[l,u]}const o=()=>{const i=n.map(s=>d.createContext(s));return function(a){const c=a?.[e]||i;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,ST(o,...t)]}function ST(...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(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var bt=globalThis?.document?d.useLayoutEffect:()=>{},AT=d[" useId ".trim().toString()]||(()=>{}),CT=0;function Ui(e){const[t,n]=d.useState(AT());return bt(()=>{n(r=>r??String(CT++))},[e]),e||(t?`radix-${t}`:"")}var PT=d[" useInsertionEffect ".trim().toString()]||bt;function cd({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=MT({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const u=d.useRef(e!==void 0);d.useEffect(()=>{const f=u.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,r])}const l=d.useCallback(u=>{if(a){const f=DT(u)?u(e):u;f!==e&&s.current?.(f)}else i(u)},[a,e,i,s]);return[c,l]}function MT({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),i=d.useRef(t);return PT(()=>{i.current=t},[t]),d.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function DT(e){return typeof e=="function"}function Er(e){const t=OT(e),n=d.forwardRef((r,o)=>{const{children:i,...s}=r,a=d.Children.toArray(i),c=a.find(FT);if(c){const l=c.props.children,u=a.map(f=>f===c?d.Children.count(l)>1?d.Children.only(null):d.isValidElement(l)?l.props.children:null:f);return v.jsx(t,{...s,ref:o,children:d.isValidElement(l)?d.cloneElement(l,void 0,u):null})}return v.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function OT(e){const t=d.forwardRef((n,r)=>{const{children:o,...i}=n;if(d.isValidElement(o)){const s=IT(o),a=kT(i,o.props);return o.type!==d.Fragment&&(a.ref=r?ad(r,s):s),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var VT=Symbol("radix.slottable");function FT(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===VT}function kT(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]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function IT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var NT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=NT.reduce((e,t)=>{const n=Er(`Primitive.${t}`),r=d.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Wi(e,t){e&&ys.flushSync(()=>e.dispatchEvent(t))}function Le(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>t.current?.(...n),[])}function ld(e,t=globalThis?.document){const n=Le(e);d.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 LT="DismissableLayer",zi="dismissableLayer.update",RT="dismissableLayer.pointerDownOutside",_T="dismissableLayer.focusOutside",ud,dd=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fd=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=d.useContext(dd),[u,f]=d.useState(null),h=u?.ownerDocument??globalThis?.document,[,p]=d.useState({}),y=Ce(t,A=>f(A)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(g),x=u?m.indexOf(u):-1,T=l.layersWithOutsidePointerEventsDisabled.size>0,P=x>=b,w=$T(A=>{const M=A.target,N=[...l.branches].some(j=>j.contains(M));!P||N||(o?.(A),s?.(A),A.defaultPrevented||a?.())},h),C=UT(A=>{const M=A.target;[...l.branches].some(j=>j.contains(M))||(i?.(A),s?.(A),A.defaultPrevented||a?.())},h);return ld(A=>{x===l.layers.size-1&&(r?.(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),d.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ud=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),hd(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ud)}},[u,h,n,l]),d.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),hd())},[u,l]),d.useEffect(()=>{const A=()=>p({});return document.addEventListener(zi,A),()=>document.removeEventListener(zi,A)},[]),v.jsx(ge.div,{...c,ref:y,style:{pointerEvents:T?P?"auto":"none":void 0,...e.style},onFocusCapture:vt(e.onFocusCapture,C.onFocusCapture),onBlurCapture:vt(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:vt(e.onPointerDownCapture,w.onPointerDownCapture)})});fd.displayName=LT;var jT="DismissableLayerBranch",BT=d.forwardRef((e,t)=>{const n=d.useContext(dd),r=d.useRef(null),o=Ce(t,r);return d.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),v.jsx(ge.div,{...e,ref:o})});BT.displayName=jT;function $T(e,t=globalThis?.document){const n=Le(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){pd(RT,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function UT(e,t=globalThis?.document){const n=Le(e),r=d.useRef(!1);return d.useEffect(()=>{const o=i=>{i.target&&!r.current&&pd(_T,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 hd(){const e=new CustomEvent(zi);document.dispatchEvent(e)}function pd(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?Wi(o,i):o.dispatchEvent(i)}var Zi="focusScope.autoFocusOnMount",Hi="focusScope.autoFocusOnUnmount",md={bubbles:!1,cancelable:!0},WT="FocusScope",gd=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=d.useState(null),l=Le(o),u=Le(i),f=d.useRef(null),h=Ce(t,m=>c(m)),p=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let m=function(T){if(p.paused||!a)return;const P=T.target;a.contains(P)?f.current=P:wt(f.current,{select:!0})},g=function(T){if(p.paused||!a)return;const P=T.relatedTarget;P!==null&&(a.contains(P)||wt(f.current,{select:!0}))},b=function(T){if(document.activeElement===document.body)for(const w of T)w.removedNodes.length>0&&wt(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const x=new MutationObserver(b);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),x.disconnect()}}},[r,a,p.paused]),d.useEffect(()=>{if(a){bd.add(p);const m=document.activeElement;if(!a.contains(m)){const b=new CustomEvent(Zi,md);a.addEventListener(Zi,l),a.dispatchEvent(b),b.defaultPrevented||(zT(YT(yd(a)),{select:!0}),document.activeElement===m&&wt(a))}return()=>{a.removeEventListener(Zi,l),setTimeout(()=>{const b=new CustomEvent(Hi,md);a.addEventListener(Hi,u),a.dispatchEvent(b),b.defaultPrevented||wt(m??document.body,{select:!0}),a.removeEventListener(Hi,u),bd.remove(p)},0)}}},[a,l,u,p]);const y=d.useCallback(m=>{if(!n&&!r||p.paused)return;const g=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(g&&b){const x=m.currentTarget,[T,P]=ZT(x);T&&P?!m.shiftKey&&b===P?(m.preventDefault(),n&&wt(T,{select:!0})):m.shiftKey&&b===T&&(m.preventDefault(),n&&wt(P,{select:!0})):b===x&&m.preventDefault()}},[n,r,p.paused]);return v.jsx(ge.div,{tabIndex:-1,...s,ref:h,onKeyDown:y})});gd.displayName=WT;function zT(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(wt(r,{select:t}),document.activeElement!==n)return}function ZT(e){const t=yd(e),n=vd(t,e),r=vd(t.reverse(),e);return[n,r]}function yd(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 vd(e,t){for(const n of e)if(!HT(n,{upTo:t}))return n}function HT(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 KT(e){return e instanceof HTMLInputElement&&"select"in e}function wt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&KT(e)&&t&&e.select()}}var bd=GT();function GT(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=wd(e,t),e.unshift(t)},remove(t){e=wd(e,t),e[0]?.resume()}}}function wd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function YT(e){return e.filter(t=>t.tagName!=="A")}var XT="Portal",Ki=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=d.useState(!1);bt(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?ms.createPortal(v.jsx(ge.div,{...r,ref:t}),s):null});Ki.displayName=XT;function qT(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var xr=e=>{const{present:t,children:n}=e,r=QT(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=Ce(r.ref,JT(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:i}):null};xr.displayName="Presence";function QT(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),i=d.useRef("none"),s=e?"mounted":"unmounted",[a,c]=qT(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=Sr(r.current);i.current=a==="mounted"?l:"none"},[a]),bt(()=>{const l=r.current,u=o.current;if(u!==e){const h=i.current,p=Sr(l);e?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),bt(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,f=p=>{const m=Sr(r.current).includes(p.animationName);if(p.target===t&&m&&(c("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},h=p=>{p.target===t&&(i.current=Sr(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Sr(e){return e?.animationName||"none"}function JT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Gi=0;function eE(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Td()),document.body.insertAdjacentElement("beforeend",e[1]??Td()),Gi++,()=>{Gi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Gi--}},[])}function Td(){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 He=function(){return He=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},He.apply(this,arguments)};function Ed(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 tE(e,t,n){if(n||arguments.length===2)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))}typeof SuppressedError=="function"&&SuppressedError;var Ar="right-scroll-bar-position",Cr="width-before-scroll-bar",nE="with-scroll-bars-hidden",rE="--removed-body-scroll-bar-size";function Yi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function oE(e,t){var n=E.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 iE=typeof window<"u"?d.useLayoutEffect:d.useEffect,xd=new WeakMap;function sE(e,t){var n=oE(null,function(r){return e.forEach(function(o){return Yi(o,r)})});return iE(function(){var r=xd.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Yi(a,null)}),i.forEach(function(a){o.has(a)||Yi(a,s)})}xd.set(n,e)},[e]),n}function aE(e){return e}function cE(e,t){t===void 0&&(t=aE);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 s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var u=s;s=[],u.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){s.push(u),l()},filter:function(u){return s=s.filter(u),n}}}};return o}function lE(e){e===void 0&&(e={});var t=cE(null);return t.options=He({async:!0,ssr:!1},e),t}var Sd=function(e){var t=e.sideCar,n=Ed(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 d.createElement(r,He({},n))};Sd.isSideCarExport=!0;function uE(e,t){return e.useMedium(t),Sd}var Ad=lE(),Xi=function(){},Pr=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Xi,onWheelCapture:Xi,onTouchMoveCapture:Xi}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,f=e.shards,h=e.sideCar,p=e.noIsolation,y=e.inert,m=e.allowPinchZoom,g=e.as,b=g===void 0?"div":g,x=e.gapMode,T=Ed(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=h,w=sE([n,t]),C=He(He({},T),o);return d.createElement(d.Fragment,null,u&&d.createElement(P,{sideCar:Ad,removeScrollBar:l,shards:f,noIsolation:p,inert:y,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:x}),s?d.cloneElement(d.Children.only(a),He(He({},C),{ref:w})):d.createElement(b,He({},C,{className:c,ref:w}),a))});Pr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Pr.classNames={fullWidth:Cr,zeroRight:Ar};var dE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dE();return t&&e.setAttribute("nonce",t),e}function hE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var mE=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fE())&&(hE(t,n),pE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gE=function(){var e=mE();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Cd=function(){var e=gE(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},yE={left:0,top:0,right:0,gap:0},qi=function(e){return parseInt(e||"",10)||0},vE=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[qi(n),qi(r),qi(o)]},bE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return yE;var t=vE(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])}},wE=Cd(),un="data-scroll-locked",TE=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
248
- .`.concat(nE,` {
241
+ `,bT="w-5 h-5",wT="text-sm font-medium leading-5 text-nowrap";function TT({filter:e,label:t,icon:n,iconBackgroundColor:r,iconFillColor:o,isActive:i,onSelectFilter:s}){const a=()=>{s&&s(e)};return v.jsx("li",{className:yT,"data-active":i,"data-testid":"filter-item","data-filter":e,children:v.jsxs("button",{onClick:a,className:vT,"data-testid":"filter-item-button",style:o?{"--background":o}:void 0,children:[r&&o?v.jsx(Is,{element:v.jsx(n,{}),backgroundColor:r,fillColor:o}):v.jsx(n,{className:bT,"data-testid":"filter-item-icon"}),v.jsx("p",{className:wT,"data-testid":"filter-item-label",children:t})]})})}function vt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function sd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ad(...e){return t=>{let n=!1;const r=e.map(o=>{const i=sd(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():sd(e[o],null)}}}}function Ce(...e){return d.useCallback(ad(...e),e)}function ET(e,t){const n=d.createContext(t),r=i=>{const{children:s,...a}=i,c=d.useMemo(()=>a,Object.values(a));return v.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(i){const s=d.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function $i(e,t=[]){let n=[];function r(i,s){const a=d.createContext(s),c=n.length;n=[...n,s];const l=f=>{const{scope:h,children:p,...y}=f,m=h?.[e]?.[c]||a,g=d.useMemo(()=>y,Object.values(y));return v.jsx(m.Provider,{value:g,children:p})};l.displayName=i+"Provider";function u(f,h){const p=h?.[e]?.[c]||a,y=d.useContext(p);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[l,u]}const o=()=>{const i=n.map(s=>d.createContext(s));return function(a){const c=a?.[e]||i;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,xT(o,...t)]}function xT(...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(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var bt=globalThis?.document?d.useLayoutEffect:()=>{},ST=d[" useId ".trim().toString()]||(()=>{}),AT=0;function Ui(e){const[t,n]=d.useState(ST());return bt(()=>{n(r=>r??String(AT++))},[e]),e||(t?`radix-${t}`:"")}var CT=d[" useInsertionEffect ".trim().toString()]||bt;function cd({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=PT({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const u=d.useRef(e!==void 0);d.useEffect(()=>{const f=u.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,r])}const l=d.useCallback(u=>{if(a){const f=MT(u)?u(e):u;f!==e&&s.current?.(f)}else i(u)},[a,e,i,s]);return[c,l]}function PT({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),i=d.useRef(t);return CT(()=>{i.current=t},[t]),d.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function MT(e){return typeof e=="function"}function Er(e){const t=DT(e),n=d.forwardRef((r,o)=>{const{children:i,...s}=r,a=d.Children.toArray(i),c=a.find(VT);if(c){const l=c.props.children,u=a.map(f=>f===c?d.Children.count(l)>1?d.Children.only(null):d.isValidElement(l)?l.props.children:null:f);return v.jsx(t,{...s,ref:o,children:d.isValidElement(l)?d.cloneElement(l,void 0,u):null})}return v.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function DT(e){const t=d.forwardRef((n,r)=>{const{children:o,...i}=n;if(d.isValidElement(o)){const s=kT(o),a=FT(i,o.props);return o.type!==d.Fragment&&(a.ref=r?ad(r,s):s),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var OT=Symbol("radix.slottable");function VT(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===OT}function FT(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]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function kT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var IT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=IT.reduce((e,t)=>{const n=Er(`Primitive.${t}`),r=d.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Wi(e,t){e&&ys.flushSync(()=>e.dispatchEvent(t))}function Le(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>t.current?.(...n),[])}function ld(e,t=globalThis?.document){const n=Le(e);d.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 NT="DismissableLayer",zi="dismissableLayer.update",LT="dismissableLayer.pointerDownOutside",RT="dismissableLayer.focusOutside",ud,dd=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fd=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=d.useContext(dd),[u,f]=d.useState(null),h=u?.ownerDocument??globalThis?.document,[,p]=d.useState({}),y=Ce(t,A=>f(A)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(g),x=u?m.indexOf(u):-1,T=l.layersWithOutsidePointerEventsDisabled.size>0,P=x>=b,w=BT(A=>{const C=A.target,L=[...l.branches].some($=>$.contains(C));!P||L||(o?.(A),s?.(A),A.defaultPrevented||a?.())},h),M=$T(A=>{const C=A.target;[...l.branches].some($=>$.contains(C))||(i?.(A),s?.(A),A.defaultPrevented||a?.())},h);return ld(A=>{x===l.layers.size-1&&(r?.(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),d.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ud=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),hd(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ud)}},[u,h,n,l]),d.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),hd())},[u,l]),d.useEffect(()=>{const A=()=>p({});return document.addEventListener(zi,A),()=>document.removeEventListener(zi,A)},[]),v.jsx(ge.div,{...c,ref:y,style:{pointerEvents:T?P?"auto":"none":void 0,...e.style},onFocusCapture:vt(e.onFocusCapture,M.onFocusCapture),onBlurCapture:vt(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:vt(e.onPointerDownCapture,w.onPointerDownCapture)})});fd.displayName=NT;var _T="DismissableLayerBranch",jT=d.forwardRef((e,t)=>{const n=d.useContext(dd),r=d.useRef(null),o=Ce(t,r);return d.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),v.jsx(ge.div,{...e,ref:o})});jT.displayName=_T;function BT(e,t=globalThis?.document){const n=Le(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){pd(LT,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function $T(e,t=globalThis?.document){const n=Le(e),r=d.useRef(!1);return d.useEffect(()=>{const o=i=>{i.target&&!r.current&&pd(RT,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 hd(){const e=new CustomEvent(zi);document.dispatchEvent(e)}function pd(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?Wi(o,i):o.dispatchEvent(i)}var Zi="focusScope.autoFocusOnMount",Hi="focusScope.autoFocusOnUnmount",md={bubbles:!1,cancelable:!0},UT="FocusScope",gd=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=d.useState(null),l=Le(o),u=Le(i),f=d.useRef(null),h=Ce(t,m=>c(m)),p=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let m=function(T){if(p.paused||!a)return;const P=T.target;a.contains(P)?f.current=P:wt(f.current,{select:!0})},g=function(T){if(p.paused||!a)return;const P=T.relatedTarget;P!==null&&(a.contains(P)||wt(f.current,{select:!0}))},b=function(T){if(document.activeElement===document.body)for(const w of T)w.removedNodes.length>0&&wt(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const x=new MutationObserver(b);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),x.disconnect()}}},[r,a,p.paused]),d.useEffect(()=>{if(a){bd.add(p);const m=document.activeElement;if(!a.contains(m)){const b=new CustomEvent(Zi,md);a.addEventListener(Zi,l),a.dispatchEvent(b),b.defaultPrevented||(WT(GT(yd(a)),{select:!0}),document.activeElement===m&&wt(a))}return()=>{a.removeEventListener(Zi,l),setTimeout(()=>{const b=new CustomEvent(Hi,md);a.addEventListener(Hi,u),a.dispatchEvent(b),b.defaultPrevented||wt(m??document.body,{select:!0}),a.removeEventListener(Hi,u),bd.remove(p)},0)}}},[a,l,u,p]);const y=d.useCallback(m=>{if(!n&&!r||p.paused)return;const g=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(g&&b){const x=m.currentTarget,[T,P]=zT(x);T&&P?!m.shiftKey&&b===P?(m.preventDefault(),n&&wt(T,{select:!0})):m.shiftKey&&b===T&&(m.preventDefault(),n&&wt(P,{select:!0})):b===x&&m.preventDefault()}},[n,r,p.paused]);return v.jsx(ge.div,{tabIndex:-1,...s,ref:h,onKeyDown:y})});gd.displayName=UT;function WT(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(wt(r,{select:t}),document.activeElement!==n)return}function zT(e){const t=yd(e),n=vd(t,e),r=vd(t.reverse(),e);return[n,r]}function yd(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 vd(e,t){for(const n of e)if(!ZT(n,{upTo:t}))return n}function ZT(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 HT(e){return e instanceof HTMLInputElement&&"select"in e}function wt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&HT(e)&&t&&e.select()}}var bd=KT();function KT(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=wd(e,t),e.unshift(t)},remove(t){e=wd(e,t),e[0]?.resume()}}}function wd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function GT(e){return e.filter(t=>t.tagName!=="A")}var YT="Portal",Ki=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=d.useState(!1);bt(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?ms.createPortal(v.jsx(ge.div,{...r,ref:t}),s):null});Ki.displayName=YT;function XT(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var xr=e=>{const{present:t,children:n}=e,r=qT(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=Ce(r.ref,QT(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:i}):null};xr.displayName="Presence";function qT(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),i=d.useRef("none"),s=e?"mounted":"unmounted",[a,c]=XT(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=Sr(r.current);i.current=a==="mounted"?l:"none"},[a]),bt(()=>{const l=r.current,u=o.current;if(u!==e){const h=i.current,p=Sr(l);e?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),bt(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,f=p=>{const m=Sr(r.current).includes(p.animationName);if(p.target===t&&m&&(c("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},h=p=>{p.target===t&&(i.current=Sr(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Sr(e){return e?.animationName||"none"}function QT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Gi=0;function JT(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Td()),document.body.insertAdjacentElement("beforeend",e[1]??Td()),Gi++,()=>{Gi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Gi--}},[])}function Td(){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 He=function(){return He=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},He.apply(this,arguments)};function Ed(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 eE(e,t,n){if(n||arguments.length===2)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))}typeof SuppressedError=="function"&&SuppressedError;var Ar="right-scroll-bar-position",Cr="width-before-scroll-bar",tE="with-scroll-bars-hidden",nE="--removed-body-scroll-bar-size";function Yi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rE(e,t){var n=E.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 oE=typeof window<"u"?d.useLayoutEffect:d.useEffect,xd=new WeakMap;function iE(e,t){var n=rE(null,function(r){return e.forEach(function(o){return Yi(o,r)})});return oE(function(){var r=xd.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Yi(a,null)}),i.forEach(function(a){o.has(a)||Yi(a,s)})}xd.set(n,e)},[e]),n}function sE(e){return e}function aE(e,t){t===void 0&&(t=sE);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 s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var u=s;s=[],u.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){s.push(u),l()},filter:function(u){return s=s.filter(u),n}}}};return o}function cE(e){e===void 0&&(e={});var t=aE(null);return t.options=He({async:!0,ssr:!1},e),t}var Sd=function(e){var t=e.sideCar,n=Ed(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 d.createElement(r,He({},n))};Sd.isSideCarExport=!0;function lE(e,t){return e.useMedium(t),Sd}var Ad=cE(),Xi=function(){},Pr=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Xi,onWheelCapture:Xi,onTouchMoveCapture:Xi}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,f=e.shards,h=e.sideCar,p=e.noIsolation,y=e.inert,m=e.allowPinchZoom,g=e.as,b=g===void 0?"div":g,x=e.gapMode,T=Ed(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=h,w=iE([n,t]),M=He(He({},T),o);return d.createElement(d.Fragment,null,u&&d.createElement(P,{sideCar:Ad,removeScrollBar:l,shards:f,noIsolation:p,inert:y,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:x}),s?d.cloneElement(d.Children.only(a),He(He({},M),{ref:w})):d.createElement(b,He({},M,{className:c,ref:w}),a))});Pr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Pr.classNames={fullWidth:Cr,zeroRight:Ar};var uE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function dE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=uE();return t&&e.setAttribute("nonce",t),e}function fE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function hE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var pE=function(){var e=0,t=null;return{add:function(n){e==0&&(t=dE())&&(fE(t,n),hE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mE=function(){var e=pE();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Cd=function(){var e=mE(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},gE={left:0,top:0,right:0,gap:0},qi=function(e){return parseInt(e||"",10)||0},yE=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[qi(n),qi(r),qi(o)]},vE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return gE;var t=yE(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])}},bE=Cd(),un="data-scroll-locked",wE=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
242
+ .`.concat(tE,` {
249
243
  overflow: hidden `).concat(r,`;
250
244
  padding-right: `).concat(a,"px ").concat(r,`;
251
245
  }
@@ -279,16 +273,16 @@
279
273
  }
280
274
 
281
275
  body[`).concat(un,`] {
282
- `).concat(rE,": ").concat(a,`px;
276
+ `).concat(nE,": ").concat(a,`px;
283
277
  }
284
- `)},Pd=function(){var e=parseInt(document.body.getAttribute(un)||"0",10);return isFinite(e)?e:0},EE=function(){d.useEffect(function(){return document.body.setAttribute(un,(Pd()+1).toString()),function(){var e=Pd()-1;e<=0?document.body.removeAttribute(un):document.body.setAttribute(un,e.toString())}},[])},xE=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;EE();var i=d.useMemo(function(){return bE(o)},[o]);return d.createElement(wE,{styles:TE(i,!t,o,n?"":"!important")})},Qi=!1;if(typeof window<"u")try{var Mr=Object.defineProperty({},"passive",{get:function(){return Qi=!0,!0}});window.addEventListener("test",Mr,Mr),window.removeEventListener("test",Mr,Mr)}catch{Qi=!1}var dn=Qi?{passive:!1}:!1,SE=function(e){return e.tagName==="TEXTAREA"},Md=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!SE(e)&&n[t]==="visible")},AE=function(e){return Md(e,"overflowY")},CE=function(e){return Md(e,"overflowX")},Dd=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Od(e,r);if(o){var i=Vd(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},PE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ME=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Od=function(e,t){return e==="v"?AE(t):CE(t)},Vd=function(e,t){return e==="v"?PE(t):ME(t)},DE=function(e,t){return e==="h"&&t==="rtl"?-1:1},OE=function(e,t,n,r,o){var i=DE(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,u=s>0,f=0,h=0;do{var p=Vd(e,a),y=p[0],m=p[1],g=p[2],b=m-g-i*y;(y||b)&&Od(e,a)&&(f+=b,h+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(f)<1||!u&&Math.abs(h)<1)&&(l=!0),l},Dr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fd=function(e){return[e.deltaX,e.deltaY]},kd=function(e){return e&&"current"in e?e.current:e},VE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},FE=function(e){return`
278
+ `)},Pd=function(){var e=parseInt(document.body.getAttribute(un)||"0",10);return isFinite(e)?e:0},TE=function(){d.useEffect(function(){return document.body.setAttribute(un,(Pd()+1).toString()),function(){var e=Pd()-1;e<=0?document.body.removeAttribute(un):document.body.setAttribute(un,e.toString())}},[])},EE=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;TE();var i=d.useMemo(function(){return vE(o)},[o]);return d.createElement(bE,{styles:wE(i,!t,o,n?"":"!important")})},Qi=!1;if(typeof window<"u")try{var Mr=Object.defineProperty({},"passive",{get:function(){return Qi=!0,!0}});window.addEventListener("test",Mr,Mr),window.removeEventListener("test",Mr,Mr)}catch{Qi=!1}var dn=Qi?{passive:!1}:!1,xE=function(e){return e.tagName==="TEXTAREA"},Md=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!xE(e)&&n[t]==="visible")},SE=function(e){return Md(e,"overflowY")},AE=function(e){return Md(e,"overflowX")},Dd=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Od(e,r);if(o){var i=Vd(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},CE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},PE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Od=function(e,t){return e==="v"?SE(t):AE(t)},Vd=function(e,t){return e==="v"?CE(t):PE(t)},ME=function(e,t){return e==="h"&&t==="rtl"?-1:1},DE=function(e,t,n,r,o){var i=ME(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,u=s>0,f=0,h=0;do{var p=Vd(e,a),y=p[0],m=p[1],g=p[2],b=m-g-i*y;(y||b)&&Od(e,a)&&(f+=b,h+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(f)<1||!u&&Math.abs(h)<1)&&(l=!0),l},Dr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fd=function(e){return[e.deltaX,e.deltaY]},kd=function(e){return e&&"current"in e?e.current:e},OE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},VE=function(e){return`
285
279
  .block-interactivity-`.concat(e,` {pointer-events: none;}
286
280
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
287
- `)},kE=0,fn=[];function IE(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(kE++)[0],i=d.useState(Cd)[0],s=d.useRef(e);d.useEffect(function(){s.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=tE([e.lockRef.current],(e.shards||[]).map(kd),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=d.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var b=Dr(m),x=n.current,T="deltaX"in m?m.deltaX:x[0]-b[0],P="deltaY"in m?m.deltaY:x[1]-b[1],w,C=m.target,A=Math.abs(T)>Math.abs(P)?"h":"v";if("touches"in m&&A==="h"&&C.type==="range")return!1;var M=Dd(A,C);if(!M)return!0;if(M?w=A:(w=A==="v"?"h":"v",M=Dd(A,C)),!M)return!1;if(!r.current&&"changedTouches"in m&&(T||P)&&(r.current=w),!w)return!0;var N=r.current||w;return OE(N,g,m,N==="h"?T:P)},[]),c=d.useCallback(function(m){var g=m;if(!(!fn.length||fn[fn.length-1]!==i)){var b="deltaY"in g?Fd(g):Dr(g),x=t.current.filter(function(w){return w.name===g.type&&(w.target===g.target||g.target===w.shadowParent)&&VE(w.delta,b)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}if(!x){var T=(s.current.shards||[]).map(kd).filter(Boolean).filter(function(w){return w.contains(g.target)}),P=T.length>0?a(g,T[0]):!s.current.noIsolation;P&&g.cancelable&&g.preventDefault()}}},[]),l=d.useCallback(function(m,g,b,x){var T={name:m,delta:g,target:b,should:x,shadowParent:NE(b)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(P){return P!==T})},1)},[]),u=d.useCallback(function(m){n.current=Dr(m),r.current=void 0},[]),f=d.useCallback(function(m){l(m.type,Fd(m),m.target,a(m,e.lockRef.current))},[]),h=d.useCallback(function(m){l(m.type,Dr(m),m.target,a(m,e.lockRef.current))},[]);d.useEffect(function(){return fn.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,dn),document.addEventListener("touchmove",c,dn),document.addEventListener("touchstart",u,dn),function(){fn=fn.filter(function(m){return m!==i}),document.removeEventListener("wheel",c,dn),document.removeEventListener("touchmove",c,dn),document.removeEventListener("touchstart",u,dn)}},[]);var p=e.removeScrollBar,y=e.inert;return d.createElement(d.Fragment,null,y?d.createElement(i,{styles:FE(o)}):null,p?d.createElement(xE,{gapMode:e.gapMode}):null)}function NE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const LE=uE(Ad,IE);var Id=d.forwardRef(function(e,t){return d.createElement(Pr,He({},e,{ref:t,sideCar:LE}))});Id.classNames=Pr.classNames;var RE=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},hn=new WeakMap,Or=new WeakMap,Vr={},Ji=0,Nd=function(e){return e&&(e.host||Nd(e.parentNode))},_E=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Nd(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})},jE=function(e,t,n,r){var o=_E(t,Array.isArray(e)?e:[e]);Vr[n]||(Vr[n]=new WeakMap);var i=Vr[n],s=[],a=new Set,c=new Set(o),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};o.forEach(l);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))u(h);else try{var p=h.getAttribute(r),y=p!==null&&p!=="false",m=(hn.get(h)||0)+1,g=(i.get(h)||0)+1;hn.set(h,m),i.set(h,g),s.push(h),m===1&&y&&Or.set(h,!0),g===1&&h.setAttribute(n,"true"),y||h.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return u(t),a.clear(),Ji++,function(){s.forEach(function(f){var h=hn.get(f)-1,p=i.get(f)-1;hn.set(f,h),i.set(f,p),h||(Or.has(f)||f.removeAttribute(r),Or.delete(f)),p||f.removeAttribute(n)}),Ji--,Ji||(hn=new WeakMap,hn=new WeakMap,Or=new WeakMap,Vr={})}},BE=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=RE(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),jE(r,o,n,"aria-hidden")):function(){return null}},Fr="Dialog",[Ld]=$i(Fr),[$E,Re]=Ld(Fr),Rd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=d.useRef(null),c=d.useRef(null),[l,u]=cd({prop:r,defaultProp:o??!1,onChange:i,caller:Fr});return v.jsx($E,{scope:t,triggerRef:a,contentRef:c,contentId:Ui(),titleId:Ui(),descriptionId:Ui(),open:l,onOpenChange:u,onOpenToggle:d.useCallback(()=>u(f=>!f),[u]),modal:s,children:n})};Rd.displayName=Fr;var _d="DialogTrigger",UE=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Re(_d,n),i=Ce(t,o.triggerRef);return v.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ns(o.open),...r,ref:i,onClick:vt(e.onClick,o.onOpenToggle)})});UE.displayName=_d;var es="DialogPortal",[WE,jd]=Ld(es,{forceMount:void 0}),Bd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Re(es,t);return v.jsx(WE,{scope:t,forceMount:n,children:d.Children.map(r,s=>v.jsx(xr,{present:n||i.open,children:v.jsx(Ki,{asChild:!0,container:o,children:s})}))})};Bd.displayName=es;var kr="DialogOverlay",$d=d.forwardRef((e,t)=>{const n=jd(kr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Re(kr,e.__scopeDialog);return i.modal?v.jsx(xr,{present:r||i.open,children:v.jsx(ZE,{...o,ref:t})}):null});$d.displayName=kr;var zE=Er("DialogOverlay.RemoveScroll"),ZE=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Re(kr,n);return v.jsx(Id,{as:zE,allowPinchZoom:!0,shards:[o.contentRef],children:v.jsx(ge.div,{"data-state":ns(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),jt="DialogContent",Ud=d.forwardRef((e,t)=>{const n=jd(jt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Re(jt,e.__scopeDialog);return v.jsx(xr,{present:r||i.open,children:i.modal?v.jsx(HE,{...o,ref:t}):v.jsx(KE,{...o,ref:t})})});Ud.displayName=jt;var HE=d.forwardRef((e,t)=>{const n=Re(jt,e.__scopeDialog),r=d.useRef(null),o=Ce(t,n.contentRef,r);return d.useEffect(()=>{const i=r.current;if(i)return BE(i)},[]),v.jsx(Wd,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:vt(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:vt(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:vt(e.onFocusOutside,i=>i.preventDefault())})}),KE=d.forwardRef((e,t)=>{const n=Re(jt,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return v.jsx(Wd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;n.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Wd=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Re(jt,n),c=d.useRef(null),l=Ce(t,c);return eE(),v.jsxs(v.Fragment,{children:[v.jsx(gd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:v.jsx(fd,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ns(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(GE,{titleId:a.titleId}),v.jsx(XE,{contentRef:c,descriptionId:a.descriptionId})]})]})}),ts="DialogTitle",zd=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Re(ts,n);return v.jsx(ge.h2,{id:o.titleId,...r,ref:t})});zd.displayName=ts;var Zd="DialogDescription",Hd=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Re(Zd,n);return v.jsx(ge.p,{id:o.descriptionId,...r,ref:t})});Hd.displayName=Zd;var Kd="DialogClose",Gd=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Re(Kd,n);return v.jsx(ge.button,{type:"button",...r,ref:t,onClick:vt(e.onClick,()=>o.onOpenChange(!1))})});Gd.displayName=Kd;function ns(e){return e?"open":"closed"}var Yd="DialogTitleWarning",[Fx,Xd]=xT(Yd,{contentName:jt,titleName:ts,docsSlug:"dialog"}),GE=({titleId:e})=>{const t=Xd(Yd),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
281
+ `)},FE=0,fn=[];function kE(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(FE++)[0],i=d.useState(Cd)[0],s=d.useRef(e);d.useEffect(function(){s.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=eE([e.lockRef.current],(e.shards||[]).map(kd),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=d.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var b=Dr(m),x=n.current,T="deltaX"in m?m.deltaX:x[0]-b[0],P="deltaY"in m?m.deltaY:x[1]-b[1],w,M=m.target,A=Math.abs(T)>Math.abs(P)?"h":"v";if("touches"in m&&A==="h"&&M.type==="range")return!1;var C=Dd(A,M);if(!C)return!0;if(C?w=A:(w=A==="v"?"h":"v",C=Dd(A,M)),!C)return!1;if(!r.current&&"changedTouches"in m&&(T||P)&&(r.current=w),!w)return!0;var L=r.current||w;return DE(L,g,m,L==="h"?T:P)},[]),c=d.useCallback(function(m){var g=m;if(!(!fn.length||fn[fn.length-1]!==i)){var b="deltaY"in g?Fd(g):Dr(g),x=t.current.filter(function(w){return w.name===g.type&&(w.target===g.target||g.target===w.shadowParent)&&OE(w.delta,b)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}if(!x){var T=(s.current.shards||[]).map(kd).filter(Boolean).filter(function(w){return w.contains(g.target)}),P=T.length>0?a(g,T[0]):!s.current.noIsolation;P&&g.cancelable&&g.preventDefault()}}},[]),l=d.useCallback(function(m,g,b,x){var T={name:m,delta:g,target:b,should:x,shadowParent:IE(b)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(P){return P!==T})},1)},[]),u=d.useCallback(function(m){n.current=Dr(m),r.current=void 0},[]),f=d.useCallback(function(m){l(m.type,Fd(m),m.target,a(m,e.lockRef.current))},[]),h=d.useCallback(function(m){l(m.type,Dr(m),m.target,a(m,e.lockRef.current))},[]);d.useEffect(function(){return fn.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,dn),document.addEventListener("touchmove",c,dn),document.addEventListener("touchstart",u,dn),function(){fn=fn.filter(function(m){return m!==i}),document.removeEventListener("wheel",c,dn),document.removeEventListener("touchmove",c,dn),document.removeEventListener("touchstart",u,dn)}},[]);var p=e.removeScrollBar,y=e.inert;return d.createElement(d.Fragment,null,y?d.createElement(i,{styles:VE(o)}):null,p?d.createElement(EE,{gapMode:e.gapMode}):null)}function IE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const NE=lE(Ad,kE);var Id=d.forwardRef(function(e,t){return d.createElement(Pr,He({},e,{ref:t,sideCar:NE}))});Id.classNames=Pr.classNames;var LE=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},hn=new WeakMap,Or=new WeakMap,Vr={},Ji=0,Nd=function(e){return e&&(e.host||Nd(e.parentNode))},RE=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Nd(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})},_E=function(e,t,n,r){var o=RE(t,Array.isArray(e)?e:[e]);Vr[n]||(Vr[n]=new WeakMap);var i=Vr[n],s=[],a=new Set,c=new Set(o),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};o.forEach(l);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))u(h);else try{var p=h.getAttribute(r),y=p!==null&&p!=="false",m=(hn.get(h)||0)+1,g=(i.get(h)||0)+1;hn.set(h,m),i.set(h,g),s.push(h),m===1&&y&&Or.set(h,!0),g===1&&h.setAttribute(n,"true"),y||h.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return u(t),a.clear(),Ji++,function(){s.forEach(function(f){var h=hn.get(f)-1,p=i.get(f)-1;hn.set(f,h),i.set(f,p),h||(Or.has(f)||f.removeAttribute(r),Or.delete(f)),p||f.removeAttribute(n)}),Ji--,Ji||(hn=new WeakMap,hn=new WeakMap,Or=new WeakMap,Vr={})}},jE=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=LE(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),_E(r,o,n,"aria-hidden")):function(){return null}},Fr="Dialog",[Ld]=$i(Fr),[BE,Re]=Ld(Fr),Rd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=d.useRef(null),c=d.useRef(null),[l,u]=cd({prop:r,defaultProp:o??!1,onChange:i,caller:Fr});return v.jsx(BE,{scope:t,triggerRef:a,contentRef:c,contentId:Ui(),titleId:Ui(),descriptionId:Ui(),open:l,onOpenChange:u,onOpenToggle:d.useCallback(()=>u(f=>!f),[u]),modal:s,children:n})};Rd.displayName=Fr;var _d="DialogTrigger",$E=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Re(_d,n),i=Ce(t,o.triggerRef);return v.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ns(o.open),...r,ref:i,onClick:vt(e.onClick,o.onOpenToggle)})});$E.displayName=_d;var es="DialogPortal",[UE,jd]=Ld(es,{forceMount:void 0}),Bd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Re(es,t);return v.jsx(UE,{scope:t,forceMount:n,children:d.Children.map(r,s=>v.jsx(xr,{present:n||i.open,children:v.jsx(Ki,{asChild:!0,container:o,children:s})}))})};Bd.displayName=es;var kr="DialogOverlay",$d=d.forwardRef((e,t)=>{const n=jd(kr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Re(kr,e.__scopeDialog);return i.modal?v.jsx(xr,{present:r||i.open,children:v.jsx(zE,{...o,ref:t})}):null});$d.displayName=kr;var WE=Er("DialogOverlay.RemoveScroll"),zE=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Re(kr,n);return v.jsx(Id,{as:WE,allowPinchZoom:!0,shards:[o.contentRef],children:v.jsx(ge.div,{"data-state":ns(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),jt="DialogContent",Ud=d.forwardRef((e,t)=>{const n=jd(jt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Re(jt,e.__scopeDialog);return v.jsx(xr,{present:r||i.open,children:i.modal?v.jsx(ZE,{...o,ref:t}):v.jsx(HE,{...o,ref:t})})});Ud.displayName=jt;var ZE=d.forwardRef((e,t)=>{const n=Re(jt,e.__scopeDialog),r=d.useRef(null),o=Ce(t,n.contentRef,r);return d.useEffect(()=>{const i=r.current;if(i)return jE(i)},[]),v.jsx(Wd,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:vt(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:vt(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:vt(e.onFocusOutside,i=>i.preventDefault())})}),HE=d.forwardRef((e,t)=>{const n=Re(jt,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return v.jsx(Wd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;n.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Wd=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Re(jt,n),c=d.useRef(null),l=Ce(t,c);return JT(),v.jsxs(v.Fragment,{children:[v.jsx(gd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:v.jsx(fd,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ns(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(KE,{titleId:a.titleId}),v.jsx(YE,{contentRef:c,descriptionId:a.descriptionId})]})]})}),ts="DialogTitle",zd=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Re(ts,n);return v.jsx(ge.h2,{id:o.titleId,...r,ref:t})});zd.displayName=ts;var Zd="DialogDescription",Hd=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Re(Zd,n);return v.jsx(ge.p,{id:o.descriptionId,...r,ref:t})});Hd.displayName=Zd;var Kd="DialogClose",Gd=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Re(Kd,n);return v.jsx(ge.button,{type:"button",...r,ref:t,onClick:vt(e.onClick,()=>o.onOpenChange(!1))})});Gd.displayName=Kd;function ns(e){return e?"open":"closed"}var Yd="DialogTitleWarning",[Vx,Xd]=ET(Yd,{contentName:jt,titleName:ts,docsSlug:"dialog"}),KE=({titleId:e})=>{const t=Xd(Yd),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
288
282
 
289
283
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
290
284
 
291
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},YE="DialogDescriptionWarning",XE=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Xd(YE).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},qd=Rd,Qd=Bd,Jd=$d,ef=Ud,tf=zd,nf=Hd,qE=Gd;const QE="fixed top-0 left-0 right-0 bottom-0 z-20 opacity-40 bg-gray-400 rounded inset-0",JE=`
285
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},GE="DialogDescriptionWarning",YE=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Xd(GE).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},qd=Rd,Qd=Bd,Jd=$d,ef=Ud,tf=zd,nf=Hd,XE=Gd;const qE="fixed top-0 left-0 right-0 bottom-0 z-20 opacity-40 bg-gray-400 rounded inset-0",QE=`
292
286
  fixed top-0 left-0 h-full w-full
293
287
 
294
288
  md:top-1/2 md:max-h-[475px] md:-translate-y-1/2
@@ -297,17 +291,17 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
297
291
  bg-base-white
298
292
  py-6
299
293
  z-30
300
- `,e2="text-center font-semibold text-gray-800",t2="font-medium leading-6 text-gray-400 mt-8 mb-6 px-4",n2="absolute top-5 right-5",r2="h-8 w-8 text-gray-250 hover:text-gray-400 transition-colors",o2="h-full flex flex-col justify-between",i2="px-4 pb-4 flex flex-wrap gap-2 overflow-y-auto",s2="p-6 border-t border-gray-200 flex justify-between items-center",a2="md:w-52",c2=({title:e,description:t,applyLabel:n,resetLabel:r,onReset:o,onApply:i,onClose:s,children:a})=>{const{isFiltersDialogOpen:c,setIsFiltersDialogOpen:l}=ji(),u=()=>{o(),l(!1)},f=()=>{i(),l(!1)},h=()=>{l(!1),typeof s=="function"&&s()};return v.jsx(qd,{open:c,children:v.jsxs(Qd,{children:[v.jsx(Jd,{className:QE,"data-testid":"dialog-overlay"}),v.jsxs(ef,{className:JE,"data-testid":"dialog-content",children:[v.jsx(tf,{className:e2,"data-testid":"dialog-title",children:e}),v.jsx(qE,{className:n2,onClick:h,"data-testid":"dialog-close",children:v.jsx(Ju,{className:r2})}),v.jsxs("div",{className:o2,"data-testid":"dialog-filters",children:[v.jsx(nf,{className:t2,"data-testid":"dialog-description",children:t}),v.jsx("div",{className:i2,"data-testid":"dialog-filter-children",children:a}),v.jsxs("div",{className:s2,"data-testid":"dialog-footer",children:[v.jsx(yn,{variant:"ghost",onClick:u,"data-testid":"dialog-reset-button",children:r}),v.jsx(yn,{className:a2,onClick:f,"data-testid":"dialog-apply-button",children:n})]})]})]})]})})};function l2(e){return v.jsx(cT,{children:e.children})}const u2=Object.freeze(Object.defineProperty({__proto__:null,Dialog:c2,DialogTrigger:dT,Filter:ET,Root:l2,ScrollList:yT},Symbol.toStringTag,{value:"Module"})),d2="fixed inset-0 bg-black/50 data-[state=open]:animate-overlayShow z-10",f2=`
294
+ `,JE="text-center font-semibold text-gray-800",e2="font-medium leading-6 text-gray-400 mt-8 mb-6 px-4",t2="absolute top-5 right-5",n2="h-8 w-8 text-gray-250 hover:text-gray-400 transition-colors",r2="h-full flex flex-col justify-between",o2="px-4 pb-4 flex flex-wrap gap-2 overflow-y-auto",i2="p-6 border-t border-gray-200 flex justify-between items-center",s2="md:w-52",a2=({title:e,description:t,applyLabel:n,resetLabel:r,onReset:o,onApply:i,onClose:s,children:a})=>{const{isFiltersDialogOpen:c,setIsFiltersDialogOpen:l}=ji(),u=()=>{o(),l(!1)},f=()=>{i(),l(!1)},h=()=>{l(!1),typeof s=="function"&&s()};return v.jsx(qd,{open:c,children:v.jsxs(Qd,{children:[v.jsx(Jd,{className:qE,"data-testid":"dialog-overlay"}),v.jsxs(ef,{className:QE,"data-testid":"dialog-content",children:[v.jsx(tf,{className:JE,"data-testid":"dialog-title",children:e}),v.jsx(XE,{className:t2,onClick:h,"data-testid":"dialog-close",children:v.jsx(Ju,{className:n2})}),v.jsxs("div",{className:r2,"data-testid":"dialog-filters",children:[v.jsx(nf,{className:e2,"data-testid":"dialog-description",children:t}),v.jsx("div",{className:o2,"data-testid":"dialog-filter-children",children:a}),v.jsxs("div",{className:i2,"data-testid":"dialog-footer",children:[v.jsx(yn,{variant:"ghost",onClick:u,"data-testid":"dialog-reset-button",children:r}),v.jsx(yn,{className:s2,onClick:f,"data-testid":"dialog-apply-button",children:n})]})]})]})]})})};function c2(e){return v.jsx(aT,{children:e.children})}const l2=Object.freeze(Object.defineProperty({__proto__:null,Dialog:a2,DialogTrigger:uT,Filter:TT,Root:c2,ScrollList:gT},Symbol.toStringTag,{value:"Module"})),u2="fixed inset-0 bg-black/50 data-[state=open]:animate-overlayShow z-10",d2=`
301
295
  fixed left-1/2 top-1/2 z-10
302
296
  -translate-x-1/2 -translate-y-1/2
303
297
  shadow-lg focus:outline-none
304
298
 
305
299
  data-[state=open]:animate-contentShow
306
- `,h2="flex flex-col gap-y-6 whitespace-pre-line",p2="flex items-center justify-between m-0 text-2xl text-gray-800",m2="m-0",g2="h-8 w-8 cursor-pointer transition-colors hover:bg-gray-200 rounded-full flex items-center justify-center",y2="flex justify-end gap-2",v2=({title:e,description:t,isOpen:n,children:r,onClose:o})=>v.jsx(qd,{open:n,children:v.jsxs(Qd,{children:[v.jsx(Jd,{className:d2}),v.jsx(ef,{className:f2,children:v.jsx(ks,{children:v.jsxs("div",{className:h2,children:[v.jsxs(tf,{className:p2,children:[v.jsx("span",{children:e}),v.jsx(Tr,{size:32,className:g2,onClick:o})]}),v.jsx(nf,{className:m2,children:t}),v.jsx("div",{className:y2,children:r})]})})})]})});function Pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function b2(e){const t=e+"CollectionProvider",[n,r]=$i(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:g,children:b}=m,x=E.useRef(null),T=E.useRef(new Map).current;return v.jsx(o,{scope:g,itemMap:T,collectionRef:x,children:b})};s.displayName=t;const a=e+"CollectionSlot",c=Er(a),l=E.forwardRef((m,g)=>{const{scope:b,children:x}=m,T=i(a,b),P=Ce(g,T.collectionRef);return v.jsx(c,{ref:P,children:x})});l.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",h=Er(u),p=E.forwardRef((m,g)=>{const{scope:b,children:x,...T}=m,P=E.useRef(null),w=Ce(g,P),C=i(u,b);return E.useEffect(()=>(C.itemMap.set(P,{ref:P,...T}),()=>void C.itemMap.delete(P))),v.jsx(h,{[f]:"",ref:w,children:x})});p.displayName=u;function y(m){const g=i(e+"CollectionConsumer",m);return E.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const T=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((C,A)=>T.indexOf(C.ref.current)-T.indexOf(A.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:l,ItemSlot:p},y,r]}var w2="DismissableLayer",rs="dismissableLayer.update",T2="dismissableLayer.pointerDownOutside",E2="dismissableLayer.focusOutside",rf,of=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sf=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=d.useContext(of),[u,f]=d.useState(null),h=u?.ownerDocument??globalThis?.document,[,p]=d.useState({}),y=Ce(t,A=>f(A)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(g),x=u?m.indexOf(u):-1,T=l.layersWithOutsidePointerEventsDisabled.size>0,P=x>=b,w=S2(A=>{const M=A.target,N=[...l.branches].some(j=>j.contains(M));!P||N||(o?.(A),s?.(A),A.defaultPrevented||a?.())},h),C=A2(A=>{const M=A.target;[...l.branches].some(j=>j.contains(M))||(i?.(A),s?.(A),A.defaultPrevented||a?.())},h);return ld(A=>{x===l.layers.size-1&&(r?.(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),d.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(rf=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),cf(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=rf)}},[u,h,n,l]),d.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),cf())},[u,l]),d.useEffect(()=>{const A=()=>p({});return document.addEventListener(rs,A),()=>document.removeEventListener(rs,A)},[]),v.jsx(ge.div,{...c,ref:y,style:{pointerEvents:T?P?"auto":"none":void 0,...e.style},onFocusCapture:Pe(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Pe(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Pe(e.onPointerDownCapture,w.onPointerDownCapture)})});sf.displayName=w2;var x2="DismissableLayerBranch",af=d.forwardRef((e,t)=>{const n=d.useContext(of),r=d.useRef(null),o=Ce(t,r);return d.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),v.jsx(ge.div,{...e,ref:o})});af.displayName=x2;function S2(e,t=globalThis?.document){const n=Le(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){lf(T2,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function A2(e,t=globalThis?.document){const n=Le(e),r=d.useRef(!1);return d.useEffect(()=>{const o=i=>{i.target&&!r.current&&lf(E2,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 cf(){const e=new CustomEvent(rs);document.dispatchEvent(e)}function lf(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?Wi(o,i):o.dispatchEvent(i)}var C2=sf,P2=af;function M2(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var uf=e=>{const{present:t,children:n}=e,r=D2(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=Ce(r.ref,O2(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:i}):null};uf.displayName="Presence";function D2(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),i=d.useRef("none"),s=e?"mounted":"unmounted",[a,c]=M2(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=Ir(r.current);i.current=a==="mounted"?l:"none"},[a]),bt(()=>{const l=r.current,u=o.current;if(u!==e){const h=i.current,p=Ir(l);e?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),bt(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,f=p=>{const m=Ir(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(c("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},h=p=>{p.target===t&&(i.current=Ir(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Ir(e){return e?.animationName||"none"}function O2(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var V2=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"}),F2="VisuallyHidden",os=d.forwardRef((e,t)=>v.jsx(ge.span,{...e,ref:t,style:{...V2,...e.style}}));os.displayName=F2;var is="ToastProvider",[ss,k2,I2]=b2("Toast"),[df]=$i("Toast",[I2]),[N2,Nr]=df(is),ff=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,c]=d.useState(null),[l,u]=d.useState(0),f=d.useRef(!1),h=d.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${is}\`. Expected non-empty \`string\`.`),v.jsx(ss.Provider,{scope:t,children:v.jsx(N2,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:l,viewport:a,onViewportChange:c,onToastAdd:d.useCallback(()=>u(p=>p+1),[]),onToastRemove:d.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:s})})};ff.displayName=is;var hf="ToastViewport",L2=["F8"],as="toast.viewportPause",cs="toast.viewportResume",pf=d.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=L2,label:o="Notifications ({hotkey})",...i}=e,s=Nr(hf,n),a=k2(n),c=d.useRef(null),l=d.useRef(null),u=d.useRef(null),f=d.useRef(null),h=Ce(t,f,s.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=s.toastCount>0;d.useEffect(()=>{const g=b=>{r.length!==0&&r.every(T=>b[T]||b.code===T)&&f.current?.focus()};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[r]),d.useEffect(()=>{const g=c.current,b=f.current;if(y&&g&&b){const x=()=>{if(!s.isClosePausedRef.current){const C=new CustomEvent(as);b.dispatchEvent(C),s.isClosePausedRef.current=!0}},T=()=>{if(s.isClosePausedRef.current){const C=new CustomEvent(cs);b.dispatchEvent(C),s.isClosePausedRef.current=!1}},P=C=>{!g.contains(C.relatedTarget)&&T()},w=()=>{g.contains(document.activeElement)||T()};return g.addEventListener("focusin",x),g.addEventListener("focusout",P),g.addEventListener("pointermove",x),g.addEventListener("pointerleave",w),window.addEventListener("blur",x),window.addEventListener("focus",T),()=>{g.removeEventListener("focusin",x),g.removeEventListener("focusout",P),g.removeEventListener("pointermove",x),g.removeEventListener("pointerleave",w),window.removeEventListener("blur",x),window.removeEventListener("focus",T)}}},[y,s.isClosePausedRef]);const m=d.useCallback(({tabbingDirection:g})=>{const x=a().map(T=>{const P=T.ref.current,w=[P,...Y2(P)];return g==="forwards"?w:w.reverse()});return(g==="forwards"?x.reverse():x).flat()},[a]);return d.useEffect(()=>{const g=f.current;if(g){const b=x=>{const T=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!T){const w=document.activeElement,C=x.shiftKey;if(x.target===g&&C){l.current?.focus();return}const N=m({tabbingDirection:C?"backwards":"forwards"}),j=N.findIndex(J=>J===w);us(N.slice(j+1))?x.preventDefault():C?l.current?.focus():u.current?.focus()}};return g.addEventListener("keydown",b),()=>g.removeEventListener("keydown",b)}},[a,m]),v.jsxs(P2,{ref:c,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&v.jsx(ls,{ref:l,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"forwards"});us(g)}}),v.jsx(ss.Slot,{scope:n,children:v.jsx(ge.ol,{tabIndex:-1,...i,ref:h})}),y&&v.jsx(ls,{ref:u,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"backwards"});us(g)}})]})});pf.displayName=hf;var mf="ToastFocusProxy",ls=d.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Nr(mf,n);return v.jsx(os,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{const a=s.relatedTarget;!i.viewport?.contains(a)&&r()}})});ls.displayName=mf;var zn="Toast",R2="toast.swipeStart",_2="toast.swipeMove",j2="toast.swipeCancel",B2="toast.swipeEnd",gf=d.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,c]=cd({prop:r,defaultProp:o??!0,onChange:i,caller:zn});return v.jsx(uf,{present:n||a,children:v.jsx(W2,{open:a,...s,ref:t,onClose:()=>c(!1),onPause:Le(e.onPause),onResume:Le(e.onResume),onSwipeStart:Pe(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Pe(e.onSwipeMove,l=>{const{x:u,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Pe(e.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Pe(e.onSwipeEnd,l=>{const{x:u,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});gf.displayName=zn;var[$2,U2]=df(zn,{onClose(){}}),W2=d.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:p,...y}=e,m=Nr(zn,n),[g,b]=d.useState(null),x=Ce(t,_=>b(_)),T=d.useRef(null),P=d.useRef(null),w=o||m.duration,C=d.useRef(0),A=d.useRef(w),M=d.useRef(0),{onToastAdd:N,onToastRemove:j}=m,J=Le(()=>{g?.contains(document.activeElement)&&m.viewport?.focus(),s()}),Ee=d.useCallback(_=>{!_||_===1/0||(window.clearTimeout(M.current),C.current=new Date().getTime(),M.current=window.setTimeout(J,_))},[J]);d.useEffect(()=>{const _=m.viewport;if(_){const ee=()=>{Ee(A.current),l?.()},ie=()=>{const U=new Date().getTime()-C.current;A.current=A.current-U,window.clearTimeout(M.current),c?.()};return _.addEventListener(as,ie),_.addEventListener(cs,ee),()=>{_.removeEventListener(as,ie),_.removeEventListener(cs,ee)}}},[m.viewport,w,c,l,Ee]),d.useEffect(()=>{i&&!m.isClosePausedRef.current&&Ee(w)},[i,w,m.isClosePausedRef,Ee]),d.useEffect(()=>(N(),()=>j()),[N,j]);const de=d.useMemo(()=>g?Sf(g):null,[g]);return m.viewport?v.jsxs(v.Fragment,{children:[de&&v.jsx(z2,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:de}),v.jsx($2,{scope:n,onClose:J,children:ys.createPortal(v.jsx(ss.ItemSlot,{scope:n,children:v.jsx(C2,{asChild:!0,onEscapeKeyDown:Pe(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||J(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:v.jsx(ge.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...y,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Pe(e.onKeyDown,_=>{_.key==="Escape"&&(a?.(_.nativeEvent),_.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,J()))}),onPointerDown:Pe(e.onPointerDown,_=>{_.button===0&&(T.current={x:_.clientX,y:_.clientY})}),onPointerMove:Pe(e.onPointerMove,_=>{if(!T.current)return;const ee=_.clientX-T.current.x,ie=_.clientY-T.current.y,U=!!P.current,D=["left","right"].includes(m.swipeDirection),he=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,we=D?he(0,ee):0,Me=D?0:he(0,ie),xe=_.pointerType==="touch"?10:2,X={x:we,y:Me},ae={originalEvent:_,delta:X};U?(P.current=X,Lr(_2,f,ae,{discrete:!1})):Af(X,m.swipeDirection,xe)?(P.current=X,Lr(R2,u,ae,{discrete:!1}),_.target.setPointerCapture(_.pointerId)):(Math.abs(ee)>xe||Math.abs(ie)>xe)&&(T.current=null)}),onPointerUp:Pe(e.onPointerUp,_=>{const ee=P.current,ie=_.target;if(ie.hasPointerCapture(_.pointerId)&&ie.releasePointerCapture(_.pointerId),P.current=null,T.current=null,ee){const U=_.currentTarget,D={originalEvent:_,delta:ee};Af(ee,m.swipeDirection,m.swipeThreshold)?Lr(B2,p,D,{discrete:!0}):Lr(j2,h,D,{discrete:!0}),U.addEventListener("click",he=>he.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),z2=e=>{const{__scopeToast:t,children:n,...r}=e,o=Nr(zn,t),[i,s]=d.useState(!1),[a,c]=d.useState(!1);return K2(()=>s(!0)),d.useEffect(()=>{const l=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:v.jsx(Ki,{asChild:!0,children:v.jsx(os,{...r,children:i&&v.jsxs(v.Fragment,{children:[o.label," ",n]})})})},Z2="ToastTitle",yf=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(ge.div,{...r,ref:t})});yf.displayName=Z2;var H2="ToastDescription",vf=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(ge.div,{...r,ref:t})});vf.displayName=H2;var bf="ToastAction",wf=d.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?v.jsx(xf,{altText:n,asChild:!0,children:v.jsx(Ef,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${bf}\`. Expected non-empty \`string\`.`),null)});wf.displayName=bf;var Tf="ToastClose",Ef=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=U2(Tf,n);return v.jsx(xf,{asChild:!0,children:v.jsx(ge.button,{type:"button",...r,ref:t,onClick:Pe(e.onClick,o.onClose)})})});Ef.displayName=Tf;var xf=d.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return v.jsx(ge.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Sf(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),G2(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Sf(r))}}),t}function Lr(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Wi(o,i):o.dispatchEvent(i)}var Af=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function K2(e=()=>{}){const t=Le(e);bt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function G2(e){return e.nodeType===e.ELEMENT_NODE}function Y2(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 us(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var X2=ff,q2=pf,Q2=gf,J2=yf,ex=vf,tx=wf;const nx=`
300
+ `,f2="flex flex-col gap-y-6 whitespace-pre-line",h2="flex items-center justify-between m-0 text-2xl text-gray-800",p2="m-0",m2="h-8 w-8 cursor-pointer transition-colors hover:bg-gray-200 rounded-full flex items-center justify-center",g2="flex justify-end gap-2",y2=({title:e,description:t,isOpen:n,children:r,onClose:o})=>v.jsx(qd,{open:n,children:v.jsxs(Qd,{children:[v.jsx(Jd,{className:u2}),v.jsx(ef,{className:d2,children:v.jsx(ks,{children:v.jsxs("div",{className:f2,children:[v.jsxs(tf,{className:h2,children:[v.jsx("span",{children:e}),v.jsx(Tr,{size:32,className:m2,onClick:o})]}),v.jsx(nf,{className:p2,children:t}),v.jsx("div",{className:g2,children:r})]})})})]})});function Pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function v2(e){const t=e+"CollectionProvider",[n,r]=$i(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:g,children:b}=m,x=E.useRef(null),T=E.useRef(new Map).current;return v.jsx(o,{scope:g,itemMap:T,collectionRef:x,children:b})};s.displayName=t;const a=e+"CollectionSlot",c=Er(a),l=E.forwardRef((m,g)=>{const{scope:b,children:x}=m,T=i(a,b),P=Ce(g,T.collectionRef);return v.jsx(c,{ref:P,children:x})});l.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",h=Er(u),p=E.forwardRef((m,g)=>{const{scope:b,children:x,...T}=m,P=E.useRef(null),w=Ce(g,P),M=i(u,b);return E.useEffect(()=>(M.itemMap.set(P,{ref:P,...T}),()=>void M.itemMap.delete(P))),v.jsx(h,{[f]:"",ref:w,children:x})});p.displayName=u;function y(m){const g=i(e+"CollectionConsumer",m);return E.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const T=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((M,A)=>T.indexOf(M.ref.current)-T.indexOf(A.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:l,ItemSlot:p},y,r]}var b2="DismissableLayer",rs="dismissableLayer.update",w2="dismissableLayer.pointerDownOutside",T2="dismissableLayer.focusOutside",rf,of=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sf=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=d.useContext(of),[u,f]=d.useState(null),h=u?.ownerDocument??globalThis?.document,[,p]=d.useState({}),y=Ce(t,A=>f(A)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(g),x=u?m.indexOf(u):-1,T=l.layersWithOutsidePointerEventsDisabled.size>0,P=x>=b,w=x2(A=>{const C=A.target,L=[...l.branches].some($=>$.contains(C));!P||L||(o?.(A),s?.(A),A.defaultPrevented||a?.())},h),M=S2(A=>{const C=A.target;[...l.branches].some($=>$.contains(C))||(i?.(A),s?.(A),A.defaultPrevented||a?.())},h);return ld(A=>{x===l.layers.size-1&&(r?.(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),d.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(rf=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),cf(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=rf)}},[u,h,n,l]),d.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),cf())},[u,l]),d.useEffect(()=>{const A=()=>p({});return document.addEventListener(rs,A),()=>document.removeEventListener(rs,A)},[]),v.jsx(ge.div,{...c,ref:y,style:{pointerEvents:T?P?"auto":"none":void 0,...e.style},onFocusCapture:Pe(e.onFocusCapture,M.onFocusCapture),onBlurCapture:Pe(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Pe(e.onPointerDownCapture,w.onPointerDownCapture)})});sf.displayName=b2;var E2="DismissableLayerBranch",af=d.forwardRef((e,t)=>{const n=d.useContext(of),r=d.useRef(null),o=Ce(t,r);return d.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),v.jsx(ge.div,{...e,ref:o})});af.displayName=E2;function x2(e,t=globalThis?.document){const n=Le(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){lf(w2,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function S2(e,t=globalThis?.document){const n=Le(e),r=d.useRef(!1);return d.useEffect(()=>{const o=i=>{i.target&&!r.current&&lf(T2,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 cf(){const e=new CustomEvent(rs);document.dispatchEvent(e)}function lf(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?Wi(o,i):o.dispatchEvent(i)}var A2=sf,C2=af;function P2(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var uf=e=>{const{present:t,children:n}=e,r=M2(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=Ce(r.ref,D2(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:i}):null};uf.displayName="Presence";function M2(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),i=d.useRef("none"),s=e?"mounted":"unmounted",[a,c]=P2(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=Ir(r.current);i.current=a==="mounted"?l:"none"},[a]),bt(()=>{const l=r.current,u=o.current;if(u!==e){const h=i.current,p=Ir(l);e?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),bt(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,f=p=>{const m=Ir(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(c("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},h=p=>{p.target===t&&(i.current=Ir(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Ir(e){return e?.animationName||"none"}function D2(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var O2=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"}),V2="VisuallyHidden",os=d.forwardRef((e,t)=>v.jsx(ge.span,{...e,ref:t,style:{...O2,...e.style}}));os.displayName=V2;var is="ToastProvider",[ss,F2,k2]=v2("Toast"),[df]=$i("Toast",[k2]),[I2,Nr]=df(is),ff=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,c]=d.useState(null),[l,u]=d.useState(0),f=d.useRef(!1),h=d.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${is}\`. Expected non-empty \`string\`.`),v.jsx(ss.Provider,{scope:t,children:v.jsx(I2,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:l,viewport:a,onViewportChange:c,onToastAdd:d.useCallback(()=>u(p=>p+1),[]),onToastRemove:d.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:s})})};ff.displayName=is;var hf="ToastViewport",N2=["F8"],as="toast.viewportPause",cs="toast.viewportResume",pf=d.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=N2,label:o="Notifications ({hotkey})",...i}=e,s=Nr(hf,n),a=F2(n),c=d.useRef(null),l=d.useRef(null),u=d.useRef(null),f=d.useRef(null),h=Ce(t,f,s.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=s.toastCount>0;d.useEffect(()=>{const g=b=>{r.length!==0&&r.every(T=>b[T]||b.code===T)&&f.current?.focus()};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[r]),d.useEffect(()=>{const g=c.current,b=f.current;if(y&&g&&b){const x=()=>{if(!s.isClosePausedRef.current){const M=new CustomEvent(as);b.dispatchEvent(M),s.isClosePausedRef.current=!0}},T=()=>{if(s.isClosePausedRef.current){const M=new CustomEvent(cs);b.dispatchEvent(M),s.isClosePausedRef.current=!1}},P=M=>{!g.contains(M.relatedTarget)&&T()},w=()=>{g.contains(document.activeElement)||T()};return g.addEventListener("focusin",x),g.addEventListener("focusout",P),g.addEventListener("pointermove",x),g.addEventListener("pointerleave",w),window.addEventListener("blur",x),window.addEventListener("focus",T),()=>{g.removeEventListener("focusin",x),g.removeEventListener("focusout",P),g.removeEventListener("pointermove",x),g.removeEventListener("pointerleave",w),window.removeEventListener("blur",x),window.removeEventListener("focus",T)}}},[y,s.isClosePausedRef]);const m=d.useCallback(({tabbingDirection:g})=>{const x=a().map(T=>{const P=T.ref.current,w=[P,...G2(P)];return g==="forwards"?w:w.reverse()});return(g==="forwards"?x.reverse():x).flat()},[a]);return d.useEffect(()=>{const g=f.current;if(g){const b=x=>{const T=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!T){const w=document.activeElement,M=x.shiftKey;if(x.target===g&&M){l.current?.focus();return}const L=m({tabbingDirection:M?"backwards":"forwards"}),$=L.findIndex(J=>J===w);us(L.slice($+1))?x.preventDefault():M?l.current?.focus():u.current?.focus()}};return g.addEventListener("keydown",b),()=>g.removeEventListener("keydown",b)}},[a,m]),v.jsxs(C2,{ref:c,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&v.jsx(ls,{ref:l,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"forwards"});us(g)}}),v.jsx(ss.Slot,{scope:n,children:v.jsx(ge.ol,{tabIndex:-1,...i,ref:h})}),y&&v.jsx(ls,{ref:u,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"backwards"});us(g)}})]})});pf.displayName=hf;var mf="ToastFocusProxy",ls=d.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Nr(mf,n);return v.jsx(os,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{const a=s.relatedTarget;!i.viewport?.contains(a)&&r()}})});ls.displayName=mf;var zn="Toast",L2="toast.swipeStart",R2="toast.swipeMove",_2="toast.swipeCancel",j2="toast.swipeEnd",gf=d.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,c]=cd({prop:r,defaultProp:o??!0,onChange:i,caller:zn});return v.jsx(uf,{present:n||a,children:v.jsx(U2,{open:a,...s,ref:t,onClose:()=>c(!1),onPause:Le(e.onPause),onResume:Le(e.onResume),onSwipeStart:Pe(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Pe(e.onSwipeMove,l=>{const{x:u,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Pe(e.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Pe(e.onSwipeEnd,l=>{const{x:u,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});gf.displayName=zn;var[B2,$2]=df(zn,{onClose(){}}),U2=d.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:p,...y}=e,m=Nr(zn,n),[g,b]=d.useState(null),x=Ce(t,_=>b(_)),T=d.useRef(null),P=d.useRef(null),w=o||m.duration,M=d.useRef(0),A=d.useRef(w),C=d.useRef(0),{onToastAdd:L,onToastRemove:$}=m,J=Le(()=>{g?.contains(document.activeElement)&&m.viewport?.focus(),s()}),Ee=d.useCallback(_=>{!_||_===1/0||(window.clearTimeout(C.current),M.current=new Date().getTime(),C.current=window.setTimeout(J,_))},[J]);d.useEffect(()=>{const _=m.viewport;if(_){const ee=()=>{Ee(A.current),l?.()},ie=()=>{const U=new Date().getTime()-M.current;A.current=A.current-U,window.clearTimeout(C.current),c?.()};return _.addEventListener(as,ie),_.addEventListener(cs,ee),()=>{_.removeEventListener(as,ie),_.removeEventListener(cs,ee)}}},[m.viewport,w,c,l,Ee]),d.useEffect(()=>{i&&!m.isClosePausedRef.current&&Ee(w)},[i,w,m.isClosePausedRef,Ee]),d.useEffect(()=>(L(),()=>$()),[L,$]);const de=d.useMemo(()=>g?Sf(g):null,[g]);return m.viewport?v.jsxs(v.Fragment,{children:[de&&v.jsx(W2,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:de}),v.jsx(B2,{scope:n,onClose:J,children:ys.createPortal(v.jsx(ss.ItemSlot,{scope:n,children:v.jsx(A2,{asChild:!0,onEscapeKeyDown:Pe(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||J(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:v.jsx(ge.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...y,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Pe(e.onKeyDown,_=>{_.key==="Escape"&&(a?.(_.nativeEvent),_.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,J()))}),onPointerDown:Pe(e.onPointerDown,_=>{_.button===0&&(T.current={x:_.clientX,y:_.clientY})}),onPointerMove:Pe(e.onPointerMove,_=>{if(!T.current)return;const ee=_.clientX-T.current.x,ie=_.clientY-T.current.y,U=!!P.current,D=["left","right"].includes(m.swipeDirection),he=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,we=D?he(0,ee):0,Me=D?0:he(0,ie),xe=_.pointerType==="touch"?10:2,X={x:we,y:Me},ae={originalEvent:_,delta:X};U?(P.current=X,Lr(R2,f,ae,{discrete:!1})):Af(X,m.swipeDirection,xe)?(P.current=X,Lr(L2,u,ae,{discrete:!1}),_.target.setPointerCapture(_.pointerId)):(Math.abs(ee)>xe||Math.abs(ie)>xe)&&(T.current=null)}),onPointerUp:Pe(e.onPointerUp,_=>{const ee=P.current,ie=_.target;if(ie.hasPointerCapture(_.pointerId)&&ie.releasePointerCapture(_.pointerId),P.current=null,T.current=null,ee){const U=_.currentTarget,D={originalEvent:_,delta:ee};Af(ee,m.swipeDirection,m.swipeThreshold)?Lr(j2,p,D,{discrete:!0}):Lr(_2,h,D,{discrete:!0}),U.addEventListener("click",he=>he.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),W2=e=>{const{__scopeToast:t,children:n,...r}=e,o=Nr(zn,t),[i,s]=d.useState(!1),[a,c]=d.useState(!1);return H2(()=>s(!0)),d.useEffect(()=>{const l=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:v.jsx(Ki,{asChild:!0,children:v.jsx(os,{...r,children:i&&v.jsxs(v.Fragment,{children:[o.label," ",n]})})})},z2="ToastTitle",yf=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(ge.div,{...r,ref:t})});yf.displayName=z2;var Z2="ToastDescription",vf=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(ge.div,{...r,ref:t})});vf.displayName=Z2;var bf="ToastAction",wf=d.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?v.jsx(xf,{altText:n,asChild:!0,children:v.jsx(Ef,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${bf}\`. Expected non-empty \`string\`.`),null)});wf.displayName=bf;var Tf="ToastClose",Ef=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=$2(Tf,n);return v.jsx(xf,{asChild:!0,children:v.jsx(ge.button,{type:"button",...r,ref:t,onClick:Pe(e.onClick,o.onClose)})})});Ef.displayName=Tf;var xf=d.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return v.jsx(ge.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Sf(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),K2(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Sf(r))}}),t}function Lr(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Wi(o,i):o.dispatchEvent(i)}var Af=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function H2(e=()=>{}){const t=Le(e);bt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function K2(e){return e.nodeType===e.ELEMENT_NODE}function G2(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 us(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Y2=ff,X2=pf,q2=gf,Q2=yf,J2=vf,ex=wf;const tx=`
307
301
  fixed z-10 top-6
308
302
  w-[80%] left-[10%]
309
303
  md:w-[60%] md:left-[20%]
310
- `,rx="relative",ox="flex-1",ix="font-medium text-base",sx="text-sm font-normal align-left",ax="h-5 w-5",cx="border-none bg-transparent cursor-pointer p-0",lx=`
304
+ `,nx="relative",rx="flex-1",ox="font-medium text-base",ix="text-sm font-normal align-left",sx="h-5 w-5",ax="border-none bg-transparent cursor-pointer p-0",cx=`
311
305
  group rounded-lg my-2 p-4
312
306
  flex items-start justify-between gap-x-2 md:gap-x-3
313
307
 
@@ -315,7 +309,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
315
309
  data-[variant="success"]:bg-feedback-success-50
316
310
  data-[variant="information"]:bg-feedback-info-50
317
311
  data-[variant="warning"]:bg-feedback-warning-50
318
- `,ux="text-primary-100 ml-1",dx=`
312
+ `,lx="text-primary-100 ml-1",ux=`
319
313
  h-10 w-10 p-2 pl-2.5
320
314
  rounded-lg flex items-center justify-between
321
315
 
@@ -327,4 +321,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
327
321
  group-data-[variant="success"]:bg-feedback-success-100
328
322
  group-data-[variant="information"]:bg-feedback-info-100
329
323
  group-data-[variant="warning"]:bg-feedback-warning-100
330
- `,Cf=({toasts:e,onClose:t})=>v.jsx("div",{className:nx,children:v.jsx(Yv,{children:e.map(n=>v.jsx(_i.div,{className:rx,initial:{translateY:-25,opacity:0},animate:{translateY:0,opacity:1},exit:{translateY:-25,opacity:0},transition:{duration:.2},children:v.jsxs(X2,{swipeDirection:"right",children:[v.jsxs(Q2,{className:lx,"data-variant":n.variant,duration:n.timeout||5e3,children:[v.jsx(J2,{children:v.jsx("div",{className:dx,"data-variant":n.variant})}),v.jsxs(ex,{className:ox,children:[v.jsx("div",{className:ix,children:n.title}),v.jsxs("div",{className:sx,children:[n.description,n.action&&n.actionCallback&&v.jsx("button",{onClick:n.actionCallback,className:ux,children:n.action})]})]}),v.jsx(tx,{asChild:!0,altText:"Close Toast Alert",children:t&&v.jsx("button",{className:cx,onClick:()=>n.id&&t(n.id),type:"button",children:v.jsx(Tr,{className:ax})})})]}),v.jsx(q2,{})]})},n.id))})}),be=[];for(let e=0;e<256;++e)be.push((e+256).toString(16).slice(1));function fx(e,t=0){return(be[e[t+0]]+be[e[t+1]]+be[e[t+2]]+be[e[t+3]]+"-"+be[e[t+4]]+be[e[t+5]]+"-"+be[e[t+6]]+be[e[t+7]]+"-"+be[e[t+8]]+be[e[t+9]]+"-"+be[e[t+10]]+be[e[t+11]]+be[e[t+12]]+be[e[t+13]]+be[e[t+14]]+be[e[t+15]]).toLowerCase()}let ds;const hx=new Uint8Array(16);function px(){if(!ds){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ds=crypto.getRandomValues.bind(crypto)}return ds(hx)}const Pf={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function mx(e,t,n){e=e||{};const r=e.random??e.rng?.()??px();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,fx(r)}function gx(e,t,n){return Pf.randomUUID&&!e?Pf.randomUUID():mx(e)}const Mf=E.createContext({toastAlerts:[],openToastAlert:()=>{},closeToastAlerts:()=>{}}),yx=()=>E.useContext(Mf),vx=({children:e})=>{const[t,n]=E.useState([]),r=i=>n(s=>s.filter(a=>a.id!==i)),o=({title:i,description:s,metadata:a,variant:c,action:l,actionCallback:u,timeout:f=5e3})=>{const h=`${gx()}`;n(p=>[...p,{id:h,title:i,description:s,metadata:a,timeout:f,variant:c,action:l,actionCallback:u}]),setTimeout(()=>r(h),f)};return v.jsxs(Mf.Provider,{value:{toastAlerts:t,openToastAlert:o,closeToastAlerts:r},children:[e,v.jsx(Cf,{toasts:t,onClose:r})]})};H.Button=yn,H.Card=ks,H.ColorIcon=Is,H.Form=aT,H.HorizontalScrollFilters=u2,H.Modal=v2,H.ToastAlerts=Cf,H.ToastAlertsProvider=vx,H.useToastAlerts=yx,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
324
+ `,Cf=({toasts:e,onClose:t})=>v.jsx("div",{className:tx,children:v.jsx(Yv,{children:e.map(n=>v.jsx(_i.div,{className:nx,initial:{translateY:-25,opacity:0},animate:{translateY:0,opacity:1},exit:{translateY:-25,opacity:0},transition:{duration:.2},children:v.jsxs(Y2,{swipeDirection:"right",children:[v.jsxs(q2,{className:cx,"data-variant":n.variant,duration:n.timeout||5e3,children:[v.jsx(Q2,{children:v.jsx("div",{className:ux,"data-variant":n.variant})}),v.jsxs(J2,{className:rx,children:[v.jsx("div",{className:ox,children:n.title}),v.jsxs("div",{className:ix,children:[n.description,n.action&&n.actionCallback&&v.jsx("button",{onClick:n.actionCallback,className:lx,children:n.action})]})]}),v.jsx(ex,{asChild:!0,altText:"Close Toast Alert",children:t&&v.jsx("button",{className:ax,onClick:()=>n.id&&t(n.id),type:"button",children:v.jsx(Tr,{className:sx})})})]}),v.jsx(X2,{})]})},n.id))})}),be=[];for(let e=0;e<256;++e)be.push((e+256).toString(16).slice(1));function dx(e,t=0){return(be[e[t+0]]+be[e[t+1]]+be[e[t+2]]+be[e[t+3]]+"-"+be[e[t+4]]+be[e[t+5]]+"-"+be[e[t+6]]+be[e[t+7]]+"-"+be[e[t+8]]+be[e[t+9]]+"-"+be[e[t+10]]+be[e[t+11]]+be[e[t+12]]+be[e[t+13]]+be[e[t+14]]+be[e[t+15]]).toLowerCase()}let ds;const fx=new Uint8Array(16);function hx(){if(!ds){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ds=crypto.getRandomValues.bind(crypto)}return ds(fx)}const Pf={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function px(e,t,n){e=e||{};const r=e.random??e.rng?.()??hx();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,dx(r)}function mx(e,t,n){return Pf.randomUUID&&!e?Pf.randomUUID():px(e)}const Mf=E.createContext({toastAlerts:[],openToastAlert:()=>{},closeToastAlerts:()=>{}}),gx=()=>E.useContext(Mf),yx=({children:e})=>{const[t,n]=E.useState([]),r=i=>n(s=>s.filter(a=>a.id!==i)),o=({title:i,description:s,metadata:a,variant:c,action:l,actionCallback:u,timeout:f=5e3})=>{const h=`${mx()}`;n(p=>[...p,{id:h,title:i,description:s,metadata:a,timeout:f,variant:c,action:l,actionCallback:u}]),setTimeout(()=>r(h),f)};return v.jsxs(Mf.Provider,{value:{toastAlerts:t,openToastAlert:o,closeToastAlerts:r},children:[e,v.jsx(Cf,{toasts:t,onClose:r})]})};H.Button=yn,H.Card=ks,H.ColorIcon=Is,H.Form=sT,H.HorizontalScrollFilters=l2,H.Modal=y2,H.ToastAlerts=Cf,H.ToastAlertsProvider=yx,H.useToastAlerts=gx,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});