@ukpc-lib/react 0.3.33 → 0.3.35

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.
@@ -3,8 +3,8 @@
3
3
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[os]=this[os]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=Wt(s);r[a]||(nh(i,s),r[a]=!0)}return w.isArray(t)?t.forEach(o):o(t),this}}kr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(kr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});w.freezeMethods(kr);const Ie=kr;function Gr(e,t){const n=this||io,r=t||n,i=Ie.from(r.headers);let o=r.data;return w.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Wl(e){return!!(e&&e.__CANCEL__)}function vn(e,t,n){V.call(this,e??"canceled",V.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(vn,V,{__CANCEL__:!0});function rh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new V("Request failed with status code "+n.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const ih=Me.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];w.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),w.isString(r)&&s.push("path="+r),w.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function oh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sh(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Hl(e,t){return e&&!oh(t)?sh(e,t):t}const ah=Me.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const a=w.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function lh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function uh(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=r[o];s||(s=u),n[i]=l,r[i]=u;let c=o,d=0;for(;c!==i;)d+=n[c++],c=c%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s<t)return;const h=f&&u-f;return h?Math.round(d*1e3/h):void 0}}function ss(e,t){let n=0;const r=uh(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a),u=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:i};f[t?"download":"upload"]=!0,e(f)}}const ch=typeof XMLHttpRequest<"u",fh=ch&&function(e){return new Promise(function(n,r){let i=e.data;const o=Ie.from(e.headers).normalize();let{responseType:s,withXSRFToken:a}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let f;if(w.isFormData(i)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[g,...y]=f?f.split(";").map(v=>v.trim()).filter(Boolean):[];o.setContentType([g||"multipart/form-data",...y].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+y))}const d=Hl(e.baseURL,e.url);c.open(e.method.toUpperCase(),Bl(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function h(){if(!c)return;const g=Ie.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:e,request:c};rh(function(x){n(x),u()},function(x){r(x),u()},v),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(r(new V("Request aborted",V.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new V("Network Error",V.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||$l;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new V(y,v.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,e,c)),c=null},Me.hasStandardBrowserEnv&&(a&&w.isFunction(a)&&(a=a(e)),a||a!==!1&&ah(d))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&ih.read(e.xsrfCookieName);g&&o.set(e.xsrfHeaderName,g)}i===void 0&&o.setContentType(null),"setRequestHeader"in c&&w.forEach(o.toJSON(),function(y,v){c.setRequestHeader(v,y)}),w.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&s!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",ss(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",ss(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=g=>{c&&(r(!g||g.type?new vn(null,e,c):g),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=lh(d);if(p&&Me.protocols.indexOf(p)===-1){r(new V("Unsupported protocol "+p+":",V.ERR_BAD_REQUEST,e));return}c.send(i||null)})},Ci={http:Ld,xhr:fh};w.forEach(Ci,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const as=e=>`- ${e}`,dh=e=>w.isFunction(e)||e===null||e===!1,ql={getAdapter:e=>{e=w.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let s;if(r=n,!dh(n)&&(r=Ci[(s=String(n)).toLowerCase()],r===void 0))throw new V(`Unknown adapter '${s}'`);if(r)break;i[s||"#"+o]=r}if(!r){const o=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
4
4
  `+o.map(as).join(`
5
5
  `):" "+as(o[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Ci};function Xr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vn(null,e)}function ls(e){return Xr(e),e.headers=Ie.from(e.headers),e.data=Gr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ql.getAdapter(e.adapter||io.adapter)(e).then(function(r){return Xr(e),r.data=Gr.call(e,e.transformResponse,r),r.headers=Ie.from(r.headers),r},function(r){return Wl(r)||(Xr(e),r&&r.response&&(r.response.data=Gr.call(e,e.transformResponse,r.response),r.response.headers=Ie.from(r.response.headers))),Promise.reject(r)})}const us=e=>e instanceof Ie?e.toJSON():e;function Lt(e,t){t=t||{};const n={};function r(u,f,c){return w.isPlainObject(u)&&w.isPlainObject(f)?w.merge.call({caseless:c},u,f):w.isPlainObject(f)?w.merge({},f):w.isArray(f)?f.slice():f}function i(u,f,c){if(w.isUndefined(f)){if(!w.isUndefined(u))return r(void 0,u,c)}else return r(u,f,c)}function o(u,f){if(!w.isUndefined(f))return r(void 0,f)}function s(u,f){if(w.isUndefined(f)){if(!w.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function a(u,f,c){if(c in t)return r(u,f);if(c in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,f)=>i(us(u),us(f),!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=l[f]||i,d=c(e[f],t[f],f);w.isUndefined(d)&&c!==a||(n[f]=d)}),n}const Gl="1.6.2",oo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const cs={};oo.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Gl+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new V(i(s," has been removed"+(n?" in "+n:"")),V.ERR_DEPRECATED);return n&&!cs[s]&&(cs[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};function hh(e,t,n){if(typeof e!="object")throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new V("option "+o+" must be "+l,V.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new V("Unknown option "+o,V.ERR_BAD_OPTION)}}const ki={assertOptions:hh,validators:oo},He=ki.validators;class Jn{constructor(t){this.defaults=t,this.interceptors={request:new is,response:new is}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Lt(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&ki.assertOptions(r,{silentJSONParsing:He.transitional(He.boolean),forcedJSONParsing:He.transitional(He.boolean),clarifyTimeoutError:He.transitional(He.boolean)},!1),i!=null&&(w.isFunction(i)?n.paramsSerializer={serialize:i}:ki.assertOptions(i,{encode:He.function,serialize:He.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&w.merge(o.common,o[n.method]);o&&w.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=Ie.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let f,c=0,d;if(!l){const p=[ls.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,u),d=p.length,f=Promise.resolve(n);c<d;)f=f.then(p[c++],p[c++]);return f}d=a.length;let h=n;for(c=0;c<d;){const p=a[c++],g=a[c++];try{h=p(h)}catch(y){g.call(this,y);break}}try{f=ls.call(this,h)}catch(p){return Promise.reject(p)}for(c=0,d=u.length;c<d;)f=f.then(u[c++],u[c++]);return f}getUri(t){t=Lt(this.defaults,t);const n=Hl(t.baseURL,t.url);return Bl(n,t.params,t.paramsSerializer)}}w.forEach(["delete","get","head","options"],function(t){Jn.prototype[t]=function(n,r){return this.request(Lt(r||{},{method:t,url:n,data:(r||{}).data}))}});w.forEach(["post","put","patch"],function(t){function n(r){return function(o,s,a){return this.request(Lt(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Jn.prototype[t]=n(),Jn.prototype[t+"Form"]=n(!0)});const Dn=Jn;class so{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new vn(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new so(function(i){t=i}),cancel:t}}}const ph=so;function mh(e){return function(n){return e.apply(null,n)}}function gh(e){return w.isObject(e)&&e.isAxiosError===!0}const Ti={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ti).forEach(([e,t])=>{Ti[t]=e});const yh=Ti;function Xl(e){const t=new Dn(e),n=Rl(Dn.prototype.request,t);return w.extend(n,Dn.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Xl(Lt(e,i))},n}const J=Xl(io);J.Axios=Dn;J.CanceledError=vn;J.CancelToken=ph;J.isCancel=Wl;J.VERSION=Gl;J.toFormData=Cr;J.AxiosError=V;J.Cancel=J.CanceledError;J.all=function(t){return Promise.all(t)};J.spread=mh;J.isAxiosError=gh;J.mergeConfig=Lt;J.AxiosHeaders=Ie;J.formToJSON=e=>Ul(w.isHTMLForm(e)?new FormData(e):e);J.getAdapter=ql.getAdapter;J.HttpStatusCode=yh;J.default=J;const Kl=J;var vh=typeof global=="object"&&global&&global.Object===Object&&global;const xh=vh;var bh=typeof self=="object"&&self&&self.Object===Object&&self,wh=xh||bh||Function("return this")();const Yl=wh;var Sh=Yl.Symbol;const Zn=Sh;var Jl=Object.prototype,Eh=Jl.hasOwnProperty,Ch=Jl.toString,Ht=Zn?Zn.toStringTag:void 0;function kh(e){var t=Eh.call(e,Ht),n=e[Ht];try{e[Ht]=void 0;var r=!0}catch{}var i=Ch.call(e);return r&&(t?e[Ht]=n:delete e[Ht]),i}var Th=Object.prototype,Ph=Th.toString;function Rh(e){return Ph.call(e)}var Ah="[object Null]",Oh="[object Undefined]",fs=Zn?Zn.toStringTag:void 0;function _h(e){return e==null?e===void 0?Oh:Ah:fs&&fs in Object(e)?kh(e):Rh(e)}function Mh(e){return e!=null&&typeof e=="object"}var jh="[object Symbol]";function Vh(e){return typeof e=="symbol"||Mh(e)&&_h(e)==jh}var Lh=/\s/;function Fh(e){for(var t=e.length;t--&&Lh.test(e.charAt(t)););return t}var Dh=/^\s+/;function Ih(e){return e&&e.slice(0,Fh(e)+1).replace(Dh,"")}function Qn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ds=0/0,Nh=/^[-+]0x[0-9a-f]+$/i,Bh=/^0b[01]+$/i,$h=/^0o[0-7]+$/i,zh=parseInt;function hs(e){if(typeof e=="number")return e;if(Vh(e))return ds;if(Qn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ih(e);var n=Bh.test(e);return n||$h.test(e)?zh(e.slice(2),n?2:8):Nh.test(e)?ds:+e}var Uh=function(){return Yl.Date.now()};const Kr=Uh;var Wh="Expected a function",Hh=Math.max,qh=Math.min;function In(e,t,n){var r,i,o,s,a,l,u=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(Wh);t=hs(t)||0,Qn(n)&&(f=!!n.leading,c="maxWait"in n,o=c?Hh(hs(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function h(C){var T=r,P=i;return r=i=void 0,u=C,s=e.apply(P,T),s}function p(C){return u=C,a=setTimeout(v,t),f?h(C):s}function g(C){var T=C-l,P=C-u,_=t-T;return c?qh(_,o-P):_}function y(C){var T=C-l,P=C-u;return l===void 0||T>=t||T<0||c&&P>=o}function v(){var C=Kr();if(y(C))return b(C);a=setTimeout(v,g(C))}function b(C){return a=void 0,d&&r?h(C):(r=i=void 0,s)}function x(){a!==void 0&&clearTimeout(a),u=0,r=l=i=a=void 0}function S(){return a===void 0?s:b(Kr())}function E(){var C=Kr(),T=y(C);if(r=arguments,i=this,l=C,T){if(a===void 0)return p(l);if(c)return clearTimeout(a),a=setTimeout(v,t),h(l)}return a===void 0&&(a=setTimeout(v,t)),s}return E.cancel=x,E.flush=S,E}var Gh="Expected a function";function Xh(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Gh);return Qn(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),In(e,t,{leading:r,maxWait:t,trailing:i})}var Kh=!!(typeof window<"u"&&window.document&&window.document.createElement),Yh=Kh;const Zl=m.getDefaultExportFromCjs(Yh);var At=function(){return At=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},At.apply(this,arguments)},Tt=null,ps=null;Zl&&window.addEventListener("resize",function(){ps!==window.devicePixelRatio&&(ps=window.devicePixelRatio,Tt=null)});function ms(){if(Tt===null){if(typeof document>"u")return Tt=0,Tt;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),Tt=n}return Tt}function Ql(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function eu(e){return!e||!e.ownerDocument?document:e.ownerDocument}var tu=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},t);return n};function nu(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function ru(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function iu(e){return".".concat(e.split(" ").join("."))}var Jh=Object.freeze({__proto__:null,getElementWindow:Ql,getElementDocument:eu,getOptions:tu,addClasses:nu,removeClasses:ru,classNamesToQuery:iu}),qe=Ql,Yr=eu,Zh=tu,Ge=nu,Xe=ru,le=iu,Cn=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=qe(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Ge(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Xe(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Ge(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Xe(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,s;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),s&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,s,a,l,u,f,c,d,h,p,g;if(!(!r.draggedAxis||!r.contentWrapperEl)){var y,v=r.axis[r.draggedAxis].track,b=(s=(o=v.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,x=r.axis[r.draggedAxis].scrollbar,S=(l=(a=r.contentWrapperEl)===null||a===void 0?void 0:a[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,E=parseInt((f=(u=r.elStyles)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].sizeAttr])!==null&&f!==void 0?f:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?y=i.pageY:y=i.pageX;var C=y-((d=(c=v.rect)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].offsetAttr])!==null&&d!==void 0?d:0)-r.axis[r.draggedAxis].dragOffset;C=r.draggedAxis==="x"&&r.isRtl?((p=(h=v.rect)===null||h===void 0?void 0:h[r.axis[r.draggedAxis].sizeAttr])!==null&&p!==void 0?p:0)-x.size-C:C;var T=C/(b-x.size),P=T*(S-E);r.draggedAxis==="x"&&r.isRtl&&(P=!((g=e.getRtlHelpers())===null||g===void 0)&&g.isScrollingToNegative?-P:P),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=P}},this.onEndDrag=function(i){var o=Yr(r.el),s=qe(r.el);i.preventDefault(),i.stopPropagation(),Xe(r.el,r.classNames.dragging),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=At(At({},e.defaultOptions),n),this.classNames=At(At({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Xh(this._onMouseMove,64),this.onWindowResize=In(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=In(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=In(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:ms()}catch{return ms()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=Yr(t),i=qe(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){Zl&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(le(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(le(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(le(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(le(this.classNames.offset)),this.maskEl=this.el.querySelector(le(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,le(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(le(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(le(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(le(this.classNames.track)).concat(le(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(le(this.classNames.track)).concat(le(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(le(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(le(this.classNames.scrollbar)))||null,this.options.autoHide||(Ge(this.axis.x.scrollbar.el,this.classNames.visible),Ge(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=qe(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=qe(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,u=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||u,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var f=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&u>n,this.axis.y.isOverflowing=l>f,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&u>o-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>f-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,s=o/i,a;return a=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],a=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[t].sizeAttr],10),u=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];u=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-u:u,t==="x"&&this.isRtl&&(u=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?u:-u);var f=u/(s-l),c=~~((a-o.size)*f);c=t==="x"&&this.isRtl?-c+(a-o.size):c,o.el.style.transform=t==="x"?"translate3d(".concat(c,"px, 0, 0)"):"translate3d(0, ".concat(c,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Ge(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Xe(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Ge(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Ge(n.scrollbar.el,this.classNames.hover):Xe(n.scrollbar.el,this.classNames.hover)):(Xe(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Xe(this.axis[t].track.el,this.classNames.hover),Xe(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y");var i=Yr(this.el),o=qe(this.el),s=this.axis[n].scrollbar,a=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=a-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Ge(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,i,o,s,a;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var u=qe(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var f=this.axis[n].scrollbar,c=(o=(i=f.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,d=parseInt((a=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&a!==void 0?a:"0px",10),h=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],p=n==="y"?this.mouseY-c:this.mouseX-c,g=p<0?-1:1,y=g===-1?h-d:h+d,v=40,b=function(){r.contentWrapperEl&&(g===-1?h>y&&(h-=v,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=h,u.requestAnimationFrame(b)):h<y&&(h+=v,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=h,u.requestAnimationFrame(b)))};b()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=qe(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Zh,e.helpers=Jh,e}(),pe=function(){return pe=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},pe.apply(this,arguments)};function Qh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var ou=m.reactExports.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=Qh(e,["children","scrollableNodeProps"]),s=m.reactExports.useRef(),a=m.reactExports.useRef(),l=m.reactExports.useRef(),u={},f={};Object.keys(o).forEach(function(h){Object.prototype.hasOwnProperty.call(Cn.defaultOptions,h)?u[h]=o[h]:f[h]=o[h]});var c=pe(pe({},Cn.defaultOptions.classNames),u.classNames),d=pe(pe({},i),{className:"".concat(c.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":u.ariaLabel||Cn.defaultOptions.ariaLabel});return m.reactExports.useEffect(function(){var h;return a.current=d.ref?d.ref.current:a.current,s.current&&(h=new Cn(s.current,pe(pe(pe({},u),a.current&&{scrollableNode:a.current}),l.current&&{contentNode:l.current})),typeof t=="function"?t(h):t&&(t.current=h)),function(){h==null||h.unMount(),h=null,typeof t=="function"&&t(null)}},[]),m.reactExports.createElement("div",pe({"data-simplebar":"init",ref:s},f),m.reactExports.createElement("div",{className:c.wrapper},m.reactExports.createElement("div",{className:c.heightAutoObserverWrapperEl},m.reactExports.createElement("div",{className:c.heightAutoObserverEl})),m.reactExports.createElement("div",{className:c.mask},m.reactExports.createElement("div",{className:c.offset},typeof n=="function"?n({scrollableNodeRef:a,scrollableNodeProps:pe(pe({},d),{ref:a}),contentNodeRef:l,contentNodeProps:{className:c.contentEl,ref:l}}):m.reactExports.createElement("div",pe({},d),m.reactExports.createElement("div",{className:c.contentEl},n)))),m.reactExports.createElement("div",{className:c.placeholder})),m.reactExports.createElement("div",{className:"".concat(c.track," simplebar-horizontal")},m.reactExports.createElement("div",{className:c.scrollbar})),m.reactExports.createElement("div",{className:"".concat(c.track," simplebar-vertical")},m.reactExports.createElement("div",{className:c.scrollbar})))});ou.displayName="SimpleBar";const ep=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
6
- `,tp={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},np=e=>{window.location.href=`${e}/authentication/login?callbackUrl=${window.location.href}`},rp=e=>{window.location.href=`${e}/authentication/logout?callbackUrl=${window.location.href}`},ip=`.modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,0%,.254);--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#ffffff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px}.confirm-btn{background:#e01b00!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}
7
- `;function su({isOpen:e,onClose:t,onConfirm:n}){if(!e)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&t()}return m.jsxRuntimeExports.jsxs(m.jsxRuntimeExports.Fragment,{children:[m.jsxRuntimeExports.jsx("style",{type:"text/css",children:ip}),m.jsxRuntimeExports.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:m.jsxRuntimeExports.jsxs("div",{className:"modal-container",children:[m.jsxRuntimeExports.jsx("h3",{className:"modal-title",children:"Log out"}),m.jsxRuntimeExports.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),m.jsxRuntimeExports.jsxs("div",{className:"modal-footer",children:[m.jsxRuntimeExports.jsx("button",{className:"modal-button",onClick:t,children:"Cancel"}),m.jsxRuntimeExports.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}var Bt={};/**
6
+ `,tp={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},np=e=>{window.location.href=`${e}/authentication/login?callbackUrl=${window.location.href}`},rp=e=>{window.location.href=`${e}/authentication/logout?callbackUrl=${window.location.href}`},ip=`.modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,0%,.254);--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#ffffff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}.cancel-btn:hover{background:#C5C5C5}.confirm-btn{background:#e01b00!important}.confirm-btn:hover{background:#BE1700!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}
7
+ `;function su({isOpen:e,onClose:t,onConfirm:n}){if(!e)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&t()}return m.jsxRuntimeExports.jsxs(m.jsxRuntimeExports.Fragment,{children:[m.jsxRuntimeExports.jsx("style",{type:"text/css",children:ip}),m.jsxRuntimeExports.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:m.jsxRuntimeExports.jsxs("div",{className:"modal-container",children:[m.jsxRuntimeExports.jsx("h3",{className:"modal-title",children:"Log out"}),m.jsxRuntimeExports.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),m.jsxRuntimeExports.jsxs("div",{className:"modal-footer",children:[m.jsxRuntimeExports.jsx("button",{className:"modal-button cancel-btn",onClick:t,children:"Cancel"}),m.jsxRuntimeExports.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}var Bt={};/**
8
8
  * @license React
9
9
  * react-dom-server-legacy.browser.production.min.js
10
10
  *
@@ -32,7 +32,7 @@
32
32
  `?e.push(ni,j(n)):e.push(j(""+n)))}return typeof o=="string"&&o[0]===`
33
33
  `&&e.push(ni),o;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(Oe(t));for(var h in n)if(ce.call(n,h)&&(o=n[h],o!=null))switch(h){case"children":case"dangerouslySetInnerHTML":throw Error(M(399,t));default:he(e,r,h,o)}return e.push(Ws),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ti(e,n,t,r);case"html":return i.insertionMode===0&&e.push(em),ti(e,n,t,r);default:if(t.indexOf("-")===-1&&typeof n.is!="string")return ti(e,n,t,r);e.push(Oe(t)),s=o=null;for(u in n)if(ce.call(n,u)&&(a=n[u],a!=null))switch(u){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":Lu(e,r,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Vu(u)&&typeof a!="function"&&typeof a!="symbol"&&e.push(Ke,j(u),Pt,j(Q(a)),ht)}return e.push(Ye),Hn(e,s,o),o}}var nm=k("</"),rm=k(">"),im=k('<template id="'),om=k('"></template>'),sm=k("<!--$-->"),am=k('<!--$?--><template id="'),lm=k('"></template>'),um=k("<!--$!-->"),cm=k("<!--/$-->"),fm=k("<template"),dm=k('"'),hm=k(' data-dgst="');k(' data-msg="');k(' data-stck="');var pm=k("></template>");function qs(e,t,n){if(R(e,am),n===null)throw Error(M(395));return R(e,n),N(e,lm)}var mm=k('<div hidden id="'),gm=k('">'),ym=k("</div>"),vm=k('<svg aria-hidden="true" style="display:none" id="'),xm=k('">'),bm=k("</svg>"),wm=k('<math aria-hidden="true" style="display:none" id="'),Sm=k('">'),Em=k("</math>"),Cm=k('<table hidden id="'),km=k('">'),Tm=k("</table>"),Pm=k('<table hidden><tbody id="'),Rm=k('">'),Am=k("</tbody></table>"),Om=k('<table hidden><tr id="'),_m=k('">'),Mm=k("</tr></table>"),jm=k('<table hidden><colgroup id="'),Vm=k('">'),Lm=k("</colgroup></table>");function Fm(e,t,n,r){switch(n.insertionMode){case 0:case 1:return R(e,mm),R(e,t.segmentPrefix),R(e,j(r.toString(16))),N(e,gm);case 2:return R(e,vm),R(e,t.segmentPrefix),R(e,j(r.toString(16))),N(e,xm);case 3:return R(e,wm),R(e,t.segmentPrefix),R(e,j(r.toString(16))),N(e,Sm);case 4:return R(e,Cm),R(e,t.segmentPrefix),R(e,j(r.toString(16))),N(e,km);case 5:return R(e,Pm),R(e,t.segmentPrefix),R(e,j(r.toString(16))),N(e,Rm);case 6:return R(e,Om),R(e,t.segmentPrefix),R(e,j(r.toString(16))),N(e,_m);case 7:return R(e,jm),R(e,t.segmentPrefix),R(e,j(r.toString(16))),N(e,Vm);default:throw Error(M(397))}}function Dm(e,t){switch(t.insertionMode){case 0:case 1:return N(e,ym);case 2:return N(e,bm);case 3:return N(e,Em);case 4:return N(e,Tm);case 5:return N(e,Am);case 6:return N(e,Mm);case 7:return N(e,Lm);default:throw Error(M(397))}}var Im=k('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Nm=k('$RS("'),Bm=k('","'),$m=k('")<\/script>'),zm=k('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Um=k('$RC("'),Wm=k('","'),Hm=k('")<\/script>'),qm=k('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Gm=k('$RX("'),Xm=k('"'),Km=k(")<\/script>"),ri=k(","),Ym=/[<\u2028\u2029]/g;function ii(e){return JSON.stringify(e).replace(Ym,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var en=Object.assign,Jm=Symbol.for("react.element"),Fu=Symbol.for("react.portal"),Du=Symbol.for("react.fragment"),Iu=Symbol.for("react.strict_mode"),Nu=Symbol.for("react.profiler"),Bu=Symbol.for("react.provider"),$u=Symbol.for("react.context"),zu=Symbol.for("react.forward_ref"),Uu=Symbol.for("react.suspense"),Wu=Symbol.for("react.suspense_list"),Hu=Symbol.for("react.memo"),bo=Symbol.for("react.lazy"),Zm=Symbol.for("react.scope"),Qm=Symbol.for("react.debug_trace_mode"),eg=Symbol.for("react.legacy_hidden"),tg=Symbol.for("react.default_value"),Gs=Symbol.iterator;function ji(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Du:return"Fragment";case Fu:return"Portal";case Nu:return"Profiler";case Iu:return"StrictMode";case Uu:return"Suspense";case Wu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $u:return(e.displayName||"Context")+".Consumer";case Bu:return(e._context.displayName||"Context")+".Provider";case zu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hu:return t=e.displayName||null,t!==null?t:ji(e.type)||"Memo";case bo:t=e._payload,e=e._init;try{return ji(e(t))}catch{}}return null}var qu={};function Xs(e,t){if(e=e.contextTypes,!e)return qu;var n={},r;for(r in e)n[r]=t[r];return n}var gt=null;function Ar(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(e===null){if(n!==null)throw Error(M(401))}else{if(n===null)throw Error(M(401));Ar(e,n)}t.context._currentValue=t.value}}function Gu(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&Gu(e)}function Xu(e){var t=e.parent;t!==null&&Xu(t),e.context._currentValue=e.value}function Ku(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(M(402));e.depth===t.depth?Ar(e,t):Ku(e,t)}function Yu(e,t){var n=t.parent;if(n===null)throw Error(M(402));e.depth===n.depth?Ar(e,n):Yu(e,n),t.context._currentValue=t.value}function or(e){var t=gt;t!==e&&(t===null?Xu(e):e===null?Gu(t):t.depth===e.depth?Ar(t,e):t.depth>e.depth?Ku(t,e):Yu(t,e),gt=e)}var Ks={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Ys(e,t,n,r){var i=e.state!==void 0?e.state:null;e.updater=Ks,e.props=n,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var s=t.contextType;if(e.context=typeof s=="object"&&s!==null?s._currentValue:r,s=t.getDerivedStateFromProps,typeof s=="function"&&(s=s(n,i),i=s==null?i:en({},i,s),e.state=i),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&Ks.enqueueReplaceState(e,e.state,null),o.queue!==null&&0<o.queue.length)if(t=o.queue,s=o.replace,o.queue=null,o.replace=!1,s&&t.length===1)e.state=t[0];else{for(o=s?t[0]:e.state,i=!0,s=s?1:0;s<t.length;s++){var a=t[s];a=typeof a=="function"?a.call(e,o,n,r):a,a!=null&&(i?(i=!1,o=en({},o,a)):en(o,a))}e.state=o}else o.queue=null}var ng={id:1,overflow:""};function Vi(e,t,n){var r=e.id;e=e.overflow;var i=32-qn(r)-1;r&=~(1<<i),n+=1;var o=32-qn(t)+i;if(30<o){var s=i-i%5;return o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,{id:1<<32-qn(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var qn=Math.clz32?Math.clz32:og,rg=Math.log,ig=Math.LN2;function og(e){return e>>>=0,e===0?32:31-(rg(e)/ig|0)|0}function sg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ag=typeof Object.is=="function"?Object.is:sg,ze=null,wo=null,Gn=null,F=null,Yt=!1,sr=!1,fn=0,tt=null,Or=0;function pt(){if(ze===null)throw Error(M(321));return ze}function Js(){if(0<Or)throw Error(M(312));return{memoizedState:null,queue:null,next:null}}function So(){return F===null?Gn===null?(Yt=!1,Gn=F=Js()):(Yt=!0,F=Gn):F.next===null?(Yt=!1,F=F.next=Js()):(Yt=!0,F=F.next),F}function Eo(){wo=ze=null,sr=!1,Gn=null,Or=0,F=tt=null}function Ju(e,t){return typeof t=="function"?t(e):t}function Zs(e,t,n){if(ze=pt(),F=So(),Yt){var r=F.queue;if(t=r.dispatch,tt!==null&&(n=tt.get(r),n!==void 0)){tt.delete(r),r=F.memoizedState;do r=e(r,n.action),n=n.next;while(n!==null);return F.memoizedState=r,[r,t]}return[F.memoizedState,t]}return e=e===Ju?typeof t=="function"?t():t:n!==void 0?n(t):t,F.memoizedState=e,e=F.queue={last:null,dispatch:null},e=e.dispatch=lg.bind(null,ze,e),[F.memoizedState,e]}function Qs(e,t){if(ze=pt(),F=So(),t=t===void 0?null:t,F!==null){var n=F.memoizedState;if(n!==null&&t!==null){var r=n[1];e:if(r===null)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!ag(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),F.memoizedState=[e,t],e}function lg(e,t,n){if(25<=Or)throw Error(M(301));if(e===ze)if(sr=!0,e={action:n,next:null},tt===null&&(tt=new Map),n=tt.get(t),n===void 0)tt.set(t,e);else{for(t=n;t.next!==null;)t=t.next;t.next=e}}function ug(){throw Error(M(394))}function Pn(){}var ea={readContext:function(e){return e._currentValue},useContext:function(e){return pt(),e._currentValue},useMemo:Qs,useReducer:Zs,useRef:function(e){ze=pt(),F=So();var t=F.memoizedState;return t===null?(e={current:e},F.memoizedState=e):t},useState:function(e){return Zs(Ju,e)},useInsertionEffect:Pn,useLayoutEffect:function(){},useCallback:function(e,t){return Qs(function(){return e},t)},useImperativeHandle:Pn,useEffect:Pn,useDebugValue:Pn,useDeferredValue:function(e){return pt(),e},useTransition:function(){return pt(),[!1,ug]},useId:function(){var e=wo.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-qn(e)-1)).toString(32)+t;var n=Xn;if(n===null)throw Error(M(404));return t=fn++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return pt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(n===void 0)throw Error(M(407));return n()}},Xn=null,oi=_u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function cg(e){return console.error(e),null}function Jt(){}function fg(e,t,n,r,i,o,s,a,l){var u=[],f=new Set;return t={destination:null,responseState:t,progressiveChunkSize:r===void 0?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:f,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:i===void 0?cg:i,onAllReady:o===void 0?Jt:o,onShellReady:s===void 0?Jt:s,onShellError:a===void 0?Jt:a,onFatalError:l===void 0?Jt:l},n=ar(t,0,null,n,!1,!1),n.parentFlushed=!0,e=Co(t,e,null,n,f,qu,null,ng),u.push(e),t}function Co(e,t,n,r,i,o,s,a){e.allPendingTasks++,n===null?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var u=e.pingedTasks;u.push(l),u.length===1&&ec(e)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:o,context:s,treeContext:a};return i.add(l),l}function ar(e,t,n,r,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function dn(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function lr(e,t){var n=e.onShellError;n(t),n=e.onFatalError,n(t),e.destination!==null?(e.status=2,ju(e.destination,t)):(e.status=1,e.fatalError=t)}function ta(e,t,n,r,i){for(ze={},wo=t,fn=0,e=n(r,i);sr;)sr=!1,fn=0,Or+=1,F=null,e=n(r,i);return Eo(),e}function na(e,t,n,r){var i=n.render(),o=r.childContextTypes;if(o!=null){var s=t.legacyContext;if(typeof n.getChildContext!="function")r=s;else{n=n.getChildContext();for(var a in n)if(!(a in o))throw Error(M(108,ji(r)||"Unknown",a));r=en({},s,n)}t.legacyContext=r,ve(e,t,i),t.legacyContext=s}else ve(e,t,i)}function ra(e,t){if(e&&e.defaultProps){t=en({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Li(e,t,n,r,i){if(typeof n=="function")if(n.prototype&&n.prototype.isReactComponent){i=Xs(n,t.legacyContext);var o=n.contextType;o=new n(r,typeof o=="object"&&o!==null?o._currentValue:i),Ys(o,n,r,i),na(e,t,o,n)}else{o=Xs(n,t.legacyContext),i=ta(e,t,n,r,o);var s=fn!==0;if(typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0)Ys(i,n,r,o),na(e,t,i,n);else if(s){r=t.treeContext,t.treeContext=Vi(r,1,0);try{ve(e,t,i)}finally{t.treeContext=r}}else ve(e,t,i)}else if(typeof n=="string"){switch(i=t.blockedSegment,o=tm(i.chunks,n,r,e.responseState,i.formatContext),i.lastPushedText=!1,s=i.formatContext,i.formatContext=Kp(s,n,r),Fi(e,t,o),i.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push(nm,j(n),rm)}i.lastPushedText=!1}else{switch(n){case eg:case Qm:case Iu:case Nu:case Du:ve(e,t,r.children);return;case Wu:ve(e,t,r.children);return;case Zm:throw Error(M(343));case Uu:e:{n=t.blockedBoundary,i=t.blockedSegment,o=r.fallback,r=r.children,s=new Set;var a={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null},l=ar(e,i.chunks.length,a,i.formatContext,!1,!1);i.children.push(l),i.lastPushedText=!1;var u=ar(e,0,null,i.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=a,t.blockedSegment=u;try{if(Fi(e,t,r),u.lastPushedText&&u.textEmbedded&&u.chunks.push(xo),u.status=1,ur(a,u),a.pendingTasks===0)break e}catch(f){u.status=4,a.forceClientRender=!0,a.errorDigest=dn(e,f)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=Co(e,o,n,l,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof n=="object"&&n!==null)switch(n.$$typeof){case zu:if(r=ta(e,t,n.render,r,i),fn!==0){n=t.treeContext,t.treeContext=Vi(n,1,0);try{ve(e,t,r)}finally{t.treeContext=n}}else ve(e,t,r);return;case Hu:n=n.type,r=ra(n,r),Li(e,t,n,r,i);return;case Bu:if(i=r.children,n=n._context,r=r.value,o=n._currentValue,n._currentValue=r,s=gt,gt=r={parent:s,depth:s===null?0:s.depth+1,context:n,parentValue:o,value:r},t.context=r,ve(e,t,i),e=gt,e===null)throw Error(M(403));r=e.parentValue,e.context._currentValue=r===tg?e.context._defaultValue:r,e=gt=e.parent,t.context=e;return;case $u:r=r.children,r=r(n._currentValue),ve(e,t,r);return;case bo:i=n._init,n=i(n._payload),r=ra(n,r),Li(e,t,n,r,void 0);return}throw Error(M(130,n==null?n:typeof n,""))}}function ve(e,t,n){if(t.node=n,typeof n=="object"&&n!==null){switch(n.$$typeof){case Jm:Li(e,t,n.type,n.props,n.ref);return;case Fu:throw Error(M(257));case bo:var r=n._init;n=r(n._payload),ve(e,t,n);return}if(Mi(n)){ia(e,t,n);return}if(n===null||typeof n!="object"?r=null:(r=Gs&&n[Gs]||n["@@iterator"],r=typeof r=="function"?r:null),r&&(r=r.call(n))){if(n=r.next(),!n.done){var i=[];do i.push(n.value),n=r.next();while(!n.done);ia(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}typeof n=="string"?(r=t.blockedSegment,r.lastPushedText=Bs(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText)):typeof n=="number"&&(r=t.blockedSegment,r.lastPushedText=Bs(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function ia(e,t,n){for(var r=n.length,i=0;i<r;i++){var o=t.treeContext;t.treeContext=Vi(o,r,i);try{Fi(e,t,n[i])}finally{t.treeContext=o}}}function Fi(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return ve(e,t,n)}catch(l){if(Eo(),typeof l=="object"&&l!==null&&typeof l.then=="function"){n=l;var s=t.blockedSegment,a=ar(e,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=Co(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,or(o)}else throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,or(o),l}}function dg(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,Qu(this,t,e)}function Zu(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,r===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=n===void 0?Error(M(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(i){return Zu(i,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(r=t.onAllReady,r()))}function ur(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status===1&&ur(e,n)}else e.completedSegments.push(t)}function Qu(e,t,n){if(t===null){if(n.parentFlushed){if(e.completedRootSegment!==null)throw Error(M(389));e.completedRootSegment=n}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=Jt,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(n.parentFlushed&&n.status===1&&ur(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(dg,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&n.status===1&&(ur(t,n),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function ec(e){if(e.status!==2){var t=gt,n=oi.current;oi.current=ea;var r=Xn;Xn=e.responseState;try{var i=e.pingedTasks,o;for(o=0;o<i.length;o++){var s=i[o],a=e,l=s.blockedSegment;if(l.status===0){or(s.context);try{ve(a,s,s.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(xo),s.abortSet.delete(s),l.status=1,Qu(a,s.blockedBoundary,l)}catch(p){if(Eo(),typeof p=="object"&&p!==null&&typeof p.then=="function"){var u=s.ping;p.then(u,u)}else{s.abortSet.delete(s),l.status=4;var f=s.blockedBoundary,c=p,d=dn(a,c);if(f===null?lr(a,c):(f.pendingTasks--,f.forceClientRender||(f.forceClientRender=!0,f.errorDigest=d,f.parentFlushed&&a.clientRenderedBoundaries.push(f))),a.allPendingTasks--,a.allPendingTasks===0){var h=a.onAllReady;h()}}}finally{}}}i.splice(0,o),e.destination!==null&&ko(e,e.destination)}catch(p){dn(e,p),lr(e,p)}finally{Xn=r,oi.current=n,n===ea&&or(t)}}}function Rn(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,R(t,im),R(t,e.placeholderPrefix),e=j(r.toString(16)),R(t,e),N(t,om);case 1:n.status=2;var i=!0;r=n.chunks;var o=0;n=n.children;for(var s=0;s<n.length;s++){for(i=n[s];o<i.index;o++)R(t,r[o]);i=_r(e,t,i)}for(;o<r.length-1;o++)R(t,r[o]);return o<r.length&&(i=N(t,r[o])),i;default:throw Error(M(390))}}function _r(e,t,n){var r=n.boundary;if(r===null)return Rn(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,N(t,um),R(t,fm),r&&(R(t,hm),R(t,j(Q(r))),R(t,dm)),N(t,pm),Rn(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var i=e.responseState,o=i.nextSuspenseID++;i=k(i.boundaryPrefix+o.toString(16)),r=r.id=i,qs(t,e.responseState,r),Rn(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),qs(t,e.responseState,r.id),Rn(e,t,n);else{if(N(t,sm),n=r.completedSegments,n.length!==1)throw Error(M(391));_r(e,t,n[0])}return N(t,cm)}function oa(e,t,n){return Fm(t,e.responseState,n.formatContext,n.id),_r(e,t,n),Dm(t,n.formatContext)}function sa(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++)tc(e,t,n,r[i]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,R(t,e.startInlineScript),e.sentCompleteBoundaryFunction?R(t,Um):(e.sentCompleteBoundaryFunction=!0,R(t,zm)),r===null)throw Error(M(395));return n=j(n.toString(16)),R(t,r),R(t,Wm),R(t,e.segmentPrefix),R(t,n),N(t,Hm)}function tc(e,t,n,r){if(r.status===2)return!0;var i=r.id;if(i===-1){if((r.id=n.rootSegmentID)===-1)throw Error(M(392));return oa(e,t,r)}return oa(e,t,r),e=e.responseState,R(t,e.startInlineScript),e.sentCompleteSegmentFunction?R(t,Nm):(e.sentCompleteSegmentFunction=!0,R(t,Im)),R(t,e.segmentPrefix),i=j(i.toString(16)),R(t,i),R(t,Bm),R(t,e.placeholderPrefix),R(t,i),N(t,$m)}function ko(e,t){ge=new Uint8Array(512),ye=0;try{var n=e.completedRootSegment;if(n!==null&&e.pendingRootTasks===0){_r(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)R(t,r[n]);n<r.length&&N(t,r[n])}var i=e.clientRenderedBoundaries,o;for(o=0;o<i.length;o++){var s=i[o];r=t;var a=e.responseState,l=s.id,u=s.errorDigest,f=s.errorMessage,c=s.errorComponentStack;if(R(r,a.startInlineScript),a.sentClientRenderFunction?R(r,Gm):(a.sentClientRenderFunction=!0,R(r,qm)),l===null)throw Error(M(395));R(r,l),R(r,Xm),(u||f||c)&&(R(r,ri),R(r,j(ii(u||"")))),(f||c)&&(R(r,ri),R(r,j(ii(f||"")))),c&&(R(r,ri),R(r,j(ii(c)))),N(r,Km)}i.splice(0,o);var d=e.completedBoundaries;for(o=0;o<d.length;o++)sa(e,t,d[o]);d.splice(0,o),Fs(t),ge=new Uint8Array(512),ye=0;var h=e.partialBoundaries;for(o=0;o<h.length;o++){var p=h[o];e:{i=e,s=t;var g=p.completedSegments;for(a=0;a<g.length;a++)if(!tc(i,s,p,g[a])){a++,g.splice(0,a);var y=!1;break e}g.splice(0,a),y=!0}if(!y){e.destination=null,o++,h.splice(0,o);return}}h.splice(0,o);var v=e.completedBoundaries;for(o=0;o<v.length;o++)sa(e,t,v[o]);v.splice(0,o)}finally{Fs(t),e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.close()}}function aa(e,t){try{var n=e.abortableTasks;n.forEach(function(r){return Zu(r,e,t)}),n.clear(),e.destination!==null&&ko(e,e.destination)}catch(r){dn(e,r),lr(e,r)}}go.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,o,s=new Promise(function(f,c){o=f,i=c}),a=fg(e,Gp(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),Xp(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,function(){var f=new ReadableStream({type:"bytes",pull:function(c){if(a.status===1)a.status=2,ju(c,a.fatalError);else if(a.status!==2&&a.destination===null){a.destination=c;try{ko(a,c)}catch(d){dn(a,d),lr(a,d)}}},cancel:function(){aa(a)}},{highWaterMark:0});f.allReady=s,n(f)},function(f){s.catch(function(){}),r(f)},i);if(t&&t.signal){var l=t.signal,u=function(){aa(a,l.reason),l.removeEventListener("abort",u)};l.addEventListener("abort",u)}ec(a)})};go.version="18.2.0";var $t,nc;$t=Bt,nc=go;$t.version;var hg=$t.renderToString;$t.renderToStaticMarkup;$t.renderToNodeStream;$t.renderToStaticNodeStream;nc.renderToReadableStream;var rc={exports:{}},pg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",mg=pg,gg=mg;function ic(){}function oc(){}oc.resetWarningCache=ic;var yg=function(){function e(r,i,o,s,a,l){if(l!==gg){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:oc,resetWarningCache:ic};return n.PropTypes=n,n};rc.exports=yg();var K=rc.exports;const Ce=m.getDefaultExportFromCjs(K);var vg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sc(e,t){return e(t={exports:{}},t.exports),t.exports}var xg=sc(function(e){(function(t){var n=function(y,v,b){if(!l(v)||f(v)||c(v)||d(v)||a(v))return v;var x,S=0,E=0;if(u(v))for(x=[],E=v.length;S<E;S++)x.push(n(y,v[S],b));else for(var C in x={},v)Object.prototype.hasOwnProperty.call(v,C)&&(x[y(C,b)]=n(y,v[C],b));return x},r=function(y){return h(y)?y:(y=y.replace(/[\-_\s]+(.)?/g,function(v,b){return b?b.toUpperCase():""})).substr(0,1).toLowerCase()+y.substr(1)},i=function(y){var v=r(y);return v.substr(0,1).toUpperCase()+v.substr(1)},o=function(y,v){return function(b,x){var S=(x=x||{}).separator||"_",E=x.split||/(?=[A-Z])/;return b.split(E).join(S)}(y,v).toLowerCase()},s=Object.prototype.toString,a=function(y){return typeof y=="function"},l=function(y){return y===Object(y)},u=function(y){return s.call(y)=="[object Array]"},f=function(y){return s.call(y)=="[object Date]"},c=function(y){return s.call(y)=="[object RegExp]"},d=function(y){return s.call(y)=="[object Boolean]"},h=function(y){return(y-=0)==y},p=function(y,v){var b=v&&"process"in v?v.process:v;return typeof b!="function"?y:function(x,S){return b(x,y,S)}},g={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(y,v){return n(p(r,v),y)},decamelizeKeys:function(y,v){return n(p(o,v),y,v)},pascalizeKeys:function(y,v){return n(p(i,v),y)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=g:t.humps=g})(vg)}).decamelize,bg=function(e){if(Array.isArray(e))return e},wg=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||a.return==null||a.return()}finally{if(i)throw o}}return n}},la=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},Sg=function(e,t){if(e){if(typeof e=="string")return la(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?la(e,t):void 0}},Eg=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34
34
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},Cg=function(e,t){return bg(e)||wg(e,t)||Sg(e,t)||Eg()},ac=sc(function(e){function t(){return e.exports=t=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},t.apply(this,arguments)}e.exports=t}),kg=function(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},lc=function(e,t){if(e==null)return{};var n,r,i=kg(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},Tg=m.reactExports.createContext(null);function Di(e){var t=e.children,n=lc(e,["children"]);return typeof t!="string"&&(t=hg(t)),m.React$1.createElement("template",ac({},n,{dangerouslySetInnerHTML:{__html:t}}))}function Ii(e){var t=e.root,n=e.children;return m.reactDomExports.createPortal(n,t)}function Pg(e){var t=m.reactExports.forwardRef(function(n,r){var i,o,s=n.mode,a=n.delegatesFocus,l=n.styleSheets,u=n.ssr,f=n.children,c=lc(n,["mode","delegatesFocus","styleSheets","ssr","children"]),d=(o=m.reactExports.useRef((i=r)&&i.current),m.reactExports.useEffect(function(){i&&(i.current=o.current)},[i]),o),h=m.reactExports.useState(null),p=Cg(h,2),g=p[0],y=p[1],v="node_".concat(s).concat(a);return m.reactExports.useLayoutEffect(function(){if(d.current)try{if(typeof r=="function"&&r(d.current),u){var b=d.current.shadowRoot;return void y(b)}var x=d.current.attachShadow({mode:s,delegatesFocus:a});l.length>0&&(x.adoptedStyleSheets=l),y(x)}catch(S){(function(E){var C=E.error,T=E.styleSheets,P=E.root;switch(C.name){case"NotSupportedError":T.length>0&&(P.adoptedStyleSheets=T);break;default:throw C}})({error:S,styleSheets:l,root:g})}},[r,d,l]),m.React$1.createElement(m.React$1.Fragment,null,m.React$1.createElement(e.tag,ac({key:v,ref:d},c),(g||u)&&m.React$1.createElement(Tg.Provider,{value:g},u?m.React$1.createElement(Di,{shadowroot:s,shadowrootmode:s},e.render({root:g,ssr:u,children:f})):m.React$1.createElement(Ii,{root:g},e.render({root:g,ssr:u,children:f})))))});return t.propTypes={mode:Ce.oneOf(["open","closed"]),delegatesFocus:Ce.bool,styleSheets:Ce.arrayOf(Ce.instanceOf(globalThis.CSSStyleSheet)),ssr:Ce.bool,children:Ce.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Di.propTypes={children:Ce.oneOfType([Ce.string,Ce.node])},Di.defaultProps={children:""},Ii.propTypes={root:Ce.object.isRequired,children:Ce.node},Ii.defaultProps={children:null};var si=new Map;function Rg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(e,{get:function(r,i){var o=xg(i,{separator:"-"}),s="".concat(t,"-").concat(o);return si.has(s)||si.set(s,Pg({tag:o,render:n})),si.get(s)}})}var Ag=Rg();const Og=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
35
- `;function uc({children:e,styles:t=[],...n}){return m.jsxRuntimeExports.jsxs(Ag.div,{...n,children:[[Og,...t].map((r,i)=>m.jsxRuntimeExports.jsx("style",{type:"text/css",children:r},i)),e]})}const To=e=>typeof e=="number"&&!isNaN(e),tn=e=>typeof e=="string",cc=e=>typeof e=="function",_g=e=>m.reactExports.isValidElement(e)||tn(e)||cc(e)||To(e),_e=new Map;let Ni=[];const ua=new Set,fc=()=>_e.size>0;function Mg(e,t){var n;if(t)return!((n=_e.get(t))==null||!n.isToastActive(e));let r=!1;return _e.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function jg(e,t){_g(e)&&(fc()||Ni.push({content:e,options:t}),_e.forEach(n=>{n.buildToast(e,t)}))}function ca(e,t){_e.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}let Vg=1;const dc=()=>""+Vg++;function Lg(e){return e&&(tn(e.toastId)||To(e.toastId))?e.toastId:dc()}function nn(e,t){return jg(e,t),t.toastId}function cr(e,t){return{...t,type:t&&t.type||e,toastId:Lg(t)}}function An(e){return(t,n)=>nn(t,cr(e,n))}function I(e,t){return nn(e,cr("default",t))}I.loading=(e,t)=>nn(e,cr("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),I.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=tn(i)?I.loading(i,n):I.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(f,c,d)=>{if(c==null)return void I.dismiss(r);const h={type:f,...a,...n,data:d},p=tn(c)?{render:c}:c;return r?I.update(r,{...h,...p}):I(p.render,{...h,...p}),d},u=cc(e)?e():e;return u.then(f=>l("success",s,f)).catch(f=>l("error",o,f)),u},I.success=An("success"),I.info=An("info"),I.error=An("error"),I.warning=An("warning"),I.warn=I.warning,I.dark=(e,t)=>nn(e,cr("default",{theme:"dark",...t})),I.dismiss=function(e){(function(t){var n;if(fc()){if(t==null||tn(n=t)||To(n))_e.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=_e.get(t.containerId))!=null&&r.removeToast(t.id)||_e.forEach(i=>{i.removeToast(t.id)})}}else Ni=Ni.filter(i=>t!=null&&i.options.toastId!==t)})(e)},I.clearWaitingQueue=function(e){e===void 0&&(e={}),_e.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},I.isActive=Mg,I.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=_e.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:dc()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,nn(s,o)}},I.done=e=>{I.update(e,{progress:1})},I.onChange=function(e){return ua.add(e),()=>{ua.delete(e)}},I.play=e=>ca(!0,e),I.pause=e=>ca(!1,e);const Vt={primary100:"#F0F6E1",primary200:"#E5F5ED",primary300:"#93D500",primary400:"#009D4F",primary500:"#2E7D32",secondary:"#CC0066",secondaryDark:"#AE1857",textPrimary:"#292929",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey500:"#BFBFBF",grey600:"#85858A",success:"#009D4F",successLight:"#E5F5ED",warning:"#FFB600",warningLight:"#FFF8E5",danger:"#E01B00",dangerLight:"#FCE8E5",dangerDark:"#BE1700",linkPrimary:"#007BFF",linkLight:"#007BFF10",headerBgColor:"#292929",headerTextColor:"#FFF",buttonText:"#292929",buttonHover:"#2E7D32"};function Fg(){return m.jsxRuntimeExports.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsxRuntimeExports.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsxRuntimeExports.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const Dg={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},Ig=({closeToast:e})=>m.jsxRuntimeExports.jsx("i",{className:"material-icons",onClick:e,style:{cursor:"pointer"},children:m.jsxRuntimeExports.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsxRuntimeExports.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})}),hc=e=>{I.error(e,{icon:m.jsxRuntimeExports.jsx(Fg,{}),position:"bottom-right",style:{...Dg,background:Vt.dangerLight,borderColor:Vt.danger,color:Vt.danger}})},Ng=e=>{I(e,{closeButton:Ig,toastId:"notify",position:"top-right",closeOnClick:!1,hideProgressBar:!0,containerId:"toastifyNotification",style:{width:"610px",minHeight:"72px",padding:"12px 24px 12px 0",color:Vt.textPrimary}})},pc=m.reactExports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Mr=m.reactExports.createContext({}),Po=m.reactExports.createContext(null),jr=typeof document<"u",Bg=jr?m.reactExports.useLayoutEffect:m.reactExports.useEffect,mc=m.reactExports.createContext({strict:!1}),Ro=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),$g="framerAppearId",gc="data-"+Ro($g);function zg(e,t,n,r){const{visualElement:i}=m.reactExports.useContext(Mr),o=m.reactExports.useContext(mc),s=m.reactExports.useContext(Po),a=m.reactExports.useContext(pc).reducedMotion,l=m.reactExports.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;m.reactExports.useInsertionEffect(()=>{u&&u.update(n,s)});const f=m.reactExports.useRef(!!(n[gc]&&!window.HandoffComplete));return Bg(()=>{u&&(u.render(),f.current&&u.animationState&&u.animationState.animateChanges())}),m.reactExports.useEffect(()=>{u&&(u.updateFeatures(),!f.current&&u.animationState&&u.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),u}function Ot(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ug(e,t,n){return m.reactExports.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ot(n)&&(n.current=r))},[t])}function hn(e){return typeof e=="string"||Array.isArray(e)}function Vr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ao=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Oo=["initial",...Ao];function Lr(e){return Vr(e.animate)||Oo.some(t=>hn(e[t]))}function yc(e){return!!(Lr(e)||e.variants)}function Wg(e,t){if(Lr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||hn(n)?n:void 0,animate:hn(r)?r:void 0}}return e.inherit!==!1?t:{}}function Hg(e){const{initial:t,animate:n}=Wg(e,m.reactExports.useContext(Mr));return m.reactExports.useMemo(()=>({initial:t,animate:n}),[fa(t),fa(n)])}function fa(e){return Array.isArray(e)?e.join(" "):e}const da={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"]},pn={};for(const e in da)pn[e]={isEnabled:t=>da[e].some(n=>!!t[n])};function qg(e){for(const t in e)pn[t]={...pn[t],...e[t]}}const vc=m.reactExports.createContext({}),xc=m.reactExports.createContext({}),Gg=Symbol.for("motionComponentSymbol");function Xg({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&qg(e);function o(a,l){let u;const f={...m.reactExports.useContext(pc),...a,layoutId:Kg(a)},{isStatic:c}=f,d=Hg(a),h=r(a,c);if(!c&&jr){d.visualElement=zg(i,h,f,t);const p=m.reactExports.useContext(xc),g=m.reactExports.useContext(mc).strict;d.visualElement&&(u=d.visualElement.loadFeatures(f,g,e,p))}return m.reactExports.createElement(Mr.Provider,{value:d},u&&d.visualElement?m.reactExports.createElement(u,{visualElement:d.visualElement,...f}):null,n(i,a,Ug(h,d.visualElement,l),h,c,d.visualElement))}const s=m.reactExports.forwardRef(o);return s[Gg]=i,s}function Kg({layoutId:e}){const t=m.reactExports.useContext(vc).id;return t&&e!==void 0?t+"-"+e:e}function Yg(e){function t(r,i={}){return Xg(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Jg=["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 _o(e){return typeof e!="string"||e.includes("-")?!1:!!(Jg.indexOf(e)>-1||/[A-Z]/.test(e))}const fr={};function Zg(e){Object.assign(fr,e)}const xn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xt=new Set(xn);function bc(e,{layout:t,layoutId:n}){return xt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!fr[e]||e==="opacity")}const fe=e=>!!(e&&e.getVelocity),Qg={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ey=xn.length;function ty(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<ey;s++){const a=xn[s];if(e[a]!==void 0){const l=Qg[a]||a;o+=`${l}(${e[a]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const wc=e=>t=>typeof t=="string"&&t.startsWith(e),Sc=wc("--"),Bi=wc("var(--"),ny=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,ry=(e,t)=>t&&typeof e=="number"?t.transform(e):e,it=(e,t,n)=>Math.min(Math.max(n,e),t),bt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},rn={...bt,transform:e=>it(0,1,e)},On={...bt,default:1},on=e=>Math.round(e*1e5)/1e5,Fr=/(-)?([\d]*\.?[\d])+/g,Ec=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,iy=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function bn(e){return typeof e=="string"}const wn=e=>({test:t=>bn(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Je=wn("deg"),je=wn("%"),A=wn("px"),oy=wn("vh"),sy=wn("vw"),ha={...je,parse:e=>je.parse(e)/100,transform:e=>je.transform(e*100)},pa={...bt,transform:Math.round},Cc={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,size:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,rotate:Je,rotateX:Je,rotateY:Je,rotateZ:Je,scale:On,scaleX:On,scaleY:On,scaleZ:On,skew:Je,skewX:Je,skewY:Je,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:rn,originX:ha,originY:ha,originZ:A,zIndex:pa,fillOpacity:rn,strokeOpacity:rn,numOctaves:pa};function Mo(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,f=!0;for(const c in t){const d=t[c];if(Sc(c)){o[c]=d;continue}const h=Cc[c],p=ry(d,h);if(xt.has(c)){if(l=!0,s[c]=p,!f)continue;d!==(h.default||0)&&(f=!1)}else c.startsWith("origin")?(u=!0,a[c]=p):i[c]=p}if(t.transform||(l||r?i.transform=ty(e.transform,n,f,r):i.transform&&(i.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:h=0}=a;i.transformOrigin=`${c} ${d} ${h}`}}const jo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function kc(e,t,n){for(const r in t)!fe(t[r])&&!bc(r,n)&&(e[r]=t[r])}function ay({transformTemplate:e},t,n){return m.reactExports.useMemo(()=>{const r=jo();return Mo(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function ly(e,t,n){const r=e.style||{},i={};return kc(i,r,e),Object.assign(i,ay(e,t,n)),e.transformValues?e.transformValues(i):i}function uy(e,t,n){const r={},i=ly(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const cy=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function dr(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||cy.has(e)}let Tc=e=>!dr(e);function fy(e){e&&(Tc=t=>t.startsWith("on")?!dr(t):e(t))}try{fy(require("@emotion/is-prop-valid").default)}catch{}function dy(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Tc(i)||n===!0&&dr(i)||!t&&!dr(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function ma(e,t,n){return typeof e=="string"?e:A.transform(t+n*e)}function hy(e,t,n){const r=ma(t,e.x,e.width),i=ma(n,e.y,e.height);return`${r} ${i}`}const py={offset:"stroke-dashoffset",array:"stroke-dasharray"},my={offset:"strokeDashoffset",array:"strokeDasharray"};function gy(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?py:my;e[o.offset]=A.transform(-r);const s=A.transform(t),a=A.transform(n);e[o.array]=`${s} ${a}`}function Vo(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},f,c,d){if(Mo(e,u,f,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:p,dimensions:g}=e;h.transform&&(g&&(p.transform=h.transform),delete h.transform),g&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=hy(g,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&gy(h,s,a,l,!1)}const Pc=()=>({...jo(),attrs:{}}),Lo=e=>typeof e=="string"&&e.toLowerCase()==="svg";function yy(e,t,n,r){const i=m.reactExports.useMemo(()=>{const o=Pc();return Vo(o,t,{enableHardwareAcceleration:!1},Lo(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};kc(o,e.style,e),i.style={...o,...i.style}}return i}function vy(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(_o(n)?yy:uy)(r,o,s,n),f={...dy(r,typeof n=="string",e),...l,ref:i},{children:c}=r,d=m.reactExports.useMemo(()=>fe(c)?c.get():c,[c]);return m.reactExports.createElement(n,{...f,children:d})}}function Rc(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Ac=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 Oc(e,t,n,r){Rc(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Ac.has(i)?i:Ro(i),t.attrs[i])}function Fo(e,t){const{style:n}=e,r={};for(const i in n)(fe(n[i])||t.style&&fe(t.style[i])||bc(i,e))&&(r[i]=n[i]);return r}function _c(e,t){const n=Fo(e,t);for(const r in e)if(fe(e[r])||fe(t[r])){const i=xn.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Do(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function xy(e){const t=m.reactExports.useRef(null);return t.current===null&&(t.current=e()),t.current}const hr=e=>Array.isArray(e),by=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),wy=e=>hr(e)?e[e.length-1]||0:e;function Kn(e){const t=fe(e)?e.get():e;return by(t)?t.toValue():t}function Sy({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:Ey(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Mc=e=>(t,n)=>{const r=m.reactExports.useContext(Mr),i=m.reactExports.useContext(Po),o=()=>Sy(e,t,r,i);return n?o():xy(o)};function Ey(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Kn(o[d]);let{initial:s,animate:a}=e;const l=Lr(e),u=yc(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let f=n?n.initial===!1:!1;f=f||s===!1;const c=f?a:s;return c&&typeof c!="boolean"&&!Vr(c)&&(Array.isArray(c)?c:[c]).forEach(h=>{const p=Do(e,h);if(!p)return;const{transitionEnd:g,transition:y,...v}=p;for(const b in v){let x=v[b];if(Array.isArray(x)){const S=f?x.length-1:0;x=x[S]}x!==null&&(i[b]=x)}for(const b in g)i[b]=g[b]}),i}const q=e=>e;class ga{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Cy(e){let t=new ga,n=new ga,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,f=!1)=>{const c=f&&i,d=c?t:n;return u&&s.add(l),d.add(l)&&c&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const f=t.order[u];f(l),s.has(f)&&(a.schedule(f),e())}i=!1,o&&(o=!1,a.process(l))}};return a}const _n=["prepare","read","update","preRender","render","postRender"],ky=40;function Ty(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=_n.reduce((c,d)=>(c[d]=Cy(()=>n=!0),c),{}),s=c=>o[c].process(i),a=()=>{const c=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(c-i.timestamp,ky),1),i.timestamp=c,i.isProcessing=!0,_n.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:_n.reduce((c,d)=>{const h=o[d];return c[d]=(p,g=!1,y=!1)=>(n||l(),h.schedule(p,g,y)),c},{}),cancel:c=>_n.forEach(d=>o[d].cancel(c)),state:i,steps:o}}const{schedule:B,cancel:Ue,state:ne,steps:ai}=Ty(typeof requestAnimationFrame<"u"?requestAnimationFrame:q,!0),Py={useVisualState:Mc({scrapeMotionValuesFromProps:_c,createRenderState:Pc,onMount:(e,t,{renderState:n,latestValues:r})=>{B.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),B.render(()=>{Vo(n,r,{enableHardwareAcceleration:!1},Lo(t.tagName),e.transformTemplate),Oc(t,n)})}})},Ry={useVisualState:Mc({scrapeMotionValuesFromProps:Fo,createRenderState:jo})};function Ay(e,{forwardMotionProps:t=!1},n,r){return{..._o(e)?Py:Ry,preloadedFeatures:n,useRender:vy(t),createVisualElement:r,Component:e}}function De(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const jc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Dr(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Oy=e=>t=>jc(t)&&e(t,Dr(t));function Ne(e,t,n,r){return De(e,t,Oy(n),r)}const _y=(e,t)=>n=>t(e(n)),nt=(...e)=>e.reduce(_y);function Vc(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const ya=Vc("dragHorizontal"),va=Vc("dragVertical");function Lc(e){let t=!1;if(e==="y")t=va();else if(e==="x")t=ya();else{const n=ya(),r=va();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Fc(){const e=Lc(!0);return e?(e(),!1):!0}class st{constructor(t){this.isMounted=!1,this.node=t}update(){}}function xa(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||Fc())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&B.update(()=>a[r](o,s))};return Ne(e.current,n,i,{passive:!e.getProps()[r]})}class My extends st{mount(){this.unmount=nt(xa(this.node,!0),xa(this.node,!1))}unmount(){}}class jy extends st{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nt(De(this.node.current,"focus",()=>this.onFocus()),De(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Dc=(e,t)=>t?e===t?!0:Dc(e,t.parentElement):!1;function li(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Dr(n))}class Vy extends st{constructor(){super(...arguments),this.removeStartListeners=q,this.removeEndListeners=q,this.removeAccessibleListeners=q,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Ne(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:f,globalTapTarget:c}=this.node.getProps();B.update(()=>{!c&&!Dc(this.node.current,a.target)?f&&f(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Ne(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=nt(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||li("up",(l,u)=>{const{onTap:f}=this.node.getProps();f&&B.update(()=>f(l,u))})};this.removeEndListeners(),this.removeEndListeners=De(this.node.current,"keyup",s),li("down",(a,l)=>{this.startPress(a,l)})},n=De(this.node.current,"keydown",t),r=()=>{this.isPressing&&li("cancel",(o,s)=>this.cancelPress(o,s))},i=De(this.node.current,"blur",r);this.removeAccessibleListeners=nt(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&B.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Fc()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&B.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Ne(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=De(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=nt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const $i=new WeakMap,ui=new WeakMap,Ly=e=>{const t=$i.get(e.target);t&&t(e)},Fy=e=>{e.forEach(Ly)};function Dy({root:e,...t}){const n=e||document;ui.has(n)||ui.set(n,{});const r=ui.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Fy,{root:e,...t})),r[i]}function Iy(e,t,n){const r=Dy(t);return $i.set(e,n),r.observe(e),()=>{$i.delete(e),r.unobserve(e)}}const Ny={some:0,all:1};class By extends st{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Ny[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:c}=this.node.getProps(),d=u?f:c;d&&d(l)};return Iy(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some($y(t,n))&&this.startObserver()}unmount(){}}function $y({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const zy={inView:{Feature:By},tap:{Feature:Vy},focus:{Feature:jy},hover:{Feature:My}};function Ic(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Uy(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function Wy(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ir(e,t,n){const r=e.getProps();return Do(r,t,n!==void 0?n:r.custom,Uy(e),Wy(e))}let Hy=q,Io=q;const rt=e=>e*1e3,Be=e=>e/1e3,qy={current:!1},Nc=e=>Array.isArray(e)&&typeof e[0]=="number";function Bc(e){return!!(!e||typeof e=="string"&&$c[e]||Nc(e)||Array.isArray(e)&&e.every(Bc))}const Zt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,$c={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zt([0,.65,.55,1]),circOut:Zt([.55,0,1,.45]),backIn:Zt([.31,.01,.66,-.59]),backOut:Zt([.33,1.53,.69,.99])};function zc(e){if(e)return Nc(e)?Zt(e):Array.isArray(e)?e.map(zc):$c[e]}function Gy(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const f=zc(a);return Array.isArray(f)&&(u.easing=f),e.animate(u,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Xy(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Uc=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ky=1e-7,Yy=12;function Jy(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Uc(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Ky&&++a<Yy);return s}function Sn(e,t,n,r){if(e===t&&n===r)return q;const i=o=>Jy(o,0,1,e,n);return o=>o===0||o===1?o:Uc(i(o),t,r)}const Zy=Sn(.42,0,1,1),Qy=Sn(0,0,.58,1),Wc=Sn(.42,0,.58,1),ev=e=>Array.isArray(e)&&typeof e[0]!="number",Hc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qc=e=>t=>1-e(1-t),No=e=>1-Math.sin(Math.acos(e)),Gc=qc(No),tv=Hc(No),Xc=Sn(.33,1.53,.69,.99),Bo=qc(Xc),nv=Hc(Bo),rv=e=>(e*=2)<1?.5*Bo(e):.5*(2-Math.pow(2,-10*(e-1))),iv={linear:q,easeIn:Zy,easeInOut:Wc,easeOut:Qy,circIn:No,circInOut:tv,circOut:Gc,backIn:Bo,backInOut:nv,backOut:Xc,anticipate:rv},ba=e=>{if(Array.isArray(e)){Io(e.length===4);const[t,n,r,i]=e;return Sn(t,n,r,i)}else if(typeof e=="string")return iv[e];return e},$o=(e,t)=>n=>!!(bn(n)&&iy.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Kc=(e,t,n)=>r=>{if(!bn(r))return r;const[i,o,s,a]=r.match(Fr);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},ov=e=>it(0,255,e),ci={...bt,transform:e=>Math.round(ov(e))},yt={test:$o("rgb","red"),parse:Kc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ci.transform(e)+", "+ci.transform(t)+", "+ci.transform(n)+", "+on(rn.transform(r))+")"};function sv(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const zi={test:$o("#"),parse:sv,transform:yt.transform},_t={test:$o("hsl","hue"),parse:Kc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+je.transform(on(t))+", "+je.transform(on(n))+", "+on(rn.transform(r))+")"},ie={test:e=>yt.test(e)||zi.test(e)||_t.test(e),parse:e=>yt.test(e)?yt.parse(e):_t.test(e)?_t.parse(e):zi.parse(e),transform:e=>bn(e)?e:e.hasOwnProperty("red")?yt.transform(e):_t.transform(e)},W=(e,t,n)=>-n*e+n*t+e;function fi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function av({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=fi(l,a,e+1/3),o=fi(l,a,e),s=fi(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const di=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},lv=[zi,yt,_t],uv=e=>lv.find(t=>t.test(e));function wa(e){const t=uv(e);let n=t.parse(e);return t===_t&&(n=av(n)),n}const Yc=(e,t)=>{const n=wa(e),r=wa(t),i={...n};return o=>(i.red=di(n.red,r.red,o),i.green=di(n.green,r.green,o),i.blue=di(n.blue,r.blue,o),i.alpha=W(n.alpha,r.alpha,o),yt.transform(i))};function cv(e){var t,n;return isNaN(e)&&bn(e)&&(((t=e.match(Fr))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ec))===null||n===void 0?void 0:n.length)||0)>0}const Jc={regex:ny,countKey:"Vars",token:"${v}",parse:q},Zc={regex:Ec,countKey:"Colors",token:"${c}",parse:ie.parse},Qc={regex:Fr,countKey:"Numbers",token:"${n}",parse:bt.parse};function hi(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function pr(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&hi(n,Jc),hi(n,Zc),hi(n,Qc),n}function ef(e){return pr(e).values}function tf(e){const{values:t,numColors:n,numVars:r,tokenised:i}=pr(e),o=t.length;return s=>{let a=i;for(let l=0;l<o;l++)l<r?a=a.replace(Jc.token,s[l]):l<r+n?a=a.replace(Zc.token,ie.transform(s[l])):a=a.replace(Qc.token,on(s[l]));return a}}const fv=e=>typeof e=="number"?0:e;function dv(e){const t=ef(e);return tf(e)(t.map(fv))}const ot={test:cv,parse:ef,createTransformer:tf,getAnimatableNone:dv},nf=(e,t)=>n=>`${n>0?t:e}`;function rf(e,t){return typeof e=="number"?n=>W(e,t,n):ie.test(e)?Yc(e,t):e.startsWith("var(")?nf(e,t):sf(e,t)}const of=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>rf(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},hv=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=rf(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},sf=(e,t)=>{const n=ot.createTransformer(t),r=pr(e),i=pr(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?nt(of(r.values,i.values),n):nf(e,t)},mn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Sa=(e,t)=>n=>W(e,t,n);function pv(e){return typeof e=="number"?Sa:typeof e=="string"?ie.test(e)?Yc:sf:Array.isArray(e)?of:typeof e=="object"?hv:Sa}function mv(e,t,n){const r=[],i=n||pv(e[0]),o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||q:t;a=nt(l,a)}r.push(a)}return r}function af(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Io(o===t.length),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=mv(t,r,i),a=s.length,l=u=>{let f=0;if(a>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const c=mn(e[f],e[f+1],u);return s[f](c)};return n?u=>l(it(e[0],e[o-1],u)):l}function gv(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=mn(0,t,r);e.push(W(n,1,i))}}function yv(e){const t=[0];return gv(t,e.length-1),t}function vv(e,t){return e.map(n=>n*t)}function xv(e,t){return e.map(()=>t||Wc).splice(0,e.length-1)}function mr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=ev(r)?r.map(ba):ba(r),o={done:!1,value:t[0]},s=vv(n&&n.length===t.length?n:yv(t),e),a=af(s,t,{ease:Array.isArray(i)?i:xv(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function lf(e,t){return t?e*(1e3/t):0}const bv=5;function uf(e,t,n){const r=Math.max(t-bv,0);return lf(n-e(r),t-r)}const pi=.001,wv=.01,Ea=10,Sv=.05,Ev=1;function Cv({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Hy(e<=rt(Ea));let s=1-t;s=it(Sv,Ev,s),e=it(wv,Ea,Be(e)),s<1?(i=u=>{const f=u*s,c=f*e,d=f-n,h=Ui(u,s),p=Math.exp(-c);return pi-d/h*p},o=u=>{const c=u*s*e,d=c*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,p=Math.exp(-c),g=Ui(Math.pow(u,2),s);return(-i(u)+pi>0?-1:1)*((d-h)*p)/g}):(i=u=>{const f=Math.exp(-u*e),c=(u-n)*e+1;return-pi+f*c},o=u=>{const f=Math.exp(-u*e),c=(n-u)*(e*e);return f*c});const a=5/e,l=Tv(i,o,a);if(e=rt(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const kv=12;function Tv(e,t,n){let r=n;for(let i=1;i<kv;i++)r=r-e(r)/t(r);return r}function Ui(e,t){return e*Math.sqrt(1-t*t)}const Pv=["duration","bounce"],Rv=["stiffness","damping","mass"];function Ca(e,t){return t.some(n=>e[n]!==void 0)}function Av(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ca(e,Rv)&&Ca(e,Pv)){const n=Cv(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function cf({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:f,velocity:c,isResolvedFromDuration:d}=Av({...r,velocity:-Be(r.velocity||0)}),h=c||0,p=l/(2*Math.sqrt(a*u)),g=o-i,y=Be(Math.sqrt(a/u)),v=Math.abs(g)<5;n||(n=v?.01:2),t||(t=v?.005:.5);let b;if(p<1){const x=Ui(y,p);b=S=>{const E=Math.exp(-p*y*S);return o-E*((h+p*y*g)/x*Math.sin(x*S)+g*Math.cos(x*S))}}else if(p===1)b=x=>o-Math.exp(-y*x)*(g+(h+y*g)*x);else{const x=y*Math.sqrt(p*p-1);b=S=>{const E=Math.exp(-p*y*S),C=Math.min(x*S,300);return o-E*((h+p*y*g)*Math.sinh(C)+x*g*Math.cosh(C))/x}}return{calculatedDuration:d&&f||null,next:x=>{const S=b(x);if(d)s.done=x>=f;else{let E=h;x!==0&&(p<1?E=uf(b,x,S):E=0);const C=Math.abs(E)<=n,T=Math.abs(o-S)<=t;s.done=C&&T}return s.value=s.done?o:S,s}}}function ka({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:f}){const c=e[0],d={done:!1,value:c},h=P=>a!==void 0&&P<a||l!==void 0&&P>l,p=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let g=n*t;const y=c+g,v=s===void 0?y:s(y);v!==y&&(g=v-c);const b=P=>-g*Math.exp(-P/r),x=P=>v+b(P),S=P=>{const _=b(P),G=x(P);d.done=Math.abs(_)<=u,d.value=d.done?v:G};let E,C;const T=P=>{h(d.value)&&(E=P,C=cf({keyframes:[d.value,p(d.value)],velocity:uf(x,P,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:f}))};return T(0),{calculatedDuration:null,next:P=>{let _=!1;return!C&&E===void 0&&(_=!0,S(P),T(P)),E!==void 0&&P>E?C.next(P-E):(!_&&S(P),d)}}}const Ov=e=>{const t=({timestamp:n})=>e(n);return{start:()=>B.update(t,!0),stop:()=>Ue(t),now:()=>ne.isProcessing?ne.timestamp:performance.now()}},Ta=2e4;function Pa(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ta;)t+=n,r=e.next(t);return t>=Ta?1/0:t}const _v={decay:ka,inertia:ka,tween:mr,keyframes:mr,spring:cf};function gr({autoplay:e=!0,delay:t=0,driver:n=Ov,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:f,onUpdate:c,...d}){let h=1,p=!1,g,y;const v=()=>{y=new Promise(D=>{g=D})};v();let b;const x=_v[i]||mr;let S;x!==mr&&typeof r[0]!="number"&&(S=af([0,100],r,{clamp:!1}),r=[0,100]);const E=x({...d,keyframes:r});let C;a==="mirror"&&(C=x({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let T="idle",P=null,_=null,G=null;E.calculatedDuration===null&&o&&(E.calculatedDuration=Pa(E));const{calculatedDuration:U}=E;let $=1/0,X=1/0;U!==null&&($=U+s,X=$*(o+1)-s);let z=0;const re=D=>{if(_===null)return;h>0&&(_=Math.min(_,D)),h<0&&(_=Math.min(D-X/h,_)),P!==null?z=P:z=Math.round(D-_)*h;const St=z-t*(h>=0?1:-1),Et=h>=0?St<0:St>X;z=Math.max(St,0),T==="finished"&&P===null&&(z=X);let Ur=z,at=E;if(o){const Ut=Math.min(z,X)/$;let lt=Math.floor(Ut),Ee=Ut%1;!Ee&&Ut>=1&&(Ee=1),Ee===1&&lt--,lt=Math.min(lt,o+1),!!(lt%2)&&(a==="reverse"?(Ee=1-Ee,s&&(Ee-=s/$)):a==="mirror"&&(at=C)),Ur=it(0,1,Ee)*$}const Le=Et?{done:!1,value:r[0]}:at.next(Ur);S&&(Le.value=S(Le.value));let{done:Ct}=Le;!Et&&U!==null&&(Ct=h>=0?z>=X:z<=0);const kt=P===null&&(T==="finished"||T==="running"&&Ct);return c&&c(Le.value),kt&&Z(),Le},H=()=>{b&&b.stop(),b=void 0},Te=()=>{T="idle",H(),g(),v(),_=G=null},Z=()=>{T="finished",f&&f(),H(),g()},We=()=>{if(p)return;b||(b=n(re));const D=b.now();l&&l(),P!==null?_=D-P:(!_||T==="finished")&&(_=D),T==="finished"&&v(),G=_,P=null,T="running",b.start()};e&&We();const wt={then(D,St){return y.then(D,St)},get time(){return Be(z)},set time(D){D=rt(D),z=D,P!==null||!b||h===0?P=D:_=b.now()-D/h},get duration(){const D=E.calculatedDuration===null?Pa(E):E.calculatedDuration;return Be(D)},get speed(){return h},set speed(D){D===h||!b||(h=D,wt.time=Be(z))},get state(){return T},play:We,pause:()=>{T="paused",P=z},stop:()=>{p=!0,T!=="idle"&&(T="idle",u&&u(),Te())},cancel:()=>{G!==null&&re(G),Te()},complete:()=>{T="finished"},sample:D=>(_=0,re(D))};return wt}function Mv(e){let t;return()=>(t===void 0&&(t=e()),t)}const jv=Mv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Vv=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Mn=10,Lv=2e4,Fv=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Bc(t.ease);function Dv(e,t,{onUpdate:n,onComplete:r,...i}){if(!(jv()&&Vv.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const f=()=>{l=new Promise(x=>{a=x})};f();let{keyframes:c,duration:d=300,ease:h,times:p}=i;if(Fv(t,i)){const x=gr({...i,repeat:0,delay:0});let S={done:!1,value:c[0]};const E=[];let C=0;for(;!S.done&&C<Lv;)S=x.sample(C),E.push(S.value),C+=Mn;p=void 0,c=E,d=C-Mn,h="linear"}const g=Gy(e.owner.current,t,c,{...i,duration:d,ease:h,times:p}),y=()=>{u=!1,g.cancel()},v=()=>{u=!0,B.update(y),a(),f()};return g.onfinish=()=>{u||(e.set(Xy(c,i)),r&&r(),v())},{then(x,S){return l.then(x,S)},attachTimeline(x){return g.timeline=x,g.onfinish=null,q},get time(){return Be(g.currentTime||0)},set time(x){g.currentTime=rt(x)},get speed(){return g.playbackRate},set speed(x){g.playbackRate=x},get duration(){return Be(d)},play:()=>{s||(g.play(),Ue(y))},pause:()=>g.pause(),stop:()=>{if(s=!0,g.playState==="idle")return;const{currentTime:x}=g;if(x){const S=gr({...i,autoplay:!1});e.setWithVelocity(S.sample(x-Mn).value,S.sample(x).value,Mn)}v()},complete:()=>{u||g.finish()},cancel:v}}function Iv({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:q,pause:q,stop:q,then:o=>(o(),Promise.resolve()),cancel:q,complete:q});return t?gr({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const Nv={type:"spring",stiffness:500,damping:25,restSpeed:10},Bv=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$v={type:"keyframes",duration:.8},zv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Uv=(e,{keyframes:t})=>t.length>2?$v:xt.has(e)?e.startsWith("scale")?Bv(t[1]):Nv:zv,Wi=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ot.test(t)||t==="0")&&!t.startsWith("url(")),Wv=new Set(["brightness","contrast","saturate","opacity"]);function Hv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Fr)||[];if(!r)return e;const i=n.replace(r,"");let o=Wv.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const qv=/([a-z-]*)\(.*?\)/g,Hi={...ot,getAnimatableNone:e=>{const t=e.match(qv);return t?t.map(Hv).join(" "):e}},Gv={...Cc,color:ie,backgroundColor:ie,outlineColor:ie,fill:ie,stroke:ie,borderColor:ie,borderTopColor:ie,borderRightColor:ie,borderBottomColor:ie,borderLeftColor:ie,filter:Hi,WebkitFilter:Hi},zo=e=>Gv[e];function ff(e,t){let n=zo(e);return n!==Hi&&(n=ot),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const df=e=>/^0[^.\s]+$/.test(e);function Xv(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||df(e)}function Kv(e,t,n,r){const i=Wi(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?s:o[u-1]),Xv(o[u])&&l.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(a=o[u]);if(i&&l.length&&a)for(let u=0;u<l.length;u++){const f=l[u];o[f]=ff(t,a)}return o}function Yv({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...f}){return!!Object.keys(f).length}function Uo(e,t){return e[t]||e.default||e}const Jv={skipAnimations:!1},Wo=(e,t,n,r={})=>i=>{const o=Uo(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-rt(s);const l=Kv(t,e,n,o),u=l[0],f=l[l.length-1],c=Wi(e,u),d=Wi(e,f);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:p=>{t.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(Yv(o)||(h={...h,...Uv(e,h)}),h.duration&&(h.duration=rt(h.duration)),h.repeatDelay&&(h.repeatDelay=rt(h.repeatDelay)),!c||!d||qy.current||o.type===!1||Jv.skipAnimations)return Iv(h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const p=Dv(t,e,h);if(p)return p}return gr(h)};function yr(e){return!!(fe(e)&&e.add)}const hf=e=>/^\-?\d*\.?\d+$/.test(e);function Ho(e,t){e.indexOf(t)===-1&&e.push(t)}function qo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Go{constructor(){this.subscriptions=[]}add(t){return Ho(this.subscriptions,t),()=>qo(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Zv=e=>!isNaN(parseFloat(e));class Qv{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=ne;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,B.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>B.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Zv(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Go);const r=this.events[t].add(n);return t==="change"?()=>{r(),B.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?lf(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ft(e,t){return new Qv(e,t)}const pf=e=>t=>t.test(e),e0={test:e=>e==="auto",parse:e=>e},mf=[bt,A,je,Je,sy,oy,e0],qt=e=>mf.find(pf(e)),t0=[...mf,ie,ot],n0=e=>t0.find(pf(e));function r0(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ft(n))}function i0(e,t){const n=Ir(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=wy(o[s]);r0(e,s,a)}}function o0(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],u=t[l];let f=null;Array.isArray(u)&&(f=u[0]),f===null&&(f=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),f!=null&&(typeof f=="string"&&(hf(f)||df(f))?f=parseFloat(f):!n0(f)&&ot.test(u)&&(f=ff(l,u)),e.addValue(l,Ft(f,{owner:e})),n[l]===void 0&&(n[l]=f),f!==null&&e.setBaseTarget(l,f))}}function s0(e,t){return t?(t[e]||t.default||t).from:void 0}function a0(e,t,n){const r={};for(const i in e){const o=s0(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function l0({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function u0(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function gf(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const u=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const d=e.getValue(c),h=a[c];if(!d||h===void 0||f&&l0(f,c))continue;const p={delay:n,elapsed:0,...Uo(o||{},c)};if(window.HandoffAppearAnimations){const v=e.getProps()[gc];if(v){const b=window.HandoffAppearAnimations(v,c,d,B);b!==null&&(p.elapsed=b,p.isHandoff=!0)}}let g=!p.isHandoff&&!u0(d,h);if(p.type==="spring"&&(d.getVelocity()||p.velocity)&&(g=!1),d.animation&&(g=!1),g)continue;d.start(Wo(c,d,h,e.shouldReduceMotion&&xt.has(c)?{type:!1}:p));const y=d.animation;yr(l)&&(l.add(c),y.then(()=>l.remove(c))),u.push(y)}return s&&Promise.all(u).then(()=>{s&&i0(e,s)}),u}function qi(e,t,n={}){const r=Ir(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(gf(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:c}=i;return c0(e,t,u+l,f,c,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function c0(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(f0).forEach((u,f)=>{u.notify("AnimationStart",t),s.push(qi(u,t,{...o,delay:n+l(f)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function f0(e,t){return e.sortNodePosition(t)}function d0(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>qi(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=qi(e,t,n);else{const i=typeof t=="function"?Ir(e,t,n.custom):t;r=Promise.all(gf(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const h0=[...Ao].reverse(),p0=Ao.length;function m0(e){return t=>Promise.all(t.map(({animation:n,options:r})=>d0(e,n,r)))}function g0(e){let t=m0(e);const n=v0();let r=!0;const i=(l,u)=>{const f=Ir(e,u);if(f){const{transition:c,transitionEnd:d,...h}=f;l={...l,...h,...d}}return l};function o(l){t=l(e)}function s(l,u){const f=e.getProps(),c=e.getVariantContext(!0)||{},d=[],h=new Set;let p={},g=1/0;for(let v=0;v<p0;v++){const b=h0[v],x=n[b],S=f[b]!==void 0?f[b]:c[b],E=hn(S),C=b===u?x.isActive:null;C===!1&&(g=v);let T=S===c[b]&&S!==f[b]&&E;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),x.protectedKeys={...p},!x.isActive&&C===null||!S&&!x.prevProp||Vr(S)||typeof S=="boolean")continue;let _=y0(x.prevProp,S)||b===u&&x.isActive&&!T&&E||v>g&&E,G=!1;const U=Array.isArray(S)?S:[S];let $=U.reduce(i,{});C===!1&&($={});const{prevResolvedValues:X={}}=x,z={...X,...$},re=H=>{_=!0,h.has(H)&&(G=!0,h.delete(H)),x.needsAnimating[H]=!0};for(const H in z){const Te=$[H],Z=X[H];if(p.hasOwnProperty(H))continue;let We=!1;hr(Te)&&hr(Z)?We=!Ic(Te,Z):We=Te!==Z,We?Te!==void 0?re(H):h.add(H):Te!==void 0&&h.has(H)?re(H):x.protectedKeys[H]=!0}x.prevProp=S,x.prevResolvedValues=$,x.isActive&&(p={...p,...$}),r&&e.blockInitialAnimation&&(_=!1),_&&(!T||G)&&d.push(...U.map(H=>({animation:H,options:{type:b,...l}})))}if(h.size){const v={};h.forEach(b=>{const x=e.getBaseTarget(b);x!==void 0&&(v[b]=x)}),d.push({animation:v})}let y=!!d.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function a(l,u,f){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(h=>{var p;return(p=h.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=s(f,l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function y0(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ic(t,e):!1}function ut(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function v0(){return{animate:ut(!0),whileInView:ut(),whileHover:ut(),whileTap:ut(),whileDrag:ut(),whileFocus:ut(),exit:ut()}}class x0 extends st{constructor(t){super(t),t.animationState||(t.animationState=g0(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Vr(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let b0=0;class w0 extends st{constructor(){super(...arguments),this.id=b0++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const S0={animation:{Feature:x0},exit:{Feature:w0}},Ra=(e,t)=>Math.abs(e-t);function E0(e,t){const n=Ra(e.x,t.x),r=Ra(e.y,t.y);return Math.sqrt(n**2+r**2)}class yf{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=gi(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,h=E0(c.offset,{x:0,y:0})>=3;if(!d&&!h)return;const{point:p}=c,{timestamp:g}=ne;this.history.push({...p,timestamp:g});const{onStart:y,onMove:v}=this.handlers;d||(y&&y(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,c)},this.handlePointerMove=(c,d)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=mi(d,this.transformPagePoint),B.update(this.updatePoint,!0)},this.handlePointerUp=(c,d)=>{this.end();const{onEnd:h,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=gi(c.type==="pointercancel"?this.lastMoveEventInfo:mi(d,this.transformPagePoint),this.history);this.startEvent&&h&&h(c,y),p&&p(c,y)},!jc(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Dr(t),a=mi(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=ne;this.history=[{...l,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,gi(a,this.history)),this.removeListeners=nt(Ne(this.contextWindow,"pointermove",this.handlePointerMove),Ne(this.contextWindow,"pointerup",this.handlePointerUp),Ne(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ue(this.updatePoint)}}function mi(e,t){return t?{point:t(e.point)}:e}function Aa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gi({point:e},t){return{point:e,delta:Aa(e,vf(t)),offset:Aa(e,C0(t)),velocity:k0(t,.1)}}function C0(e){return e[0]}function vf(e){return e[e.length-1]}function k0(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=vf(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>rt(t)));)n--;if(!r)return{x:0,y:0};const o=Be(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function xe(e){return e.max-e.min}function Gi(e,t=0,n=.01){return Math.abs(e-t)<=n}function Oa(e,t,n,r=.5){e.origin=r,e.originPoint=W(t.min,t.max,e.origin),e.scale=xe(n)/xe(t),(Gi(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=W(n.min,n.max,e.origin)-e.originPoint,(Gi(e.translate)||isNaN(e.translate))&&(e.translate=0)}function sn(e,t,n,r){Oa(e.x,t.x,n.x,r?r.originX:void 0),Oa(e.y,t.y,n.y,r?r.originY:void 0)}function _a(e,t,n){e.min=n.min+t.min,e.max=e.min+xe(t)}function T0(e,t,n){_a(e.x,t.x,n.x),_a(e.y,t.y,n.y)}function Ma(e,t,n){e.min=t.min-n.min,e.max=e.min+xe(t)}function an(e,t,n){Ma(e.x,t.x,n.x),Ma(e.y,t.y,n.y)}function P0(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?W(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?W(n,e,r.max):Math.min(e,n)),e}function ja(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function R0(e,{top:t,left:n,bottom:r,right:i}){return{x:ja(e.x,n,i),y:ja(e.y,t,r)}}function Va(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function A0(e,t){return{x:Va(e.x,t.x),y:Va(e.y,t.y)}}function O0(e,t){let n=.5;const r=xe(e),i=xe(t);return i>r?n=mn(t.min,t.max-r,e.min):r>i&&(n=mn(e.min,e.max-i,t.min)),it(0,1,n)}function _0(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Xi=.35;function M0(e=Xi){return e===!1?e=0:e===!0&&(e=Xi),{x:La(e,"left","right"),y:La(e,"top","bottom")}}function La(e,t,n){return{min:Fa(e,t),max:Fa(e,n)}}function Fa(e,t){return typeof e=="number"?e:e[t]||0}const Da=()=>({translate:0,scale:1,origin:0,originPoint:0}),Mt=()=>({x:Da(),y:Da()}),Ia=()=>({min:0,max:0}),Y=()=>({x:Ia(),y:Ia()});function we(e){return[e("x"),e("y")]}function xf({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function j0({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function V0(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function yi(e){return e===void 0||e===1}function Ki({scale:e,scaleX:t,scaleY:n}){return!yi(e)||!yi(t)||!yi(n)}function ct(e){return Ki(e)||bf(e)||e.z||e.rotate||e.rotateX||e.rotateY}function bf(e){return Na(e.x)||Na(e.y)}function Na(e){return e&&e!=="0%"}function vr(e,t,n){const r=e-n,i=t*r;return n+i}function Ba(e,t,n,r,i){return i!==void 0&&(e=vr(e,i,r)),vr(e,n,r)+t}function Yi(e,t=0,n=1,r,i){e.min=Ba(e.min,t,n,r,i),e.max=Ba(e.max,t,n,r,i)}function wf(e,{x:t,y:n}){Yi(e.x,t.translate,t.scale,t.originPoint),Yi(e.y,n.translate,n.scale,n.originPoint)}function L0(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&jt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,wf(e,s)),r&&ct(o.latestValues)&&jt(e,o.latestValues))}t.x=$a(t.x),t.y=$a(t.y)}function $a(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Ze(e,t){e.min=e.min+t,e.max=e.max+t}function za(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=W(e.min,e.max,o);Yi(e,t[n],t[r],s,t.scale)}const F0=["x","scaleX","originX"],D0=["y","scaleY","originY"];function jt(e,t){za(e.x,t,F0),za(e.y,t,D0)}function Sf(e,t){return xf(V0(e.getBoundingClientRect(),t))}function I0(e,t,n){const r=Sf(e,n),{scroll:i}=t;return i&&(Ze(r.x,i.offset.x),Ze(r.y,i.offset.y)),r}const Ef=({current:e})=>e?e.ownerDocument.defaultView:null,N0=new WeakMap;class B0{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Y(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Dr(f,"page").point)},o=(f,c)=>{const{drag:d,dragPropagation:h,onDragStart:p}=this.getProps();if(d&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Lc(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),we(y=>{let v=this.getAxisMotionValue(y).get()||0;if(je.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const x=b.layout.layoutBox[y];x&&(v=xe(x)*(parseFloat(v)/100))}}this.originPoint[y]=v}),p&&B.update(()=>p(f,c),!1,!0);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(f,c)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:p,onDrag:g}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:y}=c;if(h&&this.currentDirection===null){this.currentDirection=$0(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",c.point,y),this.updateAxis("y",c.point,y),this.visualElement.render(),g&&g(f,c)},a=(f,c)=>this.stop(f,c),l=()=>we(f=>{var c;return this.getAnimationState(f)==="paused"&&((c=this.getAxisMotionValue(f).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new yf(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ef(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&B.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!jn(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=P0(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ot(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=R0(i.layoutBox,n):this.constraints=!1,this.elastic=M0(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&we(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=_0(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ot(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=I0(r,i.root,this.visualElement.getTransformPagePoint());let s=A0(i.layout.layoutBox,o);if(n){const a=n(j0(s));this.hasMutatedConstraints=!!a,a&&(s=xf(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=we(f=>{if(!jn(f,n,this.currentDirection))return;let c=l&&l[f]||{};s&&(c={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,p={type:"inertia",velocity:r?t[f]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...c};return this.startAxisValueAnimation(f,p)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Wo(t,r,0,n))}stopAnimation(){we(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){we(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){we(n=>{const{drag:r}=this.getProps();if(!jn(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-W(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ot(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};we(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=O0({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),we(s=>{if(!jn(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(W(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;N0.set(this.visualElement,this);const t=this.visualElement.current,n=Ne(t,"pointerdown",l=>{const{drag:u,dragListener:f=!0}=this.getProps();u&&f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ot(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=De(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(we(f=>{const c=this.getAxisMotionValue(f);c&&(this.originPoint[f]+=l[f].translate,c.set(c.get()+l[f].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Xi,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function jn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $0(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class z0 extends st{constructor(t){super(t),this.removeGroupControls=q,this.removeListeners=q,this.controls=new B0(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||q}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ua=e=>(t,n)=>{e&&B.update(()=>e(t,n))};class U0 extends st{constructor(){super(...arguments),this.removePointerDownListener=q}onPointerDown(t){this.session=new yf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ef(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ua(t),onStart:Ua(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&B.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Ne(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function W0(){const e=m.reactExports.useContext(Po);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=m.reactExports.useId();return m.reactExports.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Yn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Wa(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Gt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;const n=Wa(e,t.target.x),r=Wa(e,t.target.y);return`${n}% ${r}%`}},H0={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ot.parse(e);if(i.length>5)return r;const o=ot.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=W(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class q0 extends m.React$1.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Zg(G0),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Yn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||B.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Cf(e){const[t,n]=W0(),r=m.reactExports.useContext(vc);return m.React$1.createElement(q0,{...e,layoutGroup:r,switchLayoutGroup:m.reactExports.useContext(xc),isPresent:t,safeToRemove:n})}const G0={borderRadius:{...Gt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Gt,borderTopRightRadius:Gt,borderBottomLeftRadius:Gt,borderBottomRightRadius:Gt,boxShadow:H0},kf=["TopLeft","TopRight","BottomLeft","BottomRight"],X0=kf.length,Ha=e=>typeof e=="string"?parseFloat(e):e,qa=e=>typeof e=="number"||A.test(e);function K0(e,t,n,r,i,o){i?(e.opacity=W(0,n.opacity!==void 0?n.opacity:1,Y0(r)),e.opacityExit=W(t.opacity!==void 0?t.opacity:1,0,J0(r))):o&&(e.opacity=W(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<X0;s++){const a=`border${kf[s]}Radius`;let l=Ga(t,a),u=Ga(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||qa(l)===qa(u)?(e[a]=Math.max(W(Ha(l),Ha(u),r),0),(je.test(u)||je.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=W(t.rotate||0,n.rotate||0,r))}function Ga(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Y0=Tf(0,.5,Gc),J0=Tf(.5,.95,q);function Tf(e,t,n){return r=>r<e?0:r>t?1:n(mn(e,t,r))}function Xa(e,t){e.min=t.min,e.max=t.max}function be(e,t){Xa(e.x,t.x),Xa(e.y,t.y)}function Ka(e,t,n,r,i){return e-=t,e=vr(e,1/n,r),i!==void 0&&(e=vr(e,1/i,r)),e}function Z0(e,t=0,n=1,r=.5,i,o=e,s=e){if(je.test(t)&&(t=parseFloat(t),t=W(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=W(o.min,o.max,r);e===o&&(a-=t),e.min=Ka(e.min,t,n,a,i),e.max=Ka(e.max,t,n,a,i)}function Ya(e,t,[n,r,i],o,s){Z0(e,t[n],t[r],t[i],t.scale,o,s)}const Q0=["x","scaleX","originX"],ex=["y","scaleY","originY"];function Ja(e,t,n,r){Ya(e.x,t,Q0,n?n.x:void 0,r?r.x:void 0),Ya(e.y,t,ex,n?n.y:void 0,r?r.y:void 0)}function Za(e){return e.translate===0&&e.scale===1}function Pf(e){return Za(e.x)&&Za(e.y)}function tx(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Rf(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Qa(e){return xe(e.x)/xe(e.y)}class nx{constructor(){this.members=[]}add(t){Ho(this.members,t),t.scheduleRender()}remove(t){if(qo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function el(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:f}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),f&&(r+=`rotateY(${f}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const rx=(e,t)=>e.depth-t.depth;class ix{constructor(){this.children=[],this.isDirty=!1}add(t){Ho(this.children,t),this.isDirty=!0}remove(t){qo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rx),this.isDirty=!1,this.children.forEach(t)}}function ox(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Ue(r),e(o-t))};return B.read(r,!0),()=>Ue(r)}function sx(e){window.MotionDebug&&window.MotionDebug.record(e)}function ax(e){return e instanceof SVGElement&&e.tagName!=="svg"}function lx(e,t,n){const r=fe(e)?e:Ft(e);return r.start(Wo("",r,t,n)),r.animation}const tl=["","X","Y","Z"],ux={visibility:"hidden"},nl=1e3;let cx=0;const ft={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Af({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=cx++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ft.totalNodes=ft.resolvedTargetDeltas=ft.recalculatedProjection=0,this.nodes.forEach(hx),this.nodes.forEach(vx),this.nodes.forEach(xx),this.nodes.forEach(px),sx(ft)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new ix)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Go),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ax(s),this.instance=s;const{layoutId:l,layout:u,visualElement:f}=this.options;if(f&&!f.current&&f.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let c;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=ox(d,250),Yn.hasAnimatedSinceResize&&(Yn.hasAnimatedSinceResize=!1,this.nodes.forEach(il))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||f.getDefaultTransition()||Cx,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=f.getProps(),b=!this.targetLayout||!Rf(this.targetLayout,p)||h,x=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,x);const S={...Uo(g,"layout"),onPlay:y,onComplete:v};(f.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else d||il(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ue(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(bx),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const c=this.path[f];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rl);return}this.isUpdating||this.nodes.forEach(gx),this.isUpdating=!1,this.nodes.forEach(yx),this.nodes.forEach(fx),this.nodes.forEach(dx),this.clearAllSnapshots();const a=performance.now();ne.delta=it(0,1e3/60,a-ne.timestamp),ne.timestamp=a,ne.isProcessing=!0,ai.update.process(ne),ai.preRender.process(ne),ai.render.process(ne),ne.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(mx),this.sharedNodes.forEach(wx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,B.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){B.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Y(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!Pf(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,f=u!==this.prevTransformTemplateValue;s&&(a||ct(this.latestValues)||f)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),kx(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Y();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Ze(a.x,l.offset.x),Ze(a.y,l.offset.y)),a}removeElementScroll(s){const a=Y();be(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:f,options:c}=u;if(u!==this.root&&f&&c.layoutScroll){if(f.isRoot){be(a,s);const{scroll:d}=this.root;d&&(Ze(a.x,-d.offset.x),Ze(a.y,-d.offset.y))}Ze(a.x,f.offset.x),Ze(a.y,f.offset.y)}}return a}applyTransform(s,a=!1){const l=Y();be(l,s);for(let u=0;u<this.path.length;u++){const f=this.path[u];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&jt(l,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),ct(f.latestValues)&&jt(l,f.latestValues)}return ct(this.latestValues)&&jt(l,this.latestValues),l}removeTransform(s){const a=Y();be(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ct(u.latestValues))continue;Ki(u.latestValues)&&u.updateSnapshot();const f=Y(),c=u.measurePageBox();be(f,c),Ja(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,f)}return ct(this.latestValues)&&Ja(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ne.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:c,layoutId:d}=this.options;if(!(!this.layout||!(c||d))){if(this.resolvedRelativeTargetAt=ne.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),an(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),T0(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):be(this.target,this.layout.layoutBox),wf(this.target,this.targetDelta)):be(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=Y(),this.relativeTargetOrigin=Y(),an(this.relativeTargetOrigin,this.target,h.target),be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ft.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ki(this.parent.latestValues)||bf(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===ne.timestamp&&(u=!1),u)return;const{layout:f,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||c))return;be(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;L0(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:p}=a;if(!p){this.projectionTransform&&(this.projectionDelta=Mt(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Mt(),this.projectionDeltaWithTransform=Mt());const g=this.projectionTransform;sn(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=el(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==d||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),ft.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},f={...this.latestValues},c=Mt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=Y(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=h!==p,y=this.getStack(),v=!y||y.members.length<=1,b=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(Ex));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const E=S/1e3;ol(c.x,s.x,E),ol(c.y,s.y,E),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(an(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Sx(this.relativeTarget,this.relativeTargetOrigin,d,E),x&&tx(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Y()),be(x,this.relativeTarget)),g&&(this.animationValues=f,K0(f,u,this.latestValues,E,b,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ue(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=B.update(()=>{Yn.hasAnimatedSinceResize=!0,this.currentAnimation=lx(0,nl,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:f}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Of(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Y();const c=xe(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+c;const d=xe(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}be(a,l),jt(a,f),sn(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new nx),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let f=0;f<tl.length;f++){const c="rotate"+tl[f];l[c]&&(u[c]=l[c],s.setStaticValue(c,0))}s.render();for(const f in u)s.setStaticValue(f,u[f]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ux;const u={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Kn(s==null?void 0:s.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none",u;const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Kn(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ct(this.latestValues)&&(g.transform=f?f({},""):"none",this.hasProjected=!1),g}const d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),u.transform=el(this.projectionDeltaWithTransform,this.treeScale,d),f&&(u.transform=f(d,u.transform));const{x:h,y:p}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,c.animationValues?u.opacity=c===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in fr){if(d[g]===void 0)continue;const{correct:y,applyTo:v}=fr[g],b=u.transform==="none"?d[g]:y(d[g],c);if(v){const x=v.length;for(let S=0;S<x;S++)u[v[S]]=b}else u[g]=b}return this.options.layoutId&&(u.pointerEvents=c===this?Kn(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(rl),this.root.sharedNodes.clear()}}}function fx(e){e.updateLayout()}function dx(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?we(c=>{const d=s?n.measuredBox[c]:n.layoutBox[c],h=xe(d);d.min=r[c].min,d.max=d.min+h}):Of(o,n.layoutBox,r)&&we(c=>{const d=s?n.measuredBox[c]:n.layoutBox[c],h=xe(r[c]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+h)});const a=Mt();sn(a,r,n.layoutBox);const l=Mt();s?sn(l,e.applyTransform(i,!0),n.measuredBox):sn(l,r,n.layoutBox);const u=!Pf(a);let f=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:h}=c;if(d&&h){const p=Y();an(p,n.layoutBox,d.layoutBox);const g=Y();an(g,r,h.layoutBox),Rf(p,g)||(f=!0),c.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=p,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function hx(e){ft.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function px(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mx(e){e.clearSnapshot()}function rl(e){e.clearMeasurements()}function gx(e){e.isLayoutDirty=!1}function yx(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function il(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vx(e){e.resolveTargetDelta()}function xx(e){e.calcProjection()}function bx(e){e.resetRotation()}function wx(e){e.removeLeadSnapshot()}function ol(e,t,n){e.translate=W(t.translate,0,n),e.scale=W(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sl(e,t,n,r){e.min=W(t.min,n.min,r),e.max=W(t.max,n.max,r)}function Sx(e,t,n,r){sl(e.x,t.x,n.x,r),sl(e.y,t.y,n.y,r)}function Ex(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Cx={duration:.45,ease:[.4,0,.1,1]},al=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),ll=al("applewebkit/")&&!al("chrome/")?Math.round:q;function ul(e){e.min=ll(e.min),e.max=ll(e.max)}function kx(e){ul(e.x),ul(e.y)}function Of(e,t,n){return e==="position"||e==="preserve-aspect"&&!Gi(Qa(t),Qa(n),.2)}const Tx=Af({attachResizeListener:(e,t)=>De(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),vi={current:void 0},_f=Af({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!vi.current){const e=new Tx({});e.mount(window),e.setOptions({layoutScroll:!0}),vi.current=e}return vi.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Px={pan:{Feature:U0},drag:{Feature:z0,ProjectionNode:_f,MeasureLayout:Cf}},Rx=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ax(e){const t=Rx.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Ji(e,t,n=1){const[r,i]=Ax(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return hf(s)?parseFloat(s):s}else return Bi(i)?Ji(i,t,n+1):i}function Ox(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!Bi(o))return;const s=Ji(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Bi(o))continue;const s=Ji(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const _x=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Mf=e=>_x.has(e),Mx=e=>Object.keys(e).some(Mf),cl=e=>e===bt||e===A,fl=(e,t)=>parseFloat(e.split(", ")[t]),dl=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return fl(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?fl(o[1],e):0}},jx=new Set(["x","y","z"]),Vx=xn.filter(e=>!jx.has(e));function Lx(e){const t=[];return Vx.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Dt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:dl(4,13),y:dl(5,14)};Dt.translateX=Dt.x;Dt.translateY=Dt.y;const Fx=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Dt[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const f=t.getValue(u);f&&f.jump(a[u]),e[u]=Dt[u](l,o)}),e},Dx=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Mf);let o=[],s=!1;const a=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let f=n[l],c=qt(f);const d=t[l];let h;if(hr(d)){const p=d.length,g=d[0]===null?1:0;f=d[g],c=qt(f);for(let y=g;y<p&&d[y]!==null;y++)h?Io(qt(d[y])===h):h=qt(d[y])}else h=qt(d);if(c!==h)if(cl(c)&&cl(h)){const p=u.get();typeof p=="string"&&u.set(parseFloat(p)),typeof d=="string"?t[l]=parseFloat(d):Array.isArray(d)&&h===A&&(t[l]=d.map(parseFloat))}else c!=null&&c.transform&&(h!=null&&h.transform)&&(f===0||d===0)?f===0?u.set(h.transform(f)):t[l]=c.transform(d):(s||(o=Lx(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(d))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=Fx(t,e,a);return o.length&&o.forEach(([f,c])=>{e.getValue(f).set(c)}),e.render(),jr&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function Ix(e,t,n,r){return Mx(t)?Dx(e,t,n,r):{target:t,transitionEnd:r}}const Nx=(e,t,n,r)=>{const i=Ox(e,t,r);return t=i.target,r=i.transitionEnd,Ix(e,t,n,r)},Zi={current:null},jf={current:!1};function Bx(){if(jf.current=!0,!!jr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Zi.current=e.matches;e.addListener(t),t()}else Zi.current=!1}function $x(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(fe(o))e.addValue(i,o),yr(r)&&r.add(i);else if(fe(s))e.addValue(i,Ft(o,{owner:e})),yr(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Ft(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const hl=new WeakMap,Vf=Object.keys(pn),zx=Vf.length,pl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ux=Oo.length;class Wx{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>B.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Lr(n),this.isVariantNode=yc(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{});for(const c in f){const d=f[c];a[c]!==void 0&&fe(d)&&(d.set(a[c],!1),yr(u)&&u.add(c))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,hl.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),jf.current||Bx(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Zi.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){hl.delete(this.current),this.projection&&this.projection.unmount(),Ue(this.notifyUpdate),Ue(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=xt.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&B.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;for(let l=0;l<zx;l++){const u=Vf[l],{isEnabled:f,Feature:c,ProjectionNode:d,MeasureLayout:h}=pn[u];d&&(s=d),f(n)&&(!this.features[u]&&c&&(this.features[u]=new c(this)),h&&(a=h))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:f,dragConstraints:c,layoutScroll:d,layoutRoot:h}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!f||c&&Ot(c),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:h})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<pl.length;r++){const i=pl[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=$x(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<Ux;r++){const i=Oo[r],o=this.props[i];(hn(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ft(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Do(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!fe(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Go),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Lf extends Wx{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=a0(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){o0(this,r,s);const a=Nx(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function Hx(e){return window.getComputedStyle(e)}class qx extends Lf{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(xt.has(n)){const r=zo(n);return r&&r.default||0}else{const r=Hx(t),i=(Sc(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Sf(t,n)}build(t,n,r,i){Mo(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Fo(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;fe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Rc(t,n,r,i)}}class Gx extends Lf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(xt.has(n)){const r=zo(n);return r&&r.default||0}return n=Ac.has(n)?n:Ro(n),t.getAttribute(n)}measureInstanceViewportBox(){return Y()}scrapeMotionValuesFromProps(t,n){return _c(t,n)}build(t,n,r,i){Vo(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Oc(t,n,r,i)}mount(t){this.isSVGTag=Lo(t.tagName),super.mount(t)}}const Xx=(e,t)=>_o(e)?new Gx(t,{enableHardwareAcceleration:!1}):new qx(t,{enableHardwareAcceleration:!0}),Kx={layout:{ProjectionNode:_f,MeasureLayout:Cf}},Yx={...S0,...zy,...Px,...Kx},Jx=Yg((e,t)=>Ay(e,t,Yx,Xx));/**
35
+ `;function uc({children:e,styles:t=[],...n}){return m.jsxRuntimeExports.jsxs(Ag.div,{...n,children:[[Og,...t].map((r,i)=>m.jsxRuntimeExports.jsx("style",{type:"text/css",children:r},i)),e]})}const To=e=>typeof e=="number"&&!isNaN(e),tn=e=>typeof e=="string",cc=e=>typeof e=="function",_g=e=>m.reactExports.isValidElement(e)||tn(e)||cc(e)||To(e),_e=new Map;let Ni=[];const ua=new Set,fc=()=>_e.size>0;function Mg(e,t){var n;if(t)return!((n=_e.get(t))==null||!n.isToastActive(e));let r=!1;return _e.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function jg(e,t){_g(e)&&(fc()||Ni.push({content:e,options:t}),_e.forEach(n=>{n.buildToast(e,t)}))}function ca(e,t){_e.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}let Vg=1;const dc=()=>""+Vg++;function Lg(e){return e&&(tn(e.toastId)||To(e.toastId))?e.toastId:dc()}function nn(e,t){return jg(e,t),t.toastId}function cr(e,t){return{...t,type:t&&t.type||e,toastId:Lg(t)}}function An(e){return(t,n)=>nn(t,cr(e,n))}function I(e,t){return nn(e,cr("default",t))}I.loading=(e,t)=>nn(e,cr("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),I.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=tn(i)?I.loading(i,n):I.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(f,c,d)=>{if(c==null)return void I.dismiss(r);const h={type:f,...a,...n,data:d},p=tn(c)?{render:c}:c;return r?I.update(r,{...h,...p}):I(p.render,{...h,...p}),d},u=cc(e)?e():e;return u.then(f=>l("success",s,f)).catch(f=>l("error",o,f)),u},I.success=An("success"),I.info=An("info"),I.error=An("error"),I.warning=An("warning"),I.warn=I.warning,I.dark=(e,t)=>nn(e,cr("default",{theme:"dark",...t})),I.dismiss=function(e){(function(t){var n;if(fc()){if(t==null||tn(n=t)||To(n))_e.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=_e.get(t.containerId))!=null&&r.removeToast(t.id)||_e.forEach(i=>{i.removeToast(t.id)})}}else Ni=Ni.filter(i=>t!=null&&i.options.toastId!==t)})(e)},I.clearWaitingQueue=function(e){e===void 0&&(e={}),_e.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},I.isActive=Mg,I.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=_e.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:dc()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,nn(s,o)}},I.done=e=>{I.update(e,{progress:1})},I.onChange=function(e){return ua.add(e),()=>{ua.delete(e)}},I.play=e=>ca(!0,e),I.pause=e=>ca(!1,e);const Vt={primary100:"#F0F6E1",primary200:"#E5F5ED",primary300:"#93D500",primary400:"#009D4F",primary500:"#2E7D32",secondary:"#CC0066",secondaryDark:"#AE1857",textPrimary:"#292929",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey500:"#BFBFBF",grey600:"#85858A",success:"#009D4F",successLight:"#E5F5ED",warning:"#FFB600",warningLight:"#FFF8E5",danger:"#E01B00",dangerLight:"#FCE8E5",dangerDark:"#BE1700",linkPrimary:"#007BFF",linkLight:"#007BFF10",headerBgColor:"#292929",headerTextColor:"#FFF",buttonText:"#292929",buttonHover:"#2E7D32"};function Fg(){return m.jsxRuntimeExports.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsxRuntimeExports.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsxRuntimeExports.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const Dg={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},Ig=({closeToast:e})=>m.jsxRuntimeExports.jsx("i",{className:"material-icons",onClick:e,style:{cursor:"pointer"},children:m.jsxRuntimeExports.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsxRuntimeExports.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})}),hc=e=>{I.error(e,{icon:m.jsxRuntimeExports.jsx(Fg,{}),position:"bottom-right",style:{...Dg,background:Vt.dangerLight,borderColor:Vt.danger,color:Vt.danger}})},Ng=e=>{I(e,{closeButton:Ig,toastId:"notify",position:"top-right",closeOnClick:!1,hideProgressBar:!0,containerId:"toastifyNotification",style:{width:"610px",minHeight:"72px",padding:"12px 24px 12px 0",color:Vt.textPrimary}})},pc=m.reactExports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Mr=m.reactExports.createContext({}),Po=m.reactExports.createContext(null),jr=typeof document<"u",Bg=jr?m.reactExports.useLayoutEffect:m.reactExports.useEffect,mc=m.reactExports.createContext({strict:!1}),Ro=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),$g="framerAppearId",gc="data-"+Ro($g);function zg(e,t,n,r){const{visualElement:i}=m.reactExports.useContext(Mr),o=m.reactExports.useContext(mc),s=m.reactExports.useContext(Po),a=m.reactExports.useContext(pc).reducedMotion,l=m.reactExports.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;m.reactExports.useInsertionEffect(()=>{u&&u.update(n,s)});const f=m.reactExports.useRef(!!(n[gc]&&!window.HandoffComplete));return Bg(()=>{u&&(u.render(),f.current&&u.animationState&&u.animationState.animateChanges())}),m.reactExports.useEffect(()=>{u&&(u.updateFeatures(),!f.current&&u.animationState&&u.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),u}function Ot(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ug(e,t,n){return m.reactExports.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ot(n)&&(n.current=r))},[t])}function hn(e){return typeof e=="string"||Array.isArray(e)}function Vr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ao=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Oo=["initial",...Ao];function Lr(e){return Vr(e.animate)||Oo.some(t=>hn(e[t]))}function yc(e){return!!(Lr(e)||e.variants)}function Wg(e,t){if(Lr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||hn(n)?n:void 0,animate:hn(r)?r:void 0}}return e.inherit!==!1?t:{}}function Hg(e){const{initial:t,animate:n}=Wg(e,m.reactExports.useContext(Mr));return m.reactExports.useMemo(()=>({initial:t,animate:n}),[fa(t),fa(n)])}function fa(e){return Array.isArray(e)?e.join(" "):e}const da={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"]},pn={};for(const e in da)pn[e]={isEnabled:t=>da[e].some(n=>!!t[n])};function qg(e){for(const t in e)pn[t]={...pn[t],...e[t]}}const vc=m.reactExports.createContext({}),xc=m.reactExports.createContext({}),Gg=Symbol.for("motionComponentSymbol");function Xg({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&qg(e);function o(a,l){let u;const f={...m.reactExports.useContext(pc),...a,layoutId:Kg(a)},{isStatic:c}=f,d=Hg(a),h=r(a,c);if(!c&&jr){d.visualElement=zg(i,h,f,t);const p=m.reactExports.useContext(xc),g=m.reactExports.useContext(mc).strict;d.visualElement&&(u=d.visualElement.loadFeatures(f,g,e,p))}return m.reactExports.createElement(Mr.Provider,{value:d},u&&d.visualElement?m.reactExports.createElement(u,{visualElement:d.visualElement,...f}):null,n(i,a,Ug(h,d.visualElement,l),h,c,d.visualElement))}const s=m.reactExports.forwardRef(o);return s[Gg]=i,s}function Kg({layoutId:e}){const t=m.reactExports.useContext(vc).id;return t&&e!==void 0?t+"-"+e:e}function Yg(e){function t(r,i={}){return Xg(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Jg=["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 _o(e){return typeof e!="string"||e.includes("-")?!1:!!(Jg.indexOf(e)>-1||/[A-Z]/.test(e))}const fr={};function Zg(e){Object.assign(fr,e)}const xn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xt=new Set(xn);function bc(e,{layout:t,layoutId:n}){return xt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!fr[e]||e==="opacity")}const fe=e=>!!(e&&e.getVelocity),Qg={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ey=xn.length;function ty(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<ey;s++){const a=xn[s];if(e[a]!==void 0){const l=Qg[a]||a;o+=`${l}(${e[a]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const wc=e=>t=>typeof t=="string"&&t.startsWith(e),Sc=wc("--"),Bi=wc("var(--"),ny=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,ry=(e,t)=>t&&typeof e=="number"?t.transform(e):e,it=(e,t,n)=>Math.min(Math.max(n,e),t),bt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},rn={...bt,transform:e=>it(0,1,e)},On={...bt,default:1},on=e=>Math.round(e*1e5)/1e5,Fr=/(-)?([\d]*\.?[\d])+/g,Ec=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,iy=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function bn(e){return typeof e=="string"}const wn=e=>({test:t=>bn(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Je=wn("deg"),je=wn("%"),A=wn("px"),oy=wn("vh"),sy=wn("vw"),ha={...je,parse:e=>je.parse(e)/100,transform:e=>je.transform(e*100)},pa={...bt,transform:Math.round},Cc={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,size:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,rotate:Je,rotateX:Je,rotateY:Je,rotateZ:Je,scale:On,scaleX:On,scaleY:On,scaleZ:On,skew:Je,skewX:Je,skewY:Je,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:rn,originX:ha,originY:ha,originZ:A,zIndex:pa,fillOpacity:rn,strokeOpacity:rn,numOctaves:pa};function Mo(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,f=!0;for(const c in t){const d=t[c];if(Sc(c)){o[c]=d;continue}const h=Cc[c],p=ry(d,h);if(xt.has(c)){if(l=!0,s[c]=p,!f)continue;d!==(h.default||0)&&(f=!1)}else c.startsWith("origin")?(u=!0,a[c]=p):i[c]=p}if(t.transform||(l||r?i.transform=ty(e.transform,n,f,r):i.transform&&(i.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:h=0}=a;i.transformOrigin=`${c} ${d} ${h}`}}const jo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function kc(e,t,n){for(const r in t)!fe(t[r])&&!bc(r,n)&&(e[r]=t[r])}function ay({transformTemplate:e},t,n){return m.reactExports.useMemo(()=>{const r=jo();return Mo(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function ly(e,t,n){const r=e.style||{},i={};return kc(i,r,e),Object.assign(i,ay(e,t,n)),e.transformValues?e.transformValues(i):i}function uy(e,t,n){const r={},i=ly(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const cy=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function dr(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||cy.has(e)}let Tc=e=>!dr(e);function fy(e){e&&(Tc=t=>t.startsWith("on")?!dr(t):e(t))}try{fy(require("@emotion/is-prop-valid").default)}catch{}function dy(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Tc(i)||n===!0&&dr(i)||!t&&!dr(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function ma(e,t,n){return typeof e=="string"?e:A.transform(t+n*e)}function hy(e,t,n){const r=ma(t,e.x,e.width),i=ma(n,e.y,e.height);return`${r} ${i}`}const py={offset:"stroke-dashoffset",array:"stroke-dasharray"},my={offset:"strokeDashoffset",array:"strokeDasharray"};function gy(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?py:my;e[o.offset]=A.transform(-r);const s=A.transform(t),a=A.transform(n);e[o.array]=`${s} ${a}`}function Vo(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},f,c,d){if(Mo(e,u,f,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:p,dimensions:g}=e;h.transform&&(g&&(p.transform=h.transform),delete h.transform),g&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=hy(g,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&gy(h,s,a,l,!1)}const Pc=()=>({...jo(),attrs:{}}),Lo=e=>typeof e=="string"&&e.toLowerCase()==="svg";function yy(e,t,n,r){const i=m.reactExports.useMemo(()=>{const o=Pc();return Vo(o,t,{enableHardwareAcceleration:!1},Lo(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};kc(o,e.style,e),i.style={...o,...i.style}}return i}function vy(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(_o(n)?yy:uy)(r,o,s,n),f={...dy(r,typeof n=="string",e),...l,ref:i},{children:c}=r,d=m.reactExports.useMemo(()=>fe(c)?c.get():c,[c]);return m.reactExports.createElement(n,{...f,children:d})}}function Rc(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Ac=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 Oc(e,t,n,r){Rc(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Ac.has(i)?i:Ro(i),t.attrs[i])}function Fo(e,t){const{style:n}=e,r={};for(const i in n)(fe(n[i])||t.style&&fe(t.style[i])||bc(i,e))&&(r[i]=n[i]);return r}function _c(e,t){const n=Fo(e,t);for(const r in e)if(fe(e[r])||fe(t[r])){const i=xn.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Do(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function xy(e){const t=m.reactExports.useRef(null);return t.current===null&&(t.current=e()),t.current}const hr=e=>Array.isArray(e),by=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),wy=e=>hr(e)?e[e.length-1]||0:e;function Kn(e){const t=fe(e)?e.get():e;return by(t)?t.toValue():t}function Sy({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:Ey(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Mc=e=>(t,n)=>{const r=m.reactExports.useContext(Mr),i=m.reactExports.useContext(Po),o=()=>Sy(e,t,r,i);return n?o():xy(o)};function Ey(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Kn(o[d]);let{initial:s,animate:a}=e;const l=Lr(e),u=yc(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let f=n?n.initial===!1:!1;f=f||s===!1;const c=f?a:s;return c&&typeof c!="boolean"&&!Vr(c)&&(Array.isArray(c)?c:[c]).forEach(h=>{const p=Do(e,h);if(!p)return;const{transitionEnd:g,transition:y,...v}=p;for(const b in v){let x=v[b];if(Array.isArray(x)){const S=f?x.length-1:0;x=x[S]}x!==null&&(i[b]=x)}for(const b in g)i[b]=g[b]}),i}const q=e=>e;class ga{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Cy(e){let t=new ga,n=new ga,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,f=!1)=>{const c=f&&i,d=c?t:n;return u&&s.add(l),d.add(l)&&c&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const f=t.order[u];f(l),s.has(f)&&(a.schedule(f),e())}i=!1,o&&(o=!1,a.process(l))}};return a}const _n=["prepare","read","update","preRender","render","postRender"],ky=40;function Ty(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=_n.reduce((c,d)=>(c[d]=Cy(()=>n=!0),c),{}),s=c=>o[c].process(i),a=()=>{const c=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(c-i.timestamp,ky),1),i.timestamp=c,i.isProcessing=!0,_n.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:_n.reduce((c,d)=>{const h=o[d];return c[d]=(p,g=!1,y=!1)=>(n||l(),h.schedule(p,g,y)),c},{}),cancel:c=>_n.forEach(d=>o[d].cancel(c)),state:i,steps:o}}const{schedule:B,cancel:Ue,state:ne,steps:ai}=Ty(typeof requestAnimationFrame<"u"?requestAnimationFrame:q,!0),Py={useVisualState:Mc({scrapeMotionValuesFromProps:_c,createRenderState:Pc,onMount:(e,t,{renderState:n,latestValues:r})=>{B.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),B.render(()=>{Vo(n,r,{enableHardwareAcceleration:!1},Lo(t.tagName),e.transformTemplate),Oc(t,n)})}})},Ry={useVisualState:Mc({scrapeMotionValuesFromProps:Fo,createRenderState:jo})};function Ay(e,{forwardMotionProps:t=!1},n,r){return{..._o(e)?Py:Ry,preloadedFeatures:n,useRender:vy(t),createVisualElement:r,Component:e}}function De(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const jc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Dr(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Oy=e=>t=>jc(t)&&e(t,Dr(t));function Ne(e,t,n,r){return De(e,t,Oy(n),r)}const _y=(e,t)=>n=>t(e(n)),nt=(...e)=>e.reduce(_y);function Vc(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const ya=Vc("dragHorizontal"),va=Vc("dragVertical");function Lc(e){let t=!1;if(e==="y")t=va();else if(e==="x")t=ya();else{const n=ya(),r=va();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Fc(){const e=Lc(!0);return e?(e(),!1):!0}class st{constructor(t){this.isMounted=!1,this.node=t}update(){}}function xa(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||Fc())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&B.update(()=>a[r](o,s))};return Ne(e.current,n,i,{passive:!e.getProps()[r]})}class My extends st{mount(){this.unmount=nt(xa(this.node,!0),xa(this.node,!1))}unmount(){}}class jy extends st{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nt(De(this.node.current,"focus",()=>this.onFocus()),De(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Dc=(e,t)=>t?e===t?!0:Dc(e,t.parentElement):!1;function li(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Dr(n))}class Vy extends st{constructor(){super(...arguments),this.removeStartListeners=q,this.removeEndListeners=q,this.removeAccessibleListeners=q,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Ne(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:f,globalTapTarget:c}=this.node.getProps();B.update(()=>{!c&&!Dc(this.node.current,a.target)?f&&f(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Ne(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=nt(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||li("up",(l,u)=>{const{onTap:f}=this.node.getProps();f&&B.update(()=>f(l,u))})};this.removeEndListeners(),this.removeEndListeners=De(this.node.current,"keyup",s),li("down",(a,l)=>{this.startPress(a,l)})},n=De(this.node.current,"keydown",t),r=()=>{this.isPressing&&li("cancel",(o,s)=>this.cancelPress(o,s))},i=De(this.node.current,"blur",r);this.removeAccessibleListeners=nt(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&B.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Fc()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&B.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Ne(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=De(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=nt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const $i=new WeakMap,ui=new WeakMap,Ly=e=>{const t=$i.get(e.target);t&&t(e)},Fy=e=>{e.forEach(Ly)};function Dy({root:e,...t}){const n=e||document;ui.has(n)||ui.set(n,{});const r=ui.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Fy,{root:e,...t})),r[i]}function Iy(e,t,n){const r=Dy(t);return $i.set(e,n),r.observe(e),()=>{$i.delete(e),r.unobserve(e)}}const Ny={some:0,all:1};class By extends st{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Ny[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:c}=this.node.getProps(),d=u?f:c;d&&d(l)};return Iy(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some($y(t,n))&&this.startObserver()}unmount(){}}function $y({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const zy={inView:{Feature:By},tap:{Feature:Vy},focus:{Feature:jy},hover:{Feature:My}};function Ic(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Uy(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function Wy(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ir(e,t,n){const r=e.getProps();return Do(r,t,n!==void 0?n:r.custom,Uy(e),Wy(e))}let Hy=q,Io=q;const rt=e=>e*1e3,Be=e=>e/1e3,qy={current:!1},Nc=e=>Array.isArray(e)&&typeof e[0]=="number";function Bc(e){return!!(!e||typeof e=="string"&&$c[e]||Nc(e)||Array.isArray(e)&&e.every(Bc))}const Zt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,$c={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zt([0,.65,.55,1]),circOut:Zt([.55,0,1,.45]),backIn:Zt([.31,.01,.66,-.59]),backOut:Zt([.33,1.53,.69,.99])};function zc(e){if(e)return Nc(e)?Zt(e):Array.isArray(e)?e.map(zc):$c[e]}function Gy(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const f=zc(a);return Array.isArray(f)&&(u.easing=f),e.animate(u,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Xy(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Uc=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ky=1e-7,Yy=12;function Jy(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Uc(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Ky&&++a<Yy);return s}function Sn(e,t,n,r){if(e===t&&n===r)return q;const i=o=>Jy(o,0,1,e,n);return o=>o===0||o===1?o:Uc(i(o),t,r)}const Zy=Sn(.42,0,1,1),Qy=Sn(0,0,.58,1),Wc=Sn(.42,0,.58,1),e0=e=>Array.isArray(e)&&typeof e[0]!="number",Hc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qc=e=>t=>1-e(1-t),No=e=>1-Math.sin(Math.acos(e)),Gc=qc(No),t0=Hc(No),Xc=Sn(.33,1.53,.69,.99),Bo=qc(Xc),n0=Hc(Bo),r0=e=>(e*=2)<1?.5*Bo(e):.5*(2-Math.pow(2,-10*(e-1))),i0={linear:q,easeIn:Zy,easeInOut:Wc,easeOut:Qy,circIn:No,circInOut:t0,circOut:Gc,backIn:Bo,backInOut:n0,backOut:Xc,anticipate:r0},ba=e=>{if(Array.isArray(e)){Io(e.length===4);const[t,n,r,i]=e;return Sn(t,n,r,i)}else if(typeof e=="string")return i0[e];return e},$o=(e,t)=>n=>!!(bn(n)&&iy.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Kc=(e,t,n)=>r=>{if(!bn(r))return r;const[i,o,s,a]=r.match(Fr);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},o0=e=>it(0,255,e),ci={...bt,transform:e=>Math.round(o0(e))},yt={test:$o("rgb","red"),parse:Kc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ci.transform(e)+", "+ci.transform(t)+", "+ci.transform(n)+", "+on(rn.transform(r))+")"};function s0(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const zi={test:$o("#"),parse:s0,transform:yt.transform},_t={test:$o("hsl","hue"),parse:Kc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+je.transform(on(t))+", "+je.transform(on(n))+", "+on(rn.transform(r))+")"},ie={test:e=>yt.test(e)||zi.test(e)||_t.test(e),parse:e=>yt.test(e)?yt.parse(e):_t.test(e)?_t.parse(e):zi.parse(e),transform:e=>bn(e)?e:e.hasOwnProperty("red")?yt.transform(e):_t.transform(e)},W=(e,t,n)=>-n*e+n*t+e;function fi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function a0({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=fi(l,a,e+1/3),o=fi(l,a,e),s=fi(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const di=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},l0=[zi,yt,_t],u0=e=>l0.find(t=>t.test(e));function wa(e){const t=u0(e);let n=t.parse(e);return t===_t&&(n=a0(n)),n}const Yc=(e,t)=>{const n=wa(e),r=wa(t),i={...n};return o=>(i.red=di(n.red,r.red,o),i.green=di(n.green,r.green,o),i.blue=di(n.blue,r.blue,o),i.alpha=W(n.alpha,r.alpha,o),yt.transform(i))};function c0(e){var t,n;return isNaN(e)&&bn(e)&&(((t=e.match(Fr))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ec))===null||n===void 0?void 0:n.length)||0)>0}const Jc={regex:ny,countKey:"Vars",token:"${v}",parse:q},Zc={regex:Ec,countKey:"Colors",token:"${c}",parse:ie.parse},Qc={regex:Fr,countKey:"Numbers",token:"${n}",parse:bt.parse};function hi(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function pr(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&hi(n,Jc),hi(n,Zc),hi(n,Qc),n}function ef(e){return pr(e).values}function tf(e){const{values:t,numColors:n,numVars:r,tokenised:i}=pr(e),o=t.length;return s=>{let a=i;for(let l=0;l<o;l++)l<r?a=a.replace(Jc.token,s[l]):l<r+n?a=a.replace(Zc.token,ie.transform(s[l])):a=a.replace(Qc.token,on(s[l]));return a}}const f0=e=>typeof e=="number"?0:e;function d0(e){const t=ef(e);return tf(e)(t.map(f0))}const ot={test:c0,parse:ef,createTransformer:tf,getAnimatableNone:d0},nf=(e,t)=>n=>`${n>0?t:e}`;function rf(e,t){return typeof e=="number"?n=>W(e,t,n):ie.test(e)?Yc(e,t):e.startsWith("var(")?nf(e,t):sf(e,t)}const of=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>rf(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},h0=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=rf(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},sf=(e,t)=>{const n=ot.createTransformer(t),r=pr(e),i=pr(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?nt(of(r.values,i.values),n):nf(e,t)},mn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Sa=(e,t)=>n=>W(e,t,n);function p0(e){return typeof e=="number"?Sa:typeof e=="string"?ie.test(e)?Yc:sf:Array.isArray(e)?of:typeof e=="object"?h0:Sa}function m0(e,t,n){const r=[],i=n||p0(e[0]),o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||q:t;a=nt(l,a)}r.push(a)}return r}function af(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Io(o===t.length),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=m0(t,r,i),a=s.length,l=u=>{let f=0;if(a>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const c=mn(e[f],e[f+1],u);return s[f](c)};return n?u=>l(it(e[0],e[o-1],u)):l}function g0(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=mn(0,t,r);e.push(W(n,1,i))}}function y0(e){const t=[0];return g0(t,e.length-1),t}function v0(e,t){return e.map(n=>n*t)}function x0(e,t){return e.map(()=>t||Wc).splice(0,e.length-1)}function mr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=e0(r)?r.map(ba):ba(r),o={done:!1,value:t[0]},s=v0(n&&n.length===t.length?n:y0(t),e),a=af(s,t,{ease:Array.isArray(i)?i:x0(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function lf(e,t){return t?e*(1e3/t):0}const b0=5;function uf(e,t,n){const r=Math.max(t-b0,0);return lf(n-e(r),t-r)}const pi=.001,w0=.01,Ea=10,S0=.05,E0=1;function C0({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Hy(e<=rt(Ea));let s=1-t;s=it(S0,E0,s),e=it(w0,Ea,Be(e)),s<1?(i=u=>{const f=u*s,c=f*e,d=f-n,h=Ui(u,s),p=Math.exp(-c);return pi-d/h*p},o=u=>{const c=u*s*e,d=c*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,p=Math.exp(-c),g=Ui(Math.pow(u,2),s);return(-i(u)+pi>0?-1:1)*((d-h)*p)/g}):(i=u=>{const f=Math.exp(-u*e),c=(u-n)*e+1;return-pi+f*c},o=u=>{const f=Math.exp(-u*e),c=(n-u)*(e*e);return f*c});const a=5/e,l=T0(i,o,a);if(e=rt(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const k0=12;function T0(e,t,n){let r=n;for(let i=1;i<k0;i++)r=r-e(r)/t(r);return r}function Ui(e,t){return e*Math.sqrt(1-t*t)}const P0=["duration","bounce"],R0=["stiffness","damping","mass"];function Ca(e,t){return t.some(n=>e[n]!==void 0)}function A0(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ca(e,R0)&&Ca(e,P0)){const n=C0(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function cf({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:f,velocity:c,isResolvedFromDuration:d}=A0({...r,velocity:-Be(r.velocity||0)}),h=c||0,p=l/(2*Math.sqrt(a*u)),g=o-i,y=Be(Math.sqrt(a/u)),v=Math.abs(g)<5;n||(n=v?.01:2),t||(t=v?.005:.5);let b;if(p<1){const x=Ui(y,p);b=S=>{const E=Math.exp(-p*y*S);return o-E*((h+p*y*g)/x*Math.sin(x*S)+g*Math.cos(x*S))}}else if(p===1)b=x=>o-Math.exp(-y*x)*(g+(h+y*g)*x);else{const x=y*Math.sqrt(p*p-1);b=S=>{const E=Math.exp(-p*y*S),C=Math.min(x*S,300);return o-E*((h+p*y*g)*Math.sinh(C)+x*g*Math.cosh(C))/x}}return{calculatedDuration:d&&f||null,next:x=>{const S=b(x);if(d)s.done=x>=f;else{let E=h;x!==0&&(p<1?E=uf(b,x,S):E=0);const C=Math.abs(E)<=n,T=Math.abs(o-S)<=t;s.done=C&&T}return s.value=s.done?o:S,s}}}function ka({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:f}){const c=e[0],d={done:!1,value:c},h=P=>a!==void 0&&P<a||l!==void 0&&P>l,p=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let g=n*t;const y=c+g,v=s===void 0?y:s(y);v!==y&&(g=v-c);const b=P=>-g*Math.exp(-P/r),x=P=>v+b(P),S=P=>{const _=b(P),G=x(P);d.done=Math.abs(_)<=u,d.value=d.done?v:G};let E,C;const T=P=>{h(d.value)&&(E=P,C=cf({keyframes:[d.value,p(d.value)],velocity:uf(x,P,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:f}))};return T(0),{calculatedDuration:null,next:P=>{let _=!1;return!C&&E===void 0&&(_=!0,S(P),T(P)),E!==void 0&&P>E?C.next(P-E):(!_&&S(P),d)}}}const O0=e=>{const t=({timestamp:n})=>e(n);return{start:()=>B.update(t,!0),stop:()=>Ue(t),now:()=>ne.isProcessing?ne.timestamp:performance.now()}},Ta=2e4;function Pa(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ta;)t+=n,r=e.next(t);return t>=Ta?1/0:t}const _0={decay:ka,inertia:ka,tween:mr,keyframes:mr,spring:cf};function gr({autoplay:e=!0,delay:t=0,driver:n=O0,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:f,onUpdate:c,...d}){let h=1,p=!1,g,y;const v=()=>{y=new Promise(D=>{g=D})};v();let b;const x=_0[i]||mr;let S;x!==mr&&typeof r[0]!="number"&&(S=af([0,100],r,{clamp:!1}),r=[0,100]);const E=x({...d,keyframes:r});let C;a==="mirror"&&(C=x({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let T="idle",P=null,_=null,G=null;E.calculatedDuration===null&&o&&(E.calculatedDuration=Pa(E));const{calculatedDuration:U}=E;let $=1/0,X=1/0;U!==null&&($=U+s,X=$*(o+1)-s);let z=0;const re=D=>{if(_===null)return;h>0&&(_=Math.min(_,D)),h<0&&(_=Math.min(D-X/h,_)),P!==null?z=P:z=Math.round(D-_)*h;const St=z-t*(h>=0?1:-1),Et=h>=0?St<0:St>X;z=Math.max(St,0),T==="finished"&&P===null&&(z=X);let Ur=z,at=E;if(o){const Ut=Math.min(z,X)/$;let lt=Math.floor(Ut),Ee=Ut%1;!Ee&&Ut>=1&&(Ee=1),Ee===1&&lt--,lt=Math.min(lt,o+1),!!(lt%2)&&(a==="reverse"?(Ee=1-Ee,s&&(Ee-=s/$)):a==="mirror"&&(at=C)),Ur=it(0,1,Ee)*$}const Le=Et?{done:!1,value:r[0]}:at.next(Ur);S&&(Le.value=S(Le.value));let{done:Ct}=Le;!Et&&U!==null&&(Ct=h>=0?z>=X:z<=0);const kt=P===null&&(T==="finished"||T==="running"&&Ct);return c&&c(Le.value),kt&&Z(),Le},H=()=>{b&&b.stop(),b=void 0},Te=()=>{T="idle",H(),g(),v(),_=G=null},Z=()=>{T="finished",f&&f(),H(),g()},We=()=>{if(p)return;b||(b=n(re));const D=b.now();l&&l(),P!==null?_=D-P:(!_||T==="finished")&&(_=D),T==="finished"&&v(),G=_,P=null,T="running",b.start()};e&&We();const wt={then(D,St){return y.then(D,St)},get time(){return Be(z)},set time(D){D=rt(D),z=D,P!==null||!b||h===0?P=D:_=b.now()-D/h},get duration(){const D=E.calculatedDuration===null?Pa(E):E.calculatedDuration;return Be(D)},get speed(){return h},set speed(D){D===h||!b||(h=D,wt.time=Be(z))},get state(){return T},play:We,pause:()=>{T="paused",P=z},stop:()=>{p=!0,T!=="idle"&&(T="idle",u&&u(),Te())},cancel:()=>{G!==null&&re(G),Te()},complete:()=>{T="finished"},sample:D=>(_=0,re(D))};return wt}function M0(e){let t;return()=>(t===void 0&&(t=e()),t)}const j0=M0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),V0=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Mn=10,L0=2e4,F0=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Bc(t.ease);function D0(e,t,{onUpdate:n,onComplete:r,...i}){if(!(j0()&&V0.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const f=()=>{l=new Promise(x=>{a=x})};f();let{keyframes:c,duration:d=300,ease:h,times:p}=i;if(F0(t,i)){const x=gr({...i,repeat:0,delay:0});let S={done:!1,value:c[0]};const E=[];let C=0;for(;!S.done&&C<L0;)S=x.sample(C),E.push(S.value),C+=Mn;p=void 0,c=E,d=C-Mn,h="linear"}const g=Gy(e.owner.current,t,c,{...i,duration:d,ease:h,times:p}),y=()=>{u=!1,g.cancel()},v=()=>{u=!0,B.update(y),a(),f()};return g.onfinish=()=>{u||(e.set(Xy(c,i)),r&&r(),v())},{then(x,S){return l.then(x,S)},attachTimeline(x){return g.timeline=x,g.onfinish=null,q},get time(){return Be(g.currentTime||0)},set time(x){g.currentTime=rt(x)},get speed(){return g.playbackRate},set speed(x){g.playbackRate=x},get duration(){return Be(d)},play:()=>{s||(g.play(),Ue(y))},pause:()=>g.pause(),stop:()=>{if(s=!0,g.playState==="idle")return;const{currentTime:x}=g;if(x){const S=gr({...i,autoplay:!1});e.setWithVelocity(S.sample(x-Mn).value,S.sample(x).value,Mn)}v()},complete:()=>{u||g.finish()},cancel:v}}function I0({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:q,pause:q,stop:q,then:o=>(o(),Promise.resolve()),cancel:q,complete:q});return t?gr({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const N0={type:"spring",stiffness:500,damping:25,restSpeed:10},B0=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$0={type:"keyframes",duration:.8},z0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},U0=(e,{keyframes:t})=>t.length>2?$0:xt.has(e)?e.startsWith("scale")?B0(t[1]):N0:z0,Wi=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ot.test(t)||t==="0")&&!t.startsWith("url(")),W0=new Set(["brightness","contrast","saturate","opacity"]);function H0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Fr)||[];if(!r)return e;const i=n.replace(r,"");let o=W0.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const q0=/([a-z-]*)\(.*?\)/g,Hi={...ot,getAnimatableNone:e=>{const t=e.match(q0);return t?t.map(H0).join(" "):e}},G0={...Cc,color:ie,backgroundColor:ie,outlineColor:ie,fill:ie,stroke:ie,borderColor:ie,borderTopColor:ie,borderRightColor:ie,borderBottomColor:ie,borderLeftColor:ie,filter:Hi,WebkitFilter:Hi},zo=e=>G0[e];function ff(e,t){let n=zo(e);return n!==Hi&&(n=ot),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const df=e=>/^0[^.\s]+$/.test(e);function X0(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||df(e)}function K0(e,t,n,r){const i=Wi(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?s:o[u-1]),X0(o[u])&&l.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(a=o[u]);if(i&&l.length&&a)for(let u=0;u<l.length;u++){const f=l[u];o[f]=ff(t,a)}return o}function Y0({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...f}){return!!Object.keys(f).length}function Uo(e,t){return e[t]||e.default||e}const J0={skipAnimations:!1},Wo=(e,t,n,r={})=>i=>{const o=Uo(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-rt(s);const l=K0(t,e,n,o),u=l[0],f=l[l.length-1],c=Wi(e,u),d=Wi(e,f);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:p=>{t.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(Y0(o)||(h={...h,...U0(e,h)}),h.duration&&(h.duration=rt(h.duration)),h.repeatDelay&&(h.repeatDelay=rt(h.repeatDelay)),!c||!d||qy.current||o.type===!1||J0.skipAnimations)return I0(h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const p=D0(t,e,h);if(p)return p}return gr(h)};function yr(e){return!!(fe(e)&&e.add)}const hf=e=>/^\-?\d*\.?\d+$/.test(e);function Ho(e,t){e.indexOf(t)===-1&&e.push(t)}function qo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Go{constructor(){this.subscriptions=[]}add(t){return Ho(this.subscriptions,t),()=>qo(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Z0=e=>!isNaN(parseFloat(e));class Q0{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=ne;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,B.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>B.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Z0(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Go);const r=this.events[t].add(n);return t==="change"?()=>{r(),B.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?lf(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ft(e,t){return new Q0(e,t)}const pf=e=>t=>t.test(e),ev={test:e=>e==="auto",parse:e=>e},mf=[bt,A,je,Je,sy,oy,ev],qt=e=>mf.find(pf(e)),tv=[...mf,ie,ot],nv=e=>tv.find(pf(e));function rv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ft(n))}function iv(e,t){const n=Ir(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=wy(o[s]);rv(e,s,a)}}function ov(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],u=t[l];let f=null;Array.isArray(u)&&(f=u[0]),f===null&&(f=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),f!=null&&(typeof f=="string"&&(hf(f)||df(f))?f=parseFloat(f):!nv(f)&&ot.test(u)&&(f=ff(l,u)),e.addValue(l,Ft(f,{owner:e})),n[l]===void 0&&(n[l]=f),f!==null&&e.setBaseTarget(l,f))}}function sv(e,t){return t?(t[e]||t.default||t).from:void 0}function av(e,t,n){const r={};for(const i in e){const o=sv(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function lv({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function uv(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function gf(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const u=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const d=e.getValue(c),h=a[c];if(!d||h===void 0||f&&lv(f,c))continue;const p={delay:n,elapsed:0,...Uo(o||{},c)};if(window.HandoffAppearAnimations){const v=e.getProps()[gc];if(v){const b=window.HandoffAppearAnimations(v,c,d,B);b!==null&&(p.elapsed=b,p.isHandoff=!0)}}let g=!p.isHandoff&&!uv(d,h);if(p.type==="spring"&&(d.getVelocity()||p.velocity)&&(g=!1),d.animation&&(g=!1),g)continue;d.start(Wo(c,d,h,e.shouldReduceMotion&&xt.has(c)?{type:!1}:p));const y=d.animation;yr(l)&&(l.add(c),y.then(()=>l.remove(c))),u.push(y)}return s&&Promise.all(u).then(()=>{s&&iv(e,s)}),u}function qi(e,t,n={}){const r=Ir(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(gf(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:c}=i;return cv(e,t,u+l,f,c,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function cv(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(fv).forEach((u,f)=>{u.notify("AnimationStart",t),s.push(qi(u,t,{...o,delay:n+l(f)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function fv(e,t){return e.sortNodePosition(t)}function dv(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>qi(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=qi(e,t,n);else{const i=typeof t=="function"?Ir(e,t,n.custom):t;r=Promise.all(gf(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const hv=[...Ao].reverse(),pv=Ao.length;function mv(e){return t=>Promise.all(t.map(({animation:n,options:r})=>dv(e,n,r)))}function gv(e){let t=mv(e);const n=vv();let r=!0;const i=(l,u)=>{const f=Ir(e,u);if(f){const{transition:c,transitionEnd:d,...h}=f;l={...l,...h,...d}}return l};function o(l){t=l(e)}function s(l,u){const f=e.getProps(),c=e.getVariantContext(!0)||{},d=[],h=new Set;let p={},g=1/0;for(let v=0;v<pv;v++){const b=hv[v],x=n[b],S=f[b]!==void 0?f[b]:c[b],E=hn(S),C=b===u?x.isActive:null;C===!1&&(g=v);let T=S===c[b]&&S!==f[b]&&E;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),x.protectedKeys={...p},!x.isActive&&C===null||!S&&!x.prevProp||Vr(S)||typeof S=="boolean")continue;let _=yv(x.prevProp,S)||b===u&&x.isActive&&!T&&E||v>g&&E,G=!1;const U=Array.isArray(S)?S:[S];let $=U.reduce(i,{});C===!1&&($={});const{prevResolvedValues:X={}}=x,z={...X,...$},re=H=>{_=!0,h.has(H)&&(G=!0,h.delete(H)),x.needsAnimating[H]=!0};for(const H in z){const Te=$[H],Z=X[H];if(p.hasOwnProperty(H))continue;let We=!1;hr(Te)&&hr(Z)?We=!Ic(Te,Z):We=Te!==Z,We?Te!==void 0?re(H):h.add(H):Te!==void 0&&h.has(H)?re(H):x.protectedKeys[H]=!0}x.prevProp=S,x.prevResolvedValues=$,x.isActive&&(p={...p,...$}),r&&e.blockInitialAnimation&&(_=!1),_&&(!T||G)&&d.push(...U.map(H=>({animation:H,options:{type:b,...l}})))}if(h.size){const v={};h.forEach(b=>{const x=e.getBaseTarget(b);x!==void 0&&(v[b]=x)}),d.push({animation:v})}let y=!!d.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function a(l,u,f){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(h=>{var p;return(p=h.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=s(f,l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function yv(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ic(t,e):!1}function ut(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vv(){return{animate:ut(!0),whileInView:ut(),whileHover:ut(),whileTap:ut(),whileDrag:ut(),whileFocus:ut(),exit:ut()}}class xv extends st{constructor(t){super(t),t.animationState||(t.animationState=gv(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Vr(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let bv=0;class wv extends st{constructor(){super(...arguments),this.id=bv++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Sv={animation:{Feature:xv},exit:{Feature:wv}},Ra=(e,t)=>Math.abs(e-t);function Ev(e,t){const n=Ra(e.x,t.x),r=Ra(e.y,t.y);return Math.sqrt(n**2+r**2)}class yf{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=gi(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,h=Ev(c.offset,{x:0,y:0})>=3;if(!d&&!h)return;const{point:p}=c,{timestamp:g}=ne;this.history.push({...p,timestamp:g});const{onStart:y,onMove:v}=this.handlers;d||(y&&y(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,c)},this.handlePointerMove=(c,d)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=mi(d,this.transformPagePoint),B.update(this.updatePoint,!0)},this.handlePointerUp=(c,d)=>{this.end();const{onEnd:h,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=gi(c.type==="pointercancel"?this.lastMoveEventInfo:mi(d,this.transformPagePoint),this.history);this.startEvent&&h&&h(c,y),p&&p(c,y)},!jc(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Dr(t),a=mi(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=ne;this.history=[{...l,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,gi(a,this.history)),this.removeListeners=nt(Ne(this.contextWindow,"pointermove",this.handlePointerMove),Ne(this.contextWindow,"pointerup",this.handlePointerUp),Ne(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ue(this.updatePoint)}}function mi(e,t){return t?{point:t(e.point)}:e}function Aa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gi({point:e},t){return{point:e,delta:Aa(e,vf(t)),offset:Aa(e,Cv(t)),velocity:kv(t,.1)}}function Cv(e){return e[0]}function vf(e){return e[e.length-1]}function kv(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=vf(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>rt(t)));)n--;if(!r)return{x:0,y:0};const o=Be(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function xe(e){return e.max-e.min}function Gi(e,t=0,n=.01){return Math.abs(e-t)<=n}function Oa(e,t,n,r=.5){e.origin=r,e.originPoint=W(t.min,t.max,e.origin),e.scale=xe(n)/xe(t),(Gi(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=W(n.min,n.max,e.origin)-e.originPoint,(Gi(e.translate)||isNaN(e.translate))&&(e.translate=0)}function sn(e,t,n,r){Oa(e.x,t.x,n.x,r?r.originX:void 0),Oa(e.y,t.y,n.y,r?r.originY:void 0)}function _a(e,t,n){e.min=n.min+t.min,e.max=e.min+xe(t)}function Tv(e,t,n){_a(e.x,t.x,n.x),_a(e.y,t.y,n.y)}function Ma(e,t,n){e.min=t.min-n.min,e.max=e.min+xe(t)}function an(e,t,n){Ma(e.x,t.x,n.x),Ma(e.y,t.y,n.y)}function Pv(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?W(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?W(n,e,r.max):Math.min(e,n)),e}function ja(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Rv(e,{top:t,left:n,bottom:r,right:i}){return{x:ja(e.x,n,i),y:ja(e.y,t,r)}}function Va(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Av(e,t){return{x:Va(e.x,t.x),y:Va(e.y,t.y)}}function Ov(e,t){let n=.5;const r=xe(e),i=xe(t);return i>r?n=mn(t.min,t.max-r,e.min):r>i&&(n=mn(e.min,e.max-i,t.min)),it(0,1,n)}function _v(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Xi=.35;function Mv(e=Xi){return e===!1?e=0:e===!0&&(e=Xi),{x:La(e,"left","right"),y:La(e,"top","bottom")}}function La(e,t,n){return{min:Fa(e,t),max:Fa(e,n)}}function Fa(e,t){return typeof e=="number"?e:e[t]||0}const Da=()=>({translate:0,scale:1,origin:0,originPoint:0}),Mt=()=>({x:Da(),y:Da()}),Ia=()=>({min:0,max:0}),Y=()=>({x:Ia(),y:Ia()});function we(e){return[e("x"),e("y")]}function xf({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function jv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Vv(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function yi(e){return e===void 0||e===1}function Ki({scale:e,scaleX:t,scaleY:n}){return!yi(e)||!yi(t)||!yi(n)}function ct(e){return Ki(e)||bf(e)||e.z||e.rotate||e.rotateX||e.rotateY}function bf(e){return Na(e.x)||Na(e.y)}function Na(e){return e&&e!=="0%"}function vr(e,t,n){const r=e-n,i=t*r;return n+i}function Ba(e,t,n,r,i){return i!==void 0&&(e=vr(e,i,r)),vr(e,n,r)+t}function Yi(e,t=0,n=1,r,i){e.min=Ba(e.min,t,n,r,i),e.max=Ba(e.max,t,n,r,i)}function wf(e,{x:t,y:n}){Yi(e.x,t.translate,t.scale,t.originPoint),Yi(e.y,n.translate,n.scale,n.originPoint)}function Lv(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&jt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,wf(e,s)),r&&ct(o.latestValues)&&jt(e,o.latestValues))}t.x=$a(t.x),t.y=$a(t.y)}function $a(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Ze(e,t){e.min=e.min+t,e.max=e.max+t}function za(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=W(e.min,e.max,o);Yi(e,t[n],t[r],s,t.scale)}const Fv=["x","scaleX","originX"],Dv=["y","scaleY","originY"];function jt(e,t){za(e.x,t,Fv),za(e.y,t,Dv)}function Sf(e,t){return xf(Vv(e.getBoundingClientRect(),t))}function Iv(e,t,n){const r=Sf(e,n),{scroll:i}=t;return i&&(Ze(r.x,i.offset.x),Ze(r.y,i.offset.y)),r}const Ef=({current:e})=>e?e.ownerDocument.defaultView:null,Nv=new WeakMap;class Bv{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Y(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Dr(f,"page").point)},o=(f,c)=>{const{drag:d,dragPropagation:h,onDragStart:p}=this.getProps();if(d&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Lc(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),we(y=>{let v=this.getAxisMotionValue(y).get()||0;if(je.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const x=b.layout.layoutBox[y];x&&(v=xe(x)*(parseFloat(v)/100))}}this.originPoint[y]=v}),p&&B.update(()=>p(f,c),!1,!0);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(f,c)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:p,onDrag:g}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:y}=c;if(h&&this.currentDirection===null){this.currentDirection=$v(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",c.point,y),this.updateAxis("y",c.point,y),this.visualElement.render(),g&&g(f,c)},a=(f,c)=>this.stop(f,c),l=()=>we(f=>{var c;return this.getAnimationState(f)==="paused"&&((c=this.getAxisMotionValue(f).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new yf(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ef(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&B.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!jn(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Pv(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ot(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Rv(i.layoutBox,n):this.constraints=!1,this.elastic=Mv(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&we(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=_v(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ot(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Iv(r,i.root,this.visualElement.getTransformPagePoint());let s=Av(i.layout.layoutBox,o);if(n){const a=n(jv(s));this.hasMutatedConstraints=!!a,a&&(s=xf(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=we(f=>{if(!jn(f,n,this.currentDirection))return;let c=l&&l[f]||{};s&&(c={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,p={type:"inertia",velocity:r?t[f]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...c};return this.startAxisValueAnimation(f,p)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Wo(t,r,0,n))}stopAnimation(){we(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){we(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){we(n=>{const{drag:r}=this.getProps();if(!jn(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-W(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ot(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};we(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=Ov({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),we(s=>{if(!jn(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(W(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;Nv.set(this.visualElement,this);const t=this.visualElement.current,n=Ne(t,"pointerdown",l=>{const{drag:u,dragListener:f=!0}=this.getProps();u&&f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ot(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=De(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(we(f=>{const c=this.getAxisMotionValue(f);c&&(this.originPoint[f]+=l[f].translate,c.set(c.get()+l[f].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Xi,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function jn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $v(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class zv extends st{constructor(t){super(t),this.removeGroupControls=q,this.removeListeners=q,this.controls=new Bv(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||q}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ua=e=>(t,n)=>{e&&B.update(()=>e(t,n))};class Uv extends st{constructor(){super(...arguments),this.removePointerDownListener=q}onPointerDown(t){this.session=new yf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ef(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ua(t),onStart:Ua(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&B.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Ne(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Wv(){const e=m.reactExports.useContext(Po);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=m.reactExports.useId();return m.reactExports.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Yn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Wa(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Gt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;const n=Wa(e,t.target.x),r=Wa(e,t.target.y);return`${n}% ${r}%`}},Hv={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ot.parse(e);if(i.length>5)return r;const o=ot.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=W(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class qv extends m.React$1.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Zg(Gv),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Yn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||B.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Cf(e){const[t,n]=Wv(),r=m.reactExports.useContext(vc);return m.React$1.createElement(qv,{...e,layoutGroup:r,switchLayoutGroup:m.reactExports.useContext(xc),isPresent:t,safeToRemove:n})}const Gv={borderRadius:{...Gt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Gt,borderTopRightRadius:Gt,borderBottomLeftRadius:Gt,borderBottomRightRadius:Gt,boxShadow:Hv},kf=["TopLeft","TopRight","BottomLeft","BottomRight"],Xv=kf.length,Ha=e=>typeof e=="string"?parseFloat(e):e,qa=e=>typeof e=="number"||A.test(e);function Kv(e,t,n,r,i,o){i?(e.opacity=W(0,n.opacity!==void 0?n.opacity:1,Yv(r)),e.opacityExit=W(t.opacity!==void 0?t.opacity:1,0,Jv(r))):o&&(e.opacity=W(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Xv;s++){const a=`border${kf[s]}Radius`;let l=Ga(t,a),u=Ga(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||qa(l)===qa(u)?(e[a]=Math.max(W(Ha(l),Ha(u),r),0),(je.test(u)||je.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=W(t.rotate||0,n.rotate||0,r))}function Ga(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Yv=Tf(0,.5,Gc),Jv=Tf(.5,.95,q);function Tf(e,t,n){return r=>r<e?0:r>t?1:n(mn(e,t,r))}function Xa(e,t){e.min=t.min,e.max=t.max}function be(e,t){Xa(e.x,t.x),Xa(e.y,t.y)}function Ka(e,t,n,r,i){return e-=t,e=vr(e,1/n,r),i!==void 0&&(e=vr(e,1/i,r)),e}function Zv(e,t=0,n=1,r=.5,i,o=e,s=e){if(je.test(t)&&(t=parseFloat(t),t=W(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=W(o.min,o.max,r);e===o&&(a-=t),e.min=Ka(e.min,t,n,a,i),e.max=Ka(e.max,t,n,a,i)}function Ya(e,t,[n,r,i],o,s){Zv(e,t[n],t[r],t[i],t.scale,o,s)}const Qv=["x","scaleX","originX"],ex=["y","scaleY","originY"];function Ja(e,t,n,r){Ya(e.x,t,Qv,n?n.x:void 0,r?r.x:void 0),Ya(e.y,t,ex,n?n.y:void 0,r?r.y:void 0)}function Za(e){return e.translate===0&&e.scale===1}function Pf(e){return Za(e.x)&&Za(e.y)}function tx(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Rf(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Qa(e){return xe(e.x)/xe(e.y)}class nx{constructor(){this.members=[]}add(t){Ho(this.members,t),t.scheduleRender()}remove(t){if(qo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function el(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:f}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),f&&(r+=`rotateY(${f}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const rx=(e,t)=>e.depth-t.depth;class ix{constructor(){this.children=[],this.isDirty=!1}add(t){Ho(this.children,t),this.isDirty=!0}remove(t){qo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rx),this.isDirty=!1,this.children.forEach(t)}}function ox(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Ue(r),e(o-t))};return B.read(r,!0),()=>Ue(r)}function sx(e){window.MotionDebug&&window.MotionDebug.record(e)}function ax(e){return e instanceof SVGElement&&e.tagName!=="svg"}function lx(e,t,n){const r=fe(e)?e:Ft(e);return r.start(Wo("",r,t,n)),r.animation}const tl=["","X","Y","Z"],ux={visibility:"hidden"},nl=1e3;let cx=0;const ft={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Af({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=cx++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ft.totalNodes=ft.resolvedTargetDeltas=ft.recalculatedProjection=0,this.nodes.forEach(hx),this.nodes.forEach(vx),this.nodes.forEach(xx),this.nodes.forEach(px),sx(ft)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new ix)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Go),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ax(s),this.instance=s;const{layoutId:l,layout:u,visualElement:f}=this.options;if(f&&!f.current&&f.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let c;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=ox(d,250),Yn.hasAnimatedSinceResize&&(Yn.hasAnimatedSinceResize=!1,this.nodes.forEach(il))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||f.getDefaultTransition()||Cx,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=f.getProps(),b=!this.targetLayout||!Rf(this.targetLayout,p)||h,x=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,x);const S={...Uo(g,"layout"),onPlay:y,onComplete:v};(f.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else d||il(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ue(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(bx),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const c=this.path[f];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rl);return}this.isUpdating||this.nodes.forEach(gx),this.isUpdating=!1,this.nodes.forEach(yx),this.nodes.forEach(fx),this.nodes.forEach(dx),this.clearAllSnapshots();const a=performance.now();ne.delta=it(0,1e3/60,a-ne.timestamp),ne.timestamp=a,ne.isProcessing=!0,ai.update.process(ne),ai.preRender.process(ne),ai.render.process(ne),ne.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(mx),this.sharedNodes.forEach(wx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,B.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){B.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Y(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!Pf(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,f=u!==this.prevTransformTemplateValue;s&&(a||ct(this.latestValues)||f)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),kx(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Y();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Ze(a.x,l.offset.x),Ze(a.y,l.offset.y)),a}removeElementScroll(s){const a=Y();be(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:f,options:c}=u;if(u!==this.root&&f&&c.layoutScroll){if(f.isRoot){be(a,s);const{scroll:d}=this.root;d&&(Ze(a.x,-d.offset.x),Ze(a.y,-d.offset.y))}Ze(a.x,f.offset.x),Ze(a.y,f.offset.y)}}return a}applyTransform(s,a=!1){const l=Y();be(l,s);for(let u=0;u<this.path.length;u++){const f=this.path[u];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&jt(l,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),ct(f.latestValues)&&jt(l,f.latestValues)}return ct(this.latestValues)&&jt(l,this.latestValues),l}removeTransform(s){const a=Y();be(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ct(u.latestValues))continue;Ki(u.latestValues)&&u.updateSnapshot();const f=Y(),c=u.measurePageBox();be(f,c),Ja(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,f)}return ct(this.latestValues)&&Ja(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ne.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:c,layoutId:d}=this.options;if(!(!this.layout||!(c||d))){if(this.resolvedRelativeTargetAt=ne.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),an(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Tv(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):be(this.target,this.layout.layoutBox),wf(this.target,this.targetDelta)):be(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=Y(),this.relativeTargetOrigin=Y(),an(this.relativeTargetOrigin,this.target,h.target),be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ft.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ki(this.parent.latestValues)||bf(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===ne.timestamp&&(u=!1),u)return;const{layout:f,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||c))return;be(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;Lv(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:p}=a;if(!p){this.projectionTransform&&(this.projectionDelta=Mt(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Mt(),this.projectionDeltaWithTransform=Mt());const g=this.projectionTransform;sn(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=el(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==d||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),ft.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},f={...this.latestValues},c=Mt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=Y(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=h!==p,y=this.getStack(),v=!y||y.members.length<=1,b=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(Ex));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const E=S/1e3;ol(c.x,s.x,E),ol(c.y,s.y,E),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(an(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Sx(this.relativeTarget,this.relativeTargetOrigin,d,E),x&&tx(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Y()),be(x,this.relativeTarget)),g&&(this.animationValues=f,Kv(f,u,this.latestValues,E,b,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ue(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=B.update(()=>{Yn.hasAnimatedSinceResize=!0,this.currentAnimation=lx(0,nl,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:f}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Of(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Y();const c=xe(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+c;const d=xe(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}be(a,l),jt(a,f),sn(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new nx),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let f=0;f<tl.length;f++){const c="rotate"+tl[f];l[c]&&(u[c]=l[c],s.setStaticValue(c,0))}s.render();for(const f in u)s.setStaticValue(f,u[f]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ux;const u={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Kn(s==null?void 0:s.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none",u;const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Kn(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ct(this.latestValues)&&(g.transform=f?f({},""):"none",this.hasProjected=!1),g}const d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),u.transform=el(this.projectionDeltaWithTransform,this.treeScale,d),f&&(u.transform=f(d,u.transform));const{x:h,y:p}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,c.animationValues?u.opacity=c===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in fr){if(d[g]===void 0)continue;const{correct:y,applyTo:v}=fr[g],b=u.transform==="none"?d[g]:y(d[g],c);if(v){const x=v.length;for(let S=0;S<x;S++)u[v[S]]=b}else u[g]=b}return this.options.layoutId&&(u.pointerEvents=c===this?Kn(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(rl),this.root.sharedNodes.clear()}}}function fx(e){e.updateLayout()}function dx(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?we(c=>{const d=s?n.measuredBox[c]:n.layoutBox[c],h=xe(d);d.min=r[c].min,d.max=d.min+h}):Of(o,n.layoutBox,r)&&we(c=>{const d=s?n.measuredBox[c]:n.layoutBox[c],h=xe(r[c]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+h)});const a=Mt();sn(a,r,n.layoutBox);const l=Mt();s?sn(l,e.applyTransform(i,!0),n.measuredBox):sn(l,r,n.layoutBox);const u=!Pf(a);let f=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:h}=c;if(d&&h){const p=Y();an(p,n.layoutBox,d.layoutBox);const g=Y();an(g,r,h.layoutBox),Rf(p,g)||(f=!0),c.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=p,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function hx(e){ft.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function px(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mx(e){e.clearSnapshot()}function rl(e){e.clearMeasurements()}function gx(e){e.isLayoutDirty=!1}function yx(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function il(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vx(e){e.resolveTargetDelta()}function xx(e){e.calcProjection()}function bx(e){e.resetRotation()}function wx(e){e.removeLeadSnapshot()}function ol(e,t,n){e.translate=W(t.translate,0,n),e.scale=W(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sl(e,t,n,r){e.min=W(t.min,n.min,r),e.max=W(t.max,n.max,r)}function Sx(e,t,n,r){sl(e.x,t.x,n.x,r),sl(e.y,t.y,n.y,r)}function Ex(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Cx={duration:.45,ease:[.4,0,.1,1]},al=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),ll=al("applewebkit/")&&!al("chrome/")?Math.round:q;function ul(e){e.min=ll(e.min),e.max=ll(e.max)}function kx(e){ul(e.x),ul(e.y)}function Of(e,t,n){return e==="position"||e==="preserve-aspect"&&!Gi(Qa(t),Qa(n),.2)}const Tx=Af({attachResizeListener:(e,t)=>De(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),vi={current:void 0},_f=Af({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!vi.current){const e=new Tx({});e.mount(window),e.setOptions({layoutScroll:!0}),vi.current=e}return vi.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Px={pan:{Feature:Uv},drag:{Feature:zv,ProjectionNode:_f,MeasureLayout:Cf}},Rx=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ax(e){const t=Rx.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Ji(e,t,n=1){const[r,i]=Ax(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return hf(s)?parseFloat(s):s}else return Bi(i)?Ji(i,t,n+1):i}function Ox(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!Bi(o))return;const s=Ji(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Bi(o))continue;const s=Ji(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const _x=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Mf=e=>_x.has(e),Mx=e=>Object.keys(e).some(Mf),cl=e=>e===bt||e===A,fl=(e,t)=>parseFloat(e.split(", ")[t]),dl=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return fl(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?fl(o[1],e):0}},jx=new Set(["x","y","z"]),Vx=xn.filter(e=>!jx.has(e));function Lx(e){const t=[];return Vx.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Dt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:dl(4,13),y:dl(5,14)};Dt.translateX=Dt.x;Dt.translateY=Dt.y;const Fx=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Dt[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const f=t.getValue(u);f&&f.jump(a[u]),e[u]=Dt[u](l,o)}),e},Dx=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Mf);let o=[],s=!1;const a=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let f=n[l],c=qt(f);const d=t[l];let h;if(hr(d)){const p=d.length,g=d[0]===null?1:0;f=d[g],c=qt(f);for(let y=g;y<p&&d[y]!==null;y++)h?Io(qt(d[y])===h):h=qt(d[y])}else h=qt(d);if(c!==h)if(cl(c)&&cl(h)){const p=u.get();typeof p=="string"&&u.set(parseFloat(p)),typeof d=="string"?t[l]=parseFloat(d):Array.isArray(d)&&h===A&&(t[l]=d.map(parseFloat))}else c!=null&&c.transform&&(h!=null&&h.transform)&&(f===0||d===0)?f===0?u.set(h.transform(f)):t[l]=c.transform(d):(s||(o=Lx(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(d))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=Fx(t,e,a);return o.length&&o.forEach(([f,c])=>{e.getValue(f).set(c)}),e.render(),jr&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function Ix(e,t,n,r){return Mx(t)?Dx(e,t,n,r):{target:t,transitionEnd:r}}const Nx=(e,t,n,r)=>{const i=Ox(e,t,r);return t=i.target,r=i.transitionEnd,Ix(e,t,n,r)},Zi={current:null},jf={current:!1};function Bx(){if(jf.current=!0,!!jr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Zi.current=e.matches;e.addListener(t),t()}else Zi.current=!1}function $x(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(fe(o))e.addValue(i,o),yr(r)&&r.add(i);else if(fe(s))e.addValue(i,Ft(o,{owner:e})),yr(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Ft(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const hl=new WeakMap,Vf=Object.keys(pn),zx=Vf.length,pl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ux=Oo.length;class Wx{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>B.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Lr(n),this.isVariantNode=yc(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{});for(const c in f){const d=f[c];a[c]!==void 0&&fe(d)&&(d.set(a[c],!1),yr(u)&&u.add(c))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,hl.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),jf.current||Bx(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Zi.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){hl.delete(this.current),this.projection&&this.projection.unmount(),Ue(this.notifyUpdate),Ue(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=xt.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&B.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;for(let l=0;l<zx;l++){const u=Vf[l],{isEnabled:f,Feature:c,ProjectionNode:d,MeasureLayout:h}=pn[u];d&&(s=d),f(n)&&(!this.features[u]&&c&&(this.features[u]=new c(this)),h&&(a=h))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:f,dragConstraints:c,layoutScroll:d,layoutRoot:h}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!f||c&&Ot(c),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:h})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<pl.length;r++){const i=pl[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=$x(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<Ux;r++){const i=Oo[r],o=this.props[i];(hn(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ft(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Do(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!fe(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Go),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Lf extends Wx{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=av(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){ov(this,r,s);const a=Nx(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function Hx(e){return window.getComputedStyle(e)}class qx extends Lf{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(xt.has(n)){const r=zo(n);return r&&r.default||0}else{const r=Hx(t),i=(Sc(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Sf(t,n)}build(t,n,r,i){Mo(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Fo(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;fe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Rc(t,n,r,i)}}class Gx extends Lf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(xt.has(n)){const r=zo(n);return r&&r.default||0}return n=Ac.has(n)?n:Ro(n),t.getAttribute(n)}measureInstanceViewportBox(){return Y()}scrapeMotionValuesFromProps(t,n){return _c(t,n)}build(t,n,r,i){Vo(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Oc(t,n,r,i)}mount(t){this.isSVGTag=Lo(t.tagName),super.mount(t)}}const Xx=(e,t)=>_o(e)?new Gx(t,{enableHardwareAcceleration:!1}):new qx(t,{enableHardwareAcceleration:!0}),Kx={layout:{ProjectionNode:_f,MeasureLayout:Cf}},Yx={...Sv,...zy,...Px,...Kx},Jx=Yg((e,t)=>Ay(e,t,Yx,Xx));/**
36
36
  * @remix-run/router v1.15.3
37
37
  *
38
38
  * Copyright (c) Remix Software Inc.