@local-logic/design-system 0.7.32 → 0.7.34
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/components/Form/Root/Input/styles.d.ts +1 -1
- package/dist/components/Form/Root/Input/styles.d.ts.map +1 -1
- package/dist/components/Form/Root/SearchAndSelect/Options/index.d.ts +8 -0
- package/dist/components/Form/Root/SearchAndSelect/Options/index.d.ts.map +1 -0
- package/dist/components/Form/Root/SearchAndSelect/Options/styles.d.ts +4 -0
- package/dist/components/Form/Root/SearchAndSelect/Options/styles.d.ts.map +1 -0
- package/dist/components/Form/Root/SearchAndSelect/index.d.ts +3 -6
- package/dist/components/Form/Root/SearchAndSelect/index.d.ts.map +1 -1
- package/dist/components/Form/Root/SearchAndSelect/styles.d.ts +1 -4
- package/dist/components/Form/Root/SearchAndSelect/styles.d.ts.map +1 -1
- package/dist/components/Form/Root/SearchAndSelect/types.d.ts +6 -0
- package/dist/components/Form/Root/SearchAndSelect/types.d.ts.map +1 -0
- package/dist/components/Form/Root/index.d.ts +2 -1
- package/dist/components/Form/Root/index.d.ts.map +1 -1
- package/dist/index.es.js +3423 -3475
- package/dist/index.umd.js +45 -39
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(K,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],b):(K=typeof globalThis<"u"?globalThis:K||self,b(K.LocalLogicDesignSystem={},K.jsxRuntime,K.React,K.ReactDOM))})(this,function(K,b,E,os){"use strict";function is(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 f=is(E),ss=is(os),Or="-",pf=e=>{const t=gf(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Or);return a[0]===""&&a.length!==1&&a.shift(),as(a,t)||mf(s)},getConflictingClassGroupIds:(s,a)=>{const c=n[s]||[];return a&&r[s]?[...c,...r[s]]:c}}},as=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?as(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Or);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},cs=/^\[(.+)\]$/,mf=e=>{if(cs.test(e)){const t=cs.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},gf=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Vr(n[o],r,o,t);return r},Vr=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:ls(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(yf(o)){Vr(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Vr(s,ls(t,i),n,r)})})},ls=(e,t)=>{let n=e;return t.split(Or).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},yf=e=>e.isThemeGetter,vf=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)}}},Fr="!",kr=":",bf=kr.length,wf=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===kr){i.push(o.slice(c,y)),c=y+bf;continue}if(m==="/"){l=y;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const u=i.length===0?o:o.substring(c),d=Tf(u),h=d!==u,p=l&&l>c?l-c:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:p}};if(t){const o=t+kr,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},Tf=e=>e.endsWith(Fr)?e.substring(0,e.length-1):e.startsWith(Fr)?e.substring(1):e,Ef=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}},xf=e=>({cache:vf(e.cacheSize),parseClassName:wf(e),sortModifiers:Ef(e),...pf(e)}),Sf=/\s+/,Af=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Sf);let c="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{isExternal:d,modifiers:h,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}=n(u);if(d){c=u+(c.length>0?" "+c:c);continue}let g=!!m,v=r(g?y.substring(0,m):y);if(!v){if(!g){c=u+(c.length>0?" "+c:c);continue}if(v=r(y),!v){c=u+(c.length>0?" "+c:c);continue}g=!1}const x=i(h).join(":"),T=p?x+Fr:x,C=T+v;if(s.includes(C))continue;s.push(C);const w=o(v,g);for(let P=0;P<w.length;++P){const A=w[P];s.push(T+A)}c=u+(c.length>0?" "+c:c)}return c};function Cf(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=us(t))&&(r&&(r+=" "),r+=n);return r}const us=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=us(e[r]))&&(n&&(n+=" "),n+=t);return n};function Pf(e,...t){let n,r,o,i=s;function s(c){const l=t.reduce((u,d)=>d(u),e());return n=xf(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=Af(c,n);return o(c,u),u}return function(){return i(Cf.apply(null,arguments))}}const he=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ds=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fs=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Mf=/^\d+\/\d+$/,Df=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Of=/\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$/,Vf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ff=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nt=e=>Mf.test(e),j=e=>!!e&&!Number.isNaN(Number(e)),tt=e=>!!e&&Number.isInteger(Number(e)),Ir=e=>e.endsWith("%")&&j(e.slice(0,-1)),ze=e=>Df.test(e),If=()=>!0,Nf=e=>Of.test(e)&&!Vf.test(e),hs=()=>!1,Lf=e=>Ff.test(e),Rf=e=>kf.test(e),_f=e=>!V(e)&&!F(e),jf=e=>Lt(e,vs,hs),V=e=>ds.test(e),mt=e=>Lt(e,bs,Nf),Nr=e=>Lt(e,zf,j),ps=e=>Lt(e,gs,hs),Bf=e=>Lt(e,ys,Rf),Rn=e=>Lt(e,ws,Lf),F=e=>fs.test(e),cn=e=>Rt(e,bs),Uf=e=>Rt(e,Zf),ms=e=>Rt(e,gs),$f=e=>Rt(e,vs),Wf=e=>Rt(e,ys),_n=e=>Rt(e,ws,!0),Lt=(e,t,n)=>{const r=ds.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Rt=(e,t,n=!1)=>{const r=fs.exec(e);return r?r[1]?t(r[1]):n:!1},gs=e=>e==="position"||e==="percentage",ys=e=>e==="image"||e==="url",vs=e=>e==="length"||e==="size"||e==="bg-size",bs=e=>e==="length",zf=e=>e==="number",Zf=e=>e==="family-name",ws=e=>e==="shadow",gt=Pf(()=>{const e=he("color"),t=he("font"),n=he("text"),r=he("font-weight"),o=he("tracking"),i=he("leading"),s=he("breakpoint"),a=he("container"),c=he("spacing"),l=he("radius"),u=he("shadow"),d=he("inset-shadow"),h=he("text-shadow"),p=he("drop-shadow"),y=he("blur"),m=he("perspective"),g=he("aspect"),v=he("ease"),x=he("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...C(),F,V],P=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],M=()=>[F,V,c],k=()=>[Nt,"full","auto",...M()],U=()=>[tt,"none","subgrid",F,V],oe=()=>["auto",{span:["full",tt,F,V]},tt,F,V],me=()=>[tt,"auto",F,V],ie=()=>["auto","min","max","fr",F,V],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],se=()=>["auto",...M()],$=()=>[Nt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],D=()=>[e,F,V],fe=()=>[...C(),ms,ps,{position:[F,V]}],we=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Pe=()=>["auto","cover","contain",$f,jf,{size:[F,V]}],Ee=()=>[Ir,cn,mt],Q=()=>["","none","full",l,F,V],ce=()=>["",j,cn,mt],Me=()=>["solid","dashed","dotted","double"],kt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[j,Ir,ms,ps],It=()=>["","none",y,F,V],Qe=()=>["none",j,F,V],Je=()=>["none",j,F,V],et=()=>[j,F,V],I=()=>[Nt,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ze],breakpoint:[ze],color:[If],container:[ze],"drop-shadow":[ze],ease:["in","out","in-out"],font:[_f],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ze],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ze],shadow:[ze],spacing:["px",j],text:[ze],"text-shadow":[ze],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Nt,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:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[tt,"auto",F,V]}],basis:[{basis:[Nt,"full","auto",a,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[j,Nt,"auto","initial","none",V]}],grow:[{grow:["",j,F,V]}],shrink:[{shrink:["",j,F,V]}],order:[{order:[tt,"first","last","none",F,V]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:oe()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:oe()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],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:se()}],mx:[{mx:se()}],my:[{my:se()}],ms:[{ms:se()}],me:[{me:se()}],mt:[{mt:se()}],mr:[{mr:se()}],mb:[{mb:se()}],ml:[{ml:se()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[a,"screen",...$()]}],"min-w":[{"min-w":[a,"screen","none",...$()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",n,cn,mt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,F,Nr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ir,V]}],"font-family":[{font:[Uf,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,Nr]}],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:[...Me(),"wavy"]}],"text-decoration-thickness":[{decoration:[j,"from-font","auto",F,mt]}],"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: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:fe()}],"bg-repeat":[{bg:we()}],"bg-size":[{bg:Pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},tt,F,V],radial:["",F,V],conic:[tt,F,V]},Wf,Bf]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:Ee()}],"gradient-via-pos":[{via:Ee()}],"gradient-to-pos":[{to:Ee()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Me(),"hidden","none"]}],"divide-style":[{divide:[...Me(),"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:[...Me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[j,F,V]}],"outline-w":[{outline:["",j,cn,mt]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",u,_n,Rn]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",d,_n,Rn]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[j,mt]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",h,_n,Rn]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[j,F,V]}],"mix-blend":[{"mix-blend":[...kt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":kt()}],"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":C()}],"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:fe()}],"mask-repeat":[{mask:we()}],"mask-size":[{mask:Pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,V]}],filter:[{filter:["","none",F,V]}],blur:[{blur:It()}],brightness:[{brightness:[j,F,V]}],contrast:[{contrast:[j,F,V]}],"drop-shadow":[{"drop-shadow":["","none",p,_n,Rn]}],"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":It()}],"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":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:[j,"initial",F,V]}],ease:[{ease:["linear","initial",v,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:Qe()}],"rotate-x":[{"rotate-x":Qe()}],"rotate-y":[{"rotate-y":Qe()}],"rotate-z":[{"rotate-z":Qe()}],scale:[{scale:Je()}],"scale-x":[{"scale-x":Je()}],"scale-y":[{"scale-y":Je()}],"scale-z":[{"scale-z":Je()}],"scale-3d":["scale-3d"],skew:[{skew:et()}],"skew-x":[{"skew-x":et()}],"skew-y":[{"skew-y":et()}],transform:[{transform:[F,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:I()}],"translate-x":[{"translate-x":I()}],"translate-y":[{"translate-y":I()}],"translate-z":[{"translate-z":I()}],"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:[j,cn,mt,Nr]}],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"]}}),Hf=`
|
|
1
|
+
(function(K,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):(K=typeof globalThis<"u"?globalThis:K||self,v(K.LocalLogicDesignSystem={},K.jsxRuntime,K.React,K.ReactDOM))})(this,function(K,v,T,is){"use strict";function ss(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=ss(T),as=ss(is),Or="-",mf=e=>{const t=yf(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Or);return a[0]===""&&a.length!==1&&a.shift(),cs(a,t)||gf(s)},getConflictingClassGroupIds:(s,a)=>{const c=n[s]||[];return a&&r[s]?[...c,...r[s]]:c}}},cs=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?cs(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Or);return t.validators.find(({validator:s})=>s(i))?.classGroupId},ls=/^\[(.+)\]$/,gf=e=>{if(ls.test(e)){const t=ls.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},yf=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Vr(n[o],r,o,t);return r},Vr=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:us(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(vf(o)){Vr(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Vr(s,us(t,i),n,r)})})},us=(e,t)=>{let n=e;return t.split(Or).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},vf=e=>e.isThemeGetter,bf=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)}}},Fr="!",kr=":",wf=kr.length,Ef=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===kr){i.push(o.slice(c,y)),c=y+wf;continue}if(m==="/"){l=y;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const u=i.length===0?o:o.substring(c),f=Tf(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+kr,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},Tf=e=>e.endsWith(Fr)?e.substring(0,e.length-1):e.startsWith(Fr)?e.substring(1):e,xf=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}},Sf=e=>({cache:bf(e.cacheSize),parseClassName:Ef(e),sortModifiers:xf(e),...mf(e)}),Af=/\s+/,Cf=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Af);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(":"),E=p?x+Fr:x,P=E+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(E+A)}c=u+(c.length>0?" "+c:c)}return c};function Pf(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=ds(t))&&(r&&(r+=" "),r+=n);return r}const ds=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ds(e[r]))&&(n&&(n+=" "),n+=t);return n};function Mf(e,...t){let n,r,o,i=s;function s(c){const l=t.reduce((u,f)=>f(u),e());return n=Sf(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=Cf(c,n);return o(c,u),u}return function(){return i(Pf.apply(null,arguments))}}const he=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},fs=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,hs=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Df=/^\d+\/\d+$/,Of=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vf=/\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$/,Ff=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,If=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nt=e=>Df.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),tt=e=>!!e&&Number.isInteger(Number(e)),Ir=e=>e.endsWith("%")&&B(e.slice(0,-1)),ze=e=>Of.test(e),Nf=()=>!0,Lf=e=>Vf.test(e)&&!Ff.test(e),ps=()=>!1,Rf=e=>kf.test(e),_f=e=>If.test(e),jf=e=>!V(e)&&!F(e),Bf=e=>Lt(e,bs,ps),V=e=>fs.test(e),gt=e=>Lt(e,ws,Lf),Nr=e=>Lt(e,Zf,B),ms=e=>Lt(e,ys,ps),Uf=e=>Lt(e,vs,_f),Rn=e=>Lt(e,Es,Rf),F=e=>hs.test(e),cn=e=>Rt(e,ws),$f=e=>Rt(e,Hf),gs=e=>Rt(e,ys),Wf=e=>Rt(e,bs),zf=e=>Rt(e,vs),_n=e=>Rt(e,Es,!0),Lt=(e,t,n)=>{const r=fs.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Rt=(e,t,n=!1)=>{const r=hs.exec(e);return r?r[1]?t(r[1]):n:!1},ys=e=>e==="position"||e==="percentage",vs=e=>e==="image"||e==="url",bs=e=>e==="length"||e==="size"||e==="bg-size",ws=e=>e==="length",Zf=e=>e==="number",Hf=e=>e==="family-name",Es=e=>e==="shadow",nt=Mf(()=>{const e=he("color"),t=he("font"),n=he("text"),r=he("font-weight"),o=he("tracking"),i=he("leading"),s=he("breakpoint"),a=he("container"),c=he("spacing"),l=he("radius"),u=he("shadow"),f=he("inset-shadow"),h=he("text-shadow"),p=he("drop-shadow"),y=he("blur"),m=he("perspective"),g=he("aspect"),b=he("ease"),x=he("animate"),E=()=>["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=()=>[Nt,"full","auto",...M()],j=()=>[tt,"none","subgrid",F,V],ee=()=>["auto",{span:["full",tt,F,V]},tt,F,V],Ee=()=>[tt,"auto",F,V],ue=()=>["auto","min","max","fr",F,V],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],ie=()=>["auto",...M()],$=()=>[Nt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],D=()=>[e,F,V],fe=()=>[...P(),gs,ms,{position:[F,V]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Pe=()=>["auto","cover","contain",Wf,Bf,{size:[F,V]}],Te=()=>[Ir,cn,gt],q=()=>["","none","full",l,F,V],ae=()=>["",B,cn,gt],Me=()=>["solid","dashed","dotted","double"],kt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[B,Ir,gs,ms],It=()=>["","none",y,F,V],Qe=()=>["none",B,F,V],Je=()=>["none",B,F,V],et=()=>[B,F,V],k=()=>[Nt,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ze],breakpoint:[ze],color:[Nf],container:[ze],"drop-shadow":[ze],ease:["in","out","in-out"],font:[jf],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ze],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ze],shadow:[ze],spacing:["px",B],text:[ze],"text-shadow":[ze],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Nt,V,F,g]}],container:["container"],columns:[{columns:[B,V,F,a]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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:[tt,"auto",F,V]}],basis:[{basis:[Nt,"full","auto",a,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[B,Nt,"auto","initial","none",V]}],grow:[{grow:["",B,F,V]}],shrink:[{shrink:["",B,F,V]}],order:[{order:[tt,"first","last","none",F,V]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":Ee()}],"col-end":[{"col-end":Ee()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:ee()}],"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":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],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:$()}],w:[{w:[a,"screen",...$()]}],"min-w":[{"min-w":[a,"screen","none",...$()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",n,cn,gt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,F,Nr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ir,V]}],"font-family":[{font:[$f,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,Nr]}],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:[...Me(),"wavy"]}],"text-decoration-thickness":[{decoration:[B,"from-font","auto",F,gt]}],"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:fe()}],"bg-repeat":[{bg:be()}],"bg-size":[{bg:Pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},tt,F,V],radial:["",F,V],conic:[tt,F,V]},zf,Uf]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:Te()}],"gradient-via-pos":[{via:Te()}],"gradient-to-pos":[{to:Te()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"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:[...Me(),"hidden","none"]}],"divide-style":[{divide:[...Me(),"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:[...Me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[B,F,V]}],"outline-w":[{outline:["",B,cn,gt]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",u,_n,Rn]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",f,_n,Rn]}],"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,gt]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",h,_n,Rn]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[B,F,V]}],"mix-blend":[{"mix-blend":[...kt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":kt()}],"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":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"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":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"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":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"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":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"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":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"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":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"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":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"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":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"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":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"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:fe()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:Pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,V]}],filter:[{filter:["","none",F,V]}],blur:[{blur:It()}],brightness:[{brightness:[B,F,V]}],contrast:[{contrast:[B,F,V]}],"drop-shadow":[{"drop-shadow":["","none",p,_n,Rn]}],"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":It()}],"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:Qe()}],"rotate-x":[{"rotate-x":Qe()}],"rotate-y":[{"rotate-y":Qe()}],"rotate-z":[{"rotate-z":Qe()}],scale:[{scale:Je()}],"scale-x":[{"scale-x":Je()}],"scale-y":[{"scale-y":Je()}],"scale-z":[{"scale-z":Je()}],"scale-3d":["scale-3d"],skew:[{skew:et()}],"skew-x":[{"skew-x":et()}],"skew-y":[{"skew-y":et()}],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,cn,gt,Nr]}],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"]}}),Kf=`
|
|
2
2
|
group justify-center
|
|
3
3
|
text-lg font-medium no-underline
|
|
4
4
|
px-5 rounded-xl h-11
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
data-[variant="ghost"]:data-[is-disabled=true]:text-gray-250
|
|
45
45
|
|
|
46
46
|
data-[variant="ghost"]:data-[inverse=true]:text-white
|
|
47
|
-
`,Ts="h-6 w-6",ln=
|
|
47
|
+
`,Ts="h-6 w-6",ln=T.forwardRef(({children:e,className:t="",variant:n="primary",size:r="small",prefixIcon:o,suffixIcon:i,isDisabled:s=!1,inverse:a=!1,onClick:c,type:l="button",...u},f)=>{const h=p=>{c&&c(p)};return v.jsxs("button",{onClick:h,className:nt(Kf,t),disabled:s,"data-variant":n,"data-size":r,"data-inverse":a,type:l,...u,children:[o&&T.cloneElement(o,{...o.props,className:nt(Ts,o.props.className)}),e,i&&T.cloneElement(i,{...i.props,className:nt(Ts,i.props.className)})]})});ln.displayName="Button";const Gf=`
|
|
48
48
|
font-sans
|
|
49
49
|
rounded-lg p-9 relative
|
|
50
50
|
border border-solid border-gray-150
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
|
|
53
53
|
bg-white
|
|
54
54
|
text-gray-400
|
|
55
|
-
`,
|
|
55
|
+
`,Yf=`
|
|
56
56
|
bg-cover bg-center
|
|
57
57
|
w-full
|
|
58
58
|
h-60
|
|
59
|
-
`;function
|
|
59
|
+
`;function xs({children:e,imageSRC:t}){return v.jsxs("div",{className:Gf,children:[t&&v.jsx("div",{className:Yf,style:{backgroundImage:`url("${t}")`}}),e]})}const Xf=`
|
|
60
60
|
p-1 rounded-full inline-flex items-center justify-center transition-colors
|
|
61
61
|
|
|
62
62
|
bg-[var(--background)]
|
|
@@ -64,22 +64,22 @@
|
|
|
64
64
|
group-data-[is-active=true]/color-icon:bg-[var(--fill)]
|
|
65
65
|
|
|
66
66
|
sm:p-1.5
|
|
67
|
-
`,
|
|
67
|
+
`,qf=`
|
|
68
68
|
w-3.5 h-3.5 transition-colors
|
|
69
69
|
|
|
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 xs({element:e,backgroundColor:t="gray",fillColor:n="black"}){return b.jsx("span",{className:Yf,"data-testid":"icon-background","data-background-color":t,"data-fill-color":n,style:{"--background":t,"--fill":n},children:E.cloneElement(e,{className:Xf,"aria-hidden":"true","data-testid":"icon"})})}function qf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ss={exports:{}},le=Ss.exports={},Re,_e;function Lr(){throw new Error("setTimeout has not been defined")}function Rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Re=setTimeout:Re=Lr}catch{Re=Lr}try{typeof clearTimeout=="function"?_e=clearTimeout:_e=Rr}catch{_e=Rr}})();function As(e){if(Re===setTimeout)return setTimeout(e,0);if((Re===Lr||!Re)&&setTimeout)return Re=setTimeout,setTimeout(e,0);try{return Re(e,0)}catch{try{return Re.call(null,e,0)}catch{return Re.call(this,e,0)}}}function Qf(e){if(_e===clearTimeout)return clearTimeout(e);if((_e===Rr||!_e)&&clearTimeout)return _e=clearTimeout,clearTimeout(e);try{return _e(e)}catch{try{return _e.call(null,e)}catch{return _e.call(this,e)}}}var Ze=[],_t=!1,yt,jn=-1;function Jf(){!_t||!yt||(_t=!1,yt.length?Ze=yt.concat(Ze):jn=-1,Ze.length&&Cs())}function Cs(){if(!_t){var e=As(Jf);_t=!0;for(var t=Ze.length;t;){for(yt=Ze,Ze=[];++jn<t;)yt&&yt[jn].run();jn=-1,t=Ze.length}yt=null,_t=!1,Qf(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];Ze.push(new Ps(e,t)),Ze.length===1&&!_t&&As(Cs)};function Ps(e,t){this.fun=e,this.array=t}Ps.prototype.run=function(){this.fun.apply(null,this.array)},le.title="browser",le.browser=!0,le.env={},le.argv=[],le.version="",le.versions={};function He(){}le.on=He,le.addListener=He,le.once=He,le.off=He,le.removeListener=He,le.removeAllListeners=He,le.emit=He,le.prependListener=He,le.prependOnceListener=He,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 eh=Ss.exports;const z=qf(eh);var th=function(t){return nh(t)&&!rh(t)};function nh(e){return!!e&&typeof e=="object"}function rh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||sh(e)}var oh=typeof Symbol=="function"&&Symbol.for,ih=oh?Symbol.for("react.element"):60103;function sh(e){return e.$$typeof===ih}function ah(e){return Array.isArray(e)?[]:{}}function Bn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?un(ah(e),e,t):e}function ch(e,t,n){return e.concat(t).map(function(r){return Bn(r,n)})}function lh(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=Bn(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=Bn(t[o],n):r[o]=un(e[o],t[o],n)}),r}function un(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||ch,n.isMergeableObject=n.isMergeableObject||th;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):lh(e,t,n):Bn(t,n)}un.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return un(r,o,n)},{})};var _r=un;const Un=globalThis||void 0||self;var Ms=typeof Un=="object"&&Un&&Un.Object===Object&&Un,uh=typeof self=="object"&&self&&self.Object===Object&&self,je=Ms||uh||Function("return this")(),nt=je.Symbol,Ds=Object.prototype,dh=Ds.hasOwnProperty,fh=Ds.toString,dn=nt?nt.toStringTag:void 0;function hh(e){var t=dh.call(e,dn),n=e[dn];try{e[dn]=void 0;var r=!0}catch{}var o=fh.call(e);return r&&(t?e[dn]=n:delete e[dn]),o}var ph=Object.prototype,mh=ph.toString;function gh(e){return mh.call(e)}var yh="[object Null]",vh="[object Undefined]",Os=nt?nt.toStringTag:void 0;function vt(e){return e==null?e===void 0?vh:yh:Os&&Os in Object(e)?hh(e):gh(e)}function Vs(e,t){return function(n){return e(t(n))}}var jr=Vs(Object.getPrototypeOf,Object);function bt(e){return e!=null&&typeof e=="object"}var bh="[object Object]",wh=Function.prototype,Th=Object.prototype,Fs=wh.toString,Eh=Th.hasOwnProperty,xh=Fs.call(Object);function ks(e){if(!bt(e)||vt(e)!=bh)return!1;var t=jr(e);if(t===null)return!0;var n=Eh.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Fs.call(n)==xh}function Sh(){this.__data__=[],this.size=0}function Is(e,t){return e===t||e!==e&&t!==t}function $n(e,t){for(var n=e.length;n--;)if(Is(e[n][0],t))return n;return-1}var Ah=Array.prototype,Ch=Ah.splice;function Ph(e){var t=this.__data__,n=$n(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ch.call(t,n,1),--this.size,!0}function Mh(e){var t=this.__data__,n=$n(t,e);return n<0?void 0:t[n][1]}function Dh(e){return $n(this.__data__,e)>-1}function Oh(e,t){var n=this.__data__,r=$n(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ke(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])}}Ke.prototype.clear=Sh,Ke.prototype.delete=Ph,Ke.prototype.get=Mh,Ke.prototype.has=Dh,Ke.prototype.set=Oh;function Vh(){this.__data__=new Ke,this.size=0}function Fh(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function kh(e){return this.__data__.get(e)}function Ih(e){return this.__data__.has(e)}function fn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Nh="[object AsyncFunction]",Lh="[object Function]",Rh="[object GeneratorFunction]",_h="[object Proxy]";function Ns(e){if(!fn(e))return!1;var t=vt(e);return t==Lh||t==Rh||t==Nh||t==_h}var Br=je["__core-js_shared__"],Ls=function(){var e=/[^.]+$/.exec(Br&&Br.keys&&Br.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jh(e){return!!Ls&&Ls in e}var Bh=Function.prototype,Uh=Bh.toString;function wt(e){if(e!=null){try{return Uh.call(e)}catch{}try{return e+""}catch{}}return""}var $h=/[\\^$.*+?()[\]{}|]/g,Wh=/^\[object .+?Constructor\]$/,zh=Function.prototype,Zh=Object.prototype,Hh=zh.toString,Kh=Zh.hasOwnProperty,Gh=RegExp("^"+Hh.call(Kh).replace($h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Yh(e){if(!fn(e)||jh(e))return!1;var t=Ns(e)?Gh:Wh;return t.test(wt(e))}function Xh(e,t){return e==null?void 0:e[t]}function Tt(e,t){var n=Xh(e,t);return Yh(n)?n:void 0}var hn=Tt(je,"Map"),pn=Tt(Object,"create");function qh(){this.__data__=pn?pn(null):{},this.size=0}function Qh(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Jh="__lodash_hash_undefined__",ep=Object.prototype,tp=ep.hasOwnProperty;function np(e){var t=this.__data__;if(pn){var n=t[e];return n===Jh?void 0:n}return tp.call(t,e)?t[e]:void 0}var rp=Object.prototype,op=rp.hasOwnProperty;function ip(e){var t=this.__data__;return pn?t[e]!==void 0:op.call(t,e)}var sp="__lodash_hash_undefined__";function ap(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=pn&&t===void 0?sp:t,this}function Et(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])}}Et.prototype.clear=qh,Et.prototype.delete=Qh,Et.prototype.get=np,Et.prototype.has=ip,Et.prototype.set=ap;function cp(){this.size=0,this.__data__={hash:new Et,map:new(hn||Ke),string:new Et}}function lp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Wn(e,t){var n=e.__data__;return lp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function up(e){var t=Wn(this,e).delete(e);return this.size-=t?1:0,t}function dp(e){return Wn(this,e).get(e)}function fp(e){return Wn(this,e).has(e)}function hp(e,t){var n=Wn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function rt(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])}}rt.prototype.clear=cp,rt.prototype.delete=up,rt.prototype.get=dp,rt.prototype.has=fp,rt.prototype.set=hp;var pp=200;function mp(e,t){var n=this.__data__;if(n instanceof Ke){var r=n.__data__;if(!hn||r.length<pp-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new rt(r)}return n.set(e,t),this.size=n.size,this}function jt(e){var t=this.__data__=new Ke(e);this.size=t.size}jt.prototype.clear=Vh,jt.prototype.delete=Fh,jt.prototype.get=kh,jt.prototype.has=Ih,jt.prototype.set=mp;function gp(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Rs=function(){try{var e=Tt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function _s(e,t,n){t=="__proto__"&&Rs?Rs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var yp=Object.prototype,vp=yp.hasOwnProperty;function js(e,t,n){var r=e[t];(!(vp.call(e,t)&&Is(r,n))||n===void 0&&!(t in e))&&_s(e,t,n)}function zn(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?_s(n,a,c):js(n,a,c)}return n}function bp(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var wp="[object Arguments]";function Bs(e){return bt(e)&&vt(e)==wp}var Us=Object.prototype,Tp=Us.hasOwnProperty,Ep=Us.propertyIsEnumerable,xp=Bs(function(){return arguments}())?Bs:function(e){return bt(e)&&Tp.call(e,"callee")&&!Ep.call(e,"callee")},mn=Array.isArray;function Sp(){return!1}var $s=typeof K=="object"&&K&&!K.nodeType&&K,Ws=$s&&typeof module=="object"&&module&&!module.nodeType&&module,Ap=Ws&&Ws.exports===$s,zs=Ap?je.Buffer:void 0,Cp=zs?zs.isBuffer:void 0,Zs=Cp||Sp,Pp=9007199254740991,Mp=/^(?:0|[1-9]\d*)$/;function Dp(e,t){var n=typeof e;return t=t??Pp,!!t&&(n=="number"||n!="symbol"&&Mp.test(e))&&e>-1&&e%1==0&&e<t}var Op=9007199254740991;function Hs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Op}var Vp="[object Arguments]",Fp="[object Array]",kp="[object Boolean]",Ip="[object Date]",Np="[object Error]",Lp="[object Function]",Rp="[object Map]",_p="[object Number]",jp="[object Object]",Bp="[object RegExp]",Up="[object Set]",$p="[object String]",Wp="[object WeakMap]",zp="[object ArrayBuffer]",Zp="[object DataView]",Hp="[object Float32Array]",Kp="[object Float64Array]",Gp="[object Int8Array]",Yp="[object Int16Array]",Xp="[object Int32Array]",qp="[object Uint8Array]",Qp="[object Uint8ClampedArray]",Jp="[object Uint16Array]",em="[object Uint32Array]",q={};q[Hp]=q[Kp]=q[Gp]=q[Yp]=q[Xp]=q[qp]=q[Qp]=q[Jp]=q[em]=!0,q[Vp]=q[Fp]=q[zp]=q[kp]=q[Zp]=q[Ip]=q[Np]=q[Lp]=q[Rp]=q[_p]=q[jp]=q[Bp]=q[Up]=q[$p]=q[Wp]=!1;function tm(e){return bt(e)&&Hs(e.length)&&!!q[vt(e)]}function Ur(e){return function(t){return e(t)}}var Ks=typeof K=="object"&&K&&!K.nodeType&&K,gn=Ks&&typeof module=="object"&&module&&!module.nodeType&&module,nm=gn&&gn.exports===Ks,$r=nm&&Ms.process,Bt=function(){try{var e=gn&&gn.require&&gn.require("util").types;return e||$r&&$r.binding&&$r.binding("util")}catch{}}(),Gs=Bt&&Bt.isTypedArray,rm=Gs?Ur(Gs):tm,om=Object.prototype,im=om.hasOwnProperty;function Ys(e,t){var n=mn(e),r=!n&&xp(e),o=!n&&!r&&Zs(e),i=!n&&!r&&!o&&rm(e),s=n||r||o||i,a=s?bp(e.length,String):[],c=a.length;for(var l in e)(t||im.call(e,l))&&!(s&&(l=="length"||o&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Dp(l,c)))&&a.push(l);return a}var sm=Object.prototype;function Wr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||sm;return e===n}var am=Vs(Object.keys,Object),cm=Object.prototype,lm=cm.hasOwnProperty;function um(e){if(!Wr(e))return am(e);var t=[];for(var n in Object(e))lm.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xs(e){return e!=null&&Hs(e.length)&&!Ns(e)}function zr(e){return Xs(e)?Ys(e):um(e)}function dm(e,t){return e&&zn(t,zr(t),e)}function fm(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var hm=Object.prototype,pm=hm.hasOwnProperty;function mm(e){if(!fn(e))return fm(e);var t=Wr(e),n=[];for(var r in e)r=="constructor"&&(t||!pm.call(e,r))||n.push(r);return n}function Zr(e){return Xs(e)?Ys(e,!0):mm(e)}function gm(e,t){return e&&zn(t,Zr(t),e)}var qs=typeof K=="object"&&K&&!K.nodeType&&K,Qs=qs&&typeof module=="object"&&module&&!module.nodeType&&module,ym=Qs&&Qs.exports===qs,Js=ym?je.Buffer:void 0,ea=Js?Js.allocUnsafe:void 0;function vm(e,t){if(t)return e.slice();var n=e.length,r=ea?ea(n):new e.constructor(n);return e.copy(r),r}function ta(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function bm(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 na(){return[]}var wm=Object.prototype,Tm=wm.propertyIsEnumerable,ra=Object.getOwnPropertySymbols,Hr=ra?function(e){return e==null?[]:(e=Object(e),bm(ra(e),function(t){return Tm.call(e,t)}))}:na;function Em(e,t){return zn(e,Hr(e),t)}function oa(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var xm=Object.getOwnPropertySymbols,ia=xm?function(e){for(var t=[];e;)oa(t,Hr(e)),e=jr(e);return t}:na;function Sm(e,t){return zn(e,ia(e),t)}function sa(e,t,n){var r=t(e);return mn(e)?r:oa(r,n(e))}function Am(e){return sa(e,zr,Hr)}function Cm(e){return sa(e,Zr,ia)}var Kr=Tt(je,"DataView"),Gr=Tt(je,"Promise"),Yr=Tt(je,"Set"),Xr=Tt(je,"WeakMap"),aa="[object Map]",Pm="[object Object]",ca="[object Promise]",la="[object Set]",ua="[object WeakMap]",da="[object DataView]",Mm=wt(Kr),Dm=wt(hn),Om=wt(Gr),Vm=wt(Yr),Fm=wt(Xr),Ge=vt;(Kr&&Ge(new Kr(new ArrayBuffer(1)))!=da||hn&&Ge(new hn)!=aa||Gr&&Ge(Gr.resolve())!=ca||Yr&&Ge(new Yr)!=la||Xr&&Ge(new Xr)!=ua)&&(Ge=function(e){var t=vt(e),n=t==Pm?e.constructor:void 0,r=n?wt(n):"";if(r)switch(r){case Mm:return da;case Dm:return aa;case Om:return ca;case Vm:return la;case Fm:return ua}return t});var km=Object.prototype,Im=km.hasOwnProperty;function Nm(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Im.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var fa=je.Uint8Array;function qr(e){var t=new e.constructor(e.byteLength);return new fa(t).set(new fa(e)),t}function Lm(e,t){var n=t?qr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Rm=/\w*$/;function _m(e){var t=new e.constructor(e.source,Rm.exec(e));return t.lastIndex=e.lastIndex,t}var ha=nt?nt.prototype:void 0,pa=ha?ha.valueOf:void 0;function jm(e){return pa?Object(pa.call(e)):{}}function Bm(e,t){var n=t?qr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Um="[object Boolean]",$m="[object Date]",Wm="[object Map]",zm="[object Number]",Zm="[object RegExp]",Hm="[object Set]",Km="[object String]",Gm="[object Symbol]",Ym="[object ArrayBuffer]",Xm="[object DataView]",qm="[object Float32Array]",Qm="[object Float64Array]",Jm="[object Int8Array]",eg="[object Int16Array]",tg="[object Int32Array]",ng="[object Uint8Array]",rg="[object Uint8ClampedArray]",og="[object Uint16Array]",ig="[object Uint32Array]";function sg(e,t,n){var r=e.constructor;switch(t){case Ym:return qr(e);case Um:case $m:return new r(+e);case Xm:return Lm(e,n);case qm:case Qm:case Jm:case eg:case tg:case ng:case rg:case og:case ig:return Bm(e,n);case Wm:return new r;case zm:case Km:return new r(e);case Zm:return _m(e);case Hm:return new r;case Gm:return jm(e)}}var ma=Object.create,ag=function(){function e(){}return function(t){if(!fn(t))return{};if(ma)return ma(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function cg(e){return typeof e.constructor=="function"&&!Wr(e)?ag(jr(e)):{}}var lg="[object Map]";function ug(e){return bt(e)&&Ge(e)==lg}var ga=Bt&&Bt.isMap,dg=ga?Ur(ga):ug,fg="[object Set]";function hg(e){return bt(e)&&Ge(e)==fg}var ya=Bt&&Bt.isSet,pg=ya?Ur(ya):hg,mg=1,gg=2,yg=4,va="[object Arguments]",vg="[object Array]",bg="[object Boolean]",wg="[object Date]",Tg="[object Error]",ba="[object Function]",Eg="[object GeneratorFunction]",xg="[object Map]",Sg="[object Number]",wa="[object Object]",Ag="[object RegExp]",Cg="[object Set]",Pg="[object String]",Mg="[object Symbol]",Dg="[object WeakMap]",Og="[object ArrayBuffer]",Vg="[object DataView]",Fg="[object Float32Array]",kg="[object Float64Array]",Ig="[object Int8Array]",Ng="[object Int16Array]",Lg="[object Int32Array]",Rg="[object Uint8Array]",_g="[object Uint8ClampedArray]",jg="[object Uint16Array]",Bg="[object Uint32Array]",X={};X[va]=X[vg]=X[Og]=X[Vg]=X[bg]=X[wg]=X[Fg]=X[kg]=X[Ig]=X[Ng]=X[Lg]=X[xg]=X[Sg]=X[wa]=X[Ag]=X[Cg]=X[Pg]=X[Mg]=X[Rg]=X[_g]=X[jg]=X[Bg]=!0,X[Tg]=X[ba]=X[Dg]=!1;function yn(e,t,n,r,o,i){var s,a=t&mg,c=t&gg,l=t&yg;if(s!==void 0)return s;if(!fn(e))return e;var u=mn(e);if(u){if(s=Nm(e),!a)return ta(e,s)}else{var d=Ge(e),h=d==ba||d==Eg;if(Zs(e))return vm(e,a);if(d==wa||d==va||h&&!o){if(s=c||h?{}:cg(e),!a)return c?Sm(e,gm(s,e)):Em(e,dm(s,e))}else{if(!X[d])return o?e:{};s=sg(e,d,a)}}i||(i=new jt);var p=i.get(e);if(p)return p;i.set(e,s),pg(e)?e.forEach(function(g){s.add(yn(g,t,n,g,e,i))}):dg(e)&&e.forEach(function(g,v){s.set(v,yn(g,t,n,v,e,i))});var y=l?c?Cm:Am:c?Zr:zr,m=u?void 0:y(e);return gp(m||e,function(g,v){m&&(v=g,g=e[v]),js(s,v,yn(g,t,n,v,e,i))}),s}var Ug=1,$g=4;function vn(e){return yn(e,Ug|$g)}function Ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qr,Ea;function Wg(){if(Ea)return Qr;Ea=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,d;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(d=g[l],!(d==="_owner"&&i.$$typeof)&&!o(i[d],s[d]))return!1;return!0}return i!==i&&s!==s}return Qr=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}},Qr}var zg=Wg();const ot=Ta(zg);var Zg=z.env.NODE_ENV==="production";function ae(e,t){if(!Zg){var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var Hg=4;function xa(e){return yn(e,Hg)}function Sa(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 Kg="[object Symbol]";function Jr(e){return typeof e=="symbol"||bt(e)&&vt(e)==Kg}var Gg="Expected a function";function eo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Gg);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(eo.Cache||rt),n}eo.Cache=rt;var Yg=500;function Xg(e){var t=eo(e,function(r){return n.size===Yg&&n.clear(),r}),n=t.cache;return t}var qg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qg=/\\(\\)?/g,Jg=Xg(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(qg,function(n,r,o,i){t.push(o?i.replace(Qg,"$1"):r||n)}),t});function e0(e){if(typeof e=="string"||Jr(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Aa=nt?nt.prototype:void 0,Ca=Aa?Aa.toString:void 0;function Pa(e){if(typeof e=="string")return e;if(mn(e))return Sa(e,Pa)+"";if(Jr(e))return Ca?Ca.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function t0(e){return e==null?"":Pa(e)}function Ma(e){return mn(e)?Sa(e,e0):Jr(e)?[e]:ta(Jg(t0(e)))}var Zn={exports:{}},Z={};/** @license React v16.13.1
|
|
73
|
+
`;function Ss({element:e,backgroundColor:t="gray",fillColor:n="black"}){return v.jsx("span",{className:Xf,"data-testid":"icon-background","data-background-color":t,"data-fill-color":n,style:{"--background":t,"--fill":n},children:T.cloneElement(e,{className:qf,"aria-hidden":"true","data-testid":"icon"})})}function Qf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var As={exports:{}},ce=As.exports={},Re,_e;function Lr(){throw new Error("setTimeout has not been defined")}function Rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Re=setTimeout:Re=Lr}catch{Re=Lr}try{typeof clearTimeout=="function"?_e=clearTimeout:_e=Rr}catch{_e=Rr}})();function Cs(e){if(Re===setTimeout)return setTimeout(e,0);if((Re===Lr||!Re)&&setTimeout)return Re=setTimeout,setTimeout(e,0);try{return Re(e,0)}catch{try{return Re.call(null,e,0)}catch{return Re.call(this,e,0)}}}function Jf(e){if(_e===clearTimeout)return clearTimeout(e);if((_e===Rr||!_e)&&clearTimeout)return _e=clearTimeout,clearTimeout(e);try{return _e(e)}catch{try{return _e.call(null,e)}catch{return _e.call(this,e)}}}var Ze=[],_t=!1,yt,jn=-1;function eh(){!_t||!yt||(_t=!1,yt.length?Ze=yt.concat(Ze):jn=-1,Ze.length&&Ps())}function Ps(){if(!_t){var e=Cs(eh);_t=!0;for(var t=Ze.length;t;){for(yt=Ze,Ze=[];++jn<t;)yt&&yt[jn].run();jn=-1,t=Ze.length}yt=null,_t=!1,Jf(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];Ze.push(new Ms(e,t)),Ze.length===1&&!_t&&Cs(Ps)};function Ms(e,t){this.fun=e,this.array=t}Ms.prototype.run=function(){this.fun.apply(null,this.array)},ce.title="browser",ce.browser=!0,ce.env={},ce.argv=[],ce.version="",ce.versions={};function He(){}ce.on=He,ce.addListener=He,ce.once=He,ce.off=He,ce.removeListener=He,ce.removeAllListeners=He,ce.emit=He,ce.prependListener=He,ce.prependOnceListener=He,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 th=As.exports;const z=Qf(th);var nh=function(t){return rh(t)&&!oh(t)};function rh(e){return!!e&&typeof e=="object"}function oh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ah(e)}var ih=typeof Symbol=="function"&&Symbol.for,sh=ih?Symbol.for("react.element"):60103;function ah(e){return e.$$typeof===sh}function ch(e){return Array.isArray(e)?[]:{}}function Bn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?un(ch(e),e,t):e}function lh(e,t,n){return e.concat(t).map(function(r){return Bn(r,n)})}function uh(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=Bn(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=Bn(t[o],n):r[o]=un(e[o],t[o],n)}),r}function un(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||lh,n.isMergeableObject=n.isMergeableObject||nh;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):uh(e,t,n):Bn(t,n)}un.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return un(r,o,n)},{})};var _r=un;const Un=globalThis||void 0||self;var Ds=typeof Un=="object"&&Un&&Un.Object===Object&&Un,dh=typeof self=="object"&&self&&self.Object===Object&&self,je=Ds||dh||Function("return this")(),rt=je.Symbol,Os=Object.prototype,fh=Os.hasOwnProperty,hh=Os.toString,dn=rt?rt.toStringTag:void 0;function ph(e){var t=fh.call(e,dn),n=e[dn];try{e[dn]=void 0;var r=!0}catch{}var o=hh.call(e);return r&&(t?e[dn]=n:delete e[dn]),o}var mh=Object.prototype,gh=mh.toString;function yh(e){return gh.call(e)}var vh="[object Null]",bh="[object Undefined]",Vs=rt?rt.toStringTag:void 0;function vt(e){return e==null?e===void 0?bh:vh:Vs&&Vs in Object(e)?ph(e):yh(e)}function Fs(e,t){return function(n){return e(t(n))}}var jr=Fs(Object.getPrototypeOf,Object);function bt(e){return e!=null&&typeof e=="object"}var wh="[object Object]",Eh=Function.prototype,Th=Object.prototype,ks=Eh.toString,xh=Th.hasOwnProperty,Sh=ks.call(Object);function Is(e){if(!bt(e)||vt(e)!=wh)return!1;var t=jr(e);if(t===null)return!0;var n=xh.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ks.call(n)==Sh}function Ah(){this.__data__=[],this.size=0}function Ns(e,t){return e===t||e!==e&&t!==t}function $n(e,t){for(var n=e.length;n--;)if(Ns(e[n][0],t))return n;return-1}var Ch=Array.prototype,Ph=Ch.splice;function Mh(e){var t=this.__data__,n=$n(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ph.call(t,n,1),--this.size,!0}function Dh(e){var t=this.__data__,n=$n(t,e);return n<0?void 0:t[n][1]}function Oh(e){return $n(this.__data__,e)>-1}function Vh(e,t){var n=this.__data__,r=$n(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ke(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])}}Ke.prototype.clear=Ah,Ke.prototype.delete=Mh,Ke.prototype.get=Dh,Ke.prototype.has=Oh,Ke.prototype.set=Vh;function Fh(){this.__data__=new Ke,this.size=0}function kh(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ih(e){return this.__data__.get(e)}function Nh(e){return this.__data__.has(e)}function fn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Lh="[object AsyncFunction]",Rh="[object Function]",_h="[object GeneratorFunction]",jh="[object Proxy]";function Ls(e){if(!fn(e))return!1;var t=vt(e);return t==Rh||t==_h||t==Lh||t==jh}var Br=je["__core-js_shared__"],Rs=function(){var e=/[^.]+$/.exec(Br&&Br.keys&&Br.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Bh(e){return!!Rs&&Rs in e}var Uh=Function.prototype,$h=Uh.toString;function wt(e){if(e!=null){try{return $h.call(e)}catch{}try{return e+""}catch{}}return""}var Wh=/[\\^$.*+?()[\]{}|]/g,zh=/^\[object .+?Constructor\]$/,Zh=Function.prototype,Hh=Object.prototype,Kh=Zh.toString,Gh=Hh.hasOwnProperty,Yh=RegExp("^"+Kh.call(Gh).replace(Wh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xh(e){if(!fn(e)||Bh(e))return!1;var t=Ls(e)?Yh:zh;return t.test(wt(e))}function qh(e,t){return e?.[t]}function Et(e,t){var n=qh(e,t);return Xh(n)?n:void 0}var hn=Et(je,"Map"),pn=Et(Object,"create");function Qh(){this.__data__=pn?pn(null):{},this.size=0}function Jh(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ep="__lodash_hash_undefined__",tp=Object.prototype,np=tp.hasOwnProperty;function rp(e){var t=this.__data__;if(pn){var n=t[e];return n===ep?void 0:n}return np.call(t,e)?t[e]:void 0}var op=Object.prototype,ip=op.hasOwnProperty;function sp(e){var t=this.__data__;return pn?t[e]!==void 0:ip.call(t,e)}var ap="__lodash_hash_undefined__";function cp(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=pn&&t===void 0?ap:t,this}function Tt(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])}}Tt.prototype.clear=Qh,Tt.prototype.delete=Jh,Tt.prototype.get=rp,Tt.prototype.has=sp,Tt.prototype.set=cp;function lp(){this.size=0,this.__data__={hash:new Tt,map:new(hn||Ke),string:new Tt}}function up(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Wn(e,t){var n=e.__data__;return up(t)?n[typeof t=="string"?"string":"hash"]:n.map}function dp(e){var t=Wn(this,e).delete(e);return this.size-=t?1:0,t}function fp(e){return Wn(this,e).get(e)}function hp(e){return Wn(this,e).has(e)}function pp(e,t){var n=Wn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ot(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])}}ot.prototype.clear=lp,ot.prototype.delete=dp,ot.prototype.get=fp,ot.prototype.has=hp,ot.prototype.set=pp;var mp=200;function gp(e,t){var n=this.__data__;if(n instanceof Ke){var r=n.__data__;if(!hn||r.length<mp-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ot(r)}return n.set(e,t),this.size=n.size,this}function jt(e){var t=this.__data__=new Ke(e);this.size=t.size}jt.prototype.clear=Fh,jt.prototype.delete=kh,jt.prototype.get=Ih,jt.prototype.has=Nh,jt.prototype.set=gp;function yp(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var _s=function(){try{var e=Et(Object,"defineProperty");return e({},"",{}),e}catch{}}();function js(e,t,n){t=="__proto__"&&_s?_s(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var vp=Object.prototype,bp=vp.hasOwnProperty;function Bs(e,t,n){var r=e[t];(!(bp.call(e,t)&&Ns(r,n))||n===void 0&&!(t in e))&&js(e,t,n)}function zn(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?js(n,a,c):Bs(n,a,c)}return n}function wp(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Ep="[object Arguments]";function Us(e){return bt(e)&&vt(e)==Ep}var $s=Object.prototype,Tp=$s.hasOwnProperty,xp=$s.propertyIsEnumerable,Sp=Us(function(){return arguments}())?Us:function(e){return bt(e)&&Tp.call(e,"callee")&&!xp.call(e,"callee")},mn=Array.isArray;function Ap(){return!1}var Ws=typeof K=="object"&&K&&!K.nodeType&&K,zs=Ws&&typeof module=="object"&&module&&!module.nodeType&&module,Cp=zs&&zs.exports===Ws,Zs=Cp?je.Buffer:void 0,Pp=Zs?Zs.isBuffer:void 0,Hs=Pp||Ap,Mp=9007199254740991,Dp=/^(?:0|[1-9]\d*)$/;function Op(e,t){var n=typeof e;return t=t??Mp,!!t&&(n=="number"||n!="symbol"&&Dp.test(e))&&e>-1&&e%1==0&&e<t}var Vp=9007199254740991;function Ks(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Vp}var Fp="[object Arguments]",kp="[object Array]",Ip="[object Boolean]",Np="[object Date]",Lp="[object Error]",Rp="[object Function]",_p="[object Map]",jp="[object Number]",Bp="[object Object]",Up="[object RegExp]",$p="[object Set]",Wp="[object String]",zp="[object WeakMap]",Zp="[object ArrayBuffer]",Hp="[object DataView]",Kp="[object Float32Array]",Gp="[object Float64Array]",Yp="[object Int8Array]",Xp="[object Int16Array]",qp="[object Int32Array]",Qp="[object Uint8Array]",Jp="[object Uint8ClampedArray]",em="[object Uint16Array]",tm="[object Uint32Array]",X={};X[Kp]=X[Gp]=X[Yp]=X[Xp]=X[qp]=X[Qp]=X[Jp]=X[em]=X[tm]=!0,X[Fp]=X[kp]=X[Zp]=X[Ip]=X[Hp]=X[Np]=X[Lp]=X[Rp]=X[_p]=X[jp]=X[Bp]=X[Up]=X[$p]=X[Wp]=X[zp]=!1;function nm(e){return bt(e)&&Ks(e.length)&&!!X[vt(e)]}function Ur(e){return function(t){return e(t)}}var Gs=typeof K=="object"&&K&&!K.nodeType&&K,gn=Gs&&typeof module=="object"&&module&&!module.nodeType&&module,rm=gn&&gn.exports===Gs,$r=rm&&Ds.process,Bt=function(){try{var e=gn&&gn.require&&gn.require("util").types;return e||$r&&$r.binding&&$r.binding("util")}catch{}}(),Ys=Bt&&Bt.isTypedArray,om=Ys?Ur(Ys):nm,im=Object.prototype,sm=im.hasOwnProperty;function Xs(e,t){var n=mn(e),r=!n&&Sp(e),o=!n&&!r&&Hs(e),i=!n&&!r&&!o&&om(e),s=n||r||o||i,a=s?wp(e.length,String):[],c=a.length;for(var l in e)(t||sm.call(e,l))&&!(s&&(l=="length"||o&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Op(l,c)))&&a.push(l);return a}var am=Object.prototype;function Wr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||am;return e===n}var cm=Fs(Object.keys,Object),lm=Object.prototype,um=lm.hasOwnProperty;function dm(e){if(!Wr(e))return cm(e);var t=[];for(var n in Object(e))um.call(e,n)&&n!="constructor"&&t.push(n);return t}function qs(e){return e!=null&&Ks(e.length)&&!Ls(e)}function zr(e){return qs(e)?Xs(e):dm(e)}function fm(e,t){return e&&zn(t,zr(t),e)}function hm(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var pm=Object.prototype,mm=pm.hasOwnProperty;function gm(e){if(!fn(e))return hm(e);var t=Wr(e),n=[];for(var r in e)r=="constructor"&&(t||!mm.call(e,r))||n.push(r);return n}function Zr(e){return qs(e)?Xs(e,!0):gm(e)}function ym(e,t){return e&&zn(t,Zr(t),e)}var Qs=typeof K=="object"&&K&&!K.nodeType&&K,Js=Qs&&typeof module=="object"&&module&&!module.nodeType&&module,vm=Js&&Js.exports===Qs,ea=vm?je.Buffer:void 0,ta=ea?ea.allocUnsafe:void 0;function bm(e,t){if(t)return e.slice();var n=e.length,r=ta?ta(n):new e.constructor(n);return e.copy(r),r}function na(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function wm(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 ra(){return[]}var Em=Object.prototype,Tm=Em.propertyIsEnumerable,oa=Object.getOwnPropertySymbols,Hr=oa?function(e){return e==null?[]:(e=Object(e),wm(oa(e),function(t){return Tm.call(e,t)}))}:ra;function xm(e,t){return zn(e,Hr(e),t)}function ia(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Sm=Object.getOwnPropertySymbols,sa=Sm?function(e){for(var t=[];e;)ia(t,Hr(e)),e=jr(e);return t}:ra;function Am(e,t){return zn(e,sa(e),t)}function aa(e,t,n){var r=t(e);return mn(e)?r:ia(r,n(e))}function Cm(e){return aa(e,zr,Hr)}function Pm(e){return aa(e,Zr,sa)}var Kr=Et(je,"DataView"),Gr=Et(je,"Promise"),Yr=Et(je,"Set"),Xr=Et(je,"WeakMap"),ca="[object Map]",Mm="[object Object]",la="[object Promise]",ua="[object Set]",da="[object WeakMap]",fa="[object DataView]",Dm=wt(Kr),Om=wt(hn),Vm=wt(Gr),Fm=wt(Yr),km=wt(Xr),Ge=vt;(Kr&&Ge(new Kr(new ArrayBuffer(1)))!=fa||hn&&Ge(new hn)!=ca||Gr&&Ge(Gr.resolve())!=la||Yr&&Ge(new Yr)!=ua||Xr&&Ge(new Xr)!=da)&&(Ge=function(e){var t=vt(e),n=t==Mm?e.constructor:void 0,r=n?wt(n):"";if(r)switch(r){case Dm:return fa;case Om:return ca;case Vm:return la;case Fm:return ua;case km:return da}return t});var Im=Object.prototype,Nm=Im.hasOwnProperty;function Lm(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Nm.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ha=je.Uint8Array;function qr(e){var t=new e.constructor(e.byteLength);return new ha(t).set(new ha(e)),t}function Rm(e,t){var n=t?qr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var _m=/\w*$/;function jm(e){var t=new e.constructor(e.source,_m.exec(e));return t.lastIndex=e.lastIndex,t}var pa=rt?rt.prototype:void 0,ma=pa?pa.valueOf:void 0;function Bm(e){return ma?Object(ma.call(e)):{}}function Um(e,t){var n=t?qr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var $m="[object Boolean]",Wm="[object Date]",zm="[object Map]",Zm="[object Number]",Hm="[object RegExp]",Km="[object Set]",Gm="[object String]",Ym="[object Symbol]",Xm="[object ArrayBuffer]",qm="[object DataView]",Qm="[object Float32Array]",Jm="[object Float64Array]",eg="[object Int8Array]",tg="[object Int16Array]",ng="[object Int32Array]",rg="[object Uint8Array]",og="[object Uint8ClampedArray]",ig="[object Uint16Array]",sg="[object Uint32Array]";function ag(e,t,n){var r=e.constructor;switch(t){case Xm:return qr(e);case $m:case Wm:return new r(+e);case qm:return Rm(e,n);case Qm:case Jm:case eg:case tg:case ng:case rg:case og:case ig:case sg:return Um(e,n);case zm:return new r;case Zm:case Gm:return new r(e);case Hm:return jm(e);case Km:return new r;case Ym:return Bm(e)}}var ga=Object.create,cg=function(){function e(){}return function(t){if(!fn(t))return{};if(ga)return ga(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function lg(e){return typeof e.constructor=="function"&&!Wr(e)?cg(jr(e)):{}}var ug="[object Map]";function dg(e){return bt(e)&&Ge(e)==ug}var ya=Bt&&Bt.isMap,fg=ya?Ur(ya):dg,hg="[object Set]";function pg(e){return bt(e)&&Ge(e)==hg}var va=Bt&&Bt.isSet,mg=va?Ur(va):pg,gg=1,yg=2,vg=4,ba="[object Arguments]",bg="[object Array]",wg="[object Boolean]",Eg="[object Date]",Tg="[object Error]",wa="[object Function]",xg="[object GeneratorFunction]",Sg="[object Map]",Ag="[object Number]",Ea="[object Object]",Cg="[object RegExp]",Pg="[object Set]",Mg="[object String]",Dg="[object Symbol]",Og="[object WeakMap]",Vg="[object ArrayBuffer]",Fg="[object DataView]",kg="[object Float32Array]",Ig="[object Float64Array]",Ng="[object Int8Array]",Lg="[object Int16Array]",Rg="[object Int32Array]",_g="[object Uint8Array]",jg="[object Uint8ClampedArray]",Bg="[object Uint16Array]",Ug="[object Uint32Array]",Y={};Y[ba]=Y[bg]=Y[Vg]=Y[Fg]=Y[wg]=Y[Eg]=Y[kg]=Y[Ig]=Y[Ng]=Y[Lg]=Y[Rg]=Y[Sg]=Y[Ag]=Y[Ea]=Y[Cg]=Y[Pg]=Y[Mg]=Y[Dg]=Y[_g]=Y[jg]=Y[Bg]=Y[Ug]=!0,Y[Tg]=Y[wa]=Y[Og]=!1;function yn(e,t,n,r,o,i){var s,a=t&gg,c=t&yg,l=t&vg;if(s!==void 0)return s;if(!fn(e))return e;var u=mn(e);if(u){if(s=Lm(e),!a)return na(e,s)}else{var f=Ge(e),h=f==wa||f==xg;if(Hs(e))return bm(e,a);if(f==Ea||f==ba||h&&!o){if(s=c||h?{}:lg(e),!a)return c?Am(e,ym(s,e)):xm(e,fm(s,e))}else{if(!Y[f])return o?e:{};s=ag(e,f,a)}}i||(i=new jt);var p=i.get(e);if(p)return p;i.set(e,s),mg(e)?e.forEach(function(g){s.add(yn(g,t,n,g,e,i))}):fg(e)&&e.forEach(function(g,b){s.set(b,yn(g,t,n,b,e,i))});var y=l?c?Pm:Cm:c?Zr:zr,m=u?void 0:y(e);return yp(m||e,function(g,b){m&&(b=g,g=e[b]),Bs(s,b,yn(g,t,n,b,e,i))}),s}var $g=1,Wg=4;function vn(e){return yn(e,$g|Wg)}function Ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qr,xa;function zg(){if(xa)return Qr;xa=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 Qr=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}},Qr}var Zg=zg();const it=Ta(Zg);var Hg=z.env.NODE_ENV==="production";function se(e,t){if(!Hg){var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var Kg=4;function Sa(e){return yn(e,Kg)}function Aa(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 Gg="[object Symbol]";function Jr(e){return typeof e=="symbol"||bt(e)&&vt(e)==Gg}var Yg="Expected a function";function eo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Yg);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(eo.Cache||ot),n}eo.Cache=ot;var Xg=500;function qg(e){var t=eo(e,function(r){return n.size===Xg&&n.clear(),r}),n=t.cache;return t}var Qg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jg=/\\(\\)?/g,e0=qg(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Qg,function(n,r,o,i){t.push(o?i.replace(Jg,"$1"):r||n)}),t});function t0(e){if(typeof e=="string"||Jr(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ca=rt?rt.prototype:void 0,Pa=Ca?Ca.toString:void 0;function Ma(e){if(typeof e=="string")return e;if(mn(e))return Aa(e,Ma)+"";if(Jr(e))return Pa?Pa.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function n0(e){return e==null?"":Ma(e)}function Da(e){return mn(e)?Aa(e,t0):Jr(e)?[e]:na(e0(n0(e)))}var Zn={exports:{}},Z={};/** @license React v16.13.1
|
|
74
74
|
* react-is.production.min.js
|
|
75
75
|
*
|
|
76
76
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
77
77
|
*
|
|
78
78
|
* This source code is licensed under the MIT license found in the
|
|
79
79
|
* LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/var Da;function n0(){if(Da)return Z;Da=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,d=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,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function T(w){if(typeof w=="object"&&w!==null){var P=w.$$typeof;switch(P){case t:switch(w=w.type,w){case c:case l:case r:case i:case o:case d:return w;default:switch(w=w&&w.$$typeof,w){case a:case u:case y:case p:case s:return w;default:return P}}case n:return P}}}function C(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=d,Z.isAsyncMode=function(w){return C(w)||T(w)===c},Z.isConcurrentMode=C,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)===d},Z.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===l||w===i||w===o||w===d||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===v||w.$$typeof===x||w.$$typeof===m)},Z.typeOf=T,Z}var H={},Oa;function r0(){return Oa||(Oa=1,z.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,d=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,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function T(I){return typeof I=="string"||typeof I=="function"||I===r||I===l||I===i||I===o||I===d||I===h||typeof I=="object"&&I!==null&&(I.$$typeof===y||I.$$typeof===p||I.$$typeof===s||I.$$typeof===a||I.$$typeof===u||I.$$typeof===g||I.$$typeof===v||I.$$typeof===x||I.$$typeof===m)}function C(I){if(typeof I=="object"&&I!==null){var sn=I.$$typeof;switch(sn){case t:var an=I.type;switch(an){case c:case l:case r:case i:case o:case d:return an;default:var Dr=an&&an.$$typeof;switch(Dr){case a:case u:case y:case p:case s:return Dr;default:return sn}}case n:return sn}}}var w=c,P=l,A=a,M=s,k=t,U=u,oe=r,me=y,ie=p,R=n,Y=i,se=o,$=d,D=!1;function fe(I){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(I)||C(I)===c}function we(I){return C(I)===l}function Pe(I){return C(I)===a}function Ee(I){return C(I)===s}function Q(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function ce(I){return C(I)===u}function Me(I){return C(I)===r}function kt(I){return C(I)===y}function te(I){return C(I)===p}function It(I){return C(I)===n}function Qe(I){return C(I)===i}function Je(I){return C(I)===o}function et(I){return C(I)===d}H.AsyncMode=w,H.ConcurrentMode=P,H.ContextConsumer=A,H.ContextProvider=M,H.Element=k,H.ForwardRef=U,H.Fragment=oe,H.Lazy=me,H.Memo=ie,H.Portal=R,H.Profiler=Y,H.StrictMode=se,H.Suspense=$,H.isAsyncMode=fe,H.isConcurrentMode=we,H.isContextConsumer=Pe,H.isContextProvider=Ee,H.isElement=Q,H.isForwardRef=ce,H.isFragment=Me,H.isLazy=kt,H.isMemo=te,H.isPortal=It,H.isProfiler=Qe,H.isStrictMode=Je,H.isSuspense=et,H.isValidElementType=T,H.typeOf=C}()),H}var Va;function o0(){return Va||(Va=1,z.env.NODE_ENV==="production"?Zn.exports=n0():Zn.exports=r0()),Zn.exports}var to,Fa;function i0(){if(Fa)return to;Fa=1;var e=o0(),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,d=Object.getPrototypeOf,h=Object.prototype;function p(y,m,g){if(typeof m!="string"){if(h){var v=d(m);v&&v!==h&&p(y,v,g)}var x=c(m);l&&(x=x.concat(l(m)));for(var T=s(y),C=s(m),w=0;w<x.length;++w){var P=x[w];if(!n[P]&&!(g&&g[P])&&!(C&&C[P])&&!(T&&T[P])){var A=u(m,P);try{a(y,P,A)}catch{}}}}return y}return to=p,to}var s0=i0();const a0=Ta(s0);function G(){return G=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},G.apply(this,arguments)}function ka(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function it(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 Ia(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Hn=E.createContext(void 0);Hn.displayName="FormikContext";var c0=Hn.Provider,l0=Hn.Consumer;function xt(){var e=E.useContext(Hn);return e||(z.env.NODE_ENV!=="production"?ae(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):ae()),e}var Na=function(t){return Array.isArray(t)&&t.length===0},pe=function(t){return typeof t=="function"},Ut=function(t){return t!==null&&typeof t=="object"},u0=function(t){return String(Math.floor(Number(t)))===t},no=function(t){return Object.prototype.toString.call(t)==="[object String]"},ro=function(t){return E.Children.count(t)===0},oo=function(t){return Ut(t)&&pe(t.then)};function d0(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 J(e,t,n,r){r===void 0&&(r=0);for(var o=Ma(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function Be(e,t,n){for(var r=xa(e),o=r,i=0,s=Ma(t);i<s.length-1;i++){var a=s[i],c=J(e,s.slice(0,i+1));if(c&&(Ut(c)||Array.isArray(c)))o=o[a]=xa(c);else{var l=s[i+1];o=o[a]=u0(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 La(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];Ut(a)?n.get(a)||(n.set(a,!0),r[s]=Array.isArray(a)?[]:{},La(a,t,n,r[s])):r[s]=t}return r}function f0(e,t){switch(t.type){case"SET_VALUES":return G({},e,{values:t.payload});case"SET_TOUCHED":return G({},e,{touched:t.payload});case"SET_ERRORS":return ot(e.errors,t.payload)?e:G({},e,{errors:t.payload});case"SET_STATUS":return G({},e,{status:t.payload});case"SET_ISSUBMITTING":return G({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return G({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return G({},e,{values:Be(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return G({},e,{touched:Be(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return G({},e,{errors:Be(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return G({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return G({},e,{touched:La(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return G({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return G({},e,{isSubmitting:!1});default:return e}}var St={},Kn={};function h0(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,d=it(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=G({validateOnChange:n,validateOnBlur:o,validateOnMount:s,onSubmit:u},d),p=E.useRef(h.initialValues),y=E.useRef(h.initialErrors||St),m=E.useRef(h.initialTouched||Kn),g=E.useRef(h.initialStatus),v=E.useRef(!1),x=E.useRef({});z.env.NODE_ENV!=="production"&&E.useEffect(function(){typeof a>"u"||(z.env.NODE_ENV!=="production"?ae(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):ae())},[]),E.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var T=E.useState(0),C=T[1],w=E.useRef({values:vn(h.initialValues),errors:vn(h.initialErrors)||St,touched:vn(h.initialTouched)||Kn,status:vn(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),P=w.current,A=E.useCallback(function(S){var O=w.current;w.current=f0(O,S),O!==w.current&&C(function(N){return N+1})},[]),M=E.useCallback(function(S,O){return new Promise(function(N,L){var B=h.validate(S,O);B==null?N(St):oo(B)?B.then(function(W){N(W||St)},function(W){z.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",W),L(W)}):N(B)})},[h.validate]),k=E.useCallback(function(S,O){var N=h.validationSchema,L=pe(N)?N(O):N,B=O&&L.validateAt?L.validateAt(O,S):g0(S,L);return new Promise(function(W,ye){B.then(function(){W(St)},function(We){We.name==="ValidationError"?W(m0(We)):(z.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",We),ye(We))})})},[h.validationSchema]),U=E.useCallback(function(S,O){return new Promise(function(N){return N(x.current[S].validate(O))})},[]),oe=E.useCallback(function(S){var O=Object.keys(x.current).filter(function(L){return pe(x.current[L].validate)}),N=O.length>0?O.map(function(L){return U(L,J(S,L))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(N).then(function(L){return L.reduce(function(B,W,ye){return W==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||W&&(B=Be(B,O[ye],W)),B},{})})},[U]),me=E.useCallback(function(S){return Promise.all([oe(S),h.validationSchema?k(S):{},h.validate?M(S):{}]).then(function(O){var N=O[0],L=O[1],B=O[2],W=_r.all([N,L,B],{arrayMerge:y0});return W})},[h.validate,h.validationSchema,oe,M,k]),ie=De(function(S){return S===void 0&&(S=P.values),A({type:"SET_ISVALIDATING",payload:!0}),me(S).then(function(O){return v.current&&(A({type:"SET_ISVALIDATING",payload:!1}),A({type:"SET_ERRORS",payload:O})),O})});E.useEffect(function(){s&&v.current===!0&&ot(p.current,h.initialValues)&&ie(p.current)},[s,ie]);var R=E.useCallback(function(S){var O=S&&S.values?S.values:p.current,N=S&&S.errors?S.errors:y.current?y.current:h.initialErrors||{},L=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=N,m.current=L,g.current=B;var W=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!S&&!!S.isSubmitting,errors:N,touched:L,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(P.values,sn);oo(ye)?ye.then(W):W()}else W()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);E.useEffect(function(){v.current===!0&&!ot(p.current,h.initialValues)&&l&&(p.current=h.initialValues,R(),s&&ie(p.current))},[l,h.initialValues,R,s,ie]),E.useEffect(function(){l&&v.current===!0&&!ot(y.current,h.initialErrors)&&(y.current=h.initialErrors||St,A({type:"SET_ERRORS",payload:h.initialErrors||St}))},[l,h.initialErrors]),E.useEffect(function(){l&&v.current===!0&&!ot(m.current,h.initialTouched)&&(m.current=h.initialTouched||Kn,A({type:"SET_TOUCHED",payload:h.initialTouched||Kn}))},[l,h.initialTouched]),E.useEffect(function(){l&&v.current===!0&&!ot(g.current,h.initialStatus)&&(g.current=h.initialStatus,A({type:"SET_STATUS",payload:h.initialStatus}))},[l,h.initialStatus,h.initialTouched]);var Y=De(function(S){if(x.current[S]&&pe(x.current[S].validate)){var O=J(P.values,S),N=x.current[S].validate(O);return oo(N)?(A({type:"SET_ISVALIDATING",payload:!0}),N.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:N}}),Promise.resolve(N))}else if(h.validationSchema)return A({type:"SET_ISVALIDATING",payload:!0}),k(P.values,S).then(function(L){return L}).then(function(L){A({type:"SET_FIELD_ERROR",payload:{field:S,value:J(L,S)}}),A({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),se=E.useCallback(function(S,O){var N=O.validate;x.current[S]={validate:N}},[]),$=E.useCallback(function(S){delete x.current[S]},[]),D=De(function(S,O){A({type:"SET_TOUCHED",payload:S});var N=O===void 0?o:O;return N?ie(P.values):Promise.resolve()}),fe=E.useCallback(function(S){A({type:"SET_ERRORS",payload:S})},[]),we=De(function(S,O){var N=pe(S)?S(P.values):S;A({type:"SET_VALUES",payload:N});var L=O===void 0?n:O;return L?ie(N):Promise.resolve()}),Pe=E.useCallback(function(S,O){A({type:"SET_FIELD_ERROR",payload:{field:S,value:O}})},[]),Ee=De(function(S,O,N){A({type:"SET_FIELD_VALUE",payload:{field:S,value:O}});var L=N===void 0?n:N;return L?ie(Be(P.values,S,O)):Promise.resolve()}),Q=E.useCallback(function(S,O){var N=O,L=S,B;if(!no(S)){S.persist&&S.persist();var W=S.target?S.target:S.currentTarget,ye=W.type,We=W.name,ns=W.id,rs=W.value,sx=W.checked,ax=W.outerHTML,hf=W.options,cx=W.multiple;N=O||We||ns,!N&&z.env.NODE_ENV!=="production"&&Ra({htmlContent:ax,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),L=/number|range/.test(ye)?(B=parseFloat(rs),isNaN(B)?"":B):/checkbox/.test(ye)?b0(J(P.values,N),sx,rs):hf&&cx?v0(hf):rs}N&&Ee(N,L)},[Ee,P.values]),ce=De(function(S){if(no(S))return function(O){return Q(O,S)};Q(S)}),Me=De(function(S,O,N){O===void 0&&(O=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:S,value:O}});var L=N===void 0?o:N;return L?ie(P.values):Promise.resolve()}),kt=E.useCallback(function(S,O){S.persist&&S.persist();var N=S.target,L=N.name,B=N.id,W=N.outerHTML,ye=O||L||B;!ye&&z.env.NODE_ENV!=="production"&&Ra({htmlContent:W,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),Me(ye,!0)},[Me]),te=De(function(S){if(no(S))return function(O){return kt(O,S)};kt(S)}),It=E.useCallback(function(S){pe(S)?A({type:"SET_FORMIK_STATE",payload:S}):A({type:"SET_FORMIK_STATE",payload:function(){return S}})},[]),Qe=E.useCallback(function(S){A({type:"SET_STATUS",payload:S})},[]),Je=E.useCallback(function(S){A({type:"SET_ISSUBMITTING",payload:S})},[]),et=De(function(){return A({type:"SUBMIT_ATTEMPT"}),ie().then(function(S){var O=S instanceof Error,N=!O&&Object.keys(S).length===0;if(N){var L;try{if(L=an(),L===void 0)return}catch(B){throw B}return Promise.resolve(L).then(function(B){return v.current&&A({type:"SUBMIT_SUCCESS"}),B}).catch(function(B){if(v.current)throw A({type:"SUBMIT_FAILURE"}),B})}else if(v.current&&(A({type:"SUBMIT_FAILURE"}),O))throw S})}),I=De(function(S){if(S&&S.preventDefault&&pe(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&pe(S.stopPropagation)&&S.stopPropagation(),z.env.NODE_ENV!=="production"&&typeof document<"u"){var O=d0();O!==null&&O instanceof HTMLButtonElement&&(O.attributes&&O.attributes.getNamedItem("type")||(z.env.NODE_ENV!=="production"?ae(!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"`.'):ae()))}et().catch(function(N){console.warn("Warning: An unhandled error was caught from submitForm()",N)})}),sn={resetForm:R,validateForm:ie,validateField:Y,setErrors:fe,setFieldError:Pe,setFieldTouched:Me,setFieldValue:Ee,setStatus:Qe,setSubmitting:Je,setTouched:D,setValues:we,setFormikState:It,submitForm:et},an=De(function(){return u(P.values,sn)}),Dr=De(function(S){S&&S.preventDefault&&pe(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&pe(S.stopPropagation)&&S.stopPropagation(),R()}),tx=E.useCallback(function(S){return{value:J(P.values,S),error:J(P.errors,S),touched:!!J(P.touched,S),initialValue:J(p.current,S),initialTouched:!!J(m.current,S),initialError:J(y.current,S)}},[P.errors,P.touched,P.values]),nx=E.useCallback(function(S){return{setValue:function(N,L){return Ee(S,N,L)},setTouched:function(N,L){return Me(S,N,L)},setError:function(N){return Pe(S,N)}}},[Ee,Me,Pe]),rx=E.useCallback(function(S){var O=Ut(S),N=O?S.name:S,L=J(P.values,N),B={name:N,value:L,onChange:ce,onBlur:te};if(O){var W=S.type,ye=S.value,We=S.as,ns=S.multiple;W==="checkbox"?ye===void 0?B.checked=!!L:(B.checked=!!(Array.isArray(L)&&~L.indexOf(ye)),B.value=ye):W==="radio"?(B.checked=L===ye,B.value=ye):We==="select"&&ns&&(B.value=B.value||[],B.multiple=!0)}return B},[te,ce,P.values]),ts=E.useMemo(function(){return!ot(p.current,P.values)},[p.current,P.values]),ox=E.useMemo(function(){return typeof a<"u"?ts?P.errors&&Object.keys(P.errors).length===0:a!==!1&&pe(a)?a(h):a:P.errors&&Object.keys(P.errors).length===0},[a,ts,P.errors,h]),ix=G({},P,{initialValues:p.current,initialErrors:y.current,initialTouched:m.current,initialStatus:g.current,handleBlur:te,handleChange:ce,handleReset:Dr,handleSubmit:I,resetForm:R,setErrors:fe,setFormikState:It,setFieldTouched:Me,setFieldValue:Ee,setFieldError:Pe,setStatus:Qe,setSubmitting:Je,setTouched:D,setValues:we,submitForm:et,validateForm:ie,validateField:Y,isValid:ox,dirty:ts,unregisterField:$,registerField:se,getFieldProps:rx,getFieldMeta:tx,getFieldHelpers:nx,validateOnBlur:o,validateOnChange:n,validateOnMount:s});return ix}function p0(e){var t=h0(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return E.useImperativeHandle(i,function(){return t}),z.env.NODE_ENV!=="production"&&E.useEffect(function(){e.render&&(z.env.NODE_ENV!=="production"?ae(!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>"):ae())},[]),E.createElement(c0,{value:t},n?E.createElement(n,t):o?o(t):r?pe(r)?r(t):ro(r)?null:E.Children.only(r):null)}function Ra(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+`
|
|
80
|
+
*/var Oa;function r0(){if(Oa)return Z;Oa=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 E(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 E(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)||E(w)===c},Z.isConcurrentMode=P,Z.isContextConsumer=function(w){return E(w)===a},Z.isContextProvider=function(w){return E(w)===s},Z.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Z.isForwardRef=function(w){return E(w)===u},Z.isFragment=function(w){return E(w)===r},Z.isLazy=function(w){return E(w)===y},Z.isMemo=function(w){return E(w)===p},Z.isPortal=function(w){return E(w)===n},Z.isProfiler=function(w){return E(w)===i},Z.isStrictMode=function(w){return E(w)===o},Z.isSuspense=function(w){return E(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=E,Z}var H={},Va;function o0(){return Va||(Va=1,z.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 E(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 sn=k.$$typeof;switch(sn){case t:var an=k.type;switch(an){case c:case l:case r:case i:case o:case f:return an;default:var Dr=an&&an.$$typeof;switch(Dr){case a:case u:case y:case p:case s:return Dr;default:return sn}}case n:return sn}}}var w=c,C=l,A=a,M=s,N=t,j=u,ee=r,Ee=y,ue=p,_=n,te=i,ie=o,$=f,D=!1;function fe(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.")),be(k)||P(k)===c}function be(k){return P(k)===l}function Pe(k){return P(k)===a}function Te(k){return P(k)===s}function q(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function ae(k){return P(k)===u}function Me(k){return P(k)===r}function kt(k){return P(k)===y}function ne(k){return P(k)===p}function It(k){return P(k)===n}function Qe(k){return P(k)===i}function Je(k){return P(k)===o}function et(k){return P(k)===f}H.AsyncMode=w,H.ConcurrentMode=C,H.ContextConsumer=A,H.ContextProvider=M,H.Element=N,H.ForwardRef=j,H.Fragment=ee,H.Lazy=Ee,H.Memo=ue,H.Portal=_,H.Profiler=te,H.StrictMode=ie,H.Suspense=$,H.isAsyncMode=fe,H.isConcurrentMode=be,H.isContextConsumer=Pe,H.isContextProvider=Te,H.isElement=q,H.isForwardRef=ae,H.isFragment=Me,H.isLazy=kt,H.isMemo=ne,H.isPortal=It,H.isProfiler=Qe,H.isStrictMode=Je,H.isSuspense=et,H.isValidElementType=E,H.typeOf=P}()),H}var Fa;function i0(){return Fa||(Fa=1,z.env.NODE_ENV==="production"?Zn.exports=r0():Zn.exports=o0()),Zn.exports}var to,ka;function s0(){if(ka)return to;ka=1;var e=i0(),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 E=s(y),P=s(m),w=0;w<x.length;++w){var C=x[w];if(!n[C]&&!(g&&g[C])&&!(P&&P[C])&&!(E&&E[C])){var A=u(m,C);try{a(y,C,A)}catch{}}}}return y}return to=p,to}var a0=s0();const c0=Ta(a0);function G(){return G=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},G.apply(this,arguments)}function Ia(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function st(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 Na(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Hn=T.createContext(void 0);Hn.displayName="FormikContext";var l0=Hn.Provider,u0=Hn.Consumer;function xt(){var e=T.useContext(Hn);return e||(z.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 La=function(t){return Array.isArray(t)&&t.length===0},pe=function(t){return typeof t=="function"},Ut=function(t){return t!==null&&typeof t=="object"},d0=function(t){return String(Math.floor(Number(t)))===t},no=function(t){return Object.prototype.toString.call(t)==="[object String]"},ro=function(t){return T.Children.count(t)===0},oo=function(t){return Ut(t)&&pe(t.then)};function f0(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=Da(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function Be(e,t,n){for(var r=Sa(e),o=r,i=0,s=Da(t);i<s.length-1;i++){var a=s[i],c=Q(e,s.slice(0,i+1));if(c&&(Ut(c)||Array.isArray(c)))o=o[a]=Sa(c);else{var l=s[i+1];o=o[a]=d0(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 Ra(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];Ut(a)?n.get(a)||(n.set(a,!0),r[s]=Array.isArray(a)?[]:{},Ra(a,t,n,r[s])):r[s]=t}return r}function h0(e,t){switch(t.type){case"SET_VALUES":return G({},e,{values:t.payload});case"SET_TOUCHED":return G({},e,{touched:t.payload});case"SET_ERRORS":return it(e.errors,t.payload)?e:G({},e,{errors:t.payload});case"SET_STATUS":return G({},e,{status:t.payload});case"SET_ISSUBMITTING":return G({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return G({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return G({},e,{values:Be(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return G({},e,{touched:Be(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return G({},e,{errors:Be(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return G({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return G({},e,{touched:Ra(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return G({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return G({},e,{isSubmitting:!1});default:return e}}var St={},Kn={};function p0(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=st(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=G({validateOnChange:n,validateOnBlur:o,validateOnMount:s,onSubmit:u},f),p=T.useRef(h.initialValues),y=T.useRef(h.initialErrors||St),m=T.useRef(h.initialTouched||Kn),g=T.useRef(h.initialStatus),b=T.useRef(!1),x=T.useRef({});z.env.NODE_ENV!=="production"&&T.useEffect(function(){typeof a>"u"||(z.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())},[]),T.useEffect(function(){return b.current=!0,function(){b.current=!1}},[]);var E=T.useState(0),P=E[1],w=T.useRef({values:vn(h.initialValues),errors:vn(h.initialErrors)||St,touched:vn(h.initialTouched)||Kn,status:vn(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),C=w.current,A=T.useCallback(function(S){var O=w.current;w.current=h0(O,S),O!==w.current&&P(function(I){return I+1})},[]),M=T.useCallback(function(S,O){return new Promise(function(I,L){var U=h.validate(S,O);U==null?I(St):oo(U)?U.then(function(W){I(W||St)},function(W){z.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",W),L(W)}):I(U)})},[h.validate]),N=T.useCallback(function(S,O){var I=h.validationSchema,L=pe(I)?I(O):I,U=O&&L.validateAt?L.validateAt(O,S):y0(S,L);return new Promise(function(W,ge){U.then(function(){W(St)},function(We){We.name==="ValidationError"?W(g0(We)):(z.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",We),ge(We))})})},[h.validationSchema]),j=T.useCallback(function(S,O){return new Promise(function(I){return I(x.current[S].validate(O))})},[]),ee=T.useCallback(function(S){var O=Object.keys(x.current).filter(function(L){return pe(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(U,W,ge){return W==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||W&&(U=Be(U,O[ge],W)),U},{})})},[j]),Ee=T.useCallback(function(S){return Promise.all([ee(S),h.validationSchema?N(S):{},h.validate?M(S):{}]).then(function(O){var I=O[0],L=O[1],U=O[2],W=_r.all([I,L,U],{arrayMerge:v0});return W})},[h.validate,h.validationSchema,ee,M,N]),ue=De(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})});T.useEffect(function(){s&&b.current===!0&&it(p.current,h.initialValues)&&ue(p.current)},[s,ue]);var _=T.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||{},U=S&&S.status?S.status:g.current?g.current:h.initialStatus;p.current=O,y.current=I,m.current=L,g.current=U;var W=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!S&&!!S.isSubmitting,errors:I,touched:L,status:U,values:O,isValidating:!!S&&!!S.isValidating,submitCount:S&&S.submitCount&&typeof S.submitCount=="number"?S.submitCount:0}})};if(h.onReset){var ge=h.onReset(C.values,sn);oo(ge)?ge.then(W):W()}else W()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);T.useEffect(function(){b.current===!0&&!it(p.current,h.initialValues)&&l&&(p.current=h.initialValues,_(),s&&ue(p.current))},[l,h.initialValues,_,s,ue]),T.useEffect(function(){l&&b.current===!0&&!it(y.current,h.initialErrors)&&(y.current=h.initialErrors||St,A({type:"SET_ERRORS",payload:h.initialErrors||St}))},[l,h.initialErrors]),T.useEffect(function(){l&&b.current===!0&&!it(m.current,h.initialTouched)&&(m.current=h.initialTouched||Kn,A({type:"SET_TOUCHED",payload:h.initialTouched||Kn}))},[l,h.initialTouched]),T.useEffect(function(){l&&b.current===!0&&!it(g.current,h.initialStatus)&&(g.current=h.initialStatus,A({type:"SET_STATUS",payload:h.initialStatus}))},[l,h.initialStatus,h.initialTouched]);var te=De(function(S){if(x.current[S]&&pe(x.current[S].validate)){var O=Q(C.values,S),I=x.current[S].validate(O);return oo(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=T.useCallback(function(S,O){var I=O.validate;x.current[S]={validate:I}},[]),$=T.useCallback(function(S){delete x.current[S]},[]),D=De(function(S,O){A({type:"SET_TOUCHED",payload:S});var I=O===void 0?o:O;return I?ue(C.values):Promise.resolve()}),fe=T.useCallback(function(S){A({type:"SET_ERRORS",payload:S})},[]),be=De(function(S,O){var I=pe(S)?S(C.values):S;A({type:"SET_VALUES",payload:I});var L=O===void 0?n:O;return L?ue(I):Promise.resolve()}),Pe=T.useCallback(function(S,O){A({type:"SET_FIELD_ERROR",payload:{field:S,value:O}})},[]),Te=De(function(S,O,I){A({type:"SET_FIELD_VALUE",payload:{field:S,value:O}});var L=I===void 0?n:I;return L?ue(Be(C.values,S,O)):Promise.resolve()}),q=T.useCallback(function(S,O){var I=O,L=S,U;if(!no(S)){S.persist&&S.persist();var W=S.target?S.target:S.currentTarget,ge=W.type,We=W.name,rs=W.id,os=W.value,ax=W.checked,cx=W.outerHTML,pf=W.options,lx=W.multiple;I=O||We||rs,!I&&z.env.NODE_ENV!=="production"&&_a({htmlContent:cx,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),L=/number|range/.test(ge)?(U=parseFloat(os),isNaN(U)?"":U):/checkbox/.test(ge)?w0(Q(C.values,I),ax,os):pf&&lx?b0(pf):os}I&&Te(I,L)},[Te,C.values]),ae=De(function(S){if(no(S))return function(O){return q(O,S)};q(S)}),Me=De(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?ue(C.values):Promise.resolve()}),kt=T.useCallback(function(S,O){S.persist&&S.persist();var I=S.target,L=I.name,U=I.id,W=I.outerHTML,ge=O||L||U;!ge&&z.env.NODE_ENV!=="production"&&_a({htmlContent:W,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),Me(ge,!0)},[Me]),ne=De(function(S){if(no(S))return function(O){return kt(O,S)};kt(S)}),It=T.useCallback(function(S){pe(S)?A({type:"SET_FORMIK_STATE",payload:S}):A({type:"SET_FORMIK_STATE",payload:function(){return S}})},[]),Qe=T.useCallback(function(S){A({type:"SET_STATUS",payload:S})},[]),Je=T.useCallback(function(S){A({type:"SET_ISSUBMITTING",payload:S})},[]),et=De(function(){return A({type:"SUBMIT_ATTEMPT"}),ue().then(function(S){var O=S instanceof Error,I=!O&&Object.keys(S).length===0;if(I){var L;try{if(L=an(),L===void 0)return}catch(U){throw U}return Promise.resolve(L).then(function(U){return b.current&&A({type:"SUBMIT_SUCCESS"}),U}).catch(function(U){if(b.current)throw A({type:"SUBMIT_FAILURE"}),U})}else if(b.current&&(A({type:"SUBMIT_FAILURE"}),O))throw S})}),k=De(function(S){if(S&&S.preventDefault&&pe(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&pe(S.stopPropagation)&&S.stopPropagation(),z.env.NODE_ENV!=="production"&&typeof document<"u"){var O=f0();O!==null&&O instanceof HTMLButtonElement&&(O.attributes&&O.attributes.getNamedItem("type")||(z.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()))}et().catch(function(I){console.warn("Warning: An unhandled error was caught from submitForm()",I)})}),sn={resetForm:_,validateForm:ue,validateField:te,setErrors:fe,setFieldError:Pe,setFieldTouched:Me,setFieldValue:Te,setStatus:Qe,setSubmitting:Je,setTouched:D,setValues:be,setFormikState:It,submitForm:et},an=De(function(){return u(C.values,sn)}),Dr=De(function(S){S&&S.preventDefault&&pe(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&pe(S.stopPropagation)&&S.stopPropagation(),_()}),nx=T.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]),rx=T.useCallback(function(S){return{setValue:function(I,L){return Te(S,I,L)},setTouched:function(I,L){return Me(S,I,L)},setError:function(I){return Pe(S,I)}}},[Te,Me,Pe]),ox=T.useCallback(function(S){var O=Ut(S),I=O?S.name:S,L=Q(C.values,I),U={name:I,value:L,onChange:ae,onBlur:ne};if(O){var W=S.type,ge=S.value,We=S.as,rs=S.multiple;W==="checkbox"?ge===void 0?U.checked=!!L:(U.checked=!!(Array.isArray(L)&&~L.indexOf(ge)),U.value=ge):W==="radio"?(U.checked=L===ge,U.value=ge):We==="select"&&rs&&(U.value=U.value||[],U.multiple=!0)}return U},[ne,ae,C.values]),ns=T.useMemo(function(){return!it(p.current,C.values)},[p.current,C.values]),ix=T.useMemo(function(){return typeof a<"u"?ns?C.errors&&Object.keys(C.errors).length===0:a!==!1&&pe(a)?a(h):a:C.errors&&Object.keys(C.errors).length===0},[a,ns,C.errors,h]),sx=G({},C,{initialValues:p.current,initialErrors:y.current,initialTouched:m.current,initialStatus:g.current,handleBlur:ne,handleChange:ae,handleReset:Dr,handleSubmit:k,resetForm:_,setErrors:fe,setFormikState:It,setFieldTouched:Me,setFieldValue:Te,setFieldError:Pe,setStatus:Qe,setSubmitting:Je,setTouched:D,setValues:be,submitForm:et,validateForm:ue,validateField:te,isValid:ix,dirty:ns,unregisterField:$,registerField:ie,getFieldProps:ox,getFieldMeta:nx,getFieldHelpers:rx,validateOnBlur:o,validateOnChange:n,validateOnMount:s});return sx}function m0(e){var t=p0(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return T.useImperativeHandle(i,function(){return t}),z.env.NODE_ENV!=="production"&&T.useEffect(function(){e.render&&(z.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())},[]),T.createElement(l0,{value:t},n?T.createElement(n,t):o?o(t):r?pe(r)?r(t):ro(r)?null:T.Children.only(r):null)}function _a(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+`
|
|
81
81
|
Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+n+`
|
|
82
|
-
`)}function m0(e){var t={};if(e.inner){if(e.inner.length===0)return Be(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;J(t,s.path)||(t=Be(t,s.path,s.message))}}return t}function g0(e,t,n,r){n===void 0&&(n=!1);var o=io(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function io(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||ks(o)?io(o):o!==""?o:void 0}):ks(e[r])?t[r]=io(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function y0(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?_r(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[s]=_r(e[s],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function v0(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function b0(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 w0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?E.useLayoutEffect:E.useEffect;function De(e){var t=E.useRef(e);return w0(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 bn(e){var t=xt(),n=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,i=t.registerField,s=t.unregisterField,a=Ut(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]),z.env.NODE_ENV!=="production"&&(t||(z.env.NODE_ENV!=="production"?ae(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):ae())),l||(z.env.NODE_ENV!=="production"?ae(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):ae());var d=E.useMemo(function(){return o(l)},[o,l]);return[n(c),r(l),d]}function so(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,s=e.component,a=e.className,c=it(e,["validate","name","render","children","as","component","className"]),l=xt(),u=it(l,["validate","validationSchema"]);z.env.NODE_ENV!=="production"&&E.useEffect(function(){r&&(z.env.NODE_ENV!=="production"?ae(!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>'):ae()),i&&o&&pe(o)&&(z.env.NODE_ENV!=="production"?ae(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):ae()),s&&o&&pe(o)&&(z.env.NODE_ENV!=="production"?ae(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):ae()),r&&o&&!ro(o)&&(z.env.NODE_ENV!=="production"?ae(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):ae())},[]);var d=u.registerField,h=u.unregisterField;E.useEffect(function(){return d(n,{validate:t}),function(){h(n)}},[d,h,n,t]);var p=u.getFieldProps(G({name:n},c)),y=u.getFieldMeta(n),m={field:p,form:u};if(r)return r(G({},m,{meta:y}));if(pe(o))return o(G({},m,{meta:y}));if(s){if(typeof s=="string"){var g=c.innerRef,v=it(c,["innerRef"]);return E.createElement(s,G({ref:g},p,v,{className:a}),o)}return E.createElement(s,G({field:p,form:u},c,{className:a}),o)}var x=i||"input";if(typeof x=="string"){var T=c.innerRef,C=it(c,["innerRef"]);return E.createElement(x,G({ref:T},p,C,{className:a}),o)}return E.createElement(x,G({},p,c,{className:a}),o)}var T0=E.forwardRef(function(e,t){var n=e.action,r=it(e,["action"]),o=n??"#",i=xt(),s=i.handleReset,a=i.handleSubmit;return E.createElement("form",G({onSubmit:a,ref:t,onReset:s,action:o},r))});T0.displayName="Form";function E0(e){var t=function(o){return E.createElement(l0,null,function(i){return i||(z.env.NODE_ENV!=="production"?ae(!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):ae()),E.createElement(e,G({},o,{formik:i}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",a0(t,e)}var x0=function(t,n,r){var o=At(t),i=o[n];return o.splice(n,1),o.splice(r,0,i),o},S0=function(t,n,r){var o=At(t),i=o[n];return o[n]=o[r],o[r]=i,o},ao=function(t,n,r){var o=At(t);return o.splice(n,0,r),o},A0=function(t,n,r){var o=At(t);return o[n]=r,o},At=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(G({},t,{length:n+1}))}else return[]},_a=function(t,n){var r=typeof t=="function"?t:n;return function(o){if(Array.isArray(o)||Ut(o)){var i=At(o);return r(i)}return o}},C0=function(e){ka(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(d){var h=_a(a,i),p=_a(s,i),y=Be(d.values,l,i(J(d.values,l))),m=a?h(J(d.errors,l)):void 0,g=s?p(J(d.touched,l)):void 0;return Na(m)&&(m=void 0),Na(g)&&(g=void 0),G({},d,{values:y,errors:a?Be(d.errors,l,m):d.errors,touched:s?Be(d.touched,l,g):d.touched})})},o.push=function(i){return o.updateArrayField(function(s){return[].concat(At(s),[vn(i)])},!1,!1)},o.handlePush=function(i){return function(){return o.push(i)}},o.swap=function(i,s){return o.updateArrayField(function(a){return S0(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 x0(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 ao(a,i,s)},function(a){return ao(a,i,null)},function(a){return ao(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 A0(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(Ia(o)),o.pop=o.pop.bind(Ia(o)),o}var n=t.prototype;return n.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!ot(J(o.formik.values,o.name),J(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?At(s):[];return i||(i=a[o]),pe(a.splice)&&a.splice(o,1),pe(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,d=it(u,["validate","validationSchema"]),h=G({},o,{form:d,name:l});return s?E.createElement(s,h):a?a(h):c?typeof c=="function"?c(h):ro(c)?null:E.Children.only(c):null},t}(E.Component);C0.defaultProps={validateOnChange:!0};var P0=function(e){ka(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.shouldComponentUpdate=function(o){return J(this.props.formik.errors,this.props.name)!==J(o.formik.errors,this.props.name)||J(this.props.formik.touched,this.props.name)!==J(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=it(o,["component","formik","render","children","name"]),d=J(s.touched,l),h=J(s.errors,l);return d&&h?a?pe(a)?a(h):null:c?pe(c)?c(h):null:i?E.createElement(i,u,h):h:null},t}(E.Component),co=E0(P0);const ja=E.createContext({}),Gn=()=>E.useContext(ja),M0="w-full",lo="flex ml-5 mt-2 text-xs text-feedback-danger-200";function D0({disableOnSubmit:e,disableOnNotDirty:t,disableOnNotValid:n,isDisabled:r,...o}){const{isSubmitting:i,dirty:s,isValid:a}=xt(),{isForcedDirty:c,onNavigationEvent:l}=Gn(),u=h=>{l(()=>o.onClick)},d=E.useMemo(()=>!!(r||e&&i||t&&!s||t&&typeof c=="boolean"&&!c||n&&!a),[e,t,r,i,c,s,a,n]);return b.jsx(ln,{...o,isDisabled:d,onClick:o.type!=="submit"&&(s||typeof c<"u"&&c)?u:o.onClick})}const uo=E.createContext({});function fo(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const ho=typeof window<"u",Ba=ho?E.useLayoutEffect:E.useEffect,Yn=E.createContext(null);function po(e,t){e.indexOf(t)===-1&&e.push(t)}function mo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ye=(e,t,n)=>n>t?t:n<e?e:n;function go(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let $t=()=>{},Xe=()=>{};z.env.NODE_ENV!=="production"&&($t=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(go(t,n))},Xe=(e,t,n)=>{if(!e)throw new Error(go(t,n))});const qe={},Ua=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function $a(e){return typeof e=="object"&&e!==null}const Wa=e=>/^0[^.\s]+$/u.test(e);function yo(e){let t;return()=>(t===void 0&&(t=e()),t)}const Oe=e=>e,O0=(e,t)=>n=>t(e(n)),wn=(...e)=>e.reduce(O0),Tn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class vo{constructor(){this.subscriptions=[]}add(t){return po(this.subscriptions,t),()=>mo(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 ke=e=>e*1e3,Ue=e=>e/1e3;function za(e,t){return t?e*(1e3/t):0}const Za=new Set;function bo(e,t,n){e||Za.has(t)||(console.warn(go(t,n)),Za.add(t))}const Ha=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,V0=1e-7,F0=12;function k0(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Ha(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>V0&&++a<F0);return s}function En(e,t,n,r){if(e===t&&n===r)return Oe;const o=i=>k0(i,0,1,e,n);return i=>i===0||i===1?i:Ha(o(i),t,r)}const Ka=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ga=e=>t=>1-e(1-t),Ya=En(.33,1.53,.69,.99),wo=Ga(Ya),Xa=Ka(wo),qa=e=>(e*=2)<1?.5*wo(e):.5*(2-Math.pow(2,-10*(e-1))),To=e=>1-Math.sin(Math.acos(e)),Qa=Ga(To),Ja=Ka(To),I0=En(.42,0,1,1),N0=En(0,0,.58,1),ec=En(.42,0,.58,1),L0=e=>Array.isArray(e)&&typeof e[0]!="number",tc=e=>Array.isArray(e)&&typeof e[0]=="number",nc={linear:Oe,easeIn:I0,easeInOut:ec,easeOut:N0,circIn:To,circInOut:Ja,circOut:Qa,backIn:wo,backInOut:Xa,backOut:Ya,anticipate:qa},R0=e=>typeof e=="string",rc=e=>{if(tc(e)){Xe(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return En(t,n,r,o)}else if(R0(e))return Xe(nc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),nc[e];return e},Xn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function _0(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,d=!1,h=!1)=>{const y=h&&o?n:r;return d&&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 j0=40;function oc(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Xn.reduce((T,C)=>(T[C]=_0(i),T),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:h,render:p,postRender:y}=s,m=()=>{const T=qe.useManualTiming?o.timestamp:performance.now();n=!1,qe.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(T-o.timestamp,j0),1)),o.timestamp=T,o.isProcessing=!0,a.process(o),c.process(o),l.process(o),u.process(o),d.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:Xn.reduce((T,C)=>{const w=s[C];return T[C]=(P,A=!1,M=!1)=>(n||g(),w.schedule(P,A,M)),T},{}),cancel:T=>{for(let C=0;C<Xn.length;C++)s[Xn[C]].cancel(T)},state:o,steps:s}}const{schedule:ee,cancel:st,state:ve,steps:Eo}=oc(typeof requestAnimationFrame<"u"?requestAnimationFrame:Oe,!0);let qn;function B0(){qn=void 0}const Se={now:()=>(qn===void 0&&Se.set(ve.isProcessing||qe.useManualTiming?ve.timestamp:performance.now()),qn),set:e=>{qn=e,queueMicrotask(B0)}},ic=e=>t=>typeof t=="string"&&t.startsWith(e),xo=ic("--"),U0=ic("var(--"),So=e=>U0(e)?$0.test(e.split("/*")[0].trim()):!1,$0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Wt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xn={...Wt,transform:e=>Ye(0,1,e)},Qn={...Wt,default:1},Sn=e=>Math.round(e*1e5)/1e5,Ao=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function W0(e){return e==null}const z0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Co=(e,t)=>n=>!!(typeof n=="string"&&z0.test(n)&&n.startsWith(e)||t&&!W0(n)&&Object.prototype.hasOwnProperty.call(n,t)),sc=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Ao);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Z0=e=>Ye(0,255,e),Po={...Wt,transform:e=>Math.round(Z0(e))},Ct={test:Co("rgb","red"),parse:sc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Po.transform(e)+", "+Po.transform(t)+", "+Po.transform(n)+", "+Sn(xn.transform(r))+")"};function H0(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 Mo={test:Co("#"),parse:H0,transform:Ct.transform},An=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),at=An("deg"),$e=An("%"),_=An("px"),K0=An("vh"),G0=An("vw"),ac={...$e,parse:e=>$e.parse(e)/100,transform:e=>$e.transform(e*100)},zt={test:Co("hsl","hue"),parse:sc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+$e.transform(Sn(t))+", "+$e.transform(Sn(n))+", "+Sn(xn.transform(r))+")"},de={test:e=>Ct.test(e)||Mo.test(e)||zt.test(e),parse:e=>Ct.test(e)?Ct.parse(e):zt.test(e)?zt.parse(e):Mo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ct.transform(e):zt.transform(e),getAnimatableNone:e=>{const t=de.parse(e);return t.alpha=0,de.transform(t)}},Y0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function X0(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ao))==null?void 0:t.length)||0)+(((n=e.match(Y0))==null?void 0:n.length)||0)>0}const cc="number",lc="color",q0="var",Q0="var(",uc="${}",J0=/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 Cn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(J0,c=>(de.test(c)?(r.color.push(i),o.push(lc),n.push(de.parse(c))):c.startsWith(Q0)?(r.var.push(i),o.push(q0),n.push(c)):(r.number.push(i),o.push(cc),n.push(parseFloat(c))),++i,uc)).split(uc);return{values:n,split:a,indexes:r,types:o}}function dc(e){return Cn(e).values}function fc(e){const{split:t,types:n}=Cn(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===cc?i+=Sn(o[s]):a===lc?i+=de.transform(o[s]):i+=o[s]}return i}}const ey=e=>typeof e=="number"?0:de.test(e)?de.getAnimatableNone(e):e;function ty(e){const t=dc(e);return fc(e)(t.map(ey))}const ct={test:X0,parse:dc,createTransformer:fc,getAnimatableNone:ty};function Do(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 ny({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=Do(c,a,e+1/3),i=Do(c,a,e),s=Do(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Jn(e,t){return n=>n>0?t:e}const ne=(e,t,n)=>e+(t-e)*n,Oo=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},ry=[Mo,Ct,zt],oy=e=>ry.find(t=>t.test(e));function hc(e){const t=oy(e);if($t(!!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===zt&&(n=ny(n)),n}const pc=(e,t)=>{const n=hc(e),r=hc(t);if(!n||!r)return Jn(e,t);const o={...n};return i=>(o.red=Oo(n.red,r.red,i),o.green=Oo(n.green,r.green,i),o.blue=Oo(n.blue,r.blue,i),o.alpha=ne(n.alpha,r.alpha,i),Ct.transform(o))},Vo=new Set(["none","hidden"]);function iy(e,t){return Vo.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function sy(e,t){return n=>ne(e,t,n)}function Fo(e){return typeof e=="number"?sy:typeof e=="string"?So(e)?Jn:de.test(e)?pc:ly:Array.isArray(e)?mc:typeof e=="object"?de.test(e)?pc:ay:Jn}function mc(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Fo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function ay(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Fo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function cy(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 ly=(e,t)=>{const n=ct.createTransformer(t),r=Cn(e),o=Cn(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?Vo.has(e)&&!o.values.length||Vo.has(t)&&!r.values.length?iy(e,t):wn(mc(cy(r,o),o.values),n):($t(!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"),Jn(e,t))};function gc(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):Fo(e)(e,t)}const uy=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ee.update(t,n),stop:()=>st(t),now:()=>ve.isProcessing?ve.timestamp:Se.now()}},yc=(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)})`},er=2e4;function ko(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<er;)t+=n,r=e.next(t);return t>=er?1/0:t}function dy(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(ko(r),er);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ue(o)}}const fy=5;function vc(e,t,n){const r=Math.max(t-fy,0);return za(n-e(r),t-r)}const re={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},bc=.001;function hy({duration:e=re.duration,bounce:t=re.bounce,velocity:n=re.velocity,mass:r=re.mass}){let o,i;$t(e<=ke(re.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Ye(re.minDamping,re.maxDamping,s),e=Ye(re.minDuration,re.maxDuration,Ue(e)),s<1?(o=l=>{const u=l*s,d=u*e,h=u-n,p=Io(l,s),y=Math.exp(-d);return bc-h/p*y},i=l=>{const d=l*s*e,h=d*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,y=Math.exp(-d),m=Io(Math.pow(l,2),s);return(-o(l)+bc>0?-1:1)*((h-p)*y)/m}):(o=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-.001+u*d},i=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=my(o,i,a);if(e=ke(e),isNaN(c))return{stiffness:re.stiffness,damping:re.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const py=12;function my(e,t,n){let r=n;for(let o=1;o<py;o++)r=r-e(r)/t(r);return r}function Io(e,t){return e*Math.sqrt(1-t*t)}const gy=["duration","bounce"],yy=["stiffness","damping","mass"];function wc(e,t){return t.some(n=>e[n]!==void 0)}function vy(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!wc(e,yy)&&wc(e,gy))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ye(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:re.mass,stiffness:o,damping:i}}else{const n=hy(e);t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function tr(e=re.visualDuration,t=re.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:d,velocity:h,isResolvedFromDuration:p}=vy({...n,velocity:-Ue(n.velocity||0)}),y=h||0,m=l/(2*Math.sqrt(c*u)),g=s-i,v=Ue(Math.sqrt(c/u)),x=Math.abs(g)<5;r||(r=x?re.restSpeed.granular:re.restSpeed.default),o||(o=x?re.restDelta.granular:re.restDelta.default);let T;if(m<1){const w=Io(v,m);T=P=>{const A=Math.exp(-m*v*P);return s-A*((y+m*v*g)/w*Math.sin(w*P)+g*Math.cos(w*P))}}else if(m===1)T=w=>s-Math.exp(-v*w)*(g+(y+v*g)*w);else{const w=v*Math.sqrt(m*m-1);T=P=>{const A=Math.exp(-m*v*P),M=Math.min(w*P,300);return s-A*((y+m*v*g)*Math.sinh(M)+w*g*Math.cosh(M))/w}}const C={calculatedDuration:p&&d||null,next:w=>{const P=T(w);if(p)a.done=w>=d;else{let A=w===0?y:0;m<1&&(A=w===0?ke(y):vc(T,w,P));const M=Math.abs(A)<=r,k=Math.abs(s-P)<=o;a.done=M&&k}return a.value=a.done?s:P,a},toString:()=>{const w=Math.min(ko(C),er),P=yc(A=>C.next(w*A).value,w,30);return w+"ms "+P},toTransition:()=>{}};return C}tr.applyToOptions=e=>{const t=dy(e,100,tr);return e.ease=t.ease,e.duration=ke(t.duration),e.type="keyframes",e};function No({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 d=e[0],h={done:!1,value:d},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=d+m,v=s===void 0?g:s(g);v!==g&&(m=v-d);const x=M=>-m*Math.exp(-M/r),T=M=>v+x(M),C=M=>{const k=x(M),U=T(M);h.done=Math.abs(k)<=l,h.value=h.done?v:U};let w,P;const A=M=>{p(h.value)&&(w=M,P=tr({keyframes:[h.value,y(h.value)],velocity:vc(T,M,h.value),damping:o,stiffness:i,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:M=>{let k=!1;return!P&&w===void 0&&(k=!0,C(M),A(M)),w!==void 0&&M>=w?P.next(M-w):(!k&&C(M),h)}}}function by(e,t,n){const r=[],o=n||qe.mix||gc,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]||Oe:t;a=wn(c,a)}r.push(a)}return r}function wy(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Xe(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=by(t,r,o),c=a.length,l=u=>{if(s&&u<e[0])return t[0];let d=0;if(c>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const h=Tn(e[d],e[d+1],u);return a[d](h)};return n?u=>l(Ye(e[0],e[i-1],u)):l}function Ty(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Tn(0,t,r);e.push(ne(n,1,o))}}function Ey(e){const t=[0];return Ty(t,e.length-1),t}function xy(e,t){return e.map(n=>n*t)}function Sy(e,t){return e.map(()=>t||ec).splice(0,e.length-1)}function Zt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=L0(r)?r.map(rc):rc(r),i={done:!1,value:t[0]},s=xy(n&&n.length===t.length?n:Ey(t),e),a=wy(s,t,{ease:Array.isArray(o)?o:Sy(t,o)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const Ay=e=>e!==null;function Lo(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Ay),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Cy={decay:No,inertia:No,tween:Zt,keyframes:Zt,spring:tr};function Tc(e){typeof e.type=="string"&&(e.type=Cy[e.type])}class Ro{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 Py=e=>e/100;class _o extends Ro{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:n}=this.options;n&&n.updatedAt!==Se.now()&&this.tick(Se.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Tc(t);const{type:n=Zt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const c=n||Zt;z.env.NODE_ENV!=="production"&&c!==Zt&&Xe(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Zt&&typeof a[0]!="number"&&(this.mixKeyframes=wn(Py,gc(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=ko(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:d,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 v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let T=this.currentTime,C=r;if(d){const M=Math.min(this.currentTime,o)/a;let k=Math.floor(M),U=M%1;!U&&M>=1&&(U=1),U===1&&k--,k=Math.min(k,d+1),!!(k%2)&&(h==="reverse"?(U=1-U,p&&(U-=p/a)):h==="mirror"&&(C=s)),T=Ye(0,1,U)*a}const w=x?{done:!1,value:u[0]}:C.next(T);i&&(w.value=i(w.value));let{done:P}=w;!x&&c!==null&&(P=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return A&&y!==No&&(w.value=Lo(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 Ue(this.calculatedDuration)}get time(){return Ue(this.currentTime)}set time(t){var n;t=ke(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Se.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ue(this.currentTime))}play(){var o,i;if(this.isStopped)return;const{driver:t=uy,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(i=(o=this.options).onPlay)==null||i.call(o);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(Se.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function My(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Pt=e=>e*180/Math.PI,jo=e=>{const t=Pt(Math.atan2(e[1],e[0]));return Bo(t)},Dy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:jo,rotateZ:jo,skewX:e=>Pt(Math.atan(e[1])),skewY:e=>Pt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Bo=e=>(e=e%360,e<0&&(e+=360),e),Ec=jo,xc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Sc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Oy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xc,scaleY:Sc,scale:e=>(xc(e)+Sc(e))/2,rotateX:e=>Bo(Pt(Math.atan2(e[6],e[5]))),rotateY:e=>Bo(Pt(Math.atan2(-e[2],e[0]))),rotateZ:Ec,rotate:Ec,skewX:e=>Pt(Math.atan(e[4])),skewY:e=>Pt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Uo(e){return e.includes("scale")?1:0}function $o(e,t){if(!e||e==="none")return Uo(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Oy,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Dy,o=a}if(!o)return Uo(t);const i=r[t],s=o[1].split(",").map(Fy);return typeof i=="function"?i(s):s[i]}const Vy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return $o(n,t)};function Fy(e){return parseFloat(e.trim())}const Ht=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Kt=new Set(Ht),Ac=e=>e===Wt||e===_,ky=new Set(["x","y","z"]),Iy=Ht.filter(e=>!ky.has(e));function Ny(e){const t=[];return Iy.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Mt={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})=>$o(t,"x"),y:(e,{transform:t})=>$o(t,"y")};Mt.translateX=Mt.x,Mt.translateY=Mt.y;const Dt=new Set;let Wo=!1,zo=!1,Zo=!1;function Cc(){if(zo){const e=Array.from(Dt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Ny(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])=>{var a;(a=r.getValue(i))==null||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}zo=!1,Wo=!1,Dt.forEach(e=>e.complete(Zo)),Dt.clear()}function Pc(){Dt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zo=!0)})}function Ly(){Zo=!0,Pc(),Cc(),Zo=!1}class Ho{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?(Dt.add(this),Wo||(Wo=!0,ee.read(Pc),ee.resolveKeyframes(Cc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o==null?void 0:o.get(),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])}My(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Dt.delete(this)}cancel(){this.state==="scheduled"&&(Dt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ry=e=>e.startsWith("--");function _y(e,t,n){Ry(t)?e.style.setProperty(t,n):e.style[t]=n}const jy=yo(()=>window.ScrollTimeline!==void 0),By={};function Uy(e,t){const n=yo(e);return()=>By[t]??n()}const Mc=Uy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Pn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pn([0,.65,.55,1]),circOut:Pn([.55,0,1,.45]),backIn:Pn([.31,.01,.66,-.59]),backOut:Pn([.33,1.53,.69,.99])};function Oc(e,t){if(e)return typeof e=="function"?Mc()?yc(e,t):"ease-out":tc(e)?Pn(e):Array.isArray(e)?e.map(n=>Oc(n,t)||Dc.easeOut):Dc[e]}function $y(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 d=Oc(a,o);Array.isArray(d)&&(u.easing=d);const h={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return l&&(h.pseudoElement=l),e.animate(u,h)}function Vc(e){return typeof e=="function"&&"applyToOptions"in e}function Wy({type:e,...t}){return Vc(e)&&Mc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class zy extends Ro{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,Xe(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=Wy(t);this.animation=$y(n,r,o,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Lo(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):_y(n,r,u),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ue(Number(t))}get time(){return Ue(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ke(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}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&jy()?(this.animation.timeline=t,Oe):n(this)}}const Fc={anticipate:qa,backInOut:Xa,circInOut:Ja};function Zy(e){return e in Fc}function Hy(e){typeof e.ease=="string"&&Zy(e.ease)&&(e.ease=Fc[e.ease])}const kc=10;class Ky extends zy{constructor(t){Hy(t),Tc(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 _o({...s,autoplay:!1}),c=ke(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-kc).value,a.sample(c).value,kc),a.stop()}}const Ic=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ct.test(e)||e==="0")&&!e.startsWith("url("));function Gy(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 Yy(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=Ic(o,t),a=Ic(i,t);return $t(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:Gy(e)||(n==="spring"||Vc(n))&&r}function Ko(e){e.duration=0,e.type}const Xy=new Set(["opacity","clipPath","filter","transform"]),qy=yo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Qy(e){var u;const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=t.owner.getProps();return qy()&&n&&Xy.has(n)&&(n!=="transform"||!l)&&!c&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const Jy=40;class ev extends Ro{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,...d}){var y;super(),this.stop=()=>{var m,g;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=Se.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:c,motionValue:l,element:u,...d},p=(u==null?void 0:u.KeyframeResolver)||Ho;this.keyframeResolver=new p(a,(m,g,v)=>this.onKeyframesResolved(m,g,h,!v),c,l,u),(y=this.keyframeResolver)==null||y.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=Se.now(),Yy(t,i,s,a)||((qe.instantAnimations||!c)&&(u==null||u(Lo(t,r,n))),t[0]=t[t.length-1],Ko(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Jy?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!l&&Qy(h)?new Ky({...h,element:h.motionValue.owner.current}):new _o(h);p.finished.then(()=>this.notifyFinished()).catch(Oe),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(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Ly()),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(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const tv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nv(e){const t=tv.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const rv=4;function Nc(e,t,n=1){Xe(n<=rv,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=nv(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Ua(s)?parseFloat(s):s}return So(o)?Nc(o,t,n+1):o}function Go(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Lc=new Set(["width","height","top","left","right","bottom",...Ht]),ov={test:e=>e==="auto",parse:e=>e},Rc=e=>t=>t.test(e),_c=[Wt,_,$e,at,G0,K0,ov],jc=e=>_c.find(Rc(e));function iv(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Wa(e):!0}const sv=new Set(["brightness","contrast","saturate","opacity"]);function av(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ao)||[];if(!r)return e;const o=n.replace(r,"");let i=sv.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const cv=/\b([a-z-]*)\(.*?\)/gu,Yo={...ct,getAnimatableNone:e=>{const t=e.match(cv);return t?t.map(av).join(" "):e}},Bc={...Wt,transform:Math.round},Xo={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,radius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,backgroundPositionX:_,backgroundPositionY:_,...{rotate:at,rotateX:at,rotateY:at,rotateZ:at,scale:Qn,scaleX:Qn,scaleY:Qn,scaleZ:Qn,skew:at,skewX:at,skewY:at,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:xn,originX:ac,originY:ac,originZ:_},zIndex:Bc,fillOpacity:xn,strokeOpacity:xn,numOctaves:Bc},lv={...Xo,color:de,backgroundColor:de,outlineColor:de,fill:de,stroke:de,borderColor:de,borderTopColor:de,borderRightColor:de,borderBottomColor:de,borderLeftColor:de,filter:Yo,WebkitFilter:Yo},Uc=e=>lv[e];function $c(e,t){let n=Uc(e);return n!==Yo&&(n=ct),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const uv=new Set(["auto","none","0"]);function dv(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!uv.has(i)&&Cn(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=$c(n,o)}class fv extends Ho{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(),So(l))){const u=Nc(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Lc.has(r)||t.length!==2)return;const[o,i]=t,s=jc(o),a=jc(i);if(s!==a)if(Ac(s)&&Ac(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else Mt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||iv(t[o]))&&r.push(o);r.length&&dv(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=Mt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var a;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]=Mt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([c,l])=>{t.getValue(c).set(l)}),this.resolveNoneKeyframes()}}function hv(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=(n==null?void 0:n[e])??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const Wc=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function zc(e){return $a(e)&&"offsetHeight"in e}const Zc=30,pv=e=>!isNaN(parseFloat(e));class mv{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const o=Se.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Se.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=pv(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return z.env.NODE_ENV!=="production"&&bo(!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 vo);const r=this.events[t].add(n);return t==="change"?()=>{r(),ee.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Se.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zc);return za(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Gt(e,t){return new mv(e,t)}const{schedule:qo}=oc(queueMicrotask,!1),Ie={x:!1,y:!1};function Hc(){return Ie.x||Ie.y}function gv(e){return e==="x"||e==="y"?Ie[e]?null:(Ie[e]=!0,()=>{Ie[e]=!1}):Ie.x||Ie.y?null:(Ie.x=Ie.y=!0,()=>{Ie.x=Ie.y=!1})}function Kc(e,t){const n=hv(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Gc(e){return!(e.pointerType==="touch"||Hc())}function yv(e,t,n={}){const[r,o,i]=Kc(e,n),s=a=>{if(!Gc(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{Gc(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Yc=(e,t)=>t?e===t?!0:Yc(e,t.parentElement):!1,Qo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,vv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function bv(e){return vv.has(e.tagName)||e.tabIndex!==-1}const nr=new WeakSet;function Xc(e){return t=>{t.key==="Enter"&&e(t)}}function Jo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const wv=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Xc(()=>{if(nr.has(n))return;Jo(n,"down");const o=Xc(()=>{Jo(n,"up")}),i=()=>Jo(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 qc(e){return Qo(e)&&!Hc()}function Tv(e,t,n={}){const[r,o,i]=Kc(e,n),s=a=>{const c=a.currentTarget;if(!qc(a))return;nr.add(c);const l=t(c,a),u=(p,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),nr.has(c)&&nr.delete(c),qc(p)&&typeof l=="function"&&l(p,{success:y})},d=p=>{u(p,c===window||c===document||n.useGlobalTarget||Yc(c,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),zc(a)&&(a.addEventListener("focus",l=>wv(l,o)),!bv(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Qc(e){return $a(e)&&"ownerSVGElement"in e}function Ev(e){return Qc(e)&&e.tagName==="svg"}const Te=e=>!!(e&&e.getVelocity),xv=[..._c,de,ct],Sv=e=>xv.find(Rc(e)),ei=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Av extends f.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=zc(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 Cv({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(ei);return E.useInsertionEffect(()=>{const{width:c,height:l,top:u,left:d,right:h}=s.current;if(t||!i.current||!c||!l)return;const p=n==="left"?`left: ${d}`:`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(`
|
|
82
|
+
`)}function g0(e){var t={};if(e.inner){if(e.inner.length===0)return Be(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=Be(t,s.path,s.message))}}return t}function y0(e,t,n,r){n===void 0&&(n=!1);var o=io(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function io(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||Is(o)?io(o):o!==""?o:void 0}):Is(e[r])?t[r]=io(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function v0(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?_r(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[s]=_r(e[s],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function b0(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function w0(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 E0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?T.useLayoutEffect:T.useEffect;function De(e){var t=T.useRef(e);return E0(function(){t.current=e}),T.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 bn(e){var t=xt(),n=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,i=t.registerField,s=t.unregisterField,a=Ut(e),c=a?e:{name:e},l=c.name,u=c.validate;T.useEffect(function(){return l&&i(l,{validate:u}),function(){l&&s(l)}},[i,s,l,u]),z.env.NODE_ENV!=="production"&&(t||(z.env.NODE_ENV!=="production"?se(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):se())),l||(z.env.NODE_ENV!=="production"?se(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):se());var f=T.useMemo(function(){return o(l)},[o,l]);return[n(c),r(l),f]}function so(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,s=e.component,a=e.className,c=st(e,["validate","name","render","children","as","component","className"]),l=xt(),u=st(l,["validate","validationSchema"]);z.env.NODE_ENV!=="production"&&T.useEffect(function(){r&&(z.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&&pe(o)&&(z.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&&pe(o)&&(z.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&&!ro(o)&&(z.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;T.useEffect(function(){return f(n,{validate:t}),function(){h(n)}},[f,h,n,t]);var p=u.getFieldProps(G({name:n},c)),y=u.getFieldMeta(n),m={field:p,form:u};if(r)return r(G({},m,{meta:y}));if(pe(o))return o(G({},m,{meta:y}));if(s){if(typeof s=="string"){var g=c.innerRef,b=st(c,["innerRef"]);return T.createElement(s,G({ref:g},p,b,{className:a}),o)}return T.createElement(s,G({field:p,form:u},c,{className:a}),o)}var x=i||"input";if(typeof x=="string"){var E=c.innerRef,P=st(c,["innerRef"]);return T.createElement(x,G({ref:E},p,P,{className:a}),o)}return T.createElement(x,G({},p,c,{className:a}),o)}var T0=T.forwardRef(function(e,t){var n=e.action,r=st(e,["action"]),o=n??"#",i=xt(),s=i.handleReset,a=i.handleSubmit;return T.createElement("form",G({onSubmit:a,ref:t,onReset:s,action:o},r))});T0.displayName="Form";function x0(e){var t=function(o){return T.createElement(u0,null,function(i){return i||(z.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()),T.createElement(e,G({},o,{formik:i}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",c0(t,e)}var S0=function(t,n,r){var o=At(t),i=o[n];return o.splice(n,1),o.splice(r,0,i),o},A0=function(t,n,r){var o=At(t),i=o[n];return o[n]=o[r],o[r]=i,o},ao=function(t,n,r){var o=At(t);return o.splice(n,0,r),o},C0=function(t,n,r){var o=At(t);return o[n]=r,o},At=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(G({},t,{length:n+1}))}else return[]},ja=function(t,n){var r=typeof t=="function"?t:n;return function(o){if(Array.isArray(o)||Ut(o)){var i=At(o);return r(i)}return o}},P0=function(e){Ia(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=ja(a,i),p=ja(s,i),y=Be(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 La(m)&&(m=void 0),La(g)&&(g=void 0),G({},f,{values:y,errors:a?Be(f.errors,l,m):f.errors,touched:s?Be(f.touched,l,g):f.touched})})},o.push=function(i){return o.updateArrayField(function(s){return[].concat(At(s),[vn(i)])},!1,!1)},o.handlePush=function(i){return function(){return o.push(i)}},o.swap=function(i,s){return o.updateArrayField(function(a){return A0(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 S0(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 ao(a,i,s)},function(a){return ao(a,i,null)},function(a){return ao(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 C0(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(Na(o)),o.pop=o.pop.bind(Na(o)),o}var n=t.prototype;return n.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!it(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?At(s):[];return i||(i=a[o]),pe(a.splice)&&a.splice(o,1),pe(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=st(u,["validate","validationSchema"]),h=G({},o,{form:f,name:l});return s?T.createElement(s,h):a?a(h):c?typeof c=="function"?c(h):ro(c)?null:T.Children.only(c):null},t}(T.Component);P0.defaultProps={validateOnChange:!0};var M0=function(e){Ia(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=st(o,["component","formik","render","children","name"]),f=Q(s.touched,l),h=Q(s.errors,l);return f&&h?a?pe(a)?a(h):null:c?pe(c)?c(h):null:i?T.createElement(i,u,h):h:null},t}(T.Component),co=x0(M0);const Ba=T.createContext({}),Gn=()=>T.useContext(Ba),D0="w-full",lo="flex ml-5 mt-2 text-xs text-feedback-danger-200";function O0({disableOnSubmit:e,disableOnNotDirty:t,disableOnNotValid:n,isDisabled:r,...o}){const{isSubmitting:i,dirty:s,isValid:a}=xt(),{isForcedDirty:c,onNavigationEvent:l}=Gn(),u=h=>{l(()=>o.onClick)},f=T.useMemo(()=>!!(r||e&&i||t&&!s||t&&typeof c=="boolean"&&!c||n&&!a),[e,t,r,i,c,s,a,n]);return v.jsx(ln,{...o,isDisabled:f,onClick:o.type!=="submit"&&(s||typeof c<"u"&&c)?u:o.onClick})}const uo=T.createContext({});function fo(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}const ho=typeof window<"u",Ua=ho?T.useLayoutEffect:T.useEffect,Yn=T.createContext(null);function po(e,t){e.indexOf(t)===-1&&e.push(t)}function mo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ye=(e,t,n)=>n>t?t:n<e?e:n;function go(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let $t=()=>{},Xe=()=>{};z.env.NODE_ENV!=="production"&&($t=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(go(t,n))},Xe=(e,t,n)=>{if(!e)throw new Error(go(t,n))});const qe={},$a=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Wa(e){return typeof e=="object"&&e!==null}const za=e=>/^0[^.\s]+$/u.test(e);function yo(e){let t;return()=>(t===void 0&&(t=e()),t)}const Oe=e=>e,V0=(e,t)=>n=>t(e(n)),wn=(...e)=>e.reduce(V0),En=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class vo{constructor(){this.subscriptions=[]}add(t){return po(this.subscriptions,t),()=>mo(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 ke=e=>e*1e3,Ue=e=>e/1e3;function Za(e,t){return t?e*(1e3/t):0}const Ha=new Set;function bo(e,t,n){e||Ha.has(t)||(console.warn(go(t,n)),Ha.add(t))}const Ka=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,F0=1e-7,k0=12;function I0(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Ka(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>F0&&++a<k0);return s}function Tn(e,t,n,r){if(e===t&&n===r)return Oe;const o=i=>I0(i,0,1,e,n);return i=>i===0||i===1?i:Ka(o(i),t,r)}const Ga=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ya=e=>t=>1-e(1-t),Xa=Tn(.33,1.53,.69,.99),wo=Ya(Xa),qa=Ga(wo),Qa=e=>(e*=2)<1?.5*wo(e):.5*(2-Math.pow(2,-10*(e-1))),Eo=e=>1-Math.sin(Math.acos(e)),Ja=Ya(Eo),ec=Ga(Eo),N0=Tn(.42,0,1,1),L0=Tn(0,0,.58,1),tc=Tn(.42,0,.58,1),R0=e=>Array.isArray(e)&&typeof e[0]!="number",nc=e=>Array.isArray(e)&&typeof e[0]=="number",rc={linear:Oe,easeIn:N0,easeInOut:tc,easeOut:L0,circIn:Eo,circInOut:ec,circOut:Ja,backIn:wo,backInOut:qa,backOut:Xa,anticipate:Qa},_0=e=>typeof e=="string",oc=e=>{if(nc(e)){Xe(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Tn(t,n,r,o)}else if(_0(e))return Xe(rc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),rc[e];return e},Xn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function j0(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 B0=40;function ic(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Xn.reduce((E,P)=>(E[P]=j0(i),E),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:f,preRender:h,render:p,postRender:y}=s,m=()=>{const E=qe.useManualTiming?o.timestamp:performance.now();n=!1,qe.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(E-o.timestamp,B0),1)),o.timestamp=E,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:Xn.reduce((E,P)=>{const w=s[P];return E[P]=(C,A=!1,M=!1)=>(n||g(),w.schedule(C,A,M)),E},{}),cancel:E=>{for(let P=0;P<Xn.length;P++)s[Xn[P]].cancel(E)},state:o,steps:s}}const{schedule:J,cancel:at,state:ye,steps:To}=ic(typeof requestAnimationFrame<"u"?requestAnimationFrame:Oe,!0);let qn;function U0(){qn=void 0}const Se={now:()=>(qn===void 0&&Se.set(ye.isProcessing||qe.useManualTiming?ye.timestamp:performance.now()),qn),set:e=>{qn=e,queueMicrotask(U0)}},sc=e=>t=>typeof t=="string"&&t.startsWith(e),xo=sc("--"),$0=sc("var(--"),So=e=>$0(e)?W0.test(e.split("/*")[0].trim()):!1,W0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Wt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xn={...Wt,transform:e=>Ye(0,1,e)},Qn={...Wt,default:1},Sn=e=>Math.round(e*1e5)/1e5,Ao=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function z0(e){return e==null}const Z0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Co=(e,t)=>n=>!!(typeof n=="string"&&Z0.test(n)&&n.startsWith(e)||t&&!z0(n)&&Object.prototype.hasOwnProperty.call(n,t)),ac=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Ao);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},H0=e=>Ye(0,255,e),Po={...Wt,transform:e=>Math.round(H0(e))},Ct={test:Co("rgb","red"),parse:ac("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Po.transform(e)+", "+Po.transform(t)+", "+Po.transform(n)+", "+Sn(xn.transform(r))+")"};function K0(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 Mo={test:Co("#"),parse:K0,transform:Ct.transform},An=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ct=An("deg"),$e=An("%"),R=An("px"),G0=An("vh"),Y0=An("vw"),cc={...$e,parse:e=>$e.parse(e)/100,transform:e=>$e.transform(e*100)},zt={test:Co("hsl","hue"),parse:ac("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+$e.transform(Sn(t))+", "+$e.transform(Sn(n))+", "+Sn(xn.transform(r))+")"},de={test:e=>Ct.test(e)||Mo.test(e)||zt.test(e),parse:e=>Ct.test(e)?Ct.parse(e):zt.test(e)?zt.parse(e):Mo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ct.transform(e):zt.transform(e),getAnimatableNone:e=>{const t=de.parse(e);return t.alpha=0,de.transform(t)}},X0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function q0(e){return isNaN(e)&&typeof e=="string"&&(e.match(Ao)?.length||0)+(e.match(X0)?.length||0)>0}const lc="number",uc="color",Q0="var",J0="var(",dc="${}",ey=/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 Cn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(ey,c=>(de.test(c)?(r.color.push(i),o.push(uc),n.push(de.parse(c))):c.startsWith(J0)?(r.var.push(i),o.push(Q0),n.push(c)):(r.number.push(i),o.push(lc),n.push(parseFloat(c))),++i,dc)).split(dc);return{values:n,split:a,indexes:r,types:o}}function fc(e){return Cn(e).values}function hc(e){const{split:t,types:n}=Cn(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===lc?i+=Sn(o[s]):a===uc?i+=de.transform(o[s]):i+=o[s]}return i}}const ty=e=>typeof e=="number"?0:de.test(e)?de.getAnimatableNone(e):e;function ny(e){const t=fc(e);return hc(e)(t.map(ty))}const lt={test:q0,parse:fc,createTransformer:hc,getAnimatableNone:ny};function Do(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 ry({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=Do(c,a,e+1/3),i=Do(c,a,e),s=Do(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Jn(e,t){return n=>n>0?t:e}const re=(e,t,n)=>e+(t-e)*n,Oo=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},oy=[Mo,Ct,zt],iy=e=>oy.find(t=>t.test(e));function pc(e){const t=iy(e);if($t(!!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===zt&&(n=ry(n)),n}const mc=(e,t)=>{const n=pc(e),r=pc(t);if(!n||!r)return Jn(e,t);const o={...n};return i=>(o.red=Oo(n.red,r.red,i),o.green=Oo(n.green,r.green,i),o.blue=Oo(n.blue,r.blue,i),o.alpha=re(n.alpha,r.alpha,i),Ct.transform(o))},Vo=new Set(["none","hidden"]);function sy(e,t){return Vo.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ay(e,t){return n=>re(e,t,n)}function Fo(e){return typeof e=="number"?ay:typeof e=="string"?So(e)?Jn:de.test(e)?mc:uy:Array.isArray(e)?gc:typeof e=="object"?de.test(e)?mc:cy:Jn}function gc(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Fo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function cy(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Fo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function ly(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 uy=(e,t)=>{const n=lt.createTransformer(t),r=Cn(e),o=Cn(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?Vo.has(e)&&!o.values.length||Vo.has(t)&&!r.values.length?sy(e,t):wn(gc(ly(r,o),o.values),n):($t(!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"),Jn(e,t))};function yc(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?re(e,t,n):Fo(e)(e,t)}const dy=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>J.update(t,n),stop:()=>at(t),now:()=>ye.isProcessing?ye.timestamp:Se.now()}},vc=(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)})`},er=2e4;function ko(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<er;)t+=n,r=e.next(t);return t>=er?1/0:t}function fy(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(ko(r),er);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ue(o)}}const hy=5;function bc(e,t,n){const r=Math.max(t-hy,0);return Za(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},Io=.001;function py({duration:e=oe.duration,bounce:t=oe.bounce,velocity:n=oe.velocity,mass:r=oe.mass}){let o,i;$t(e<=ke(oe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Ye(oe.minDamping,oe.maxDamping,s),e=Ye(oe.minDuration,oe.maxDuration,Ue(e)),s<1?(o=l=>{const u=l*s,f=u*e,h=u-n,p=No(l,s),y=Math.exp(-f);return Io-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=No(Math.pow(l,2),s);return(-o(l)+Io>0?-1:1)*((h-p)*y)/m}):(o=l=>{const u=Math.exp(-l*e),f=(l-n)*e+1;return-Io+u*f},i=l=>{const u=Math.exp(-l*e),f=(n-l)*(e*e);return u*f});const a=5/e,c=gy(o,i,a);if(e=ke(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 my=12;function gy(e,t,n){let r=n;for(let o=1;o<my;o++)r=r-e(r)/t(r);return r}function No(e,t){return e*Math.sqrt(1-t*t)}const yy=["duration","bounce"],vy=["stiffness","damping","mass"];function wc(e,t){return t.some(n=>e[n]!==void 0)}function by(e){let t={velocity:oe.velocity,stiffness:oe.stiffness,damping:oe.damping,mass:oe.mass,isResolvedFromDuration:!1,...e};if(!wc(e,vy)&&wc(e,yy))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ye(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:oe.mass,stiffness:o,damping:i}}else{const n=py(e);t={...t,...n,mass:oe.mass},t.isResolvedFromDuration=!0}return t}function tr(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}=by({...n,velocity:-Ue(n.velocity||0)}),y=h||0,m=l/(2*Math.sqrt(c*u)),g=s-i,b=Ue(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 E;if(m<1){const w=No(b,m);E=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)E=w=>s-Math.exp(-b*w)*(g+(y+b*g)*w);else{const w=b*Math.sqrt(m*m-1);E=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=E(w);if(p)a.done=w>=f;else{let A=w===0?y:0;m<1&&(A=w===0?ke(y):bc(E,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(ko(P),er),C=vc(A=>P.next(w*A).value,w,30);return w+"ms "+C},toTransition:()=>{}};return P}tr.applyToOptions=e=>{const t=fy(e,100,tr);return e.ease=t.ease,e.duration=ke(t.duration),e.type="keyframes",e};function Lo({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),E=M=>b+x(M),P=M=>{const N=x(M),j=E(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=tr({keyframes:[h.value,y(h.value)],velocity:bc(E,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 wy(e,t,n){const r=[],o=n||qe.mix||yc,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]||Oe:t;a=wn(c,a)}r.push(a)}return r}function Ey(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Xe(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=wy(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=En(e[f],e[f+1],u);return a[f](h)};return n?u=>l(Ye(e[0],e[i-1],u)):l}function Ty(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=En(0,t,r);e.push(re(n,1,o))}}function xy(e){const t=[0];return Ty(t,e.length-1),t}function Sy(e,t){return e.map(n=>n*t)}function Ay(e,t){return e.map(()=>t||tc).splice(0,e.length-1)}function Zt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=R0(r)?r.map(oc):oc(r),i={done:!1,value:t[0]},s=Sy(n&&n.length===t.length?n:xy(t),e),a=Ey(s,t,{ease:Array.isArray(o)?o:Ay(t,o)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const Cy=e=>e!==null;function Ro(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Cy),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Py={decay:Lo,inertia:Lo,tween:Zt,keyframes:Zt,spring:tr};function Ec(e){typeof e.type=="string"&&(e.type=Py[e.type])}class _o{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 My=e=>e/100;class jo extends _o{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!==Se.now()&&this.tick(Se.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;Ec(t);const{type:n=Zt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const c=n||Zt;z.env.NODE_ENV!=="production"&&c!==Zt&&Xe(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Zt&&typeof a[0]!="number"&&(this.mixKeyframes=wn(My,yc(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=ko(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 E=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)),E=Ye(0,1,j)*a}const w=x?{done:!1,value:u[0]}:P.next(E);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!==Lo&&(w.value=Ro(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 Ue(this.calculatedDuration)}get time(){return Ue(this.currentTime)}set time(t){t=ke(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(Se.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ue(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=dy,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(Se.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 Dy(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Pt=e=>e*180/Math.PI,Bo=e=>{const t=Pt(Math.atan2(e[1],e[0]));return Uo(t)},Oy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Bo,rotateZ:Bo,skewX:e=>Pt(Math.atan(e[1])),skewY:e=>Pt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Uo=e=>(e=e%360,e<0&&(e+=360),e),Tc=Bo,xc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Sc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Vy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xc,scaleY:Sc,scale:e=>(xc(e)+Sc(e))/2,rotateX:e=>Uo(Pt(Math.atan2(e[6],e[5]))),rotateY:e=>Uo(Pt(Math.atan2(-e[2],e[0]))),rotateZ:Tc,rotate:Tc,skewX:e=>Pt(Math.atan(e[4])),skewY:e=>Pt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function $o(e){return e.includes("scale")?1:0}function Wo(e,t){if(!e||e==="none")return $o(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Vy,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Oy,o=a}if(!o)return $o(t);const i=r[t],s=o[1].split(",").map(ky);return typeof i=="function"?i(s):s[i]}const Fy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Wo(n,t)};function ky(e){return parseFloat(e.trim())}const Ht=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Kt=new Set(Ht),Ac=e=>e===Wt||e===R,Iy=new Set(["x","y","z"]),Ny=Ht.filter(e=>!Iy.has(e));function Ly(e){const t=[];return Ny.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Mt={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})=>Wo(t,"x"),y:(e,{transform:t})=>Wo(t,"y")};Mt.translateX=Mt.x,Mt.translateY=Mt.y;const Dt=new Set;let zo=!1,Zo=!1,Ho=!1;function Cc(){if(Zo){const e=Array.from(Dt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Ly(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)})}Zo=!1,zo=!1,Dt.forEach(e=>e.complete(Ho)),Dt.clear()}function Pc(){Dt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Zo=!0)})}function Ry(){Ho=!0,Pc(),Cc(),Ho=!1}class Ko{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?(Dt.add(this),zo||(zo=!0,J.read(Pc),J.resolveKeyframes(Cc))):(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])}Dy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Dt.delete(this)}cancel(){this.state==="scheduled"&&(Dt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const _y=e=>e.startsWith("--");function jy(e,t,n){_y(t)?e.style.setProperty(t,n):e.style[t]=n}const By=yo(()=>window.ScrollTimeline!==void 0),Uy={};function $y(e,t){const n=yo(e);return()=>Uy[t]??n()}const Mc=$y(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Pn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pn([0,.65,.55,1]),circOut:Pn([.55,0,1,.45]),backIn:Pn([.31,.01,.66,-.59]),backOut:Pn([.33,1.53,.69,.99])};function Oc(e,t){if(e)return typeof e=="function"?Mc()?vc(e,t):"ease-out":nc(e)?Pn(e):Array.isArray(e)?e.map(n=>Oc(n,t)||Dc.easeOut):Dc[e]}function Wy(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=Oc(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 Vc(e){return typeof e=="function"&&"applyToOptions"in e}function zy({type:e,...t}){return Vc(e)&&Mc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Zy extends _o{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,Xe(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=zy(t);this.animation=Wy(n,r,o,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Ro(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):jy(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 Ue(Number(t))}get time(){return Ue(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ke(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&&By()?(this.animation.timeline=t,Oe):n(this)}}const Fc={anticipate:Qa,backInOut:qa,circInOut:ec};function Hy(e){return e in Fc}function Ky(e){typeof e.ease=="string"&&Hy(e.ease)&&(e.ease=Fc[e.ease])}const kc=10;class Gy extends Zy{constructor(t){Ky(t),Ec(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 jo({...s,autoplay:!1}),c=ke(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-kc).value,a.sample(c).value,kc),a.stop()}}const Ic=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(lt.test(e)||e==="0")&&!e.startsWith("url("));function Yy(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 Xy(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=Ic(o,t),a=Ic(i,t);return $t(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:Yy(e)||(n==="spring"||Vc(n))&&r}function Go(e){e.duration=0,e.type}const qy=new Set(["opacity","clipPath","filter","transform"]),Qy=yo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Jy(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 Qy()&&n&&qy.has(n)&&(n!=="transform"||!l)&&!c&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const ev=40;class tv extends _o{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=Se.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||Ko;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=Se.now(),Xy(t,i,s,a)||((qe.instantAnimations||!c)&&u?.(Ro(t,r,n)),t[0]=t[t.length-1],Go(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>ev?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!l&&Jy(h)?new Gy({...h,element:h.motionValue.owner.current}):new jo(h);p.finished.then(()=>this.notifyFinished()).catch(Oe),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(),Ry()),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 nv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rv(e){const t=nv.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const ov=4;function Nc(e,t,n=1){Xe(n<=ov,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=rv(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return $a(s)?parseFloat(s):s}return So(o)?Nc(o,t,n+1):o}function Yo(e,t){return e?.[t]??e?.default??e}const Lc=new Set(["width","height","top","left","right","bottom",...Ht]),iv={test:e=>e==="auto",parse:e=>e},Rc=e=>t=>t.test(e),_c=[Wt,R,$e,ct,Y0,G0,iv],jc=e=>_c.find(Rc(e));function sv(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||za(e):!0}const av=new Set(["brightness","contrast","saturate","opacity"]);function cv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ao)||[];if(!r)return e;const o=n.replace(r,"");let i=av.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const lv=/\b([a-z-]*)\(.*?\)/gu,Xo={...lt,getAnimatableNone:e=>{const t=e.match(lv);return t?t.map(cv).join(" "):e}},Bc={...Wt,transform:Math.round},qo={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:ct,rotateX:ct,rotateY:ct,rotateZ:ct,scale:Qn,scaleX:Qn,scaleY:Qn,scaleZ:Qn,skew:ct,skewX:ct,skewY:ct,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:xn,originX:cc,originY:cc,originZ:R},zIndex:Bc,fillOpacity:xn,strokeOpacity:xn,numOctaves:Bc},uv={...qo,color:de,backgroundColor:de,outlineColor:de,fill:de,stroke:de,borderColor:de,borderTopColor:de,borderRightColor:de,borderBottomColor:de,borderLeftColor:de,filter:Xo,WebkitFilter:Xo},Uc=e=>uv[e];function $c(e,t){let n=Uc(e);return n!==Xo&&(n=lt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const dv=new Set(["auto","none","0"]);function fv(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!dv.has(i)&&Cn(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=$c(n,o)}class hv extends Ko{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(),So(l))){const u=Nc(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Lc.has(r)||t.length!==2)return;const[o,i]=t,s=jc(o),a=jc(i);if(s!==a)if(Ac(s)&&Ac(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else Mt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||sv(t[o]))&&r.push(o);r.length&&fv(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=Mt[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]=Mt[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 pv(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 Wc=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function zc(e){return Wa(e)&&"offsetHeight"in e}const Zc=30,mv=e=>!isNaN(parseFloat(e));class gv{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=Se.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=Se.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=mv(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return z.env.NODE_ENV!=="production"&&bo(!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 vo);const r=this.events[t].add(n);return t==="change"?()=>{r(),J.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=Se.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zc);return Za(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 Gt(e,t){return new gv(e,t)}const{schedule:Qo}=ic(queueMicrotask,!1),Ie={x:!1,y:!1};function Hc(){return Ie.x||Ie.y}function yv(e){return e==="x"||e==="y"?Ie[e]?null:(Ie[e]=!0,()=>{Ie[e]=!1}):Ie.x||Ie.y?null:(Ie.x=Ie.y=!0,()=>{Ie.x=Ie.y=!1})}function Kc(e,t){const n=pv(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Gc(e){return!(e.pointerType==="touch"||Hc())}function vv(e,t,n={}){const[r,o,i]=Kc(e,n),s=a=>{if(!Gc(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=f=>{Gc(f)&&(l(f),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Yc=(e,t)=>t?e===t?!0:Yc(e,t.parentElement):!1,Jo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,bv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wv(e){return bv.has(e.tagName)||e.tabIndex!==-1}const nr=new WeakSet;function Xc(e){return t=>{t.key==="Enter"&&e(t)}}function ei(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ev=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Xc(()=>{if(nr.has(n))return;ei(n,"down");const o=Xc(()=>{ei(n,"up")}),i=()=>ei(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 qc(e){return Jo(e)&&!Hc()}function Tv(e,t,n={}){const[r,o,i]=Kc(e,n),s=a=>{const c=a.currentTarget;if(!qc(a))return;nr.add(c);const l=t(c,a),u=(p,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),nr.has(c)&&nr.delete(c),qc(p)&&typeof l=="function"&&l(p,{success:y})},f=p=>{u(p,c===window||c===document||n.useGlobalTarget||Yc(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),zc(a)&&(a.addEventListener("focus",l=>Ev(l,o)),!wv(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Qc(e){return Wa(e)&&"ownerSVGElement"in e}function xv(e){return Qc(e)&&e.tagName==="svg"}const we=e=>!!(e&&e.getVelocity),Sv=[..._c,de,lt],Av=e=>Sv.find(Rc(e)),ti=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Cv extends d.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=zc(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 Pv({children:e,isPresent:t,anchorX:n,root:r}){const o=T.useId(),i=T.useRef(null),s=T.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=T.useContext(ti);return T.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(`
|
|
83
83
|
[data-motion-pop-id="${o}"] {
|
|
84
84
|
position: absolute !important;
|
|
85
85
|
width: ${c}px !important;
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
${p}px !important;
|
|
88
88
|
top: ${u}px !important;
|
|
89
89
|
}
|
|
90
|
-
`),()=>{m.contains(y)&&m.removeChild(y)}},[t]),b.jsx(Av,{isPresent:t,childRef:i,sizeRef:s,children:f.cloneElement(e,{ref:i})})}const Pv=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:c})=>{const l=fo(Mv),u=E.useId();let d=!0,h=E.useMemo(()=>(d=!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&&d&&(h={...h}),E.useMemo(()=>{l.forEach((p,y)=>l.set(y,!1))},[n]),f.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=b.jsx(Cv,{isPresent:n,anchorX:a,root:c,children:e})),b.jsx(Yn.Provider,{value:h,children:e})};function Mv(){return new Map}function Jc(e=!0){const t=E.useContext(Yn);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 rr=e=>e.key||"";function el(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const Dv=({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]=Jc(s),d=E.useMemo(()=>el(e),[e]),h=s&&!l?[]:d.map(rr),p=E.useRef(!0),y=E.useRef(d),m=fo(()=>new Map),[g,v]=E.useState(d),[x,T]=E.useState(d);Ba(()=>{p.current=!1,y.current=d;for(let P=0;P<x.length;P++){const A=rr(x[P]);h.includes(A)?m.delete(A):m.get(A)!==!0&&m.set(A,!1)}},[x,h.length,h.join("-")]);const C=[];if(d!==g){let P=[...d];for(let A=0;A<x.length;A++){const M=x[A],k=rr(M);h.includes(k)||(P.splice(A,0,M),C.push(M))}return i==="wait"&&C.length&&(P=C),T(el(P)),v(d),null}z.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(uo);return b.jsx(b.Fragment,{children:x.map(P=>{const A=rr(P),M=s&&!l?!1:d===x||h.includes(A),k=()=>{if(m.has(A))m.set(A,!0);else return;let U=!0;m.forEach(oe=>{oe||(U=!1)}),U&&(w==null||w(),T(y.current),s&&(u==null||u()),r&&r())};return b.jsx(Pv,{isPresent:M,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:c,onExitComplete:M?void 0:k,anchorX:a,children:P},A)})})},tl=E.createContext({strict:!1}),nl={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"]},Yt={};for(const e in nl)Yt[e]={isEnabled:t=>nl[e].some(n=>!!t[n])};function Ov(e){for(const t in e)Yt[t]={...Yt[t],...e[t]}}const Vv=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 or(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Vv.has(e)}let rl=e=>!or(e);function Fv(e){typeof e=="function"&&(rl=t=>t.startsWith("on")?!or(t):e(t))}try{Fv(require("@emotion/is-prop-valid").default)}catch{}function kv(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(rl(o)||n===!0&&or(o)||!t&&!or(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const ir=E.createContext({});function sr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Mn(e){return typeof e=="string"||Array.isArray(e)}const ti=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ni=["initial",...ti];function ar(e){return sr(e.animate)||ni.some(t=>Mn(e[t]))}function ol(e){return!!(ar(e)||e.variants)}function Iv(e,t){if(ar(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Mn(n)?n:void 0,animate:Mn(r)?r:void 0}}return e.inherit!==!1?t:{}}function Nv(e){const{initial:t,animate:n}=Iv(e,E.useContext(ir));return E.useMemo(()=>({initial:t,animate:n}),[il(t),il(n)])}function il(e){return Array.isArray(e)?e.join(" "):e}const Dn={};function Lv(e){for(const t in e)Dn[t]=e[t],xo(t)&&(Dn[t].isCSSVariable=!0)}function sl(e,{layout:t,layoutId:n}){return Kt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Dn[e]||e==="opacity")}const Rv={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_v=Ht.length;function jv(e,t,n){let r="",o=!0;for(let i=0;i<_v;i++){const s=Ht[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=Wc(a,Xo[s]);if(!c){o=!1;const u=Rv[s]||s;r+=`${u}(${l}) `}n&&(t[s]=l)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function ri(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(Kt.has(c)){s=!0;continue}else if(xo(c)){o[c]=l;continue}else{const u=Wc(l,Xo[c]);c.startsWith("origin")?(a=!0,i[c]=u):r[c]=u}}if(t.transform||(s||n?r.transform=jv(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 oi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function al(e,t,n){for(const r in t)!Te(t[r])&&!sl(r,n)&&(e[r]=t[r])}function Bv({transformTemplate:e},t){return E.useMemo(()=>{const n=oi();return ri(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Uv(e,t){const n=e.style||{},r={};return al(r,n,e),Object.assign(r,Bv(e,t)),r}function $v(e,t){const n={},r=Uv(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 Wv={offset:"stroke-dashoffset",array:"stroke-dasharray"},zv={offset:"strokeDashoffset",array:"strokeDasharray"};function Zv(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Wv:zv;e[i.offset]=_.transform(-r);const s=_.transform(t),a=_.transform(n);e[i.array]=`${s} ${a}`}function cl(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},c,l,u){if(ri(e,a,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&Zv(d,o,i,s,!1)}const ll=()=>({...oi(),attrs:{}}),ul=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Hv(e,t,n,r){const o=E.useMemo(()=>{const i=ll();return cl(i,t,ul(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};al(i,e.style,e),o.style={...i,...o.style}}return o}const Kv=["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 ii(e){return typeof e!="string"||e.includes("-")?!1:!!(Kv.indexOf(e)>-1||/[A-Z]/u.test(e))}function Gv(e,t,n,{latestValues:r},o,i=!1){const a=(ii(e)?Hv:$v)(t,r,o,e),c=kv(t,typeof e=="string",i),l=e!==E.Fragment?{...c,...a,ref:n}:{},{children:u}=t,d=E.useMemo(()=>Te(u)?u.get():u,[u]);return E.createElement(e,{...l,children:d})}function dl(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function si(e,t,n,r){if(typeof t=="function"){const[o,i]=dl(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]=dl(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function cr(e){return Te(e)?e.get():e}function Yv({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Xv(n,r,o,e),renderState:t()}}function Xv(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=cr(i[h]);let{initial:s,animate:a}=e;const c=ar(e),l=ol(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 d=u?a:s;if(d&&typeof d!="boolean"&&!sr(d)){const h=Array.isArray(d)?d:[d];for(let p=0;p<h.length;p++){const y=si(e,h[p]);if(y){const{transitionEnd:m,transition:g,...v}=y;for(const x in v){let T=v[x];if(Array.isArray(T)){const C=u?T.length-1:0;T=T[C]}T!==null&&(o[x]=T)}for(const x in m)o[x]=m[x]}}}return o}const fl=e=>(t,n)=>{const r=E.useContext(ir),o=E.useContext(Yn),i=()=>Yv(e,t,r,o);return n?i():fo(i)};function ai(e,t,n){var i;const{style:r}=e,o={};for(const s in r)(Te(r[s])||t.style&&Te(t.style[s])||sl(s,e)||((i=n==null?void 0:n.getValue(s))==null?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return o}const qv=fl({scrapeMotionValuesFromProps:ai,createRenderState:oi});function hl(e,t,n){const r=ai(e,t,n);for(const o in e)if(Te(e[o])||Te(t[o])){const i=Ht.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const Qv=fl({scrapeMotionValuesFromProps:hl,createRenderState:ll}),Jv=Symbol.for("motionComponentSymbol");function Xt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function e1(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):Xt(n)&&(n.current=r))},[t])}const ci=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),pl="data-"+ci("framerAppearId"),ml=E.createContext({});function t1(e,t,n,r,o){var m,g;const{visualElement:i}=E.useContext(ir),s=E.useContext(tl),a=E.useContext(Yn),c=E.useContext(ei).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,d=E.useContext(ml);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&n1(l.current,n,o,d);const h=E.useRef(!1);E.useInsertionEffect(()=>{u&&h.current&&u.update(n,a)});const p=n[pl],y=E.useRef(!!p&&!((m=window.MotionHandoffIsComplete)!=null&&m.call(window,p))&&((g=window.MotionHasOptimisedAnimation)==null?void 0:g.call(window,p)));return Ba(()=>{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(()=>{var v;(v=window.MotionHandoffMarkAsComplete)==null||v.call(window,p)}),y.current=!1),u.enteringChildren=void 0)}),u}function n1(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:gl(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Xt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function gl(e){if(e)return e.options.allowProjection!==!1?e.projection:gl(e.parent)}function li(e,{forwardMotionProps:t=!1}={},n,r){n&&Ov(n);const o=ii(e)?Qv:qv;function i(a,c){let l;const u={...E.useContext(ei),...a,layoutId:r1(a)},{isStatic:d}=u,h=Nv(a),p=o(a,d);if(!d&&ho){o1(u,n);const y=i1(u);l=y.MeasureLayout,h.visualElement=t1(e,p,u,r,y.ProjectionNode)}return b.jsxs(ir.Provider,{value:h,children:[l&&h.visualElement?b.jsx(l,{visualElement:h.visualElement,...u}):null,Gv(e,a,e1(p,h.visualElement,c),p,d,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=E.forwardRef(i);return s[Jv]=e,s}function r1({layoutId:e}){const t=E.useContext(uo).id;return t&&e!==void 0?t+"-"+e:e}function o1(e,t){const n=E.useContext(tl).strict;if(z.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?$t(!1,r,"lazy-strict-mode"):Xe(!1,r,"lazy-strict-mode")}}function i1(e){const{drag:t,layout:n}=Yt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function s1(e,t){if(typeof Proxy>"u")return li;const n=new Map,r=(i,s)=>li(i,s,e,t),o=(i,s)=>(z.env.NODE_ENV!=="production"&&bo(!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,li(s,void 0,e,t)),n.get(s))})}function yl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function a1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function c1(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 ui(e){return e===void 0||e===1}function di({scale:e,scaleX:t,scaleY:n}){return!ui(e)||!ui(t)||!ui(n)}function Ot(e){return di(e)||vl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vl(e){return bl(e.x)||bl(e.y)}function bl(e){return e&&e!=="0%"}function lr(e,t,n){const r=e-n,o=t*r;return n+o}function wl(e,t,n,r,o){return o!==void 0&&(e=lr(e,o,r)),lr(e,n,r)+t}function fi(e,t=0,n=1,r,o){e.min=wl(e.min,t,n,r,o),e.max=wl(e.max,t,n,r,o)}function Tl(e,{x:t,y:n}){fi(e.x,t.translate,t.scale,t.originPoint),fi(e.y,n.translate,n.scale,n.originPoint)}const El=.999999999999,xl=1.0000000000001;function l1(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&&Qt(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Tl(e,s)),r&&Ot(i.latestValues)&&Qt(e,i.latestValues))}t.x<xl&&t.x>El&&(t.x=1),t.y<xl&&t.y>El&&(t.y=1)}function qt(e,t){e.min=e.min+t,e.max=e.max+t}function Sl(e,t,n,r,o=.5){const i=ne(e.min,e.max,o);fi(e,t,n,i,r)}function Qt(e,t){Sl(e.x,t.x,t.scaleX,t.scale,t.originX),Sl(e.y,t.y,t.scaleY,t.scale,t.originY)}function Al(e,t){return yl(c1(e.getBoundingClientRect(),t))}function u1(e,t,n){const r=Al(e,n),{scroll:o}=t;return o&&(qt(r.x,o.offset.x),qt(r.y,o.offset.y)),r}const Cl=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jt=()=>({x:Cl(),y:Cl()}),Pl=()=>({min:0,max:0}),ue=()=>({x:Pl(),y:Pl()}),hi={current:null},Ml={current:!1};function d1(){if(Ml.current=!0,!!ho)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hi.current=e.matches;e.addEventListener("change",t),t()}else hi.current=!1}const f1=new WeakMap;function h1(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,Gt(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,Gt(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Dl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class p1{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=Ho,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=Se.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ee.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=ar(n),this.isVariantNode=ol(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const p=d[h];c[h]!==void 0&&Te(p)&&p.set(c[h])}}mount(t){var n;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((r,o)=>this.bindToMotionValue(o,r)),Ml.current||d1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hi.current,z.env.NODE_ENV!=="production"&&bo(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),st(this.notifyUpdate),st(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Kt.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ee.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 Yt){const n=Yt[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<Dl.length;r++){const o=Dl[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=h1(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=Gt(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"&&(Ua(r)||Wa(r))?r=parseFloat(r):!Sv(r)&&ct.test(n)&&(r=$c(t,n)),this.setBaseTarget(t,Te(r)?r.get():r)),Te(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=si(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);s&&(r=s[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 vo),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){qo.render(this.render)}}class Ol extends p1{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 Vl(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o==null||o.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function m1(e){return window.getComputedStyle(e)}class g1 extends Ol{constructor(){super(...arguments),this.type="html",this.renderInstance=Vl}readValueFromInstance(t,n){var r;if(Kt.has(n))return(r=this.projection)!=null&&r.isProjecting?Uo(n):Vy(t,n);{const o=m1(t),i=(xo(n)?o.getPropertyValue(n):o[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Al(t,n)}build(t,n,r){ri(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return ai(t,n,r)}}const Fl=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 y1(e,t,n,r){Vl(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Fl.has(o)?o:ci(o),t.attrs[o])}class v1 extends Ol{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ue}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Kt.has(n)){const r=Uc(n);return r&&r.default||0}return n=Fl.has(n)?n:ci(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return hl(t,n,r)}build(t,n,r){cl(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){y1(t,n,r,o)}mount(t){this.isSVGTag=ul(t.tagName),super.mount(t)}}const b1=(e,t)=>ii(e)?new v1(t):new g1(t,{allowProjection:e!==E.Fragment});function en(e,t,n){const r=e.getProps();return si(r,t,n!==void 0?n:r.custom,e)}const pi=e=>Array.isArray(e);function w1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gt(n))}function T1(e){return pi(e)?e[e.length-1]||0:e}function E1(e,t){const n=en(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=T1(i[s]);w1(e,s,a)}}function x1(e){return!!(Te(e)&&e.add)}function mi(e,t){const n=e.getValue("willChange");if(x1(n))return n.add(t);if(!n&&qe.WillChange){const r=new qe.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function kl(e){return e.props[pl]}const S1=e=>e!==null;function A1(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(S1),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const C1={type:"spring",stiffness:500,damping:25,restSpeed:10},P1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),M1={type:"keyframes",duration:.8},D1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},O1=(e,{keyframes:t})=>t.length>2?M1:Kt.has(e)?e.startsWith("scale")?P1(t[1]):C1:D1;function V1({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 gi=(e,t,n,r={},o,i)=>s=>{const a=Go(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-ke(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};V1(a)||Object.assign(u,O1(e,u)),u.duration&&(u.duration=ke(u.duration)),u.repeatDelay&&(u.repeatDelay=ke(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ko(u),u.delay===0&&(d=!0)),(qe.instantAnimations||qe.skipAnimations)&&(d=!0,Ko(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const h=A1(u.keyframes,a);if(h!==void 0){ee.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new _o(u):new ev(u)};function F1({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Il(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 d=e.getValue(u,e.latestValues[u]??null),h=a[u];if(h===void 0||l&&F1(l,u))continue;const p={delay:n,...Go(i||{},u)},y=d.get();if(y!==void 0&&!d.isAnimating&&!Array.isArray(h)&&h===y&&!p.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const v=kl(e);if(v){const x=window.MotionHandoffAnimation(v,u,ee);x!==null&&(p.startTime=x,m=!0)}}mi(e,u),d.start(gi(u,d,h,e.shouldReduceMotion&&Lc.has(u)?{type:!1}:p,e,m));const g=d.animation;g&&c.push(g)}return s&&Promise.all(c).then(()=>{ee.update(()=>{s&&E1(e,s)})}),c}function Nl(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 yi(e,t,n={}){var c;const r=en(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Il(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=o;return k1(e,t,l,u,d,h,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function k1(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(yi(c,t,{...s,delay:n+(typeof r=="function"?0:r)+Nl(e.variantChildren,c,r,o,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function I1(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>yi(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=yi(e,t,n);else{const o=typeof t=="function"?en(e,t,n.custom):t;r=Promise.all(Il(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ll(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 N1=ni.length;function Rl(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Rl(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<N1;n++){const r=ni[n],o=e.props[r];(Mn(o)||o===!1)&&(t[r]=o)}return t}const L1=[...ti].reverse(),R1=ti.length;function _1(e){return t=>Promise.all(t.map(({animation:n,options:r})=>I1(e,n,r)))}function j1(e){let t=_1(e),n=_l(),r=!0;const o=c=>(l,u)=>{var h;const d=en(e,u,c==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(d){const{transition:p,transitionEnd:y,...m}=d;l={...l,...m,...y}}return l};function i(c){t=c(e)}function s(c){const{props:l}=e,u=Rl(e.parent)||{},d=[],h=new Set;let p={},y=1/0;for(let g=0;g<R1;g++){const v=L1[g],x=n[v],T=l[v]!==void 0?l[v]:u[v],C=Mn(T),w=v===c?x.isActive:null;w===!1&&(y=g);let P=T===u[v]&&T!==l[v]&&C;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),x.protectedKeys={...p},!x.isActive&&w===null||!T&&!x.prevProp||sr(T)||typeof T=="boolean")continue;const A=B1(x.prevProp,T);let M=A||v===c&&x.isActive&&!P&&C||g>y&&C,k=!1;const U=Array.isArray(T)?T:[T];let oe=U.reduce(o(v),{});w===!1&&(oe={});const{prevResolvedValues:me={}}=x,ie={...me,...oe},R=$=>{M=!0,h.has($)&&(k=!0,h.delete($)),x.needsAnimating[$]=!0;const D=e.getValue($);D&&(D.liveStyle=!1)};for(const $ in ie){const D=oe[$],fe=me[$];if(p.hasOwnProperty($))continue;let we=!1;pi(D)&&pi(fe)?we=!Ll(D,fe):we=D!==fe,we?D!=null?R($):h.add($):D!==void 0&&h.has($)?R($):x.protectedKeys[$]=!0}x.prevProp=T,x.prevResolvedValues=oe,x.isActive&&(p={...p,...oe}),r&&e.blockInitialAnimation&&(M=!1);const Y=P&&A;M&&(!Y||k)&&d.push(...U.map($=>{const D={type:v};if(typeof $=="string"&&r&&!Y&&e.manuallyAnimateOnMount&&e.parent){const{parent:fe}=e,we=en(fe,$);if(fe.enteringChildren&&we){const{delayChildren:Pe}=we.transition||{};D.delay=Nl(fe.enteringChildren,e,Pe)}}return{animation:$,options:D}}))}if(h.size){const g={};if(typeof l.initial!="boolean"){const v=en(e,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(g.transition=v.transition)}h.forEach(v=>{const x=e.getBaseTarget(v),T=e.getValue(v);T&&(T.liveStyle=!0),g[v]=x??null}),d.push({animation:g})}let m=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}function a(c,l){var d;if(n[c].isActive===l)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(h=>{var p;return(p=h.animationState)==null?void 0:p.setActive(c,l)}),n[c].isActive=l;const u=s(c);for(const h in n)n[h].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=_l(),r=!0}}}function B1(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ll(t,e):!1}function Vt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _l(){return{animate:Vt(!0),whileInView:Vt(),whileHover:Vt(),whileTap:Vt(),whileDrag:Vt(),whileFocus:Vt(),exit:Vt()}}class lt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class U1 extends lt{constructor(t){super(t),t.animationState||(t.animationState=j1(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();sr(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let $1=0;class W1 extends lt{constructor(){super(...arguments),this.id=$1++}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 z1={animation:{Feature:U1},exit:{Feature:W1}};function On(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Vn(e){return{point:{x:e.pageX,y:e.pageY}}}const Z1=e=>t=>Qo(t)&&e(t,Vn(t));function Fn(e,t,n,r){return On(e,t,Z1(n),r)}const jl=1e-4,H1=1-jl,K1=1+jl,Bl=.01,G1=0-Bl,Y1=0+Bl;function xe(e){return e.max-e.min}function X1(e,t,n){return Math.abs(e-t)<=n}function Ul(e,t,n,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=xe(n)/xe(t),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=H1&&e.scale<=K1||isNaN(e.scale))&&(e.scale=1),(e.translate>=G1&&e.translate<=Y1||isNaN(e.translate))&&(e.translate=0)}function kn(e,t,n,r){Ul(e.x,t.x,n.x,r?r.originX:void 0),Ul(e.y,t.y,n.y,r?r.originY:void 0)}function $l(e,t,n){e.min=n.min+t.min,e.max=e.min+xe(t)}function q1(e,t,n){$l(e.x,t.x,n.x),$l(e.y,t.y,n.y)}function Wl(e,t,n){e.min=t.min-n.min,e.max=e.min+xe(t)}function In(e,t,n){Wl(e.x,t.x,n.x),Wl(e.y,t.y,n.y)}function Ve(e){return[e("x"),e("y")]}const zl=({current:e})=>e?e.ownerDocument.defaultView:null,Zl=(e,t)=>Math.abs(e-t);function Q1(e,t){const n=Zl(e.x,t.x),r=Zl(e.y,t.y);return Math.sqrt(n**2+r**2)}class Hl{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=bi(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=Q1(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:v,onMove:x}=this.handlers;p||(v&&v(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=vi(p,this.transformPagePoint),ee.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 v=bi(h.type==="pointercancel"?this.lastMoveEventInfo:vi(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(h,v),m&&m(h,v)},!Qo(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=Vn(t),c=vi(a,this.transformPagePoint),{point:l}=c,{timestamp:u}=ve;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,bi(c,this.history)),this.removeListeners=wn(Fn(this.contextWindow,"pointermove",this.handlePointerMove),Fn(this.contextWindow,"pointerup",this.handlePointerUp),Fn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),st(this.updatePoint)}}function vi(e,t){return t?{point:t(e.point)}:e}function Kl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bi({point:e},t){return{point:e,delta:Kl(e,Gl(t)),offset:Kl(e,J1(t)),velocity:eb(t,.1)}}function J1(e){return e[0]}function Gl(e){return e[e.length-1]}function eb(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Gl(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ke(t)));)n--;if(!r)return{x:0,y:0};const i=Ue(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const 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?ne(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ne(n,e,r.max):Math.min(e,n)),e}function Yl(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 nb(e,{top:t,left:n,bottom:r,right:o}){return{x:Yl(e.x,n,o),y:Yl(e.y,t,r)}}function Xl(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 rb(e,t){return{x:Xl(e.x,t.x),y:Xl(e.y,t.y)}}function ob(e,t){let n=.5;const r=xe(e),o=xe(t);return o>r?n=Tn(t.min,t.max-r,e.min):r>o&&(n=Tn(e.min,e.max-o,t.min)),Ye(0,1,n)}function ib(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 wi=.35;function sb(e=wi){return e===!1?e=0:e===!0&&(e=wi),{x:ql(e,"left","right"),y:ql(e,"top","bottom")}}function ql(e,t,n){return{min:Ql(e,t),max:Ql(e,n)}}function Ql(e,t){return typeof e=="number"?e:e[t]||0}const ab=new WeakMap;class cb{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=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Vn(d).point)},s=(d,h)=>{const{drag:p,dragPropagation:y,onDragStart:m}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=gv(p),!this.openDragLock))return;this.latestPointerEvent=d,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),Ve(v=>{let x=this.getAxisMotionValue(v).get()||0;if($e.test(x)){const{projection:T}=this.visualElement;if(T&&T.layout){const C=T.layout.layoutBox[v];C&&(x=xe(C)*(parseFloat(x)/100))}}this.originPoint[v]=x}),m&&ee.postRender(()=>m(d,h)),mi(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:m,onDrag:g}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:v}=h;if(y&&this.currentDirection===null){this.currentDirection=lb(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,v),this.updateAxis("y",h.point,v),this.visualElement.render(),g&&g(d,h)},c=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>Ve(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)==null?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Hl(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:zl(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&&ee.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||!ur(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(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,o=this.constraints;t&&Xt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=nb(r.layoutBox,t):this.constraints=!1,this.elastic=sb(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ve(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=ib(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Xt(t))return!1;const r=t.current;Xe(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=u1(r,o.root,this.visualElement.getTransformPagePoint());let s=rb(o.layout.layoutBox,i);if(n){const a=n(a1(s));this.hasMutatedConstraints=!!a,a&&(s=yl(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Ve(u=>{if(!ur(u,n,this.currentDirection))return;let d=c&&c[u]||{};s&&(d={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,...d};return this.startAxisValueAnimation(u,y)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return mi(this.visualElement,t),r.start(gi(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ve(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ve(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ve(n=>{const{drag:r}=this.getProps();if(!ur(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]-ne(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Xt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ve(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const c=a.get();o[s]=ob({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(),Ve(s=>{if(!ur(s,t,null))return;const a=this.getAxisMotionValue(s),{min:c,max:l}=this.constraints[s];a.set(ne(c,l,o[s]))})}addListeners(){if(!this.visualElement.current)return;ab.set(this.visualElement,this);const t=this.visualElement.current,n=Fn(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Xt(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()),ee.read(r);const s=On(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(Ve(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.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=wi,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function ur(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function lb(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ub extends lt{constructor(t){super(t),this.removeGroupControls=Oe,this.removeListeners=Oe,this.controls=new cb(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Oe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Jl=e=>(t,n)=>{e&&ee.postRender(()=>e(t,n))};class db extends lt{constructor(){super(...arguments),this.removePointerDownListener=Oe}onPointerDown(t){this.session=new Hl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Jl(t),onStart:Jl(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&ee.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Fn(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 dr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Nn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(_.test(e))e=parseFloat(e);else return e;const n=eu(e,t.target.x),r=eu(e,t.target.y);return`${n}% ${r}%`}},fb={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ct.parse(e);if(o.length>5)return r;const i=ct.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=ne(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 Ti=!1;class hb extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Lv(pb),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Ti&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),dr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Ti=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||ee.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),qo.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Ti=!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 tu(e){const[t,n]=Jc(),r=E.useContext(uo);return b.jsx(hb,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(ml),isPresent:t,safeToRemove:n})}const pb={borderRadius:{...Nn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nn,borderTopRightRadius:Nn,borderBottomLeftRadius:Nn,borderBottomRightRadius:Nn,boxShadow:fb};function mb(e,t,n){const r=Te(e)?e:Gt(e);return r.start(gi("",r,t,n)),r.animation}const gb=(e,t)=>e.depth-t.depth;class yb{constructor(){this.children=[],this.isDirty=!1}add(t){po(this.children,t),this.isDirty=!0}remove(t){mo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(gb),this.isDirty=!1,this.children.forEach(t)}}function vb(e,t){const n=Se.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(st(r),e(i-t))};return ee.setup(r,!0),()=>st(r)}const nu=["TopLeft","TopRight","BottomLeft","BottomRight"],bb=nu.length,ru=e=>typeof e=="string"?parseFloat(e):e,ou=e=>typeof e=="number"||_.test(e);function wb(e,t,n,r,o,i){o?(e.opacity=ne(0,n.opacity??1,Tb(r)),e.opacityExit=ne(t.opacity??1,0,Eb(r))):i&&(e.opacity=ne(t.opacity??1,n.opacity??1,r));for(let s=0;s<bb;s++){const a=`border${nu[s]}Radius`;let c=iu(t,a),l=iu(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||ou(c)===ou(l)?(e[a]=Math.max(ne(ru(c),ru(l),r),0),($e.test(l)||$e.test(c))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=ne(t.rotate||0,n.rotate||0,r))}function iu(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Tb=su(0,.5,Qa),Eb=su(.5,.95,Oe);function su(e,t,n){return r=>r<e?0:r>t?1:n(Tn(e,t,r))}function au(e,t){e.min=t.min,e.max=t.max}function Fe(e,t){au(e.x,t.x),au(e.y,t.y)}function cu(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function lu(e,t,n,r,o){return e-=t,e=lr(e,1/n,r),o!==void 0&&(e=lr(e,1/o,r)),e}function xb(e,t=0,n=1,r=.5,o,i=e,s=e){if($e.test(t)&&(t=parseFloat(t),t=ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ne(i.min,i.max,r);e===i&&(a-=t),e.min=lu(e.min,t,n,a,o),e.max=lu(e.max,t,n,a,o)}function uu(e,t,[n,r,o],i,s){xb(e,t[n],t[r],t[o],t.scale,i,s)}const Sb=["x","scaleX","originX"],Ab=["y","scaleY","originY"];function du(e,t,n,r){uu(e.x,t,Sb,n?n.x:void 0,r?r.x:void 0),uu(e.y,t,Ab,n?n.y:void 0,r?r.y:void 0)}function fu(e){return e.translate===0&&e.scale===1}function hu(e){return fu(e.x)&&fu(e.y)}function pu(e,t){return e.min===t.min&&e.max===t.max}function Cb(e,t){return pu(e.x,t.x)&&pu(e.y,t.y)}function mu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function gu(e,t){return mu(e.x,t.x)&&mu(e.y,t.y)}function yu(e){return xe(e.x)/xe(e.y)}function vu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Pb{constructor(){this.members=[]}add(t){po(this.members,t),t.scheduleRender()}remove(t){if(mo(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 Mb(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0: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:d,rotateY:h,skewX:p,skewY:y}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}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 Ei=["","X","Y","Z"],Db=1e3;let Ob=0;function xi(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function bu(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",ee,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&bu(r)}function wu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Ob++,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(kb),this.nodes.forEach(Rb),this.nodes.forEach(_b),this.nodes.forEach(Ib)},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 yb)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new vo),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=Qc(s)&&!Ev(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,d=0;const h=()=>this.root.updateBlockedByResize=!1;ee.read(()=>{d=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=vb(h,250),dr.hasAnimatedSinceResize&&(dr.hasAnimatedSinceResize=!1,this.nodes.forEach(xu)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||l.getDefaultTransition()||Wb,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=l.getProps(),v=!this.targetLayout||!gu(this.targetLayout,p),x=!d&&h;if(this.options.layoutRoot||this.resumeFrom||x||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Go(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 d||xu(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(),st(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(jb),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&&bu(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.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(Tu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Eu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Lb),this.nodes.forEach(Vb),this.nodes.forEach(Fb)):this.nodes.forEach(Eu),this.clearAllSnapshots();const a=Se.now();ve.delta=Ye(0,1e3/60,a-ve.timestamp),ve.timestamp=a,ve.isProcessing=!0,Eo.update.process(ve),Eo.preRender.process(ve),Eo.render.process(ve),ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Nb),this.sharedNodes.forEach(Bb)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ee.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ee.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xe(this.snapshot.measuredBox.x)&&!xe(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&&!hu(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;s&&this.instance&&(a||Ot(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)),zb(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:s}=this.options;if(!s)return ue();const a=s.measureViewportBox();if(!(((l=this.scroll)==null?void 0:l.wasRoot)||this.path.some(Zb))){const{scroll:u}=this.root;u&&(qt(a.x,u.offset.x),qt(a.y,u.offset.y))}return a}removeElementScroll(s){var c;const a=ue();if(Fe(a,s),(c=this.scroll)!=null&&c.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:h}=u;u!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&Fe(a,s),qt(a.x,d.offset.x),qt(a.y,d.offset.y))}return a}applyTransform(s,a=!1){const c=ue();Fe(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&&Qt(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Ot(u.latestValues)&&Qt(c,u.latestValues)}return Ot(this.latestValues)&&Qt(c,this.latestValues),c}removeTransform(s){const a=ue();Fe(a,s);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!Ot(l.latestValues))continue;di(l.latestValues)&&l.updateSnapshot();const u=ue(),d=l.measurePageBox();Fe(u,d),du(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Ot(this.latestValues)&&du(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){var h;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||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!(!this.layout||!(u||d))){if(this.resolvedRelativeTargetAt=ve.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),In(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Fe(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(),q1(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Fe(this.target,this.layout.layoutBox),Tl(this.target,this.targetDelta)):Fe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),In(this.relativeTargetOrigin,this.target,p.target),Fe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||di(this.parent.latestValues)||vl(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var y;const s=this.getLead(),a=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.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;Fe(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;l1(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():(cu(this.prevProjectionDelta.x,this.projectionDelta.x),cu(this.prevProjectionDelta.y,this.projectionDelta.y)),kn(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!vu(this.projectionDelta.x,this.prevProjectionDelta.x)||!vu(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){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),s){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Jt(),this.projectionDelta=Jt(),this.projectionDeltaWithTransform=Jt()}setAnimationOrigin(s,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},d=Jt();(!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(),v=!g||g.members.length<=1,x=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some($b));this.animationProgress=0;let T;this.mixTargetDelta=C=>{const w=C/1e3;Su(d.x,s.x,w),Su(d.y,s.y,w),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(In(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ub(this.relativeTarget,this.relativeTargetOrigin,h,w),T&&Cb(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=ue()),Fe(T,this.relativeTarget)),m&&(this.animationValues=u,wb(u,l,this.latestValues,w,x,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var a,c,l;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(l=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||l.stop(),this.pendingAnimation&&(st(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ee.update(()=>{dr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Gt(0)),this.currentAnimation=mb(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},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(Db),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&&Du(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||ue();const d=xe(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+d;const h=xe(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+h}Fe(a,c),Qt(a,u),kn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Pb),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(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())==null?void 0:a.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&&xi("z",s,l,this.animationValues);for(let u=0;u<Ei.length;u++)xi(`rotate${Ei[u]}`,s,l,this.animationValues),xi(`skew${Ei[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=cr(a==null?void 0: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=cr(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ot(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let d=Mb(this.projectionDeltaWithTransform,this.treeScale,u);c&&(d=c(u,d)),s.transform=d;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 Dn){if(u[y]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:v}=Dn[y],x=d==="none"?u[y]:m(u[y],l);if(g){const T=g.length;for(let C=0;C<T;C++)s[g[C]]=x}else v?this.options.visualElement.renderState.vars[y]=x:s[y]=x}this.options.layoutId&&(s.pointerEvents=l===this?cr(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Tu),this.root.sharedNodes.clear()}}}function Vb(e){e.updateLayout()}function Fb(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;i==="size"?Ve(d=>{const h=s?t.measuredBox[d]:t.layoutBox[d],p=xe(h);h.min=r[d].min,h.max=h.min+p}):Du(i,t.layoutBox,r)&&Ve(d=>{const h=s?t.measuredBox[d]:t.layoutBox[d],p=xe(r[d]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=Jt();kn(a,r,t.layoutBox);const c=Jt();s?kn(c,e.applyTransform(o,!0),t.measuredBox):kn(c,r,t.layoutBox);const l=!hu(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:p}=d;if(h&&p){const y=ue();In(y,t.layoutBox,h.layoutBox);const m=ue();In(m,r,p.layoutBox),gu(y,m)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function kb(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 Ib(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Nb(e){e.clearSnapshot()}function Tu(e){e.clearMeasurements()}function Eu(e){e.isLayoutDirty=!1}function Lb(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function xu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Rb(e){e.resolveTargetDelta()}function _b(e){e.calcProjection()}function jb(e){e.resetSkewAndRotation()}function Bb(e){e.removeLeadSnapshot()}function Su(e,t,n){e.translate=ne(t.translate,0,n),e.scale=ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Au(e,t,n,r){e.min=ne(t.min,n.min,r),e.max=ne(t.max,n.max,r)}function Ub(e,t,n,r){Au(e.x,t.x,n.x,r),Au(e.y,t.y,n.y,r)}function $b(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Wb={duration:.45,ease:[.4,0,.1,1]},Cu=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Pu=Cu("applewebkit/")&&!Cu("chrome/")?Math.round:Oe;function Mu(e){e.min=Pu(e.min),e.max=Pu(e.max)}function zb(e){Mu(e.x),Mu(e.y)}function Du(e,t,n){return e==="position"||e==="preserve-aspect"&&!X1(yu(t),yu(n),.2)}function Zb(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Hb=wu({attachResizeListener:(e,t)=>On(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Si={current:void 0},Ou=wu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Si.current){const e=new Hb({});e.mount(window),e.setOptions({layoutScroll:!0}),Si.current=e}return Si.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Kb={pan:{Feature:db},drag:{Feature:ub,ProjectionNode:Ou,MeasureLayout:tu}};function Vu(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&&ee.postRender(()=>i(t,Vn(t)))}class Gb extends lt{mount(){const{current:t}=this.node;t&&(this.unmount=yv(t,(n,r)=>(Vu(this.node,r,"Start"),o=>Vu(this.node,o,"End"))))}unmount(){}}class Yb extends lt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=wn(On(this.node.current,"focus",()=>this.onFocus()),On(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Fu(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&&ee.postRender(()=>i(t,Vn(t)))}class Xb extends lt{mount(){const{current:t}=this.node;t&&(this.unmount=Tv(t,(n,r)=>(Fu(this.node,r,"Start"),(o,{success:i})=>Fu(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ai=new WeakMap,Ci=new WeakMap,qb=e=>{const t=Ai.get(e.target);t&&t(e)},Qb=e=>{e.forEach(qb)};function Jb({root:e,...t}){const n=e||document;Ci.has(n)||Ci.set(n,{});const r=Ci.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Qb,{root:e,...t})),r[o]}function ew(e,t,n){const r=Jb(t);return Ai.set(e,n),r.observe(e),()=>{Ai.delete(e),r.unobserve(e)}}const tw={some:0,all:1};class nw extends lt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,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:d}=this.node.getProps(),h=l?u:d;h&&h(c)};return ew(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(rw(t,n))&&this.startObserver()}unmount(){}}function rw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ow={...z1,...{inView:{Feature:nw},tap:{Feature:Xb},focus:{Feature:Yb},hover:{Feature:Gb}},...Kb,...{layout:{ProjectionNode:Ou,MeasureLayout:tu}}},Pi=s1(ow,b1),iw="flex flex-col relative w-full cursor-text",sw=`
|
|
90
|
+
`),()=>{m.contains(y)&&m.removeChild(y)}},[t]),v.jsx(Cv,{isPresent:t,childRef:i,sizeRef:s,children:d.cloneElement(e,{ref:i})})}const Mv=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:c})=>{const l=fo(Dv),u=T.useId();let f=!0,h=T.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}),T.useMemo(()=>{l.forEach((p,y)=>l.set(y,!1))},[n]),d.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=v.jsx(Pv,{isPresent:n,anchorX:a,root:c,children:e})),v.jsx(Yn.Provider,{value:h,children:e})};function Dv(){return new Map}function Jc(e=!0){const t=T.useContext(Yn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=T.useId();T.useEffect(()=>{if(e)return o(i)},[e]);const s=T.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const rr=e=>e.key||"";function el(e){const t=[];return T.Children.forEach(e,n=>{T.isValidElement(n)&&t.push(n)}),t}const Ov=({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]=Jc(s),f=T.useMemo(()=>el(e),[e]),h=s&&!l?[]:f.map(rr),p=T.useRef(!0),y=T.useRef(f),m=fo(()=>new Map),[g,b]=T.useState(f),[x,E]=T.useState(f);Ua(()=>{p.current=!1,y.current=f;for(let C=0;C<x.length;C++){const A=rr(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=rr(M);h.includes(N)||(C.splice(A,0,M),P.push(M))}return i==="wait"&&P.length&&(C=P),E(el(C)),b(f),null}z.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}=T.useContext(uo);return v.jsx(v.Fragment,{children:x.map(C=>{const A=rr(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(ee=>{ee||(j=!1)}),j&&(w?.(),E(y.current),s&&u?.(),r&&r())};return v.jsx(Mv,{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)})})},tl=T.createContext({strict:!1}),nl={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"]},Yt={};for(const e in nl)Yt[e]={isEnabled:t=>nl[e].some(n=>!!t[n])};function Vv(e){for(const t in e)Yt[t]={...Yt[t],...e[t]}}const Fv=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 or(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Fv.has(e)}let rl=e=>!or(e);function kv(e){typeof e=="function"&&(rl=t=>t.startsWith("on")?!or(t):e(t))}try{kv(require("@emotion/is-prop-valid").default)}catch{}function Iv(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(rl(o)||n===!0&&or(o)||!t&&!or(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const ir=T.createContext({});function sr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Mn(e){return typeof e=="string"||Array.isArray(e)}const ni=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ri=["initial",...ni];function ar(e){return sr(e.animate)||ri.some(t=>Mn(e[t]))}function ol(e){return!!(ar(e)||e.variants)}function Nv(e,t){if(ar(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Mn(n)?n:void 0,animate:Mn(r)?r:void 0}}return e.inherit!==!1?t:{}}function Lv(e){const{initial:t,animate:n}=Nv(e,T.useContext(ir));return T.useMemo(()=>({initial:t,animate:n}),[il(t),il(n)])}function il(e){return Array.isArray(e)?e.join(" "):e}const Dn={};function Rv(e){for(const t in e)Dn[t]=e[t],xo(t)&&(Dn[t].isCSSVariable=!0)}function sl(e,{layout:t,layoutId:n}){return Kt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Dn[e]||e==="opacity")}const _v={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},jv=Ht.length;function Bv(e,t,n){let r="",o=!0;for(let i=0;i<jv;i++){const s=Ht[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=Wc(a,qo[s]);if(!c){o=!1;const u=_v[s]||s;r+=`${u}(${l}) `}n&&(t[s]=l)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function oi(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(Kt.has(c)){s=!0;continue}else if(xo(c)){o[c]=l;continue}else{const u=Wc(l,qo[c]);c.startsWith("origin")?(a=!0,i[c]=u):r[c]=u}}if(t.transform||(s||n?r.transform=Bv(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 ii=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function al(e,t,n){for(const r in t)!we(t[r])&&!sl(r,n)&&(e[r]=t[r])}function Uv({transformTemplate:e},t){return T.useMemo(()=>{const n=ii();return oi(n,t,e),Object.assign({},n.vars,n.style)},[t])}function $v(e,t){const n=e.style||{},r={};return al(r,n,e),Object.assign(r,Uv(e,t)),r}function Wv(e,t){const n={},r=$v(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 zv={offset:"stroke-dashoffset",array:"stroke-dasharray"},Zv={offset:"strokeDashoffset",array:"strokeDasharray"};function Hv(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?zv:Zv;e[i.offset]=R.transform(-r);const s=R.transform(t),a=R.transform(n);e[i.array]=`${s} ${a}`}function cl(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},c,l,u){if(oi(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&&Hv(f,o,i,s,!1)}const ll=()=>({...ii(),attrs:{}}),ul=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Kv(e,t,n,r){const o=T.useMemo(()=>{const i=ll();return cl(i,t,ul(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};al(i,e.style,e),o.style={...i,...o.style}}return o}const Gv=["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 si(e){return typeof e!="string"||e.includes("-")?!1:!!(Gv.indexOf(e)>-1||/[A-Z]/u.test(e))}function Yv(e,t,n,{latestValues:r},o,i=!1){const a=(si(e)?Kv:Wv)(t,r,o,e),c=Iv(t,typeof e=="string",i),l=e!==T.Fragment?{...c,...a,ref:n}:{},{children:u}=t,f=T.useMemo(()=>we(u)?u.get():u,[u]);return T.createElement(e,{...l,children:f})}function dl(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ai(e,t,n,r){if(typeof t=="function"){const[o,i]=dl(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]=dl(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function cr(e){return we(e)?e.get():e}function Xv({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:qv(n,r,o,e),renderState:t()}}function qv(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=cr(i[h]);let{initial:s,animate:a}=e;const c=ar(e),l=ol(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"&&!sr(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const y=ai(e,h[p]);if(y){const{transitionEnd:m,transition:g,...b}=y;for(const x in b){let E=b[x];if(Array.isArray(E)){const P=u?E.length-1:0;E=E[P]}E!==null&&(o[x]=E)}for(const x in m)o[x]=m[x]}}}return o}const fl=e=>(t,n)=>{const r=T.useContext(ir),o=T.useContext(Yn),i=()=>Xv(e,t,r,o);return n?i():fo(i)};function ci(e,t,n){const{style:r}=e,o={};for(const i in r)(we(r[i])||t.style&&we(t.style[i])||sl(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const Qv=fl({scrapeMotionValuesFromProps:ci,createRenderState:ii});function hl(e,t,n){const r=ci(e,t,n);for(const o in e)if(we(e[o])||we(t[o])){const i=Ht.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const Jv=fl({scrapeMotionValuesFromProps:hl,createRenderState:ll}),e1=Symbol.for("motionComponentSymbol");function Xt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function t1(e,t,n){return T.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Xt(n)&&(n.current=r))},[t])}const li=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),pl="data-"+li("framerAppearId"),ml=T.createContext({});function n1(e,t,n,r,o){const{visualElement:i}=T.useContext(ir),s=T.useContext(tl),a=T.useContext(Yn),c=T.useContext(ti).reducedMotion,l=T.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=T.useContext(ml);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&r1(l.current,n,o,f);const h=T.useRef(!1);T.useInsertionEffect(()=>{u&&h.current&&u.update(n,a)});const p=n[pl],y=T.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return Ua(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),y.current&&u.animationState&&u.animationState.animateChanges())}),T.useEffect(()=>{u&&(!y.current&&u.animationState&&u.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),y.current=!1),u.enteringChildren=void 0)}),u}function r1(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:gl(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Xt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function gl(e){if(e)return e.options.allowProjection!==!1?e.projection:gl(e.parent)}function ui(e,{forwardMotionProps:t=!1}={},n,r){n&&Vv(n);const o=si(e)?Jv:Qv;function i(a,c){let l;const u={...T.useContext(ti),...a,layoutId:o1(a)},{isStatic:f}=u,h=Lv(a),p=o(a,f);if(!f&&ho){i1(u,n);const y=s1(u);l=y.MeasureLayout,h.visualElement=n1(e,p,u,r,y.ProjectionNode)}return v.jsxs(ir.Provider,{value:h,children:[l&&h.visualElement?v.jsx(l,{visualElement:h.visualElement,...u}):null,Yv(e,a,t1(p,h.visualElement,c),p,f,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=T.forwardRef(i);return s[e1]=e,s}function o1({layoutId:e}){const t=T.useContext(uo).id;return t&&e!==void 0?t+"-"+e:e}function i1(e,t){const n=T.useContext(tl).strict;if(z.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?$t(!1,r,"lazy-strict-mode"):Xe(!1,r,"lazy-strict-mode")}}function s1(e){const{drag:t,layout:n}=Yt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function a1(e,t){if(typeof Proxy>"u")return ui;const n=new Map,r=(i,s)=>ui(i,s,e,t),o=(i,s)=>(z.env.NODE_ENV!=="production"&&bo(!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,ui(s,void 0,e,t)),n.get(s))})}function yl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function c1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function l1(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 di(e){return e===void 0||e===1}function fi({scale:e,scaleX:t,scaleY:n}){return!di(e)||!di(t)||!di(n)}function Ot(e){return fi(e)||vl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vl(e){return bl(e.x)||bl(e.y)}function bl(e){return e&&e!=="0%"}function lr(e,t,n){const r=e-n,o=t*r;return n+o}function wl(e,t,n,r,o){return o!==void 0&&(e=lr(e,o,r)),lr(e,n,r)+t}function hi(e,t=0,n=1,r,o){e.min=wl(e.min,t,n,r,o),e.max=wl(e.max,t,n,r,o)}function El(e,{x:t,y:n}){hi(e.x,t.translate,t.scale,t.originPoint),hi(e.y,n.translate,n.scale,n.originPoint)}const Tl=.999999999999,xl=1.0000000000001;function u1(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&&Qt(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,El(e,s)),r&&Ot(i.latestValues)&&Qt(e,i.latestValues))}t.x<xl&&t.x>Tl&&(t.x=1),t.y<xl&&t.y>Tl&&(t.y=1)}function qt(e,t){e.min=e.min+t,e.max=e.max+t}function Sl(e,t,n,r,o=.5){const i=re(e.min,e.max,o);hi(e,t,n,i,r)}function Qt(e,t){Sl(e.x,t.x,t.scaleX,t.scale,t.originX),Sl(e.y,t.y,t.scaleY,t.scale,t.originY)}function Al(e,t){return yl(l1(e.getBoundingClientRect(),t))}function d1(e,t,n){const r=Al(e,n),{scroll:o}=t;return o&&(qt(r.x,o.offset.x),qt(r.y,o.offset.y)),r}const Cl=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jt=()=>({x:Cl(),y:Cl()}),Pl=()=>({min:0,max:0}),le=()=>({x:Pl(),y:Pl()}),pi={current:null},Ml={current:!1};function f1(){if(Ml.current=!0,!!ho)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pi.current=e.matches;e.addEventListener("change",t),t()}else pi.current=!1}const h1=new WeakMap;function p1(e,t,n){for(const r in t){const o=t[r],i=n[r];if(we(o))e.addValue(r,o);else if(we(i))e.addValue(r,Gt(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,Gt(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Dl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class m1{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=Ko,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=Se.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,J.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=ar(n),this.isVariantNode=ol(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&&we(p)&&p.set(c[h])}}mount(t){this.current=t,h1.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)),Ml.current||f1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:pi.current,z.env.NODE_ENV!=="production"&&bo(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(),at(this.notifyUpdate),at(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=Kt.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&J.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 Yt){const n=Yt[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):le()}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<Dl.length;r++){const o=Dl[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=p1(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=Gt(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"&&($a(r)||za(r))?r=parseFloat(r):!Av(r)&<.test(n)&&(r=$c(t,n)),this.setBaseTarget(t,we(r)?r.get():r)),we(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=ai(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&&!we(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 vo),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Qo.render(this.render)}}class Ol extends m1{constructor(){super(...arguments),this.KeyframeResolver=hv}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;we(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Vl(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 g1(e){return window.getComputedStyle(e)}class y1 extends Ol{constructor(){super(...arguments),this.type="html",this.renderInstance=Vl}readValueFromInstance(t,n){if(Kt.has(n))return this.projection?.isProjecting?$o(n):Fy(t,n);{const r=g1(t),o=(xo(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Al(t,n)}build(t,n,r){oi(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return ci(t,n,r)}}const Fl=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 v1(e,t,n,r){Vl(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Fl.has(o)?o:li(o),t.attrs[o])}class b1 extends Ol{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=le}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Kt.has(n)){const r=Uc(n);return r&&r.default||0}return n=Fl.has(n)?n:li(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return hl(t,n,r)}build(t,n,r){cl(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){v1(t,n,r,o)}mount(t){this.isSVGTag=ul(t.tagName),super.mount(t)}}const w1=(e,t)=>si(e)?new b1(t):new y1(t,{allowProjection:e!==T.Fragment});function en(e,t,n){const r=e.getProps();return ai(r,t,n!==void 0?n:r.custom,e)}const mi=e=>Array.isArray(e);function E1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gt(n))}function T1(e){return mi(e)?e[e.length-1]||0:e}function x1(e,t){const n=en(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=T1(i[s]);E1(e,s,a)}}function S1(e){return!!(we(e)&&e.add)}function gi(e,t){const n=e.getValue("willChange");if(S1(n))return n.add(t);if(!n&&qe.WillChange){const r=new qe.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function kl(e){return e.props[pl]}const A1=e=>e!==null;function C1(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(A1),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const P1={type:"spring",stiffness:500,damping:25,restSpeed:10},M1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),D1={type:"keyframes",duration:.8},O1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},V1=(e,{keyframes:t})=>t.length>2?D1:Kt.has(e)?e.startsWith("scale")?M1(t[1]):P1:O1;function F1({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 yi=(e,t,n,r={},o,i)=>s=>{const a=Yo(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-ke(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};F1(a)||Object.assign(u,V1(e,u)),u.duration&&(u.duration=ke(u.duration)),u.repeatDelay&&(u.repeatDelay=ke(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Go(u),u.delay===0&&(f=!0)),(qe.instantAnimations||qe.skipAnimations)&&(f=!0,Go(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!i&&t.get()!==void 0){const h=C1(u.keyframes,a);if(h!==void 0){J.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new jo(u):new tv(u)};function k1({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Il(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&&k1(l,u))continue;const p={delay:n,...Yo(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,J);x!==null&&(p.startTime=x,m=!0)}}gi(e,u),f.start(yi(u,f,h,e.shouldReduceMotion&&Lc.has(u)?{type:!1}:p,e,m));const g=f.animation;g&&c.push(g)}return s&&Promise.all(c).then(()=>{J.update(()=>{s&&x1(e,s)})}),c}function Nl(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 vi(e,t,n={}){const r=en(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(Il(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:f}=o;return I1(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 I1(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(vi(c,t,{...s,delay:n+(typeof r=="function"?0:r)+Nl(e.variantChildren,c,r,o,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function N1(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>vi(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=vi(e,t,n);else{const o=typeof t=="function"?en(e,t,n.custom):t;r=Promise.all(Il(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ll(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 L1=ri.length;function Rl(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Rl(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<L1;n++){const r=ri[n],o=e.props[r];(Mn(o)||o===!1)&&(t[r]=o)}return t}const R1=[...ni].reverse(),_1=ni.length;function j1(e){return t=>Promise.all(t.map(({animation:n,options:r})=>N1(e,n,r)))}function B1(e){let t=j1(e),n=_l(),r=!0;const o=c=>(l,u)=>{const f=en(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=Rl(e.parent)||{},f=[],h=new Set;let p={},y=1/0;for(let g=0;g<_1;g++){const b=R1[g],x=n[b],E=l[b]!==void 0?l[b]:u[b],P=Mn(E),w=b===c?x.isActive:null;w===!1&&(y=g);let C=E===u[b]&&E!==l[b]&&P;if(C&&r&&e.manuallyAnimateOnMount&&(C=!1),x.protectedKeys={...p},!x.isActive&&w===null||!E&&!x.prevProp||sr(E)||typeof E=="boolean")continue;const A=U1(x.prevProp,E);let M=A||b===c&&x.isActive&&!C&&P||g>y&&P,N=!1;const j=Array.isArray(E)?E:[E];let ee=j.reduce(o(b),{});w===!1&&(ee={});const{prevResolvedValues:Ee={}}=x,ue={...Ee,...ee},_=$=>{M=!0,h.has($)&&(N=!0,h.delete($)),x.needsAnimating[$]=!0;const D=e.getValue($);D&&(D.liveStyle=!1)};for(const $ in ue){const D=ee[$],fe=Ee[$];if(p.hasOwnProperty($))continue;let be=!1;mi(D)&&mi(fe)?be=!Ll(D,fe):be=D!==fe,be?D!=null?_($):h.add($):D!==void 0&&h.has($)?_($):x.protectedKeys[$]=!0}x.prevProp=E,x.prevResolvedValues=ee,x.isActive&&(p={...p,...ee}),r&&e.blockInitialAnimation&&(M=!1);const te=C&&A;M&&(!te||N)&&f.push(...j.map($=>{const D={type:b};if(typeof $=="string"&&r&&!te&&e.manuallyAnimateOnMount&&e.parent){const{parent:fe}=e,be=en(fe,$);if(fe.enteringChildren&&be){const{delayChildren:Pe}=be.transition||{};D.delay=Nl(fe.enteringChildren,e,Pe)}}return{animation:$,options:D}}))}if(h.size){const g={};if(typeof l.initial!="boolean"){const b=en(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),E=e.getValue(b);E&&(E.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=_l(),r=!0}}}function U1(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ll(t,e):!1}function Vt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _l(){return{animate:Vt(!0),whileInView:Vt(),whileHover:Vt(),whileTap:Vt(),whileDrag:Vt(),whileFocus:Vt(),exit:Vt()}}class ut{constructor(t){this.isMounted=!1,this.node=t}update(){}}class $1 extends ut{constructor(t){super(t),t.animationState||(t.animationState=B1(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();sr(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 W1=0;class z1 extends ut{constructor(){super(...arguments),this.id=W1++}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 Z1={animation:{Feature:$1},exit:{Feature:z1}};function On(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Vn(e){return{point:{x:e.pageX,y:e.pageY}}}const H1=e=>t=>Jo(t)&&e(t,Vn(t));function Fn(e,t,n,r){return On(e,t,H1(n),r)}const jl=1e-4,K1=1-jl,G1=1+jl,Bl=.01,Y1=0-Bl,X1=0+Bl;function xe(e){return e.max-e.min}function q1(e,t,n){return Math.abs(e-t)<=n}function Ul(e,t,n,r=.5){e.origin=r,e.originPoint=re(t.min,t.max,e.origin),e.scale=xe(n)/xe(t),e.translate=re(n.min,n.max,e.origin)-e.originPoint,(e.scale>=K1&&e.scale<=G1||isNaN(e.scale))&&(e.scale=1),(e.translate>=Y1&&e.translate<=X1||isNaN(e.translate))&&(e.translate=0)}function kn(e,t,n,r){Ul(e.x,t.x,n.x,r?r.originX:void 0),Ul(e.y,t.y,n.y,r?r.originY:void 0)}function $l(e,t,n){e.min=n.min+t.min,e.max=e.min+xe(t)}function Q1(e,t,n){$l(e.x,t.x,n.x),$l(e.y,t.y,n.y)}function Wl(e,t,n){e.min=t.min-n.min,e.max=e.min+xe(t)}function In(e,t,n){Wl(e.x,t.x,n.x),Wl(e.y,t.y,n.y)}function Ve(e){return[e("x"),e("y")]}const zl=({current:e})=>e?e.ownerDocument.defaultView:null,Zl=(e,t)=>Math.abs(e-t);function J1(e,t){const n=Zl(e.x,t.x),r=Zl(e.y,t.y);return Math.sqrt(n**2+r**2)}class Hl{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=wi(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=J1(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!y)return;const{point:m}=h,{timestamp:g}=ye;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=bi(p,this.transformPagePoint),J.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=wi(h.type==="pointercancel"?this.lastMoveEventInfo:bi(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(h,b),m&&m(h,b)},!Jo(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=Vn(t),c=bi(a,this.transformPagePoint),{point:l}=c,{timestamp:u}=ye;this.history=[{...l,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,wi(c,this.history)),this.removeListeners=wn(Fn(this.contextWindow,"pointermove",this.handlePointerMove),Fn(this.contextWindow,"pointerup",this.handlePointerUp),Fn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),at(this.updatePoint)}}function bi(e,t){return t?{point:t(e.point)}:e}function Kl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wi({point:e},t){return{point:e,delta:Kl(e,Gl(t)),offset:Kl(e,eb(t)),velocity:tb(t,.1)}}function eb(e){return e[0]}function Gl(e){return e[e.length-1]}function tb(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Gl(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ke(t)));)n--;if(!r)return{x:0,y:0};const i=Ue(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const 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 nb(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 Yl(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 rb(e,{top:t,left:n,bottom:r,right:o}){return{x:Yl(e.x,n,o),y:Yl(e.y,t,r)}}function Xl(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 ob(e,t){return{x:Xl(e.x,t.x),y:Xl(e.y,t.y)}}function ib(e,t){let n=.5;const r=xe(e),o=xe(t);return o>r?n=En(t.min,t.max-r,e.min):r>o&&(n=En(e.min,e.max-o,t.min)),Ye(0,1,n)}function sb(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 Ei=.35;function ab(e=Ei){return e===!1?e=0:e===!0&&(e=Ei),{x:ql(e,"left","right"),y:ql(e,"top","bottom")}}function ql(e,t,n){return{min:Ql(e,t),max:Ql(e,n)}}function Ql(e,t){return typeof e=="number"?e:e[t]||0}const cb=new WeakMap;class lb{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=le(),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(Vn(f).point)},s=(f,h)=>{const{drag:p,dragPropagation:y,onDragStart:m}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=yv(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),Ve(b=>{let x=this.getAxisMotionValue(b).get()||0;if($e.test(x)){const{projection:E}=this.visualElement;if(E&&E.layout){const P=E.layout.layoutBox[b];P&&(x=xe(P)*(parseFloat(x)/100))}}this.originPoint[b]=x}),m&&J.postRender(()=>m(f,h)),gi(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=ub(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=()=>Ve(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Hl(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:zl(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&&J.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||!ur(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=nb(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&&Xt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=rb(r.layoutBox,t):this.constraints=!1,this.elastic=ab(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ve(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=sb(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Xt(t))return!1;const r=t.current;Xe(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=d1(r,o.root,this.visualElement.getTransformPagePoint());let s=ob(o.layout.layoutBox,i);if(n){const a=n(c1(s));this.hasMutatedConstraints=!!a,a&&(s=yl(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Ve(u=>{if(!ur(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 gi(this.visualElement,t),r.start(yi(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ve(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ve(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){Ve(n=>{const{drag:r}=this.getProps();if(!ur(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(!Xt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ve(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const c=a.get();o[s]=ib({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(),Ve(s=>{if(!ur(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;cb.set(this.visualElement,this);const t=this.visualElement.current,n=Fn(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Xt(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()),J.read(r);const s=On(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(Ve(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=Ei,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function ur(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ub(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class db extends ut{constructor(t){super(t),this.removeGroupControls=Oe,this.removeListeners=Oe,this.controls=new lb(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Oe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Jl=e=>(t,n)=>{e&&J.postRender(()=>e(t,n))};class fb extends ut{constructor(){super(...arguments),this.removePointerDownListener=Oe}onPointerDown(t){this.session=new Hl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Jl(t),onStart:Jl(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&J.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Fn(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 dr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Nn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(R.test(e))e=parseFloat(e);else return e;const n=eu(e,t.target.x),r=eu(e,t.target.y);return`${n}% ${r}%`}},hb={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=lt.parse(e);if(o.length>5)return r;const i=lt.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 Ti=!1;class pb extends T.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Rv(mb),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Ti&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),dr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Ti=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||J.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Qo.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Ti=!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 tu(e){const[t,n]=Jc(),r=T.useContext(uo);return v.jsx(pb,{...e,layoutGroup:r,switchLayoutGroup:T.useContext(ml),isPresent:t,safeToRemove:n})}const mb={borderRadius:{...Nn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nn,borderTopRightRadius:Nn,borderBottomLeftRadius:Nn,borderBottomRightRadius:Nn,boxShadow:hb};function gb(e,t,n){const r=we(e)?e:Gt(e);return r.start(yi("",r,t,n)),r.animation}const yb=(e,t)=>e.depth-t.depth;class vb{constructor(){this.children=[],this.isDirty=!1}add(t){po(this.children,t),this.isDirty=!0}remove(t){mo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(yb),this.isDirty=!1,this.children.forEach(t)}}function bb(e,t){const n=Se.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(at(r),e(i-t))};return J.setup(r,!0),()=>at(r)}const nu=["TopLeft","TopRight","BottomLeft","BottomRight"],wb=nu.length,ru=e=>typeof e=="string"?parseFloat(e):e,ou=e=>typeof e=="number"||R.test(e);function Eb(e,t,n,r,o,i){o?(e.opacity=re(0,n.opacity??1,Tb(r)),e.opacityExit=re(t.opacity??1,0,xb(r))):i&&(e.opacity=re(t.opacity??1,n.opacity??1,r));for(let s=0;s<wb;s++){const a=`border${nu[s]}Radius`;let c=iu(t,a),l=iu(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||ou(c)===ou(l)?(e[a]=Math.max(re(ru(c),ru(l),r),0),($e.test(l)||$e.test(c))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=re(t.rotate||0,n.rotate||0,r))}function iu(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Tb=su(0,.5,Ja),xb=su(.5,.95,Oe);function su(e,t,n){return r=>r<e?0:r>t?1:n(En(e,t,r))}function au(e,t){e.min=t.min,e.max=t.max}function Fe(e,t){au(e.x,t.x),au(e.y,t.y)}function cu(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function lu(e,t,n,r,o){return e-=t,e=lr(e,1/n,r),o!==void 0&&(e=lr(e,1/o,r)),e}function Sb(e,t=0,n=1,r=.5,o,i=e,s=e){if($e.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=lu(e.min,t,n,a,o),e.max=lu(e.max,t,n,a,o)}function uu(e,t,[n,r,o],i,s){Sb(e,t[n],t[r],t[o],t.scale,i,s)}const Ab=["x","scaleX","originX"],Cb=["y","scaleY","originY"];function du(e,t,n,r){uu(e.x,t,Ab,n?n.x:void 0,r?r.x:void 0),uu(e.y,t,Cb,n?n.y:void 0,r?r.y:void 0)}function fu(e){return e.translate===0&&e.scale===1}function hu(e){return fu(e.x)&&fu(e.y)}function pu(e,t){return e.min===t.min&&e.max===t.max}function Pb(e,t){return pu(e.x,t.x)&&pu(e.y,t.y)}function mu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function gu(e,t){return mu(e.x,t.x)&&mu(e.y,t.y)}function yu(e){return xe(e.x)/xe(e.y)}function vu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Mb{constructor(){this.members=[]}add(t){po(this.members,t),t.scheduleRender()}remove(t){if(mo(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 Db(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 xi=["","X","Y","Z"],Ob=1e3;let Vb=0;function Si(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function bu(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",J,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&bu(r)}function wu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=Vb++,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(Ib),this.nodes.forEach(_b),this.nodes.forEach(jb),this.nodes.forEach(Nb)},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 vb)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new vo),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=Qc(s)&&!xv(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;J.read(()=>{f=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,u&&u(),u=bb(h,250),dr.hasAnimatedSinceResize&&(dr.hasAnimatedSinceResize=!1,this.nodes.forEach(xu)))})}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()||zb,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=l.getProps(),b=!this.targetLayout||!gu(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 E={...Yo(y,"layout"),onPlay:m,onComplete:g};(l.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E),this.setAnimationOrigin(u,x)}else f||xu(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(),at(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(Bb),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&&bu(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(Eu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Tu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Rb),this.nodes.forEach(Fb),this.nodes.forEach(kb)):this.nodes.forEach(Tu),this.clearAllSnapshots();const a=Se.now();ye.delta=Ye(0,1e3/60,a-ye.timestamp),ye.timestamp=a,ye.isProcessing=!0,To.update.process(ye),To.preRender.process(ye),To.render.process(ye),ye.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Lb),this.sharedNodes.forEach(Ub)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,J.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){J.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xe(this.snapshot.measuredBox.x)&&!xe(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=le(),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&&!hu(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;s&&this.instance&&(a||Ot(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)),Zb(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return le();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Hb))){const{scroll:l}=this.root;l&&(qt(a.x,l.offset.x),qt(a.y,l.offset.y))}return a}removeElementScroll(s){const a=le();if(Fe(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&&Fe(a,s),qt(a.x,u.offset.x),qt(a.y,u.offset.y))}return a}applyTransform(s,a=!1){const c=le();Fe(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&&Qt(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Ot(u.latestValues)&&Qt(c,u.latestValues)}return Ot(this.latestValues)&&Qt(c,this.latestValues),c}removeTransform(s){const a=le();Fe(a,s);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!Ot(l.latestValues))continue;fi(l.latestValues)&&l.updateSnapshot();const u=le(),f=l.measurePageBox();Fe(u,f),du(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Ot(this.latestValues)&&du(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!==ye.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=ye.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=le(),this.relativeTargetOrigin=le(),In(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Fe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=le(),this.targetWithTransforms=le()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Q1(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Fe(this.target,this.layout.layoutBox),El(this.target,this.targetDelta)):Fe(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=le(),this.relativeTargetOrigin=le(),In(this.relativeTargetOrigin,this.target,h.target),Fe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||fi(this.parent.latestValues)||vl(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===ye.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;Fe(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;u1(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=le());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(cu(this.prevProjectionDelta.x,this.projectionDelta.x),cu(this.prevProjectionDelta.y,this.projectionDelta.y)),kn(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!vu(this.projectionDelta.x,this.prevProjectionDelta.x)||!vu(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=Jt(),this.projectionDelta=Jt(),this.projectionDeltaWithTransform=Jt()}setAnimationOrigin(s,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},f=Jt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=le(),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(Wb));this.animationProgress=0;let E;this.mixTargetDelta=P=>{const w=P/1e3;Su(f.x,s.x,w),Su(f.y,s.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(In(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),$b(this.relativeTarget,this.relativeTargetOrigin,h,w),E&&Pb(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=le()),Fe(E,this.relativeTarget)),m&&(this.animationValues=u,Eb(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&&(at(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=J.update(()=>{dr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Gt(0)),this.currentAnimation=gb(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(Ob),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&&Du(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||le();const f=xe(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+f;const h=xe(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+h}Fe(a,c),Qt(a,u),kn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Mb),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&&Si("z",s,l,this.animationValues);for(let u=0;u<xi.length;u++)Si(`rotate${xi[u]}`,s,l,this.animationValues),Si(`skew${xi[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=cr(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=cr(a?.pointerEvents)||""),this.hasProjected&&!Ot(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=Db(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 Dn){if(u[y]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:b}=Dn[y],x=f==="none"?u[y]:m(u[y],l);if(g){const E=g.length;for(let P=0;P<E;P++)s[g[P]]=x}else b?this.options.visualElement.renderState.vars[y]=x:s[y]=x}this.options.layoutId&&(s.pointerEvents=l===this?cr(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Eu),this.root.sharedNodes.clear()}}}function Fb(e){e.updateLayout()}function kb(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"?Ve(u=>{const f=i?t.measuredBox[u]:t.layoutBox[u],h=xe(f);f.min=n[u].min,f.max=f.min+h}):Du(o,t.layoutBox,n)&&Ve(u=>{const f=i?t.measuredBox[u]:t.layoutBox[u],h=xe(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=Jt();kn(s,n,t.layoutBox);const a=Jt();i?kn(a,e.applyTransform(r,!0),t.measuredBox):kn(a,n,t.layoutBox);const c=!hu(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=le();In(p,t.layoutBox,f.layoutBox);const y=le();In(y,n,h.layoutBox),gu(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 Ib(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 Nb(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Lb(e){e.clearSnapshot()}function Eu(e){e.clearMeasurements()}function Tu(e){e.isLayoutDirty=!1}function Rb(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function xu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _b(e){e.resolveTargetDelta()}function jb(e){e.calcProjection()}function Bb(e){e.resetSkewAndRotation()}function Ub(e){e.removeLeadSnapshot()}function Su(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 Au(e,t,n,r){e.min=re(t.min,n.min,r),e.max=re(t.max,n.max,r)}function $b(e,t,n,r){Au(e.x,t.x,n.x,r),Au(e.y,t.y,n.y,r)}function Wb(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const zb={duration:.45,ease:[.4,0,.1,1]},Cu=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Pu=Cu("applewebkit/")&&!Cu("chrome/")?Math.round:Oe;function Mu(e){e.min=Pu(e.min),e.max=Pu(e.max)}function Zb(e){Mu(e.x),Mu(e.y)}function Du(e,t,n){return e==="position"||e==="preserve-aspect"&&!q1(yu(t),yu(n),.2)}function Hb(e){return e!==e.root&&e.scroll?.wasRoot}const Kb=wu({attachResizeListener:(e,t)=>On(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ai={current:void 0},Ou=wu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ai.current){const e=new Kb({});e.mount(window),e.setOptions({layoutScroll:!0}),Ai.current=e}return Ai.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Gb={pan:{Feature:fb},drag:{Feature:db,ProjectionNode:Ou,MeasureLayout:tu}};function Vu(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&&J.postRender(()=>i(t,Vn(t)))}class Yb extends ut{mount(){const{current:t}=this.node;t&&(this.unmount=vv(t,(n,r)=>(Vu(this.node,r,"Start"),o=>Vu(this.node,o,"End"))))}unmount(){}}class Xb extends ut{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=wn(On(this.node.current,"focus",()=>this.onFocus()),On(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Fu(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&&J.postRender(()=>i(t,Vn(t)))}class qb extends ut{mount(){const{current:t}=this.node;t&&(this.unmount=Tv(t,(n,r)=>(Fu(this.node,r,"Start"),(o,{success:i})=>Fu(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ci=new WeakMap,Pi=new WeakMap,Qb=e=>{const t=Ci.get(e.target);t&&t(e)},Jb=e=>{e.forEach(Qb)};function ew({root:e,...t}){const n=e||document;Pi.has(n)||Pi.set(n,{});const r=Pi.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Jb,{root:e,...t})),r[o]}function tw(e,t,n){const r=ew(t);return Ci.set(e,n),r.observe(e),()=>{Ci.delete(e),r.unobserve(e)}}const nw={some:0,all:1};class rw extends ut{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:nw[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 tw(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(ow(t,n))&&this.startObserver()}unmount(){}}function ow({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const iw={...Z1,...{inView:{Feature:rw},tap:{Feature:qb},focus:{Feature:Xb},hover:{Feature:Yb}},...Gb,...{layout:{ProjectionNode:Ou,MeasureLayout:tu}}},Mi=a1(iw,w1),sw="flex flex-col relative cursor-text min-w-0",aw=`
|
|
91
91
|
peer transition-all
|
|
92
92
|
px-4 pt-4 pb-2 border border-solid rounded outline-none
|
|
93
93
|
border-gray-200 bg-white text-base-black text-base
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
data-[has-error=true]:border-feedback-danger-200
|
|
101
101
|
data-[is-loading=true]:animate-pulse
|
|
102
102
|
data-[has-prefix-icon=true]:pl-10
|
|
103
|
-
`,
|
|
103
|
+
`,cw=`
|
|
104
104
|
text-xs text-gray-400 px-4 ml-1 w-[125%]
|
|
105
105
|
absolute top-3 origin-top-left text-ellipsis overflow-hidden
|
|
106
106
|
scale-75 duration-300 text-nowrap
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
|
|
126
126
|
peer-focus:peer-data-[has-prefix-icon=true]:ml-7
|
|
127
127
|
peer-focus:peer-data-[has-prefix-icon=true]:w-[calc(125%-24px)]
|
|
128
|
-
`,
|
|
128
|
+
`,lw="h-4 w-4 absolute left-4 top-1/2 -translate-y-1/2",uw="h-4 w-4 absolute right-4 top-1/2 -translate-y-1/2";function ku({name:e,label:t,type:n="text",isDisabled:r,maxLength:o=255,prefixIcon:i,suffixIcon:s,className:a,fieldClassName:c,onChange:l,onFocus:u,onBlur:f}){const{isLoading:h}=Gn(),{isSubmitting:p}=xt(),[y,m]=bn(e),g=E=>{typeof l<"u"&&l(E),y.onChange(E)},b=E=>{typeof u<"u"&&u(E)},x=E=>{typeof f<"u"&&f(E),y.onBlur(E)};return v.jsxs("div",{className:nt(sw,a||""),children:[v.jsx(so,{className:nt(aw,c||""),type:n,id:e,name:e,placeholder:t,...n==="text"?{maxLength:o}:{max:o},disabled:h||r||p,"data-is-loading":h,"data-has-error":!!m.error&&m.touched,"data-has-prefix-icon":!!i,"data-1p-ignore":!0,onChange:g,onFocus:b,onBlur:x}),v.jsx(Mi.label,{htmlFor:e,className:cw,children:t}),typeof i<"u"&&v.jsx(i,{className:lw}),typeof s<"u"&&v.jsx(s,{className:uw}),v.jsx(co,{name:e,component:"span",className:lo},`error-${e}`)]})}const dw="flex flex-col relative w-full cursor-text",fw=`
|
|
129
129
|
flex transition-all grow resize-none
|
|
130
130
|
px-4 pt-6 pb-1.5 border border-solid rounded outline-none
|
|
131
131
|
border-gray-200 bg-white text-black
|
|
@@ -138,11 +138,11 @@
|
|
|
138
138
|
data-[is-loading=true]:animate-pulse
|
|
139
139
|
data-[has-prefix-icon=true]:pl-10
|
|
140
140
|
data-[has-max-length=true]:pb-10
|
|
141
|
-
`,
|
|
141
|
+
`,hw=`
|
|
142
142
|
p-0 relative peer text-sm placeholder:text-transparent bg-transparent
|
|
143
143
|
max-h-56 min-h-14 w-full border-0 appearance-none
|
|
144
144
|
focus:outline-none resize-none
|
|
145
|
-
`,
|
|
145
|
+
`,pw=`
|
|
146
146
|
text-sm text-gray-400
|
|
147
147
|
absolute top-4 origin-top-left
|
|
148
148
|
scale-75 duration-300
|
|
@@ -157,27 +157,27 @@
|
|
|
157
157
|
peer-focus:scale-75
|
|
158
158
|
peer-focus:-translate-y-2
|
|
159
159
|
peer-data-[has-prefix-icon=true]:mx-10
|
|
160
|
-
`,
|
|
160
|
+
`,mw=`
|
|
161
161
|
h-4 w-4
|
|
162
162
|
absolute left-4 top-1/2 -translate-y-1/2
|
|
163
|
-
`,
|
|
163
|
+
`,gw=`
|
|
164
164
|
text-sm text-gray-400
|
|
165
165
|
absolute bottom-3.5 right-8 origin-bottom-right
|
|
166
|
-
`;function gw({name:e,label:t,isDisabled:n,maxLength:r,rows:o=1,grow:i=!0,prefixIcon:s,className:a,onChange:c}){const{isLoading:l}=Gn(),{isSubmitting:u}=xt(),d=E.useRef(null),[h,p,y]=bn(e);E.useEffect(()=>{!i||!d||d.current&&(d.current.style.height="0px",d.current.style.height=`${d.current.scrollHeight}px`)},[i,d,h.value]);const m=v=>{typeof c<"u"&&c(v),h.onChange(v)},g=()=>{var v;(v=d.current)==null||v.focus()};return b.jsxs("div",{className:`${uw} ${a||""}`,children:[b.jsxs("div",{className:dw,"data-is-loading":l,"data-has-prefix-icon":!!s,"data-has-max-length":!!r,onClick:g,children:[b.jsx(so,{innerRef:d,component:"textarea",rows:o,className:fw,id:e,name:e,placeholder:t,maxLength:r,disabled:l||n||u,onChange:m,"data-1p-ignore":!0}),b.jsx(Pi.label,{htmlFor:e,className:hw,children:t}),typeof s<"u"&&b.jsx(s,{className:pw}),!!r&&b.jsx("div",{className:mw,children:`${p.value.length} / ${r}`})]}),b.jsx(co,{name:e,component:"span",className:lo},`error-${e}`)]})}const yw=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),f.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),vw=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),f.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),bw=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),f.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),ww=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M68,102.06V40a12,12,0,0,0-24,0v62.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V169.94a36,36,0,0,0,0-67.88ZM56,148a12,12,0,1,1,12-12A12,12,0,0,1,56,148ZM164,88a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0V54.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V121.94A36.07,36.07,0,0,0,164,88Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,128,100Zm108,68a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0v94.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V201.94A36.07,36.07,0,0,0,236,168Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,200,180Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M80,136a24,24,0,1,1-24-24A24,24,0,0,1,80,136Zm48-72a24,24,0,1,0,24,24A24,24,0,0,0,128,64Zm72,80a24,24,0,1,0,24,24A24,24,0,0,0,200,144Z",opacity:"0.2"}),f.createElement("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M84,136a28,28,0,0,1-20,26.83V216a8,8,0,0,1-16,0V162.83a28,28,0,0,1,0-53.66V40a8,8,0,0,1,16,0v69.17A28,28,0,0,1,84,136Zm52-74.83V40a8,8,0,0,0-16,0V61.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V114.83a28,28,0,0,0,0-53.66Zm72,80V40a8,8,0,0,0-16,0V141.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V194.83a28,28,0,0,0,0-53.66Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M62,106.6V40a6,6,0,0,0-12,0v66.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V165.4a30,30,0,0,0,0-58.8ZM56,154a18,18,0,1,1,18-18A18,18,0,0,1,56,154Zm78-95.4V40a6,6,0,0,0-12,0V58.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V117.4a30,30,0,0,0,0-58.8ZM128,106a18,18,0,1,1,18-18A18,18,0,0,1,128,106Zm102,62a30.05,30.05,0,0,0-24-29.4V40a6,6,0,0,0-12,0v98.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V197.4A30.05,30.05,0,0,0,230,168Zm-30,18a18,18,0,1,1,18-18A18,18,0,0,1,200,186Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M60,108.29V40a4,4,0,0,0-8,0v68.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V163.71a28,28,0,0,0,0-55.42ZM56,156a20,20,0,1,1,20-20A20,20,0,0,1,56,156Zm76-95.71V40a4,4,0,0,0-8,0V60.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V115.71a28,28,0,0,0,0-55.42ZM128,108a20,20,0,1,1,20-20A20,20,0,0,1,128,108Zm100,60a28,28,0,0,0-24-27.71V40a4,4,0,0,0-8,0V140.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V195.71A28,28,0,0,0,228,168Zm-28,20a20,20,0,1,1,20-20A20,20,0,0,1,200,188Z"}))]]),Tw=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),f.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),Ew=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),f.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),xw=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),f.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),Sw=E.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),ut=f.forwardRef((e,t)=>{const{alt:n,color:r,size:o,weight:i,mirrored:s,children:a,weights:c,...l}=e,{color:u="currentColor",size:d,weight:h="regular",mirrored:p=!1,...y}=f.useContext(Sw);return f.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:o??d,height:o??d,fill:r??u,viewBox:"0 0 256 256",transform:s||p?"scale(-1, 1)":void 0,...y,...l},!!n&&f.createElement("title",null,n),a,c.get(i??h))});ut.displayName="IconBase";const Iu=f.forwardRef((e,t)=>f.createElement(ut,{ref:t,...e,weights:yw}));Iu.displayName="CaretLeftIcon";const Nu=f.forwardRef((e,t)=>f.createElement(ut,{ref:t,...e,weights:vw}));Nu.displayName="CaretRightIcon";const Lu=f.forwardRef((e,t)=>f.createElement(ut,{ref:t,...e,weights:bw}));Lu.displayName="CheckIcon";const Ru=f.forwardRef((e,t)=>f.createElement(ut,{ref:t,...e,weights:ww}));Ru.displayName="SlidersIcon";const _u=f.forwardRef((e,t)=>f.createElement(ut,{ref:t,...e,weights:Tw}));_u.displayName="SpinnerIcon";const fr=f.forwardRef((e,t)=>f.createElement(ut,{ref:t,...e,weights:Ew}));fr.displayName="XIcon";const ju=f.forwardRef((e,t)=>f.createElement(ut,{ref:t,...e,weights:xw}));ju.displayName="XCircleIcon";const Aw="pr-10 truncate",Cw=`
|
|
166
|
+
`;function yw({name:e,label:t,isDisabled:n,maxLength:r,rows:o=1,grow:i=!0,prefixIcon:s,className:a,onChange:c}){const{isLoading:l}=Gn(),{isSubmitting:u}=xt(),f=T.useRef(null),[h,p]=bn(e);T.useEffect(()=>{!i||!f||f.current&&(f.current.style.height="0px",f.current.style.height=`${f.current.scrollHeight}px`)},[i,f,h.value]);const y=g=>{typeof c<"u"&&c(g),h.onChange(g)},m=()=>{f.current?.focus()};return v.jsxs("div",{className:`${dw} ${a||""}`,children:[v.jsxs("div",{className:fw,"data-is-loading":l,"data-has-prefix-icon":!!s,"data-has-max-length":!!r,onClick:m,children:[v.jsx(so,{innerRef:f,component:"textarea",rows:o,className:hw,id:e,name:e,placeholder:t,maxLength:r,disabled:l||n||u,onChange:y,"data-1p-ignore":!0}),v.jsx(Mi.label,{htmlFor:e,className:pw,children:t}),typeof s<"u"&&v.jsx(s,{className:mw}),!!r&&v.jsx("div",{className:gw,children:`${p.value.length} / ${r}`})]}),v.jsx(co,{name:e,component:"span",className:lo},`error-${e}`)]})}const vw=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),d.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),bw=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),d.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),ww=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),d.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),Ew=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M68,102.06V40a12,12,0,0,0-24,0v62.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V169.94a36,36,0,0,0,0-67.88ZM56,148a12,12,0,1,1,12-12A12,12,0,0,1,56,148ZM164,88a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0V54.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V121.94A36.07,36.07,0,0,0,164,88Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,128,100Zm108,68a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0v94.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V201.94A36.07,36.07,0,0,0,236,168Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,200,180Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M80,136a24,24,0,1,1-24-24A24,24,0,0,1,80,136Zm48-72a24,24,0,1,0,24,24A24,24,0,0,0,128,64Zm72,80a24,24,0,1,0,24,24A24,24,0,0,0,200,144Z",opacity:"0.2"}),d.createElement("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M84,136a28,28,0,0,1-20,26.83V216a8,8,0,0,1-16,0V162.83a28,28,0,0,1,0-53.66V40a8,8,0,0,1,16,0v69.17A28,28,0,0,1,84,136Zm52-74.83V40a8,8,0,0,0-16,0V61.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V114.83a28,28,0,0,0,0-53.66Zm72,80V40a8,8,0,0,0-16,0V141.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V194.83a28,28,0,0,0,0-53.66Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M62,106.6V40a6,6,0,0,0-12,0v66.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V165.4a30,30,0,0,0,0-58.8ZM56,154a18,18,0,1,1,18-18A18,18,0,0,1,56,154Zm78-95.4V40a6,6,0,0,0-12,0V58.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V117.4a30,30,0,0,0,0-58.8ZM128,106a18,18,0,1,1,18-18A18,18,0,0,1,128,106Zm102,62a30.05,30.05,0,0,0-24-29.4V40a6,6,0,0,0-12,0v98.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V197.4A30.05,30.05,0,0,0,230,168Zm-30,18a18,18,0,1,1,18-18A18,18,0,0,1,200,186Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M60,108.29V40a4,4,0,0,0-8,0v68.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V163.71a28,28,0,0,0,0-55.42ZM56,156a20,20,0,1,1,20-20A20,20,0,0,1,56,156Zm76-95.71V40a4,4,0,0,0-8,0V60.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V115.71a28,28,0,0,0,0-55.42ZM128,108a20,20,0,1,1,20-20A20,20,0,0,1,128,108Zm100,60a28,28,0,0,0-24-27.71V40a4,4,0,0,0-8,0V140.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V195.71A28,28,0,0,0,228,168Zm-28,20a20,20,0,1,1,20-20A20,20,0,0,1,200,188Z"}))]]),Tw=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),d.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),xw=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),d.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),Sw=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),d.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),Aw=T.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),dt=d.forwardRef((e,t)=>{const{alt:n,color:r,size:o,weight:i,mirrored:s,children:a,weights:c,...l}=e,{color:u="currentColor",size:f,weight:h="regular",mirrored:p=!1,...y}=d.useContext(Aw);return d.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:o??f,height:o??f,fill:r??u,viewBox:"0 0 256 256",transform:s||p?"scale(-1, 1)":void 0,...y,...l},!!n&&d.createElement("title",null,n),a,c.get(i??h))});dt.displayName="IconBase";const Iu=d.forwardRef((e,t)=>d.createElement(dt,{ref:t,...e,weights:vw}));Iu.displayName="CaretLeftIcon";const Nu=d.forwardRef((e,t)=>d.createElement(dt,{ref:t,...e,weights:bw}));Nu.displayName="CaretRightIcon";const Lu=d.forwardRef((e,t)=>d.createElement(dt,{ref:t,...e,weights:ww}));Lu.displayName="CheckIcon";const Ru=d.forwardRef((e,t)=>d.createElement(dt,{ref:t,...e,weights:Ew}));Ru.displayName="SlidersIcon";const _u=d.forwardRef((e,t)=>d.createElement(dt,{ref:t,...e,weights:Tw}));_u.displayName="SpinnerIcon";const fr=d.forwardRef((e,t)=>d.createElement(dt,{ref:t,...e,weights:xw}));fr.displayName="XIcon";const ju=d.forwardRef((e,t)=>d.createElement(dt,{ref:t,...e,weights:Sw}));ju.displayName="XCircleIcon";const Cw="pr-10 truncate",Pw=`
|
|
167
167
|
border-0 p-0 cursor-pointer
|
|
168
168
|
absolute top-1/2 -translate-y-1/2
|
|
169
169
|
right-4 bg-transparent
|
|
170
|
-
`,Pw=`
|
|
171
|
-
h-4 w-4
|
|
172
170
|
`,Mw=`
|
|
171
|
+
h-4 w-4
|
|
172
|
+
`,Dw=`
|
|
173
173
|
animate-spin h-4 w-4
|
|
174
174
|
absolute top-4 right-9
|
|
175
|
-
`;function Bu({name:e,label:t,isLoading:n,isDisabled:r,maxLength:o=255,prefixIcon:i,suffixIcon:s,className:a,onChange:c,onClear:l,onFocus:u,onBlur:
|
|
175
|
+
`;function Bu({name:e,label:t,isLoading:n,isDisabled:r,maxLength:o=255,prefixIcon:i,suffixIcon:s,className:a,onChange:c,onClear:l,onFocus:u,onBlur:f}){const[,h,p]=bn(e),y=g=>{typeof c<"u"&&c(g)},m=()=>{p.setValue(""),typeof c<"u"&&c({target:{value:""}}),typeof l<"u"&&l()};return v.jsxs(v.Fragment,{children:[v.jsx(ku,{name:e,label:t,isDisabled:r,maxLength:o,prefixIcon:i,suffixIcon:s,className:a,fieldClassName:Cw,onChange:y,onFocus:u,onBlur:f}),n&&v.jsx(_u,{className:Dw}),!!h.value&&v.jsx("button",{type:"button",className:Pw,onClick:m,children:v.jsx(fr,{className:Mw})})]})}const Ow=`
|
|
176
176
|
group/checkbox
|
|
177
177
|
|
|
178
178
|
data-[is-disabled=true]:pointer-events-none
|
|
179
179
|
data-[is-disabled=true]:cursor-default
|
|
180
|
-
`,
|
|
180
|
+
`,Vw=`
|
|
181
181
|
w-5 h-5 rounded-md bg-white
|
|
182
182
|
peer relative shrink-0
|
|
183
183
|
appearance-none transition-colors
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
disabled:border-neutral-300
|
|
193
193
|
disabled:checked:bg-neutral-300
|
|
194
194
|
data-[has-error=true]:border-feedback-danger-200
|
|
195
|
-
`,
|
|
195
|
+
`,Fw=`
|
|
196
196
|
text-sm text-neutral-400 font-normal
|
|
197
197
|
transition-colors
|
|
198
198
|
group-hover/checkbox:text-base-black
|
|
@@ -201,21 +201,27 @@
|
|
|
201
201
|
group-data-[is-disabled=true]/checkbox:text-neutral-300
|
|
202
202
|
|
|
203
203
|
flex gap-2 cursor-pointer
|
|
204
|
-
`,
|
|
205
|
-
absolute
|
|
206
|
-
list-none px-0 py-1
|
|
204
|
+
`,kw="absolute w-4 h-4 ml-0.5 mt-0.5 hidden peer-checked:block fill-white";function Iw({name:e,label:t,className:n,fieldClassName:r,isDisabled:o,onChange:i,onFocus:s}){const{isLoading:a}=Gn(),{isSubmitting:c}=xt(),[l,u]=bn(e),f=p=>{typeof i<"u"&&i(p),l.onChange(p)},h=p=>{typeof s<"u"&&s(p)};return v.jsxs("div",{className:nt(Ow,n||""),"data-is-disabled":o,children:[v.jsxs("label",{className:Fw,children:[v.jsx(so,{type:"checkbox",name:e,className:nt(Vw,r||""),onChange:f,onFocus:h,"data-has-error":!!u.error&&u.touched,disabled:a||o||c}),t&&v.jsx(v.Fragment,{children:t}),v.jsx(Lu,{className:kw,size:20})]}),v.jsx(co,{name:e,component:"span",className:lo},`error-${e}`)]})}const Nw="relative",Lw=`
|
|
205
|
+
absolute left-0 right-0
|
|
206
|
+
list-none px-0 py-1
|
|
207
207
|
rounded-lg overflow-hidden
|
|
208
208
|
bg-white shadow-multi-2sm rounded-lg
|
|
209
|
+
|
|
210
|
+
group-data-[direction="topToBottom"]/search-and-select:top-0
|
|
211
|
+
group-data-[direction="topToBottom"]/search-and-select:mt-1
|
|
212
|
+
|
|
213
|
+
group-data-[direction="bottomToTop"]/search-and-select:bottom-0
|
|
214
|
+
group-data-[direction="bottomToTop"]/search-and-select:mb-1
|
|
209
215
|
`,Rw=`
|
|
210
216
|
py-2.5 px-4 cursor-pointer transition-all
|
|
211
217
|
bg-white hover:bg-primary-10 hover:font-medium hover:text-black
|
|
212
|
-
|
|
218
|
+
`;function Uu({isOpen:e,options:t,onSelect:n}){return e?v.jsx("div",{className:Nw,children:v.jsx("ul",{className:Lw,children:t.map(r=>v.jsx("li",{className:Rw,onClick:()=>n(r.value),children:r.label},r.key))})}):null}const _w="relative group/search-and-select min-w-0 w-full",jw=`
|
|
213
219
|
absolute top-0 left-0 right-0 bottom-0
|
|
214
220
|
px-4 flex items-center pointer-events-none
|
|
215
221
|
text-gray-800
|
|
216
222
|
|
|
217
223
|
data-[has-prefix-icon="true"]:pl-10
|
|
218
|
-
`;function
|
|
224
|
+
`;function Bw({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]=T.useState(!1),[E,,P]=bn(e),w=()=>{const j=r.length>0;b!==j&&x(j)};T.useEffect(()=>{w()},[r,w]);const C=T.useMemo(()=>o&&a&&!b&&!E.value,[o,a,b,E.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:_w,tabIndex:0,"data-direction":n,children:[v.jsx(Uu,{isOpen:b&&n==="bottomToTop",options:r,onSelect:N}),v.jsx(Bu,{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:jw,"data-has-prefix-icon":!!l,children:o}),v.jsx(Uu,{isOpen:b&&n==="topToBottom",options:r,onSelect:N})]})}function Uw({isLoading:e=!1,enableReinitialize:t=!0,initialValues:n,validationSchema:r,validateOnMount:o=!1,isForcedDirty:i,onSubmit:s,className:a,children:c}){const[l,u]=T.useState(null),f=p=>{u(p)},h=(p,y)=>{typeof s<"u"?s(p).finally(()=>{y.setSubmitting(!1)}):y.setSubmitting(!1)};return v.jsx(Ba.Provider,{value:{isLoading:e,isForcedDirty:i,onNavigationEvent:f},children:v.jsx(m0,{enableReinitialize:t,initialValues:n,validationSchema:r,validateOnMount:o,onSubmit:h,children:p=>v.jsx("form",{onSubmit:p.handleSubmit,className:nt(D0,a),children:c})})})}const $w=Object.freeze(Object.defineProperty({__proto__:null,Button:O0,Checkbox:Iw,Input:ku,Root:Uw,Search:Bu,SearchAndSelect:Bw,Textarea:yw},Symbol.toStringTag,{value:"Module"})),$u=T.createContext({}),Di=()=>T.useContext($u);function Ww({activeFilter:e,children:t}){const[n,r]=T.useState(!1);return v.jsx($u.Provider,{value:{activeFilter:e,isFiltersDialogOpen:n,setIsFiltersDialogOpen:r},children:t})}const zw=`
|
|
219
225
|
flex flex-col
|
|
220
226
|
items-center justify-center
|
|
221
227
|
rounded-full
|
|
@@ -230,11 +236,11 @@
|
|
|
230
236
|
hover:bg-primary-100
|
|
231
237
|
hover:text-base-white
|
|
232
238
|
hover:border-transparent
|
|
233
|
-
`,
|
|
239
|
+
`,Zw=`
|
|
234
240
|
h-4 w-4
|
|
235
241
|
text-inherit
|
|
236
242
|
inline-block
|
|
237
|
-
`,
|
|
243
|
+
`,Hw=({label:e})=>{const{setIsFiltersDialogOpen:t}=Di();return v.jsx("button",{"data-testid":"dialog-trigger",className:zw,"aria-label":e||"All filters",onClick:()=>t(!0),children:v.jsx(Ru,{className:Zw})})},Kw="relative overflow-hidden",Gw="h-full flex gap-x-2 items-center overflow-auto no-scrollbar outline-px focus:outline-primary-100 -outline-offset-2",Wu="h-full hidden md:flex items-center w-16 absolute from-base-white via-base-white to-transparent",Yw=`${Wu} justify-start left-0 bg-gradient-to-r pl-1`,Xw=`${Wu} justify-end right-0 bg-gradient-to-l pr-1`,zu="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",Zu=50,Oi=128;function qw(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-Oi,behavior:"smooth"})}const Qw=({activeFilter:e,leftArrowAriaLabel:t,rightArrowAriaLabel:n,children:r})=>{const{isFiltersDialogOpen:o}=Di(),[i,s]=T.useState(e),[a,c]=T.useState(o),[l,u]=T.useState(!1),[f,h]=T.useState(!0),p=T.useRef(null);T.useEffect(()=>{c(o)},[o]),T.useEffect(()=>{s(e)},[e]),T.useEffect(()=>{qw(o,e,i,a,p)},[e,i,o,a]);const y=()=>{p.current?.scroll({left:p.current.scrollLeft-p.current.clientWidth+Oi,behavior:"smooth"})},m=()=>{p.current?.scroll({left:p.current.scrollLeft+p.current.clientWidth-Oi,behavior:"smooth"})},g=b=>{const x=Zu,E=b.currentTarget.scrollWidth-b.currentTarget.offsetWidth-Zu;b.currentTarget.scrollLeft>x&&!l?u(!0):b.currentTarget.scrollLeft<x&&l&&u(!1),b.currentTarget.scrollLeft<E&&!f?h(!0):b.currentTarget.scrollLeft>E&&f&&h(!1)};return v.jsx("div",{className:Kw,"data-testid":"scroll-list-container",children:v.jsxs("ul",{"data-testid":"scroll-list",className:Gw,ref:p,onScroll:g,tabIndex:0,children:[l&&v.jsx("li",{className:Yw,children:v.jsx("button",{"data-testid":"left-arrow-button",className:zu,"aria-label":t||"Scroll left",onClick:y,children:v.jsx(Iu,{weight:"bold"})})}),r,f&&v.jsx("li",{className:Xw,children:v.jsx("button",{"data-testid":"right-arrow-button",className:zu,"aria-label":n||"Scroll right",onClick:m,children:v.jsx(Nu,{weight:"bold"})})})]})})},Jw="group list-none",eE=`
|
|
238
244
|
text-gray-400 flex items-center gap-x-2 border border-gray-150
|
|
239
245
|
h-10 px-5 rounded-full cursor-pointer transition-colors -outline-offset-2
|
|
240
246
|
|
|
@@ -245,8 +251,8 @@
|
|
|
245
251
|
group-data-[active=true]:bg-primary-100
|
|
246
252
|
group-data-[active=true]:text-base-white
|
|
247
253
|
group-data-[active=true]:border-transparent
|
|
248
|
-
`,eT="w-5 h-5",tT="text-sm font-medium leading-5 text-nowrap";function nT({filter:e,label:t,icon:n,iconBackgroundColor:r,iconFillColor:o,isActive:i,onSelectFilter:s}){const a=()=>{s&&s(e)};return b.jsx("li",{className:Qw,"data-active":i,"data-testid":"filter-item","data-filter":e,children:b.jsxs("button",{onClick:a,className:Jw,"data-testid":"filter-item-button",children:[r&&o?b.jsx(xs,{element:b.jsx(n,{}),backgroundColor:r,fillColor:o}):b.jsx(n,{className:eT,"data-testid":"filter-item-icon"}),b.jsx("p",{className:tT,"data-testid":"filter-item-label",children:t})]})})}function dt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Zu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Hu(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Zu(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():Zu(e[o],null)}}}}function Ae(...e){return f.useCallback(Hu(...e),e)}function rT(e,t){const n=f.createContext(t),r=i=>{const{children:s,...a}=i,c=f.useMemo(()=>a,Object.values(a));return b.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(i){const s=f.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 Oi(e,t=[]){let n=[];function r(i,s){const a=f.createContext(s),c=n.length;n=[...n,s];const l=d=>{var v;const{scope:h,children:p,...y}=d,m=((v=h==null?void 0:h[e])==null?void 0:v[c])||a,g=f.useMemo(()=>y,Object.values(y));return b.jsx(m.Provider,{value:g,children:p})};l.displayName=i+"Provider";function u(d,h){var m;const p=((m=h==null?void 0:h[e])==null?void 0:m[c])||a,y=f.useContext(p);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const o=()=>{const i=n.map(s=>f.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,oT(o,...t)]}function oT(...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 d=c(i)[`__scope${l}`];return{...a,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var ft=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},iT=f[" useId ".trim().toString()]||(()=>{}),sT=0;function Vi(e){const[t,n]=f.useState(iT());return ft(()=>{n(r=>r??String(sT++))},[e]),e||(t?`radix-${t}`:"")}var aT=f[" useInsertionEffect ".trim().toString()]||ft;function Ku({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=cT({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const u=f.useRef(e!==void 0);f.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} is changing from ${d?"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=f.useCallback(u=>{var d;if(a){const h=lT(u)?u(e):u;h!==e&&((d=s.current)==null||d.call(s,h))}else i(u)},[a,e,i,s]);return[c,l]}function cT({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),i=f.useRef(t);return aT(()=>{i.current=t},[t]),f.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function lT(e){return typeof e=="function"}function hr(e){const t=uT(e),n=f.forwardRef((r,o)=>{const{children:i,...s}=r,a=f.Children.toArray(i),c=a.find(fT);if(c){const l=c.props.children,u=a.map(d=>d===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:d);return b.jsx(t,{...s,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,u):null})}return b.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function uT(e){const t=f.forwardRef((n,r)=>{const{children:o,...i}=n;if(f.isValidElement(o)){const s=pT(o),a=hT(i,o.props);return o.type!==f.Fragment&&(a.ref=r?Hu(r,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dT=Symbol("radix.slottable");function fT(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dT}function hT(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 pT(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=mT.reduce((e,t)=>{const n=hr(`Primitive.${t}`),r=f.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Fi(e,t){e&&ss.flushSync(()=>e.dispatchEvent(t))}function Ne(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Gu(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e);f.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 gT="DismissableLayer",ki="dismissableLayer.update",yT="dismissableLayer.pointerDownOutside",vT="dismissableLayer.focusOutside",Yu,Xu=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qu=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=f.useContext(Xu),[u,d]=f.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=f.useState({}),y=Ae(t,A=>d(A)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(g),x=u?m.indexOf(u):-1,T=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=v,w=TT(A=>{const M=A.target,k=[...l.branches].some(U=>U.contains(M));!C||k||(o==null||o(A),s==null||s(A),A.defaultPrevented||a==null||a())},h),P=ET(A=>{const M=A.target;[...l.branches].some(U=>U.contains(M))||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())},h);return Gu(A=>{x===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),f.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Yu=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Qu(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Yu)}},[u,h,n,l]),f.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Qu())},[u,l]),f.useEffect(()=>{const A=()=>p({});return document.addEventListener(ki,A),()=>document.removeEventListener(ki,A)},[]),b.jsx(ge.div,{...c,ref:y,style:{pointerEvents:T?C?"auto":"none":void 0,...e.style},onFocusCapture:dt(e.onFocusCapture,P.onFocusCapture),onBlurCapture:dt(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:dt(e.onPointerDownCapture,w.onPointerDownCapture)})});qu.displayName=gT;var bT="DismissableLayerBranch",wT=f.forwardRef((e,t)=>{const n=f.useContext(Xu),r=f.useRef(null),o=Ae(t,r);return f.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),b.jsx(ge.div,{...e,ref:o})});wT.displayName=bT;function TT(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Ju(yT,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 ET(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ju(vT,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 Qu(){const e=new CustomEvent(ki);document.dispatchEvent(e)}function Ju(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?Fi(o,i):o.dispatchEvent(i)}var Ii="focusScope.autoFocusOnMount",Ni="focusScope.autoFocusOnUnmount",ed={bubbles:!1,cancelable:!0},xT="FocusScope",td=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=f.useState(null),l=Ne(o),u=Ne(i),d=f.useRef(null),h=Ae(t,m=>c(m)),p=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let m=function(T){if(p.paused||!a)return;const C=T.target;a.contains(C)?d.current=C:ht(d.current,{select:!0})},g=function(T){if(p.paused||!a)return;const C=T.relatedTarget;C!==null&&(a.contains(C)||ht(d.current,{select:!0}))},v=function(T){if(document.activeElement===document.body)for(const w of T)w.removedNodes.length>0&&ht(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const x=new MutationObserver(v);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),x.disconnect()}}},[r,a,p.paused]),f.useEffect(()=>{if(a){od.add(p);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(Ii,ed);a.addEventListener(Ii,l),a.dispatchEvent(v),v.defaultPrevented||(ST(DT(nd(a)),{select:!0}),document.activeElement===m&&ht(a))}return()=>{a.removeEventListener(Ii,l),setTimeout(()=>{const v=new CustomEvent(Ni,ed);a.addEventListener(Ni,u),a.dispatchEvent(v),v.defaultPrevented||ht(m??document.body,{select:!0}),a.removeEventListener(Ni,u),od.remove(p)},0)}}},[a,l,u,p]);const y=f.useCallback(m=>{if(!n&&!r||p.paused)return;const g=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(g&&v){const x=m.currentTarget,[T,C]=AT(x);T&&C?!m.shiftKey&&v===C?(m.preventDefault(),n&&ht(T,{select:!0})):m.shiftKey&&v===T&&(m.preventDefault(),n&&ht(C,{select:!0})):v===x&&m.preventDefault()}},[n,r,p.paused]);return b.jsx(ge.div,{tabIndex:-1,...s,ref:h,onKeyDown:y})});td.displayName=xT;function ST(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ht(r,{select:t}),document.activeElement!==n)return}function AT(e){const t=nd(e),n=rd(t,e),r=rd(t.reverse(),e);return[n,r]}function nd(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 rd(e,t){for(const n of e)if(!CT(n,{upTo:t}))return n}function CT(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 PT(e){return e instanceof HTMLInputElement&&"select"in e}function ht(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&PT(e)&&t&&e.select()}}var od=MT();function MT(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=id(e,t),e.unshift(t)},remove(t){var n;e=id(e,t),(n=e[0])==null||n.resume()}}}function id(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function DT(e){return e.filter(t=>t.tagName!=="A")}var OT="Portal",Li=f.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=f.useState(!1);ft(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?os.createPortal(b.jsx(ge.div,{...r,ref:t}),s):null});Li.displayName=OT;function VT(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var pr=e=>{const{present:t,children:n}=e,r=FT(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=Ae(r.ref,kT(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};pr.displayName="Presence";function FT(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=VT(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=mr(r.current);i.current=a==="mounted"?l:"none"},[a]),ft(()=>{const l=r.current,u=o.current;if(u!==e){const h=i.current,p=mr(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ft(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const m=mr(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=mr(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function mr(e){return(e==null?void 0:e.animationName)||"none"}function kT(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ri=0;function IT(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sd()),document.body.insertAdjacentElement("beforeend",e[1]??sd()),Ri++,()=>{Ri===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ri--}},[])}function sd(){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 pt=function(){return pt=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},pt.apply(this,arguments)};function NT(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 LT(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 gr="right-scroll-bar-position",yr="width-before-scroll-bar",RT="with-scroll-bars-hidden",_T="--removed-body-scroll-bar-size";function _i(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function jT(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 BT=typeof window<"u"?f.useLayoutEffect:f.useEffect,ad=new WeakMap;function UT(e,t){var n=jT(null,function(r){return e.forEach(function(o){return _i(o,r)})});return BT(function(){var r=ad.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||_i(a,null)}),i.forEach(function(a){o.has(a)||_i(a,s)})}ad.set(n,e)},[e]),n}var vr=function(){return vr=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},vr.apply(this,arguments)};function $T(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}typeof SuppressedError=="function"&&SuppressedError;function WT(e){return e}function zT(e,t){t===void 0&&(t=WT);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 ZT(e){e===void 0&&(e={});var t=zT(null);return t.options=vr({async:!0,ssr:!1},e),t}var cd=function(e){var t=e.sideCar,n=$T(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 f.createElement(r,vr({},n))};cd.isSideCarExport=!0;function HT(e,t){return e.useMedium(t),cd}var ld=ZT(),ji=function(){},br=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:ji,onWheelCapture:ji,onTouchMoveCapture:ji}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,p=e.noIsolation,y=e.inert,m=e.allowPinchZoom,g=e.as,v=g===void 0?"div":g,x=e.gapMode,T=NT(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=h,w=UT([n,t]),P=pt(pt({},T),o);return f.createElement(f.Fragment,null,u&&f.createElement(C,{sideCar:ld,removeScrollBar:l,shards:d,noIsolation:p,inert:y,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:x}),s?f.cloneElement(f.Children.only(a),pt(pt({},P),{ref:w})):f.createElement(v,pt({},P,{className:c,ref:w}),a))});br.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},br.classNames={fullWidth:yr,zeroRight:gr};var KT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function GT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=KT();return t&&e.setAttribute("nonce",t),e}function YT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function XT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var qT=function(){var e=0,t=null;return{add:function(n){e==0&&(t=GT())&&(YT(t,n),XT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},QT=function(){var e=qT();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ud=function(){var e=QT(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},JT={left:0,top:0,right:0,gap:0},Bi=function(e){return parseInt(e||"",10)||0},eE=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[Bi(n),Bi(r),Bi(o)]},tE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return JT;var t=eE(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])}},nE=ud(),tn="data-scroll-locked",rE=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
249
|
-
.`.concat(
|
|
254
|
+
`,tE="w-5 h-5",nE="text-sm font-medium leading-5 text-nowrap";function rE({filter:e,label:t,icon:n,iconBackgroundColor:r,iconFillColor:o,isActive:i,onSelectFilter:s}){const a=()=>{s&&s(e)};return v.jsx("li",{className:Jw,"data-active":i,"data-testid":"filter-item","data-filter":e,children:v.jsxs("button",{onClick:a,className:eE,"data-testid":"filter-item-button",children:[r&&o?v.jsx(Ss,{element:v.jsx(n,{}),backgroundColor:r,fillColor:o}):v.jsx(n,{className:tE,"data-testid":"filter-item-icon"}),v.jsx("p",{className:nE,"data-testid":"filter-item-label",children:t})]})})}function ft(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Hu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ku(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Hu(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():Hu(e[o],null)}}}}function Ae(...e){return d.useCallback(Ku(...e),e)}function oE(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 Vi(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,iE(o,...t)]}function iE(...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 ht=globalThis?.document?d.useLayoutEffect:()=>{},sE=d[" useId ".trim().toString()]||(()=>{}),aE=0;function Fi(e){const[t,n]=d.useState(sE());return ht(()=>{n(r=>r??String(aE++))},[e]),e||(t?`radix-${t}`:"")}var cE=d[" useInsertionEffect ".trim().toString()]||ht;function Gu({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=lE({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=uE(u)?u(e):u;f!==e&&s.current?.(f)}else i(u)},[a,e,i,s]);return[c,l]}function lE({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),i=d.useRef(t);return cE(()=>{i.current=t},[t]),d.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function uE(e){return typeof e=="function"}function hr(e){const t=dE(e),n=d.forwardRef((r,o)=>{const{children:i,...s}=r,a=d.Children.toArray(i),c=a.find(hE);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 dE(e){const t=d.forwardRef((n,r)=>{const{children:o,...i}=n;if(d.isValidElement(o)){const s=mE(o),a=pE(i,o.props);return o.type!==d.Fragment&&(a.ref=r?Ku(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 fE=Symbol("radix.slottable");function hE(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fE}function pE(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 mE(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 gE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=gE.reduce((e,t)=>{const n=hr(`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 ki(e,t){e&&as.flushSync(()=>e.dispatchEvent(t))}function Ne(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>t.current?.(...n),[])}function Yu(e,t=globalThis?.document){const n=Ne(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 yE="DismissableLayer",Ii="dismissableLayer.update",vE="dismissableLayer.pointerDownOutside",bE="dismissableLayer.focusOutside",Xu,qu=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qu=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=d.useContext(qu),[u,f]=d.useState(null),h=u?.ownerDocument??globalThis?.document,[,p]=d.useState({}),y=Ae(t,A=>f(A)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(g),x=u?m.indexOf(u):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,P=x>=b,w=TE(A=>{const M=A.target,N=[...l.branches].some(j=>j.contains(M));!P||N||(o?.(A),s?.(A),A.defaultPrevented||a?.())},h),C=xE(A=>{const M=A.target;[...l.branches].some(j=>j.contains(M))||(i?.(A),s?.(A),A.defaultPrevented||a?.())},h);return Yu(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&&(Xu=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ju(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Xu)}},[u,h,n,l]),d.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ju())},[u,l]),d.useEffect(()=>{const A=()=>p({});return document.addEventListener(Ii,A),()=>document.removeEventListener(Ii,A)},[]),v.jsx(me.div,{...c,ref:y,style:{pointerEvents:E?P?"auto":"none":void 0,...e.style},onFocusCapture:ft(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ft(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ft(e.onPointerDownCapture,w.onPointerDownCapture)})});Qu.displayName=yE;var wE="DismissableLayerBranch",EE=d.forwardRef((e,t)=>{const n=d.useContext(qu),r=d.useRef(null),o=Ae(t,r);return d.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),v.jsx(me.div,{...e,ref:o})});EE.displayName=wE;function TE(e,t=globalThis?.document){const n=Ne(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){ed(vE,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 xE(e,t=globalThis?.document){const n=Ne(e),r=d.useRef(!1);return d.useEffect(()=>{const o=i=>{i.target&&!r.current&&ed(bE,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 Ju(){const e=new CustomEvent(Ii);document.dispatchEvent(e)}function ed(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?ki(o,i):o.dispatchEvent(i)}var Ni="focusScope.autoFocusOnMount",Li="focusScope.autoFocusOnUnmount",td={bubbles:!1,cancelable:!0},SE="FocusScope",nd=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=d.useState(null),l=Ne(o),u=Ne(i),f=d.useRef(null),h=Ae(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(E){if(p.paused||!a)return;const P=E.target;a.contains(P)?f.current=P:pt(f.current,{select:!0})},g=function(E){if(p.paused||!a)return;const P=E.relatedTarget;P!==null&&(a.contains(P)||pt(f.current,{select:!0}))},b=function(E){if(document.activeElement===document.body)for(const w of E)w.removedNodes.length>0&&pt(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){id.add(p);const m=document.activeElement;if(!a.contains(m)){const b=new CustomEvent(Ni,td);a.addEventListener(Ni,l),a.dispatchEvent(b),b.defaultPrevented||(AE(OE(rd(a)),{select:!0}),document.activeElement===m&&pt(a))}return()=>{a.removeEventListener(Ni,l),setTimeout(()=>{const b=new CustomEvent(Li,td);a.addEventListener(Li,u),a.dispatchEvent(b),b.defaultPrevented||pt(m??document.body,{select:!0}),a.removeEventListener(Li,u),id.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,[E,P]=CE(x);E&&P?!m.shiftKey&&b===P?(m.preventDefault(),n&&pt(E,{select:!0})):m.shiftKey&&b===E&&(m.preventDefault(),n&&pt(P,{select:!0})):b===x&&m.preventDefault()}},[n,r,p.paused]);return v.jsx(me.div,{tabIndex:-1,...s,ref:h,onKeyDown:y})});nd.displayName=SE;function AE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(pt(r,{select:t}),document.activeElement!==n)return}function CE(e){const t=rd(e),n=od(t,e),r=od(t.reverse(),e);return[n,r]}function rd(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 od(e,t){for(const n of e)if(!PE(n,{upTo:t}))return n}function PE(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 ME(e){return e instanceof HTMLInputElement&&"select"in e}function pt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ME(e)&&t&&e.select()}}var id=DE();function DE(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=sd(e,t),e.unshift(t)},remove(t){e=sd(e,t),e[0]?.resume()}}}function sd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function OE(e){return e.filter(t=>t.tagName!=="A")}var VE="Portal",Ri=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=d.useState(!1);ht(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?is.createPortal(v.jsx(me.div,{...r,ref:t}),s):null});Ri.displayName=VE;function FE(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var pr=e=>{const{present:t,children:n}=e,r=kE(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=Ae(r.ref,IE(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:i}):null};pr.displayName="Presence";function kE(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),i=d.useRef("none"),s=e?"mounted":"unmounted",[a,c]=FE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=mr(r.current);i.current=a==="mounted"?l:"none"},[a]),ht(()=>{const l=r.current,u=o.current;if(u!==e){const h=i.current,p=mr(l);e?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ht(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,f=p=>{const m=mr(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=mr(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 mr(e){return e?.animationName||"none"}function IE(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 _i=0;function NE(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ad()),document.body.insertAdjacentElement("beforeend",e[1]??ad()),_i++,()=>{_i===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_i--}},[])}function ad(){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 mt=function(){return mt=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},mt.apply(this,arguments)};function LE(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 RE(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 gr="right-scroll-bar-position",yr="width-before-scroll-bar",_E="with-scroll-bars-hidden",jE="--removed-body-scroll-bar-size";function ji(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function BE(e,t){var n=T.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 UE=typeof window<"u"?d.useLayoutEffect:d.useEffect,cd=new WeakMap;function $E(e,t){var n=BE(null,function(r){return e.forEach(function(o){return ji(o,r)})});return UE(function(){var r=cd.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||ji(a,null)}),i.forEach(function(a){o.has(a)||ji(a,s)})}cd.set(n,e)},[e]),n}var vr=function(){return vr=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},vr.apply(this,arguments)};function WE(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}typeof SuppressedError=="function"&&SuppressedError;function zE(e){return e}function ZE(e,t){t===void 0&&(t=zE);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 HE(e){e===void 0&&(e={});var t=ZE(null);return t.options=vr({async:!0,ssr:!1},e),t}var ld=function(e){var t=e.sideCar,n=WE(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,vr({},n))};ld.isSideCarExport=!0;function KE(e,t){return e.useMedium(t),ld}var ud=HE(),Bi=function(){},br=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Bi,onWheelCapture:Bi,onTouchMoveCapture:Bi}),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,E=LE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=h,w=$E([n,t]),C=mt(mt({},E),o);return d.createElement(d.Fragment,null,u&&d.createElement(P,{sideCar:ud,removeScrollBar:l,shards:f,noIsolation:p,inert:y,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:x}),s?d.cloneElement(d.Children.only(a),mt(mt({},C),{ref:w})):d.createElement(b,mt({},C,{className:c,ref:w}),a))});br.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},br.classNames={fullWidth:yr,zeroRight:gr};var GE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=GE();return t&&e.setAttribute("nonce",t),e}function XE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var QE=function(){var e=0,t=null;return{add:function(n){e==0&&(t=YE())&&(XE(t,n),qE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},JE=function(){var e=QE();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},dd=function(){var e=JE(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},eT={left:0,top:0,right:0,gap:0},Ui=function(e){return parseInt(e||"",10)||0},tT=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[Ui(n),Ui(r),Ui(o)]},nT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return eT;var t=tT(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])}},rT=dd(),tn="data-scroll-locked",oT=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
255
|
+
.`.concat(_E,` {
|
|
250
256
|
overflow: hidden `).concat(r,`;
|
|
251
257
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
252
258
|
}
|
|
@@ -280,16 +286,16 @@
|
|
|
280
286
|
}
|
|
281
287
|
|
|
282
288
|
body[`).concat(tn,`] {
|
|
283
|
-
`).concat(
|
|
289
|
+
`).concat(jE,": ").concat(a,`px;
|
|
284
290
|
}
|
|
285
|
-
`)},
|
|
291
|
+
`)},fd=function(){var e=parseInt(document.body.getAttribute(tn)||"0",10);return isFinite(e)?e:0},iT=function(){d.useEffect(function(){return document.body.setAttribute(tn,(fd()+1).toString()),function(){var e=fd()-1;e<=0?document.body.removeAttribute(tn):document.body.setAttribute(tn,e.toString())}},[])},sT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;iT();var i=d.useMemo(function(){return nT(o)},[o]);return d.createElement(rT,{styles:oT(i,!t,o,n?"":"!important")})},$i=!1;if(typeof window<"u")try{var wr=Object.defineProperty({},"passive",{get:function(){return $i=!0,!0}});window.addEventListener("test",wr,wr),window.removeEventListener("test",wr,wr)}catch{$i=!1}var nn=$i?{passive:!1}:!1,aT=function(e){return e.tagName==="TEXTAREA"},hd=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!aT(e)&&n[t]==="visible")},cT=function(e){return hd(e,"overflowY")},lT=function(e){return hd(e,"overflowX")},pd=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=md(e,r);if(o){var i=gd(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},uT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},dT=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},md=function(e,t){return e==="v"?cT(t):lT(t)},gd=function(e,t){return e==="v"?uT(t):dT(t)},fT=function(e,t){return e==="h"&&t==="rtl"?-1:1},hT=function(e,t,n,r,o){var i=fT(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=gd(e,a),y=p[0],m=p[1],g=p[2],b=m-g-i*y;(y||b)&&md(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},Er=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yd=function(e){return[e.deltaX,e.deltaY]},vd=function(e){return e&&"current"in e?e.current:e},pT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mT=function(e){return`
|
|
286
292
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
287
293
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
288
|
-
`)},
|
|
294
|
+
`)},gT=0,rn=[];function yT(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(gT++)[0],i=d.useState(dd)[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=RE([e.lockRef.current],(e.shards||[]).map(vd),!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=Er(m),x=n.current,E="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(E)>Math.abs(P)?"h":"v";if("touches"in m&&A==="h"&&C.type==="range")return!1;var M=pd(A,C);if(!M)return!0;if(M?w=A:(w=A==="v"?"h":"v",M=pd(A,C)),!M)return!1;if(!r.current&&"changedTouches"in m&&(E||P)&&(r.current=w),!w)return!0;var N=r.current||w;return hT(N,g,m,N==="h"?E:P)},[]),c=d.useCallback(function(m){var g=m;if(!(!rn.length||rn[rn.length-1]!==i)){var b="deltaY"in g?yd(g):Er(g),x=t.current.filter(function(w){return w.name===g.type&&(w.target===g.target||g.target===w.shadowParent)&&pT(w.delta,b)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}if(!x){var E=(s.current.shards||[]).map(vd).filter(Boolean).filter(function(w){return w.contains(g.target)}),P=E.length>0?a(g,E[0]):!s.current.noIsolation;P&&g.cancelable&&g.preventDefault()}}},[]),l=d.useCallback(function(m,g,b,x){var E={name:m,delta:g,target:b,should:x,shadowParent:vT(b)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(P){return P!==E})},1)},[]),u=d.useCallback(function(m){n.current=Er(m),r.current=void 0},[]),f=d.useCallback(function(m){l(m.type,yd(m),m.target,a(m,e.lockRef.current))},[]),h=d.useCallback(function(m){l(m.type,Er(m),m.target,a(m,e.lockRef.current))},[]);d.useEffect(function(){return rn.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,nn),document.addEventListener("touchmove",c,nn),document.addEventListener("touchstart",u,nn),function(){rn=rn.filter(function(m){return m!==i}),document.removeEventListener("wheel",c,nn),document.removeEventListener("touchmove",c,nn),document.removeEventListener("touchstart",u,nn)}},[]);var p=e.removeScrollBar,y=e.inert;return d.createElement(d.Fragment,null,y?d.createElement(i,{styles:mT(o)}):null,p?d.createElement(sT,{gapMode:e.gapMode}):null)}function vT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bT=KE(ud,yT);var bd=d.forwardRef(function(e,t){return d.createElement(br,mt({},e,{ref:t,sideCar:bT}))});bd.classNames=br.classNames;var wT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},on=new WeakMap,Tr=new WeakMap,xr={},Wi=0,wd=function(e){return e&&(e.host||wd(e.parentNode))},ET=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=wd(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})},TT=function(e,t,n,r){var o=ET(t,Array.isArray(e)?e:[e]);xr[n]||(xr[n]=new WeakMap);var i=xr[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=(on.get(h)||0)+1,g=(i.get(h)||0)+1;on.set(h,m),i.set(h,g),s.push(h),m===1&&y&&Tr.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(),Wi++,function(){s.forEach(function(f){var h=on.get(f)-1,p=i.get(f)-1;on.set(f,h),i.set(f,p),h||(Tr.has(f)||f.removeAttribute(r),Tr.delete(f)),p||f.removeAttribute(n)}),Wi--,Wi||(on=new WeakMap,on=new WeakMap,Tr=new WeakMap,xr={})}},xT=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=wT(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),TT(r,o,n,"aria-hidden")):function(){return null}},Sr="Dialog",[Ed]=Vi(Sr),[ST,Le]=Ed(Sr),Td=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]=Gu({prop:r,defaultProp:o??!1,onChange:i,caller:Sr});return v.jsx(ST,{scope:t,triggerRef:a,contentRef:c,contentId:Fi(),titleId:Fi(),descriptionId:Fi(),open:l,onOpenChange:u,onOpenToggle:d.useCallback(()=>u(f=>!f),[u]),modal:s,children:n})};Td.displayName=Sr;var xd="DialogTrigger",AT=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(xd,n),i=Ae(t,o.triggerRef);return v.jsx(me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Hi(o.open),...r,ref:i,onClick:ft(e.onClick,o.onOpenToggle)})});AT.displayName=xd;var zi="DialogPortal",[CT,Sd]=Ed(zi,{forceMount:void 0}),Ad=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Le(zi,t);return v.jsx(CT,{scope:t,forceMount:n,children:d.Children.map(r,s=>v.jsx(pr,{present:n||i.open,children:v.jsx(Ri,{asChild:!0,container:o,children:s})}))})};Ad.displayName=zi;var Ar="DialogOverlay",Cd=d.forwardRef((e,t)=>{const n=Sd(Ar,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Le(Ar,e.__scopeDialog);return i.modal?v.jsx(pr,{present:r||i.open,children:v.jsx(MT,{...o,ref:t})}):null});Cd.displayName=Ar;var PT=hr("DialogOverlay.RemoveScroll"),MT=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(Ar,n);return v.jsx(bd,{as:PT,allowPinchZoom:!0,shards:[o.contentRef],children:v.jsx(me.div,{"data-state":Hi(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ft="DialogContent",Pd=d.forwardRef((e,t)=>{const n=Sd(Ft,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Le(Ft,e.__scopeDialog);return v.jsx(pr,{present:r||i.open,children:i.modal?v.jsx(DT,{...o,ref:t}):v.jsx(OT,{...o,ref:t})})});Pd.displayName=Ft;var DT=d.forwardRef((e,t)=>{const n=Le(Ft,e.__scopeDialog),r=d.useRef(null),o=Ae(t,n.contentRef,r);return d.useEffect(()=>{const i=r.current;if(i)return xT(i)},[]),v.jsx(Md,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ft(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ft(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:ft(e.onFocusOutside,i=>i.preventDefault())})}),OT=d.forwardRef((e,t)=>{const n=Le(Ft,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return v.jsx(Md,{...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()}})}),Md=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Le(Ft,n),c=d.useRef(null),l=Ae(t,c);return NE(),v.jsxs(v.Fragment,{children:[v.jsx(nd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:v.jsx(Qu,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Hi(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(VT,{titleId:a.titleId}),v.jsx(kT,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Zi="DialogTitle",Dd=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(Zi,n);return v.jsx(me.h2,{id:o.titleId,...r,ref:t})});Dd.displayName=Zi;var Od="DialogDescription",Vd=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(Od,n);return v.jsx(me.p,{id:o.descriptionId,...r,ref:t})});Vd.displayName=Od;var Fd="DialogClose",kd=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(Fd,n);return v.jsx(me.button,{type:"button",...r,ref:t,onClick:ft(e.onClick,()=>o.onOpenChange(!1))})});kd.displayName=Fd;function Hi(e){return e?"open":"closed"}var Id="DialogTitleWarning",[mx,Nd]=oE(Id,{contentName:Ft,titleName:Zi,docsSlug:"dialog"}),VT=({titleId:e})=>{const t=Nd(Id),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
289
295
|
|
|
290
296
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
291
297
|
|
|
292
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return
|
|
298
|
+
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},FT="DialogDescriptionWarning",kT=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Nd(FT).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ld=Td,Rd=Ad,_d=Cd,jd=Pd,Bd=Dd,Ud=Vd,IT=kd;const NT="fixed top-0 left-0 right-0 bottom-0 z-20 opacity-40 bg-gray-400 rounded inset-0",LT=`
|
|
293
299
|
fixed top-0 left-0 h-full w-full
|
|
294
300
|
|
|
295
301
|
md:top-1/2 md:max-h-[475px] md:-translate-y-1/2
|
|
@@ -298,17 +304,17 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
298
304
|
bg-base-white
|
|
299
305
|
py-6
|
|
300
306
|
z-30
|
|
301
|
-
`,
|
|
307
|
+
`,RT="text-center font-semibold text-gray-800",_T="font-medium leading-6 text-gray-400 mt-8 mb-6 px-4",jT="absolute top-5 right-5",BT="h-8 w-8 text-gray-250 hover:text-gray-400 transition-colors",UT="h-full flex flex-col justify-between",$T="px-4 pb-4 flex flex-wrap gap-2 overflow-y-auto",WT="p-6 border-t border-gray-200 flex justify-between items-center",zT="md:w-52",ZT=({title:e,description:t,applyLabel:n,resetLabel:r,onReset:o,onApply:i,onClose:s,children:a})=>{const{isFiltersDialogOpen:c,setIsFiltersDialogOpen:l}=Di(),u=()=>{o(),l(!1)},f=()=>{i(),l(!1)},h=()=>{l(!1),typeof s=="function"&&s()};return v.jsx(Ld,{open:c,children:v.jsxs(Rd,{children:[v.jsx(_d,{className:NT,"data-testid":"dialog-overlay"}),v.jsxs(jd,{className:LT,"data-testid":"dialog-content",children:[v.jsx(Bd,{className:RT,"data-testid":"dialog-title",children:e}),v.jsx(IT,{className:jT,onClick:h,"data-testid":"dialog-close",children:v.jsx(ju,{className:BT})}),v.jsxs("div",{className:UT,"data-testid":"dialog-filters",children:[v.jsx(Ud,{className:_T,"data-testid":"dialog-description",children:t}),v.jsx("div",{className:$T,"data-testid":"dialog-filter-children",children:a}),v.jsxs("div",{className:WT,"data-testid":"dialog-footer",children:[v.jsx(ln,{variant:"ghost",onClick:u,"data-testid":"dialog-reset-button",children:r}),v.jsx(ln,{className:zT,onClick:f,"data-testid":"dialog-apply-button",children:n})]})]})]})]})})};function HT(e){return v.jsx(Ww,{children:e.children})}const KT=Object.freeze(Object.defineProperty({__proto__:null,Dialog:ZT,DialogTrigger:Hw,Filter:rE,Root:HT,ScrollList:Qw},Symbol.toStringTag,{value:"Module"})),GT="fixed inset-0 bg-black/50 data-[state=open]:animate-overlayShow z-10",YT=`
|
|
302
308
|
fixed left-1/2 top-1/2 z-10
|
|
303
309
|
-translate-x-1/2 -translate-y-1/2
|
|
304
310
|
shadow-lg focus:outline-none
|
|
305
311
|
|
|
306
312
|
data-[state=open]:animate-contentShow
|
|
307
|
-
`,YE="flex flex-col gap-y-6 whitespace-pre-line",XE="flex items-center justify-between m-0 text-2xl text-gray-800",qE="m-0",QE="h-8 w-8 cursor-pointer transition-colors hover:bg-gray-200 rounded-full flex items-center justify-center",JE="flex justify-end gap-2",e2=({title:e,description:t,isOpen:n,children:r,onClose:o})=>b.jsx(Nd,{open:n,children:b.jsxs(Ld,{children:[b.jsx(Rd,{className:KE}),b.jsx(_d,{className:GE,children:b.jsx(Es,{children:b.jsxs("div",{className:YE,children:[b.jsxs(jd,{className:XE,children:[b.jsx("span",{children:e}),b.jsx(fr,{size:32,className:QE,onClick:o})]}),b.jsx(Bd,{className:qE,children:t}),b.jsx("div",{className:JE,children:r})]})})})]})});function Ce(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function t2(e){const t=e+"CollectionProvider",[n,r]=Oi(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:g,children:v}=m,x=E.useRef(null),T=E.useRef(new Map).current;return b.jsx(o,{scope:g,itemMap:T,collectionRef:x,children:v})};s.displayName=t;const a=e+"CollectionSlot",c=hr(a),l=E.forwardRef((m,g)=>{const{scope:v,children:x}=m,T=i(a,v),C=Ae(g,T.collectionRef);return b.jsx(c,{ref:C,children:x})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=hr(u),p=E.forwardRef((m,g)=>{const{scope:v,children:x,...T}=m,C=E.useRef(null),w=Ae(g,C),P=i(u,v);return E.useEffect(()=>(P.itemMap.set(C,{ref:C,...T}),()=>void P.itemMap.delete(C))),b.jsx(h,{[d]:"",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(`[${d}]`));return Array.from(g.itemMap.values()).sort((P,A)=>T.indexOf(P.ref.current)-T.indexOf(A.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:l,ItemSlot:p},y,r]}var n2="DismissableLayer",Hi="dismissableLayer.update",r2="dismissableLayer.pointerDownOutside",o2="dismissableLayer.focusOutside",Ud,$d=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wd=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=f.useContext($d),[u,d]=f.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=f.useState({}),y=Ae(t,A=>d(A)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(g),x=u?m.indexOf(u):-1,T=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=v,w=s2(A=>{const M=A.target,k=[...l.branches].some(U=>U.contains(M));!C||k||(o==null||o(A),s==null||s(A),A.defaultPrevented||a==null||a())},h),P=a2(A=>{const M=A.target;[...l.branches].some(U=>U.contains(M))||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())},h);return Gu(A=>{x===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),f.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),Zd(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Ud)}},[u,h,n,l]),f.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Zd())},[u,l]),f.useEffect(()=>{const A=()=>p({});return document.addEventListener(Hi,A),()=>document.removeEventListener(Hi,A)},[]),b.jsx(ge.div,{...c,ref:y,style:{pointerEvents:T?C?"auto":"none":void 0,...e.style},onFocusCapture:Ce(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Ce(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Ce(e.onPointerDownCapture,w.onPointerDownCapture)})});Wd.displayName=n2;var i2="DismissableLayerBranch",zd=f.forwardRef((e,t)=>{const n=f.useContext($d),r=f.useRef(null),o=Ae(t,r);return f.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),b.jsx(ge.div,{...e,ref:o})});zd.displayName=i2;function s2(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Hd(r2,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==null?void 0:globalThis.document){const n=Ne(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&Hd(o2,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 Zd(){const e=new CustomEvent(Hi);document.dispatchEvent(e)}function Hd(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?Fi(o,i):o.dispatchEvent(i)}var c2=Wd,l2=zd;function u2(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var Kd=e=>{const{present:t,children:n}=e,r=d2(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=Ae(r.ref,f2(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};Kd.displayName="Presence";function d2(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=u2(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Cr(r.current);i.current=a==="mounted"?l:"none"},[a]),ft(()=>{const l=r.current,u=o.current;if(u!==e){const h=i.current,p=Cr(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ft(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const m=Cr(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=Cr(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Cr(e){return(e==null?void 0:e.animationName)||"none"}function f2(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var h2=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"}),p2="VisuallyHidden",Ki=f.forwardRef((e,t)=>b.jsx(ge.span,{...e,ref:t,style:{...h2,...e.style}}));Ki.displayName=p2;var Gi="ToastProvider",[Yi,m2,g2]=t2("Toast"),[Gd,gx]=Oi("Toast",[g2]),[y2,Pr]=Gd(Gi),Yd=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,c]=f.useState(null),[l,u]=f.useState(0),d=f.useRef(!1),h=f.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Gi}\`. Expected non-empty \`string\`.`),b.jsx(Yi.Provider,{scope:t,children:b.jsx(y2,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:l,viewport:a,onViewportChange:c,onToastAdd:f.useCallback(()=>u(p=>p+1),[]),onToastRemove:f.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:s})})};Yd.displayName=Gi;var Xd="ToastViewport",v2=["F8"],Xi="toast.viewportPause",qi="toast.viewportResume",qd=f.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=v2,label:o="Notifications ({hotkey})",...i}=e,s=Pr(Xd,n),a=m2(n),c=f.useRef(null),l=f.useRef(null),u=f.useRef(null),d=f.useRef(null),h=Ae(t,d,s.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=s.toastCount>0;f.useEffect(()=>{const g=v=>{var T;r.length!==0&&r.every(C=>v[C]||v.code===C)&&((T=d.current)==null||T.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[r]),f.useEffect(()=>{const g=c.current,v=d.current;if(y&&g&&v){const x=()=>{if(!s.isClosePausedRef.current){const P=new CustomEvent(Xi);v.dispatchEvent(P),s.isClosePausedRef.current=!0}},T=()=>{if(s.isClosePausedRef.current){const P=new CustomEvent(qi);v.dispatchEvent(P),s.isClosePausedRef.current=!1}},C=P=>{!g.contains(P.relatedTarget)&&T()},w=()=>{g.contains(document.activeElement)||T()};return g.addEventListener("focusin",x),g.addEventListener("focusout",C),g.addEventListener("pointermove",x),g.addEventListener("pointerleave",w),window.addEventListener("blur",x),window.addEventListener("focus",T),()=>{g.removeEventListener("focusin",x),g.removeEventListener("focusout",C),g.removeEventListener("pointermove",x),g.removeEventListener("pointerleave",w),window.removeEventListener("blur",x),window.removeEventListener("focus",T)}}},[y,s.isClosePausedRef]);const m=f.useCallback(({tabbingDirection:g})=>{const x=a().map(T=>{const C=T.ref.current,w=[C,...V2(C)];return g==="forwards"?w:w.reverse()});return(g==="forwards"?x.reverse():x).flat()},[a]);return f.useEffect(()=>{const g=d.current;if(g){const v=x=>{var w,P,A;const T=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!T){const M=document.activeElement,k=x.shiftKey;if(x.target===g&&k){(w=l.current)==null||w.focus();return}const me=m({tabbingDirection:k?"backwards":"forwards"}),ie=me.findIndex(R=>R===M);Ji(me.slice(ie+1))?x.preventDefault():k?(P=l.current)==null||P.focus():(A=u.current)==null||A.focus()}};return g.addEventListener("keydown",v),()=>g.removeEventListener("keydown",v)}},[a,m]),b.jsxs(l2,{ref:c,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&b.jsx(Qi,{ref:l,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"forwards"});Ji(g)}}),b.jsx(Yi.Slot,{scope:n,children:b.jsx(ge.ol,{tabIndex:-1,...i,ref:h})}),y&&b.jsx(Qi,{ref:u,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"backwards"});Ji(g)}})]})});qd.displayName=Xd;var Qd="ToastFocusProxy",Qi=f.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Pr(Qd,n);return b.jsx(Ki,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var l;const a=s.relatedTarget;!((l=i.viewport)!=null&&l.contains(a))&&r()}})});Qi.displayName=Qd;var Ln="Toast",b2="toast.swipeStart",w2="toast.swipeMove",T2="toast.swipeCancel",E2="toast.swipeEnd",Jd=f.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,c]=Ku({prop:r,defaultProp:o??!0,onChange:i,caller:Ln});return b.jsx(Kd,{present:n||a,children:b.jsx(A2,{open:a,...s,ref:t,onClose:()=>c(!1),onPause:Ne(e.onPause),onResume:Ne(e.onResume),onSwipeStart:Ce(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ce(e.onSwipeMove,l=>{const{x:u,y:d}=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",`${d}px`)}),onSwipeCancel:Ce(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:Ce(e.onSwipeEnd,l=>{const{x:u,y:d}=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",`${d}px`),c(!1)})})})});Jd.displayName=Ln;var[x2,S2]=Gd(Ln,{onClose(){}}),A2=f.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:p,...y}=e,m=Pr(Ln,n),[g,v]=f.useState(null),x=Ae(t,R=>v(R)),T=f.useRef(null),C=f.useRef(null),w=o||m.duration,P=f.useRef(0),A=f.useRef(w),M=f.useRef(0),{onToastAdd:k,onToastRemove:U}=m,oe=Ne(()=>{var Y;(g==null?void 0:g.contains(document.activeElement))&&((Y=m.viewport)==null||Y.focus()),s()}),me=f.useCallback(R=>{!R||R===1/0||(window.clearTimeout(M.current),P.current=new Date().getTime(),M.current=window.setTimeout(oe,R))},[oe]);f.useEffect(()=>{const R=m.viewport;if(R){const Y=()=>{me(A.current),l==null||l()},se=()=>{const $=new Date().getTime()-P.current;A.current=A.current-$,window.clearTimeout(M.current),c==null||c()};return R.addEventListener(Xi,se),R.addEventListener(qi,Y),()=>{R.removeEventListener(Xi,se),R.removeEventListener(qi,Y)}}},[m.viewport,w,c,l,me]),f.useEffect(()=>{i&&!m.isClosePausedRef.current&&me(w)},[i,w,m.isClosePausedRef,me]),f.useEffect(()=>(k(),()=>U()),[k,U]);const ie=f.useMemo(()=>g?cf(g):null,[g]);return m.viewport?b.jsxs(b.Fragment,{children:[ie&&b.jsx(C2,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:ie}),b.jsx(x2,{scope:n,onClose:oe,children:ss.createPortal(b.jsx(Yi.ItemSlot,{scope:n,children:b.jsx(c2,{asChild:!0,onEscapeKeyDown:Ce(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||oe(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.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:Ce(e.onKeyDown,R=>{R.key==="Escape"&&(a==null||a(R.nativeEvent),R.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,oe()))}),onPointerDown:Ce(e.onPointerDown,R=>{R.button===0&&(T.current={x:R.clientX,y:R.clientY})}),onPointerMove:Ce(e.onPointerMove,R=>{if(!T.current)return;const Y=R.clientX-T.current.x,se=R.clientY-T.current.y,$=!!C.current,D=["left","right"].includes(m.swipeDirection),fe=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,we=D?fe(0,Y):0,Pe=D?0:fe(0,se),Ee=R.pointerType==="touch"?10:2,Q={x:we,y:Pe},ce={originalEvent:R,delta:Q};$?(C.current=Q,Mr(w2,d,ce,{discrete:!1})):lf(Q,m.swipeDirection,Ee)?(C.current=Q,Mr(b2,u,ce,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(Y)>Ee||Math.abs(se)>Ee)&&(T.current=null)}),onPointerUp:Ce(e.onPointerUp,R=>{const Y=C.current,se=R.target;if(se.hasPointerCapture(R.pointerId)&&se.releasePointerCapture(R.pointerId),C.current=null,T.current=null,Y){const $=R.currentTarget,D={originalEvent:R,delta:Y};lf(Y,m.swipeDirection,m.swipeThreshold)?Mr(E2,p,D,{discrete:!0}):Mr(T2,h,D,{discrete:!0}),$.addEventListener("click",fe=>fe.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),C2=e=>{const{__scopeToast:t,children:n,...r}=e,o=Pr(Ln,t),[i,s]=f.useState(!1),[a,c]=f.useState(!1);return D2(()=>s(!0)),f.useEffect(()=>{const l=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:b.jsx(Li,{asChild:!0,children:b.jsx(Ki,{...r,children:i&&b.jsxs(b.Fragment,{children:[o.label," ",n]})})})},P2="ToastTitle",ef=f.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(ge.div,{...r,ref:t})});ef.displayName=P2;var M2="ToastDescription",tf=f.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(ge.div,{...r,ref:t})});tf.displayName=M2;var nf="ToastAction",rf=f.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?b.jsx(af,{altText:n,asChild:!0,children:b.jsx(sf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${nf}\`. Expected non-empty \`string\`.`),null)});rf.displayName=nf;var of="ToastClose",sf=f.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=S2(of,n);return b.jsx(af,{asChild:!0,children:b.jsx(ge.button,{type:"button",...r,ref:t,onClick:Ce(e.onClick,o.onClose)})})});sf.displayName=of;var af=f.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return b.jsx(ge.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function cf(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),O2(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(...cf(r))}}),t}function Mr(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?Fi(o,i):o.dispatchEvent(i)}var lf=(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 D2(e=()=>{}){const t=Ne(e);ft(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function O2(e){return e.nodeType===e.ELEMENT_NODE}function V2(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 Ji(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var F2=Yd,k2=qd,I2=Jd,N2=ef,L2=tf,R2=rf;const _2=`
|
|
313
|
+
`,XT="flex flex-col gap-y-6 whitespace-pre-line",qT="flex items-center justify-between m-0 text-2xl text-gray-800",QT="m-0",JT="h-8 w-8 cursor-pointer transition-colors hover:bg-gray-200 rounded-full flex items-center justify-center",e2="flex justify-end gap-2",t2=({title:e,description:t,isOpen:n,children:r,onClose:o})=>v.jsx(Ld,{open:n,children:v.jsxs(Rd,{children:[v.jsx(_d,{className:GT}),v.jsx(jd,{className:YT,children:v.jsx(xs,{children:v.jsxs("div",{className:XT,children:[v.jsxs(Bd,{className:qT,children:[v.jsx("span",{children:e}),v.jsx(fr,{size:32,className:JT,onClick:o})]}),v.jsx(Ud,{className:QT,children:t}),v.jsx("div",{className:e2,children:r})]})})})]})});function Ce(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function n2(e){const t=e+"CollectionProvider",[n,r]=Vi(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:g,children:b}=m,x=T.useRef(null),E=T.useRef(new Map).current;return v.jsx(o,{scope:g,itemMap:E,collectionRef:x,children:b})};s.displayName=t;const a=e+"CollectionSlot",c=hr(a),l=T.forwardRef((m,g)=>{const{scope:b,children:x}=m,E=i(a,b),P=Ae(g,E.collectionRef);return v.jsx(c,{ref:P,children:x})});l.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",h=hr(u),p=T.forwardRef((m,g)=>{const{scope:b,children:x,...E}=m,P=T.useRef(null),w=Ae(g,P),C=i(u,b);return T.useEffect(()=>(C.itemMap.set(P,{ref:P,...E}),()=>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 T.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const E=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((C,A)=>E.indexOf(C.ref.current)-E.indexOf(A.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:l,ItemSlot:p},y,r]}var r2="DismissableLayer",Ki="dismissableLayer.update",o2="dismissableLayer.pointerDownOutside",i2="dismissableLayer.focusOutside",$d,Wd=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zd=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=d.useContext(Wd),[u,f]=d.useState(null),h=u?.ownerDocument??globalThis?.document,[,p]=d.useState({}),y=Ae(t,A=>f(A)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(g),x=u?m.indexOf(u):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,P=x>=b,w=a2(A=>{const M=A.target,N=[...l.branches].some(j=>j.contains(M));!P||N||(o?.(A),s?.(A),A.defaultPrevented||a?.())},h),C=c2(A=>{const M=A.target;[...l.branches].some(j=>j.contains(M))||(i?.(A),s?.(A),A.defaultPrevented||a?.())},h);return Yu(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&&($d=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=$d)}},[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(Ki,A),()=>document.removeEventListener(Ki,A)},[]),v.jsx(me.div,{...c,ref:y,style:{pointerEvents:E?P?"auto":"none":void 0,...e.style},onFocusCapture:Ce(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Ce(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Ce(e.onPointerDownCapture,w.onPointerDownCapture)})});zd.displayName=r2;var s2="DismissableLayerBranch",Zd=d.forwardRef((e,t)=>{const n=d.useContext(Wd),r=d.useRef(null),o=Ae(t,r);return d.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),v.jsx(me.div,{...e,ref:o})});Zd.displayName=s2;function a2(e,t=globalThis?.document){const n=Ne(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Kd(o2,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 c2(e,t=globalThis?.document){const n=Ne(e),r=d.useRef(!1);return d.useEffect(()=>{const o=i=>{i.target&&!r.current&&Kd(i2,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(Ki);document.dispatchEvent(e)}function Kd(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?ki(o,i):o.dispatchEvent(i)}var l2=zd,u2=Zd;function d2(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Gd=e=>{const{present:t,children:n}=e,r=f2(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=Ae(r.ref,h2(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:i}):null};Gd.displayName="Presence";function f2(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),i=d.useRef("none"),s=e?"mounted":"unmounted",[a,c]=d2(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=Cr(r.current);i.current=a==="mounted"?l:"none"},[a]),ht(()=>{const l=r.current,u=o.current;if(u!==e){const h=i.current,p=Cr(l);e?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ht(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,f=p=>{const m=Cr(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=Cr(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 Cr(e){return e?.animationName||"none"}function h2(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 p2=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"}),m2="VisuallyHidden",Gi=d.forwardRef((e,t)=>v.jsx(me.span,{...e,ref:t,style:{...p2,...e.style}}));Gi.displayName=m2;var Yi="ToastProvider",[Xi,g2,y2]=n2("Toast"),[Yd]=Vi("Toast",[y2]),[v2,Pr]=Yd(Yi),Xd=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 \`${Yi}\`. Expected non-empty \`string\`.`),v.jsx(Xi.Provider,{scope:t,children:v.jsx(v2,{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})})};Xd.displayName=Yi;var qd="ToastViewport",b2=["F8"],qi="toast.viewportPause",Qi="toast.viewportResume",Qd=d.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=b2,label:o="Notifications ({hotkey})",...i}=e,s=Pr(qd,n),a=g2(n),c=d.useRef(null),l=d.useRef(null),u=d.useRef(null),f=d.useRef(null),h=Ae(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(E=>b[E]||b.code===E)&&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(qi);b.dispatchEvent(C),s.isClosePausedRef.current=!0}},E=()=>{if(s.isClosePausedRef.current){const C=new CustomEvent(Qi);b.dispatchEvent(C),s.isClosePausedRef.current=!1}},P=C=>{!g.contains(C.relatedTarget)&&E()},w=()=>{g.contains(document.activeElement)||E()};return g.addEventListener("focusin",x),g.addEventListener("focusout",P),g.addEventListener("pointermove",x),g.addEventListener("pointerleave",w),window.addEventListener("blur",x),window.addEventListener("focus",E),()=>{g.removeEventListener("focusin",x),g.removeEventListener("focusout",P),g.removeEventListener("pointermove",x),g.removeEventListener("pointerleave",w),window.removeEventListener("blur",x),window.removeEventListener("focus",E)}}},[y,s.isClosePausedRef]);const m=d.useCallback(({tabbingDirection:g})=>{const x=a().map(E=>{const P=E.ref.current,w=[P,...F2(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 E=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!E){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(ee=>ee===w);es(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(u2,{ref:c,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&v.jsx(Ji,{ref:l,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"forwards"});es(g)}}),v.jsx(Xi.Slot,{scope:n,children:v.jsx(me.ol,{tabIndex:-1,...i,ref:h})}),y&&v.jsx(Ji,{ref:u,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"backwards"});es(g)}})]})});Qd.displayName=qd;var Jd="ToastFocusProxy",Ji=d.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Pr(Jd,n);return v.jsx(Gi,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{const a=s.relatedTarget;!i.viewport?.contains(a)&&r()}})});Ji.displayName=Jd;var Ln="Toast",w2="toast.swipeStart",E2="toast.swipeMove",T2="toast.swipeCancel",x2="toast.swipeEnd",ef=d.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,c]=Gu({prop:r,defaultProp:o??!0,onChange:i,caller:Ln});return v.jsx(Gd,{present:n||a,children:v.jsx(C2,{open:a,...s,ref:t,onClose:()=>c(!1),onPause:Ne(e.onPause),onResume:Ne(e.onResume),onSwipeStart:Ce(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ce(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:Ce(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:Ce(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)})})})});ef.displayName=Ln;var[S2,A2]=Yd(Ln,{onClose(){}}),C2=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=Pr(Ln,n),[g,b]=d.useState(null),x=Ae(t,_=>b(_)),E=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,ee=Ne(()=>{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(ee,_))},[ee]);d.useEffect(()=>{const _=m.viewport;if(_){const te=()=>{Ee(A.current),l?.()},ie=()=>{const $=new Date().getTime()-C.current;A.current=A.current-$,window.clearTimeout(M.current),c?.()};return _.addEventListener(qi,ie),_.addEventListener(Qi,te),()=>{_.removeEventListener(qi,ie),_.removeEventListener(Qi,te)}}},[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 ue=d.useMemo(()=>g?lf(g):null,[g]);return m.viewport?v.jsxs(v.Fragment,{children:[ue&&v.jsx(P2,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:ue}),v.jsx(S2,{scope:n,onClose:ee,children:as.createPortal(v.jsx(Xi.ItemSlot,{scope:n,children:v.jsx(l2,{asChild:!0,onEscapeKeyDown:Ce(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||ee(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:v.jsx(me.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...y,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ce(e.onKeyDown,_=>{_.key==="Escape"&&(a?.(_.nativeEvent),_.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,ee()))}),onPointerDown:Ce(e.onPointerDown,_=>{_.button===0&&(E.current={x:_.clientX,y:_.clientY})}),onPointerMove:Ce(e.onPointerMove,_=>{if(!E.current)return;const te=_.clientX-E.current.x,ie=_.clientY-E.current.y,$=!!P.current,D=["left","right"].includes(m.swipeDirection),fe=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,be=D?fe(0,te):0,Pe=D?0:fe(0,ie),Te=_.pointerType==="touch"?10:2,q={x:be,y:Pe},ae={originalEvent:_,delta:q};$?(P.current=q,Mr(E2,f,ae,{discrete:!1})):uf(q,m.swipeDirection,Te)?(P.current=q,Mr(w2,u,ae,{discrete:!1}),_.target.setPointerCapture(_.pointerId)):(Math.abs(te)>Te||Math.abs(ie)>Te)&&(E.current=null)}),onPointerUp:Ce(e.onPointerUp,_=>{const te=P.current,ie=_.target;if(ie.hasPointerCapture(_.pointerId)&&ie.releasePointerCapture(_.pointerId),P.current=null,E.current=null,te){const $=_.currentTarget,D={originalEvent:_,delta:te};uf(te,m.swipeDirection,m.swipeThreshold)?Mr(x2,p,D,{discrete:!0}):Mr(T2,h,D,{discrete:!0}),$.addEventListener("click",fe=>fe.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),P2=e=>{const{__scopeToast:t,children:n,...r}=e,o=Pr(Ln,t),[i,s]=d.useState(!1),[a,c]=d.useState(!1);return O2(()=>s(!0)),d.useEffect(()=>{const l=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:v.jsx(Ri,{asChild:!0,children:v.jsx(Gi,{...r,children:i&&v.jsxs(v.Fragment,{children:[o.label," ",n]})})})},M2="ToastTitle",tf=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(me.div,{...r,ref:t})});tf.displayName=M2;var D2="ToastDescription",nf=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(me.div,{...r,ref:t})});nf.displayName=D2;var rf="ToastAction",of=d.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?v.jsx(cf,{altText:n,asChild:!0,children:v.jsx(af,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${rf}\`. Expected non-empty \`string\`.`),null)});of.displayName=rf;var sf="ToastClose",af=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=A2(sf,n);return v.jsx(cf,{asChild:!0,children:v.jsx(me.button,{type:"button",...r,ref:t,onClick:Ce(e.onClick,o.onClose)})})});af.displayName=sf;var cf=d.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return v.jsx(me.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function lf(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),V2(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(...lf(r))}}),t}function Mr(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?ki(o,i):o.dispatchEvent(i)}var uf=(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 O2(e=()=>{}){const t=Ne(e);ht(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function V2(e){return e.nodeType===e.ELEMENT_NODE}function F2(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 es(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var k2=Xd,I2=Qd,N2=ef,L2=tf,R2=nf,_2=of;const j2=`
|
|
308
314
|
fixed z-10 top-6
|
|
309
315
|
w-[80%] left-[10%]
|
|
310
316
|
md:w-[60%] md:left-[20%]
|
|
311
|
-
`,
|
|
317
|
+
`,B2="relative",U2="flex-1",$2="font-medium text-base",W2="text-sm font-normal align-left",z2="h-5 w-5",Z2="border-none bg-transparent cursor-pointer p-0",H2=`
|
|
312
318
|
group rounded-lg my-2 p-4
|
|
313
319
|
flex items-start justify-between gap-x-2 md:gap-x-3
|
|
314
320
|
|
|
@@ -316,7 +322,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
316
322
|
data-[variant="success"]:bg-feedback-success-50
|
|
317
323
|
data-[variant="information"]:bg-feedback-info-50
|
|
318
324
|
data-[variant="warning"]:bg-feedback-warning-50
|
|
319
|
-
`,
|
|
325
|
+
`,K2="text-primary-100 ml-1",G2=`
|
|
320
326
|
h-10 w-10 p-2 pl-2.5
|
|
321
327
|
rounded-lg flex items-center justify-between
|
|
322
328
|
|
|
@@ -328,4 +334,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
328
334
|
group-data-[variant="success"]:bg-feedback-success-100
|
|
329
335
|
group-data-[variant="information"]:bg-feedback-info-100
|
|
330
336
|
group-data-[variant="warning"]:bg-feedback-warning-100
|
|
331
|
-
`,
|
|
337
|
+
`,df=({toasts:e,onClose:t})=>v.jsx("div",{className:j2,children:v.jsx(Ov,{children:e.map(n=>v.jsx(Mi.div,{className:B2,initial:{translateY:-25,opacity:0},animate:{translateY:0,opacity:1},exit:{translateY:-25,opacity:0},transition:{duration:.2},children:v.jsxs(k2,{swipeDirection:"right",children:[v.jsxs(N2,{className:H2,"data-variant":n.variant,duration:n.timeout||5e3,children:[v.jsx(L2,{children:v.jsx("div",{className:G2,"data-variant":n.variant})}),v.jsxs(R2,{className:U2,children:[v.jsx("div",{className:$2,children:n.title}),v.jsxs("div",{className:W2,children:[n.description,n.action&&n.actionCallback&&v.jsx("button",{onClick:n.actionCallback,className:K2,children:n.action})]})]}),v.jsx(_2,{asChild:!0,altText:"Close Toast Alert",children:t&&v.jsx("button",{className:Z2,onClick:()=>n.id&&t(n.id),type:"button",children:v.jsx(fr,{className:z2})})})]}),v.jsx(I2,{})]})},n.id))})}),ve=[];for(let e=0;e<256;++e)ve.push((e+256).toString(16).slice(1));function Y2(e,t=0){return(ve[e[t+0]]+ve[e[t+1]]+ve[e[t+2]]+ve[e[t+3]]+"-"+ve[e[t+4]]+ve[e[t+5]]+"-"+ve[e[t+6]]+ve[e[t+7]]+"-"+ve[e[t+8]]+ve[e[t+9]]+"-"+ve[e[t+10]]+ve[e[t+11]]+ve[e[t+12]]+ve[e[t+13]]+ve[e[t+14]]+ve[e[t+15]]).toLowerCase()}let ts;const X2=new Uint8Array(16);function q2(){if(!ts){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ts=crypto.getRandomValues.bind(crypto)}return ts(X2)}const ff={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Q2(e,t,n){e=e||{};const r=e.random??e.rng?.()??q2();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,Y2(r)}function J2(e,t,n){return ff.randomUUID&&!e?ff.randomUUID():Q2(e)}const hf=T.createContext({toastAlerts:[],openToastAlert:()=>{},closeToastAlerts:()=>{}}),ex=()=>T.useContext(hf),tx=({children:e})=>{const[t,n]=T.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=`${J2()}`;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(hf.Provider,{value:{toastAlerts:t,openToastAlert:o,closeToastAlerts:r},children:[e,v.jsx(df,{toasts:t,onClose:r})]})};K.Button=ln,K.Card=xs,K.ColorIcon=Ss,K.Form=$w,K.HorizontalScrollFilters=KT,K.Modal=t2,K.ToastAlerts=df,K.ToastAlertsProvider=tx,K.useToastAlerts=ex,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});
|