@dss-kit/ui-kit 0.1.0 → 0.1.2
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/README.md +21 -21
- package/dist/components/builders/Box/Box.d.ts +4 -1
- package/dist/components/builders/Box/Box.d.ts.map +1 -1
- package/dist/components/builders/Modal/Modal.d.ts +33 -0
- package/dist/components/builders/Modal/Modal.d.ts.map +1 -0
- package/dist/components/builders/Modal/Modal.stories.d.ts +9 -0
- package/dist/components/builders/Modal/Modal.stories.d.ts.map +1 -0
- package/dist/components/builders/Modal/ModalFooter/ModalFooter.d.ts +4 -0
- package/dist/components/builders/Modal/ModalFooter/ModalFooter.d.ts.map +1 -0
- package/dist/components/builders/Modal/ModalFooter/index.d.ts +2 -0
- package/dist/components/builders/Modal/ModalFooter/index.d.ts.map +1 -0
- package/dist/components/builders/Modal/ModalHeader/ModalHeader.d.ts +12 -0
- package/dist/components/builders/Modal/ModalHeader/ModalHeader.d.ts.map +1 -0
- package/dist/components/builders/Modal/ModalHeader/index.d.ts +2 -0
- package/dist/components/builders/Modal/ModalHeader/index.d.ts.map +1 -0
- package/dist/components/builders/Modal/ModalMain/ModalMain.d.ts +34 -0
- package/dist/components/builders/Modal/ModalMain/ModalMain.d.ts.map +1 -0
- package/dist/components/builders/Modal/ModalMain/index.d.ts +3 -0
- package/dist/components/builders/Modal/ModalMain/index.d.ts.map +1 -0
- package/dist/components/builders/Modal/index.d.ts +13 -0
- package/dist/components/builders/Modal/index.d.ts.map +1 -0
- package/dist/components/builders/Ripple/Ripple.d.ts +39 -0
- package/dist/components/builders/Ripple/Ripple.d.ts.map +1 -0
- package/dist/components/builders/Ripple/index.d.ts +2 -0
- package/dist/components/builders/Ripple/index.d.ts.map +1 -0
- package/dist/components/builders/Text/Text.d.ts +9 -6
- package/dist/components/builders/Text/Text.d.ts.map +1 -1
- package/dist/components/builders/Text/utils/systemToClass.d.ts +4 -0
- package/dist/components/builders/Text/utils/systemToClass.d.ts.map +1 -1
- package/dist/components/builders/index.d.ts +1 -0
- package/dist/components/builders/index.d.ts.map +1 -1
- package/dist/components/controls/Button/Button.d.ts +4 -0
- package/dist/components/controls/Button/Button.d.ts.map +1 -1
- package/dist/components/controls/Button/index.d.ts +1 -1
- package/dist/components/controls/Button/index.d.ts.map +1 -1
- package/dist/components/controls/Button/styles.d.ts.map +1 -1
- package/dist/components/controls/Checkbox/Checkbox.d.ts +20 -0
- package/dist/components/controls/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/controls/Checkbox/Checkbox.stories.d.ts +12 -0
- package/dist/components/controls/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/dist/components/controls/Checkbox/index.d.ts +2 -0
- package/dist/components/controls/Checkbox/index.d.ts.map +1 -0
- package/dist/components/controls/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/controls/Input/Input.d.ts +77 -0
- package/dist/components/controls/Input/Input.d.ts.map +1 -0
- package/dist/components/controls/Input/Input.stories.d.ts +19 -0
- package/dist/components/controls/Input/Input.stories.d.ts.map +1 -0
- package/dist/components/controls/Input/index.d.ts +2 -0
- package/dist/components/controls/Input/index.d.ts.map +1 -0
- package/dist/components/controls/Select/Select.d.ts +85 -0
- package/dist/components/controls/Select/Select.d.ts.map +1 -0
- package/dist/components/controls/Select/Select.stories.d.ts +22 -0
- package/dist/components/controls/Select/Select.stories.d.ts.map +1 -0
- package/dist/components/controls/Select/index.d.ts +2 -0
- package/dist/components/controls/Select/index.d.ts.map +1 -0
- package/dist/components/controls/index.d.ts +3 -1
- package/dist/components/controls/index.d.ts.map +1 -1
- package/dist/components/shared/Portal/Portal.d.ts +3 -0
- package/dist/components/shared/Portal/Portal.d.ts.map +1 -0
- package/dist/components/shared/Portal/index.d.ts +2 -0
- package/dist/components/shared/Portal/index.d.ts.map +1 -0
- package/dist/components/shared/Tag/Tag.d.ts +49 -0
- package/dist/components/shared/Tag/Tag.d.ts.map +1 -0
- package/dist/components/shared/Tag/Tag.stories.d.ts +17 -0
- package/dist/components/shared/Tag/Tag.stories.d.ts.map +1 -0
- package/dist/components/shared/Tag/index.d.ts +3 -0
- package/dist/components/shared/Tag/index.d.ts.map +1 -0
- package/dist/components/shared/index.d.ts +2 -0
- package/dist/components/shared/index.d.ts.map +1 -1
- package/dist/root.css +1 -1
- package/dist/styles/utils/breakpoints/base.scss +11 -11
- package/dist/styles/utils/breakpoints/index.scss +3 -3
- package/dist/styles/utils/breakpoints/screen.scss +61 -61
- package/dist/styles/utils/breakpoints/semantic.scss +31 -31
- package/dist/styles/utils/fonts/font-family.scss +3 -3
- package/dist/styles/utils/fonts/index.scss +1 -1
- package/dist/styles/utils/index.scss +5 -5
- package/dist/styles/utils/size/index.scss +1 -1
- package/dist/styles/utils/size/modifiers.scss +29 -29
- package/dist/styles/utils/style/index.scss +1 -1
- package/dist/styles/utils/style/variants.scss +34 -34
- package/dist/styles/utils/typography/_font-weight.scss +33 -33
- package/dist/styles/utils/typography/_variants.scss +85 -85
- package/dist/styles/utils/typography/index.scss +2 -2
- package/dist/types/tokens.types.d.ts +1 -0
- package/dist/types/tokens.types.d.ts.map +1 -1
- package/dist/ui-kit.cjs.js +5 -2
- package/dist/ui-kit.cjs.js.map +1 -1
- package/dist/ui-kit.css +1 -1
- package/dist/ui-kit.es.js +3453 -2151
- package/dist/ui-kit.es.js.map +1 -1
- package/dist/utils/hooks/index.d.ts +3 -0
- package/dist/utils/hooks/index.d.ts.map +1 -0
- package/dist/utils/hooks/useControlled.d.ts +13 -0
- package/dist/utils/hooks/useControlled.d.ts.map +1 -0
- package/dist/utils/hooks/useDropdownPosition.d.ts +33 -0
- package/dist/utils/hooks/useDropdownPosition.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +80 -78
package/dist/ui-kit.cjs.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("react/jsx-runtime"),T=require("react");function Co(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const J=Co(T);function Vo(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Mo(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Do=(function(){function t(n){var i=this;this._insertTag=function(s){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(s,o),i.tags.push(s)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Mo(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Vo(s);try{o.insertRule(i,o.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(i));this.ctr++},e.flush=function(){this.tags.forEach(function(i){var s;return(s=i.parentNode)==null?void 0:s.removeChild(i)}),this.tags=[],this.ctr=0},t})(),N="-ms-",Te="-moz-",V="-webkit-",Ls="comm",Vn="rule",Mn="decl",Eo="@import",Bs="@keyframes",_o="@layer",Ro=Math.abs,De=String.fromCharCode,ko=Object.assign;function Lo(t,e){return j(t,0)^45?(((e<<2^j(t,0))<<2^j(t,1))<<2^j(t,2))<<2^j(t,3):0}function Os(t){return t.trim()}function Bo(t,e){return(t=e.exec(t))?t[0]:t}function M(t,e,n){return t.replace(e,n)}function nn(t,e){return t.indexOf(e)}function j(t,e){return t.charCodeAt(e)|0}function Ht(t,e,n){return t.slice(e,n)}function it(t){return t.length}function Dn(t){return t.length}function le(t,e){return e.push(t),t}function Oo(t,e){return t.map(e).join("")}var Ee=1,Rt=1,Is=0,z=0,B=0,Bt="";function _e(t,e,n,i,s,o,r){return{value:t,root:e,parent:n,type:i,props:s,children:o,line:Ee,column:Rt,length:r,return:""}}function Nt(t,e){return ko(_e("",null,null,"",null,null,0),t,{length:-t.length},e)}function Io(){return B}function jo(){return B=z>0?j(Bt,--z):0,Rt--,B===10&&(Rt=1,Ee--),B}function G(){return B=z<Is?j(Bt,z++):0,Rt++,B===10&&(Rt=1,Ee++),B}function st(){return j(Bt,z)}function me(){return z}function se(t,e){return Ht(Bt,t,e)}function Yt(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function js(t){return Ee=Rt=1,Is=it(Bt=t),z=0,[]}function Fs(t){return Bt="",t}function pe(t){return Os(se(z-1,sn(t===91?t+2:t===40?t+1:t)))}function Fo(t){for(;(B=st())&&B<33;)G();return Yt(t)>2||Yt(B)>3?"":" "}function No(t,e){for(;--e&&G()&&!(B<48||B>102||B>57&&B<65||B>70&&B<97););return se(t,me()+(e<6&&st()==32&&G()==32))}function sn(t){for(;G();)switch(B){case t:return z;case 34:case 39:t!==34&&t!==39&&sn(B);break;case 40:t===41&&sn(t);break;case 92:G();break}return z}function $o(t,e){for(;G()&&t+B!==57;)if(t+B===84&&st()===47)break;return"/*"+se(e,z-1)+"*"+De(t===47?t:G())}function Wo(t){for(;!Yt(st());)G();return se(t,z)}function Uo(t){return Fs(ge("",null,null,null,[""],t=js(t),0,[0],t))}function ge(t,e,n,i,s,o,r,a,c){for(var u=0,l=0,h=r,f=0,d=0,m=0,g=1,x=1,p=1,y=0,v="",P=s,b=o,A=i,S=v;x;)switch(m=y,y=G()){case 40:if(m!=108&&j(S,h-1)==58){nn(S+=M(pe(y),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:S+=pe(y);break;case 9:case 10:case 13:case 32:S+=Fo(m);break;case 92:S+=No(me()-1,7);continue;case 47:switch(st()){case 42:case 47:le(Ko($o(G(),me()),e,n),c);break;default:S+="/"}break;case 123*g:a[u++]=it(S)*p;case 125*g:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+l:p==-1&&(S=M(S,/\f/g,"")),d>0&&it(S)-h&&le(d>32?fi(S+";",i,n,h-1):fi(M(S," ","")+";",i,n,h-2),c);break;case 59:S+=";";default:if(le(A=hi(S,e,n,u,l,s,a,v,P=[],b=[],h),o),y===123)if(l===0)ge(S,e,A,A,P,o,h,a,b);else switch(f===99&&j(S,3)===110?100:f){case 100:case 108:case 109:case 115:ge(t,A,A,i&&le(hi(t,A,A,0,0,s,a,v,s,P=[],h),b),s,b,h,a,i?P:b);break;default:ge(S,A,A,A,[""],b,0,a,b)}}u=l=d=0,g=p=1,v=S="",h=r;break;case 58:h=1+it(S),d=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&jo()==125)continue}switch(S+=De(y),y*g){case 38:p=l>0?1:(S+="\f",-1);break;case 44:a[u++]=(it(S)-1)*p,p=1;break;case 64:st()===45&&(S+=pe(G())),f=st(),l=h=it(v=S+=Wo(me())),y++;break;case 45:m===45&&it(S)==2&&(g=0)}}return o}function hi(t,e,n,i,s,o,r,a,c,u,l){for(var h=s-1,f=s===0?o:[""],d=Dn(f),m=0,g=0,x=0;m<i;++m)for(var p=0,y=Ht(t,h+1,h=Ro(g=r[m])),v=t;p<d;++p)(v=Os(g>0?f[p]+" "+y:M(y,/&\f/g,f[p])))&&(c[x++]=v);return _e(t,e,n,s===0?Vn:a,c,u,l)}function Ko(t,e,n){return _e(t,e,n,Ls,De(Io()),Ht(t,2,-2),0)}function fi(t,e,n,i){return _e(t,e,n,Mn,Ht(t,0,i),Ht(t,i+1,-1),i)}function Et(t,e){for(var n="",i=Dn(t),s=0;s<i;s++)n+=e(t[s],s,t,e)||"";return n}function zo(t,e,n,i){switch(t.type){case _o:if(t.children.length)break;case Eo:case Mn:return t.return=t.return||t.value;case Ls:return"";case Bs:return t.return=t.value+"{"+Et(t.children,i)+"}";case Vn:t.value=t.props.join(",")}return it(n=Et(t.children,i))?t.return=t.value+"{"+n+"}":""}function Go(t){var e=Dn(t);return function(n,i,s,o){for(var r="",a=0;a<e;a++)r+=t[a](n,i,s,o)||"";return r}}function Ho(t){return function(e){e.root||(e=e.return)&&t(e)}}function Yo(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Xo=function(e,n,i){for(var s=0,o=0;s=o,o=st(),s===38&&o===12&&(n[i]=1),!Yt(o);)G();return se(e,z)},qo=function(e,n){var i=-1,s=44;do switch(Yt(s)){case 0:s===38&&st()===12&&(n[i]=1),e[i]+=Xo(z-1,n,i);break;case 2:e[i]+=pe(s);break;case 4:if(s===44){e[++i]=st()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=De(s)}while(s=G());return e},Zo=function(e,n){return Fs(qo(js(e),n))},di=new WeakMap,Jo=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,s=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!di.get(i))&&!s){di.set(e,!0);for(var o=[],r=Zo(n,o),a=i.props,c=0,u=0;c<r.length;c++)for(var l=0;l<a.length;l++,u++)e.props[u]=o[c]?r[c].replace(/&\f/g,a[l]):a[l]+" "+r[c]}}},Qo=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Ns(t,e){switch(Lo(t,e)){case 5103:return V+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return V+t+Te+t+N+t+t;case 6828:case 4268:return V+t+N+t+t;case 6165:return V+t+N+"flex-"+t+t;case 5187:return V+t+M(t,/(\w+).+(:[^]+)/,V+"box-$1$2"+N+"flex-$1$2")+t;case 5443:return V+t+N+"flex-item-"+M(t,/flex-|-self/,"")+t;case 4675:return V+t+N+"flex-line-pack"+M(t,/align-content|flex-|-self/,"")+t;case 5548:return V+t+N+M(t,"shrink","negative")+t;case 5292:return V+t+N+M(t,"basis","preferred-size")+t;case 6060:return V+"box-"+M(t,"-grow","")+V+t+N+M(t,"grow","positive")+t;case 4554:return V+M(t,/([^-])(transform)/g,"$1"+V+"$2")+t;case 6187:return M(M(M(t,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),t,"")+t;case 5495:case 3959:return M(t,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return M(M(t,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+N+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+t+t;case 4095:case 3583:case 4068:case 2532:return M(t,/(.+)-inline(.+)/,V+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(it(t)-1-e>6)switch(j(t,e+1)){case 109:if(j(t,e+4)!==45)break;case 102:return M(t,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+Te+(j(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~nn(t,"stretch")?Ns(M(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(j(t,e+1)!==115)break;case 6444:switch(j(t,it(t)-3-(~nn(t,"!important")&&10))){case 107:return M(t,":",":"+V)+t;case 101:return M(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(j(t,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+N+"$2box$3")+t}break;case 5936:switch(j(t,e+11)){case 114:return V+t+N+M(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return V+t+N+M(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return V+t+N+M(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return V+t+N+t+t}return t}var ta=function(e,n,i,s){if(e.length>-1&&!e.return)switch(e.type){case Mn:e.return=Ns(e.value,e.length);break;case Bs:return Et([Nt(e,{value:M(e.value,"@","@"+V)})],s);case Vn:if(e.length)return Oo(e.props,function(o){switch(Bo(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Et([Nt(e,{props:[M(o,/:(read-\w+)/,":"+Te+"$1")]})],s);case"::placeholder":return Et([Nt(e,{props:[M(o,/:(plac\w+)/,":"+V+"input-$1")]}),Nt(e,{props:[M(o,/:(plac\w+)/,":"+Te+"$1")]}),Nt(e,{props:[M(o,/:(plac\w+)/,N+"input-$1")]})],s)}return""})}},ea=[ta],na=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(g){var x=g.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var s=e.stylisPlugins||ea,o={},r,a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var x=g.getAttribute("data-emotion").split(" "),p=1;p<x.length;p++)o[x[p]]=!0;a.push(g)});var c,u=[Jo,Qo];{var l,h=[zo,Ho(function(g){l.insert(g)})],f=Go(u.concat(s,h)),d=function(x){return Et(Uo(x),f)};c=function(x,p,y,v){l=y,d(x?x+"{"+p.styles+"}":p.styles),v&&(m.inserted[p.name]=!0)}}var m={key:n,sheet:new Do({key:n,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return m.sheet.hydrate(a),m};function ia(t){for(var e=0,n,i=0,s=t.length;s>=4;++i,s-=4)n=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var sa={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ra=/[A-Z]|^ms/g,oa=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$s=function(e){return e.charCodeAt(1)===45},mi=function(e){return e!=null&&typeof e!="boolean"},Oe=Yo(function(t){return $s(t)?t:t.replace(ra,"-$&").toLowerCase()}),pi=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(oa,function(i,s,o){return ut={name:s,styles:o,next:ut},s})}return sa[e]!==1&&!$s(e)&&typeof n=="number"&&n!==0?n+"px":n};function we(t,e,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return ut={name:s.name,styles:s.styles,next:ut},s.name;var o=n;if(o.styles!==void 0){var r=o.next;if(r!==void 0)for(;r!==void 0;)ut={name:r.name,styles:r.styles,next:ut},r=r.next;var a=o.styles+";";return a}return aa(t,e,n)}}var c=n;if(e==null)return c;var u=e[c];return u!==void 0?u:c}function aa(t,e,n){var i="";if(Array.isArray(n))for(var s=0;s<n.length;s++)i+=we(t,e,n[s])+";";else for(var o in n){var r=n[o];if(typeof r!="object"){var a=r;e!=null&&e[a]!==void 0?i+=o+"{"+e[a]+"}":mi(a)&&(i+=Oe(o)+":"+pi(o,a)+";")}else if(Array.isArray(r)&&typeof r[0]=="string"&&(e==null||e[r[0]]===void 0))for(var c=0;c<r.length;c++)mi(r[c])&&(i+=Oe(o)+":"+pi(o,r[c])+";");else{var u=we(t,e,r);switch(o){case"animation":case"animationName":{i+=Oe(o)+":"+u+";";break}default:i+=o+"{"+u+"}"}}}return i}var gi=/label:\s*([^\s;{]+)\s*(;|$)/g,ut;function Ie(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,s="";ut=void 0;var o=t[0];if(o==null||o.raw===void 0)i=!1,s+=we(n,e,o);else{var r=o;s+=r[0]}for(var a=1;a<t.length;a++)if(s+=we(n,e,t[a]),i){var c=o;s+=c[a]}gi.lastIndex=0;for(var u="",l;(l=gi.exec(s))!==null;)u+="-"+l[1];var h=ia(s)+u;return{name:h,styles:s,next:ut}}function Ws(t,e,n){var i="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):s&&(i+=s+" ")}),i}var ca=function(e,n,i){var s=e.key+"-"+n.name;e.registered[s]===void 0&&(e.registered[s]=n.styles)},la=function(e,n,i){ca(e,n);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+s:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function yi(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function vi(t,e,n){var i=[],s=Ws(t,i,n);return i.length<2?n:s+e(i)}var ua=function(e){var n=na(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var i=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var h=Ie(u,n.registered,void 0);return la(n,h),n.key+"-"+h.name},s=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var h=Ie(u,n.registered),f="animation-"+h.name;return yi(n,{name:h.name,styles:"@keyframes "+f+"{"+h.styles+"}"}),f},o=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var h=Ie(u,n.registered);yi(n,h)},r=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return vi(n.registered,i,ha(u))};return{css:i,cx:r,injectGlobal:o,keyframes:s,hydrate:function(c){c.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Ws.bind(null,n.registered),merge:vi.bind(null,n.registered,i)}},ha=function t(e){for(var n="",i=0;i<e.length;i++){var s=e[i];if(s!=null){var o=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))o=t(s);else{o="";for(var r in s)s[r]&&r&&(o&&(o+=" "),o+=r)}break}default:o=s}o&&(n&&(n+=" "),n+=o)}}return n},Us=ua({key:"css"}),Xt=Us.cx,U=Us.css;function fa(t){const{h:e,w:n,m:i,mx:s,my:o,mt:r,mr:a,mb:c,ml:u,p:l,px:h,py:f,pt:d,pr:m,pb:g,pl:x,xGap:p,yGap:y,row:v,flex:P,...b}=t;return{spacers:{h:e,w:n,m:i,mx:s,my:o,mt:r,mr:a,mb:c,ml:u,p:l,px:h,py:f,pt:d,pr:m,pb:g,pl:x,xGap:p,yGap:y,row:v,flex:P,...b},rest:b}}const da=t=>U({display:"flex",flexDirection:t.row?"row":"column",height:t.h==="screen"?"100vh":t.h==="full"?"100%":t.h,width:t.w==="screen"?"100vw":t.w==="full"?"100%":t.w,margin:t.m,marginTop:t.mt??t.my,marginBottom:t.mb??t.my,marginLeft:t.ml??t.mx,marginRight:t.mr??t.mx,padding:t.p,paddingTop:t.pt??t.py,paddingBottom:t.pb??t.py,paddingLeft:t.pl??t.px,paddingRight:t.pr??t.px,gap:t.gap,columnGap:t.xGap,rowGap:t.yGap,justifyContent:t.center?"center":t.justifyContent,alignItems:t.center?"center":t.alignItems,alignSelf:t.alignSelf,borderWidth:t.borderWidth,borderBottomWidth:t.borderBottomWidth,borderColor:t.borderColor,borderRadius:t.borderRadius,zIndex:t.zIndex,overflow:t.overflow,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,flex:t.flex===!0?1:t.flex,flexWrap:t.flexWrap,flexGrow:t.flexGrow,flexShrink:t.flexShrink,flexBasis:t.flexBasis,backgroundColor:t.backgroundColor,...t.absoluteFill&&{position:"absolute",top:0,right:0,bottom:0,left:0}}),Se=T.forwardRef(({className:t,children:e,...n},i)=>{const{spacers:s,rest:o}=fa(n),r=T.useMemo(()=>da(s),[s]);return D.jsx("div",{ref:i,className:Xt(r,t),...o,children:e})});Se.displayName="Box";const Ks=T.createContext({});function ma(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const En=typeof window<"u",pa=En?T.useLayoutEffect:T.useEffect,_n=T.createContext(null);function Rn(t,e){t.indexOf(e)===-1&&t.push(e)}function kn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ot=(t,e,n)=>n>e?e:n<t?t:n;function rn(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}let Ot=()=>{},at=()=>{};process.env.NODE_ENV!=="production"&&(Ot=(t,e,n)=>{!t&&typeof console<"u"&&console.warn(rn(e,n))},at=(t,e,n)=>{if(!t)throw new Error(rn(e,n))});const ct={},zs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Gs(t){return typeof t=="object"&&t!==null}const Hs=t=>/^0[^.\s]+$/u.test(t);function Ln(t){let e;return()=>(e===void 0&&(e=t()),e)}const tt=t=>t,ga=(t,e)=>n=>e(t(n)),re=(...t)=>t.reduce(ga),qt=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i};class Bn{constructor(){this.subscriptions=[]}add(e){return Rn(this.subscriptions,e),()=>kn(this.subscriptions,e)}notify(e,n,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,i);else for(let o=0;o<s;o++){const r=this.subscriptions[o];r&&r(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const nt=t=>t*1e3,Q=t=>t/1e3;function Ys(t,e){return e?t*(1e3/e):0}const xi=new Set;function On(t,e,n){t||xi.has(e)||(console.warn(rn(e,n)),xi.add(e))}const Xs=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ya=1e-7,va=12;function xa(t,e,n,i,s){let o,r,a=0;do r=e+(n-e)/2,o=Xs(r,i,s)-t,o>0?n=r:e=r;while(Math.abs(o)>ya&&++a<va);return r}function oe(t,e,n,i){if(t===e&&n===i)return tt;const s=o=>xa(o,0,1,t,n);return o=>o===0||o===1?o:Xs(s(o),e,i)}const qs=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Zs=t=>e=>1-t(1-e),Js=oe(.33,1.53,.69,.99),In=Zs(Js),Qs=qs(In),tr=t=>(t*=2)<1?.5*In(t):.5*(2-Math.pow(2,-10*(t-1))),jn=t=>1-Math.sin(Math.acos(t)),er=Zs(jn),nr=qs(jn),ba=oe(.42,0,1,1),Ta=oe(0,0,.58,1),ir=oe(.42,0,.58,1),wa=t=>Array.isArray(t)&&typeof t[0]!="number",sr=t=>Array.isArray(t)&&typeof t[0]=="number",bi={linear:tt,easeIn:ba,easeInOut:ir,easeOut:Ta,circIn:jn,circInOut:nr,circOut:er,backIn:In,backInOut:Qs,backOut:Js,anticipate:tr},Sa=t=>typeof t=="string",Ti=t=>{if(sr(t)){at(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,i,s]=t;return oe(e,n,i,s)}else if(Sa(t))return at(bi[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),bi[t];return t},ue=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Pa(t,e){let n=new Set,i=new Set,s=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(l){r.has(l)&&(u.schedule(l),t()),l(a)}const u={schedule:(l,h=!1,f=!1)=>{const m=f&&s?n:i;return h&&r.add(l),m.has(l)||m.add(l),l},cancel:l=>{i.delete(l),r.delete(l)},process:l=>{if(a=l,s){o=!0;return}s=!0,[n,i]=[i,n],n.forEach(c),n.clear(),s=!1,o&&(o=!1,u.process(l))}};return u}const Aa=40;function rr(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=ue.reduce((v,P)=>(v[P]=Pa(o),v),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:h,preRender:f,render:d,postRender:m}=r,g=()=>{const v=ct.useManualTiming?s.timestamp:performance.now();n=!1,ct.useManualTiming||(s.delta=i?1e3/60:Math.max(Math.min(v-s.timestamp,Aa),1)),s.timestamp=v,s.isProcessing=!0,a.process(s),c.process(s),u.process(s),l.process(s),h.process(s),f.process(s),d.process(s),m.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(g))},x=()=>{n=!0,i=!0,s.isProcessing||t(g)};return{schedule:ue.reduce((v,P)=>{const b=r[P];return v[P]=(A,S=!1,C=!1)=>(n||x(),b.schedule(A,S,C)),v},{}),cancel:v=>{for(let P=0;P<ue.length;P++)r[ue[P]].cancel(v)},state:s,steps:r}}const{schedule:E,cancel:ht,state:I,steps:je}=rr(typeof requestAnimationFrame<"u"?requestAnimationFrame:tt,!0);let ye;function Ca(){ye=void 0}const K={now:()=>(ye===void 0&&K.set(I.isProcessing||ct.useManualTiming?I.timestamp:performance.now()),ye),set:t=>{ye=t,queueMicrotask(Ca)}},or=t=>e=>typeof e=="string"&&e.startsWith(t),Fn=or("--"),Va=or("var(--"),Nn=t=>Va(t)?Ma.test(t.split("/*")[0].trim()):!1,Ma=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,It={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Zt={...It,transform:t=>ot(0,1,t)},he={...It,default:1},Ut=t=>Math.round(t*1e5)/1e5,$n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Da(t){return t==null}const Ea=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wn=(t,e)=>n=>!!(typeof n=="string"&&Ea.test(n)&&n.startsWith(t)||e&&!Da(n)&&Object.prototype.hasOwnProperty.call(n,e)),ar=(t,e,n)=>i=>{if(typeof i!="string")return i;const[s,o,r,a]=i.match($n);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},_a=t=>ot(0,255,t),Fe={...It,transform:t=>Math.round(_a(t))},yt={test:Wn("rgb","red"),parse:ar("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Fe.transform(t)+", "+Fe.transform(e)+", "+Fe.transform(n)+", "+Ut(Zt.transform(i))+")"};function Ra(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const on={test:Wn("#"),parse:Ra,transform:yt.transform},ae=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),lt=ae("deg"),rt=ae("%"),w=ae("px"),ka=ae("vh"),La=ae("vw"),wi={...rt,parse:t=>rt.parse(t)/100,transform:t=>rt.transform(t*100)},Pt={test:Wn("hsl","hue"),parse:ar("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+rt.transform(Ut(e))+", "+rt.transform(Ut(n))+", "+Ut(Zt.transform(i))+")"},L={test:t=>yt.test(t)||on.test(t)||Pt.test(t),parse:t=>yt.test(t)?yt.parse(t):Pt.test(t)?Pt.parse(t):on.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?yt.transform(t):Pt.transform(t),getAnimatableNone:t=>{const e=L.parse(t);return e.alpha=0,L.transform(e)}},Ba=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Oa(t){return isNaN(t)&&typeof t=="string"&&(t.match($n)?.length||0)+(t.match(Ba)?.length||0)>0}const cr="number",lr="color",Ia="var",ja="var(",Si="${}",Fa=/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 Jt(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const a=e.replace(Fa,c=>(L.test(c)?(i.color.push(o),s.push(lr),n.push(L.parse(c))):c.startsWith(ja)?(i.var.push(o),s.push(Ia),n.push(c)):(i.number.push(o),s.push(cr),n.push(parseFloat(c))),++o,Si)).split(Si);return{values:n,split:a,indexes:i,types:s}}function ur(t){return Jt(t).values}function hr(t){const{split:e,types:n}=Jt(t),i=e.length;return s=>{let o="";for(let r=0;r<i;r++)if(o+=e[r],s[r]!==void 0){const a=n[r];a===cr?o+=Ut(s[r]):a===lr?o+=L.transform(s[r]):o+=s[r]}return o}}const Na=t=>typeof t=="number"?0:L.test(t)?L.getAnimatableNone(t):t;function $a(t){const e=ur(t);return hr(t)(e.map(Na))}const ft={test:Oa,parse:ur,createTransformer:hr,getAnimatableNone:$a};function Ne(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Wa({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let s=0,o=0,r=0;if(!e)s=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;s=Ne(c,a,t+1/3),o=Ne(c,a,t),r=Ne(c,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:i}}function Pe(t,e){return n=>n>0?e:t}const R=(t,e,n)=>t+(e-t)*n,$e=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},Ua=[on,yt,Pt],Ka=t=>Ua.find(e=>e.test(t));function Pi(t){const e=Ka(t);if(Ot(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===Pt&&(n=Wa(n)),n}const Ai=(t,e)=>{const n=Pi(t),i=Pi(e);if(!n||!i)return Pe(t,e);const s={...n};return o=>(s.red=$e(n.red,i.red,o),s.green=$e(n.green,i.green,o),s.blue=$e(n.blue,i.blue,o),s.alpha=R(n.alpha,i.alpha,o),yt.transform(s))},an=new Set(["none","hidden"]);function za(t,e){return an.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Ga(t,e){return n=>R(t,e,n)}function Un(t){return typeof t=="number"?Ga:typeof t=="string"?Nn(t)?Pe:L.test(t)?Ai:Xa:Array.isArray(t)?fr:typeof t=="object"?L.test(t)?Ai:Ha:Pe}function fr(t,e){const n=[...t],i=n.length,s=t.map((o,r)=>Un(o)(o,e[r]));return o=>{for(let r=0;r<i;r++)n[r]=s[r](o);return n}}function Ha(t,e){const n={...t,...e},i={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(i[s]=Un(t[s])(t[s],e[s]));return s=>{for(const o in i)n[o]=i[o](s);return n}}function Ya(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],r=t.indexes[o][i[o]],a=t.values[r]??0;n[s]=a,i[o]++}return n}const Xa=(t,e)=>{const n=ft.createTransformer(e),i=Jt(t),s=Jt(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?an.has(t)&&!s.values.length||an.has(e)&&!i.values.length?za(t,e):re(fr(Ya(i,s),s.values),n):(Ot(!0,`Complex values '${t}' and '${e}' 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"),Pe(t,e))};function dr(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?R(t,e,n):Un(t)(t,e)}const qa=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>E.update(e,n),stop:()=>ht(e),now:()=>I.isProcessing?I.timestamp:K.now()}},mr=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o<s;o++)i+=Math.round(t(o/(s-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},Ae=2e4;function Kn(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Ae;)e+=n,i=t.next(e);return e>=Ae?1/0:e}function Za(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(Kn(i),Ae);return{type:"keyframes",ease:o=>i.next(s*o).value/e,duration:Q(s)}}const Ja=5;function pr(t,e,n){const i=Math.max(e-Ja,0);return Ys(n-t(i),e-i)}const _={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},We=.001;function Qa({duration:t=_.duration,bounce:e=_.bounce,velocity:n=_.velocity,mass:i=_.mass}){let s,o;Ot(t<=nt(_.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-e;r=ot(_.minDamping,_.maxDamping,r),t=ot(_.minDuration,_.maxDuration,Q(t)),r<1?(s=u=>{const l=u*r,h=l*t,f=l-n,d=cn(u,r),m=Math.exp(-h);return We-f/d*m},o=u=>{const h=u*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,m=Math.exp(-h),g=cn(Math.pow(u,2),r);return(-s(u)+We>0?-1:1)*((f-d)*m)/g}):(s=u=>{const l=Math.exp(-u*t),h=(u-n)*t+1;return-We+l*h},o=u=>{const l=Math.exp(-u*t),h=(n-u)*(t*t);return l*h});const a=5/t,c=ec(s,o,a);if(t=nt(t),isNaN(c))return{stiffness:_.stiffness,damping:_.damping,duration:t};{const u=Math.pow(c,2)*i;return{stiffness:u,damping:r*2*Math.sqrt(i*u),duration:t}}}const tc=12;function ec(t,e,n){let i=n;for(let s=1;s<tc;s++)i=i-t(i)/e(i);return i}function cn(t,e){return t*Math.sqrt(1-e*e)}const nc=["duration","bounce"],ic=["stiffness","damping","mass"];function Ci(t,e){return e.some(n=>t[n]!==void 0)}function sc(t){let e={velocity:_.velocity,stiffness:_.stiffness,damping:_.damping,mass:_.mass,isResolvedFromDuration:!1,...t};if(!Ci(t,ic)&&Ci(t,nc))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,o=2*ot(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:_.mass,stiffness:s,damping:o}}else{const n=Qa(t);e={...e,...n,mass:_.mass},e.isResolvedFromDuration=!0}return e}function Ce(t=_.visualDuration,e=_.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:l,duration:h,velocity:f,isResolvedFromDuration:d}=sc({...n,velocity:-Q(n.velocity||0)}),m=f||0,g=u/(2*Math.sqrt(c*l)),x=r-o,p=Q(Math.sqrt(c/l)),y=Math.abs(x)<5;i||(i=y?_.restSpeed.granular:_.restSpeed.default),s||(s=y?_.restDelta.granular:_.restDelta.default);let v;if(g<1){const b=cn(p,g);v=A=>{const S=Math.exp(-g*p*A);return r-S*((m+g*p*x)/b*Math.sin(b*A)+x*Math.cos(b*A))}}else if(g===1)v=b=>r-Math.exp(-p*b)*(x+(m+p*x)*b);else{const b=p*Math.sqrt(g*g-1);v=A=>{const S=Math.exp(-g*p*A),C=Math.min(b*A,300);return r-S*((m+g*p*x)*Math.sinh(C)+b*x*Math.cosh(C))/b}}const P={calculatedDuration:d&&h||null,next:b=>{const A=v(b);if(d)a.done=b>=h;else{let S=b===0?m:0;g<1&&(S=b===0?nt(m):pr(v,b,A));const C=Math.abs(S)<=i,F=Math.abs(r-A)<=s;a.done=C&&F}return a.value=a.done?r:A,a},toString:()=>{const b=Math.min(Kn(P),Ae),A=mr(S=>P.next(b*S).value,b,30);return b+"ms "+A},toTransition:()=>{}};return P}Ce.applyToOptions=t=>{const e=Za(t,100,Ce);return t.ease=e.ease,t.duration=nt(e.duration),t.type="keyframes",t};function ln({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:u=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},d=C=>a!==void 0&&C<a||c!==void 0&&C>c,m=C=>a===void 0?c:c===void 0||Math.abs(a-C)<Math.abs(c-C)?a:c;let g=n*e;const x=h+g,p=r===void 0?x:r(x);p!==x&&(g=p-h);const y=C=>-g*Math.exp(-C/i),v=C=>p+y(C),P=C=>{const F=y(C),H=v(C);f.done=Math.abs(F)<=u,f.value=f.done?p:H};let b,A;const S=C=>{d(f.value)&&(b=C,A=Ce({keyframes:[f.value,m(f.value)],velocity:pr(v,C,f.value),damping:s,stiffness:o,restDelta:u,restSpeed:l}))};return S(0),{calculatedDuration:null,next:C=>{let F=!1;return!A&&b===void 0&&(F=!0,P(C),S(C)),b!==void 0&&C>=b?A.next(C-b):(!F&&P(C),f)}}}function rc(t,e,n){const i=[],s=n||ct.mix||dr,o=t.length-1;for(let r=0;r<o;r++){let a=s(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||tt:e;a=re(c,a)}i.push(a)}return i}function oc(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(at(o===e.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=rc(e,i,s),c=a.length,u=l=>{if(r&&l<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=qt(t[h],t[h+1],l);return a[h](f)};return n?l=>u(ot(t[0],t[o-1],l)):u}function ac(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=qt(0,e,i);t.push(R(n,1,s))}}function cc(t){const e=[0];return ac(e,t.length-1),e}function lc(t,e){return t.map(n=>n*e)}function uc(t,e){return t.map(()=>e||ir).splice(0,t.length-1)}function At({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=wa(i)?i.map(Ti):Ti(i),o={done:!1,value:e[0]},r=lc(n&&n.length===e.length?n:cc(e),t),a=oc(r,e,{ease:Array.isArray(s)?s:uc(e,s)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const hc=t=>t!==null;function zn(t,{repeat:e,repeatType:n="loop"},i,s=1){const o=t.filter(hc),a=s<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||i===void 0?o[a]:i}const fc={decay:ln,inertia:ln,tween:At,keyframes:At,spring:Ce};function gr(t){typeof t.type=="string"&&(t.type=fc[t.type])}class Gn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const dc=t=>t/100;class Hn extends Gn{constructor(e){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!==K.now()&&this.tick(K.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;gr(e);const{type:n=At,repeat:i=0,repeatDelay:s=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const c=n||At;process.env.NODE_ENV!=="production"&&c!==At&&at(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==At&&typeof a[0]!="number"&&(this.mixKeyframes=re(dc,dr(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Kn(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:i,totalDuration:s,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return i.next(0);const{delay:u=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:d,type:m,onUpdate:g,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const p=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?p<0:p>s;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let v=this.currentTime,P=i;if(h){const C=Math.min(this.currentTime,s)/a;let F=Math.floor(C),H=C%1;!H&&C>=1&&(H=1),H===1&&F--,F=Math.min(F,h+1),!!(F%2)&&(f==="reverse"?(H=1-H,d&&(H-=d/a)):f==="mirror"&&(P=r)),v=ot(0,1,H)*a}const b=y?{done:!1,value:l[0]}:P.next(v);o&&(b.value=o(b.value));let{done:A}=b;!y&&c!==null&&(A=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return S&&m!==ln&&(b.value=zn(l,this.options,x,this.speed)),g&&g(b.value),S&&this.finish(),b}then(e,n){return this.finished.then(e,n)}get duration(){return Q(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Q(e)}get time(){return Q(this.currentTime)}set time(e){e=nt(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(K.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Q(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=qa,startTime:n}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(K.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(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function mc(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const vt=t=>t*180/Math.PI,un=t=>{const e=vt(Math.atan2(t[1],t[0]));return hn(e)},pc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:un,rotateZ:un,skewX:t=>vt(Math.atan(t[1])),skewY:t=>vt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},hn=t=>(t=t%360,t<0&&(t+=360),t),Vi=un,Mi=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Di=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),gc={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Mi,scaleY:Di,scale:t=>(Mi(t)+Di(t))/2,rotateX:t=>hn(vt(Math.atan2(t[6],t[5]))),rotateY:t=>hn(vt(Math.atan2(-t[2],t[0]))),rotateZ:Vi,rotate:Vi,skewX:t=>vt(Math.atan(t[4])),skewY:t=>vt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function fn(t){return t.includes("scale")?1:0}function dn(t,e){if(!t||t==="none")return fn(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=gc,s=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=pc,s=a}if(!s)return fn(e);const o=i[e],r=s[1].split(",").map(vc);return typeof o=="function"?o(r):r[o]}const yc=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return dn(n,e)};function vc(t){return parseFloat(t.trim())}const jt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ft=new Set(jt),Ei=t=>t===It||t===w,xc=new Set(["x","y","z"]),bc=jt.filter(t=>!xc.has(t));function Tc(t){const e=[];return bc.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const bt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>dn(e,"x"),y:(t,{transform:e})=>dn(e,"y")};bt.translateX=bt.x;bt.translateY=bt.y;const Tt=new Set;let mn=!1,pn=!1,gn=!1;function yr(){if(pn){const t=Array.from(Tt).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const s=Tc(i);s.length&&(n.set(i,s),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const s=n.get(i);s&&s.forEach(([o,r])=>{i.getValue(o)?.set(r)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}pn=!1,mn=!1,Tt.forEach(t=>t.complete(gn)),Tt.clear()}function vr(){Tt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(pn=!0)})}function wc(){gn=!0,vr(),yr(),gn=!1}class Yn{constructor(e,n,i,s,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=s,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Tt.add(this),mn||(mn=!0,E.read(vr),E.resolveKeyframes(yr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:s}=this;if(e[0]===null){const o=s?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(i&&n){const a=i.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),s&&o===void 0&&s.set(e[0])}mc(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Tt.delete(this)}cancel(){this.state==="scheduled"&&(Tt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Sc=t=>t.startsWith("--");function Pc(t,e,n){Sc(e)?t.style.setProperty(e,n):t.style[e]=n}const Ac=Ln(()=>window.ScrollTimeline!==void 0),Cc={};function Vc(t,e){const n=Ln(t);return()=>Cc[e]??n()}const xr=Vc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Wt=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,_i={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wt([0,.65,.55,1]),circOut:Wt([.55,0,1,.45]),backIn:Wt([.31,.01,.66,-.59]),backOut:Wt([.33,1.53,.69,.99])};function br(t,e){if(t)return typeof t=="function"?xr()?mr(t,e):"ease-out":sr(t)?Wt(t):Array.isArray(t)?t.map(n=>br(n,e)||_i.easeOut):_i[t]}function Mc(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:n};c&&(l.offset=c);const h=br(a,s);Array.isArray(h)&&(l.easing=h);const f={delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(l,f)}function Tr(t){return typeof t=="function"&&"applyToOptions"in t}function Dc({type:t,...e}){return Tr(t)&&xr()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Ec extends Gn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:i,keyframes:s,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,at(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Dc(e);this.animation=Mc(n,i,s,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=zn(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(l):Pc(n,i,l),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:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return Q(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Q(e)}get time(){return Q(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=nt(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Ac()?(this.animation.timeline=e,tt):n(this)}}const wr={anticipate:tr,backInOut:Qs,circInOut:nr};function _c(t){return t in wr}function Rc(t){typeof t.ease=="string"&&_c(t.ease)&&(t.ease=wr[t.ease])}const Ri=10;class kc extends Ec{constructor(e){Rc(e),gr(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:i,onComplete:s,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Hn({...r,autoplay:!1}),c=nt(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Ri).value,a.sample(c).value,Ri),a.stop()}}const ki=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ft.test(t)||t==="0")&&!t.startsWith("url("));function Lc(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Bc(t,e,n,i){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=ki(s,e),a=ki(o,e);return Ot(r===a,`You are trying to animate ${e} from "${s}" to "${o}". "${r?o:s}" is not an animatable value.`,"value-not-animatable"),!r||!a?!1:Lc(t)||(n==="spring"||Tr(n))&&i}function yn(t){t.duration=0,t.type="keyframes"}const Oc=new Set(["opacity","clipPath","filter","transform"]),Ic=Ln(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function jc(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return Ic()&&n&&Oc.has(n)&&(n!=="transform"||!u)&&!c&&!i&&s!=="mirror"&&o!==0&&r!=="inertia"}const Fc=40;class Nc extends Gn{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:c,motionValue:u,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=K.now();const f={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:o,repeatType:r,name:c,motionValue:u,element:l,...h},d=l?.KeyframeResolver||Yn;this.keyframeResolver=new d(a,(m,g,x)=>this.onKeyframesResolved(m,g,f,!x),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,i,s){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:c,isHandoff:u,onUpdate:l}=i;this.resolvedAt=K.now(),Bc(e,o,r,a)||((ct.instantAnimations||!c)&&l?.(zn(e,i,n)),e[0]=e[e.length-1],yn(i),i.repeat=0);const f={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>Fc?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:e},d=!u&&jc(f)?new kc({...f,element:f.motionValue.owner.current}):new Hn(f);d.finished.then(()=>this.notifyFinished()).catch(tt),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),wc()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const $c=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Wc(t){const e=$c.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}const Uc=4;function Sr(t,e,n=1){at(n<=Uc,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[i,s]=Wc(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const r=o.trim();return zs(r)?parseFloat(r):r}return Nn(s)?Sr(s,e,n+1):s}function Xn(t,e){return t?.[e]??t?.default??t}const Pr=new Set(["width","height","top","left","right","bottom",...jt]),Kc={test:t=>t==="auto",parse:t=>t},Ar=t=>e=>e.test(t),Cr=[It,w,rt,lt,La,ka,Kc],Li=t=>Cr.find(Ar(t));function zc(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Hs(t):!0}const Gc=new Set(["brightness","contrast","saturate","opacity"]);function Hc(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match($n)||[];if(!i)return t;const s=n.replace(i,"");let o=Gc.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const Yc=/\b([a-z-]*)\(.*?\)/gu,vn={...ft,getAnimatableNone:t=>{const e=t.match(Yc);return e?e.map(Hc).join(" "):t}},Bi={...It,transform:Math.round},Xc={rotate:lt,rotateX:lt,rotateY:lt,rotateZ:lt,scale:he,scaleX:he,scaleY:he,scaleZ:he,skew:lt,skewX:lt,skewY:lt,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:Zt,originX:wi,originY:wi,originZ:w},qn={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,radius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,backgroundPositionX:w,backgroundPositionY:w,...Xc,zIndex:Bi,fillOpacity:Zt,strokeOpacity:Zt,numOctaves:Bi},qc={...qn,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:vn,WebkitFilter:vn},Vr=t=>qc[t];function Mr(t,e){let n=Vr(t);return n!==vn&&(n=ft),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Zc=new Set(["auto","none","0"]);function Jc(t,e,n){let i=0,s;for(;i<t.length&&!s;){const o=t[i];typeof o=="string"&&!Zc.has(o)&&Jt(o).values.length&&(s=t[i]),i++}if(s&&n)for(const o of e)t[o]=Mr(n,s)}class Qc extends Yn{constructor(e,n,i,s,o){super(e,n,i,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let u=e[c];if(typeof u=="string"&&(u=u.trim(),Nn(u))){const l=Sr(u,n.current);l!==void 0&&(e[c]=l),c===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Pr.has(i)||e.length!==2)return;const[s,o]=e,r=Li(s),a=Li(o);if(r!==a)if(Ei(r)&&Ei(a))for(let c=0;c<e.length;c++){const u=e[c];typeof u=="string"&&(e[c]=parseFloat(u))}else bt[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let s=0;s<e.length;s++)(e[s]===null||zc(e[s]))&&i.push(s);i.length&&Jc(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=bt[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(i,s).jump(s,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,r=i[o];i[o]=bt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function tl(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const s=n?.[t]??i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}const Dr=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function el(t){return Gs(t)&&"offsetHeight"in t}const Oi=30,nl=t=>!isNaN(parseFloat(t));class il{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const s=K.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=K.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=nl(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&On(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Bn);const i=this.events[e].add(n);return e==="change"?()=>{i(),E.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=K.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Oi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Oi);return Ys(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(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 kt(t,e){return new il(t,e)}const{schedule:Zn}=rr(queueMicrotask,!1),et={x:!1,y:!1};function Er(){return et.x||et.y}function sl(t){return t==="x"||t==="y"?et[t]?null:(et[t]=!0,()=>{et[t]=!1}):et.x||et.y?null:(et.x=et.y=!0,()=>{et.x=et.y=!1})}function _r(t,e){const n=tl(t),i=new AbortController,s={passive:!0,...e,signal:i.signal};return[n,s,()=>i.abort()]}function Ii(t){return!(t.pointerType==="touch"||Er())}function rl(t,e,n={}){const[i,s,o]=_r(t,n),r=a=>{if(!Ii(a))return;const{target:c}=a,u=e(c,a);if(typeof u!="function"||!c)return;const l=h=>{Ii(h)&&(u(h),c.removeEventListener("pointerleave",l))};c.addEventListener("pointerleave",l,s)};return i.forEach(a=>{a.addEventListener("pointerenter",r,s)}),o}const Rr=(t,e)=>e?t===e?!0:Rr(t,e.parentElement):!1,Jn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,ol=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function al(t){return ol.has(t.tagName)||t.tabIndex!==-1}const ve=new WeakSet;function ji(t){return e=>{e.key==="Enter"&&t(e)}}function Ue(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const cl=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=ji(()=>{if(ve.has(n))return;Ue(n,"down");const s=ji(()=>{Ue(n,"up")}),o=()=>Ue(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function Fi(t){return Jn(t)&&!Er()}function ll(t,e,n={}){const[i,s,o]=_r(t,n),r=a=>{const c=a.currentTarget;if(!Fi(a))return;ve.add(c);const u=e(c,a),l=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),ve.has(c)&&ve.delete(c),Fi(d)&&typeof u=="function"&&u(d,{success:m})},h=d=>{l(d,c===window||c===document||n.useGlobalTarget||Rr(c,d.target))},f=d=>{l(d,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",f,s)};return i.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,s),el(a)&&(a.addEventListener("focus",u=>cl(u,s)),!al(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function kr(t){return Gs(t)&&"ownerSVGElement"in t}function ul(t){return kr(t)&&t.tagName==="svg"}const $=t=>!!(t&&t.getVelocity),hl=[...Cr,L,ft],fl=t=>hl.find(Ar(t)),Lr=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function dl(t=!0){const e=T.useContext(_n);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=e,o=T.useId();T.useEffect(()=>{if(t)return s(o)},[t]);const r=T.useCallback(()=>t&&i&&i(o),[o,i,t]);return!n&&i?[!1,r]:[!0]}const Br=T.createContext({strict:!1}),Ni={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"]},Lt={};for(const t in Ni)Lt[t]={isEnabled:e=>Ni[t].some(n=>!!e[n])};function ml(t){for(const e in t)Lt[e]={...Lt[e],...t[e]}}const pl=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 Ve(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||pl.has(t)}let Or=t=>!Ve(t);function gl(t){typeof t=="function"&&(Or=e=>e.startsWith("on")?!Ve(e):t(e))}try{gl(require("@emotion/is-prop-valid").default)}catch{}function yl(t,e,n){const i={};for(const s in t)s==="values"&&typeof t.values=="object"||(Or(s)||n===!0&&Ve(s)||!e&&!Ve(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}const Re=T.createContext({});function ke(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Qt(t){return typeof t=="string"||Array.isArray(t)}const Qn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ti=["initial",...Qn];function Le(t){return ke(t.animate)||ti.some(e=>Qt(t[e]))}function Ir(t){return!!(Le(t)||t.variants)}function vl(t,e){if(Le(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Qt(n)?n:void 0,animate:Qt(i)?i:void 0}}return t.inherit!==!1?e:{}}function xl(t){const{initial:e,animate:n}=vl(t,T.useContext(Re));return T.useMemo(()=>({initial:e,animate:n}),[$i(e),$i(n)])}function $i(t){return Array.isArray(t)?t.join(" "):t}const te={};function bl(t){for(const e in t)te[e]=t[e],Fn(e)&&(te[e].isCSSVariable=!0)}function jr(t,{layout:e,layoutId:n}){return Ft.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!te[t]||t==="opacity")}const Tl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wl=jt.length;function Sl(t,e,n){let i="",s=!0;for(let o=0;o<wl;o++){const r=jt[o],a=t[r];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(r.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const u=Dr(a,qn[r]);if(!c){s=!1;const l=Tl[r]||r;i+=`${l}(${u}) `}n&&(e[r]=u)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}function ei(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const u=e[c];if(Ft.has(c)){r=!0;continue}else if(Fn(c)){s[c]=u;continue}else{const l=Dr(u,qn[c]);c.startsWith("origin")?(a=!0,o[c]=l):i[c]=l}}if(e.transform||(r||n?i.transform=Sl(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=o;i.transformOrigin=`${c} ${u} ${l}`}}const ni=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fr(t,e,n){for(const i in e)!$(e[i])&&!jr(i,n)&&(t[i]=e[i])}function Pl({transformTemplate:t},e){return T.useMemo(()=>{const n=ni();return ei(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Al(t,e){const n=t.style||{},i={};return Fr(i,n,t),Object.assign(i,Pl(t,e)),i}function Cl(t,e){const n={},i=Al(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const Vl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ml={offset:"strokeDashoffset",array:"strokeDasharray"};function Dl(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?Vl:Ml;t[o.offset]=w.transform(-i);const r=w.transform(e),a=w.transform(n);t[o.array]=`${r} ${a}`}function Nr(t,{attrX:e,attrY:n,attrScale:i,pathLength:s,pathSpacing:o=1,pathOffset:r=0,...a},c,u,l){if(ei(t,a,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=l?.transformBox??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),i!==void 0&&(h.scale=i),s!==void 0&&Dl(h,s,o,r,!1)}const $r=()=>({...ni(),attrs:{}}),Wr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function El(t,e,n,i){const s=T.useMemo(()=>{const o=$r();return Nr(o,e,Wr(i),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Fr(o,t.style,t),s.style={...o,...s.style}}return s}const _l=["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(t){return typeof t!="string"||t.includes("-")?!1:!!(_l.indexOf(t)>-1||/[A-Z]/u.test(t))}function Rl(t,e,n,{latestValues:i},s,o=!1){const a=(ii(t)?El:Cl)(e,i,s,t),c=yl(e,typeof t=="string",o),u=t!==T.Fragment?{...c,...a,ref:n}:{},{children:l}=e,h=T.useMemo(()=>$(l)?l.get():l,[l]);return T.createElement(t,{...u,children:h})}function Wi(t){const e=[{},{}];return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function si(t,e,n,i){if(typeof e=="function"){const[s,o]=Wi(i);e=e(n!==void 0?n:t.custom,s,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,o]=Wi(i);e=e(n!==void 0?n:t.custom,s,o)}return e}function xe(t){return $(t)?t.get():t}function kl({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,s){return{latestValues:Ll(n,i,s,t),renderState:e()}}function Ll(t,e,n,i){const s={},o=i(t,{});for(const f in o)s[f]=xe(o[f]);let{initial:r,animate:a}=t;const c=Le(t),u=Ir(t);e&&u&&!c&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let l=n?n.initial===!1:!1;l=l||r===!1;const h=l?a:r;if(h&&typeof h!="boolean"&&!ke(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const m=si(t,f[d]);if(m){const{transitionEnd:g,transition:x,...p}=m;for(const y in p){let v=p[y];if(Array.isArray(v)){const P=l?v.length-1:0;v=v[P]}v!==null&&(s[y]=v)}for(const y in g)s[y]=g[y]}}}return s}const Ur=t=>(e,n)=>{const i=T.useContext(Re),s=T.useContext(_n),o=()=>kl(t,e,i,s);return n?o():ma(o)};function ri(t,e,n){const{style:i}=t,s={};for(const o in i)($(i[o])||e.style&&$(e.style[o])||jr(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(s[o]=i[o]);return s}const Bl=Ur({scrapeMotionValuesFromProps:ri,createRenderState:ni});function Kr(t,e,n){const i=ri(t,e,n);for(const s in t)if($(t[s])||$(e[s])){const o=jt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[o]=t[s]}return i}const Ol=Ur({scrapeMotionValuesFromProps:Kr,createRenderState:$r}),Il=Symbol.for("motionComponentSymbol");function Ct(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function jl(t,e,n){return T.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):Ct(n)&&(n.current=i))},[e])}const oi=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Fl="framerAppearId",zr="data-"+oi(Fl),Gr=T.createContext({});function Nl(t,e,n,i,s){const{visualElement:o}=T.useContext(Re),r=T.useContext(Br),a=T.useContext(_n),c=T.useContext(Lr).reducedMotion,u=T.useRef(null);i=i||r.renderer,!u.current&&i&&(u.current=i(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const l=u.current,h=T.useContext(Gr);l&&!l.projection&&s&&(l.type==="html"||l.type==="svg")&&$l(u.current,n,s,h);const f=T.useRef(!1);T.useInsertionEffect(()=>{l&&f.current&&l.update(n,a)});const d=n[zr],m=T.useRef(!!d&&!window.MotionHandoffIsComplete?.(d)&&window.MotionHasOptimisedAnimation?.(d));return pa(()=>{l&&(f.current=!0,window.MotionIsMounted=!0,l.updateFeatures(),l.scheduleRenderMicrotask(),m.current&&l.animationState&&l.animationState.animateChanges())}),T.useEffect(()=>{l&&(!m.current&&l.animationState&&l.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(d)}),m.current=!1),l.enteringChildren=void 0)}),l}function $l(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutCrossfade:l}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Hr(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!r||a&&Ct(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,crossfade:l,layoutScroll:c,layoutRoot:u})}function Hr(t){if(t)return t.options.allowProjection!==!1?t.projection:Hr(t.parent)}function Ke(t,{forwardMotionProps:e=!1}={},n,i){n&&ml(n);const s=ii(t)?Ol:Bl;function o(a,c){let u;const l={...T.useContext(Lr),...a,layoutId:Wl(a)},{isStatic:h}=l,f=xl(a),d=s(a,h);if(!h&&En){Ul(l,n);const m=Kl(l);u=m.MeasureLayout,f.visualElement=Nl(t,d,l,i,m.ProjectionNode)}return D.jsxs(Re.Provider,{value:f,children:[u&&f.visualElement?D.jsx(u,{visualElement:f.visualElement,...l}):null,Rl(t,a,jl(d,f.visualElement,c),d,h,e)]})}o.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const r=T.forwardRef(o);return r[Il]=t,r}function Wl({layoutId:t}){const e=T.useContext(Ks).id;return e&&t!==void 0?e+"-"+t:t}function Ul(t,e){const n=T.useContext(Br).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const i="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Ot(!1,i,"lazy-strict-mode"):at(!1,i,"lazy-strict-mode")}}function Kl(t){const{drag:e,layout:n}=Lt;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function zl(t,e){if(typeof Proxy>"u")return Ke;const n=new Map,i=(o,r)=>Ke(o,r,t,e),s=(o,r)=>(process.env.NODE_ENV!=="production"&&On(!1,"motion() is deprecated. Use motion.create() instead."),i(o,r));return new Proxy(s,{get:(o,r)=>r==="create"?i:(n.has(r)||n.set(r,Ke(r,void 0,t,e)),n.get(r))})}function Yr({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Gl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Hl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function ze(t){return t===void 0||t===1}function xn({scale:t,scaleX:e,scaleY:n}){return!ze(t)||!ze(e)||!ze(n)}function gt(t){return xn(t)||Xr(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Xr(t){return Ui(t.x)||Ui(t.y)}function Ui(t){return t&&t!=="0%"}function Me(t,e,n){const i=t-n,s=e*i;return n+s}function Ki(t,e,n,i,s){return s!==void 0&&(t=Me(t,s,i)),Me(t,n,i)+e}function bn(t,e=0,n=1,i,s){t.min=Ki(t.min,e,n,i,s),t.max=Ki(t.max,e,n,i,s)}function qr(t,{x:e,y:n}){bn(t.x,e.translate,e.scale,e.originPoint),bn(t.y,n.translate,n.scale,n.originPoint)}const zi=.999999999999,Gi=1.0000000000001;function Yl(t,e,n,i=!1){const s=n.length;if(!s)return;e.x=e.y=1;let o,r;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Mt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,qr(t,r)),i&>(o.latestValues)&&Mt(t,o.latestValues))}e.x<Gi&&e.x>zi&&(e.x=1),e.y<Gi&&e.y>zi&&(e.y=1)}function Vt(t,e){t.min=t.min+e,t.max=t.max+e}function Hi(t,e,n,i,s=.5){const o=R(t.min,t.max,s);bn(t,e,n,o,i)}function Mt(t,e){Hi(t.x,e.x,e.scaleX,e.scale,e.originX),Hi(t.y,e.y,e.scaleY,e.scale,e.originY)}function Zr(t,e){return Yr(Hl(t.getBoundingClientRect(),e))}function Xl(t,e,n){const i=Zr(t,n),{scroll:s}=e;return s&&(Vt(i.x,s.offset.x),Vt(i.y,s.offset.y)),i}const Yi=()=>({translate:0,scale:1,origin:0,originPoint:0}),Dt=()=>({x:Yi(),y:Yi()}),Xi=()=>({min:0,max:0}),k=()=>({x:Xi(),y:Xi()}),Tn={current:null},Jr={current:!1};function ql(){if(Jr.current=!0,!!En)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Tn.current=t.matches;t.addEventListener("change",e),e()}else Tn.current=!1}const Zl=new WeakMap;function Jl(t,e,n){for(const i in e){const s=e[i],o=n[i];if($(s))t.addValue(i,s);else if($(o))t.addValue(i,kt(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const r=t.getValue(i);r.liveStyle===!0?r.jump(s):r.hasAnimated||r.set(s)}else{const r=t.getStaticValue(i);t.addValue(i,kt(r!==void 0?r:s,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const qi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ql{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Yn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=K.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,E.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=r;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Le(n),this.isVariantNode=Ir(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];c[f]!==void 0&&$(d)&&d.set(c[f])}}mount(e){this.current=e,Zl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),Jr.current||ql(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Tn.current,process.env.NODE_ENV!=="production"&&On(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ht(this.notifyUpdate),ht(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Ft.has(e);i&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&E.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Lt){const n=Lt[e];if(!n)continue;const{isEnabled:i,Feature:s}=n;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):k()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<qi.length;i++){const s=qi[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,r=e[o];r&&(this.propEventSubscriptions[s]=this.on(s,r))}this.prevMotionValues=Jl(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=kt(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(zs(i)||Hs(i))?i=parseFloat(i):!fl(i)&&ft.test(n)&&(i=Mr(e,n)),this.setBaseTarget(e,$(i)?i.get():i)),$(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=si(this.props,n,this.presenceContext?.custom);o&&(i=o[e])}if(n&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!$(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Bn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Zn.render(this.render)}}class Qr extends Ql{constructor(){super(...arguments),this.KeyframeResolver=Qc}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;$(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function to(t,{style:e,vars:n},i,s){const o=t.style;let r;for(r in e)o[r]=e[r];s?.applyProjectionStyles(o,i);for(r in n)o.setProperty(r,n[r])}function tu(t){return window.getComputedStyle(t)}class eu extends Qr{constructor(){super(...arguments),this.type="html",this.renderInstance=to}readValueFromInstance(e,n){if(Ft.has(n))return this.projection?.isProjecting?fn(n):yc(e,n);{const i=tu(e),s=(Fn(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Zr(e,n)}build(e,n,i){ei(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return ri(e,n,i)}}const eo=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 nu(t,e,n,i){to(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(eo.has(s)?s:oi(s),e.attrs[s])}class iu extends Qr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=k}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ft.has(n)){const i=Vr(n);return i&&i.default||0}return n=eo.has(n)?n:oi(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return Kr(e,n,i)}build(e,n,i){Nr(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,s){nu(e,n,i,s)}mount(e){this.isSVGTag=Wr(e.tagName),super.mount(e)}}const su=(t,e)=>ii(t)?new iu(e):new eu(e,{allowProjection:t!==T.Fragment});function _t(t,e,n){const i=t.getProps();return si(i,e,n!==void 0?n:i.custom,t)}const wn=t=>Array.isArray(t);function ru(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,kt(n))}function ou(t){return wn(t)?t[t.length-1]||0:t}function au(t,e){const n=_t(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const r in o){const a=ou(o[r]);ru(t,r,a)}}function cu(t){return!!($(t)&&t.add)}function Sn(t,e){const n=t.getValue("willChange");if(cu(n))return n.add(e);if(!n&&ct.WillChange){const i=new ct.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function no(t){return t.props[zr]}const lu=t=>t!==null;function uu(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(lu),o=e&&n!=="loop"&&e%2===1?0:s.length-1;return s[o]}const hu={type:"spring",stiffness:500,damping:25,restSpeed:10},fu=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),du={type:"keyframes",duration:.8},mu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pu=(t,{keyframes:e})=>e.length>2?du:Ft.has(t)?t.startsWith("scale")?fu(e[1]):hu:mu;function gu({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:c,elapsed:u,...l}){return!!Object.keys(l).length}const ai=(t,e,n,i={},s,o)=>r=>{const a=Xn(i,t)||{},c=a.delay||i.delay||0;let{elapsed:u=0}=i;u=u-nt(c);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};gu(a)||Object.assign(l,pu(t,l)),l.duration&&(l.duration=nt(l.duration)),l.repeatDelay&&(l.repeatDelay=nt(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(yn(l),l.delay===0&&(h=!0)),(ct.instantAnimations||ct.skipAnimations)&&(h=!0,yn(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=uu(l.keyframes,a);if(f!==void 0){E.update(()=>{l.onUpdate(f),l.onComplete()});return}}return a.isSync?new Hn(l):new Nc(l)};function yu({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function io(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;i&&(o=i);const c=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const l in a){const h=t.getValue(l,t.latestValues[l]??null),f=a[l];if(f===void 0||u&&yu(u,l))continue;const d={delay:n,...Xn(o||{},l)},m=h.get();if(m!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===m&&!d.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const p=no(t);if(p){const y=window.MotionHandoffAnimation(p,l,E);y!==null&&(d.startTime=y,g=!0)}}Sn(t,l),h.start(ai(l,h,f,t.shouldReduceMotion&&Pr.has(l)?{type:!1}:d,t,g));const x=h.animation;x&&c.push(x)}return r&&Promise.all(c).then(()=>{E.update(()=>{r&&au(t,r)})}),c}function so(t,e,n,i=0,s=1){const o=Array.from(t).sort((u,l)=>u.sortNodePosition(l)).indexOf(e),r=t.size,a=(r-1)*i;return typeof n=="function"?n(o,r):s===1?o*i:a-o*i}function Pn(t,e,n={}){const i=_t(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(io(t,i,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:l,staggerDirection:h}=s;return vu(t,e,c,u,l,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,u]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function vu(t,e,n=0,i=0,s=0,o=1,r){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(Pn(c,e,{...r,delay:n+(typeof i=="function"?0:i)+so(t.variantChildren,c,i,s,o)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function xu(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const s=e.map(o=>Pn(t,o,n));i=Promise.all(s)}else if(typeof e=="string")i=Pn(t,e,n);else{const s=typeof e=="function"?_t(t,e,n.custom):e;i=Promise.all(io(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function ro(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const bu=ti.length;function oo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?oo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<bu;n++){const i=ti[n],s=t.props[i];(Qt(s)||s===!1)&&(e[i]=s)}return e}const Tu=[...Qn].reverse(),wu=Qn.length;function Su(t){return e=>Promise.all(e.map(({animation:n,options:i})=>xu(t,n,i)))}function Pu(t){let e=Su(t),n=Zi(),i=!0;const s=c=>(u,l)=>{const h=_t(t,l,c==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:d,...m}=h;u={...u,...m,...d}}return u};function o(c){e=c(t)}function r(c){const{props:u}=t,l=oo(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let x=0;x<wu;x++){const p=Tu[x],y=n[p],v=u[p]!==void 0?u[p]:l[p],P=Qt(v),b=p===c?y.isActive:null;b===!1&&(m=x);let A=v===l[p]&&v!==u[p]&&P;if(A&&i&&t.manuallyAnimateOnMount&&(A=!1),y.protectedKeys={...d},!y.isActive&&b===null||!v&&!y.prevProp||ke(v)||typeof v=="boolean")continue;const S=Au(y.prevProp,v);let C=S||p===c&&y.isActive&&!A&&P||x>m&&P,F=!1;const H=Array.isArray(v)?v:[v];let wt=H.reduce(s(p),{});b===!1&&(wt={});const{prevResolvedValues:ci={}}=y,Po={...ci,...wt},li=O=>{C=!0,f.has(O)&&(F=!0,f.delete(O)),y.needsAnimating[O]=!0;const Y=t.getValue(O);Y&&(Y.liveStyle=!1)};for(const O in Po){const Y=wt[O],mt=ci[O];if(d.hasOwnProperty(O))continue;let St=!1;wn(Y)&&wn(mt)?St=!ro(Y,mt):St=Y!==mt,St?Y!=null?li(O):f.add(O):Y!==void 0&&f.has(O)?li(O):y.protectedKeys[O]=!0}y.prevProp=v,y.prevResolvedValues=wt,y.isActive&&(d={...d,...wt}),i&&t.blockInitialAnimation&&(C=!1);const ui=A&&S;C&&(!ui||F)&&h.push(...H.map(O=>{const Y={type:p};if(typeof O=="string"&&i&&!ui&&t.manuallyAnimateOnMount&&t.parent){const{parent:mt}=t,St=_t(mt,O);if(mt.enteringChildren&&St){const{delayChildren:Ao}=St.transition||{};Y.delay=so(mt.enteringChildren,t,Ao)}}return{animation:O,options:Y}}))}if(f.size){const x={};if(typeof u.initial!="boolean"){const p=_t(t,Array.isArray(u.initial)?u.initial[0]:u.initial);p&&p.transition&&(x.transition=p.transition)}f.forEach(p=>{const y=t.getBaseTarget(p),v=t.getValue(p);v&&(v.liveStyle=!0),x[p]=y??null}),h.push({animation:x})}let g=!!h.length;return i&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(g=!1),i=!1,g?e(h):Promise.resolve()}function a(c,u){if(n[c].isActive===u)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(c,u)),n[c].isActive=u;const l=r(c);for(const h in n)n[h].protectedKeys={};return l}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Zi(),i=!0}}}function Au(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ro(e,t):!1}function pt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Zi(){return{animate:pt(!0),whileInView:pt(),whileHover:pt(),whileTap:pt(),whileDrag:pt(),whileFocus:pt(),exit:pt()}}class dt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Cu extends dt{constructor(e){super(e),e.animationState||(e.animationState=Pu(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ke(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Vu=0;class Mu extends dt{constructor(){super(...arguments),this.id=Vu++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const s=this.node.animationState.setActive("exit",!e);n&&!e&&s.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Du={animation:{Feature:Cu},exit:{Feature:Mu}};function ee(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function ce(t){return{point:{x:t.pageX,y:t.pageY}}}const Eu=t=>e=>Jn(e)&&t(e,ce(e));function Kt(t,e,n,i){return ee(t,e,Eu(n),i)}const ao=1e-4,_u=1-ao,Ru=1+ao,co=.01,ku=0-co,Lu=0+co;function W(t){return t.max-t.min}function Bu(t,e,n){return Math.abs(t-e)<=n}function Ji(t,e,n,i=.5){t.origin=i,t.originPoint=R(e.min,e.max,t.origin),t.scale=W(n)/W(e),t.translate=R(n.min,n.max,t.origin)-t.originPoint,(t.scale>=_u&&t.scale<=Ru||isNaN(t.scale))&&(t.scale=1),(t.translate>=ku&&t.translate<=Lu||isNaN(t.translate))&&(t.translate=0)}function zt(t,e,n,i){Ji(t.x,e.x,n.x,i?i.originX:void 0),Ji(t.y,e.y,n.y,i?i.originY:void 0)}function Qi(t,e,n){t.min=n.min+e.min,t.max=t.min+W(e)}function Ou(t,e,n){Qi(t.x,e.x,n.x),Qi(t.y,e.y,n.y)}function ts(t,e,n){t.min=e.min-n.min,t.max=t.min+W(e)}function Gt(t,e,n){ts(t.x,e.x,n.x),ts(t.y,e.y,n.y)}function Z(t){return[t("x"),t("y")]}const lo=({current:t})=>t?t.ownerDocument.defaultView:null,es=(t,e)=>Math.abs(t-e);function Iu(t,e){const n=es(t.x,e.x),i=es(t.y,e.y);return Math.sqrt(n**2+i**2)}class uo{constructor(e,n,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:o=!1,distanceThreshold:r=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 f=He(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=Iu(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!m)return;const{point:g}=f,{timestamp:x}=I;this.history.push({...g,timestamp:x});const{onStart:p,onMove:y}=this.handlers;d||(p&&p(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ge(d,this.transformPagePoint),E.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=He(f.type==="pointercancel"?this.lastMoveEventInfo:Ge(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,p),g&&g(f,p)},!Jn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const a=ce(e),c=Ge(a,this.transformPagePoint),{point:u}=c,{timestamp:l}=I;this.history=[{...u,timestamp:l}];const{onSessionStart:h}=n;h&&h(e,He(c,this.history)),this.removeListeners=re(Kt(this.contextWindow,"pointermove",this.handlePointerMove),Kt(this.contextWindow,"pointerup",this.handlePointerUp),Kt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ht(this.updatePoint)}}function Ge(t,e){return e?{point:e(t.point)}:t}function ns(t,e){return{x:t.x-e.x,y:t.y-e.y}}function He({point:t},e){return{point:t,delta:ns(t,ho(e)),offset:ns(t,ju(e)),velocity:Fu(e,.1)}}function ju(t){return t[0]}function ho(t){return t[t.length-1]}function Fu(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=ho(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>nt(e)));)n--;if(!i)return{x:0,y:0};const o=Q(s.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Nu(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?R(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?R(n,t,i.max):Math.min(t,n)),t}function is(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function $u(t,{top:e,left:n,bottom:i,right:s}){return{x:is(t.x,n,s),y:is(t.y,e,i)}}function ss(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function Wu(t,e){return{x:ss(t.x,e.x),y:ss(t.y,e.y)}}function Uu(t,e){let n=.5;const i=W(t),s=W(e);return s>i?n=qt(e.min,e.max-i,t.min):i>s&&(n=qt(t.min,t.max-s,e.min)),ot(0,1,n)}function Ku(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const An=.35;function zu(t=An){return t===!1?t=0:t===!0&&(t=An),{x:rs(t,"left","right"),y:rs(t,"top","bottom")}}function rs(t,e,n){return{min:os(t,e),max:os(t,n)}}function os(t,e){return typeof t=="number"?t:t[e]||0}const Gu=new WeakMap;class Hu{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=k(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ce(h).point)},r=(h,f)=>{const{drag:d,dragPropagation:m,onDragStart:g}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=sl(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Z(p=>{let y=this.getAxisMotionValue(p).get()||0;if(rt.test(y)){const{projection:v}=this.visualElement;if(v&&v.layout){const P=v.layout.layoutBox[p];P&&(y=W(P)*(parseFloat(y)/100))}}this.originPoint[p]=y}),g&&E.postRender(()=>g(h,f)),Sn(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:g,onDrag:x}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:p}=f;if(m&&this.currentDirection===null){this.currentDirection=Yu(p),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,p),this.updateAxis("y",f.point,p),this.visualElement.render(),x&&x(h,f)},c=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Z(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new uo(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:i,contextWindow:lo(this.visualElement)})}stop(e,n){const i=e||this.latestPointerEvent,s=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!s||!i)return;const{velocity:r}=s;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&E.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:s}=this.getProps();if(!i||!fe(e,s,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(r=Nu(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&Ct(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=$u(i.layoutBox,e):this.constraints=!1,this.elastic=zu(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Z(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Ku(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Ct(e))return!1;const i=e.current;at(i!==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:s}=this.visualElement;if(!s||!s.layout)return!1;const o=Xl(i,s.root,this.visualElement.getTransformPagePoint());let r=Wu(s.layout.layoutBox,o);if(n){const a=n(Gl(r));this.hasMutatedConstraints=!!a,a&&(r=Yr(a))}return r}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=Z(l=>{if(!fe(l,n,this.currentDirection))return;let h=c&&c[l]||{};r&&(h={min:0,max:0});const f=s?200:1e6,d=s?40:1e7,m={type:"inertia",velocity:i?e[l]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(l,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Sn(this.visualElement,e),i.start(ai(e,i,0,n,this.visualElement,!1))}stopAnimation(){Z(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Z(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),s=i[n];return s||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Z(n=>{const{drag:i}=this.getProps();if(!fe(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:r,max:a}=s.layout.layoutBox[n];o.set(e[n]-R(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Ct(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Z(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();s[r]=Uu({min:c,max:c},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Z(r=>{if(!fe(r,e,null))return;const a=this.getAxisMotionValue(r),{min:c,max:u}=this.constraints[r];a.set(R(c,u,s[r]))})}addListeners(){if(!this.visualElement.current)return;Gu.set(this.visualElement,this);const e=this.visualElement.current,n=Kt(e,"pointerdown",c=>{const{drag:u,dragListener:l=!0}=this.getProps();u&&l&&this.start(c)}),i=()=>{const{dragConstraints:c}=this.getProps();Ct(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),E.read(i);const r=ee(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Z(l=>{const h=this.getAxisMotionValue(l);h&&(this.originPoint[l]+=c[l].translate,h.set(h.get()+c[l].translate))}),this.visualElement.render())}));return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:r=An,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function fe(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Yu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Xu extends dt{constructor(e){super(e),this.removeGroupControls=tt,this.removeListeners=tt,this.controls=new Hu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tt}unmount(){this.removeGroupControls(),this.removeListeners()}}const as=t=>(e,n)=>{t&&E.postRender(()=>t(e,n))};class qu extends dt{constructor(){super(...arguments),this.removePointerDownListener=tt}onPointerDown(e){this.session=new uo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lo(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:as(e),onStart:as(n),onMove:i,onEnd:(o,r)=>{delete this.session,s&&E.postRender(()=>s(o,r))}}}mount(){this.removePointerDownListener=Kt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const be={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const $t={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(w.test(t))t=parseFloat(t);else return t;const n=cs(t,e.target.x),i=cs(t,e.target.y);return`${n}% ${i}%`}},Zu={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=ft.parse(t);if(s.length>5)return i;const o=ft.createTransformer(t),r=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=c;const u=R(a,c,.5);return typeof s[2+r]=="number"&&(s[2+r]/=u),typeof s[3+r]=="number"&&(s[3+r]/=u),o(s)}};let Ye=!1;class Ju extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:o}=e;bl(Qu),o&&(n.group&&n.group.add(o),i&&i.register&&s&&i.register(o),Ye&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),be.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:s,isPresent:o}=this.props,{projection:r}=i;return r&&(r.isPresent=o,Ye=!0,s||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||E.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Zn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=e;Ye=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function fo(t){const[e,n]=dl(),i=T.useContext(Ks);return D.jsx(Ju,{...t,layoutGroup:i,switchLayoutGroup:T.useContext(Gr),isPresent:e,safeToRemove:n})}const Qu={borderRadius:{...$t,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$t,borderTopRightRadius:$t,borderBottomLeftRadius:$t,borderBottomRightRadius:$t,boxShadow:Zu};function th(t,e,n){const i=$(t)?t:kt(t);return i.start(ai("",i,e,n)),i.animation}const eh=(t,e)=>t.depth-e.depth;class nh{constructor(){this.children=[],this.isDirty=!1}add(e){Rn(this.children,e),this.isDirty=!0}remove(e){kn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(eh),this.isDirty=!1,this.children.forEach(e)}}function ih(t,e){const n=K.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(ht(i),t(o-e))};return E.setup(i,!0),()=>ht(i)}const mo=["TopLeft","TopRight","BottomLeft","BottomRight"],sh=mo.length,ls=t=>typeof t=="string"?parseFloat(t):t,us=t=>typeof t=="number"||w.test(t);function rh(t,e,n,i,s,o){s?(t.opacity=R(0,n.opacity??1,oh(i)),t.opacityExit=R(e.opacity??1,0,ah(i))):o&&(t.opacity=R(e.opacity??1,n.opacity??1,i));for(let r=0;r<sh;r++){const a=`border${mo[r]}Radius`;let c=hs(e,a),u=hs(n,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||us(c)===us(u)?(t[a]=Math.max(R(ls(c),ls(u),i),0),(rt.test(u)||rt.test(c))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=R(e.rotate||0,n.rotate||0,i))}function hs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const oh=po(0,.5,er),ah=po(.5,.95,tt);function po(t,e,n){return i=>i<t?0:i>e?1:n(qt(t,e,i))}function fs(t,e){t.min=e.min,t.max=e.max}function X(t,e){fs(t.x,e.x),fs(t.y,e.y)}function ds(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ms(t,e,n,i,s){return t-=e,t=Me(t,1/n,i),s!==void 0&&(t=Me(t,1/s,i)),t}function ch(t,e=0,n=1,i=.5,s,o=t,r=t){if(rt.test(e)&&(e=parseFloat(e),e=R(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=R(o.min,o.max,i);t===o&&(a-=e),t.min=ms(t.min,e,n,a,s),t.max=ms(t.max,e,n,a,s)}function ps(t,e,[n,i,s],o,r){ch(t,e[n],e[i],e[s],e.scale,o,r)}const lh=["x","scaleX","originX"],uh=["y","scaleY","originY"];function gs(t,e,n,i){ps(t.x,e,lh,n?n.x:void 0,i?i.x:void 0),ps(t.y,e,uh,n?n.y:void 0,i?i.y:void 0)}function ys(t){return t.translate===0&&t.scale===1}function go(t){return ys(t.x)&&ys(t.y)}function vs(t,e){return t.min===e.min&&t.max===e.max}function hh(t,e){return vs(t.x,e.x)&&vs(t.y,e.y)}function xs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function yo(t,e){return xs(t.x,e.x)&&xs(t.y,e.y)}function bs(t){return W(t.x)/W(t.y)}function Ts(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class fh{constructor(){this.members=[]}add(e){Rn(this.members,e),e.scheduleRender()}remove(e){if(kn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let i;for(let s=n;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function dh(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:l,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;u&&(i=`perspective(${u}px) ${i}`),l&&(i+=`rotate(${l}deg) `),h&&(i+=`rotateX(${h}deg) `),f&&(i+=`rotateY(${f}deg) `),d&&(i+=`skewX(${d}deg) `),m&&(i+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(i+=`scale(${a}, ${c})`),i||"none"}const Xe=["","X","Y","Z"],mh=1e3;let ph=0;function qe(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function vo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=no(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",E,!(s||o))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&vo(i)}function xo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(r={},a=e?.()){this.id=ph++,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(vh),this.nodes.forEach(wh),this.nodes.forEach(Sh),this.nodes.forEach(xh)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,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 nh)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Bn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=kr(r)&&!ul(r),this.instance=r;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let l,h=0;const f=()=>this.root.updateBlockedByResize=!1;E.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,l&&l(),l=ih(f,250),be.hasAnimatedSinceResize&&(be.hasAnimatedSinceResize=!1,this.nodes.forEach(Ps)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Mh,{onLayoutAnimationStart:g,onLayoutAnimationComplete:x}=u.getProps(),p=!this.targetLayout||!yo(this.targetLayout,d),y=!h&&f;if(this.options.layoutRoot||this.resumeFrom||y||h&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Xn(m,"layout"),onPlay:g,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(l,y)}else h||Ps(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ht(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ph),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&vo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const h=this.path[l];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ws);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ss);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Th),this.nodes.forEach(gh),this.nodes.forEach(yh)):this.nodes.forEach(Ss),this.clearAllSnapshots();const a=K.now();I.delta=ot(0,1e3/60,a-I.timestamp),I.timestamp=a,I.isProcessing=!0,je.update.process(I),je.preRender.process(I),je.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Zn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(bh),this.sharedNodes.forEach(Ah)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,E.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){E.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!W(this.snapshot.measuredBox.x)&&!W(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 r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=k(),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,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const c=i(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!go(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||gt(this.latestValues)||l)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),Dh(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return k();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Eh))){const{scroll:u}=this.root;u&&(Vt(a.x,u.offset.x),Vt(a.y,u.offset.y))}return a}removeElementScroll(r){const a=k();if(X(a,r),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:l,options:h}=u;u!==this.root&&l&&h.layoutScroll&&(l.wasRoot&&X(a,r),Vt(a.x,l.offset.x),Vt(a.y,l.offset.y))}return a}applyTransform(r,a=!1){const c=k();X(c,r);for(let u=0;u<this.path.length;u++){const l=this.path[u];!a&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Mt(c,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),gt(l.latestValues)&&Mt(c,l.latestValues)}return gt(this.latestValues)&&Mt(c,this.latestValues),c}removeTransform(r){const a=k();X(a,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!gt(u.latestValues))continue;xn(u.latestValues)&&u.updateSnapshot();const l=k(),h=u.measurePageBox();X(l,h),gs(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,l)}return gt(this.latestValues)&&gs(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.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!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!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(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:h}=this.options;if(!(!this.layout||!(l||h))){if(this.resolvedRelativeTargetAt=I.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),Gt(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),X(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=k(),this.targetWithTransforms=k()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ou(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):X(this.target,this.layout.layoutBox),qr(this.target,this.targetDelta)):X(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),Gt(this.relativeTargetOrigin,this.target,f.target),X(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||xn(this.parent.latestValues)||Xr(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 r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===I.timestamp&&(c=!1),c)return;const{layout:u,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||l))return;X(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Yl(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=k());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ds(this.prevProjectionDelta.x,this.projectionDelta.x),ds(this.prevProjectionDelta.y,this.projectionDelta.y)),zt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Ts(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ts(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Dt(),this.projectionDelta=Dt(),this.projectionDeltaWithTransform=Dt()}setAnimationOrigin(r,a=!1){const c=this.snapshot,u=c?c.latestValues:{},l={...this.latestValues},h=Dt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=k(),d=c?c.source:void 0,m=this.layout?this.layout.source:void 0,g=d!==m,x=this.getStack(),p=!x||x.members.length<=1,y=!!(g&&!p&&this.options.crossfade===!0&&!this.path.some(Vh));this.animationProgress=0;let v;this.mixTargetDelta=P=>{const b=P/1e3;As(h.x,r.x,b),As(h.y,r.y,b),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ch(this.relativeTarget,this.relativeTargetOrigin,f,b),v&&hh(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=k()),X(v,this.relativeTarget)),g&&(this.animationValues=l,rh(l,u,this.latestValues,b,y,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ht(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.update(()=>{be.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=kt(0)),this.currentAnimation=th(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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 r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:l}=r;if(!(!a||!c||!u)){if(this!==r&&this.layout&&u&&bo(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||k();const h=W(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+h;const f=W(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+f}X(a,c),Mt(a,l),zt(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new fh),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&qe("z",r,u,this.animationValues);for(let l=0;l<Xe.length;l++)qe(`rotate${Xe[l]}`,r,u,this.animationValues),qe(`skew${Xe[l]}`,r,u,this.animationValues);r.render();for(const l in u)r.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=xe(a?.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=xe(a?.pointerEvents)||""),this.hasProjected&&!gt(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=dh(this.projectionDeltaWithTransform,this.treeScale,l);c&&(h=c(l,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,u.animationValues?r.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:r.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const m in te){if(l[m]===void 0)continue;const{correct:g,applyTo:x,isCSSVariable:p}=te[m],y=h==="none"?l[m]:g(l[m],u);if(x){const v=x.length;for(let P=0;P<v;P++)r[x[P]]=y}else p?this.options.visualElement.renderState.vars[m]=y:r[m]=y}this.options.layoutId&&(r.pointerEvents=u===this?xe(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(ws),this.root.sharedNodes.clear()}}}function gh(t){t.updateLayout()}function yh(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;s==="size"?Z(l=>{const h=o?e.measuredBox[l]:e.layoutBox[l],f=W(h);h.min=n[l].min,h.max=h.min+f}):bo(s,e.layoutBox,n)&&Z(l=>{const h=o?e.measuredBox[l]:e.layoutBox[l],f=W(n[l]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[l].max=t.relativeTarget[l].min+f)});const r=Dt();zt(r,n,e.layoutBox);const a=Dt();o?zt(a,t.applyTransform(i,!0),e.measuredBox):zt(a,n,e.layoutBox);const c=!go(r);let u=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:h,layout:f}=l;if(h&&f){const d=k();Gt(d,e.layoutBox,h.layoutBox);const m=k();Gt(m,n,f.layoutBox),yo(d,m)||(u=!0),l.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=d,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function vh(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function xh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function bh(t){t.clearSnapshot()}function ws(t){t.clearMeasurements()}function Ss(t){t.isLayoutDirty=!1}function Th(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ps(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function wh(t){t.resolveTargetDelta()}function Sh(t){t.calcProjection()}function Ph(t){t.resetSkewAndRotation()}function Ah(t){t.removeLeadSnapshot()}function As(t,e,n){t.translate=R(e.translate,0,n),t.scale=R(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Cs(t,e,n,i){t.min=R(e.min,n.min,i),t.max=R(e.max,n.max,i)}function Ch(t,e,n,i){Cs(t.x,e.x,n.x,i),Cs(t.y,e.y,n.y,i)}function Vh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Mh={duration:.45,ease:[.4,0,.1,1]},Vs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ms=Vs("applewebkit/")&&!Vs("chrome/")?Math.round:tt;function Ds(t){t.min=Ms(t.min),t.max=Ms(t.max)}function Dh(t){Ds(t.x),Ds(t.y)}function bo(t,e,n){return t==="position"||t==="preserve-aspect"&&!Bu(bs(e),bs(n),.2)}function Eh(t){return t!==t.root&&t.scroll?.wasRoot}const _h=xo({attachResizeListener:(t,e)=>ee(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ze={current:void 0},To=xo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ze.current){const t=new _h({});t.mount(window),t.setOptions({layoutScroll:!0}),Ze.current=t}return Ze.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Rh={pan:{Feature:qu},drag:{Feature:Xu,ProjectionNode:To,MeasureLayout:fo}};function Es(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,o=i[s];o&&E.postRender(()=>o(e,ce(e)))}class kh extends dt{mount(){const{current:e}=this.node;e&&(this.unmount=rl(e,(n,i)=>(Es(this.node,i,"Start"),s=>Es(this.node,s,"End"))))}unmount(){}}class Lh extends dt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=re(ee(this.node.current,"focus",()=>this.onFocus()),ee(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function _s(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),o=i[s];o&&E.postRender(()=>o(e,ce(e)))}class Bh extends dt{mount(){const{current:e}=this.node;e&&(this.unmount=ll(e,(n,i)=>(_s(this.node,i,"Start"),(s,{success:o})=>_s(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Cn=new WeakMap,Je=new WeakMap,Oh=t=>{const e=Cn.get(t.target);e&&e(t)},Ih=t=>{t.forEach(Oh)};function jh({root:t,...e}){const n=t||document;Je.has(n)||Je.set(n,{});const i=Je.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(Ih,{root:t,...e})),i[s]}function Fh(t,e,n){const i=jh(e);return Cn.set(t,n),i.observe(t),()=>{Cn.delete(t),i.unobserve(t)}}const Nh={some:0,all:1};class $h extends dt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:s="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:Nh[s]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:l,onViewportLeave:h}=this.node.getProps(),f=u?l:h;f&&f(c)};return Fh(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Wh(e,n))&&this.startObserver()}unmount(){}}function Wh({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Uh={inView:{Feature:$h},tap:{Feature:Bh},focus:{Feature:Lh},hover:{Feature:kh}},Kh={layout:{ProjectionNode:To,MeasureLayout:fo}},zh={...Du,...Uh,...Rh,...Kh},wo=zl(zh,su),Gh=t=>{let e;t.center?e="center":t.left?e="left":t.right&&(e="right");let n;return t.uppercase?n="uppercase":t.lowercase?n="lowercase":t.capitalize&&(n="capitalize"),U({marginTop:t.mt,marginBottom:t.mb,flex:t.flex,cursor:t.cursor,wordBreak:t.wordBreak,whiteSpace:t.whiteSpace,textOverflow:t.textOverflow,textDecoration:t.decoration,textAlign:e,textTransform:n,color:t.color})},Hh="_primary_13825_8",Yh="_secondary_13825_12",Xh="_tertiary_13825_16",qh="_positive_13825_20",Zh="_negative_13825_24",Jh="_warning_13825_28",Qh="_accent_13825_32",tf="_inverse_13825_36",ef="_text_13825_111",nf="_regular_13825_117",sf="_medium_13825_121",rf="_semibold_13825_125",of="_bold_13825_129",de={primary:Hh,secondary:Yh,tertiary:Xh,positive:qh,negative:Zh,warning:Jh,accent:Qh,inverse:tf,"title-1":"_title-1_13825_41","title-2":"_title-2_13825_51","title-3":"_title-3_13825_61","headline-1":"_headline-1_13825_76","headline-2":"_headline-2_13825_81","headline-3":"_headline-3_13825_86","body-1":"_body-1_13825_91","body-2":"_body-2_13825_96","caption-1":"_caption-1_13825_101","caption-2":"_caption-2_13825_106",text:ef,regular:nf,medium:sf,semibold:rf,bold:of},ne=T.forwardRef((t,e)=>{const{children:n,className:i,variant:s="body-1",fontWeight:o="medium",tag:r="p",colorName:a="primary",style:c,clickOpacity:u=.5,opacityDuration:l=200,onClick:h,...f}=t,[d,m]=T.useState(!1),g=!!h,x=()=>g&&m(!0),p=()=>g&&m(!1),y=r,v=g?U({opacity:d?u:1,transition:`opacity ${l}ms ease`}):"";return D.jsx(y,{ref:e,...f,className:Xt(de.text,de[s],de[o],de[a],Gh(t),v,i),style:c,onClick:h,onMouseDown:x,onMouseUp:p,onMouseLeave:p,onTouchStart:x,onTouchEnd:p,role:g?"button":void 0,tabIndex:g?0:void 0,children:n})});ne.displayName="Text";const So=wo(ne);function af(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Qe={exports:{}};/*!
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),b=require("react"),Qi=require("react-dom");function ea(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const D=ea(b);function na(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function sa(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var ia=(function(){function t(n){var s=this;this._insertTag=function(i){var o;s.tags.length===0?s.insertionPoint?o=s.insertionPoint.nextSibling:s.prepend?o=s.container.firstChild:o=s.before:o=s.tags[s.tags.length-1].nextSibling,s.container.insertBefore(i,o),s.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(s){s.forEach(this._insertTag)},e.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(sa(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=na(i);try{o.insertRule(s,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(s));this.ctr++},e.flush=function(){this.tags.forEach(function(s){var i;return(i=s.parentNode)==null?void 0:i.removeChild(s)}),this.tags=[],this.ctr=0},t})(),U="-ms-",De="-moz-",A="-webkit-",tr="comm",Fn="rule",Nn="decl",ra="@import",er="@keyframes",oa="@layer",aa=Math.abs,Fe=String.fromCharCode,la=Object.assign;function ca(t,e){return $(t,0)^45?(((e<<2^$(t,0))<<2^$(t,1))<<2^$(t,2))<<2^$(t,3):0}function nr(t){return t.trim()}function ua(t,e){return(t=e.exec(t))?t[0]:t}function E(t,e,n){return t.replace(e,n)}function pn(t,e){return t.indexOf(e)}function $(t,e){return t.charCodeAt(e)|0}function se(t,e,n){return t.slice(e,n)}function lt(t){return t.length}function zn(t){return t.length}function xe(t,e){return e.push(t),t}function ha(t,e){return t.map(e).join("")}var Ne=1,Ft=1,sr=0,q=0,B=0,$t="";function ze(t,e,n,s,i,o,r){return{value:t,root:e,parent:n,type:s,props:i,children:o,line:Ne,column:Ft,length:r,return:""}}function Xt(t,e){return la(ze("",null,null,"",null,null,0),t,{length:-t.length},e)}function fa(){return B}function da(){return B=q>0?$($t,--q):0,Ft--,B===10&&(Ft=1,Ne--),B}function Z(){return B=q<sr?$($t,q++):0,Ft++,B===10&&(Ft=1,Ne++),B}function ct(){return $($t,q)}function Pe(){return q}function fe(t,e){return se($t,t,e)}function ie(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ir(t){return Ne=Ft=1,sr=lt($t=t),q=0,[]}function rr(t){return $t="",t}function _e(t){return nr(fe(q-1,gn(t===91?t+2:t===40?t+1:t)))}function ma(t){for(;(B=ct())&&B<33;)Z();return ie(t)>2||ie(B)>3?"":" "}function pa(t,e){for(;--e&&Z()&&!(B<48||B>102||B>57&&B<65||B>70&&B<97););return fe(t,Pe()+(e<6&&ct()==32&&Z()==32))}function gn(t){for(;Z();)switch(B){case t:return q;case 34:case 39:t!==34&&t!==39&&gn(B);break;case 40:t===41&&gn(t);break;case 92:Z();break}return q}function ga(t,e){for(;Z()&&t+B!==57;)if(t+B===84&&ct()===47)break;return"/*"+fe(e,q-1)+"*"+Fe(t===47?t:Z())}function ya(t){for(;!ie(ct());)Z();return fe(t,q)}function va(t){return rr(Me("",null,null,null,[""],t=ir(t),0,[0],t))}function Me(t,e,n,s,i,o,r,a,l){for(var u=0,c=0,h=r,f=0,d=0,y=0,m=1,x=1,p=1,v=0,g="",S=i,T=o,_=s,C=g;x;)switch(y=v,v=Z()){case 40:if(y!=108&&$(C,h-1)==58){pn(C+=E(_e(v),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:C+=_e(v);break;case 9:case 10:case 13:case 32:C+=ma(y);break;case 92:C+=pa(Pe()-1,7);continue;case 47:switch(ct()){case 42:case 47:xe(xa(ga(Z(),Pe()),e,n),l);break;default:C+="/"}break;case 123*m:a[u++]=lt(C)*p;case 125*m:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+c:p==-1&&(C=E(C,/\f/g,"")),d>0&<(C)-h&&xe(d>32?Ss(C+";",s,n,h-1):Ss(E(C," ","")+";",s,n,h-2),l);break;case 59:C+=";";default:if(xe(_=Ts(C,e,n,u,c,i,a,g,S=[],T=[],h),o),v===123)if(c===0)Me(C,e,_,_,S,o,h,a,T);else switch(f===99&&$(C,3)===110?100:f){case 100:case 108:case 109:case 115:Me(t,_,_,s&&xe(Ts(t,_,_,0,0,i,a,g,i,S=[],h),T),i,T,h,a,s?S:T);break;default:Me(C,_,_,_,[""],T,0,a,T)}}u=c=d=0,m=p=1,g=C="",h=r;break;case 58:h=1+lt(C),d=y;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&da()==125)continue}switch(C+=Fe(v),v*m){case 38:p=c>0?1:(C+="\f",-1);break;case 44:a[u++]=(lt(C)-1)*p,p=1;break;case 64:ct()===45&&(C+=_e(Z())),f=ct(),c=h=lt(g=C+=ya(Pe())),v++;break;case 45:y===45&<(C)==2&&(m=0)}}return o}function Ts(t,e,n,s,i,o,r,a,l,u,c){for(var h=i-1,f=i===0?o:[""],d=zn(f),y=0,m=0,x=0;y<s;++y)for(var p=0,v=se(t,h+1,h=aa(m=r[y])),g=t;p<d;++p)(g=nr(m>0?f[p]+" "+v:E(v,/&\f/g,f[p])))&&(l[x++]=g);return ze(t,e,n,i===0?Fn:a,l,u,c)}function xa(t,e,n){return ze(t,e,n,tr,Fe(fa()),se(t,2,-2),0)}function Ss(t,e,n,s){return ze(t,e,n,Nn,se(t,0,s),se(t,s+1,-1),s)}function It(t,e){for(var n="",s=zn(t),i=0;i<s;i++)n+=e(t[i],i,t,e)||"";return n}function ba(t,e,n,s){switch(t.type){case oa:if(t.children.length)break;case ra:case Nn:return t.return=t.return||t.value;case tr:return"";case er:return t.return=t.value+"{"+It(t.children,s)+"}";case Fn:t.value=t.props.join(",")}return lt(n=It(t.children,s))?t.return=t.value+"{"+n+"}":""}function wa(t){var e=zn(t);return function(n,s,i,o){for(var r="",a=0;a<e;a++)r+=t[a](n,s,i,o)||"";return r}}function Ta(t){return function(e){e.root||(e=e.return)&&t(e)}}function Sa(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Ca=function(e,n,s){for(var i=0,o=0;i=o,o=ct(),i===38&&o===12&&(n[s]=1),!ie(o);)Z();return fe(e,q)},Pa=function(e,n){var s=-1,i=44;do switch(ie(i)){case 0:i===38&&ct()===12&&(n[s]=1),e[s]+=Ca(q-1,n,s);break;case 2:e[s]+=_e(i);break;case 4:if(i===44){e[++s]=ct()===58?"&\f":"",n[s]=e[s].length;break}default:e[s]+=Fe(i)}while(i=Z());return e},_a=function(e,n){return rr(Pa(ir(e),n))},Cs=new WeakMap,Ma=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,s=e.parent,i=e.column===s.column&&e.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Cs.get(s))&&!i){Cs.set(e,!0);for(var o=[],r=_a(n,o),a=s.props,l=0,u=0;l<r.length;l++)for(var c=0;c<a.length;c++,u++)e.props[u]=o[l]?r[l].replace(/&\f/g,a[c]):a[c]+" "+r[l]}}},Aa=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function or(t,e){switch(ca(t,e)){case 5103:return A+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return A+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return A+t+De+t+U+t+t;case 6828:case 4268:return A+t+U+t+t;case 6165:return A+t+U+"flex-"+t+t;case 5187:return A+t+E(t,/(\w+).+(:[^]+)/,A+"box-$1$2"+U+"flex-$1$2")+t;case 5443:return A+t+U+"flex-item-"+E(t,/flex-|-self/,"")+t;case 4675:return A+t+U+"flex-line-pack"+E(t,/align-content|flex-|-self/,"")+t;case 5548:return A+t+U+E(t,"shrink","negative")+t;case 5292:return A+t+U+E(t,"basis","preferred-size")+t;case 6060:return A+"box-"+E(t,"-grow","")+A+t+U+E(t,"grow","positive")+t;case 4554:return A+E(t,/([^-])(transform)/g,"$1"+A+"$2")+t;case 6187:return E(E(E(t,/(zoom-|grab)/,A+"$1"),/(image-set)/,A+"$1"),t,"")+t;case 5495:case 3959:return E(t,/(image-set\([^]*)/,A+"$1$`$1");case 4968:return E(E(t,/(.+:)(flex-)?(.*)/,A+"box-pack:$3"+U+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+A+t+t;case 4095:case 3583:case 4068:case 2532:return E(t,/(.+)-inline(.+)/,A+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(lt(t)-1-e>6)switch($(t,e+1)){case 109:if($(t,e+4)!==45)break;case 102:return E(t,/(.+:)(.+)-([^]+)/,"$1"+A+"$2-$3$1"+De+($(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~pn(t,"stretch")?or(E(t,"stretch","fill-available"),e)+t:t}break;case 4949:if($(t,e+1)!==115)break;case 6444:switch($(t,lt(t)-3-(~pn(t,"!important")&&10))){case 107:return E(t,":",":"+A)+t;case 101:return E(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+A+($(t,14)===45?"inline-":"")+"box$3$1"+A+"$2$3$1"+U+"$2box$3")+t}break;case 5936:switch($(t,e+11)){case 114:return A+t+U+E(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return A+t+U+E(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return A+t+U+E(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return A+t+U+t+t}return t}var Ea=function(e,n,s,i){if(e.length>-1&&!e.return)switch(e.type){case Nn:e.return=or(e.value,e.length);break;case er:return It([Xt(e,{value:E(e.value,"@","@"+A)})],i);case Fn:if(e.length)return ha(e.props,function(o){switch(ua(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return It([Xt(e,{props:[E(o,/:(read-\w+)/,":"+De+"$1")]})],i);case"::placeholder":return It([Xt(e,{props:[E(o,/:(plac\w+)/,":"+A+"input-$1")]}),Xt(e,{props:[E(o,/:(plac\w+)/,":"+De+"$1")]}),Xt(e,{props:[E(o,/:(plac\w+)/,U+"input-$1")]})],i)}return""})}},Va=[Ea],Ra=function(e){var n=e.key;if(n==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(m){var x=m.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=e.stylisPlugins||Va,o={},r,a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),p=1;p<x.length;p++)o[x[p]]=!0;a.push(m)});var l,u=[Ma,Aa];{var c,h=[ba,Ta(function(m){c.insert(m)})],f=wa(u.concat(i,h)),d=function(x){return It(va(x),f)};l=function(x,p,v,g){c=v,d(x?x+"{"+p.styles+"}":p.styles),g&&(y.inserted[p.name]=!0)}}var y={key:n,sheet:new ia({key:n,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return y.sheet.hydrate(a),y};function Da(t){for(var e=0,n,s=0,i=t.length;i>=4;++s,i-=4)n=t.charCodeAt(s)&255|(t.charCodeAt(++s)&255)<<8|(t.charCodeAt(++s)&255)<<16|(t.charCodeAt(++s)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(s+2)&255)<<16;case 2:e^=(t.charCodeAt(s+1)&255)<<8;case 1:e^=t.charCodeAt(s)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var ka={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},La=/[A-Z]|^ms/g,Oa=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ar=function(e){return e.charCodeAt(1)===45},Ps=function(e){return e!=null&&typeof e!="boolean"},He=Sa(function(t){return ar(t)?t:t.replace(La,"-$&").toLowerCase()}),_s=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Oa,function(s,i,o){return pt={name:i,styles:o,next:pt},i})}return ka[e]!==1&&!ar(e)&&typeof n=="number"&&n!==0?n+"px":n};function ke(t,e,n){if(n==null)return"";var s=n;if(s.__emotion_styles!==void 0)return s;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return pt={name:i.name,styles:i.styles,next:pt},i.name;var o=n;if(o.styles!==void 0){var r=o.next;if(r!==void 0)for(;r!==void 0;)pt={name:r.name,styles:r.styles,next:pt},r=r.next;var a=o.styles+";";return a}return ja(t,e,n)}}var l=n;if(e==null)return l;var u=e[l];return u!==void 0?u:l}function ja(t,e,n){var s="";if(Array.isArray(n))for(var i=0;i<n.length;i++)s+=ke(t,e,n[i])+";";else for(var o in n){var r=n[o];if(typeof r!="object"){var a=r;e!=null&&e[a]!==void 0?s+=o+"{"+e[a]+"}":Ps(a)&&(s+=He(o)+":"+_s(o,a)+";")}else if(Array.isArray(r)&&typeof r[0]=="string"&&(e==null||e[r[0]]===void 0))for(var l=0;l<r.length;l++)Ps(r[l])&&(s+=He(o)+":"+_s(o,r[l])+";");else{var u=ke(t,e,r);switch(o){case"animation":case"animationName":{s+=He(o)+":"+u+";";break}default:s+=o+"{"+u+"}"}}}return s}var Ms=/label:\s*([^\s;{]+)\s*(;|$)/g,pt;function Ye(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var s=!0,i="";pt=void 0;var o=t[0];if(o==null||o.raw===void 0)s=!1,i+=ke(n,e,o);else{var r=o;i+=r[0]}for(var a=1;a<t.length;a++)if(i+=ke(n,e,t[a]),s){var l=o;i+=l[a]}Ms.lastIndex=0;for(var u="",c;(c=Ms.exec(i))!==null;)u+="-"+c[1];var h=Da(i)+u;return{name:h,styles:i,next:pt}}function lr(t,e,n){var s="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(s+=i+" ")}),s}var Ia=function(e,n,s){var i=e.key+"-"+n.name;e.registered[i]===void 0&&(e.registered[i]=n.styles)},Ba=function(e,n,s){Ia(e,n);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function As(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function Es(t,e,n){var s=[],i=lr(t,s,n);return s.length<2?n:i+e(s)}var Fa=function(e){var n=Ra(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var s=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];var h=Ye(u,n.registered,void 0);return Ba(n,h),n.key+"-"+h.name},i=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];var h=Ye(u,n.registered),f="animation-"+h.name;return As(n,{name:h.name,styles:"@keyframes "+f+"{"+h.styles+"}"}),f},o=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];var h=Ye(u,n.registered);As(n,h)},r=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return Es(n.registered,s,Na(u))};return{css:s,cx:r,injectGlobal:o,keyframes:i,hydrate:function(l){l.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:lr.bind(null,n.registered),merge:Es.bind(null,n.registered,s)}},Na=function t(e){for(var n="",s=0;s<e.length;s++){var i=e[s];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=t(i);else{o="";for(var r in i)i[r]&&r&&(o&&(o+=" "),o+=r)}break}default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},cr=Fa({key:"css"}),W=cr.cx,K=cr.css;function za(t){const{h:e,w:n,m:s,mx:i,my:o,mt:r,mr:a,mb:l,ml:u,p:c,px:h,py:f,pt:d,pr:y,pb:m,pl:x,xGap:p,yGap:v,row:g,flex:S,relative:T,absolute:_,display:C,overflow:P,...V}=t;return{spacers:{h:e,w:n,m:s,mx:i,my:o,mt:r,mr:a,mb:l,ml:u,p:c,px:h,py:f,pt:d,pr:y,pb:m,pl:x,xGap:p,yGap:v,row:g,flex:S,relative:T,absolute:_,overflow:P,...V},rest:V}}const $a=t=>K({display:t.display??"flex",flexDirection:t.row?"row":"column",height:t.h==="screen"?"100vh":t.h==="full"?"100%":t.h,width:t.w==="screen"?"100vw":t.w==="full"?"100%":t.w,margin:t.m,marginTop:t.mt??t.my,marginBottom:t.mb??t.my,marginLeft:t.ml??t.mx,marginRight:t.mr??t.mx,padding:t.p,paddingTop:t.pt??t.py,paddingBottom:t.pb??t.py,paddingLeft:t.pl??t.px,paddingRight:t.pr??t.px,gap:t.gap,columnGap:t.xGap,rowGap:t.yGap,justifyContent:t.center?"center":t.justifyContent,alignItems:t.center?"center":t.alignItems,alignSelf:t.alignSelf,borderWidth:t.borderWidth,borderBottomWidth:t.borderBottomWidth,borderColor:t.borderColor,borderRadius:t.borderRadius,zIndex:t.zIndex,overflow:t.overflow,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,flex:t.flex===!0?1:t.flex,flexWrap:t.flexWrap,flexGrow:t.flexGrow,flexShrink:t.flexShrink,flexBasis:t.flexBasis,backgroundColor:t.backgroundColor,position:t.absolute?"absolute":t.relative?"relative":"unset",...t.absoluteFill&&{position:"absolute",top:0,right:0,bottom:0,left:0}}),R=b.forwardRef(({className:t,children:e,...n},s)=>{const{spacers:i,rest:o}=za(n),r=b.useMemo(()=>$a(i),[i]);return w.jsx("div",{ref:s,className:W(r,t),...o,children:e})});R.displayName="Box";const ur=b.createContext({});function Wa(t){const e=b.useRef(null);return e.current===null&&(e.current=t()),e.current}const $n=typeof window<"u",Ua=$n?b.useLayoutEffect:b.useEffect,Wn=b.createContext(null);function Un(t,e){t.indexOf(e)===-1&&t.push(e)}function Kn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ht=(t,e,n)=>n>e?e:n<t?t:n;function yn(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}let Wt=()=>{},ft=()=>{};process.env.NODE_ENV!=="production"&&(Wt=(t,e,n)=>{!t&&typeof console<"u"&&console.warn(yn(e,n))},ft=(t,e,n)=>{if(!t)throw new Error(yn(e,n))});const dt={},hr=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function fr(t){return typeof t=="object"&&t!==null}const dr=t=>/^0[^.\s]+$/u.test(t);function Gn(t){let e;return()=>(e===void 0&&(e=t()),e)}const st=t=>t,Ka=(t,e)=>n=>e(t(n)),de=(...t)=>t.reduce(Ka),re=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Hn{constructor(){this.subscriptions=[]}add(e){return Un(this.subscriptions,e),()=>Kn(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ot=t=>t*1e3,nt=t=>t/1e3;function mr(t,e){return e?t*(1e3/e):0}const Vs=new Set;function Yn(t,e,n){t||Vs.has(e)||(console.warn(yn(e,n)),Vs.add(e))}const pr=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Ga=1e-7,Ha=12;function Ya(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=pr(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Ga&&++a<Ha);return r}function me(t,e,n,s){if(t===e&&n===s)return st;const i=o=>Ya(o,0,1,t,n);return o=>o===0||o===1?o:pr(i(o),e,s)}const gr=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,yr=t=>e=>1-t(1-e),vr=me(.33,1.53,.69,.99),Xn=yr(vr),xr=gr(Xn),br=t=>(t*=2)<1?.5*Xn(t):.5*(2-Math.pow(2,-10*(t-1))),qn=t=>1-Math.sin(Math.acos(t)),wr=yr(qn),Tr=gr(qn),Xa=me(.42,0,1,1),qa=me(0,0,.58,1),Sr=me(.42,0,.58,1),Za=t=>Array.isArray(t)&&typeof t[0]!="number",Cr=t=>Array.isArray(t)&&typeof t[0]=="number",Rs={linear:st,easeIn:Xa,easeInOut:Sr,easeOut:qa,circIn:qn,circInOut:Tr,circOut:wr,backIn:Xn,backInOut:xr,backOut:vr,anticipate:br},Ja=t=>typeof t=="string",Ds=t=>{if(Cr(t)){ft(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,s,i]=t;return me(e,n,s,i)}else if(Ja(t))return ft(Rs[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),Rs[t];return t},be=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Qa(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){r.has(c)&&(u.schedule(c),t()),c(a)}const u={schedule:(c,h=!1,f=!1)=>{const y=f&&i?n:s;return h&&r.add(c),y.has(c)||y.add(c),c},cancel:c=>{s.delete(c),r.delete(c)},process:c=>{if(a=c,i){o=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,u.process(c))}};return u}const tl=40;function Pr(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=be.reduce((g,S)=>(g[S]=Qa(o),g),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:f,render:d,postRender:y}=r,m=()=>{const g=dt.useManualTiming?i.timestamp:performance.now();n=!1,dt.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(g-i.timestamp,tl),1)),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),d.process(i),y.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(m))},x=()=>{n=!0,s=!0,i.isProcessing||t(m)};return{schedule:be.reduce((g,S)=>{const T=r[S];return g[S]=(_,C=!1,P=!1)=>(n||x(),T.schedule(_,C,P)),g},{}),cancel:g=>{for(let S=0;S<be.length;S++)r[be[S]].cancel(g)},state:i,steps:r}}const{schedule:k,cancel:gt,state:z,steps:Xe}=Pr(typeof requestAnimationFrame<"u"?requestAnimationFrame:st,!0);let Ae;function el(){Ae=void 0}const X={now:()=>(Ae===void 0&&X.set(z.isProcessing||dt.useManualTiming?z.timestamp:performance.now()),Ae),set:t=>{Ae=t,queueMicrotask(el)}},_r=t=>e=>typeof e=="string"&&e.startsWith(t),Zn=_r("--"),nl=_r("var(--"),Jn=t=>nl(t)?sl.test(t.split("/*")[0].trim()):!1,sl=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ut={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},oe={...Ut,transform:t=>ht(0,1,t)},we={...Ut,default:1},Qt=t=>Math.round(t*1e5)/1e5,Qn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function il(t){return t==null}const rl=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ts=(t,e)=>n=>!!(typeof n=="string"&&rl.test(n)&&n.startsWith(t)||e&&!il(n)&&Object.prototype.hasOwnProperty.call(n,e)),Mr=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(Qn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},ol=t=>ht(0,255,t),qe={...Ut,transform:t=>Math.round(ol(t))},St={test:ts("rgb","red"),parse:Mr("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+qe.transform(t)+", "+qe.transform(e)+", "+qe.transform(n)+", "+Qt(oe.transform(s))+")"};function al(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const vn={test:ts("#"),parse:al,transform:St.transform},pe=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),mt=pe("deg"),ut=pe("%"),M=pe("px"),ll=pe("vh"),cl=pe("vw"),ks={...ut,parse:t=>ut.parse(t)/100,transform:t=>ut.transform(t*100)},Rt={test:ts("hsl","hue"),parse:Mr("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+ut.transform(Qt(e))+", "+ut.transform(Qt(n))+", "+Qt(oe.transform(s))+")"},I={test:t=>St.test(t)||vn.test(t)||Rt.test(t),parse:t=>St.test(t)?St.parse(t):Rt.test(t)?Rt.parse(t):vn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?St.transform(t):Rt.transform(t),getAnimatableNone:t=>{const e=I.parse(t);return e.alpha=0,I.transform(e)}},ul=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hl(t){return isNaN(t)&&typeof t=="string"&&(t.match(Qn)?.length||0)+(t.match(ul)?.length||0)>0}const Ar="number",Er="color",fl="var",dl="var(",Ls="${}",ml=/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 ae(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(ml,l=>(I.test(l)?(s.color.push(o),i.push(Er),n.push(I.parse(l))):l.startsWith(dl)?(s.var.push(o),i.push(fl),n.push(l)):(s.number.push(o),i.push(Ar),n.push(parseFloat(l))),++o,Ls)).split(Ls);return{values:n,split:a,indexes:s,types:i}}function Vr(t){return ae(t).values}function Rr(t){const{split:e,types:n}=ae(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===Ar?o+=Qt(i[r]):a===Er?o+=I.transform(i[r]):o+=i[r]}return o}}const pl=t=>typeof t=="number"?0:I.test(t)?I.getAnimatableNone(t):t;function gl(t){const e=Vr(t);return Rr(t)(e.map(pl))}const yt={test:hl,parse:Vr,createTransformer:Rr,getAnimatableNone:gl};function Ze(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function yl({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Ze(l,a,t+1/3),o=Ze(l,a,t),r=Ze(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Le(t,e){return n=>n>0?e:t}const O=(t,e,n)=>t+(e-t)*n,Je=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},vl=[vn,St,Rt],xl=t=>vl.find(e=>e.test(t));function Os(t){const e=xl(t);if(Wt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===Rt&&(n=yl(n)),n}const js=(t,e)=>{const n=Os(t),s=Os(e);if(!n||!s)return Le(t,e);const i={...n};return o=>(i.red=Je(n.red,s.red,o),i.green=Je(n.green,s.green,o),i.blue=Je(n.blue,s.blue,o),i.alpha=O(n.alpha,s.alpha,o),St.transform(i))},xn=new Set(["none","hidden"]);function bl(t,e){return xn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function wl(t,e){return n=>O(t,e,n)}function es(t){return typeof t=="number"?wl:typeof t=="string"?Jn(t)?Le:I.test(t)?js:Cl:Array.isArray(t)?Dr:typeof t=="object"?I.test(t)?js:Tl:Le}function Dr(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>es(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function Tl(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=es(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function Sl(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const Cl=(t,e)=>{const n=yt.createTransformer(e),s=ae(t),i=ae(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?xn.has(t)&&!i.values.length||xn.has(e)&&!s.values.length?bl(t,e):de(Dr(Sl(s,i),i.values),n):(Wt(!0,`Complex values '${t}' and '${e}' 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"),Le(t,e))};function kr(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?O(t,e,n):es(t)(t,e)}const Pl=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>k.update(e,n),stop:()=>gt(e),now:()=>z.isProcessing?z.timestamp:X.now()}},Lr=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Oe=2e4;function ns(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Oe;)e+=n,s=t.next(e);return e>=Oe?1/0:e}function _l(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(ns(s),Oe);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:nt(i)}}const Ml=5;function Or(t,e,n){const s=Math.max(e-Ml,0);return mr(n-t(s),e-s)}const L={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},Qe=.001;function Al({duration:t=L.duration,bounce:e=L.bounce,velocity:n=L.velocity,mass:s=L.mass}){let i,o;Wt(t<=ot(L.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-e;r=ht(L.minDamping,L.maxDamping,r),t=ht(L.minDuration,L.maxDuration,nt(t)),r<1?(i=u=>{const c=u*r,h=c*t,f=c-n,d=bn(u,r),y=Math.exp(-h);return Qe-f/d*y},o=u=>{const h=u*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,y=Math.exp(-h),m=bn(Math.pow(u,2),r);return(-i(u)+Qe>0?-1:1)*((f-d)*y)/m}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-Qe+c*h},o=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Vl(i,o,a);if(t=ot(t),isNaN(l))return{stiffness:L.stiffness,damping:L.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const El=12;function Vl(t,e,n){let s=n;for(let i=1;i<El;i++)s=s-t(s)/e(s);return s}function bn(t,e){return t*Math.sqrt(1-e*e)}const Rl=["duration","bounce"],Dl=["stiffness","damping","mass"];function Is(t,e){return e.some(n=>t[n]!==void 0)}function kl(t){let e={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...t};if(!Is(t,Dl)&&Is(t,Rl))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*ht(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:L.mass,stiffness:i,damping:o}}else{const n=Al(t);e={...e,...n,mass:L.mass},e.isResolvedFromDuration=!0}return e}function je(t=L.visualDuration,e=L.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=kl({...n,velocity:-nt(n.velocity||0)}),y=f||0,m=u/(2*Math.sqrt(l*c)),x=r-o,p=nt(Math.sqrt(l/c)),v=Math.abs(x)<5;s||(s=v?L.restSpeed.granular:L.restSpeed.default),i||(i=v?L.restDelta.granular:L.restDelta.default);let g;if(m<1){const T=bn(p,m);g=_=>{const C=Math.exp(-m*p*_);return r-C*((y+m*p*x)/T*Math.sin(T*_)+x*Math.cos(T*_))}}else if(m===1)g=T=>r-Math.exp(-p*T)*(x+(y+p*x)*T);else{const T=p*Math.sqrt(m*m-1);g=_=>{const C=Math.exp(-m*p*_),P=Math.min(T*_,300);return r-C*((y+m*p*x)*Math.sinh(P)+T*x*Math.cosh(P))/T}}const S={calculatedDuration:d&&h||null,next:T=>{const _=g(T);if(d)a.done=T>=h;else{let C=T===0?y:0;m<1&&(C=T===0?ot(y):Or(g,T,_));const P=Math.abs(C)<=s,V=Math.abs(r-_)<=i;a.done=P&&V}return a.value=a.done?r:_,a},toString:()=>{const T=Math.min(ns(S),Oe),_=Lr(C=>S.next(T*C).value,T,30);return T+"ms "+_},toTransition:()=>{}};return S}je.applyToOptions=t=>{const e=_l(t,100,je);return t.ease=e.ease,t.duration=ot(e.duration),t.type="keyframes",t};function wn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=P=>a!==void 0&&P<a||l!==void 0&&P>l,y=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let m=n*e;const x=h+m,p=r===void 0?x:r(x);p!==x&&(m=p-h);const v=P=>-m*Math.exp(-P/s),g=P=>p+v(P),S=P=>{const V=v(P),F=g(P);f.done=Math.abs(V)<=u,f.value=f.done?p:F};let T,_;const C=P=>{d(f.value)&&(T=P,_=je({keyframes:[f.value,y(f.value)],velocity:Or(g,P,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:P=>{let V=!1;return!_&&T===void 0&&(V=!0,S(P),C(P)),T!==void 0&&P>=T?_.next(P-T):(!V&&S(P),f)}}}function Ll(t,e,n){const s=[],i=n||dt.mix||kr,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||st:e;a=de(l,a)}s.push(a)}return s}function Ol(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(ft(o===e.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ll(e,s,i),l=a.length,u=c=>{if(r&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const f=re(t[h],t[h+1],c);return a[h](f)};return n?c=>u(ht(t[0],t[o-1],c)):u}function jl(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=re(0,e,s);t.push(O(n,1,i))}}function Il(t){const e=[0];return jl(e,t.length-1),e}function Bl(t,e){return t.map(n=>n*e)}function Fl(t,e){return t.map(()=>e||Sr).splice(0,t.length-1)}function Dt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Za(s)?s.map(Ds):Ds(s),o={done:!1,value:e[0]},r=Bl(n&&n.length===e.length?n:Il(e),t),a=Ol(r,e,{ease:Array.isArray(i)?i:Fl(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Nl=t=>t!==null;function ss(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(Nl),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const zl={decay:wn,inertia:wn,tween:Dt,keyframes:Dt,spring:je};function jr(t){typeof t.type=="string"&&(t.type=zl[t.type])}class is{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const $l=t=>t/100;class rs extends is{constructor(e){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!==X.now()&&this.tick(X.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;jr(e);const{type:n=Dt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||Dt;process.env.NODE_ENV!=="production"&&l!==Dt&&ft(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Dt&&typeof a[0]!="number"&&(this.mixKeyframes=de($l,kr(a[0],a[1])),a=[0,100]);const u=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=ns(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:c,repeat:h,repeatType:f,repeatDelay:d,type:y,onUpdate:m,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const p=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?p<0:p>i;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let g=this.currentTime,S=s;if(h){const P=Math.min(this.currentTime,i)/a;let V=Math.floor(P),F=P%1;!F&&P>=1&&(F=1),F===1&&V--,V=Math.min(V,h+1),!!(V%2)&&(f==="reverse"?(F=1-F,d&&(F-=d/a)):f==="mirror"&&(S=r)),g=ht(0,1,F)*a}const T=v?{done:!1,value:c[0]}:S.next(g);o&&(T.value=o(T.value));let{done:_}=T;!v&&l!==null&&(_=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return C&&y!==wn&&(T.value=ss(c,this.options,x,this.speed)),m&&m(T.value),C&&this.finish(),T}then(e,n){return this.finished.then(e,n)}get duration(){return nt(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+nt(e)}get time(){return nt(this.currentTime)}set time(e){e=ot(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(X.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=nt(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Pl,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),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(X.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(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Wl(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Ct=t=>t*180/Math.PI,Tn=t=>{const e=Ct(Math.atan2(t[1],t[0]));return Sn(e)},Ul={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Tn,rotateZ:Tn,skewX:t=>Ct(Math.atan(t[1])),skewY:t=>Ct(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Sn=t=>(t=t%360,t<0&&(t+=360),t),Bs=Tn,Fs=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Ns=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Kl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Fs,scaleY:Ns,scale:t=>(Fs(t)+Ns(t))/2,rotateX:t=>Sn(Ct(Math.atan2(t[6],t[5]))),rotateY:t=>Sn(Ct(Math.atan2(-t[2],t[0]))),rotateZ:Bs,rotate:Bs,skewX:t=>Ct(Math.atan(t[4])),skewY:t=>Ct(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Cn(t){return t.includes("scale")?1:0}function Pn(t,e){if(!t||t==="none")return Cn(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Kl,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Ul,i=a}if(!i)return Cn(e);const o=s[e],r=i[1].split(",").map(Hl);return typeof o=="function"?o(r):r[o]}const Gl=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Pn(n,e)};function Hl(t){return parseFloat(t.trim())}const Kt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gt=new Set(Kt),zs=t=>t===Ut||t===M,Yl=new Set(["x","y","z"]),Xl=Kt.filter(t=>!Yl.has(t));function ql(t){const e=[];return Xl.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const _t={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Pn(e,"x"),y:(t,{transform:e})=>Pn(e,"y")};_t.translateX=_t.x;_t.translateY=_t.y;const Mt=new Set;let _n=!1,Mn=!1,An=!1;function Ir(){if(Mn){const t=Array.from(Mt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=ql(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Mn=!1,_n=!1,Mt.forEach(t=>t.complete(An)),Mt.clear()}function Br(){Mt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Mn=!0)})}function Zl(){An=!0,Br(),Ir(),An=!1}class os{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Mt.add(this),_n||(_n=!0,k.read(Br),k.resolveKeyframes(Ir))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}Wl(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Mt.delete(this)}cancel(){this.state==="scheduled"&&(Mt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Jl=t=>t.startsWith("--");function Ql(t,e,n){Jl(e)?t.style.setProperty(e,n):t.style[e]=n}const tc=Gn(()=>window.ScrollTimeline!==void 0),ec={};function nc(t,e){const n=Gn(t);return()=>ec[e]??n()}const Fr=nc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Jt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,$s={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Jt([0,.65,.55,1]),circOut:Jt([.55,0,1,.45]),backIn:Jt([.31,.01,.66,-.59]),backOut:Jt([.33,1.53,.69,.99])};function Nr(t,e){if(t)return typeof t=="function"?Fr()?Lr(t,e):"ease-out":Cr(t)?Jt(t):Array.isArray(t)?t.map(n=>Nr(n,e)||$s.easeOut):$s[t]}function sc(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[e]:n};l&&(c.offset=l);const h=Nr(a,i);Array.isArray(h)&&(c.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(c,f)}function zr(t){return typeof t=="function"&&"applyToOptions"in t}function ic({type:t,...e}){return zr(t)&&Fr()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class rc extends is{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,ft(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=ic(e);this.animation=sc(n,s,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=ss(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):Ql(n,s,c),this.animation.cancel()}l?.(),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:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return nt(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+nt(e)}get time(){return nt(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=ot(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&tc()?(this.animation.timeline=e,st):n(this)}}const $r={anticipate:br,backInOut:xr,circInOut:Tr};function oc(t){return t in $r}function ac(t){typeof t.ease=="string"&&oc(t.ease)&&(t.ease=$r[t.ease])}const Ws=10;class lc extends rc{constructor(e){ac(e),jr(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new rs({...r,autoplay:!1}),l=ot(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Ws).value,a.sample(l).value,Ws),a.stop()}}const Us=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(yt.test(t)||t==="0")&&!t.startsWith("url("));function cc(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function uc(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Us(i,e),a=Us(o,e);return Wt(r===a,`You are trying to animate ${e} from "${i}" to "${o}". "${r?o:i}" is not an animatable value.`,"value-not-animatable"),!r||!a?!1:cc(t)||(n==="spring"||zr(n))&&s}function En(t){t.duration=0,t.type="keyframes"}const hc=new Set(["opacity","clipPath","filter","transform"]),fc=Gn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function dc(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return fc()&&n&&hc.has(n)&&(n!=="transform"||!u)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const mc=40;class pc extends is{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:u,element:c,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=X.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:l,motionValue:u,element:c,...h},d=c?.KeyframeResolver||os;this.keyframeResolver=new d(a,(y,m,x)=>this.onKeyframesResolved(y,m,f,!x),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:u,onUpdate:c}=s;this.resolvedAt=X.now(),uc(e,o,r,a)||((dt.instantAnimations||!l)&&c?.(ss(e,s,n)),e[0]=e[e.length-1],En(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>mc?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!u&&dc(f)?new lc({...f,element:f.motionValue.owner.current}):new rs(f);d.finished.then(()=>this.notifyFinished()).catch(st),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Zl()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const gc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yc(t){const e=gc.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}const vc=4;function Wr(t,e,n=1){ft(n<=vc,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[s,i]=yc(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return hr(r)?parseFloat(r):r}return Jn(i)?Wr(i,e,n+1):i}function as(t,e){return t?.[e]??t?.default??t}const Ur=new Set(["width","height","top","left","right","bottom",...Kt]),xc={test:t=>t==="auto",parse:t=>t},Kr=t=>e=>e.test(t),Gr=[Ut,M,ut,mt,cl,ll,xc],Ks=t=>Gr.find(Kr(t));function bc(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||dr(t):!0}const wc=new Set(["brightness","contrast","saturate","opacity"]);function Tc(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Qn)||[];if(!s)return t;const i=n.replace(s,"");let o=wc.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Sc=/\b([a-z-]*)\(.*?\)/gu,Vn={...yt,getAnimatableNone:t=>{const e=t.match(Sc);return e?e.map(Tc).join(" "):t}},Gs={...Ut,transform:Math.round},Cc={rotate:mt,rotateX:mt,rotateY:mt,rotateZ:mt,scale:we,scaleX:we,scaleY:we,scaleZ:we,skew:mt,skewX:mt,skewY:mt,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:oe,originX:ks,originY:ks,originZ:M},ls={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,radius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,top:M,right:M,bottom:M,left:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,backgroundPositionX:M,backgroundPositionY:M,...Cc,zIndex:Gs,fillOpacity:oe,strokeOpacity:oe,numOctaves:Gs},Pc={...ls,color:I,backgroundColor:I,outlineColor:I,fill:I,stroke:I,borderColor:I,borderTopColor:I,borderRightColor:I,borderBottomColor:I,borderLeftColor:I,filter:Vn,WebkitFilter:Vn},Hr=t=>Pc[t];function Yr(t,e){let n=Hr(t);return n!==Vn&&(n=yt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const _c=new Set(["auto","none","0"]);function Mc(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!_c.has(o)&&ae(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Yr(n,i)}class Ac extends os{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),Jn(u))){const c=Wr(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Ur.has(s)||e.length!==2)return;const[i,o]=e,r=Ks(i),a=Ks(o);if(r!==a)if(zs(r)&&zs(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else _t[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||bc(e[i]))&&s.push(i);s.length&&Mc(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=_t[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=_t[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Ec(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const Xr=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Vc(t){return fr(t)&&"offsetHeight"in t}const Hs=30,Rc=t=>!isNaN(parseFloat(t));class Dc{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=X.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=X.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Rc(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Yn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Hn);const s=this.events[e].add(n);return e==="change"?()=>{s(),k.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=X.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Hs)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Hs);return mr(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(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 Nt(t,e){return new Dc(t,e)}const{schedule:cs}=Pr(queueMicrotask,!1),rt={x:!1,y:!1};function qr(){return rt.x||rt.y}function kc(t){return t==="x"||t==="y"?rt[t]?null:(rt[t]=!0,()=>{rt[t]=!1}):rt.x||rt.y?null:(rt.x=rt.y=!0,()=>{rt.x=rt.y=!1})}function Zr(t,e){const n=Ec(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Ys(t){return!(t.pointerType==="touch"||qr())}function Lc(t,e,n={}){const[s,i,o]=Zr(t,n),r=a=>{if(!Ys(a))return;const{target:l}=a,u=e(l,a);if(typeof u!="function"||!l)return;const c=h=>{Ys(h)&&(u(h),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const Jr=(t,e)=>e?t===e?!0:Jr(t,e.parentElement):!1,us=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Oc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jc(t){return Oc.has(t.tagName)||t.tabIndex!==-1}const Ee=new WeakSet;function Xs(t){return e=>{e.key==="Enter"&&t(e)}}function tn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Ic=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Xs(()=>{if(Ee.has(n))return;tn(n,"down");const i=Xs(()=>{tn(n,"up")}),o=()=>tn(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function qs(t){return us(t)&&!qr()}function Bc(t,e,n={}){const[s,i,o]=Zr(t,n),r=a=>{const l=a.currentTarget;if(!qs(a))return;Ee.add(l);const u=e(l,a),c=(d,y)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Ee.has(l)&&Ee.delete(l),qs(d)&&typeof u=="function"&&u(d,{success:y})},h=d=>{c(d,l===window||l===document||n.useGlobalTarget||Jr(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),Vc(a)&&(a.addEventListener("focus",u=>Ic(u,i)),!jc(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Qr(t){return fr(t)&&"ownerSVGElement"in t}function Fc(t){return Qr(t)&&t.tagName==="svg"}const G=t=>!!(t&&t.getVelocity),Nc=[...Gr,I,yt],zc=t=>Nc.find(Kr(t)),to=b.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function $c(t=!0){const e=b.useContext(Wn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=b.useId();b.useEffect(()=>{if(t)return i(o)},[t]);const r=b.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const eo=b.createContext({strict:!1}),Zs={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"]},zt={};for(const t in Zs)zt[t]={isEnabled:e=>Zs[t].some(n=>!!e[n])};function Wc(t){for(const e in t)zt[e]={...zt[e],...t[e]}}const Uc=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 Ie(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Uc.has(t)}let no=t=>!Ie(t);function Kc(t){typeof t=="function"&&(no=e=>e.startsWith("on")?!Ie(e):t(e))}try{Kc(require("@emotion/is-prop-valid").default)}catch{}function Gc(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(no(i)||n===!0&&Ie(i)||!e&&!Ie(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const $e=b.createContext({});function We(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function le(t){return typeof t=="string"||Array.isArray(t)}const hs=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],fs=["initial",...hs];function Ue(t){return We(t.animate)||fs.some(e=>le(t[e]))}function so(t){return!!(Ue(t)||t.variants)}function Hc(t,e){if(Ue(t)){const{initial:n,animate:s}=t;return{initial:n===!1||le(n)?n:void 0,animate:le(s)?s:void 0}}return t.inherit!==!1?e:{}}function Yc(t){const{initial:e,animate:n}=Hc(t,b.useContext($e));return b.useMemo(()=>({initial:e,animate:n}),[Js(e),Js(n)])}function Js(t){return Array.isArray(t)?t.join(" "):t}const ce={};function Xc(t){for(const e in t)ce[e]=t[e],Zn(e)&&(ce[e].isCSSVariable=!0)}function io(t,{layout:e,layoutId:n}){return Gt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!ce[t]||t==="opacity")}const qc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zc=Kt.length;function Jc(t,e,n){let s="",i=!0;for(let o=0;o<Zc;o++){const r=Kt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Xr(a,ls[r]);if(!l){i=!1;const c=qc[r]||r;s+=`${c}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function ds(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const u=e[l];if(Gt.has(l)){r=!0;continue}else if(Zn(l)){i[l]=u;continue}else{const c=Xr(u,ls[l]);l.startsWith("origin")?(a=!0,o[l]=c):s[l]=c}}if(e.transform||(r||n?s.transform=Jc(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;s.transformOrigin=`${l} ${u} ${c}`}}const ms=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ro(t,e,n){for(const s in e)!G(e[s])&&!io(s,n)&&(t[s]=e[s])}function Qc({transformTemplate:t},e){return b.useMemo(()=>{const n=ms();return ds(n,e,t),Object.assign({},n.vars,n.style)},[e])}function tu(t,e){const n=t.style||{},s={};return ro(s,n,t),Object.assign(s,Qc(t,e)),s}function eu(t,e){const n={},s=tu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const nu={offset:"stroke-dashoffset",array:"stroke-dasharray"},su={offset:"strokeDashoffset",array:"strokeDasharray"};function iu(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?nu:su;t[o.offset]=M.transform(-s);const r=M.transform(e),a=M.transform(n);t[o.array]=`${r} ${a}`}function oo(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},l,u,c){if(ds(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&iu(h,i,o,r,!1)}const ao=()=>({...ms(),attrs:{}}),lo=t=>typeof t=="string"&&t.toLowerCase()==="svg";function ru(t,e,n,s){const i=b.useMemo(()=>{const o=ao();return oo(o,e,lo(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};ro(o,t.style,t),i.style={...o,...i.style}}return i}const ou=["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 ps(t){return typeof t!="string"||t.includes("-")?!1:!!(ou.indexOf(t)>-1||/[A-Z]/u.test(t))}function au(t,e,n,{latestValues:s},i,o=!1){const a=(ps(t)?ru:eu)(e,s,i,t),l=Gc(e,typeof t=="string",o),u=t!==b.Fragment?{...l,...a,ref:n}:{},{children:c}=e,h=b.useMemo(()=>G(c)?c.get():c,[c]);return b.createElement(t,{...u,children:h})}function Qs(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function gs(t,e,n,s){if(typeof e=="function"){const[i,o]=Qs(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Qs(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function Ve(t){return G(t)?t.get():t}function lu({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:cu(n,s,i,t),renderState:e()}}function cu(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=Ve(o[f]);let{initial:r,animate:a}=t;const l=Ue(t),u=so(t);e&&u&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||r===!1;const h=c?a:r;if(h&&typeof h!="boolean"&&!We(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const y=gs(t,f[d]);if(y){const{transitionEnd:m,transition:x,...p}=y;for(const v in p){let g=p[v];if(Array.isArray(g)){const S=c?g.length-1:0;g=g[S]}g!==null&&(i[v]=g)}for(const v in m)i[v]=m[v]}}}return i}const co=t=>(e,n)=>{const s=b.useContext($e),i=b.useContext(Wn),o=()=>lu(t,e,s,i);return n?o():Wa(o)};function ys(t,e,n){const{style:s}=t,i={};for(const o in s)(G(s[o])||e.style&&G(e.style[o])||io(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=s[o]);return i}const uu=co({scrapeMotionValuesFromProps:ys,createRenderState:ms});function uo(t,e,n){const s=ys(t,e,n);for(const i in t)if(G(t[i])||G(e[i])){const o=Kt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}const hu=co({scrapeMotionValuesFromProps:uo,createRenderState:ao}),fu=Symbol.for("motionComponentSymbol");function kt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function du(t,e,n){return b.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):kt(n)&&(n.current=s))},[e])}const vs=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),mu="framerAppearId",ho="data-"+vs(mu),fo=b.createContext({});function pu(t,e,n,s,i){const{visualElement:o}=b.useContext($e),r=b.useContext(eo),a=b.useContext(Wn),l=b.useContext(to).reducedMotion,u=b.useRef(null);s=s||r.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,h=b.useContext(fo);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&gu(u.current,n,i,h);const f=b.useRef(!1);b.useInsertionEffect(()=>{c&&f.current&&c.update(n,a)});const d=n[ho],y=b.useRef(!!d&&!window.MotionHandoffIsComplete?.(d)&&window.MotionHasOptimisedAnimation?.(d));return Ua(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),y.current&&c.animationState&&c.animationState.animateChanges())}),b.useEffect(()=>{c&&(!y.current&&c.animationState&&c.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(d)}),y.current=!1),c.enteringChildren=void 0)}),c}function gu(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:mo(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&kt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:c,layoutScroll:l,layoutRoot:u})}function mo(t){if(t)return t.options.allowProjection!==!1?t.projection:mo(t.parent)}function en(t,{forwardMotionProps:e=!1}={},n,s){n&&Wc(n);const i=ps(t)?hu:uu;function o(a,l){let u;const c={...b.useContext(to),...a,layoutId:yu(a)},{isStatic:h}=c,f=Yc(a),d=i(a,h);if(!h&&$n){vu(c,n);const y=xu(c);u=y.MeasureLayout,f.visualElement=pu(t,d,c,s,y.ProjectionNode)}return w.jsxs($e.Provider,{value:f,children:[u&&f.visualElement?w.jsx(u,{visualElement:f.visualElement,...c}):null,au(t,a,du(d,f.visualElement,l),d,h,e)]})}o.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const r=b.forwardRef(o);return r[fu]=t,r}function yu({layoutId:t}){const e=b.useContext(ur).id;return e&&t!==void 0?e+"-"+t:t}function vu(t,e){const n=b.useContext(eo).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const s="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Wt(!1,s,"lazy-strict-mode"):ft(!1,s,"lazy-strict-mode")}}function xu(t){const{drag:e,layout:n}=zt;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function bu(t,e){if(typeof Proxy>"u")return en;const n=new Map,s=(o,r)=>en(o,r,t,e),i=(o,r)=>(process.env.NODE_ENV!=="production"&&Yn(!1,"motion() is deprecated. Use motion.create() instead."),s(o,r));return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,en(r,void 0,t,e)),n.get(r))})}function po({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function wu({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Tu(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function nn(t){return t===void 0||t===1}function Rn({scale:t,scaleX:e,scaleY:n}){return!nn(t)||!nn(e)||!nn(n)}function Tt(t){return Rn(t)||go(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function go(t){return ti(t.x)||ti(t.y)}function ti(t){return t&&t!=="0%"}function Be(t,e,n){const s=t-n,i=e*s;return n+i}function ei(t,e,n,s,i){return i!==void 0&&(t=Be(t,i,s)),Be(t,n,s)+e}function Dn(t,e=0,n=1,s,i){t.min=ei(t.min,e,n,s,i),t.max=ei(t.max,e,n,s,i)}function yo(t,{x:e,y:n}){Dn(t.x,e.translate,e.scale,e.originPoint),Dn(t.y,n.translate,n.scale,n.originPoint)}const ni=.999999999999,si=1.0000000000001;function Su(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ot(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,yo(t,r)),s&&Tt(o.latestValues)&&Ot(t,o.latestValues))}e.x<si&&e.x>ni&&(e.x=1),e.y<si&&e.y>ni&&(e.y=1)}function Lt(t,e){t.min=t.min+e,t.max=t.max+e}function ii(t,e,n,s,i=.5){const o=O(t.min,t.max,i);Dn(t,e,n,o,s)}function Ot(t,e){ii(t.x,e.x,e.scaleX,e.scale,e.originX),ii(t.y,e.y,e.scaleY,e.scale,e.originY)}function vo(t,e){return po(Tu(t.getBoundingClientRect(),e))}function Cu(t,e,n){const s=vo(t,n),{scroll:i}=e;return i&&(Lt(s.x,i.offset.x),Lt(s.y,i.offset.y)),s}const ri=()=>({translate:0,scale:1,origin:0,originPoint:0}),jt=()=>({x:ri(),y:ri()}),oi=()=>({min:0,max:0}),j=()=>({x:oi(),y:oi()}),kn={current:null},xo={current:!1};function Pu(){if(xo.current=!0,!!$n)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>kn.current=t.matches;t.addEventListener("change",e),e()}else kn.current=!1}const _u=new WeakMap;function Mu(t,e,n){for(const s in e){const i=e[s],o=n[s];if(G(i))t.addValue(s,i);else if(G(o))t.addValue(s,Nt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,Nt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const ai=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Au{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=os,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=X.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,k.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Ue(n),this.isVariantNode=so(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&G(d)&&d.set(l[f])}}mount(e){this.current=e,_u.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),xo.current||Pu(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:kn.current,process.env.NODE_ENV!=="production"&&Yn(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(),gt(this.notifyUpdate),gt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=Gt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&k.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in zt){const n=zt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):j()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<ai.length;s++){const i=ai[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Mu(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Nt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(hr(s)||dr(s))?s=parseFloat(s):!zc(s)&&yt.test(n)&&(s=Yr(e,n)),this.setBaseTarget(e,G(s)?s.get():s)),G(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=gs(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!G(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Hn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){cs.render(this.render)}}class bo extends Au{constructor(){super(...arguments),this.KeyframeResolver=Ac}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;G(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function wo(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function Eu(t){return window.getComputedStyle(t)}class Vu extends bo{constructor(){super(...arguments),this.type="html",this.renderInstance=wo}readValueFromInstance(e,n){if(Gt.has(n))return this.projection?.isProjecting?Cn(n):Gl(e,n);{const s=Eu(e),i=(Zn(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return vo(e,n)}build(e,n,s){ds(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return ys(e,n,s)}}const To=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 Ru(t,e,n,s){wo(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(To.has(i)?i:vs(i),e.attrs[i])}class Du extends bo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=j}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Gt.has(n)){const s=Hr(n);return s&&s.default||0}return n=To.has(n)?n:vs(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return uo(e,n,s)}build(e,n,s){oo(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Ru(e,n,s,i)}mount(e){this.isSVGTag=lo(e.tagName),super.mount(e)}}const ku=(t,e)=>ps(t)?new Du(e):new Vu(e,{allowProjection:t!==b.Fragment});function Bt(t,e,n){const s=t.getProps();return gs(s,e,n!==void 0?n:s.custom,t)}const Ln=t=>Array.isArray(t);function Lu(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Nt(n))}function Ou(t){return Ln(t)?t[t.length-1]||0:t}function ju(t,e){const n=Bt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Ou(o[r]);Lu(t,r,a)}}function Iu(t){return!!(G(t)&&t.add)}function On(t,e){const n=t.getValue("willChange");if(Iu(n))return n.add(e);if(!n&&dt.WillChange){const s=new dt.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function So(t){return t.props[ho]}const Bu=t=>t!==null;function Fu(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Bu),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}const Nu={type:"spring",stiffness:500,damping:25,restSpeed:10},zu=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),$u={type:"keyframes",duration:.8},Wu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Uu=(t,{keyframes:e})=>e.length>2?$u:Gt.has(t)?t.startsWith("scale")?zu(e[1]):Nu:Wu;function Ku({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const xs=(t,e,n,s={},i,o)=>r=>{const a=as(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-ot(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Ku(a)||Object.assign(c,Uu(t,c)),c.duration&&(c.duration=ot(c.duration)),c.repeatDelay&&(c.repeatDelay=ot(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(En(c),c.delay===0&&(h=!0)),(dt.instantAnimations||dt.skipAnimations)&&(h=!0,En(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=Fu(c.keyframes,a);if(f!==void 0){k.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new rs(c):new pc(c)};function Gu({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Co(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;s&&(o=s);const l=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const c in a){const h=t.getValue(c,t.latestValues[c]??null),f=a[c];if(f===void 0||u&&Gu(u,c))continue;const d={delay:n,...as(o||{},c)},y=h.get();if(y!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===y&&!d.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const p=So(t);if(p){const v=window.MotionHandoffAnimation(p,c,k);v!==null&&(d.startTime=v,m=!0)}}On(t,c),h.start(xs(c,h,f,t.shouldReduceMotion&&Ur.has(c)?{type:!1}:d,t,m));const x=h.animation;x&&l.push(x)}return r&&Promise.all(l).then(()=>{k.update(()=>{r&&ju(t,r)})}),l}function Po(t,e,n,s=0,i=1){const o=Array.from(t).sort((u,c)=>u.sortNodePosition(c)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}function jn(t,e,n={}){const s=Bt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Co(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:h}=i;return Hu(t,e,l,u,c,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function Hu(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(jn(l,e,{...r,delay:n+(typeof s=="function"?0:s)+Po(t.variantChildren,l,s,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Yu(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>jn(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=jn(t,e,n);else{const i=typeof e=="function"?Bt(t,e,n.custom):e;s=Promise.all(Co(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}function _o(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const Xu=fs.length;function Mo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Mo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Xu;n++){const s=fs[n],i=t.props[s];(le(i)||i===!1)&&(e[s]=i)}return e}const qu=[...hs].reverse(),Zu=hs.length;function Ju(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Yu(t,n,s)))}function Qu(t){let e=Ju(t),n=li(),s=!0;const i=l=>(u,c)=>{const h=Bt(t,c,l==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:d,...y}=h;u={...u,...y,...d}}return u};function o(l){e=l(t)}function r(l){const{props:u}=t,c=Mo(t.parent)||{},h=[],f=new Set;let d={},y=1/0;for(let x=0;x<Zu;x++){const p=qu[x],v=n[p],g=u[p]!==void 0?u[p]:c[p],S=le(g),T=p===l?v.isActive:null;T===!1&&(y=x);let _=g===c[p]&&g!==u[p]&&S;if(_&&s&&t.manuallyAnimateOnMount&&(_=!1),v.protectedKeys={...d},!v.isActive&&T===null||!g&&!v.prevProp||We(g)||typeof g=="boolean")continue;const C=th(v.prevProp,g);let P=C||p===l&&v.isActive&&!_&&S||x>y&&S,V=!1;const F=Array.isArray(g)?g:[g];let at=F.reduce(i(p),{});T===!1&&(at={});const{prevResolvedValues:Ht={}}=v,Yt={...Ht,...at},At=N=>{P=!0,f.has(N)&&(V=!0,f.delete(N)),v.needsAnimating[N]=!0;const J=t.getValue(N);J&&(J.liveStyle=!1)};for(const N in Yt){const J=at[N],xt=Ht[N];if(d.hasOwnProperty(N))continue;let Et=!1;Ln(J)&&Ln(xt)?Et=!_o(J,xt):Et=J!==xt,Et?J!=null?At(N):f.add(N):J!==void 0&&f.has(N)?At(N):v.protectedKeys[N]=!0}v.prevProp=g,v.prevResolvedValues=at,v.isActive&&(d={...d,...at}),s&&t.blockInitialAnimation&&(P=!1);const ye=_&&C;P&&(!ye||V)&&h.push(...F.map(N=>{const J={type:p};if(typeof N=="string"&&s&&!ye&&t.manuallyAnimateOnMount&&t.parent){const{parent:xt}=t,Et=Bt(xt,N);if(xt.enteringChildren&&Et){const{delayChildren:ta}=Et.transition||{};J.delay=Po(xt.enteringChildren,t,ta)}}return{animation:N,options:J}}))}if(f.size){const x={};if(typeof u.initial!="boolean"){const p=Bt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);p&&p.transition&&(x.transition=p.transition)}f.forEach(p=>{const v=t.getBaseTarget(p),g=t.getValue(p);g&&(g.liveStyle=!0),x[p]=v??null}),h.push({animation:x})}let m=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,m?e(h):Promise.resolve()}function a(l,u){if(n[l].isActive===u)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(l,u)),n[l].isActive=u;const c=r(l);for(const h in n)n[h].protectedKeys={};return c}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=li(),s=!0}}}function th(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!_o(e,t):!1}function bt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function li(){return{animate:bt(!0),whileInView:bt(),whileHover:bt(),whileTap:bt(),whileDrag:bt(),whileFocus:bt(),exit:bt()}}class vt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class eh extends vt{constructor(e){super(e),e.animationState||(e.animationState=Qu(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();We(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let nh=0;class sh extends vt{constructor(){super(...arguments),this.id=nh++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const ih={animation:{Feature:eh},exit:{Feature:sh}};function ue(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function ge(t){return{point:{x:t.pageX,y:t.pageY}}}const rh=t=>e=>us(e)&&t(e,ge(e));function te(t,e,n,s){return ue(t,e,rh(n),s)}const Ao=1e-4,oh=1-Ao,ah=1+Ao,Eo=.01,lh=0-Eo,ch=0+Eo;function H(t){return t.max-t.min}function uh(t,e,n){return Math.abs(t-e)<=n}function ci(t,e,n,s=.5){t.origin=s,t.originPoint=O(e.min,e.max,t.origin),t.scale=H(n)/H(e),t.translate=O(n.min,n.max,t.origin)-t.originPoint,(t.scale>=oh&&t.scale<=ah||isNaN(t.scale))&&(t.scale=1),(t.translate>=lh&&t.translate<=ch||isNaN(t.translate))&&(t.translate=0)}function ee(t,e,n,s){ci(t.x,e.x,n.x,s?s.originX:void 0),ci(t.y,e.y,n.y,s?s.originY:void 0)}function ui(t,e,n){t.min=n.min+e.min,t.max=t.min+H(e)}function hh(t,e,n){ui(t.x,e.x,n.x),ui(t.y,e.y,n.y)}function hi(t,e,n){t.min=e.min-n.min,t.max=t.min+H(e)}function ne(t,e,n){hi(t.x,e.x,n.x),hi(t.y,e.y,n.y)}function et(t){return[t("x"),t("y")]}const Vo=({current:t})=>t?t.ownerDocument.defaultView:null,fi=(t,e)=>Math.abs(t-e);function fh(t,e){const n=fi(t.x,e.x),s=fi(t.y,e.y);return Math.sqrt(n**2+s**2)}class Ro{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=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 f=rn(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,y=fh(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!y)return;const{point:m}=f,{timestamp:x}=z;this.history.push({...m,timestamp:x});const{onStart:p,onMove:v}=this.handlers;d||(p&&p(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=sn(d,this.transformPagePoint),k.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:y,onSessionEnd:m,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=rn(f.type==="pointercancel"?this.lastMoveEventInfo:sn(d,this.transformPagePoint),this.history);this.startEvent&&y&&y(f,p),m&&m(f,p)},!us(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const a=ge(e),l=sn(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=z;this.history=[{...u,timestamp:c}];const{onSessionStart:h}=n;h&&h(e,rn(l,this.history)),this.removeListeners=de(te(this.contextWindow,"pointermove",this.handlePointerMove),te(this.contextWindow,"pointerup",this.handlePointerUp),te(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),gt(this.updatePoint)}}function sn(t,e){return e?{point:e(t.point)}:t}function di(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rn({point:t},e){return{point:t,delta:di(t,Do(e)),offset:di(t,dh(e)),velocity:mh(e,.1)}}function dh(t){return t[0]}function Do(t){return t[t.length-1]}function mh(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Do(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>ot(e)));)n--;if(!s)return{x:0,y:0};const o=nt(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function ph(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?O(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?O(n,t,s.max):Math.min(t,n)),t}function mi(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function gh(t,{top:e,left:n,bottom:s,right:i}){return{x:mi(t.x,n,i),y:mi(t.y,e,s)}}function pi(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function yh(t,e){return{x:pi(t.x,e.x),y:pi(t.y,e.y)}}function vh(t,e){let n=.5;const s=H(t),i=H(e);return i>s?n=re(e.min,e.max-s,t.min):s>i&&(n=re(t.min,t.max-i,e.min)),ht(0,1,n)}function xh(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const In=.35;function bh(t=In){return t===!1?t=0:t===!0&&(t=In),{x:gi(t,"left","right"),y:gi(t,"top","bottom")}}function gi(t,e,n){return{min:yi(t,e),max:yi(t,n)}}function yi(t,e){return typeof t=="number"?t:t[e]||0}const wh=new WeakMap;class Th{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=j(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ge(h).point)},r=(h,f)=>{const{drag:d,dragPropagation:y,onDragStart:m}=this.getProps();if(d&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=kc(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),et(p=>{let v=this.getAxisMotionValue(p).get()||0;if(ut.test(v)){const{projection:g}=this.visualElement;if(g&&g.layout){const S=g.layout.layoutBox[p];S&&(v=H(S)*(parseFloat(v)/100))}}this.originPoint[p]=v}),m&&k.postRender(()=>m(h,f)),On(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:y,onDirectionLock:m,onDrag:x}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:p}=f;if(y&&this.currentDirection===null){this.currentDirection=Sh(p),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,p),this.updateAxis("y",f.point,p),this.visualElement.render(),x&&x(h,f)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>et(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Ro(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:s,contextWindow:Vo(this.visualElement)})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&k.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Te(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=ph(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&kt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=gh(s.layoutBox,e):this.constraints=!1,this.elastic=bh(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&et(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=xh(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!kt(e))return!1;const s=e.current;ft(s!==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:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Cu(s,i.root,this.visualElement.getTransformPagePoint());let r=yh(i.layout.layoutBox,o);if(n){const a=n(wu(r));this.hasMutatedConstraints=!!a,a&&(r=po(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=et(c=>{if(!Te(c,n,this.currentDirection))return;let h=l&&l[c]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,y={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return On(this.visualElement,e),s.start(xs(e,s,0,n,this.visualElement,!1))}stopAnimation(){et(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){et(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){et(n=>{const{drag:s}=this.getProps();if(!Te(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-O(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!kt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};et(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=vh({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),et(r=>{if(!Te(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(O(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;wh.set(this.visualElement,this);const e=this.visualElement.current,n=te(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();kt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),k.read(s);const r=ue(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(et(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())}));return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=In,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Te(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Sh(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Ch extends vt{constructor(e){super(e),this.removeGroupControls=st,this.removeListeners=st,this.controls=new Th(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||st}unmount(){this.removeGroupControls(),this.removeListeners()}}const vi=t=>(e,n)=>{t&&k.postRender(()=>t(e,n))};class Ph extends vt{constructor(){super(...arguments),this.removePointerDownListener=st}onPointerDown(e){this.session=new Ro(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Vo(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:vi(e),onStart:vi(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&k.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=te(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Re={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xi(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const qt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(M.test(t))t=parseFloat(t);else return t;const n=xi(t,e.target.x),s=xi(t,e.target.y);return`${n}% ${s}%`}},_h={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=yt.parse(t);if(i.length>5)return s;const o=yt.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=O(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}};let on=!1;class Mh extends b.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;Xc(Ah),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),on&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Re.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,on=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||k.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),cs.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;on=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ko(t){const[e,n]=$c(),s=b.useContext(ur);return w.jsx(Mh,{...t,layoutGroup:s,switchLayoutGroup:b.useContext(fo),isPresent:e,safeToRemove:n})}const Ah={borderRadius:{...qt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:qt,borderTopRightRadius:qt,borderBottomLeftRadius:qt,borderBottomRightRadius:qt,boxShadow:_h};function Eh(t,e,n){const s=G(t)?t:Nt(t);return s.start(xs("",s,e,n)),s.animation}const Vh=(t,e)=>t.depth-e.depth;class Rh{constructor(){this.children=[],this.isDirty=!1}add(e){Un(this.children,e),this.isDirty=!0}remove(e){Kn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Vh),this.isDirty=!1,this.children.forEach(e)}}function Dh(t,e){const n=X.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(gt(s),t(o-e))};return k.setup(s,!0),()=>gt(s)}const Lo=["TopLeft","TopRight","BottomLeft","BottomRight"],kh=Lo.length,bi=t=>typeof t=="string"?parseFloat(t):t,wi=t=>typeof t=="number"||M.test(t);function Lh(t,e,n,s,i,o){i?(t.opacity=O(0,n.opacity??1,Oh(s)),t.opacityExit=O(e.opacity??1,0,jh(s))):o&&(t.opacity=O(e.opacity??1,n.opacity??1,s));for(let r=0;r<kh;r++){const a=`border${Lo[r]}Radius`;let l=Ti(e,a),u=Ti(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||wi(l)===wi(u)?(t[a]=Math.max(O(bi(l),bi(u),s),0),(ut.test(u)||ut.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=O(e.rotate||0,n.rotate||0,s))}function Ti(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Oh=Oo(0,.5,wr),jh=Oo(.5,.95,st);function Oo(t,e,n){return s=>s<t?0:s>e?1:n(re(t,e,s))}function Si(t,e){t.min=e.min,t.max=e.max}function Q(t,e){Si(t.x,e.x),Si(t.y,e.y)}function Ci(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Pi(t,e,n,s,i){return t-=e,t=Be(t,1/n,s),i!==void 0&&(t=Be(t,1/i,s)),t}function Ih(t,e=0,n=1,s=.5,i,o=t,r=t){if(ut.test(e)&&(e=parseFloat(e),e=O(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=O(o.min,o.max,s);t===o&&(a-=e),t.min=Pi(t.min,e,n,a,i),t.max=Pi(t.max,e,n,a,i)}function _i(t,e,[n,s,i],o,r){Ih(t,e[n],e[s],e[i],e.scale,o,r)}const Bh=["x","scaleX","originX"],Fh=["y","scaleY","originY"];function Mi(t,e,n,s){_i(t.x,e,Bh,n?n.x:void 0,s?s.x:void 0),_i(t.y,e,Fh,n?n.y:void 0,s?s.y:void 0)}function Ai(t){return t.translate===0&&t.scale===1}function jo(t){return Ai(t.x)&&Ai(t.y)}function Ei(t,e){return t.min===e.min&&t.max===e.max}function Nh(t,e){return Ei(t.x,e.x)&&Ei(t.y,e.y)}function Vi(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Io(t,e){return Vi(t.x,e.x)&&Vi(t.y,e.y)}function Ri(t){return H(t.x)/H(t.y)}function Di(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class zh{constructor(){this.members=[]}add(e){Un(this.members,e),e.scheduleRender()}remove(e){if(Kn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function $h(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:y}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),y&&(s+=`skewY(${y}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const an=["","X","Y","Z"],Wh=1e3;let Uh=0;function ln(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Bo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=So(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",k,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Bo(s)}function Fo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=Uh++,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(Hh),this.nodes.forEach(Zh),this.nodes.forEach(Jh),this.nodes.forEach(Yh)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,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 l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Rh)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Hn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Qr(r)&&!Fc(r),this.instance=r;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let c,h=0;const f=()=>this.root.updateBlockedByResize=!1;k.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,c&&c(),c=Dh(f,250),Re.hasAnimatedSinceResize&&(Re.hasAnimatedSinceResize=!1,this.nodes.forEach(Oi)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||sf,{onLayoutAnimationStart:m,onLayoutAnimationComplete:x}=u.getProps(),p=!this.targetLayout||!Io(this.targetLayout,d),v=!h&&f;if(this.options.layoutRoot||this.resumeFrom||v||h&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const g={...as(y,"layout"),onPlay:m,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g),this.setAnimationOrigin(c,v)}else h||Oi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),gt(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(Qh),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Bo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ki);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Li);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(qh),this.nodes.forEach(Kh),this.nodes.forEach(Gh)):this.nodes.forEach(Li),this.clearAllSnapshots();const a=X.now();z.delta=ht(0,1e3/60,a-z.timestamp),z.timestamp=a,z.isProcessing=!0,Xe.update.process(z),Xe.preRender.process(z),Xe.render.process(z),z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Xh),this.sharedNodes.forEach(tf)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!H(this.snapshot.measuredBox.x)&&!H(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=j(),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,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!jo(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||Tt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),rf(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return j();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(of))){const{scroll:u}=this.root;u&&(Lt(a.x,u.offset.x),Lt(a.y,u.offset.y))}return a}removeElementScroll(r){const a=j();if(Q(a,r),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:h}=u;u!==this.root&&c&&h.layoutScroll&&(c.wasRoot&&Q(a,r),Lt(a.x,c.offset.x),Lt(a.y,c.offset.y))}return a}applyTransform(r,a=!1){const l=j();Q(l,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ot(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Tt(c.latestValues)&&Ot(l,c.latestValues)}return Tt(this.latestValues)&&Ot(l,this.latestValues),l}removeTransform(r){const a=j();Q(a,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Tt(u.latestValues))continue;Rn(u.latestValues)&&u.updateSnapshot();const c=j(),h=u.measurePageBox();Q(c,h),Mi(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Tt(this.latestValues)&&Mi(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.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!==z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:h}=this.options;if(!(!this.layout||!(c||h))){if(this.resolvedRelativeTargetAt=z.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=j(),this.relativeTargetOrigin=j(),ne(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),Q(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=j(),this.targetWithTransforms=j()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hh(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Q(this.target,this.layout.layoutBox),yo(this.target,this.targetDelta)):Q(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=j(),this.relativeTargetOrigin=j(),ne(this.relativeTargetOrigin,this.target,f.target),Q(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Rn(this.parent.latestValues)||go(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 r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===z.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Q(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Su(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=j());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ci(this.prevProjectionDelta.x,this.projectionDelta.x),Ci(this.prevProjectionDelta.y,this.projectionDelta.y)),ee(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Di(this.projectionDelta.x,this.prevProjectionDelta.x)||!Di(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){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(r,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=jt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=j(),d=l?l.source:void 0,y=this.layout?this.layout.source:void 0,m=d!==y,x=this.getStack(),p=!x||x.members.length<=1,v=!!(m&&!p&&this.options.crossfade===!0&&!this.path.some(nf));this.animationProgress=0;let g;this.mixTargetDelta=S=>{const T=S/1e3;ji(h.x,r.x,T),ji(h.y,r.y,T),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ne(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ef(this.relativeTarget,this.relativeTargetOrigin,f,T),g&&Nh(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=j()),Q(g,this.relativeTarget)),m&&(this.animationValues=c,Lh(c,u,this.latestValues,T,v,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(gt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=k.update(()=>{Re.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Nt(0)),this.currentAnimation=Eh(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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 r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Wh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=r;if(!(!a||!l||!u)){if(this!==r&&this.layout&&u&&No(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||j();const h=H(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=H(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}Q(a,l),Ot(a,c),ee(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new zh),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&ln("z",r,u,this.animationValues);for(let c=0;c<an.length;c++)ln(`rotate${an[c]}`,r,u,this.animationValues),ln(`skew${an[c]}`,r,u,this.animationValues);r.render();for(const c in u)r.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Ve(a?.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Ve(a?.pointerEvents)||""),this.hasProjected&&!Tt(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=$h(this.projectionDeltaWithTransform,this.treeScale,c);l&&(h=l(c,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,u.animationValues?r.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:r.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const y in ce){if(c[y]===void 0)continue;const{correct:m,applyTo:x,isCSSVariable:p}=ce[y],v=h==="none"?c[y]:m(c[y],u);if(x){const g=x.length;for(let S=0;S<g;S++)r[x[S]]=v}else p?this.options.visualElement.renderState.vars[y]=v:r[y]=v}this.options.layoutId&&(r.pointerEvents=u===this?Ve(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(ki),this.root.sharedNodes.clear()}}}function Kh(t){t.updateLayout()}function Gh(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;i==="size"?et(c=>{const h=o?e.measuredBox[c]:e.layoutBox[c],f=H(h);h.min=n[c].min,h.max=h.min+f}):No(i,e.layoutBox,n)&&et(c=>{const h=o?e.measuredBox[c]:e.layoutBox[c],f=H(n[c]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[c].max=t.relativeTarget[c].min+f)});const r=jt();ee(r,n,e.layoutBox);const a=jt();o?ee(a,t.applyTransform(s,!0),e.measuredBox):ee(a,n,e.layoutBox);const l=!jo(r);let u=!1;if(!t.resumeFrom){const c=t.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:h,layout:f}=c;if(h&&f){const d=j();ne(d,e.layoutBox,h.layoutBox);const y=j();ne(y,n,f.layoutBox),Io(d,y)||(u=!0),c.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=d,t.relativeParent=c)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Hh(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Yh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Xh(t){t.clearSnapshot()}function ki(t){t.clearMeasurements()}function Li(t){t.isLayoutDirty=!1}function qh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Oi(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Zh(t){t.resolveTargetDelta()}function Jh(t){t.calcProjection()}function Qh(t){t.resetSkewAndRotation()}function tf(t){t.removeLeadSnapshot()}function ji(t,e,n){t.translate=O(e.translate,0,n),t.scale=O(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ii(t,e,n,s){t.min=O(e.min,n.min,s),t.max=O(e.max,n.max,s)}function ef(t,e,n,s){Ii(t.x,e.x,n.x,s),Ii(t.y,e.y,n.y,s)}function nf(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const sf={duration:.45,ease:[.4,0,.1,1]},Bi=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Fi=Bi("applewebkit/")&&!Bi("chrome/")?Math.round:st;function Ni(t){t.min=Fi(t.min),t.max=Fi(t.max)}function rf(t){Ni(t.x),Ni(t.y)}function No(t,e,n){return t==="position"||t==="preserve-aspect"&&!uh(Ri(e),Ri(n),.2)}function of(t){return t!==t.root&&t.scroll?.wasRoot}const af=Fo({attachResizeListener:(t,e)=>ue(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cn={current:void 0},zo=Fo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!cn.current){const t=new af({});t.mount(window),t.setOptions({layoutScroll:!0}),cn.current=t}return cn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),lf={pan:{Feature:Ph},drag:{Feature:Ch,ProjectionNode:zo,MeasureLayout:ko}};function zi(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&k.postRender(()=>o(e,ge(e)))}class cf extends vt{mount(){const{current:e}=this.node;e&&(this.unmount=Lc(e,(n,s)=>(zi(this.node,s,"Start"),i=>zi(this.node,i,"End"))))}unmount(){}}class uf extends vt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=de(ue(this.node.current,"focus",()=>this.onFocus()),ue(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function $i(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&k.postRender(()=>o(e,ge(e)))}class hf extends vt{mount(){const{current:e}=this.node;e&&(this.unmount=Bc(e,(n,s)=>($i(this.node,s,"Start"),(i,{success:o})=>$i(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Bn=new WeakMap,un=new WeakMap,ff=t=>{const e=Bn.get(t.target);e&&e(t)},df=t=>{t.forEach(ff)};function mf({root:t,...e}){const n=t||document;un.has(n)||un.set(n,{});const s=un.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(df,{root:t,...e})),s[i]}function pf(t,e,n){const s=mf(e);return Bn.set(t,n),s.observe(t),()=>{Bn.delete(t),s.unobserve(t)}}const gf={some:0,all:1};class yf extends vt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:gf[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return pf(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(vf(e,n))&&this.startObserver()}unmount(){}}function vf({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const xf={inView:{Feature:yf},tap:{Feature:hf},focus:{Feature:uf},hover:{Feature:cf}},bf={layout:{ProjectionNode:zo,MeasureLayout:ko}},wf={...ih,...xf,...lf,...bf},$o=bu(wf,ku),Tf=t=>{let e;t.center?e="center":t.left?e="left":t.right&&(e="right");let n;return t.uppercase?n="uppercase":t.lowercase?n="lowercase":t.capitalize&&(n="capitalize"),K({marginTop:t.mt,marginBottom:t.mb,marginRight:t.mr,marginLeft:t.ml,flex:t.flex,cursor:t.cursor,wordBreak:t.wordBreak,whiteSpace:t.whiteSpace,textOverflow:t.textOverflow,textDecoration:t.decoration,textAlign:e,textTransform:n,color:t.color,opacity:t.disabled?.5:void 0,overflow:t.overflow})},Sf="_primary_13825_8",Cf="_secondary_13825_12",Pf="_tertiary_13825_16",_f="_positive_13825_20",Mf="_negative_13825_24",Af="_warning_13825_28",Ef="_accent_13825_32",Vf="_inverse_13825_36",Rf="_text_13825_111",Df="_regular_13825_117",kf="_medium_13825_121",Lf="_semibold_13825_125",Of="_bold_13825_129",Se={primary:Sf,secondary:Cf,tertiary:Pf,positive:_f,negative:Mf,warning:Af,accent:Ef,inverse:Vf,"title-1":"_title-1_13825_41","title-2":"_title-2_13825_51","title-3":"_title-3_13825_61","headline-1":"_headline-1_13825_76","headline-2":"_headline-2_13825_81","headline-3":"_headline-3_13825_86","body-1":"_body-1_13825_91","body-2":"_body-2_13825_96","caption-1":"_caption-1_13825_101","caption-2":"_caption-2_13825_106",text:Rf,regular:Df,medium:kf,semibold:Lf,bold:Of},Y=b.forwardRef((t,e)=>{const{children:n,className:s,variant:i="body-1",fontWeight:o="medium",tag:r="p",colorName:a="primary",style:l,clickOpacity:u=.5,opacityDuration:c=200,onClick:h,disabled:f,...d}=t,[y,m]=b.useState(!1),x=!!h,p=()=>x&&m(!0),v=()=>x&&m(!1),g=r,S=x?K({opacity:y?u:1,transition:`opacity ${c}ms ease`}):"";return w.jsx(g,{ref:e,...d,className:W(Se.text,Se[i],Se[o],Se[a],Tf(t),S,s),style:l,onClick:h,onMouseDown:p,onMouseUp:v,onMouseLeave:v,onTouchStart:p,onTouchEnd:v,role:x?"button":void 0,tabIndex:x?0:void 0,children:n})});Y.displayName="Text";const Wo=$o(Y);function jf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var hn={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var Rs;function cf(){return Rs||(Rs=1,(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var o="",r=0;r<arguments.length;r++){var a=arguments[r];a&&(o=s(o,i(a)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var r="";for(var a in o)e.call(o,a)&&o[a]&&(r=s(r,a));return r}function s(o,r){return r?o?o+" "+r:o+r:o}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Qe)),Qe.exports}var lf=cf();const xt=af(lf);function Be(t,e,n,i=""){if(n)return t[`${e}_${n}${i}`]}function ie(t,e,n){return Be(t,e,n,"Size")}const uf="_button_ke15b_8",hf="_button_primary_ke15b_17",ff="_button_secondary_ke15b_20",df="_button_negative_ke15b_23",mf="_button_positive_ke15b_26",pf="_button_warning_ke15b_29",gf="_button_neutral_ke15b_32",yf="_button_mdSize_ke15b_92",vf="_button_smSize_ke15b_102",xf="_button_xsSize_ke15b_112",tn={button:uf,button_primary:hf,button_secondary:ff,button_negative:df,button_positive:mf,button_warning:pf,button_neutral:gf,button_mdSize:yf,button_smSize:vf,button_xsSize:xf};function bf({attr:t,children:e,className:n,type:i="button",color:s="primary",size:o="md",...r}){const a="button";return D.jsx("button",{...t,...r,type:i,className:xt(tn[a],n,ie(tn,a,o),Be(tn,a,s)),children:e})}const Tf="_loader_1qleq_8",wf={loader:Tf},Sf=({color:t="var(--text-accent)"})=>D.jsx("span",{className:Xt(wf.loader,U({"--loader-color":t}))}),Pf=U({display:"flex",alignItems:"center",justifyContent:"center",position:"relative",borderRadius:16,height:48,padding:"0 16px",cursor:"pointer",fontSize:16,fontWeight:600,overflow:"hidden",transition:"all 0.2s ease"}),Af={zero:"var(--corner-zero)",xs:"var(--corner-xs)",sm:"var(--corner-sm)",md:"var(--corner-md)",lg:"var(--corner-lg)",xl:"var(--corner-xl)","2xl":"var(--corner-2xl)","3xl":"var(--corner-3xl)","4xl":"var(--corner-4xl)","5xl":"var(--corner-5xl)","6xl":"var(--corner-6xl)","full-round":"var(--corner-full-round)"},Cf={xs:"var(--height-button-xs)",sm:"var(--height-button-sm)",md:"var(--height-button-md)",lg:"var(--height-button-lg)"},Vf={clear:U({backgroundColor:"transparent",border:"none"}),filled:U({backgroundColor:"var(--fill-accent-primary)",color:"white",border:"none"}),outline:U({backgroundColor:"transparent",border:"1px solid var(--border-accent-primary)"})},Mf=(t,e,n,i)=>{if(i)return U({cursor:"not-allowed",opacity:.7});const s={transition:"all 0.2s ease",borderRadius:"var(--corner-lg)",border:"none",color:t==="filled"?"var(--text-inverse)":`var(--text-${e})`};switch(t){case"filled":return U({...s,backgroundColor:`var(--fill-${e}-${n})`,":hover":{backgroundColor:`var(--fill-${e}-${n}-hover)`},":active":{backgroundColor:`var(--fill-${e}-${n}-hover)`}});case"outline":return U({...s,backgroundColor:"transparent",border:`1px solid var(--border-${e}-${n})`,":hover":{backgroundColor:`var(--fill-${e}-secondary-hover)`},":active":{backgroundColor:`var(--fill-${e}-secondary-hover)`}});case"clear":return U({...s,backgroundColor:"transparent",":hover":{backgroundColor:`var(--fill-${e}-secondary-hover)`},":active":{backgroundColor:`var(--fill-${e}-secondary-hover)`}});default:return U(s)}},Df=({disabled:t,loading:e,onClick:n,wrapperClassName:i,buttonClassName:s,buttonDisabledClassName:o,textClassName:r,children:a,variant:c="filled",backgroundColor:u,textColor:l,borderColor:h,color:f="accent",borderRadius:d="lg",width:m="full",size:g="md",iconLeft:x,iconRight:p,intensity:y="primary",...v})=>{const P=T.useMemo(()=>{switch(m){case"full":return"100%";case"auto":return"auto";default:return m}},[m]),b=T.useMemo(()=>u||(c==="filled"?`var(--fill-${f}-${y})`:"transparent"),[c,t,u,f,y]),A=T.useMemo(()=>{if(l)return l;if(y==="primary"){if(f==="neutral")return"var(--text-secondary)";if(c==="filled")return"var(--text-inverse)"}return`var(--text-${f}, #111)`},[c,t,l,f,y]),S=T.useMemo(()=>h||(c==="outline"?`var(--border-${f}-${y})`:"transparent"),[c,h,f,y]),C=Xt(Pf,Mf(c,f,y,t),Vf[c],s,t?o:void 0,U({borderRadius:Af[d],backgroundColor:b,borderColor:S,color:A,width:"100%",height:Cf[g],opacity:t?.7:1})),F=T.useMemo(()=>{switch(g){case"lg":case"md":return"body-1";case"sm":case"xs":return"body-2";default:return"body-1"}},[g]);return D.jsx(Se,{className:Xt(i),w:P,children:D.jsx(wo.button,{whileTap:!t&&!e?{scale:.99,boxShadow:"inset 0 0 0 10000px rgba(0,0,0,0.1)",transition:{duration:0}}:{},className:C,disabled:t||e,onClick:n,...v,children:e?D.jsx(Sf,{color:A}):D.jsxs(Se,{row:!0,alignItems:"center",gap:8,children:[x,D.jsx(So,{children:a,color:A,variant:F,className:r}),p]})})})},Ef="_avatar_1oe2p_8",_f="_avatar_primary_1oe2p_22",Rf="_avatar_secondary_1oe2p_25",kf="_avatar_negative_1oe2p_28",Lf="_avatar_positive_1oe2p_31",Bf="_avatar_warning_1oe2p_34",Of="_avatar_lgSize_1oe2p_71",If="_avatar_mdSize_1oe2p_85",jf="_avatar_smSize_1oe2p_99",en={avatar:Ef,avatar_primary:_f,avatar_secondary:Rf,avatar_negative:kf,avatar_positive:Lf,avatar_warning:Bf,avatar_lgSize:Of,avatar_mdSize:If,avatar_smSize:jf};function Ff({attr:t,children:e,className:n,color:i="primary",size:s="md",...o}){const r="avatar";return D.jsx("div",{...t,...o,className:xt(en[r],n,ie(en,r,s),Be(en,r,i)),children:e})}const Nf=t=>J.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.15}),J.createElement("path",{d:"M16 9L10.0337 15L8 12.9548",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ks=t=>J.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("path",{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",fill:"currentColor",fillOpacity:.15}),J.createElement("path",{d:"M12 6C11.4477 6 11 6.44772 11 7V13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V7C13 6.44772 12.5523 6 12 6Z",fill:"currentColor"}),J.createElement("path",{d:"M12 15C11.4477 15 11 15.4477 11 16V17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17V16C13 15.4477 12.5523 15 12 15Z",fill:"currentColor"})),$f=t=>J.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.12}),J.createElement("path",{d:"M16 8L8 16M16 16L8 8",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})),Wf=t=>J.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"black",...t},J.createElement("path",{d:"M12 2V22M19.0711 4.92893L4.92893 19.0711M22 12H2M19.0711 19.0711L4.92893 4.92893",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Uf="_hint_prca1_8",Kf="_md_prca1_19",zf="_sm_prca1_24",Gf="_icon_prca1_29",Hf="_content_prca1_40",Yf="_title_prca1_46",Xf="_subtitle_prca1_50",qf="_disabled_prca1_55",Zf="_warning_prca1_60",Jf="_solid_prca1_60",Qf="_negative_prca1_65",td="_positive_prca1_70",ed="_accent_prca1_75",nd="_neutral_prca1_80",id="_soft_prca1_85",q={hint:Uf,md:Kf,sm:zf,icon:Gf,content:Hf,title:Yf,subtitle:Xf,disabled:qf,warning:Zf,solid:Jf,negative:Qf,positive:td,accent:ed,neutral:nd,soft:id},sd={negative:D.jsx($f,{}),positive:D.jsx(Nf,{}),accent:D.jsx(ks,{}),warning:D.jsx(ks,{}),neutral:D.jsx(Wf,{})},rd=({title:t,subtitle:e,color:n="warning",variant:i="soft",size:s="md",icon:o,disabled:r=!1,className:a,style:c})=>{const u=o||sd[n];return D.jsxs("div",{className:xt(q.hint,q[n],q[i],q[s],r&&q.disabled,a),style:c,"aria-disabled":r,children:[u&&D.jsx("span",{className:xt(q.icon,q[n]),children:u}),D.jsxs("div",{className:q.content,children:[t&&D.jsx(ne,{className:xt(q.title,ie(q,"title",s)),variant:s==="md"?"body-1":"caption-2",children:t}),e&&D.jsx(ne,{className:xt(q.subtitle,ie(q,"subtitle",s)),variant:s==="md"?"body-2":"caption-1",children:e})]})]})},od="_themeProviderScoped_lgr9z_9",ad={themeProviderScoped:od};function cd({className:t,children:e,theme:n}){return D.jsx("div",{className:xt(ad.themeProviderScoped,t),"data-theme":n,children:e})}exports.AnimatedText=So;exports.Avatar=Ff;exports.Box=Se;exports.Button=Df;exports.Hint=rd;exports.IconButton=bf;exports.Text=ne;exports.ThemeProviderScoped=cd;exports.getSizeClass=ie;exports.getStyleClass=Be;
|
|
5
|
+
*/var Wi;function If(){return Wi||(Wi=1,(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var o="",r=0;r<arguments.length;r++){var a=arguments[r];a&&(o=i(o,s(a)))}return o}function s(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var r="";for(var a in o)e.call(o,a)&&o[a]&&(r=i(r,a));return r}function i(o,r){return r?o?o+" "+r:o+r:o}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(hn)),hn.exports}var Bf=If();const Pt=jf(Bf),Ff="_rippleOverlay_s2kim_8",Nf="_ripple_s2kim_8",Ui={rippleOverlay:Ff,ripple:Nf},fn="button, a, input, label, [role='button'], [data-ripple']";function zf(t){if(typeof t.composedPath=="function")return t.composedPath();const e=[];let n=t.target;for(;n;)e.push(n),n=n.parentNode||n.host;return e.push(window),e}const bs=b.forwardRef(({color:t="rgba(0,0,0,0.18)",duration:e=1e3,radius:n="auto",className:s},i)=>{const o=b.useRef(null),[r,a]=b.useState([]),l=b.useRef([]),u=b.useRef(1),c=b.useRef(null),h=()=>{l.current.forEach(m=>clearTimeout(m)),l.current=[]},f=b.useCallback((m,x,p,v)=>{const g=p.getBoundingClientRect(),S=n==="auto"?Math.max(g.width,g.height)*2:n,T=m-v.left,_=x-v.top,C=Math.max(0,g.top-v.top),P=Math.max(0,g.left-v.left),V=Math.max(0,v.right-g.right),F=Math.max(0,v.bottom-g.bottom),Ht=window.getComputedStyle(p).borderRadius||"0px",Yt=u.current++,At={id:Yt,left:T-S/2,top:_-S/2,size:Math.ceil(S),clip:{top:Math.round(C),right:Math.round(V),bottom:Math.round(F),left:Math.round(P)},borderRadius:Ht};a(ve=>[...ve,At]);const ye=window.setTimeout(()=>{a(ve=>ve.filter(N=>N.id!==Yt))},e+80);l.current.push(ye)},[e,n]),d=b.useCallback(m=>{try{if(!o.current)return;const x=o.current,p=x.parentElement;if(!p)return;const v=zf(m);let g=null;for(const P of v)if(P instanceof Element){if(P===p)break;if(P.matches&&P.matches(fn)){g=P;break}}if(g||(g=p),g.closest&&(g.closest("[disabled]")||g.getAttribute("aria-disabled")==="true"||g.classList.contains("ripple-disabled")))return;const S=m.target;if(S&&S.closest&&(S.closest("[disabled]")||S.getAttribute?.("aria-disabled")==="true"))return;const T=x.getBoundingClientRect(),{clientX:_}=m,{clientY:C}=m;f(_,C,g,T)}catch{}},[f]),y=b.useCallback(m=>{if(!o.current||!(m.key==="Enter"||m.key===" "))return;const x=o.current,p=x.parentElement;if(!p)return;const v=document.activeElement;let g=null;if(v instanceof Element&&v.matches(fn)&&(g=v),g||(g=p),g.closest&&(g.closest("[disabled]")||g.getAttribute("aria-disabled")==="true"))return;const S=x.getBoundingClientRect(),T=g.getBoundingClientRect().left+g.getBoundingClientRect().width/2,_=g.getBoundingClientRect().top+g.getBoundingClientRect().height/2;f(T,_,g,S)},[f]);return b.useImperativeHandle(i,()=>({trigger:({center:m=!0,x,y:p}={})=>{const v=o.current;if(!v)return;const g=v.parentElement;if(!g)return;const S=v.getBoundingClientRect(),T=document.activeElement instanceof Element&&document.activeElement.matches(fn)?document.activeElement:g,_=m?T.getBoundingClientRect().left+T.getBoundingClientRect().width/2:x??S.left+S.width/2,C=m?T.getBoundingClientRect().top+T.getBoundingClientRect().height/2:p??S.top+S.height/2;f(_,C,T,S)}}),[f]),b.useEffect(()=>{const m=o.current;if(!m)return;const x=m.parentElement;if(!x)return;const p=window.getComputedStyle(x);let v=!1;return p.position==="static"&&(x.style.position="relative",v=!0,c.current=x),x.addEventListener("pointerdown",d,!0),x.addEventListener("keydown",y),()=>{x.removeEventListener("pointerdown",d,!0),x.removeEventListener("keydown",y),v&&c.current&&(c.current.style.position="",c.current=null),h()}},[d,y]),b.useEffect(()=>()=>h(),[]),w.jsx("div",{ref:o,className:`${Ui.rippleOverlay} ${s??""}`,"aria-hidden":!0,children:r.map(m=>w.jsx("span",{className:Ui.ripple,style:{left:`${m.left}px`,top:`${m.top}px`,width:`${m.size}px`,height:`${m.size}px`,backgroundColor:t,animationDuration:`${e}ms`,clipPath:`inset(${m.clip.top}px ${m.clip.right}px ${m.clip.bottom}px ${m.clip.left}px round ${m.borderRadius})`}},m.id))})});function Uo(t,e){const{current:n}=b.useRef(t!==void 0),[s,i]=b.useState(e),o=n?t:s,r=b.useCallback(a=>{n||i(a)},[n]);return[o,r]}const $f=(t,e)=>{const[n,s]=b.useState({top:0,left:0,width:0});return b.useLayoutEffect(()=>{if(!e||!t.current)return;const i=()=>{const r=t.current.getBoundingClientRect();s({top:r.bottom+window.scrollY+4,left:r.left+window.scrollX,width:r.width})};i(),window.addEventListener("resize",i),window.addEventListener("scroll",i,!0);const o=new ResizeObserver(()=>i());return o.observe(t.current),()=>{window.removeEventListener("resize",i),window.removeEventListener("scroll",i,!0),o.disconnect()}},[e,t]),n};function Ke(t,e,n,s=""){if(n)return t[`${e}_${n}${s}`]}function he(t,e,n){return Ke(t,e,n,"Size")}const Wf="_button_12z2f_8",Uf="_button_primary_12z2f_19",Kf="_button_secondary_12z2f_22",Gf="_button_negative_12z2f_25",Hf="_button_positive_12z2f_28",Yf="_button_warning_12z2f_31",Xf="_button_neutral_12z2f_34",qf="_button_mdSize_12z2f_94",Zf="_button_smSize_12z2f_104",Jf="_button_xsSize_12z2f_114",dn={button:Wf,button_primary:Uf,button_secondary:Kf,button_negative:Gf,button_positive:Hf,button_warning:Yf,button_neutral:Xf,button_mdSize:qf,button_smSize:Zf,button_xsSize:Jf};function ws({attr:t,children:e,className:n,type:s="button",color:i="primary",size:o="md",...r}){const a="button";return w.jsxs("button",{...t,...r,type:s,className:Pt(dn[a],n,he(dn,a,o),Ke(dn,a,i)),children:[w.jsx(bs,{}),e]})}const Ko=t=>D.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},D.createElement("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Qf="_overlay_1udux_8",td="_open_1udux_21",ed="_modal_1udux_25",nd="_closeButton_1udux_42",sd="_size_lg_1udux_49",id="_size_md_1udux_52",rd="_size_sm_1udux_55",Zt={overlay:Qf,open:td,modal:ed,"modal-animation":"_modal-animation_1udux_1",closeButton:nd,size_lg:sd,size_md:id,size_sm:rd},Go=b.forwardRef(({isOpen:t=!0,onClose:e,overlayClassName:n,modalClassName:s,size:i="md",closeOnBackdropClick:o=!0,closeOnEsc:r=!0,disableBodyScroll:a=!1,showAbsoluteCloseButton:l=!1,children:u},c)=>{b.useEffect(()=>{if(a&&t&&typeof window<"u"&&typeof document<"u"){const d=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=d}}},[t,a]);const h=b.useCallback(d=>{d.key==="Escape"&&e&&e()},[e]);b.useEffect(()=>{if(typeof window<"u"&&typeof document<"u"&&r&&t)return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[t,r,h]);const f=b.useCallback(d=>{d.target===d.currentTarget&&o&&e&&e()},[o,e]);return w.jsx("div",{onClick:f,className:W(Zt.overlay,{[Zt.open]:t},n),children:w.jsxs(R,{ref:c,className:W(Zt.modal,Zt[`size_${i}`],s),children:[l&&w.jsx(ws,{className:Zt.closeButton,onClick:e,color:"neutral",children:w.jsx(Ko,{})}),u]})})});Go.displayName="Modal";const od="_loader_1qleq_8",ad={loader:od},ld=({color:t="var(--text-accent)"})=>w.jsx("span",{className:W(ad.loader,K({"--loader-color":t}))}),cd=K({display:"flex",alignItems:"center",justifyContent:"center",position:"relative",borderRadius:16,height:48,padding:"0 16px",cursor:"pointer",fontSize:16,fontWeight:600,overflow:"hidden",transition:"all 0.2s ease",gap:8}),Ce={zero:"var(--corner-zero)",xs:"var(--corner-xs)",sm:"var(--corner-sm)",md:"var(--corner-md)",lg:"var(--corner-lg)",xl:"var(--corner-xl)","2xl":"var(--corner-2xl)","3xl":"var(--corner-3xl)","4xl":"var(--corner-4xl)","5xl":"var(--corner-5xl)","6xl":"var(--corner-6xl)","full-round":"var(--corner-full-round)"},ud={xs:"var(--height-button-xs)",sm:"var(--height-button-sm)",md:"var(--height-button-md)",lg:"var(--height-button-lg)"},hd={clear:K({backgroundColor:"transparent",border:"none"}),filled:K({backgroundColor:"var(--fill-accent-primary)",color:"white",border:"none"}),outline:K({backgroundColor:"transparent",border:"1px solid var(--border-accent-primary)"})},fd=(t,e,n,s)=>{if(s)return K({cursor:"not-allowed",opacity:.7});const i={transition:"all 0.2s ease",borderRadius:"var(--corner-lg)",border:"none",color:t==="filled"?"var(--text-inverse)":`var(--text-${e})`};switch(t){case"filled":return K({...i,backgroundColor:`var(--fill-${e}-${n})`,":hover":{backgroundColor:`var(--fill-${e}-${n}-hover)`},":active":{backgroundColor:`var(--fill-${e}-${n}-hover)`}});case"outline":return K({...i,backgroundColor:"transparent",border:`1px solid var(--border-${e}-${n})`,":hover":{backgroundColor:`var(--fill-${e}-secondary-hover)`},":active":{backgroundColor:`var(--fill-${e}-secondary-hover)`}});case"clear":return K({...i,backgroundColor:"transparent",":hover":{backgroundColor:`var(--fill-${e}-secondary-hover)`},":active":{backgroundColor:`var(--fill-${e}-secondary-hover)`}});default:return K(i)}},dd=({disabled:t,loading:e,onClick:n,wrapperClassName:s,buttonClassName:i,buttonDisabledClassName:o,textClassName:r,children:a,variant:l="filled",backgroundColor:u,textColor:c,textFontWeight:h,borderColor:f,color:d="accent",borderRadius:y,width:m="full",size:x="md",iconLeft:p,iconRight:v,intensity:g="primary",...S})=>{const T=b.useMemo(()=>{switch(m){case"full":return"100%";case"auto":return"auto";default:return m}},[m]),_=b.useMemo(()=>u||(l==="filled"?`var(--fill-${d}-${g})`:"transparent"),[l,t,u,d,g]),C=b.useMemo(()=>{if(c)return c;if(g==="primary"){if(d==="neutral")return"var(--text-secondary)";if(l==="filled")return"var(--text-inverse)"}return`var(--text-${d}, #111)`},[l,t,c,d,g]),P=b.useMemo(()=>f||(l==="outline"?`var(--border-${d}-${g})`:"transparent"),[l,f,d,g]),V=b.useMemo(()=>{switch(x){case"lg":return Ce.lg;case"md":case"sm":return Ce.md;case"xs":return Ce.sm}},[x]),F=W(cd,fd(l,d,g,t),hd[l],i,t?o:void 0,K({borderRadius:y?Ce[y]:V,backgroundColor:_,borderColor:P,color:C,width:"100%",height:ud[x],opacity:t?.7:1})),at=b.useMemo(()=>{switch(x){case"lg":case"md":return"body-1";case"sm":case"xs":return"body-2";default:return"body-1"}},[x]);return w.jsx(R,{className:W(s),w:T,relative:!0,overflow:"hidden",children:w.jsxs($o.button,{whileTap:!t&&!e?{scale:.99,boxShadow:"inset 0 0 0 10000px rgba(0,0,0,0.1)",transition:{duration:0}}:{},className:F,disabled:t||e,onClick:n,...S,children:[e?w.jsx(ld,{color:C}):w.jsxs(w.Fragment,{children:[p,w.jsx(Wo,{children:a,color:C,variant:at,className:r,textOverflow:"ellipsis",overflow:"hidden"}),v]}),w.jsx(bs,{})]})})},md=t=>D.createElement("svg",{viewBox:"0 0 24 24",fill:"none",...t},D.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z",fill:"currentColor"})),pd=t=>D.createElement("svg",{viewBox:"0 0 24 24",fill:"none",...t},D.createElement("path",{d:"M19 13H5v-2h14v2z",fill:"currentColor"})),gd="_checkbox_1hy9q_8",yd="_disabled_1hy9q_15",vd="_checkbox__input_1hy9q_27",xd="_checkbox__box_1hy9q_35",wt={checkbox:gd,disabled:yd,checkbox__input:vd,checkbox__box:xd,"checkbox__box--checked":"_checkbox__box--checked_1hy9q_51"},bd={sm:20,md:24},Ho=b.forwardRef(({checked:t,onChange:e,disabled:n,indeterminate:s,size:i="md",title:o,titleColor:r,subtitle:a,subtitleColor:l="secondary",name:u,value:c,required:h},f)=>{const[d,y]=b.useState(!1),m=t!==void 0,x=m?t:d,p=S=>{m||y(S.target.checked),e?.(S)},v=bd[i],g=x||s;return w.jsxs("label",{className:W(wt.checkbox,{[wt.disabled]:n}),children:[w.jsxs(R,{relative:!0,display:"inline-flex",style:{"--checkbox-size":`${v}px`,"--checkbox-size-double":`${v*2}px`},children:[w.jsx("input",{ref:f,type:"checkbox",checked:x,onChange:p,onClick:S=>S.stopPropagation(),disabled:n,name:u,value:c,required:h,className:W(wt.checkbox__input,{[wt.disabled]:n})}),w.jsx("div",{className:W(wt.checkbox__box,g&&wt["checkbox__box--checked"],{[wt.disabled]:n}),children:g&&(s?w.jsx(pd,{width:v*.75,height:v*.75}):w.jsx(md,{width:v*.75,height:v*.75}))})]}),(o||a)&&w.jsxs(R,{gap:4,children:[o&&w.jsx(Y,{colorName:r,variant:i==="sm"?"body-2":"body-1",children:o}),a&&w.jsx(Y,{variant:"body-2",colorName:l,children:a})]})]})});Ho.displayName="Checkbox";const wd=t=>D.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},D.createElement("g",{opacity:.5},D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0002 17.9999C14.4185 17.9999 18.0002 14.4182 18.0002 9.99991C18.0002 5.58163 14.4185 1.99991 10.0002 1.99991C5.58197 1.99991 2.00024 5.58163 2.00024 9.99991C2.00024 14.4182 5.58197 17.9999 10.0002 17.9999ZM6.46514 6.46446C6.85566 6.07393 7.48883 6.07393 7.87935 6.46446L9.64712 8.23222C9.84238 8.42749 10.159 8.42749 10.3542 8.23222L12.122 6.46446C12.5125 6.07393 13.1457 6.07393 13.5362 6.46446C13.9267 6.85498 13.9267 7.48814 13.5362 7.87867L11.7684 9.64644C11.5732 9.8417 11.5732 10.1583 11.7684 10.3535L13.5362 12.1213C13.9267 12.5118 13.9267 13.145 13.5362 13.5355C13.1457 13.926 12.5125 13.926 12.122 13.5355L10.3542 11.7678C10.159 11.5725 9.84238 11.5725 9.64712 11.7678L7.87935 13.5355C7.48883 13.926 6.85566 13.926 6.46514 13.5355C6.07462 13.145 6.07462 12.5118 6.46514 12.1213L8.23291 10.3535C8.42817 10.1583 8.42817 9.8417 8.23291 9.64644L6.46514 7.87867C6.07462 7.48815 6.07462 6.85498 6.46514 6.46446Z",fill:"currentColor"}))),Td="_disabled_z2lr1_20",Sd="_input_z2lr1_8",Cd="_sm_z2lr1_61",Pd="_md_z2lr1_66",_d="_error_z2lr1_70",Md="_white_z2lr1_74",Ad="_gray_z2lr1_78",it={"input-container":"_input-container_z2lr1_8",disabled:Td,input:Sd,"input-text-size_sm":"_input-text-size_sm_z2lr1_52","input-text-size_md":"_input-text-size_md_z2lr1_56",sm:Cd,md:Pd,error:_d,white:Md,gray:Ad,"clear-button":"_clear-button_z2lr1_82"};function Ki(t){return{...new Event("input",{bubbles:!0}),target:t,currentTarget:t}}const Yo=b.forwardRef((t,e)=>{const{label:n,prompt:s,error:i,errorText:o,size:r="md",prefix:a,suffix:l,background:u="white",showClearButton:c,disabled:h,value:f,defaultValue:d,...y}=t,m=t.multiline===!0,x=b.useRef(null),p=b.useRef(null),[v,g]=Uo(f!==void 0?String(f):void 0,d!==void 0?String(d):"");b.useImperativeHandle(e,()=>({focus:()=>{x.current?.focus(),p.current?.focus()},blur:()=>{x.current?.blur(),p.current?.blur()},get value(){return x.current?.value||p.current?.value}}));const S=C=>{if(g(C.target.value),m){const P=t.onChange;P?.(C)}else{const P=t.onChange;P?.(C)}};b.useEffect(()=>{m&&t.autoResize&&p.current&&(p.current.style.height="auto",p.current.style.height=`${p.current.scrollHeight}px`)},[v,m,t.autoResize]);const T=()=>{if(g(""),!m){const P=x.current;if(P){P.value="";const V=Ki(P),F=t.onChange;F?.(V)}return}const C=p.current;if(C){C.value="";const P=Ki(C),V=t.onChange;V?.(P)}},_=()=>{if(m){const{rows:F,autoResize:at,onChange:Ht,multiline:Yt,...At}=y;return w.jsx("textarea",{ref:p,rows:t.rows??3,className:W(it.input,{[it.disabled]:h}),disabled:h,maxLength:t.maxLength,...At,value:v,onChange:S})}const{onChange:C,multiline:P,...V}=y;return w.jsx("input",{...V,ref:x,className:W(it.input,it[`input-text-size_${r}`],{[it.disabled]:h}),disabled:h,type:t.type??"text",value:v,onChange:S})};return w.jsxs(R,{w:"full",gap:"var(--spacing-sm)",children:[n&&w.jsx(Y,{variant:"body-2",fontWeight:"regular",colorName:i?"negative":"tertiary",children:n}),w.jsxs(R,{row:!0,alignItems:"center",w:"full",gap:"var(--spacing-md)",className:W(it["input-container"],it[u],it[r],{[it.error]:i,[it.disabled]:h}),children:[a&&w.jsx(R,{flex:"none",children:a}),w.jsx(R,{flex:"1",children:_()}),c&&v&&!h&&w.jsx(R,{flex:"none",children:w.jsx("span",{className:it["clear-button"],onClick:T,children:w.jsx(wd,{})})}),l&&w.jsx(R,{flex:"none",children:l})]}),(s||m)&&w.jsxs(R,{row:!0,gap:10,w:"full",children:[typeof s=="string"?w.jsx(Y,{variant:"caption-1",colorName:"tertiary",children:s}):s,m&&t.maxLength&&w.jsx(Y,{right:!0,ml:"auto",flex:"none",variant:"caption-1",colorName:"tertiary",children:`${v.length}/${t.maxLength}`})]}),o&&i&&w.jsx(Y,{variant:"body-2",colorName:"negative",fontWeight:"regular",children:o})]})});Yo.displayName="Input";const Ed="_header_446to_8",Vd={header:Ed},Xo=b.forwardRef(({title:t,subtitle:e,onClose:n,w:s="full",p:i,py:o,px:r="var(--spacing-2xl)",pt:a="var(--spacing-2xl)",pb:l="var(--spacing-lg)",row:u=!0,justifyContent:c="space-between"},h)=>w.jsxs(R,{w:s,p:i,py:o,px:r,pt:a,pb:l,row:u,justifyContent:c,ref:h,className:Vd.header,children:[w.jsxs(R,{children:[w.jsx(Y,{variant:"title-3",colorName:"primary",fontWeight:"semibold",children:t}),w.jsx(Y,{variant:"body-1",colorName:"tertiary",fontWeight:"medium",children:e})]}),w.jsx(R,{children:w.jsx(ws,{onClick:n,color:"neutral",children:w.jsx(Ko,{})})})]}));Xo.displayName="ModalHeader";const Rd="_footer_1bo08_8",Dd={footer:Rd},qo=b.forwardRef(({children:t,row:e=!0,flex:n=!0,gap:s="var(--spacing-lg)",p:i="var(--spacing-2xl)",className:o,...r},a)=>w.jsx(R,{flex:n,row:e,gap:s,p:i,className:W(Dd.footer,o),ref:a,...r,children:t}));qo.displayName="ModalFooter";function Vt(t,e,n){let s=n.initialDeps??[],i;function o(){var r,a,l,u;let c;n.key&&((r=n.debug)!=null&&r.call(n))&&(c=Date.now());const h=t();if(!(h.length!==s.length||h.some((y,m)=>s[m]!==y)))return i;s=h;let d;if(n.key&&((a=n.debug)!=null&&a.call(n))&&(d=Date.now()),i=e(...h),n.key&&((l=n.debug)!=null&&l.call(n))){const y=Math.round((Date.now()-c)*100)/100,m=Math.round((Date.now()-d)*100)/100,x=m/16,p=(v,g)=>{for(v=String(v);v.length<g;)v=" "+v;return v};console.info(`%c⏱ ${p(m,5)} /${p(y,5)} ms`,`
|
|
6
|
+
font-size: .6rem;
|
|
7
|
+
font-weight: bold;
|
|
8
|
+
color: hsl(${Math.max(0,Math.min(120-120*x,120))}deg 100% 31%);`,n?.key)}return(u=n?.onChange)==null||u.call(n,i),i}return o.updateDeps=r=>{s=r},o}function Gi(t,e){if(t===void 0)throw new Error("Unexpected undefined");return t}const kd=(t,e)=>Math.abs(t-e)<1.01,Ld=(t,e,n)=>{let s;return function(...i){t.clearTimeout(s),s=t.setTimeout(()=>e.apply(this,i),n)}},Hi=t=>{const{offsetWidth:e,offsetHeight:n}=t;return{width:e,height:n}},Od=t=>t,jd=t=>{const e=Math.max(t.startIndex-t.overscan,0),n=Math.min(t.endIndex+t.overscan,t.count-1),s=[];for(let i=e;i<=n;i++)s.push(i);return s},Id=(t,e)=>{const n=t.scrollElement;if(!n)return;const s=t.targetWindow;if(!s)return;const i=r=>{const{width:a,height:l}=r;e({width:Math.round(a),height:Math.round(l)})};if(i(Hi(n)),!s.ResizeObserver)return()=>{};const o=new s.ResizeObserver(r=>{const a=()=>{const l=r[0];if(l?.borderBoxSize){const u=l.borderBoxSize[0];if(u){i({width:u.inlineSize,height:u.blockSize});return}}i(Hi(n))};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},Yi={passive:!0},Xi=typeof window>"u"?!0:"onscrollend"in window,Bd=(t,e)=>{const n=t.scrollElement;if(!n)return;const s=t.targetWindow;if(!s)return;let i=0;const o=t.options.useScrollendEvent&&Xi?()=>{}:Ld(s,()=>{e(i,!1)},t.options.isScrollingResetDelay),r=c=>()=>{const{horizontal:h,isRtl:f}=t.options;i=h?n.scrollLeft*(f&&-1||1):n.scrollTop,o(),e(i,c)},a=r(!0),l=r(!1);l(),n.addEventListener("scroll",a,Yi);const u=t.options.useScrollendEvent&Ξreturn u&&n.addEventListener("scrollend",l,Yi),()=>{n.removeEventListener("scroll",a),u&&n.removeEventListener("scrollend",l)}},Fd=(t,e,n)=>{if(e?.borderBoxSize){const s=e.borderBoxSize[0];if(s)return Math.round(s[n.options.horizontal?"inlineSize":"blockSize"])}return t[n.options.horizontal?"offsetWidth":"offsetHeight"]},Nd=(t,{adjustments:e=0,behavior:n},s)=>{var i,o;const r=t+e;(o=(i=s.scrollElement)==null?void 0:i.scrollTo)==null||o.call(i,{[s.options.horizontal?"left":"top"]:r,behavior:n})};class zd{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const s=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(o=>{const r=()=>{this._measureElement(o.target,o)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()})}));return{disconnect:()=>{var i;(i=s())==null||i.disconnect(),n=null},observe:i=>{var o;return(o=s())==null?void 0:o.observe(i,{box:"border-box"})},unobserve:i=>{var o;return(o=s())==null?void 0:o.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([s,i])=>{typeof i>"u"&&delete n[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Od,rangeExtractor:jd,onChange:()=>{},measureElement:Fd,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var s,i;(i=(s=this.options).onChange)==null||i.call(s,this,n)},this.maybeNotify=Vt(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=o,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,s)=>{const i=new Map,o=new Map;for(let r=s-1;r>=0;r--){const a=n[r];if(i.has(a.lane))continue;const l=o.get(a.lane);if(l==null||a.end>l.end?o.set(a.lane,a):a.end<l.end&&i.set(a.lane,!0),i.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((r,a)=>r.end===a.end?r.index-a.index:r.end-a.end)[0]:void 0},this.getMeasurementOptions=Vt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,s,i,o,r)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:s,scrollMargin:i,getItemKey:o,enabled:r}),{key:!1}),this.getMeasurements=Vt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:s,scrollMargin:i,getItemKey:o,enabled:r},a)=>{if(!r)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;c<n;c++){const h=o(c),f=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),d=f?f.end+this.options.gap:s+i,y=a.get(h),m=typeof y=="number"?y:this.options.estimateSize(c),x=d+m,p=f?f.lane:c%this.options.lanes;u[c]={index:c,start:d,size:m,end:x,key:h,lane:p}}return this.measurementsCache=u,u},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Vt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,s,i,o)=>this.range=n.length>0&&s>0?$d({measurements:n,outerSize:s,scrollOffset:i,lanes:o}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=Vt(()=>{let n=null,s=null;const i=this.calculateRange();return i&&(n=i.startIndex,s=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,s]},(n,s,i,o,r)=>o===null||r===null?[]:n({startIndex:o,endIndex:r,overscan:s,count:i}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const s=this.options.indexAttribute,i=n.getAttribute(s);return i?parseInt(i,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(n,s)=>{const i=this.indexFromElement(n),o=this.measurementsCache[i];if(!o)return;const r=o.key,a=this.elementsCache.get(r);a!==n&&(a&&this.observer.unobserve(a),this.observer.observe(n),this.elementsCache.set(r,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,s,this))},this.resizeItem=(n,s)=>{const i=this.measurementsCache[n];if(!i)return;const o=this.itemSizeCache.get(i.key)??i.size,r=s-o;r!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,r,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",r),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,s)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((s,i)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=Vt(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,s)=>{const i=[];for(let o=0,r=n.length;o<r;o++){const a=n[o],l=s[a];i.push(l)}return i},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const s=this.getMeasurements();if(s.length!==0)return Gi(s[Zo(0,s.length-1,i=>Gi(s[i]).start,n)])},this.getOffsetForAlignment=(n,s,i=0)=>{const o=this.getSize(),r=this.getScrollOffset();s==="auto"&&(s=n>=r+o?"end":"start"),s==="center"?n+=(i-o)/2:s==="end"&&(n-=o);const a=this.getTotalSize()+this.options.scrollMargin-o;return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,s="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const o=this.getSize(),r=this.getScrollOffset();if(s==="auto")if(i.end>=r+o-this.options.scrollPaddingEnd)s="end";else if(i.start<=r+this.options.scrollPaddingStart)s="start";else return[r,s];const a=s==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,s,i.size),s]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(n,{align:s="start",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,s),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:s="auto",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let o=0;const r=10,a=u=>{if(!this.targetWindow)return;const c=this.getOffsetForIndex(n,u);if(!c){console.warn("Failed to get offset for index:",n);return}const[h,f]=c;this._scrollToOffset(h,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{const d=this.getScrollOffset(),y=this.getOffsetForIndex(n,f);if(!y){console.warn("Failed to get offset for index:",n);return}kd(y[0],d)||l(f)})},l=u=>{this.targetWindow&&(o++,o<r?(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("Schedule retry",o,r),this.targetWindow.requestAnimationFrame(()=>a(u))):console.warn(`Failed to scroll to index ${n} after ${r} attempts.`))};a(s)},this.scrollBy=(n,{behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var n;const s=this.getMeasurements();let i;if(s.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=s[s.length-1])==null?void 0:n.end)??0;else{const o=Array(this.options.lanes).fill(null);let r=s.length-1;for(;r>=0&&o.some(a=>a===null);){const a=s[r];o[a.lane]===null&&(o[a.lane]=a.end),r--}i=Math.max(...o.filter(a=>a!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:s,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const Zo=(t,e,n,s)=>{for(;t<=e;){const i=(t+e)/2|0,o=n(i);if(o<s)t=i+1;else if(o>s)e=i-1;else return i}return t>0?t-1:0};function $d({measurements:t,outerSize:e,scrollOffset:n,lanes:s}){const i=t.length-1,o=l=>t[l].start;if(t.length<=s)return{startIndex:0,endIndex:i};let r=Zo(0,i,o,n),a=r;if(s===1)for(;a<i&&t[a].end<n+e;)a++;else if(s>1){const l=Array(s).fill(0);for(;a<i&&l.some(c=>c<n+e);){const c=t[a];l[c.lane]=c.end,a++}const u=Array(s).fill(n+e);for(;r>=0&&u.some(c=>c>=n);){const c=t[r];u[c.lane]=c.start,r--}r=Math.max(0,r-r%s),a=Math.min(i,a+(s-1-a%s))}return{startIndex:r,endIndex:a}}const qi=typeof document<"u"?D.useLayoutEffect:D.useEffect;function Wd(t){const e=D.useReducer(()=>({}),{})[1],n={...t,onChange:(i,o)=>{var r;o?Qi.flushSync(e):e(),(r=t.onChange)==null||r.call(t,i,o)}},[s]=D.useState(()=>new zd(n));return s.setOptions(n),qi(()=>s._didMount(),[]),qi(()=>s._willUpdate()),s}function Ud(t){return Wd({observeElementRect:Id,observeElementOffset:Bd,scrollToFn:Nd,...t})}const Kd="_main_bvmxs_8",Zi={main:Kd},Jo=b.forwardRef(({children:t,className:e,row:n=!1,estimatedItemHeight:s=100,virtualize:i=!1},o)=>{const r=b.useRef(null),a=b.useMemo(()=>b.Children.toArray(t),[t]),l=Ud({count:a.length,getScrollElement:()=>r.current,estimateSize:()=>s,measureElement:c=>c.getBoundingClientRect().height});return b.useImperativeHandle(o,()=>({scrollToTop:()=>l.scrollToOffset(0,{behavior:"smooth"}),scrollToBottom:()=>l.scrollToOffset(l.getTotalSize(),{behavior:"smooth"}),scrollToIndex:(c,h={})=>l.scrollToIndex(c,{behavior:"smooth",...h}),scrollToOffset:(c,h={})=>l.scrollToOffset(c,{behavior:"smooth",...h}),scrollBy:c=>{const h=l.scrollOffset||0;l.scrollToOffset(h+c,{behavior:"smooth"})},getElement:()=>r.current,getScrollOffset:()=>l.scrollOffset||0,getTotalSize:()=>l.getTotalSize()}),[l]),b.useMemo(()=>i||a.length>50,[i,a])&&a.length>0?w.jsx(R,{ref:r,className:W(Zi.main,e),w:"full",row:n,p:"var(--spacing-2xl)",children:w.jsx(R,{style:{height:`${l.getTotalSize()}px`,position:"relative"},children:l.getVirtualItems().map(c=>w.jsx(R,{"data-index":c.index,ref:l.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${c.start}px)`},children:a[c.index]},c.key))})}):w.jsx(R,{ref:r,className:W(Zi.main,e),w:"full",row:n,pl:"var(--spacing-2xl)",pr:"var(--spacing-xs)",children:w.jsx(R,{py:"var(--spacing-2xl)",pr:"var(--spacing-xl)",children:t})})});Jo.displayName="ModalMain";const Ge=Go;Ge.Header=Xo;Ge.Main=Jo;Ge.Footer=qo;const Gd="_avatar_1oe2p_8",Hd="_avatar_primary_1oe2p_22",Yd="_avatar_secondary_1oe2p_25",Xd="_avatar_negative_1oe2p_28",qd="_avatar_positive_1oe2p_31",Zd="_avatar_warning_1oe2p_34",Jd="_avatar_lgSize_1oe2p_71",Qd="_avatar_mdSize_1oe2p_85",tm="_avatar_smSize_1oe2p_99",mn={avatar:Gd,avatar_primary:Hd,avatar_secondary:Yd,avatar_negative:Xd,avatar_positive:qd,avatar_warning:Zd,avatar_lgSize:Jd,avatar_mdSize:Qd,avatar_smSize:tm};function em({attr:t,children:e,className:n,color:s="primary",size:i="md",...o}){const r="avatar";return w.jsx("div",{...t,...o,className:Pt(mn[r],n,he(mn,r,i),Ke(mn,r,s)),children:e})}const nm=t=>D.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},D.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.15}),D.createElement("path",{d:"M16 9L10.0337 15L8 12.9548",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Ji=t=>D.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},D.createElement("path",{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",fill:"currentColor",fillOpacity:.15}),D.createElement("path",{d:"M12 6C11.4477 6 11 6.44772 11 7V13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V7C13 6.44772 12.5523 6 12 6Z",fill:"currentColor"}),D.createElement("path",{d:"M12 15C11.4477 15 11 15.4477 11 16V17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17V16C13 15.4477 12.5523 15 12 15Z",fill:"currentColor"})),sm=t=>D.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},D.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.12}),D.createElement("path",{d:"M16 8L8 16M16 16L8 8",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})),im=t=>D.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"black",...t},D.createElement("path",{d:"M12 2V22M19.0711 4.92893L4.92893 19.0711M22 12H2M19.0711 19.0711L4.92893 4.92893",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),rm="_hint_prca1_8",om="_md_prca1_19",am="_sm_prca1_24",lm="_icon_prca1_29",cm="_content_prca1_40",um="_title_prca1_46",hm="_subtitle_prca1_50",fm="_disabled_prca1_55",dm="_warning_prca1_60",mm="_solid_prca1_60",pm="_negative_prca1_65",gm="_positive_prca1_70",ym="_accent_prca1_75",vm="_neutral_prca1_80",xm="_soft_prca1_85",tt={hint:rm,md:om,sm:am,icon:lm,content:cm,title:um,subtitle:hm,disabled:fm,warning:dm,solid:mm,negative:pm,positive:gm,accent:ym,neutral:vm,soft:xm},bm={negative:w.jsx(sm,{}),positive:w.jsx(nm,{}),accent:w.jsx(Ji,{}),warning:w.jsx(Ji,{}),neutral:w.jsx(im,{})},wm=({title:t,subtitle:e,color:n="warning",variant:s="soft",size:i="md",icon:o,disabled:r=!1,className:a,style:l})=>{const u=o||bm[n];return w.jsxs("div",{className:Pt(tt.hint,tt[n],tt[s],tt[i],r&&tt.disabled,a),style:l,"aria-disabled":r,children:[u&&w.jsx("span",{className:Pt(tt.icon,tt[n]),children:u}),w.jsxs("div",{className:tt.content,children:[t&&w.jsx(Y,{className:Pt(tt.title,he(tt,"title",i)),variant:i==="md"?"body-1":"caption-2",children:t}),e&&w.jsx(Y,{className:Pt(tt.subtitle,he(tt,"subtitle",i)),variant:i==="md"?"body-2":"caption-1",children:e})]})]})},Tm={primary:{bg:"var(--status-neutral-tint-low)",color:"var(--text-primary)"},accent:{bg:"var(--status-accent-tint-low)",color:"var(--text-accent)"},warning:{bg:"var(--status-warning-tint-low)",color:"var(--text-warning)"},positive:{bg:"var(--status-positive-tint-low)",color:"var(--text-positive)"},negative:{bg:"var(--status-negative-tint-low)",color:"var(--text-negative)"}},Sm={sm:28,md:32,lg:40},Qo=b.forwardRef(({label:t,color:e="primary",size:n="md",onClick:s,onDelete:i,avatar:o,icon:r,disabled:a,className:l},u)=>{const c=b.useRef(null),h=Tm[e],f=K({cursor:a?"not-allowed":s?"pointer":"default",opacity:a?.5:1,userSelect:"none",position:"relative",transition:"background-color 0.2s, opacity 0.2s","&:hover":a?void 0:{backgroundColor:h.bg}}),d=K({cursor:"pointer",opacity:.6,"&:hover":{opacity:1}});return w.jsxs(R,{ref:y=>{c.current=y,typeof u=="function"?u(y):u&&(u.current=y)},row:!0,alignItems:"center",gap:6,px:10,py:4,h:Sm[n],maxWidth:196,overflow:"hidden",borderRadius:"var(--corner-sm)",backgroundColor:h.bg,color:h.color,onClick:s,className:W(f,l),children:[s&&w.jsx(bs,{}),o&&w.jsx(R,{w:20,h:20,borderRadius:"50%",overflow:"hidden",children:o}),r&&w.jsx(R,{children:r}),w.jsx(Y,{variant:"caption-1",color:h.color,textOverflow:"ellipsis",children:t}),i&&!a&&w.jsx(Y,{className:d,colorName:e,onClick:y=>{y.stopPropagation(),i(y)},children:"×"})]})});Qo.displayName="Tag";const Cm=({children:t})=>{const[e]=b.useState(()=>document.createElement("div"));return b.useEffect(()=>{let n=document.getElementById("portal-root");return n||(n=document.createElement("div"),n.id="portal-root",document.body.appendChild(n)),n.appendChild(e),()=>{n&&n.contains(e)&&n.removeChild(e)}},[e]),Qi.createPortal(t,e)},Pm="_themeProviderScoped_kei3w_9",_m={themeProviderScoped:Pm};function Mm({className:t,children:e,theme:n}){return w.jsx("div",{className:Pt(_m.themeProviderScoped,t),"data-theme":n,children:e})}exports.AnimatedText=Wo;exports.Avatar=em;exports.Box=R;exports.Button=dd;exports.Checkbox=Ho;exports.Hint=wm;exports.IconButton=ws;exports.Input=Yo;exports.Modal=Ge;exports.Portal=Cm;exports.Tag=Qo;exports.Text=Y;exports.ThemeProviderScoped=Mm;exports.getSizeClass=he;exports.getStyleClass=Ke;exports.useControlled=Uo;exports.useDropdownPosition=$f;
|
|
6
9
|
//# sourceMappingURL=ui-kit.cjs.js.map
|