@latte-macchiat-io/latte-vanilla-components 0.0.139 → 0.0.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,15 +1,15 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ue=require("react/jsx-runtime"),T=require("react");function Ts(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const ue=Ts(Ue),J=Ts(T);function Va(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 Ea(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 Ma=function(){function t(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.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(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ea(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Va(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},t}(),G="-ms-",qe="-moz-",E="-webkit-",Ss="comm",tr="rule",er="decl",ka="@import",ws="@keyframes",Da="@layer",La=Math.abs,tn=String.fromCharCode,$a=Object.assign;function _a(t,e){return U(t,0)^45?(((e<<2^U(t,0))<<2^U(t,1))<<2^U(t,2))<<2^U(t,3):0}function Cs(t){return t.trim()}function Ba(t,e){return(t=e.exec(t))?t[0]:t}function M(t,e,n){return t.replace(e,n)}function Dn(t,e){return t.indexOf(e)}function U(t,e){return t.charCodeAt(e)|0}function de(t,e,n){return t.slice(e,n)}function lt(t){return t.length}function nr(t){return t.length}function Ee(t,e){return e.push(t),t}function Oa(t,e){return t.map(e).join("")}var en=1,Wt=1,Ps=0,tt=0,N=0,Ht="";function nn(t,e,n,r,i,s,o){return{value:t,root:e,parent:n,type:r,props:i,children:s,line:en,column:Wt,length:o,return:""}}function Jt(t,e){return $a(nn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Fa(){return N}function Ia(){return N=tt>0?U(Ht,--tt):0,Wt--,N===10&&(Wt=1,en--),N}function nt(){return N=tt<Ps?U(Ht,tt++):0,Wt++,N===10&&(Wt=1,en++),N}function dt(){return U(Ht,tt)}function Oe(){return tt}function Te(t,e){return de(Ht,t,e)}function fe(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 As(t){return en=Wt=1,Ps=lt(Ht=t),tt=0,[]}function Rs(t){return Ht="",t}function Fe(t){return Cs(Te(tt-1,Ln(t===91?t+2:t===40?t+1:t)))}function Na(t){for(;(N=dt())&&N<33;)nt();return fe(t)>2||fe(N)>3?"":" "}function ja(t,e){for(;--e&&nt()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return Te(t,Oe()+(e<6&&dt()==32&&nt()==32))}function Ln(t){for(;nt();)switch(N){case t:return tt;case 34:case 39:t!==34&&t!==39&&Ln(N);break;case 40:t===41&&Ln(t);break;case 92:nt();break}return tt}function za(t,e){for(;nt()&&t+N!==57;)if(t+N===84&&dt()===47)break;return"/*"+Te(e,tt-1)+"*"+tn(t===47?t:nt())}function Wa(t){for(;!fe(dt());)nt();return Te(t,tt)}function Ua(t){return Rs(Ie("",null,null,null,[""],t=As(t),0,[0],t))}function Ie(t,e,n,r,i,s,o,a,c){for(var l=0,u=0,d=o,f=0,h=0,p=0,g=1,v=1,y=1,x=0,b="",S=i,m=s,P=r,A=b;v;)switch(p=x,x=nt()){case 40:if(p!=108&&U(A,d-1)==58){Dn(A+=M(Fe(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=Fe(x);break;case 9:case 10:case 13:case 32:A+=Na(p);break;case 92:A+=ja(Oe()-1,7);continue;case 47:switch(dt()){case 42:case 47:Ee(qa(za(nt(),Oe()),e,n),c);break;default:A+="/"}break;case 123*g:a[l++]=lt(A)*y;case 125*g:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+u:y==-1&&(A=M(A,/\f/g,"")),h>0&&lt(A)-d&&Ee(h>32?Wr(A+";",r,n,d-1):Wr(M(A," ","")+";",r,n,d-2),c);break;case 59:A+=";";default:if(Ee(P=zr(A,e,n,l,u,i,a,b,S=[],m=[],d),s),x===123)if(u===0)Ie(A,e,P,P,S,s,d,a,m);else switch(f===99&&U(A,3)===110?100:f){case 100:case 108:case 109:case 115:Ie(t,P,P,r&&Ee(zr(t,P,P,0,0,i,a,b,i,S=[],d),m),i,m,d,a,r?S:m);break;default:Ie(A,P,P,P,[""],m,0,a,m)}}l=u=h=0,g=y=1,b=A="",d=o;break;case 58:d=1+lt(A),h=p;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&Ia()==125)continue}switch(A+=tn(x),x*g){case 38:y=u>0?1:(A+="\f",-1);break;case 44:a[l++]=(lt(A)-1)*y,y=1;break;case 64:dt()===45&&(A+=Fe(nt())),f=dt(),u=d=lt(b=A+=Wa(Oe())),x++;break;case 45:p===45&&lt(A)==2&&(g=0)}}return s}function zr(t,e,n,r,i,s,o,a,c,l,u){for(var d=i-1,f=i===0?s:[""],h=nr(f),p=0,g=0,v=0;p<r;++p)for(var y=0,x=de(t,d+1,d=La(g=o[p])),b=t;y<h;++y)(b=Cs(g>0?f[y]+" "+x:M(x,/&\f/g,f[y])))&&(c[v++]=b);return nn(t,e,n,i===0?tr:a,c,l,u)}function qa(t,e,n){return nn(t,e,n,Ss,tn(Fa()),de(t,2,-2),0)}function Wr(t,e,n,r){return nn(t,e,n,er,de(t,0,r),de(t,r+1,-1),r)}function zt(t,e){for(var n="",r=nr(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function Ga(t,e,n,r){switch(t.type){case Da:if(t.children.length)break;case ka:case er:return t.return=t.return||t.value;case Ss:return"";case ws:return t.return=t.value+"{"+zt(t.children,r)+"}";case tr:t.value=t.props.join(",")}return lt(n=zt(t.children,r))?t.return=t.value+"{"+n+"}":""}function Ha(t){var e=nr(t);return function(n,r,i,s){for(var o="",a=0;a<e;a++)o+=t[a](n,r,i,s)||"";return o}}function Ka(t){return function(e){e.root||(e=e.return)&&t(e)}}function Ya(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Xa=function(e,n,r){for(var i=0,s=0;i=s,s=dt(),i===38&&s===12&&(n[r]=1),!fe(s);)nt();return Te(e,tt)},Za=function(e,n){var r=-1,i=44;do switch(fe(i)){case 0:i===38&&dt()===12&&(n[r]=1),e[r]+=Xa(tt-1,n,r);break;case 2:e[r]+=Fe(i);break;case 4:if(i===44){e[++r]=dt()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=tn(i)}while(i=nt());return e},Ja=function(e,n){return Rs(Za(As(e),n))},Ur=new WeakMap,Qa=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Ur.get(r))&&!i){Ur.set(e,!0);for(var s=[],o=Ja(n,s),a=r.props,c=0,l=0;c<o.length;c++)for(var u=0;u<a.length;u++,l++)e.props[l]=s[c]?o[c].replace(/&\f/g,a[u]):a[u]+" "+o[c]}}},tc=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Vs(t,e){switch(_a(t,e)){case 5103:return E+"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 E+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return E+t+qe+t+G+t+t;case 6828:case 4268:return E+t+G+t+t;case 6165:return E+t+G+"flex-"+t+t;case 5187:return E+t+M(t,/(\w+).+(:[^]+)/,E+"box-$1$2"+G+"flex-$1$2")+t;case 5443:return E+t+G+"flex-item-"+M(t,/flex-|-self/,"")+t;case 4675:return E+t+G+"flex-line-pack"+M(t,/align-content|flex-|-self/,"")+t;case 5548:return E+t+G+M(t,"shrink","negative")+t;case 5292:return E+t+G+M(t,"basis","preferred-size")+t;case 6060:return E+"box-"+M(t,"-grow","")+E+t+G+M(t,"grow","positive")+t;case 4554:return E+M(t,/([^-])(transform)/g,"$1"+E+"$2")+t;case 6187:return M(M(M(t,/(zoom-|grab)/,E+"$1"),/(image-set)/,E+"$1"),t,"")+t;case 5495:case 3959:return M(t,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return M(M(t,/(.+:)(flex-)?(.*)/,E+"box-pack:$3"+G+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+E+t+t;case 4095:case 3583:case 4068:case 2532:return M(t,/(.+)-inline(.+)/,E+"$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(U(t,e+1)){case 109:if(U(t,e+4)!==45)break;case 102:return M(t,/(.+:)(.+)-([^]+)/,"$1"+E+"$2-$3$1"+qe+(U(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Dn(t,"stretch")?Vs(M(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(U(t,e+1)!==115)break;case 6444:switch(U(t,lt(t)-3-(~Dn(t,"!important")&&10))){case 107:return M(t,":",":"+E)+t;case 101:return M(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+E+(U(t,14)===45?"inline-":"")+"box$3$1"+E+"$2$3$1"+G+"$2box$3")+t}break;case 5936:switch(U(t,e+11)){case 114:return E+t+G+M(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return E+t+G+M(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return E+t+G+M(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return E+t+G+t+t}return t}var ec=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case er:e.return=Vs(e.value,e.length);break;case ws:return zt([Jt(e,{value:M(e.value,"@","@"+E)})],i);case tr:if(e.length)return Oa(e.props,function(s){switch(Ba(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zt([Jt(e,{props:[M(s,/:(read-\w+)/,":"+qe+"$1")]})],i);case"::placeholder":return zt([Jt(e,{props:[M(s,/:(plac\w+)/,":"+E+"input-$1")]}),Jt(e,{props:[M(s,/:(plac\w+)/,":"+qe+"$1")]}),Jt(e,{props:[M(s,/:(plac\w+)/,G+"input-$1")]})],i)}return""})}},nc=[ec],rc=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=e.stylisPlugins||nc,s={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)s[v[y]]=!0;a.push(g)});var c,l=[Qa,tc];{var u,d=[Ga,Ka(function(g){u.insert(g)})],f=Ha(l.concat(i,d)),h=function(v){return zt(Ua(v),f)};c=function(v,y,x,b){u=x,h(v?v+"{"+y.styles+"}":y.styles),b&&(p.inserted[y.name]=!0)}}var p={key:n,sheet:new Ma({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return p.sheet.hydrate(a),p},Me={exports:{}},k={};/** @license React v16.13.1
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ue=require("react/jsx-runtime"),S=require("react");function Ss(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const ue=Ss(Ue),J=Ss(S);function Va(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 Ea(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 Ma=function(){function t(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.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(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ea(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Va(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},t}(),G="-ms-",qe="-moz-",E="-webkit-",Ts="comm",tr="rule",er="decl",ka="@import",ws="@keyframes",Da="@layer",La=Math.abs,tn=String.fromCharCode,$a=Object.assign;function _a(t,e){return U(t,0)^45?(((e<<2^U(t,0))<<2^U(t,1))<<2^U(t,2))<<2^U(t,3):0}function Cs(t){return t.trim()}function Ba(t,e){return(t=e.exec(t))?t[0]:t}function M(t,e,n){return t.replace(e,n)}function Dn(t,e){return t.indexOf(e)}function U(t,e){return t.charCodeAt(e)|0}function de(t,e,n){return t.slice(e,n)}function lt(t){return t.length}function nr(t){return t.length}function Ee(t,e){return e.push(t),t}function Oa(t,e){return t.map(e).join("")}var en=1,Wt=1,Ps=0,tt=0,N=0,Ht="";function nn(t,e,n,r,i,s,o){return{value:t,root:e,parent:n,type:r,props:i,children:s,line:en,column:Wt,length:o,return:""}}function Jt(t,e){return $a(nn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Fa(){return N}function Ia(){return N=tt>0?U(Ht,--tt):0,Wt--,N===10&&(Wt=1,en--),N}function nt(){return N=tt<Ps?U(Ht,tt++):0,Wt++,N===10&&(Wt=1,en++),N}function dt(){return U(Ht,tt)}function Oe(){return tt}function Se(t,e){return de(Ht,t,e)}function fe(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 As(t){return en=Wt=1,Ps=lt(Ht=t),tt=0,[]}function Rs(t){return Ht="",t}function Fe(t){return Cs(Se(tt-1,Ln(t===91?t+2:t===40?t+1:t)))}function Na(t){for(;(N=dt())&&N<33;)nt();return fe(t)>2||fe(N)>3?"":" "}function ja(t,e){for(;--e&&nt()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return Se(t,Oe()+(e<6&&dt()==32&&nt()==32))}function Ln(t){for(;nt();)switch(N){case t:return tt;case 34:case 39:t!==34&&t!==39&&Ln(N);break;case 40:t===41&&Ln(t);break;case 92:nt();break}return tt}function za(t,e){for(;nt()&&t+N!==57;)if(t+N===84&&dt()===47)break;return"/*"+Se(e,tt-1)+"*"+tn(t===47?t:nt())}function Wa(t){for(;!fe(dt());)nt();return Se(t,tt)}function Ua(t){return Rs(Ie("",null,null,null,[""],t=As(t),0,[0],t))}function Ie(t,e,n,r,i,s,o,a,c){for(var l=0,u=0,d=o,f=0,h=0,p=0,g=1,v=1,y=1,x=0,b="",T=i,m=s,P=r,A=b;v;)switch(p=x,x=nt()){case 40:if(p!=108&&U(A,d-1)==58){Dn(A+=M(Fe(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=Fe(x);break;case 9:case 10:case 13:case 32:A+=Na(p);break;case 92:A+=ja(Oe()-1,7);continue;case 47:switch(dt()){case 42:case 47:Ee(qa(za(nt(),Oe()),e,n),c);break;default:A+="/"}break;case 123*g:a[l++]=lt(A)*y;case 125*g:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+u:y==-1&&(A=M(A,/\f/g,"")),h>0&&lt(A)-d&&Ee(h>32?Wr(A+";",r,n,d-1):Wr(M(A," ","")+";",r,n,d-2),c);break;case 59:A+=";";default:if(Ee(P=zr(A,e,n,l,u,i,a,b,T=[],m=[],d),s),x===123)if(u===0)Ie(A,e,P,P,T,s,d,a,m);else switch(f===99&&U(A,3)===110?100:f){case 100:case 108:case 109:case 115:Ie(t,P,P,r&&Ee(zr(t,P,P,0,0,i,a,b,i,T=[],d),m),i,m,d,a,r?T:m);break;default:Ie(A,P,P,P,[""],m,0,a,m)}}l=u=h=0,g=y=1,b=A="",d=o;break;case 58:d=1+lt(A),h=p;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&Ia()==125)continue}switch(A+=tn(x),x*g){case 38:y=u>0?1:(A+="\f",-1);break;case 44:a[l++]=(lt(A)-1)*y,y=1;break;case 64:dt()===45&&(A+=Fe(nt())),f=dt(),u=d=lt(b=A+=Wa(Oe())),x++;break;case 45:p===45&&lt(A)==2&&(g=0)}}return s}function zr(t,e,n,r,i,s,o,a,c,l,u){for(var d=i-1,f=i===0?s:[""],h=nr(f),p=0,g=0,v=0;p<r;++p)for(var y=0,x=de(t,d+1,d=La(g=o[p])),b=t;y<h;++y)(b=Cs(g>0?f[y]+" "+x:M(x,/&\f/g,f[y])))&&(c[v++]=b);return nn(t,e,n,i===0?tr:a,c,l,u)}function qa(t,e,n){return nn(t,e,n,Ts,tn(Fa()),de(t,2,-2),0)}function Wr(t,e,n,r){return nn(t,e,n,er,de(t,0,r),de(t,r+1,-1),r)}function zt(t,e){for(var n="",r=nr(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function Ga(t,e,n,r){switch(t.type){case Da:if(t.children.length)break;case ka:case er:return t.return=t.return||t.value;case Ts:return"";case ws:return t.return=t.value+"{"+zt(t.children,r)+"}";case tr:t.value=t.props.join(",")}return lt(n=zt(t.children,r))?t.return=t.value+"{"+n+"}":""}function Ha(t){var e=nr(t);return function(n,r,i,s){for(var o="",a=0;a<e;a++)o+=t[a](n,r,i,s)||"";return o}}function Ka(t){return function(e){e.root||(e=e.return)&&t(e)}}function Ya(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Xa=function(e,n,r){for(var i=0,s=0;i=s,s=dt(),i===38&&s===12&&(n[r]=1),!fe(s);)nt();return Se(e,tt)},Za=function(e,n){var r=-1,i=44;do switch(fe(i)){case 0:i===38&&dt()===12&&(n[r]=1),e[r]+=Xa(tt-1,n,r);break;case 2:e[r]+=Fe(i);break;case 4:if(i===44){e[++r]=dt()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=tn(i)}while(i=nt());return e},Ja=function(e,n){return Rs(Za(As(e),n))},Ur=new WeakMap,Qa=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Ur.get(r))&&!i){Ur.set(e,!0);for(var s=[],o=Ja(n,s),a=r.props,c=0,l=0;c<o.length;c++)for(var u=0;u<a.length;u++,l++)e.props[l]=s[c]?o[c].replace(/&\f/g,a[u]):a[u]+" "+o[c]}}},tc=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Vs(t,e){switch(_a(t,e)){case 5103:return E+"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 E+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return E+t+qe+t+G+t+t;case 6828:case 4268:return E+t+G+t+t;case 6165:return E+t+G+"flex-"+t+t;case 5187:return E+t+M(t,/(\w+).+(:[^]+)/,E+"box-$1$2"+G+"flex-$1$2")+t;case 5443:return E+t+G+"flex-item-"+M(t,/flex-|-self/,"")+t;case 4675:return E+t+G+"flex-line-pack"+M(t,/align-content|flex-|-self/,"")+t;case 5548:return E+t+G+M(t,"shrink","negative")+t;case 5292:return E+t+G+M(t,"basis","preferred-size")+t;case 6060:return E+"box-"+M(t,"-grow","")+E+t+G+M(t,"grow","positive")+t;case 4554:return E+M(t,/([^-])(transform)/g,"$1"+E+"$2")+t;case 6187:return M(M(M(t,/(zoom-|grab)/,E+"$1"),/(image-set)/,E+"$1"),t,"")+t;case 5495:case 3959:return M(t,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return M(M(t,/(.+:)(flex-)?(.*)/,E+"box-pack:$3"+G+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+E+t+t;case 4095:case 3583:case 4068:case 2532:return M(t,/(.+)-inline(.+)/,E+"$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(U(t,e+1)){case 109:if(U(t,e+4)!==45)break;case 102:return M(t,/(.+:)(.+)-([^]+)/,"$1"+E+"$2-$3$1"+qe+(U(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Dn(t,"stretch")?Vs(M(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(U(t,e+1)!==115)break;case 6444:switch(U(t,lt(t)-3-(~Dn(t,"!important")&&10))){case 107:return M(t,":",":"+E)+t;case 101:return M(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+E+(U(t,14)===45?"inline-":"")+"box$3$1"+E+"$2$3$1"+G+"$2box$3")+t}break;case 5936:switch(U(t,e+11)){case 114:return E+t+G+M(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return E+t+G+M(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return E+t+G+M(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return E+t+G+t+t}return t}var ec=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case er:e.return=Vs(e.value,e.length);break;case ws:return zt([Jt(e,{value:M(e.value,"@","@"+E)})],i);case tr:if(e.length)return Oa(e.props,function(s){switch(Ba(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zt([Jt(e,{props:[M(s,/:(read-\w+)/,":"+qe+"$1")]})],i);case"::placeholder":return zt([Jt(e,{props:[M(s,/:(plac\w+)/,":"+E+"input-$1")]}),Jt(e,{props:[M(s,/:(plac\w+)/,":"+qe+"$1")]}),Jt(e,{props:[M(s,/:(plac\w+)/,G+"input-$1")]})],i)}return""})}},nc=[ec],rc=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=e.stylisPlugins||nc,s={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)s[v[y]]=!0;a.push(g)});var c,l=[Qa,tc];{var u,d=[Ga,Ka(function(g){u.insert(g)})],f=Ha(l.concat(i,d)),h=function(v){return zt(Ua(v),f)};c=function(v,y,x,b){u=x,h(v?v+"{"+y.styles+"}":y.styles),b&&(p.inserted[y.name]=!0)}}var p={key:n,sheet:new Ma({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return p.sheet.hydrate(a),p},Me={exports:{}},k={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var qr;function ic(){if(qr)return k;qr=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function b(m){if(typeof m=="object"&&m!==null){var P=m.$$typeof;switch(P){case e:switch(m=m.type,m){case c:case l:case r:case s:case i:case d:return m;default:switch(m=m&&m.$$typeof,m){case a:case u:case p:case h:case o:return m;default:return P}}case n:return P}}}function S(m){return b(m)===l}return k.AsyncMode=c,k.ConcurrentMode=l,k.ContextConsumer=a,k.ContextProvider=o,k.Element=e,k.ForwardRef=u,k.Fragment=r,k.Lazy=p,k.Memo=h,k.Portal=n,k.Profiler=s,k.StrictMode=i,k.Suspense=d,k.isAsyncMode=function(m){return S(m)||b(m)===c},k.isConcurrentMode=S,k.isContextConsumer=function(m){return b(m)===a},k.isContextProvider=function(m){return b(m)===o},k.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},k.isForwardRef=function(m){return b(m)===u},k.isFragment=function(m){return b(m)===r},k.isLazy=function(m){return b(m)===p},k.isMemo=function(m){return b(m)===h},k.isPortal=function(m){return b(m)===n},k.isProfiler=function(m){return b(m)===s},k.isStrictMode=function(m){return b(m)===i},k.isSuspense=function(m){return b(m)===d},k.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===l||m===s||m===i||m===d||m===f||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===h||m.$$typeof===o||m.$$typeof===a||m.$$typeof===u||m.$$typeof===v||m.$$typeof===y||m.$$typeof===x||m.$$typeof===g)},k.typeOf=b,k}var D={};/** @license React v16.13.1
8
+ */var qr;function ic(){if(qr)return k;qr=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function b(m){if(typeof m=="object"&&m!==null){var P=m.$$typeof;switch(P){case e:switch(m=m.type,m){case c:case l:case r:case s:case i:case d:return m;default:switch(m=m&&m.$$typeof,m){case a:case u:case p:case h:case o:return m;default:return P}}case n:return P}}}function T(m){return b(m)===l}return k.AsyncMode=c,k.ConcurrentMode=l,k.ContextConsumer=a,k.ContextProvider=o,k.Element=e,k.ForwardRef=u,k.Fragment=r,k.Lazy=p,k.Memo=h,k.Portal=n,k.Profiler=s,k.StrictMode=i,k.Suspense=d,k.isAsyncMode=function(m){return T(m)||b(m)===c},k.isConcurrentMode=T,k.isContextConsumer=function(m){return b(m)===a},k.isContextProvider=function(m){return b(m)===o},k.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},k.isForwardRef=function(m){return b(m)===u},k.isFragment=function(m){return b(m)===r},k.isLazy=function(m){return b(m)===p},k.isMemo=function(m){return b(m)===h},k.isPortal=function(m){return b(m)===n},k.isProfiler=function(m){return b(m)===s},k.isStrictMode=function(m){return b(m)===i},k.isSuspense=function(m){return b(m)===d},k.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===l||m===s||m===i||m===d||m===f||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===h||m.$$typeof===o||m.$$typeof===a||m.$$typeof===u||m.$$typeof===v||m.$$typeof===y||m.$$typeof===x||m.$$typeof===g)},k.typeOf=b,k}var D={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var Gr;function sc(){return Gr||(Gr=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function b(R){return typeof R=="string"||typeof R=="function"||R===r||R===l||R===s||R===i||R===d||R===f||typeof R=="object"&&R!==null&&(R.$$typeof===p||R.$$typeof===h||R.$$typeof===o||R.$$typeof===a||R.$$typeof===u||R.$$typeof===v||R.$$typeof===y||R.$$typeof===x||R.$$typeof===g)}function S(R){if(typeof R=="object"&&R!==null){var fn=R.$$typeof;switch(fn){case e:var Ve=R.type;switch(Ve){case c:case l:case r:case s:case i:case d:return Ve;default:var jr=Ve&&Ve.$$typeof;switch(jr){case a:case u:case p:case h:case o:return jr;default:return fn}}case n:return fn}}}var m=c,P=l,A=a,C=o,F=e,j=u,et=r,Ae=p,dn=h,Re=n,Ir=s,Nr=i,z=d,rt=!1;function Zt(R){return rt||(rt=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),kt(R)||S(R)===c}function kt(R){return S(R)===l}function ya(R){return S(R)===a}function va(R){return S(R)===o}function xa(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function ba(R){return S(R)===u}function Ta(R){return S(R)===r}function Sa(R){return S(R)===p}function wa(R){return S(R)===h}function Ca(R){return S(R)===n}function Pa(R){return S(R)===s}function Aa(R){return S(R)===i}function Ra(R){return S(R)===d}D.AsyncMode=m,D.ConcurrentMode=P,D.ContextConsumer=A,D.ContextProvider=C,D.Element=F,D.ForwardRef=j,D.Fragment=et,D.Lazy=Ae,D.Memo=dn,D.Portal=Re,D.Profiler=Ir,D.StrictMode=Nr,D.Suspense=z,D.isAsyncMode=Zt,D.isConcurrentMode=kt,D.isContextConsumer=ya,D.isContextProvider=va,D.isElement=xa,D.isForwardRef=ba,D.isFragment=Ta,D.isLazy=Sa,D.isMemo=wa,D.isPortal=Ca,D.isProfiler=Pa,D.isStrictMode=Aa,D.isSuspense=Ra,D.isValidElementType=b,D.typeOf=S}()),D}var Hr;function oc(){return Hr||(Hr=1,process.env.NODE_ENV==="production"?Me.exports=ic():Me.exports=sc()),Me.exports}var hn,Kr;function ac(){if(Kr)return hn;Kr=1;var t=oc(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[t.ForwardRef]=r,s[t.Memo]=i;function o(p){return t.isMemo(p)?i:s[p.$$typeof]||e}var a=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function h(p,g,v){if(typeof g!="string"){if(f){var y=d(g);y&&y!==f&&h(p,y,v)}var x=c(g);l&&(x=x.concat(l(g)));for(var b=o(p),S=o(g),m=0;m<x.length;++m){var P=x[m];if(!n[P]&&!(v&&v[P])&&!(S&&S[P])&&!(b&&b[P])){var A=u(g,P);try{a(p,P,A)}catch{}}}}return p}return hn=h,hn}ac();var cc=!0;function lc(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var Es=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||cc===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},uc=function(e,n,r){Es(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+i:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function dc(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&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(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&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 fc={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},hc=/[A-Z]|^ms/g,pc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ms=function(e){return e.charCodeAt(1)===45},Yr=function(e){return e!=null&&typeof e!="boolean"},pn=Ya(function(t){return Ms(t)?t:t.replace(hc,"-$&").toLowerCase()}),Xr=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(pc,function(r,i,s){return ut={name:i,styles:s,next:ut},i})}return fc[e]!==1&&!Ms(e)&&typeof n=="number"&&n!==0?n+"px":n};function he(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return ut={name:i.name,styles:i.styles,next:ut},i.name;var s=n;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)ut={name:o.name,styles:o.styles,next:ut},o=o.next;var a=s.styles+";";return a}return mc(t,e,n)}case"function":{if(t!==void 0){var c=ut,l=n(t);return ut=c,he(t,e,l)}break}}var u=n;return u}function mc(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=he(t,e,n[i])+";";else for(var s in n){var o=n[s];if(typeof o!="object"){var a=o;Yr(a)&&(r+=pn(s)+":"+Xr(s,a)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&e==null)for(var c=0;c<o.length;c++)Yr(o[c])&&(r+=pn(s)+":"+Xr(s,o[c])+";");else{var l=he(t,e,o);switch(s){case"animation":case"animationName":{r+=pn(s)+":"+l+";";break}default:r+=s+"{"+l+"}"}}}return r}var Zr=/label:\s*([^\s;{]+)\s*(;|$)/g,ut;function gc(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";ut=void 0;var s=t[0];if(s==null||s.raw===void 0)r=!1,i+=he(n,e,s);else{var o=s;i+=o[0]}for(var a=1;a<t.length;a++)if(i+=he(n,e,t[a]),r){var c=s;i+=c[a]}Zr.lastIndex=0;for(var l="",u;(u=Zr.exec(i))!==null;)l+="-"+u[1];var d=dc(i)+l;return{name:d,styles:i,next:ut}}var yc=function(e){return e()},vc=J.useInsertionEffect?J.useInsertionEffect:!1,xc=vc||yc,ks=J.createContext(typeof HTMLElement<"u"?rc({key:"css"}):null);ks.Provider;var bc=function(e){return T.forwardRef(function(n,r){var i=T.useContext(ks);return e(n,i,r)})},Tc=J.createContext({}),rn={}.hasOwnProperty,$n="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ds=function(e,n){var r={};for(var i in n)rn.call(n,i)&&(r[i]=n[i]);return r[$n]=e,r},Sc=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return Es(n,r,i),xc(function(){return uc(n,r,i)}),null},wc=bc(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=t[$n],s=[r],o="";typeof t.className=="string"?o=lc(e.registered,s,t.className):t.className!=null&&(o=t.className+" ");var a=gc(s,void 0,J.useContext(Tc));o+=e.key+"-"+a.name;var c={};for(var l in t)rn.call(t,l)&&l!=="css"&&l!==$n&&(c[l]=t[l]);return c.className=o,n&&(c.ref=n),J.createElement(J.Fragment,null,J.createElement(Sc,{cache:e,serialized:a,isStringTag:typeof i=="string"}),J.createElement(i,c))}),Ls=wc,Cc=ue.Fragment,w=function(e,n,r){return rn.call(n,"css")?ue.jsx(Ls,Ds(e,n),r):ue.jsx(e,n,r)},at=function(e,n,r){return rn.call(n,"css")?ue.jsxs(Ls,Ds(e,n),r):ue.jsxs(e,n,r)};function Pc(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function L(t,e){var n={};{var r=t;for(var i in r){var s=r[i];s!=null&&(n[Pc(i)]=s)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(a=>"".concat(a,":").concat(this[a])).join(";")},writable:!1}),n}const Jr='"Goudy Bookletter 1911", sans-serif',mn='"Gill Sans", sans-serif',$s="#FF7377",gn="#C8AE96",q="#FCEFE6",Ac="#2E2E2E",Qr="#CCCCCC",Rc=" #888888",Y="#000000",yn=$s,$={global:{maxWidth:1200,paddingLeft:[15,15,30,30],paddingRight:[15,15,30,30],brandFont:Jr,defaultFont:mn},colors:{defaultText:Y,defaultLightText:q,defaultTitle:"",defaultLink:Y,defaultIcon:Y},backgroundColors:{modal:q,modalOverlay:"rgba(0, 0, 0, 0.6)",cookieConsent:q},borders:{hr:`1px solid ${gn}`,cookieConsent:`2px solid ${Y}`},borderRadius:{modal:30,input:30,cookieConsent:30},widthSizes:{modal:600,cookieConsent:500},transitions:{global:"all 0.3s ease-in-out"},actions:{gap:[15,15,30,30],paddingTop:[15,15,30,30],paddingBottom:[15,15,30,30]},button:{minWidth:80,fontWeight:400,letterSpacing:.1,color:{primary:q,secondary:Ac,disabled:Rc},backgroundColor:{primary:yn,secondary:gn,disabled:Qr},border:{width:2,style:"solid",color:{primary:yn,secondary:gn,disabled:Qr}},borderRadius:50,paddingTop:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},paddingBottom:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},paddingLeft:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},paddingRight:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},transition:"all 0.3s ease-in-out"},columns:{gap:30},keyNumber:{paddingBottom:[5,5,10,10,15,15]},form:{width:800,padding:["15px","30px"],backgroundColor:"",row:{gap:[30,60],padding:["15px","30px"]},label:{font:Jr,fontWeight:500,color:yn,paddingBottom:5},input:{color:"",borderRadius:0,padding:[5,10],font:mn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${Y}`},textarea:{color:"",borderRadius:0,padding:[5,10],font:mn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${Y}`},error:{color:$s}},header:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:q,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100],overlayGap:[15,15,15,15],overlayBackgroundColor:q,toggleNavColor:Y,toggleNavOpenColor:Y,toggleNavBorderRadius:5},main:{minHeight:"45vh",backgroundColor:q},section:{paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},footer:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:q,paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},modal:{border:"",borderRadius:0,width:[50,50,75,75],backgroundColor:q,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:Y,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100]},languageSwitcher:{border:"",borderRadius:0,color:Y,width:[150,150,200,200],backgroundColor:q,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100]},carousel:{gap:[0,0,30,60],bullet:{borderRadius:0,width:[12,12,12,12],height:[12,12,12,12],backgroundColor:q}},video:{playButton:{border:"",borderRadius:0,width:[50,50,75,75],height:[50,50,75,75],color:Y,backgroundColor:q},pauseButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:Y,backgroundColor:q},soundButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:Y,backgroundColor:q},closeButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:Y,backgroundColor:q}},consentCookie:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:q,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:Y,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100],actionsGap:30,actionsPaddingTop:[15,100,100,100]},nav:{gap:[15,15,15,15]},navSocial:{gap:[15,15,15,15]},navLegal:{gap:[15,15,15,15]}},Qt={mobile:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function ct(){const[t,e]=T.useState("mobile");return T.useEffect(()=>{function r(){const i=window.innerWidth;i>=Qt["2xl"]?e("2xl"):i>=Qt.xl?e("xl"):i>=Qt.lg?e("lg"):i>=Qt.md?e("md"):i>=Qt.sm?e("sm"):e("mobile")}return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),["mobile","sm","md","lg","xl","2xl"].indexOf(t)}var Vc="var(--_1h0tdm50)",Ec="var(--_1h0tdm51)",Mc="var(--_1h0tdm52)",kc="var(--_1h0tdm53)",Dc="var(--_1h0tdm54)",Lc="var(--_1h0tdm55)",$c="var(--_1h0tdm56)",_c="var(--_1h0tdm57)",Bc="var(--_1h0tdm58)",Oc="var(--_1h0tdm59)",Fc="var(--_1h0tdm5a)",Ic="var(--_1h0tdm5b)",Nc="var(--_1h0tdm5c)",jc="var(--_1h0tdm5d)",zc={position:"relative",display:"inline-block",color:"var(--_1h0tdm50)",border:"var(--_1h0tdm52)",cursor:"var(--_1h0tdm51)",minWidth:"var(--_1h0tdm53)",fontWeight:"var(--_1h0tdm54)",transition:"var(--_1h0tdm55)",paddingTop:"var(--_1h0tdm56)",paddingLeft:"var(--_1h0tdm57)",paddingRight:"var(--_1h0tdm58)",paddingBottom:"var(--_1h0tdm59)",pointerEvent:"var(--_1h0tdm5a)",borderRadius:"var(--_1h0tdm5b)",letterSpacing:"var(--_1h0tdm5c)",backgroundColor:"var(--_1h0tdm5d)",selectors:{"&:hover":{opacity:.5}}},Ge=(t=>(t[t.Primary=0]="Primary",t[t.Secondary=1]="Secondary",t))(Ge||{}),He=(t=>(t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t))(He||{}),re=(t=>(t[t.Small=0]="Small",t[t.Medium=1]="Medium",t[t.Large=2]="Large",t))(re||{}),rr=(t=>(t.Reset="reset",t.Button="button",t.Submit="submit",t))(rr||{});const _n=({children:t,className:e,staticColor:n="",isPending:r=!1,isDisabled:i=!1,type:s=rr.Button,style:o=He.Fill,size:a=re.Medium,onClick:c=void 0,theme:l=$,variant:u=Ge.Primary})=>{const d=ct(),{button:{color:f,backgroundColor:h,border:p,minWidth:g,fontWeight:v,transition:y,borderRadius:x,letterSpacing:b,paddingTop:S,paddingBottom:m,paddingLeft:P,paddingRight:A}}=l,C=a===re.Large,F=a===re.Small,j=o===He.Outline,et=u===Ge.Secondary;return w("button",{type:s,onClick:c,className:e,style:L({[Lc]:y,[kc]:`${g}px`,[Dc]:`${v}px`,[Ic]:`${x}px`,[Nc]:`${b}px`,[Ec]:i||r?"default":"pointer",[Fc]:i||r?"none":"auto",[Vc]:j&&n?n:j&&et?h.secondary:j?h.primary:et?f.secondary:i||r?f.disabled:f.primary,[jc]:j?"transparent":n||(et?h.secondary:i?h.disabled:h.primary),[Mc]:n?`${p.width}px ${p.style} ${n}`:et?`${p.width}px ${p.style} ${p.color.secondary}`:i?`${p.width}px ${p.style} ${p.color.disabled}`:`${p.width}px ${p.style} ${p.color.primary}`,[$c]:F?`${S.small[d]}px`:C?`${S.large[d]}px`:`${S.medium[d]}px`,[Oc]:F?`${m.small[d]}px`:C?`${m.large[d]}px`:`${m.medium[d]}px`,[_c]:F?`${P.small[d]}px`:C?`${P.large[d]}px`:`${P.medium[d]}px`,[Bc]:F?`${A.small[d]}px`:C?`${A.large[d]}px`:`${A.medium[d]}px`}),children:t})};var Wc="var(--_1v7zi9y0)",Uc="var(--_1v7zi9y1)",qc="var(--_1v7zi9y2)",Gc="var(--_1v7zi9y3)",Hc="var(--_1v7zi9y4)",Kc={width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"row",gap:"var(--_1v7zi9y0)",alignItems:"var(--_1v7zi9y1)",paddingTop:"var(--_1v7zi9y2)",paddingBottom:"var(--_1v7zi9y3)",justifyContent:"var(--_1v7zi9y4)"},$t=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))($t||{});const Yc=({children:t,className:e,theme:n=$,align:r=$t.Left})=>{const i=ct(),{actions:{gap:s,paddingTop:o,paddingBottom:a}}=n;return w("div",{className:e,style:L({[Wc]:`${s[i]}px`,[qc]:`${o[i]}px`,[Gc]:`${a[i]}px`,[Uc]:r===$t.Center?"center":"flex-start",[Hc]:r===$t.Right?"flex-end":r===$t.Left?"flex-start":"center"}),children:t})};var ti={iconSize:"var(--_1slxfz50)",iconColor:"var(--_1slxfz51)"},Xc="_1slxfz52",Zc="_1slxfz54";const Jc={caret:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0",close:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4",arrowBack:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1",arrowForward:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1",play:"M8 5v14l11-7z",pause:"M6 19h4V5H6zm8-14v14h4V5z",volumeMute:"M7 9v6h4l5 5V4l-5 5z",volumeUp:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77",socialFacebook:"M 22.2816,10.9924 C 22.2816,4.92145 17.3602,0 11.2892,0 5.21832,0 0.296875,4.92145 0.296875,10.9924 c 0,5.4865 4.019725,10.0342 9.274805,10.8588 V 14.1698 H 6.78065 V 10.9924 H 9.57168 V 8.57061 c 0,-2.75496 1.64112,-4.27672 4.15202,-4.27672 1.2023,0 2.4606,0.2147 2.4606,0.2147 v 2.70515 h -1.3861 c -1.3654,0 -1.7914,0.8474 -1.7914,1.71756 v 2.0611 h 3.0487 l -0.4874,3.1774 h -2.5613 v 7.6814 c 5.2551,-0.8246 9.2748,-5.3723 9.2748,-10.8588 z",socialInstagram:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z",socialPinterest:"M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2 10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41.86 0 1.26.63 1.26 1.44 0 .86-.57 2.09-.86 3.27-.17.98.52 1.84 1.52 1.84 1.78 0 3.16-1.9 3.16-4.58 0-2.4-1.72-4.04-4.19-4.04-2.82 0-4.48 2.1-4.48 4.31 0 .86.28 1.73.74 2.3.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11-1.28-.56-2.02-2.38-2.02-3.85 0-3.16 2.24-6.03 6.56-6.03 3.44 0 6.12 2.47 6.12 5.75 0 3.44-2.13 6.2-5.18 6.2-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03z",socialLinkedIn:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z",socialSpotify:"",socialTiktok:"M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2Zm-3.281,8.725h0c-.109.011-.219.016-.328.017A3.571,3.571,0,0,1,14.4,9.129v5.493a4.061,4.061,0,1,1-4.06-4.06c.085,0,.167.008.251.013v2a2.067,2.067,0,1,0-.251,4.119A2.123,2.123,0,0,0,12.5,14.649l.02-9.331h1.914A3.564,3.564,0,0,0,17.719,8.5Z",socialX:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",socialYoutube:"M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"},St=({icon:t="",size:e=24,iconPath:n="",color:r,theme:i=$,viewBox:s="0 0 24 24",className:o})=>w("svg",{className:o,style:L({[ti.iconSize]:`${e}px`,[ti.iconColor]:r??i.colors.defaultIcon}),viewBox:s,width:`${e}px`,height:`${e}px`,children:w("path",{className:Zc,d:n||Jc[t]||""})});var Z={overlayOpacity:"var(--_18bqyaq0)",overlayBackgroundColor:"var(--_18bqyaq1)",overlayBlur:"var(--_18bqyaq2)",modalWidth:"var(--_18bqyaq3)",modalPaddingTop:"var(--_18bqyaq4)",modalPaddingBottom:"var(--_18bqyaq5)",modalPaddingLeft:"var(--_18bqyaq6)",modalPaddingRight:"var(--_18bqyaq7)",modalMaxWidth:"var(--_18bqyaq8)",modalMaxHeight:"var(--_18bqyaq9)",modalContentTextAlign:"var(--_18bqyaqa)",modalContentBackgroundColor:"var(--_18bqyaqb)",modalContentBorderRadius:"var(--_18bqyaqc)",modalContentBorders:"var(--_18bqyaqd)"},Qc="_18bqyaqe",tl="_18bqyaqg",el="_18bqyaqh",Ne=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(Ne||{});const nl=({children:t,align:e=Ne.Left,theme:n=$,onModalHide:r,className:i})=>{const s=ct(),{global:{paddingLeft:o,paddingRight:a},modal:{overlayBlur:c,overlayOpacity:l,overlayBackgroundColor:u,border:d,width:f,borderRadius:h,backgroundColor:p,paddingTop:g,paddingLeft:v,paddingRight:y,paddingBottom:x}}=n;return w("div",{className:i,style:L({[Z.overlayOpacity]:`${l}`,[Z.overlayBackgroundColor]:u,[Z.overlayBlur]:`${c}px`,[Z.modalWidth]:`${f[s]}px`,[Z.modalPaddingTop]:`${g[s]}px`,[Z.modalPaddingBottom]:`${x[s]}px`,[Z.modalPaddingLeft]:`${v[s]}px`,[Z.modalPaddingRight]:`${y[s]}px`,[Z.modalMaxWidth]:`calc(100% - ${o[s]+a[s]}px)`,[Z.modalMaxHeight]:`calc(100% - ${o[s]+a[s]}px)`}),children:at("div",{className:tl,style:L({[Z.modalContentTextAlign]:e===Ne.Left?"left":e===Ne.Right?"right":"center",[Z.modalContentBackgroundColor]:p,[Z.modalContentBorderRadius]:`${h}px`,[Z.modalContentBorders]:d}),children:[r&&w("button",{className:el,onClick:r,children:w(St,{theme:n,icon:"close"})}),t]})})};var rl={videoMaxHeight:"var(--_18hbdtx0)"},il="_18hbdtx2",sl="_18hbdtx3",ol="_18hbdtx4",al="_18hbdtx5",cl="_18hbdtx6",ll="_18hbdtx7";const _s=({video:t,isAutoPlay:e,poster:n="",startMuted:r=!1,onPlay:i,onClose:s,onEnded:o,showControls:a=!1,theme:c=$,hidePlayButton:l=!1,isVideoFullWidth:u=!1,isPlayingFullScreen:d=!1,className:f})=>{const h=T.useRef(null),[p,g]=T.useState(!1),[v,y]=T.useState(e||r),x=()=>{var C;i&&i(),(C=h.current)==null||C.play(),g(!0)},b=()=>{var C;s&&s(),(C=h.current)==null||C.pause(),g(!1)},S=()=>{var C;(C=h.current)==null||C.pause(),g(!1)},m=()=>{const C=!v;y(C),h.current&&(h.current.muted=C)},P=()=>{o&&o(),b()},A=C=>{C.key==="Escape"&&b()};return T.useEffect(()=>(window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)),[]),w("div",{className:f,style:L({[rl.videoMaxHeight]:u?"100vw":"100%"}),children:at("div",{className:il,children:[w("video",{ref:h,playsInline:!0,onEnded:P,children:w("source",{src:t,type:"video/mp4"})}),n&&w("div",{className:sl,children:w("img",{src:n,alt:""})}),(!l||!e)&&w("button",{className:ol,onClick:x,"aria-label":"Play",children:w(St,{icon:"play",size:50,theme:c})}),d&&w("button",{className:cl,onClick:b,"aria-label":"Close",children:w(St,{icon:"close",size:28,theme:c})}),p&&a&&w("button",{className:al,onClick:p?S:x,"aria-label":"Pause",children:w(St,{icon:"pause",size:28,theme:c})}),a&&w("button",{className:ll,onClick:m,"aria-label":"Sound",children:w(St,{icon:v?"volumeUp":"volumeMute",size:28,theme:c})})]})})};var ul={imgMaxWidth:"var(--_13pkfbg0)"},dl="_13pkfbg1";const fl=({children:t,theme:e=$,className:n})=>w("div",{className:n,style:L({[ul.imgMaxWidth]:"100%"}),children:t});var vn={gap:"var(--_1vea7fs0)",displayItem:"var(--_1vea7fs1)",isFullWidth:"var(--_1vea7fs2)"},hl={gap:"var(--_1vea7fs0)",display:"flex",flexWrap:"nowrap",overflow:"hidden",width:"var(--_1vea7fs2)"};function pl(){const[t,e]=T.useState({width:void 0,height:void 0});return T.useEffect(()=>{function n(){e({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),t}const ml=({data:t,theme:e=$,displayItem:n=1,isFullWidth:r=!1,displayNavBullets:i=!1,displayNavButtons:s=!1,className:o})=>{const{width:a}=pl(),[c,l]=T.useState(0),u=T.useRef(null),[d,f]=T.useState(n);return T.useEffect(()=>{a&&a>1024?f(n):a&&a>768?f(Math.min(n,2)):f(1)},[a,n]),at("div",{ref:u,className:o,style:L({[vn.gap]:`${e.carousel.gap[0]}px`,[vn.displayItem]:`${d}`,[vn.isFullWidth]:r?"100vw":"100%"}),children:[t.map((h,p)=>w("div",{children:h},p)),s&&w("button",{onClick:()=>l(Math.max(0,c-1)),children:"Prev"}),s&&w("button",{onClick:()=>l(Math.min(t.length-1,c+1)),children:"Next"}),i&&w("div",{children:t.map((h,p)=>w("span",{onClick:()=>l(p)},p))})]})};var Bn=new Map,ke=new WeakMap,ei=0,gl=void 0;function yl(t){return t?(ke.has(t)||(ei+=1,ke.set(t,ei.toString())),ke.get(t)):"0"}function vl(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?yl(t.root):t[e]}`).toString()}function xl(t){const e=vl(t);let n=Bn.get(e);if(!n){const r=new Map;let i;const s=new IntersectionObserver(o=>{o.forEach(a=>{var c;const l=a.isIntersecting&&i.some(u=>a.intersectionRatio>=u);t.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=l),(c=r.get(a.target))==null||c.forEach(u=>{u(l,a)})})},t);i=s.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),n={id:e,observer:s,elements:r},Bn.set(e,n)}return n}function bl(t,e,n={},r=gl){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const c=t.getBoundingClientRect();return e(r,{isIntersecting:r,target:t,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:c,intersectionRect:c,rootBounds:c}),()=>{}}const{id:i,observer:s,elements:o}=xl(n),a=o.get(t)||[];return o.has(t)||o.set(t,a),a.push(e),s.observe(t),function(){a.splice(a.indexOf(e),1),a.length===0&&(o.delete(t),s.unobserve(t)),o.size===0&&(s.disconnect(),Bn.delete(i))}}function Tl({threshold:t,delay:e,trackVisibility:n,rootMargin:r,root:i,triggerOnce:s,skip:o,initialInView:a,fallbackInView:c,onChange:l}={}){var u;const[d,f]=J.useState(null),h=J.useRef(l),[p,g]=J.useState({inView:!!a,entry:void 0});h.current=l,J.useEffect(()=>{if(o||!d)return;let b;return b=bl(d,(S,m)=>{g({inView:S,entry:m}),h.current&&h.current(S,m),m.isIntersecting&&s&&b&&(b(),b=void 0)},{root:i,rootMargin:r,threshold:t,trackVisibility:n,delay:e},c),()=>{b&&b()}},[Array.isArray(t)?t.toString():t,d,i,r,s,o,n,c,e]);const v=(u=p.entry)==null?void 0:u.target,y=J.useRef(void 0);!d&&v&&!s&&!o&&y.current!==v&&(y.current=v,g({inView:!!a,entry:void 0}));const x=[f,p.inView,p.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}const Sl=({label:t,suffix:e,keyNumber:n,className:r,theme:i=$})=>{ct();const[s,o]=Tl({threshold:.3,triggerOnce:!0});return w("div",{ref:s,className:r})};var ni={videoFullWidthLeft:"var(--_29n9il0)",videoFullWidthRight:"var(--_29n9il1)"},wl="_29n9il2";const Cl=({video:t,poster:e,className:n,isAutoPlay:r,showControls:i,startMuted:s=!1,theme:o=$})=>{const a=ct(),{global:{maxWidth:c,paddingLeft:l,paddingRight:u}}=o;return w("div",{className:n,style:L({[ni.videoFullWidthLeft]:`min(calc((100vw - ${c}px) / -2), -${l[a]}px)`,[ni.videoFullWidthRight]:`min(calc((100vw - ${c}px) / -2), -${u[a]}px)`}),children:w(_s,{video:t,theme:o,poster:e,isVideoFullWidth:!0,isAutoPlay:r,startMuted:s,showControls:i})})};var Pl={languageSwitcherWidth:"var(--_9kkynw0)"},Al="_9kkynw1",Rl="_9kkynw2",Vl="_9kkynw3";const El=({currentLocale:t,handleChange:e,locales:n,theme:r=$,className:i,translations:s})=>{const o=ct(),{languageSwitcher:a}=r;return at("div",{className:i,style:L({[Pl.languageSwitcherWidth]:`${a.width[o]}px`}),children:[w("div",{className:Rl,children:w(St,{theme:r,icon:"caret"})}),w("select",{className:Vl,value:t,onChange:e,"aria-label":"Switch Language",children:n.map((c,l)=>w("option",{value:c,disabled:c===t,children:s[c]},`locale-${l}`))})]})};var Ml="var(--_1wp326d0)",kl="var(--_1wp326d1)",Dl={display:"flex",backgroundColor:"var(--_1wp326d1)",flex:"1 1 auto",minHeight:"45vh",textAlign:"center",alignItems:"center",flexDirection:"column",justifyContent:"center","@media":{"screen and (min-width: 768px)":{minHeight:"var(--_1wp326d0)"}}};const Ll=({children:t,className:e,theme:n=$})=>{const{main:{backgroundColor:r,minHeight:i}}=n;return w("main",{className:e,style:L({[Ml]:i,[kl]:r}),children:t})};var ri={overlayBottom:"var(--xr8l1e0)",overlayTransform:"var(--xr8l1e1)"},$l="xr8l1e2";const _l=({theme:t=$,isOpen:e=!1,children:n,className:r})=>(T.useEffect(()=>{const i=document.getElementsByTagName("html")[0];i.style.overflow="",e&&(i.style.overflow="hidden")},[e]),w("div",{className:`${$l} ${r}`,style:L({[ri.overlayBottom]:e?"-100vh":"100%",[ri.overlayTransform]:e?"translate(0, 0)":"translate(0, -100%)"}),children:n}));var Bl={displayOnDesktop:"var(--_1c0ak730)"},Ol="_1c0ak731",ii="_1c0ak732";const Fl=({theme:t=$,isNavOpen:e=!1,onToggleNav:n,displayOnDesktop:r,className:i})=>{const s=()=>{window.scrollTo({top:0,behavior:"smooth"}),n()};return at("button",{className:`${Ol} ${i}`,style:L({[Bl.displayOnDesktop]:r?"block":"none"}),onClick:s,"aria-label":"Toggle nav",children:[w("span",{className:ii,"data-open":e?"true":"false"}),w("span",{className:ii,"data-open":e?"true":"false"})]})};var Il={isFixed:"var(--_15wg1hu0)"},Nl="_15wg1hu2",jl="_15wg1hu3";const zl=({children:t,isFixed:e=!1,childrenOverlay:n,theme:r=$,hideToggleNav:i=!1,displayToggleNavOnDesktop:s=!1,className:o})=>{const[a,c]=T.useState(!1);return at(Cc,{children:[at("header",{className:`${Nl} ${o}`,style:L({[Il.isFixed]:e?"fixed":"relative"}),children:[n&&w(_l,{className:"",theme:r,isOpen:a,children:n}),t,!i&&w(Fl,{className:"",theme:r,isNavOpen:a,onToggleNav:()=>c(!a),displayOnDesktop:s})]}),e&&w("div",{className:jl})]})};var Dt={footerGap:"var(--fl7h880)",footerBackgroundColor:"var(--fl7h881)",footerPaddingTop:"var(--fl7h882)",footerPaddingBottom:"var(--fl7h883)",footerPaddingLeft:"var(--fl7h884)",footerPaddingRight:"var(--fl7h885)"},Wl="fl7h886";const Ul=({children:t,className:e,theme:n=$})=>{const r=ct(),{global:{paddingLeft:i,paddingRight:s},footer:{gap:o,backgroundColor:a,paddingTop:c,paddingBottom:l}}=n;return w("footer",{className:e,style:L({[Dt.footerGap]:`${o[r]}px`,[Dt.footerBackgroundColor]:a,[Dt.footerPaddingTop]:`${c[r]}px`,[Dt.footerPaddingBottom]:`${l[r]}px`,[Dt.footerPaddingLeft]:`${i[r]}px`,[Dt.footerPaddingRight]:`${s[r]}px`}),children:t})};var Lt={columnsGap:"var(--mx2tfy0)",columnsTextAlign:"var(--mx2tfy1)",columnsJustifyContent:"var(--mx2tfy2)",isCentered:"var(--mx2tfy3)",isInverted:"var(--mx2tfy4)",column0:"var(--mx2tfy5)",column1:"var(--mx2tfy6)",column2:"var(--mx2tfy7)",column3:"var(--mx2tfy8)"},ql="mx2tfy9",_t=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(_t||{});const Gl=({columns:t,children:e,align:n=_t.Left,isCentered:r=!1,isInverted:i=!1,theme:s=$,className:o})=>{const a=t.reduce((c,l,u)=>(c[Lt[`column${u}`]]=`${l}%`,c),{});return w("div",{className:o,style:L({...a,[Lt.columnsGap]:`${s.columns.gap}px`,[Lt.columnsTextAlign]:n===_t.Center?"center":"left",[Lt.columnsJustifyContent]:n===_t.Right?"flex-end":n===_t.Center?"center":"flex-start",[Lt.isCentered]:r?"center":"stretch",[Lt.isInverted]:i?"row-reverse":"row"}),children:e})},Bs=T.createContext({});function Os(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const ir=T.createContext(null),Fs=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Hl(t=!0){const e=T.useContext(ir);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,s=T.useId();T.useEffect(()=>{if(t)return i(s)},[t]);const o=T.useCallback(()=>t&&r&&r(s),[s,r,t]);return!n&&r?[!1,o]:[!0]}const sr=typeof window<"u",Is=sr?T.useLayoutEffect:T.useEffect,Q=t=>t;let Kt=Q,mt=Q;process.env.NODE_ENV!=="production"&&(Kt=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},mt=(t,e)=>{if(!t)throw new Error(e)});function or(t){let e;return()=>(e===void 0&&(e=t()),e)}const Ut=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},ft=t=>t*1e3,yt=t=>t/1e3,Kl={skipAnimations:!1,useManualTiming:!1},De=["read","resolveKeyframes","update","preRender","render","postRender"];function Yl(t,e){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){o.has(u)&&(l.schedule(u),t()),u(a)}const l={schedule:(u,d=!1,f=!1)=>{const p=f&&i?n:r;return d&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{r.delete(u),o.delete(u)},process:u=>{if(a=u,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),n.clear(),i=!1,s&&(s=!1,l.process(u))}};return l}const Xl=40;function Ns(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=De.reduce((y,x)=>(y[x]=Yl(s),y),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:f}=o,h=()=>{const y=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(y-i.timestamp,Xl),1),i.timestamp=y,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(h))},p=()=>{n=!0,r=!0,i.isProcessing||t(h)};return{schedule:De.reduce((y,x)=>{const b=o[x];return y[x]=(S,m=!1,P=!1)=>(n||p(),b.schedule(S,m,P)),y},{}),cancel:y=>{for(let x=0;x<De.length;x++)o[De[x]].cancel(y)},state:i,steps:o}}const{schedule:_,cancel:wt,state:W,steps:xn}=Ns(typeof requestAnimationFrame<"u"?requestAnimationFrame:Q,!0),js=T.createContext({strict:!1}),si={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"]},qt={};for(const t in si)qt[t]={isEnabled:e=>si[t].some(n=>!!e[n])};function Zl(t){for(const e in t)qt[e]={...qt[e],...t[e]}}const Jl=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 Ke(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Jl.has(t)}let zs=t=>!Ke(t);function Ql(t){t&&(zs=e=>e.startsWith("on")?!Ke(e):t(e))}try{Ql(require("@emotion/is-prop-valid").default)}catch{}function tu(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(zs(i)||n===!0&&Ke(i)||!e&&!Ke(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const oi=new Set;function sn(t,e,n){t||oi.has(e)||(console.warn(e),oi.add(e))}function eu(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&sn(!1,"motion() is deprecated. Use motion.create() instead."),t(...r));return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const on=T.createContext({});function an(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function pe(t){return typeof t=="string"||Array.isArray(t)}const ar=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cr=["initial",...ar];function cn(t){return an(t.animate)||cr.some(e=>pe(t[e]))}function Ws(t){return!!(cn(t)||t.variants)}function nu(t,e){if(cn(t)){const{initial:n,animate:r}=t;return{initial:n===!1||pe(n)?n:void 0,animate:pe(r)?r:void 0}}return t.inherit!==!1?e:{}}function ru(t){const{initial:e,animate:n}=nu(t,T.useContext(on));return T.useMemo(()=>({initial:e,animate:n}),[ai(e),ai(n)])}function ai(t){return Array.isArray(t)?t.join(" "):t}const iu=Symbol.for("motionComponentSymbol");function Bt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function su(t,e,n){return T.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Bt(n)&&(n.current=r))},[e])}const lr=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ou="framerAppearId",Us="data-"+lr(ou),{schedule:ur,cancel:sm}=Ns(queueMicrotask,!1),qs=T.createContext({});function au(t,e,n,r,i){var s,o;const{visualElement:a}=T.useContext(on),c=T.useContext(js),l=T.useContext(ir),u=T.useContext(Fs).reducedMotion,d=T.useRef(null);r=r||c.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,h=T.useContext(qs);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&cu(d.current,n,i,h);const p=T.useRef(!1);T.useInsertionEffect(()=>{f&&p.current&&f.update(n,l)});const g=n[Us],v=T.useRef(!!g&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return Is(()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),ur.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())}),T.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,g)}),v.current=!1))}),f}function cu(t,e,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Gs(t.parent)),t.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Bt(a),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:l})}function Gs(t){if(t)return t.options.allowProjection!==!1?t.projection:Gs(t.parent)}function lu({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var s,o;t&&Zl(t);function a(l,u){let d;const f={...T.useContext(Fs),...l,layoutId:uu(l)},{isStatic:h}=f,p=ru(l),g=r(l,h);if(!h&&sr){du(f,t);const v=fu(f);d=v.MeasureLayout,p.visualElement=au(i,g,f,e,v.ProjectionNode)}return Ue.jsxs(on.Provider,{value:p,children:[d&&p.visualElement?Ue.jsx(d,{visualElement:p.visualElement,...f}):null,n(i,l,su(g,p.visualElement,u),g,h,p.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const c=T.forwardRef(a);return c[iu]=i,c}function uu({layoutId:t}){const e=T.useContext(Bs).id;return e&&t!==void 0?e+"-"+t:t}function du(t,e){const n=T.useContext(js).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Kt(!1,r):mt(!1,r)}}function fu(t){const{drag:e,layout:n}=qt;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Hs=t=>e=>typeof e=="string"&&e.startsWith(t),dr=Hs("--"),hu=Hs("var(--"),fr=t=>hu(t)?pu.test(t.split("/*")[0].trim()):!1,pu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,me={};function mu(t){for(const e in t)me[e]=t[e],dr(e)&&(me[e].isCSSVariable=!0)}const Yt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mt=new Set(Yt);function Ks(t,{layout:e,layoutId:n}){return Mt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!me[t]||t==="opacity")}const K=t=>!!(t&&t.getVelocity),Ys=(t,e)=>e&&typeof t=="number"?e.transform(t):t,vt=(t,e,n)=>n>e?e:n<t?t:n,Xt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ge={...Xt,transform:t=>vt(0,1,t)},Le={...Xt,default:1},Se=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Tt=Se("deg"),ht=Se("%"),V=Se("px"),gu=Se("vh"),yu=Se("vw"),ci={...ht,parse:t=>ht.parse(t)/100,transform:t=>ht.transform(t*100)},vu={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V},xu={rotate:Tt,rotateX:Tt,rotateY:Tt,rotateZ:Tt,scale:Le,scaleX:Le,scaleY:Le,scaleZ:Le,skew:Tt,skewX:Tt,skewY:Tt,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:ge,originX:ci,originY:ci,originZ:V},li={...Xt,transform:Math.round},hr={...vu,...xu,zIndex:li,size:V,fillOpacity:ge,strokeOpacity:ge,numOctaves:li},bu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Tu=Yt.length;function Su(t,e,n){let r="",i=!0;for(let s=0;s<Tu;s++){const o=Yt[s],a=t[o];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(o.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const l=Ys(a,hr[o]);if(!c){i=!1;const u=bu[o]||o;r+=`${u}(${l}) `}n&&(e[o]=l)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function pr(t,e,n){const{style:r,vars:i,transformOrigin:s}=t;let o=!1,a=!1;for(const c in e){const l=e[c];if(Mt.has(c)){o=!0;continue}else if(dr(c)){i[c]=l;continue}else{const u=Ys(l,hr[c]);c.startsWith("origin")?(a=!0,s[c]=u):r[c]=u}}if(e.transform||(o||n?r.transform=Su(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=s;r.transformOrigin=`${c} ${l} ${u}`}}const mr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Xs(t,e,n){for(const r in e)!K(e[r])&&!Ks(r,n)&&(t[r]=e[r])}function wu({transformTemplate:t},e){return T.useMemo(()=>{const n=mr();return pr(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Cu(t,e){const n=t.style||{},r={};return Xs(r,n,t),Object.assign(r,wu(t,e)),r}function Pu(t,e){const n={},r=Cu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,n}const Au=["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 gr(t){return typeof t!="string"||t.includes("-")?!1:!!(Au.indexOf(t)>-1||/[A-Z]/u.test(t))}const Ru={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vu={offset:"strokeDashoffset",array:"strokeDasharray"};function Eu(t,e,n=1,r=0,i=!0){t.pathLength=1;const s=i?Ru:Vu;t[s.offset]=V.transform(-r);const o=V.transform(e),a=V.transform(n);t[s.array]=`${o} ${a}`}function ui(t,e,n){return typeof t=="string"?t:V.transform(e+n*t)}function Mu(t,e,n){const r=ui(e,t.x,t.width),i=ui(n,t.y,t.height);return`${r} ${i}`}function yr(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:c=0,...l},u,d){if(pr(t,l,d),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:h,dimensions:p}=t;f.transform&&(p&&(h.transform=f.transform),delete f.transform),p&&(i!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=Mu(p,i!==void 0?i:.5,s!==void 0?s:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&Eu(f,o,a,c,!1)}const Zs=()=>({...mr(),attrs:{}}),vr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function ku(t,e,n,r){const i=T.useMemo(()=>{const s=Zs();return yr(s,e,vr(r),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};Xs(s,t.style,t),i.style={...s,...i.style}}return i}function Du(t=!1){return(n,r,i,{latestValues:s},o)=>{const c=(gr(n)?ku:Pu)(r,s,o,n),l=tu(r,typeof n=="string",t),u=n!==T.Fragment?{...l,...c,ref:i}:{},{children:d}=r,f=T.useMemo(()=>K(d)?d.get():d,[d]);return T.createElement(n,{...u,children:f})}}function di(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function xr(t,e,n,r){if(typeof e=="function"){const[i,s]=di(r);e=e(n!==void 0?n:t.custom,i,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,s]=di(r);e=e(n!==void 0?n:t.custom,i,s)}return e}const On=t=>Array.isArray(t),Lu=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),$u=t=>On(t)?t[t.length-1]||0:t;function je(t){const e=K(t)?t.get():t;return Lu(e)?e.toValue():e}function _u({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,s){const o={latestValues:Bu(r,i,s,t),renderState:e()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const Js=t=>(e,n)=>{const r=T.useContext(on),i=T.useContext(ir),s=()=>_u(t,e,r,i);return n?s():Os(s)};function Bu(t,e,n,r){const i={},s=r(t,{});for(const f in s)i[f]=je(s[f]);let{initial:o,animate:a}=t;const c=cn(t),l=Ws(t);e&&l&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!an(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const p=xr(t,f[h]);if(p){const{transitionEnd:g,transition:v,...y}=p;for(const x in y){let b=y[x];if(Array.isArray(b)){const S=u?b.length-1:0;b=b[S]}b!==null&&(i[x]=b)}for(const x in g)i[x]=g[x]}}}return i}function br(t,e,n){var r;const{style:i}=t,s={};for(const o in i)(K(i[o])||e.style&&K(e.style[o])||Ks(o,t)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}const Ou={useVisualState:Js({scrapeMotionValuesFromProps:br,createRenderState:mr})};function Qs(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}function to(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const s in n)t.style.setProperty(s,n[s])}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 no(t,e,n,r){to(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(eo.has(i)?i:lr(i),e.attrs[i])}function ro(t,e,n){const r=br(t,e,n);for(const i in t)if(K(t[i])||K(e[i])){const s=Yt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=t[i]}return r}const fi=["x","y","width","height","cx","cy","r"],Fu={useVisualState:Js({scrapeMotionValuesFromProps:ro,createRenderState:Zs,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!t.drag;if(!s){for(const a in i)if(Mt.has(a)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let a=0;a<fi.length;a++){const c=fi[a];t[c]!==e[c]&&(o=!0)}o&&_.read(()=>{Qs(n,r),_.render(()=>{yr(r,i,vr(n.tagName),t.transformTemplate),no(n,r)})})}})};function Iu(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...gr(r)?Fu:Ou,preloadedFeatures:t,useRender:Du(i),createVisualElement:e,Component:r};return lu(o)}}function ye(t,e,n){const r=t.getProps();return xr(r,e,n!==void 0?n:r.custom,t)}const Nu=or(()=>window.ScrollTimeline!==void 0);class ju{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(i=>{if(Nu()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class zu extends ju{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function Tr(t,e){return t?t[e]||t.default||t:void 0}const Fn=2e4;function io(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Fn;)e+=n,r=t.next(e);return e>=Fn?1/0:e}function Sr(t){return typeof t=="function"}function hi(t,e){t.timeline=e,t.onfinish=null}const wr=t=>Array.isArray(t)&&typeof t[0]=="number",Wu={linearEasing:void 0};function Uu(t,e){const n=or(t);return()=>{var r;return(r=Wu[e])!==null&&r!==void 0?r:n()}}const Ye=Uu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),so=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let s=0;s<i;s++)r+=t(Ut(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function oo(t){return!!(typeof t=="function"&&Ye()||!t||typeof t=="string"&&(t in In||Ye())||wr(t)||Array.isArray(t)&&t.every(oo))}const ee=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,In={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ee([0,.65,.55,1]),circOut:ee([.55,0,1,.45]),backIn:ee([.31,.01,.66,-.59]),backOut:ee([.33,1.53,.69,.99])};function ao(t,e){if(t)return typeof t=="function"&&Ye()?so(t,e):wr(t)?ee(t):Array.isArray(t)?t.map(n=>ao(n,e)||In.easeOut):In[t]}const ot={x:!1,y:!1};function co(){return ot.x||ot.y}function lo(t,e,n){var r;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function uo(t,e){const n=lo(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function pi(t){return!(t.pointerType==="touch"||co())}function qu(t,e,n={}){const[r,i,s]=uo(t,n),o=a=>{if(!pi(a))return;const{target:c}=a,l=e(c,a);if(typeof l!="function"||!c)return;const u=d=>{pi(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}function Xe(t,e){const n=`${e}PointerCapture`;if(t.target instanceof Element&&n in t.target&&t.pointerId!==void 0)try{t.target[n](t.pointerId)}catch{}}const fo=(t,e)=>e?t===e?!0:fo(t,e.parentElement):!1,Cr=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Gu=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Hu(t){return Gu.has(t.tagName)||t.tabIndex!==-1}const ne=new WeakSet;function mi(t){return e=>{e.key==="Enter"&&t(e)}}function bn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Ku=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=mi(()=>{if(ne.has(n))return;bn(n,"down");const i=mi(()=>{bn(n,"up")}),s=()=>bn(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",s,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function gi(t){return Cr(t)&&!co()}function Yu(t,e,n={}){const[r,i,s]=uo(t,n),o=a=>{const c=a.currentTarget;if(!c||!gi(a)||ne.has(c))return;ne.add(c),Xe(a,"set");const l=e(c,a),u=(h,p)=>{c.removeEventListener("pointerup",d),c.removeEventListener("pointercancel",f),Xe(h,"release"),!(!gi(h)||!ne.has(c))&&(ne.delete(c),typeof l=="function"&&l(h,{success:p}))},d=h=>{(h.isTrusted?Xu(h,c instanceof Element?c.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?u(h,!1):u(h,!(c instanceof Element)||fo(c,h.target))},f=h=>{u(h,!1)};c.addEventListener("pointerup",d,i),c.addEventListener("pointercancel",f,i),c.addEventListener("lostpointercapture",f,i)};return r.forEach(a=>{a=n.useGlobalTarget?window:a;let c=!1;a instanceof HTMLElement&&(c=!0,!Hu(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",o,i),c&&a.addEventListener("focus",l=>Ku(l,i),i)}),s}function Xu(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}function Zu(t){return t==="x"||t==="y"?ot[t]?null:(ot[t]=!0,()=>{ot[t]=!1}):ot.x||ot.y?null:(ot.x=ot.y=!0,()=>{ot.x=ot.y=!1})}const ho=new Set(["width","height","top","left","right","bottom",...Yt]);let ze;function Ju(){ze=void 0}const pt={now:()=>(ze===void 0&&pt.set(W.isProcessing||Kl.useManualTiming?W.timestamp:performance.now()),ze),set:t=>{ze=t,queueMicrotask(Ju)}};function Pr(t,e){t.indexOf(e)===-1&&t.push(e)}function Ar(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Rr{constructor(){this.subscriptions=[]}add(e){return Pr(this.subscriptions,e),()=>Ar(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function po(t,e){return e?t*(1e3/e):0}const yi=30,Qu=t=>!isNaN(parseFloat(t));class td{constructor(e,n={}){this.version="12.4.7",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=pt.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=pt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Qu(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&sn(!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 Rr);const r=this.events[e].add(n);return e==="change"?()=>{r(),_.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=pt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>yi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yi);return po(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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ve(t,e){return new td(t,e)}function ed(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ve(n))}function Vr(t,e){const n=ye(t,e);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=$u(s[o]);ed(t,o,a)}}function nd(t){return!!(K(t)&&t.add)}function Nn(t,e){const n=t.getValue("willChange");if(nd(n))return n.add(e)}function mo(t){return t.props[Us]}const go=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,rd=1e-7,id=12;function sd(t,e,n,r,i){let s,o,a=0;do o=e+(n-e)/2,s=go(o,r,i)-t,s>0?n=o:e=o;while(Math.abs(s)>rd&&++a<id);return o}function we(t,e,n,r){if(t===e&&n===r)return Q;const i=s=>sd(s,0,1,t,n);return s=>s===0||s===1?s:go(i(s),e,r)}const yo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,vo=t=>e=>1-t(1-e),xo=we(.33,1.53,.69,.99),Er=vo(xo),bo=yo(Er),To=t=>(t*=2)<1?.5*Er(t):.5*(2-Math.pow(2,-10*(t-1))),Mr=t=>1-Math.sin(Math.acos(t)),So=vo(Mr),wo=yo(Mr),Co=t=>/^0[^.\s]+$/u.test(t);function od(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Co(t):!0}const ie=t=>Math.round(t*1e5)/1e5,kr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ad(t){return t==null}const cd=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Dr=(t,e)=>n=>!!(typeof n=="string"&&cd.test(n)&&n.startsWith(t)||e&&!ad(n)&&Object.prototype.hasOwnProperty.call(n,e)),Po=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(kr);return{[t]:parseFloat(i),[e]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},ld=t=>vt(0,255,t),Tn={...Xt,transform:t=>Math.round(ld(t))},Vt={test:Dr("rgb","red"),parse:Po("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Tn.transform(t)+", "+Tn.transform(e)+", "+Tn.transform(n)+", "+ie(ge.transform(r))+")"};function ud(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const jn={test:Dr("#"),parse:ud,transform:Vt.transform},Ot={test:Dr("hsl","hue"),parse:Po("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+ht.transform(ie(e))+", "+ht.transform(ie(n))+", "+ie(ge.transform(r))+")"},H={test:t=>Vt.test(t)||jn.test(t)||Ot.test(t),parse:t=>Vt.test(t)?Vt.parse(t):Ot.test(t)?Ot.parse(t):jn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Vt.transform(t):Ot.transform(t)},dd=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fd(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(kr))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(dd))===null||n===void 0?void 0:n.length)||0)>0}const Ao="number",Ro="color",hd="var",pd="var(",vi="${}",md=/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 xe(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=e.replace(md,c=>(H.test(c)?(r.color.push(s),i.push(Ro),n.push(H.parse(c))):c.startsWith(pd)?(r.var.push(s),i.push(hd),n.push(c)):(r.number.push(s),i.push(Ao),n.push(parseFloat(c))),++s,vi)).split(vi);return{values:n,split:a,indexes:r,types:i}}function Vo(t){return xe(t).values}function Eo(t){const{split:e,types:n}=xe(t),r=e.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=e[o],i[o]!==void 0){const a=n[o];a===Ao?s+=ie(i[o]):a===Ro?s+=H.transform(i[o]):s+=i[o]}return s}}const gd=t=>typeof t=="number"?0:t;function yd(t){const e=Vo(t);return Eo(t)(e.map(gd))}const Ct={test:fd,parse:Vo,createTransformer:Eo,getAnimatableNone:yd},vd=new Set(["brightness","contrast","saturate","opacity"]);function xd(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(kr)||[];if(!r)return t;const i=n.replace(r,"");let s=vd.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+i+")"}const bd=/\b([a-z-]*)\(.*?\)/gu,zn={...Ct,getAnimatableNone:t=>{const e=t.match(bd);return e?e.map(xd).join(" "):t}},Td={...hr,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:zn,WebkitFilter:zn},Lr=t=>Td[t];function Mo(t,e){let n=Lr(t);return n!==zn&&(n=Ct),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Sd=new Set(["auto","none","0"]);function wd(t,e,n){let r=0,i;for(;r<t.length&&!i;){const s=t[r];typeof s=="string"&&!Sd.has(s)&&xe(s).values.length&&(i=t[r]),r++}if(i&&n)for(const s of e)t[s]=Mo(n,i)}const xi=t=>t===Xt||t===V,bi=(t,e)=>parseFloat(t.split(", ")[e]),Ti=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return bi(i[1],e);{const s=r.match(/^matrix\((.+)\)$/u);return s?bi(s[1],t):0}},Cd=new Set(["x","y","z"]),Pd=Yt.filter(t=>!Cd.has(t));function Ad(t){const e=[];return Pd.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Gt={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:Ti(4,13),y:Ti(5,14)};Gt.translateX=Gt.x;Gt.translateY=Gt.y;const Et=new Set;let Wn=!1,Un=!1;function ko(){if(Un){const t=Array.from(Et).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=Ad(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Un=!1,Wn=!1,Et.forEach(t=>t.complete()),Et.clear()}function Do(){Et.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Un=!0)})}function Rd(){Do(),ko()}class $r{constructor(e,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Et.add(this),Wn||(Wn=!0,_.read(Do),_.resolveKeyframes(ko))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;for(let s=0;s<e.length;s++)if(e[s]===null)if(s===0){const o=i==null?void 0:i.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(r&&n){const c=r.readValue(n,a);c!=null&&(e[0]=c)}e[0]===void 0&&(e[0]=a),i&&o===void 0&&i.set(e[0])}else e[s]=e[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Et.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Et.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Lo=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Vd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ed(t){const e=Vd.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const Md=4;function $o(t,e,n=1){mt(n<=Md,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=Ed(t);if(!r)return;const s=window.getComputedStyle(e).getPropertyValue(r);if(s){const o=s.trim();return Lo(o)?parseFloat(o):o}return fr(i)?$o(i,e,n+1):i}const _o=t=>e=>e.test(t),kd={test:t=>t==="auto",parse:t=>t},Bo=[Xt,V,ht,Tt,yu,gu,kd],Si=t=>Bo.find(_o(t));class Oo extends $r{constructor(e,n,r,i,s){super(e,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let l=e[c];if(typeof l=="string"&&(l=l.trim(),fr(l))){const u=$o(l,n.current);u!==void 0&&(e[c]=u),c===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!ho.has(r)||e.length!==2)return;const[i,s]=e,o=Si(i),a=Si(s);if(o!==a)if(xi(o)&&xi(a))for(let c=0;c<e.length;c++){const l=e[c];typeof l=="string"&&(e[c]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)od(e[i])&&r.push(i);r.length&&wd(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Gt[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=Gt[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([c,l])=>{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const wi=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ct.test(t)||t==="0")&&!t.startsWith("url("));function Dd(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 Ld(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const s=t[t.length-1],o=wi(i,e),a=wi(s,e);return Kt(o===a,`You are trying to animate ${e} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!o||!a?!1:Dd(t)||(n==="spring"||Sr(n))&&r}const $d=t=>t!==null;function ln(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter($d),s=e&&n!=="loop"&&e%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const _d=40;class Fo{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=pt.now(),this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>_d?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Rd(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=pt.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!Ld(e,r,i,s))if(o)this.options.duration=0;else{c&&c(ln(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const O=(t,e,n)=>t+(e-t)*n;function Sn(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 Bd({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,s=0,o=0;if(!e)i=s=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=Sn(c,a,t+1/3),s=Sn(c,a,t),o=Sn(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Ze(t,e){return n=>n>0?e:t}const wn=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},Od=[jn,Vt,Ot],Fd=t=>Od.find(e=>e.test(t));function Ci(t){const e=Fd(t);if(Kt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===Ot&&(n=Bd(n)),n}const Pi=(t,e)=>{const n=Ci(t),r=Ci(e);if(!n||!r)return Ze(t,e);const i={...n};return s=>(i.red=wn(n.red,r.red,s),i.green=wn(n.green,r.green,s),i.blue=wn(n.blue,r.blue,s),i.alpha=O(n.alpha,r.alpha,s),Vt.transform(i))},Id=(t,e)=>n=>e(t(n)),Ce=(...t)=>t.reduce(Id),qn=new Set(["none","hidden"]);function Nd(t,e){return qn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function jd(t,e){return n=>O(t,e,n)}function _r(t){return typeof t=="number"?jd:typeof t=="string"?fr(t)?Ze:H.test(t)?Pi:Ud:Array.isArray(t)?Io:typeof t=="object"?H.test(t)?Pi:zd:Ze}function Io(t,e){const n=[...t],r=n.length,i=t.map((s,o)=>_r(s)(s,e[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function zd(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=_r(t[i])(t[i],e[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Wd(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],a=t.indexes[o][i[o]],c=(n=t.values[a])!==null&&n!==void 0?n:0;r[s]=c,i[o]++}return r}const Ud=(t,e)=>{const n=Ct.createTransformer(e),r=xe(t),i=xe(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?qn.has(t)&&!i.values.length||qn.has(e)&&!r.values.length?Nd(t,e):Ce(Io(Wd(r,i),i.values),n):(Kt(!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.`),Ze(t,e))};function No(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?O(t,e,n):_r(t)(t,e)}const qd=5;function jo(t,e,n){const r=Math.max(e-qd,0);return po(n-t(r),e-r)}const B={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},Ai=.001;function Gd({duration:t=B.duration,bounce:e=B.bounce,velocity:n=B.velocity,mass:r=B.mass}){let i,s;Kt(t<=ft(B.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=vt(B.minDamping,B.maxDamping,o),t=vt(B.minDuration,B.maxDuration,yt(t)),o<1?(i=l=>{const u=l*o,d=u*t,f=u-n,h=Gn(l,o),p=Math.exp(-d);return Ai-f/h*p},s=l=>{const d=l*o*t,f=d*n+n,h=Math.pow(o,2)*Math.pow(l,2)*t,p=Math.exp(-d),g=Gn(Math.pow(l,2),o);return(-i(l)+Ai>0?-1:1)*((f-h)*p)/g}):(i=l=>{const u=Math.exp(-l*t),d=(l-n)*t+1;return-.001+u*d},s=l=>{const u=Math.exp(-l*t),d=(n-l)*(t*t);return u*d});const a=5/t,c=Kd(i,s,a);if(t=ft(t),isNaN(c))return{stiffness:B.stiffness,damping:B.damping,duration:t};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:o*2*Math.sqrt(r*l),duration:t}}}const Hd=12;function Kd(t,e,n){let r=n;for(let i=1;i<Hd;i++)r=r-t(r)/e(r);return r}function Gn(t,e){return t*Math.sqrt(1-e*e)}const Yd=["duration","bounce"],Xd=["stiffness","damping","mass"];function Ri(t,e){return e.some(n=>t[n]!==void 0)}function Zd(t){let e={velocity:B.velocity,stiffness:B.stiffness,damping:B.damping,mass:B.mass,isResolvedFromDuration:!1,...t};if(!Ri(t,Xd)&&Ri(t,Yd))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*vt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:B.mass,stiffness:i,damping:s}}else{const n=Gd(t);e={...e,...n,mass:B.mass},e.isResolvedFromDuration=!0}return e}function zo(t=B.visualDuration,e=B.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=Zd({...n,velocity:-yt(n.velocity||0)}),p=f||0,g=l/(2*Math.sqrt(c*u)),v=o-s,y=yt(Math.sqrt(c/u)),x=Math.abs(v)<5;r||(r=x?B.restSpeed.granular:B.restSpeed.default),i||(i=x?B.restDelta.granular:B.restDelta.default);let b;if(g<1){const m=Gn(y,g);b=P=>{const A=Math.exp(-g*y*P);return o-A*((p+g*y*v)/m*Math.sin(m*P)+v*Math.cos(m*P))}}else if(g===1)b=m=>o-Math.exp(-y*m)*(v+(p+y*v)*m);else{const m=y*Math.sqrt(g*g-1);b=P=>{const A=Math.exp(-g*y*P),C=Math.min(m*P,300);return o-A*((p+g*y*v)*Math.sinh(C)+m*v*Math.cosh(C))/m}}const S={calculatedDuration:h&&d||null,next:m=>{const P=b(m);if(h)a.done=m>=d;else{let A=0;g<1&&(A=m===0?ft(p):jo(b,m,P));const C=Math.abs(A)<=r,F=Math.abs(o-P)<=i;a.done=C&&F}return a.value=a.done?o:P,a},toString:()=>{const m=Math.min(io(S),Fn),P=so(A=>S.next(m*A).value,m,30);return m+"ms "+P}};return S}function Vi({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=t[0],f={done:!1,value:d},h=C=>a!==void 0&&C<a||c!==void 0&&C>c,p=C=>a===void 0?c:c===void 0||Math.abs(a-C)<Math.abs(c-C)?a:c;let g=n*e;const v=d+g,y=o===void 0?v:o(v);y!==v&&(g=y-d);const x=C=>-g*Math.exp(-C/r),b=C=>y+x(C),S=C=>{const F=x(C),j=b(C);f.done=Math.abs(F)<=l,f.value=f.done?y:j};let m,P;const A=C=>{h(f.value)&&(m=C,P=zo({keyframes:[f.value,p(f.value)],velocity:jo(b,C,f.value),damping:i,stiffness:s,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:C=>{let F=!1;return!P&&m===void 0&&(F=!0,S(C),A(C)),m!==void 0&&C>=m?P.next(C-m):(!F&&S(C),f)}}}const Jd=we(.42,0,1,1),Qd=we(0,0,.58,1),Wo=we(.42,0,.58,1),tf=t=>Array.isArray(t)&&typeof t[0]!="number",Ei={linear:Q,easeIn:Jd,easeInOut:Wo,easeOut:Qd,circIn:Mr,circInOut:wo,circOut:So,backIn:Er,backInOut:bo,backOut:xo,anticipate:To},Mi=t=>{if(wr(t)){mt(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return we(e,n,r,i)}else if(typeof t=="string")return mt(Ei[t]!==void 0,`Invalid easing type '${t}'`),Ei[t];return t};function ef(t,e,n){const r=[],i=n||No,s=t.length-1;for(let o=0;o<s;o++){let a=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||Q:e;a=Ce(c,a)}r.push(a)}return r}function nf(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const s=t.length;if(mt(s===e.length,"Both input and output ranges must be the same length"),s===1)return()=>e[0];if(s===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=ef(e,r,i),c=a.length,l=u=>{if(o&&u<t[0])return e[0];let d=0;if(c>1)for(;d<t.length-2&&!(u<t[d+1]);d++);const f=Ut(t[d],t[d+1],u);return a[d](f)};return n?u=>l(vt(t[0],t[s-1],u)):l}function rf(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Ut(0,e,r);t.push(O(n,1,i))}}function sf(t){const e=[0];return rf(e,t.length-1),e}function of(t,e){return t.map(n=>n*e)}function af(t,e){return t.map(()=>e||Wo).splice(0,t.length-1)}function se({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=tf(r)?r.map(Mi):Mi(r),s={done:!1,value:e[0]},o=of(n&&n.length===e.length?n:sf(e),t),a=nf(o,e,{ease:Array.isArray(i)?i:af(e,i)});return{calculatedDuration:t,next:c=>(s.value=a(c),s.done=c>=t,s)}}const cf=t=>{const e=({timestamp:n})=>t(n);return{start:()=>_.update(e,!0),stop:()=>wt(e),now:()=>W.isProcessing?W.timestamp:pt.now()}},lf={decay:Vi,inertia:Vi,tween:se,keyframes:se,spring:zo},uf=t=>t/100;class Br extends Fo{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||$r,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=Sr(n)?n:lf[n]||se;let c,l;process.env.NODE_ENV!=="production"&&a!==se&&mt(e.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),a!==se&&typeof e[0]!="number"&&(c=Ce(uf,No(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});s==="mirror"&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=io(u));const{calculatedDuration:d}=u,f=d+i,h=f*(r+1)-i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:c,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:h,repeatType:p,repeatDelay:g,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const y=this.currentTime-f*(this.speed>=0?1:-1),x=this.speed>=0?y<0:y>u;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let b=this.currentTime,S=s;if(h){const C=Math.min(this.currentTime,u)/d;let F=Math.floor(C),j=C%1;!j&&C>=1&&(j=1),j===1&&F--,F=Math.min(F,h+1),!!(F%2)&&(p==="reverse"?(j=1-j,g&&(j-=g/d)):p==="mirror"&&(S=o)),b=vt(0,1,j)*d}const m=x?{done:!1,value:c[0]}:S.next(b);a&&(m.value=a(m.value));let{done:P}=m;!x&&l!==null&&(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return A&&i!==void 0&&(m.value=ln(c,this.options,i)),v&&v(m.value),A&&this.finish(),m}get duration(){const{resolved:e}=this;return e?yt(e.calculatedDuration):0}get time(){return yt(this.currentTime)}set time(e){e=ft(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=yt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=cf,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const df=new Set(["opacity","clipPath","filter","transform"]);function ff(t,e,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:c}={}){const l={[e]:n};c&&(l.offset=c);const u=ao(a,i);return Array.isArray(u)&&(l.easing=u),t.animate(l,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const hf=or(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Je=10,pf=2e4;function mf(t){return Sr(t.type)||t.type==="spring"||!oo(t.ease)}function gf(t,e){const n=new Br({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let s=0;for(;!r.done&&s<pf;)r=n.sample(s),i.push(r.value),s+=Je;return{times:void 0,keyframes:i,duration:s-Je,ease:"linear"}}const Uo={anticipate:To,backInOut:bo,circInOut:wo};function yf(t){return t in Uo}class ki extends Fo{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Oo(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&Ye()&&yf(s)&&(s=Uo[s]),mf(this.options)){const{onComplete:d,onUpdate:f,motionValue:h,element:p,...g}=this.options,v=gf(e,g);e=v.keyframes,e.length===1&&(e[1]=e[0]),r=v.duration,i=v.times,s=v.ease,o="keyframes"}const u=ff(a.owner.current,c,e,{...this.options,duration:r,times:i,ease:s});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(hi(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(ln(e,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:i,type:o,ease:s,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return yt(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return yt(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ft(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return Q;const{animation:r}=n;hi(r,e)}return Q}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:u,onComplete:d,element:f,...h}=this.options,p=new Br({...h,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),g=ft(this.time);l.setWithVelocity(p.sample(g-Je).value,p.sample(g).value,Je)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=n.owner.getProps();return hf()&&r&&df.has(r)&&!c&&!l&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const vf={type:"spring",stiffness:500,damping:25,restSpeed:10},xf=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),bf={type:"keyframes",duration:.8},Tf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Sf=(t,{keyframes:e})=>e.length>2?bf:Mt.has(t)?t.startsWith("scale")?xf(e[1]):vf:Tf;function wf({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const Or=(t,e,n,r={},i,s)=>o=>{const a=Tr(r,t)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-ft(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:i};wf(a)||(u={...u,...Sf(t,u)}),u.duration&&(u.duration=ft(u.duration)),u.repeatDelay&&(u.repeatDelay=ft(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!s&&e.get()!==void 0){const f=ln(u.keyframes,a);if(f!==void 0)return _.update(()=>{u.onUpdate(f),u.onComplete()}),new zu([])}return!s&&ki.supports(u)?new ki(u):new Br(u)};function Cf({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function qo(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...c}=e;r&&(o=r);const l=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const d in c){const f=t.getValue(d,(s=t.latestValues[d])!==null&&s!==void 0?s:null),h=c[d];if(h===void 0||u&&Cf(u,d))continue;const p={delay:n,...Tr(o||{},d)};let g=!1;if(window.MotionHandoffAnimation){const y=mo(t);if(y){const x=window.MotionHandoffAnimation(y,d,_);x!==null&&(p.startTime=x,g=!0)}}Nn(t,d),f.start(Or(d,f,h,t.shouldReduceMotion&&ho.has(d)?{type:!1}:p,t,g));const v=f.animation;v&&l.push(v)}return a&&Promise.all(l).then(()=>{_.update(()=>{a&&Vr(t,a)})}),l}function Hn(t,e,n={}){var r;const i=ye(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(qo(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=s;return Pf(t,e,u+l,d,f,n)}:()=>Promise.resolve(),{when:c}=s;if(c){const[l,u]=c==="beforeChildren"?[o,a]:[a,o];return l().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function Pf(t,e,n=0,r=0,i=1,s){const o=[],a=(t.variantChildren.size-1)*r,c=i===1?(l=0)=>l*r:(l=0)=>a-l*r;return Array.from(t.variantChildren).sort(Af).forEach((l,u)=>{l.notify("AnimationStart",e),o.push(Hn(l,e,{...s,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",e)))}),Promise.all(o)}function Af(t,e){return t.sortNodePosition(e)}function Go(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(s=>Hn(t,s,n));r=Promise.all(i)}else if(typeof e=="string")r=Hn(t,e,n);else{const i=typeof e=="function"?ye(t,e,n.custom):e;r=Promise.all(qo(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}function Ho(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const Rf=cr.length;function Ko(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Ko(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Rf;n++){const r=cr[n],i=t.props[r];(pe(i)||i===!1)&&(e[r]=i)}return e}const Vf=[...ar].reverse(),Ef=ar.length;function Mf(t){return e=>Promise.all(e.map(({animation:n,options:r})=>Go(t,n,r)))}function kf(t){let e=Mf(t),n=Di(),r=!0;const i=c=>(l,u)=>{var d;const f=ye(t,u,c==="exit"?(d=t.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:p,...g}=f;l={...l,...g,...p}}return l};function s(c){e=c(t)}function o(c){const{props:l}=t,u=Ko(t.parent)||{},d=[],f=new Set;let h={},p=1/0;for(let v=0;v<Ef;v++){const y=Vf[v],x=n[y],b=l[y]!==void 0?l[y]:u[y],S=pe(b),m=y===c?x.isActive:null;m===!1&&(p=v);let P=b===u[y]&&b!==l[y]&&S;if(P&&r&&t.manuallyAnimateOnMount&&(P=!1),x.protectedKeys={...h},!x.isActive&&m===null||!b&&!x.prevProp||an(b)||typeof b=="boolean")continue;const A=Df(x.prevProp,b);let C=A||y===c&&x.isActive&&!P&&S||v>p&&S,F=!1;const j=Array.isArray(b)?b:[b];let et=j.reduce(i(y),{});m===!1&&(et={});const{prevResolvedValues:Ae={}}=x,dn={...Ae,...et},Re=z=>{C=!0,f.has(z)&&(F=!0,f.delete(z)),x.needsAnimating[z]=!0;const rt=t.getValue(z);rt&&(rt.liveStyle=!1)};for(const z in dn){const rt=et[z],Zt=Ae[z];if(h.hasOwnProperty(z))continue;let kt=!1;On(rt)&&On(Zt)?kt=!Ho(rt,Zt):kt=rt!==Zt,kt?rt!=null?Re(z):f.add(z):rt!==void 0&&f.has(z)?Re(z):x.protectedKeys[z]=!0}x.prevProp=b,x.prevResolvedValues=et,x.isActive&&(h={...h,...et}),r&&t.blockInitialAnimation&&(C=!1),C&&(!(P&&A)||F)&&d.push(...j.map(z=>({animation:z,options:{type:y}})))}if(f.size){const v={};if(typeof l.initial!="boolean"){const y=ye(t,Array.isArray(l.initial)?l.initial[0]:l.initial);y&&y.transition&&(v.transition=y.transition)}f.forEach(y=>{const x=t.getBaseTarget(y),b=t.getValue(y);b&&(b.liveStyle=!0),v[y]=x??null}),d.push({animation:v})}let g=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(g=!1),r=!1,g?e(d):Promise.resolve()}function a(c,l){var u;if(n[c].isActive===l)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(c,l)}),n[c].isActive=l;const d=o(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Di(),r=!0}}}function Df(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ho(e,t):!1}function At(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Di(){return{animate:At(!0),whileInView:At(),whileHover:At(),whileTap:At(),whileDrag:At(),whileFocus:At(),exit:At()}}class Pt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Lf extends Pt{constructor(e){super(e),e.animationState||(e.animationState=kf(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();an(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(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let $f=0;class _f extends Pt{constructor(){super(...arguments),this.id=$f++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)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 Bf={animation:{Feature:Lf},exit:{Feature:_f}};function be(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function Pe(t){return{point:{x:t.pageX,y:t.pageY}}}const Of=t=>e=>Cr(e)&&t(e,Pe(e));function Ft(t,e,n,r){return be(t,e,Of(n),r)}function Yo({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Ff({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function If(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Xo=1e-4,Nf=1-Xo,jf=1+Xo,Zo=.01,zf=0-Zo,Wf=0+Zo;function X(t){return t.max-t.min}function Uf(t,e,n){return Math.abs(t-e)<=n}function Li(t,e,n,r=.5){t.origin=r,t.originPoint=O(e.min,e.max,t.origin),t.scale=X(n)/X(e),t.translate=O(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Nf&&t.scale<=jf||isNaN(t.scale))&&(t.scale=1),(t.translate>=zf&&t.translate<=Wf||isNaN(t.translate))&&(t.translate=0)}function oe(t,e,n,r){Li(t.x,e.x,n.x,r?r.originX:void 0),Li(t.y,e.y,n.y,r?r.originY:void 0)}function $i(t,e,n){t.min=n.min+e.min,t.max=t.min+X(e)}function qf(t,e,n){$i(t.x,e.x,n.x),$i(t.y,e.y,n.y)}function _i(t,e,n){t.min=e.min-n.min,t.max=t.min+X(e)}function ae(t,e,n){_i(t.x,e.x,n.x),_i(t.y,e.y,n.y)}const Bi=()=>({translate:0,scale:1,origin:0,originPoint:0}),It=()=>({x:Bi(),y:Bi()}),Oi=()=>({min:0,max:0}),I=()=>({x:Oi(),y:Oi()});function st(t){return[t("x"),t("y")]}function Cn(t){return t===void 0||t===1}function Kn({scale:t,scaleX:e,scaleY:n}){return!Cn(t)||!Cn(e)||!Cn(n)}function Rt(t){return Kn(t)||Jo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Jo(t){return Fi(t.x)||Fi(t.y)}function Fi(t){return t&&t!=="0%"}function Qe(t,e,n){const r=t-n,i=e*r;return n+i}function Ii(t,e,n,r,i){return i!==void 0&&(t=Qe(t,i,r)),Qe(t,n,r)+e}function Yn(t,e=0,n=1,r,i){t.min=Ii(t.min,e,n,r,i),t.max=Ii(t.max,e,n,r,i)}function Qo(t,{x:e,y:n}){Yn(t.x,e.translate,e.scale,e.originPoint),Yn(t.y,n.translate,n.scale,n.originPoint)}const Ni=.999999999999,ji=1.0000000000001;function Gf(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&jt(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Qo(t,o)),r&&Rt(s.latestValues)&&jt(t,s.latestValues))}e.x<ji&&e.x>Ni&&(e.x=1),e.y<ji&&e.y>Ni&&(e.y=1)}function Nt(t,e){t.min=t.min+e,t.max=t.max+e}function zi(t,e,n,r,i=.5){const s=O(t.min,t.max,i);Yn(t,e,n,s,r)}function jt(t,e){zi(t.x,e.x,e.scaleX,e.scale,e.originX),zi(t.y,e.y,e.scaleY,e.scale,e.originY)}function ta(t,e){return Yo(If(t.getBoundingClientRect(),e))}function Hf(t,e,n){const r=ta(t,n),{scroll:i}=e;return i&&(Nt(r.x,i.offset.x),Nt(r.y,i.offset.y)),r}const Wi=(t,e)=>Math.abs(t-e);function Kf(t,e){const n=Wi(t.x,e.x),r=Wi(t.y,e.y);return Math.sqrt(n**2+r**2)}class ea{constructor(e,n,{transformPagePoint:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=An(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=Kf(u.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:h}=u,{timestamp:p}=W;this.history.push({...h,timestamp:p});const{onStart:g,onMove:v}=this.handlers;d||(g&&g(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{if(u.target instanceof Element&&u.target.hasPointerCapture&&u.pointerId!==void 0)try{if(!u.target.hasPointerCapture(u.pointerId))return}catch{}this.lastMoveEvent=u,this.lastMoveEventInfo=Pn(d,this.transformPagePoint),_.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{Xe(u,"release"),this.end();const{onEnd:f,onSessionEnd:h,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=An(u.type==="pointercancel"||u.type==="lostpointercapture"?this.lastMoveEventInfo:Pn(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,g),h&&h(u,g)},!Cr(e))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r;const s=Pe(e),o=Pn(s,this.transformPagePoint),{point:a}=o,{timestamp:c}=W;this.history=[{...a,timestamp:c}];const{onSessionStart:l}=n;l&&l(e,An(o,this.history)),Xe(e,"set"),this.removeListeners=Ce(Ft(e.currentTarget,"pointermove",this.handlePointerMove),Ft(e.currentTarget,"pointerup",this.handlePointerUp),Ft(e.currentTarget,"pointercancel",this.handlePointerUp),Ft(e.currentTarget,"lostpointercapture",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),wt(this.updatePoint)}}function Pn(t,e){return e?{point:e(t.point)}:t}function Ui(t,e){return{x:t.x-e.x,y:t.y-e.y}}function An({point:t},e){return{point:t,delta:Ui(t,na(e)),offset:Ui(t,Yf(e)),velocity:Xf(e,.1)}}function Yf(t){return t[0]}function na(t){return t[t.length-1]}function Xf(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=na(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>ft(e)));)n--;if(!r)return{x:0,y:0};const s=yt(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Zf(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?O(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?O(n,t,r.max):Math.min(t,n)),t}function qi(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 Jf(t,{top:e,left:n,bottom:r,right:i}){return{x:qi(t.x,n,i),y:qi(t.y,e,r)}}function Gi(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function Qf(t,e){return{x:Gi(t.x,e.x),y:Gi(t.y,e.y)}}function th(t,e){let n=.5;const r=X(t),i=X(e);return i>r?n=Ut(e.min,e.max-r,t.min):r>i&&(n=Ut(t.min,t.max-i,e.min)),vt(0,1,n)}function eh(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 Xn=.35;function nh(t=Xn){return t===!1?t=0:t===!0&&(t=Xn),{x:Hi(t,"left","right"),y:Hi(t,"top","bottom")}}function Hi(t,e,n){return{min:Ki(t,e),max:Ki(t,n)}}function Ki(t,e){return typeof t=="number"?t:t[e]||0}const rh=new WeakMap;class ih{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=I(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Pe(u).point)},s=(u,d)=>{const{drag:f,dragPropagation:h,onDragStart:p}=this.getProps();if(f&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Zu(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),st(v=>{let y=this.getAxisMotionValue(v).get()||0;if(ht.test(y)){const{projection:x}=this.visualElement;if(x&&x.layout){const b=x.layout.layoutBox[v];b&&(y=X(b)*(parseFloat(y)/100))}}this.originPoint[v]=y}),p&&_.postRender(()=>p(u,d)),Nn(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:p,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:v}=d;if(h&&this.currentDirection===null){this.currentDirection=sh(v),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),g&&g(u,d)},a=(u,d)=>this.stop(u,d),c=()=>st(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new ea(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&_.postRender(()=>s(e,n))}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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!$e(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=Zf(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;n&&Bt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Jf(i.layoutBox,n):this.constraints=!1,this.elastic=nh(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&st(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=eh(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Bt(e))return!1;const r=e.current;mt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Hf(r,i.root,this.visualElement.getTransformPagePoint());let o=Qf(i.layout.layoutBox,s);if(n){const a=n(Ff(o));this.hasMutatedConstraints=!!a,a&&(o=Yo(a))}return o}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=st(u=>{if(!$e(u,n,this.currentDirection))return;let d=c[u]||{};o&&(d={min:0,max:0});const f=i?200:1e6,h=i?40:1e7,p={type:"inertia",velocity:r?e[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(u,p)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Nn(this.visualElement,e),r.start(Or(e,r,0,n,this.visualElement,!1))}stopAnimation(){st(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){st(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){st(n=>{const{drag:r}=this.getProps();if(!$e(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(e[n]-O(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bt(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};st(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();i[o]=th({min:c,max:c},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),st(o=>{if(!$e(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(O(c,l,i[o]))})}addListeners(){if(!this.visualElement.current)return;rh.set(this.visualElement,this);const e=this.visualElement.current,n=Ft(e,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Bt(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),_.read(r);const o=be(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(st(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Xn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function $e(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 oh extends Pt{constructor(e){super(e),this.removeGroupControls=Q,this.removeListeners=Q,this.controls=new ih(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Q}unmount(){this.removeGroupControls(),this.removeListeners()}}const Yi=t=>(e,n)=>{t&&_.postRender(()=>t(e,n))};class ah extends Pt{constructor(){super(...arguments),this.removePointerDownListener=Q}onPointerDown(e){this.session=new ea(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Yi(e),onStart:Yi(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&_.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Ft(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 We={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xi(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const te={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(V.test(t))t=parseFloat(t);else return t;const n=Xi(t,e.target.x),r=Xi(t,e.target.y);return`${n}% ${r}%`}},ch={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Ct.parse(t);if(i.length>5)return r;const s=Ct.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=c;const l=O(a,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),s(i)}};class lh extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=e;mu(uh),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),We.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||_.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ur.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ra(t){const[e,n]=Hl(),r=T.useContext(Bs);return Ue.jsx(lh,{...t,layoutGroup:r,switchLayoutGroup:T.useContext(qs),isPresent:e,safeToRemove:n})}const uh={borderRadius:{...te,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomLeftRadius:te,borderBottomRightRadius:te,boxShadow:ch};function dh(t,e,n){const r=K(t)?t:ve(t);return r.start(Or("",r,e,n)),r.animation}function fh(t){return t instanceof SVGElement&&t.tagName!=="svg"}const hh=(t,e)=>t.depth-e.depth;class ph{constructor(){this.children=[],this.isDirty=!1}add(e){Pr(this.children,e),this.isDirty=!0}remove(e){Ar(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(hh),this.isDirty=!1,this.children.forEach(e)}}function mh(t,e){const n=pt.now(),r=({timestamp:i})=>{const s=i-n;s>=e&&(wt(r),t(s-e))};return _.read(r,!0),()=>wt(r)}const ia=["TopLeft","TopRight","BottomLeft","BottomRight"],gh=ia.length,Zi=t=>typeof t=="string"?parseFloat(t):t,Ji=t=>typeof t=="number"||V.test(t);function yh(t,e,n,r,i,s){i?(t.opacity=O(0,n.opacity!==void 0?n.opacity:1,vh(r)),t.opacityExit=O(e.opacity!==void 0?e.opacity:1,0,xh(r))):s&&(t.opacity=O(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<gh;o++){const a=`border${ia[o]}Radius`;let c=Qi(e,a),l=Qi(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||Ji(c)===Ji(l)?(t[a]=Math.max(O(Zi(c),Zi(l),r),0),(ht.test(l)||ht.test(c))&&(t[a]+="%")):t[a]=l}(e.rotate||n.rotate)&&(t.rotate=O(e.rotate||0,n.rotate||0,r))}function Qi(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const vh=sa(0,.5,So),xh=sa(.5,.95,Q);function sa(t,e,n){return r=>r<t?0:r>e?1:n(Ut(t,e,r))}function ts(t,e){t.min=e.min,t.max=e.max}function it(t,e){ts(t.x,e.x),ts(t.y,e.y)}function es(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ns(t,e,n,r,i){return t-=e,t=Qe(t,1/n,r),i!==void 0&&(t=Qe(t,1/i,r)),t}function bh(t,e=0,n=1,r=.5,i,s=t,o=t){if(ht.test(e)&&(e=parseFloat(e),e=O(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=O(s.min,s.max,r);t===s&&(a-=e),t.min=ns(t.min,e,n,a,i),t.max=ns(t.max,e,n,a,i)}function rs(t,e,[n,r,i],s,o){bh(t,e[n],e[r],e[i],e.scale,s,o)}const Th=["x","scaleX","originX"],Sh=["y","scaleY","originY"];function is(t,e,n,r){rs(t.x,e,Th,n?n.x:void 0,r?r.x:void 0),rs(t.y,e,Sh,n?n.y:void 0,r?r.y:void 0)}function ss(t){return t.translate===0&&t.scale===1}function oa(t){return ss(t.x)&&ss(t.y)}function os(t,e){return t.min===e.min&&t.max===e.max}function wh(t,e){return os(t.x,e.x)&&os(t.y,e.y)}function as(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function aa(t,e){return as(t.x,e.x)&&as(t.y,e.y)}function cs(t){return X(t.x)/X(t.y)}function ls(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Ch{constructor(){this.members=[]}add(e){Pr(this.members,e),e.scheduleRender()}remove(e){if(Ar(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 r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ph(t,e,n){let r="";const i=t.x.translate/e.x,s=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:p}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),p&&(r+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const Rn=["","X","Y","Z"],Ah={visibility:"hidden"},us=1e3;let Rh=0;function Vn(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function ca(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=mo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",_,!(i||s))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&ca(r)}function la({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=Rh++,this.animationId=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(Mh),this.nodes.forEach(_h),this.nodes.forEach(Bh),this.nodes.forEach(kh)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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 ph)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Rr),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const c=this.eventHandlers.get(o);c&&c.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=fh(o),this.instance=o;const{layoutId:c,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(l||c)&&(this.isLayoutDirty=!0),t){let d;const f=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=mh(f,250),We.hasAnimatedSinceResize&&(We.hasAnimatedSinceResize=!1,this.nodes.forEach(fs))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||jh,{onLayoutAnimationStart:v,onLayoutAnimationComplete:y}=u.getProps(),x=!this.targetLayout||!aa(this.targetLayout,p),b=!f&&h;if(this.options.layoutRoot||this.resumeFrom||b||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,b);const S={...Tr(g,"layout"),onPlay:v,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||fs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,wt(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(Oh),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ca(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ds);return}this.isUpdating||this.nodes.forEach(Lh),this.isUpdating=!1,this.nodes.forEach($h),this.nodes.forEach(Vh),this.nodes.forEach(Eh),this.clearAllSnapshots();const a=pt.now();W.delta=vt(0,1e3/60,a-W.timestamp),W.timestamp=a,W.isProcessing=!0,xn.update.process(W),xn.preRender.process(W),xn.render.process(W),W.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ur.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Dh),this.sharedNodes.forEach(Fh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,_.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){_.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!X(this.snapshot.measuredBox.x)&&!X(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 o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=I(),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,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!oa(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;o&&(a||Rt(this.latestValues)||u)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return o&&(c=this.removeTransform(c)),zh(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return I();const c=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(Wh))){const{scroll:u}=this.root;u&&(Nt(c.x,u.offset.x),Nt(c.y,u.offset.y))}return c}removeElementScroll(o){var a;const c=I();if(it(c,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return c;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&it(c,o),Nt(c.x,d.offset.x),Nt(c.y,d.offset.y))}return c}applyTransform(o,a=!1){const c=I();it(c,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&jt(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Rt(u.latestValues)&&jt(c,u.latestValues)}return Rt(this.latestValues)&&jt(c,this.latestValues),c}removeTransform(o){const a=I();it(a,o);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!Rt(l.latestValues))continue;Kn(l.latestValues)&&l.updateSnapshot();const u=I(),d=l.measurePageBox();it(u,d),is(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Rt(this.latestValues)&&is(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==W.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==c;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=W.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=I(),this.relativeTargetOrigin=I(),ae(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=I(),this.targetWithTransforms=I()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qf(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):it(this.target,this.layout.layoutBox),Qo(this.target,this.targetDelta)):it(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=I(),this.relativeTargetOrigin=I(),ae(this.relativeTargetOrigin,this.target,h.target),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Kn(this.parent.latestValues)||Jo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),c=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(l=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===W.timestamp&&(l=!1),l)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;it(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;Gf(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=I());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(es(this.prevProjectionDelta.x,this.projectionDelta.x),es(this.prevProjectionDelta.y,this.projectionDelta.y)),oe(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!ls(this.projectionDelta.x,this.prevProjectionDelta.x)||!ls(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=It(),this.projectionDelta=It(),this.projectionDeltaWithTransform=It()}setAnimationOrigin(o,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},d=It();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=I(),h=c?c.source:void 0,p=this.layout?this.layout.source:void 0,g=h!==p,v=this.getStack(),y=!v||v.members.length<=1,x=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(Nh));this.animationProgress=0;let b;this.mixTargetDelta=S=>{const m=S/1e3;hs(d.x,o.x,m),hs(d.y,o.y,m),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ae(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ih(this.relativeTarget,this.relativeTargetOrigin,f,m),b&&wh(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=I()),it(b,this.relativeTarget)),g&&(this.animationValues=u,yh(u,l,this.latestValues,m,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(wt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_.update(()=>{We.hasAnimatedSinceResize=!0,this.currentAnimation=dh(0,us,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(us),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&ua(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||I();const d=X(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+d;const f=X(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}it(a,c),jt(a,u),oe(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Ch),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Vn("z",o,l,this.animationValues);for(let u=0;u<Rn.length;u++)Vn(`rotate${Rn[u]}`,o,l,this.animationValues),Vn(`skew${Rn[u]}`,o,l,this.animationValues);o.render();for(const u in l)o.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);o.scheduleRender()}getProjectionStyles(o){var a,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ah;const l={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=je(o==null?void 0:o.pointerEvents)||"",l.transform=u?u(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=je(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Rt(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=Ph(this.projectionDeltaWithTransform,this.treeScale,f),u&&(l.transform=u(f,l.transform));const{x:h,y:p}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,d.animationValues?l.opacity=d===this?(c=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:l.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const g in me){if(f[g]===void 0)continue;const{correct:v,applyTo:y,isCSSVariable:x}=me[g],b=l.transform==="none"?f[g]:v(f[g],d);if(y){const S=y.length;for(let m=0;m<S;m++)l[y[m]]=b}else x?this.options.visualElement.renderState.vars[g]=b:l[g]=b}return this.options.layoutId&&(l.pointerEvents=d===this?je(o==null?void 0:o.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ds),this.root.sharedNodes.clear()}}}function Vh(t){t.updateLayout()}function Eh(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;s==="size"?st(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=X(f);f.min=r[d].min,f.max=f.min+h}):ua(s,n.layoutBox,r)&&st(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=X(r[d]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+h)});const a=It();oe(a,r,n.layoutBox);const c=It();o?oe(c,t.applyTransform(i,!0),n.measuredBox):oe(c,r,n.layoutBox);const l=!oa(a);let u=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const p=I();ae(p,n.layoutBox,f.layoutBox);const g=I();ae(g,r,h.layoutBox),aa(p,g)||(u=!0),d.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function Mh(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 kh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Dh(t){t.clearSnapshot()}function ds(t){t.clearMeasurements()}function Lh(t){t.isLayoutDirty=!1}function $h(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function fs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function _h(t){t.resolveTargetDelta()}function Bh(t){t.calcProjection()}function Oh(t){t.resetSkewAndRotation()}function Fh(t){t.removeLeadSnapshot()}function hs(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 ps(t,e,n,r){t.min=O(e.min,n.min,r),t.max=O(e.max,n.max,r)}function Ih(t,e,n,r){ps(t.x,e.x,n.x,r),ps(t.y,e.y,n.y,r)}function Nh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const jh={duration:.45,ease:[.4,0,.1,1]},ms=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),gs=ms("applewebkit/")&&!ms("chrome/")?Math.round:Q;function ys(t){t.min=gs(t.min),t.max=gs(t.max)}function zh(t){ys(t.x),ys(t.y)}function ua(t,e,n){return t==="position"||t==="preserve-aspect"&&!Uf(cs(e),cs(n),.2)}function Wh(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Uh=la({attachResizeListener:(t,e)=>be(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),En={current:void 0},da=la({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!En.current){const t=new Uh({});t.mount(window),t.setOptions({layoutScroll:!0}),En.current=t}return En.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),qh={pan:{Feature:ah},drag:{Feature:oh,ProjectionNode:da,MeasureLayout:ra}};function vs(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&_.postRender(()=>s(e,Pe(e)))}class Gh extends Pt{mount(){const{current:e}=this.node;e&&(this.unmount=qu(e,(n,r)=>(vs(this.node,r,"Start"),i=>vs(this.node,i,"End"))))}unmount(){}}class Hh extends Pt{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=Ce(be(this.node.current,"focus",()=>this.onFocus()),be(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xs(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&_.postRender(()=>s(e,Pe(e)))}class Kh extends Pt{mount(){const{current:e}=this.node;e&&(this.unmount=Yu(e,(n,r)=>(xs(this.node,r,"Start"),(i,{success:s})=>xs(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Zn=new WeakMap,Mn=new WeakMap,Yh=t=>{const e=Zn.get(t.target);e&&e(t)},Xh=t=>{t.forEach(Yh)};function Zh({root:t,...e}){const n=t||document;Mn.has(n)||Mn.set(n,{});const r=Mn.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(Xh,{root:t,...e})),r[i]}function Jh(t,e,n){const r=Zh(e);return Zn.set(t,n),r.observe(t),()=>{Zn.delete(t),r.unobserve(t)}}const Qh={some:0,all:1};class tp extends Pt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=e,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Qh[i]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,s&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=l?u:d;f&&f(c)};return Jh(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(ep(e,n))&&this.startObserver()}unmount(){}}function ep({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const np={inView:{Feature:tp},tap:{Feature:Kh},focus:{Feature:Hh},hover:{Feature:Gh}},rp={layout:{ProjectionNode:da,MeasureLayout:ra}},Jn={current:null},fa={current:!1};function ip(){if(fa.current=!0,!!sr)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Jn.current=t.matches;t.addListener(e),e()}else Jn.current=!1}const sp=[...Bo,H,Ct],op=t=>sp.find(_o(t)),ap=new WeakMap;function cp(t,e,n){for(const r in e){const i=e[r],s=n[r];if(K(i))t.addValue(r,i),process.env.NODE_ENV==="development"&&sn(i.version==="12.4.7",`Attempting to mix Motion versions ${i.version} with 12.4.7 may not work as expected.`);else if(K(s))t.addValue(r,ve(i,{owner:t}));else if(s!==i)if(t.hasValue(r)){const o=t.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(r);t.addValue(r,ve(o!==void 0?o:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const bs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class lp{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=$r,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=pt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,_.render(this.render,!1,!0))};const{latestValues:c,renderState:l,onUpdate:u}=o;this.onUpdate=u,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=cn(n),this.isVariantNode=Ws(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const p=f[h];c[h]!==void 0&&K(p)&&p.set(c[h],!1)}}mount(e){this.current=e,ap.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,r)=>this.bindToMotionValue(r,n)),fa.current||ip(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Jn.current,process.env.NODE_ENV!=="production"&&sn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),wt(this.notifyUpdate),wt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(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}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Mt.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&_.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),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 qt){const n=qt[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):I()}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 r=0;r<bs.length;r++){const i=bs[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=e[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=cp(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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 r=this.values.get(e);n!==r&&(r&&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 r=this.values.get(e);return r===void 0&&n!==void 0&&(r=ve(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Lo(i)||Co(i))?i=parseFloat(i):!op(i)&&Ct.test(n)&&(i=Mo(e,n)),this.setBaseTarget(e,K(i)?i.get():i)),K(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=xr(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!K(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 Rr),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class ha extends lp{constructor(){super(...arguments),this.KeyframeResolver=Oo}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:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;K(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function up(t){return window.getComputedStyle(t)}class dp extends ha{constructor(){super(...arguments),this.type="html",this.renderInstance=to}readValueFromInstance(e,n){if(Mt.has(n)){const r=Lr(n);return r&&r.default||0}else{const r=up(e),i=(dr(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ta(e,n)}build(e,n,r){pr(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return br(e,n,r)}}class fp extends ha{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=I,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Qs(this.current,this.renderState)}}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Mt.has(n)){const r=Lr(n);return r&&r.default||0}return n=eo.has(n)?n:lr(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return ro(e,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&_.postRender(this.updateDimensions)}build(e,n,r){yr(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){no(e,n,r,i)}mount(e){this.isSVGTag=vr(e.tagName),super.mount(e)}}const hp=(t,e)=>gr(t)?new fp(e):new dp(e,{allowProjection:t!==T.Fragment}),pp=Iu({...Bf,...np,...qh,...rp},hp),mp=eu(pp);function gp(t){t.values.forEach(e=>e.stop())}function Qn(t,e){[...e].reverse().forEach(r=>{const i=t.getVariant(r);i&&Vr(t,i),t.variantChildren&&t.variantChildren.forEach(s=>{Qn(s,e)})})}function yp(t,e){if(Array.isArray(e))return Qn(t,e);if(typeof e=="string")return Qn(t,[e]);Vr(t,e)}function vp(){let t=!1;const e=new Set,n={subscribe(r){return e.add(r),()=>void e.delete(r)},start(r,i){mt(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const s=[];return e.forEach(o=>{s.push(Go(o,r,{transitionOverride:i}))}),Promise.all(s)},set(r){return mt(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(i=>{yp(i,r)})},stop(){e.forEach(r=>{gp(r)})},mount(){return t=!0,()=>{t=!1,n.stop()}}};return n}function xp(){const t=Os(vp);return Is(t.mount,[]),t}const bp=xp,Tp={some:0,all:1};function Sp(t,e,{root:n,margin:r,amount:i="some"}={}){const s=lo(t),o=new WeakMap,a=l=>{l.forEach(u=>{const d=o.get(u.target);if(u.isIntersecting!==!!d)if(u.isIntersecting){const f=e(u.target,u);typeof f=="function"?o.set(u.target,f):c.unobserve(u.target)}else typeof d=="function"&&(d(u),o.delete(u.target))})},c=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof i=="number"?i:Tp[i]});return s.forEach(l=>c.observe(l)),()=>c.disconnect()}function wp(t,{root:e,margin:n,amount:r,once:i=!1,initial:s=!1}={}){const[o,a]=T.useState(s);return T.useEffect(()=>{if(!t.current||i&&o)return;const c=()=>(a(!0),i?void 0:()=>a(!1)),l={root:e&&e.current||void 0,margin:n,amount:r};return Sp(t.current,c,l)},[e,t,n,i,r]),o}var Cp="var(--_14qm28z0)",Pp="var(--_14qm28z1)",Ap="var(--_14qm28z2)",Rp="var(--_14qm28z3)",Vp="var(--_14qm28z4)",Ep="var(--_14qm28z5)",Mp="var(--_14qm28z6)",kp="var(--_14qm28z7)",Dp="var(--_14qm28z8)",Lp="var(--_14qm28z9)",$p={width:"100%",display:"flex",alignItems:"center",position:"relative",flexDirection:"column",animation:"background 0.5s ease-in-out",color:"var(--_14qm28z2)",zIndex:"var(--_14qm28z1)",minHeight:"var(--_14qm28z7)",paddingTop:"var(--_14qm28z3)",paddingLeft:"var(--_14qm28z4)",paddingRight:"var(--_14qm28z5)",paddingBottom:"var(--_14qm28z6)",background:"var(--_14qm28z9)",justifyContent:"var(--_14qm28z8)"},_p="_14qm28zb",ce=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(ce||{});const Bp={hidden:{opacity:0},visible:{opacity:1,transition:{delay:.5,bounce:.2,duration:1,type:"spring"}}},Op=({children:t,className:e,zIndex:n=20,id:r=void 0,isDark:i=!1,align:s=ce.Left,isFullHeight:o=!1,noPaddingTop:a=!1,theme:c=$,backgroundColor:l="",noPaddingBottom:u=!1})=>{const d=bp(),f=ct(),h=T.createRef(),{colors:p,header:{height:g},footer:{height:v},global:{paddingRight:y,paddingLeft:x},section:{paddingTop:b,paddingBottom:S}}=c,m=wp(h,{margin:"0px 0px 0px 0px"});return T.useEffect(()=>{m&&d.start("visible")},[d,m]),w("section",{id:r,ref:h,className:e,style:L({[Pp]:`${n}`,[Lp]:l,[Dp]:o?"center":"flex-start",[Ap]:i?p.defaultLightText:p.defaultText,[kp]:o?`calc(100vh - ${g[f]}px - ${v[f]}px)`:"0",[Vp]:`${x[f]}px`,[Ep]:`${y[f]}px`,[Rp]:a?"0px":`${b[f]}px`,[Mp]:u?"0px":`${S[f]}px`}),children:w(mp.div,{className:_p,initial:"hidden",animate:d,variants:Bp,style:L({[Cp]:s===ce.Center?"center":s===ce.Right?"right":"left"}),children:t})})};var Fp={navGap:"var(--_1h6zt340)"},Ip="_1h6zt341";const Np=({children:t,theme:e=$,className:n})=>{const r=ct(),{nav:{gap:i}}=e;return w("nav",{className:n,style:L({[Fp.navGap]:`${i[r]}px`}),children:t})};var jp={navSocialGap:"var(--g7q46n0)"},zp="g7q46n1",Wp="g7q46n2";const Up=({navSocial:t,className:e,theme:n=$})=>{const r=ct(),{navSocial:{gap:i}}=n;return w("div",{className:e,style:L({[jp.navSocialGap]:`${i[r]}px`}),children:t.map(({name:s,link:o},a)=>{const c=s[0].toUpperCase()+s.slice(1);return w("div",{className:Wp,children:w("a",{target:"_blank",rel:"noopener noreferrer","aria-label":s,href:o,children:w(St,{theme:n,icon:`social${c}`})})},`navSocialItem-${a}`)})})};var qp={navLegalGap:"var(--vehv9e0)"},Gp="vehv9e1";const Hp=({children:t,className:e,theme:n=$})=>{const r=ct(),{navLegal:{gap:i}}=n;return w("nav",{className:e,style:L({[qp.navLegalGap]:`${i[r]}px`}),children:t})};var kn={formWidth:"var(--dvq5w80)",formPadding:"var(--dvq5w81)",formBackgroundColor:"var(--dvq5w82)"};const Kp=({action:t,children:e,theme:n=$,className:r})=>w("form",{className:r,action:typeof t=="string"?t:void 0,style:L({[kn.formWidth]:`${n.form.width}px`,[kn.formPadding]:`${n.form.padding[0]}px`,[kn.formBackgroundColor]:n.form.backgroundColor}),children:e});var _e={rowGap:"var(--_223sdz0)",rowPadding:"var(--_223sdz1)",rowFontSize:"var(--_223sdz2)",rowJustifyContent:"var(--_223sdz3)"},le=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(le||{});const Yp=({children:t,theme:e=$,className:n,align:r=le.Left,isMessage:i=!1,isActions:s=!1})=>w("div",{className:n,style:L({[_e.rowGap]:`${e.form.row.gap[0]}px`,[_e.rowPadding]:`${e.form.row.padding[0]}px`,[_e.rowFontSize]:i?"0.8em":"inherit",[_e.rowJustifyContent]:r===le.Right?"flex-end":r===le.Center?"center":"flex-start"}),children:t});var xt={font:"var(--k6gj0i0)",color:"var(--k6gj0i1)",border:"var(--k6gj0i2)",borderRadius:"var(--k6gj0i3)",backgroundColor:"var(--k6gj0i4)",padding:"var(--k6gj0i5)",placeholderColor:"var(--k6gj0i6)",placeholderOpacity:"var(--k6gj0i7)"},Xp="k6gj0i9",un=(t=>(t.Text="text",t.Email="email",t.Search="search",t.Number="number",t.Hidden="hidden",t.Password="password",t))(un||{});const pa=({name:t,value:e="",type:n=un.Text,disabled:r=!1,placeholder:i="",theme:s=$,onChange:o=void 0,className:a})=>w("input",{id:t,name:t,type:n,defaultValue:e,disabled:r,placeholder:i,onChange:o,className:a,style:L({[xt.font]:`var(--font-${s.form.input.font})`,[xt.color]:s.form.input.color,[xt.border]:s.form.input.border,[xt.borderRadius]:`${s.form.input.borderRadius}`,[xt.backgroundColor]:s.form.input.backgroundColor,[xt.padding]:`${s.form.input.padding[0]}px`,[xt.placeholderColor]:s.form.input.placeholder.color,[xt.placeholderOpacity]:`${s.form.input.placeholder.opacity}`})});var bt={font:"var(--l5ei120)",color:"var(--l5ei121)",border:"var(--l5ei122)",borderRadius:"var(--l5ei123)",padding:"var(--l5ei124)",backgroundColor:"var(--l5ei125)",placeholderColor:"var(--l5ei126)",placeholderOpacity:"var(--l5ei127)"},Zp="l5ei129";const ma=({name:t,value:e,rows:n=2,disabled:r=!1,placeholder:i="",onChange:s=void 0,theme:o=$,className:a})=>w("textarea",{id:t,name:t,rows:n,className:a,defaultValue:e,placeholder:i,disabled:r,onChange:s,style:L({[bt.font]:`var(--font-${o.form.textarea.font})`,[bt.color]:o.form.textarea.color,[bt.border]:o.form.textarea.border,[bt.borderRadius]:`${o.form.textarea.borderRadius}px`,[bt.padding]:`${o.form.textarea.padding[0]}px`,[bt.backgroundColor]:o.form.textarea.backgroundColor,[bt.placeholderColor]:o.form.textarea.placeholder.color,[bt.placeholderOpacity]:`${o.form.textarea.placeholder.opacity}`})});var Be={font:"var(--_1s956dc0)",color:"var(--_1s956dc1)",fontWeight:"var(--_1s956dc2)",paddingBottom:"var(--_1s956dc3)"},Jp="_1s956dc5";const ga=({name:t,label:e,required:n=!1,theme:r=$,className:i})=>at("label",{htmlFor:t,className:i,style:L({[Be.font]:`var(--font-${r.form.label.font})`,[Be.color]:r.form.label.color,[Be.fontWeight]:`${r.form.label.fontWeight}`,[Be.paddingBottom]:`${r.form.label.paddingBottom}px`}),children:[e,n?w("span",{children:" *"}):null]});var Qp={errorColor:"var(--_1e95ziv0)"},Fr=(t=>(t.Textarea="textarea",t))(Fr||{});const tm=({name:t,label:e="",value:n="",rows:r=2,required:i=!1,disabled:s=!1,placeholder:o="",errors:a=void 0,theme:c=$,onChange:l=void 0,type:u=un.Text,className:d})=>at("div",{className:d,style:L({[Qp.errorColor]:c.form.error.color}),children:[e&&w(ga,{className:"",theme:c,label:e,name:t,required:i}),u===Fr.Textarea?w(ma,{className:"",value:n,rows:r,name:t,theme:c,onChange:l,disabled:s,placeholder:o}):w(pa,{className:"",value:n,type:u,name:t,theme:c,onChange:l,disabled:s,placeholder:o}),a&&w("div",{children:a instanceof Array?a.map((f,h)=>w("span",{children:f},h)):a})]});var gt={overlayBlur:"var(--pewdww0)",overlayOpacity:"var(--pewdww1)",overlayBackgroundColor:"var(--pewdww2)",width:"var(--pewdww3)",backgroundColor:"var(--pewdww4)",borderRadius:"var(--pewdww5)",borders:"var(--pewdww6)",actionsGap:"var(--pewdww7)",actionsPaddingTop:"var(--pewdww8)"},em="pewdww9";function nm(t){const e=t+"=",r=decodeURIComponent(document.cookie).split(";");for(let i=0;i<r.length;i++){let s=r[i];for(;s.charAt(0)==" ";)s=s.substring(1);if(s.indexOf(e)==0)return s.substring(e.length,s.length)}return""}function rm(t,e,n){const r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);const i="expires="+r.toUTCString();document.cookie=t+"="+e+";"+i+";path=/"}const im=({children:t,theme:e=$,cookieName:n="consent",translations:r,cookieExpirationDays:i=365,className:s})=>{const[o,a]=T.useState(!1),c=l=>{a(!1),rm(n,`${l}`,i)};return T.useEffect(()=>{const l=nm(n),u=l!=="true"&&l!=="false",d=l==="true";u&&a(!0);const f=d?"granted":"denied";typeof window.gtag<"u"&&window.gtag("consent","update",{analytics_storage:f})},[o]),o?at("div",{className:s,style:L({[gt.overlayBlur]:`${e.consentCookie.overlayBlur}`,[gt.overlayOpacity]:`${e.consentCookie.overlayOpacity}`,[gt.overlayBackgroundColor]:e.consentCookie.overlayBackgroundColor,[gt.backgroundColor]:e.consentCookie.backgroundColor,[gt.width]:`${e.consentCookie.width[0]}`,[gt.borderRadius]:`${e.consentCookie.borderRadius}`,[gt.borders]:`${e.consentCookie.borders}`,[gt.actionsGap]:`${e.consentCookie.actionsGap}`,[gt.actionsPaddingTop]:`${e.consentCookie.actionsPaddingTop[0]}px`}),children:[t,at("div",{children:[w(_n,{className:"",onClick:()=>c(!1),children:(r==null?void 0:r.actions.reject)||"Reject"}),w(_n,{className:"",onClick:()=>c(!0),children:(r==null?void 0:r.actions.accept)||"Accept"})]})]}):null};exports.Actions=Yc;exports.ActionsAlign=$t;exports.ActionsStyles=Kc;exports.Button=_n;exports.ButtonSize=re;exports.ButtonStyle=He;exports.ButtonStyles=zc;exports.ButtonType=rr;exports.ButtonVariant=Ge;exports.Carousel=ml;exports.CarouselStyles=hl;exports.Columns=Gl;exports.ColumnsAlign=_t;exports.ColumnsStyles=ql;exports.ConsentCookie=im;exports.ConsentCookieStyles=em;exports.Footer=Ul;exports.FooterStyles=Wl;exports.Form=Kp;exports.FormRow=Yp;exports.FormRowAlign=le;exports.Header=zl;exports.Icon=St;exports.IconStyles=Xc;exports.InputStyles=Xp;exports.InputType=un;exports.KeyNumber=Sl;exports.LanguageSwitcher=El;exports.LanguageSwitcherStyles=Al;exports.Logo=fl;exports.LogoStyles=dl;exports.Main=Ll;exports.MainStyles=Dl;exports.Modal=nl;exports.ModalStyles=Qc;exports.Nav=Np;exports.NavLegal=Hp;exports.NavLegalStyles=Gp;exports.NavSocial=Up;exports.NavSocialStyles=zp;exports.NavStyles=Ip;exports.Section=Op;exports.SectionAlign=ce;exports.SectionStyles=$p;exports.TextField=tm;exports.TextFieldInput=pa;exports.TextFieldLabel=ga;exports.TextFieldLabelStyles=Jp;exports.TextFieldTextarea=ma;exports.TextareaStyles=Zp;exports.TextareaType=Fr;exports.Video=_s;exports.VideoFullWidth=Cl;exports.VideoFullWidthStyles=wl;
15
+ */var Gr;function sc(){return Gr||(Gr=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function b(R){return typeof R=="string"||typeof R=="function"||R===r||R===l||R===s||R===i||R===d||R===f||typeof R=="object"&&R!==null&&(R.$$typeof===p||R.$$typeof===h||R.$$typeof===o||R.$$typeof===a||R.$$typeof===u||R.$$typeof===v||R.$$typeof===y||R.$$typeof===x||R.$$typeof===g)}function T(R){if(typeof R=="object"&&R!==null){var fn=R.$$typeof;switch(fn){case e:var Ve=R.type;switch(Ve){case c:case l:case r:case s:case i:case d:return Ve;default:var jr=Ve&&Ve.$$typeof;switch(jr){case a:case u:case p:case h:case o:return jr;default:return fn}}case n:return fn}}}var m=c,P=l,A=a,C=o,F=e,j=u,et=r,Ae=p,dn=h,Re=n,Ir=s,Nr=i,z=d,rt=!1;function Zt(R){return rt||(rt=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),kt(R)||T(R)===c}function kt(R){return T(R)===l}function ya(R){return T(R)===a}function va(R){return T(R)===o}function xa(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function ba(R){return T(R)===u}function Sa(R){return T(R)===r}function Ta(R){return T(R)===p}function wa(R){return T(R)===h}function Ca(R){return T(R)===n}function Pa(R){return T(R)===s}function Aa(R){return T(R)===i}function Ra(R){return T(R)===d}D.AsyncMode=m,D.ConcurrentMode=P,D.ContextConsumer=A,D.ContextProvider=C,D.Element=F,D.ForwardRef=j,D.Fragment=et,D.Lazy=Ae,D.Memo=dn,D.Portal=Re,D.Profiler=Ir,D.StrictMode=Nr,D.Suspense=z,D.isAsyncMode=Zt,D.isConcurrentMode=kt,D.isContextConsumer=ya,D.isContextProvider=va,D.isElement=xa,D.isForwardRef=ba,D.isFragment=Sa,D.isLazy=Ta,D.isMemo=wa,D.isPortal=Ca,D.isProfiler=Pa,D.isStrictMode=Aa,D.isSuspense=Ra,D.isValidElementType=b,D.typeOf=T}()),D}var Hr;function oc(){return Hr||(Hr=1,process.env.NODE_ENV==="production"?Me.exports=ic():Me.exports=sc()),Me.exports}var hn,Kr;function ac(){if(Kr)return hn;Kr=1;var t=oc(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[t.ForwardRef]=r,s[t.Memo]=i;function o(p){return t.isMemo(p)?i:s[p.$$typeof]||e}var a=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function h(p,g,v){if(typeof g!="string"){if(f){var y=d(g);y&&y!==f&&h(p,y,v)}var x=c(g);l&&(x=x.concat(l(g)));for(var b=o(p),T=o(g),m=0;m<x.length;++m){var P=x[m];if(!n[P]&&!(v&&v[P])&&!(T&&T[P])&&!(b&&b[P])){var A=u(g,P);try{a(p,P,A)}catch{}}}}return p}return hn=h,hn}ac();var cc=!0;function lc(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var Es=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||cc===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},uc=function(e,n,r){Es(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+i:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function dc(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&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(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&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 fc={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},hc=/[A-Z]|^ms/g,pc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ms=function(e){return e.charCodeAt(1)===45},Yr=function(e){return e!=null&&typeof e!="boolean"},pn=Ya(function(t){return Ms(t)?t:t.replace(hc,"-$&").toLowerCase()}),Xr=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(pc,function(r,i,s){return ut={name:i,styles:s,next:ut},i})}return fc[e]!==1&&!Ms(e)&&typeof n=="number"&&n!==0?n+"px":n};function he(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return ut={name:i.name,styles:i.styles,next:ut},i.name;var s=n;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)ut={name:o.name,styles:o.styles,next:ut},o=o.next;var a=s.styles+";";return a}return mc(t,e,n)}case"function":{if(t!==void 0){var c=ut,l=n(t);return ut=c,he(t,e,l)}break}}var u=n;return u}function mc(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=he(t,e,n[i])+";";else for(var s in n){var o=n[s];if(typeof o!="object"){var a=o;Yr(a)&&(r+=pn(s)+":"+Xr(s,a)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&e==null)for(var c=0;c<o.length;c++)Yr(o[c])&&(r+=pn(s)+":"+Xr(s,o[c])+";");else{var l=he(t,e,o);switch(s){case"animation":case"animationName":{r+=pn(s)+":"+l+";";break}default:r+=s+"{"+l+"}"}}}return r}var Zr=/label:\s*([^\s;{]+)\s*(;|$)/g,ut;function gc(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";ut=void 0;var s=t[0];if(s==null||s.raw===void 0)r=!1,i+=he(n,e,s);else{var o=s;i+=o[0]}for(var a=1;a<t.length;a++)if(i+=he(n,e,t[a]),r){var c=s;i+=c[a]}Zr.lastIndex=0;for(var l="",u;(u=Zr.exec(i))!==null;)l+="-"+u[1];var d=dc(i)+l;return{name:d,styles:i,next:ut}}var yc=function(e){return e()},vc=J.useInsertionEffect?J.useInsertionEffect:!1,xc=vc||yc,ks=J.createContext(typeof HTMLElement<"u"?rc({key:"css"}):null);ks.Provider;var bc=function(e){return S.forwardRef(function(n,r){var i=S.useContext(ks);return e(n,i,r)})},Sc=J.createContext({}),rn={}.hasOwnProperty,$n="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ds=function(e,n){var r={};for(var i in n)rn.call(n,i)&&(r[i]=n[i]);return r[$n]=e,r},Tc=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return Es(n,r,i),xc(function(){return uc(n,r,i)}),null},wc=bc(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=t[$n],s=[r],o="";typeof t.className=="string"?o=lc(e.registered,s,t.className):t.className!=null&&(o=t.className+" ");var a=gc(s,void 0,J.useContext(Sc));o+=e.key+"-"+a.name;var c={};for(var l in t)rn.call(t,l)&&l!=="css"&&l!==$n&&(c[l]=t[l]);return c.className=o,n&&(c.ref=n),J.createElement(J.Fragment,null,J.createElement(Tc,{cache:e,serialized:a,isStringTag:typeof i=="string"}),J.createElement(i,c))}),Ls=wc,Cc=ue.Fragment,w=function(e,n,r){return rn.call(n,"css")?ue.jsx(Ls,Ds(e,n),r):ue.jsx(e,n,r)},at=function(e,n,r){return rn.call(n,"css")?ue.jsxs(Ls,Ds(e,n),r):ue.jsxs(e,n,r)};function Pc(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function L(t,e){var n={};{var r=t;for(var i in r){var s=r[i];s!=null&&(n[Pc(i)]=s)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(a=>"".concat(a,":").concat(this[a])).join(";")},writable:!1}),n}const Jr='"Goudy Bookletter 1911", sans-serif',mn='"Gill Sans", sans-serif',$s="#FF7377",gn="#C8AE96",q="#FCEFE6",Ac="#2E2E2E",Qr="#CCCCCC",Rc=" #888888",Y="#000000",yn=$s,$={global:{maxWidth:1200,paddingLeft:[15,15,30,30],paddingRight:[15,15,30,30],brandFont:Jr,defaultFont:mn},colors:{defaultText:Y,defaultLightText:q,defaultTitle:"",defaultLink:Y,defaultIcon:Y},backgroundColors:{modal:q,modalOverlay:"rgba(0, 0, 0, 0.6)",cookieConsent:q},borders:{hr:`1px solid ${gn}`,cookieConsent:`2px solid ${Y}`},borderRadius:{modal:30,input:30,cookieConsent:30},widthSizes:{modal:600,cookieConsent:500},transitions:{global:"all 0.3s ease-in-out"},actions:{gap:[15,15,30,30],paddingTop:[15,15,30,30],paddingBottom:[15,15,30,30]},button:{minWidth:80,fontWeight:400,letterSpacing:.1,color:{primary:q,secondary:Ac,disabled:Rc},backgroundColor:{primary:yn,secondary:gn,disabled:Qr},border:{width:2,style:"solid",color:{primary:yn,secondary:gn,disabled:Qr}},borderRadius:50,paddingTop:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},paddingBottom:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},paddingLeft:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},paddingRight:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},transition:"all 0.3s ease-in-out"},columns:{gap:30},keyNumber:{paddingBottom:[5,5,10,10,15,15]},form:{width:800,padding:["15px","30px"],backgroundColor:"",row:{gap:[30,60],padding:["15px","30px"]},label:{font:Jr,fontWeight:500,color:yn,paddingBottom:5},input:{color:"",borderRadius:0,padding:[5,10],font:mn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${Y}`},textarea:{color:"",borderRadius:0,padding:[5,10],font:mn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${Y}`},error:{color:$s}},header:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:q,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100],overlayGap:[15,15,15,15],overlayBackgroundColor:q,toggleNavColor:Y,toggleNavOpenColor:Y,toggleNavBorderRadius:5},main:{minHeight:"45vh",backgroundColor:q},section:{paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},footer:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:q,paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},modal:{border:"",borderRadius:0,width:[50,50,75,75],backgroundColor:q,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:Y,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100]},languageSwitcher:{border:"",borderRadius:0,color:Y,width:[150,150,200,200],backgroundColor:q,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100]},carousel:{gap:[0,0,30,60],bullet:{borderRadius:0,width:[12,12,12,12],height:[12,12,12,12],backgroundColor:q}},video:{playButton:{border:"",borderRadius:0,width:[50,50,75,75],height:[50,50,75,75],color:Y,backgroundColor:q},pauseButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:Y,backgroundColor:q},soundButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:Y,backgroundColor:q},closeButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:Y,backgroundColor:q}},consentCookie:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:q,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:Y,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100],actionsGap:30,actionsPaddingTop:[15,100,100,100]},nav:{gap:[15,15,15,15]},navSocial:{gap:[15,15,15,15]},navLegal:{gap:[15,15,15,15]}},Qt={mobile:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function ct(){const[t,e]=S.useState("mobile");return S.useEffect(()=>{function r(){const i=window.innerWidth;i>=Qt["2xl"]?e("2xl"):i>=Qt.xl?e("xl"):i>=Qt.lg?e("lg"):i>=Qt.md?e("md"):i>=Qt.sm?e("sm"):e("mobile")}return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),["mobile","sm","md","lg","xl","2xl"].indexOf(t)}var Vc="var(--_1h0tdm50)",Ec="var(--_1h0tdm51)",Mc="var(--_1h0tdm52)",kc="var(--_1h0tdm53)",Dc="var(--_1h0tdm54)",Lc="var(--_1h0tdm55)",$c="var(--_1h0tdm56)",_c="var(--_1h0tdm57)",Bc="var(--_1h0tdm58)",Oc="var(--_1h0tdm59)",Fc="var(--_1h0tdm5a)",Ic="var(--_1h0tdm5b)",Nc="var(--_1h0tdm5c)",jc="var(--_1h0tdm5d)",zc={position:"relative",display:"inline-block",color:"var(--_1h0tdm50)",border:"var(--_1h0tdm52)",cursor:"var(--_1h0tdm51)",minWidth:"var(--_1h0tdm53)",fontWeight:"var(--_1h0tdm54)",transition:"var(--_1h0tdm55)",paddingTop:"var(--_1h0tdm56)",paddingLeft:"var(--_1h0tdm57)",paddingRight:"var(--_1h0tdm58)",paddingBottom:"var(--_1h0tdm59)",pointerEvent:"var(--_1h0tdm5a)",borderRadius:"var(--_1h0tdm5b)",letterSpacing:"var(--_1h0tdm5c)",backgroundColor:"var(--_1h0tdm5d)",selectors:{"&:hover":{opacity:.5}}},Ge=(t=>(t[t.Primary=0]="Primary",t[t.Secondary=1]="Secondary",t))(Ge||{}),He=(t=>(t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t))(He||{}),re=(t=>(t[t.Small=0]="Small",t[t.Medium=1]="Medium",t[t.Large=2]="Large",t))(re||{}),rr=(t=>(t.Reset="reset",t.Button="button",t.Submit="submit",t))(rr||{});const _n=({children:t,className:e,staticColor:n="",isPending:r=!1,isDisabled:i=!1,type:s=rr.Button,style:o=He.Fill,size:a=re.Medium,onClick:c=void 0,theme:l=$,variant:u=Ge.Primary})=>{const d=ct(),{button:{color:f,backgroundColor:h,border:p,minWidth:g,fontWeight:v,transition:y,borderRadius:x,letterSpacing:b,paddingTop:T,paddingBottom:m,paddingLeft:P,paddingRight:A}}=l,C=a===re.Large,F=a===re.Small,j=o===He.Outline,et=u===Ge.Secondary;return w("button",{type:s,onClick:c,className:e,style:L({[Lc]:y,[kc]:`${g}px`,[Dc]:`${v}px`,[Ic]:`${x}px`,[Nc]:`${b}px`,[Ec]:i||r?"default":"pointer",[Fc]:i||r?"none":"auto",[Vc]:j&&n?n:j&&et?h.secondary:j?h.primary:et?f.secondary:i||r?f.disabled:f.primary,[jc]:j?"transparent":n||(et?h.secondary:i?h.disabled:h.primary),[Mc]:n?`${p.width}px ${p.style} ${n}`:et?`${p.width}px ${p.style} ${p.color.secondary}`:i?`${p.width}px ${p.style} ${p.color.disabled}`:`${p.width}px ${p.style} ${p.color.primary}`,[$c]:F?`${T.small[d]}px`:C?`${T.large[d]}px`:`${T.medium[d]}px`,[Oc]:F?`${m.small[d]}px`:C?`${m.large[d]}px`:`${m.medium[d]}px`,[_c]:F?`${P.small[d]}px`:C?`${P.large[d]}px`:`${P.medium[d]}px`,[Bc]:F?`${A.small[d]}px`:C?`${A.large[d]}px`:`${A.medium[d]}px`}),children:t})};var Wc="var(--_1v7zi9y0)",Uc="var(--_1v7zi9y1)",qc="var(--_1v7zi9y2)",Gc="var(--_1v7zi9y3)",Hc="var(--_1v7zi9y4)",Kc={width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"row",gap:"var(--_1v7zi9y0)",alignItems:"var(--_1v7zi9y1)",paddingTop:"var(--_1v7zi9y2)",paddingBottom:"var(--_1v7zi9y3)",justifyContent:"var(--_1v7zi9y4)"},$t=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))($t||{});const Yc=({children:t,className:e,theme:n=$,align:r=$t.Left})=>{const i=ct(),{actions:{gap:s,paddingTop:o,paddingBottom:a}}=n;return w("div",{className:e,style:L({[Wc]:`${s[i]}px`,[qc]:`${o[i]}px`,[Gc]:`${a[i]}px`,[Uc]:r===$t.Center?"center":"flex-start",[Hc]:r===$t.Right?"flex-end":r===$t.Left?"flex-start":"center"}),children:t})};var ti={iconSize:"var(--_1slxfz50)",iconColor:"var(--_1slxfz51)"},Xc="_1slxfz52",Zc="_1slxfz54";const Jc={caret:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0",close:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4",arrowBack:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1",arrowForward:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1",play:"M8 5v14l11-7z",pause:"M6 19h4V5H6zm8-14v14h4V5z",volumeMute:"M7 9v6h4l5 5V4l-5 5z",volumeUp:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77",socialFacebook:"M 22.2816,10.9924 C 22.2816,4.92145 17.3602,0 11.2892,0 5.21832,0 0.296875,4.92145 0.296875,10.9924 c 0,5.4865 4.019725,10.0342 9.274805,10.8588 V 14.1698 H 6.78065 V 10.9924 H 9.57168 V 8.57061 c 0,-2.75496 1.64112,-4.27672 4.15202,-4.27672 1.2023,0 2.4606,0.2147 2.4606,0.2147 v 2.70515 h -1.3861 c -1.3654,0 -1.7914,0.8474 -1.7914,1.71756 v 2.0611 h 3.0487 l -0.4874,3.1774 h -2.5613 v 7.6814 c 5.2551,-0.8246 9.2748,-5.3723 9.2748,-10.8588 z",socialInstagram:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z",socialPinterest:"M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2 10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41.86 0 1.26.63 1.26 1.44 0 .86-.57 2.09-.86 3.27-.17.98.52 1.84 1.52 1.84 1.78 0 3.16-1.9 3.16-4.58 0-2.4-1.72-4.04-4.19-4.04-2.82 0-4.48 2.1-4.48 4.31 0 .86.28 1.73.74 2.3.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11-1.28-.56-2.02-2.38-2.02-3.85 0-3.16 2.24-6.03 6.56-6.03 3.44 0 6.12 2.47 6.12 5.75 0 3.44-2.13 6.2-5.18 6.2-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03z",socialLinkedIn:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z",socialSpotify:"",socialTiktok:"M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2Zm-3.281,8.725h0c-.109.011-.219.016-.328.017A3.571,3.571,0,0,1,14.4,9.129v5.493a4.061,4.061,0,1,1-4.06-4.06c.085,0,.167.008.251.013v2a2.067,2.067,0,1,0-.251,4.119A2.123,2.123,0,0,0,12.5,14.649l.02-9.331h1.914A3.564,3.564,0,0,0,17.719,8.5Z",socialX:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",socialYoutube:"M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"},Tt=({icon:t="",size:e=24,iconPath:n="",color:r,theme:i=$,viewBox:s="0 0 24 24",className:o})=>w("svg",{className:o,style:L({[ti.iconSize]:`${e}px`,[ti.iconColor]:r??i.colors.defaultIcon}),viewBox:s,width:`${e}px`,height:`${e}px`,children:w("path",{className:Zc,d:n||Jc[t]||""})});var Z={overlayOpacity:"var(--_18bqyaq0)",overlayBackgroundColor:"var(--_18bqyaq1)",overlayBlur:"var(--_18bqyaq2)",modalWidth:"var(--_18bqyaq3)",modalPaddingTop:"var(--_18bqyaq4)",modalPaddingBottom:"var(--_18bqyaq5)",modalPaddingLeft:"var(--_18bqyaq6)",modalPaddingRight:"var(--_18bqyaq7)",modalMaxWidth:"var(--_18bqyaq8)",modalMaxHeight:"var(--_18bqyaq9)",modalContentTextAlign:"var(--_18bqyaqa)",modalContentBackgroundColor:"var(--_18bqyaqb)",modalContentBorderRadius:"var(--_18bqyaqc)",modalContentBorders:"var(--_18bqyaqd)"},Qc="_18bqyaqe",tl="_18bqyaqg",el="_18bqyaqh",Ne=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(Ne||{});const nl=({children:t,align:e=Ne.Left,theme:n=$,onModalHide:r,className:i})=>{const s=ct(),{global:{paddingLeft:o,paddingRight:a},modal:{overlayBlur:c,overlayOpacity:l,overlayBackgroundColor:u,border:d,width:f,borderRadius:h,backgroundColor:p,paddingTop:g,paddingLeft:v,paddingRight:y,paddingBottom:x}}=n;return w("div",{className:i,style:L({[Z.overlayOpacity]:`${l}`,[Z.overlayBackgroundColor]:u,[Z.overlayBlur]:`${c}px`,[Z.modalWidth]:`${f[s]}px`,[Z.modalPaddingTop]:`${g[s]}px`,[Z.modalPaddingBottom]:`${x[s]}px`,[Z.modalPaddingLeft]:`${v[s]}px`,[Z.modalPaddingRight]:`${y[s]}px`,[Z.modalMaxWidth]:`calc(100% - ${o[s]+a[s]}px)`,[Z.modalMaxHeight]:`calc(100% - ${o[s]+a[s]}px)`}),children:at("div",{className:tl,style:L({[Z.modalContentTextAlign]:e===Ne.Left?"left":e===Ne.Right?"right":"center",[Z.modalContentBackgroundColor]:p,[Z.modalContentBorderRadius]:`${h}px`,[Z.modalContentBorders]:d}),children:[r&&w("button",{className:el,onClick:r,children:w(Tt,{theme:n,icon:"close"})}),t]})})};var rl={videoMaxHeight:"var(--_18hbdtx0)"},il="_18hbdtx2",sl="_18hbdtx3",ol="_18hbdtx4",al="_18hbdtx5",cl="_18hbdtx6",ll="_18hbdtx7";const _s=({video:t,isAutoPlay:e,poster:n="",startMuted:r=!1,onPlay:i,onClose:s,onEnded:o,showControls:a=!1,theme:c=$,hidePlayButton:l=!1,isVideoFullWidth:u=!1,isPlayingFullScreen:d=!1,className:f})=>{const h=S.useRef(null),[p,g]=S.useState(!1),[v,y]=S.useState(e||r),x=()=>{var C;i&&i(),(C=h.current)==null||C.play(),g(!0)},b=()=>{var C;s&&s(),(C=h.current)==null||C.pause(),g(!1)},T=()=>{var C;(C=h.current)==null||C.pause(),g(!1)},m=()=>{const C=!v;y(C),h.current&&(h.current.muted=C)},P=()=>{o&&o(),b()},A=C=>{C.key==="Escape"&&b()};return S.useEffect(()=>(window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)),[]),w("div",{className:f,style:L({[rl.videoMaxHeight]:u?"100vw":"100%"}),children:at("div",{className:il,children:[w("video",{ref:h,playsInline:!0,onEnded:P,children:w("source",{src:t,type:"video/mp4"})}),n&&w("div",{className:sl,children:w("img",{src:n,alt:""})}),(!l||!e)&&w("button",{className:ol,onClick:x,"aria-label":"Play",children:w(Tt,{icon:"play",size:50,theme:c})}),d&&w("button",{className:cl,onClick:b,"aria-label":"Close",children:w(Tt,{icon:"close",size:28,theme:c})}),p&&a&&w("button",{className:al,onClick:p?T:x,"aria-label":"Pause",children:w(Tt,{icon:"pause",size:28,theme:c})}),a&&w("button",{className:ll,onClick:m,"aria-label":"Sound",children:w(Tt,{icon:v?"volumeUp":"volumeMute",size:28,theme:c})})]})})};var ul={imgMaxWidth:"var(--_13pkfbg0)"},dl="_13pkfbg1";const fl=({children:t,theme:e=$,className:n})=>w("div",{className:n,style:L({[ul.imgMaxWidth]:"100%"}),children:t});var vn={gap:"var(--_1vea7fs0)",displayItem:"var(--_1vea7fs1)",isFullWidth:"var(--_1vea7fs2)"},hl={gap:"var(--_1vea7fs0)",display:"flex",flexWrap:"nowrap",overflow:"hidden",width:"var(--_1vea7fs2)"};function pl(){const[t,e]=S.useState({width:void 0,height:void 0});return S.useEffect(()=>{function n(){e({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),t}const ml=({data:t,theme:e=$,displayItem:n=1,isFullWidth:r=!1,displayNavBullets:i=!1,displayNavButtons:s=!1,className:o})=>{const{width:a}=pl(),[c,l]=S.useState(0),u=S.useRef(null),[d,f]=S.useState(n);return S.useEffect(()=>{a&&a>1024?f(n):a&&a>768?f(Math.min(n,2)):f(1)},[a,n]),at("div",{ref:u,className:o,style:L({[vn.gap]:`${e.carousel.gap[0]}px`,[vn.displayItem]:`${d}`,[vn.isFullWidth]:r?"100vw":"100%"}),children:[t.map((h,p)=>w("div",{children:h},p)),s&&w("button",{onClick:()=>l(Math.max(0,c-1)),children:"Prev"}),s&&w("button",{onClick:()=>l(Math.min(t.length-1,c+1)),children:"Next"}),i&&w("div",{children:t.map((h,p)=>w("span",{onClick:()=>l(p)},p))})]})};var Bn=new Map,ke=new WeakMap,ei=0,gl=void 0;function yl(t){return t?(ke.has(t)||(ei+=1,ke.set(t,ei.toString())),ke.get(t)):"0"}function vl(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?yl(t.root):t[e]}`).toString()}function xl(t){const e=vl(t);let n=Bn.get(e);if(!n){const r=new Map;let i;const s=new IntersectionObserver(o=>{o.forEach(a=>{var c;const l=a.isIntersecting&&i.some(u=>a.intersectionRatio>=u);t.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=l),(c=r.get(a.target))==null||c.forEach(u=>{u(l,a)})})},t);i=s.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),n={id:e,observer:s,elements:r},Bn.set(e,n)}return n}function bl(t,e,n={},r=gl){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const c=t.getBoundingClientRect();return e(r,{isIntersecting:r,target:t,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:c,intersectionRect:c,rootBounds:c}),()=>{}}const{id:i,observer:s,elements:o}=xl(n),a=o.get(t)||[];return o.has(t)||o.set(t,a),a.push(e),s.observe(t),function(){a.splice(a.indexOf(e),1),a.length===0&&(o.delete(t),s.unobserve(t)),o.size===0&&(s.disconnect(),Bn.delete(i))}}function Sl({threshold:t,delay:e,trackVisibility:n,rootMargin:r,root:i,triggerOnce:s,skip:o,initialInView:a,fallbackInView:c,onChange:l}={}){var u;const[d,f]=J.useState(null),h=J.useRef(l),[p,g]=J.useState({inView:!!a,entry:void 0});h.current=l,J.useEffect(()=>{if(o||!d)return;let b;return b=bl(d,(T,m)=>{g({inView:T,entry:m}),h.current&&h.current(T,m),m.isIntersecting&&s&&b&&(b(),b=void 0)},{root:i,rootMargin:r,threshold:t,trackVisibility:n,delay:e},c),()=>{b&&b()}},[Array.isArray(t)?t.toString():t,d,i,r,s,o,n,c,e]);const v=(u=p.entry)==null?void 0:u.target,y=J.useRef(void 0);!d&&v&&!s&&!o&&y.current!==v&&(y.current=v,g({inView:!!a,entry:void 0}));const x=[f,p.inView,p.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}const Tl=({label:t,suffix:e,keyNumber:n,className:r,theme:i=$})=>{ct();const[s,o]=Sl({threshold:.3,triggerOnce:!0});return w("div",{ref:s,className:r})};var wl={display:"flex",flexDirection:"column"},ni={videoFullWidthLeft:"var(--_29n9il0)",videoFullWidthRight:"var(--_29n9il1)"},Cl="_29n9il2";const Pl=({video:t,poster:e,className:n,isAutoPlay:r,showControls:i,startMuted:s=!1,theme:o=$})=>{const a=ct(),{global:{maxWidth:c,paddingLeft:l,paddingRight:u}}=o;return w("div",{className:n,style:L({[ni.videoFullWidthLeft]:`min(calc((100vw - ${c}px) / -2), -${l[a]}px)`,[ni.videoFullWidthRight]:`min(calc((100vw - ${c}px) / -2), -${u[a]}px)`}),children:w(_s,{video:t,theme:o,poster:e,isVideoFullWidth:!0,isAutoPlay:r,startMuted:s,showControls:i})})};var Al={languageSwitcherWidth:"var(--_9kkynw0)"},Rl="_9kkynw1",Vl="_9kkynw2",El="_9kkynw3";const Ml=({currentLocale:t,handleChange:e,locales:n,theme:r=$,className:i,translations:s})=>{const o=ct(),{languageSwitcher:a}=r;return at("div",{className:i,style:L({[Al.languageSwitcherWidth]:`${a.width[o]}px`}),children:[w("div",{className:Vl,children:w(Tt,{theme:r,icon:"caret"})}),w("select",{className:El,value:t,onChange:e,"aria-label":"Switch Language",children:n.map((c,l)=>w("option",{value:c,disabled:c===t,children:s[c]},`locale-${l}`))})]})};var kl="var(--_1wp326d0)",Dl="var(--_1wp326d1)",Ll={display:"flex",backgroundColor:"var(--_1wp326d1)",flex:"1 1 auto",minHeight:"45vh",textAlign:"center",alignItems:"center",flexDirection:"column",justifyContent:"center","@media":{"screen and (min-width: 768px)":{minHeight:"var(--_1wp326d0)"}}};const $l=({children:t,className:e,theme:n=$})=>{const{main:{backgroundColor:r,minHeight:i}}=n;return w("main",{className:e,style:L({[kl]:i,[Dl]:r}),children:t})};var ri={overlayBottom:"var(--xr8l1e0)",overlayTransform:"var(--xr8l1e1)"},_l="xr8l1e2";const Bl=({theme:t=$,isOpen:e=!1,children:n,className:r})=>(S.useEffect(()=>{const i=document.getElementsByTagName("html")[0];i.style.overflow="",e&&(i.style.overflow="hidden")},[e]),w("div",{className:`${_l} ${r}`,style:L({[ri.overlayBottom]:e?"-100vh":"100%",[ri.overlayTransform]:e?"translate(0, 0)":"translate(0, -100%)"}),children:n}));var Ol={displayOnDesktop:"var(--_1c0ak730)"},Fl="_1c0ak731",ii="_1c0ak732";const Il=({theme:t=$,isNavOpen:e=!1,onToggleNav:n,displayOnDesktop:r,className:i})=>{const s=()=>{window.scrollTo({top:0,behavior:"smooth"}),n()};return at("button",{className:`${Fl} ${i}`,style:L({[Ol.displayOnDesktop]:r?"block":"none"}),onClick:s,"aria-label":"Toggle nav",children:[w("span",{className:ii,"data-open":e?"true":"false"}),w("span",{className:ii,"data-open":e?"true":"false"})]})};var Nl={isFixed:"var(--_15wg1hu0)"},jl="_15wg1hu1",zl="_15wg1hu2",Wl="_15wg1hu3";const Ul=({children:t,isFixed:e=!1,childrenOverlay:n,theme:r=$,hideToggleNav:i=!1,displayToggleNavOnDesktop:s=!1,className:o})=>{const[a,c]=S.useState(!1);return at(Cc,{children:[at("header",{className:`${zl} ${o}`,style:L({[Nl.isFixed]:e?"fixed":"relative"}),children:[n&&w(Bl,{className:"",theme:r,isOpen:a,children:n}),t,!i&&w(Il,{className:"",theme:r,isNavOpen:a,onToggleNav:()=>c(!a),displayOnDesktop:s})]}),e&&w("div",{className:Wl})]})};var Dt={footerGap:"var(--fl7h880)",footerBackgroundColor:"var(--fl7h881)",footerPaddingTop:"var(--fl7h882)",footerPaddingBottom:"var(--fl7h883)",footerPaddingLeft:"var(--fl7h884)",footerPaddingRight:"var(--fl7h885)"},ql="fl7h886";const Gl=({children:t,className:e,theme:n=$})=>{const r=ct(),{global:{paddingLeft:i,paddingRight:s},footer:{gap:o,backgroundColor:a,paddingTop:c,paddingBottom:l}}=n;return w("footer",{className:e,style:L({[Dt.footerGap]:`${o[r]}px`,[Dt.footerBackgroundColor]:a,[Dt.footerPaddingTop]:`${c[r]}px`,[Dt.footerPaddingBottom]:`${l[r]}px`,[Dt.footerPaddingLeft]:`${i[r]}px`,[Dt.footerPaddingRight]:`${s[r]}px`}),children:t})};var Lt={columnsGap:"var(--mx2tfy0)",columnsTextAlign:"var(--mx2tfy1)",columnsJustifyContent:"var(--mx2tfy2)",isCentered:"var(--mx2tfy3)",isInverted:"var(--mx2tfy4)",column0:"var(--mx2tfy5)",column1:"var(--mx2tfy6)",column2:"var(--mx2tfy7)",column3:"var(--mx2tfy8)"},Hl="mx2tfy9",_t=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(_t||{});const Kl=({columns:t,children:e,align:n=_t.Left,isCentered:r=!1,isInverted:i=!1,theme:s=$,className:o})=>{const a=t.reduce((c,l,u)=>(c[Lt[`column${u}`]]=`${l}%`,c),{});return w("div",{className:o,style:L({...a,[Lt.columnsGap]:`${s.columns.gap}px`,[Lt.columnsTextAlign]:n===_t.Center?"center":"left",[Lt.columnsJustifyContent]:n===_t.Right?"flex-end":n===_t.Center?"center":"flex-start",[Lt.isCentered]:r?"center":"stretch",[Lt.isInverted]:i?"row-reverse":"row"}),children:e})},Bs=S.createContext({});function Os(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}const ir=S.createContext(null),Fs=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Yl(t=!0){const e=S.useContext(ir);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,s=S.useId();S.useEffect(()=>{if(t)return i(s)},[t]);const o=S.useCallback(()=>t&&r&&r(s),[s,r,t]);return!n&&r?[!1,o]:[!0]}const sr=typeof window<"u",Is=sr?S.useLayoutEffect:S.useEffect,Q=t=>t;let Kt=Q,mt=Q;process.env.NODE_ENV!=="production"&&(Kt=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},mt=(t,e)=>{if(!t)throw new Error(e)});function or(t){let e;return()=>(e===void 0&&(e=t()),e)}const Ut=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},ft=t=>t*1e3,yt=t=>t/1e3,Xl={skipAnimations:!1,useManualTiming:!1},De=["read","resolveKeyframes","update","preRender","render","postRender"];function Zl(t,e){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){o.has(u)&&(l.schedule(u),t()),u(a)}const l={schedule:(u,d=!1,f=!1)=>{const p=f&&i?n:r;return d&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{r.delete(u),o.delete(u)},process:u=>{if(a=u,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),n.clear(),i=!1,s&&(s=!1,l.process(u))}};return l}const Jl=40;function Ns(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=De.reduce((y,x)=>(y[x]=Zl(s),y),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:f}=o,h=()=>{const y=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(y-i.timestamp,Jl),1),i.timestamp=y,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(h))},p=()=>{n=!0,r=!0,i.isProcessing||t(h)};return{schedule:De.reduce((y,x)=>{const b=o[x];return y[x]=(T,m=!1,P=!1)=>(n||p(),b.schedule(T,m,P)),y},{}),cancel:y=>{for(let x=0;x<De.length;x++)o[De[x]].cancel(y)},state:i,steps:o}}const{schedule:_,cancel:wt,state:W,steps:xn}=Ns(typeof requestAnimationFrame<"u"?requestAnimationFrame:Q,!0),js=S.createContext({strict:!1}),si={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"]},qt={};for(const t in si)qt[t]={isEnabled:e=>si[t].some(n=>!!e[n])};function Ql(t){for(const e in t)qt[e]={...qt[e],...t[e]}}const tu=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 Ke(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tu.has(t)}let zs=t=>!Ke(t);function eu(t){t&&(zs=e=>e.startsWith("on")?!Ke(e):t(e))}try{eu(require("@emotion/is-prop-valid").default)}catch{}function nu(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(zs(i)||n===!0&&Ke(i)||!e&&!Ke(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const oi=new Set;function sn(t,e,n){t||oi.has(e)||(console.warn(e),oi.add(e))}function ru(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&sn(!1,"motion() is deprecated. Use motion.create() instead."),t(...r));return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const on=S.createContext({});function an(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function pe(t){return typeof t=="string"||Array.isArray(t)}const ar=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cr=["initial",...ar];function cn(t){return an(t.animate)||cr.some(e=>pe(t[e]))}function Ws(t){return!!(cn(t)||t.variants)}function iu(t,e){if(cn(t)){const{initial:n,animate:r}=t;return{initial:n===!1||pe(n)?n:void 0,animate:pe(r)?r:void 0}}return t.inherit!==!1?e:{}}function su(t){const{initial:e,animate:n}=iu(t,S.useContext(on));return S.useMemo(()=>({initial:e,animate:n}),[ai(e),ai(n)])}function ai(t){return Array.isArray(t)?t.join(" "):t}const ou=Symbol.for("motionComponentSymbol");function Bt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function au(t,e,n){return S.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Bt(n)&&(n.current=r))},[e])}const lr=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),cu="framerAppearId",Us="data-"+lr(cu),{schedule:ur,cancel:lm}=Ns(queueMicrotask,!1),qs=S.createContext({});function lu(t,e,n,r,i){var s,o;const{visualElement:a}=S.useContext(on),c=S.useContext(js),l=S.useContext(ir),u=S.useContext(Fs).reducedMotion,d=S.useRef(null);r=r||c.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,h=S.useContext(qs);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&uu(d.current,n,i,h);const p=S.useRef(!1);S.useInsertionEffect(()=>{f&&p.current&&f.update(n,l)});const g=n[Us],v=S.useRef(!!g&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return Is(()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),ur.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())}),S.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,g)}),v.current=!1))}),f}function uu(t,e,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Gs(t.parent)),t.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Bt(a),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:l})}function Gs(t){if(t)return t.options.allowProjection!==!1?t.projection:Gs(t.parent)}function du({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var s,o;t&&Ql(t);function a(l,u){let d;const f={...S.useContext(Fs),...l,layoutId:fu(l)},{isStatic:h}=f,p=su(l),g=r(l,h);if(!h&&sr){hu(f,t);const v=pu(f);d=v.MeasureLayout,p.visualElement=lu(i,g,f,e,v.ProjectionNode)}return Ue.jsxs(on.Provider,{value:p,children:[d&&p.visualElement?Ue.jsx(d,{visualElement:p.visualElement,...f}):null,n(i,l,au(g,p.visualElement,u),g,h,p.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const c=S.forwardRef(a);return c[ou]=i,c}function fu({layoutId:t}){const e=S.useContext(Bs).id;return e&&t!==void 0?e+"-"+t:t}function hu(t,e){const n=S.useContext(js).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Kt(!1,r):mt(!1,r)}}function pu(t){const{drag:e,layout:n}=qt;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Hs=t=>e=>typeof e=="string"&&e.startsWith(t),dr=Hs("--"),mu=Hs("var(--"),fr=t=>mu(t)?gu.test(t.split("/*")[0].trim()):!1,gu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,me={};function yu(t){for(const e in t)me[e]=t[e],dr(e)&&(me[e].isCSSVariable=!0)}const Yt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mt=new Set(Yt);function Ks(t,{layout:e,layoutId:n}){return Mt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!me[t]||t==="opacity")}const K=t=>!!(t&&t.getVelocity),Ys=(t,e)=>e&&typeof t=="number"?e.transform(t):t,vt=(t,e,n)=>n>e?e:n<t?t:n,Xt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ge={...Xt,transform:t=>vt(0,1,t)},Le={...Xt,default:1},Te=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),St=Te("deg"),ht=Te("%"),V=Te("px"),vu=Te("vh"),xu=Te("vw"),ci={...ht,parse:t=>ht.parse(t)/100,transform:t=>ht.transform(t*100)},bu={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V},Su={rotate:St,rotateX:St,rotateY:St,rotateZ:St,scale:Le,scaleX:Le,scaleY:Le,scaleZ:Le,skew:St,skewX:St,skewY:St,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:ge,originX:ci,originY:ci,originZ:V},li={...Xt,transform:Math.round},hr={...bu,...Su,zIndex:li,size:V,fillOpacity:ge,strokeOpacity:ge,numOctaves:li},Tu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wu=Yt.length;function Cu(t,e,n){let r="",i=!0;for(let s=0;s<wu;s++){const o=Yt[s],a=t[o];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(o.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const l=Ys(a,hr[o]);if(!c){i=!1;const u=Tu[o]||o;r+=`${u}(${l}) `}n&&(e[o]=l)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function pr(t,e,n){const{style:r,vars:i,transformOrigin:s}=t;let o=!1,a=!1;for(const c in e){const l=e[c];if(Mt.has(c)){o=!0;continue}else if(dr(c)){i[c]=l;continue}else{const u=Ys(l,hr[c]);c.startsWith("origin")?(a=!0,s[c]=u):r[c]=u}}if(e.transform||(o||n?r.transform=Cu(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=s;r.transformOrigin=`${c} ${l} ${u}`}}const mr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Xs(t,e,n){for(const r in e)!K(e[r])&&!Ks(r,n)&&(t[r]=e[r])}function Pu({transformTemplate:t},e){return S.useMemo(()=>{const n=mr();return pr(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Au(t,e){const n=t.style||{},r={};return Xs(r,n,t),Object.assign(r,Pu(t,e)),r}function Ru(t,e){const n={},r=Au(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,n}const Vu=["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 gr(t){return typeof t!="string"||t.includes("-")?!1:!!(Vu.indexOf(t)>-1||/[A-Z]/u.test(t))}const Eu={offset:"stroke-dashoffset",array:"stroke-dasharray"},Mu={offset:"strokeDashoffset",array:"strokeDasharray"};function ku(t,e,n=1,r=0,i=!0){t.pathLength=1;const s=i?Eu:Mu;t[s.offset]=V.transform(-r);const o=V.transform(e),a=V.transform(n);t[s.array]=`${o} ${a}`}function ui(t,e,n){return typeof t=="string"?t:V.transform(e+n*t)}function Du(t,e,n){const r=ui(e,t.x,t.width),i=ui(n,t.y,t.height);return`${r} ${i}`}function yr(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:c=0,...l},u,d){if(pr(t,l,d),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:h,dimensions:p}=t;f.transform&&(p&&(h.transform=f.transform),delete f.transform),p&&(i!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=Du(p,i!==void 0?i:.5,s!==void 0?s:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&ku(f,o,a,c,!1)}const Zs=()=>({...mr(),attrs:{}}),vr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Lu(t,e,n,r){const i=S.useMemo(()=>{const s=Zs();return yr(s,e,vr(r),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};Xs(s,t.style,t),i.style={...s,...i.style}}return i}function $u(t=!1){return(n,r,i,{latestValues:s},o)=>{const c=(gr(n)?Lu:Ru)(r,s,o,n),l=nu(r,typeof n=="string",t),u=n!==S.Fragment?{...l,...c,ref:i}:{},{children:d}=r,f=S.useMemo(()=>K(d)?d.get():d,[d]);return S.createElement(n,{...u,children:f})}}function di(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function xr(t,e,n,r){if(typeof e=="function"){const[i,s]=di(r);e=e(n!==void 0?n:t.custom,i,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,s]=di(r);e=e(n!==void 0?n:t.custom,i,s)}return e}const On=t=>Array.isArray(t),_u=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Bu=t=>On(t)?t[t.length-1]||0:t;function je(t){const e=K(t)?t.get():t;return _u(e)?e.toValue():e}function Ou({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,s){const o={latestValues:Fu(r,i,s,t),renderState:e()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const Js=t=>(e,n)=>{const r=S.useContext(on),i=S.useContext(ir),s=()=>Ou(t,e,r,i);return n?s():Os(s)};function Fu(t,e,n,r){const i={},s=r(t,{});for(const f in s)i[f]=je(s[f]);let{initial:o,animate:a}=t;const c=cn(t),l=Ws(t);e&&l&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!an(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const p=xr(t,f[h]);if(p){const{transitionEnd:g,transition:v,...y}=p;for(const x in y){let b=y[x];if(Array.isArray(b)){const T=u?b.length-1:0;b=b[T]}b!==null&&(i[x]=b)}for(const x in g)i[x]=g[x]}}}return i}function br(t,e,n){var r;const{style:i}=t,s={};for(const o in i)(K(i[o])||e.style&&K(e.style[o])||Ks(o,t)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}const Iu={useVisualState:Js({scrapeMotionValuesFromProps:br,createRenderState:mr})};function Qs(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}function to(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const s in n)t.style.setProperty(s,n[s])}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 no(t,e,n,r){to(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(eo.has(i)?i:lr(i),e.attrs[i])}function ro(t,e,n){const r=br(t,e,n);for(const i in t)if(K(t[i])||K(e[i])){const s=Yt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=t[i]}return r}const fi=["x","y","width","height","cx","cy","r"],Nu={useVisualState:Js({scrapeMotionValuesFromProps:ro,createRenderState:Zs,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!t.drag;if(!s){for(const a in i)if(Mt.has(a)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let a=0;a<fi.length;a++){const c=fi[a];t[c]!==e[c]&&(o=!0)}o&&_.read(()=>{Qs(n,r),_.render(()=>{yr(r,i,vr(n.tagName),t.transformTemplate),no(n,r)})})}})};function ju(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...gr(r)?Nu:Iu,preloadedFeatures:t,useRender:$u(i),createVisualElement:e,Component:r};return du(o)}}function ye(t,e,n){const r=t.getProps();return xr(r,e,n!==void 0?n:r.custom,t)}const zu=or(()=>window.ScrollTimeline!==void 0);class Wu{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(i=>{if(zu()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Uu extends Wu{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function Sr(t,e){return t?t[e]||t.default||t:void 0}const Fn=2e4;function io(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Fn;)e+=n,r=t.next(e);return e>=Fn?1/0:e}function Tr(t){return typeof t=="function"}function hi(t,e){t.timeline=e,t.onfinish=null}const wr=t=>Array.isArray(t)&&typeof t[0]=="number",qu={linearEasing:void 0};function Gu(t,e){const n=or(t);return()=>{var r;return(r=qu[e])!==null&&r!==void 0?r:n()}}const Ye=Gu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),so=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let s=0;s<i;s++)r+=t(Ut(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function oo(t){return!!(typeof t=="function"&&Ye()||!t||typeof t=="string"&&(t in In||Ye())||wr(t)||Array.isArray(t)&&t.every(oo))}const ee=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,In={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ee([0,.65,.55,1]),circOut:ee([.55,0,1,.45]),backIn:ee([.31,.01,.66,-.59]),backOut:ee([.33,1.53,.69,.99])};function ao(t,e){if(t)return typeof t=="function"&&Ye()?so(t,e):wr(t)?ee(t):Array.isArray(t)?t.map(n=>ao(n,e)||In.easeOut):In[t]}const ot={x:!1,y:!1};function co(){return ot.x||ot.y}function lo(t,e,n){var r;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function uo(t,e){const n=lo(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function pi(t){return!(t.pointerType==="touch"||co())}function Hu(t,e,n={}){const[r,i,s]=uo(t,n),o=a=>{if(!pi(a))return;const{target:c}=a,l=e(c,a);if(typeof l!="function"||!c)return;const u=d=>{pi(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}function Xe(t,e){const n=`${e}PointerCapture`;if(t.target instanceof Element&&n in t.target&&t.pointerId!==void 0)try{t.target[n](t.pointerId)}catch{}}const fo=(t,e)=>e?t===e?!0:fo(t,e.parentElement):!1,Cr=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Ku=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Yu(t){return Ku.has(t.tagName)||t.tabIndex!==-1}const ne=new WeakSet;function mi(t){return e=>{e.key==="Enter"&&t(e)}}function bn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Xu=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=mi(()=>{if(ne.has(n))return;bn(n,"down");const i=mi(()=>{bn(n,"up")}),s=()=>bn(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",s,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function gi(t){return Cr(t)&&!co()}function Zu(t,e,n={}){const[r,i,s]=uo(t,n),o=a=>{const c=a.currentTarget;if(!c||!gi(a)||ne.has(c))return;ne.add(c),Xe(a,"set");const l=e(c,a),u=(h,p)=>{c.removeEventListener("pointerup",d),c.removeEventListener("pointercancel",f),Xe(h,"release"),!(!gi(h)||!ne.has(c))&&(ne.delete(c),typeof l=="function"&&l(h,{success:p}))},d=h=>{(h.isTrusted?Ju(h,c instanceof Element?c.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?u(h,!1):u(h,!(c instanceof Element)||fo(c,h.target))},f=h=>{u(h,!1)};c.addEventListener("pointerup",d,i),c.addEventListener("pointercancel",f,i),c.addEventListener("lostpointercapture",f,i)};return r.forEach(a=>{a=n.useGlobalTarget?window:a;let c=!1;a instanceof HTMLElement&&(c=!0,!Yu(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",o,i),c&&a.addEventListener("focus",l=>Xu(l,i),i)}),s}function Ju(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}function Qu(t){return t==="x"||t==="y"?ot[t]?null:(ot[t]=!0,()=>{ot[t]=!1}):ot.x||ot.y?null:(ot.x=ot.y=!0,()=>{ot.x=ot.y=!1})}const ho=new Set(["width","height","top","left","right","bottom",...Yt]);let ze;function td(){ze=void 0}const pt={now:()=>(ze===void 0&&pt.set(W.isProcessing||Xl.useManualTiming?W.timestamp:performance.now()),ze),set:t=>{ze=t,queueMicrotask(td)}};function Pr(t,e){t.indexOf(e)===-1&&t.push(e)}function Ar(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Rr{constructor(){this.subscriptions=[]}add(e){return Pr(this.subscriptions,e),()=>Ar(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function po(t,e){return e?t*(1e3/e):0}const yi=30,ed=t=>!isNaN(parseFloat(t));class nd{constructor(e,n={}){this.version="12.4.7",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=pt.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=pt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ed(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&sn(!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 Rr);const r=this.events[e].add(n);return e==="change"?()=>{r(),_.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=pt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>yi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yi);return po(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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ve(t,e){return new nd(t,e)}function rd(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ve(n))}function Vr(t,e){const n=ye(t,e);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=Bu(s[o]);rd(t,o,a)}}function id(t){return!!(K(t)&&t.add)}function Nn(t,e){const n=t.getValue("willChange");if(id(n))return n.add(e)}function mo(t){return t.props[Us]}const go=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,sd=1e-7,od=12;function ad(t,e,n,r,i){let s,o,a=0;do o=e+(n-e)/2,s=go(o,r,i)-t,s>0?n=o:e=o;while(Math.abs(s)>sd&&++a<od);return o}function we(t,e,n,r){if(t===e&&n===r)return Q;const i=s=>ad(s,0,1,t,n);return s=>s===0||s===1?s:go(i(s),e,r)}const yo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,vo=t=>e=>1-t(1-e),xo=we(.33,1.53,.69,.99),Er=vo(xo),bo=yo(Er),So=t=>(t*=2)<1?.5*Er(t):.5*(2-Math.pow(2,-10*(t-1))),Mr=t=>1-Math.sin(Math.acos(t)),To=vo(Mr),wo=yo(Mr),Co=t=>/^0[^.\s]+$/u.test(t);function cd(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Co(t):!0}const ie=t=>Math.round(t*1e5)/1e5,kr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ld(t){return t==null}const ud=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Dr=(t,e)=>n=>!!(typeof n=="string"&&ud.test(n)&&n.startsWith(t)||e&&!ld(n)&&Object.prototype.hasOwnProperty.call(n,e)),Po=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(kr);return{[t]:parseFloat(i),[e]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},dd=t=>vt(0,255,t),Sn={...Xt,transform:t=>Math.round(dd(t))},Vt={test:Dr("rgb","red"),parse:Po("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Sn.transform(t)+", "+Sn.transform(e)+", "+Sn.transform(n)+", "+ie(ge.transform(r))+")"};function fd(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const jn={test:Dr("#"),parse:fd,transform:Vt.transform},Ot={test:Dr("hsl","hue"),parse:Po("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+ht.transform(ie(e))+", "+ht.transform(ie(n))+", "+ie(ge.transform(r))+")"},H={test:t=>Vt.test(t)||jn.test(t)||Ot.test(t),parse:t=>Vt.test(t)?Vt.parse(t):Ot.test(t)?Ot.parse(t):jn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Vt.transform(t):Ot.transform(t)},hd=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pd(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(kr))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(hd))===null||n===void 0?void 0:n.length)||0)>0}const Ao="number",Ro="color",md="var",gd="var(",vi="${}",yd=/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 xe(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=e.replace(yd,c=>(H.test(c)?(r.color.push(s),i.push(Ro),n.push(H.parse(c))):c.startsWith(gd)?(r.var.push(s),i.push(md),n.push(c)):(r.number.push(s),i.push(Ao),n.push(parseFloat(c))),++s,vi)).split(vi);return{values:n,split:a,indexes:r,types:i}}function Vo(t){return xe(t).values}function Eo(t){const{split:e,types:n}=xe(t),r=e.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=e[o],i[o]!==void 0){const a=n[o];a===Ao?s+=ie(i[o]):a===Ro?s+=H.transform(i[o]):s+=i[o]}return s}}const vd=t=>typeof t=="number"?0:t;function xd(t){const e=Vo(t);return Eo(t)(e.map(vd))}const Ct={test:pd,parse:Vo,createTransformer:Eo,getAnimatableNone:xd},bd=new Set(["brightness","contrast","saturate","opacity"]);function Sd(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(kr)||[];if(!r)return t;const i=n.replace(r,"");let s=bd.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+i+")"}const Td=/\b([a-z-]*)\(.*?\)/gu,zn={...Ct,getAnimatableNone:t=>{const e=t.match(Td);return e?e.map(Sd).join(" "):t}},wd={...hr,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:zn,WebkitFilter:zn},Lr=t=>wd[t];function Mo(t,e){let n=Lr(t);return n!==zn&&(n=Ct),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Cd=new Set(["auto","none","0"]);function Pd(t,e,n){let r=0,i;for(;r<t.length&&!i;){const s=t[r];typeof s=="string"&&!Cd.has(s)&&xe(s).values.length&&(i=t[r]),r++}if(i&&n)for(const s of e)t[s]=Mo(n,i)}const xi=t=>t===Xt||t===V,bi=(t,e)=>parseFloat(t.split(", ")[e]),Si=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return bi(i[1],e);{const s=r.match(/^matrix\((.+)\)$/u);return s?bi(s[1],t):0}},Ad=new Set(["x","y","z"]),Rd=Yt.filter(t=>!Ad.has(t));function Vd(t){const e=[];return Rd.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Gt={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:Si(4,13),y:Si(5,14)};Gt.translateX=Gt.x;Gt.translateY=Gt.y;const Et=new Set;let Wn=!1,Un=!1;function ko(){if(Un){const t=Array.from(Et).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=Vd(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Un=!1,Wn=!1,Et.forEach(t=>t.complete()),Et.clear()}function Do(){Et.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Un=!0)})}function Ed(){Do(),ko()}class $r{constructor(e,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Et.add(this),Wn||(Wn=!0,_.read(Do),_.resolveKeyframes(ko))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;for(let s=0;s<e.length;s++)if(e[s]===null)if(s===0){const o=i==null?void 0:i.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(r&&n){const c=r.readValue(n,a);c!=null&&(e[0]=c)}e[0]===void 0&&(e[0]=a),i&&o===void 0&&i.set(e[0])}else e[s]=e[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Et.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Et.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Lo=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Md=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kd(t){const e=Md.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const Dd=4;function $o(t,e,n=1){mt(n<=Dd,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=kd(t);if(!r)return;const s=window.getComputedStyle(e).getPropertyValue(r);if(s){const o=s.trim();return Lo(o)?parseFloat(o):o}return fr(i)?$o(i,e,n+1):i}const _o=t=>e=>e.test(t),Ld={test:t=>t==="auto",parse:t=>t},Bo=[Xt,V,ht,St,xu,vu,Ld],Ti=t=>Bo.find(_o(t));class Oo extends $r{constructor(e,n,r,i,s){super(e,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let l=e[c];if(typeof l=="string"&&(l=l.trim(),fr(l))){const u=$o(l,n.current);u!==void 0&&(e[c]=u),c===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!ho.has(r)||e.length!==2)return;const[i,s]=e,o=Ti(i),a=Ti(s);if(o!==a)if(xi(o)&&xi(a))for(let c=0;c<e.length;c++){const l=e[c];typeof l=="string"&&(e[c]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)cd(e[i])&&r.push(i);r.length&&Pd(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Gt[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=Gt[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([c,l])=>{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const wi=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ct.test(t)||t==="0")&&!t.startsWith("url("));function $d(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 _d(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const s=t[t.length-1],o=wi(i,e),a=wi(s,e);return Kt(o===a,`You are trying to animate ${e} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!o||!a?!1:$d(t)||(n==="spring"||Tr(n))&&r}const Bd=t=>t!==null;function ln(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(Bd),s=e&&n!=="loop"&&e%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const Od=40;class Fo{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=pt.now(),this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Od?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Ed(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=pt.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!_d(e,r,i,s))if(o)this.options.duration=0;else{c&&c(ln(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const O=(t,e,n)=>t+(e-t)*n;function Tn(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 Fd({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,s=0,o=0;if(!e)i=s=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=Tn(c,a,t+1/3),s=Tn(c,a,t),o=Tn(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Ze(t,e){return n=>n>0?e:t}const wn=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},Id=[jn,Vt,Ot],Nd=t=>Id.find(e=>e.test(t));function Ci(t){const e=Nd(t);if(Kt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===Ot&&(n=Fd(n)),n}const Pi=(t,e)=>{const n=Ci(t),r=Ci(e);if(!n||!r)return Ze(t,e);const i={...n};return s=>(i.red=wn(n.red,r.red,s),i.green=wn(n.green,r.green,s),i.blue=wn(n.blue,r.blue,s),i.alpha=O(n.alpha,r.alpha,s),Vt.transform(i))},jd=(t,e)=>n=>e(t(n)),Ce=(...t)=>t.reduce(jd),qn=new Set(["none","hidden"]);function zd(t,e){return qn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Wd(t,e){return n=>O(t,e,n)}function _r(t){return typeof t=="number"?Wd:typeof t=="string"?fr(t)?Ze:H.test(t)?Pi:Gd:Array.isArray(t)?Io:typeof t=="object"?H.test(t)?Pi:Ud:Ze}function Io(t,e){const n=[...t],r=n.length,i=t.map((s,o)=>_r(s)(s,e[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function Ud(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=_r(t[i])(t[i],e[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function qd(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],a=t.indexes[o][i[o]],c=(n=t.values[a])!==null&&n!==void 0?n:0;r[s]=c,i[o]++}return r}const Gd=(t,e)=>{const n=Ct.createTransformer(e),r=xe(t),i=xe(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?qn.has(t)&&!i.values.length||qn.has(e)&&!r.values.length?zd(t,e):Ce(Io(qd(r,i),i.values),n):(Kt(!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.`),Ze(t,e))};function No(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?O(t,e,n):_r(t)(t,e)}const Hd=5;function jo(t,e,n){const r=Math.max(e-Hd,0);return po(n-t(r),e-r)}const B={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},Ai=.001;function Kd({duration:t=B.duration,bounce:e=B.bounce,velocity:n=B.velocity,mass:r=B.mass}){let i,s;Kt(t<=ft(B.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=vt(B.minDamping,B.maxDamping,o),t=vt(B.minDuration,B.maxDuration,yt(t)),o<1?(i=l=>{const u=l*o,d=u*t,f=u-n,h=Gn(l,o),p=Math.exp(-d);return Ai-f/h*p},s=l=>{const d=l*o*t,f=d*n+n,h=Math.pow(o,2)*Math.pow(l,2)*t,p=Math.exp(-d),g=Gn(Math.pow(l,2),o);return(-i(l)+Ai>0?-1:1)*((f-h)*p)/g}):(i=l=>{const u=Math.exp(-l*t),d=(l-n)*t+1;return-.001+u*d},s=l=>{const u=Math.exp(-l*t),d=(n-l)*(t*t);return u*d});const a=5/t,c=Xd(i,s,a);if(t=ft(t),isNaN(c))return{stiffness:B.stiffness,damping:B.damping,duration:t};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:o*2*Math.sqrt(r*l),duration:t}}}const Yd=12;function Xd(t,e,n){let r=n;for(let i=1;i<Yd;i++)r=r-t(r)/e(r);return r}function Gn(t,e){return t*Math.sqrt(1-e*e)}const Zd=["duration","bounce"],Jd=["stiffness","damping","mass"];function Ri(t,e){return e.some(n=>t[n]!==void 0)}function Qd(t){let e={velocity:B.velocity,stiffness:B.stiffness,damping:B.damping,mass:B.mass,isResolvedFromDuration:!1,...t};if(!Ri(t,Jd)&&Ri(t,Zd))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*vt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:B.mass,stiffness:i,damping:s}}else{const n=Kd(t);e={...e,...n,mass:B.mass},e.isResolvedFromDuration=!0}return e}function zo(t=B.visualDuration,e=B.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=Qd({...n,velocity:-yt(n.velocity||0)}),p=f||0,g=l/(2*Math.sqrt(c*u)),v=o-s,y=yt(Math.sqrt(c/u)),x=Math.abs(v)<5;r||(r=x?B.restSpeed.granular:B.restSpeed.default),i||(i=x?B.restDelta.granular:B.restDelta.default);let b;if(g<1){const m=Gn(y,g);b=P=>{const A=Math.exp(-g*y*P);return o-A*((p+g*y*v)/m*Math.sin(m*P)+v*Math.cos(m*P))}}else if(g===1)b=m=>o-Math.exp(-y*m)*(v+(p+y*v)*m);else{const m=y*Math.sqrt(g*g-1);b=P=>{const A=Math.exp(-g*y*P),C=Math.min(m*P,300);return o-A*((p+g*y*v)*Math.sinh(C)+m*v*Math.cosh(C))/m}}const T={calculatedDuration:h&&d||null,next:m=>{const P=b(m);if(h)a.done=m>=d;else{let A=0;g<1&&(A=m===0?ft(p):jo(b,m,P));const C=Math.abs(A)<=r,F=Math.abs(o-P)<=i;a.done=C&&F}return a.value=a.done?o:P,a},toString:()=>{const m=Math.min(io(T),Fn),P=so(A=>T.next(m*A).value,m,30);return m+"ms "+P}};return T}function Vi({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=t[0],f={done:!1,value:d},h=C=>a!==void 0&&C<a||c!==void 0&&C>c,p=C=>a===void 0?c:c===void 0||Math.abs(a-C)<Math.abs(c-C)?a:c;let g=n*e;const v=d+g,y=o===void 0?v:o(v);y!==v&&(g=y-d);const x=C=>-g*Math.exp(-C/r),b=C=>y+x(C),T=C=>{const F=x(C),j=b(C);f.done=Math.abs(F)<=l,f.value=f.done?y:j};let m,P;const A=C=>{h(f.value)&&(m=C,P=zo({keyframes:[f.value,p(f.value)],velocity:jo(b,C,f.value),damping:i,stiffness:s,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:C=>{let F=!1;return!P&&m===void 0&&(F=!0,T(C),A(C)),m!==void 0&&C>=m?P.next(C-m):(!F&&T(C),f)}}}const tf=we(.42,0,1,1),ef=we(0,0,.58,1),Wo=we(.42,0,.58,1),nf=t=>Array.isArray(t)&&typeof t[0]!="number",Ei={linear:Q,easeIn:tf,easeInOut:Wo,easeOut:ef,circIn:Mr,circInOut:wo,circOut:To,backIn:Er,backInOut:bo,backOut:xo,anticipate:So},Mi=t=>{if(wr(t)){mt(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return we(e,n,r,i)}else if(typeof t=="string")return mt(Ei[t]!==void 0,`Invalid easing type '${t}'`),Ei[t];return t};function rf(t,e,n){const r=[],i=n||No,s=t.length-1;for(let o=0;o<s;o++){let a=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||Q:e;a=Ce(c,a)}r.push(a)}return r}function sf(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const s=t.length;if(mt(s===e.length,"Both input and output ranges must be the same length"),s===1)return()=>e[0];if(s===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=rf(e,r,i),c=a.length,l=u=>{if(o&&u<t[0])return e[0];let d=0;if(c>1)for(;d<t.length-2&&!(u<t[d+1]);d++);const f=Ut(t[d],t[d+1],u);return a[d](f)};return n?u=>l(vt(t[0],t[s-1],u)):l}function of(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Ut(0,e,r);t.push(O(n,1,i))}}function af(t){const e=[0];return of(e,t.length-1),e}function cf(t,e){return t.map(n=>n*e)}function lf(t,e){return t.map(()=>e||Wo).splice(0,t.length-1)}function se({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=nf(r)?r.map(Mi):Mi(r),s={done:!1,value:e[0]},o=cf(n&&n.length===e.length?n:af(e),t),a=sf(o,e,{ease:Array.isArray(i)?i:lf(e,i)});return{calculatedDuration:t,next:c=>(s.value=a(c),s.done=c>=t,s)}}const uf=t=>{const e=({timestamp:n})=>t(n);return{start:()=>_.update(e,!0),stop:()=>wt(e),now:()=>W.isProcessing?W.timestamp:pt.now()}},df={decay:Vi,inertia:Vi,tween:se,keyframes:se,spring:zo},ff=t=>t/100;class Br extends Fo{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||$r,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=Tr(n)?n:df[n]||se;let c,l;process.env.NODE_ENV!=="production"&&a!==se&&mt(e.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),a!==se&&typeof e[0]!="number"&&(c=Ce(ff,No(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});s==="mirror"&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=io(u));const{calculatedDuration:d}=u,f=d+i,h=f*(r+1)-i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:c,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:h,repeatType:p,repeatDelay:g,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const y=this.currentTime-f*(this.speed>=0?1:-1),x=this.speed>=0?y<0:y>u;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let b=this.currentTime,T=s;if(h){const C=Math.min(this.currentTime,u)/d;let F=Math.floor(C),j=C%1;!j&&C>=1&&(j=1),j===1&&F--,F=Math.min(F,h+1),!!(F%2)&&(p==="reverse"?(j=1-j,g&&(j-=g/d)):p==="mirror"&&(T=o)),b=vt(0,1,j)*d}const m=x?{done:!1,value:c[0]}:T.next(b);a&&(m.value=a(m.value));let{done:P}=m;!x&&l!==null&&(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return A&&i!==void 0&&(m.value=ln(c,this.options,i)),v&&v(m.value),A&&this.finish(),m}get duration(){const{resolved:e}=this;return e?yt(e.calculatedDuration):0}get time(){return yt(this.currentTime)}set time(e){e=ft(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=yt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=uf,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const hf=new Set(["opacity","clipPath","filter","transform"]);function pf(t,e,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:c}={}){const l={[e]:n};c&&(l.offset=c);const u=ao(a,i);return Array.isArray(u)&&(l.easing=u),t.animate(l,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const mf=or(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Je=10,gf=2e4;function yf(t){return Tr(t.type)||t.type==="spring"||!oo(t.ease)}function vf(t,e){const n=new Br({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let s=0;for(;!r.done&&s<gf;)r=n.sample(s),i.push(r.value),s+=Je;return{times:void 0,keyframes:i,duration:s-Je,ease:"linear"}}const Uo={anticipate:So,backInOut:bo,circInOut:wo};function xf(t){return t in Uo}class ki extends Fo{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Oo(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&Ye()&&xf(s)&&(s=Uo[s]),yf(this.options)){const{onComplete:d,onUpdate:f,motionValue:h,element:p,...g}=this.options,v=vf(e,g);e=v.keyframes,e.length===1&&(e[1]=e[0]),r=v.duration,i=v.times,s=v.ease,o="keyframes"}const u=pf(a.owner.current,c,e,{...this.options,duration:r,times:i,ease:s});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(hi(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(ln(e,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:i,type:o,ease:s,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return yt(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return yt(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ft(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return Q;const{animation:r}=n;hi(r,e)}return Q}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:u,onComplete:d,element:f,...h}=this.options,p=new Br({...h,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),g=ft(this.time);l.setWithVelocity(p.sample(g-Je).value,p.sample(g).value,Je)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=n.owner.getProps();return mf()&&r&&hf.has(r)&&!c&&!l&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const bf={type:"spring",stiffness:500,damping:25,restSpeed:10},Sf=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Tf={type:"keyframes",duration:.8},wf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Cf=(t,{keyframes:e})=>e.length>2?Tf:Mt.has(t)?t.startsWith("scale")?Sf(e[1]):bf:wf;function Pf({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const Or=(t,e,n,r={},i,s)=>o=>{const a=Sr(r,t)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-ft(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:i};Pf(a)||(u={...u,...Cf(t,u)}),u.duration&&(u.duration=ft(u.duration)),u.repeatDelay&&(u.repeatDelay=ft(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!s&&e.get()!==void 0){const f=ln(u.keyframes,a);if(f!==void 0)return _.update(()=>{u.onUpdate(f),u.onComplete()}),new Uu([])}return!s&&ki.supports(u)?new ki(u):new Br(u)};function Af({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function qo(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...c}=e;r&&(o=r);const l=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const d in c){const f=t.getValue(d,(s=t.latestValues[d])!==null&&s!==void 0?s:null),h=c[d];if(h===void 0||u&&Af(u,d))continue;const p={delay:n,...Sr(o||{},d)};let g=!1;if(window.MotionHandoffAnimation){const y=mo(t);if(y){const x=window.MotionHandoffAnimation(y,d,_);x!==null&&(p.startTime=x,g=!0)}}Nn(t,d),f.start(Or(d,f,h,t.shouldReduceMotion&&ho.has(d)?{type:!1}:p,t,g));const v=f.animation;v&&l.push(v)}return a&&Promise.all(l).then(()=>{_.update(()=>{a&&Vr(t,a)})}),l}function Hn(t,e,n={}){var r;const i=ye(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(qo(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=s;return Rf(t,e,u+l,d,f,n)}:()=>Promise.resolve(),{when:c}=s;if(c){const[l,u]=c==="beforeChildren"?[o,a]:[a,o];return l().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function Rf(t,e,n=0,r=0,i=1,s){const o=[],a=(t.variantChildren.size-1)*r,c=i===1?(l=0)=>l*r:(l=0)=>a-l*r;return Array.from(t.variantChildren).sort(Vf).forEach((l,u)=>{l.notify("AnimationStart",e),o.push(Hn(l,e,{...s,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",e)))}),Promise.all(o)}function Vf(t,e){return t.sortNodePosition(e)}function Go(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(s=>Hn(t,s,n));r=Promise.all(i)}else if(typeof e=="string")r=Hn(t,e,n);else{const i=typeof e=="function"?ye(t,e,n.custom):e;r=Promise.all(qo(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}function Ho(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const Ef=cr.length;function Ko(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Ko(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Ef;n++){const r=cr[n],i=t.props[r];(pe(i)||i===!1)&&(e[r]=i)}return e}const Mf=[...ar].reverse(),kf=ar.length;function Df(t){return e=>Promise.all(e.map(({animation:n,options:r})=>Go(t,n,r)))}function Lf(t){let e=Df(t),n=Di(),r=!0;const i=c=>(l,u)=>{var d;const f=ye(t,u,c==="exit"?(d=t.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:p,...g}=f;l={...l,...g,...p}}return l};function s(c){e=c(t)}function o(c){const{props:l}=t,u=Ko(t.parent)||{},d=[],f=new Set;let h={},p=1/0;for(let v=0;v<kf;v++){const y=Mf[v],x=n[y],b=l[y]!==void 0?l[y]:u[y],T=pe(b),m=y===c?x.isActive:null;m===!1&&(p=v);let P=b===u[y]&&b!==l[y]&&T;if(P&&r&&t.manuallyAnimateOnMount&&(P=!1),x.protectedKeys={...h},!x.isActive&&m===null||!b&&!x.prevProp||an(b)||typeof b=="boolean")continue;const A=$f(x.prevProp,b);let C=A||y===c&&x.isActive&&!P&&T||v>p&&T,F=!1;const j=Array.isArray(b)?b:[b];let et=j.reduce(i(y),{});m===!1&&(et={});const{prevResolvedValues:Ae={}}=x,dn={...Ae,...et},Re=z=>{C=!0,f.has(z)&&(F=!0,f.delete(z)),x.needsAnimating[z]=!0;const rt=t.getValue(z);rt&&(rt.liveStyle=!1)};for(const z in dn){const rt=et[z],Zt=Ae[z];if(h.hasOwnProperty(z))continue;let kt=!1;On(rt)&&On(Zt)?kt=!Ho(rt,Zt):kt=rt!==Zt,kt?rt!=null?Re(z):f.add(z):rt!==void 0&&f.has(z)?Re(z):x.protectedKeys[z]=!0}x.prevProp=b,x.prevResolvedValues=et,x.isActive&&(h={...h,...et}),r&&t.blockInitialAnimation&&(C=!1),C&&(!(P&&A)||F)&&d.push(...j.map(z=>({animation:z,options:{type:y}})))}if(f.size){const v={};if(typeof l.initial!="boolean"){const y=ye(t,Array.isArray(l.initial)?l.initial[0]:l.initial);y&&y.transition&&(v.transition=y.transition)}f.forEach(y=>{const x=t.getBaseTarget(y),b=t.getValue(y);b&&(b.liveStyle=!0),v[y]=x??null}),d.push({animation:v})}let g=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(g=!1),r=!1,g?e(d):Promise.resolve()}function a(c,l){var u;if(n[c].isActive===l)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(c,l)}),n[c].isActive=l;const d=o(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Di(),r=!0}}}function $f(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ho(e,t):!1}function At(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Di(){return{animate:At(!0),whileInView:At(),whileHover:At(),whileTap:At(),whileDrag:At(),whileFocus:At(),exit:At()}}class Pt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class _f extends Pt{constructor(e){super(e),e.animationState||(e.animationState=Lf(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();an(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(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let Bf=0;class Of extends Pt{constructor(){super(...arguments),this.id=Bf++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)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 Ff={animation:{Feature:_f},exit:{Feature:Of}};function be(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function Pe(t){return{point:{x:t.pageX,y:t.pageY}}}const If=t=>e=>Cr(e)&&t(e,Pe(e));function Ft(t,e,n,r){return be(t,e,If(n),r)}function Yo({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Nf({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function jf(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Xo=1e-4,zf=1-Xo,Wf=1+Xo,Zo=.01,Uf=0-Zo,qf=0+Zo;function X(t){return t.max-t.min}function Gf(t,e,n){return Math.abs(t-e)<=n}function Li(t,e,n,r=.5){t.origin=r,t.originPoint=O(e.min,e.max,t.origin),t.scale=X(n)/X(e),t.translate=O(n.min,n.max,t.origin)-t.originPoint,(t.scale>=zf&&t.scale<=Wf||isNaN(t.scale))&&(t.scale=1),(t.translate>=Uf&&t.translate<=qf||isNaN(t.translate))&&(t.translate=0)}function oe(t,e,n,r){Li(t.x,e.x,n.x,r?r.originX:void 0),Li(t.y,e.y,n.y,r?r.originY:void 0)}function $i(t,e,n){t.min=n.min+e.min,t.max=t.min+X(e)}function Hf(t,e,n){$i(t.x,e.x,n.x),$i(t.y,e.y,n.y)}function _i(t,e,n){t.min=e.min-n.min,t.max=t.min+X(e)}function ae(t,e,n){_i(t.x,e.x,n.x),_i(t.y,e.y,n.y)}const Bi=()=>({translate:0,scale:1,origin:0,originPoint:0}),It=()=>({x:Bi(),y:Bi()}),Oi=()=>({min:0,max:0}),I=()=>({x:Oi(),y:Oi()});function st(t){return[t("x"),t("y")]}function Cn(t){return t===void 0||t===1}function Kn({scale:t,scaleX:e,scaleY:n}){return!Cn(t)||!Cn(e)||!Cn(n)}function Rt(t){return Kn(t)||Jo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Jo(t){return Fi(t.x)||Fi(t.y)}function Fi(t){return t&&t!=="0%"}function Qe(t,e,n){const r=t-n,i=e*r;return n+i}function Ii(t,e,n,r,i){return i!==void 0&&(t=Qe(t,i,r)),Qe(t,n,r)+e}function Yn(t,e=0,n=1,r,i){t.min=Ii(t.min,e,n,r,i),t.max=Ii(t.max,e,n,r,i)}function Qo(t,{x:e,y:n}){Yn(t.x,e.translate,e.scale,e.originPoint),Yn(t.y,n.translate,n.scale,n.originPoint)}const Ni=.999999999999,ji=1.0000000000001;function Kf(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&jt(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Qo(t,o)),r&&Rt(s.latestValues)&&jt(t,s.latestValues))}e.x<ji&&e.x>Ni&&(e.x=1),e.y<ji&&e.y>Ni&&(e.y=1)}function Nt(t,e){t.min=t.min+e,t.max=t.max+e}function zi(t,e,n,r,i=.5){const s=O(t.min,t.max,i);Yn(t,e,n,s,r)}function jt(t,e){zi(t.x,e.x,e.scaleX,e.scale,e.originX),zi(t.y,e.y,e.scaleY,e.scale,e.originY)}function ta(t,e){return Yo(jf(t.getBoundingClientRect(),e))}function Yf(t,e,n){const r=ta(t,n),{scroll:i}=e;return i&&(Nt(r.x,i.offset.x),Nt(r.y,i.offset.y)),r}const Wi=(t,e)=>Math.abs(t-e);function Xf(t,e){const n=Wi(t.x,e.x),r=Wi(t.y,e.y);return Math.sqrt(n**2+r**2)}class ea{constructor(e,n,{transformPagePoint:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=An(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=Xf(u.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:h}=u,{timestamp:p}=W;this.history.push({...h,timestamp:p});const{onStart:g,onMove:v}=this.handlers;d||(g&&g(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{if(u.target instanceof Element&&u.target.hasPointerCapture&&u.pointerId!==void 0)try{if(!u.target.hasPointerCapture(u.pointerId))return}catch{}this.lastMoveEvent=u,this.lastMoveEventInfo=Pn(d,this.transformPagePoint),_.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{Xe(u,"release"),this.end();const{onEnd:f,onSessionEnd:h,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=An(u.type==="pointercancel"||u.type==="lostpointercapture"?this.lastMoveEventInfo:Pn(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,g),h&&h(u,g)},!Cr(e))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r;const s=Pe(e),o=Pn(s,this.transformPagePoint),{point:a}=o,{timestamp:c}=W;this.history=[{...a,timestamp:c}];const{onSessionStart:l}=n;l&&l(e,An(o,this.history)),Xe(e,"set"),this.removeListeners=Ce(Ft(e.currentTarget,"pointermove",this.handlePointerMove),Ft(e.currentTarget,"pointerup",this.handlePointerUp),Ft(e.currentTarget,"pointercancel",this.handlePointerUp),Ft(e.currentTarget,"lostpointercapture",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),wt(this.updatePoint)}}function Pn(t,e){return e?{point:e(t.point)}:t}function Ui(t,e){return{x:t.x-e.x,y:t.y-e.y}}function An({point:t},e){return{point:t,delta:Ui(t,na(e)),offset:Ui(t,Zf(e)),velocity:Jf(e,.1)}}function Zf(t){return t[0]}function na(t){return t[t.length-1]}function Jf(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=na(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>ft(e)));)n--;if(!r)return{x:0,y:0};const s=yt(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Qf(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?O(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?O(n,t,r.max):Math.min(t,n)),t}function qi(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 th(t,{top:e,left:n,bottom:r,right:i}){return{x:qi(t.x,n,i),y:qi(t.y,e,r)}}function Gi(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function eh(t,e){return{x:Gi(t.x,e.x),y:Gi(t.y,e.y)}}function nh(t,e){let n=.5;const r=X(t),i=X(e);return i>r?n=Ut(e.min,e.max-r,t.min):r>i&&(n=Ut(t.min,t.max-i,e.min)),vt(0,1,n)}function rh(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 Xn=.35;function ih(t=Xn){return t===!1?t=0:t===!0&&(t=Xn),{x:Hi(t,"left","right"),y:Hi(t,"top","bottom")}}function Hi(t,e,n){return{min:Ki(t,e),max:Ki(t,n)}}function Ki(t,e){return typeof t=="number"?t:t[e]||0}const sh=new WeakMap;class oh{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=I(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Pe(u).point)},s=(u,d)=>{const{drag:f,dragPropagation:h,onDragStart:p}=this.getProps();if(f&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Qu(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),st(v=>{let y=this.getAxisMotionValue(v).get()||0;if(ht.test(y)){const{projection:x}=this.visualElement;if(x&&x.layout){const b=x.layout.layoutBox[v];b&&(y=X(b)*(parseFloat(y)/100))}}this.originPoint[v]=y}),p&&_.postRender(()=>p(u,d)),Nn(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:p,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:v}=d;if(h&&this.currentDirection===null){this.currentDirection=ah(v),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),g&&g(u,d)},a=(u,d)=>this.stop(u,d),c=()=>st(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new ea(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&_.postRender(()=>s(e,n))}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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!$e(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=Qf(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;n&&Bt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=th(i.layoutBox,n):this.constraints=!1,this.elastic=ih(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&st(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=rh(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Bt(e))return!1;const r=e.current;mt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Yf(r,i.root,this.visualElement.getTransformPagePoint());let o=eh(i.layout.layoutBox,s);if(n){const a=n(Nf(o));this.hasMutatedConstraints=!!a,a&&(o=Yo(a))}return o}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=st(u=>{if(!$e(u,n,this.currentDirection))return;let d=c[u]||{};o&&(d={min:0,max:0});const f=i?200:1e6,h=i?40:1e7,p={type:"inertia",velocity:r?e[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(u,p)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Nn(this.visualElement,e),r.start(Or(e,r,0,n,this.visualElement,!1))}stopAnimation(){st(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){st(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){st(n=>{const{drag:r}=this.getProps();if(!$e(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(e[n]-O(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bt(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};st(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();i[o]=nh({min:c,max:c},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),st(o=>{if(!$e(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(O(c,l,i[o]))})}addListeners(){if(!this.visualElement.current)return;sh.set(this.visualElement,this);const e=this.visualElement.current,n=Ft(e,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Bt(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),_.read(r);const o=be(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(st(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Xn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function $e(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function ah(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 Pt{constructor(e){super(e),this.removeGroupControls=Q,this.removeListeners=Q,this.controls=new oh(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Q}unmount(){this.removeGroupControls(),this.removeListeners()}}const Yi=t=>(e,n)=>{t&&_.postRender(()=>t(e,n))};class lh extends Pt{constructor(){super(...arguments),this.removePointerDownListener=Q}onPointerDown(e){this.session=new ea(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Yi(e),onStart:Yi(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&_.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Ft(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 We={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xi(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const te={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(V.test(t))t=parseFloat(t);else return t;const n=Xi(t,e.target.x),r=Xi(t,e.target.y);return`${n}% ${r}%`}},uh={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Ct.parse(t);if(i.length>5)return r;const s=Ct.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=c;const l=O(a,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),s(i)}};class dh extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=e;yu(fh),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),We.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||_.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ur.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ra(t){const[e,n]=Yl(),r=S.useContext(Bs);return Ue.jsx(dh,{...t,layoutGroup:r,switchLayoutGroup:S.useContext(qs),isPresent:e,safeToRemove:n})}const fh={borderRadius:{...te,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomLeftRadius:te,borderBottomRightRadius:te,boxShadow:uh};function hh(t,e,n){const r=K(t)?t:ve(t);return r.start(Or("",r,e,n)),r.animation}function ph(t){return t instanceof SVGElement&&t.tagName!=="svg"}const mh=(t,e)=>t.depth-e.depth;class gh{constructor(){this.children=[],this.isDirty=!1}add(e){Pr(this.children,e),this.isDirty=!0}remove(e){Ar(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(mh),this.isDirty=!1,this.children.forEach(e)}}function yh(t,e){const n=pt.now(),r=({timestamp:i})=>{const s=i-n;s>=e&&(wt(r),t(s-e))};return _.read(r,!0),()=>wt(r)}const ia=["TopLeft","TopRight","BottomLeft","BottomRight"],vh=ia.length,Zi=t=>typeof t=="string"?parseFloat(t):t,Ji=t=>typeof t=="number"||V.test(t);function xh(t,e,n,r,i,s){i?(t.opacity=O(0,n.opacity!==void 0?n.opacity:1,bh(r)),t.opacityExit=O(e.opacity!==void 0?e.opacity:1,0,Sh(r))):s&&(t.opacity=O(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<vh;o++){const a=`border${ia[o]}Radius`;let c=Qi(e,a),l=Qi(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||Ji(c)===Ji(l)?(t[a]=Math.max(O(Zi(c),Zi(l),r),0),(ht.test(l)||ht.test(c))&&(t[a]+="%")):t[a]=l}(e.rotate||n.rotate)&&(t.rotate=O(e.rotate||0,n.rotate||0,r))}function Qi(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const bh=sa(0,.5,To),Sh=sa(.5,.95,Q);function sa(t,e,n){return r=>r<t?0:r>e?1:n(Ut(t,e,r))}function ts(t,e){t.min=e.min,t.max=e.max}function it(t,e){ts(t.x,e.x),ts(t.y,e.y)}function es(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ns(t,e,n,r,i){return t-=e,t=Qe(t,1/n,r),i!==void 0&&(t=Qe(t,1/i,r)),t}function Th(t,e=0,n=1,r=.5,i,s=t,o=t){if(ht.test(e)&&(e=parseFloat(e),e=O(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=O(s.min,s.max,r);t===s&&(a-=e),t.min=ns(t.min,e,n,a,i),t.max=ns(t.max,e,n,a,i)}function rs(t,e,[n,r,i],s,o){Th(t,e[n],e[r],e[i],e.scale,s,o)}const wh=["x","scaleX","originX"],Ch=["y","scaleY","originY"];function is(t,e,n,r){rs(t.x,e,wh,n?n.x:void 0,r?r.x:void 0),rs(t.y,e,Ch,n?n.y:void 0,r?r.y:void 0)}function ss(t){return t.translate===0&&t.scale===1}function oa(t){return ss(t.x)&&ss(t.y)}function os(t,e){return t.min===e.min&&t.max===e.max}function Ph(t,e){return os(t.x,e.x)&&os(t.y,e.y)}function as(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function aa(t,e){return as(t.x,e.x)&&as(t.y,e.y)}function cs(t){return X(t.x)/X(t.y)}function ls(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Ah{constructor(){this.members=[]}add(e){Pr(this.members,e),e.scheduleRender()}remove(e){if(Ar(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 r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Rh(t,e,n){let r="";const i=t.x.translate/e.x,s=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:p}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),p&&(r+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const Rn=["","X","Y","Z"],Vh={visibility:"hidden"},us=1e3;let Eh=0;function Vn(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function ca(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=mo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",_,!(i||s))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&ca(r)}function la({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=Eh++,this.animationId=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(Dh),this.nodes.forEach(Oh),this.nodes.forEach(Fh),this.nodes.forEach(Lh)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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 gh)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Rr),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const c=this.eventHandlers.get(o);c&&c.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ph(o),this.instance=o;const{layoutId:c,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(l||c)&&(this.isLayoutDirty=!0),t){let d;const f=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=yh(f,250),We.hasAnimatedSinceResize&&(We.hasAnimatedSinceResize=!1,this.nodes.forEach(fs))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||Wh,{onLayoutAnimationStart:v,onLayoutAnimationComplete:y}=u.getProps(),x=!this.targetLayout||!aa(this.targetLayout,p),b=!f&&h;if(this.options.layoutRoot||this.resumeFrom||b||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,b);const T={...Sr(g,"layout"),onPlay:v,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||fs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,wt(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(Ih),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ca(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ds);return}this.isUpdating||this.nodes.forEach(_h),this.isUpdating=!1,this.nodes.forEach(Bh),this.nodes.forEach(Mh),this.nodes.forEach(kh),this.clearAllSnapshots();const a=pt.now();W.delta=vt(0,1e3/60,a-W.timestamp),W.timestamp=a,W.isProcessing=!0,xn.update.process(W),xn.preRender.process(W),xn.render.process(W),W.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ur.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($h),this.sharedNodes.forEach(Nh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,_.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){_.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!X(this.snapshot.measuredBox.x)&&!X(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 o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=I(),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,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!oa(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;o&&(a||Rt(this.latestValues)||u)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return o&&(c=this.removeTransform(c)),Uh(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return I();const c=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(qh))){const{scroll:u}=this.root;u&&(Nt(c.x,u.offset.x),Nt(c.y,u.offset.y))}return c}removeElementScroll(o){var a;const c=I();if(it(c,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return c;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&it(c,o),Nt(c.x,d.offset.x),Nt(c.y,d.offset.y))}return c}applyTransform(o,a=!1){const c=I();it(c,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&jt(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Rt(u.latestValues)&&jt(c,u.latestValues)}return Rt(this.latestValues)&&jt(c,this.latestValues),c}removeTransform(o){const a=I();it(a,o);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!Rt(l.latestValues))continue;Kn(l.latestValues)&&l.updateSnapshot();const u=I(),d=l.measurePageBox();it(u,d),is(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Rt(this.latestValues)&&is(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==W.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==c;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=W.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=I(),this.relativeTargetOrigin=I(),ae(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=I(),this.targetWithTransforms=I()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Hf(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):it(this.target,this.layout.layoutBox),Qo(this.target,this.targetDelta)):it(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=I(),this.relativeTargetOrigin=I(),ae(this.relativeTargetOrigin,this.target,h.target),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Kn(this.parent.latestValues)||Jo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),c=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(l=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===W.timestamp&&(l=!1),l)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;it(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;Kf(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=I());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(es(this.prevProjectionDelta.x,this.projectionDelta.x),es(this.prevProjectionDelta.y,this.projectionDelta.y)),oe(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!ls(this.projectionDelta.x,this.prevProjectionDelta.x)||!ls(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=It(),this.projectionDelta=It(),this.projectionDeltaWithTransform=It()}setAnimationOrigin(o,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},d=It();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=I(),h=c?c.source:void 0,p=this.layout?this.layout.source:void 0,g=h!==p,v=this.getStack(),y=!v||v.members.length<=1,x=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(zh));this.animationProgress=0;let b;this.mixTargetDelta=T=>{const m=T/1e3;hs(d.x,o.x,m),hs(d.y,o.y,m),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ae(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jh(this.relativeTarget,this.relativeTargetOrigin,f,m),b&&Ph(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=I()),it(b,this.relativeTarget)),g&&(this.animationValues=u,xh(u,l,this.latestValues,m,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(wt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_.update(()=>{We.hasAnimatedSinceResize=!0,this.currentAnimation=hh(0,us,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(us),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&ua(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||I();const d=X(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+d;const f=X(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}it(a,c),jt(a,u),oe(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Ah),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Vn("z",o,l,this.animationValues);for(let u=0;u<Rn.length;u++)Vn(`rotate${Rn[u]}`,o,l,this.animationValues),Vn(`skew${Rn[u]}`,o,l,this.animationValues);o.render();for(const u in l)o.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);o.scheduleRender()}getProjectionStyles(o){var a,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Vh;const l={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=je(o==null?void 0:o.pointerEvents)||"",l.transform=u?u(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=je(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Rt(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=Rh(this.projectionDeltaWithTransform,this.treeScale,f),u&&(l.transform=u(f,l.transform));const{x:h,y:p}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,d.animationValues?l.opacity=d===this?(c=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:l.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const g in me){if(f[g]===void 0)continue;const{correct:v,applyTo:y,isCSSVariable:x}=me[g],b=l.transform==="none"?f[g]:v(f[g],d);if(y){const T=y.length;for(let m=0;m<T;m++)l[y[m]]=b}else x?this.options.visualElement.renderState.vars[g]=b:l[g]=b}return this.options.layoutId&&(l.pointerEvents=d===this?je(o==null?void 0:o.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ds),this.root.sharedNodes.clear()}}}function Mh(t){t.updateLayout()}function kh(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;s==="size"?st(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=X(f);f.min=r[d].min,f.max=f.min+h}):ua(s,n.layoutBox,r)&&st(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=X(r[d]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+h)});const a=It();oe(a,r,n.layoutBox);const c=It();o?oe(c,t.applyTransform(i,!0),n.measuredBox):oe(c,r,n.layoutBox);const l=!oa(a);let u=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const p=I();ae(p,n.layoutBox,f.layoutBox);const g=I();ae(g,r,h.layoutBox),aa(p,g)||(u=!0),d.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function Dh(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 Lh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function $h(t){t.clearSnapshot()}function ds(t){t.clearMeasurements()}function _h(t){t.isLayoutDirty=!1}function Bh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function fs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Oh(t){t.resolveTargetDelta()}function Fh(t){t.calcProjection()}function Ih(t){t.resetSkewAndRotation()}function Nh(t){t.removeLeadSnapshot()}function hs(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 ps(t,e,n,r){t.min=O(e.min,n.min,r),t.max=O(e.max,n.max,r)}function jh(t,e,n,r){ps(t.x,e.x,n.x,r),ps(t.y,e.y,n.y,r)}function zh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Wh={duration:.45,ease:[.4,0,.1,1]},ms=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),gs=ms("applewebkit/")&&!ms("chrome/")?Math.round:Q;function ys(t){t.min=gs(t.min),t.max=gs(t.max)}function Uh(t){ys(t.x),ys(t.y)}function ua(t,e,n){return t==="position"||t==="preserve-aspect"&&!Gf(cs(e),cs(n),.2)}function qh(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Gh=la({attachResizeListener:(t,e)=>be(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),En={current:void 0},da=la({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!En.current){const t=new Gh({});t.mount(window),t.setOptions({layoutScroll:!0}),En.current=t}return En.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Hh={pan:{Feature:lh},drag:{Feature:ch,ProjectionNode:da,MeasureLayout:ra}};function vs(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&_.postRender(()=>s(e,Pe(e)))}class Kh extends Pt{mount(){const{current:e}=this.node;e&&(this.unmount=Hu(e,(n,r)=>(vs(this.node,r,"Start"),i=>vs(this.node,i,"End"))))}unmount(){}}class Yh extends Pt{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=Ce(be(this.node.current,"focus",()=>this.onFocus()),be(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xs(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&_.postRender(()=>s(e,Pe(e)))}class Xh extends Pt{mount(){const{current:e}=this.node;e&&(this.unmount=Zu(e,(n,r)=>(xs(this.node,r,"Start"),(i,{success:s})=>xs(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Zn=new WeakMap,Mn=new WeakMap,Zh=t=>{const e=Zn.get(t.target);e&&e(t)},Jh=t=>{t.forEach(Zh)};function Qh({root:t,...e}){const n=t||document;Mn.has(n)||Mn.set(n,{});const r=Mn.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(Jh,{root:t,...e})),r[i]}function tp(t,e,n){const r=Qh(e);return Zn.set(t,n),r.observe(t),()=>{Zn.delete(t),r.unobserve(t)}}const ep={some:0,all:1};class np extends Pt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=e,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:ep[i]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,s&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=l?u:d;f&&f(c)};return tp(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(rp(e,n))&&this.startObserver()}unmount(){}}function rp({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const ip={inView:{Feature:np},tap:{Feature:Xh},focus:{Feature:Yh},hover:{Feature:Kh}},sp={layout:{ProjectionNode:da,MeasureLayout:ra}},Jn={current:null},fa={current:!1};function op(){if(fa.current=!0,!!sr)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Jn.current=t.matches;t.addListener(e),e()}else Jn.current=!1}const ap=[...Bo,H,Ct],cp=t=>ap.find(_o(t)),lp=new WeakMap;function up(t,e,n){for(const r in e){const i=e[r],s=n[r];if(K(i))t.addValue(r,i),process.env.NODE_ENV==="development"&&sn(i.version==="12.4.7",`Attempting to mix Motion versions ${i.version} with 12.4.7 may not work as expected.`);else if(K(s))t.addValue(r,ve(i,{owner:t}));else if(s!==i)if(t.hasValue(r)){const o=t.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(r);t.addValue(r,ve(o!==void 0?o:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const bs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class dp{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=$r,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=pt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,_.render(this.render,!1,!0))};const{latestValues:c,renderState:l,onUpdate:u}=o;this.onUpdate=u,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=cn(n),this.isVariantNode=Ws(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const p=f[h];c[h]!==void 0&&K(p)&&p.set(c[h],!1)}}mount(e){this.current=e,lp.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,r)=>this.bindToMotionValue(r,n)),fa.current||op(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Jn.current,process.env.NODE_ENV!=="production"&&sn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),wt(this.notifyUpdate),wt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(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}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Mt.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&_.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),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 qt){const n=qt[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):I()}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 r=0;r<bs.length;r++){const i=bs[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=e[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=up(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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 r=this.values.get(e);n!==r&&(r&&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 r=this.values.get(e);return r===void 0&&n!==void 0&&(r=ve(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Lo(i)||Co(i))?i=parseFloat(i):!cp(i)&&Ct.test(n)&&(i=Mo(e,n)),this.setBaseTarget(e,K(i)?i.get():i)),K(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=xr(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!K(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 Rr),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class ha extends dp{constructor(){super(...arguments),this.KeyframeResolver=Oo}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:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;K(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function fp(t){return window.getComputedStyle(t)}class hp extends ha{constructor(){super(...arguments),this.type="html",this.renderInstance=to}readValueFromInstance(e,n){if(Mt.has(n)){const r=Lr(n);return r&&r.default||0}else{const r=fp(e),i=(dr(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ta(e,n)}build(e,n,r){pr(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return br(e,n,r)}}class pp extends ha{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=I,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Qs(this.current,this.renderState)}}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Mt.has(n)){const r=Lr(n);return r&&r.default||0}return n=eo.has(n)?n:lr(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return ro(e,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&_.postRender(this.updateDimensions)}build(e,n,r){yr(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){no(e,n,r,i)}mount(e){this.isSVGTag=vr(e.tagName),super.mount(e)}}const mp=(t,e)=>gr(t)?new pp(e):new hp(e,{allowProjection:t!==S.Fragment}),gp=ju({...Ff,...ip,...Hh,...sp},mp),yp=ru(gp);function vp(t){t.values.forEach(e=>e.stop())}function Qn(t,e){[...e].reverse().forEach(r=>{const i=t.getVariant(r);i&&Vr(t,i),t.variantChildren&&t.variantChildren.forEach(s=>{Qn(s,e)})})}function xp(t,e){if(Array.isArray(e))return Qn(t,e);if(typeof e=="string")return Qn(t,[e]);Vr(t,e)}function bp(){let t=!1;const e=new Set,n={subscribe(r){return e.add(r),()=>void e.delete(r)},start(r,i){mt(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const s=[];return e.forEach(o=>{s.push(Go(o,r,{transitionOverride:i}))}),Promise.all(s)},set(r){return mt(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(i=>{xp(i,r)})},stop(){e.forEach(r=>{vp(r)})},mount(){return t=!0,()=>{t=!1,n.stop()}}};return n}function Sp(){const t=Os(bp);return Is(t.mount,[]),t}const Tp=Sp,wp={some:0,all:1};function Cp(t,e,{root:n,margin:r,amount:i="some"}={}){const s=lo(t),o=new WeakMap,a=l=>{l.forEach(u=>{const d=o.get(u.target);if(u.isIntersecting!==!!d)if(u.isIntersecting){const f=e(u.target,u);typeof f=="function"?o.set(u.target,f):c.unobserve(u.target)}else typeof d=="function"&&(d(u),o.delete(u.target))})},c=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof i=="number"?i:wp[i]});return s.forEach(l=>c.observe(l)),()=>c.disconnect()}function Pp(t,{root:e,margin:n,amount:r,once:i=!1,initial:s=!1}={}){const[o,a]=S.useState(s);return S.useEffect(()=>{if(!t.current||i&&o)return;const c=()=>(a(!0),i?void 0:()=>a(!1)),l={root:e&&e.current||void 0,margin:n,amount:r};return Cp(t.current,c,l)},[e,t,n,i,r]),o}var Ap="var(--_14qm28z0)",Rp="var(--_14qm28z1)",Vp="var(--_14qm28z2)",Ep="var(--_14qm28z3)",Mp="var(--_14qm28z4)",kp="var(--_14qm28z5)",Dp="var(--_14qm28z6)",Lp="var(--_14qm28z7)",$p="var(--_14qm28z8)",_p="var(--_14qm28z9)",Bp={width:"100%",display:"flex",alignItems:"center",position:"relative",flexDirection:"column",animation:"background 0.5s ease-in-out",color:"var(--_14qm28z2)",zIndex:"var(--_14qm28z1)",minHeight:"var(--_14qm28z7)",paddingTop:"var(--_14qm28z3)",paddingLeft:"var(--_14qm28z4)",paddingRight:"var(--_14qm28z5)",paddingBottom:"var(--_14qm28z6)",background:"var(--_14qm28z9)",justifyContent:"var(--_14qm28z8)"},Op="_14qm28zb",ce=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(ce||{});const Fp={hidden:{opacity:0},visible:{opacity:1,transition:{delay:.5,bounce:.2,duration:1,type:"spring"}}},Ip=({children:t,className:e,zIndex:n=20,id:r=void 0,isDark:i=!1,align:s=ce.Left,isFullHeight:o=!1,noPaddingTop:a=!1,theme:c=$,backgroundColor:l="",noPaddingBottom:u=!1})=>{const d=Tp(),f=ct(),h=S.createRef(),{colors:p,header:{height:g},footer:{height:v},global:{paddingRight:y,paddingLeft:x},section:{paddingTop:b,paddingBottom:T}}=c,m=Pp(h,{margin:"0px 0px 0px 0px"});return S.useEffect(()=>{m&&d.start("visible")},[d,m]),w("section",{id:r,ref:h,className:e,style:L({[Rp]:`${n}`,[_p]:l,[$p]:o?"center":"flex-start",[Vp]:i?p.defaultLightText:p.defaultText,[Lp]:o?`calc(100vh - ${g[f]}px - ${v[f]}px)`:"0",[Mp]:`${x[f]}px`,[kp]:`${y[f]}px`,[Ep]:a?"0px":`${b[f]}px`,[Dp]:u?"0px":`${T[f]}px`}),children:w(yp.div,{className:Op,initial:"hidden",animate:d,variants:Fp,style:L({[Ap]:s===ce.Center?"center":s===ce.Right?"right":"left"}),children:t})})};var Np={navGap:"var(--_1h6zt340)"},jp="_1h6zt341";const zp=({children:t,theme:e=$,className:n})=>{const r=ct(),{nav:{gap:i}}=e;return w("nav",{className:n,style:L({[Np.navGap]:`${i[r]}px`}),children:t})};var Wp={navSocialGap:"var(--g7q46n0)"},Up="g7q46n1",qp="g7q46n2";const Gp=({navSocial:t,className:e,theme:n=$})=>{const r=ct(),{navSocial:{gap:i}}=n;return w("div",{className:e,style:L({[Wp.navSocialGap]:`${i[r]}px`}),children:t.map(({name:s,link:o},a)=>{const c=s[0].toUpperCase()+s.slice(1);return w("div",{className:qp,children:w("a",{target:"_blank",rel:"noopener noreferrer","aria-label":s,href:o,children:w(Tt,{theme:n,icon:`social${c}`})})},`navSocialItem-${a}`)})})};var Hp={navLegalGap:"var(--vehv9e0)"},Kp="vehv9e1";const Yp=({children:t,className:e,theme:n=$})=>{const r=ct(),{navLegal:{gap:i}}=n;return w("nav",{className:e,style:L({[Hp.navLegalGap]:`${i[r]}px`}),children:t})};var kn={formWidth:"var(--dvq5w80)",formPadding:"var(--dvq5w81)",formBackgroundColor:"var(--dvq5w82)"},Xp="dvq5w84";const Zp=({action:t,children:e,theme:n=$,className:r})=>w("form",{className:r,action:typeof t=="string"?t:void 0,style:L({[kn.formWidth]:`${n.form.width}px`,[kn.formPadding]:`${n.form.padding[0]}px`,[kn.formBackgroundColor]:n.form.backgroundColor}),children:e});var _e={rowGap:"var(--_223sdz0)",rowPadding:"var(--_223sdz1)",rowFontSize:"var(--_223sdz2)",rowJustifyContent:"var(--_223sdz3)"},le=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(le||{});const Jp=({children:t,theme:e=$,className:n,align:r=le.Left,isMessage:i=!1,isActions:s=!1})=>w("div",{className:n,style:L({[_e.rowGap]:`${e.form.row.gap[0]}px`,[_e.rowPadding]:`${e.form.row.padding[0]}px`,[_e.rowFontSize]:i?"0.8em":"inherit",[_e.rowJustifyContent]:r===le.Right?"flex-end":r===le.Center?"center":"flex-start"}),children:t});var xt={font:"var(--k6gj0i0)",color:"var(--k6gj0i1)",border:"var(--k6gj0i2)",borderRadius:"var(--k6gj0i3)",backgroundColor:"var(--k6gj0i4)",padding:"var(--k6gj0i5)",placeholderColor:"var(--k6gj0i6)",placeholderOpacity:"var(--k6gj0i7)"},Qp="k6gj0i9",un=(t=>(t.Text="text",t.Email="email",t.Search="search",t.Number="number",t.Hidden="hidden",t.Password="password",t))(un||{});const pa=({name:t,value:e="",type:n=un.Text,disabled:r=!1,placeholder:i="",theme:s=$,onChange:o=void 0,className:a})=>w("input",{id:t,name:t,type:n,defaultValue:e,disabled:r,placeholder:i,onChange:o,className:a,style:L({[xt.font]:`var(--font-${s.form.input.font})`,[xt.color]:s.form.input.color,[xt.border]:s.form.input.border,[xt.borderRadius]:`${s.form.input.borderRadius}`,[xt.backgroundColor]:s.form.input.backgroundColor,[xt.padding]:`${s.form.input.padding[0]}px`,[xt.placeholderColor]:s.form.input.placeholder.color,[xt.placeholderOpacity]:`${s.form.input.placeholder.opacity}`})});var bt={font:"var(--l5ei120)",color:"var(--l5ei121)",border:"var(--l5ei122)",borderRadius:"var(--l5ei123)",padding:"var(--l5ei124)",backgroundColor:"var(--l5ei125)",placeholderColor:"var(--l5ei126)",placeholderOpacity:"var(--l5ei127)"},tm="l5ei129";const ma=({name:t,value:e,rows:n=2,disabled:r=!1,placeholder:i="",onChange:s=void 0,theme:o=$,className:a})=>w("textarea",{id:t,name:t,rows:n,className:a,defaultValue:e,placeholder:i,disabled:r,onChange:s,style:L({[bt.font]:`var(--font-${o.form.textarea.font})`,[bt.color]:o.form.textarea.color,[bt.border]:o.form.textarea.border,[bt.borderRadius]:`${o.form.textarea.borderRadius}px`,[bt.padding]:`${o.form.textarea.padding[0]}px`,[bt.backgroundColor]:o.form.textarea.backgroundColor,[bt.placeholderColor]:o.form.textarea.placeholder.color,[bt.placeholderOpacity]:`${o.form.textarea.placeholder.opacity}`})});var Be={font:"var(--_1s956dc0)",color:"var(--_1s956dc1)",fontWeight:"var(--_1s956dc2)",paddingBottom:"var(--_1s956dc3)"},em="_1s956dc5";const ga=({name:t,label:e,required:n=!1,theme:r=$,className:i})=>at("label",{htmlFor:t,className:i,style:L({[Be.font]:`var(--font-${r.form.label.font})`,[Be.color]:r.form.label.color,[Be.fontWeight]:`${r.form.label.fontWeight}`,[Be.paddingBottom]:`${r.form.label.paddingBottom}px`}),children:[e,n?w("span",{children:" *"}):null]});var nm={errorColor:"var(--_1e95ziv0)"},rm="_1e95ziv2",Fr=(t=>(t.Textarea="textarea",t))(Fr||{});const im=({name:t,label:e="",value:n="",rows:r=2,required:i=!1,disabled:s=!1,placeholder:o="",errors:a=void 0,theme:c=$,onChange:l=void 0,type:u=un.Text,className:d})=>at("div",{className:d,style:L({[nm.errorColor]:c.form.error.color}),children:[e&&w(ga,{className:"",theme:c,label:e,name:t,required:i}),u===Fr.Textarea?w(ma,{className:"",value:n,rows:r,name:t,theme:c,onChange:l,disabled:s,placeholder:o}):w(pa,{className:"",value:n,type:u,name:t,theme:c,onChange:l,disabled:s,placeholder:o}),a&&w("div",{children:a instanceof Array?a.map((f,h)=>w("span",{children:f},h)):a})]});var gt={overlayBlur:"var(--pewdww0)",overlayOpacity:"var(--pewdww1)",overlayBackgroundColor:"var(--pewdww2)",width:"var(--pewdww3)",backgroundColor:"var(--pewdww4)",borderRadius:"var(--pewdww5)",borders:"var(--pewdww6)",actionsGap:"var(--pewdww7)",actionsPaddingTop:"var(--pewdww8)"},sm="pewdww9";function om(t){const e=t+"=",r=decodeURIComponent(document.cookie).split(";");for(let i=0;i<r.length;i++){let s=r[i];for(;s.charAt(0)==" ";)s=s.substring(1);if(s.indexOf(e)==0)return s.substring(e.length,s.length)}return""}function am(t,e,n){const r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);const i="expires="+r.toUTCString();document.cookie=t+"="+e+";"+i+";path=/"}const cm=({children:t,theme:e=$,cookieName:n="consent",translations:r,cookieExpirationDays:i=365,className:s})=>{const[o,a]=S.useState(!1),c=l=>{a(!1),am(n,`${l}`,i)};return S.useEffect(()=>{const l=om(n),u=l!=="true"&&l!=="false",d=l==="true";u&&a(!0);const f=d?"granted":"denied";typeof window.gtag<"u"&&window.gtag("consent","update",{analytics_storage:f})},[o]),o?at("div",{className:s,style:L({[gt.overlayBlur]:`${e.consentCookie.overlayBlur}`,[gt.overlayOpacity]:`${e.consentCookie.overlayOpacity}`,[gt.overlayBackgroundColor]:e.consentCookie.overlayBackgroundColor,[gt.backgroundColor]:e.consentCookie.backgroundColor,[gt.width]:`${e.consentCookie.width[0]}`,[gt.borderRadius]:`${e.consentCookie.borderRadius}`,[gt.borders]:`${e.consentCookie.borders}`,[gt.actionsGap]:`${e.consentCookie.actionsGap}`,[gt.actionsPaddingTop]:`${e.consentCookie.actionsPaddingTop[0]}px`}),children:[t,at("div",{children:[w(_n,{className:"",onClick:()=>c(!1),children:(r==null?void 0:r.actions.reject)||"Reject"}),w(_n,{className:"",onClick:()=>c(!0),children:(r==null?void 0:r.actions.accept)||"Accept"})]})]}):null};exports.Actions=Yc;exports.ActionsAlign=$t;exports.ActionsStyles=Kc;exports.Button=_n;exports.ButtonSize=re;exports.ButtonStyle=He;exports.ButtonStyles=zc;exports.ButtonType=rr;exports.ButtonVariant=Ge;exports.Carousel=ml;exports.CarouselStyles=hl;exports.Columns=Kl;exports.ColumnsAlign=_t;exports.ColumnsStyles=Hl;exports.ConsentCookie=cm;exports.ConsentCookieStyles=sm;exports.Footer=Gl;exports.FooterStyles=ql;exports.Form=Zp;exports.FormRow=Jp;exports.FormRowAlign=le;exports.FormStyles=Xp;exports.Header=Ul;exports.HeaderStyles=jl;exports.Icon=Tt;exports.IconStyles=Xc;exports.InputStyles=Qp;exports.InputType=un;exports.KeyNumber=Tl;exports.KeyNumberStyles=wl;exports.LanguageSwitcher=Ml;exports.LanguageSwitcherStyles=Rl;exports.Logo=fl;exports.LogoStyles=dl;exports.Main=$l;exports.MainStyles=Ll;exports.Modal=nl;exports.ModalStyles=Qc;exports.Nav=zp;exports.NavLegal=Yp;exports.NavLegalStyles=Kp;exports.NavSocial=Gp;exports.NavSocialStyles=Up;exports.NavStyles=jp;exports.Section=Ip;exports.SectionAlign=ce;exports.SectionStyles=Bp;exports.TextField=im;exports.TextFieldInput=pa;exports.TextFieldLabel=ga;exports.TextFieldLabelStyles=em;exports.TextFieldStyles=rm;exports.TextFieldTextarea=ma;exports.TextareaStyles=tm;exports.TextareaType=Fr;exports.Video=_s;exports.VideoFullWidth=Pl;exports.VideoFullWidthStyles=Cl;