1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{24574:function(e,t,r){"use strict";let n,i,o;r.d(t,{El:function(){return tg},Cv:function(){return tC},CH:function(){return tx},tj:function(){return tE},kO:function(){return R},aC:function(){return tw},ll:function(){return tS},zq:function(){return tT},QS:function(){return tk},aF:function(){return tO}});var a,s,l,u,c,d,f,h,p={};r.r(p),r.d(p,{SWRConfig:function(){return eX},default:function(){return eJ},mutate:function(){return eN},preload:function(){return eW},unstable_serialize:function(){return eZ},useSWRConfig:function(){return eq}}),r(13704);var m=e=>"undefined"!=typeof atob&&"function"==typeof atob?atob(e):"undefined"!=typeof global&&global.Buffer?new global.Buffer(e,"base64").toString():e,g="pk_live_";function y(e){if(!v(e=e||""))return null;let t=e.startsWith(g)?"production":"development",r=m(e.split("_")[2]);return r.endsWith("$")?{instanceType:t,frontendApi:r=r.slice(0,-1)}:null}function v(e){let t=(e=e||"").startsWith(g)||e.startsWith("pk_test_"),r=m(e.split("_")[2]||"").endsWith("$");return t&&r}var b=Object.defineProperty,w=Object.getOwnPropertyDescriptor,_=Object.getOwnPropertyNames,x=Object.prototype.hasOwnProperty,E=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of _(t))x.call(e,i)||i===r||b(e,i,{get:()=>t[i],enumerable:!(n=w(t,i))||n.enumerable});return e}
1,C=r(67294),O=()=>!1,S=()=>{try{return!0}catch(e){}return!1},T=new Set,k=(e,t,r)=>{let n=O()||S(),i=null!=r?r:e;T.has(i)||n||(T.add(i),console.warn(`Clerk - DEPRECATION WARNING: "${e}" is deprecated and will be removed in the next major release. 2${t}`))};new Proxy({Expired:"expired",Failed:"failed"},{get:(e,t,r)=>(k("MagicLinkErrorCode","Use `EmailLinkErrorCode` instead."),Reflect.get(e,t,r))});var A=Object.freeze({InvalidFrontendApiErrorMessage:"The frontendApi passed to Clerk is invalid. You can get your Frontend API key at https://dashboard.clerk.com/last-active?path=api-keys. (key={{key}})",InvalidProxyUrlErrorMessage:"The proxyUrl passed to Clerk is invalid. The expected value for proxyUrl is an absolute URL or a relative path with a leading '/'. (key={{url}})",InvalidPublishableKeyErrorMessage:"The publishableKey passed to Clerk is invalid. You can get your Publishable key at https://dashboard.clerk.com/last-active?path=api-keys. (key={{key}})",MissingPublishableKeyErrorMessage:"Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys."});let P="Clerk: Unsupported usage of isSatellite, domain or proxyUrl. The usage of isSatellite, domain or proxyUrl as function is not supported in non-browser environments.",j=function({packageName:e,customMessages:t}){let r=e,n={...A,...t};function i(e,t){if(!t)return`${r}: ${e}`;let n=e;for(let r of e.matchAll(/{{([a-zA-Z0-9-_]+)}}/g)){let e=(t[r[1]]||"").toString();n=n.replace(`{{${r[1]}}}`,e)}return`${r}: ${n}`}return{setPackageName({packageName:e}){return"string"==typeof e&&(r=e),this},setMessages({customMessages:e}){return Object.assign(n,e||{}),this},throwInvalidPublishableKeyError(e){throw Error(i(n.InvalidPublishableKeyErrorMessage,e))},throwInvalidFrontendApiError(e){throw Error(i(n.InvalidFrontendApiErrorMessage,e))},throwInvalidProxyUrl(e){throw Error(i(n.InvalidProxyUrlErrorMessage,e))},throwMissingPublishableKeyError(){throw Error(i(n.MissingPublishableKeyErrorMessage))}}}({packageName:"@clerk/react"});function R(e){j.setMessages(e).setPackageName(e)}let M=new Map;var D=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},I=(e,t,r)=>(D(e,t,"read from private field"),r?r.call(e):t.get(e)),L=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},N=(e,t,r,n)=>(D(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),U=(e,t,r)=>(D(e,t,"access private method"),r);function F(){return"undefined"!=typeof window}function z(e,t,r){return"function"==typeof e?e(t):void 0!==e?e:void 0!==r?r:void 0}async function $(e="",t){let{async:r,defer:n,beforeLoad:i,crossOrigin:o}=t||{};return new Promise((t,a)=>{e||a("loadScript cannot be called without a src"),document&&document.body||a("loadScript cannot be called when document does not exist");let s=document.createElement("script");o&&s.setAttribute("crossorigin",o),s.async=r||!1,s.defer=n||!1,s.addEventListener("load",()=>{s.remove(),t(s)}),s.addEventListener("error",()=>{s.remove(),a()}),s.src=e,null==i||i(s),document.body.appendChild(s)})}function B(e){return e.startsWith("/")}RegExp("bot|spider|crawl|APIs-Google|AdsBot|Googlebot|mediapartners|Google Favicon|FeedFetcher|Google-Read-Aloud|DuplexWeb-Google|googleweblight|bing|yandex|baidu|duckduck|yahoo|ecosia|ia_archiver|facebook|instagram|pinterest|reddit|slack|twitter|whatsapp|youtube|semrush","i");let{isDevOrStagingUrl:V}=function(){let e=[".lcl.dev",".stg.dev",".lclstage.dev",".stgstage.dev",".dev.lclclerk.com",".stg.lclclerk.com",".accounts.lclclerk.com","accountsstage.dev","accounts.dev"],t=new Map;return{isDevOrStagingUrl:r=>{if(!r)return!1;let n="string"==typeof r?r:r.hostname,i=t.get(n);return void 0===i&&(i=e.some(e=>n.endsWith(e)),t.set(n,i)),i}}}(),q=e=>{if(e)return e;let t=W("4.32.5");return t?"snapshot"===t?"4.73.14":t:H("4.32.5")},W=e=>{var t;return null==(t=e.match(/-(.*)\./))?void 0:t[1]},H=e=>e.split(".")[0],Y=e=>{let{frontendApi:t,publishableKey:r}=e;return r||t||j.throwMissingPublishableKeyError(),$(Z(e),{async:!0,crossOrigin:"anonymous",beforeLoad:G(e)}
2).catch(()=>{throw Error("Clerk: Failed to load Clerk")})},Z=e=>{var t,r;let{clerkJSUrl:n,clerkJSVariant:i,clerkJSVersion:o,proxyUrl:a,domain:s,publishableKey:l,frontendApi:u}=e;if(n)return n;let c="";c=a&&(!a||/^http(s)?:\/\//.test(a||"")||B(a))?(a?B(a)?new URL(a,window.location.origin).toString():a:"").replace(/http(s)?:\/\//,""):s&&!V((null==(t=y(l))?void 0:t.frontendApi)||u||"")?function(e){let t;if(!e)return"";if(e.match(/^(clerk\.)+\w*$/))t=/(clerk\.)*(?=clerk\.)/;else{if(e.match(/\.clerk.accounts/))return e;t=/^(clerk\.)*/gi}let r=e.replace(t,"");return`clerk.${r}`}(s):(null==(r=y(l))?void 0:r.frontendApi)||u||"";let d=i?`${i.replace(/\.+$/,"")}.`:"",f=q(o);return`https://${c}/npm/@clerk/clerk-js@${f}/dist/clerk.${d}browser.js`},G=e=>t=>{let{publishableKey:r,frontendApi:n,proxyUrl:i,domain:o}=e;r?t.setAttribute("data-clerk-publishable-key",r):n&&t.setAttribute("data-clerk-frontend-api",n),i&&t.setAttribute("data-clerk-proxy-url",i),o&&t.setAttribute("data-clerk-domain",o)},K=class e{constructor(e){L(this,f),this.clerkjs=null,this.preopenOneTap=null,this.preopenSignIn=null,this.preopenSignUp=null,this.preopenUserProfile=null,this.preopenOrganizationProfile=null,this.preopenCreateOrganization=null,this.premountSignInNodes=new Map,this.premountSignUpNodes=new Map,this.premountUserProfileNodes=new Map,this.premountUserButtonNodes=new Map,this.premountOrganizationProfileNodes=new Map,this.premountCreateOrganizationNodes=new Map,this.premountOrganizationSwitcherNodes=new Map,this.premountOrganizationListNodes=new Map,this.premountMethodCalls=new Map,this.loadedListeners=[],L(this,a,!1),L(this,s,void 0),L(this,l,void 0),L(this,u,void 0),L(this,c,void 0),this.isReady=()=>{var e;return!!(null==(e=this.clerkjs)?void 0:e.isReady())},this.buildSignInUrl=e=>{let t=()=>{var t;return(null==(t=this.clerkjs)?void 0:t.buildSignInUrl(e))||""};if(this.clerkjs&&I(this,a))return t();this.premountMethodCalls.set("buildSignInUrl",t)},this.buildSignUpUrl=e=>{let t=()=>{var t;return(null==(t=this.clerkjs)?void 0:t.buildSignUpUrl(e))||""};if(this.clerkjs&&I(this,a))return t();this.premountMethodCalls.set("buildSignUpUrl",t)},this.buildUserProfileUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildUserProfileUrl())||""};if(this.clerkjs&&I(this,a))return e();this.premountMethodCalls.set("buildUserProfileUrl",e)},this.buildCreateOrganizationUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildCreateOrganizationUrl())||""};if(this.clerkjs&&I(this,a))return e();this.premountMethodCalls.set("buildCreateOrganizationUrl",e)},this.buildOrganizationProfileUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildOrganizationProfileUrl())||""};if(this.clerkjs&&I(this,a))return e();this.premountMethodCalls.set("buildOrganizationProfileUrl",e)},this.buildHomeUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildHomeUrl())||""};if(this.clerkjs&&I(this,a))return e();this.premountMethodCalls.set("buildHomeUrl",e)},this.buildUrlWithAuth=e=>{let t=()=>{var t;return(null==(t=this.clerkjs)?void 0:t.buildUrlWithAuth(e))||""};if(this.clerkjs&&I(this,a))return t();this.premountMethodCalls.set("buildUrlWithAuth",t)},this.handleUnauthenticated=()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.handleUnauthenticated()};this.clerkjs&&I(this,a)?e():this.premountMethodCalls.set("handleUnauthenticated",e)},this.addOnLoaded=e=>{this.loadedListeners.push(e),this.loaded&&this.emitLoaded()},this.emitLoaded=()=>{this.loadedListeners.forEach(e=>e()),this.loadedListeners=[]},this.hydrateClerkJS=e=>{if(!e)throw Error("Failed to hydrate latest Clerk JS");return this.clerkjs=e,this.premountMethodCalls.forEach(e=>e()),null!==this.preopenSignIn&&e.openSignIn(this.preopenSignIn),null!==this.preopenSignUp&&e.openSignUp(this.preopenSignUp),null!==this.preopenUserProfile&&e.openUserProfile(this.preopenUserProfile),null!==this.preopenOneTap&&e.openGoogleOneTap(this.preopenOneTap),null!==this.preopenOrganizationProfile&&e.openOrganizationProfile(this.preopenOrganizationProfile),null!==this.preopenCreateOrganization&&e.openCreateOrganization(this.preopenCreateOrganization),this.premountSign
2InNodes.forEach((t,r)=>{e.mountSignIn(r,t)}),this.premountSignUpNodes.forEach((t,r)=>{e.mountSignUp(r,t)}),this.premountUserProfileNodes.forEach((t,r)=>{e.mountUserProfile(r,t)}),this.premountUserButtonNodes.forEach((t,r)=>{e.mountUserButton(r,t)}),this.premountOrganizationListNodes.forEach((t,r)=>{e.mountOrganizationList(r,t)}),N(this,a,!0),this.emitLoaded(),this.clerkjs},this.__unstable__updateProps=e=>{this.clerkjs&&"__unstable__updateProps"in this.clerkjs&&this.clerkjs.__unstable__updateProps(e)},this.setActive=({session:e,organization:t,beforeEmit:r})=>this.clerkjs?this.clerkjs.setActive({session:e,organization:t,beforeEmit:r}):Promise.reject(),this.setSession=(e,t)=>(k("setSession","Use `Clerk.setActive` instead"),this.setActive({session:e,beforeEmit:t})),this.openSignIn=e=>{this.clerkjs&&I(this,a)?this.clerkjs.openSignIn(e):this.preopenSignIn=e},this.closeSignIn=()=>{this.clerkjs&&I(this,a)?this.clerkjs.closeSignIn():this.preopenSignIn=null},this.openGoogleOneTap=e=>{this.clerkjs&&I(this,a)?this.clerkjs.openGoogleOneTap(e):this.preopenOneTap=e},this.closeGoogleOneTap=()=>{this.clerkjs&&I(this,a)?this.clerkjs.closeGoogleOneTap():this.preopenOneTap=null},this.openUserProfile=e=>{this.clerkjs&&I(this,a)?this.clerkjs.openUserProfile(e):this.preopenUserProfile=e},this.closeUserProfile=()=>{this.clerkjs&&I(this,a)?this.clerkjs.closeUserProfile():this.preopenUserProfile=null},this.openOrganizationProfile=e=>{this.clerkjs&&I(this,a)?this.clerkjs.openOrganizationProfile(e):this.preopenOrganizationProfile=e},this.closeOrganizationProfile=()=>{this.clerkjs&&I(this,a)?this.clerkjs.closeOrganizationProfile():this.preopenOrganizationProfile=null},this.openCreateOrganization=e=>{this.clerkjs&&I(this,a)?this.clerkjs.openCreateOrganization(e):this.preopenCreateOrganization=e},this.closeCreateOrganization=()=>{this.clerkjs&&I(this,a)?this.clerkjs.closeCreateOrganization():this.preopenCreateOrganization=null},this.openSignUp=e=>{this.clerkjs&&I(this,a)?this.clerkjs.openSignUp(e):this.preopenSignUp=e},this.closeSignUp=()=>{this.clerkjs&&I(this,a)?this.clerkjs.closeSignUp():this.preopenSignUp=null},this.mountSignIn=(e,t)=>{this.clerkjs&&I(this,a)?this.clerkjs.mountSignIn(e,t):this.premountSignInNodes.set(e,t)},this.unmountSignIn=e=>{this.clerkjs&&I(this,a)?this.clerkjs.unmountSignIn(e):this.premountSignInNodes.delete(e)},this.mountSignUp=(e,t)=>{this.clerkjs&&I(this,a)?this.clerkjs.mountSignUp(e,t):this.premountSignUpNodes.set(e,t)},this.unmountSignUp=e=>{this.clerkjs&&I(this,a)?this.clerkjs.unmountSignUp(e):this.premountSignUpNodes.delete(e)},this.mountUserProfile=(e,t)=>{this.clerkjs&&I(this,a)?this.clerkjs.mountUserProfile(e,t):this.premountUserProfileNodes.set(e,t)},this.unmountUserProfile=e=>{this.clerkjs&&I(this,a)?this.clerkjs.unmountUserProfile(e):this.premountUserProfileNodes.delete(e)},this.mountOrganizationProfile=(e,t)=>{this.clerkjs&&I(this,a)?this.clerkjs.mountOrganizationProfile(e,t):this.premountOrganizationProfileNodes.set(e,t)},this.unmountOrganizationProfile=e=>{this.clerkjs&&I(this,a)?this.clerkjs.unmountOrganizationProfile(e):this.premountOrganizationProfileNodes.delete(e)},this.mountCreateOrganization=(e,t)=>{this.clerkjs&&I(this,a)?this.clerkjs.mountCreateOrganization(e,t):this.premountCreateOrganizationNodes.set(e,t)},this.unmountCreateOrganization=e=>{this.clerkjs&&I(this,a)?this.clerkjs.unmountCreateOrganization(e):this.premountCreateOrganizationNodes.delete(e)},this.mountOrganizationSwitcher=(e,t)=>{this.clerkjs&&I(this,a)?this.clerkjs.mountOrganizationSwitcher(e,t):this.premountOrganizationSwitcherNodes.set(e,t)},this.unmountOrganizationSwitcher=e=>{this.clerkjs&&I(this,a)?this.clerkjs.unmountOrganizationSwitcher(e):this.premountOrganizationSwitcherNodes.delete(e)},this.mountOrganizationList=(e,t)=>{this.clerkjs&&I(this,a)?this.clerkjs.mountOrganizationList(e,t):this.premountOrganizationListNodes.set(e,t)},this.unmountOrganizationList=e=>{this.clerkjs&&I(this,a)?this.clerkjs.unmountOrganizationList(e):this.premountOrganizationListNodes.delete(e)},this.mountUserButton=(e,t)=>{this.clerkjs&&I(this,a)?this.clerkjs.mountUserButton(e,t):this.premountUserButtonNodes.set(e,t)}
2,this.unmountUserButton=e=>{this.clerkjs&&I(this,a)?this.clerkjs.unmountUserButton(e):this.premountUserButtonNodes.delete(e)},this.addListener=e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.addListener(e)};return this.clerkjs?t():(this.premountMethodCalls.set("addListener",t),()=>this.premountMethodCalls.delete("addListener"))},this.navigate=e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.navigate(e)};this.clerkjs&&I(this,a)?t():this.premountMethodCalls.set("navigate",t)},this.redirectWithAuth=(...e)=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.redirectWithAuth(...e)};this.clerkjs&&I(this,a)?t():this.premountMethodCalls.set("redirectWithAuth",t)},this.redirectToSignIn=e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.redirectToSignIn(e)};this.clerkjs&&I(this,a)?t():this.premountMethodCalls.set("redirectToSignIn",t)},this.redirectToSignUp=e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.redirectToSignUp(e)};this.clerkjs&&I(this,a)?t():this.premountMethodCalls.set("redirectToSignUp",t)},this.redirectToUserProfile=()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToUserProfile()};this.clerkjs&&I(this,a)?e():this.premountMethodCalls.set("redirectToUserProfile",e)},this.redirectToHome=()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToHome()};this.clerkjs&&I(this,a)?e():this.premountMethodCalls.set("redirectToHome",e)},this.redirectToOrganizationProfile=()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToOrganizationProfile()};this.clerkjs&&I(this,a)?e():this.premountMethodCalls.set("redirectToOrganizationProfile",e)},this.redirectToCreateOrganization=()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToCreateOrganization()};this.clerkjs&&I(this,a)?e():this.premountMethodCalls.set("redirectToCreateOrganization",e)},this.handleRedirectCallback=e=>{var t;let r=()=>{var t;return null==(t=this.clerkjs)?void 0:t.handleRedirectCallback(e)};this.clerkjs&&I(this,a)?null==(t=r())||t.catch(()=>{}):this.premountMethodCalls.set("handleRedirectCallback",r)},this.handleMagicLinkVerification=async e=>{k("handleMagicLinkVerification","Use `handleEmailLinkVerification` instead.");let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.handleMagicLinkVerification(e)};if(this.clerkjs&&I(this,a))return t();this.premountMethodCalls.set("handleMagicLinkVerification",t)},this.handleGoogleOneTapCallback=(e,t)=>{var r;let n=()=>{var r;return null==(r=this.clerkjs)?void 0:r.handleGoogleOneTapCallback(e,t)};this.clerkjs&&I(this,a)?null==(r=n())||r.catch(()=>{}):this.premountMethodCalls.set("handleGoogleOneTapCallback",n)},this.handleEmailLinkVerification=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.handleEmailLinkVerification(e)};if(this.clerkjs&&I(this,a))return t();this.premountMethodCalls.set("handleEmailLinkVerification",t)},this.authenticateWithMetamask=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.authenticateWithMetamask(e)};if(this.clerkjs&&I(this,a))return t();this.premountMethodCalls.set("authenticateWithMetamask",t)},this.authenticateWithGoogleOneTap=async e=>(await U(this,f,h).call(this)).authenticateWithGoogleOneTap(e),this.createOrganization=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.createOrganization(e)};if(this.clerkjs&&I(this,a))return t();this.premountMethodCalls.set("createOrganization",t)},this.getOrganizationMemberships=async()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.getOrganizationMemberships()};if(this.clerkjs&&I(this,a))return e();this.premountMethodCalls.set("getOrganizationMemberships",e)},this.getOrganization=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.getOrganization(e)};if(this.clerkjs&&I(this,a))return t();this.premountMethodCalls.set("getOrganization",t)},this.signOut=async(e,t)=>{let r=()=>{var r;return null==(r=this.clerkjs)?void 0:r.signOut(e,t)};if(this.clerkjs&&I(this,a))return r();this.premountMethodCalls.set("signOut",r)};let{Clerk:t=null,frontendApi:r,publishableKey:n}=e||{};N(this,u,r),N(this,c,n),N(this,l,null==e?void 0:e.proxyUrl),N(this,s,null==e?void 0:e.domain),this.options=e,this.Clerk=t,this.mode=F()?"browser":"server",this.loadClerkJS()}get publishableKey(){return I(this,c)}get loaded(){return I(this,a)}static getOrCreateInstance(t){return F()&&I(this,d)&&(!t.Clerk||I(this,d).Clerk===t.Clerk)||N(this,d,new e(t)),I(this,d)}static clearInstance(){N(this,d,null)}get domain(){if("undefined"!=typeof window&&window.location)return z(I(this,s),new URL(window.location.href),"");if("function"==typeof I(this,s))throw Error(P);return I(this,s)||""}get proxyUrl(){if("undefined"!=typeof window&&window.location)return z(I(this,l),new URL(window.location.href),"");if("function"==typeof I(this,l))throw Error(P);return I(this,l)||""}get sdkMetadata(){var e;return(null==(e=this.clerkjs)?void 0:e.sdkMetadata)||this.options.sdkMetadata||void 0}get instanceType(){var e;return null==(e=this.clerkjs)?void 0:e.instanceType}get frontendApi(){var e;return(null==(e=this.clerkjs)?void 0:e.frontendApi)||I(this,u)||""}get isStandardBrowser(){var e;return(null==(e=this.clerkjs)?void 0:e.isStandardBrowser)||this.options.standardBrowser||!1}get isSatellite(){if("undefined"!=typeof window&&window.location)return z(this.options.isSatellite,new URL(window.location.href),!1);if("function"==typeof this.options.isSatellite)throw Error(P);return!1}async loadClerkJS(){var e,t,n,i;if(!("browser"!==this.mode||I(this,a))){"undefined"!=typeof window&&(window.__clerk_frontend_api=this.frontendApi,window.__clerk_publishable_key=this.publishableKey,window.__clerk_proxy_url=this.proxyUrl,window.__clerk_domain=this.domain);try{if(this.Clerk){let e;(i=this.Clerk,"function"==typeof i)?(e=new this.Clerk(this.publishableKey||this.frontendApi||"",{proxyUrl:this.proxyUrl,domain:this.domain}),await e.load(this.options)):(e=this.Clerk).isReady()||await e.load(this.options),r.g.Clerk=e}else{if(r.g.Clerk||await Y({...this.options,frontendApi:this.frontendApi,publishableKey:this.publishableKey,proxyUrl:this.proxyUrl,domain:this.domain}),!r.g.Clerk)throw Error("Failed to download latest ClerkJS. Contact [email protected].");await r.g.Clerk.load(this.options)}if(r.g.Clerk.sdkMetadata=null!=(e=this.options.sdkMetadata)?e:{name:"@clerk/clerk-react",version:"4.32.5"},(null==(t=r.g.Clerk)?void 0:t.loaded)||(null==(n=r.g.Clerk)?void 0:n.isReady()))return this.hydrateClerkJS(r.g.Clerk);return}catch(e){console.error(e.stack||e.message||e);return}}}get version(){var e;return null==(e=this.clerkjs)?void 0:e.version}get client(){return this.clerkjs?this.clerkjs.client:void 0}get session(){return this.clerkjs?this.clerkjs.session:void 0}get user(){return this.clerkjs?this.clerkjs.user:void 0}get organization(){return this.clerkjs?this.clerkjs.organization:void 0}get __unstable__environment(){return this.clerkjs?this.clerkjs.__unstable__environment:void 0}__unstable__setEnvironment(...e){this.clerkjs&&"__unstable__setEnvironment"in this.clerkjs&&this.clerkjs.__unstable__setEnvironment(e)}};a=new WeakMap,s=new WeakMap,l=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,f=new WeakSet,h=function(){return new Promise(e=>{I(this,a)&&e(this.clerkjs),this.addOnLoaded(()=>e(this.clerkjs))})},L(K,d,void 0);let X=(e,t,r)=>!e&&r?J(r):Q(t),J=e=>{let t=e.userId,r=e.user,n=e.sessionId,i=e.session,o=e.organization,a=e.orgId,s=e.orgRole;return{userId:t,user:r,sessionId:n,session:i,organization:o,orgId:a,orgRole:s,orgPermissions:e.orgPermissions,orgSlug:e.orgSlug,actor:e.actor,lastOrganizationInvitation:null,lastOrganizationMember:null}},Q=e=>{var t;let r=e.user?e.user.id:e.user,n=e.user,i=e.session?e.session.id:e.session,o=e.session,a=null==o?void 0:o.actor,s=e.organization,l=e.organization?e.organization.id:e.organization,u=null==s?void 0:s.slug,c=s?null==(t=null==n?void 0:n.organizationMemberships)?void 0:t.find(e=>e.organization.id===l):s,d=c?c.permissions:c;return{userId:r,user:n,sessionId:i,session:o,organization:s,orgId:l,orgRole:c?c.role:c,orgSlug:u,orgPermissions:d,actor:a,lastOrganizationInvitation:e.lastOrganizationInvitation,lastOrganizationMember:e.lastOrganizationMember}};var ee=r(61688);let et=()=>{},er=et(),en=Object,ei=e=>e===er,eo=e=>"function"==typeof e,ea=(e,t)=>({...e,...t}),es=e=>eo(e.then),el=new WeakMap,eu=0,ec=e=>{let t,r;let n=typeof e,i=e&&e.constructor,o=i==Date;if(en(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=el.get(e))return t;if(t=++eu+"~",el.set(e,t),i==Array){for(r=0,t="@";r<e.length;r++)t+=ec(e[r])+",";el.set(e,t)}if(i==en){t="#";let n=en.keys(e).sort();for(;!ei(r=n.pop());)ei(e[r])||(t+=r+":"+ec(e[r])+",");el.set(e,t)}}return t},ed=new WeakMap,ef={},eh={},ep="undefined",em=typeof window!=ep,eg=typeof document!=ep,ey=()=>em&&typeof window.requestAnimationFrame!=ep,ev=(e,t)=>
2{let r=ed.get(e);return[()=>!ei(t)&&e.get(t)||ef,n=>{if(!ei(t)){let i=e.get(t);t in eh||(eh[t]=i),r[5](t,ea(i,n),i||ef)}},r[6],()=>!ei(t)&&t in eh?eh[t]:!ei(t)&&e.get(t)||ef]},eb=!0,[ew,e_]=em&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[et,et],ex={initFocus:e=>(eg&&document.addEventListener("visibilitychange",e),ew("focus",e),()=>{eg&&document.removeEventListener("visibilitychange",e),e_("focus",e)}),initReconnect:e=>{let t=()=>{eb=!0,e()},r=()=>{eb=!1};return ew("online",t),ew("offline",r),()=>{e_("online",t),e_("offline",r)}}},eE=!C.useId,eC=!em||"Deno"in window,eO=e=>ey()?window.requestAnimationFrame(e):setTimeout(e,1),eS=eC?C.useEffect:C.useLayoutEffect,eT="undefined"!=typeof navigator&&navigator.connection,ek=!eC&&eT&&(["slow-2g","2g"].includes(eT.effectiveType)||eT.saveData),eA=e=>{if(eo(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?ec(e):"",t]},eP=0,ej=()=>++eP;var eR={ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function eM(...e){let[t,r,n,i]=e,o=ea({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),a=o.populateCache,s=o.rollbackOnError,l=o.optimisticData,u=!1!==o.revalidate,c=e=>"function"==typeof s?s(e):!1!==s,d=o.throwOnError;if(eo(r)){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(f))}return f(r);async function f(r){let i;let[o]=eA(r);if(!o)return;let[s,f]=ev(t,o),[h,p,m,g]=ed.get(t),y=h[o],v=()=>u&&(delete m[o],delete g[o],y&&y[0])?y[0](2).then(()=>s().data):s().data;if(e.length<3)return v();let b=n,w=ej();p[o]=[w,0];let _=!ei(l),x=s(),E=x.data,C=x._c,O=ei(C)?E:C;if(_&&f({data:l=eo(l)?l(O,E):l,_c:O}),eo(b))try{b=b(O)}catch(e){i=e}if(b&&es(b)){if(b=await b.catch(e=>{i=e}),w!==p[o][0]){if(i)throw i;return b}i&&_&&c(i)&&(a=!0,f({data:b=O,_c:er}))}a&&!i&&(eo(a)&&(b=a(b,O)),f({data:b,error:er,_c:er})),p[o][1]=ej();let S=await v();if(f({_c:er}),i){if(d)throw i;return}return a?S:b}}let eD=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},eI=(e,t)=>{if(!ed.has(e)){let r=ea(ex,t),n={},i=eM.bind(er,e),o=et,a={},s=(e,t)=>{let r=a[e]||[];return a[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);let i=a[t];if(i)for(let e of i)e(r,n)},u=()=>{if(!ed.has(e)&&(ed.set(e,[n,{},{},{},i,l,s]),!eC)){let t=r.initFocus(setTimeout.bind(er,eD.bind(er,n,0))),i=r.initReconnect(setTimeout.bind(er,eD.bind(er,n,1)));o=()=>{t&&t(),i&&i(),ed.delete(e)}}};return u(),[e,i,u,o]}return[e,ed.get(e)[4]]},[eL,eN]=eI(new Map),eU=ea({onLoadingSlow:et,onSuccess:et,onError:et,onErrorRetry:(e,t,r,n,i)=>{let o=r.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(ei(o)||!(a>o))&&setTimeout(n,s,i)},onDiscarded:et,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:ek?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:ek?5e3:3e3,compare:(e,t)=>ec(e)==ec(t),isPaused:()=>!1,cache:eL,mutate:eN,fallback:{}},{isOnline:()=>eb,isVisible:()=>{let e=eg&&document.visibilityState;return ei(e)||"hidden"!==e}}),eF=(e,t)=>{let r=ea(e,t);if(t){let{use:n,fallback:i}=e,{use:o,fallback:a}=t;n&&o&&(r.use=n.concat(o)),i&&a&&(r.fallback=ea(i,a))}return r},ez=(0,C.createContext)({}),e$=em&&window.__SWR_DEVTOOLS_USE__,eB=e$?window.__SWR_DEVTOOLS_USE__:[],eV=e=>eo(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],eq=()=>ea(eU,(0,C.useContext)(ez)),eW=(e,t)=>{let[r,n]=eA(e),[,,,i]=ed.get(eL);if(i[r])return i[r];let o=t(n);return i[r]=o,o},eH=eB.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=eA(t),[,,,i]=ed.get(eL),o=i[n];return ei(o)?r(...e):(delete i[n],o)});return e(t,i,n)}),eY=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};e$&&(window.__SWR_DEVTOOLS_REACT__=C);let eZ=e=>eA(e)[0],eG=C.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),eK={dedupe:!0},eX=en.defineProperty(e=>{let{value:t}=e,r=(0,C.useContext)(ez),n=eo(t),i=(0,C.useMemo)(()=>n?t(r):t,[n,r,t]),o=(0,C.useMemo)(()=>n?i:eF(r,i),[n,r,i]),a=i&&i.provider,s=(0,C.useRef)(er);a&&!s.current&&(s.current=eI(a(o.cache||eL),i));let l=s.current;return l&&(o.cache=l[0],o.mutate=l[1]),eS(()=>
2{if(l)return l[2]&&l[2](),l[3]},[]),(0,C.createElement)(ez.Provider,ea(e,{value:o}))},"defaultValue",{value:eU}),eJ=(n=(e,t,r)=>{let{cache:n,compare:i,suspense:o,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:f}=r,[h,p,m,g]=ed.get(n),[y,v]=eA(e),b=(0,C.useRef)(!1),w=(0,C.useRef)(!1),_=(0,C.useRef)(y),x=(0,C.useRef)(t),E=(0,C.useRef)(r),O=()=>E.current,S=()=>O().isVisible()&&O().isOnline(),[T,k,A,P]=ev(n,y),j=(0,C.useRef)({}).current,R=ei(a)?r.fallback[y]:a,M=(e,t)=>{for(let r in j)if("data"===r){if(!i(e[r],t[r])&&(!ei(e[r])||!i(B,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},D=(0,C.useMemo)(()=>{let e=!!y&&!!t&&(ei(s)?!O().isPaused()&&!o&&(!!ei(l)||l):s),r=t=>{let r=ea(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=T(),i=P(),a=r(n),u=n===i?a:r(i),c=a;return[()=>{let e=r(T());return M(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>u]},[n,y]),I=(0,ee.useSyncExternalStore)((0,C.useCallback)(e=>A(y,(t,r)=>{M(r,t)||e()}),[n,y]),D[0],D[1]),L=!b.current,N=h[y]&&h[y].length>0,U=I.data,F=ei(U)?R:U,z=I.error,$=(0,C.useRef)(F),B=f?ei(U)?$.current:U:F,V=(!N||!!ei(z))&&(L&&!ei(s)?s:!O().isPaused()&&(o?!ei(F)&&l:ei(F)||l)),q=!!(y&&t&&L&&V),W=ei(I.isValidating)?q:I.isValidating,H=ei(I.isLoading)?q:I.isLoading,Y=(0,C.useCallback)(async e=>{let t,n;let o=x.current;if(!y||!o||w.current||O().isPaused())return!1;let a=!0,s=e||{},l=!m[y]||!s.dedupe,u=()=>eE?!w.current&&y===_.current&&b.current:y===_.current,c={isValidating:!1,isLoading:!1},d=()=>{k(c)},f=()=>{let e=m[y];e&&e[1]===n&&delete m[y]},g={isValidating:!0};ei(T().data)&&(g.isLoading=!0);try{if(l&&(k(g),r.loadingTimeout&&ei(T().data)&&setTimeout(()=>{a&&u()&&O().onLoadingSlow(y,r)},r.loadingTimeout),m[y]=[o(v),ej()]),[t,n]=m[y],t=await t,l&&setTimeout(f,r.dedupingInterval),!m[y]||m[y][1]!==n)return l&&u()&&O().onDiscarded(y),!1;c.error=er;let e=p[y];if(!ei(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return d(),l&&u()&&O().onDiscarded(y),!1;let s=T().data;c.data=i(s,t)?s:t,l&&u()&&O().onSuccess(t,y,r)}catch(r){f();let e=O(),{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=r,l&&u()&&(e.onError(r,y,e),(!0===t||eo(t)&&t(r))&&S()&&e.onErrorRetry(r,y,e,e=>{let t=h[y];t&&t[0]&&t[0](eR.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,d(),!0},[y,n]),Z=(0,C.useCallback)((...e)=>eM(n,_.current,...e),[]);if(eS(()=>{x.current=t,E.current=r,ei(U)||($.current=U)}),eS(()=>{if(!y)return;let e=Y.bind(er,eK),t=0,r=eY(y,h,(r,n={})=>{if(r==eR.FOCUS_EVENT){let r=Date.now();O().revalidateOnFocus&&r>t&&S()&&(t=r+O().focusThrottleInterval,e())}else if(r==eR.RECONNECT_EVENT)O().revalidateOnReconnect&&S()&&e();else if(r==eR.MUTATE_EVENT)return Y();else if(r==eR.ERROR_REVALIDATE_EVENT)return Y(n)});return w.current=!1,_.current=y,b.current=!0,k({_k:v}),V&&(ei(F)||eC?e():eO(e)),()=>{w.current=!0,r()}},[y]),eS(()=>{let e;function t(){let t=eo(u)?u(T().data):u;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!T().error&&(c||O().isVisible())&&(d||O().isOnline())?Y(eK).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[u,c,d,y]),(0,C.useDebugValue)(B),o&&ei(F)&&y){if(!eE&&eC)throw Error("Fallback data is required when using suspense in SSR.");x.current=t,E.current=r,w.current=!1;let e=g[y];if(ei(e)||eG(Z(e)),ei(z)){let e=Y(eK);ei(B)||(e.status="fulfilled",e.value=!0),eG(e)}else throw z}return{mutate:Z,get data(){return j.data=!0,B},get error(){return j.error=!0,z},get isValidating(){return j.isValidating=!0,W},get isLoading(){return j.isLoading=!0,H}}},function(...e){let t=eq(),[r,i,o]=eV(e),a=eF(t,o),s=n,{use:l}=a,u=(l||[]).concat(eH);for(let e=u.length;e--;)s=u[e](s);return s(r,i||a.fetcher||null,a)}),eQ=e=>eA(e?e(0,null):null)[0],e0=Promise.resolve(),e1=(i=e=>(t,r,n)=>{let i;let o=(0,C.useRef)(!1),{cache:a,initialSize:s=1,revalidateAll:l=!1,persistSize:u=!1,revalidateFirstPage:c=!0,revalidateOnMount:d=!1,parallel:f=!1}=n;try{(i=eQ(t))&&(i="$inf$"+i)}catch(e){}let[h,p,m]=ev(a,i),g=(0,C.useCallback)(()=>ei(h()._l)?s:h()._l,[a,i,s]);(0,ee.useSyncExternalStore)((0,C.useCallback)(e=>i?m(i,()=>{e()}):()=>{},[a,i]),g,g);let y=(0,C.useCallback)(()=>{let e=h()._l;return ei(e)?s:e},[i,s]),v=(0,C.useRef)(y());eS(()=>
2{if(!o.current){o.current=!0;return}i&&p({_l:u?v.current:y()})},[i,a]);let b=d&&!o.current,w=e(i,async e=>{let i=h()._i,o=[],s=y(),[u]=ev(a,e),d=u().data,m=[],g=null;for(let e=0;e<s;++e){let[s,u]=eA(t(e,f?null:g));if(!s)break;let[h,p]=ev(a,s),y=h().data,v=l||i||ei(y)||c&&!e&&!ei(d)||b||d&&!ei(d[e])&&!n.compare(d[e],y);if(r&&v){let t=async()=>{p({data:y=await r(u),_k:u}),o[e]=y};f?m.push(t):await t()}else o[e]=y;f||(g=y)}return f&&await Promise.all(m.map(e=>e())),p({_i:er}),o},n),_=(0,C.useCallback)(function(e,t){let r="boolean"==typeof t?{revalidate:t}:t||{},n=!1!==r.revalidate;return i?(n&&(ei(e)?p({_i:!0}):p({_i:!1})),arguments.length?w.mutate(e,{...r,revalidate:n}):w.mutate()):e0},[i,a]),x=(0,C.useCallback)(e=>{let r;if(!i)return e0;let[,n]=ev(a,i);if(eo(e)?r=e(y()):"number"==typeof e&&(r=e),"number"!=typeof r)return e0;n({_l:r}),v.current=r;let o=[],[s]=ev(a,i),l=null;for(let e=0;e<r;++e){let[r]=eA(t(e,l)),[n]=ev(a,r),i=r?n().data:er;if(ei(i))return _(s().data);o.push(i),l=i}return _(o)},[i,a,_,y]);return{size:y(),setSize:x,mutate:_,get data(){return w.data},get error(){return w.error},get isValidating(){return w.isValidating},get isLoading(){return w.isLoading}}},(...e)=>{let[t,r,n]=eV(e),o=(n.use||[]).concat(i);return eJ(t,r,{...n,use:o})});function e2(e,t){if(!e)throw"string"==typeof t?Error(t):Error(`${t.displayName} not found`)}var e5=(e,t)=>{let{assertCtxFn:r=e2}=t||{},n=C.createContext(void 0);return n.displayName=e,[n,()=>{let t=C.useContext(n);return r(t,`${e} not found`),t.value},()=>{let e=C.useContext(n);return e?e.value:{}}]},e3={};((e,t)=>{for(var r in t)b(e,r,{get:t[r],enumerable:!0})})(e3,{SWRConfig:()=>eX,useSWR:()=>eJ,useSWRInfinite:()=>e1}),E(e3,p,"default"),o&&E(o,p,"default");var[e4,e6]=e5("ClerkInstanceContext"),[e8,e9]=e5("UserContext"),[e7,te]=e5("ClientContext"),[tt,tr]=e5("SessionContext"),[tn,ti]=e5("OrganizationContext"),to=({children:e,organization:t,lastOrganizationMember:r,lastOrganizationInvitation:n,swrConfig:i})=>C.createElement(eX,{value:i},C.createElement(tn.Provider,{value:{value:{organization:t,lastOrganizationMember:r,lastOrganizationInvitation:n}}},e));"undefined"!=typeof window?C.useLayoutEffect:C.useEffect;let[ta,ts]=e5("AuthContext"),[tl,tu]=[e4,e6];function tc(e){let{isomorphicClerkOptions:t,initialState:r,children:n}=e,{isomorphicClerk:i,loaded:o}=td(t);t.frontendApi&&k("frontendApi","Use `publishableKey` instead.");let[a,s]=C.useState({client:i.client,session:i.session,user:i.user,organization:i.organization,lastOrganizationInvitation:null,lastOrganizationMember:null});C.useEffect(()=>i.addListener(e=>s({...e})),[]);let l=X(o,a,r),u=C.useMemo(()=>({value:i}),[o]),c=C.useMemo(()=>({value:a.client}),[a.client]),{sessionId:d,session:f,userId:h,user:p,orgId:m,actor:g,lastOrganizationInvitation:y,lastOrganizationMember:v,organization:b,orgRole:w,orgSlug:_,orgPermissions:x}=l,E=C.useMemo(()=>({value:{sessionId:d,userId:h,actor:g,orgId:m,orgRole:w,orgSlug:_,orgPermissions:x}}),[d,h,g,m,w,_]),O=C.useMemo(()=>({value:p}),[h,p]),S=C.useMemo(()=>({value:f}),[d,f]),T=C.useMemo(()=>({value:{organization:b,lastOrganizationInvitation:y,lastOrganizationMember:v}}),[m,b,y,v]);return C.createElement(tl.Provider,{value:u},C.createElement(e7.Provider,{value:c},C.createElement(tt.Provider,{value:S},C.createElement(to,{...T.value},C.createElement(ta.Provider,{value:E},C.createElement(e8.Provider,{value:O},n))))))}let td=e=>{let[t,r]=C.useState(!1),n=C.useMemo(()=>K.getOrCreateInstance(e),[]);return C.useEffect(()=>{n.__unstable__updateProps({appearance:e.appearance})},[e.appearance]),C.useEffect(()=>{n.__unstable__updateProps({options:e})},[e.localization]),C.useEffect(()=>{n.addOnLoaded(()=>r(!0))},[]),C.useEffect(()=>()=>{K.clearInstance()},[]),{isomorphicClerk:n,loaded:t}},tf=Object.freeze({noGuarantees:Object.freeze({guaranteedLoaded:!1}),guaranteedLoaded:Object.freeze({guaranteedLoaded:!0})}),th=C.createContext(void 0);th.displayName="StructureContext";let tp=()=>{let e=C.useContext(th);return!function(e){if(!e)throw Error("Clerk: You must wrap your application in a <ClerkProvider> component.")}(e),e},tm=({children:e})=>tp().guaranteedLoaded?C.createElement(C.Fragment,null,e):C.createElement(th.Provider,{value:tf.guaranteedLoaded},e);R({packageName:"@clerk/clerk-react"});let tg=function(e,t,r){let n=e.displayName||e.name||t||"Component",i=n=>(!function(e,t,r=1){C.useEffect(()=>{let n=M.get(e)||0;if(n==r)throw Error(t);return M.set(e,n+1),()=>{M.set(e,(M.get(e)||1)-1)}},[])}(t,r),C.createElement(e,{...n}));return i.displayName=`withMaxAllowedInstancesGuard(${n})`,i}(function(e){let{initialState:t,children:r,...n}=e,{frontendApi:i="",publishableKey:o="",Clerk:a}=n;return!a&&(o||i?o&&!v(o)?j.throwInvalidPublishableKeyError({key:o}):o||!i||(i||"").startsWith("clerk.")||j.throwInvalidFrontendApiError({key:i}
2):j.throwMissingPublishableKeyError()),C.createElement(th.Provider,{value:tf.noGuarantees},C.createElement(tc,{initialState:t,isomorphicClerkOptions:n},r))},"ClerkProvider","Clerk: You've added multiple <ClerkProvider> components in your React component tree. Wrap your components in a single <ClerkProvider>.");tg.displayName="ClerkProvider";let ty=e=>new Promise(t=>{e.loaded&&t(),e.addOnLoaded(t)}),tv=e=>async t=>(await ty(e),e.session)?e.session.getToken(t):null,tb=e=>async(...t)=>(await ty(e),e.signOut(...t)),tw=()=>{let{sessionId:e,userId:t,actor:r,orgId:n,orgRole:i,orgSlug:o,orgPermissions:a}=ts(),s=tu(),l=(0,C.useCallback)(tv(s),[s]),u=(0,C.useCallback)(tb(s),[s]),c=(0,C.useCallback)(e=>{if(!(null==e?void 0:e.permission)&&!(null==e?void 0:e.role))throw Error('Clerk: Missing parameters. `has` from `useAuth` requires a permission or role key to be passed. Example usage: `has({permission: "org:posts:edit"`');return!!n&&!!t&&!!i&&!!a&&(e.permission?a.includes(e.permission):!!e.role&&i===e.role)},[n,i,t,a]);if(void 0===e&&void 0===t)return{isLoaded:!1,isSignedIn:void 0,sessionId:e,userId:t,actor:void 0,orgId:void 0,orgRole:void 0,orgSlug:void 0,has:void 0,signOut:u,getToken:l};if(null===e&&null===t)return{isLoaded:!0,isSignedIn:!1,sessionId:e,userId:t,actor:null,orgId:null,orgRole:null,orgSlug:null,has:()=>!1,signOut:u,getToken:l};if(e&&t&&n&&i)return{isLoaded:!0,isSignedIn:!0,sessionId:e,userId:t,actor:r||null,orgId:n,orgRole:i,orgSlug:o||null,has:c,signOut:u,getToken:l};if(e&&t&&!n)return{isLoaded:!0,isSignedIn:!0,sessionId:e,userId:t,actor:r||null,orgId:null,orgRole:null,orgSlug:null,has:()=>!1,signOut:u,getToken:l};throw Error("Clerk: Invalid state. Feel free to submit a bug or reach out to support here: https://clerk.com/support")},t_=(e,t)=>{t=t||e.displayName||e.name||"Component",e.displayName=t;let r=t=>{let r=tu();return r.loaded?C.createElement(tm,null,C.createElement(e,{...t,clerk:r})):null};return r.displayName=`withClerk(${t})`,r},tx=({children:e})=>{let{userId:t}=ts();return t?C.createElement(C.Fragment,null,e):null},tE=({children:e})=>{let{userId:t}=ts();return null===t?C.createElement(C.Fragment,null,e):null},tC=({children:e,fallback:t,...r})=>{let{isLoaded:n,has:i,userId:o}=tw();if(!n)return null;let a=C.createElement(C.Fragment,null,null!=t?t:null),s=C.createElement(C.Fragment,null,e);return o?"function"==typeof r.condition?r.condition(i)?s:a:r.role||r.permission?i(r)?s:a:s:a};function tO(){let e=e9();return void 0===e?{isLoaded:!1,isSignedIn:void 0,user:void 0}:null===e?{isLoaded:!0,isSignedIn:!1,user:null}:{isLoaded:!0,isSignedIn:!0,user:e}}t_(({clerk:e,...t})=>{let{client:r,session:n}=e,{__unstable__environment:i}=e,o=r.activeSessions&&r.activeSessions.length>0;return C.useEffect(()=>{if(null===n&&o&&i){let{afterSignOutOneUrl:t}=i.displayConfig;e.navigate(t)}else e.redirectToSignIn(t)},[]),null},"RedirectToSignIn"),t_(({clerk:e,...t})=>(C.useEffect(()=>{e.redirectToSignUp(t)},[]),null),"RedirectToSignUp"),t_(({clerk:e})=>(C.useEffect(()=>{e.redirectToUserProfile()},[]),null),"RedirectToUserProfile"),t_(({clerk:e})=>(C.useEffect(()=>{e.redirectToOrganizationProfile()},[]),null),"RedirectToOrganizationProfile"),t_(({clerk:e})=>(C.useEffect(()=>{e.redirectToCreateOrganization()},[]),null),"RedirectToCreateOrganization"),t_(({clerk:e,...t})=>(C.useEffect(()=>{e.handleRedirectCallback(t)},[]),null),"AuthenticateWithRedirectCallback");let tS=()=>tu(),tT=()=>{let e=tu(),t=te();return t?{isLoaded:!0,signIn:t.signIn,setSession:e.setSession,setActive:e.setActive}:{isLoaded:!1,signIn:void 0,setSession:void 0,setActive:void 0}},tk=()=>{let e=tu(),t=te();return t?{isLoaded:!0,signUp:t.signUp,setSession:e.setSession,setActive:e.setActive}:{isLoaded:!1,signUp:void 0,setSession:void 0,setActive:void 0}}},13704:function(e,t,r){"undefined"==typeof window||window.global||(window.global=void 0===r.g?window:r.g)},34190:function(e,t,r){"use strict";r.r(t),r.d(t,{ClientClerkProvider:function(){return c}});var n=r(24574),i=r(39332),o=r(67294),a=r(5571),s=r(1879),l=r(39280);let u=()=>{let{push:e}=(0,i.useRouter)(),[t,r]=(0,o.useTransition)(),n=(0,o.useRef)(),a=(0,o.useRef)([]);return n.current||(n.current=(t,n)=>new Promise(i=>{a.current.push(i),r(()=>{e(t,n)})})),(0,o.useEffect)(()=>{var e;t||((null==(e=null==a?void 0:a.current)?void 0:e.length)&&a.current.forEach(e
2=>e()),a.current=[])},[t]),n.current},c=e=>{let{__unstable_invokeMiddlewareOnAuthStateChange:t=!0}=e,r=(0,i.useRouter)(),c=u();(0,s.G)(()=>{window.__unstable__onBeforeSetActive=()=>{t&&(r.refresh(),r.push(window.location.href))},window.__unstable__onAfterSetActive=()=>{r.refresh()}},[]);let d=(0,l.V)({...e,navigate:c});return o.createElement(a.f,{options:d},o.createElement(n.El,{...d}))}},5571:function(e,t,r){"use strict";r.d(t,{f:function(){return o}});var n=r(67294);let i=n.createContext(void 0);i.displayName="ClerkNextOptionsCtx";let o=e=>{let{children:t,options:r}=e;return n.createElement(i.Provider,{value:{value:r}},t)}},1879:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(67294);let i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},39280:function(e,t,r){"use strict";r.d(t,{V:function(){return i}});var n=r(83454);let i=e=>({...e,frontendApi:e.frontendApi||"pk_live_Y2xlcmsuYW1lcmljYW5tYXJ5LmNvbSQ",publishableKey:e.publishableKey||"pk_live_Y2xlcmsuYW1lcmljYW5tYXJ5LmNvbSQ",clerkJSUrl:e.clerkJSUrl||n.env.NEXT_PUBLIC_CLERK_JS,clerkJSVersion:e.clerkJSVersion||n.env.NEXT_PUBLIC_CLERK_JS_VERSION,proxyUrl:e.proxyUrl||n.env.NEXT_PUBLIC_CLERK_PROXY_URL||"",domain:e.domain||n.env.NEXT_PUBLIC_CLERK_DOMAIN||"",isSatellite:e.isSatellite||"true"===n.env.NEXT_PUBLIC_CLERK_IS_SATELLITE,signInUrl:e.signInUrl||n.env.NEXT_PUBLIC_CLERK_SIGN_IN_URL||"",signUpUrl:e.signUpUrl||n.env.NEXT_PUBLIC_CLERK_SIGN_UP_URL||"",afterSignInUrl:e.afterSignInUrl||n.env.NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL||"",afterSignUpUrl:e.afterSignUpUrl||n.env.NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL||"",sdkMetadata:{name:"@clerk/nextjs",version:"4.31.8"}})},6803:function(e){var t;t=function(){function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function t(){return(t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var r="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function n(e){return("image-"+e.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}var i=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]],o=["clip","crop","fill","fillmax","max","scale","min"],a=["top","bottom","left","right","center","focalpoint","entropy"],s=["format"],l=function(){function l(e,r){this.options=void 0,this.options=e?t({},e.options||{},r||{}):t({},r||{})}var u=l.prototype;return u.withOptions=function(r){var n=r.baseUrl||this.options.baseUrl,o={baseUrl:n};for(var a in r)r.hasOwnProperty(a)&&(o[function(t){for(var r,n=function(t,r){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,r){if(t){if("string"==typeof t)return e(t,void 0);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,void 0):void 0}}(t))){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i);!(r=n()).done;){var o=r.value,a=o[0],s=o[1];if(t===a||t===s)return a}return t}(a)]=r[a]);return new l(this,t({baseUrl:n},o))},u.image=function(e){return this.withOptions({source:e})},u.dataset=function(e){return this.withOptions({dataset:e})},u.projectId=function(e){return this.withOptions({projectId:e})},u.bg=function(e){return this.withOptions({bg:e})},u.dpr=function(e){return this.withOptions(e&&1!==e?{dpr:e}:{})},u.width=function(e){return this.withOptions({width:e})},u.height=function(e){return this.withOptions({height:e})},u.focalPoint=function(e,t){return this.withOptions({focalPoint:{x:e,y:t}})},u.maxWidth=function(e){return this.withOptions({maxWidth:e})},u.minWidth=function(e){return this.withOptions({minWidth:e})},u.maxHeight=function(e){return this.withOptions({maxHeight:e})},u.minHeight=function(e){return this.withOptions({minHeight:e})},u.size=function(e,t){return this.withOptions({width:e,height:t})},u.blur=function(e){return this.withOptions({blur:e})},u.sharpen=function(e){return this.withOptions({sharpen:e})},u.rect=function(e,t,r,n){return this.withOptions({rect:{left:e,top:t,width:r,height:n}})},u.format=function(e){return this.withOptions({format:e})},u.invert=function(e){return this.withOptions({invert:e})},u.orientation=function(e){return this.withOptions({orientation:e})},u.quality=function(e){return this.withOptions({quality:e})},u.forceDownload=function(e){return this.withOptions({download:e})},u.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},u.flipVertical=function(){return this.withOptions({flipVertical:!0})},u.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},u.fit=function(e){if(-1===o.indexOf(e))throw Error('Invalid fit mode "'+e+'"');return this.withOptions({fit:e})},u.crop=function(e){if(-1===a.indexOf(e))throw Error('Invalid crop mode "'+e+'"');return this.withOptions({crop:e})},u.saturation=function(e){return this.withOptions({saturation:e})},u.auto=function(e){if(-1===s.indexOf(e))throw Error('Invalid auto mode "'+e+'"');return this.withOptions({auto:e})},u.pad=function(e){return this.withOptions({pad:e})},u.vanityName=function(e){return this.withOptions({vanityName:e})},u.frame=function(e){if(1!==e)throw Error('Invalid frame value "'+e+'"');return this.withOptions({frame:e})},u.url=function(){return function(e){var o=t({},e||{}),a=o.source;delete o.source;var s=function(e){var r;if(!e)return null;if("string"==typeof e&&/^https?:\/\//.test(""+e))r={asset:{_ref:n(e)}};else if("string"==typeof e)r={asset:{_ref:e}};else if(e&&"string"==typeof e._ref)r={asset:e};else if(e&&"string"==typeof e._id)r={asset:{_ref:e._id||""}};else if(e&&e.asset&&"string"==typeof e.asset.url)r={asset:{_ref:n(e.asset.url)}};else{if("object"!=typeof e.asset)return null;r=t({},e)}return e.crop&&(r.crop=e.crop),e.hotspot&&(r.hotspot=e.hotspot),function(e){if(e.crop&&e.hotspot)return e;var r=t({},e);
2return r.crop||(r.crop={left:0,top:0,bottom:0,right:0}),r.hotspot||(r.hotspot={x:.5,y:.5,height:1,width:1}),r}(r)}(a);if(!s){if(a&&"object"==typeof a&&null!==a&&a._upload&&(!a.asset||!a.asset._ref))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw Error("Unable to resolve image URL from source ("+JSON.stringify(a)+")")}var l=function(e){var t=e.split("-"),n=t[1],i=t[2],o=t[3];if(!n||!i||!o)throw Error("Malformed asset _ref '"+e+"'. Expected an id like \""+r+'".');var a=i.split("x"),s=a[0],l=a[1],u=+s,c=+l;if(!(isFinite(u)&&isFinite(c)))throw Error("Malformed asset _ref '"+e+"'. Expected an id like \""+r+'".');return{id:n,width:u,height:c,format:o}}(s.asset._ref||s.asset._id||""),u=Math.round(s.crop.left*l.width),c=Math.round(s.crop.top*l.height),d={left:u,top:c,width:Math.round(l.width-s.crop.right*l.width-u),height:Math.round(l.height-s.crop.bottom*l.height-c)},f=s.hotspot.height*l.height/2,h=s.hotspot.width*l.width/2,p=s.hotspot.x*l.width,m=s.hotspot.y*l.height;return o.rect||o.focalPoint||o.ignoreImageParams||o.crop||(o=t({},o,function(e,t){var r,n=t.width,i=t.height;if(!(n&&i))return{width:n,height:i,rect:e.crop};var o=e.crop,a=e.hotspot,s=n/i;if(o.width/o.height>s){var l=Math.round(o.height),u=Math.round(l*s),c=Math.max(0,Math.round(o.top)),d=Math.max(0,Math.round(Math.round((a.right-a.left)/2+a.left)-u/2));d<o.left?d=o.left:d+u>o.left+o.width&&(d=o.left+o.width-u),r={left:d,top:c,width:u,height:l}}else{var f=o.width,h=Math.round(f/s),p=Math.max(0,Math.round(o.left)),m=Math.max(0,Math.round(Math.round((a.bottom-a.top)/2+a.top)-h/2));m<o.top?m=o.top:m+h>o.top+o.height&&(m=o.top+o.height-h),r={left:p,top:m,width:f,height:h}}return{width:n,height:i,rect:r}}({crop:d,hotspot:{left:p-h,top:m-f,right:p+h,bottom:m+f}},o))),function(e){var t=(e.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),r=e.vanityName?"/"+e.vanityName:"",n=e.asset.id+"-"+e.asset.width+"x"+e.asset.height+"."+e.asset.format+r,o=t+"/images/"+e.projectId+"/"+e.dataset+"/"+n,a=[];if(e.rect){var s=e.rect,l=s.left,u=s.top,c=s.width,d=s.height;(0!==l||0!==u||d!==e.asset.height||c!==e.asset.width)&&a.push("rect="+l+","+u+","+c+","+d)}e.bg&&a.push("bg="+e.bg),e.focalPoint&&(a.push("fp-x="+e.focalPoint.x),a.push("fp-y="+e.focalPoint.y));var f=[e.flipHorizontal&&"h",e.flipVertical&&"v"].filter(Boolean).join("");return(f&&a.push("flip="+f),i.forEach(function(t){var r=t[0],n=t[1];void 0!==e[r]?a.push(n+"="+encodeURIComponent(e[r])):void 0!==e[n]&&a.push(n+"="+encodeURIComponent(e[n]))}),0===a.length)?o:o+"?"+a.join("&")}(t({},o,{asset:l}))}(this.options)},u.toString=function(){return this.url()},l}();return function(e){if(e&&"config"in e&&"function"==typeof e.config){var t=e.config(),r=t.apiHost,n=t.projectId,i=t.dataset;return new l(null,{baseUrl:(r||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:n,dataset:i})}if(e&&"clientConfig"in e&&"object"==typeof e.clientConfig){var o=e.clientConfig,a=o.apiHost,s=o.projectId,u=o.dataset;return new l(null,{baseUrl:(a||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:s,dataset:u})}return new l(null,e||{})}},e.exports=t()},64221:function(e,t,r){let n=r(42502),i={position:"relative",paddingBottom:"calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%)"},o={position:"absolute",height:"100%",width:"100%",top:"0",right:"0",bottom:"0",left:"0"},a={".aspect-none":{position:"static",paddingBottom:"0"},".aspect-none > *":{position:"static",height:"auto",width:"auto",top:"auto",right:"auto",bottom:"auto",left:"auto"}},s=n(function({addComponents:e,matchComponents:t,theme:r,variants:n,e:s}){let l=r("aspectRatio");if(t){t({"aspect-w":e=>[{...i,"--tw-aspect-w":e},{"> *":o}],"aspect-h":e=>({"--tw-aspect-h":e})},{values:l}),e(a);return}e([{[Object.entries(l).map(([e,t])=>`.${s(`aspect-w-${e}`)}`).join(",\n")]:i,[Object.entries(l).map(([e,t])=>`.${s(`aspect-w-${e}`)} > *`).join(",\n")]:o},a,Object.entries(l).map(([e,t])=>({[`.${s(`aspect-w-${e}`)}`]:{"--tw-aspect-w":t}})),Object.entries(l).map(([e,t])=>({[`.${s(`aspect-h-${e}`)}`]:{"--tw-aspect-h":t}}))],n("aspectRatio"))},{theme:{aspectRatio:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16"}},variants:{aspectRatio:["responsive"]}});e.exports=s},54483:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}
2function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var l=r(67294),u=r(45697),c=r(15303).createFocusTrap,d=r(88388).isFocusable,f=function(e){var t;function r(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),t=r,a=[e],t=o(t),l=d=function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,i()?Reflect.construct(t,a||[],o(this).constructor):t.apply(this,a)),u="getNodeForOption",c=function(e){var t,r,n=null!==(t=this.internalOptions[e])&&void 0!==t?t:this.originalOptions[e];if("function"==typeof n){for(var i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];n=n.apply(void 0,o)}if(!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=n;if("string"==typeof n&&!(s=null===(r=this.getDocument())||void 0===r?void 0:r.querySelector(n)))throw Error("`".concat(e,"` as selector refers to no known node"));return s},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c,d.handleDeactivate=d.handleDeactivate.bind(d),d.handlePostDeactivate=d.handlePostDeactivate.bind(d),d.handleClickOutsideDeactivates=d.handleClickOutsideDeactivates.bind(d),d.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:d.handleDeactivate,onPostDeactivate:d.handlePostDeactivate,clickOutsideDeactivates:d.handleClickOutsideDeactivates},d.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var t,a,l,u,c,d,f=e.focusTrapOptions;for(var h in f)if(Object.prototype.hasOwnProperty.call(f,h)){if("returnFocusOnDeactivate"===h||"onDeactivate"===h||"onPostDeactivate"===h||"checkCanReturnFocus"===h||"clickOutsideDeactivates"===h){d.originalOptions[h]=f[h];continue}d.internalOptions[h]=f[h]}return d.outsideClick=null,d.focusTrapElements=e.containerElements||[],d.updatePreviousElement(),d}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(r,e),t=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),r=!!(e.originalOptions.returnFocusOnDeactivate&&null!=t&&t.focus&&(!e.outsideClick||e.outsideClick.allowDeactivation&&!d(e.outsideClick.target,e.internalOptions.tabbableOptions))),n=e.internalOptions.preventScroll;r&&t.focus({preventScroll:void 0!==n&&n}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,r=e.active&&!this.props.active,n=!e.paused&&this.props.paused,i=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),r){this.deactivateTrap();return}n&&this.focusTrap.pause(),i&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?l.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===l.Fragment)throw Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return l.cloneElement(t,{ref:function(r){var n=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(r):t.ref&&(t.ref.current=r)),e.focusTrapElements=n||[r]}})}return null}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),r}(l.Component),h="undefined"==typeof Element?Function:Element;
2f.propTypes={active:u.bool,paused:u.bool,focusTrapOptions:u.shape({document:u.object,onActivate:u.func,onPostActivate:u.func,checkCanFocusTrap:u.func,onPause:u.func,onPostPause:u.func,onUnpause:u.func,onPostUnpause:u.func,onDeactivate:u.func,onPostDeactivate:u.func,checkCanReturnFocus:u.func,initialFocus:u.oneOfType([u.instanceOf(h),u.string,u.bool,u.func]),fallbackFocus:u.oneOfType([u.instanceOf(h),u.string,u.func]),escapeDeactivates:u.oneOfType([u.bool,u.func]),clickOutsideDeactivates:u.oneOfType([u.bool,u.func]),returnFocusOnDeactivate:u.bool,setReturnFocus:u.oneOfType([u.instanceOf(h),u.string,u.bool,u.func]),allowOutsideClick:u.oneOfType([u.bool,u.func]),preventScroll:u.bool,tabbableOptions:u.shape({displayCheck:u.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:u.oneOfType([u.bool,u.func])}),trapStack:u.array,isKeyForward:u.func,isKeyBackward:u.func}),containerElements:u.arrayOf(u.instanceOf(h)),children:u.oneOfType([u.element,u.instanceOf(h)])},f.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:c},e.exports=f},15303:function(e,t,r){"use strict";r.r(t),r.d(t,{createFocusTrap:function(){return y}});var n=r(88388);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=l(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t){if(e){if("string"==typeof e)return i(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}var u={getActiveTrap:function(e){return(null==e?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){t!==u.getActiveTrap(e)&&u.pauseTrap(e);var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1),u.unpauseTrap(e)},pauseTrap:function(e){var t=u.getActiveTrap(e);null==t||t._setPausedState(!0)},unpauseTrap:function(e){var t=u.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},c=function(e){return(null==e?void 0:e.key)==="Tab"||(null==e?void 0:e.keyCode)===9},d=function(e){return c(e)&&!e.shiftKey},f=function(e){return c(e)&&e.shiftKey},h=function(e){return setTimeout(e,0)},p=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,r):e},m=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},g=[],y=function(e,t){var r,a=(null==t?void 0:t.document)||document,y=(null==t?void 0:t.trapStack)||g,v=s({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:d,isKeyBackward:f},t),b={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},w=function(e,t,r){return e&&void 0!==e[t]?e[t]:v[r||t]},_=function(e,t){var r="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return b.containerGroups.findIndex(function(t){var n=t.container,i=t.tabbableNodes;return n.contains(e)||(null==r?void 0:r.includes(n))||i.find(function(t){return t===e})})},x=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.hasFallback,o=r.params,s=v[e];
2if("function"==typeof s&&(s=s.apply(void 0,function(e){if(Array.isArray(e))return i(e)}(t=void 0===o?[]:o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||l(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),!0===s&&(s=void 0),!s){if(void 0===s||!1===s)return s;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var u=s;if("string"==typeof s){try{u=a.querySelector(s)}catch(t){throw Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!u&&!(void 0!==n&&n))throw Error("`".concat(e,"` as selector refers to no known node"))}return u},E=function(){var e=x("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,n.isFocusable)(e,v.tabbableOptions)){if(_(a.activeElement)>=0)e=a.activeElement;else{var t=b.tabbableGroups[0];e=t&&t.firstTabbableNode||x("fallbackFocus")}}else null===e&&(e=x("fallbackFocus"));if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e},C=function(){if(b.containerGroups=b.containers.map(function(e){var t=(0,n.tabbable)(e,v.tabbableOptions),r=(0,n.focusable)(e,v.tabbableOptions),i=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,a=r.find(function(e){return(0,n.isTabbable)(e)}),s=r.slice().reverse().find(function(e){return(0,n.isTabbable)(e)}),l=!!t.find(function(e){return(0,n.getTabIndex)(e)>0});return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:s,nextTabbableNode:function(e){var i=!(arguments.length>1)||void 0===arguments[1]||arguments[1],o=t.indexOf(e);return o<0?i?r.slice(r.indexOf(e)+1).find(function(e){return(0,n.isTabbable)(e)}):r.slice(0,r.indexOf(e)).reverse().find(function(e){return(0,n.isTabbable)(e)}):t[o+(i?1:-1)]}}}),b.tabbableGroups=b.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),b.tabbableGroups.length<=0&&!x("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(b.containerGroups.find(function(e){return e.posTabIndexesFound})&&b.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},O=function(e){var t=e.activeElement;return t?t.shadowRoot&&null!==t.shadowRoot.activeElement?O(t.shadowRoot):t:void 0},S=function(e){if(!1!==e&&e!==O(document)){if(!e||!e.focus){S(E());return}
2e.focus({preventScroll:!!v.preventScroll}),b.mostRecentlyFocusedNode=e,e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select&&e.select()}},T=function(e){var t=x("setReturnFocus",{params:[e]});return t||!1!==t&&e},k=function(e){var t=e.target,r=e.event,i=e.isBackward,o=void 0!==i&&i;t=t||m(r),C();var a=null;if(b.tabbableGroups.length>0){var s=_(t,r),l=s>=0?b.containerGroups[s]:void 0;if(s<0)a=o?b.tabbableGroups[b.tabbableGroups.length-1].lastTabbableNode:b.tabbableGroups[0].firstTabbableNode;else if(o){var u=b.tabbableGroups.findIndex(function(e){var r=e.firstTabbableNode;return t===r});if(u<0&&(l.container===t||(0,n.isFocusable)(t,v.tabbableOptions)&&!(0,n.isTabbable)(t,v.tabbableOptions)&&!l.nextTabbableNode(t,!1))&&(u=s),u>=0){var d=0===u?b.tabbableGroups.length-1:u-1,f=b.tabbableGroups[d];a=(0,n.getTabIndex)(t)>=0?f.lastTabbableNode:f.lastDomTabbableNode}else c(r)||(a=l.nextTabbableNode(t,!1))}else{var h=b.tabbableGroups.findIndex(function(e){var r=e.lastTabbableNode;return t===r});if(h<0&&(l.container===t||(0,n.isFocusable)(t,v.tabbableOptions)&&!(0,n.isTabbable)(t,v.tabbableOptions)&&!l.nextTabbableNode(t))&&(h=s),h>=0){var p=h===b.tabbableGroups.length-1?0:h+1,g=b.tabbableGroups[p];a=(0,n.getTabIndex)(t)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else c(r)||(a=l.nextTabbableNode(t))}}else a=x("fallbackFocus");return a},A=function(e){if(!(_(m(e),e)>=0)){if(p(v.clickOutsideDeactivates,e)){r.deactivate({returnFocus:v.returnFocusOnDeactivate});return}p(v.allowOutsideClick,e)||e.preventDefault()}},P=function(e){var t=m(e),r=_(t,e)>=0;if(r||t instanceof Document)r&&(b.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var i,o=!0;if(b.mostRecentlyFocusedNode){if((0,n.getTabIndex)(b.mostRecentlyFocusedNode)>0){var a=_(b.mostRecentlyFocusedNode),s=b.containerGroups[a].tabbableNodes;if(s.length>0){var l=s.findIndex(function(e){return e===b.mostRecentlyFocusedNode});l>=0&&(v.isKeyForward(b.recentNavEvent)?l+1<s.length&&(i=s[l+1],o=!1):l-1>=0&&(i=s[l-1],o=!1))}}else b.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return(0,n.getTabIndex)(e)>0})})||(o=!1)}else o=!1;o&&(i=k({target:b.mostRecentlyFocusedNode,isBackward:v.isKeyBackward(b.recentNavEvent)})),i?S(i):S(b.mostRecentlyFocusedNode||E())}b.recentNavEvent=void 0},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b.recentNavEvent=e;var r=k({event:e,isBackward:t});r&&(c(e)&&e.preventDefault(),S(r))},R=function(e){(v.isKeyForward(e)||v.isKeyBackward(e))&&j(e,v.isKeyBackward(e))},M=function(e){((null==e?void 0:e.key)==="Escape"||(null==e?void 0:e.key)==="Esc"||(null==e?void 0:e.keyCode)===27)&&!1!==p(v.escapeDeactivates,e)&&(e.preventDefault(),r.deactivate())},D=function(e){_(m(e),e)>=0||p(v.clickOutsideDeactivates,e)||p(v.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},I=function(){if(b.active)return u.activateTrap(y,r),b.delayInitialFocusTimer=v.delayInitialFocus?h(function(){S(E())}):S(E()),a.addEventListener("focusin",P,!0),a.addEventListener("mousedown",A,{capture:!0,passive:!1}),a.addEventListener("touchstart",A,{capture:!0,passive:!1}),a.addEventListener("click",D,{capture:!0,passive:!1}),a.addEventListener("keydown",R,{capture:!0,passive:!1}),a.addEventListener("keydown",M),r},L=function(e){b.active&&!b.paused&&r._setSubtreeIsolation(!1),b.adjacentElements.clear(),b.alreadySilent.clear();var t,n=new Set,i=new Set,a=o(e);try{for(a.s();!(t=a.n()).done;){var s=t.value;n.add(s);for(var l="undefined"!=typeof ShadowRoot&&s.getRootNode() instanceof ShadowRoot,u=s;u;){n.add(u);var c=u.parentElement,d=[];c?d=c.children:!c&&l&&(d=u.getRootNode().children,c=u.getRootNode().host,l="undefined"!=typeof ShadowRoot&&c.getRootNode() instanceof ShadowRoot);var f,h=o(d);try{for(h.s();!(f=h.n()).done;){var p=f.value;i.add(p)}}catch(e){h.e(e)}finally{h.f()}u=c}}}catch(e){a.e(e)}finally{a.f()}n.forEach(function(e){i.delete(e)}),b.adjacentElements=i},N=function(){if(b.active)return a.removeEventListener("focusin",P,!0),a.removeEventListener("mousedown",A,!0),a.removeEventListener("touchstart",A,!0),a.removeEventListener("click",D,!0),a.removeEventListener("keydown",R,!0),a.removeEventListener("keydown",M),r},U="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes
2).some(function(e){return e===b.mostRecentlyFocusedNode})})&&S(E())}):void 0,F=function(){U&&(U.disconnect(),b.active&&!b.paused&&b.containers.map(function(e){U.observe(e,{subtree:!0,childList:!0})}))};return Object.defineProperties(r={get active(){return b.active},get paused(){return b.paused},activate:function(e){if(b.active)return this;var t,n,i=w(e,"onActivate"),o=w(e,"onPostActivate"),s=w(e,"checkCanFocusTrap"),l=u.getActiveTrap(y),c=!1;l&&!l.paused&&(null===(t=l._setSubtreeIsolation)||void 0===t||t.call(l,!1),c=!0);try{s||C(),b.active=!0,b.paused=!1,b.nodeFocusedBeforeActivation=O(a),null==i||i();var d=function(){s&&C(),I(),F(),v.isolateSubtrees&&r._setSubtreeIsolation(!0),null==o||o()};if(s)return s(b.containers.concat()).then(d,d),this;d()}catch(e){throw l===u.getActiveTrap(y)&&c&&(null===(n=l._setSubtreeIsolation)||void 0===n||n.call(l,!0)),e}return this},deactivate:function(e){if(!b.active)return this;var t=s({onDeactivate:v.onDeactivate,onPostDeactivate:v.onPostDeactivate,checkCanReturnFocus:v.checkCanReturnFocus},e);clearTimeout(b.delayInitialFocusTimer),b.delayInitialFocusTimer=void 0,b.paused||r._setSubtreeIsolation(!1),b.alreadySilent.clear(),N(),b.active=!1,b.paused=!1,F(),u.deactivateTrap(y,r);var n=w(t,"onDeactivate"),i=w(t,"onPostDeactivate"),o=w(t,"checkCanReturnFocus"),a=w(t,"returnFocus","returnFocusOnDeactivate");null==n||n();var l=function(){h(function(){a&&S(T(b.nodeFocusedBeforeActivation)),null==i||i()})};return a&&o?o(T(b.nodeFocusedBeforeActivation)).then(l,l):l(),this},pause:function(e){return b.active?(b.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return b.active?(b.manuallyPaused=!1,y[y.length-1]!==this)?this:this._setPausedState(!1,e):this}
2,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return b.containers=t.map(function(e){return"string"==typeof e?a.querySelector(e):e}),v.isolateSubtrees&&L(b.containers),b.active&&(C(),v.isolateSubtrees&&!b.paused&&r._setSubtreeIsolation(!0)),F(),this}},{_isManuallyPaused:{value:function(){return b.manuallyPaused}},_setPausedState:{value:function(e,t){if(b.paused===e)return this;if(b.paused=e,e){var n=w(t,"onPause"),i=w(t,"onPostPause");null==n||n(),N(),F(),r._setSubtreeIsolation(!1),null==i||i()}else{var o=w(t,"onUnpause"),a=w(t,"onPostUnpause");null==o||o(),r._setSubtreeIsolation(!0),C(),I(),F(),null==a||a()}return this}},_setSubtreeIsolation:{value:function(e){v.isolateSubtrees&&b.adjacentElements.forEach(function(t){var r;e?"aria-hidden"===v.isolateSubtrees?(("true"===t.ariaHidden||(null===(r=t.getAttribute("aria-hidden"))||void 0===r?void 0:r.toLowerCase())==="true")&&b.alreadySilent.add(t),t.setAttribute("aria-hidden","true")):((t.inert||t.hasAttribute("inert"))&&b.alreadySilent.add(t),t.setAttribute("inert",!0)):b.alreadySilent.has(t)||("aria-hidden"===v.isolateSubtrees?t.removeAttribute("aria-hidden"):t.removeAttribute("inert"))})}}}),r.updateContainerElements(e),r}},35202:function(){!function(){"use strict";function e(e){var t=!0,r=!1,n=null,i={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function o(e){return!!e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.nodeName&&"classList"in e&&"contains"in e.classList}function a(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function s(e){t=!1}function l(){document.addEventListener("mousemove",u),document.addEventListener("mousedown",u),document.addEventListener("mouseup",u),document.addEventListener("pointermove",u),document.addEventListener("pointerdown",u),document.addEventListener("pointerup",u),document.addEventListener("touchmove",u),document.addEventListener("touchstart",u),document.addEventListener("touchend",u)}function u(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(t=!1,document.removeEventListener("mousemove",u),document.removeEventListener("mousedown",u),document.removeEventListener("mouseup",u),document.removeEventListener("pointermove",u),document.removeEventListener("pointerdown",u),document.removeEventListener("pointerup",u),document.removeEventListener("touchmove",u),document.removeEventListener("touchstart",u),document.removeEventListener("touchend",u))}document.addEventListener("keydown",function(r){r.metaKey||r.altKey||r.ctrlKey||(o(e.activeElement)&&a(e.activeElement),t=!0)},!0),document.addEventListener("mousedown",s,!0),document.addEventListener("pointerdown",s,!0),document.addEventListener("touchstart",s,!0),document.addEventListener("visibilitychange",function(e){"hidden"===document.visibilityState&&(r&&(t=!0),l())},!0),l(),e.addEventListener("focus",function(e){var r,n,s;o(e.target)&&(t||(n=(r=e.target).type,"INPUT"===(s=r.tagName)&&i[n]&&!r.readOnly||"TEXTAREA"===s&&!r.readOnly||r.isContentEditable))&&a(e.target)},!0),e.addEventListener("blur",function(e){if(o(e.target)){var t;(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(r=!0,window.clearTimeout(n),n=window.setTimeout(function(){r=!1},100),(t=e.target).hasAttribute("data-focus-visible-added")&&(t.classList.remove("focus-visible"),t.removeAttribute("data-focus-visible-added")))}},!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var t;window.applyFocusVisiblePolyfill=e;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(e){(t=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}"undefined"!=typeof document&&e(document)}()},39664:function(e,t){var r,n,i,o,a,s,l,u,c,d,f,h,p,m,g,y,v,b,w;c=function(){return"undefined"!=typeof window},d=function(){return r||c()&&(r=window.gsap)&&r.registerPlugin&&r},f=function(e){return"string"==typeof e},h=function(e){return"function"==typeof e},p=function(e,t){var r="x"===t?"Width":"Height",n="scroll"+r,s="client"+r;return e===i||e===o||e===a?Math.max(o[n],a[n])-(i["inner"+r]||o[s]||a[s]):e[n]-e["offset"+r]},m=function(e,t){var r="scroll"+("x"===t?"Left":"Top");return e===i&&(null!=e.pageXOffset?r="page"+t.toUpperCase()+"Offset":e=null!=o[r]?o:a),function(){return e[r]}},g=function(e,t,r,n){if(h(e)&&(e=e(t,r,n)),"object"!=typeof e)return f(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};
2if(e.nodeType)return{y:e,x:e};var i,o={};for(i in e)o[i]="onAutoKill"!==i&&h(e[i])?e[i](t,r,n):e[i];return o},y=function(e,t){if(!(e=s(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var r=e.getBoundingClientRect(),n=!t||t===i||t===a,l=n?{top:o.clientTop-(i.pageYOffset||o.scrollTop||a.scrollTop||0),left:o.clientLeft-(i.pageXOffset||o.scrollLeft||a.scrollLeft||0)}:t.getBoundingClientRect(),u={x:r.left-l.left,y:r.top-l.top};return!n&&t&&(u.x+=m(t,"x")(),u.y+=m(t,"y")()),u},v=function(e,t,r,n,i){return isNaN(e)||"object"==typeof e?f(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+n-i:"max"===e?p(t,r)-i:Math.min(p(t,r),y(e,t)[r]-i):parseFloat(e)-i},b=function(){r=d(),c()&&r&&"undefined"!=typeof document&&document.body&&(i=window,a=document.body,o=document.documentElement,s=r.utils.toArray,r.config({autoKillThreshold:7}),l=r.config(),n=1)},(w={version:"3.15.0",name:"scrollTo",rawVars:1,register:function(e){r=e,b()},init:function(e,t,o,a,s){n||b();var c=r.getProperty(e,"scrollSnapType");this.isWin=e===i,this.target=e,this.tween=o,t=g(t,a,e,s),this.vars=t,this.autoKill=!!("autoKill"in t?t:l).autoKill,this.getX=m(e,"x"),this.getY=m(e,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),u||(u=r.core.globals().ScrollTrigger),"smooth"===r.getProperty(e,"scrollBehavior")&&r.set(e,{scrollBehavior:"auto"}),c&&"none"!==c&&(this.snap=1,this.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=t.x?(this.add(this,"x",this.x,v(t.x,e,"x",this.x,t.offsetX||0),a,s),this._props.push("scrollTo_x")):this.skipX=1,null!=t.y?(this.add(this,"y",this.y,v(t.y,e,"y",this.y,t.offsetY||0),a,s),this._props.push("scrollTo_y")):this.skipY=1},render:function(e,t){for(var r,n,o,a,s,c=t._pt,d=t.target,f=t.tween,h=t.autoKill,m=t.xPrev,g=t.yPrev,y=t.isWin,v=t.snap,b=t.snapInline;c;)c.r(e,c.d),c=c._next;r=y||!t.skipX?t.getX():m,o=(n=y||!t.skipY?t.getY():g)-g,a=r-m,s=l.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),h&&(!t.skipX&&(a>s||a<-s)&&r<p(d,"x")&&(t.skipX=1),!t.skipY&&(o>s||o<-s)&&n<p(d,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(f.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(f,t.vars.onAutoKillParams||[]))),y?i.scrollTo(t.skipX?r:t.x,t.skipY?n:t.y):(t.skipY||(d.scrollTop=t.y),t.skipX||(d.scrollLeft=t.x)),v&&(1===e||0===e)&&(n=d.scrollTop,r=d.scrollLeft,b?d.style.scrollSnapType=b:d.style.removeProperty("scroll-snap-type"),d.scrollTop=n+1,d.scrollLeft=r+1,d.scrollTop=n,d.scrollLeft=r),t.xPrev=t.x,t.yPrev=t.y,u&&u.update()},kill:function(e){var t="scrollTo"===e,r=this._props.indexOf(e);return(t||"scrollTo_x"===e)&&(this.skipX=1),(t||"scrollTo_y"===e)&&(this.skipY=1),r>-1&&this._props.splice(r,1),!this._props.length}}).max=p,w.getOffset=y,w.buildGetter=m,w.config=function(e){for(var t in l||b()||(l=r.config()),e)l[t]=e[t]},d()&&r.registerPlugin(w),t.ScrollToPlugin=w,t.default=w,Object.defineProperty(t,"__esModule",{value:!0})},26038:function(e,t,r){"use strict";function n(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}r.d(t,{p8:function(){return nF}});var o,a,s,l,u,c,d,f,h,p,m,g,y,v,b,w,_,x,E,C,O,S,T,k,A,P,j,R,M,D,I={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},L={duration:.5,overwrite:!1,delay:0},N=2*Math.PI,U=N/4,F=0,z=Math.sqrt,$=Math.cos,B=Math.sin,V=function(e){return"string"==typeof e},q=function(e){return"function"==typeof e},W=function(e){return"number"==typeof e},H=function(e){return void 0===e},Y=function(e){return"object"==typeof e},Z=function(e){return!1!==e},G=function(){return"undefined"!=typeof window},K=function(e){return q(e)||V(e)},X="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},J=Array.isArray,Q=/random\([^)]+\)/g,ee=/,\s*/g,et=/(?:-?\.?\d|\.)+/gi,er=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,en=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ei=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,eo=/[+-]=-?[.\d]+/,ea=/[^,'"\[\]\s]+/gi,es=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,el={},eu={},ec=function(e){return(eu=ez(e,el))&&rj},ed=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},ef=function(e,t){return!t&&console.warn(e)},eh=function(e,t){return e&&(el[e]=t)&&eu&&(eu[e]=t)||el},ep=function(){return 0},em={suppressEvents:!0,isStart:!0,kill:!1},eg={suppressEvents:!0,kill:!1},ey={suppressEvents:!0},ev={},eb=[],ew={},e_={},ex={},eE=30,eC=[],eO="",eS=function(e){var t,r,n=e[0];if(Y(n)||q(n)||(e=[e]),!(t=(n._gsap||{}).harness)){for(r=eC.length;r--&&!eC[r].targetTest(n););t=eC[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new tY(e[r],t)))||e.splice(r,1);return e},eT=function(e){return e._gsap||eS(tc(e))[0]._gsap},ek=function(e,t,r){return(r=e[t])&&q(r)?e[t]():H(r)&&e.getAttribute&&e.getAttribute(t)||r}
2,eA=function(e,t){return(e=e.split(",")).forEach(t)||e},eP=function(e){return Math.round(1e5*e)/1e5||0},ej=function(e){return Math.round(1e7*e)/1e7||0},eR=function(e,t){var r=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),"+"===r?e+n:"-"===r?e-n:"*"===r?e*n:e/n},eM=function(e,t){for(var r=t.length,n=0;0>e.indexOf(t[n])&&++n<r;);return n<r},eD=function(){var e,t,r=eb.length,n=eb.slice(0);for(e=0,ew={},eb.length=0;e<r;e++)(t=n[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},eI=function(e){return!!(e._initted||e._startAt||e.add)},eL=function(e,t,r,n){eb.length&&!O&&eD(),e.render(t,r,n||!!(O&&t<0&&eI(e))),eb.length&&!O&&eD()},eN=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(ea).length<2?t:V(e)?e.trim():e},eU=function(e){return e},eF=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},ez=function(e,t){for(var r in t)e[r]=t[r];return e},e$=function e(t,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(t[n]=Y(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},eB=function(e,t){var r,n={};for(r in e)r in t||(n[r]=e[r]);return n},eV=function(e){var t,r=e.parent||T,n=e.keyframes?(t=J(e.keyframes),function(e,r){for(var n in r)n in e||"duration"===n&&t||"ease"===n||(e[n]=r[n])}):eF;if(Z(e.inherit))for(;r;)n(e,r.vars.defaults),r=r.parent||r._dp;return e},eq=function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0},eW=function(e,t,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var o,a=e[n];if(i)for(o=t[i];a&&a[i]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=a,t.parent=t._dp=e,t},eH=function(e,t,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=t._prev,o=t._next;i?i._next=o:e[r]===t&&(e[r]=o),o?o._prev=i:e[n]===t&&(e[n]=i),t._next=t._prev=t.parent=null},eY=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},eZ=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},eG=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},eK=function(e,t,r,n){return e._startAt&&(O?e._startAt.revert(eg):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},eX=function(e){return e._repeat?eJ(e._tTime,e=e.duration()+e._rDelay)*e:0},eJ=function(e,t){var r=Math.floor(e=ej(e/t));return e&&r===e?r-1:r},eQ=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},e0=function(e){return e._end=ej(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},e1=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=ej(r._time-(e._ts>0?t/e._ts:-(((e._dirty?e.totalDuration():e._tDur)-t)/e._ts))),e0(e),r._dirty||eZ(r,e)),e},e2=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=eQ(e.rawTime(),t),(!t._dur||ta(0,t.totalDuration(),r)-t._tTime>1e-8)&&t.render(r,!0)),eZ(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-.00000001}},e5=function(e,t,r,n){return t.parent&&eY(t),t._start=ej((W(r)?r:r||e!==T?tn(e,r,t):e._time)+t._delay),t._end=ej(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),eW(e,t,"_first","_last",e._sort?"_start":0),e8(t)||(e._recent=t),n||e2(e,t),e._ts<0&&e1(e,e._tTime),e},e3=function(e,t){return(el.ScrollTrigger||ed("scrollTrigger",t))&&el.ScrollTrigger.create(t,e)},e4=function(e,t,r,n,i){return(t6(e,t,i),e._initted)?!r&&e._pt&&!O&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&R!==tM.frame?(eb.push(e),e._lazy=[i,n],1):void 0:1},e6=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(0>r.rawTime()||e(r))},e8=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},e9=function(e,t,r,n){var i,o,a,s=e.ratio,l=t<0||!t&&(!e._start&&e6(e)&&!(!e._initted&&e8(e))||(e._ts<0||e._dp._ts<0)&&!e8(e))?0:1,u=e._rDelay,c=0;if(u&&e._repeat&&(o=eJ(c=ta(0,e._tDur,t),u),e._yoyo&&1&o&&(l=1-l),o!==eJ(e._tTime,u)&&(s=1-l,e.vars.repeatRefresh&&e._initted&&e.invali
2date())),l!==s||O||n||1e-8===e._zTime||!t&&e._zTime){if(!e._initted&&e4(e,t,n,r,c))return;for(a=e._zTime,e._zTime=t||(r?1e-8:0),r||(r=t&&!a),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=c,i=e._pt;i;)i.r(l,i.d),i=i._next;t<0&&eK(e,t,r,!0),e._onUpdate&&!r&&t_(e,"onUpdate"),c&&e._repeat&&!r&&e.parent&&t_(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&eY(e,1),r||O||(t_(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},e7=function(e,t,r){var n;if(r>t)for(n=e._first;n&&n._start<=r;){if("isPause"===n.data&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=r;){if("isPause"===n.data&&n._start<t)return n;n=n._prev}},te=function(e,t,r,n){var i=e._repeat,o=ej(t)||0,a=e._tTime/e._tDur;return a&&!n&&(e._time*=o/e._dur),e._dur=o,e._tDur=i?i<0?1e10:ej(o*(i+1)+e._rDelay*i):o,a>0&&!n&&e1(e,e._tTime=e._tDur*a),e.parent&&e0(e),r||eZ(e.parent,e),e},tt=function(e){return e instanceof tG?eZ(e):te(e,e._dur)},tr={_start:0,endTime:ep,totalDuration:ep},tn=function e(t,r,n){var i,o,a,s=t.labels,l=t._recent||tr,u=t.duration()>=1e8?l.endTime(!1):t._dur;return V(r)&&(isNaN(r)||r in s)?(o=r.charAt(0),a="%"===r.substr(-1),i=r.indexOf("="),"<"===o||">"===o)?(i>=0&&(r=r.replace(/=/,"")),("<"===o?l._start:l.endTime(l._repeat>=0))+(parseFloat(r.substr(1))||0)*(a?(i<0?l:n).totalDuration()/100:1)):i<0?(r in s||(s[r]=u),s[r]):(o=parseFloat(r.charAt(i-1)+r.substr(i+1)),a&&n&&(o=o/100*(J(n)?n[0]:n).totalDuration()),i>1?e(t,r.substr(0,i-1),n)+o:u+o):null==r?u:+r},ti=function(e,t,r){var n,i,o=W(t[1]),a=(o?2:1)+(e<2?0:1),s=t[a];if(o&&(s.duration=t[1]),s.parent=r,e){for(n=s,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=Z(i.vars.inherit)&&i.parent;s.immediateRender=Z(n.immediateRender),e<2?s.runBackwards=1:s.startAt=t[a-1]}return new rn(t[0],s,t[a+1])},to=function(e,t){return e||0===e?t(e):t},ta=function(e,t,r){return r<e?e:r>t?t:r},ts=function(e,t){return V(e)&&(t=es.exec(e))?t[1]:""},tl=[].slice,tu=function(e,t){return e&&Y(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Y(e[0]))&&!e.nodeType&&e!==k},tc=function(e,t,r){var n;return S&&!t&&S.selector?S.selector(e):V(e)&&!r&&(A||!tD())?tl.call((t||P).querySelectorAll(e),0):J(e)?(void 0===n&&(n=[]),e.forEach(function(e){var t;return V(e)&&!r||tu(e,1)?(t=n).push.apply(t,tc(e)):n.push(e)})||n):tu(e)?tl.call(e,0):e?[e]:[]},td=function(e){return e=tc(e)[0]||ef("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return tc(t,r.querySelectorAll?r:r===e?ef("Invalid scope")||P.createElement("div"):e)}},tf=function(e){return e.sort(function(){return .5-Math.random()})},th=function(e){if(q(e))return e;var t=Y(e)?e:{each:e},r=tB(t.ease),n=t.from||0,i=parseFloat(t.base)||0,o={},a=n>0&&n<1,s=isNaN(n)||a,l=t.axis,u=n,c=n;return V(n)?u=c=({center:.5,edges:.5,end:1})[n]||0:!a&&s&&(u=n[0],c=n[1]),function(e,a,d){var f,h,p,m,g,y,v,b,w,_=(d||t).length,x=o[_];if(!x){if(!(w="auto"===t.grid?0:(t.grid||[1,1e8])[1])){for(v=-1e8;v<(v=d[w++].getBoundingClientRect().left)&&w<_;);w<_&&w--}for(y=0,x=o[_]=[],f=s?Math.min(w,_)*u-.5:n%w,h=1e8===w?0:s?_*c/w-.5:n/w|0,v=0,b=1e8;y<_;y++)p=y%w-f,m=h-(y/w|0),x[y]=g=l?Math.abs("y"===l?m:p):z(p*p+m*m),g>v&&(v=g),g<b&&(b=g);"random"===n&&tf(x),x.max=v-b,x.min=b,x.v=_=(parseFloat(t.amount)||parseFloat(t.each)*(w>_?_-1:l?"y"===l?_/w:w:Math.max(w,_/w))||0)*("edges"===n?-1:1),x.b=_<0?i-_:i,x.u=ts(t.amount||t.each)||0,r=r&&_<0?t$(r):r}return _=(x[e]-x.min)/x.max||0,ej(x.b+(r?r(_):_)*x.v)+x.u}},tp=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var n=ej(Math.round(parseFloat(r)/e)*e*t);return(n-n%1)/t+(W(r)?0:ts(r))}},tm=function(e,t){var r,n,i=J(e);return!i&&Y(e)&&(r=i=e.radius||1e8,e.values?(n=!W((e=tc(e.values))[0]))&&(r*=r):e=tp(e.increment)),to(t,i?q(e)?function(t){return Math.abs((n=e(t))-t)<=r?n:t}:function(t){for(var i,o,a=parseFloat(n?t.x:t),s=parseFloat(n?t.y:0),l=1e8,u=0,c=e.length;c--;)(i=n?(i=e[c].x-a)*i+(o=e[c].y-s)*o:Math.abs(e[c]-a))<l&&(l=i,u=c);return u=!r||l<=r?e[u]:t,n||u===t||W(t)?u:u+ts(t)}:tp(e))},tg=function(e,t,r,n){return to(J(e)?!t:!0===r?(r=0,!1):!n,function(){return J(e)?e[~~(Math.random()*e.length)]:(n=(r=r||1e-5)<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+.99*r))/r)*r*n)/n})},ty=function(e,t,r){return to(r,function(r){return e[~~t(r)]})},tv=function(e){return e.replace(Q,function(e){var t=e.indexOf("[")+1,r=e.substring(t||7,t?e.indexOf("]"):e.length-1).split(ee);return tg(t?r:+r[0],t?0:+r[1],+r[2]||1e-5)})},tb=function(e,t,r,n,i){var o=t-e,a=n-r;return to(i,function(t){return r+((t-e)/o*a||0)})},tw=function(e,t,r){var n,i,o,a=e.labels,s=1e8;for(n in a)(i=a[n]-t)<0==!!r&&i&&s>(i=Math.abs(i))&&(o=n,s=i);return o},t_=function(e,t,r){var n,i,o,a=e.vars,s=a[t],l=S,u=e._ctx;if(s)return n=a[t+"Params"],i=a.callbackScope||e,r&&eb.length&&eD(),u&&(S=u),o=n?s.apply(i,n):s.call(i),S=l,o},tx=function(e){return eY(e),e.scrollTrigger&&e.scrollTrigger.kill(!!O),1>e.progress()&&t_(e,"onInterrupt"),e},tE=[],tC=function(e){if(e){if(e=!e.name&&e.default||e,G()||e.headless){var t=e.name,r=q(e),n=t&&!r&&e.init?function(){this._props=[]}:e,i={init:ep,render:rf,add:t5,kill:rp,modifier:rh,rawVars:0},o={targetTest:0,get:0,getSetter:rl,aliases:{},register:0};if(tD(),e!==n){if(e_[t])return;eF(n,eF(eB(e,i),o)),ez(n.prototype,ez(i,eB(e,o))),e_[n.prop=t]=n,e.targetTest&&(eC.push(n),ev[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}eh(t,n),e.register&&e.register(rj,n,ry)}else tE.push(e)}},tO={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},tS=function(e,t,r){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(r-t)*e*6:e<.5?r:3*e<2?t+(r-t)*(2/3-e)*6:t)*255+.5|0},tT=function(e,t,r){var n,i,o,a,s,l,u,c,d,f,h=e?W(e)?[e>>16,e>>8&255,255&e]:0:tO.black;
2if(!h){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),tO[e])h=tO[e];else if("#"===e.charAt(0)){if(e.length<6&&(e="#"+(n=e.charAt(1))+n+(i=e.charAt(2))+i+(o=e.charAt(3))+o+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(h=parseInt(e.substr(1,6),16))>>16,h>>8&255,255&h,parseInt(e.substr(7),16)/255];h=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]}else if("hsl"===e.substr(0,3)){if(h=f=e.match(et),t){if(~e.indexOf("="))return h=e.match(er),r&&h.length<4&&(h[3]=1),h}else a=+h[0]%360/360,s=+h[1]/100,i=(l=+h[2]/100)<=.5?l*(s+1):l+s-l*s,n=2*l-i,h.length>3&&(h[3]*=1),h[0]=tS(a+1/3,n,i),h[1]=tS(a,n,i),h[2]=tS(a-1/3,n,i)}else h=e.match(et)||tO.transparent;h=h.map(Number)}return t&&!f&&(l=((u=Math.max(n=h[0]/255,i=h[1]/255,o=h[2]/255))+(c=Math.min(n,i,o)))/2,u===c?a=s=0:(d=u-c,s=l>.5?d/(2-u-c):d/(u+c),a=(u===n?(i-o)/d+(i<o?6:0):u===i?(o-n)/d+2:(n-i)/d+4)*60),h[0]=~~(a+.5),h[1]=~~(100*s+.5),h[2]=~~(100*l+.5)),r&&h.length<4&&(h[3]=1),h},tk=function(e){var t=[],r=[],n=-1;return e.split(tP).forEach(function(e){var i=e.match(en)||[];t.push.apply(t,i),r.push(n+=i.length+1)}),t.c=r,t},tA=function(e,t,r){var n,i,o,a,s="",l=(e+s).match(tP),u=t?"hsla(":"rgba(",c=0;if(!l)return e;if(l=l.map(function(e){return(e=tT(e,t,1))&&u+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),r&&(o=tk(e),(n=r.c).join(s)!==o.c.join(s)))for(a=(i=e.replace(tP,"1").split(en)).length-1;c<a;c++)s+=i[c]+(~n.indexOf(c)?l.shift()||u+"0,0,0,0)":(o.length?o:l.length?l:r).shift());if(!i)for(a=(i=e.split(tP)).length-1;c<a;c++)s+=i[c]+l[c];return s+i[a]},tP=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in tO)t+="|"+e+"\\b";return RegExp(t+")","gi")}(),tj=/hsl[a]?\(/,tR=function(e){var t,r=e.join(" ");if(tP.lastIndex=0,tP.test(r))return t=tj.test(r),e[1]=tA(e[1],t),e[0]=tA(e[0],t,tk(e[1])),!0},tM=(m=Date.now,g=500,y=33,b=v=m(),w=1e3/240,_=1e3/240,x=[],E=function e(t){var r,n,i,o,a=m()-b,s=!0===t;if((a>g||a<0)&&(v+=a-y),b+=a,((r=(i=b-v)-_)>0||s)&&(o=++f.frame,h=i-1e3*f.time,f.time=i/=1e3,_+=r+(r>=w?4:w-r),n=1),s||(u=c(e)),n)for(p=0;p<x.length;p++)x[p](i,h,o,t)},f={time:0,frame:0,tick:function(){E(!0)},deltaRatio:function(e){return h/(1e3/(e||60))},wake:function(){j&&(!A&&G()&&(P=(k=A=window).document||{},el.gsap=rj,(k.gsapVersions||(k.gsapVersions=[])).push(rj.version),ec(eu||k.GreenSockGlobals||!k.gsap&&k||{}),tE.forEach(tC)),d="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,u&&f.sleep(),c=d||function(e){return setTimeout(e,_-1e3*f.time+1|0)},D=1,E(2))},sleep:function(){(d?cancelAnimationFrame:clearTimeout)(u),D=0,c=ep},lagSmoothing:function(e,t){y=Math.min(t||33,g=e||1/0)},fps:function(e){w=1e3/(e||240),_=1e3*f.time+w},add:function(e,t,r){var n=t?function(t,r,i,o){e(t,r,i,o),f.remove(n)}:e;return f.remove(e),x[r?"unshift":"push"](n),tD(),n},remove:function(e,t){~(t=x.indexOf(e))&&x.splice(t,1)&&p>=t&&p--},_listeners:x}),tD=function(){return!D&&tM.wake()},tI={},tL=/^[\d.\-M][\d.\-,\s]/,tN=/["']/g,tU=function(e){for(var t,r,n,i={},o=e.substr(1,e.length-3).split(":"),a=o[0],s=1,l=o.length;s<l;s++)r=o[s],t=s!==l-1?r.lastIndexOf(","):r.length,n=r.substr(0,t),i[a]=isNaN(n)?n.replace(tN,"").trim():+n,a=r.substr(t+1).trim();return i},tF=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n<r?e.indexOf(")",r+1):r)},tz=function(e){var t=(e+"").split("("),r=tI[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[tU(t[1])]:tF(e).split(",").map(eN)):tI._CE&&tL.test(e)?tI._CE("",e):r},t$=function(e){return function(t){return 1-e(1-t)}},tB=function(e,t){return e&&(q(e)?e:tI[e]||tz(e))||t},tV=function(e,t,r,n){void 0===r&&(r=function(e){return 1-t(1-e)}),void 0===n&&(n=function(e){return e<.5?t(2*e)/2:1-t((1-e)*2)/2});var i,o={easeIn:t,easeOut:r,easeInOut:n};return eA(e,function(e){for(var t in tI[e]=el[e]=o,tI[i=e.toLowerCase()]=r,o)tI[i+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=tI[e+"."+t]=o[t]}),o},tq=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e((t-.5)*2)/2}},tW=function e(t,r,n){var i=r>=1?r:1,o=(n||(t?.3:.45))/(r<1?r:1),a=o/N*(Math.asin(1/i)||0),s=function(e){return 1===e?1:i*Math.pow(2,-10*e)*B((e-a)*o)+1},l="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:tq(s);return o=N/o,l.config=function(r,n){return e(t,r,n)},l},tH=function e(t,r){void 0===r&&(r=1.70158);var n=function(e){return e?--e*e*((r+1)*e+r)+1:0},i="out"===t?n:"in"===t?function(e){return 1-n(1-e)}:tq(n);return i.config=function(r){return e(t,r)},i};eA("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;tV(e+",Power"+(r-1),t?function(e){return Math.pow(e,r)}:function(e){return e},function(e){return 1-Math.pow(1-e,r)},function(e){return e<.5?Math.pow(2*e,r)/2:1-Math.pow((1-e)*2,r)/2})}),tI.Linear.easeNone=tI.none=tI.Linear.easeIn,tV("Elastic",tW("in"),tW("out"),tW()),tX=2*(tK=1/2.75),tJ=2.5*tK,tV("Bounce",function(e){return 1-tQ(1-e)},tQ=function(e){return e<tK?7.5625*e*e:e<tX?7.5625*Math.pow(e-1.5/2.75,2)+.75:e<tJ?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*Math.pow(e-2.625/2.75,2)+.984375}),tV("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),tV("Circ",function(e){return-(z(1-e*e)-1)}),tV("Sine",function(e){return 1===e?1:-$(e*U)+1}),tV("Back",tH("in"),tH("out"),tH()),tI.SteppedEase=tI.steps=el.SteppedEase={config:function(e,t){void 0===e&&(e=1);var r=1/e,n=e+(t?0:1),i=t?1:0;return function(e){return((n*ta(0,.99999999,e)|0)+i)*r}}},L.ease=tI["quad.out"],eA("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return eO+=e+","+e+"Params,"});var tY=function(e,t){this.id=F++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:ek,this.set=t?t.getSetter:rl},tZ=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,te(this,+e.duration,1,1),this.data=e.data,S&&(this._ctx=S,S.data.push(this)),D||tM.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,te(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(tD(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(e1(this,e),!r._dp||r.parent||e2(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:-((r.totalDuration()-r._tTime)/r._ts))&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&e5(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&1e-8===Math.abs(this._zTime)||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),eL(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+eX(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(1&this.iteration())?1-e:e)+eX(this),t):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(e,t){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*r,t):this._repeat?eJ(this._tTime,r)+1:1},t.timeScale=function(e,t){if(!arguments.length)return -.00000001===this._rts?0:this._rts;if(this._rts===e)return this;var r=this.parent&&this._ts?eQ(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-.00000001===e?0:this._rts,this.totalTime(ta(-Math.abs(this._delay),this.totalDuration(),r),!1!==t),e0(this),eG(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(tD(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=ej(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&e5(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(Z(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&1>this.totalProgress())?this._tTime%(this._dur+this._rDelay):this._ts?eQ(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=ey);var t=O;return O=e,eI(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),O=t,this},t.globalTime=function(e){for(var t=this,r=arguments.length?e:t.rawTime();t;)r=t._start+r/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):r},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,tt(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,tt(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(tn(this,e),Z(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,Z(t)),this._dur||(this._zTime=-.00000001),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-.00000001:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-.00000001,this},t.isActive=function(){var e,t=this.parent||this._dp,r=this._start;return!!(!t||this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=r&&e<this.endTime(!0)-1e-8)},t.eventCallback=function(e,t,r){var n=this.vars;return arguments.length>
vendor: 4,115 bytes, line 2
21?(t?(n[e]=t,r&&(n[e+"Params"]=r),"onUpdate"===e&&(this._onUpdate=t)):delete n[e],this):n[e]},t.then=function(e){var t=this,r=t._prom;return new Promise(function(n){var i=q(e)?e:eU,o=function(){var e=t.then;t.then=null,r&&r(),q(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),n(i),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?o():t._prom=o})},t.kill=function(){tx(this)},e}();eF(tZ.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-.00000001,_prom:0,_ps:!1,_rts:1});var tG=function(e){function t(t,r){var i;return void 0===t&&(t={}),(i=e.call(this,t)||this).labels={},i.smoothChildTiming=!!t.smoothChildTiming,i.autoRemoveChildren=!!t.autoRemoveChildren,i._sort=Z(t.sortChildren),T&&e5(t.parent||T,n(i),r),t.reversed&&i.reverse(),t.paused&&i.paused(!0),t.scrollTrigger&&e3(n(i),t.scrollTrigger),i}i(t,e);var r=t.prototype;return r.to=function(e,t,r){return ti(0,arguments,this),this},r.from=function(e,t,r){return ti(1,arguments,this),this},r.fromTo=function(e,t,r,n){return ti(2,arguments,this),this},r.set=function(e,t,r){return t.duration=0,t.parent=this,eV(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new rn(e,t,tn(this,r),1),this},r.call=function(e,t,r){return e5(this,rn.delayedCall(0,e,t),r)},r.staggerTo=function(e,t,r,n,i,o,a){return r.duration=t,r.stagger=r.stagger||n,r.onComplete=o,r.onCompleteParams=a,r.parent=this,new rn(e,r,tn(this,i)),this},r.staggerFrom=function(e,t,r,n,i,o,a){return r.runBackwards=1,eV(r).immediateRender=Z(r.immediateRender),this.staggerTo(e,t,r,n,i,o,a)},r.staggerFromTo=function(e,t,r,n,i,o,a,s){return n.startAt=r,eV(n).immediateRender=Z(n.immediateRender),this.staggerTo(e,t,n,i,o,a,s)},r.render=function(e,t,r){var n,i,o,a,s,l,u,c,d,f,h,p,m=this._time,g=this._dirty?this.totalDuration():this._tDur,y=this._dur,v=e<=0?0:ej(e),b=this._zTime<0!=e<0&&(this._initted||!y);if(this!==T&&v>g&&e>=0&&(v=g),v!==this._tTime||r||b){if(m!==this._time&&y&&(v+=this._time-m,e+=this._time-m),n=v,d=this._start,l=!(c=this._ts),b&&(y||(m=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(h=this._yoyo,s=y+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*s+e,t,r);if(n=ej(v%s),v===g?(a=this._repeat,n=y):((a=~~(f=ej(v/s)))&&a===f&&(n=y,a--),n>y&&(n=y)),f=eJ(this._tTime,s),!m&&this._tTime&&f!==a&&this._tTime-f*s-this._dur<=0&&(f=a),h&&1&a&&(n=y-n,p=1),a!==f&&!this._lock){var w=h&&1&f,_=w===(h&&1&a);if(a<f&&(w=!w),m=w?0:v%y?y:v,this._lock=1,this.render(m||(p?0:ej(a*s)),t,!y)._lock=0,this._tTime=v,!t&&this.parent&&t_(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1,f=a),m&&m!==this._time||!this._ts!==l||this.vars.onRepeat&&!this.parent&&!this._act||(y=this._dur,g=this._tDur,_&&(this._lock=2,m=w?y:-.0001,this.render(m,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!l))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=e7(this,ej(m),ej(n)))&&(v-=n-(n=u._start)),this._tTime=v,this._time=n,this._act=!!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,m=0),!m&&v&&y&&!t&&!f&&(t_(this,"onStart"),this._tTime!==v))return this;if(n>=m&&e>=0)for(i=this._first;i;){if(o=i._next,(i._act||n>=i._start)&&i._ts&&u!==i){if(i.parent!==this)return this.render(e,t,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,t,r),n!==this._time||!this._ts&&!l){u=0,o&&(v+=this._zTime=-.00000001);break}}i=o}else{i=this._last;for(var x=e<0?e:n;i;){if(o=i._prev,(i._act||x<=i._end)&&i._ts&&u!==i){if(i.parent!==this)return this.render(e,t,r);if(i.render(i._ts>0?(x-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(x-i._start)*i._ts,t,r||O&&eI(i)),n!==this._time||!this._ts&&!l){u=0,o&&(v+=this._zTime=x?-.00000001:1e-8);break}}i=o}}if(u&&!t&&(this.pause(),u.render(n>=m?0:-.00000001)._zTime=n>=m?1:-1,this._ts))return this._start=d,e0(this),this.render(e,t,r);this._onUpdate&&!t&&t_(this,"onUpdate",!0),(v===g&&this._tTime>=this.totalDuration()||!v&&m)&&(d===this._start||Math.abs(c)!==Math.abs(this._ts
2))&&!this._lock&&((e||!y)&&(v===g&&this._ts>0||!v&&this._ts<0)&&eY(this,1),t||e<0&&!m||!v&&!m&&g||(t_(this,v===g&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v<g&&this.timeScale()>0)&&this._prom()))}return this},r.add=function(e,t){var r=this;if(W(t)||(t=tn(this,t,e)),!(e instanceof tZ)){if(J(e))return e.forEach(function(e){return r.add(e,t)}),this;if(V(e))return this.addLabel(e,t);if(!q(e))return this;e=rn.delayedCall(0,e)}return this!==e?e5(this,e,t):this},r.getChildren=function(e,t,r,n){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===r&&(r=!0),void 0===n&&(n=-1e8);for(var i=[],o=this._first;o;)o._start>=n&&(o instanceof rn?t&&i.push(o):(r&&i.push(o),e&&i.push.apply(i,o.getChildren(!0,t,r)))),o=o._next;return i},r.getById=function(e){for(var t=this.getChildren(1,1,1),r=t.length;r--;)if(t[r].vars.id===e)return t[r]},r.remove=function(e){return V(e)?this.removeLabel(e):q(e)?this.killTweensOf(e):(e.parent===this&&eH(this,e),e===this._recent&&(this._recent=this._last),eZ(this))},r.totalTime=function(t,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ej(tM.time-(this._ts>0?t/this._ts:-((this.totalDuration()-t)/this._ts)))),e.prototype.totalTime.call(this,t,r),this._forcing=0,this):this._tTime},r.addLabel=function(e,t){return this.labels[e]=tn(this,t),this},r.removeLabel=function(e){return delete this.labels[e],this},r.addPause=function(e,t,r){var n=rn.delayedCall(0,t||ep,r);return n.data="isPause",this._hasPause=1,e5(this,n,tn(this,e))},r.removePause=function(e){var t=this._first;for(e=tn(this,e);t;)t._start===e&&"isPause"===t.data&&eY(t),t=t._next},r.killTweensOf=function(e,t,r){for(var n=this.getTweensOf(e,r),i=n.length;i--;)t0!==n[i]&&n[i].kill(e,t);return this},r.getTweensOf=function(e,t){for(var r,n=[],i=tc(e),o=this._first,a=W(t);o;)o instanceof rn?eM(o._targets,i)&&(a?(!t0||o._initted&&o._ts)&&o.globalTime(0)<=t&&o.globalTime(o.totalDuration())>t:!t||o.isActive())&&n.push(o):(r=o.getTweensOf(i,t)).length&&n.push.apply(n,r),o=o._next;return n},r.tweenTo=function(e,t){t=t||{};var r,n=this,i=tn(n,e),o=t,a=o.startAt,s=o.onStart,l=o.onStartParams,u=o.immediateRender,c=rn.to(n,eF({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:t.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale())||1e-8,onStart:function(){if(n.pause(),!r){var e=t.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale());c._dur!==e&&te(c,e,0,1).render(c._time,!0,!0),r=1}s&&s.apply(c,l||[])}},t));return u?c.render(0):c},r.tweenFromTo=function(e,t,r){return this.tweenTo(t,eF({startAt:{time:tn(this,e)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(e){return void 0===e&&(e=this._time),tw(this,tn(this,e))},r.previousLabel=function(e){return void 0===e&&(e=this._time),tw(this,tn(this,e),1)},r.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},r.shiftChildren=function(e,t,r){void 0===r&&(r=0);var n,i=this._first,o=this.labels;for(e=ej(e);i;)i._start>=r&&(i._start+=e,i._end+=e),i=i._next;if(t)for(n in o)o[n]>=r&&(o[n]+=e);return eZ(this)},r.invalidate=function(t){var r=this._first;for(this._lock=0;r;)r.invalidate(t),r=r._next;return e.prototype.invalidate.call(this,t)},r.clear=function(e){void 0===e&&(e=!0);for(var t,r=this._first;r;)t=r._next,this.remove(r),r=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),eZ(this)},r.totalDuration=function(e){var t,r,n,i=0,o=this._last,a=1e8;if(arguments.length)return this.timeScale((this._repeat<0?this.duration():this.totalDuration())/(this.reversed()?-e:e));if(this._dirty){for(n=this.parent;o;)t=o._prev,o._dirty&&o.totalDuration(),(r=o._start)>a&&this._sort&&o._ts&&!this._lock?(this._lock=1,e5(this,o,r-o._delay,1)._lock=0):a=r,r<0&&o._ts&&(i-=r,(!n&&!this._dp||n&&n.smoothChildTiming)&&(this._start+=ej(r/this._ts),this._time-=r,this._tTime-=r),this.shiftChildren(-r,!1,-Infinity),a=0),o._end>i&&o._ts&&(i=o._end),o=t;te(this,this===T&&this._time>i?this._time:i,1,1),this._dirty=0}return this._tDur},t.updateRoot=function(e){if(T._ts&&(eL(T,eQ(e,T)),R=tM.frame),tM.frame>=eE){eE+=I.autoSleep||120;var t=T._first;if((!t||!t._ts)&&I.autoSleep&&tM._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||tM.sleep()}}},t}(tZ);eF(tG.prototype,{_lock:0,_hasPause:0,_forcing:0});var tK,tX,tJ,tQ,t0,t1,t2=function(e,t,r,n,i,o,a){var s,l,u,c,d,f,h,p,m=new ry(this._pt,e,t,0,1,rd,null,i),g=0,y=0;for(m.b=r,m.e=n,r+="",n+="",(h=~n.indexOf("random("))&&(n=tv(n)),o&&(o(p=[r,n],e,t),r=p[0],n=p[1]),l=r.match(ei)||[];s=ei.exec(n);)c=s[0],d=n.substring(g,s.index),u?u=(u+1)%5:"rgba("===d.substr(-5)&&(u=1),c!==l[y++]&&(f=parseFloat(l[y-1])||0,m._pt={_next:m._pt,p:d||1===y?d:",",s:f,c:"="===c.charAt(1)?eR(f,c)-f:parseFloat(c)-f,m:u&&u<4?Math.round:0},g=ei.lastIndex);return m.c=g<n.length?n.substring(g,n.length):"",m.fp=a,(eo.test(n)||h)&&(m.e=0),this._pt=m,m},t5=function(e,t,r,n,i,o,a,s,l,u){q(n)&&(n=n(i||0,e,o));var c,d=e[t],f="get"!==r?r:q(d)?l?e[t.indexOf("set")||!q(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():d,h=q(d)?l?ra:ro:ri;if(V(n)&&(~n.indexOf("random(")&&(n=tv(n)),"="===n.charAt(1)&&((c=eR(f,n)+(ts(f)||0))||0===c)&&(n=c)),!u||f!==n||t1)return isNaN(f*n)||""===n?(d||t in e||ed(t,n),t2.call(this,e,t,f,n,h,s||I.stringFilter,l)):(c=new ry(this._pt,e,t,+f||0,n-(f||0),"boolean"==typeof d?rc:ru,0,h),l&&(c.fp=l),a&&c.modifier(a,this,e),this._pt=c)},t3=function(e,t,r,n,i){if(q(e)&&(e=re(e,i,t,r,n)),!Y(e)||e.style&&e.nodeType||J(e)||X(e))return V(e)?re(e,i,t,r,n):e;var o,a={};for(o in e)a[o]=re(e[o],i,t,r,n);return a},t4=function(e,t,r,n,i,o){var a,s,l,u;if(e_[e]&&!1!==(a=new e_[e]).init(i,a.rawVars?t[e]:t3(t[e],n,i,o,r),r,n,o)&&(r._pt=s=new ry(r._pt,i,e,0,1,a.render,a,0,a.priority),r!==M))for(l=r._ptLookup[r._targets.indexOf(i)],u=a._props.length;u--;)l[a._props[u]]=s;return a},t6=function e(t,r,n){var i,o,a,s,l,u,c,d,f,h,p,m,g,y=t.vars,v=y.ease,b=y.startAt,w=y.immediateRender,_=y.lazy,x=y.onUpdate,E=y.runBackwards,S=y.yoyoEase,k=y.keyframes,A=y.autoRevert,P=t._dur,j=t._startAt,R=t._targets,M=t.parent,D=M&&"nested"===M.data?M.vars.targets:R,I="auto"===t._overwrite&&!C,N=t.timeline,
vendor: 11,977 bytes, line 2
2U=y.easeReverse||S;if(!N||k&&v||(v="none"),t._ease=tB(v,L.ease),t._rEase=U&&(tB(U)||t._ease),t._from=!N&&!!y.runBackwards,t._from&&(t.ratio=1),!N||k&&!y.stagger){if(m=(d=R[0]?eT(R[0]).harness:0)&&y[d.prop],i=eB(y,ev),j&&(j._zTime<0&&j.progress(1),r<0&&E&&w&&!A?j.render(-1,!0):j.revert(E&&P?eg:em),j._lazy=0),b){if(eY(t._startAt=rn.set(R,eF({data:"isStart",overwrite:!1,parent:M,immediateRender:!0,lazy:!j&&Z(_),startAt:null,delay:0,onUpdate:x&&function(){return t_(t,"onUpdate")},stagger:0},b))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(O||!w&&!A)&&t._startAt.revert(eg),w&&P&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(E&&P&&!j){if(r&&(w=!1),a=eF({overwrite:!1,data:"isFromStart",lazy:w&&!j&&Z(_),immediateRender:w,stagger:0,parent:M},i),m&&(a[d.prop]=m),eY(t._startAt=rn.set(R,a)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(O?t._startAt.revert(eg):t._startAt.render(-1,!0)),t._zTime=r,w){if(!r)return}else e(t._startAt,1e-8,1e-8)}for(o=0,t._pt=t._ptCache=0,_=P&&Z(_)||_&&!P;o<R.length;o++){if(c=(l=R[o])._gsap||eS(R)[o]._gsap,t._ptLookup[o]=h={},ew[c.id]&&eb.length&&eD(),p=D===R?o:D.indexOf(l),d&&!1!==(f=new d).init(l,m||i,t,p,D)&&(t._pt=s=new ry(t._pt,l,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(e){h[e]=s}),f.priority&&(u=1)),!d||m)for(a in i)e_[a]&&(f=t4(a,i,t,p,l,D))?f.priority&&(u=1):h[a]=s=t5.call(t,l,a,"get",i[a],p,D,0,y.stringFilter);t._op&&t._op[o]&&t.kill(l,t._op[o]),I&&t._pt&&(t0=t,T.killTweensOf(l,h,t.globalTime(r)),g=!t.parent,t0=0),t._pt&&_&&(ew[c.id]=1)}u&&rg(t),t._onInit&&t._onInit(t)}t._onUpdate=x,t._initted=(!t._op||t._pt)&&!g,k&&r<=0&&N.render(1e8,!0,!0)},t8=function(e,t,r,n,i,o,a,s){var l,u,c,d,f=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!f)for(f=e._ptCache[t]=[],c=e._ptLookup,d=e._targets.length;d--;){if((l=c[d][t])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return t1=1,e.vars[t]="+=0",t6(e,a),t1=0,s?ef(t+" not eligible for reset. Try splitting into individual properties"):1;f.push(l)}for(d=f.length;d--;)(l=(u=f[d])._pt||u).s=(n||0===n)&&!i?n:l.s+(n||0)+o*l.c,l.c=r-l.s,u.e&&(u.e=eP(r)+ts(u.e)),u.b&&(u.b=l.s+ts(u.b))},t9=function(e,t){var r,n,i,o,a=e[0]?eT(e[0]).harness:0,s=a&&a.aliases;if(!s)return t;for(n in r=ez({},t),s)if(n in r)for(i=(o=s[n].split(",")).length;i--;)r[o[i]]=r[n];return r},t7=function(e,t,r,n){var i,o,a=t.ease||n||"power1.inOut";if(J(t))o=r[e]||(r[e]=[]),t.forEach(function(e,r){return o.push({t:r/(t.length-1)*100,v:e,e:a})});else for(i in t)o=r[i]||(r[i]=[]),"ease"===i||o.push({t:parseFloat(e),v:t[i],e:a})},re=function(e,t,r,n,i){return q(e)?e.call(t,r,n,i):V(e)&&~e.indexOf("random(")?tv(e):e},rt=eO+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",rr={};eA(rt+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return rr[e]=1});var rn=function(e){function t(t,r,i,o){"number"==typeof r&&(i.duration=r,r=i,i=null);var a,s,l,u,c,d,f,h,p,m=(a=e.call(this,o?r:eV(r))||this).vars,g=m.duration,y=m.delay,v=m.immediateRender,b=m.stagger,w=m.overwrite,_=m.keyframes,x=m.defaults,E=m.scrollTrigger,O=r.parent||T,S=(J(t)||X(t)?W(t[0]):"length"in r)?[t]:tc(t);if(a._targets=S.length?eS(S):ef("GSAP target "+t+" not found. https://gsap.com",!I.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=w,_||b||K(g)||K(y)){var k=(r=a.vars).easeReverse||r.yoyoEase;if((s=a.timeline=new tG({data:"nested",defaults:x||{},targets:O&&"nested"===O.data?O.vars.targets:S})).kill(),s.parent=s._dp=n(a),s._start=0,b||K(g)||K(y)){if(c=S.length,h=b&&th(b),Y(b))for(d in b)~rt.indexOf(d)&&(p||(p={}),p[d]=b[d]);for(l=0;l<c;l++)(u=eB(r,rr)).stagger=0,k&&(u.easeReverse=k),p&&ez(u,p),f=S[l],u.duration=+re(g,n(a),l,f,S),u.delay=(+re(y,n(a),l,f,S)||0)-a._delay,!b&&1===c&&u.delay&&(a._delay=y=u.delay,a._start+=y,u.delay=0),s.to(f,u,h?h(l,f,S):0),s._ease=tI.none;s.duration()?g=y=0:a.timeline=0}else if(_){eV(eF(s.vars.defaults,{ease:"none"})),s._ease=tB(_.ease||r.ease||"none");var A,P,j,R=0;if(J(_))_.forEach(function(e){return s.to(S,e,">")}),s.duration();else{for(d in u={},_)"ease"===d||"easeEach"===d||t7(d,_[d],u,_.easeEach);for(d in u)for(l=0,A=u[d].sort(function(e,t){return e.t-t.t}),R=0;l<A.length;l++)(j={ease:(P=A[l]).e,duration:(P.t-(l?A[l-1].t:0))/100*g})[d]=P.v,s.to(S,j,R),R+=j.duration;s.duration()<g&&s.to({},{duration:g-s.duration()})}}g||a.duration(g=s.duration())}else a.timeline=0;return!0!==w||C||(t0=n(a),T.killTweensOf(S),t0=0),e5(O,n(a),i),r.reversed&&a.reverse(),r.paused&&a.paused(!0),(v||!g&&!_&&a._start===ej(O._time)&&Z(v)&&function e(t){return!t||t._ts&&e(t.parent)}(n(a))&&"nested"!==O.data)&&(a._tTime=-.00000001,a.render(Math.max(0,-y)||0)),E&&e3(n(a),E),a}i(t,e);var r=t.prototype;return r.render=function(e,t,r){var n,i,o,a,s,l,u,c,d=this._time,f=this._tDur,h=this._dur,p=e<0,m=e>f-1e-8&&!p?f:e<1e-8?0:e;if(h){if(m!==this._tTime||!e||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==p||this._lazy){if(n=m,c=this.timeline,this._repeat){if(a=h+this._rDelay,this._repeat<-1&&p)return this.totalTime(100*a+e,t,r);if(n=ej(m%a),m===f?(o=this._repeat,n=h):(o=~~(s=ej(m/a)))&&o===s?(n=h,o--):n>h&&(n=h),(l=this._yoyo&&1&o)&&(n=h-n),s=eJ(this._tTime,a),n===d&&!r&&this._initted&&o===s)return this._tTime=m,this;o!==s&&this.vars.repeatRefresh&&!l&&!this._lock&&n!==a&&this._initted&&(this._lock=r=1,this.render(ej(a*o),!0).invalidate()._lock=0)}if(!this._initted){if(e4(this,p?e:n,r,t,m))return this._tTime=0,this;if(d!==this._time&&!(r&&this.vars.repeatRefresh&&o!==s))return this;if(h!==this._dur)return this.render(e,t,r)}if(this._rEase){var g=n<d;if(g!==this._inv){var y=g?d:h-d;this._inv=g,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=d,this._invRecip=y?(g?-1:1)/y:0,this._invScale=g?-this.ratio:1-this.ratio,this._invEase=g?this._rEase:this._ease}this.ratio=u=this._invRatio+this._invScale*this._invEase((n-this._invTime)*this._invRecip)}else this.ratio=u=this._ease(n/h);if(this._from&&(this.ratio=u=1-u),this._tTime=m,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!d&&m&&!t&&!s&&(t_(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(u,i.d),i=i._next;c&&c.render(e<0?e:c._dur*c._ease(n/this._dur),t,r)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(p&&eK(this,e,t,r),t_(this,"onUpdate")),this._repeat&&o!==s&&this.vars.onRepeat&&!t&&this.parent&&t_(this,"onRepeat"),(m===this._tDur||!m)&&this._tTime===m&&(p&&!this._onUpdate&&eK(this,e,!0,!0),(e||!h)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&eY(this,1),!t&&!(p&&!d)&&(m||d||l)&&(t_(this,m===f?"onComplete":"onReverseComplete",!0),this._prom&&!(m<f&&this.timeScale()>0)&&this._prom()))}}else e9(this,e,t,r);return this},r.targets=function(){return this._targets},r.invalidate=function(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},r.resetTo=function(e,t,r,n,i){D||tM.wake(),this._ts||this.play();var o=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||t6(this,o),t8(this,e,t,r,n,this._ease(o/this._dur),o,i))?this.resetTo(e,t,r,n,1):(e1(this,0),this.parent||eW(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(e,t){if(void 0===t&&(t="all"),!e&&(!t||"all"===t))return this._lazy=this._pt=0,this.parent?tx(this):this.scrollTrigger&&this.scrollTrigger.kill(!!O),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,t0&&!0!==t0.vars.overwrite)._first||tx(this),this.parent&&r!==this.timeline.totalDuration()&&te(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,o,a,s,l,u,c=this._targets,d=e?tc(e):c,f=this._ptLookup,h=this._pt;if((!t||"all"===t)&&eq(c,d))return"all"===t&&(this._pt=0),tx(this);for(n=this._op=this._op||[],"all"!==t&&(V(t)&&(s={},eA(t,function(e){return s[e]=1}),t=s),t=t9(c,t)),u=c.length;u--;)if(~d.indexOf(c[u]))for(s in i=f[u],"all"===t?(n[u]=t,a=i,o={}):(o=n[u]=n[u]||{},a=t),a)(l=i&&i[s])&&("kill"in l.d&&!0!==l.d.kill(s)||eH(this,l,"_pt"),delete i[s]),"all"!==o&&(o[s]=1);return this._initted&&!this._pt&&h&&tx(this),this},t.to=function(e,r){return new t(e,r,arguments[2])},t.from=function(e,t){return ti(1,arguments)},t.delayedCall=function(e,r,n,i){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},t.fromTo=function(e,t,r){return ti(2,arguments)},t.set=function(e,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(e,r)},t.killTweensOf=function(e,t,r){return T.killTweensOf(e,t,r)},t}(tZ);eF(rn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),eA("staggerTo,staggerFrom,staggerFromTo",function(e){rn[e]=function(){var t=new tG,r=tl.call(arguments,0);return r.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,r)}});var ri=function(e,t,r){return e[t]=r},ro=function(e,t,r){return e[t](r)},ra=function(e,t,r,n){return e[t](n.fp,r)},rs=function(e,t,r){return e.setAttribute(t,r)},rl=function(e,t){return q(e[t])?ro:H(e[t])&&e.setAttribute?rs:ri},ru=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},rc=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},rd=function(e,t){var r=t._pt,n="";if(!e&&t.b)n=t.b;else if(1===e&&t.e)n=t.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+n,r=r._next;n+=t.c}t.set(t.t,t.p,n,t)},rf=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},rh=function(e,t,r,n){for(var i,o=this._pt;o;)i=o._next,o.p===n&&o.modifier(e,t,r),o=i},rp=function(e){for(var t,r,n=this._pt;n;)r=n._next,(n.p!==e||n.op)&&n.op!==e?n.dep||(t=1):eH(this,n,"_pt"),n=r;return!t},rm=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},rg=function(e){for(var t,r,n,i,o=e._pt;o;){for(t=o._next,r=n;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:i)?o._prev._next=o:n=o,(o._next=r)?r._prev=o:i=o,o=t}e._pt=n},ry=function(){function e(e,t,r,n,i,o,a,s,l){this.t=t,this.s=n,this.c=i,this.p=r,this.r=o||ru,this.d=a||this,this.set=s||ri,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,r){this.mSet=this.mSet||this.set,this.set=rm,this.m=e,this.mt=r,this.tween=t},e}();eA(eO+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(e){return ev[e]=1}),el.TweenMax=el.TweenLite=rn,el.TimelineLite=el.TimelineMax=tG,T=new tG({sortChildren:!1,defaults:L,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),I.stringFilter=tR;var rv=[],rb={},rw=[],r_=0,rx=0,rE=function(e){return(rb[e]||rw).map(function(e){return e()})},rC=function(){var e=Date.now(),t=[];e-r_>2&&(rE("matchMediaInit"),rv.forEach(function(e){var r,n,i,o,a=e.queries,s=e.conditions;for(n in a)(r=k.matchMedia(a[n]).matches)&&(i=1),r!==s[n]&&(s[n]=r,o=1);o&&(e.revert(),i&&t.push(e))}),rE("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),r_=e,rE("matchMedia"))},rO=function(){function e(e,t){this.selector=t&&td(t),this.data=[],this._r=[],this.isReverted=!1,this.id=rx++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,r){q(e)&&(r=t,t=e,e=q);var n=this,i=function(){var e,i=S,o=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=td(r)),S=n,e=t.apply(n,arguments),q(e)&&n._r.push(e),S=i,n.selector=o,n.isReverted=!1,e};return n.last=i,e===q?i(n,function(e){return n.add(null,e)}):e?n[e]=i:i},t.ignore=function(e){var t=S;S=null,e(this),S=t},t.getTweens=function(){var t=[];return this.data.forEach(function(r){return r instanceof e?t.push.apply(t,r.getTweens()):r instanceof rn&&!(r.parent&&"nested"===r.parent.data)&&t.push(r)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var r=this;if(e?function(){for(var t,n=r.getTweens(),i=r.data.length;i--;)"isFlip"===(t=r.data[i]).data&&(t.revert(),t.getChildren(!0,!0,!1).forEac
2h(function(e){return n.splice(n.indexOf(e),1)}));for(n.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),i=r.data.length;i--;)(t=r.data[i])instanceof tG?"nested"!==t.data&&(t.scrollTrigger&&t.scrollTrigger.revert(),t.kill()):t instanceof rn||!t.revert||t.revert(e);r._r.forEach(function(t){return t(e,r)}),r.isReverted=!0}():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var n=rv.length;n--;)rv[n].id===this.id&&rv.splice(n,1)},t.revert=function(e){this.kill(e||{})},e}(),rS=function(){function e(e){this.contexts=[],this.scope=e,S&&S.data.push(this)}var t=e.prototype;return t.add=function(e,t,r){Y(e)||(e={matches:e});var n,i,o,a=new rO(0,r||this.scope),s=a.conditions={};for(i in S&&!a.selector&&(a.selector=S.selector),this.contexts.push(a),t=a.add("onMatch",t),a.queries=e,e)"all"===i?o=1:(n=k.matchMedia(e[i]))&&(0>rv.indexOf(a)&&rv.push(a),(s[i]=n.matches)&&(o=1),n.addListener?n.addListener(rC):n.addEventListener("change",rC));return o&&t(a,function(e){return a.add(null,e)}),this},t.revert=function(e){this.kill(e||{})}
vendor: 6,976 bytes, line 2
2,t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),rT={registerPlugin:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(e){return tC(e)})},timeline:function(e){return new tG(e)},getTweensOf:function(e,t){return T.getTweensOf(e,t)},getProperty:function(e,t,r,n){V(e)&&(e=tc(e)[0]);var i=eT(e||{}).get,o=r?eU:eN;return"native"===r&&(r=""),e?t?o((e_[t]&&e_[t].get||i)(e,t,r,n)):function(t,r,n){return o((e_[t]&&e_[t].get||i)(e,t,r,n))}:e},quickSetter:function(e,t,r){if((e=tc(e)).length>1){var n=e.map(function(e){return rj.quickSetter(e,t,r)}),i=n.length;return function(e){for(var t=i;t--;)n[t](e)}}e=e[0]||{};var o=e_[t],a=eT(e),s=a.harness&&(a.harness.aliases||{})[t]||t,l=o?function(t){var n=new o;M._pt=0,n.init(e,r?t+r:t,M,0,[e]),n.render(1,n),M._pt&&rf(1,M)}:a.set(e,s);return o?l:function(t){return l(e,s,r?t+r:t,a,1)}},quickTo:function(e,t,r){var n,i=rj.to(e,eF(((n={})[t]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),o=function(e,r,n){return i.resetTo(t,e,r,n)};return o.tween=i,o},isTweening:function(e){return T.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=tB(e.ease,L.ease)),e$(L,e||{})},config:function(e){return e$(I,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.plugins,i=e.defaults,o=e.extendTimeline;(n||"").split(",").forEach(function(e){return e&&!e_[e]&&!el[e]&&ef(t+" effect requires "+e+" plugin.")}),ex[t]=function(e,t,n){return r(tc(e),eF(t||{},i),n)},o&&(tG.prototype[t]=function(e,r,n){return this.add(ex[t](e,Y(r)?r:(n=r)&&{},this),n)})},registerEase:function(e,t){tI[e]=tB(t)},parseEase:function(e,t){return arguments.length?tB(e,t):tI},getById:function(e){return T.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var r,n,i=new tG(e);for(i.smoothChildTiming=Z(e.smoothChildTiming),T.remove(i),i._dp=0,i._time=i._tTime=T._time,r=T._first;r;)n=r._next,(t||!(!r._dur&&r instanceof rn&&r.vars.onComplete===r._targets[0]))&&e5(i,r,r._start-r._delay),r=n;return e5(T,i,0),i},context:function(e,t){return e?new rO(e,t):S},matchMedia:function(e){return new rS(e)},matchMediaRefresh:function(){return rv.forEach(function(e){var t,r,n=e.conditions;for(r in n)n[r]&&(n[r]=!1,t=1);t&&e.revert()})||rC()},addEventListener:function(e,t){var r=rb[e]||(rb[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=rb[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},utils:{wrap:function e(t,r,n){var i=r-t;return J(t)?ty(t,e(0,t.length),r):to(n,function(e){return(i+(e-t)%i)%i+t})},wrapYoyo:function e(t,r,n){var i=r-t,o=2*i;return J(t)?ty(t,e(0,t.length-1),r):to(n,function(e){return e=(o+(e-t)%o)%o||0,t+(e>i?o-e:e)})},distribute:th,random:tg,snap:tm,normalize:function(e,t,r){return tb(e,t,0,1,r)},getUnit:ts,clamp:function(e,t,r){return to(r,function(r){return ta(e,t,r)})},splitColor:tT,toArray:tc,selector:td,mapRange:tb,pipe:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduce(function(e,t){return t(e)},e)}},unitize:function(e,t){return function(r){return e(parseFloat(r))+(t||ts(r))}},interpolate:function e(t,r,n,i){var o=isNaN(t+r)?0:function(e){return(1-e)*t+e*r};if(!o){var a,s,l,u,c,d=V(t),f={};if(!0===n&&(i=1)&&(n=null),d)t={p:t},r={p:r};else if(J(t)&&!J(r)){for(s=1,l=[],c=(u=t.length)-2;s<u;s++)l.push(e(t[s-1],t[s]));u--,o=function(e){var t=Math.min(c,~~(e*=u));return l[t](e-t)},n=r}else i||(t=ez(J(t)?[]:{},t));if(!l){for(a in r)t5.call(f,t,a,"get",r[a]);o=function(e){return rf(e,f)||(d?t.p:t)}}}return to(n,o)},shuffle:tf},install:ec,effects:ex,ticker:tM,updateRoot:tG.updateRoot,plugins:e_,globalTimeline:T,core:{PropTween:ry,globals:eh,Tween:rn,Timeline:tG,Animation:tZ,getCache:eT,_removeLinkedListItem:eH,reverting:function(){return O},context:function(e){return e&&S&&(S.data.push(e),e._ctx=S),S},suppressOverwrites:function(e){return C=e}}};eA("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return rT[e]=rn[e]}),tM.add(tG.updateRoot),M=rT.to({},{duration:0});var rk=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},rA=function(e,t){var r,n,i,o=e._targets;for(r in t)for(n=o.length;n--;)(i=e._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=rk(i,r)),i&&i.modifier&&i.modifier(t[r],e,o[n],r))},rP=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,r,n){n._onInit=function(e){var n,i;if(V(r)&&(n={},eA(r,function(e){return n[e]=1}),r=n),t){for(i in n={},r)n[i]=t(r[i]);r=n}rA(e,r)}}}},rj=rT.registerPlugin({name:"attr",init:function(e,t,r,n,i){var o,a,s;for(o in this.tween=r,t)s=e.getAttribute(o)||"",(a=this.add(e,"setAttribute",(s||0)+"",t[o],n,i,0,0,o)).op=o,a.b=s,this._props.push(o)},render:function(e,t){for(var r=t._pt;r;)O?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},rP("roundProps",tp),rP("modifiers"),rP("snap",tm))||rT;rn.version=tG.version=rj.version="3.15.0",j=1,G()&&tD(),tI.Power0,tI.Power1,tI.Power2,tI.Power3,tI.Power4,tI.Linear,tI.Quad,tI.Cubic,tI.Quart,tI.Quint,tI.Strong,tI.Elastic,tI.Back,tI.SteppedEase,tI.Bounce,tI.Sine,tI.Expo,tI.Circ;var rR,rM,rD,rI,rL,rN,rU,rF={},rz=180/Math.PI,r$=Math.PI/180,rB=Math.atan2,rV=/([A-Z])/g,rq=/(left|right|width|margin|padding|x)/i,rW=/[\s,\(]\S/,rH={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},rY=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},rZ=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},rG=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},rK=function(e,t){return t.set(t.t,t.p,1===e?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},rX=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},rJ=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},rQ=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},r0=function(e,t,r){return e.style[t]=r},r1=function(e,t,r){return e.style.setProperty(t,r)},r2=function(e,t,r){return e._gsap[t]=r},r5=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},r3=function(e,t,r,n,i){var o=e._gsap;o.scaleX=o.scaleY=r,o.renderTransform(i,o)},r4=function(e,t,r,n,i){var o=e._gsap;o[t]=r,o.renderTransform(i,o)},r6="transform",r8=r6+"Origin",r9=function e(t,r){var n=this,i=this.target,o=i.style,a=i._gsap;if(t in rF&&o){if(this.tfm=this.tfm||{},"transform"===t)return rH.transform.split(",").forEach(function(t){return e.call(n,t,r)});if(~(t=rH[t]||t).indexOf(",")?t.split(",").forEach(function(e){return n.tfm[e]=ng(i,e)}):this.tfm[t]=a.x?a[t]:ng(i,t),t===r8&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(r6)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(r8,r,"")),t=r6}(o||r)&&this.props.push(t,r,o[t])},r7=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},ne=function(){var e,t,r=this.props,n=this.target,i=n.style,o=n._gsap;for(e=0;e<r.length;
2e+=3)r[e+1]?2===r[e+1]?n[r[e]](r[e+2]):n[r[e]]=r[e+2]:r[e+2]?i[r[e]]=r[e+2]:i.removeProperty("--"===r[e].substr(0,2)?r[e]:r[e].replace(rV,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)o[t]=this.tfm[t];o.svg&&(o.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(e=rN())&&e.isStart||i[r6]||(r7(i),o.zOrigin&&i[r8]&&(i[r8]+=" "+o.zOrigin+"px",o.zOrigin=0,o.renderTransform()),o.uncache=1)}},nt=function(e,t){var r={target:e,props:[],revert:ne,save:r9};return e._gsap||rj.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return r.save(e)}),r},nr=function(e,t){var r=rR.createElementNS?rR.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):rR.createElement(e);return r&&r.style?r:rR.createElement(e)},nn=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(rV,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,no(r)||r,1)||""},ni="O,Moz,ms,Ms,Webkit".split(","),no=function(e,t,r){var n=(t||rI).style,i=5;if(e in n&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(ni[i]+e in n););return i<0?null:(3===i?"ms":i>=0?ni[i]:"")+e},na=function(){"undefined"!=typeof window&&window.document&&(rM=(rR=window.document).documentElement,rI=nr("div")||{style:{}},nr("div"),r8=(r6=no(r6))+"Origin",rI.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",rU=!!no("perspective"),rN=rj.core.reverting,rD=1)},ns=function(e){var t,r=e.ownerSVGElement,n=nr("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0);i.style.display="block",n.appendChild(i),rM.appendChild(n);try{t=i.getBBox()}catch(e){}return n.removeChild(i),rM.removeChild(n),t},nl=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},nu=function(e){var t,r;try{t=e.getBBox()}catch(n){t=ns(e),r=1}return t&&(t.width||t.height)||r||(t=ns(e)),!t||t.width||t.x||t.y?t:{x:+nl(e,["x","cx","x1"])||0,y:+nl(e,["y","cy","y1"])||0,width:0,height:0}},nc=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&nu(e))},nd=function(e,t){if(t){var r,n=e.style;t in rF&&t!==r8&&(t=r6),n.removeProperty?(("ms"===(r=t.substr(0,2))||"webkit"===t.substr(0,6))&&(t="-"+t),n.removeProperty("--"===r?t:t.replace(rV,"-$1").toLowerCase())):n.removeAttribute(t)}},nf=function(e,t,r,n,i,o){var a=new ry(e._pt,t,r,0,1,o?rQ:rJ);return e._pt=a,a.b=n,a.e=i,e._props.push(r),a},nh={deg:1,rad:1,turn:1},np={grid:1,flex:1},nm=function e(t,r,n,i){var o,a,s,l,u=parseFloat(n)||0,c=(n+"").trim().substr((u+"").length)||"px",d=rI.style,f=rq.test(r),h="svg"===t.tagName.toLowerCase(),p=(h?"client":"offset")+(f?"Width":"Height"),m="px"===i,g="%"===i;if(i===c||!u||nh[i]||nh[c])return u;if("px"===c||m||(u=e(t,r,n,"px")),l=t.getCTM&&nc(t),(g||"%"===c)&&(rF[r]||~r.indexOf("adius")))return o=l?t.getBBox()[f?"width":"height"]:t[p],eP(g?u/o*100:u/100*o);if(d[f?"width":"height"]=100+(m?c:i),a="rem"!==i&&~r.indexOf("adius")||"em"===i&&t.appendChild&&!h?t:t.parentNode,l&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==rR&&a.appendChild||(a=rR.body),(s=a._gsap)&&g&&s.width&&f&&s.time===tM.time&&!s.uncache)return eP(u/s.width*100);if(g&&("height"===r||"width"===r)){var y=t.style[r];t.style[r]=100+i,o=t[p],y?t.style[r]=y:nd(t,r)}else(g||"%"===c)&&!np[nn(a,"display")]&&(d.position=nn(t,"position")),a===t&&(d.position="static"),a.appendChild(rI),o=rI[p],a.removeChild(rI),d.position="absolute";return f&&g&&((s=eT(a)).time=tM.time,s.width=a[p]),eP(m?o*u/100:o&&u?100/o*u:0)},ng=function(e,t,r,n){var i;return rD||na(),t in rH&&"transform"!==t&&~(t=rH[t]).indexOf(",")&&(t=t.split(",")[0]),rF[t]&&"transform"!==t?(i=nk(e,n),i="transformOrigin"!==t?i[t]:i.svg?i.origin:nA(nn(e,r8))+" "+i.zOrigin+"px"):(!(i=e.style[t])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=n_[t]&&n_[t](e,t,r)||nn(e,t)||ek(e,t)||("opacity"===t?1:0)),r&&!~(i+"").trim().indexOf(" ")?nm(e,t,i,r)+r:i},ny=function(e,t,r,n){if(!r||"none"===r){var i=no(t,e,1),o=i&&nn(e,i,1);o&&o!==r?(t=i,r=o):"borderColor"===t&&(r=nn(e,"borderTopColor"))}var a,s,l,u,c,d,f,h,p,m,g,y=new ry(this._pt,e.style,t,0,1,rd),v=0,b=0;
2if(y.b=r,y.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=nn(e,n.substring(4,n.indexOf(")")))),"auto"===n&&(d=e.style[t],e.style[t]=n,n=nn(e,t)||n,d?e.style[t]=d:nd(e,t)),tR(a=[r,n]),r=a[0],n=a[1],l=r.match(en)||[],(n.match(en)||[]).length){for(;s=en.exec(n);)f=s[0],p=n.substring(v,s.index),c?c=(c+1)%5:("rgba("===p.substr(-5)||"hsla("===p.substr(-5))&&(c=1),f!==(d=l[b++]||"")&&(u=parseFloat(d)||0,g=d.substr((u+"").length),"="===f.charAt(1)&&(f=eR(u,f)+g),h=parseFloat(f),m=f.substr((h+"").length),v=en.lastIndex-m.length,m||(m=m||I.units[t]||g,v!==n.length||(n+=m,y.e+=m)),g!==m&&(u=nm(e,t,d,m)||0),y._pt={_next:y._pt,p:p||1===b?p:",",s:u,c:h-u,m:c&&c<4||"zIndex"===t?Math.round:0});y.c=v<n.length?n.substring(v,n.length):""}else y.r="display"===t&&"none"===n?rQ:rJ;return eo.test(n)&&(y.e=0),this._pt=y,y},nv={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},nb=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return("top"===r||"bottom"===r||"left"===n||"right"===n)&&(e=r,r=n,n=e),t[0]=nv[r]||r,t[1]=nv[n]||n,t.join(" ")},nw=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r,n,i,o=t.t,a=o.style,s=t.u,l=o._gsap;if("all"===s||!0===s)a.cssText="",n=1;else for(i=(s=s.split(",")).length;--i>-1;)rF[r=s[i]]&&(n=1,r="transformOrigin"===r?r8:r6),nd(o,r);n&&(nd(o,r6),l&&(l.svg&&o.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",nk(o,1),l.uncache=1,r7(a)))}},n_={clearProps:function(e,t,r,n,i){if("isFromStart"!==i.data){var o=e._pt=new ry(e._pt,t,r,0,0,nw);return o.u=n,o.pr=-10,o.tween=i,e._props.push(r),1}}},nx=[1,0,0,1,0,0],nE={},nC=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},nO=function(e){var t=nn(e,r6);return nC(t)?nx:t.substr(7).match(er).map(eP)},nS=function(e,t){var r,n,i,o,a=e._gsap||eT(e),s=e.style,l=nO(e);return a.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=e.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?nx:l:(l!==nx||e.offsetParent||e===rM||a.svg||(i=s.display,s.display="block",(r=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(o=1,n=e.nextElementSibling,rM.appendChild(e)),l=nO(e),i?s.display=i:nd(e,"display"),o&&(n?r.insertBefore(e,n):r?r.appendChild(e):rM.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},nT=function(e,t,r,n,i,o){var a,s,l,u,c=e._gsap,d=i||nS(e,!0),f=c.xOrigin||0,h=c.yOrigin||0,p=c.xOffset||0,m=c.yOffset||0,g=d[0],y=d[1],v=d[2],b=d[3],w=d[4],_=d[5],x=t.split(" "),E=parseFloat(x[0])||0,C=parseFloat(x[1])||0;r?d!==nx&&(s=g*b-y*v)&&(l=b/s*E+-v/s*C+(v*_-b*w)/s,u=-y/s*E+g/s*C-(g*_-y*w)/s,E=l,C=u):(E=(a=nu(e)).x+(~x[0].indexOf("%")?E/100*a.width:E),C=a.y+(~(x[1]||x[0]).indexOf("%")?C/100*a.height:C)),n||!1!==n&&c.smooth?(w=E-f,_=C-h,c.xOffset=p+(w*g+_*v)-w,c.yOffset=m+(w*y+_*b)-_):c.xOffset=c.yOffset=0,c.xOrigin=E,c.yOrigin=C,c.smooth=!!n,c.origin=t,c.originIsAbsolute=!!r,e.style[r8]="0px 0px",o&&(nf(o,c,"xOrigin",f,E),nf(o,c,"yOrigin",h,C),nf(o,c,"xOffset",p,c.xOffset),nf(o,c,"yOffset",m,c.yOffset)),e.setAttribute("data-svg-origin",E+" "+C)},nk=function(e,t){var r=e._gsap||new tY(e);if("x"in r&&!t&&!r.uncache)return r;var n,i,o,a,s,l,u,c,d,f,h,p,m,g,y,v,b,w,_,x,E,C,O,S,T,k,A,P,j,R,M,D,L=e.style,N=r.scaleX<0,U=getComputedStyle(e),F=nn(e,r8)||"0";return n=i=o=l=u=c=d=f=h=0,a=s=1,r.svg=!!(e.getCTM&&nc(e)),U.translate&&(("none"!==U.translate||"none"!==U.scale||"none"!==U.rotate)&&(L[r6]=("none"!==U.translate?"translate3d("+(U.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==U.rotate?"rotate("+U.rotate+") ":"")+("none"!==U.scale?"scale("+U.scale.split(" ").join(",")+") ":"")+("none"!==U[r6]?U[r6]:"")),L.scale=L.rotate=L.translate="none"),g=nS(e,r.svg),r.svg&&(r.uncache?(T=e.getBBox(),F=r.xOrigin-T.x+"px "+(r.yOrigin-T.y)+"px",S=""):S=!t&&e.getAttribute("data-svg-origin"),nT(e,S||F,!!S||r.originIsAbsolute,!1!==r.smooth,g)),p=r.xOrigin||0,m=r.yOrigin||0,g!==nx&&(w=g[0],_=g[1],x=g[2],E=g[3],n=C=g[4],i=O=g[5],6===g.length?(a=Math.sqrt(w*w+_*_),s=Math.sqrt(E*E+x*x),l=w||_?rB(_,w)*rz:0,(d=x||E?rB(x,E)*rz+l:0)&&(s*=Math.abs(Math.cos(d*r$))),r.svg&&(n-=p-(p*w+m*x),i-=m-(p*_+m*E))):(D=g[6],R=g[7],A=g[8],P=g[9],j=g[10
2],M=g[11],n=g[12],i=g[13],o=g[14],u=(y=rB(D,j))*rz,y&&(S=C*(v=Math.cos(-y))+A*(b=Math.sin(-y)),T=O*v+P*b,k=D*v+j*b,A=-(C*b)+A*v,P=-(O*b)+P*v,j=-(D*b)+j*v,M=-(R*b)+M*v,C=S,O=T,D=k),c=(y=rB(-x,j))*rz,y&&(S=w*(v=Math.cos(-y))-A*(b=Math.sin(-y)),T=_*v-P*b,k=x*v-j*b,M=E*b+M*v,w=S,_=T,x=k),l=(y=rB(_,w))*rz,y&&(S=w*(v=Math.cos(y))+_*(b=Math.sin(y)),T=C*v+O*b,_=_*v-w*b,O=O*v-C*b,w=S,C=T),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),a=eP(Math.sqrt(w*w+_*_+x*x)),s=eP(Math.sqrt(O*O+D*D)),d=Math.abs(y=rB(C,O))>2e-4?y*rz:0,h=M?1/(M<0?-M:M):0),r.svg&&(S=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!nC(nn(e,r6)),S&&e.setAttribute("transform",S))),Math.abs(d)>90&&270>Math.abs(d)&&(N?(a*=-1,d+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,d+=d<=0?180:-180)),t=t||r.uncache,r.x=n-((r.xPercent=n&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-n)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+"px",r.y=i-((r.yPercent=i&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-i)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+"px",r.z=o+"px",r.scaleX=eP(a),r.scaleY=eP(s),r.rotation=eP(l)+"deg",r.rotationX=eP(u)+"deg",r.rotationY=eP(c)+"deg",r.skewX=d+"deg",r.skewY=f+"deg",r.transformPerspective=h+"px",(r.zOrigin=parseFloat(F.split(" ")[2])||!t&&r.zOrigin||0)&&(L[r8]=nA(F)),r.xOffset=r.yOffset=0,r.force3D=I.force3D,r.renderTransform=r.svg?nD:rU?nM:nj,r.uncache=0,r},nA=function(e){return(e=e.split(" "))[0]+" "+e[1]},nP=function(e,t,r){var n=ts(t);return eP(parseFloat(t)+parseFloat(nm(e,"x",r+"px",n)))+n},nj=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,nM(e,t)},nR="0deg",nM=function(e,t){var r=t||this,n=r.xPercent,i=r.yPercent,o=r.x,a=r.y,s=r.z,l=r.rotation,u=r.rotationY,c=r.rotationX,d=r.skewX,f=r.skewY,h=r.scaleX,p=r.scaleY,m=r.transformPerspective,g=r.force3D,y=r.target,v=r.zOrigin,b="",w="auto"===g&&e&&1!==e||!0===g;if(v&&(c!==nR||u!==nR)){var _,x=parseFloat(u)*r$,E=Math.sin(x),C=Math.cos(x);o=nP(y,o,-(E*(_=Math.cos(x=parseFloat(c)*r$))*v)),a=nP(y,a,-(-Math.sin(x)*v)),s=nP(y,s,-(C*_*v)+v)}"0px"!==m&&(b+="perspective("+m+") "),(n||i)&&(b+="translate("+n+"%, "+i+"%) "),(w||"0px"!==o||"0px"!==a||"0px"!==s)&&(b+="0px"!==s||w?"translate3d("+o+", "+a+", "+s+") ":"translate("+o+", "+a+") "),l!==nR&&(b+="rotate("+l+") "),u!==nR&&(b+="rotateY("+u+") "),c!==nR&&(b+="rotateX("+c+") "),(d!==nR||f!==nR)&&(b+="skew("+d+", "+f+") "),(1!==h||1!==p)&&(b+="scale("+h+", "+p+") "),y.style[r6]=b||"translate(0, 0)"},nD=function(e,t){var r,n,i,o,a,s=t||this,l=s.xPercent,u=s.yPercent,c=s.x,d=s.y,f=s.rotation,h=s.skewX,p=s.skewY,m=s.scaleX,g=s.scaleY,y=s.target,v=s.xOrigin,b=s.yOrigin,w=s.xOffset,_=s.yOffset,x=s.forceCSS,E=parseFloat(c),C=parseFloat(d);f=parseFloat(f),h=parseFloat(h),(p=parseFloat(p))&&(h+=p=parseFloat(p),f+=p),f||h?(f*=r$,h*=r$,r=Math.cos(f)*m,n=Math.sin(f)*m,i=-(Math.sin(f-h)*g),o=Math.cos(f-h)*g,h&&(p*=r$,i*=a=Math.sqrt(1+(a=Math.tan(h-p))*a),o*=a,p&&(r*=a=Math.sqrt(1+(a=Math.tan(p))*a),n*=a)),r=eP(r),n=eP(n),i=eP(i),o=eP(o)):(r=m,o=g,n=i=0),(E&&!~(c+"").indexOf("px")||C&&!~(d+"").indexOf("px"))&&(E=nm(y,"x",c,"px"),C=nm(y,"y",d,"px")),(v||b||w||_)&&(E=eP(E+v-(v*r+b*i)+w),C=eP(C+b-(v*n+b*o)+_)),(l||u)&&(E=eP(E+l/100*(a=y.getBBox()).width),C=eP(C+u/100*a.height)),a="matrix("+r+","+n+","+i+","+o+","+E+","+C+")",y.setAttribute("transform",a),x&&(y.style[r6]=a)},nI=function(e,t,r,n,i){var o,a,s=V(i),l=parseFloat(i)*(s&&~i.indexOf("rad")?rz:1)-n,u=n+l+"deg";return s&&("short"===(o=i.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===o&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===o&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),e._pt=a=new ry(e._pt,t,r,n,l,rZ),a.e=u,a.u="deg",e._props.push(r),a},nL=function(e,t){for(var r in t)e[r]=t[r];return e},nN=function(e,t,r){var n,i,o,a,s,l,u,c=nL({},r._gsap),d=r.style;for(i in c.svg?(o=r.getAttribute("transform"),r.setAttribute("transform",""),d[r6]=t,n=nk(r,1),nd(r,r6),r.setAttribute("transform",o)):(o=getComputedStyle(r)[r6],d[r6]=t,n=nk(r,1),d[r6]=o),rF)(o=c[i])!==(a=n[i])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)&&(s=ts(o)!==(u=ts(a))?nm(r,i,o,u):parseFloat(o),l=parseFloat(a),e._pt=new ry(e._pt,n,i,s,l-s,rY),e._pt.u=u||0,e._props.push(i));nL(n,c)};eA("padding,margin,Width,Radius",function(e,t){var r="Right",n="Bottom",i="Left",o=(t<3?["Top",r,n,i]:["Top"+i,"Top"+r,n+r,n+i]).map(function(r){return t<2?e+r:"border"+r+e});n_[t>1?"border"+e:e]=function(e,t,r,n,i){var a,s;if(arguments.length<4)return 5===(s=(a=o.map(function(t){return ng(e,t,r)})).join(" ")).split(a[0]).length?a[0]:s;a=(n+"").split(" "),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var nU={name:"css",register:na,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,i){var o,a,s,l,u,c,d,f,h,p,m,g,y,v,b,w,_,x=this._props,E=e.style,C=r.vars.startAt;for(d in rD||na(),this.styles=this.styles||nt(e),w=this.styles.props,this.tween=r,t)if("autoRound"!==d&&(a=t[d],!(e_[d]&&t4(d,t,r,n,e,i)))){if(u=typeof a,c=n_[d],"function"===u&&(u=typeof(a=a.call(r,n,e,i))),"string"===u&&~a.indexOf("random(")&&(a=tv(a)),c)c(this,e,d,a,r)&&(b=1);else if("--"===d.substr(0,2))o=(getComputedStyle(e).getPropertyValue(d)+"").trim(),a+="",tP.lastIndex=0,!tP.test(o)&&(f=ts(o),(h=ts(a))?f!==h&&
2(o=nm(e,d,o,h)+h):f&&(a+=f)),this.add(E,"setProperty",o,a,n,i,0,0,d),x.push(d),w.push(d,0,E[d]);else if("undefined"!==u){if(C&&d in C?(V(o="function"==typeof C[d]?C[d].call(r,n,e,i):C[d])&&~o.indexOf("random(")&&(o=tv(o)),ts(o+"")||"auto"===o||(o+=I.units[d]||ts(ng(e,d))||""),"="===(o+"").charAt(1)&&(o=ng(e,d))):o=ng(e,d),l=parseFloat(o),(p="string"===u&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),s=parseFloat(a),d in rH&&("autoAlpha"===d&&(1===l&&"hidden"===ng(e,"visibility")&&s&&(l=0),w.push("visibility",0,E.visibility),nf(this,E,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==d&&"transform"!==d&&~(d=rH[d]).indexOf(",")&&(d=d.split(",")[0])),m=d in rF){if(this.styles.save(d),_=a,"string"===u&&"var(--"===a.substring(0,6)){if("calc("===(a=nn(e,a.substring(4,a.indexOf(")")))).substring(0,5)){var O=e.style.perspective;e.style.perspective=a,a=nn(e,"perspective"),O?e.style.perspective=O:nd(e,"perspective")}s=parseFloat(a)}if(g||((y=e._gsap).renderTransform&&!t.parseTransform||nk(e,t.parseTransform),v=!1!==t.smoothOrigin&&y.smooth,(g=this._pt=new ry(this._pt,E,r6,0,1,y.renderTransform,y,0,-1)).dep=1),"scale"===d)this._pt=new ry(this._pt,y,"scaleY",y.scaleY,(p?eR(y.scaleY,p+s):s)-y.scaleY||0,rY),this._pt.u=0,x.push("scaleY",d),d+="X";else if("transformOrigin"===d){w.push(r8,0,E[r8]),a=nb(a),y.svg?nT(e,a,0,v,0,this):((h=parseFloat(a.split(" ")[2])||0)!==y.zOrigin&&nf(this,y,"zOrigin",y.zOrigin,h),nf(this,E,d,nA(o),nA(a)));continue}else if("svgOrigin"===d){nT(e,a,1,v,0,this);continue}else if(d in nE){nI(this,y,d,l,p?eR(l,p+a):a);continue}else if("smoothOrigin"===d){nf(this,y,"smooth",y.smooth,a);continue}else if("force3D"===d){y[d]=a;continue}else if("transform"===d){nN(this,a,e);continue}}else d in E||(d=no(d)||d);if(m||(s||0===s)&&(l||0===l)&&!rW.test(a)&&d in E)f=(o+"").substr((l+"").length),s||(s=0),h=ts(a)||(d in I.units?I.units[d]:f),f!==h&&(l=nm(e,d,o,h)),this._pt=new ry(this._pt,m?y:E,d,l,(p?eR(l,p+s):s)-l,m||"px"!==h&&"zIndex"!==d||!1===t.autoRound?rY:rX),this._pt.u=h||0,m&&_!==a?(this._pt.b=o,this._pt.e=_,this._pt.r=rK):f!==h&&"%"!==h&&(this._pt.b=o,this._pt.r=rG);else if(d in E)ny.call(this,e,d,o,p?p+a:a);else if(d in e)this.add(e,d,o||e[d],p?p+a:a,n,i);else if("parseTransform"!==d){ed(d,a);continue}m||(d in E?w.push(d,0,E[d]):"function"==typeof e[d]?w.push(d,2,e[d]()):w.push(d,1,o||e[d])),x.push(d)}}b&&rg(this)},render:function(e,t){if(t.tween._time||!rN())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:ng,aliases:rH,getSetter:function(e,t,r){var n=rH[t];return n&&0>n.indexOf(",")&&(t=n),t in rF&&t!==r8&&(e._gsap.x||ng(e,"x"))?r&&rL===r?"scale"===t?r5:r2:(rL=r||{},"scale"===t?r3:r4):e.style&&!H(e.style[t])?r0:~t.indexOf("-")?r1:rl(e,t)},core:{_removeProperty:nd,_getMatrix:nS}};rj.utils.checkPrefix=no,rj.core.getStyleSaver=nt,s="0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",l=eA((o="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(a="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){rF[e]=1}),eA(a,function(e){I.units[e]="deg",nE[e]=1}),rH[l[13]]=o+","+a,eA(s,function(e){var t=e.split(":");rH[t[1]]=l[t[0]]}),eA("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){I.units[e]="px"}),rj.registerPlugin(nU);var nF=rj.registerPlugin(nU)||rj;nF.core.Tween},44343:function(e,t,r){e.exports=r(15024)},83454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(77663)},91118:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(49858)}])},98591:function(e,t,r){"use strict";let n,i,o,a,s,l,u;r.d(t,{Z:function(){return eA}});var c,d,f=r(85893),h=r(67294),p=r.t(h,2),m=r(20626),g=r(46978),y=r(83579);function v(e,t,r,n){let i=(0,y.E)(r);(0,h.useEffect)(()=>{function r(e){i.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)},[e,t,n])}var b=r(31175),w=r(13463);function _(e){let t=(0,g.z)(e),r=(0,h.useRef)(!1);(0,h.useEffect)(()=>(r.current=!1,()=>{r.current=!0,(0,w.Y)(()=>{r.current&&t()})}),[t])}var x=r(14371);function E(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,h.useMemo)(()=>(0,x.r)(...t),[...t])}var C=r(65045),O=r(78405),S=r(82024),T=((n=T||{})[n.Forwards=0]="Forwards",n[n.Backwards=1]="Backwards",n);function k(e,t){let r=(0,h.useRef)([]),n=(0,g.z)(e);(0,h.useEffect)(()=>{let e=[...r.current];for(let[i,o]of t.entries())if(r.current[i]!==o){let i=n(t,e);return r.current=t,i}},[n,...t])}var A=r(31022);let P=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&P[0]!==e.target&&(P.unshift(e.target),(P=P.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var j=r(4918),R=r(28277),M=r(84629);function D(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}var I=((i=I||{})[i.None=1]="None",i[i.InitialFocus=2]="InitialFocus",i[i.TabLock=4]="TabLock",i[i.FocusLock=8]="FocusLock",i[i.RestoreFocus=16]="RestoreFocus",i[i.All=30]="All",i);let L=Object.assign((0,M.yV)(function(e,t){let r,n=(0,h.useRef)(null),i=(0,O.T)(n,t),{initialFocus:o,containers:a,features:s=30,...l}=e;(0,C.H)()||(s=1);let u=E(n);!function(e,t){let{ownerDocument:r}=e,n=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,h.useRef)(P.slice());return k((e,r)=>
2{let[n]=e,[i]=r;!0===i&&!1===n&&(0,w.Y)(()=>{t.current.splice(0)}),!1===i&&!0===n&&(t.current=P.slice())},[e,P,t]),(0,g.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);k(()=>{t||(null==r?void 0:r.activeElement)===(null==r?void 0:r.body)&&(0,j.C5)(n())},[t]),_(()=>{t&&(0,j.C5)(n())})}({ownerDocument:u},!!(16&s));let c=function(e,t){let{ownerDocument:r,container:n,initialFocus:i}=e,o=(0,h.useRef)(null),a=(0,b.t)();return k(()=>{if(!t)return;let e=n.current;e&&(0,w.Y)(()=>{if(!a.current)return;let t=null==r?void 0:r.activeElement;if(null!=i&&i.current){if((null==i?void 0:i.current)===t){o.current=t;return}}else if(e.contains(t)){o.current=t;return}null!=i&&i.current?(0,j.C5)(i.current):(0,j.jA)(e,j.TO.First)===j.fE.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=null==r?void 0:r.activeElement})},[t]),o}({ownerDocument:u,container:n,initialFocus:o},!!(2&s));!function(e,t){let{ownerDocument:r,container:n,containers:i,previousActiveElement:o}=e,a=(0,b.t)();v(null==r?void 0:r.defaultView,"focus",e=>{if(!t||!a.current)return;let r=D(i);n.current instanceof HTMLElement&&r.add(n.current);let s=o.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?N(r,l)?(o.current=l,(0,j.C5)(l)):(e.preventDefault(),e.stopPropagation(),(0,j.C5)(s)):(0,j.C5)(o.current)},!0)}({ownerDocument:u,container:n,containers:a,previousActiveElement:c},!!(8&s));let d=(r=(0,h.useRef)(0),(0,S.s)("keydown",e=>{"Tab"===e.key&&(r.current=e.shiftKey?1:0)},!0),r),f=(0,g.z)(e=>{let t=n.current;t&&(0,R.E)(d.current,{[T.Forwards]:()=>{(0,j.jA)(t,j.TO.First,{skipElements:[e.relatedTarget]})},[T.Backwards]:()=>{(0,j.jA)(t,j.TO.Last,{skipElements:[e.relatedTarget]})}})}),p=(0,m.G)(),y=(0,h.useRef)(!1);return h.createElement(h.Fragment,null,!!(4&s)&&h.createElement(A._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:A.A.Focusable}),(0,M.sY)({ourProps:{ref:i,onKeyDown(e){"Tab"==e.key&&(y.current=!0,p.requestAnimationFrame(()=>{y.current=!1}))},onBlur(e){let t=D(a);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(N(t,r)||(y.current?(0,j.jA)(n.current,(0,R.E)(d.current,{[T.Forwards]:()=>j.TO.Next,[T.Backwards]:()=>j.TO.Previous})|j.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,j.C5)(e.target)))}},theirProps:l,defaultTag:"div",name:"FocusTrap"}),!!(4&s)&&h.createElement(A._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:A.A.Focusable}))}),{features:I});function N(e,t){for(let r of e)if(r.contains(t))return!0;return!1}var U=r(73935),F=r(62922);let z=(0,h.createContext)(!1);function $(e){return h.createElement(z.Provider,{value:e.force},e.children)}var B=r(51128);let V=h.Fragment,q=h.Fragment,W=(0,h.createContext)(null),H=(0,h.createContext)(null),Y=Object.assign((0,M.yV)(function(e,t){let r=(0,h.useRef)(null),n=(0,O.T)((0,O.h)(e=>{r.current=e}),t),i=E(r),o=function(e){let t=(0,h.useContext)(z),r=(0,h.useContext)(W),n=E(e),[i,o]=(0,h.useState)(()=>{if(!t&&null!==r||B.O.isServer)return null;let e=null==n?void 0:n.getElementById("headlessui-portal-root");if(e)return e;if(null===n)return null;let i=n.createElement("div");return i.setAttribute("id","headlessui-portal-root"),n.body.appendChild(i)});return(0,h.useEffect)(()=>{null!==i&&(null!=n&&n.body.contains(i)||null==n||n.body.appendChild(i))},[i,n]),(0,h.useEffect)(()=>{t||null!==r&&o(r.current)},[r,o,t]),i}(r),[a]=(0,h.useState)(()=>{var e;return B.O.isServer?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null}),s=(0,h.useContext)(H),l=(0,C.H)();return(0,F.e)(()=>{!o||!a||o.contains(a)||(a.setAttribute("data-headlessui-portal",""),o.appendChild(a))},[o,a]),(0,F.e)(()=>{if(a&&s)return s.register(a)},[s,a]),_(()=>{var e;o&&a&&(a instanceof Node&&o.contains(a)&&o.removeChild(a),o.childNodes.length<=0&&(null==(e=o.parentElement)||e.removeChild(o)))}),l&&o&&a?(0,U.createPortal)((0,M.sY)({ourProps:{ref:n},theirProps:e,defaultTag:V,name:"Portal"}),a):null}),{Group:(0,M.yV)(function(e,t){let{target:r,...n}=e,i={ref:(0,O.T)(t)};return h.createElement(W.Provider,{value:r},(0,M.sY)({ourProps:i,theirProps:n,defaultTag:q,name:"Popover.Group"}))})}),{useState:Z,useEffect:G,useLayoutEffect:K,useDebugValue:X}=p;void 0!==window.document&&window.document.createElement;let J=p.useSyncExternalStore;var Q=r(87112),ee=r(15021);let et=(c=()=>new Map,d={PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:(0,Q.k)(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:r,d:n,meta:i}=e,o={doc:r,d:n,meta:function(e){let t={};for(let r of e)Object.assign(t,r(t));return t}(i)},a=[(0,ee.gn)()?{before(e){let{doc:t,d:r,meta:n}=e;function i(e){return n.containers.flatMap(e=>e()).some(t=>t.contains(e))}r.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,Q.k)();e.style(t.documentElement,"scrollBehavior","auto"),r.add(()=>r.microTask(()=>
2e.dispose()))}let n=null!=(e=window.scrollY)?e:window.pageYOffset,o=null;r.addEventListener(t,"click",e=>{if(e.target instanceof HTMLElement)try{let r=e.target.closest("a");if(!r)return;let{hash:n}=new URL(r.href),a=t.querySelector(n);a&&!i(a)&&(o=a)}catch(e){}},!0),r.addEventListener(t,"touchstart",e=>{if(e.target instanceof HTMLElement){if(i(e.target)){let t=e.target;for(;t.parentElement&&i(t.parentElement);)t=t.parentElement;r.style(t,"overscrollBehavior","contain")}else r.style(e.target,"touchAction","none")}}),r.addEventListener(t,"touchmove",e=>{if(e.target instanceof HTMLElement){if(i(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),r.add(()=>{var e;n!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,n),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{},{before(e){var r;let{doc:n}=e,i=n.documentElement;t=(null!=(r=n.defaultView)?r:window).innerWidth-i.clientWidth},after(e){let{doc:r,d:n}=e,i=r.documentElement,o=i.clientWidth-i.offsetWidth,a=t-o;n.style(i,"paddingRight","".concat(a,"px"))}},{before(e){let{doc:t,d:r}=e;r.style(t.documentElement,"overflow","hidden")}}];a.forEach(e=>{let{before:t}=e;return null==t?void 0:t(o)}),a.forEach(e=>{let{after:t}=e;return null==t?void 0:t(o)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}},o=c(),a=new Set,{getSnapshot:()=>o,subscribe:e=>(a.add(e),()=>a.delete(e)),dispatch(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let i=d[e].call(o,...r);i&&(o=i,a.forEach(e=>e()))}});et.subscribe(()=>{let e=et.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;
2(n&&!e||!n&&e)&&et.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&et.dispatch("TEARDOWN",r)}});var er=r(13114);let en=new Map,ei=new Map;function eo(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,F.e)(()=>{var r;if(!t)return;let n="function"==typeof e?e():e.current;if(!n)return;let i=null!=(r=ei.get(n))?r:0;return ei.set(n,i+1),0!==i||(en.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0),function(){var e;if(!n)return;let t=null!=(e=ei.get(n))?e:1;if(1===t?ei.delete(n):ei.set(n,t-1),1!==t)return;let r=en.get(n);r&&(null===r["aria-hidden"]?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert,en.delete(n))}},[e,t])}var ea=r(44441),es=r(20476);let el=(0,h.createContext)(()=>{});el.displayName="StackContext";var eu=((s=eu||{})[s.Add=0]="Add",s[s.Remove=1]="Remove",s);function ec(e){let{children:t,onUpdate:r,type:n,element:i,enabled:o}=e,a=(0,h.useContext)(el),s=(0,g.z)(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];null==r||r(...t),a(...t)});return(0,F.e)(()=>{let e=void 0===o||!0===o;return e&&s(0,n,i),()=>{e&&s(1,n,i)}},[s,n,i,o]),h.createElement(el.Provider,{value:s},t)}var ed=r(83596),ef=r(12508),eh=r(72118),ep=((l=ep||{})[l.Open=0]="Open",l[l.Closed=1]="Closed",l),em=((u=em||{})[u.SetTitleId=0]="SetTitleId",u);let eg={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},ey=(0,h.createContext)(null);function ev(e){let t=(0,h.useContext)(ey);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Dialog /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ev),t}return t}function eb(e,t){return(0,R.E)(t.type,eg,e,t)}ey.displayName="DialogContext";let ew=M.AN.RenderStrategy|M.AN.Static,e_=Object.assign((0,M.yV)(function(e,t){let r,n,i,o,a,s=(0,er.M)(),{id:l="headlessui-dialog-".concat(s),open:u,onClose:c,initialFocus:d,role:f="dialog",__demoMode:p=!1,...m}=e,[y,b]=(0,h.useState)(0),w=(0,h.useRef)(!1);f="dialog"===f||"alertdialog"===f?f:(w.current||(w.current=!0,console.warn("Invalid role [".concat(f,"] passed to <Dialog />. Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let _=(0,es.oJ)();void 0===u&&null!==_&&(u=(_&es.ZM.Open)===es.ZM.Open);let x=(0,h.useRef)(null),S=(0,O.T)(x,t),T=E(x),k=e.hasOwnProperty("open")||null!==_,P=e.hasOwnProperty("onClose");if(!k&&!P)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!k)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!P)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof u)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(u));if("function"!=typeof c)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(c));let j=u?0:1,[D,I]=(0,h.useReducer)(eb,{titleId:null,descriptionId:null,panelRef:(0,h.createRef)()}),N=(0,g.z)(()=>c(!1)),U=(0,g.z)(e=>I({type:0,id:e})),z=!!(0,C.H)()&&!p&&0===j,B=y>1,V=null!==(0,h.useContext)(ey),[q,W]=(r=(0,h.useContext)(H),n=(0,h.useRef)([]),i=(0,g.z)(e=>(n.current.push(e),r&&r.register(e),()=>o(e))),o=(0,g.z)(e=>{let t=n.current.indexOf(e);-1!==t&&n.current.splice(t,1),r&&r.unregister(e)}),a=(0,h.useMemo)(()=>({register:i,unregister:o,portals:n}),[i,o,n]),[n,(0,h.useMemo)(()=>function(e){let{children:t}=e;return h.createElement(H.Provider,{value:a},t)},[a])]),{resolveContainers:Z,mainTreeNodeRef:G,MainTreeNode:K}=function(){var e;let{defaultContainers:t=[],portals:r,mainTreeNodeRef:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=(0,h.useRef)(null!=(e=null==n?void 0:n.current)?e:null),o=E(i),a=(0,g.z)(()=>{var e,n,a;let s=[];for(let e of t)null!==e&&(e instanceof HTMLElement?s.push(e):"current"in e&&e.current instanceof HTMLElement&&s.push(e.current));if(null!=r&&r.current)for(let e of r.current)s.push(e);for(let t of null!=(e=null==o?void 0:o.querySelectorAll("html > *, body > *"))?e:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&"headlessui-portal-root"!==t.id&&(t.contains(i.
2current)||t.contains(null==(a=null==(n=i.current)?void 0:n.getRootNode())?void 0:a.host)||s.some(e=>t.contains(e))||s.push(t));return s});return{resolveContainers:a,contains:(0,g.z)(e=>a().some(t=>t.contains(e))),mainTreeNodeRef:i,MainTreeNode:(0,h.useMemo)(()=>function(){return null!=n?null:h.createElement(A._,{features:A.A.Hidden,ref:i})},[i,n])}}({portals:q,defaultContainers:[{get current(){var X;return null!=(X=D.panelRef.current)?X:x.current}}]}),Q=null!==_&&(_&es.ZM.Closing)===es.ZM.Closing,ee=!V&&!Q&&z;eo((0,h.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==T?void 0:T.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(G.current)&&e instanceof HTMLElement))?t:null},[G]),ee);let en=!!B||z;eo((0,h.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==T?void 0:T.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(G.current)&&e instanceof HTMLElement))?t:null},[G]),en);let ei=!(!z||B);(0,ea.O)(Z,e=>{e.preventDefault(),N()},ei);let el=!(B||0!==j);v(null==T?void 0:T.defaultView,"keydown",e=>{el&&(e.defaultPrevented||e.key===eh.R.Escape&&(e.preventDefault(),e.stopPropagation(),N()))}),function(e,t){var r;let n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];r=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],o]}},n=J(et.subscribe,et.getSnapshot,et.getSnapshot),(i=e?n.get(e):void 0)&&i.c
2ount,(0,F.e)(()=>{if(!(!e||!t))return et.dispatch("PUSH",e,r),()=>et.dispatch("POP",e,r)},[t,e])}(T,!(Q||0!==j||V),Z),(0,h.useEffect)(()=>{if(0!==j||!x.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&N()}});return e.observe(x.current),()=>e.disconnect()},[j,x,N]);let[ed,ep]=(0,ef.f)(),em=(0,h.useMemo)(()=>[{dialogState:j,close:N,setTitleId:U},D],[j,D,N,U]),eg=(0,h.useMemo)(()=>({open:0===j}),[j]),ev={ref:S,id:l,role:f,"aria-modal":0===j||void 0,"aria-labelledby":D.titleId,"aria-describedby":ed};return h.createElement(ec,{type:"Dialog",enabled:0===j,element:x,onUpdate:(0,g.z)((e,t)=>{"Dialog"===t&&(0,R.E)(e,{[eu.Add]:()=>b(e=>e+1),[eu.Remove]:()=>b(e=>e-1)})})},h.createElement($,{force:!0},h.createElement(Y,null,h.createElement(ey.Provider,{value:em},h.createElement(Y.Group,{target:x},h.createElement($,{force:!1},h.createElement(ep,{slot:eg,name:"Dialog.Description"},h.createElement(L,{initialFocus:d,containers:Z,features:z?(0,R.E)(B?"parent":"leaf",{parent:L.features.RestoreFocus,leaf:L.features.All&~L.features.FocusLock}):L.features.None},h.createElement(W,null,(0,M.sY)({ourProps:ev,theirProps:m,slot:eg,defaultTag:"div",features:ew,visible:0===j,name:"Dialog"}))))))))),h.createElement(K,null))}),{Backdrop:(0,M.yV)(function(e,t){let r=(0,er.M)(),{id:n="headlessui-dialog-backdrop-".concat(r),...i}=e,[{dialogState:o},a]=ev("Dialog.Backdrop"),s=(0,O.T)(t);(0,h.useEffect)(()=>{if(null===a.panelRef.current)throw Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[a.panelRef]);let l=(0,h.useMemo)(()=>({open:0===o}),[o]);return h.createElement($,{force:!0},h.createElement(Y,null,(0,M.sY)({ourProps:{ref:s,id:n,"aria-hidden":!0},theirProps:i,slot:l,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,M.yV)(function(e,t){let r=(0,er.M)(),{id:n="headlessui-dialog-panel-".concat(r),...i}=e,[{dialogState:o},a]=ev("Dialog.Panel"),s=(0,O.T)(t,a.panelRef),l=(0,h.useMemo)(()=>({open:0===o}),[o]),u=(0,g.z)(e=>{e.stopPropagation()});return(0,M.sY)({ourProps:{ref:s,id:n,onClick:u},theirProps:i,slot:l,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,M.yV)(function(e,t){let r=(0,er.M)(),{id:n="headlessui-dialog-overlay-".concat(r),...i}=e,[{dialogState:o,close:a}]=ev("Dialog.Overlay"),s=(0,O.T)(t),l=(0,g.z)(e=>{if(e.target===e.currentTarget){if((0,ed.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),a()}}),u=(0,h.useMemo)(()=>({open:0===o}),[o]);return(0,M.sY)({ourProps:{ref:s,id:n,"aria-hidden":!0,onClick:l},theirProps:i,slot:u,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,M.yV)(function(e,t){let r=(0,er.M)(),{id:n="headlessui-dialog-title-".concat(r),...i}=e,[{dialogState:o,setTitleId:a}]=ev("Dialog.Title"),s=(0,O.T)(t);(0,h.useEffect)(()=>(a(n),()=>a(null)),[n,a]);let l=(0,h.useMemo)(()=>({open:0===o}),[o]);return(0,M.sY)({ourProps:{ref:s,id:n},theirProps:i,slot:l,defaultTag:"h2",name:"Dialog.Title"})}),Description:ef.d});var ex=r(51526),eE=r(21016),eC=r(93967),eO=r.n(eC);let eS={show:{opacity:1,transition:{duration:0,when:"beforeChildren"}},hide:{opacity:0,transition:{duration:0,when:"afterChildren"}}},eT={show:{opacity:1,transition:{duration:.6,ease:[.16,1,.3,1]}},hide:{opacity:0,transition:{duration:.6,ease:[.16,1,.3,1]}}},ek={show:{x:0,transition:{duration:.6,ease:[.16,1,.3,1]}},hide:{x:"100%",transition:{duration:.6,ease:[.16,1,.3,1]}}};var eA=e=>{var t;let{isOpen:r=!1,variants:n=ek,backdrop:i={show:!0,variants:eT},className:o,onOpen:a=()=>{},onClose:s=()=>{},children:l,...u}=e;return(0,f.jsx)(ex.M,{mode:"wait",children:r&&(0,f.jsxs)(e_,{static:!0,as:eE.m.div,initial:"hide",animate:"show",exit:"hide",variants:eS,open:r,onClose:s,onAnimationComplete:e=>{"show"===e&&a()},children:[(null==i?void 0:i.show)&&(0,f.jsx)(eE.m.div,{variants:null!==(t=null==i?void 0:i.variants)&&void 0!==t?t:eT,className:eO()("fixed inset-0 z-9",null==i?void 0:i.className)}),(0,f.jsx)(e_.Panel,{as:eE.m.div,variants:null!=n?n:ek,className:eO()("fixed inset-0 z-9 will-change-transform",o),...u,children:l})]})})}},21456:function(e,t,r){"use strict";var n=r(85893);r(67294);var i=r(21016);let o=(e,t)=>{switch(e){case"Logo":return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M0,0H20.087V2.982H11.723V24.715h-3.359V2.982H0V0Z"}),(0,n.jsx)("path",{d:"M24.047,0h3.394V10.489h12.305V0h3.394V24.715h-3.394V13.505h-12.305v11.209h-3.394V0Z"}),(0,n.jsx)("path",{d:"M48.886,0h15.391l-.925,2.913h-11.106v7.576h10.181v2.948h-10.181v8.329h11.14l.994,2.948h-1
25.494V0Z"}),(0,n.jsx)("path",{d:"M0,34.463H4.559l10.901,19.264v-19.264h3.393v24.715h-4.045L3.36,39.021v20.156H0v-24.715Z"}),(0,n.jsx)("path",{d:"M33.878,34.463h3.016l10.797,24.715h-3.428l-2.64-5.965h-12.477l-2.64,5.965h-3.462l10.832-24.715Zm1.509,4.422l-4.936,11.277h9.837l-4.901-11.277Z"}),(0,n.jsx)("path",{d:"M46.641,34.463h20.087v2.982h-8.364v21.732h-3.359v-21.732h-8.364v-2.982Z"}),(0,n.jsx)("path",{d:"M70.921,34.463h3.393v24.715h-3.393v-24.715Z"}),(0,n.jsx)("path",{d:"M91.028,33.88c6.925,0,11.655,5.141,11.655,12.854,0,11.277-8.261,13.265-11.792,13.265-7.198,0-11.689-5.073-11.689-13.197,0-8.021,4.833-12.923,11.826-12.923Zm-8.227,13.163c0,5.896,3.325,9.975,8.124,9.975,4.97,0,8.158-4.045,8.158-10.318,0-5.93-3.188-9.803-8.056-9.803-5.073,0-8.227,3.873-8.227,10.146Z"}),(0,n.jsx)("path",{d:"M107.388,34.463h4.559l10.901,19.264v-19.264h3.393v24.715h-4.045l-11.449-20.156v20.156h-3.36v-24.715Z"}),(0,n.jsx)("path",{d:"M141.267,34.463h3.016l10.797,24.715h-3.428l-2.64-5.965h-12.477l-2.64,5.965h-3.462l10.832-24.715Zm1.508,4.422l-4.936,11.277h9.838l-4.902-11.277Z"}),(0,n.jsx)("path",{d:"M159.281,34.463h3.393v21.766h11.826v2.948h-15.219v-24.715Z"})]});case"Cherry Tree":return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M24.5,55.479c1.85-.487,3.338,.162,3.9,1.75,.675,1.912-.438,3.525-3.037,4.438-2.625,.925-4.487,.362-5.175-1.575-.35-.987-.225-1.888,.375-2.612,.388-.487,.862-.8,1.737-1.188l.688,1.562c-.675,.287-.938,.438-1.15,.688-.274,.275-.367,.683-.237,1.05,.3,.85,1.25,.9,3.237,.2,1.8-.638,2.425-1.237,2.125-2.088-.225-.638-.85-.812-2-.562l-.463-1.662Z",fill:t}),(0,n.jsx)("path",{d:"M19.287,43.092l3.3,.825,.5-1.975-3.3-.825,.45-1.787,8.188,2.062-.45,1.787-3.35-.838-.5,1.975,3.35,.838-.45,1.787-8.188-2.062,.45-1.787Z",fill:t}),(0,n.jsx)("path",{d:"M30.588,24.892l1,1.062-2.388,2.25,1.338,1.413,1.862-1.75,1,1.062-1.862,1.75,1.425,1.512,2.388-2.25,1.037,1.1-3.725,3.525-5.8-6.138,3.725-3.537Z",fill:t}),(0,n.jsx)("path",{d:"M43.912,18.904c1.113-.225,1.5-.212,2.05,.05,.662,.325,1.125,.987,1.3,1.9,.213,1.05,0,1.725-.738,2.388l2.25,3.312-1.988,.4-1.75-3.05-.912,.175,.65,3.263-1.812,.362-1.65-8.288,2.6-.512Zm-.05,3.837l.8-.163c.7-.138,.988-.638,.825-1.413-.075-.4-.275-.712-.55-.862-.188-.1-.425-.125-.825-.038l-.725,.138,.475,2.337Z",fill:t}),(0,n.jsx)("path",{d:"M61.738,20.529c1.062,.425,1.363,.638,1.7,1.15,.375,.625,.412,1.438,.062,2.3-.4,1-.95,1.45-1.925,1.612l.088,4-1.887-.75,.188-3.513-.863-.337-1.225,3.087-1.713-.688,3.125-7.85,2.45,.988Zm-2.125,3.188l.75,.3c.662,.263,1.175,0,1.463-.737,.15-.375,.162-.737,.012-1.013-.1-.188-.287-.337-.662-.487l-.688-.275-.875,2.212Z",fill:t}),(0,n.jsx)("path",{d:"M74.688,30.092l-1.762,2.8,3.238-.838,1.088,1.45-5.312,1.037-2.875,2.138-1.1-1.487,2.863-2.138,2.637-4.612,1.225,1.65Z",fill:t}),(0,n.jsx)("path",{d:"M79.775,60.679l-1.525-.412,.45-1.662-6.613-1.812,.488-1.8,6.613,1.812,.45-1.625,1.525,.412-1.387,5.087Z",fill:t}),(0,n.jsx)("path",{d:"M71.762,72.667c-.825,.787-1.15,.975-1.762,1.05-.725,.075-1.475-.238-2.113-.912-.738-.775-.925-1.463-.65-2.412l-3.675-1.6,1.475-1.4,3.113,1.637,.675-.637-2.287-2.412,1.338-1.275,5.812,6.125-1.925,1.837Zm-2-3.275l-.588,.562c-.512,.488-.5,1.062,.05,1.637,.228,.276,.567,.437,.925,.438,.213-.012,.425-.125,.713-.4l.537-.5-1.638-1.737Z",fill:t}),(0,n.jsx)("path",{d:"M53.475,81.254l-.287-1.425,3.213-.65-.387-1.912-2.512,.5-.287-1.425,2.512-.5-.412-2.037-3.213,.65-.3-1.475,5.025-1.012,1.662,8.275-5.013,1.012Z",fill:t}),(0,n.jsx)("path",{d:"M36.775,78.504l.487-1.375,3.087,1.1,.65-1.838-2.412-.863,.488-1.375,2.412,.863,.7-1.963-3.088-1.1,.5-1.425,4.825,1.725-2.825,7.95-4.825-1.7Z",fill:t}),(0,n.jsx)("polygon",{points:"47.938 38.729 53.675 52.717 53.675 38.729 57.525 38.729 57.525 61.267 53.1 61.267 46.275 44.954 46.275 61.267 42.425 61.267 42.425 38.729 47.938 38.729",fill:t})]});case"Cherry Tree Animated":return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("polygon",{points:"596 309.834 641.9 421.734 641.9 309.834 672.7 309.834 672.7 490.134 637.3 490.134 582.7 359.634 582.7 490.134 551.9 490.134 551.9 309.834 596 309.834",fill:t}),(0,n.jsxs)(i.m.g,{animate:{rotate:360},transition:{ease:"linear",duration:12,repeat:1/0},style:{transformBox:"fill-box",originX:"center",originY:"center"},children:[(0,n.jsx)("path",{d:"M408.5,443.834c14.8-3.9,26.7,1.3,31.2,14,5.4,15.3-3.5,28.2-24.3,35.5-21,7.4-35.9,2.9-41.4-12.6-2.8-7.9-1.8-15.1,3-20.9,3.1-3.9,6.9-6.4,13.9-9.5l5.5,12.5c-5.4,2.3-7.5,3.5-9.2,5.5a8.091,8.091,0,0,0-1.9,8.4c2.4,6.8,10,7.2,25.9,1.6,14.4-5.1,19.4-9.9,17-16.7-1.8-5.1-6.8-6.5-16-4.5Z",fill:t}),(0,n.jsx)("path",{d:"M366.8,344.734l26.4,6.6,4-15.8-26.4-6.6,3.6-14.3,65.5,16.5-3.6,14.3-26.8-6.7-4,15.8,26.8,6.7-3.6,14.3-65.5-16.5Z",fill:t}),(0,n.jsx)("path",{d:"M457.2,199.134l8,8.5-19.1,18,10.7,11.3,14.9-14,8,8.5-14.9,14,11.4,12.1,19.1-18,8.3,8.8-29.8,28.2-46.4-49.1Z",fill:t}),(0,n.jsx)("path",{d:"M563.8,151.234c8.9-1.8,12-1.7,16.4.4,5.3,2.6,9,7.9,10.4,15.2,1.7,8.4,0,13.8-5.9,19.1l18,26.5-15.9,3.2-14-24.4-7.3,1.4,5.2,26.1-14.5,2.9-13.2-66.3Zm-0.4,30.7,6.4-1.3c5.6-1.1,7.9-5.1,6.6-11.3-0.6-3.2-2.2-5.7-4.4-6.9-1.5-.8-3.4-1-6.6-0.3l-5.8,1.1Z",fill:t}),(0,n.jsx)("path",{d:"M706.4,164.234c8.5,3.4,10.9,5.1,13.6,9.2,3,5,3.3,11.5.5,18.4-3.2,8-7.6,11.6-15.4,12.9l0.7,32-15.1-6,1.5-28.1-6.9-2.7-9.8,24.7-13.7-5.5,25-62.8Zm-1
27,25.5,6,2.4c5.3,2.1,9.4,0,11.7-5.9,1.2-3,1.3-5.9.1-8.1-0.8-1.5-2.3-2.7-5.3-3.9l-5.5-2.2Z",fill:t}),(0,n.jsx)("path",{d:"M810,240.734l-14.1,22.4,25.9-6.7,8.7,11.6-42.5,8.3-23,17.1-8.8-11.9,22.9-17.1,21.1-36.9Z",fill:t}),(0,n.jsx)("path",{d:"M850.7,485.434l-12.2-3.3,3.6-13.3-52.9-14.5,3.9-14.4,52.9,14.5,3.6-13,12.2,3.3Z",fill:t}),(0,n.jsx)("path",{d:"M786.6,581.334c-6.6,6.3-9.2,7.8-14.1,8.4-5.8.6-11.8-1.9-16.9-7.3-5.9-6.2-7.4-11.7-5.2-19.3l-29.4-12.8,11.8-11.2,24.9,13.1,5.4-5.1-18.3-19.3,10.7-10.2,46.5,49Zm-16-26.2-4.7,4.5c-4.1,3.9-4,8.5.4,13.1a9.609,9.609,0,0,0,7.4,3.5c1.7-.1,3.4-1,5.7-3.2l4.3-4Z",fill:t}),(0,n.jsx)("path",{d:"M640.3,650.034l-2.3-11.4,25.7-5.2-3.1-15.3-20.1,4-2.3-11.4,20.1-4-3.3-16.3-25.7,5.2-2.4-11.8,40.2-8.1,13.3,66.2Z",fill:t}),(0,n.jsx)("path",{d:"M506.7,628.034l3.9-11,24.7,8.8,5.2-14.7-19.3-6.9,3.9-11,19.3,6.9,5.6-15.7-24.7-8.8,4-11.4,38.6,13.8-22.6,63.6Z",fill:t})]})]});case"Play":return(0,n.jsx)("polygon",{points:"31.934 26.442 72.233 50 31.934 73.558 31.934 26.442",fill:t});case"Pause":return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("polygon",{points:"69.093 80 69.093 20 58.193 20 58.193 80 69.093 80",fill:t}),(0,n.jsx)("polygon",{points:"41.807 80 41.807 20 30.907 20 30.907 80 41.807 80",fill:t})]});case"Checkmark":return(0,n.jsx)("path",{fill:"none",stroke:t,strokeWidth:"12",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:"M12.1 52.1l24.4 24.4 53-53"});case"Arrow":return(0,n.jsx)("polyline",{points:"33 7.574 75.426 50 33 92.426",fill:"none",stroke:t,vectorEffect:"non-scaling-stroke"});case"Plus":return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("line",{x1:"50",y1:"100",x2:"50",fill:"none",stroke:t,vectorEffect:"non-scaling-stroke"}),(0,n.jsx)("line",{x1:"100",y1:"50",y2:"50",fill:"none",stroke:t,vectorEffect:"non-scaling-stroke"})]});case"External":return(0,n.jsx)("polygon",{points:"6.04 0 6.04 17.083 70.836 17.083 0 87.92 12.08 100 82.916 29.164 82.916 93.96 100 93.96 100 0 6.04 0",fill:t});default:return(0,n.jsx)("path",{})}};t.Z=e=>{let{id:t="",name:r,title:i,color:a,viewBox:s="0 0 100 100",custom:l,...u}=e,c="".concat(r.replace(/[^A-Z0-9]+/gi,"-").toLowerCase(),"-").concat(t),d={xmlns:"http://www.w3.org/2000/svg",viewBox:null!=s?s:"0 0 100 100","aria-labelledby":c,focusable:"false"},f='<title id="'.concat(c,'">').concat(null!=i?i:r,"</title>");return l?(0,n.jsx)("svg",{dangerouslySetInnerHTML:l?{__html:f+l}:null,...d,...u}):(0,n.jsxs)("svg",{...d,...u,children:[(0,n.jsx)("title",{id:c,children:null!=i?i:r}),o(r,a)]})}},48191:function(e,t,r){"use strict";var n=r(85893),i=r(67294),o=r(25675),a=r.n(o),s=r(93967),l=r.n(s),u=r(96548);t.Z=i.memo(e=>{let{alt:t,src:r,width:o,height:s,fill:c,quality:d=95,containerClassName:f,noAnimation:h,onLoadingComplete:p=()=>{},...m}=e;if(!r)return null;let g="string"==typeof r,y="number"==typeof o&&"number"==typeof s?s/o*100:g?null:100/((null==r?void 0:r.customRatio)||(null==r?void 0:r.aspectRatio)),v=null!=o?o:2e3,b=(null!=s?s:y)?Math.round(v*y)/100:null,w=g?r:(0,u.ZA)(r,{width:v,height:b,quality:d}),_=null!=t?t:null==r?void 0:r.alt,x=g?{}:{loader:e=>{let{width:t,quality:n}=e;return(0,u.ZA)(r,{width:t,height:Math.round(t*y)/100,quality:n})+"&width=".concat(t)}},[E,C]=(0,i.useState)(!1);return(0,n.jsx)("div",{className:l()("block transition-opacity duration-200 ease-linear",f,{"opacity-0":!E&&!h,"absolute inset-0":c}),children:(0,n.jsx)(a(),{alt:_,src:w,quality:d,fill:c,onLoad:()=>{C(!0),p()},...c?{}:{width:v,height:b},...x,...m})})})},88003:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(85893);r(67294);var i=r(41664),o=r.n(i);r(11163),r(93967);let a=e=>{let{type:t,slug:r,hash:n,query:i}=e,o=[{memberPage:"members",memberIndex:"members",memberSignIn:"members/sign-in",memberForgotPassword:"members/sign-in/forgot-password",memberRestoreAccess:"members/restore-access",memberSignUp:"members/sign-up",memberSignUpVerifyEmail:"members/sign-up/verify-email",memberAccount:"members/account",memberSignOut:"members/sign-out",memberStore:"members/store",product:"members/store"}[null!=t?t:""],r].filter(Boolean).join("/"),a=i?"?".concat(Object.keys(i).map(e=>"".concat(e,"=").concat(i[e])).join("&")):"";return"/".concat(o).concat(a).concat(n?"#".concat(n):"")};var s=r(96548),l=e=>{let{href:t,external:r=!1,shallow:i=!1,className:l,children:u,...c}=e,d="object"==typeof t&&null!==t?a(t):t,[f,h]=(0,s.oM)(),p=(null==d?void 0:d.match("^mailto:"))?{onClick:e=>{e.preventDefault(),h(d.split("mailto:")[1])}}:{};return(0,n.jsx)(o(),{href:d,scroll:!1,shallow:i,target:r&&!d.match("^mailto:|^tel:")?"_blank":null,rel:r?"noopener noreferrer":null,className:l,...p,...c,children:f?"Copied!":u})}},87301:function(e,t,r){"use strict";var n=r(85893),i=r(67294),o=r(93967),a=r.n(o),s=r(96548);let l=i.memo(e=>{let{defaultValue:t=1,value:r,onChange:o,maxValue:l,className:u,size:c}=e,d=void 0!==r,f=void 0!==t,[h,p]=(0,i.useState)(f?t:""),m=d?r:h,g=(0,i.useCallback)(e=>{let t=l?(0,s.l$)(e,1,l):e;t<1||t>l||isNaN(t)||(o&&o(t),d||p(t))},[l,o]);return(0,n.jsxs)("div",{className:a()("inline-grid grid-cols-[auto_auto_auto] border",u),children:[(0,n.jsx)("button",{"aria-label":"Decrease quantity by one",onClick:()=>g(m-1,-1),className:a()("btn is-muted min-w-0",{"btn-small":"mini"!==c,"btn-mini":"mini"===c}),children:(0,n.jsx)("span",{className:"text-20",children:"-"})}),(0,n.jsx)("div",{className:"relative overflow-hidden border-x",children:(0,n.jsx)("div",{className:"relative flex h-full w-full",children:(0,n.jsx)("input",{name:"quantity","aria-label":"Manually enter quantity",onChange:e=>g(parseInt(e.currentTarget.value,10)),onBlur:()=>isNaN(m)&&g(1),type:"number",inputMode:"numeric",min:"1",value:m,className:a()("relative h-full w-full appearance-none rounded-none border-0 bg-transparent p-5 text-center text-current outline-none",{"text-16":"mini"!==c,"text-14":"mini"===c})})})}),(0,n.jsx)("button",{"aria-label":"Increase quantity by one",onClick:()=>g(m+1,1),className:a()("btn is-muted min-w-0",{"btn-small":"mini"!==c,"btn-mini":"mini"===c}),children:(0,n.jsx)("span",{className:"text-20",children:"+"})})]})});t.Z=l},56475:function(e,t,r){"use strict";r.d(t,{Hu:function(){return d}});var n=r(85893),i=r(67294),o=r(11163),a=r(48583),s=r(26038),l=r(39664),u=r(96548),c=r(62088);let d=200;s.p8.registerPlugin(l.ScrollToPlugin),t.ZP=e=>{let{children:t}=e,r=(0,o.useRouter)(),l=(0,a.b9)(c.Qr);return(0,i.useEffect)(()=>{let e=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,n=t?null===(e=new URL(t,window.location.origin).hash)||void 0===e?void 0:e.slice(1):null;n&&setTimeout(()=>{s.p8.to(window,{duration:1,scrollTo:{y:"#section-".concat(n),offsetY:40},ease:"expo.out",onComplete:()=>{var e,t;null===(t=document.getElementById("section-".concat(n)))||void 0===t||null===(e=t.focus)||void 0===e||e.call(t,{preventScroll:!0,focusVisible:!1})}})},r?0:400)},t=(e,t)=>{let{shallow:r}=t;r||l(!0)},n=(t,r)=>{let{shallow:n}=r;setTimeout(()=>{l(!1),setTimeout(()=>e(t,n),d)},d)},i=()=>
2{l(!1)};return setTimeout(()=>e(r.asPath),d),r.events.on("routeChangeStart",t),r.events.on("routeChangeComplete",n),r.events.on("hashChangeComplete",e),r.events.on("routeChangeError",i),()=>{r.events.off("routeChangeStart",t),r.events.off("routeChangeComplete",n),r.events.off("hashChangeComplete",e),r.events.off("routeChangeError",i)}},[]),(0,u.p2)(r,d),(0,n.jsx)(n.Fragment,{children:t})}},66438:function(e,t,r){"use strict";var n=r(85893);r(67294);var i=r(93967),o=r.n(i);t.Z=e=>{let{className:t}=e;return(0,n.jsxs)("div",{className:o()("absolute top-1/2 left-1/2 -mt-30 -ml-30 flex h-60 w-60 flex-col",t),children:[(0,n.jsx)("span",{className:"m-auto block font-sans text-30 font-medium text-lightPink ct:text-blue",children:"N"}),(0,n.jsx)("span",{className:"absolute inset-0 animate-spin rounded-full border-2 border-lightPink/10 border-t-lightPink animate-duration-[0.6s] ct:border-blue/10 ct:border-t-blue"})]})}},62088:function(e,t,r){"use strict";r.d(t,{D0:function(){return a},Qr:function(){return i},p1:function(){return s},yr:function(){return o}});var n=r(15103);let i=(0,n.cn)(!1),o=(0,n.cn)(!1),a=(0,n.cn)(!1);(0,n.cn)(null);let s=(0,n.cn)(!1)},71308:function(e,t,r){"use strict";r.d(t,{_i:function(){return o},y0:function(){return a}});var n=r(92729),i=r(5493);let o=(e,t)=>n.Z.get(e,t).then(e=>e.data),a=e=>{let{url:t,params:r}=e;return n.Z.get(t,{params:r,paramsSerializer:e=>i.Z.stringify(e,{arrayFormat:"comma"})}).then(e=>e.data)}},96548:function(e,t,r){"use strict";r.d(t,{M2:function(){return I},ZA:function(){return W},Uu:function(){return F},l$:function(){return U},tm:function(){return K},g3:function(){return Z},m:function(){return L},jU:function(){return z},TL:function(){return $},Wv:function(){return G},Zg:function(){return N},o7:function(){return H},oM:function(){return D},f3:function(){return M},iA:function(){return Y},UO:function(){return V},D9:function(){return R},p2:function(){return q},iP:function(){return B},_p:function(){return function e(t){let{data:r,condition:n,output:i}=t;if(null!==r){if(n(r)&&i(r),"array"==typeof r)r.forEach(t=>e({data:t,condition:n,output:i}));else if("object"==typeof r){let t=Object.values(r);for(let r=0;r<t.length;r++)e({data:t[r],condition:n,output:i})}}}}}),r(85893);var n=r(67294);r(73935);var i=r(12096),o=r(11163),a=r(5493),s=r(79402),l=r(86926),u=r.n(l),c=r(5068),d=r(74927),f=r(30503),h=r(10046),p=r(61688);let m=()=>{},g=m(),y=Object,v=e=>e===g,b=e=>"function"==typeof e,w=new WeakMap,_=e=>y.prototype.toString.call(e),x=(e,t)=>e===`[object ${t}]`,E=0,C=e=>{let t,r;let n=typeof e,i=_(e),o=x(i,"Date"),a=x(i,"RegExp"),s=x(i,"Object");if(y(e)!==e||o||a)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=w.get(e))return t;if(t=++E+"~",w.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=C(e[r])+",";w.set(e,t)}if(s){t="#";let n=y.keys(e).sort();for(;!v(r=n.pop());)v(e[r])||(t+=r+":"+C(e[r])+",");w.set(e,t)}}return t},O=e=>{if(b(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?C(e):"",t]},S=e=>O(e?e(0,null):null)[0],T=Promise.resolve(),k=(0,h.xD)(c.ZP,e=>(t,r,i)=>{let o;let a=(0,n.useRef)(!1),{cache:s,initialSize:l=1,revalidateAll:u=!1,persistSize:c=!1,revalidateFirstPage:h=!0,revalidateOnMount:m=!1,parallel:g=!1}=i,[,,,y]=d.b.get(d.c);try{(o=S(t))&&(o=f.U+o)}catch(e){}let[v,b,w]=(0,d.z)(s,o),_=(0,n.useCallback)(()=>(0,d.e)(v()._l)?l:v()._l,[s,o,l]);(0,p.useSyncExternalStore)((0,n.useCallback)(e=>o?w(o,()=>{e()}):()=>{},[s,o]),_,_);let x=(0,n.useCallback)(()=>{let e=v()._l;return(0,d.e)(e)?l:e},[o,l]),E=(0,n.useRef)(x());(0,d.u)(()=>{if(!a.current){a.current=!0;return}o&&b({_l:c?E.current:x()})},[o,s]);let C=m&&!a.current,O=e(o,async e=>{let n=v()._i,o=v()._r;b({_r:d.U});let a=[],l=x(),[c]=(0,d.z)(s,e),f=c().data,p=[],m=null;for(let e=0;e<l;++e){let[l,c]=(0,d.s)(t(e,g?null:m));if(!l)break;let[v,b]=(0,d.z)(s,l),w=v().data,_=u||n||(0,d.e)(w)||h&&!e&&!(0,d.e)(f)||C||f&&!(0,d.e)(f[e])&&!i.compare(f[e],w);if(r&&("function"==typeof o?o(w,c):_)){let t=async()=>{if(l in y){let e=y[l];delete y[l],w=await e}else w=await r(c);b({data:w,_k:c}),a[e]=w};g?p.push(t):await t()}else a[e]=w;g||(m=w)}return g&&await Promise.all(p.map(e=>e())),b({_i:d.U}),a},i),k=(0,n.useCallback)(function(e,t){let r="boolean"==typeof t?{revalidate:t}:t||{},n=!1!==r.revalidate;return o?(n&&((0,d.e)(e)?b({_i:!0,_r:r.revalidate}):b({_i:!1,_r:r.revalidate})),arguments.length?O.mutate(e,{...r,revalidate:n}):O.mutate()):T},[o,s]),A=(0,n.useCallback)(e=>{let r;if(!o)return T;let[,n]=(0,d.z)(s,o);if((0,d.a)(e)?r=e(x()):"number"==typeof e&&(r=e),"number"!=typeof r)return T;n({_l:r}),E.current=r;let i=[],[a]=(0,d.z)(s,o),l=null;for(let e=0;e<r;++e){let[r]=(0,d.s)(t(e,l)),[n]=(0,d.z)(s,r),o=r?n().data:d.U;if((0,d.e)(o))return k(a().data);i.push(o),l=o}return k(i)},[o,s,k,x]);return{size:x(),setSize:A,mutate:k,get data(){return O.data},get error(){return O.error},get isValidating(){return O.isValidating},get isLoading(){return O.isLoading}}});var A=r(71308),P=r(66642),j=r.n(P);function R(e){let t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=e}),t.current}
2function M(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t(!0)},[]),e}function D(){let[e,t]=(0,n.useState)(!1);async function r(e){return"clipboard"in navigator?await navigator.clipboard.writeText(e):document.execCommand("copy",!0,e)}return[e,e=>{r(e).then(()=>{t(!0),setTimeout(()=>{t(!1)},1e3)}).catch(()=>{t(!1)})}]}let I=e=>{let{condition:t,wrapper:r,children:n}=e;return t?r(n):n};function L(e,t){return!!e&&e.some(function(e){for(var r in e)if(r in t&&e[r]!=t[r])return!1;return!0})}function N(e){let t=parseFloat(e);if(!isNaN(t))return t}function U(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<t?t:e>r?r:e}function F(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e/100;if(!t&&r%1==0)return"".concat(r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","));{let e=r.toFixed(2).split(".");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),"".concat(e.join("."))}}let z=!0;function $(){if(z)return!!(navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&navigator.userAgent.match(/AppleWebKit/))}function B(){function e(){return{width:z?window.innerWidth:0,height:z?window.innerHeight:0}}let[t,r]=(0,n.useState)(e);return(0,n.useEffect)(()=>{if(z)return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t);function t(){r(e())}},[]),t}function V(e){var t;let r=(0,o.useRouter)();(null===(t=r.query)||void 0===t?void 0:t.slug)&&(Array.isArray(r.query.slug)?r.query.slug.join("/"):r.query.slug);let i=Object.keys(r.query).length,a=e;return i&&(a=e.map(e=>r.query[e.name]?{...e,value:r.query[e.name]}:e)),[a,(0,n.useCallback)(t=>{let n=t.filter(t=>{var r;return t.value!==(null===(r=e.find(e=>e.name===t.name))||void 0===r?void 0:r.value)}).reduce((e,t)=>{let{name:r,value:n}=t;return e[r]=n,e},{}),i=Object.keys(r.query).filter(e=>!t.find(t=>t.name===e)).reduce((e,t)=>(e[t]=r.query[t],e),{});r.replace({pathname:r.pathname,query:{...i,...n}},void 0,{shallow:!0})},[r,e])]}function q(e,t){let r=(0,n.useRef)({}),i=(e,t)=>{r.current={...r.current,[e]:t}},o=(e,r,n)=>{let i=r.current[e];setTimeout(()=>{requestAnimationFrame(()=>{window.scrollTo({top:i&&n?i:0})})},t+100)};(0,n.useEffect)(()=>{let t=!1;window.history.scrollRestoration="manual";let n=t=>{i(e.asPath,window.scrollY),delete t.returnValue},a=()=>{i(e.asPath,window.scrollY)},s=(e,n)=>{let{shallow:i}=n;i||(o(e,r,t),t=!1)};return window.addEventListener("beforeunload",n),e.events.on("routeChangeStart",a),e.events.on("routeChangeComplete",s),e.beforePopState(e=>(t=!0,e.options.scroll=!1,!0)),()=>{window.removeEventListener("beforeunload",n),e.events.off("routeChangeStart",a),e.events.off("routeChangeComplete",s),e.beforePopState(()=>!0)}},[])}function W(e,t){let{width:r,height:n,format:o,quality:a}=t,s=i.t3.image(e);return r&&(s=s.width(Math.round(r))),n&&(s=s.height(Math.round(n))),o&&(s=s.format(o)),a&&(s=s.quality(a)),s.fit("max").auto("format").url()}function H(){return u()(j()).theme}let Y=function(e){var t,r,n,i,o,s;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)throw Error("URL is required");let{data:c,error:d,size:f,setSize:h}=k(t=>"".concat(e,"?").concat(a.Z.stringify({...u,page:t+1,limit:l})),A._i),p=c?[].concat(...c.map(e=>e.items)):[],m=null!==(s=null==c?void 0:null===(t=c[c.length-1])||void 0===t?void 0:t.total)&&void 0!==s?s:0,g=!c&&!d||f>0&&c&&void 0===c[f-1],y=(null==c?void 0:null===(n=c[0])||void 0===n?void 0:null===(r=n.items)||void 0===r?void 0:r.length)===0||(null==c?void 0:null===(o=c[c.length-1])||void 0===o?void 0:null===(i=o.items)||void 0===i?void 0:i.length)<l||(null==p?void 0:p.length)===m;return{data:p,total:m,error:d,isLoading:g,isEnd:y,page:f,setPage:h}};function Z(e,t){let r=[e,t].filter(e=>e),n=(0,s.Z)(e).isSame((0,s.Z)(t),"year"),i=r.reduce((e,t)=>{var r;let n=(0,s.Z)(t).format("month-short");return e.find(e=>e.month===n)||e.push({month:n,dates:[]}),null===(r=e.find(e=>e.month===n).dates)||void 0===r||r.push(t),e},[]);return"".concat(i.map(e=>{let t=e.dates.map(e=>(0,s.Z)(e).format("{date-pad}"+(n?"":", {year}")));return"".concat(e.month," ").concat(t.join(" - "))}).join(" - ")).concat(n?(0,s.Z)(e).format(", {year}"):"")}function G(e){var t;let r=e.replace(/ - Cherry Tree Exclusive$/,"");return{headline:r.split(/ - | \(/)[0].trim(),subheadline:null===(t=r.split(/ - | \(/)[1])||void 0===t?void 0:t.trim().replace(")","")}}function K(e){let t=e.match(/([A-Z][a-z]+(?:\s[A-Z][a-z]+)?),\s([A-Z]{2})(?:\s|$)/);return t?{location:t[0],headline:e.replace(t[0],"").trim()}:{location:null,headline:e}}},12096:function(e,t,r){"use strict";r.d(t,{t3:function(){return rH}});let n=!(typeof navigator>"u")&&"ReactNative"===navigator.product,i={timeout:n?6e4:12e4},o=function(e){let t={...i,..."string"==typeof e?{url:e}:e};if(t.timeout=function e(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;let r=Number(t);return isNaN(r)?e(i.timeout):{connect:r,socket:r}}(t.timeout),t.query){let{url:e,searchParams:r}=function(e){let t=e.indexOf("?");if(-1===t)return{url:e,searchParams:new URLSearchParams};let r=e.slice(0,t),i=e.slice(t+1);if(!n)return{url:r,searchParams:new URLSearchParams(i)};if("function"!=typeof decodeURIComponent)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let o=new URLSearchParams;for(let e of i.split("&")){let[t,r]=e.split("=");t&&o.append(a(t),a(r||""))}return{url:r,searchParams:o}}(t.url);for(let[n,i]of Object.entries(t.query)){if(void 0!==i){if(Array.isArray(i))for(let e of i)r.append(n,e);else r.append(n,i)}let o=r.toString();o&&(t.url=`${e}?${o}`)}}return t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t};function a(e){return decodeURIComponent(e.replace(/\+/g," "))}let s=/^https?:\/\//i,l=function(e){if(!s.test(e.url))throw Error(`"${e.url}" is not a valid URL`)},u=["request","response","progress","error","abort"],c=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];var d,f,h,p,m,g,y=(d=function(){if(g)return m;g=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")};return m=function(t){if(!t)return{};for(var r=Object.create(null),n=e(t).split("\n"),i=0;i<n.length;i++){var o,a=n[i],s=a.indexOf(":"),l=e(a.slice(0,s)).toLowerCase(),u=e(a.slice(s+1));typeof r[l]>"u"?r[l]=u:(o=r[l],"[object Array]"===Object.prototype.toString.call(o))?r[l].push(u):r[l]=[r[l],u]}return r}}())&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d;class v{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#e;#t;#r;#n={};#i;#o={};#a;open(e,t,r){this.#e=e,this.#t=t,this.#r="",this.readyState=1,this.onreadystatechange?.(),this.#i=void 0}abort(){this.#i&&this.#i.abort()}getAllResponseHeaders(){return this.#r}setRequestHeader(e,t){this.#n[e]=t}setInit(e,t=!0){this.#o=e,this.#a=t}send(e){let t="arraybuffer"!==this.responseType,r={...this.#o,method:this.#e,headers:this.#n,body:e};"function"==typeof AbortController&&this.#a&&(this.#i=new AbortController,"u">typeof EventTarget&&this.#i.signal instanceof EventTarget&&(r.signal=this.#i.signal)),"u">typeof document&&(r.credentials=this.withCredentials?"include":"omit"),fetch(this.#t,r).then(e=>
2(e.headers.forEach((e,t)=>{this.#r+=`${t}: ${e}\r 3`}),this.status=e.status,this.statusText=e.statusText,this.readyState=3,this.onreadystatechange?.(),t?e.text():e.arrayBuffer())).then(e=>{"string"==typeof e?this.responseText=e:this.response=e,this.readyState=4,this.onreadystatechange?.()}).catch(e=>{"AbortError"!==e.name?this.onerror?.(e):this.onabort?.()})}}let b="function"==typeof XMLHttpRequest?"xhr":"fetch",w="xhr"===b?XMLHttpRequest:v,_=(e,t)=>{let r=e.options,n=e.applyMiddleware("finalizeOptions",r),i={},o=e.applyMiddleware("interceptRequest",void 0,{adapter:b,context:e});if(o){let e=setTimeout(t,0,null,o);return{abort:()=>clearTimeout(e)}}let a=new w;a instanceof v&&"object"==typeof n.fetch&&a.setInit(n.fetch,n.useAbortSignal??!0);let s=n.headers,l=n.timeout,u=!1,c=!1,d=!1;if(a.onerror=e=>{p(a instanceof v?e instanceof Error?e:Error(`Request error while attempting to reach ${n.url}`,{cause:e}):Error(`Request error while attempting to reach is ${n.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},a.ontimeout=e=>{p(Error(`Request timeout while attempting to reach ${n.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},a.onabort=()=>{h(!0),u=!0},a.onreadystatechange=function(){l&&(h(),i.socket=setTimeout(()=>f("ESOCKETTIMEDOUT"),l.socket)),!u&&a&&4===a.readyState&&0!==a.status&&function(){if(!(u||c||d)){if
3(0===a.status)return void p(Error("Unknown XHR error"));h(),c=!0,t(null,{body:a.response||(""===a.responseType||"text"===a.responseType?a.responseText:""),url:n.url,method:n.method,headers:y(a.getAllResponseHeaders()),statusCode:a.status,statusMessage:a.statusText})}}()},a.open(n.method,n.url,!0),a.withCredentials=!!n.withCredentials,s&&a.setRequestHeader)for(let e in s)s.hasOwnProperty(e)&&a.setRequestHeader(e,s[e]);return n.rawBody&&(a.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:n,adapter:b,request:a,context:e}),a.send(n.body||null),l&&(i.connect=setTimeout(()=>f("ETIMEDOUT"),l.connect)),{abort:function(){u=!0,a&&a.abort()}};function f(t){d=!0,a.abort();let r=Error("ESOCKETTIMEDOUT"===t?`Socket timed out on request to ${n.url}`:`Connection timed out on request to ${n.url}`);r.code=t,e.channels.error.publish(r)}function h(e){(e||u||a&&a.readyState>=2&&i.connect)&&clearTimeout(i.connect),i.socket&&clearTimeout(i.socket)}function p(e){if(c)return;h(!0),c=!0,a=null;let r=e||Error(`Network error while attempting to reach ${n.url}`);r.isNetworkError=!0,r.request=n,t(r)}},x=(e=[],t=_)=>(function e(t,r){let n=[],i=c.reduce((e,t)=>(e[t]=e[t]||[],e),{processOptions:[o],validateOptions:[l]});function a(e){let t;let n="object"==typeof e&&e.callSiteStack?e.callSiteStack:void 0,o=n?void 0:Error(),a=u.reduce((e,t)=>(e[t]=function(){let e=Object.create(null),t=0;return{publish:function(t){for(let r in e)e[r](t)},subscribe:function(r){let n=t++;return e[n]=r,function(){delete e[n]}}}}(),e),{}),s=function(e,t,...r){let n="onError"===e,o=t;for(let t=0;t<i[e].length&&(o=(0,i[e][t])(o,...r),!n||o);t++);return o},l=s("processOptions",e);s("validateOptions",l);let c={options:l,channels:a,applyMiddleware:s},d=a.request.subscribe(e=>{t=r(e,(t,r)=>((e,t,r)=>{let i=e,l=t;if(!i)try{l=s("onResponse",t,r)}catch(e){l=null,i=e}if(i=i&&s("onError",i,r)){if(i instanceof Error){let e=n?.stack||o?.stack;if("string"==typeof e){let t=e.split("\n").slice(n?1:2);t.length>0&&(i.stack+="\n"+t.join("\n"))}}a.error.publish(i)}else l&&a.response.publish(l)})(t,r,e))});a.abort.subscribe(()=>{d(),t&&t.abort()});let f=s("onReturn",a,c);return f===a&&a.request.publish(c),f}return a.use=function(e){if(!e)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&i.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return c.forEach(t=>{e[t]&&i[t].push(e[t])}),n.push(e),a},a.clone=()=>e(n,r),t.forEach(a.use),a})(e,t);var E,C,O,S,T,k=r(83454),A=r(21876).Buffer,P={exports:{}};T||(T=1,function(e,t){let r;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch{}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!e&&"u">typeof k&&"env"in k&&(e=k.env.DEBUG),e},t.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch{}}(),t.destroy=(r=!1,()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
3CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=(S?O:(S=1,O=function(e){function t(e){let n,i,o,a=null;function s(...e){if(!s.enabled)return;let r=Number(new Date),i=r-(n||r);s.diff=i,s.prev=n,s.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";o++;let i=t.formatters[n];if("function"==typeof i){let t=e[o];r=i.call(s,t),e.splice(o,1),o--}return r}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,r){let n=t(this.namespace+(typeof r>"u"?":":r)+e);return n.log=this.log,n}function n(e,t){let r=0,n=0,i=-1,o=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,o=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++o}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(n(e,r))return!1;for(let r of t.names)if(n(e,r))return!0;return!1},t.humanize=function(){if(C)return E;function e(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}return C=1,E=function(t,r){r=r||{};var n,i,o=typeof t;if("string"===o&&t.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(t);if("number"===o&&isFinite(t))return r.long?(i=Math.abs(t))>=864e5?e(t,i,864e5,"day"):i>=36e5?e(t,i,36e5,"hour"):i>=6e4?e(t,i,6e4,"minute"):i>=1e3?e(t,i,1e3,"second"):t+" ms":(n=Math.abs(t))>=864e5?Math.round(t/864e5)+"d":n>=36e5?Math.round(t/36e5)+"h":n>=6e4?Math.round(t/6e4)+"m":n>=1e3?Math.round(t/1e3)+"s":t+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}))(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(P,P.exports)),P.exports,Object.prototype.hasOwnProperty;let j=typeof A>"u"?()=>!1:e=>A.isBuffer(e);function R(e){return"[object Object]"===Object.prototype.toString.call(e)}let M=["boolean","string","number"],D={};"u">typeof globalThis?D=globalThis:"u">typeof window?D=window:"u">typeof global?D=global:"u">typeof self&&(D=self);var I=D;let L=(e={})=>{let t=e.implementation||Promise;if(!t)throw Error("`Promise` is not available in global scope, and n
3o implementation was passed");return{onReturn:(r,n)=>new t((t,i)=>{let o=n.options.cancelToken;o&&o.promise.then(e=>{r.abort.publish(e),i(e)}),r.error.subscribe(i),r.response.subscribe(r=>{t(e.onlyBody?r.body:r)}),setTimeout(()=>{try{r.request.publish(n)}catch(e){i(e)}},0)})}};class N{__CANCEL__=!0;message;constructor(e){this.message=e}toString(){return"Cancel"+(this.message?`: ${this.message}`:"")}}class U{promise;reason;constructor(e){if("function"!=typeof e)throw TypeError("executor must be a function.");let t=null;this.promise=new Promise(e=>{t=e}),e(e=>{this.reason||(this.reason=new N(e),t(this.reason))})}static source=()=>{let e;return{token:new U(t=>{e=t}),cancel:e}}}L.Cancel=N,L.CancelToken=U,L.isCancel=e=>!(!e||!e?.__CANCEL__);var F=(e,t,r)=>("GET"===r.method||"HEAD"===r.method)&&(e.isNetworkError||!1);function z(e){return 100*Math.pow(2,e)+100*Math.random()}let $=(e={})=>(e=>{let t=e.maxRetries||5,r=e.retryDelay||z,n=e.shouldRetry;return{onError:(e,i)=>{var o;let a=i.options,s=a.maxRetries||t,l=a.retryDelay||r,u=a.shouldRetry||n,c=a.attemptNumber||0;if(null!==(o=a.body)&&"object"==typeof o&&"function"==typeof o.pipe||!u(e,c,a)||c>=s)return e;let d=Object.assign({},i,{options:Object.assign({},a,{attemptNumber:c+1})});return setTimeout(()=>i.channels.request.publish(d),l(c)),null}}})({shouldRetry:F,...e});$.shouldRetry=F;var B=r(97582);function V(e){return"function"==typeof e}function q(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var W=q(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function H(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Y=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,n,i,o=this._parentage;if(o){if(this._parentage=null,Array.isArray(o))try{for(var a=(0,B.__values)(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this)}var l=this.initialTeardown;if(V(l))try{l()}catch(e){i=e instanceof W?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=(0,B.__values)(u),d=c.next();!d.done;d=c.next()){var f=d.value;try{K(f)}catch(e){i=null!=i?i:[],e instanceof W?i=(0,B.__spreadArray)((0,B.__spreadArray)([],(0,B.__read)(i)),(0,B.__read)(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(i)throw new W(i)}},t.prototype.add=function(e){var r;if(e&&e!==this){if(this.closed)K(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&H(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&H(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),Z=Y.EMPTY;function G(e){return e instanceof Y||e&&"closed"in e&&V(e.remove)&&V(e.add)&&V(e.unsubscribe)}function K(e){V(e)?e():e.unsubscribe()}var X={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},J={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=J.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,(0,B.__spreadArray)([e,t],(0,B.__read)(r))):setTimeout.apply(void 0,(0,B.__spreadArray)([e,t],(0,B.__read)(r)))},clearTimeout:function(e){var t=J.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Q(e){J.setTimeout(function(){var t=X.onUnhandledError;if(t)t(e);else throw e})}function ee(){}var et=er("C",void 0,void 0);function er(e,t,r){return{kind:e,value:t,error:r}}var en=null;function ei(e){if(X.useDeprecatedSynchronousErrorHandling){var t=!en;if(t&&(en={errorThrown:!1,error:null}),e(),t){var r=en,n=r.errorThrown,i=r.error;if(en=null,n)throw i}}else e()}var eo=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,G(t)&&t.add(r)):r.destination=ef,r}return(0,B.__extends)(t,e),t.create=function(e,t,r){return new eu(e,t,r)},t.prototype.next=function(e){this.isStopped?ed(er("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?ed(er("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?ed(et,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Y),ea=Function.prototype.bind;function es(e,t){return ea.call(e,t)}var el=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){ec(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){ec(e)}else ec(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){ec(e)}},e}(),eu=function(e){function t(t,r,n){var i,o,a=e.call(this)||this;return V(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}
3:a&&X.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&es(t.next,o),error:t.error&&es(t.error,o),complete:t.complete&&es(t.complete,o)}):i=t,a.destination=new el(i),a}return(0,B.__extends)(t,e),t}(eo);function ec(e){X.useDeprecatedSynchronousErrorHandling?X.useDeprecatedSynchronousErrorHandling&&en&&(en.errorThrown=!0,en.error=e):Q(e)}function ed(e,t){var r=X.onStoppedNotification;r&&J.setTimeout(function(){return r(e,t)})}var ef={closed:!0,next:ee,error:function(e){throw e},complete:ee},eh="function"==typeof Symbol&&Symbol.observable||"@@observable";function ep(e){return e}function em(e){return 0===e.length?ep:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var eg=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof eo||n&&V(n.next)&&V(n.error)&&V(n.complete)&&G(n)?e:new eu(e,t,r);return ei(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=ey(t))(function(t,n){var i=new eu({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[eh]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return em(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=ey(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function ey(e){var t;return null!==(t=null!=e?e:X.Promise)&&void 0!==t?t:Promise}var ev=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function eb(e){return V(null==e?void 0:e.then)}function ew(e){return Symbol.asyncIterator&&V(null==e?void 0:e[Symbol.asyncIterator])}function e_(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var ex="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";
3function eE(e){return V(null==e?void 0:e[ex])}function eC(e){return(0,B.__asyncGenerator)(this,arguments,function(){var t,r,n;return(0,B.__generator)(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,B.__await)(t.read())];case 3:if(n=(r=i.sent()).value,!r.done)return[3,5];return[4,(0,B.__await)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,B.__await)(n)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function eO(e){return V(null==e?void 0:e.getReader)}function eS(e){if(e instanceof eg)return e;if(null!=e){if(V(e[eh]))return new eg(function(t){var r=e[eh]();if(V(r.subscribe))return r.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(ev(e))return new eg(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()});if(eb(e))return new eg(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,Q)});if(ew(e))return eT(e);if(eE(e))return new eg(function(t){var r,n;try{for(var i=(0,B.__values)(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(t.next(a),t.closed)return}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()});if(eO(e))return eT(eC(e))}throw e_(e)}function eT(e){return new eg(function(t){(function(e,t){var r,n,i,o;return(0,B.__awaiter)(this,void 0,void 0,function(){var a;return(0,B.__generator)(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),r=(0,B.__asyncValues)(e),s.label=1;case 1:return[4,r.next()];case 2:if((n=s.sent()).done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:s.sent()},[3,11];case 6:if(s.trys.push([6,,9,10]),!(n&&!n.done&&(o=r.return)))return[3,8];return[4,o.call(r)];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function ek(e){return new eg(function(t){eS(e()).subscribe(t)})}function eA(e){return e[e.length-1]}function eP(e){var t;return(t=eA(e))&&V(t.schedule)?e.pop():void 0}function ej(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}function eR(e){return function(t){if(V(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function eM(e,t,r,n,i){return new eD(e,t,r,n,i)}var eD=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return(0,B.__extends)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null===(t=this.onFinalize)||void 0===t||t.call(this)}},t}(eo);function eI(e,t){return void 0===t&&(t=0),eR(function(r,n){r.subscribe(eM(n,function(r){return ej(n,e,function(){return n.next(r)},t)},function(){return ej(n,e,function(){return n.complete()},t)},function(r){return ej(n,e,function(){return n.error(r)},t)}))})}function eL(e,t){return void 0===t&&(t=0),eR(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function eN(e,t){if(!e)throw Error("Iterable cannot be null");return new eg(function(r){ej(r,t,function(){var n=e[Symbol.asyncIterator]();ej(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function eU(e,t){return t?function(e,t){if(null!=e){if(V(e[eh]))return eS(e).pipe(eL(t),eI(t));if(ev(e))return new eg(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[
3n++]),r.closed||this.schedule())})});if(eb(e))return eS(e).pipe(eL(t),eI(t));if(ew(e))return eN(e,t);if(eE(e))return new eg(function(r){var n;return ej(r,t,function(){n=e[ex](),ej(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){r.error(e);return}i?r.complete():r.next(t)},0,!0)}),function(){return V(null==n?void 0:n.return)&&n.return()}});if(eO(e))return eN(eC(e),t)}throw e_(e)}(e,t):eS(e)}function eF(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=eP(e);return eU(e,r)}function ez(e,t){return eR(function(r,n){var i=0;r.subscribe(eM(n,function(r){n.next(e.call(t,r,i++))}))})}function e$(e,t,r){return(void 0===r&&(r=1/0),V(t))?e$(function(r,n){return ez(function(e,i){return t(r,e,n,i)})(eS(e(r,n)))},r):("number"==typeof t&&(r=t),eR(function(t,n){var i,o,a,s,l,u,c,d,f;return i=r,a=[],s=0,l=0,u=!1,c=function(){!u||a.length||s||n.complete()},d=function(e){return s<i?f(e):a.push(e)},f=function(t){s++;var r=!1;eS(e(t,l++)).subscribe(eM(n,function(e){o?d(e):n.next(e)},function(){r=!0},void 0,function(){if(r)try{for(s--;a.length&&s<i;)!function(){var e=a.shift();f(e)}();c()}catch(e){n.error(e)}}))},t.subscribe(eM(n,d,function(){u=!0,c()})),function(){}}))}var eB=q(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function eV(e,t){var r="object"==typeof t;return new Promise(function(n,i){var o,a=!1;e.subscribe({next:function(e){o=e,a=!0},error:i,complete:function(){a?n(o):r?n(t.defaultValue):i(new eB)}})})}var eq=q(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),eW=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,B.__extends)(t,e),t.prototype.lift=function(e){var t=new eH(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new eq},t.prototype.next=function(e){var t=this;ei(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=(0,B.__values)(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;ei(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;ei(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?Z:(this.currentObservers=null,i.push(e),new Y(function(){t.currentObservers=null,H(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new eg;return e.source=this,e},t.create=function(e,t){return new eH(e,t)},t}(eg),eH=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,B.__extends)(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:Z},t}(eW),eY={now:function(){return(eY.delegate||Date).now()},delegate:void 0},eZ=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=eY);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return(0,B.__extends)(t,e),t.prototype.next=function(t){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,o=this._timestampProvider,a=this._windowTime;!r&&(n.push(t),i||n.push(o.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),a=0,s=1;s<r.length&&r[s]<=o;s+=2)a=s;a&&r.splice(0,a+1)}},t}(eW);function eG(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new eW}:t,n=e.resetOnError,i=void 0===n||n,o=e.resetOnComplete,a=void 0===o||o,s=e.resetOnRefCountZero,l=void 0===s||s;
3return function(e){var t,n,o,s=0,u=!1,c=!1,d=function(){null==n||n.unsubscribe(),n=void 0},f=function(){d(),t=o=void 0,u=c=!1},h=function(){var e=t;f(),null==e||e.unsubscribe()};return eR(function(e,p){s++,c||u||d();var m=o=null!=o?o:r();p.add(function(){0!=--s||c||u||(n=eK(h,l))}),m.subscribe(p),!t&&s>0&&(t=new eu({next:function(e){return m.next(e)},error:function(e){c=!0,d(),n=eK(f,i,e),m.error(e)},complete:function(){u=!0,d(),n=eK(f,a),m.complete()}}),eS(e).subscribe(t))})(e)}}function eK(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!0===t){e();return}if(!1!==t){var i=new eu({next:function(){i.unsubscribe(),e()}});return eS(t.apply(void 0,(0,B.__spreadArray)([],(0,B.__read)(r)))).subscribe(i)}}function eX(e){return eR(function(t,r){var n,i=null,o=!1;i=t.subscribe(eM(r,void 0,void 0,function(a){n=eS(e(a,eX(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):o=!0})),o&&(i.unsubscribe(),i=null,n.subscribe(r))})}function eJ(e){return void 0===e&&(e=1/0),e$(ep,e)}function eQ(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return eJ(1)(eU(e,eP(e)))}var e0=function(e){function t(t,r){return e.call(this)||this}return(0,B.__extends)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(Y),e1={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=e1.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,B.__spreadArray)([e,t],(0,B.__read)(r))):setInterval.apply(void 0,(0,B.__spreadArray)([e,t],(0,B.__read)(r)))},clearInterval:function(e){var t=e1.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},e2=function(e){function t(t,r){var n=e.call(this,t,r)||this;
3return n.scheduler=t,n.work=r,n.pending=!1,n}return(0,B.__extends)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),e1.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&e1.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,H(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(e0),e5=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=eY.now,e}(),e3=new(function(e){function t(t,r){void 0===r&&(r=e5.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return(0,B.__extends)(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active){r.push(e);return}this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(e5))(e2);function e4(e,t){var r=V(e)?e:function(){return e},n=function(e){return e.error(r())};return new eg(t?function(e){return t.schedule(n,0,e)}:n)}function e6(e){return eR(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}var e8=new eg(function(e){return e.complete()}),e9=r(23259),e7=Array.isArray,te=Array.isArray;function tt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=V(eA(e))?e.pop():void 0;return r?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return em(e)}(tt.apply(void 0,(0,B.__spreadArray)([],(0,B.__read)(e))),ez(function(e){return te(e)?r.apply(void 0,(0,B.__spreadArray)([],(0,B.__read)(e))):r(e)})):eR(function(t,r){var n,i,o;(n=(0,B.__spreadArray)([t],(0,B.__read)(1===e.length&&e7(e[0])?e[0]:e)),void 0===o&&(o=ep),function(e){var t,r;t=void 0,r=function(){for(var t=n.length,r=Array(t),a=t,s=t,l=function(t){var l;l=function(){var l=eU(n[t],i),u=!1;l.subscribe(eM(e,function(n){r[t]=n,!u&&(u=!0,s--),s||e.next(o(r.slice()))},function(){--a||e.complete()}))},i?ej(e,i,l):l()},u=0;u<t;u++)l(u)},t?ej(e,t,r):r()})(r)})}function tr(e,t){return eR(function(r,n){var i=0;r.subscribe(eM(n,function(r){return e.call(t,r,i++)&&n.next(r)}))})}class tn extends Error{response;statusCode=400;responseBody;details;constructor(e){let t=to(e);super(t.message),Object.assign(this,t)}}class ti extends Error{response;statusCode=500;responseBody;details;constructor(e){let t=to(e);super(t.message),Object.assign(this,t)}}function to(e){let t=e.body,r={response:e,statusCode:e.statusCode,responseBody:-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(t,null,2):t,message:"",details:void 0};if(t.error&&t.message)return r.message=`${t.error} - ${t.message}`,r;if(ta(t)&&ta(t.error)&&"mutationError"===t.error.type&&"string"==typeof t.error.description||ta(t)&&ta(t.error)&&"actionError"===t.error.type&&"string"==typeof t.error.description){let e=t.error.items||[],n=e.slice(0,5).map(e=>e.error?.description).filter(Boolean),i=n.length?`: 4- ${n.join(` 5- `)}`:"";return e.length>5&&(i+=` 6...and ${e.length-5} more`),r.message=`${t.error.description}${i}`,r.details=t.error,r}return t.error&&t.error.description?(r.message=t.error.description,r.details=t.error):r.message=t.error||t.message||function(e){let t=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${t}`}(e),r}function ta(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}
6class ts extends Error{projectId;addOriginUrl;constructor({projectId:e}){super("CorsOriginError"),this.name="CorsOriginError",this.projectId=e;let t=new URL(`https://sanity.io/manage/project/${e}/api`);if("u">typeof location){let{origin:e}=location;t.searchParams.set("cors","add"),t.searchParams.set("origin",e),this.addOriginUrl=t,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${t}`}else this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${t}`}}let tl={onResponse:e=>{if(e.statusCode>=500)throw new ti(e);if(e.statusCode>=400)throw new tn(e);return e}};function tu(e){return x([$({shouldRetry:tc}),...e,function(){let e={};return{onResponse:t=>{let r=t.headers["x-sanity-warning"];for(let t of Array.isArray(r)?r:[r])!t||e[t]||(e[t]=!0,console.warn(t));return t}}}(),{processOptions:e=>{let t=e.body;return!t||"function"==typeof t.pipe||j(t)||-1===M.indexOf(typeof t)&&!Array.isArray(t)&&!function(e){if(!1===R(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!(!1===R(r)||!1===r.hasOwnProperty("isPrototypeOf"))}(t)?e:Object.assign({},e,{body:JSON.stringify(e.body),headers:Object.assign({},e.headers,{"Content-Type":"application/json"})})}},{onResponse:e=>{let t=e.headers["content-type"]||"",r=-1!==t.indexOf("application/json");return e.body&&t&&r?Object.assign({},e,{body:function(e){try{return JSON.parse(e)}catch(e){throw e.message=`Failed to parsed response body as JSON: ${e.message}`,e}}(e.body)}):e},processOptions:e=>Object.assign({},e,{headers:Object.assign({Accept:"application/json"},e.headers)})},{onRequest:e=>{if("xhr"!==e.adapter)return;let t=e.request,r=e.context;function n(e){return t=>{let n=t.lengthComputable?t.loaded/t.total*100:-1;r.channels.progress.publish({stage:e,percent:n,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=n("upload")),"onprogress"in t&&(t.onprogress=n("download"))}},tl,function(e={}){let t=e.implementation||I.Observable;if(!t)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(e,r)=>new t(t=>(e.error.subscribe(e=>t.error(e)),e.progress.subscribe(e=>t.next(Object.assign({type:"progress"},e))),e.response.subscribe(e=>{t.next(Object.assign({type:"response"},e)),t.complete()}),e.request.publish(r),()=>e.abort.publish()))}}({implementation:eg})])}function tc(e,t,r){if(0===r.maxRetries)return!1;let n="GET"===r.method||"HEAD"===r.method,i=(r.uri||r.url).startsWith("/data/query"),o=e.response&&(429===e.response.statusCode||502===e.response.statusCode||503===e.response.statusCode);return(!!n||!!i)&&!!o||$.shouldRetry(e,t,r)}function td(e){return"https://www.sanity.io/help/"+e}let tf=["image","file"],th=["before","after","replace"],tp=e=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},tm=e=>{if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")},tg=e=>{if(-1===tf.indexOf(e))throw Error(`Invalid asset type: ${e}. Must be one of ${tf.join(", ")}`)},ty=(e,t)=>{if(null===t||"object"!=typeof t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},tv=(e,t)=>{if("string"!=typeof t||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(t)||t.includes(".."))throw Error(`${e}(): "${t}" is not a valid document ID`)},tb=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);tv(e,t._id)},tw=(e,t,r)=>{let n="insert(at, selector, items)";if(-1===th.indexOf(e)){let e=th.map(e=>`"${e}"`).join(", ");throw Error(`${n} takes an "at"-argument which is one of: ${e}`)}if("string"!=typeof t)throw Error(`${n} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw Error(`${n} takes an "items"-argument which must be an array`)},t_=e=>{if(!e.dataset)throw Error("`dataset` must be provided to perform queries");return e.dataset||""}
6,tx=e=>{if("string"!=typeof e||!/^[a-z0-9._-]{1,75}$/i.test(e))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e},tE=e=>{if(!e["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:t,id:r}=e["~experimental_resource"];switch(t){case"dataset":if(2!==r.split(".").length)throw Error('Dataset resource ID must be in the format "project.dataset"');return;case"dashboard":case"media-library":case"canvas":return;default:throw Error(`Unsupported resource type: ${t.toString()}`)}},tC=(e,t)=>{if(t["~experimental_resource"])throw Error(`\`${e}\` does not support resource-based operations`)},tO=e=>{var t;let r,n;return t=(...t)=>console.warn(e.join(" "),...t),r=!1,(...e)=>(r||(n=t(...e),r=!0),n)},tS=tO(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),tT=tO(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),tk=tO(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),tA=tO(["The `previewDrafts` perspective has been renamed to `drafts` and will be removed in a future API version"]),tP=tO(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${td("js-client-browser-token")} for more information and how to hide this warning.`]),tj=tO(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),tR=tO(["Using the Sanity client without specifying an API version is deprecated.",`See ${td("js-client-api-version")}`]),tM=(tO(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),{apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}}),tD=["localhost","127.0.0.1","0.0.0.0"],tI=e=>-1!==tD.indexOf(e);function tL(e){if(Array.isArray(e)&&e.length>1&&e.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}let tN=(e,t)=>{let r={...t,...e,stega:{..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||tM.stega,..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||{}}};r.apiVersion||tR();let n={...tM,...r},i=n.useProjectHostname&&!n["~experimental_resource"];if(typeof Promise>"u"){let e=td("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${e}`)}if(i&&!n.projectId)throw Error("Configuration must contain `projectId`");if(n["~experimental_resource"]&&tE(n),"u">typeof n.perspective&&tL(n.perspective),"encodeSourceMap"in n)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in n)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");if("boolean"!=typeof n.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${n.stega.enabled}`);if(n.stega.enabled&&void 0===n.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(n.stega.enabled&&"string"!=typeof n.stega.studioUrl&&"function"!=typeof n.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${n.stega.studioUrl}`);let o="u">typeof window&&window.location&&window.location.hostname,a=o&&tI(window.location.hostname),s=!!n.token;n.withCredentials&&s&&(tj(),n.withCredentials=!1),o&&a&&s&&!0!==n.ignoreBrowserTokenWarning?tP():typeof n.useCdn>"u"&&tT(),i&&tm(n.projectId),n.dataset&&tp(n.dataset),"requestTagPrefix"in n&&
6(n.requestTagPrefix=n.requestTagPrefix?tx(n.requestTagPrefix).replace(/\.+$/,""):void 0),n.apiVersion=`${n.apiVersion}`.replace(/^v/,""),n.isDefaultApi=n.apiHost===tM.apiHost,!0===n.useCdn&&n.withCredentials&&tS(),n.useCdn=!1!==n.useCdn&&!n.withCredentials,function(e){if("1"===e||"X"===e)return;let t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(n.apiVersion);let l=n.apiHost.split("://",2),u=l[0],c=l[1],d=n.isDefaultApi?"apicdn.sanity.io":c;return i?(n.url=`${u}://${n.projectId}.${c}/v${n.apiVersion}`,n.cdnUrl=`${u}://${n.projectId}.${d}/v${n.apiVersion}`):(n.url=`${n.apiHost}/v${n.apiVersion}`,n.cdnUrl=n.url),n};class tU extends Error{name="ConnectionFailedError"}class tF extends Error{name="DisconnectError";reason;constructor(e,t,r={}){super(e,r),this.reason=t}}class tz extends Error{name="ChannelError";data;constructor(e,t){super(e),this.data=t}}class t$ extends Error{name="MessageError";data;constructor(e,t,r={}){super(e,r),this.data=t}}class tB extends Error{name="MessageParseError"}let tV=["channelError","disconnect"];function tq(e,t){return ek(()=>{let t=e();return t&&(t instanceof eg||V(t.lift)&&V(t.subscribe))?t:eF(t)}).pipe(e$(e=>new eg(r=>{let n=t.includes("open"),i=t.includes("reconnect");function o(t){if("data"in t){let[e,n]=tW(t);r.error(e?new tB("Unable to parse EventSource error message",{cause:n}):new t$((n?.data).message,n));return}e.readyState===e.CLOSED?r.error(new tU("EventSource connection failed")):i&&r.next({type:"reconnect"})}function a(){r.next({type:"open"})}function s(e){let[t,n]=tW(e);if(t){r.error(new tB("Unable to parse EventSource message",{cause:t}));return}if("channelError"===e.type){var i;r.error(new tz((i=n?.data).error?i.error.description?i.error.description:"string"==typeof i.error?i.error:JSON.stringify(i.error,null,2):i.message||"Unknown listener error",n.data));return}if("disconnect"===e.type){r.error(new tF(`Server disconnected client: ${n.data?.reason||"unknown error"}`));return}r.next({type:e.type,id:e.lastEventId,...n.data?{data:n.data}:{}})}e.addEventListener("error",o),n&&e.addEventListener("open",a);let l=[...new Set([...tV,...t])].filter(e=>"error"!==e&&"open"!==e&&"reconnect"!==e);return l.forEach(t=>e.addEventListener(t,s)),()=>{e.removeEventListener("error",o),n&&e.removeEventListener("open",a),l.forEach(t=>e.removeEventListener(t,s)),e.close()}})))}function tW(e){try{let t="string"==typeof e.data&&JSON.parse(e.data);return[null,{type:e.type,id:e.lastEventId,...!function(e){for(let t in e)return!1;return!0}(t)?{data:t}:{}}]}catch(e){return[e,null]}}function tH(e){if("string"==typeof e)return{id:e};if(Array.isArray(e))return{query:"*[_id in $ids]",params:{ids:e}};if("object"==typeof e&&null!==e&&"query"in e&&"string"==typeof e.query)return"params"in e&&"object"==typeof e.params&&null!==e.params?{query:e.query,params:e.params}:{query:e.query};let t=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(` 7`);throw Error(`Unknown selection - must be one of: 8 9${t}`)}class tY{selection;operations;constructor(e,t={}){this.selection=e,this.operations=t}set(e){return this._assign("set",e)}setIfMissing(e){return this._assign("setIfMissing",e)}diffMatchPatch(e){return ty("diffMatchPatch",e),this._assign("diffMatchPatch",e)}unset(e){if(!Array.isArray(e))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:e}),this}inc(e){return this._assign("inc",e)}dec(e){return this._assign("dec",e)}insert(e,t,r){return tw(e,t,r),this._assign("insert",{[e]:t,items:r})}append(e,t){return this.insert("after",`${e}[-1]`,t)}prepend(e,t){return this.insert("before",`${e}[0]`,t)}splice(e,t,r,n){let i=t<0?t-1:t,o=typeof r>"u"||-1===r?-1:Math.max(0,t+r),a=`${e}[${i}:${i<0&&o>=0?"":o}]`;return this.insert("replace",a,n||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...tH(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,r=!0){return ty(e,t),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},r&&this.operations[e]||{},t)}),this}_set(e,t){return this._assign(e,t,!1)}}class tZ extends tY{#s;constructor(e,t,r){super(e,t),this.#s=r}clone(){return new tZ(this.selection,{...this.operations},this.#s)}commit(e){if(!this.#s)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#s.mutate({patch:this.serialize()},t)}}class tG extends tY{#s;constructor(e,t,r){super(e,t),this.#s=r}clone(){return new tG(this.selection,{...this.operations},this.#s)}commit(e){if(!this.#s)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#s.mutate({patch:this.serialize()},t)}}let tK={returnDocuments:!1};class tX{operations;trxId;constructor(e=[],t){this.operations=e,this.trxId=t}create(e){return ty("create",e),this._add({create:e})}createIfNotExists(e){let t="createIfNotExists";return ty(t,e),tb(t,e),this._add({[t]:e})}createOrReplace(e){let t="createOrReplace";return ty(t,e),tb(t,e),this._add({[t]:e})}delete(e){return tv("delete",e),this._add({delete:{id:e}})}transactionId(e){return e?(this.trxId=e,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(e){return this.operations.push(e),this}}class tJ extends tX{#s;constructor(e,t,r){super(e,r),this.#s=t}clone(){return new tJ([...this.operations],this.#s,this.trxId)}commit(e){if(!this.#s)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#s.mutate(this.serialize(),Object.assign({transactionId:this.trxId},tK,e||{}))}patch(e,t){let r="function"==typeof t,n="string"!=typeof e&&e instanceof tG,i="object"==typeof e&&("query"in e||"id"in e);if(n)return this._add({patch:e.serialize()});if(r){let r=t(new tG(e,{},this.#s));if(!(r instanceof tG))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(i){let r=new tG(e,t||{},this.#s);return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}class tQ extends tX{#s;constructor(e,t,r){super(e,r),this.#s=t}clone(){return new tQ([...this.operations],this.#s,this.trxId)}commit(e){if(!this.#s)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#s.mutate(this.serialize(),Object.assign({transactionId:this.trxId},tK,e||{}))}patch(e,t){let r="function"==typeof t;if("string"!=typeof e&&e instanceof tZ)return this._add({patch:e.serialize()});if(r){let r=t(new tZ(e,{},this.#s));if(!(r instanceof tZ))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}let t0=({query:e,params:t={},options:r={}})=>{let n=new URLSearchParams,{tag:i,includeMutations:o,returnQuery:a,...s}=r;for(let[r,o]of(i&&n.append("tag",i),n.append("query",e),Object.entries(t)))n.append(`$${r}`,JSON.stringify(o));for(let[e,t]of Object.entries(s))t&&n.append(e,`${t}`);return!1===a&&n.append("returnQuery","false"),!1===o&&n.append("includeMutations","fal
9se"),`?${n}`},t1=(e,t)=>!1===e?void 0:typeof e>"u"?t:e,t2=(e={})=>({dryRun:e.dryRun,returnIds:!0,returnDocuments:t1(e.returnDocuments,!0),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}),t5=e=>"response"===e.type,t3=e=>e.body,t4=(e,t)=>e.reduce((e,r)=>(e[t(r)]=r,e),Object.create(null));function t6(e,t,n,i,o={},a={}){let s="stega"in a?{...n||{},..."boolean"==typeof a.stega?{enabled:a.stega}:a.stega||{}}:n,l=s.enabled?(0,e9.N)(o):o,u=!1===a.filterResponse?e=>e:e=>e.result,{cache:c,next:d,...f}={useAbortSignal:"u">typeof a.signal,resultSourceMap:s.enabled?"withKeyArraySelector":a.resultSourceMap,...a,returnQuery:!1===a.filterResponse&&!1!==a.returnQuery},h=ri(e,t,"query",{query:i,params:l},"u">typeof c||"u">typeof d?{...f,fetch:{cache:c,next:d}}:f);return s.enabled?h.pipe(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tt.apply(void 0,(0,B.__spreadArray)([],(0,B.__read)(e)))}(eU(r.e(235).then(r.bind(r,84235)).then(function(e){return e.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:e})=>e))),ez(([e,t])=>{let r=t(e.result,e.resultSourceMap,s);return u({...e,result:r})})):h.pipe(ez(u))}function t8(e,t,r,n={}){let i={uri:rm(e,"doc",r),json:!0,tag:n.tag,signal:n.signal};return rh(e,t,i).pipe(tr(t5),ez(e=>e.body.documents&&e.body.documents[0]))}function t9(e,t,r,n={}){let i={uri:rm(e,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return rh(e,t,i).pipe(tr(t5),ez(e=>{let t=t4(e.body.documents||[],e=>e._id);return r.map(e=>t[e]||null)}))}function t7(e,t,r,n){return tb("createIfNotExists",r),ro(e,t,r,"createIfNotExists",n)}function re(e,t,r,n){return tb("createOrReplace",r),ro(e,t,r,"createOrReplace",n)}function rt(e,t,r,n){return ri(e,t,"mutate",{mutations:[{delete:tH(r)}]},n)}function rr(e,t,r,n){let i;return ri(e,t,"mutate",{mutations:Array.isArray(i=r instanceof tG||r instanceof tZ?{patch:r.serialize()}:r instanceof tJ||r instanceof tQ?r.serialize():r)?i:[i],transactionId:n&&n.transactionId||void 0},n)}function rn(e,t,r,n){let i=Array.isArray(r)?r:[r];return ri(e,t,"actions",{actions:i,transactionId:n&&n.transactionId||void 0,skipCrossDatasetReferenceValidation:n&&n.skipCrossDatasetReferenceValidation||void 0,dryRun:n&&n.dryRun||void 0},n)}function ri(e,t,r,n,i={}){let o="mutate"===r,a="actions"===r,s=o||a?"":t0(n),l=!o&&!a&&s.length<11264,u=i.returnFirst,{timeout:c,token:d,tag:f,headers:h,returnQuery:p,lastLiveEventId:m,cacheMode:g}=i,y=rm(e,r,l?s:"");return rh(e,t,{method:l?"GET":"POST",uri:y,json:!0,body:l?void 0:n,query:o&&t2(i),timeout:c,headers:h,token:d,tag:f,returnQuery:p,perspective:i.perspective,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(m)?m[0]:m,cacheMode:g,canUseCdn:"query"===r,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn}).pipe(tr(t5),ez(t3),ez(e=>{if(!o)return e;let t=e.results||[];if(i.returnDocuments)return u?t[0]&&t[0].document:t.map(e=>e.document);let r=u?t[0]&&t[0].id:t.map(e=>e.id);return{transactionId:e.transactionId,results:t,[u?"documentId":"documentIds"]:r}}))}function ro(e,t,r,n,i={}){return ri(e,t,"mutate",{mutations:[{[n]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},i))}let ra=e=>void 0!==e.config().dataset&&void 0!==e.config().projectId||void 0!==e.config()["~experimental_resource"],rs=(e,t)=>ra(e)&&t.startsWith(rm(e,"query")),rl=(e,t)=>ra(e)&&t.startsWith(rm(e,"mutate")),ru=(e,t)=>ra(e)&&t.startsWith(rm(e,"doc","")),rc=(e,t)=>ra(e)&&t.startsWith(rm(e,"listen")),rd=(e,t)=>ra(e)&&t.startsWith(rm(e,"history","")),rf=(e,t)=>t.startsWith("/data/")||rs(e,t)||rl(e,t)||ru(e,t)||rc(e,t)||rd(e,t);function rh(e,t,r){var n;let i=r.url||r.uri,o=e.config(),a=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&rf(e,i):r.canUseCdn,s=(r.useCdn??o.useCdn)&&a,l=r.tag&&o.requestTagPrefix?[o.requestTagPrefix,r.tag].join("."):r.tag||o.requestTagPrefix;if(l&&null!==r.tag&&(r.query={tag:tx(l),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&rs(e,i)){let e=r.resultSourceMap??o.resultSourceMap;void 0!==e&&!1!==e&&(r.query={resultSourceMap:e,...r.query});let t=r.perspective||o.perspective;"u">typeof t&&("previewDrafts"===t&&tA(),tL(t),r.query={perspective:Array.isArray(t)?t.join(","):t,...r.query},(Array.isArray(t)&&t.length>0||"previewDrafts"===t||"drafts"===t)&&s&&(s=!1,tk())),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),!1===r.returnQuery&&(r.query={returnQuery:"false",...r.query}),s&&"noStale"==r.cacheMode&&(r.query={cacheMode:"noStale",...r.query})}let u=function(e,t={}){let r={},n=t.token||e.token;n&&(r.Authorization=`Bearer ${n}`),t.useGlobalApi||e.useProjectHostname||!e.projectId||(r["X-Sanity-Project-ID"]=e.projectId);let i=!!(typeof t.withCredentials>"u"?e.withCredentials:t.withCredentials),o=typeof t.timeout>"u"?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},r,t.headers||{}),timeout:typeof o>"u"?3e5:o,proxy:t.proxy||e.proxy,json:!0,withCredentials:i,fetch:"object"==typeof t.fetch&&"object"==typeof e.fetch?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}(o,Object.assign({},r,{url:rg(e,i,s)})),c=new eg(e=>t(u,o.requester).subscribe(e));return r.signal?c.pipe((n=r.signal,e=>new eg(t=>{let r=()=>t.error(function(e){if(ry)return new DOMException(e?.reason??"The operation was aborted.","AbortError");let t=Error(e?.reason??"The operation was aborted.");return t.name="AbortError",t}(n));if(n&&n.aborted){r();return}let i=e.subscribe(t);return n.addEventListener("abort",r),()=>{n.removeEventListener("abort",r),i.unsubscribe()}}))):c}function rp(e,t,r){return rh(e,t,r).pipe(tr(e=>"response"===e.type),ez(e=>e.body))}function rm(e,t,r){let n=e.config();if(n["~experimental_resource"]){tE(n);let e=rv(n),i=void 0!==r?`${t}/${r}`:t;return`${e}/${i}`.replace(/\/($|\?)/,"$1")}let i=t_(n),o=`/${t}/${i}`;return`/data${void 0!==r?`${o}/${r}`:o}`.replace(/\/($|\?)/,"$1")}function rg(e,t,r=!1){let{url:n,cdnUrl:i}=e.config();return`${r?i:n}/${t.replace(/^\//,"")}`}let ry=!!globalThis.DOMException,rv=e=>{if(!e["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:t,id:r}=e["~experimental_resource"];switch(t){case"dataset":{let e=r.split(".");if(2!==e.length)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${e[0]}/datasets/${e[1]}`}case"canvas":return`/canvases/${r}`;case"media-library":return`/media-libraries/${r}`;case"dashboard":return`/dashboards/${r}`;default:throw Error(`Unsupported resource type: ${t.toString()}`)}};class rb{#s;#l;constructor(e,t){this.#s=e,this.#l=t}upload(e,t,r){return r_(this.#s,this.#l,e,t,r)}}class rw{#s;#l;constructor(e,t){this.#s=e,this.#l=t}upload(e,t,r){return eV(r_(this.#s,this.#l,e,t,r).pipe(tr(e=>"response"===e.type),ez(e=>e.body.document)))}}function r_(e,t,r,n,i={}){tg(r);let o=i.extract||void 0;o&&!o.length&&(o=["none"]);let a=e.config(),s=!(typeof File>"u")&&n instanceof File?Object.assign({filename:!1===i.preserveFilename?void 0:n.name,contentType:n.type},i):i,{tag:l,label:u,title:c,description:d,creditLine:f,filename:h,source:p}=s,m={label:u,title:c,description:d,filename:h,meta:o,creditLine:f};return p&&(m.sourceId=p.id,m.sourceName=p.name,m.sourceUrl=p.url),rh(e,t,{tag:l,method:"POST",timeout:s.timeout||0,uri:function(e,t){let r="image"===t?"images":"files";if(e["~experimental_resource"]){let{type:t,id:n}=e["~experimental_resource"];switch(t){case"dataset":throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${n}/assets/${r}`;case"media-library":return`/media-libraries/${n}/upload`;case"dashboard":return`/dashboards/${n}/assets/${r}`;default:throw Error(`Unsupported resource type: ${t.toString()}`)}}let n=t_(e);return`assets/${r}/${n}`}(a,r),headers:s.contentType?{"Content-Type":s.contentType}:{},query:m,body:n})}var rx=(e,t)=>Object.keys(t).concat(Object.keys(e)).reduce((r,n)=>(r[n]=typeof e[n]>"u"?t[n]:e[n],r),{});let rE=(e,t)=>t.reduce((t,r)=>(typeof e[r]>"u"||(t[r]=e[r]),t),{}),rC=ek(()=>r.e(633).then(r.bind(r,94633))).pipe(ez(({default:e})=>e),eG({connector:function(){return new eZ(1,f,h)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:!1}));function rO(){return function(e){return e.pipe(eX((e,t)=>{var r;return e instanceof tU?eQ(eF({type:"reconnect"}),(void 0===r&&(r=e3),new eg(function(e){var t=1e3,n=0;return r.schedule(function(){e.closed||(e.next(n++),e.complete())},t)})).pipe(e$(()=>t))):e4(()=>e)}))}}let rS=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","tag"],rT={includeResult:!0};function rk(e,t,r={}){let{url:n,token:i,withCredentials:o,requestTagPrefix:a}=this.config(),s=r.tag&&a?[a,r.tag].join("."):r.tag,l={...rx(r,rT),tag:s},u=t0({query:e,params:t,options:{tag:s,...rE(l,rS)}}),c=`${n}${rm(this,"listen",u)}`;if(c.length>14800)return e4(()=>Error("Query too large for listener"));let d=l.events?l.events:["mutation"],f={};return o&&(f.withCredentials=!0),i&&(f.headers={Authorization:`Bearer ${i}`}),tq(()=>(typeof EventSource>"u"||f.headers?rC:eF(EventSource)).pipe(ez(e=>new e(c,f))),d).pipe(rO(),tr(e=>d.includes(e.type)),ez(e=>({type:e.type,..."data"in e?e.data:{}})))}let rA="2021-03-25";class rP{#s;constructor(e){this.#s=e}events({includeDrafts:e=!1,tag:t}={}){var r,n,i;tC("live",this.#s.config());let{projectId:o,apiVersion:a,token:s,withCredentials:l,requestTagPrefix:u}=this.#s.config(),c=a.replace(/^v/,"");if("X"!==c&&c<rA)throw Error(`The live events API requires API version ${rA} or later. The current API version is ${c}. Please update your API version to use this feature.`);if(e&&!s&&!l)throw Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");let d=rm(this.#s,"live/events"),f=new URL(this.#s.getUrl(d,!1)),h=t&&u?[u,t].join("."):t;h&&f.searchParams.set("tag",h),e&&f.searchParams.set("includeDrafts","true");let p={};e&&s&&(p.headers={Authorization:`Bearer ${s}`}),e&&l&&(p.withCredentials=!0);let m=`${f.href}::${JSON.stringify(p)}`,g=rj.get(m);
9if(g)return g;let y=tq(()=>(typeof EventSource>"u"||p.headers?rC:eF(EventSource)).pipe(ez(e=>new e(f.href,p))),["message","restart","welcome","reconnect","goaway"]).pipe(rO(),ez(e=>{if("message"===e.type){let{data:t,...r}=e;return{...r,tags:t.tags}}return e})),v=eQ((n={method:"OPTIONS",mode:"cors",credentials:p.withCredentials?"include":"omit",headers:p.headers},new eg(e=>{let t=new AbortController,r=t.signal;return fetch(f,{...n,signal:t.signal}).then(t=>{e.next(t),e.complete()},t=>{r.aborted||e.error(t)}),()=>t.abort()})).pipe(e$(()=>e8),eX(()=>{throw new ts({projectId:o})})),y).pipe(e6(()=>rj.delete(m)),(i="function"==typeof(r={predicate:e=>"welcome"===e.type})?{predicate:r}:r,e=>{var t,r,n,o;let a,s=!1,{predicate:l,...u}=i;return function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=eP(t),i=(e=1/0,"number"==typeof eA(t)?t.pop():e);return t.length?1===t.length?eS(t[0]):eJ(i)(eU(t,n)):e8}(e.pipe((o=V(t=e=>{i.predicate(e)&&(s=!0,a=e)})?{next:t,error:r,complete:n}:t)?eR(function(e,t){null===(r=o.subscribe)||void 0===r||r.call(o);var r,n=!0;e.subscribe(eM(t,function(e){var r;null===(r=o.next)||void 0===r||r.call(o,e),t.next(e)},function(){var e;n=!1,null===(e=o.complete)||void 0===e||e.call(o),t.complete()},function(e){var r;n=!1,null===(r=o.error)||void 0===r||r.call(o,e),t.error(e)},function(){var e,t;n&&(null===(e=o.unsubscribe)||void 0===e||e.call(o)),null===(t=o.finalize)||void 0===t||t.call(o)}))}):ep,e6(()=>{s=!1,a=void 0}),eG(u)),new eg(e=>{s&&e.next(a),e.complete()}))}));return rj.set(m,v),v}}let rj=new Map;class rR{#s;#l;constructor(e,t){this.#s=e,this.#l=t}create(e,t){return rD(this.#s,this.#l,"PUT",e,t)}edit(e,t){return rD(this.#s,this.#l,"PATCH",e,t)}delete(e){return rD(this.#s,this.#l,"DELETE",e)}list(){return rp(this.#s,this.#l,{uri:"/datasets",tag:null})}}class rM{#s;#l;constructor(e,t){this.#s=e,this.#l=t}create(e,t){return tC("dataset",this.#s.config()),eV(rD(this.#s,this.#l,"PUT",e,t))}edit(e,t){return tC("dataset",this.#s.config()),eV(rD(this.#s,this.#l,"PATCH",e,t))}delete(e){return tC("dataset",this.#s.config()),eV(rD(this.#s,this.#l,"DELETE",e))}list(){return tC("dataset",this.#s.config()),eV(rp(this.#s,this.#l,{uri:"/datasets",tag:null}))}}function rD(e,t,r,n,i){return tC("dataset",e.config()),tp(n),rp(e,t,{method:r,uri:`/datasets/${n}`,body:i,tag:null})}class rI{#s;#l;constructor(e,t){this.#s=e,this.#l=t}list(e){tC("projects",this.#s.config());let t=e?.includeMembers===!1?"/projects?includeMembers=false":"/projects";return rp(this.#s,this.#l,{uri:t})}getById(e){return tC("projects",this.#s.config()),rp(this.#s,this.#l,{uri:`/projects/${e}`})}}class rL{#s;#l;constructor(e,t){this.#s=e,this.#l=t}list(e){tC("projects",this.#s.config());let t=e?.includeMembers===!1?"/projects?includeMembers=false":"/projects";return eV(rp(this.#s,this.#l,{uri:t}))}getById(e){return tC("projects",this.#s.config()),eV(rp(this.#s,this.#l,{uri:`/projects/${e}`}))}}class rN{#s;#l;constructor(e,t){this.#s=e,this.#l=t}getById(e){return rp(this.#s,this.#l,{uri:`/users/${e}`})}}class rU{#s;#l;constructor(e,t){this.#s=e,this.#l=t}getById(e){return eV(rp(this.#s,this.#l,{uri:`/users/${e}`}))}}class rF{assets;datasets;live;projects;users;#u;#l;listen=rk;constructor(e,t=tM){this.config(t),this.#l=e,this.assets=new rb(this,this.#l),this.datasets=new rR(this,this.#l),this.live=new rP(this),this.projects=new rI(this,this.#l),this.users=new rN(this,this.#l)}clone(){return new rF(this.#l,this.config())}config(e){if(void 0===e)return{...this.#u};if(this.#u&&!1===this.#u.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#u=tN(e,this.#u||{}),this}withConfig(e){let t=this.config();return new rF(this.#l,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return t6(this,this.#l,this.#u.stega,e,t,r)}getDocument(e,t){return t8(this,this.#l,e,t)}getDocuments(e,t){return t9(this,this.#l,e,t)}create(e,t){return ro(this,this.#l,e,"create",t)}createIfNotExists(e,t){return t7(this,this.#l,e,t)}createOrReplace(e,t){return re(this,this.#l,e,t)}delete(e,t){return rt(this,this.#l,e,t)}mutate(e,t){return rr(this,this.#l,e,t)}patch(e,t){return new tZ(e,t,this)}transaction(e){return new tQ(e,this)}action(e,t){return rn(this,this.#l,e,t)}request(e){return rp(this,this.#l,e)}getUrl(e,t){return rg(this,e,t)}getDataUrl(e,t){return rm(this,e,t)}}class rz{assets;datasets;live;projects;users;observable;#u;#l;listen=rk;constructor(e,t=tM){this.config(t),this.#l=e,this.assets=new rw(this,this.#l),this.datasets=new rM(this,this.#l),this.live=new rP(this),this.projects=new rL(this,this.#l),this.users=new rU(this,this.#l),this.observable=new rF(e,t)}clone(){return new rz(this.#l,this.config())}config(e){if(void 0===e)return{...this.#u};if(this.#u&&!1===this.#u.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(e),this.#u=tN(e,this.#u||{}),this}withConfig(e){let t=this.config();return new rz(this.#l,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return eV(t6(this,this.#l,this.#u.stega,e,t,r))}getDocument(e,t){return eV(t8(this,this.#l,e,t))}getDocuments(e,t){return eV(t9(this,this.#l,e,t))}create(e,t){return eV(ro(this,this.#l,e,"create",t))}createIfNotExists(e,t){return eV(t7(this,this.#l,e,t))}createOrReplace(e,t){return eV(re(this,this.#l,e,t))}delete(e,t){return eV(rt(this,this.#l,e,t))}mutate(e,t){return eV(rr(this,this.#l,e,t))}patch(e,t){return new tG(e,t,this)}transaction(e){return new tJ(e,this)}action(e,t){return eV(rn(this,this.#l,e,t))}request(e){return eV(rp(this,this.#l,e))}dataRequest(e,t,r){return eV(ri(this,this.#l,e,t,r))}getUrl(e,t){return rg(this,e,t)}getDataUrl(e,t){return rm(this,e,t)}}let r$={requester:tu(p=[]),createClient:e=>{let t=tu(p);return new rz((r,n)=>(n||t)({maxRedirects:0,maxRetries:e.maxRetries,retryDelay:e.retryDelay,...r}),e)}},rB=(r$.requester,r$.createClient);var rV=r(6803),rq=r.n(rV);let rW=rB({dataset:"production",projectId:"ow2mjikj",useCdn:!0,apiVersion:"2022-08-30"}),rH=rq()(rW)},15024:function(e,t,r){"use strict";
9Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useRouter",{enumerable:!0,get:function(){return o}});let n=r(67294),i=r(37171);function o(){return(0,n.useContext)(i.RouterContext)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70031:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},useParams:function(){return h},usePathname:function(){return d},useRouter:function(){return f},useSearchParams:function(){return c},useSelectedLayoutSegment:function(){return m},useSelectedLayoutSegments:function(){return p},useServerInsertedHTML:function(){return u.useServerInsertedHTML}});let n=r(67294),i=r(3068),o=r(10213),a=r(66162),s=r(73737),l=r(46209),u=r(70861);function c(){let e=(0,n.useContext)(o.SearchParamsContext);return(0,n.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e])}function d(){return(0,n.useContext)(o.PathnameContext)}function f(){let e=(0,n.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function h(){return(0,n.useContext)(o.PathParamsContext)}function p(e){void 0===e&&(e="children");let t=(0,n.useContext)(i.LayoutRouterContext);return t?function e(t,r,n,i){let o;if(void 0===n&&(n=!0),void 0===i&&(i=[]),n)o=t[1][r];else{var l;let e=t[1];o=null!=(l=e.children)?l:Object.values(e)[0]}if(!o)return i;let u=o[0],c=(0,a.getSegmentValue)(u);return!c||c.startsWith(s.PAGE_SEGMENT_KEY)?i:(i.push(c),e(o,r,!1,i))}(t.tree,e):null}function m(e){void 0===e&&(e="children");let t=p(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===s.DEFAULT_SEGMENT_KEY?null:r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},46209:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return a},RedirectType:function(){return n.RedirectType},notFound:function(){return i.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect}});let n=r(67878),i=r(95610);class o extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class a extends URLSearchParams{append(){throw new o}delete(){throw new o}set(){throw new o}sort(){throw new o}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95610:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isNotFoundError:function(){return i},notFound:function(){return n}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19598:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),(n=r||(r={}))[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
9dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67878:function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return u},getRedirectStatusCodeFromError:function(){return m},getRedirectTypeFromError:function(){return p},getURLFromRedirectError:function(){return h},isRedirectError:function(){return f},permanentRedirect:function(){return d},redirect:function(){return c}});let o=r(40837),a=r(34134),s=r(19598),l="NEXT_REDIRECT";function u(e,t,r){void 0===r&&(r=s.RedirectStatusCode.TemporaryRedirect);let n=Error(l);n.digest=l+";"+t+";"+e+";"+r+";";let i=o.requestAsyncStorage.getStore();return i&&(n.mutableCookies=i.mutableCookies),n}function c(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw u(e,t,(null==r?void 0:r.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw u(e,t,(null==r?void 0:r.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.PermanentRedirect)}function f(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,n,i]=e.digest.split(";",4),o=Number(i);return t===l&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(o)&&o in s.RedirectStatusCode}function h(e){return f(e)?e.digest.split(";",3)[2]:null}function p(e){if(!f(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function m(e){if(!f(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(i=n||(n={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66162:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75132:function(e,t){"use strict";var r,n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return a},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return n},PrefetchKind:function(){return r},isThenable:function(){return h}});let a="refresh",s="navigate",l="restore",u="server-patch",c="prefetch",d="fast-refresh",f="server-action";function h(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=r||(r={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(o=n||(n={})).fresh="fresh",o.reusable="reusable",o.expired="expired",o.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92842:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(68796),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3765:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let n=r(38754),i=r(61757),o=r(85893),a=i._(r(67294)),s=n._(r(73935)),l=n._(r(50494)),u=r(30885),c=r(64666),d=r(98261);r(79784);let f=r(37171),h=n._(r(77124)),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(e,t,r,n,i,o,a){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>
9{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function g(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let y=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:f,placeholder:h,loading:p,unoptimized:y,fill:v,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:_,setShowAltText:x,sizesInput:E,onLoad:C,onError:O,...S}=e;return(0,o.jsx)("img",{...S,...g(f),loading:p,width:l,height:s,decoding:u,"data-nimg":v?"fill":"1",className:c,style:d,sizes:i,srcSet:n,src:r,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(O&&(e.src=e.src),e.complete&&m(e,h,b,w,_,y,E))},[r,h,b,w,_,O,y,E,t]),onLoad:e=>{m(e.currentTarget,h,b,w,_,y,E)},onError:e=>{x(!0),"empty"!==h&&_(!0),O&&O(e)}})});function v(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...g(r.fetchPriority)};return t&&s.default.preload?(s.default.preload(r.src,n),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let b=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(f.RouterContext),n=(0,a.useContext)(d.ImageConfigContext),i=(0,a.useMemo)(()=>{var e;let t=p||n||c.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),o=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:o}},[n]),{onLoad:s,onLoadingComplete:l}=e,m=(0,a.useRef)(s);(0,a.useEffect)(()=>{m.current=s},[s]);let g=(0,a.useRef)(l);(0,a.useEffect)(()=>{g.current=l},[l]);let[b,w]=(0,a.useState)(!1),[_,x]=(0,a.useState)(!1),{props:E,meta:C}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:b,showAltText:_});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y,{...E,unoptimized:C.unoptimized,placeholder:C.placeholder,fill:C.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:x,sizesInput:e.sizes,ref:t}),C.priority?(0,o.jsx)(v,{isAppRouter:!r,imgAttributes:E}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63500:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let n=r(38754),i=r(85893),o=n._(r(67294)),a=r(64813),s=r(65853),l=r(5058),u=r(45782),c=r(28878),d=r(37171),f=r(3068),h=r(91487),p=r(92842),m=r(41412),g=r(75132),y=new Set;function v(e,t,r,n,i,o){if(o||(0,s.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(y.has(i))return;y.add(i)}(async()=>o?e.prefetch(t,i):e.prefetch(t,r,n))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let w=o.default.forwardRef(function(e,t){let r,n;let{href:l,as:y,children:w,prefetch:_=null,passHref:x,replace:E,shallow:C,scroll:O,locale:S,onClick:T,onMouseEnter:k,onTouchStart:A,legacyBehavior:P=!1,...j}=e;r=w,P&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let R=o.default.useContext(d.RouterContext),M=o.default.useContext(f.AppRouterContext),D=null!=R?R:M,I=!R,L=!1!==_,N=null===_?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:U,as:F}=o.default.useMemo(()=>{if(!R){let e=b(l);return{href:e,as:y?b(y):e}}let[e,t]=(0,a.resolveHref)(R,l,!0);return{href:e,as:y?(0,a.resolveHref)(R,y):t||e}},[R,l,y]),z=o.default.useRef(U),$=o.default.useRef(F);P&&(n=o.default.Children.only(r));let B=P?n&&"object"==typeof n&&n.ref:t,[V,q,W]=(0,h.useIntersection)({rootMargin:"200px"}),H=o.default.useCallback(e=>{($.current!==F||z.current!==U)&&(W(),$.current=F,z.current=U),V(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[F,B,U,W,V]);o.default.useEffect(()=>{D&&q&&L&&v(D,U,F,{locale:S},{kind:N},I)},[F,U,q,S,L,null==R?void 0:R.locale,D,I,N]);let Y={ref:H,onClick(e){P||"function"!=typeof T||T(e),P&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),D&&!e.defaultPrevented&&function(e,t,r,n,i,a,l,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,s.isLocalURL)(r)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:a,locale:u,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})};c?o.default.startTransition(f):f()}(e,D,U,F,E,C,O,S,I)},onMouseEnter(e){P||"function"!=typeof k||k(e),P&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),D&&(L||!I)&&v(D,U,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:N},I)},onTouchStart:function(e){P||"function"!=typeof A||A(e),P&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),D&&(L||!I)&&v(D,U,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:N},I)}};if((0,u.isAbsoluteUrl)(F))Y.href=F;else if(!P||x||"a"===n.type&&!("href"in n.props)){let e=void 0!==S?S:null==R?void 0:R.locale,t=(null==R?void 0:R.isLocaleDomain)&&(0,p.getDomainLocale)(F,e,null==R?void 0:R.locales,null==R?void 0:R.domainLocales);Y.href=t||(0,m.addBasePath)((0,c.addLocale)(F,e,null==R?void 0:R.defaultLocale))}return P?o.default.cloneElement(n,Y):(0,i.jsx)("a",{...j,...Y,children:r})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
9dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91487:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(67294),i=r(66078),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!o,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},s.push(r),a.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,f.current]),[h,c,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30885:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),r(79784);let n=r(91946),i=r(64666);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var r,s;let l,u,c,{src:d,sizes:f,unoptimized:h=!1,priority:p=!1,loading:m,className:g,quality:y,width:v,height:b,fill:w=!1,style:_,overrideSrc:x,onLoad:E,onLoadingComplete:C,placeholder:O="empty",blurDataURL:S,fetchPriority:T,decoding:k="async",layout:A,objectFit:P,objectPosition:j,lazyBoundary:R,lazyRoot:M,...D}=e,{imgConf:I,showAltText:L,blurComplete:N,defaultLoader:U}=t,F=I||i.imageConfigDefault;if("allSizes"in F)l=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t),n=null==(r=F.qualities)?void 0:r.sort((e,t)=>e-t);l={...F,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===U)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let z=D.loader||U;delete D.loader,delete D.srcSet;let $="__next_img_default"in z;if($){if("custom"===l.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=z;z=t=>{let{config:r,...n}=t;return e(n)}}if(A){"fill"===A&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[A];e&&(_={..._,...e});let t={responsive:"100vw",fill:"100vw"}[A];t&&!f&&(f=t)}let B="",V=a(v),q=a(b);if("object"==typeof(s=d)&&(o(s)||void 0!==s.src)){let e=o(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(u=e.blurWidth,c=e.blurHeight,S=S||e.blurDataURL,B=e.src,!w){if(V||q){if(V&&!q){let t=V/e.width;q=Math.round(e.height*t)}else if(!V&&q){let t=q/e.height;V=Math.round(e.width*t)}}else V=e.width,q=e.height}}let W=!p&&("lazy"===m||void 0===m);(!(d="string"==typeof d?d:B)||d.startsWith("data:")||d.startsWith("blob:"))&&(h=!0,W=!1),l.unoptimized&&(h=!0),$&&d.endsWith(".svg")&&!l.dangerouslyAllowSVG&&(h=!0),p&&(T="high");let H=a(y),Y=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:P,objectPosition:j}:{},L?{}:{color:"transparent"},_),Z=N||"empty"===O?null:"blur"===O?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:V,heightInt:q,blurWidth:u,blurHeight:c,blurDataURL:S||"",objectFit:Y.objectFit})+'")':'url("'+O+'")',G=Z?{backgroundSize:Y.objectFit||"cover",backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Z}:{}
9,K=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,n)=>s({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:s({config:t,src:r,quality:o,width:l[c]})}}({config:l,src:d,unoptimized:h,width:V,quality:H,sizes:f,loader:z});return{props:{...D,loading:W?"lazy":m,fetchPriority:T,width:V,height:q,decoding:k,className:g,style:{...Y,...G},sizes:K.sizes,srcSet:K.srcSet,src:x||K.src},meta:{unoptimized:h,priority:p,placeholder:O,fill:w}}}},91946:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=n?40*n:t,l=i?40*i:r,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},71128:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let n=r(38754),i=r(30885),o=r(3765),a=n._(r(77124));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=o.Image},77124:function(e,t){"use strict";function r(e){var t;let{config:r,src:n,width:i,quality:o}=e,a=o||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+a}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},70861:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}});let n=r(61757)._(r(67294)),i=n.default.createContext(null);function o(e){let t=(0,n.useContext)(i);t&&t(e)}},49858:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{default:function(){return iZ}});var i,o=r(85893),a=r(67294),s=r(15103),l=r(48583),u=r(51526),c=r(70398),d=r(81879);function f({children:e,features:t,strict:r=!1}){let[,n]=(0,a.useState)(!h(t)),i=(0,a.useRef)(void 0);if(!h(t)){let{renderer:e,...r}=t;i.current=e,(0,d.K)(r)}return(0,a.useEffect)(()=>{h(t)&&t().then(({renderer:e,...t})=>{(0,d.K)(t),i.current=e,n(!0)})},[]),a.createElement(c.u.Provider,{value:{renderer:i.current,strict:r}},e)}function h(e){return"function"==typeof e}class p{constructor(e){this.isMounted=!1,this.node=e}update(){}}var m=r(81662),g=r(45487);let y=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function v(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}let b=e=>t=>y(t)&&e(t,v(t)),w=e=>1e3*e,_=e=>e/1e3;function x(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function E(e,t,r,n){return x(e,t,b(r),n)}let C=(e,t)=>r=>
9t(e(r)),O=(...e)=>e.reduce(C),S=(e,t)=>Math.abs(e-t);var T=r(2074);class k{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=j(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,i=(e=r.offset,t={x:0,y:0},Math.sqrt(S(e.x,t.x)**2+S(e.y,t.y)**2)>=3);if(!n&&!i)return;let{point:o}=r,{timestamp:a}=T.frameData;this.history.push({...o,timestamp:a});let{onStart:s,onMove:l}=this.handlers;n||(s&&s(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=A(t,this.transformPagePoint),T.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=j("pointercancel"===e.type?this.lastMoveEventInfo:A(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!y(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;let o=A(v(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=T.frameData;this.history=[{...a,timestamp:s}];let{onSessionStart:l}=t;l&&l(e,j(o,this.history)),this.removeListeners=O(E(this.contextWindow,"pointermove",this.handlePointerMove),E(this.contextWindow,"pointerup",this.handlePointerUp),E(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,T.Pn)(this.updatePoint)}}function A(e,t){return t?{point:t(e.point)}:e}function P(e,t){return{x:e.x-t.x,y:e.y-t.y}}function j({point:e},t){return{point:e,delta:P(e,R(t)),offset:P(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=R(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>w(.1)));)r--;if(!n)return{x:0,y:0};let o=_(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function R(e){return e[e.length-1]}function M(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let D=M("dragHorizontal"),I=M("dragVertical");function L(e){let t=!1;if("y"===e)t=I();else if("x"===e)t=D();else{let e=D(),r=I();e&&r?t=()=>{e(),r()}
9:(e&&e(),r&&r())}return t}function N(){let e=L(!0);return!e||(e(),!1)}var U=r(51804);let F=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},z=(e,t,r)=>-r*e+r*t+e;function $(e){return e.max-e.min}function B(e,t=0,r=.01){return Math.abs(e-t)<=r}function V(e,t,r,n=.5){e.origin=n,e.originPoint=z(t.min,t.max,e.origin),e.scale=$(r)/$(t),(B(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=z(r.min,r.max,e.origin)-e.originPoint,(B(e.translate)||isNaN(e.translate))&&(e.translate=0)}function q(e,t,r,n){V(e.x,t.x,r.x,n?n.originX:void 0),V(e.y,t.y,r.y,n?n.originY:void 0)}function W(e,t,r){e.min=r.min+t.min,e.max=e.min+$(t)}function H(e,t,r){e.min=t.min-r.min,e.max=e.min+$(t)}function Y(e,t,r){H(e.x,t.x,r.x),H(e.y,t.y,r.y)}var Z=r(24169);function G(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function K(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function X(e,t,r){return{min:J(e,t),max:J(e,r)}}function J(e,t){return"number"==typeof e?e:e[t]||0}let Q=()=>({translate:0,scale:1,origin:0,originPoint:0}),ee=()=>({x:Q(),y:Q()}),et=()=>({min:0,max:0}),er=()=>({x:et(),y:et()});function en(e){return[e("x"),e("y")]}function ei({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function eo(e){return void 0===e||1===e}function ea({scale:e,scaleX:t,scaleY:r}){return!eo(e)||!eo(t)||!eo(r)}function es(e){return ea(e)||el(e)||e.z||e.rotate||e.rotateX||e.rotateY}function el(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function eu(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function ec(e,t=0,r=1,n,i){e.min=eu(e.min,t,r,n,i),e.max=eu(e.max,t,r,n,i)}function ed(e,{x:t,y:r}){ec(e.x,t.translate,t.scale,t.originPoint),ec(e.y,r.translate,r.scale,r.originPoint)}function ef(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function eh(e,t){e.min=e.min+t,e.max=e.max+t}function ep(e,t,[r,n,i]){let o=void 0!==t[i]?t[i]:.5,a=z(e.min,e.max,o);ec(e,t[r],t[n],a,t.scale)}let em=["x","scaleX","originX"],eg=["y","scaleY","originY"];function ey(e,t){ep(e.x,t,em),ep(e.y,t,eg)}function ev(e,t){return ei(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}var eb=r(96190);let ew={current:!1},e_=e=>Array.isArray(e)&&"number"==typeof e[0],ex=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,eE={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ex([0,.65,.55,1]),circOut:ex([.55,0,1,.45]),backIn:ex([.31,.01,.66,-.59]),backOut:ex([.33,1.53,.69,.99])},eC=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function eO(e,t,r,n){if(e===t&&r===n)return m.Z;let i=t=>(function(e,t,r,n,i){let o,a;let s=0;do(o=eC(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a})(t,0,1,e,r);return e=>0===e||1===e?e:eC(i(e),t,n)}let eS=eO(.42,0,1,1),eT=eO(0,0,.58,1),ek=eO(.42,0,.58,1),eA=e=>Array.isArray(e)&&"number"!=typeof e[0],eP=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ej=e=>t=>1-e(1-t),eR=e=>1-Math.sin(Math.acos(e)),eM=ej(eR),eD=eP(eR),eI=eO(.33,1.53,.69,.99),eL=ej(eI),eN=eP(eL),eU={linear:m.Z,easeIn:eS,easeInOut:ek,easeOut:eT,circIn:eR,circInOut:eD,circOut:eM,backIn:eL,backInOut:eN,backOut:eI,anticipate:e=>(e*=2)<1?.5*eL(e):.5*(2-Math.pow(2,-10*(e-1)))},eF=e=>{if(Array.isArray(e)){(0,g.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return eO(t,r,n,i)}return"string"==typeof e?((0,g.k)(void 0!==eU[e],`Invalid easing type '${e}'`),eU[e]):e};var ez=r(36430),e$=r(61649);let eB=(e,t)=>r=>!!((0,ez.HD)(r)&&ez.mj.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),eV=(e,t,r)=>n=>{if(!(0,ez.HD)(n))return n;let[i,o,a,s]=n.match(ez.KP);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},eq=e=>(0,Z.u)(0,255,e),eW={...e$.Rx,transform:e=>Math.round(eq(e))},eH={test:eB("rgb","red"),parse:eV("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+eW.transform(e)+", "+eW.transform(t)+", "+eW.transform(r)+", "+(0,ez.Nw)(e$.Fq.transform(n))+")"},eY={test:eB("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alph
9a:i?parseInt(i,16)/255:1}},transform:eH.transform},eZ={test:eB("hsl","hue"),parse:eV("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+eb.aQ.transform((0,ez.Nw)(t))+", "+eb.aQ.transform((0,ez.Nw)(r))+", "+(0,ez.Nw)(e$.Fq.transform(n))+")"},eG={test:e=>eH.test(e)||eY.test(e)||eZ.test(e),parse:e=>eH.test(e)?eH.parse(e):eZ.test(e)?eZ.parse(e):eY.parse(e),transform:e=>(0,ez.HD)(e)?e:e.hasOwnProperty("red")?eH.transform(e):eZ.transform(e)};function eK(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}let eX=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},eJ=[eY,eH,eZ],eQ=e=>eJ.find(t=>t.test(e));function e0(e){let t=eQ(e);(0,g.k)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===eZ&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=eK(s,n,e+1/3),o=eK(s,n,e),a=eK(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(r)),r}let e1=(e,t)=>{let r=e0(e),n=e0(t),i={...r};return e=>(i.red=eX(r.red,n.red,e),i.green=eX(r.green,n.green,e),i.blue=eX(r.blue,n.blue,e),i.alpha=z(r.alpha,n.alpha,e),eH.transform(i))};var e2=r(57630);let e5={regex:e2.Xp,countKey:"Vars",token:"${v}",parse:m.Z},e3={regex:ez.dA,countKey:"Colors",token:"${c}",parse:eG.parse},e4={regex:ez.KP,countKey:"Numbers",token:"${n}",parse:e$.Rx.parse};function e6(e,{regex:t,countKey:r,token:n,parse:i}){let o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function e8(e){let t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&e6(r,e5),e6(r,e3),e6(r,e4),r}function e9(e){return e8(e).values}function e7(e){let{values:t,numColors:r,numVars:n,tokenised:i}=e8(e),o=t.length;return e=>{let t=i;for(let i=0;i<o;i++)t=i<n?t.replace(e5.token,e[i]):i<n+r?t.replace(e3.token,eG.transform(e[i])):t.replace(e4.token,(0,ez.Nw)(e[i]));return t}}let te=e=>"number"==typeof e?0:e,tt={test:function(e){var t,r;return isNaN(e)&&(0,ez.HD)(e)&&((null===(t=e.match(ez.KP))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(ez.dA))||void 0===r?void 0:r.length)||0)>0},parse:e9,createTransformer:e7,getAnimatableNone:function(e){let t=e9(e);return e7(e)(t.map(te))}},tr=(e,t)=>r=>`${r>0?t:e}`;function tn(e,t){return"number"==typeof e?r=>z(e,t,r):eG.test(e)?e1(e,t):e.startsWith("var(")?tr(e,t):ta(e,t)}let ti=(e,t)=>{let r=[...e],n=r.length,i=e.map((e,r)=>tn(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}},to=(e,t)=>{let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=tn(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}},ta=(e,t)=>{let r=tt.createTransformer(t),n=e8(e),i=e8(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?O(ti(n.values,i.values),r):((0,g.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tr(e,t))},ts=(e,t)=>r=>z(e,t,r);function tl(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;if((0,g.k)(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,r){let n=[],i=r||function(e){if("number"==typeof e);else if("string"==typeof e)return eG.test(e)?e1:ta;else if(Array.isArray(e))return ti;else if("object"==typeof e)return to;return ts}(e[0]),o=e.length-1;for(let r=0;r<o;r++){let o=i(e[r],e[r+1]);t&&(o=O(Array.isArray(t)?t[r]||m.Z:t,o)),n.push(o)}return n}(t,n,i),s=a.length,l=t=>{let r=0;if(s>1)for(;r<e.length-2&&!(t<e[r+1]);r++);let n=F(e[r],e[r+1],t);return a[r](n)};return r?t=>l((0,Z.u)(e[0],e[o-1],t)):l}function tu({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let i=eA(n)?n.map(eF):eF(n),o={done:!1,value:t[0]},a=tl((r&&r.length===t.length?r:function(e){let t=[0];return function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=F(0,t,n);e.push(z(r,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(i)?i:t.map(()=>i||ek).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}function tc(e,t,r){var n,i;let o=Math.max(t-5,0);return n=r-e(o),(i=t-o)?1e3/i*n:0}function td(e,t){return e*Math.sqrt(1-t*t)}let tf=["duration","bounce"],th=["stiffness","damping","mass"];function tp(e,t){return t.some(t=>void 0!==e[t])}function tm({keyframes:e,restDelta:t,restSpeed:r,...n}){let i;let o=e[0],a=e[e.length-1],s={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!tp(e,th)&&tp(e,tf)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;(0,g.K)(e<=w(10),"Spring duration must be 10 seconds or less");let a=1-t;a=(0,Z.u)(.05,1,a),e=(0,Z.u)(.01,10,_(e)),a<1?(i=t=>{let n=t*a,i=n*e;return .001-(n-r)/td(t,a)*Math.exp(-i)},o=t=>{let n=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=td(Math.pow(t,2),a);return(n*r+r-o)*Math.exp(-n)*(-i(t)+.001>0?-1:1)/s}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),o=t=>e*e*(r-t)*Math.exp(-t*e));let s=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,5/e);if(e=w(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*n;
9return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-_(n.velocity||0)}),p=f||0,m=u/(2*Math.sqrt(l*c)),y=a-o,v=_(Math.sqrt(l/c)),b=5>Math.abs(y);if(r||(r=b?.01:2),t||(t=b?.005:.5),m<1){let e=td(v,m);i=t=>a-Math.exp(-m*v*t)*((p+m*v*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===m)i=e=>a-Math.exp(-v*e)*(y+(p+v*y)*e);else{let e=v*Math.sqrt(m*m-1);i=t=>{let r=Math.exp(-m*v*t),n=Math.min(e*t,300);return a-r*((p+m*v*y)*Math.sinh(n)+e*y*Math.cosh(n))/e}}return{calculatedDuration:h&&d||null,next:e=>{let n=i(e);if(h)s.done=e>=d;else{let o=p;0!==e&&(o=m<1?tc(i,e,n):0);let l=Math.abs(o)<=r,u=Math.abs(a-n)<=t;s.done=l&&u}return s.value=s.done?a:n,s}}}function tg({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,f;let h=e[0],p={done:!1,value:h},m=e=>void 0!==s&&e<s||void 0!==l&&e>l,g=e=>void 0===s?l:void 0===l?s:Math.abs(s-e)<Math.abs(l-e)?s:l,y=r*t,v=h+y,b=void 0===a?v:a(v);b!==v&&(y=b-h);let w=e=>-y*Math.exp(-e/n),_=e=>b+w(e),x=e=>{let t=w(e),r=_(e);p.done=Math.abs(t)<=u,p.value=p.done?b:r},E=e=>{m(p.value)&&(d=e,f=tm({keyframes:[p.value,g(p.value)],velocity:tc(_,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,x(e),E(e)),void 0!==d&&e>d)?f.next(e-d):(t||x(e),p)}}}let ty=e=>{let t=({timestamp:t})=>e(t);return{start:()=>T.Wi.update(t,!0),stop:()=>(0,T.Pn)(t),now:()=>T.frameData.isProcessing?T.frameData.timestamp:performance.now()}};function tv(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}let tb={decay:tg,inertia:tg,tween:tu,keyframes:tu,spring:tm};function tw({autoplay:e=!0,delay:t=0,driver:r=ty,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let h,p,m,g,y,v=1,b=!1,x=()=>{p=new Promise(e=>{h=e})};x();let E=tb[i]||tu;E!==tu&&"number"!=typeof n[0]&&(g=tl([0,100],n,{clamp:!1}),n=[0,100]);let C=E({...f,keyframes:n});"mirror"===s&&(y=E({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let O="idle",S=null,T=null,k=null;null===C.calculatedDuration&&o&&(C.calculatedDuration=tv(C));let{calculatedDuration:A}=C,P=1/0,j=1/0;null!==A&&(j=(P=A+a)*(o+1)-a);let R=0,M=e=>{if(null===T)return;v>0&&(T=Math.min(T,e)),v<0&&(T=Math.min(e-j/v,T));let r=(R=null!==S?S:Math.round(e-T)*v)-t*(v>=0?1:-1),i=v>=0?r<0:r>j;R=Math.max(r,0),"finished"===O&&null===S&&(R=j);let l=R,u=C;if(o){let e=Math.min(R,j)/P,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,o+1))%2&&("reverse"===s?(r=1-r,a&&(r-=a/P)):"mirror"===s&&(u=y)),l=(0,Z.u)(0,1,r)*P}let c=i?{done:!1,value:n[0]}:u.next(l);g&&(c.value=g(c.value));let{done:f}=c;i||null===A||(f=v>=0?R>=j:R<=0);let h=null===S&&("finished"===O||"running"===O&&f);return d&&d(c.value),h&&L(),c},D=()=>{m&&m.stop(),m=void 0},I=()=>{O="idle",D(),h(),x(),T=k=null},L=()=>{O="finished",c&&c(),D(),h()},N=()=>{if(b)return;m||(m=r(M));let e=m.now();l&&l(),null!==S?T=e-S:T&&"finished"!==O||(T=e),"finished"===O&&x(),k=T,S=null,O="running",m.start()};e&&N();let U={then:(e,t)=>p.then(e,t),get time(){return _(R)},set time(newTime){R=newTime=w(newTime),null===S&&m&&0!==v?T=m.now()-newTime/v:S=newTime},get duration(){return _(null===C.calculatedDuration?tv(C):C.calculatedDuration)},get speed(){return v},set speed(newSpeed){if(newSpeed===v||!m)return;v=newSpeed,U.time=_(R)},get state(){return O},play:N,pause:()=>{O="paused",S=R},stop:()=>{b=!0,"idle"!==O&&(O="idle",u&&u(),I())},cancel:()=>{null!==k&&M(k),I()},complete:()=>{O="finished"},sample:e=>(T=0,M(e))};return U}let t_=(i=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===n&&(n=i()),n)),tx=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),tE=(e,t)=>"spring"===t.type||"backgroundColor"===e||!function e(t){return!!(!t||"string"==typeof t&&eE[t]||e_(t)||Array.isArray(t)&&t.every(e))}(t.ease);var tC=r(94714);let tO={type:"spring",stiffness:500,damping:25,restSpeed:10},tS=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),tT={type:"keyframes",duration:.8},tk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tA=(e,{keyframes:t})=>t.length>2?tT:tC.G.has(e)?e.startsWith("scale")?tS(t[1]):tO:tk,tP=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tt.test(t)||"0"===t)&&!t.startsWith("url(")),tj=new Set(["brightness","contrast","saturate","opacity"]);function tR(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(ez.KP)||[];if(!n)return e;let i=r.replace(n,""),o=tj.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let tM=/([a-z-]*)\(.*?\)/g,tD={...tt,getAnimatableNone:e=>{let t=e.match(tM);return t?t.map(tR).join(" "):e}},tI={...r(36173).j,color:eG,backgroundColor:eG,outlineColor:eG,fill:eG,stroke:eG,borderColor:eG,borderTopColor:eG,borderRightColor:eG,borderBottomColor:eG,borderLeftColor:eG,filter:tD,WebkitFilter:tD},tL=e=>tI[e];function tN(e,t){let r=tL(e);return r!==tD&&(r=tt),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let tU=e=>/^0[^.\s]+$/.test(e);function tF(e,t){return e[t]||e.default||e}let tz={skipAnimations:!1},t$=(e,t,r,n={})=>i=>{let o=tF(n,e)||{},a=o.delay||n.delay||0,{elapsed:s=0}=n;s-=w(a);let l=function(e,t,r,n){let i,o;let a=tP(t,r);i=Array.isArray(r)?[...r]:[null,r];let s=void 0!==n.from?n.from:e.get(),l=[];for(let e=0;e<i.length;e++){var u;null===i[e]&&(i[e]=0===e?s:i[e-1]),("number"==typeof(u=i[e])?0===u:null!==u?"none"===u||"0"===u||tU(u):void 0)&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(o=i[e])}
9if(a&&l.length&&o)for(let e=0;e<l.length;e++)i[l[e]]=tN(t,o);return i}(t,e,r,o),u=l[0],c=l[l.length-1],d=tP(e,u),f=tP(e,c);(0,g.K)(d===f,`You are trying to animate ${e} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-s,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(o)&&(h={...h,...tA(e,h)}),h.duration&&(h.duration=w(h.duration)),h.repeatDelay&&(h.repeatDelay=w(h.repeatDelay)),!d||!f||ew.current||!1===o.type||tz.skipAnimations)return function({keyframes:e,delay:t,onUpdate:r,onComplete:n}){let i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:m.Z,pause:m.Z,stop:m.Z,then:e=>(e(),Promise.resolve()),cancel:m.Z,complete:m.Z});return t?tw({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(ew.current?{...h,delay:0}:h);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let r=function(e,t,{onUpdate:r,onComplete:n,...i}){let o,a;if(!(t_()&&tx.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let s=!1,l=!1,u=()=>{a=new Promise(e=>{o=e})};u();let{keyframes:c,duration:d=300,ease:f,times:h}=i;if(tE(t,i)){let e=tw({...i,repeat:0,delay:0}),t={done:!1,value:c[0]},r=[],n=0;for(;!t.done&&n<2e4;)t=e.sample(n),r.push(t.value),n+=10;h=void 0,c=r,d=n-10,f="linear"}let p=function(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){let u={[t]:r};l&&(u.offset=l);let c=function e(t){if(t)return e_(t)?ex(t):Array.isArray(t)?t.map(e):eE[t]}(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...i,duration:d,ease:f,times:h}),g=()=>{l=!1,p.cancel()},y=()=>{l=!0,T.Wi.update(g),o(),u()};return p.onfinish=()=>{l||(e.set(function(e,{repeat:t,repeatType:r="loop"}){let n=t&&"loop"!==r&&t%2==1?0:e.length-1;return e[n]}(c,i)),n&&n(),y())},{then:(e,t)=>a.then(e,t),attachTimeline:e=>(p.timeline=e,p.onfinish=null,m.Z),get time(){return _(p.currentTime||0)},set time(newTime){p.currentTime=w(newTime)},get speed(){return p.playbackRate},set speed(newSpeed){p.playbackRate=newSpeed},get duration(){return _(d)},play:()=>{s||(p.play(),(0,T.Pn)(g))},pause:()=>p.pause(),stop:()=>{if(s=!0,"idle"===p.playState)return;let{currentTime:t}=p;if(t){let r=tw({...i,autoplay:!1});e.setWithVelocity(r.sample(t-10).value,r.sample(t).value,10)}y()},complete:()=>{l||p.finish()},cancel:y}}(t,e,h);if(r)return r}return tw(h)},tB=({current:e})=>e?e.ownerDocument.defaultView:null,tV=new WeakMap;class tq{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=er(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new k(e,{onSessionStart:e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(v(e,"page").point)},onStart:(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=L(r),!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),en(e=>{let t=this.getAxisMotionValue(e).get()||0;if(eb.aQ.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];if(n){let e=$(n);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),i&&T.Wi.update(()=>i(e,t),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>
9{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>en(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:tB(this.visualElement)})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&T.Wi.update(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!tW(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?z(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?z(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&(0,U.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:G(e.x,r,i),y:G(e.y,t,n)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:X(e,"left","right"),y:X(e,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&en(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!(0,U.I)(t))return!1;let n=t.current;(0,g.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,r){let n=ev(e,r),{scroll:i}=t;return i&&(eh(n.x,i.offset.x),eh(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),a={x:K((e=i.layout.layoutBox).x,o.x),y:K(e.y,o.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=ei(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(en(a=>{if(!tW(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return r.start(t$(e,r,0,t))}stopAnimation(){en(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){en(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t="_drag"+e.toUpperCase(),r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){en(t=>{let{drag:r}=this.getProps();if(!tW(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-z(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!(0,U.I)(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};en(e=>{let t=this.getAxisMotionValue(e);if(t){let r=t.get();n[e]=function(e,t){let r=.5,n=$(e),i=$(t);return i>n?r=F(t.min,t.max-n,e.min):n>i&&(r=F(e.min,e.max-i,t.min)),(0,Z.u)(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),en(t=>{if(!tW(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set(z(i,o,n[t]))})}addListeners(){if(!this.visualElement.current)return;tV.set(this.visualElement,this);let e=E(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();(0,U.I)(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t();let i=x(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(en(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),n(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function tW(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class tH extends p{constructor(e){super(e),this.removeGroupControls=m.Z,this.removeListeners=m.Z,this.controls=new tq(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||m.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let tY=e=>(t,r)=>{e&&T.Wi.update(()=>e(t,r))};class tZ extends p{constructor(){super(...arguments),this.removePointerDownListener=m.Z}onPointerDown(e){this.session=new k(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tB(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:tY(e),onStart:tY(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&T.Wi.update(()=>n(e,t))}}}mount(){this.removePointerDownListener=E(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var tG=r(240),tK=r(25364),tX=r(41705);let tJ={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tQ(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let t0={correct:(e,t)=>
9{if(!t.target)return e;if("string"==typeof e){if(!eb.px.test(e))return e;e=parseFloat(e)}let r=tQ(e,t.target.x),n=tQ(e,t.target.y);return`${r}% ${n}%`}};var t1=r(64561);class t2 extends a.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;(0,t1.B)(t3),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),tJ.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||T.Wi.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function t5(e){let[t,r]=function(){let e=(0,a.useContext)(tG.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,a.useId)();return(0,a.useEffect)(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}(),n=(0,a.useContext)(tK.p);return a.createElement(t2,{...e,layoutGroup:n,switchLayoutGroup:(0,a.useContext)(tX.g),isPresent:t,safeToRemove:r})}let t3={borderRadius:{...t0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:t0,borderTopRightRadius:t0,borderBottomLeftRadius:t0,borderBottomRightRadius:t0,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=tt.parse(e);if(n.length>5)return e;let i=tt.createTransformer(e),o="number"!=typeof n[0]?1:0,a=r.x.scale*t.x,s=r.y.scale*t.y;n[0+o]/=a,n[1+o]/=s;let l=z(a,s,.5);return"number"==typeof n[2+o]&&(n[2+o]/=l),"number"==typeof n[3+o]&&(n[3+o]/=l),i(n)}}};function t4(e,t){-1===e.indexOf(t)&&e.push(t)}function t6(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class t8{constructor(){this.subscriptions=[]}add(e){return t4(this.subscriptions,e),()=>t6(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let t9=["TopLeft","TopRight","BottomLeft","BottomRight"],t7=t9.length,re=e=>"string"==typeof e?parseFloat(e):e,rt=e=>"number"==typeof e||eb.px.test(e);function rr(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rn=ro(0,.5,eM),ri=ro(.5,.95,m.Z);function ro(e,t,r){return n=>n<e?0:n>t?1:r(F(e,t,n))}function ra(e,t){e.min=t.min,e.max=t.max}function rs(e,t){ra(e.x,t.x),ra(e.y,t.y)}function rl(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function ru(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){if(eb.aQ.test(t)&&(t=parseFloat(t),t=z(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=z(o.min,o.max,n);e===o&&(s-=t),e.min=rl(e.min,t,r,s,i),e.max=rl(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}let rc=["x","scaleX","originX"],rd=["y","scaleY","originY"];function rf(e,t,r,n){ru(e.x,t,rc,r?r.x:void 0,n?n.x:void 0),ru(e.y,t,rd,r?r.y:void 0,n?n.y:void 0)}function rh(e){return 0===e.translate&&1===e.scale}function rp(e){return rh(e.x)&&rh(e.y)}function rm(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 rg(e){return $(e.x)/$(e.y)}class ry{constructor(){this.members=[]}add(e){t4(this.members,e),e.scheduleRender()}remove(e){if(t6(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}
9exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rv(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:e,rotateX:t,rotateY:i}=r;e&&(n+=`rotate(${e}deg) `),t&&(n+=`rotateX(${t}deg) `),i&&(n+=`rotateY(${i}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return(1!==a||1!==s)&&(n+=`scale(${a}, ${s})`),n||"none"}let rb=(e,t)=>e.depth-t.depth;class rw{constructor(){this.children=[],this.isDirty=!1}add(e){t4(this.children,e),this.isDirty=!0}remove(e){t6(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rb),this.isDirty=!1,this.children.forEach(e)}}var r_=r(16399);let rx=e=>!isNaN(parseFloat(e)),rE={current:void 0};class rC{constructor(e,t={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:r,timestamp:n}=T.frameData;this.lastUpdated!==n&&(this.timeDelta=r,this.lastUpdated=n,T.Wi.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()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>T.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=rx(this.current),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new t8);let r=this.events[e].add(t);return"change"===e?()=>{r(),T.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return rE.current&&rE.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 rO(e,t){return new rC(e,t)}var rS=r(40406);let rT=["","X","Y","Z"],rk={visibility:"hidden"},rA=0,rP={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function rj({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=null==t?void 0:t()){this.id=rA++,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,rP.totalNodes=rP.resolvedTargetDeltas=rP.recalculatedProjection=0,this.nodes.forEac
9h(rD),this.nodes.forEach(r$),this.nodes.forEach(rB),this.nodes.forEach(rI),window.MotionDebug&&window.MotionDebug.record(rP)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rw)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new t8),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||n)&&(this.isLayoutDirty=!0),e){let r;let n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=performance.now(),n=({timestamp:t})=>{let i=t-r;i>=250&&((0,T.Pn)(n),e(i-250))};return T.Wi.read(n,!0),()=>(0,T.Pn)(n)}(n,0),tJ.hasAnimatedSinceResize&&(tJ.hasAnimatedSinceResize=!1,this.nodes.forEach(rz))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||rZ,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!rm(this.targetLayout,n)||r,u=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...tF(i,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||rz(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,T.Pn)(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(rV),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!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 e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rN);return}this.isUpdating||this.nodes.forEach(rU),this.isUpdating=!1,this.nodes.forEach(rF),this.nodes.forEach(rR),this.nodes.forEach(rM),this.clearAllSnapshots();let e=performance.now();T.frameData.delta=(0,Z.u)(0,1e3/60,e-T.frameData.timestamp),T.frameData.timestamp=e,T.frameData.isProcessing=!0,T.S6.update.process(T.frameData),T.S6.preRender.process(T.frameData),T.S6.render.process(T.frameData),T.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}
9clearAllSnapshots(){this.nodes.forEach(rL),this.sharedNodes.forEach(rq)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,T.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){T.Wi.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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=er(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!rp(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;e&&(t||es(this.latestValues)||o)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),rX((t=n).x),rX(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return er();let t=e.measureViewportBox(),{scroll:r}=this.root;return r&&(eh(t.x,r.offset.x),eh(t.y,r.offset.y)),t}removeElementScroll(e){let t=er();rs(t,e);for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:o}=n;if(n!==this.root&&i&&o.layoutScroll){if(i.isRoot){rs(t,e);let{scroll:r}=this.root;r&&(eh(t.x,-r.offset.x),eh(t.y,-r.offset.y))}eh(t.x,i.offset.x),eh(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){let r=er();rs(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&ey(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),es(n.latestValues)&&ey(r,n.latestValues)}return es(this.latestValues)&&ey(r,this.latestValues),r}removeTransform(e){let t=er();rs(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!es(r.latestValues))continue;ea(r.latestValues)&&r.updateSnapshot();let n=er();rs(n,r.measurePageBox()),rf(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return es(this.latestValues)&&rf(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}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!==T.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,n,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:s,layoutId:l}=this.options;if(this.layout&&(s||l)){if(this.resolvedRelativeTargetAt=T.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=er(),this.relativeTargetOrigin=er(),Y(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),rs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=er(),this.targetWithTransforms=er()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,n=this.relativeTarget,i=this.relativeParent.target,W(r.x,n.x,i.x),W(r.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rs(this.target,this.layout.layoutBox),ed(this.target,this.targetDelta)):rs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=er(),this.relativeTargetOrigin=er(),Y(this.relativeTargetOrigin,this.target,e.target),rs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rP.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||ea(this.parent.latestValues)||el(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),r=!!this.resumingFrom||this!==t,n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===T.frameData.timestamp&&(n=!1),n)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;rs(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,n=!1){let i,o;let a=r.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=r[s]).projectionDelta;let a=i.instance;(!a||!a.style||"contents"!==a.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ey(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ed(e,o)),n&&es(i.latestValues)&&ey(e,i.latestValues))}t.x=ef(t.x),t.y=ef(t.y)}}(this.layoutCorrected,this.treeScale,this.path,r),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox);let{target:l}=t;
9if(!l){this.projectionTransform&&(this.projectionDelta=ee(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=ee(),this.projectionDeltaWithTransform=ee());let u=this.projectionTransform;q(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=rv(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==a||this.treeScale.y!==s)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rP.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){let r;let n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},a=ee();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=er(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(rY));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(rW(a.x,e.x,n),rW(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,h,p;Y(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,p=this.relativeTargetOrigin,rH(h.x,p.x,s.x,n),rH(h.y,p.y,s.y,n),r&&(u=this.relativeTarget,f=r,u.x.min===f.x.min&&u.x.max===f.x.max&&u.y.min===f.y.min&&u.y.max===f.y.max)&&(this.isProjectionDirty=!1),r||(r=er()),rs(r,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,r,n,i,o){i?(e.opacity=z(0,void 0!==r.opacity?r.opacity:1,rn(n)),e.opacityExit=z(void 0!==t.opacity?t.opacity:1,0,ri(n))):o&&(e.opacity=z(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<t7;i++){let o=`border${t9[i]}Radius`,a=rr(t,o),s=rr(r,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||rt(a)===rt(s)?(e[o]=Math.max(z(re(a),re(s),n),0),(eb.aQ.test(s)||eb.aQ.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||r.rotate)&&(e.rotate=z(t.rotate||0,r.rotate||0,n))}(o,i,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,T.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=T.Wi.update(()=>{tJ.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){let n=(0,rS.i)(0)?0:rO(0);return n.start(t$("",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.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);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&rJ(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||er();let t=$(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=$(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}rs(t,r),ey(t,i),q(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
9)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ry),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(t=!0),!t)return;let n={};for(let t=0;t<rT.length;t++){let i="rotate"+rT[t];r[i]&&(n[i]=r[i],e.setStaticValue(i,0))}for(let t in e.render(),n)e.setStaticValue(t,n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rk;let n={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=(0,r_.b)(null==e?void 0:e.pointerEvents)||"",n.transform=i?i(this.latestValues,""):"none",n;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,r_.b)(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!es(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),n.transform=rv(this.projectionDeltaWithTransform,this.treeScale,a),i&&(n.transform=i(a,n.transform));let{x:s,y:l}=this.projectionDelta;for(let e in n.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,o.animationValues?n.opacity=o===this?null!==(r=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,t1.P){if(void 0===a[e])continue;let{correct:t,applyTo:r}=t1.P[e],i="none"===n.transform?a[e]:t(a[e],o);if(r){let e=r.length;for(let t=0;t<e;t++)n[r[t]]=i}else n[e]=i}return this.options.layoutId&&(n.pointerEvents=o===this?(0,r_.b)(null==e?void 0:e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(rN),this.root.sharedNodes.clear()}}}function rR(e){e.updateLayout()}function rM(e){var t;let r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?en(e=>{let n=o?r.measuredBox[e]:r.layoutBox[e],i=$(n);n.min=t[e].min,n.max=n.min+i}):rJ(i,r.layoutBox,t)&&en(n=>{let i=o?r.measuredBox[n]:r.layoutBox[n],a=$(t[n]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=ee();q(a,t,r.layoutBox);let s=ee();o?q(s,e.applyTransform(n,!0),r.measuredBox):q(s,t,r.layoutBox);let l=!rp(a),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:o}=n;if(i&&o){let a=er();Y(a,r.layoutBox,i.layoutBox);let s=er();Y(s,t,o.layoutBox),rm(a,s)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rD(e){rP.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 rI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rL(e){e.clearSnapshot()}function rN(e){e.clearMeasurements()}function rU(e){e.isLayoutDirty=!1}function rF(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rz(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function r$(e){e.resolveTargetDelta()}function rB(e){e.calcProjection()}function rV(e){e.resetRotation()}function rq(e){e.removeLeadSnapshot()}function rW(e,t,r){e.translate=z(t.translate,0,r),e.scale=z(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function rH(e,t,r,n){e.min=z(t.min,r.min,n),e.max=z(t.max,r.max,n)}function rY(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let rZ={duration:.45,ease:[.4,0,.1,1]},rG=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),rK=rG("applewebkit/")&&!rG("chrome/")?Math.round:m.Z;function rX(e){e.min=rK(e.min),e.max=rK(e.max)}function rJ(e,t,r){return"position"===e||"preserve-aspect"===e&&!B(rg(t),rg(r),.2)}let rQ=rj({attachResizeListener:(e,t)=>x(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),r0={current:void 0},r1=rj({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!r0.current){let e=new rQ({});e.mount(window),e.setOptions({layoutScroll:!0}),r0.current=e}return r0.current},resetTransform:(e,t)=>
9{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});var r2=r(2445),r5=r(48488);function r3(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}var r4=r(97732),r6=r(79432);function r8(e,t,r){let n=e.getProps();return(0,r6.o)(n,t,void 0!==r?r:n.custom,function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.getVelocity()),t}(e))}var r9=r(22963),r7=r(68588);function ne(e){return!!((0,rS.i)(e)&&e.add)}let nt=e=>/^\-?\d*\.?\d+$/.test(e);var nr=r(8715);let nn=e=>t=>t.test(e),ni=[e$.Rx,eb.px,eb.aQ,eb.RW,eb.vw,eb.vh,{test:e=>"auto"===e,parse:e=>e}],no=e=>ni.find(nn(e)),na=[...ni,eG,tt],ns=e=>na.find(nn(e));function nl(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t),l=e.getValue("willChange");n&&(o=n);let u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let n=e.getValue(t),i=s[t];if(!n||void 0===i||c&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(c,t))continue;let a={delay:r,elapsed:0,...tF(o||{},t)};if(window.HandoffAppearAnimations){let r=e.getProps()[r7.M];if(r){let e=window.HandoffAppearAnimations(r,t,n,T.Wi);null!==e&&(a.elapsed=e,a.isHandoff=!0)}}let d=!a.isHandoff&&!function(e,t){let r=e.get();if(!Array.isArray(t))return r!==t;for(let e=0;e<t.length;e++)if(t[e]!==r)return!0}(n,i);if("spring"===a.type&&(n.getVelocity()||a.velocity)&&(d=!1),n.animation&&(d=!1),d)continue;n.start(t$(t,n,i,e.shouldReduceMotion&&tC.G.has(t)?{type:!1}:a));let f=n.animation;ne(l)&&(l.add(t),f.then(()=>l.remove(t))),u.push(f)}return a&&Promise.all(u).then(()=>{a&&function(e,t){let r=r8(e,t),{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};for(let t in o={...o,...n}){let r=(0,nr.Y)(o[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,rO(r))}}(e,a)}),u}function nu(e,t,r={}){let n=r8(e,t,r.custom),{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let o=n?()=>Promise.all(nl(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,r=0,n=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(nc).forEach((e,n)=>{e.notify("AnimationStart",t),a.push(nu(e,t,{...o,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,o+n,a,s,r)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([o(),a(r.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}function nc(e,t){return e.sortNodePosition(t)}let nd=[...r9.e].reverse(),nf=r9.e.length;function nh(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class np extends p{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>nu(e,t,r)));else if("string"==typeof t)n=nu(e,t,r);else{let i="function"==typeof t?r8(e,t,r.custom):t;n=Promise.all(nl(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))})(e,t,r))),r={animate:nh(!0),whileInView:nh(),whileHover:nh(),whileTap:nh(),whileDrag:nh(),whileFocus:nh(),exit:nh()},n=!0,i=(t,r)=>{let n=r8(e,r);if(n){let{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}return t};function o(o,a){let s=e.getProps(),l=e.getVariantContext(!0)||{},u=[],c=new Set,d={},f=1/0;for(let t=0;t<nf;t++){var h;let p=nd[t],m=r[p],g=void 0!==s[p]?s[p]:l[p],y=(0,r4.$)(g),v=p===a?m.isActive:null;!1===v&&(f=t);let b=g===l[p]&&g!==s[p]&&y;if(b&&n&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...d},!m.isActive&&null===v||!g&&!m.prevProp||(0,r2.H)(g)||"boolean"==typeof g)continue;let w=(h=m.prevProp,("string"==typeof g?g!==h:!!Array.isArray(g)&&!r3(g,h))||p===a&&m.isActive&&!b&&y||t>f&&y),_=!1,x=Array.isArray(g)?g:[g],E=x.reduce(i,{});!1===v&&(E={});let{prevResolvedValues:C={}}=m,O={...C,...E},S=e=>{w=!0,c.has(e)&&(_=!0,c.delete(e)),m.needsAnimating[e]=!0};for(let e in O){let t=E[e],r=C[e];if(!d.hasOwnProperty(e))((0,r5.C)(t)&&(0,r5.C)(r)?r3(t,r):t===r)?void 0!==t&&c.has(e)?S(e):m.protectedKeys[e]=!0:void 0!==t?S(e):c.add(e)}m.prevProp=g,m.prevResolvedValues=E,m.isActive&&(d={...d,...E}),n&&e.blockInitialAnimation&&(w=!1),w&&(!b||_)&&u.push(...x.map(e=>({animation:e,options:{type:p,...o}})))}if(c.size){let t={};
9c.forEach(r=>{let n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)}),u.push({animation:t})}let p=!!u.length;return n&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,n,i){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let s=o(i,t);for(let e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),(0,r2.H)(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}let nm=0;class ng extends p{constructor(){super(...arguments),this.id=nm++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let i=this.node.animationState.setActive("exit",!e,{custom:null!=r?r:this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}function ny(e,t){let r="onHover"+(t?"Start":"End");return E(e.current,"pointer"+(t?"enter":"leave"),(n,i)=>{if("touch"===n.pointerType||N())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[r]&&T.Wi.update(()=>o[r](n,i))},{passive:!e.getProps()[r]})}class nv extends p{mount(){this.unmount=O(ny(this.node,!0),ny(this.node,!1))}unmount(){}}class nb extends p{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=O(x(this.node.current,"focus",()=>this.onFocus()),x(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let nw=(e,t)=>!!t&&(e===t||nw(e,t.parentElement));function n_(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,v(r))}class nx extends p{constructor(){super(...arguments),this.removeStartListeners=m.Z,this.removeEndListeners=m.Z,this.removeAccessibleListeners=m.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let r=this.node.getProps(),n=E(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps();T.Wi.update(()=>{i||nw(this.node.current,e.target)?r&&r(e,t):n&&n(e,t)})},{passive:!(r.onTap||r.onPointerUp)}),i=E(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=O(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=x(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=x(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&n_("up",(e,t)=>{let{onTap:r}=this.node.getProps();r&&T.Wi.update(()=>r(e,t))})}),n_("down",(e,t)=>{this.startPress(e,t)}))}),t=x(this.node.current,"blur",()=>{this.isPressing&&n_("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=O(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&T.Wi.update(()=>r(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!N()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&T.Wi.update(()=>r(e,t))}mount(){let e=this.node.getProps(),t=E(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=x(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=O(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let nE=new WeakMap,nC=new WeakMap,nO=e=>{let t=nE.get(e.target);t&&t(e)},nS=e=>{e.forEach(nO)},nT={some:0,all:1};
9class nk extends p{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:nT[n]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;nC.has(r)||nC.set(r,{});let n=nC.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(nS,{root:e,...t})),n[i]}(t);return nE.set(e,r),n.observe(e),()=>{nE.delete(e),n.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=t?r:n;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}var nA=r(38057),nP=r(50189),nj=r(34242);let nR=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function nM(e,t,r=1){(0,g.k)(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=function(e){let t=nR.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);if(o){let e=o.trim();return nt(e)?parseFloat(e):e}return(0,e2.tm)(i)?nM(i,t,r+1):i}var nD=r(11741);let nI=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),nL=e=>nI.has(e),nN=e=>Object.keys(e).some(nL),nU=e=>e===e$.Rx||e===eb.px,nF=(e,t)=>parseFloat(e.split(", ")[t]),nz=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return nF(i[1],t);{let t=n.match(/^matrix\((.+)\)$/);return t?nF(t[1],e):0}},n$=new Set(["x","y","z"]),nB=tC._.filter(e=>!n$.has(e)),nV={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:nz(4,13),y:nz(5,14)};nV.translateX=nV.x,nV.translateY=nV.y;let nq=(e,t,r)=>{let n=t.measureViewportBox(),i=getComputedStyle(t.current),{display:o}=i,a={};"none"===o&&t.setStaticValue("display",e.display||"block"),r.forEach(e=>{a[e]=nV[e](n,i)}),t.render();let s=t.measureViewportBox();return r.forEach(r=>{let n=t.getValue(r);n&&n.jump(a[r]),e[r]=nV[r](s,i)}),e},nW=(e,t,r={},n={})=>{t={...t},n={...n};let i=Object.keys(t).filter(nL),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=r[i],d=no(c),f=t[i];if((0,r5.C)(f)){let e=f.length,t=null===f[0]?1:0;d=no(c=f[t]);for(let r=t;r<e&&null!==f[r];r++)l?(0,g.k)(no(f[r])===l,"All keyframes must be of the same type"):(l=no(f[r]),(0,g.k)(l===d||nU(d)&&nU(l),"Keyframes must be of the same dimension as the current value"))}else l=no(f);if(d!==l){if(nU(d)&&nU(l)){let e=u.get();"string"==typeof e&&u.set(parseFloat(e)),"string"==typeof f?t[i]=parseFloat(f):Array.isArray(f)&&l===eb.px&&(t[i]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==l?void 0:l.transform)&&(0===c||0===f)?0===c?u.set(l.transform(c)):t[i]=d.transform(f):(a||(o=function(e){let t=[];return nB.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),n[i]=void 0!==n[i]?n[i]:t[i],u.jump(f))}}),!s.length)return{target:t,transitionEnd:n};{let r=s.indexOf("height")>=0?window.pageYOffset:null,i=nq(t,e,s);return o.length&&o.forEach(([t,r])=>{e.getValue(t).set(r)}),e.render(),nD.j&&null!==r&&window.scrollTo({top:r}),{target:i,transitionEnd:n}}},nH=(e,t,r,n)=>{var i,o;let a=function(e,{...t},r){let n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};for(let i in r&&(r={...r}
9),e.values.forEach(e=>{let t=e.get();if(!(0,e2.tm)(t))return;let r=nM(t,n);r&&e.set(r)}),t){let e=t[i];if(!(0,e2.tm)(e))continue;let o=nM(e,n);o&&(t[i]=o,r||(r={}),void 0===r[i]&&(r[i]=e))}return{target:t,transitionEnd:r}}(e,t,n);return t=a.target,n=a.transitionEnd,i=t,o=n,nN(i)?nW(e,i,r,o):{target:i,transitionEnd:o}},nY={current:null},nZ={current:!1};var nG=r(7504),nK=r(9442);let nX=new WeakMap,nJ=Object.keys(nK.A),nQ=nJ.length,n0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],n1=r9.V.length;class n2{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,visualState:i},o={}){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=()=>T.Wi.render(this.render,!1,!0);let{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=(0,nG.G)(t),this.isVariantNode=(0,nG.M)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{});for(let e in u){let t=u[e];void 0!==a[e]&&(0,rS.i)(t)&&(t.set(a[e],!1),ne(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,nX.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),nZ.current||function(){if(nZ.current=!0,nD.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>nY.current=e.matches;e.addListener(t),t()}else nY.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||nY.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in nX.delete(this.current),this.projection&&this.projection.unmount(),(0,T.Pn)(this.notifyUpdate),(0,T.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){let r=tC.G.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&T.Wi.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,i){let o,a;for(let e=0;e<nQ;e++){let r=nJ[e],{isEnabled:n,Feature:i,ProjectionNode:s,MeasureLayout:l}=nK.A[r];s&&(o=s),n(t)&&(!this.features[r]&&i&&(this.features[r]=new i(this)),l&&(a=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:r,drag:n,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:r,alwaysMeasureLayout:!!n||a&&(0,U.I)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:i,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(let e in this.features){let t=this.features[e];
9t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):er()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<n0.length;t++){let r=n0[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){let{willChange:n}=t;for(let i in t){let o=t[i],a=r[i];if((0,rS.i)(o))e.addValue(i,o),ne(n)&&n.add(i);else if((0,rS.i)(a))e.addValue(i,rO(o,{owner:e})),ne(n)&&n.remove(i);else if(a!==o){if(e.hasValue(i)){let t=e.getValue(i);t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(i);e.addValue(i,rO(void 0!==t?t:o,{owner:e}))}}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<n1;e++){let r=r9.V[e],n=this.props[r];((0,r4.$)(n)||!1===n)&&(t[r]=n)}return t}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=rO(t,{owner:this}),this.addValue(e,r)),r}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:r}=this.props,n="string"==typeof r||"object"==typeof r?null===(t=(0,r6.o)(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||(0,rS.i)(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new t8),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class n5 extends n2{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:n},i){let o=function(e,t,r){let n={};for(let i in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(i,t);if(void 0!==e)n[i]=e;else{let e=r.getValue(i);e&&(n[i]=e.get())}}return n}(r,e||{},this);if(n&&(t&&(t=n(t)),r&&(r=n(r)),o&&(o=n(o))),i){!function(e,t,r){var n,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;s<a;s++){let a=o[s],l=t[a],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(i=null!==(n=r[a])&&void 0!==n?n:e.readValue(a))&&void 0!==i?i:t[a]),null!=u&&("string"==typeof u&&(nt(u)||tU(u))?u=parseFloat(u):!ns(u)&&tt.test(l)&&(u=tN(a,l)),e.addValue(a,rO(u,{owner:e})),void 0===r[a]&&(r[a]=u),null!==u&&e.setBaseTarget(a,u))}}(this,r,o);let e=nH(this,r,o,t);t=e.transitionEnd,r=e.target}return{transition:e,transitionEnd:t,...r}}}class n3 extends n5{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(tC.G.has(t)){let e=tL(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=((0,e2.f9)(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ev(e,t)}build(e,t,r,n){(0,nA.r)(e,t,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,t){return(0,nP.U)(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,rS.i)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,r,n){(0,nj.N)(e,t,r,n)}}var n4=r(16832),n6=r(85415),n8=r(93193),n9=r(77302),n7=r(68504),ie=r(79854);class it extends n5{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(tC.G.has(t)){let e=tL(t);return e&&e.default||0}return t=n9.s.has(t)?t:(0,n8.D)(t),e.getAttribute(t)}measureInstanceViewportBox(){return er()}scrapeMotionValuesFromProps(e,t){return(0,n4.U)(e,t)}
9build(e,t,r,n){(0,n6.i)(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){(0,n7.K)(e,t,r,n)}mount(e){this.isSVGTag=(0,ie.a)(e.tagName),super.mount(e)}}var ir=r(62627);let ii={renderer:(e,t)=>(0,ir.q)(e)?new it(t,{enableHardwareAcceleration:!1}):new n3(t,{enableHardwareAcceleration:!0}),animation:{Feature:np},exit:{Feature:ng},inView:{Feature:nk},tap:{Feature:nx},focus:{Feature:nb},hover:{Feature:nv},pan:{Feature:tZ},drag:{Feature:tH,ProjectionNode:r1,MeasureLayout:t5},layout:{ProjectionNode:r1,MeasureLayout:t5}};var io=r(24574),ia=r(11163),is=r(5571),il=r(1879);let iu=()=>{if("undefined"==typeof window)return;let e=e=>{Object.keys(e).forEach(t=>{delete e[t]})};try{e(window.next.router.sdc),e(window.next.router.sbc)}catch(e){return}};var ic=r(39280);function id({children:e,...t}){var r;let{__unstable_invokeMiddlewareOnAuthStateChange:n=!0}=t,{push:i}=(0,ia.useRouter)();io.El.displayName="ReactClerkProvider",(0,il.G)(()=>{window.__unstable__onBeforeSetActive=iu},[]),(0,il.G)(()=>{window.__unstable__onAfterSetActive=()=>{n&&i(window.location.href)}},[]);let o=(0,ic.V)({...t,navigate:e=>i(e)}),s=(null==(r=t.authServerSideProps)?void 0:r.__clerk_ssr_state)||t.__clerk_ssr_state;return a.createElement(is.f,{options:o},a.createElement(io.El,{...o,initialState:s},e))}function ih(e){let{ClientClerkProvider:t}=r(34190);return a.createElement(t,{...e})}(0,io.kO)({packageName:"@clerk/nextjs"});let ip=function(e){try{let{useRouter:t}=r(44343);return t()?a.createElement(id,{...e}):a.createElement(ih,{...e})}catch(t){return a.createElement(id,{...e})}};io.CH,io.tj,io.Cv,r(35202),r(85316);var im=r(62088),ig=r(96548),iy=r(56116),iv=r(46194),ib=e=>{let{children:t}=e,r=(0,l.b9)(im.D0);return(0,o.jsx)(iy.$8,{storeDomain:"https://".concat("the-national-online-store",".myshopify.com"),storefrontToken:"d04942c720918a0179f453297b4b9b43",storefrontApiVersion:"2023-10",countryIsoCode:"US",languageIsoCode:"EN",children:(0,o.jsx)(iv.Zl,{onLineAddComplete:()=>r(!0),onLineUpdateComplete:()=>r(!0),children:t})})},iw=r(56475);function i_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)"__proto__"!==n&&(e[n]=r[n])}return e}var ix=function e(t,r){function n(e,n,i){if("undefined"!=typeof document){"number"==typeof(i=i_({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+o}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(s in n||(n[s]=t.read(a,s)),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){n(e,"",i_({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,i_({},this.attributes,t))},withConverter:function(t){return e(i_({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),iE=r(21016),iC=r(54483),iO=r.n(iC);let iS={show:{y:"0%",transition:{duration:.6,delay:.5,ease:[.16,1,.3,1]}},hide:{y:"120%",transition:{duration:.6,ease:[.16,1,.3,1]}}};var iT=a.memo(e=>{let{data:t}=e,{enabled:r,message:n}={};if(!r)return null;let i=(0,ig.f3)(),{acceptedCookies:s,onAcceptCookies:l}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"accept_cookies",[t,r]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{ix.get(e)||r(!1)},[]),{acceptedCookies:t,onAcceptCookies:()=>{r(!0),ix.set(e,"accepted",{expires:365})}}}();return i&&n?(0,o.jsx)(u.M,{children:!s&&(0,o.jsx)(iO(),{focusTrapOptions:{allowOutsideClick:!0,preventScroll:!0,initialFocus:!1},children:(0,o.jsx)(iE.m.div,{initial:"hide",animate:"show",exit:"hide",variants:iS,role:"dialog","aria-live":"polite",className:"pointer-events-none fixed inset-x-20 bottom-0 z-9 flex flex-col",children:(0,o.jsxs)("div",{className:"pointer-events-auto mx-auto mb-20 flex flex-col bg-offBlack sm:flex-row",children:[(0,o.jsx)("div",{className:"flex flex-1 flex-col justify-center border p-20 text-center sm:py-5 lg:text-left",children:(0,o.jsx)("p",{className:"max-w-[25rem] sm:max-w-none",children:n.split("\n").map((e,t)=>(0,o.jsxs)(a.Fragment,{children:[e,n.split("\n")[t+1]&&(0,o.jsx)("br",{className:"hidden lg:block"})]},t))})}),(0,o.jsx)("div",{className:"-mt-1 flex-shrink-0 sm:-ml-1 sm:mt-0",children:(0,o.jsx)("button",{onClick:()=>l(),className:"btn w-full",children:"Got it"})})]})})})}):null});let ik=(0,a.createContext)(null);function iA({children:e,line:t}){return(0,o.jsx)(ik.Provider,{value:t,children:e})}function iP(e,t){return(0,a.useMemo)(()=>{let r;return()=>r??(r=new Intl.NumberFormat(e,t))},[e,t])}function ij({data:e,as:t,withoutCurrency:r,withoutTrailingZeros:n,measurement:i,measurementSeparator:s="/",...l}){if(!("string"==typeof e.amount&&e.amount&&"string"==typeof e.currencyCode&&e.currencyCode))throw Error("<Money/> needs a valid 'data' prop that has 'amount' and 'currencyCode'");
9let u=function(e){let{countryIsoCode:t,languageIsoCode:r}=(0,iy.Lb)(),n=r.includes("_")?r.replace("_","-"):`${r}-${t}`;if(!n)throw Error("useMoney(): Unable to get 'locale' from 'useShop()', which means that 'locale' was not passed to '<ShopifyProvider/>'. 'locale' is required for 'useMoney()' to work");let i=parseFloat(e.amount),o=(0,a.useMemo)(()=>({style:"currency",currency:e.currencyCode}),[e.currencyCode]),s=iP(n,o),l=iP(n,{...o,currencyDisplay:"name"}),u=iP(n,{...o,currencyDisplay:"narrowSymbol"}),c=iP(n,{...o,minimumFractionDigits:0,maximumFractionDigits:0}),d=iP(n),f=iP(n,{minimumFractionDigits:0,maximumFractionDigits:0}),h=e=>"currency"===e.type,p=(0,a.useMemo)(()=>({original:()=>e,currencyCode:()=>e.currencyCode,localizedString:()=>s().format(i),parts:()=>s().formatToParts(i),withoutTrailingZeros:()=>i%1==0?c().format(i):s().format(i),withoutTrailingZerosAndCurrency:()=>i%1==0?f().format(i):d().format(i),currencyName:()=>{var t;return(null==(t=l().formatToParts(i).find(h))?void 0:t.value)??e.currencyCode},currencySymbol:()=>{var t;return(null==(t=s().formatToParts(i).find(h))?void 0:t.value)??e.currencyCode},currencyNarrowSymbol:()=>{var e;return(null==(e=u().formatToParts(i).find(h))?void 0:e.value)??""},amount:()=>s().formatToParts(i).filter(e=>["decimal","fraction","group","integer","literal"].includes(e.type)).map(e=>e.value).join("")}),[e,i,l,s,u,d,c,f]);return(0,a.useMemo)(()=>new Proxy(p,{get:(e,t)=>{var r;return null==(r=Reflect.get(e,t))?void 0:r.call(null)}}),[p])}(e),c=u.localizedString;return(r||n)&&(c=r&&!n?u.amount:!r&&n?u.withoutTrailingZeros:u.withoutTrailingZerosAndCurrency),(0,o.jsxs)(t??"div",{...l,children:[c,i&&i.referenceUnit&&(0,o.jsxs)(o.Fragment,{children:[s,i.referenceUnit]})]})}function iR(e){let t;let{cost:r}=(0,iv.jD)(),{amountType:n="total",children:i,...a}=e;return("total"==n?t=null==r?void 0:r.totalAmount:"subtotal"==n?t=null==r?void 0:r.subtotalAmount:"tax"==n?t=null==r?void 0:r.totalTaxAmount:"duty"==n&&(t=null==r?void 0:r.totalDutyAmount),null==t)?null:(0,o.jsx)(ij,{...a,data:t,children:i})}function iM(e){let{as:t,onClick:r,defaultOnClick:n,children:i,buttonRef:s,...l}=e,u=(0,a.useCallback)(e=>{if(r){let t=r(e);if("boolean"==typeof t&&!1===t||(null==e?void 0:e.defaultPrevented))return}null==n||n(e)},[n,r]);return(0,o.jsx)(t||"button",{ref:s,onClick:u,...l,children:i})}function iD(e){let[t,r]=(0,a.useState)(!1),{status:n,checkoutUrl:i}=(0,iv.jD)(),{children:s,...l}=e;return(0,a.useEffect)(()=>{t&&i&&"idle"===n&&(window.location.href=i)},[t,n,i]),(0,o.jsx)(iM,{...l,disabled:t||l.disabled,onClick:()=>r(!0),children:s})}var iI=r(98591),iL=r(48191),iN=r(21456),iU=r(87301),iF=r(88003);let iz=()=>{var e,t,r;let{linesRemove:n,linesUpdate:i}=(0,iv.jD)(),{attributes:s,id:l,quantity:u,merchandise:c,cost:d}=function(){let e=(0,a.useContext)(ik);if(null==e)throw Error("Expected a cart line context but none was found");return e}(),f=(0,ig.D9)(u),h=(0,ig.Zg)(null==s?void 0:null===(e=s.find(e=>"__limit"===e.key))||void 0===e?void 0:e.value),p=(null==s?void 0:null===(t=s.find(e=>"__preorder"===e.key))||void 0===t?void 0:t.value)==="true",{headline:m,subheadline:g}=(0,ig.Wv)(c.product.title),y=null!==(r=d.totalAmount)&&void 0!==r?r:c.price,v="Default Title"!==c.title&&c.title,b=(0,a.useCallback)(e=>{i([{id:l,quantity:h?(0,ig.l$)(e,1,h):e,attributes:null!=s?s:[]}])},[h]);return(0,a.useEffect)(()=>{u||b(f-1)},[u,f]),(0,o.jsxs)("div",{className:"flex w-full flex-wrap border-b py-30 last:border-b-0",children:[(0,o.jsx)("div",{className:"w-140 shrink-0",children:(0,o.jsx)("div",{className:"relative aspect-1 w-full bg-offBlack/10",children:(0,o.jsx)(iL.Z,{src:c.image.url,alt:c.image.altText,width:c.image.width,height:c.image.height,fill:!0,className:"object-contain"})})}),(0,o.jsxs)("div",{className:"flex flex-1 flex-col pl-20",children:[(0,o.jsxs)("div",{children:[v&&(0,o.jsx)("p",{className:"is-small-caps mb-0 text-12 text-blue/60",children:v}),(0,o.jsxs)("div",{className:"flex",children:[(0,o.jsxs)("div",{className:"flex-1",children:[(0,o.jsx)("h3",{className:"mb-2 mt-5 normal-case leading-140 tracking-0",children:m}),g&&(0,o.jsx)("p",{className:"is-small-caps text-12 text-blue/60",children:g})]}),(0,o.jsx)("div",{className:"shrink-0 pl-30",children:(0,o.jsx)(ij,{as:"p",data:y,className:"font-bold"})})]})]}
9),(0,o.jsxs)("div",{className:"ct mt-auto flex pt-20",children:[(0,o.jsx)("div",{className:"flex flex-1 flex-col",children:(0,o.jsx)(iU.Z,{value:u||f,onChange:b,size:"mini",className:"max-w-160"})}),(0,o.jsx)("button",{type:"button",onClick:()=>n(l),className:"clean-btn ml-20 inline-block shrink-0 p-0 font-sans text-12 font-medium uppercase tracking-2 underline underline-offset-4",children:"Remove"})]})]}),p&&(0,o.jsx)("div",{className:"mt-20 w-full bg-pink/20 px-20 py-15",children:(0,o.jsxs)("p",{className:"text-10 font-medium text-darkPink",children:[(0,o.jsx)("strong",{children:"Please Note:"})," All items in cart will ship when this pre-order is available."]})})]},l)};var i$=e=>{let{data:t}=e,[r,n]=(0,l.KO)(im.D0),{lines:i,status:s,totalQuantity:u}=(0,iv.jD)();return(0,o.jsxs)(iI.Z,{isOpen:r,onClose:()=>n(!1),backdrop:{show:!0,className:"bg-offBlack/20"},className:"left-auto flex w-full max-w-550 flex-col bg-lightPink text-blue",children:[(0,o.jsx)("div",{className:"relative px-20 pt-20",children:(0,o.jsxs)("div",{className:"flex items-center justify-between border-b pb-20",children:[(0,o.jsxs)("h3",{className:"m-0",children:["Bag (",u,")"]}),(0,o.jsx)("button",{onClick:()=>n(!1),"aria-label":"Close Cart",className:"clean-btn pointer-events-auto rounded-full bg-blue p-8 text-white transition-colors duration-150 ease-linear hover:bg-pink focus-visible:outline-blue",children:(0,o.jsx)("span",{className:"block h-16 w-16",children:(0,o.jsx)(iN.Z,{name:"Plus",title:"Close Dialog",id:"close-cart",className:"rotate-45 stroke-current stroke-[2px]"})})})]})}),(null==i?void 0:i.length)>0?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"hide-scrollbar scroll-fade-y-20 relative flex flex-1 flex-col overflow-y-scroll px-20",children:i.map(e=>(0,o.jsx)(iA,{line:e,children:(0,o.jsx)(iz,{})},e.id))}),(0,o.jsxs)("div",{className:"ct relative px-20 pb-20",children:[(0,o.jsxs)("div",{className:"is-small-caps flex justify-between border-t py-20",children:[(0,o.jsx)("span",{children:"Subtotal"}),(0,o.jsx)("span",{children:(0,o.jsx)(iR,{as:a.Fragment})})]}),(0,o.jsx)(iD,{className:"btn w-full",disabled:"idle"!==s,children:"Checkout"}),(0,o.jsx)("div",{className:"rc mt-10 text-center",children:(0,o.jsxs)("p",{className:"font-sans text-12 font-medium leading-150",children:["By completing checkout, I agree with the store"," ",(0,o.jsx)(iF.Z,{href:"https://shop.americanmary.com/policies/terms-of-service",external:!0,children:"Terms of Service"})]})})]})]}):(0,o.jsx)("div",{className:"relative flex flex-1 flex-col justify-center",children:(0,o.jsxs)("div",{className:"p-20 text-center",children:[(0,o.jsx)("h3",{children:"Your bag is empty"}),(0,o.jsx)(iF.Z,{href:"/members/store",onClick:()=>n(!1),className:"btn btn-small mt-20",children:"Start Shopping"})]})})]})},iB=r(93967),iV=r.n(iB),iq=r(66438),iW=a.memo(e=>{let{page:t}=e,r=(0,l.Dv)(im.p1);return(0,o.jsx)("div",{className:iV()("fixed inset-0 z-8 bg-offWhite",{ct:(null==t?void 0:t.theme)==="ct",hidden:!r}),children:(0,o.jsx)(iq.Z,{})})}),iH=e=>{let{preview:t}=e;if(!t)return null;let r=(0,ia.useRouter)();return(0,o.jsx)("div",{className:"sticky inset-x-0 bottom-0 z-10 bg-pink p-10 text-center text-white",children:(0,o.jsxs)("div",{className:"flex items-center justify-center gap-10",children:[(0,o.jsx)("p",{className:"is-small-caps m-0",children:"You are in Preview mode"}),(0,o.jsx)(iF.Z,{href:"/api/preview-exit?slug=".concat(r.asPath),className:"btn btn-small bg-white text-pink",children:"Exit"})]})})};let iY=(0,a.memo)(e=>{let{Component:t,pageProps:r,router:n}=e,{data:{site:i,page:a}={site:{},page:{}},preview:c}=r,d=["memberPage","memberSignIn","memberForgotPassword","memberRestoreAccess","memberSignUp","memberSignUpVerifyEmail","memberAccount","memberSignOut"].includes(null==a?void 0:a._type),f=(0,s.MT)();return f.set(im.p1,d),(0,o.jsx)(l.zt,{store:f,children:(0,o.jsx)(ip,{...r,clerkJsVariant:"headless",navigate:e=>n.push(e,null,{scroll:!1}),children:(0,o.jsx)(ib,{children:(0,o.jsxs)(iw.ZP,{children:[(0,o.jsx)(iT,{data:null==i?void 0:i.cookieConsent}),(0,o.jsx)(iW,{page:a}),(0,o.jsx)(u.M,{mode:"wait",onExitComplete:()=>{document.body.classList.remove("overflow-hidden")},children:(0,o.jsx)(t,{...r},null==a?void 0:a.id)}),(0,o.jsx)(i$,{}),(0,o.jsx)(iH,{preview:c})]})})})})});var iZ=e=>{let{Component:t,pageProps:r,router:n}=e;return(0,a.useEffect)(()=>
9{ig.jU&&(console.groupCollapsed("%c Site Credits","display:block;padding:0.125em 1em;font-family:courier;font-size:14px;font-weight:bold;line-height:2;text-transform:uppercase;background:black;color:white;"),console.log("%cDesign by The Collected Works \n– https://thecollectedworks.com","display:block;font-family:courier;font-size:12px;font-weight:bold;line-height:1;color:black;"),console.log("%cDevelopment by Nick DiMatteo \n– https://nickdimatteo.com","display:block;font-family:courier;font-size:12px;font-weight:bold;line-height:1;color:black;"),console.groupEnd())},[]),(0,o.jsx)(f,{features:ii,children:(0,o.jsx)(iY,{Component:t,pageProps:r,router:n})})}},66642:function(e,t,r){"use strict";let n=r(42502);e.exports={darkMode:"class",future:{hoverOnlyWhenSupported:!0},content:["./app/**/*.{js,jsx,ts,tsx}","./components/**/*.{js,jsx,ts,tsx}","./lib/**/*.{js,jsx,ts,tsx}","./pages/**/*.{js,jsx,ts,tsx}"],safelist:[{pattern:/grid-cols-/,variants:["xs","sm","md","lg","xl"]},{pattern:/col-span-/,variants:["xs","sm","md","lg","xl"]},{pattern:/col-start-/,variants:["xs","sm","md","lg","xl"]},{pattern:/justify-self-/,variants:["xs","sm","md","lg","xl"]},{pattern:/self-/,variants:["xs","sm","md","lg","xl"]},{pattern:/order-/,variants:["xs","sm","md","lg","xl"]},{pattern:/max-w-/},{pattern:/bg-/},{pattern:/text-/},{pattern:/btn-/}],theme:{screens:{xs:"480px",sm:"800px",md:"1000px",lg:"1200px",xl:"1400px",xxl:"1600px",mouse:{raw:"(hover: hover) and (pointer: fine)"}},colors:{inherit:"inherit",transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",offBlack:"#141414",offWhite:"#F0F0F0",pink:"#FF6C81",lightPink:"#EDC0B1",darkPink:"#FF3352",blue:"#003FA3",green:"#2A9134",hcPrimary:"#7735E7",hcSecondary:"#7735E7",hcBase:"#FFFFFF"},fontFamily:{inherit:"inherit",sans:["JetBrains Mono","Courier","monospace"],agrandir:["Agrandir","Helvetica Neue","sans-serif"]},fontSize:Array(201).fill().map((e,t)=>t).reduce((e,t)=>(e[t]="".concat(t/10,"rem"),e),{}),lineHeight:Array(201).fill().map((e,t)=>t).reduce((e,t)=>(e[t]=t/100,e),{}),letterSpacing:Array(101).fill().map((e,t)=>t).reduce((e,t)=>(e[t]="".concat(t/100,"em"),e),{}),spacing:Array(351).fill().map((e,t)=>t).reduce((e,t)=>(e[t]="".concat(t/10,"rem"),e),{}),opacity:Array(21).fill().map((e,t)=>5*t).reduce((e,t)=>(e[t]="".concat(t/100),e),{}),zIndex:Array(21).fill().map((e,t)=>t).reduce((e,t)=>(e[t]=t,e),{}),clipPath:{full:"inset(0 0)"},extend:{minWidth:Array(1201).fill().map((e,t)=>t).reduce((e,t)=>(e[t]="".concat(t/10,"rem"),e),{}),maxWidth:Array(1201).fill().map((e,t)=>t).reduce((e,t)=>(e[t]="".concat(t/10,"rem"),e),{}),transitionTimingFunction:{fade:"cubic-bezier(0.25, 0.1, 0, 1)","in-out-quart":"cubic-bezier(0.77, 0 ,0.175, 1)"}}},plugins:[r(64221),n(function(e){let{addVariant:t,matchUtilities:r,theme:n}=e;t("ct",".ct &"),t("hc",".hc &"),t("pink",".pink &"),t("children","& > *"),r({"clip-path":e=>({clipPath:e})},{values:n("clipPath")}),r({"animate-duration":e=>({animationDuration:e})},{values:n("animateDuration")}),r({perspective:e=>({perspective:e})})})]}},21876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(e,t,n){for(var i,o=[],a=t;a<n;a+=3)o.push(r[(i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
9+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|h(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(A(e,SharedArrayBuffer)||e&&A(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var i=function(e){if(s.isBuffer(e)){var t,r=0|f(e.length),n=a(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(e).length;default:if(i)return n?-1:O(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=P[e[o]];return i}(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=t,o=r,0===i&&o===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}
9else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else -1!==c&&(o-=o-c),c=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return -1}function v(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function _(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function x(e,t,r,n,o){return t=+t,r>>>=0,o||_(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function E(e,t,r,n,o){return t=+t,r>>>=0,o||_(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):p.apply(this,arguments)}
vendor: 8,902 bytes, line 9
9,s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),d=0;d<l;++d)if(u[d]!==c[d]){o=u[d],a=c[d];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f,h,p,m,g=this.length-t;if((void 0===r||r>g)&&(r=g),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var y=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(s!=s)break;e[r+a]=s}return a}(this,e,t,r);case"utf8":case"utf-8":return l=t,u=r,k(O(e,this.length-l),this,l,u);case"ascii":return c=t,d=r,k(S(e),this,c,d);case"latin1":case"binary":return i=this,o=e,a=t,s=r,k(S(o),i,a,s);case"base64":return f=t,h=r,k(T(e),this,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p=t,m=r,k(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-p),this,p,m);default:if(y)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),y=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return x(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return x(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return E(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return E(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=s.isBuffer(e)?e:s.from(e,n),l=a.length;
9if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%l]}return this};var C=/[^+/0-9A-Za-z-_]/g;function O(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function S(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function T(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function k(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var P=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=23===i?5960464477539062e-23:0,h=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*m}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//";var i=n(72);e.exports=i}()},85316:function(){},77663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new h(e,t)),1!==l.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//";var i=n(229);e.exports=i}()},25675:function(e,t,r){e.exports=r(71128)},41664:function(e,t,r){e.exports=r(63500)},39332:function(e,t,r){e.exports=r(70031)},11163:function(e,t,r){e.exports=r(37253)},74241:function(e){var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreen
9Bright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=r(),e.exports.createColors=r},92703:function(e,t,r){"use strict";var n=r(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={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:o,resetWarningCache:i};return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},88388:function(e,t,r){"use strict";r.r(t),r.d(t,{focusable:function(){return k},getTabIndex:function(){return h},isFocusable:function(){return j},isTabbable:function(){return A},tabbable:function(){return T}});var n=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],i=n.join(","),o="undefined"==typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},l=function(e,t){void 0===t&&(t=!0);var r,n=null==e?void 0:null===(r=e.getAttribute)||void 0===r?void 0:r.call(e,"inert");return""===n||"true"===n||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):l(e.parentNode))},u=function(e){var t,r=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===r||"true"===r},c=function(e,t,r){if(l(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&a.call(e,i)&&n.unshift(e),n=n.filter(r)},d=function(e,t,r){for(var n=[],o=Array.from(e);o.length;){var s=o.shift();if(!l(s,!1)){if("SLOT"===s.tagName){var u=s.assignedElements(),c=d(u.length?u:s.children,!0,r);r.flatten?n.push.apply(n,c):n.push({scopeParent:s,candidates:c})}else{a.call(s,i)&&r.filter(s)&&(t||!e.includes(s))&&n.push(s);var f=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),h=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(f&&h){var p=d(!0===f?s.children:f.children,!0,r);r.flatten?n.push.apply(n,p):n.push({scopeParent:s,candidates:p})}else o.unshift.apply(o,s.children)}}}return n},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},h=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||u(e))&&!f(e)?0:e.tabIndex},p=function(e,t){var r=h(e);return r<0&&t&&!f(e)?0:r},m=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},g=function(e){return"INPUT"===e.tagName},y=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},v=function(e){if(!e.name)return!0;var t,r=e.form||s(e),n=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=y(t,e.form);return!i||i===e},b=function(e){var t,r,n,i,o,a,l,u=e&&s(e),c=null===(t=u)||void 0===t?void 0:t.host,d=!1;if(u&&u!==e)for(d=!!(null!==(r=c)&&void 0!==r&&null!==(n=r.ownerDocument)&&void 0!==n&&n.contains(c)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!d&&c;)d=!!(null!==(a=c=null===(o=u=s(c))||void 0===o?void 0:o.host)&&void 0!==a&&null!==(l=a.ownerDocument)&&void 0!==l&&l.contains(c));return d},w=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},_=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("full-native"===r&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if("hidden"===i||"collapse"===i)return!0;var o=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(o,"details:not([open]) *"))return!0;
9if(r&&"full"!==r&&"full-native"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return w(e)}else{if("function"==typeof n){for(var l=e;e;){var u=e.parentElement,c=s(e);if(u&&!u.shadowRoot&&!0===n(u))return w(e);e=e.assignedSlot?e.assignedSlot:u||c===e.ownerDocument?u:c.host}e=l}if(b(e))return!e.getClientRects().length;if("legacy-full"!==r)return!0}return!1},x=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!a.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1},E=function(e,t){return!(t.disabled||g(t)&&"hidden"===t.type||_(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||x(t))},C=function(e,t){var r;return!(g(r=t)&&"radio"===r.type&&!v(r)||0>h(t))&&!!E(e,t)},O=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},S=function(e){var t=[],r=[];return e.forEach(function(e,n){var i=!!e.scopeParent,o=i?e.scopeParent:e,a=p(o,i),s=i?S(e.candidates):o;0===a?i?t.push.apply(t,s):t.push(o):r.push({documentOrder:n,tabIndex:a,item:e,isScope:i,content:s})}),r.sort(m).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},T=function(e,t){return S((t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:C.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:O}):c(e,t.includeContainer,C.bind(null,t)))},k=function(e,t){return(t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:E.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,E.bind(null,t))},A=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==a.call(e,i)&&C(t,e)},P=n.concat("iframe:not([inert]):not([inert] *)").join(","),j=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==a.call(e,P)&&E(t,e)}},76889:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});let r=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","contain","content","forcedColorAdjust"]},22624:function(e,t,r){"use strict";var n=r(83454);
9Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{flagEnabled:function(){return u},issueFlagNotices:function(){return d},default:function(){return f}});let i=a(r(74241)),o=a(r(51679));function a(e){return e&&e.__esModule?e:{default:e}}let s={optimizeUniversalDefaults:!1,generalizedModifiers:!0,disableColorOpacityUtilitiesByDefault:!1,relativeContentPathsByDefault:!1},l={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function u(e,t){var r,n,i,o,a,u;return l.future.includes(t)?"all"===e.future||null!==(i=null!==(n=null==e?void 0:null===(r=e.future)||void 0===r?void 0:r[t])&&void 0!==n?n:s[t])&&void 0!==i&&i:!!l.experimental.includes(t)&&("all"===e.experimental||null!==(u=null!==(a=null==e?void 0:null===(o=e.experimental)||void 0===o?void 0:o[t])&&void 0!==a?a:s[t])&&void 0!==u&&u)}function c(e){var t;return"all"===e.experimental?l.experimental:Object.keys(null!==(t=null==e?void 0:e.experimental)&&void 0!==t?t:{}).filter(t=>l.experimental.includes(t)&&e.experimental[t])}function d(e){if(void 0===n.env.JEST_WORKER_ID&&c(e).length>0){let t=c(e).map(e=>i.default.yellow(e)).join(", ");o.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${t}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}let f=l},14921:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let i=(n=r(51679))&&n.__esModule?n:{default:n};function o({version:e,from:t,to:r}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},22455:function(e,t,r){"use strict";var n;
9Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let i=((n=r(9002))&&n.__esModule?n:{default:n}).default},88109:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=o(r(74209)),i=o(r(4427));function o(e){return e&&e.__esModule?e:{default:e}}function a(...e){let[,...t]=(0,i.default)(e[0]);return(0,n.default)([...e,...t])}},39392:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return function e(t){return Array.isArray(t)?t.map(t=>e(t)):"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t).map(([t,r])=>[t,e(r)])):t}}})},49925:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{parseColor:function(){return h},formatColor:function(){return p}});let i=(n=r(44909))&&n.__esModule?n:{default:n},o=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,a=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,s=/(?:\d+|\d*\.\d+)%?/,l=/(?:\s*,\s*|\s+)/,u=/\s*[,/]\s*/,c=/var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/,d=RegExp(`^(rgba?)\\(\\s*(${s.source}|${c.source})(?:${l.source}(${s.source}|${c.source}))?(?:${l.source}(${s.source}|${c.source}))?(?:${u.source}(${s.source}|${c.source}))?\\s*\\)$`),f=RegExp(`^(hsla?)\\(\\s*((?:${s.source})(?:deg|rad|grad|turn)?|${c.source})(?:${l.source}(${s.source}|${c.source}))?(?:${l.source}(${s.source}|${c.source}))?(?:${u.source}(${s.source}|${c.source}))?\\s*\\)$`);function h(e,{loose:t=!1}={}){var r,n,s;if("string"!=typeof e)return null;if("transparent"===(e=e.trim()))return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in i.default)return{mode:"rgb",color:i.default[e].map(e=>e.toString())};let l=e.replace(a,(e,t,r,n,i)=>["#",t,t,r,r,n,n,i?i+i:""].join("")).match(o);if(null!==l)return{mode:"rgb",color:[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)].map(e=>e.toString()),alpha:l[4]?(parseInt(l[4],16)/255).toString():void 0};let u=null!==(s=e.match(d))&&void 0!==s?s:e.match(f);if(null===u)return null;let c=[u[2],u[3],u[4]].filter(Boolean).map(e=>e.toString());return 2===c.length&&c[0].startsWith("var(")?{mode:u[1],color:[c[0]],alpha:c[1]}:(t||3===c.length)&&(!(c.length<3)||c.some(e=>/^var\(.*?\)$/.test(e)))?{mode:u[1],color:c,alpha:null===(r=u[5])||void 0===r?void 0:null===(n=r.toString)||void 0===n?void 0:n.call(r)}:null}function p({mode:e,color:t,alpha:r}){let n=void 0!==r;return"rgba"===e||"hsla"===e?`${e}(${t.join(", ")}${n?`, ${r}`:""})`:`${e}(${t.join(" ")}${n?` / ${r}`:""})`}},44909:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});let r={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
9ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},57325:function(e,t){"use strict";function r(e,t){return void 0===e?t:Array.isArray(e)?e:[...new Set(t.filter(t=>!1!==e&&!1!==e[t]).concat(Object.keys(e).filter(t=>!1!==e[t])))]}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},9002:function(e,t){"use strict";function r(e,t){return{handler:e,config:t}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.withOptions=function(e,t=()=>({})){let r=function(r){return{__options:r,handler:e(r),config:t(r)}};return r.__isOptionsFunction=!0,r.__pluginFunction=e,r.__configFunction=t,r};let n=r},54686:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalize:function(){return c},normalizeAttributeSelectors:function(){return d},url:function(){return f},number:function(){return h},percentage:function(){return p},length:function(){return m},lineWidth:function(){return y},shadow:function(){return v},color:function(){return b},image:function(){return w},gradient:function(){return x},position:function(){return C},familyName:function(){return O},genericName:function(){return T},absoluteSize:function(){return A},relativeSize:function(){return j}});let n=r(49925),i=r(64642),o=r(7436),a=r(65155),s=["min","max","clamp","calc"];function l(e){return s.some(t=>RegExp(`^${t}\\(.*\\)`).test(e))}let u=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function c(e,t=null,r=!0){let n=t&&u.has(t.property);return e.startsWith("--")&&!n?`var(${e})`:e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(e=>/^url\(.*?\)$/.test(e)?e:c(e,t,!1)).join(""):(e=e.replace(/([^\\])_+/g,(e,t)=>t+" ".repeat(e.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),r&&(e=e.trim()),e=(0,i.addWhitespaceAroundMathOperators)(e))}function d(e){return e.includes("=")&&(e=e.replace(/(=.*)/g,(e,t)=>{if("'"===t[1]||'"'===t[1])return t;if(t.length>2){let e=t[t.length-1];if(" "===t[t.length-2]&&("i"===e||"I"===e||"s"===e||"S"===e))return`="${t.slice(1,-2)}" ${t[t.length-1]}`}return`="${t.slice(1)}"`})),e}function f(e){return e.startsWith("url(")}function h(e){return!isNaN(Number(e))||l(e)}function p(e){return e.endsWith("%")&&h(e.slice(0,-1))||l(e)}function m(e){return"0"===e||RegExp("^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?(?:cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cqw|cqh|cqi|cqb|cqmin|cqmax)$").test(e)||l(e)}let g=new Set(["thin","medium","thick"]);function y(e){return g.has(e)}function v(e){for(let t of(0,o.parseBoxShadowValue)(c(e)))if(!t.valid)return!1;return!0}function b(e){let t=0;return!!(0,a.splitAtTopLevelOnly)(e,"_").every(e=>!!(e=c(e)).startsWith("var(")||null!==(0,n.parseColor)(e,{loose:!0})&&(t++,!0))&&t>0}function w(e){let t=0;return!!(0,a.splitAtTopLevelOnly)(e,",").every(e=>!!(e=c(e)).startsWith("var(")||!!(f(e)||x(e)||["element(","image(","cross-fade(","image-set("].some(t=>e.startsWith(t)))&&(t++,!0))&&t>0}let _=new Set(["conic-gradient","linear-gradient","radial-gradient","repeating-conic-gradient","repeating-linear-gradient","repeating-radial-gradient"]);function x(e){for(let t of(e=c(e),_))if(e.startsWith(`${t}(`))return!0;return!1}let E=new Set(["center","top","right","bottom","left"]);function C(e){let t=0;return!!(0,a.splitAtTopLevelOnly)(e,"_").every(e=>!!(e=c(e)).startsWith("var(")||!!(E.has(e)||m(e)||p(e))&&(t++,!0))&&t>0}function O(e){let t=0;return!!(0,a.splitAtTopLevelOnly)(e,",").every(e=>!!(e=c(e)).startsWith("var(")||!(e.includes(" ")&&!/(['"])([^"']+)\1/g.test(e)||/^\d/g.test(e))&&(t++,!0))&&t>0}let S=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function T(e){return S.has(e)}let k=new Set(["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large"]);function A(e){return k.has(e)}let P=new Set(["larger","smaller"]);function j(e){return P.has(e)}},27842:function(e,t){"use strict";function r(e,...t){for(let r of t){var n,i;for(let t in r)(null==e?void 0:null===(n=e.hasOwnProperty)||void 0===n?void 0:n.call(e,t))||(e[t]=r[t]);for(let t of Object.getOwnPropertySymbols(r))(null==e?void 0:null===(i=e.hasOwnProperty)||void 0===i?void 0:i.call(e,t))||(e[t]=r[t])}return e}
9Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"defaults",{enumerable:!0,get:function(){return r}})},32068:function(e,t){"use strict";function r(e){return e.replace(/\\,/g,"\\2c ")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},4427:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return function e(t){var r;let n=(null!==(r=null==t?void 0:t.presets)&&void 0!==r?r:[i.default]).slice().reverse().flatMap(t=>e(t instanceof Function?t():t)),a={respectDefaultRingColorOpacity:{theme:{ringColor:({theme:e})=>({DEFAULT:"#3b82f67f",...e("colors")})}},disableColorOpacityUtilitiesByDefault:{corePlugins:{backgroundOpacity:!1,borderOpacity:!1,divideOpacity:!1,placeholderOpacity:!1,ringOpacity:!1,textOpacity:!1}}},s=Object.keys(a).filter(e=>(0,o.flagEnabled)(t,e)).map(e=>a[e]);return[t,...s,...n]}}});let i=(n=r(49924))&&n.__esModule?n:{default:n},o=r(22624)},40293:function(e,t){"use strict";function r(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},51679:function(e,t,r){"use strict";var n,i=r(83454);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{dim:function(){return l},default:function(){return u}});let o=(n=r(74241))&&n.__esModule?n:{default:n},a=new Set;function s(e,t,r){(void 0===i||!i.env.JEST_WORKER_ID)&&(r&&a.has(r)||(r&&a.add(r),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return o.default.dim(e)}let u={info(e,t){s(o.default.bold(o.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},64642:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{hasMathFn:function(){return n},addWhitespaceAroundMathOperators:function(){return i}});let r=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function n(e){return -1!==e.indexOf("(")&&r.some(t=>e.includes(`${t}(`))}function i(e){if(!r.some(t=>e.includes(t)))return e;let t="",n=[],i=null,o=null;for(let a=0;a<e.length;a++){let s=e.charCodeAt(a);if(s>=48&&s<=57?i=a:null!==i&&(37===s||s>=97&&s<=122||s>=65&&s<=90)?i=a:(o=i,i=null),40===s){t+=e[a];let i=a;for(let t=a-1;t>=0;t--){let r=e.charCodeAt(t);if(r>=48&&r<=57)i=t;else if(r>=97&&r<=122)i=t;else break}let o=e.slice(i,a);if(r.includes(o)||n[0]&&""===o){n.unshift(!0);continue}n.unshift(!1);continue}if(41===s)t+=e[a],n.shift();else if(44===s&&n[0]){t+=", ";continue}else if(32===s&&n[0]&&32===t.charCodeAt(t.length-1))continue;else if((43===s||42===s||47===s||45===s)&&n[0]){let r=t.trimEnd(),n=r.charCodeAt(r.length-1),i=r.charCodeAt(r.length-2),s=e.charCodeAt(a+1);if((101===n||69===n)&&i>=48&&i<=57||43===n||42===n||47===n||45===n){t+=e[a];continue}if(40===n||44===n){t+=e[a];continue}32===e.charCodeAt(a-1)?t+=`${e[a]} `:n>=48&&n<=57||s>=48&&s<=57||41===n||40===s||43===s||42===s||47===s||45===s||null!==o&&o===a-1?t+=` ${e[a]} `:t+=e[a]}else t+=e[a]}return t}},29876:function(e,t){"use strict";function r(e){if("0"==(e=`${e}`))return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(e))return e.replace(/^[+-]?/,e=>"-"===e?"":"-");for(let t of["var","calc","min","max","clamp"])if(e.includes(`${t}(`))return`calc(${e} * -1)`}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},36511:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeConfig",{enumerable:!0,get:function(){return a}});
9let n=r(22624),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(void 0);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(51679));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}function a(e){var t,r,o,a,s,l,u;let c,d;for(let f of(((()=>{if(e.purge||!e.content||!Array.isArray(e.content)&&!("object"==typeof e.content&&null!==e.content))return!1;if(Array.isArray(e.content))return e.content.every(e=>"string"==typeof e||"string"==typeof(null==e?void 0:e.raw)&&(null==e||!e.extension||"string"==typeof(null==e?void 0:e.extension)));if("object"==typeof e.content&&null!==e.content){if(Object.keys(e.content).some(e=>!["files","relative","extract","transform"].includes(e)))return!1;if(Array.isArray(e.content.files)){if(!e.content.files.every(e=>"string"==typeof e||"string"==typeof(null==e?void 0:e.raw)&&(null==e||!e.extension||"string"==typeof(null==e?void 0:e.extension))))return!1;if("object"==typeof e.content.extract){for(let t of Object.values(e.content.extract))if("function"!=typeof t)return!1}else if(!(void 0===e.content.extract||"function"==typeof e.content.extract))return!1;if("object"==typeof e.content.transform){for(let t of Object.values(e.content.transform))if("function"!=typeof t)return!1}else if(!(void 0===e.content.transform||"function"==typeof e.content.transform))return!1;if("boolean"!=typeof e.content.relative&&void 0!==e.content.relative)return!1}return!0}return!1})()||i.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),e.safelist=(()=>{var t;let{content:r,purge:n,safelist:i}=e;return Array.isArray(i)?i:Array.isArray(null==r?void 0:r.safelist)?r.safelist:Array.isArray(null==n?void 0:n.safelist)?n.safelist:Array.isArray(null==n?void 0:null===(t=n.options)||void 0===t?void 0:t.safelist)?n.options.safelist:[]})(),e.blocklist=(()=>{let{blocklist:t}=e;if(Array.isArray(t)){if(t.every(e=>"string"==typeof e))return t;i.default.warn("blocklist-invalid",["The `blocklist` option must be an array of strings.","https://tailwindcss.com/docs/content-configuration#discarding-classes"])}return[]})(),"function"==typeof e.prefix)?(i.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),e.prefix=""):e.prefix=null!==(t=e.prefix)&&void 0!==t?t:"",e.content={relative:(()=>{let{content:t}=e;return(null==t?void 0:t.relative)?t.relative:(0,n.flagEnabled)(e,"relativeContentPathsByDefault")})(),files:(()=>{let{content:t,purge:r}=e;return Array.isArray(r)?r:Array.isArray(null==r?void 0:r.content)?r.content:Array.isArray(t)?t:Array.isArray(null==t?void 0:t.content)?t.content:Array.isArray(null==t?void 0:t.files)?t.files:[]})(),extract:(()=>{var t,r,n,i,o,a,s,l,u,c,d,f,h,p;let m=(null===(t=e.purge)||void 0===t?void 0:t.extract)?e.purge.extract:(null===(r=e.content)||void 0===r?void 0:r.extract)?e.content.extract:(null===(n=e.purge)||void 0===n?void 0:null===(i=n.extract)||void 0===i?void 0:i.DEFAULT)?e.purge.extract.DEFAULT:(null===(o=e.content)||void 0===o?void 0:null===(a=o.extract)||void 0===a?void 0:a.DEFAULT)?e.content.extract.DEFAULT:(null===(s=e.purge)||void 0===s?void 0:null===(l=s.options)||void 0===l?void 0:l.extractors)?e.purge.options.extractors:(null===(u=e.content)||void 0===u?void 0:null===(c=u.options)||void 0===c?void 0:c.extractors)?e.content.options.extractors:{},g={},y=(null===(d=e.purge)||void 0===d?void 0:null===(f=d.options)||void 0===f?void 0:f.defaultExtractor)?e.purge.options.defaultExtractor:(null===(h=e.content)||void 0===h?void 0:null===(p=h.options)||void 0===p?void 0:p.defaultExtractor)?e.content.options.defaultExtractor:void 0;if(void 0!==y&&(g.DEFAULT=y),"function"==typeof m)g.DEFAULT=m;else if(Array.isArray(m))for(let{extensions:e,extractor:t}of null!=m?m:[])for(let r of e)g[r]=t;else"object"==typeof m&&null!==m&&Object.assign(g,m);return g})(),transform:(c=(null===(r=e.purge)||void 0===r?void 0:r.transform)?e.purge.transform:(null===(o=e.content)||void 0===o?void 0:o.transform)?e.content.transform:(null===(a=e.purge)||void 0===a?void 0:null===(s=a.transform)||void 0===s?void 0:s.DEFAULT)?e.purge.transform.DEFAULT:(null===(l=e.content)||void 0===l?void 0:null===(u=l.transform)||void 0===u?void 0:u.DEFAULT)?e.content.transform.DEFAULT:{},d={},"function"==typeof c?d.DEFAULT=c:"object"==typeof c&&null!==c&&Object.assign(d,c),d)},e.content.files))if("string"==typeof f&&/{([^,]*?)}/g.test(f)){i.default.warn("invalid-glob-braces",[`The glob pattern ${(0,i.dim)(f)}
9 in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,i.dim)(f.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}},7436:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{parseBoxShadowValue:function(){return s},formatBoxShadowValue:function(){return l}});let n=r(65155),i=new Set(["inset","inherit","initial","revert","unset"]),o=/\ +(?![^(]*\))/g,a=/^-?(\d+|\.\d+)(.*?)$/g;function s(e){return(0,n.splitAtTopLevelOnly)(e,",").map(e=>{let t=e.trim(),r={raw:t},n=t.split(o),s=new Set;for(let e of n)a.lastIndex=0,!s.has("KEYWORD")&&i.has(e)?(r.keyword=e,s.add("KEYWORD")):a.test(e)?s.has("X")?s.has("Y")?s.has("BLUR")?s.has("SPREAD")||(r.spread=e,s.add("SPREAD")):(r.blur=e,s.add("BLUR")):(r.y=e,s.add("Y")):(r.x=e,s.add("X")):r.color?(r.unknown||(r.unknown=[]),r.unknown.push(e)):r.color=e;return r.valid=void 0!==r.x&&void 0!==r.y,r})}function l(e){return e.map(e=>e.valid?[e.keyword,e.x,e.y,e.blur,e.spread,e.color].filter(
9Boolean).join(" "):e.raw).join(", ")}},78511:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{updateAllClasses:function(){return c},asValue:function(){return f},parseColorFormat:function(){return m},asColor:function(){return y},asLookupValue:function(){return v},typeMap:function(){return w},coerceValue:function(){return x},getMatchingTypes:function(){return E}});let n=u(r(32068)),i=r(55012),o=r(54686),a=u(r(29876)),s=r(98401),l=r(22624);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){e.walkClasses(e=>{e.value=t(e.value),e.raws&&e.raws.value&&(e.raws.value=(0,n.default)(e.raws.value))})}function d(e,t){if(!h(e))return;let r=e.slice(1,-1);if(t(r))return(0,o.normalize)(r)}function f(e,t={},{validate:r=()=>!0}={}){var n;let i=null===(n=t.values)||void 0===n?void 0:n[e];return void 0!==i?i:t.supportsNegativeValues&&e.startsWith("-")?function(e,t={},r){let n=t[e];if(void 0!==n)return(0,a.default)(n);if(h(e)){let t=d(e,r);if(void 0===t)return;return(0,a.default)(t)}}(e.slice(1),t.values,r):d(e,r)}function h(e){return e.startsWith("[")&&e.endsWith("]")}function p(e){let t=e.lastIndexOf("/"),r=e.lastIndexOf("[",t),n=e.indexOf("]",t);return(!("]"===e[t-1]||"["===e[t+1])&&-1!==r&&-1!==n&&r<t&&t<n&&(t=e.lastIndexOf("/",r)),-1===t||t===e.length-1||h(e)&&!e.includes("]/["))?[e,void 0]:[e.slice(0,t),e.slice(t+1)]}function m(e){return"string"==typeof e&&e.includes("<alpha-value>")?({opacityValue:t=1})=>e.replace(/<alpha-value>/g,t):e}function g(e){return(0,o.normalize)(e.slice(1,-1))}function y(e,t={},{tailwindConfig:r={}}={}){var n,a,s,l,u,c;if((null===(n=t.values)||void 0===n?void 0:n[e])!==void 0)return m(null===(a=t.values)||void 0===a?void 0:a[e]);let[d,y]=p(e);if(void 0!==y){let e=null!==(c=null===(s=t.values)||void 0===s?void 0:s[d])&&void 0!==c?c:h(d)?d.slice(1,-1):void 0;if(void 0===e)return;if(e=m(e),h(y))return(0,i.withAlphaValue)(e,g(y));if((null===(l=r.theme)||void 0===l?void 0:null===(u=l.opacity)||void 0===u?void 0:u[y])===void 0)return;return(0,i.withAlphaValue)(e,r.theme.opacity[y])}return f(e,t,{validate:o.color})}function v(e,t={}){var r;return null===(r=t.values)||void 0===r?void 0:r[e]}function b(e){return(t,r)=>f(t,r,{validate:e})}let w={any:f,color:y,url:b(o.url),image:b(o.image),length:b(o.length),percentage:b(o.percentage),position:b(o.position),lookup:v,"generic-name":b(o.genericName),"family-name":b(o.familyName),number:b(o.number),"line-width":b(o.lineWidth),"absolute-size":b(o.absoluteSize),"relative-size":b(o.relativeSize),shadow:b(o.shadow),size:b(s.backgroundSize)},_=Object.keys(w);function x(e,t,r,n){if(r.values&&t in r.values)for(let{type:i}of null!=e?e:[]){let e=w[i](t,r,{tailwindConfig:n});if(void 0!==e)return[e,i,null]}if(h(t)){let e,n=t.slice(1,-1),[i,o]=-1===(e=n.indexOf(":"))?[void 0,n]:[n.slice(0,e),n.slice(e+1)];if(/^[\w-_]+$/g.test(i)){if(void 0!==i&&!_.includes(i))return[]}else o=n;if(o.length>0&&_.includes(i))return[f(`[${o}]`,r),i,null]}for(let i of E(e,t,r,n))return i;return[]}function*E(e,t,r,n){let i=(0,l.flagEnabled)(n,"generalizedModifiers"),[o,a]=p(t);if(i&&null!=r.modifiers&&("any"===r.modifiers||"object"==typeof r.modifiers&&(a&&h(a)||a in r.modifiers))||(o=t,a=void 0),void 0!==a&&""===o&&(o="DEFAULT"),void 0!==a&&"object"==typeof r.modifiers){var s,u;let e=null!==(u=null===(s=r.modifiers)||void 0===s?void 0:s[a])&&void 0!==u?u:null;null!==e?a=e:h(a)&&(a=g(a))}for(let{type:t}of null!=e?e:[]){let e=w[t](o,r,{tailwindConfig:n});void 0!==e&&(yield[e,t,null!=a?a:null])}}},74209:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let n=m(r(29876)),i=m(r(76889)),o=m(r(57325)),a=m(r(14921)),s=r(27842),l=r(14512),u=r(36511),c=m(r(40293)),d=r(39392),f=r(78511),h=r(55012),p=m(r(71278));function m(e){return e&&e.__esModule?e:{default:e}}function g(e){return"function"==typeof e}function y(e,...t){let r=t.pop();for(let n of t)for(let t in n){let i=r(e[t],n[t]);void 0===i?(0,c.default)(e[t])&&(0,c.default)(n[t])?e[t]=y({},e[t],n[t],r):e[t]=n[t]:e[t]=i}return e}let v={colors:a.default,negative:e=>Object.keys(e).filter(t=>"0"!==e[t]).reduce((t,r)=>{let i=(0,n.default)(e[r]);return void 0!==i&&(t[`-${r}`]=i),t},{}),breakpoints:e=>Object.keys(e).filter(t=>"string"==typeof e[t]).reduce((t,r)=>({...t,[`screen-${r}`]:e[r]}),{})};function b(e,t){return Array.isArray(e)&&(0,c.default)(e[0])?e.concat(t):Array.isArray(t)&&(0,c.default)(t[0])&&(0,c.default)(e)?[e,...t]:Array.isArray(t)?t:void 0}function w(e){var t,r,n;let a=[...function e(t){let r=[];return t.forEach(t=>{var n;r=[...r,t];let i=null!==(n=null==t?void 0:t.plugins)&&void 0!==n?n:[];
90!==i.length&&i.forEach(t=>{var n;t.__isOptionsFunction&&(t=t()),r=[...r,...e([null!==(n=null==t?void 0:t.config)&&void 0!==n?n:{}])]})}),r}(e),{prefix:"",important:!1,separator:":"}];return(0,u.normalizeConfig)((0,s.defaults)({theme:function(e){let t=(r,n)=>{for(let n of function*(e){let t=(0,l.toPath)(e);if(0===t.length||(yield t,Array.isArray(e)))return;let r=e.match(/^(.*?)\s*\/\s*([^/]+)$/);if(null!==r){let[,e,t]=r,n=(0,l.toPath)(e);n.alpha=t,yield n}}(r)){let r=0,i=e;for(;null!=i&&r<n.length;)i=g(i=i[n[r++]])&&(void 0===n.alpha||r<=n.length-1)?i(t,v):i;if(void 0!==i){if(void 0!==n.alpha){let e=(0,f.parseColorFormat)(i);return(0,h.withAlphaValue)(e,n.alpha,(0,p.default)(e))}if((0,c.default)(i))return(0,d.cloneDeep)(i);return i}}return n};return Object.assign(t,{theme:t,...v}),Object.keys(e).reduce((r,n)=>(r[n]=g(e[n])?e[n](t,v):e[n],r),{})}(function({extend:e,...t}){return y(t,e,(e,t)=>g(e)||t.some(g)?(r,n)=>y({},...[e,...t].map(e=>(function(e,...t){return g(e)?e(...t):e})(e,r,n)),b):y({},e,...t,b))}({...(n=a.map(e=>null!==(t=null==e?void 0:e.theme)&&void 0!==t?t:{})).reduce((e,t)=>(0,s.defaults)(e,t),{}),extend:n.reduce((e,{extend:t})=>y(e,t,(e,t)=>void 0===e?[t]:Array.isArray(e)?[t,...e]:[t,e]),{})})),corePlugins:[...a.map(e=>e.corePlugins)].reduceRight((e,t)=>g(t)?t({corePlugins:e}):(0,o.default)(t,e),i.default),plugins:[...e.map(e=>null!==(r=null==e?void 0:e.plugins)&&void 0!==r?r:[])].reduceRight((e,t)=>[...e,...t],[])},...a))}},65155:function(e,t){"use strict";function r(e,t){let r=[],n=[],i=0,o=!1;for(let a=0;a<e.length;a++){let s=e[a];0!==r.length||s!==t[0]||o||1!==t.length&&e.slice(a,a+t.length)!==t||(n.push(e.slice(i,a)),i=a+t.length),o=!o&&"\\"===s,"("===s||"["===s||"{"===s?r.push(s):(")"===s&&"("===r[r.length-1]||"]"===s&&"["===r[r.length-1]||"}"===s&&"{"===r[r.length-1])&&r.pop()}return n.push(e.slice(i)),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"splitAtTopLevelOnly",{enumerable:!0,get:function(){return r}})},71278:function(e,t){"use strict";function r(e){return"function"==typeof e?e({}):e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},14512:function(e,t){"use strict";function r(e){if(Array.isArray(e))return e;if(e.split("[").length-1!=e.split("]").length-1)throw Error(`Path is invalid. Has unbalanced brackets: ${e}`);return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"toPath",{enumerable:!0,get:function(){return r}})},98401:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"backgroundSize",{enumerable:!0,get:function(){return o}});let n=r(54686),i=r(65155);function o(e){let t=["cover","contain"];return(0,i.splitAtTopLevelOnly)(e,",").every(e=>
9{let r=(0,i.splitAtTopLevelOnly)(e,"_").filter(Boolean);return!!(1===r.length&&t.includes(r[0]))||(1===r.length||2===r.length)&&r.every(e=>(0,n.length)(e)||(0,n.percentage)(e)||"auto"===e)})}},55012:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{withAlphaValue:function(){return i},default:function(){return o}});let n=r(49925);function i(e,t,r){if("function"==typeof e)return e({opacityValue:t});let i=(0,n.parseColor)(e,{loose:!0});return null===i?r:(0,n.formatColor)({...i,alpha:t})}function o({color:e,property:t,variable:r}){let i=[].concat(t);if("function"==typeof e)return{[r]:"1",...Object.fromEntries(i.map(t=>[t,e({opacityVariable:r,opacityValue:`var(${r}, 1)`})]))};let o=(0,n.parseColor)(e);return null===o?Object.fromEntries(i.map(t=>[t,e])):void 0!==o.alpha?Object.fromEntries(i.map(t=>[t,e])):{[r]:"1",...Object.fromEntries(i.map(e=>[e,(0,n.formatColor)({...o,alpha:`var(${r}, 1)`})]))}}},42502:function(e,t,r){let n=r(22455);e.exports=(n.__esModule?n:{default:n}).default},86926:function(e,t,r){let n=r(88109);e.exports=(n.__esModule?n:{default:n}).default},49924:function(e){e.exports={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:e})=>({...e("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>e("brightness"),backdropContrast:({theme:e})=>e("contrast"),backdropGrayscale:({theme:e})=>e("grayscale"),backdropHueRotate:({theme:e})=>e("hueRotate"),backdropInvert:({theme:e})=>e("invert"),backdropOpacity:({theme:e})=>e("opacity"),backdropSaturate:({theme:e})=>e("saturate"),backdropSepia:({theme:e})=>e("sepia"),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>({...e("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:e})=>e("colors"),colors:({colors:e})=>({inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:e.slate,gray:e.gray,zinc:e.zinc,neutral:e.neutral,stone:e.stone,red:e.red,orange:e.orange,amber:e.amber,yellow:e.yellow,lime:e.lime,green:e.green,emerald:e.emerald,teal:e.teal,cyan:e.cyan,sky:e.sky,blue:e.blue,indigo:e.indigo,violet:e.violet,purple:e.purple,fuchsia:e.fuchsia,pink:e.pink,rose:e.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"al
9ias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>e("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>({none:"none",...e("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},height:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:e})=>({...e("spacing"),none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:e,breakpoints:t})=>({...e("spacing"),none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...t(e("screens"))}),minHeight:({theme:e})=>({...e("spacing"),full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:({theme:e})=>({...e("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:e})=>
9({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:e})=>({...e("spacing")}),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:e})=>({...e("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:e})=>({...e("spacing")}),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),size:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),width:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]}},83:function(e,t,r){"use strict";var n=r(67294),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},61688:function(e,t,r){"use strict";e.exports=r(83)}
9,47149:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(54832).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34134:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorage}});let n=r(47149);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54832:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25575:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(54832).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40837:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getExpectedRequestStore:function(){return i},requestAsyncStorage:function(){return n.requestAsyncStorage}});let n=r(25575);function i(e){let t=n.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93967:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=o(t,r));return t}(r)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0!==(r=(function(){return i}).apply(t,[]))&&(e.exports=r)}()},23259:function(e,t,r){"use strict";r.d(t,{C:function(){return a},N:function(){return u}});var n={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},i={0:8203,1:8204,2:8205,3:65279},o=[,,,,].fill(String.fromCodePoint(i[0])).join("");function a(e,t,r="auto"){let n;return!0===r||"auto"===r&&(!(!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e))&&Date.parse(e)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(e))?e:`${e}${n=JSON.stringify(t),`${o}${Array.from(n).map(e=>{let t=e.charCodeAt(0);if(t>255)throw Error(`Only ASCII edit info can be encoded. Error attempting to encode ${n} on character ${e} (${t})`);return Array.from(t.toString(4).padStart(4,"0")).map(e=>String.fromCodePoint(i[e])).join("")}).join("")}`}`}Object.fromEntries(Object.entries(i).map(e=>e.reverse())),Object.fromEntries(Object.entries(n).map(e=>e.reverse()));var s=`${Object.values(n).map(e=>`\\u{${e.toString(16)}}`).join("")}`,l=RegExp(`[${s}]{4,}`,"gu");function u(e){var t,r;return e&&JSON.parse({cleaned:(t=JSON.stringify(e)).replace(l,""),encoded:(null==(r=t.match(l))?void 0:r[0])||""}.cleaned)}},46194:function(e,t,r){"use strict";r.d(t,{Zl:function(){return Q},jD:function(){return J}});var n,i,o,a,s,l=r(85893),u=r(67294);function c(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(n=i||(i={}))[n.NotStarted=0]="NotStarted",n[n.Running=1]="Running",n[n.Stopped=2]="Stopped";var d={type:"xstate.init"};function f(e){return void 0===e?[]:[].concat(e)}function h(e){return{type:"xstate.assign",assignment:e}}function p(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function m(e){return function(t){return e===t}}function g(e){return"string"==typeof e?{type:e}:e}function y(e,t){return{value:e,context:t,actions:[],changed:!1,matches:m(e)}}function v(e,t,r){var n=t,i=!1;return[e.filter(function(e){if("xstate.assign"===e.type){i=!0;var t=Object.assign({},n);return"function"==typeof e.assignment?t=e.assignment(n,r):Object.keys(e.assignment).forEach(function(i){t[i]="function"==typeof e.assignment[i]?e.assignment[i](n,r):e.assignment[i]}),n=t,!1}return!0}),n,i]}function b(e,t){void 0===t&&(t={});var r=c(v(f(e.states[e.initial].entry).map(function(e){return p(e,t.actions)}),e.context,d),2),n=r[0],i=r[1],o={config:e,_options:t,initialState:{value:e.initial,actions:n,context:i,matches:m(e.initial)},transition:function(t,r){var n,i,a="string"==typeof t?{value:t,context:e.context}:t,s=a.value,l=a.context,u=g(r),d=e.states[s];if(d.on){var h=f(d.on[u.type]);try{for(var b=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
9if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),w=b.next();!w.done;w=b.next()){var _=w.value;if(void 0===_)return y(s,l);var x="string"==typeof _?{target:_}:_,E=x.target,C=x.actions,O=void 0===C?[]:C,S=x.cond,T=void 0===S?function(){return!0}:S,k=void 0===E,A=null!=E?E:s,P=e.states[A];if(T(l,u)){var j=c(v((k?f(O):[].concat(d.exit,O,P.entry).filter(function(e){return e})).map(function(e){return p(e,o._options.actions)}),l,u),3),R=j[0],M=j[1],D=j[2],I=null!=E?E:s;return{value:I,context:M,actions:R,changed:E!==s||R.length>0||D,matches:m(I)}}}}catch(e){n={error:e}}finally{try{w&&!w.done&&(i=b.return)&&i.call(b)}finally{if(n)throw n.error}}}return y(s,l)}};return o}var w=function(e,t){return e.actions.forEach(function(r){var n=r.exec;return n&&n(e.context,t)})},_=u.useLayoutEffect,x={exports:{}},E={},C={exports:{}},O={};x.exports=function(){if(s)return E;s=1;var e=(a||(a=1,C.exports=function(){if(o)return O;o=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=u.useState,r=u.useEffect,n=u.useLayoutEffect,i=u.useDebugValue;function a(t){var r=t.getSnapshot;t=t.value;try{var n=r();return!e(t,n)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,o){var s=o(),l=t({inst:{value:s,getSnapshot:o}}),u=l[0].inst,c=l[1];return n(function(){u.value=s,u.getSnapshot=o,a(u)&&c({inst:u})},[e,s,o]),r(function(){return a(u)&&c({inst:u}),e(function(){a(u)&&c({inst:u})})},[e]),i(s),s};return O.useSyncExternalStore=void 0!==u.useSyncExternalStore?u.useSyncExternalStore:s,O}()),C.exports),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useSyncExternalStore,n=u.useRef,i=u.useEffect,l=u.useMemo,c=u.useDebugValue;return E.useSyncExternalStoreWithSelector=function(e,o,a,s,u){var d=n(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=r(e,(d=l(function(){function e(e){if(!i){if(i=!0,r=e,e=s(e),void 0!==u&&f.hasValue){var o=f.value;if(u(o,e))return n=o}return n=e}if(o=n,t(r,e))return o;var a=s(e);return void 0!==u&&u(o,a)?o:(r=e,n=a)}var r,n,i=!1,l=void 0===a?null:a;return[function(){return e(o())},null===l?void 0:function(){return e(l())}]},[o,a,s,u]))[0],d[1]);return i(function(){f.hasValue=!0,f.value=h},[h]),c(h),h},E}();var S=x.exports,T=globalThis&&globalThis.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};function k(e){return e}var A=function(e){var t;return e.subscribe(function(e){t=e}).unsubscribe(),t},P=function(e,t){return!1===t.changed};let j=e=>` 10 mutation CartLineAdd( 11 $cartId: ID! 12 $lines: [CartLineInput!]! 13 $numCartLines: Int = 250 14 $country: CountryCode = ZZ 15 $language: LanguageCode 16 ) @inContext(country: $country, language: $language) { 17 cartLinesAdd(cartId: $cartId, lines: $lines) { 18 cart { 19 ...CartFragment 20 } 21 } 22 } 23 24 ${e} 25`,R=e=>` 26 mutation CartCreate( 27 $input: CartInput! 28 $numCartLines: Int = 250 29 $country: CountryCode = ZZ 30 $language: LanguageCode 31 ) @inContext(country: $country, language: $language) { 32 cartCreate(input: $input) { 33 cart { 34 ...CartFragment 35 } 36 } 37 } 38 39 ${e} 40`,M=e=>` 41 mutation CartLineRemove( 42 $cartId: ID! 43 $lines: [ID!]! 44 $numCartLines: Int = 250 45 $country: CountryCode = ZZ 46 $language: LanguageCode 47 ) @inContext(country: $country, language: $language) { 48 cartLinesRemove(cartId: $cartId, lineIds: $lines) { 49 cart { 50 ...CartFragment 51 } 52 } 53 } 54 55 ${e} 56`,D=e=>` 57 mutation CartLineUpdate( 58 $cartId: ID! 59 $lines: [CartLineUpdateInput!]! 60 $numCartLines: Int = 250 61 $country: CountryCode = ZZ 62 $language: LanguageCode 63 ) @inContext(country: $country, language: $language) { 64 cartLinesUpdate(cartId: $cartId, lines: $lines) { 65 cart { 66 ...CartFragment 67 } 68 } 69 } 70 71 ${e} 72`,I=e=>` 73 mutation CartNoteUpdate( 74 $cartId: ID! 75 $note: String 76 $numCartLines: Int = 250 77 $country: CountryCode = ZZ 78 $language: LanguageCode 79 ) @inContext(country: $country, language: $language) { 80 cartNoteUpdate(cartId: $cartId, note: $note) { 81 cart { 82 ...CartFragment 83 } 84 } 85 } 86 87 ${e} 88`,L=e=>` 89 mutation CartBuyerIdentityUpdate( 90 $cartId: ID! 91 $buyerIdentity: CartBuyerIdentityInput! 92 $numCartLines: Int = 250 93 $country: CountryCode = ZZ 94 $language: LanguageCode 95 ) @inContext(country: $country, language: $language) { 96 cartBuyerIdentityUpdate(cartId: $cartId, buyerIdentity: $buyerIdentity) { 97 cart { 98 ...CartFragment 99 } 100 } 101 } 102 103 ${e} 104`,N=e=>` 105 mutation CartAttributesUpdate( 106 $attributes: [AttributeInput!]! 107 $cartId: ID! 108 $numCartLines: Int = 250 109 $country: CountryCode = ZZ 110 $language: LanguageCode 111 ) @inContext(country: $country, language: $language) {
112 cartAttributesUpdate(attributes: $attributes, cartId: $cartId) { 113 cart { 114 ...CartFragment 115 } 116 } 117 } 118 119 ${e} 120`,U=e=>` 121 mutation CartDiscountCodesUpdate( 122 $cartId: ID! 123 $discountCodes: [String!] 124 $numCartLines: Int = 250 125 $country: CountryCode = ZZ 126 $language: LanguageCode 127 ) @inContext(country: $country, language: $language) { 128 cartDiscountCodesUpdate(cartId: $cartId, discountCodes: $discountCodes) { 129 cart { 130 ...CartFragment 131 } 132 } 133 } 134 135 ${e} 136`,F=e=>` 137 query CartQuery( 138 $id: ID! 139 $numCartLines: Int = 250 140 $country: CountryCode = ZZ 141 $language: LanguageCode 142 ) @inContext(country: $country, language: $language) { 143 cart(id: $id) { 144 ...CartFragment 145 } 146 } 147 148 ${e} 149`,z=` 150 fragment CartFragment on Cart { 151 id 152 checkoutUrl 153 totalQuantity 154 buyerIdentity { 155 countryCode 156 customer { 157 id 158 email 159 firstName 160 lastName 161 displayName 162 } 163 email 164 phone 165 } 166 lines(first: $numCartLines) { 167 edges { 168 node { 169 id 170 quantity 171 attributes { 172 key 173 value 174 } 175 cost { 176 totalAmount { 177 amount 178 currencyCode 179 } 180 compareAtAmountPerQuantity { 181 amount 182 currencyCode 183 } 184 } 185 merchandise { 186 ... on ProductVariant { 187 id 188 availableForSale 189 compareAtPrice { 190 ...MoneyFragment 191 } 192 price { 193 ...MoneyFragment 194 } 195 requiresShipping 196 title 197 image { 198 ...ImageFragment 199 } 200 product { 201 handle 202 title 203 id 204 } 205 selectedOptions { 206 name 207 value 208 } 209 } 210 } 211 } 212 } 213 } 214 cost { 215 subtotalAmount { 216 ...MoneyFragment 217 } 218 totalAmount { 219 ...MoneyFragment 220 } 221 totalDutyAmount { 222 ...MoneyFragment 223 } 224 totalTaxAmount { 225 ...MoneyFragment 226 } 227 } 228 note 229 attributes { 230 key 231 value 232 } 233 discountCodes { 234 code 235 applicable 236 } 237 } 238 239 fragment MoneyFragment on MoneyV2 { 240 currencyCode 241 amount 242 } 243 fragment ImageFragment on Image { 244 id 245 url 246 altText 247 width 248 height 249 } 250`;var $=r(56116);let B="shopifyCartId",V="_shopify_y",q="_shopify_s";var W=new Set(["domain","path","max-age","expires","samesite","secure","httponly"]);function H(e,t){return{entry:[...(null==t?void 0:t.entryActions)||[],h({lastValidCart:e=>null==e?void 0:e.cart}),"onCartActionEntry","onCartActionOptimisticUI",e],on:{RESOLVE:{target:(null==t?void 0:t.resolveTarget)||"idle",actions:[h({prevCart:e=>null==e?void 0:e.lastValidCart,cart:(e,t)=>{var r;return null==(r=null==t?void 0:t.payload)?void 0:r.cart},rawCartResult:(e,t)=>{var r;return null==(r=null==t?void 0:t.payload)?void 0:r.rawCartResult},errors:e=>void 0})]},ERROR:{target:(null==t?void 0:t.errorTarget)||"error",actions:[h({prevCart:e=>null==e?void 0:e.lastValidCart,cart:e=>null==e?void 0:e.lastValidCart,errors:(e,t)=>{var r;return null==(r=null==t?void 0:t.payload)?void 0:r.errors}})]},CART_COMPLETED:{target:"cartCompleted",actions:h({prevCart:e=>void 0,cart:e=>void 0,lastValidCart:e=>void 0,rawCartResult:e=>void 0,errors:e=>void 0})}},exit:["onCartActionComplete",...(null==t?void 0:t.exitActions)||[]]}}let Y={CART_FETCH:{target:"cartFetching"},CART_CREATE:{target:"cartCreating"},CART_SET:{target:"idle",actions:[h({rawCartResult:(e,t)=>t.payload.cart,cart:(e,t)=>G(t.payload.cart)})]}},Z={CARTLINE_ADD:{target:"cartLineAdding"},CARTLINE_UPDATE:{target:"cartLineUpdating"},CARTLINE_REMOVE:{target:"cartLineRemoving"},NOTE_UPDATE:{target:"noteUpdating"},BUYER_IDENTITY_UPDATE:{target:"buyerIdentityUpdating"},CART_ATTRIBUTES_UPDATE:{target:"cartAttributesUpdating"},DISCOUNT_CODES_UPDATE:{target:"discountCodesUpdating"}};function G(e){var t;return{...e,lines:(t=null==e?void 0:e.lines)?"nodes"in t?t.nodes:"edges"in t&&Array.isArray(t.edges)?t.edges.map(e=>{if(!(null==e?void 0:e.node))throw Error("flattenConnection(): Connection edges must contain nodes");
250return e.node}):[]:(console.error(`flattenConnection(): needs a 'connection' to flatten, but received '${t??""}' instead. Returning an empty array`),[]),note:e.note??void 0}}function K(e,t,r){return r?{type:"ERROR",payload:{errors:r,cartActionEvent:e}}:t?{type:"RESOLVE",payload:{cart:G(t),rawCartResult:t,cartActionEvent:e}}:{type:"CART_COMPLETED",payload:{cartActionEvent:e}}}let X=(0,u.createContext)(null);function J(){let e=(0,u.useContext)(X);if(!e)throw Error("Expected a Cart Context, but no Cart Context was found");return e}function Q({children:e,numCartLines:t,onCreate:r,onLineAdd:n,onLineRemove:o,onLineUpdate:a,onNoteUpdate:s,onBuyerIdentityUpdate:c,onAttributesUpdate:f,onDiscountCodesUpdate:p,onCreateComplete:y,onLineAddComplete:v,onLineRemoveComplete:x,onLineUpdateComplete:E,onNoteUpdateComplete:C,onBuyerIdentityUpdateComplete:O,onAttributesUpdateComplete:J,onDiscountCodesUpdateComplete:Q,data:et,cartFragment:er=z,customerAccessToken:en,countryCode:ei,languageCode:eo}){var ea,es,el,eu,ec,ed,ef;let eh=(0,$.Lb)();if(!eh)throw Error("<CartProvider> needs to be a descendant of <ShopifyProvider>");ei=(ei??eh.countryIsoCode??"US").toUpperCase(),eo=(eo??eh.languageIsoCode??"EN").toUpperCase(),ei&&(ei=ei.toUpperCase());let[ep,em]=(0,u.useState)(ei),[eg,ey]=(0,u.useState)(en),ev=(0,u.useRef)(!1);(ep!==ei||eg!==en)&&(em(ei),ey(en),ev.current=!1);let[eb,ew]=function({numCartLines:e,onCartActionEntry:t,onCartActionOptimisticUI:r,onCartActionComplete:n,data:o,cartFragment:a,countryCode:s,languageCode:l}){var c,f,p,y,v,x,E,C,O,z,B;let{cartFetch:X,cartCreate:J,cartLineAdd:Q,cartLineUpdate:ee,cartLineRemove:et,noteUpdate:er,buyerIdentityUpdate:en,cartAttributesUpdate:ei,discountCodesUpdate:eo}=function({numCartLines:e,cartFragment:t,countryCode:r="US",languageCode:n="EN"}){let i=function(){let{storefrontId:e,getPublicTokenHeaders:t,getStorefrontApiUrl:r}=(0,$.Lb)();return(0,u.useCallback)(({query:n,variables:i})=>{let o=t({contentType:"json"});e&&(o["Shopify-Storefront-Id"]=e);let a=function(e){let t=function(e){let t={},r,n,i=0,o=e.split(/;\s*/g),a,s;for(;i<o.length;i++)if(~(r=(n=o[i]).indexOf("="))){if(a=n.substring(0,r++).trim(),'"'===(s=n.substring(r).trim())[0]&&(s=s.substring(1,s.length-1)),~s.indexOf("%"))try{s=decodeURIComponent(s)}catch(e){}W.has(n=a.toLowerCase())?"expires"===n?t.expires=new Date(s):"max-age"===n?t.maxage=+s:t[n]=s:t[a]=s}else(a=n.trim().toLowerCase())&&("httponly"===a||"secure"===a)&&(t[a]=!0);return t}(e);return{[V]:t[V]||"",[q]:t[q]||""}}(document.cookie);return o["Shopify-Storefront-Y"]=a[V],o["Shopify-Storefront-S"]=a[q],fetch(r(),{method:"POST",headers:o,body:JSON.stringify({query:n.toString(),variables:i})}).then(e=>e.json()).catch(e=>({data:void 0,errors:null==e?void 0:e.toString()}))},[t,e,r])}(),o=(0,u.useCallback)(o=>i({query:F(t),variables:{id:o,numCartLines:e,country:r,language:n}}),[i,t,e,r,n]),a=(0,u.useCallback)(o=>i({query:R(t),variables:{input:o,numCartLines:e,country:r,language:n}}),[t,r,i,e,n]),s=(0,u.useCallback)((o,a)=>i({query:j(t),variables:{cartId:o,lines:a,numCartLines:e,country:r,language:n}}),[t,r,i,e,n]),l=(0,u.useCallback)((o,a)=>i({query:D(t),variables:{cartId:o,lines:a,numCartLines:e,country:r,language:n}}),[t,r,i,e,n]),c=(0,u.useCallback)((o,a)=>i({query:M(t),variables:{cartId:o,lines:a,numCartLines:e,country:r,language:n}}),[t,r,i,e,n]),d=(0,u.useCallback)((o,a)=>i({query:I(t),variables:{cartId:o,note:a,numCartLines:e,country:r,language:n}}),[i,t,e,r,n]),f=(0,u.useCallback)((o,a)=>i({query:L(t),variables:{cartId:o,buyerIdentity:a,numCartLines:e,country:r,language:n}}),[t,r,i,e,n]),h=(0,u.useCallback)((o,a)=>i({query:N(t),variables:{cartId:o,attributes:a,numCartLines:e,country:r,language:n}}),[t,r,i,e,n]),p=(0,u.useCallback)((o,a)=>i({query:U(t),variables:{cartId:o,discountCodes:a,numCartLines:e,country:r,language:n}}),[t,r,i,e,n]);return(0,u.useMemo)(()=>({cartFetch:o,cartCreate:a,cartLineAdd:s,cartLineUpdate:l,cartLineRemove:c,noteUpdate:d,buyerIdentityUpdate:f,cartAttributesUpdate:h,discountCodesUpdate:p,cartFragment:t}),[o,a,s,l,c,d,f,h,p,t])}({numCartLines:e,cartFragment:a,countryCode:s,languageCode:l}),[ea,es,el]=(c=(0,u.useMemo)(()=>b({id:"Cart",initial:o?"idle":"uninitialized",context:{cart:o&&G(o)},states:{uninitialized:{on:Y},cartCompleted:{on:Y},initializationError:{on:Y},idle:{on:{...Y,...Z}},error:{on:{...Y,...Z}},cartFetching:H("cartFetchAction",{errorTarget:"initializationError"}),cartCreating:H("cartCreateAction",{errorTarget:"initializationError"}),cartLineRemoving:H("cartLineRemoveAction"),cartLineUpdating:H("cartLineUpdateAction"),cartLineAdding:H("cartLineAddAction"),noteUpdating:H("noteUpdateAction"),buyerIdentityUpdating:H("buyerIdentityUpdateAction"),cartAttributesUpdating:H("cartAttributesUpdateAction"),discountCodesUpdating:H("discountCodesUpdateAction")}}),[o]),f={actions:{cartFetchAction:async(e,t)=>{var r;if("CART_FETCH"!==t.type)return;let{data:n,errors:i}=await X(null==(r=null==t?void 0:t.payload)?void 0:r.cartId);es(K(t,null==n?void 0:n.cart,i))},cartCreateAction:async(e,t)=>{var r;if("CART_CREATE"!==t.type)return;let{data:n,errors:i}=await J(null==t?void 0:t.payload);es(K(t,null==(r=null==n?void 0:n.cartCreate)?void 0:r.cart,i))},cartLineAddAction:async(e,t)=>{var r,n;if("CARTLINE_ADD"!==t.type||!(null==(r=null==e?void 0:e.cart)?void 0:r.id))return;let{data:i,errors:o}=await Q(e.cart.id,t.payload.lines);es(K(t,null==(n=null==i?void 0:i.cartLinesAdd)?void 0:n.cart,o))},cartLineUpdateAction:async(e,t)=>{var r,n;if("CARTLINE_UPDATE"!==t.type||!(null==(r=null==e?void 0:e.cart)?void 0:r.id))return;let{data:i,errors:o}=await ee(e.cart.id,t.payload.lines);es(K(t,null==(n=null==i?void 0:i.cartLinesUpdate)?void 0:n.cart,o))},cartLineRemoveAction:async(e,t)=>{var r,n;if("CARTLINE_REMOVE"!==t.type||!(null==(r=null==e?void 0:e.cart)?void 0:r.id))return;let{data:i,errors:o}=await et(e.cart.id,t.payload.lines);es(K(t,null==(n=null==i?void 0:i.cartLinesRemove)?void 0:n.cart,o))},noteUpdateAction:async(e,t)=>{var r,n;if("NOTE_UPDATE"!==t.type||!(null==(r=null==e?void 0:e.cart)?void 0:r.id))return;let{data:i,errors:o}=await er(e.cart.id,t.payload.note);es(K(t,null==(n=null==i?void 0:i.cartNoteUpdate)?void 0:n.cart,o))},buyerIdentityUpdateAction:async(e,t)=>{var r,n;if("BUYER_IDENTITY_UPDATE"!==t.type||!(null==(r=null==e?void 0:e.cart)?void 0:r.id))return;let{data:i,errors:o}=await en(e.cart.id,t.payload.buyerIdentity);es(K(t,null==(n=null==i?void 0:i.cartBuyerIdentityUpdate)?void 0:n.cart,o))},cartAttributesUpdateAction:async(e,t)=>{var r,n;if("CART_ATTRIBUTES_UPDATE"!==t.type||!(null==(r=null==e?void 0:e.cart)?void 0:r.id))return;let{data:i,errors:o}=await ei(e.cart.id,t.payload.attributes);es(K(t,null==(n=null==i?void 0:i.cartAttributesUpdate)?void 0:n.cart,o))},discountCodesUpdateAction:async(e,t)=>{var r,n;if("DISCOUNT_CODES_UPDATE"!==t.type||!(null==(r=null==e?void 0:e.cart)?void 0:r.id))return;let{data:i,errors:o}=await eo(e.cart.id,t.payload.discountCodes);es(K(t,null==(n=null==i?void 0:i.cartDiscountCodesUpdate)?void 0:n.cart,o))},...t&&{onCartActionEntry:(e,r)=>{("CART_CREATE"===r.type||"CARTLINE_ADD"===r.type||"CARTLINE_UPDATE"===r.type||"CARTLINE_REMOVE"===r.type||"NOTE_UPDATE"===r.type||"BUYER_IDENTITY_UPDATE"===r.type||"CART_ATTRIBUTES_UPDATE"===r.type||"DISCOUNT_CODES_UPDATE"===r.type)&&t(e,r)}},...r&&{onCartActionOptimisticUI:h((e,t)=>r(e,t))},...n&&{onCartActionComplete:(e,t)=>
250{("RESOLVE"===t.type||"ERROR"===t.type||"CART_COMPLETED"===t.type)&&n(e,t)}}}},p=(0,u.useRef)(),E=(x=T((y=function(){var e,t,r,n,o,a=[],s=(t=(e=b(c.config,f||c._options)).initialState,r=i.NotStarted,n=new Set,o={_machine:e,send:function(o){r===i.Running&&(w(t=e.transition(t,o),g(o)),n.forEach(function(e){return e(t)}))},subscribe:function(e){return n.add(e),e(t),{unsubscribe:function(){return n.delete(e)}}},start:function(n){if(n){var a="object"==typeof n?n:{context:e.config.context,value:n};t={value:a.value,actions:[],context:a.context,matches:m(a.value)}}else t=e.initialState;return r=i.Running,w(t,d),o},stop:function(){return r=i.Stopped,n.clear(),o},get state(){return t},get status(){return r}}),l=s.send;return s.send=function(e){if(s.status===i.NotStarted){a.push(e);return}l(e),p.current=s.state},[s,a]},(v=u.useRef()).current||(v.current={v:y()}),v.current.v),2))[0],C=x[1],_(function(){f&&(E._machine._options=f)}),z=(0,u.useCallback)(function(){return A(E)},[E]),B=(0,u.useCallback)(function(e){return E.subscribe(e).unsubscribe},[E]),O=[S.useSyncExternalStoreWithSelector(B,z,z,k,P),E.send,E],(0,u.useEffect)(function(){return E.start(p.current),C.forEach(E.send),p.current=E.state,function(){E.stop()}},[]),O);return(0,u.useMemo)(()=>[ea,es,el],[ea,es,el])}({numCartLines:t,data:et,cartFragment:er,countryCode:ei,languageCode:eo,onCartActionEntry(e,t){try{switch(t.type){case"CART_CREATE":return null==r?void 0:r();case"CARTLINE_ADD":return null==n?void 0:n();case"CARTLINE_REMOVE":return null==o?void 0:o();case"CARTLINE_UPDATE":return null==a?void 0:a();case"NOTE_UPDATE":return null==s?void 0:s();case"BUYER_IDENTITY_UPDATE":return null==c?void 0:c();case"CART_ATTRIBUTES_UPDATE":return null==f?void 0:f();case"DISCOUNT_CODES_UPDATE":return null==p?void 0:p()}}catch(e){console.error("Cart entry action failed",e)}},onCartActionOptimisticUI(e,t){var r,n,i,o;if(!e.cart)return{...e};switch(t.type){case"CARTLINE_REMOVE":return{...e,cart:{...e.cart,lines:null==(n=null==(r=null==e?void 0:e.cart)?void 0:r.lines)?void 0:n.filter(e=>(null==e?void 0:e.id)&&!t.payload.lines.includes(null==e?void 0:e.id))}};case"CARTLINE_UPDATE":return{...e,cart:{...e.cart,lines:null==(o=null==(i=null==e?void 0:e.cart)?void 0:i.lines)?void 0:o.map(e=>{let r=t.payload.lines.find(({id:t})=>t===(null==e?void 0:e.id));return r&&r.quantity?{...e,quantity:r.quantity}:e})}}}return{...e}},onCartActionComplete(e,t){let r=t.payload.cartActionEvent;try{if("RESOLVE"===t.type)switch(r.type){case"CART_CREATE":return null==y?void 0:y();case"CARTLINE_ADD":return null==v?void 0:v();case"CARTLINE_REMOVE":return null==x?void 0:x();case"CARTLINE_UPDATE":return null==E?void 0:E();case"NOTE_UPDATE":return null==C?void 0:C();case"BUYER_IDENTITY_UPDATE":var n,i;return r.payload.buyerIdentity.countryCode&&(null==(i=null==(n=e.cart)?void 0:n.buyerIdentity)?void 0:i.countryCode)!==r.payload.buyerIdentity.countryCode&&(ev.current=!0),null==O?void 0:O();case"CART_ATTRIBUTES_UPDATE":return null==J?void 0:J();case"DISCOUNT_CODES_UPDATE":return null==Q?void 0:Q()}}catch(e){console.error("onCartActionComplete failed",e)}}}),e_=(0,u.useRef)(!1),ex=eb.matches("cartCompleted"),eE=("idle"===eb.value||"error"===eb.value||"cartCompleted"===eb.value)&&ei!==(null==(el=null==(es=null==(ea=null==eb?void 0:eb.context)?void 0:ea.cart)?void 0:es.buyerIdentity)?void 0:el.countryCode)&&!eb.context.errors,eC=(0,u.useRef)(!1);(0,u.useEffect)(()=>{if(!e_.current&&!eC.current){if(!et&&ee("localStorage")){eC.current=!0;try{let e=window.localStorage.getItem(B);e&&ew({type:"CART_FETCH",payload:{cartId:e}})}catch(e){console.warn("error fetching cartId"),console.warn(e)}}e_.current=!0}},[et,e_,ew]),(0,u.useEffect)(()=>{eE&&!ev.current&&ew({type:"BUYER_IDENTITY_UPDATE",payload:{buyerIdentity:{countryCode:ei,customerAccessToken:en}}})},[ei,en,eE,ev,ew]);let eO=(0,u.useCallback)(e=>{if(!e_.current)return console.warn("Cart isn't ready yet");ew(e)},[ew]);(0,u.useEffect)(()=>{var e,t,r;if((null==(t=null==(e=null==eb?void 0:eb.context)?void 0:e.cart)?void 0:t.id)&&ee("localStorage"))try{window.localStorage.setItem(B,null==(r=eb.context.cart)?void 0:r.id)}catch(e){console.warn("Failed to save cartId to localStorage",e)}},[null==(ec=null==(eu=null==eb?void 0:eb.context)?void 0:eu.cart)?void 0:ec.id]),(0,u.useEffect)(()=>
250{if(ex&&ee("localStorage"))try{window.localStorage.removeItem(B)}catch(e){console.warn("Failed to delete cartId from localStorage",e)}},[ex]);let eS=(0,u.useCallback)(e=>{var t,r;!ei||(null==(t=e.buyerIdentity)?void 0:t.countryCode)||(null==e.buyerIdentity&&(e.buyerIdentity={}),e.buyerIdentity.countryCode=ei),!en||(null==(r=e.buyerIdentity)?void 0:r.customerAccessToken)||(null==e.buyerIdentity&&(e.buyerIdentity={}),e.buyerIdentity.customerAccessToken=en),eO({type:"CART_CREATE",payload:e})},[ei,en,eO]),eT=function(e){let[t,r]=(0,u.useTransition)(),[n,i]=(0,u.useState)(e),o=(0,u.useRef)(!1);t&&(o.current=!0);let a=(0,u.useRef)(!1);return!t&&o.current&&(a.current=!0),(0,u.useEffect)(()=>{r(()=>{a.current||i(e)})},[e]),a.current?e:n}(eb),ek=(0,u.useMemo)(()=>{var e,t,r,n;return{...(null==(e=null==eT?void 0:eT.context)?void 0:e.cart)??{lines:[],attributes:[]},status:function(e){switch(e){case"uninitialized":case"initializationError":return"uninitialized";case"idle":case"cartCompleted":case"error":return"idle";case"cartFetching":return"fetching";case"cartCreating":return"creating";case"cartLineAdding":case"cartLineRemoving":case"cartLineUpdating":case"noteUpdating":case"buyerIdentityUpdating":case"cartAttributesUpdating":case"discountCodesUpdating":return"updating"}}(eT.value),error:null==(t=null==eT?void 0:eT.context)?void 0:t.errors,totalQuantity:(null==(n=null==(r=null==eT?void 0:eT.context)?void 0:r.cart)?void 0:n.totalQuantity)??0,cartCreate:eS,linesAdd(e){var t,r;(null==(r=null==(t=null==eT?void 0:eT.context)?void 0:t.cart)?void 0:r.id)?eO({type:"CARTLINE_ADD",payload:{lines:e}}):eS({lines:e})},linesRemove(e){eO({type:"CARTLINE_REMOVE",payload:{lines:e}})},linesUpdate(e){eO({type:"CARTLINE_UPDATE",payload:{lines:e}})},noteUpdate(e){eO({type:"NOTE_UPDATE",payload:{note:e}})},buyerIdentityUpdate(e){eO({type:"BUYER_IDENTITY_UPDATE",payload:{buyerIdentity:e}})},cartAttributesUpdate(e){eO({type:"CART_ATTRIBUTES_UPDATE",payload:{attributes:e}})},discountCodesUpdate(e){eO({type:"DISCOUNT_CODES_UPDATE",payload:{discountCodes:e}})},cartFragment:er}},[eS,null==(ed=null==eT?void 0:eT.context)?void 0:ed.cart,null==(ef=null==eT?void 0:eT.context)?void 0:ef.errors,eT.value,er,eO]);return(0,l.jsx)(X.Provider,{value:ek,children:e})}function ee(e){let t;try{t=window[e];let r="__storage_test__";return t.setItem(r,r),t.removeItem(r),!0}catch(e){return!!(e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&t&&0!==t.length)}}},56116:function(e,t,r){"use strict";r.d(t,{$8:function(){return s},Lb:function(){return l}});var n=r(85893),i=r(67294);let o="2023-10",a=(0,i.createContext)({storeDomain:"test",storefrontToken:"abc123",storefrontApiVersion:o,countryIsoCode:"US",languageIsoCode:"EN",getStorefrontApiUrl:()=>"",getPublicTokenHeaders:()=>({}),getShopifyDomain:()=>""});function s({children:e,...t}){if(!t.countryIsoCode||!t.languageIsoCode||!t.storeDomain||!t.storefrontToken||!t.storefrontApiVersion)throw Error("Please provide the necessary props to '<ShopifyProvider/>'");t.storefrontApiVersion!==o&&console.warn(`<ShopifyProvider/>: This version of Hydrogen React is built for Shopify's Storefront API version ${o}, but it looks like you're using version ${t.storefrontApiVersion}. There may be issues or bugs if you use a mismatched version of Hydrogen React and the Storefront API.`);let r=(0,i.useMemo)(()=>{function e(e){return(null==e?void 0:e.storeDomain)??t.storeDomain}return{...t,getPublicTokenHeaders:e=>({"content-type":"graphql"===e.contentType?"application/graphql":"application/json","X-SDK-Variant":"hydrogen-react","X-SDK-Variant-Source":"react","X-SDK-Version":t.storefrontApiVersion,"X-Shopify-Storefront-Access-Token":e.storefrontToken??t.storefrontToken}),getShopifyDomain:e,getStorefrontApiUrl(r){let n=e({storeDomain:(null==r?void 0:r.storeDomain)??t.storeDomain});return`${n}${n.endsWith("/")?"":"/"}api/${(null==r?void 0:r.storefrontApiVersion)??t.storefrontApiVersion}/graphql.json`}}},[t]);return(0,n.jsx)(a.Provider,{value:r,children:e})}function l(){let e=(0,i.useContext)(a);if(!e)throw Error("'useShop()' must be a descendent of <ShopifyProvider/>");return e}},92729:function(e,t,r){"use strict";let n,i,o,a;r.d(t,{Z:function(){return tR}});var s,l,u,c,d={};function f(e,t){return function(){return e.apply(t,arguments)}}r.r(d),r.d(d,{hasBrowserEnv:function(){return eI},hasStandardBrowserEnv:function(){return eN},hasStandardBrowserWebWorkerEnv:function(){return eU},navigator:function(){return eL},origin:function(){return eF}});var h=r(83454);let{toString:p}=Object.prototype,{getPrototypeOf:m}=Object,{iterator:g,toStringTag:y}=Symbol,v=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),b=(e,t)=>{let r=e,n=[];for(;null!=r&&r!==Object.prototype&&-1===n.indexOf(r);){if(n.push(r),v(r,t))return!0;r=m(r)}return!1},w=(n=Object.create(null),e=>{let t=p.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),_=e=>(e=e.toLowerCase(),t=>w(t)===e),x=e=>t=>typeof t===e,{isArray:E}=Array,C=x("undefined");function O(e){return null!==e&&!C(e)&&null!==e.constructor&&!C(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let S=_("ArrayBuffer"),T=x("string"),k=x("function"),A=x("number"),P=e=>null!==e&&"object"==typeof e,j=e=>{if(!P(e))return!1;let t=m(e);return(null===t||t===Object.prototype||null===m(t))&&!b(e,y)&&!b(e,g)},R=_("Date"),M=_("File"),D=_("Blob"),I=_("FileList"),L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},N=void 0!==L.FormData?L.FormData:void 0,U=_("URLSearchParams"),[F,z,$,B]=["ReadableStream","Request","Response","Headers"].map(_);function V(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e){if("object"!=typeof e&&(e=[e]),E(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;if(O(e))return;let o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(n=0;n<a;n++)i=o[n],t.call(null,e[i],i,e)}}}function q(e,t){let r;if(O(e))return null;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,H=e=>!C(e)&&e!==W,Y=(i="undefined"!=typeof Uint8Array&&m(Uint8Array),e=>i&&e instanceof i),Z=_("HTMLFormElement"),{propertyIsEnumerable:G}=Object.prototype,K=_("RegExp"),X=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};V(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)},J=_("AsyncFunction"),Q=(s="function"==typeof setImmediate,l=k(W.postMessage),s?setImmediate:l?(u=`axios@${Math.random()}`,c=[],W.addEventListener("message",({source:e,data:t})=>{e===W&&t===u&&c.length&&c.shift()()},!1),e=>{c.push(e),W.postMessage(u,"*")}):e=>setTimeout(e)),ee="undefined"!=typeof queueMicrotask?queueMicrotask.bind(W):void 0!==h&&h.nextTick||Q,et=e=>null!=e&&k(e[g]);var er={isArray:E,isArrayBuffer:S,isBuffer:O,isFormData:e=>{if(!e)return!1;if(N&&e instanceof N)return!0;let t=m(e);if(!t||t===Object.prototype||!k(e.append))return!1;let r=w(e);return"formdata"===r||"object"===r&&k(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&S(e.buffer)},isString:T,isNumber:A,isBoolean:e=>!0===e||!1===e,isObject:P,isPlainObject:j,isEmptyObject:e=>{if(!P(e)||O(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:F,isRequest:z,isResponse:$,isHeaders:B,isUndefined:C,isDate:R,isFile:M,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:D,isRegExp:K,isFunction:k,isStream:e=>P(e)&&k(e.pipe),isURLSearchParams:U,isTypedArray:Y,isFileList:I,forEac
250h:V,merge:function e(...t){let{caseless:r,skipUndefined:n}=H(this)&&this||{},i={},o=(t,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;let a=r&&"string"==typeof o&&q(i,o)||o,s=v(i,a)?i[a]:void 0;j(s)&&j(t)?i[a]=e(s,t):j(t)?i[a]=e({},t):E(t)?i[a]=t.slice():n&&C(t)||(i[a]=t)};for(let e=0,r=t.length;e<r;e++){let r=t[e];if(!r||O(r)||(V(r,o),"object"!=typeof r||E(r)))continue;let n=Object.getOwnPropertySymbols(r);for(let e=0;e<n.length;e++){let t=n[e];G.call(r,t)&&o(r[t],t)}}return i},extend:(e,t,r,{allOwnKeys:n}={})=>(V(t,(t,n)=>{r&&k(t)?Object.defineProperty(e,n,{__proto__:null,value:f(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,a;let s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==r&&m(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:w,kindOfTest:_,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(E(e))return e;let t=e.length;if(!A(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=(e&&e[g]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:Z,hasOwnProperty:v,hasOwnProp:v,hasOwnInPrototypeChain:b,getSafeProp:(e,t)=>null!=e&&b(e,t)?e[t]:void 0,reduceDescriptors:X,freezeMethods:e=>{X(e,(t,r)=>{if(k(e)&&["arguments","caller","callee"].includes(r))return!1;if(k(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(E(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:q,global:W,isContextDefined:H,isSpecCompliantForm:function(e){return!!(e&&k(e.append)&&"FormData"===e[y]&&e[g])},toJSONObject:e=>{let t=new WeakSet,r=e=>{if(P(e)){if(t.has(e))return;if(O(e))return e;if(!("toJSON"in e)){t.add(e);let n=E(e)?[]:{};return V(e,(e,t)=>{let i=r(e);C(i)||(n[t]=i)}),t.delete(e),n}}return e};return r(e)},isAsyncFn:J,isThenable:e=>e&&(P(e)||k(e))&&k(e.then)&&k(e.catch),setImmediate:Q,asap:ee,isIterable:et,isSafeIterable:e=>null!=e&&b(e,g)&&et(e)};let en=er.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var ei=e=>{let t,r,n;let i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&en[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i};let eo=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ea=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function es(e,t){return er.isArray(e)?e.map(e=>es(e,t)):function(e){let t=0,r=e.length;for(;t<r;){let r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(t,""))}let el=e=>es(e,eo),eu=e=>es(e,ea);function ec(e){let t=Object.create(null);return er.forEach(e.toJSON(),(e,r)=>{t[r]=eu(e)}),t}let ed=Symbol("internals");function ef(e){return e&&String(e).trim().toLowerCase()}function eh(e){return!1===e||null==e?e:er.isArray(e)?e.map(eh):el(String(e))}let ep=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function em(e,t,r,n,i){if(er.isFunction(n))return n.call(this,t,r);if(i&&(t=r),er.isString(t)){if(er.isString(n))return -1!==t.indexOf(n);if(er.isRegExp(n))return n.test(t)}}class eg{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=ef(t);if(!i)return;let o=er.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=eh(e))}let o=(e,t)=>er.forEach(e,(e,r)=>i(e,r,t));if(er.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(er.isString(e)&&(e=e.trim())&&!ep(e))o(ei(e),t);else if(er.isObject(e)&&er.isSafeIterable(e)){let r=Object.create(null),n,i;for(let t of e){if(!er.isArray(t))throw TypeError("Object iterator must return a key-value pair");i=t[0],er.hasOwnProp(r,i)?(n=r[i],r[i]=er.isArray(n)?[...n,t[1]]:[n,t[1]]):r[i]=t[1]}o(r,t)}else null!=e&&i(t,e,r);return this}get(e,t){if(e=ef(e)){let r=er.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;
250=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if(er.isFunction(t))return t.call(this,e,r);if(er.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ef(e)){let r=er.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||em(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=ef(e)){let i=er.findKey(r,e);i&&(!t||em(r,r[i],i,t))&&(delete r[i],n=!0)}}return er.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||em(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return er.forEach(this,(n,i)=>{let o=er.findKey(r,i);if(o){t[o]=eh(n),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();a!==i&&delete t[i],t[a]=eh(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return er.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&er.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[ed]=this[ed]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=ef(e);t[n]||(!function(e,t){let r=er.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}(r,e),t[n]=!0)}return er.isArray(e)?e.forEach(n):n(e),this}}eg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),er.reduceDescriptors(eg.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),er.freezeMethods(eg);class ey extends Error{static from(e,t,r,n,i,o){let a=new ey(e.message,t||e.code,r,n,i);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),o&&Object.assign(a,o),a}constructor(e,t,r,n,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&er.hasOwnProp(e,"redact")?e.redact:void 0,r=er.isArray(t)&&t.length>0?function(e,t){let r=new Set(t.map(e=>String(e).toLowerCase())),n=[],i=e=>{let t;if(null===e||"object"!=typeof e||er.isBuffer(e))return e;if(-1===n.indexOf(e)){if(e instanceof eg&&(e=e.toJSON()),n.push(e),er.isArray(e))t=[],e.forEach((e,r)=>{let n=i(e);er.isUndefined(n)||(t[r]=n)});else{if(!er.isPlainObject(e)&&function(e){if(er.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(er.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return n.pop(),e;for(let[n,o]of(t=Object.create(null),Object.entries(e))){let e=r.has(n.toLowerCase())?"[REDACTED ****]":i(o);er.isUndefined(e)||(t[n]=e)}}return n.pop(),t}};return i(e)}(e,t):er.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}ey.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ey.ERR_BAD_OPTION="ERR_BAD_OPTION",ey.ECONNABORTED="ECONNABORTED",ey.ETIMEDOUT="ETIMEDOUT",ey.ECONNREFUSED="ECONNREFUSED",ey.ERR_NETWORK="ERR_NETWORK",ey.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ey.ERR_DEPRECATED="ERR_DEPRECATED",ey.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ey.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ey.ERR_CANCELED="ERR_CANCELED",ey.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ey.ERR_INVALID_URL="ERR_INVALID_URL",ey.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var ev=ey,eb=r(21876).Buffer;function ew(e){return er.isPlainObject(e)||er.isArray(e)}function e_(e){return er.endsWith(e,"[]")?e.slice(0,-2):e}function ex(e,t,r){return e?e.concat(t).map(function(e,t){return e=e_(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let eE=er.toFlatObject(er,{},null,function(e){return/^is[A-Z]/.test(e)});var eC=function(e,t,r){if(!er.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=er.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!er.isUndefined(t[e])})).metaTokens,i=r.visitor||h,o=r.dots,a=r.indexes,s=r.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===r.maxDepth?100:r.maxDepth,u=s&&er.isSpecCompliantForm(t),c=[];if(!er.isFunction(i))throw TypeError("visitor must be a function");function d(e){if(null===e)return"";if(er.isDate(e))return e.toISOString();if(er.isBoolean(e))return e.toString();if(!u&&er.isBlob(e))throw new ev("Blob is not supported. Use a Buffer instead.");if(er.isArrayBuffer(e)||er.isTypedArray(e)){if(u&&"function"==typeof s)return new s([e]);if(void 0!==eb)return eb.from(e);throw new ev("Blob is not supported. Use a Buffer instead.",ev.ERR_NOT_SUPPORT)}return e}function f(e){if(e>l)throw new ev("Object is too deeply nested ("+e+" levels). Max depth: "+l,ev.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,r,i){let s=e;if(er.isReactNative(t)&&er.isReactNativeBlob(e))return t.append(ex(i,r,o),d(e)),!1;if(e&&!i&&"object"==typeof e){if(er.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=function(e,t){if(l===1/0)return JSON.stringify(e);let r=[];return JSON.stringify(e,function(e,t){if(!er.isObject(t))return t;for(;r.length&&r[r.length-1]!==this;)r.pop();return r.push(t),f(1+r.length-1),t})}(e,0);else{var u;if(er.isArray(e)&&(u=e,er.isArray(u)&&!u.some(ew))||(er.isFileList(e)||er.endsWith(r,"[]"))&&(s=er.toArray(e)))return r=e_(r),s.forEac
250h(function(e,n){er.isUndefined(e)||null===e||t.append(!0===a?ex([r],n,o):null===a?r:r+"[]",d(e))}),!1}}return!!ew(e)||(t.append(ex(i,r,o),d(e)),!1)}let p=Object.assign(eE,{defaultVisitor:h,convertValue:d,isVisitable:ew});if(!er.isObject(e))throw TypeError("data must be an object");return!function e(r,n,o=0){if(!er.isUndefined(r)){if(f(o),-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),er.forEach(r,function(r,a){!0===(!(er.isUndefined(r)||null===r)&&i.call(t,r,er.isString(a)?a.trim():a,n,p))&&e(r,n?n.concat(a):[a],o+1)}),c.pop()}}(e),t};function eO(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function eS(e,t){this._pairs=[],e&&eC(e,this,t)}let eT=eS.prototype;function ek(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function eA(e,t,r){let n;if(!t)return e;e=e||"";let i=er.isFunction(r)?{serialize:r}:r,o=er.getSafeProp(i,"encode")||ek,a=er.getSafeProp(i,"serialize");if(n=a?a(t,i):er.isURLSearchParams(t)?t.toString():new eS(t,i).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}eT.append=function(e,t){this._pairs.push([e,t])},eT.toString=function(e){let t=e?t=>e.call(this,t,eO):eO;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class eP{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){er.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ej={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},eR="undefined"!=typeof URLSearchParams?URLSearchParams:eS,eM="undefined"!=typeof FormData?FormData:null,eD="undefined"!=typeof Blob?Blob:null;let eI="undefined"!=typeof window&&"undefined"!=typeof document,eL="object"==typeof navigator&&navigator||void 0,eN=eI&&(!eL||0>["ReactNative","NativeScript","NS"].indexOf(eL.product)),eU="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eF=eI&&window.location.href||"http://localhost";var ez={...d,isBrowser:!0,classes:{URLSearchParams:eR,FormData:eM,Blob:eD},protocols:["http","https","file","blob","url","data"]};function e$(e){if(e>100)throw new ev("FormData field is too deeply nested ("+e+" levels). Max depth: 100",ev.ERR_FORM_DATA_DEPTH_EXCEEDED)}var eB=function(e){if(er.isFormData(e)&&er.isFunction(e.entries)){let t={};return er.forEachEntry(e,(e,r)=>{!function e(t,r,n,i){e$(i);let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=t.length;return(o=!o&&er.isArray(n)?n.length:o,s)?er.hasOwnProp(n,o)?n[o]=er.isArray(n[o])?n[o].concat(r):[n[o],r]:n[o]=r:(er.hasOwnProp(n,o)&&er.isObject(n[o])||(n[o]=[]),e(t,r,n[o],i)&&er.isArray(n[o])&&(n[o]=function(e){let t,r;let n={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)n[r=i[t]]=e[r];return n}(n[o]))),!a}(function(e){let t;let r=[],n=/\w+|\[(\w*)]/g;for(;null!==(t=n.exec(e));)e$(r.length),r.push("[]"===t[0]?"":t[1]||t[0]);return r}(e),r,t,0)}),t}return null};let eV=(e,t)=>null!=e&&er.hasOwnProp(e,t)?e[t]:void 0,eq={transitional:ej,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=er.isObject(e);if(o&&er.isHTMLForm(e)&&(e=new FormData(e)),er.isFormData(e))return i?JSON.stringify(eB(e)):e;if(er.isArrayBuffer(e)||er.isBuffer(e)||er.isStream(e)||er.isFile(e)||er.isBlob(e)||er.isReadableStream(e))return e;if(er.isArrayBufferView(e))return e.buffer;if(er.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();
250if(o){let t=eV(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return eC(e,new ez.classes.URLSearchParams,{visitor:function(e,t,r,n){return ez.isNode&&er.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((r=er.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=eV(this,"env"),i=n&&n.FormData;return eC(r?{"files[]":e}:e,i&&new i,t)}}return o||i?(t.setContentType("application/json",!1),function(e,t,r){if(er.isString(e))try{return(0,JSON.parse)(e),er.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=eV(this,"transitional")||eq.transitional,r=t&&t.forcedJSONParsing,n=eV(this,"responseType"),i="json"===n;if(er.isResponse(e)||er.isReadableStream(e))return e;if(e&&er.isString(e)&&(r&&!n||i)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,eV(this,"parseReviver"))}catch(e){if(!r&&i){if("SyntaxError"===e.name)throw ev.from(e,ev.ERR_BAD_RESPONSE,this,null,eV(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ez.classes.FormData,Blob:ez.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function eW(e,t){let r=this||eq,n=t||r,i=eg.from(n.headers),o=n.data;return er.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function eH(e){return!!(e&&e.__CANCEL__)}er.forEach(["delete","get","head","post","put","patch","query"],e=>{eq.headers[e]={}});class eY extends ev{constructor(e,t,r){super(null==e?"canceled":e,ev.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}}function eZ(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ev("Request failed with status code "+r.status,r.status>=400&&r.status<500?ev.ERR_BAD_REQUEST:ev.ERR_BAD_RESPONSE,r.config,r.request,r))}var eG=function(e,t){let r;let n=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=i[a];r||(r=l),n[o]=s,i[o]=l;let c=a,d=0;for(;c!==o;)d+=n[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),l-r<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}},eK=function(e,t){let r,n,i=0,o=1e3/t,a=(t,o=Date.now())=>{i=o,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},o-s)))},()=>r&&a(r)]};let eX=(e,t,r=3)=>{let n=0,i=eG(50,250);return eK(r=>{if(!r||"number"!=typeof r.loaded)return;let o=r.loaded,a=r.lengthComputable?r.total:void 0,s=null!=a?Math.min(o,a):o,l=Math.max(0,s-n),u=i(l);n=Math.max(n,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a?(a-s)/u:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},eJ=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},eQ=e=>(...t)=>er.asap(()=>e(...t));var e0=ez.hasStandardBrowserEnv?(o=new URL(ez.origin),a=ez.navigator&&/(msie|trident)/i.test(ez.navigator.userAgent),e=>(e=new URL(e,ez.origin),o.protocol===e.protocol&&o.host===e.host&&(a||o.port===e.port))):()=>!0,e1=ez.hasStandardBrowserEnv?{write(e,t,r,n,i,o,a){if("undefined"==typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];er.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),er.isString(n)&&s.push(`path=${n}`),er.isString(i)&&s.push(`domain=${i}`),!0===o&&s.push("secure"),er.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r].replace(/^\s+/,""),i=n.indexOf("=");if(-1!==i&&n.slice(0,i)===e)try{return decodeURIComponent(n.slice(i+1))}catch(e){return n.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};let e2=/^https?:(?!\/\/)/i,e5=/[\t\n\r]/g;function e3(e,t){if("string"==typeof e&&e2.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(e5,"")))throw new ev('Invalid URL: missing "//" after protocol',ev.ERR_INVALID_URL,t)}function e4(e,t,r,n){e3(t,n);let i=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(i||!1===r)?(e3(e,n),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let e6=e=>e instanceof eg?{...e}:e;function e8(e,t){e=e||{},t=t||{};let r=Object.create(null);function n(e,t,r,n){return er.isPlainObject(e)&&er.isPlainObject(t)?er.merge.call({caseless:n},e,t):er.isPlainObject(t)?er.merge({},t):er.isArray(t)?t.slice():t}function i(e,t,r,i){return er.isUndefined(t)?er.isUndefined(e)?void 0:n(void 0,e,r,i):n(e,t,r,i)}function o(e,t){if(!er.isUndefined(t))return n(void 0,t)}function a(e,t){return er.isUndefined(t)?er.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return er.hasOwnProp(t,o)?n(r,i):er.hasOwnProp(e,o)?n(void 0,r):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBo
250dyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>i(e6(e),e6(t),r,!0)};return er.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let o=er.hasOwnProp(l,n)?l[n]:i,a=o(er.hasOwnProp(e,n)?e[n]:void 0,er.hasOwnProp(t,n)?t[n]:void 0,n);er.isUndefined(a)&&o!==s||(r[n]=a)}),er.hasOwnProp(t,"validateStatus")&&er.isUndefined(t.validateStatus)&&!1===function(r){let n=er.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!er.isUndefined(n)){if(!er.isPlainObject(n))return;if(er.hasOwnProp(n,r))return n[r]}let i=er.hasOwnProp(e,"transitional")?e.transitional:void 0;if(er.isPlainObject(i)&&er.hasOwnProp(i,r))return i[r]}("validateStatusUndefinedResolves")&&(er.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}let e9=["content-type","content-length"],e7=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));var te=function(e){let t=e8({},e),r=e=>er.hasOwnProp(t,e)?t[e]:void 0,n=r("data"),i=r("withXSRFToken"),o=r("xsrfHeaderName"),a=r("xsrfCookieName"),s=r("headers"),l=r("auth"),u=r("baseURL"),c=r("allowAbsoluteUrls"),d=r("url");if(t.headers=s=eg.from(s),t.url=eA(e4(u,d,c,t),r("params"),r("paramsSerializer")),l){let t=er.getSafeProp(l,"username")||"",r=er.getSafeProp(l,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(r?e7(r):"")))}catch(t){throw ev.from(t,ev.ERR_BAD_OPTION_VALUE,e)}}if(er.isFormData(n)&&(ez.hasStandardBrowserEnv||ez.hasStandardBrowserWebWorkerEnv||er.isReactNative(n)?s.setContentType(void 0):er.isFunction(n.getHeaders)&&function(e,t,r){if("content-only"!==r){e.set(t);return}Object.entries(t||{}).forEach(([t,r])=>{e9.includes(t.toLowerCase())&&e.set(t,r)})}(s,n.getHeaders(),r("formDataHeaderPolicy"))),ez.hasStandardBrowserEnv&&(er.isFunction(i)&&(i=i(t)),!0===i||null==i&&e0(t.url))){let e=o&&a&&e1.read(a);e&&s.set(o,e)}return t},tt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,i,o,a,s;let l=te(e),u=l.data,c=eg.from(l.headers).normalize(),{responseType:d,onUploadProgress:f,onDownloadProgress:h}=l;function p(){a&&a(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(n),l.signal&&l.signal.removeEventListener("abort",n)}let m=new XMLHttpRequest;function g(){if(!m)return;let n=eg.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());eZ(function(e){t(e),p()},function(e){r(e),p()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(g)},m.onabort=function(){m&&(r(new ev("Request aborted",ev.ECONNABORTED,e,m)),p(),m=null)},m.onerror=function(t){let n=new ev(t&&t.message?t.message:"Network Error",ev.ERR_NETWORK,e,m);n.event=t||null,r(n),p(),m=null},m.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",n=l.transitional||ej;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),r(new ev(t,n.clarifyTimeoutError?ev.ETIMEDOUT:ev.ECONNABORTED,e,m)),p(),m=null},void 0===u&&c.setContentType(null),"setRequestHeader"in m&&er.forEach(ec(c),function(e,t){m.setRequestHeader(t,e)}),er.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),d&&"json"!==d&&(m.responseType=l.responseType),h&&([o,s]=eX(h,!0),m.addEventListener("progress",o)),f&&m.upload&&([i,a]=eX(f),m.upload.addEventListener("progress",i),m.upload.addEventListener("loadend",a)),(l.cancelToken||l.signal)&&(n=t=>{m&&(r(!t||t.type?new eY(null,e,m):t),m.abort(),p(),m=null)},l.cancelToken&&l.cancelToken.subscribe(n),l.signal&&(l.signal.aborted?n():l.signal.addEventListener("abort",n)));let y=function(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(l.url);if(y&&!ez.protocols.includes(y)){r(new ev("Unsupported protocol "+y+":",ev.ERR_BAD_REQUEST,e)),p();return}m.send(u||null)})},tr=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let r=new AbortController,n=!1,i=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;r.abort(t instanceof ev?t:new eY(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new ev(`timeout of ${t}ms exceeded`,ev.ETIMEDOUT))},t),a=()=>
250{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i,{once:!0}));let{signal:s}=r;return s.unsubscribe=()=>er.asap(a),s};let tn=function*(e,t){let r,n=e.byteLength;if(!t||n<t){yield e;return}let i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},ti=async function*(e,t){for await(let r of to(e))yield*tn(r,t)},to=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},ta=(e,t,r,n)=>{let i;let o=ti(e,t),a=0,s=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await o.next();if(t){s(),e.close();return}let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},ts=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,tl=(e,t,r)=>t+2<r&&ts(e.charCodeAt(t+1))&&ts(e.charCodeAt(t+2)),tu="1.18.1",{isFunction:tc}=er,td=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),tf=e=>{if(!er.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},th=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},tp=e=>{let t=e.indexOf("://"),r=e;return -1!==t&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},tm=e=>{let t;let r=void 0!==er.global&&null!==er.global?er.global:globalThis,{ReadableStream:n,TextEncoder:i}=r,{fetch:o,Request:a,Response:s}=e=er.merge.call({skipUndefined:!0},{Request:r.Request,Response:r.Response},e),l=o?tc(o):"function"==typeof fetch,u=tc(a),c=tc(s);if(!l)return!1;let d=l&&tc(n),f=l&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),h=u&&d&&th(()=>{let e=!1,t=new a(ez.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),p=c&&d&&th(()=>er.isReadableStream(new s("").body)),m={stream:p&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{m[e]||(m[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new ev(`Response type '${e}' is not supported`,ev.ERR_NOT_SUPPORT,r)})});let g=async e=>{if(null==e)return 0;if(er.isBlob(e))return e.size;if(er.isSpecCompliantForm(e)){let t=new a(ez.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return er.isArrayBufferView(e)||er.isArrayBuffer(e)?e.byteLength:(er.isURLSearchParams(e)&&(e+=""),er.isString(e))?(await f(e)).byteLength:void 0},y=async(e,t)=>{let r=er.toFiniteNumber(e.getContentLength());return null==r?g(t):r};return async e=>{let t,{url:r,method:n,data:l,signal:c,cancelToken:f,timeout:v,onDownloadProgress:b,onUploadProgress:w,responseType:_,headers:x,withCredentials:E="same-origin",fetchOptions:C,maxContentLength:O,maxBodyLength:S}=te(e),T=er.isNumber(O)&&O>-1,k=er.isNumber(S)&&S>-1,A=o||fetch;_=_?(_+"").toLowerCase():"text";let P=tr([c,f&&f.toAbortSignal()],v),j=null,R=P&&P.unsubscribe&&(()=>{P.unsubscribe()}),M=null,D=()=>new ev("Request body larger than maxBodyLength limit",ev.ERR_BAD_REQUEST,e,j);try{let o,c;let f=(c="auth",er.hasOwnProp(e,c)?e[c]:void 0);if(f){let e=er.getSafeProp(f,"username")||"",t=er.getSafeProp(f,"password")||"";o={username:e,password:t}}if(tp(r)){let e=new URL(r,ez.origin);if(!o&&(e.username||e.password)){let t=tf(e.username),r=tf(e.password);o={username:t,password:r}}(e.username||e.password)&&(e.username="",e.password="",r=e.href)}if(o&&(x.delete("authorization"),x.set("Authorization","Basic "+btoa(td((o.username||"")+":"+(o.password||""))))),T&&"string"==typeof r&&r.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let e=n.length,t=n.length;for(let r=0;r<t;r++)if(37===n.charCodeAt(r)&&r+2<t){let t=n.charCodeAt(r+1),i=n.charCodeAt(r+2);ts(t)&&ts(i)&&(e-=2,r+=2)}let r=0,i=t-1,o=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));i>
250=0&&(61===n.charCodeAt(i)?(r++,i--):o(i)&&(r++,i-=3)),1===r&&i>=0&&(61===n.charCodeAt(i)?r++:o(i)&&r++);let a=3*Math.floor(e/4)-(r||0);return a>0?a:0}let i=0;for(let e=0,t=n.length;e<t;e++){let r=n.charCodeAt(e);if(37===r&&tl(n,e,t))i+=1,e+=2;else if(r<128)i+=1;else if(r<2048)i+=2;else if(r>=55296&&r<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}(r)>O)throw new ev("maxContentLength size of "+O+" exceeded",ev.ERR_BAD_RESPONSE,e,j);if(k&&"get"!==n&&"head"!==n){let e=await g(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>S))throw D()}let v=k&&(er.isReadableStream(l)||er.isStream(l)),I=(e,t,r)=>ta(e,65536,e=>{if(k&&e>S)throw M=D();t&&t(e)},r);if(h&&"get"!==n&&"head"!==n&&(w||v)){if(t=null==t?await y(x,l):t,0!==t||v){let e,n=new a(r,{method:"POST",body:l,duplex:"half"});if(er.isFormData(l)&&(e=n.headers.get("content-type"))&&x.setContentType(e),n.body){let[e,r]=w&&eJ(t,eX(eQ(w)))||[];l=I(n.body,e,r)}}}else if(v&&!u&&d&&"get"!==n&&"head"!==n)l=I(l);else if(v&&u&&!h&&"get"!==n&&"head"!==n)throw new ev("Stream request bodies are not supported by the current fetch implementation",ev.ERR_NOT_SUPPORT,e,j);er.isString(E)||(E=E?"include":"omit");let L=u&&"credentials"in a.prototype;if(er.isFormData(l)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete("content-type")}x.set("User-Agent","axios/"+tu,!1);let N={...C,signal:P,method:n.toUpperCase(),headers:ec(x.normalize()),body:l,duplex:"half",credentials:L?E:void 0};j=u&&new a(r,N);let U=await (u?A(j,C):A(r,N)),F=eg.from(U.headers);if(T){let t=er.toFiniteNumber(F.getContentLength());if(null!=t&&t>O)throw new ev("maxContentLength size of "+O+" exceeded",ev.ERR_BAD_RESPONSE,e,j)}let z=p&&("stream"===_||"response"===_);if(p&&U.body&&(b||T||z&&R)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=U[e]});let r=er.toFiniteNumber(F.getContentLength()),[n,i]=b&&eJ(r,eX(eQ(b),!0))||[];U=new s(ta(U.body,65536,t=>{if(T&&t>O)throw new ev("maxContentLength size of "+O+" exceeded",ev.ERR_BAD_RESPONSE,e,j);n&&n(t)},()=>{i&&i(),R&&R()}),t)}_=_||"text";let $=await m[er.findKey(m,_)||"text"](U,e);if(T&&!p&&!z){let t;if(null!=$&&("number"==typeof $.byteLength?t=$.byteLength:"number"==typeof $.size?t=$.size:"string"==typeof $&&(t="function"==typeof i?new i().encode($).byteLength:$.length)),"number"==typeof t&&t>O)throw new ev("maxContentLength size of "+O+" exceeded",ev.ERR_BAD_RESPONSE,e,j)}return!z&&R&&R(),await new Promise((t,r)=>{eZ(t,r,{data:$,headers:eg.from(U.headers),status:U.status,statusText:U.statusText,config:e,request:j})})}catch(t){if(R&&R(),P&&P.aborted&&P.reason instanceof ev){let r=P.reason;throw r.config=e,j&&(r.request=j),t!==r&&Object.defineProperty(r,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),r}if(M)throw j&&!M.request&&(M.request=j),M;if(t instanceof ev)throw j&&!t.request&&(t.request=j),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let r=new ev("Network Error",ev.ERR_NETWORK,e,j,t&&t.response);throw Object.defineProperty(r,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),r}throw ev.from(t,t&&t.code,e,j,t&&t.response)}}},tg=new Map,ty=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:i}=t,o=[n,i,r],a=o.length,s,l,u=tg;for(;a--;)s=o[a],void 0===(l=u.get(s))&&u.set(s,l=a?new Map:tm(t)),u=l;return l};ty();let tv={http:null,xhr:tt,fetch:{get:ty}};er.forEach(tv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let tb=e=>`- ${e}`,tw=e=>er.isFunction(e)||null===e||!1===e;var t_=function(e,t){let r,n;let{length:i}=e=er.isArray(e)?e:[e],o={};for(let a=0;a<i;a++){let i;if(n=r=e[a],!tw(r)&&void 0===(n=tv[(i=String(r)).toLowerCase()]))throw new ev(`Unknown adapter '${i}'`);if(n&&(er.isFunction(n)||(n=n.get(t))))break;o[i||"#"+a]=n}if(!n){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new ev("There is no suitable adapter to dispatch the request "+(i?e.length>
2501?"since :\n"+e.map(tb).join("\n"):" "+tb(e[0]):"as no adapter specified"),ev.ERR_NOT_SUPPORT)}return n};function tx(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eY(null,e)}function tE(e){return tx(e),e.headers=eg.from(e.headers),e.data=eW.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),t_(e.adapter||eq.adapter,e)(e).then(function(t){tx(e),e.response=t;try{t.data=eW.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=eg.from(t.headers),t},function(t){if(!eH(t)&&(tx(e),t&&t.response)){e.response=t.response;try{t.response.data=eW.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=eg.from(t.response.headers)}return Promise.reject(t)})}let tC={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tC[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let tO={};tC.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tu+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new ev(n(i," has been removed"+(t?" in "+t:"")),ev.ERR_DEPRECATED);return t&&!tO[i]&&(tO[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}},tC.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var tS={assertOptions:function(e,t,r){if("object"!=typeof e||null===e)throw new ev("options must be an object",ev.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){let t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new ev("option "+o+" must be "+r,ev.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new ev("Unknown option "+o,ev.ERR_BAD_OPTION)}},validators:tC};let tT=tS.validators;class tk{constructor(e){this.defaults=e||{},this.interceptors={request:new eP,response:new eP}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){let t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),i=-1===n?"":r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=e8(this.defaults,t);void 0!==i&&tS.assertOptions(i,{silentJSONParsing:tT.transitional(tT.boolean),forcedJSONParsing:tT.transitional(tT.boolean),clarifyTimeoutError:tT.transitional(tT.boolean),legacyInterceptorReqResOrdering:tT.transitional(tT.boolean),advertiseZstdAcceptEncoding:tT.transitional(tT.boolean),validateStatusUndefinedResolves:tT.transitional(tT.boolean)},!1),null!=o&&(er.isFunction(o)?t.paramsSerializer={serialize:o}:tS.assertOptions(o,{encode:tT.function,serialize:tT.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tS.assertOptions(t,{baseUrl:tT.spelling("baseURL"),withXsrfToken:tT.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&er.merge(a.common,a[t.method]);a&&er.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=eg.concat(s,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;u=u&&e.synchronous;let r=t.transitional||ej;r&&r.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[tE.bind(this),void 0];for(e.unshift(...l),e.push(...c),n=e.length,r=Promise.resolve(t);d<n;)r=r.then(e[d++],e[d++]);return r}n=l.length;let f=t;for(;d<n;){let e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{r=tE.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,n=c.length;d<n;)r=r.then(c[d++],c[d++]);return r}getUri(e){return eA(e4((e=e8(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}er.forEach(["delete","get","head","options"],function(e){tk.prototype[e]=function(t,r){return this.request(e8(r||{},{method:e,url:t,data:r&&er.hasOwnProp(r,"data")?r.data:void 0}))}}),er.forEach(["post","put","patch","query"],function(e){function t(t){return function(r,n,i){return this.request(e8(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tk.prototype[e]=t(),"query"!==e&&(tk.prototype[e+"Form"]=t(!0))});class tA{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new eY(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
250subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tA(function(t){e=t}),cancel:e}}}let tP={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(tP).forEach(([e,t])=>{tP[t]=e});let tj=function e(t){let r=new tk(t),n=f(tk.prototype.request,r);return er.extend(n,tk.prototype,r,{allOwnKeys:!0}),er.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(e8(t,r))},n}(eq);tj.Axios=tk,tj.CanceledError=eY,tj.CancelToken=tA,tj.isCancel=eH,tj.VERSION=tu,tj.toFormData=eC,tj.AxiosError=ev,tj.Cancel=tj.CanceledError,tj.all=function(e){return Promise.all(e)},tj.spread=function(e){return function(t){return e.apply(null,t)}},tj.isAxiosError=function(e){return er.isObject(e)&&!0===e.isAxiosError},tj.mergeConfig=e8,tj.AxiosHeaders=eg,tj.formToJSON=e=>eB(er.isHTMLForm(e)?new FormData(e):e),tj.getAdapter=t_,tj.HttpStatusCode=tP,tj.default=tj;var tR=tj},68588:function(e,t,r){"use strict";r.d(t,{M:function(){return n}});let n="data-"+(0,r(93193).D)("framerAppearId")},2445:function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}r.d(t,{H:function(){return n}})},48488:function(e,t,r){"use strict";r.d(t,{C:function(){return n}});let n=e=>Array.isArray(e)},51526:function(e,t,r){"use strict";r.d(t,{M:function(){return g}});var n=r(67294),i=r(58868);function o(){let e=(0,n.useRef)(!1);return(0,i.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var a=r(2074),s=r(240),l=r(96681);class u extends n.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:e,isPresent:t}){let r=(0,n.useId)(),i=(0,n.useRef)(null),o=(0,n.useRef)({width:0,height:0,top:0,left:0});return(0,n.useInsertionEffect)(()=>{let{width:e,height:n,top:a,left:s}=o.current;if(t||!i.current||!e||!n)return;i.current.dataset.motionPopId=r;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` 251 [data-motion-pop-id="${r}"] { 252 position: absolute !important; 253 width: ${e}px !important; 254 height: ${n}px !important; 255 top: ${a}px !important; 256 left: ${s}px !important; 257 } 258 `),()=>{document.head.removeChild(l)}},[t]),n.createElement(u,{isPresent:t,childRef:i,sizeRef:o},n.cloneElement(e,{ref:i}))}let d=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:o,presenceAffectsLayout:a,mode:u})=>{let d=(0,l.h)(f),h=(0,n.useId)(),p=(0,n.useMemo)(()=>({id:h,initial:t,isPresent:r,custom:o,onExitComplete:e=>
258{for(let t of(d.set(e,!0),d.values()))if(!t)return;i&&i()},register:e=>(d.set(e,!1),()=>d.delete(e))}),a?void 0:[r]);return(0,n.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[r]),n.useEffect(()=>{r||d.size||!i||i()},[r]),"popLayout"===u&&(e=n.createElement(c,{isPresent:r},e)),n.createElement(s.O.Provider,{value:p},e)};function f(){return new Map}var h=r(25364),p=r(45487);let m=e=>e.key||"",g=({children:e,custom:t,initial:r=!0,onExitComplete:s,exitBeforeEnter:l,presenceAffectsLayout:u=!0,mode:c="sync"})=>{var f;(0,p.k)(!l,"Replace exitBeforeEnter with mode='wait'");let g=(0,n.useContext)(h.p).forceRender||function(){let e=o(),[t,r]=(0,n.useState)(0),i=(0,n.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,n.useCallback)(()=>a.Wi.postRender(i),[i]),t]}()[0],y=o(),v=function(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}(e),b=v,w=(0,n.useRef)(new Map).current,_=(0,n.useRef)(b),x=(0,n.useRef)(new Map).current,E=(0,n.useRef)(!0);if((0,i.L)(()=>{E.current=!1,function(e,t){e.forEach(e=>{let r=m(e);t.set(r,e)})}(v,x),_.current=b}),f=()=>{E.current=!0,x.clear(),w.clear()},(0,n.useEffect)(()=>()=>f(),[]),E.current)return n.createElement(n.Fragment,null,b.map(e=>n.createElement(d,{key:m(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:u,mode:c},e)));b=[...b];let C=_.current.map(m),O=v.map(m),S=C.length;for(let e=0;e<S;e++){let t=C[e];-1!==O.indexOf(t)||w.has(t)||w.set(t,void 0)}return"wait"===c&&w.size&&(b=[]),w.forEach((e,r)=>{if(-1!==O.indexOf(r))return;let i=x.get(r);if(!i)return;let o=C.indexOf(r),a=e;a||(a=n.createElement(d,{key:m(i),isPresent:!1,onExitComplete:()=>{w.delete(r);let e=Array.from(x.keys()).filter(e=>!O.includes(e));if(e.forEach(e=>x.delete(e)),_.current=v.filter(t=>{let n=m(t);return n===r||e.includes(n)}),!w.size){if(!1===y.current)return;g(),s&&s()}},custom:t,presenceAffectsLayout:u,mode:c},i),w.set(r,a)),b.splice(o,0,a)}),b=b.map(e=>{let t=e.key;return w.has(t)?e:n.createElement(d,{key:m(e),isPresent:!0,presenceAffectsLayout:u,mode:c},e)}),n.createElement(n.Fragment,null,w.size?b:b.map(e=>(0,n.cloneElement)(e)))}},25364:function(e,t,r){"use strict";r.d(t,{p:function(){return n}});let n=(0,r(67294).createContext)({})},70398:function(e,t,r){"use strict";r.d(t,{u:function(){return n}});let n=(0,r(67294).createContext)({strict:!1})},240:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});let n=(0,r(67294).createContext)(null)},41705:function(e,t,r){"use strict";r.d(t,{g:function(){return n}});let n=(0,r(67294).createContext)({})},2074:function(e,t,r){"use strict";r.d(t,{Pn:function(){return s},Wi:function(){return a},frameData:function(){return l},S6:function(){return u}});var n=r(81662);class i{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let o=["prepare","read","update","preRender","render","postRender"],{schedule:a,cancel:s,state:l,steps:u}=function(e,t){let r=!1,n=!0,a={delta:0,timestamp:0,isProcessing:!1},s=o.reduce((e,t)=>(e[t]=function(e){let t=new i,r=new i,n=0,o=!1,a=!1,s=new WeakSet,l={schedule:(e,i=!1,a=!1)=>{let l=a&&o,u=l?t:r;return i&&s.add(e),u.add(e)&&l&&o&&(n=t.order.length),e},cancel:e=>{r.remove(e),s.delete(e)},process:i=>{if(o){a=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length)for(let r=0;r<n;r++){let n=t.order[r];n(i),s.has(n)&&(l.schedule(n),e())}o=!1,a&&(a=!1,l.process(i))}};return l}(()=>r=!0),e),{}),l=e=>s[e].process(a),u=()=>{let i=performance.now();r=!1,a.delta=n?1e3/60:Math.max(Math.min(i-a.timestamp,40),1),a.timestamp=i,a.isProcessing=!0,o.forEach(l),a.isProcessing=!1,r&&t&&(n=!1,e(u))},c=()=>{r=!0,n=!0,a.isProcessing||e(u)};return{schedule:o.reduce((e,t)=>{let n=s[t];return e[t]=(e,t=!1,i=!1)=>(r||c(),n.schedule(e,t,i)),e},{}),cancel:e=>o.forEach(t=>s[t].cancel(e)),state:a,steps:s}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},9442:function(e,t,r){"use strict";r.d(t,{A:function(){return i}});let n={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"]},i={};for(let e in n)i[e]={isEnabled:t=>n[e].some(e=>!!t[e])}},81879:function(e,t,r){"use strict";r.d(t,{K:function(){return i}});var n=r(9442);function i(e){for(let t in e)n.A[t]={...n.A[t],...e[t]}}},56816:function(e,t,r){"use strict";r.d(t,{j:function(){return o}});var n=r(64561),i=r(94714);function o(e,{layout:t,layoutId:r}){return i.G.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!n.P[e]||"opacity"===e)}},64561:function(e,t,r){"use strict";r.d(t,{B:function(){return i},P:function(){return n}});let n={};function i(e){Object.assign(n,e)}},21016:function(e,t,r){"use strict";r.d(t,{m:function(){return B}});var n,i=r(67294);let o=(0,i.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),a=(0,i.createContext)({});var s=r(240),l=r(58868),u=r(70398),c=r(68588),d=r(51804),f=r(97732),h=r(7504);function p(e){return Array.isArray(e)?e.join(" "):e}var m=r(81879),g=r(11741),y=r(25364),v=r(41705);let b=Symbol.for("motionComponentSymbol");var w=r(62627),_=r(56816),x=r(40406),E=r(38057);let C=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function O(e,t,r){for(let n in t)(0,x.i)(t[n])||(0,_.j)(n,r)||(e[n]=t[n])}let S=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 T(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||S.has(e)}let k=e=>!T(e);try{(n=require("@emotion/is-prop-valid").default)&&(k=e=>e.startsWith("on")?!T(e):n(e))}catch(e){}var A=r(85415);let P=()=>({...C(),attrs:{}});var j=r(79854),R=r(68504),M=r(16832),D=r(2445),I=r(79432),L=r(96681),N=r(16399);let U=e=>(t,r)=>{let n=(0,i.useContext)(a),o=(0,i.useContext)(s.O),l=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let a={latestValues:function(e,t,r,n){let i={},o=n(e,{});for(let e in o)i[e]=(0,N.b)(o[e]);let{initial:a,animate:s}=e,l=(0,h.G)(e),u=(0,h.M)(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial,d=(c=c||!1===a)?s:a;return d&&"boolean"!=typeof d&&!(0,D.H)(d)&&(Array.isArray(d)?d:[d]).forEac
258h(t=>{let r=(0,I.o)(e,t);if(!r)return;let{transitionEnd:n,transition:o,...a}=r;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in n)i[e]=n[e]}),i}(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a})(e,t,n,o);return r?l():(0,L.h)(l)};var F=r(2074);let z={useVisualState:U({scrapeMotionValuesFromProps:M.U,createRenderState:P,onMount:(e,t,{renderState:r,latestValues:n})=>{F.Wi.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),F.Wi.render(()=>{(0,A.i)(r,n,{enableHardwareAcceleration:!1},(0,j.a)(t.tagName),e.transformTemplate),(0,R.K)(t,r)})}})},$={useVisualState:U({scrapeMotionValuesFromProps:r(50189).U,createRenderState:C})},B=function(e){function t(t,r={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:w}){e&&(0,m.K)(e);let _=(0,i.forwardRef)(function(m,b){var _;let x;let E={...(0,i.useContext)(o),...m,layoutId:function({layoutId:e}){let t=(0,i.useContext)(y.p).id;return t&&void 0!==e?t+"-"+e:e}(m)},{isStatic:C}=E,O=function(e){let{initial:t,animate:r}=function(e,t){if((0,h.G)(e)){let{initial:t,animate:r}=e;return{initial:!1===t||(0,f.$)(t)?t:void 0,animate:(0,f.$)(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,i.useContext)(a));return(0,i.useMemo)(()=>({initial:t,animate:r}),[p(t),p(r)])}(m),S=n(m,C);if(!C&&g.j){O.visualElement=function(e,t,r,n){let{visualElement:d}=(0,i.useContext)(a),f=(0,i.useContext)(u.u),h=(0,i.useContext)(s.O),p=(0,i.useContext)(o).reducedMotion,m=(0,i.useRef)();n=n||f.renderer,!m.current&&n&&(m.current=n(e,{visualState:t,parent:d,props:r,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:p}));let g=m.current;(0,i.useInsertionEffect)(()=>{g&&g.update(r,h)});let y=(0,i.useRef)(!!(r[c.M]&&!window.HandoffComplete));return(0,l.L)(()=>{g&&(g.render(),y.current&&g.animationState&&g.animationState.animateChanges())}),(0,i.useEffect)(()=>{g&&(g.updateFeatures(),!y.current&&g.animationState&&g.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),g}(w,S,E,t);let r=(0,i.useContext)(v.g),n=(0,i.useContext)(u.u).strict;O.visualElement&&(x=O.visualElement.loadFeatures(E,n,e,r))}return i.createElement(a.Provider,{value:O},x&&O.visualElement?i.createElement(x,{visualElement:O.visualElement,...E}):null,r(w,m,(_=O.visualElement,(0,i.useCallback)(e=>{e&&S.mount&&S.mount(e),_&&(e?_.mount(e):_.unmount()),b&&("function"==typeof b?b(e):(0,d.I)(b)&&(b.current=e))},[_])),S,C,O.visualElement))});return _[b]=w,_}(e(t,r))}if("undefined"==typeof Proxy)return t;let r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}(function(e,{forwardMotionProps:t=!1},r,n){return{...(0,w.q)(e)?z:$,preloadedFeatures:r,useRender:function(e=!1){return(t,r,n,{latestValues:o},a)=>{let s=((0,w.q)(t)?function(e,t,r,n){let o=(0,i.useMemo)(()=>{let r=P();return(0,A.i)(r,t,{enableHardwareAcceleration:!1},(0,j.a)(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};O(t,e.style,e),o.style={...t,...o.style}}return o}:function(e,t,r){let n={},o=function(e,t,r){let n=e.style||{},o={};return O(o,n,e),Object.assign(o,function({transformTemplate:e},t,r){return(0,i.useMemo)(()=>{let n=C();return(0,E.r)(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}(e,t,r)),e.transformValues?e.transformValues(o):o}(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n})(r,o,a,t),l={...function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(k(i)||!0===r&&T(i)||!t&&!T(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),...s,ref:n},{children:u}=r,c=(0,i.useMemo)(()=>(0,x.i)(u)?u.get():u,[u]);return(0,i.createElement)(t,{...l,children:c})}}(t),createVisualElement:n,Component:e}})},93193:function(e,t,r){"use strict";r.d(t,{D:function(){return n}});let n=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},57630:function(e,t,r){"use strict";r.d(t,{Xp:function(){return a},f9:function(){return i},tm:function(){return o}});let n=e=>t=>"string"==typeof t&&t.startsWith(e),i=n("--"),o=n("var(--"),a=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?
258:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g},62627:function(e,t,r){"use strict";r.d(t,{q:function(){return i}});let n=["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 i(e){if("string"!=typeof e||e.includes("-"));else if(n.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}},36173:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});var n=r(61649),i=r(96190);let o={...n.Rx,transform:Math.round},a={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,size:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,rotate:i.RW,rotateX:i.RW,rotateY:i.RW,rotateZ:i.RW,scale:n.bA,scaleX:n.bA,scaleY:n.bA,scaleZ:n.bA,skew:i.RW,skewX:i.RW,skewY:i.RW,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:n.Fq,originX:i.$C,originY:i.$C,originZ:i.px,zIndex:o,fillOpacity:n.Fq,strokeOpacity:n.Fq,numOctaves:o}},38057:function(e,t,r){"use strict";r.d(t,{r:function(){return u}});var n=r(94714);let i={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o=n._.length;var a=r(57630);let s=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var l=r(36173);function u(e,t,r,u){let{style:c,vars:d,transform:f,transformOrigin:h}=e,p=!1,m=!1,g=!0;for(let e in t){let r=t[e];if((0,a.f9)(e)){d[e]=r;continue}let i=l.j[e],o=s(r,i);if(n.G.has(e)){if(p=!0,f[e]=o,!g)continue;r!==(i.default||0)&&(g=!1)}else e.startsWith("origin")?(m=!0,h[e]=o):c[e]=o}if(!t.transform&&(p||u?c.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},a,s){let l="";for(let t=0;t<o;t++){let r=n._[t];if(void 0!==e[r]){let t=i[r]||r;l+=`${t}(${e[r]}) `}}return t&&!e.z&&(l+="translateZ(0)"),l=l.trim(),s?l=s(e,a?"":l):r&&a&&(l="none"),l}(e.transform,r,g,u):c.transform&&(c.transform="none")),m){let{originX:e="50%",originY:t="50%",originZ:r=0}=h;c.transformOrigin=`${e} ${t} ${r}`}}},34242:function(e,t,r){"use strict";function n(e,{style:t,vars:r},n,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(o,r[o])}r.d(t,{N:function(){return n}})},50189:function(e,t,r){"use strict";r.d(t,{U:function(){return o}});var n=r(56816),i=r(40406);function o(e,t){let{style:r}=e,o={};for(let a in r)((0,i.i)(r[a])||t.style&&(0,i.i)(t.style[a])||(0,n.j)(a,e))&&(o[a]=r[a]);return o}},94714:function(e,t,r){"use strict";r.d(t,{G:function(){return i},_:function(){return n}});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(n)},85415:function(e,t,r){"use strict";r.d(t,{i:function(){return l}});var n=r(38057),i=r(96190);function o(e,t,r){return"string"==typeof e?e:i.px.transform(t+r*e)}let a={offset:"stroke-dashoffset",array:"stroke-dasharray"},s={offset:"strokeDashoffset",array:"strokeDasharray"};function l(e,{attrX:t,attrY:r,attrScale:l,originX:u,originY:c,pathLength:d,pathSpacing:f=1,pathOffset:h=0,...p},m,g,y){if((0,n.r)(e,p,m,y),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:v,style:b,dimensions:w}=e;v.transform&&(w&&(b.transform=v.transform),delete v.transform),w&&(void 0!==u||void 0!==c||b.transform)&&(b.transformOrigin=function(e,t,r){let n=o(t,e.x,e.width),i=o(r,e.y,e.height);return`${n} ${i}`}(w,void 0!==u?u:.5,void 0!==c?c:.5)),void 0!==t&&(v.x=t),void 0!==r&&(v.y=r),void 0!==l&&(v.scale=l),void 0!==d&&function(e,t,r=1,n=0,o=!0){e.pathLength=1;let l=o?a:s;e[l.offset]=i.px.transform(-n);let u=i.px.transform(t),c=i.px.transform(r);e[l.array]=`${u} ${c}`}(v,d,f,h,!1)}},77302:function(e,t,r){"use strict";r.d(t,{s:function(){return n}});let n=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"])},79854:function(e,t,r){"use strict";r.d(t,{a:function(){return n}});let n=e=>"string"==typeof e&&"svg"===e.toLowerCase()},68504:function(e,t,r){"use strict";r.d(t,{K:function(){return a}});var n=r(93193),i=r(34242),o=r(77302);function a(e,t,r,a){for(let r in(0,i.N)(e,t,void 0,a),t.attrs)e.setAttribute(o.s.has(r)?r:(0,n.D)(r),t.attrs[r])}},16832:function(e,t,r){"use strict";r.d(t,{U:function(){return a}});var n=r(40406),i=r(50189),o=r(94714);function a(e,t){let r=(0,i.U)(e,t);for(let i in e)((0,n.i)(e[i])||(0,n.i)(t[i]))&&(r[-1!==o._.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return r}},7504:function(e,t,r){"use strict";r.d(t,{G:function(){return a},M:function(){return s}});var n=r(2445),i=r(97732),o=r(22963);function a(e){return(0,n.H)(e.animate)||o.V.some(t=>(0,i.$)(e[t]))}function s(e){return!!(a(e)||e.variants)}},97732:function(e,t,r){"use strict";function n(e){return"string"==typeof e||Array.isArray(e)}r.d(t,{$:function(){return n}})},79432:function(e,t,r){"use strict";function n(e,t,r,n={},i={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}r.d(t,{o:function(){return n}})},22963:function(e,t,r){"use strict";r.d(t,{V:function(){return i},e:function(){return n}});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i=["initial",...n]},24169:function(e,t,r){"use strict";r.d(t,{u:function(){return n}});let n=(e,t,r)=>
258Math.min(Math.max(r,e),t)},45487:function(e,t,r){"use strict";r.d(t,{K:function(){return i},k:function(){return o}});var n=r(81662);let i=n.Z,o=n.Z},11741:function(e,t,r){"use strict";r.d(t,{j:function(){return n}});let n="undefined"!=typeof document},51804:function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}r.d(t,{I:function(){return n}})},81662:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=e=>e},8715:function(e,t,r){"use strict";r.d(t,{Y:function(){return o},p:function(){return i}});var n=r(48488);let i=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),o=e=>(0,n.C)(e)?e[e.length-1]||0:e},96681:function(e,t,r){"use strict";r.d(t,{h:function(){return i}});var n=r(67294);function i(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},58868:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(67294);let i=r(11741).j?n.useLayoutEffect:n.useEffect},61649:function(e,t,r){"use strict";r.d(t,{Fq:function(){return o},Rx:function(){return i},bA:function(){return a}});var n=r(24169);let i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o={...i,transform:e=>(0,n.u)(0,1,e)},a={...i,default:1}},96190:function(e,t,r){"use strict";r.d(t,{$C:function(){return c},RW:function(){return o},aQ:function(){return a},px:function(){return s},vh:function(){return l},vw:function(){return u}});var n=r(36430);let i=e=>({test:t=>(0,n.HD)(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),o=i("deg"),a=i("%"),s=i("px"),l=i("vh"),u=i("vw"),c={...a,parse:e=>a.parse(e)/100,transform:e=>a.transform(100*e)}},36430:function(e,t,r){"use strict";r.d(t,{HD:function(){return s},KP:function(){return i},Nw:function(){return n},dA:function(){return o},mj:function(){return a}});let n=e=>Math.round(1e5*e)/1e5,i=/(-)?([\d]*\.?[\d])+/g,o=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,a=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function s(e){return"string"==typeof e}},40406:function(e,t,r){"use strict";r.d(t,{i:function(){return n}});let n=e=>!!(e&&e.getVelocity)},16399:function(e,t,r){"use strict";r.d(t,{b:function(){return o}});var n=r(8715),i=r(40406);function o(e){let t=(0,i.i)(e)?e.get():e;return(0,n.p)(t)?t.toValue():t}},48583:function(e,t,r){"use strict";r.d(t,{Dv:function(){return p},KO:function(){return g},b9:function(){return m},zt:function(){return l}});var n=r(67294),i=r(15103),o=r(40174);let a=(0,n.createContext)(void 0);function s(e){let t=(0,n.useContext)(a);return(null==e?void 0:e.store)||t||(0,i.K7)()}function l({children:e,store:t}){let r=(0,n.useRef)(null);return t?(0,n.createElement)(a.Provider,{value:t},e):(null===r.current&&(r.current=(0,i.MT)()),(0,n.createElement)(a.Provider,{value:r.current},e))}let u=e=>"function"==typeof(null==e?void 0:e.then),c=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},d=n.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw c(e),e}),f=new WeakMap,h=(e,t,r)=>{let n=(0,o.EX)(e),i=n[26],a=f.get(t);return a||(a=new Promise((o,s)=>{let l=t,c=e=>t=>{l===e&&o(t)},d=e=>t=>{l===e&&s(t)},h=()=>{try{let t=r();u(t)?(f.set(t,a),l=t,t.then(c(t),d(t)),i(n,e,t,h)):o(t)}catch(e){s(e)}};t.then(c(t),d(t)),i(n,e,t,h)}),f.set(t,a)),a};function p(e,t){let{delay:r,unstable_promiseStatus:i=!n.use}=t||{},o=s(t),[[a,l,f],p]=(0,n.useReducer)(t=>{let r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]},void 0,()=>[o.get(e),o,e]),m=a;if((l!==o||f!==e)&&(p(),m=o.get(e)),(0,n.useEffect)(()=>
258{let t=o.sub(e,()=>{if(i)try{let t=o.get(e);u(t)&&c(h(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof r){console.warn(`[DEPRECATED] delay option is deprecated and will be removed in v3. 259 260Migration guide: 261 262Create a custom hook like the following. 263 264function useAtomValueWithDelay<Value>( 265 atom: Atom<Value>, 266 options: { delay: number }, 267): Value { 268 const { delay } = options 269 const store = useStore(options) 270 const [value, setValue] = useState(() => store.get(atom)) 271 useEffect(() => { 272 const unsub = store.sub(atom, () => { 273 setTimeout(() => setValue(store.get(atom)), delay) 274 }) 275 return unsub 276 }, [store, atom, delay]) 277 return value 278} 279`),setTimeout(p,r);return}p()});return p(),t},[o,e,r,i]),(0,n.useDebugValue)(m),u(m)){let t=h(o,m,()=>o.get(e));return i&&c(t),d(t)}return m}function m(e,t){let r=s(t);return(0,n.useCallback)((...t)=>{if(!("write"in e))throw Error("not writable atom");return r.set(e,...t)},[r,e])}function g(e,t){return[p(e,t),m(e,t)]}},15103:function(e,t,r){"use strict";let n,i;r.d(t,{K7:function(){return d},MT:function(){return c},cn:function(){return s}});var o=r(40174);let a=0;function s(e,t){let r=`atom${++a}`,n={toString(){return this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?n.read=e:(n.init=e,n.read=l,n.write=u),t&&(n.write=t),n}function l(e){return e(this)}function u(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function c(){return n?n():(0,o.KE)()}function d(){return i||(i=c(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=i),globalThis.__JOTAI_DEFAULT_STORE__!==i&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),i}},40174:function(e,t,r){"use strict";function n(e){return"function"==typeof e.write}function i(e){return"v"in e||"e"in e}function o(e){if("e"in e)throw e.e;if(!("v"in e))throw Error("[Bug] atom state is not initialized");return e.v}function a(e){return"function"==typeof(null==e?void 0:e.then)}function s(e,t,r){if(!r.p.has(e)){r.p.add(e);let n=()=>r.p.delete(e);t.then(n,n)}}function l(e,t,r){let n=r.get(e),i=null==n?void 0:n.t,o=t.p;if(!(null==i?void 0:i.size))return o;if(!o.size)return i;let a=new Set(i);for(let e of o)a.add(e);return a}r.d(t,{EX:function(){return P},KE:function(){return j}});let u=(e,t,r,...n)=>r.read(...n),c=(e,t,r,...n)=>r.write(...n),d=(e,t,r)=>r.INTERNAL_onInit(t),f=(e,t,r,n)=>{var i;return null==(i=r.onMount)?void 0:i.call(r,n)},h=(e,t,r)=>{var n;let i=e[0],o=i.get(r);if(!o){let a=e[6],s=e[9];o={d:new Map,p:new Set,n:0},i.set(r,o),null==(n=a.i)||n.call(a,r),r.INTERNAL_onInit&&s(e,t,r)}return o},p=(e,t)=>{var r;let n=e[1],i=e[3],o=e[4],a=e[5],s=e[6],l=e[13];if(!s.f&&!i.size&&!o.size&&!a.size)return;let u=[],c=e=>{try{e()}catch(e){u.push(e)}};do{s.f&&c(s.f);let u=new Set;for(let e of i){let t=null==(r=n.get(e))?void 0:r.l;if(t)for(let e of t)u.add(e)}for(let e of(i.clear(),a))u.add(e);for(let e of(a.clear(),o))u.add(e);for(let e of(o.clear(),u))c(e);i.size&&l(e,t)}while(i.size||a.size||o.size);if(u.length)throw AggregateError(u)},m=(e,t)=>{let r=e[1],n=e[2],i=e[3],o=e[11],a=e[14],s=e[17];if(!i.size)return;let u=[],c=[],d=new WeakSet,f=new WeakSet,h=[],p=[];for(let r of i)h.push(r),p.push(o(e,t,r));for(;h.length;){let i=h.length-1,a=h[i],s=p[i];if(f.has(a)){h.pop(),p.pop();continue}if(d.has(a)){if(n.get(a)===s.n)u.push(a),c.push(s);else if(n.has(a))throw Error("[Bug] invalidated atom exists");f.add(a),h.pop(),p.pop();continue}for(let n of(d.add(a),l(a,s,r)))d.has(n)||(h.push(n),p.push(o(e,t,n)))}for(let r=u.length-1;r>=0;--r){let o=u[r],l=c[r],d=!1;for(let e of l.d.keys())if(e!==o&&i.has(e)){d=!0;break}d&&(n.set(o,l.n),a(e,t,o),s(e,t,o)),n.delete(o)}},g=new WeakSet,y=(e,t,r)=>{var l,u;let c,d;let f=e[1],h=e[2],p=e[3],m=e[6],y=e[7],v=e[11],b=e[12],w=e[13],_=e[14],x=e[16],E=e[17],C=e[20],O=e[26],S=e[28],T=v(e,t,r),k=S[0];if(i(T)){if(f.has(r)&&h.get(r)!==T.n||T.m===k)return T.m=k,T;let n=!1;for(let[r,i]of T.d)if(_(e,t,r).n!==i){n=!0;break}if(!n)return T.m=k,T}let A=!0,P=new Set(T.d.keys()),j=()=>{for(let e of P)T.d.delete(e)},R=()=>
279{if(f.has(r)){let n=!p.size;E(e,t,r),n&&(w(e,t),b(e,t))}},M=T.n,D=h.get(r)===M;try{g.delete(t);let u=y(e,t,r,n=>{var l;if(n===r){let r=v(e,t,n);if(!i(r)){if("init"in n)C(e,t,n,n.init);else throw Error("no atom init")}return o(r)}let u=_(e,t,n);try{return o(u)}finally{P.delete(n),T.d.set(n,u.n),a(T.v)&&s(r,T.v,u),f.has(r)&&(null==(l=f.get(n))||l.t.add(r)),A||R()}},{get signal(){return c||(c=new AbortController),c.signal},get setSelf(){return console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),n(r)||console.warn("setSelf function cannot be used with read-only atom"),!d&&n(r)&&(d=(...n)=>{if(A&&console.warn("setSelf function cannot be called in sync"),!A)try{return x(e,t,r,n)}finally{w(e,t),b(e,t)}}),d}});if(g.has(t)&&console.warn("Detected store mutation during atom read. This is not supported."),C(e,t,r,u),a(u)){O(e,t,u,()=>null==c?void 0:c.abort());let r=()=>{j(),R()};u.then(r,r)}else j();return null==(l=m.r)||l.call(m,r),T.m=k,T}catch(e){if(function(e){if(!(e instanceof Error))return!1;let t=e.name,r=e.message.toLowerCase();return("RangeError"===t||"InternalError"===t)&&(r.includes("call stack")||r.includes("too much recursion")||r.includes("stack overflow"))}(e))throw e;return delete T.v,T.e=e,++T.n,T.m=k,T}finally{A=!1,T.n!==M&&D&&(h.set(r,T.n),p.add(r),null==(u=m.c)||u.call(m,r))}},v=(e,t,r)=>{let n=e[1],i=e[2],o=e[11],a=[r];for(;a.length;){let r=a.pop(),s=o(e,t,r);for(let u of l(r,s,n)){let r=o(e,t,u);i.get(u)!==r.n&&(i.set(u,r.n),a.push(u))}}},b=(e,t,r,n)=>{let i=e[3],a=e[6],s=e[8],l=e[11],u=e[12],c=e[13],d=e[14],f=e[15],h=e[16],p=e[17],m=e[20],y=e[28],v=!0;try{return s(e,t,r,r=>o(d(e,t,r)),(n,...o)=>{var s;let d=l(e,t,n);try{if(n!==r)return h(e,t,n,o);{if(!("init"in n))throw Error("atom not writable");g.add(t);let r=d.n,l=o[0];m(e,t,n,l),p(e,t,n),r!==d.n&&(++y[0],i.add(n),f(e,t,n),null==(s=a.c)||s.call(a,n));return}}finally{v||(c(e,t),u(e,t))}},...n)}finally{v=!1}},w=(e,t,r)=>{var n;let i=e[1],o=e[3],a=e[6],s=e[11],l=e[15],u=e[18],c=e[19],d=s(e,t,r),f=i.get(r);if(f&&d.d.size>0){for(let[i,c]of d.d)if(!f.d.has(i)){let d=s(e,t,i);u(e,t,i).t.add(r),f.d.add(i),c!==d.n&&(o.add(i),l(e,t,i),null==(n=a.c)||n.call(a,i))}for(let n of f.d)if(!d.d.has(n)){f.d.delete(n);let i=c(e,t,n);null==i||i.t.delete(r)}}},_=(e,t,r)=>{var i;let o=e[1],a=e[4],s=e[6],l=e[10],u=e[11],c=e[12],d=e[13],f=e[14],h=e[16],p=e[18],m=u(e,t,r),g=o.get(r);if(!g){for(let n of(f(e,t,r),m.d.keys()))p(e,t,n).t.add(r);g={l:new Set,d:new Set(m.d.keys()),t:new Set},o.set(r,g),n(r)&&r.onMount&&a.add(()=>{let n=!0;try{let i=l(e,t,r,(...i)=>{try{return h(e,t,r,i)}finally{n||(d(e,t),c(e,t))}});i&&(g.u=()=>{n=!0;try{i()}finally{n=!1}})}finally{n=!1}}),null==(i=s.m)||i.call(s,r)}return g},x=(e,t,r)=>{var n,i;let o=e[1],a=e[5],s=e[6],l=e[11],u=e[19],c=l(e,t,r),d=o.get(r);if(!d||d.l.size)return d;let f=!1;for(let e of d.t)if(null==(n=o.get(e))?void 0:n.d.has(r)){f=!0;break}if(!f){for(let n of(d.u&&a.add(d.u),d=void 0,o.delete(r),c.d.keys())){let i=u(e,t,n);null==i||i.t.delete(r)}null==(i=s.u)||i.call(s,r);return}return d},E=(e,t,r,n)=>{let i=e[11],o=e[27],l=i(e,t,r),u="v"in l,c=l.v;if(a(n))for(let o of l.d.keys())s(r,n,i(e,t,o));l.v=n,delete l.e,u&&Object.is(c,l.v)||(++l.n,a(c)&&o(e,t,c))},C=(e,t,r)=>o((0,e[14])(e,t,r)),O=(e,t,r,...n)=>{let i=e[3],o=e[12],a=e[13],s=e[16],l=i.size;try{return s(e,t,r,n)}finally{i.size!==l&&(a(e,t),o(e,t))}},S=(e,t,r,n)=>{let i=e[12],o=e[13],a=e[18],s=e[19],l=a(e,t,r).l;return l.add(n),o(e,t),i(e,t),()=>{l.delete(n),s(e,t,r),o(e,t),i(e,t)}},T=(e,t,r,n)=>{let i=e[25],o=i.get(r);if(!o){o=new Set,i.set(r,o);let e=()=>i.delete(r);r.then(e,e)}o.add(n)},k=(e,t,r)=>{let n=e[25].get(r);null==n||n.forEach(e=>e())},A=new WeakMap;function P(e){let t=A.get(e);if(!t)throw Error("Store must be created by buildStore to read its building blocks");let r=t[24];return r?r(t,e):t}function j(...e){let t={get:e=>n(r,t,e),set:(e,...n)=>i(r,t,e,...n),sub:(e,n)=>o(r,t,e,n)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},u,c,d,f,h,p,m,y,v,b,w,_,x,E,C,O,S,void 0,new WeakMap,T,k,[0]].map((t,r)=>e[r]||t);A.set(t,Object.freeze(r));let n=r[21],i=r[22],o=r[23];return t}},12508:function(e,t,r){"use strict";r.d(t,{d:function(){return d},f:function(){return c}});
279var n=r(67294),i=r(46978),o=r(13114),a=r(62922),s=r(78405),l=r(84629);let u=(0,n.createContext)(null);function c(){let[e,t]=(0,n.useState)([]);return[e.length>0?e.join(" "):void 0,(0,n.useMemo)(()=>function(e){let r=(0,i.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),o=(0,n.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return n.createElement(u.Provider,{value:o},e.children)},[t])]}let d=Object.assign((0,l.yV)(function(e,t){let r=(0,o.M)(),{id:i="headlessui-description-".concat(r),...c}=e,d=function e(){let t=(0,n.useContext)(u);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),f=(0,s.T)(t);(0,a.e)(()=>d.register(i),[i,d.register]);let h={ref:f,...d.props,id:i};return(0,l.sY)({ourProps:h,theirProps:c,slot:d.slot||{},defaultTag:"p",name:d.name||"Description"})}),{})},72118:function(e,t,r){"use strict";let n;r.d(t,{R:function(){return i}});var i=((n=i||{}).Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n)},20626:function(e,t,r){"use strict";r.d(t,{G:function(){return o}});var n=r(67294),i=r(87112);function o(){let[e]=(0,n.useState)(i.k);return(0,n.useEffect)(()=>()=>e.dispose(),[e]),e}},46978:function(e,t,r){"use strict";r.d(t,{z:function(){return o}});var n=r(67294),i=r(83579);let o=function(e){let t=(0,i.E)(e);return n.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current(...r)},[t])}},13114:function(e,t,r){"use strict";r.d(t,{M:function(){return l}});var n,i=r(67294),o=r(51128),a=r(62922),s=r(65045);let l=null!=(n=i.useId)?n:function(){let e=(0,s.H)(),[t,r]=i.useState(e?()=>o.O.nextId():null);return(0,a.e)(()=>{null===t&&r(o.O.nextId())},[t]),null!=t?""+t:void 0}},31175:function(e,t,r){"use strict";r.d(t,{t:function(){return o}});var n=r(67294),i=r(62922);function o(){let e=(0,n.useRef)(!1);return(0,i.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},62922:function(e,t,r){"use strict";r.d(t,{e:function(){return o}});var n=r(67294),i=r(51128);let o=(e,t)=>{i.O.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},83579:function(e,t,r){"use strict";r.d(t,{E:function(){return o}});var n=r(67294),i=r(62922);function o(e){let t=(0,n.useRef)(e);return(0,i.e)(()=>{t.current=e},[e]),t}},44441:function(e,t,r){"use strict";r.d(t,{O:function(){return u}});var n=r(67294),i=r(4918),o=r(15021),a=r(83579);function s(e,t,r){let i=(0,a.E)(t);(0,n.useEffect)(()=>{function t(e){i.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)},[e,r])}var l=r(82024);function u(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=(0,n.useRef)(!1);function u(r,n){if(!a.current||r.defaultPrevented)return;let o=n(r);if(null!==o&&o.getRootNode().contains(o)&&o.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(o)||r.composed&&r.composedPath().includes(e))return}return(0,i.sP)(o,i.tJ.Loose)||-1===o.tabIndex||r.preventDefault(),t(r,o)}}(0,n.useEffect)(()=>{requestAnimationFrame(()=>{a.current=r})},[r]);let c=(0,n.useRef)(null);s("pointerdown",e=>{var t,r;a.current&&(c.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),s("mousedown",e=>{var t,r;a.current&&(c.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),s("click",e=>{(0,o.tq)()||c.current&&(u(e,()=>c.current),c.current=null)},!0),s("touchend",e=>u(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,l.s)("blur",e=>u(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},65045:function(e,t,r){"use strict";r.d(t,{H:function(){return a}});var n,i=r(67294),o=r(51128);function a(){let e;let t=(e="undefined"==typeof document,(0,(n||(n=r.t(i,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[a,s]=i.useState(o.O.isHandoffComplete);return a&&!1===o.O.isHandoffComplete&&s(!1),i.useEffect(()=>{!0!==a&&s(!0)},[a]),i.useEffect(()=>o.O.handoff(),[]),!t&&a}},78405:function(e,t,r){"use strict";r.d(t,{T:function(){return s},h:function(){return a}});var n=r(67294),i=r(46978);let o=Symbol();function a(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[o]:t})}function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let a=(0,n.useRef)(t);(0,n.useEffect)(()=>{a.current=t},[t]);let s=(0,i.z)(e=>{for(let t of a.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[o]))?void 0:s}},82024:function(e,t,r){"use strict";r.d(t,{s:function(){return o}});var n=r(67294),i=r(83579);function o(e,t,r){let o=(0,i.E)(t);(0,n.useEffect)(()=>{function t(e){o.current(e)}return window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)},[e,r])}},31022:function(e,t,r){"use strict";let n;r.d(t,{A:function(){return o},_:function(){return a}});var i=r(84629),o=((n=o||{})[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n);let a=(0,i.yV)(function(e,t){var r;let{features:n=1,...o}=e,a={ref:t,"aria-hidden":(2&n)==2||(null!=(r=o["aria-hidden"])?r:void 0),hidden:(4&n)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&n)==4&&(2&n)!=2&&{display:"none"}}};return(0,i.sY)({ourProps:a,theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})})},20476:function(e,t,r){"use strict";let n;r.d(t,{ZM:function(){return a},oJ:function(){return s},up:function(){return l}});var i=r(67294);let o=(0,i.createContext)(null);o.displayName="OpenClosedContext";var a=((n=a||{})[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n);function s(){return(0,i.useContext)(o)}function l(e){let{value:t,children:r}=e;return i.createElement(o.Provider,{value:t},r)}},83596:function(e,t,r){"use strict";function n(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(null==t?void 0:t.getAttribute("disabled"))==="";return!(n&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}r.d(t,{P:function(){return n}})},87112:function(e,t,r){"use strict";r.d(t,{k:function(){return function e(){let t=[],r={addEventListener:(e,t,n,i)=>(e.addEventListener(t,n,i),r.add(()=>e.removeEventListener(t,n,i))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=requestAnimationFrame(...t);return r.add(()=>cancelAnimationFrame(i))},nextFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.requestAnimationFrame(()=>r.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=setTimeout(...t);return r.add(()=>clearTimeout(i))},microTask(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let o={current:!0};return(0,n.Y)(()=>{o.current&&t[0]()}),r.add(()=>{o.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r}}});var n=r(13463)},51128:function(e,t,r){"use strict";r.d(t,{O:function(){return s}});var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t,r)=>(i(e,"symbol"!=typeof t?t+"":t,r),r);class a{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}
279detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){o(this,"current",this.detect()),o(this,"handoffState","pending"),o(this,"currentId",0)}}let s=new a},4918:function(e,t,r){"use strict";let n,i,o,a,s;r.d(t,{C5:function(){return y},TO:function(){return d},fE:function(){return f},jA:function(){return b},sP:function(){return m},tJ:function(){return p},z2:function(){return v}});var l=r(28277),u=r(14371);let c=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var d=((n=d||{})[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n),f=((i=f||{})[i.Error=0]="Error",i[i.Overflow=1]="Overflow",i[i.Success=2]="Success",i[i.Underflow=3]="Underflow",i),h=((o=h||{})[o.Previous=-1]="Previous",o[o.Next=1]="Next",o),p=((a=p||{})[a.Strict=0]="Strict",a[a.Loose=1]="Loose",a);function m(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,u.r)(e))?void 0:t.body)&&(0,l.E)(r,{0:()=>e.matches(c),1(){let t=e;for(;null!==t;){if(t.matches(c))return!0;t=t.parentElement}return!1}})}var g=((s=g||{})[s.Keyboard=0]="Keyboard",s[s.Mouse=1]="Mouse",s);function y(e){null==e||e.focus({preventScroll:!0})}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,r)=>{let n=t(e),i=t(r);if(null===n||null===i)return 0;let o=n.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function b(e,t){var r,n,i;let{sorted:o=!0,relativeTo:a=null,skipElements:s=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?o?v(e):e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(c)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);s.length>0&&u.length>1&&(u=u.filter(e=>!s.includes(e))),a=null!=a?a:l.activeElement;let d=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(a))-1;if(4&t)return Math.max(0,u.indexOf(a))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),h=32&t?{preventScroll:!0}:{},p=0,m=u.length,g;do{if(p>=m||p+m<=0)return 0;let e=f+p;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}null==(g=u[e])||g.focus(h),p+=d}while(g!==l.activeElement);return 6&t&&null!=(i=null==(n=null==(r=g)?void 0:r.matches)?void 0:n.call(r,"textarea,input"))&&i&&g.select(),2}"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},28277:function(e,t,r){"use strict";function n(e,t){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if(e in t){let r=t[e];return"function"==typeof r?r(...i):r}let a=Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(a,n),a}r.d(t,{E:function(){return n}})},13463:function(e,t,r){"use strict";function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{Y:function(){return n}})},14371:function(e,t,r){"use strict";r.d(t,{r:function(){return i}});var n=r(51128);function i(e){return n.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},15021:function(e,t,r){"use strict";function n(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function i(){return n()||/Android/gi.test(window.navigator.userAgent)}r.d(t,{gn:function(){return n},tq:function(){return i}})},84629:function(e,t,r){"use strict";let n,i;r.d(t,{AN:function(){return l},oA:function(){return g},yV:function(){return m},sY:function(){return c},Y2:function(){return f}});var o=r(67294);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return Array.from(new Set(t.flatMap(e=>
279"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}var s=r(28277),l=((n=l||{})[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n),u=((i=u||{})[i.Unmount=0]="Unmount",i[i.Hidden=1]="Hidden",i);function c(e){let{ourProps:t,theirProps:r,slot:n,defaultTag:i,features:o,visible:a=!0,name:l,mergeRefs:u}=e;u=null!=u?u:h;let c=p(r,t);if(a)return d(c,n,i,l,u);let f=null!=o?o:0;if(2&f){let{static:e=!1,...t}=c;if(e)return d(t,n,i,l,u)}if(1&f){let{unmount:e=!0,...t}=c;return(0,s.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},n,i,l,u)})}return d(c,n,i,l,u)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,{as:s=r,children:l,refName:u="ref",...c}=y(e,["unmount","static"]),d=void 0!==e.ref?{[u]:e.ref}:{},f="function"==typeof l?l(t):l;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t));let h={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n);e&&(h["data-headlessui-state"]=r.join(" "))}if(s===o.Fragment&&Object.keys(g(c)).length>0){if(!(0,o.isValidElement)(f)||Array.isArray(f)&&f.length>1)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(n,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(c).map(e=>" - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>" - ".concat(e)).join("\n")].join("\n"));let e=f.props,t="function"==typeof(null==e?void 0:e.className)?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return a(null==e?void 0:e.className(...r),c.className)}:a(null==e?void 0:e.className,c.className);return(0,o.cloneElement)(f,Object.assign({},p(f.props,g(y(c,["ref"]))),h,d,{ref:i(f.ref,d.ref)},t?{className:t}:{}))}return(0,o.createElement)(s,Object.assign({},y(c,["ref"]),s!==o.Fragment&&d,s!==o.Fragment&&h),f)}function f(){let e=(0,o.useRef)([]),t=(0,o.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]);return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];if(!n.every(e=>null==e))return e.current=n,t}}function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every(e=>null==e)?void 0:e=>{for(let r of t)null!=r&&("function"==typeof r?r(e):r.current=e)}}function p(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return{};if(1===t.length)return t[0];let n={},i={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=i[t]||(i[t]=[]),i[t].push(e[t])):n[t]=e[t];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(i).map(e=>[e,void 0])));for(let e in i)Object.assign(n,{[e](t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];for(let r of i[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;r(t,...n)}}});return n}function m(e){var t;return Object.assign((0,o.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function g(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},5493:function(e,t,r){"use strict";r.d(t,{Z:function(){return E}});var n={};r.r(n),r.d(n,{exclude:function(){return x},extract:function(){return g},parse:function(){return y},parseUrl:function(){return b},pick:function(){return _},stringify:function(){return v},stringifyUrl:function(){return w}});let i="%[a-f0-9]{2}",o=RegExp("("+i+")|([^%]+?)","gi"),a=RegExp("("+i+")+","gi");function s(e,t){if(!("string"==typeof e&&"string"==typeof t))throw TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];let r=e.indexOf(t);return -1===r?[]:[e.slice(0,r),e.slice(r+t.length)]}let l=e=>null==e,u=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),c=Symbol("encodeFragmentIdentifier");function d(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function f(e,t){return t.encode?t.strict?u(e):encodeURIComponent(e):e}function h(e,t){return t.decode?function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){let t={"%FE%FF":"��","%FF%FE":"��"},r=a.exec(e);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{let e=function(e){try{return decodeURIComponent(e)}catch{let t=e.match(o)||[];for(let r=1;r<t.length;r++)t=(e=(function e(t,r){try{return[decodeURIComponent(t.join(""))]}catch{}if(1===t.length)return t;r=r||1;let n=t.slice(0,r),i=t.slice(r);return Array.prototype.concat.call([],e(n),e(i))})(t,r).join("")).match(o)||[];return e}}(r[0]);e!==r[0]&&(t[r[0]]=e)}r=a.exec(e)}for(let r of(t["%C2"]="�",Object.keys(t)))e=e.replace(RegExp(r,"g"),t[r]);return e}(e)}}(e):e}function p(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function g(e){let t=(e=p(e)).indexOf("?");return -1===t?"":e.slice(t+1)}function y(e,t){d((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);let r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),!t){n[e]=r;return}void 0===n[e]&&(n[e]={}),n[e][t[1]]=r};case"bracket":return(e,r,n)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[...n[e],r]};case"colon-list-separator":return(e,r,n)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[...n[e],r]};case"comma":case"separator":return(t,r,n)=>{let i="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!i&&h(r,e).includes(e.arrayFormatSeparator);r=o?h(r,e):r;let a=i||o?r.split(e.arrayFormatSeparator).map(t=>h(t,e)):null===r?r:h(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{let i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!i){n[t]=r?h(r,e):r;return}let o=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>h(t,e));if(void 0===n[t]){n[t]=o;return}n[t]=[...n[t],...o]};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[...[r[e]].flat(),t]}}}(t),n=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return n;for(let i of e.split("&")){if(""===i)continue;let e=t.decode?i.replace(/\+/g," "):i,[o,a]=s(e,"=");void 0===o&&(o=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:h(a,t),r(h(o,t),a,n)}for(let[e,r]of Object.entries(n))if("object"==typeof r&&null!==r)for(let[e,n]of Object.entries(r))r[e]=m(n,t);else n[e]=m(r,t);return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>
279{let r=n[t];return e[t]=r&&"object"==typeof r&&!Array.isArray(r)?function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):r,e},Object.create(null))}function v(e,t){if(!e)return"";d((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);let r=r=>t.skipNull&&l(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[f(t,e),"[",i,"]"].join("")]:[...r,[f(t,e),"[",f(i,e),"]=",f(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[f(t,e),"[]"].join("")]:[...r,[f(t,e),"[]=",f(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[f(t,e),":list="].join("")]:[...r,[f(t,e),":list=",f(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length)?[[f(r,e),t,f(i,e)].join("")]:[[n,f(i,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,f(t,e)]:[...r,[f(t,e),"=",f(n,e)].join("")]}}(t),i={};for(let[t,n]of Object.entries(e))r(t)||(i[t]=n);let o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(r=>{let i=e[r];return void 0===i?"":null===i?f(r,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?f(r,t)+"[]":i.reduce(n(r),[]).join("&"):f(r,t)+"="+f(i,t)}).filter(e=>e.length>0).join("&")}function b(e,t){t={decode:!0,...t};let[r,n]=s(e,"#");return void 0===r&&(r=e),{url:r?.split("?")?.[0]??"",query:y(g(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:h(n,t)}:{}}}function w(e,t){t={encode:!0,strict:!0,[c]:!0,...t};let r=p(e.url).split("?")[0]||"",n=v({...y(g(e.url),{sort:!1}),...e.query},t);n&&(n=`?${n}`);let i=function(e){let t="",r=e.indexOf("#");return -1!==r&&(t=e.slice(r)),t}(e.url);if(e.fragmentIdentifier){let n=new URL(r);n.hash=e.fragmentIdentifier,i=t[c]?n.hash:`#${e.fragmentIdentifier}`}return`${r}${n}${i}`}function _(e,t,r){let{url:n,query:i,fragmentIdentifier:o}=b(e,r={parseFragmentIdentifier:!0,[c]:!1,...r});return w({url:n,query:function(e,t){let r={};if(Array.isArray(t))for(let n of t){let t=Object.getOwnPropertyDescriptor(e,n);t?.enumerable&&Object.defineProperty(r,n,t)}else for(let n of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,n);if(i.enumerable){let o=e[n];t(n,o,e)&&Object.defineProperty(r,n,i)}}return r}(i,t),fragmentIdentifier:o},r)}function x(e,t,r){return _(e,Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r),r)}var E=n},79402:function(e,t,r){"use strict";r.d(t,{Z:function(){return e3}});let n=(e,t,r)=>
279{let[n,i]=e.split("/"),[o,a]=i.split(":");return Date.UTC(r,n-1,o,a)-36e5*t},i=(e,t,r,i,o)=>{let a=new Date(e).getUTCFullYear(),s=n(t,o,a),l=n(r,i,a);return e>=s&&e<l};var o={"9|s":"2/dili,2/jayapura","9|n":"2/chita,2/khandyga,2/pyongyang,2/seoul,2/tokyo,2/yakutsk,11/palau,japan,rok","9.5|s|04/05:03->10/04:02":"4/adelaide,4/broken_hill,4/south,4/yancowinna","9.5|s":"4/darwin,4/north","8|s|03/13:01->10/02:00":"12/casey","8|s":"2/kuala_lumpur,2/makassar,2/singapore,4/perth,2/ujung_pandang,4/west,singapore","8|n":"2/brunei,2/hong_kong,2/irkutsk,2/kuching,2/macau,2/manila,2/shanghai,2/taipei,2/ulaanbaatar,2/chongqing,2/chungking,2/harbin,2/macao,2/ulan_bator,2/choibalsan,hongkong,prc,roc","8.75|s":"4/eucla","7|s":"12/davis,2/jakarta,9/christmas","7|n":"2/bangkok,2/barnaul,2/hovd,2/krasnoyarsk,2/novokuznetsk,2/novosibirsk,2/phnom_penh,2/pontianak,2/ho_chi_minh,2/tomsk,2/vientiane,2/saigon","6|s":"12/vostok","6|n":"2/bishkek,2/dhaka,2/omsk,2/thimphu,2/urumqi,9/chagos,2/dacca,2/kashgar,2/thimbu","6.5|n":"2/yangon,9/cocos,2/rangoon","5|s":"12/mawson,9/kerguelen","5|n":"2/almaty,2/aqtau,2/aqtobe,2/ashgabat,2/atyrau,2/dushanbe,2/karachi,2/oral,2/qyzylorda,2/qostanay,2/samarkand,2/tashkent,2/yekaterinburg,9/maldives,2/ashkhabad","5.75|n":"2/kathmandu,2/katmandu","5.5|n":"2/kolkata,2/colombo,2/calcutta","4|s":"9/reunion","4|n":"2/baku,2/dubai,2/muscat,2/tbilisi,2/yerevan,8/astrakhan,8/samara,8/saratov,8/ulyanovsk,8/volgograd,9/mahe,9/mauritius,2/volgograd","4.5|n":"2/kabul","3|s":"12/syowa,9/antananarivo","3|n|04/24:00->10/29:24":"0/cairo,egypt","3|n|03/29:03->10/25:04":"2/famagusta,2/nicosia,8/athens,8/bucharest,8/chisinau,8/helsinki,8/kyiv,8/mariehamn,8/riga,8/sofia,8/tallinn,8/uzhgorod,8/vilnius,8/zaporozhye,8/nicosia,8/tiraspol,8/kiev,eet","3|n|03/29:00->10/24:24":"2/beirut","3|n|03/28:02->10/24:02":"2/gaza,2/hebron","3|n|03/27:02->10/25:02":"2/jerusalem,2/tel_aviv,israel","3|n":"0/addis_ababa,0/asmara,0/asmera,0/dar_es_salaam,0/djibouti,0/juba,0/kampala,0/mogadishu,0/nairobi,2/aden,2/amman,2/baghdad,2/bahrain,2/damascus,2/kuwait,2/qatar,2/riyadh,8/istanbul,8/kirov,8/minsk,8/moscow,8/simferopol,9/comoro,9/mayotte,2/istanbul,turkey,w-su","3.5|n":"2/tehran,iran","2|s|03/29:02->10/25:02":"12/troll","2|s":"0/gaborone,0/harare,0/johannesburg,0/lubumbashi,0/lusaka,0/maputo,0/maseru,0/mbabane","2|n|03/29:02->10/25:03":"0/ceuta,arctic/longyearbyen,8/amsterdam,8/andorra,8/belgrade,8/berlin,8/bratislava,8/brussels,8/budapest,8/busingen,8/copenhagen,8/gibraltar,8/ljubljana,8/luxembourg,8/madrid,8/malta,8/monaco,8/oslo,8/paris,8/podgorica,8/prague,8/rome,8/san_marino,8/sarajevo,8/skopje,8/stockholm,8/tirane,8/vaduz,8/vatican,8/vienna,8/warsaw,8/zagreb,8/zurich,3/jan_mayen,poland,cet,met","2|n":"0/blantyre,0/bujumbura,0/khartoum,0/kigali,0/tripoli,8/kaliningrad,libya","1|s":"0/brazzaville,0/kinshasa,0/luanda,0/windhoek","1|n|03/29:01->10/25:02":"3/canary,3/faroe,3/madeira,8/dublin,8/guernsey,8/isle_of_man,8/jersey,8/lisbon,8/london,3/faeroe,eire,8/belfast,gb-eire,gb,portugal,wet","1|n":"0/algiers,0/bangui,0/douala,0/lagos,0/libreville,0/malabo,0/ndjamena,0/niamey,0/porto-novo,0/tunis","14|n":"11/kiritimati","13|s":"11/apia,11/tongatapu","13|n":"11/enderbury,11/kanton,11/fakaofo","12|s|04/05:03->09/27:02":"12/mcmurdo,11/auckland,12/south_pole,nz","12|s":"11/fiji","12|n":"2/anadyr,2/kamchatka,2/srednekolymsk,11/funafuti,11/kwajalein,11/majuro,11/nauru,11/tarawa,11/wake,11/wallis,kwajalein","12.75|s|04/05:03->04/05:02":"11/chatham,nz-chat","11|s|04/05:03->10/04:02":"12/macquarie","11|s":"11/bougainville","11|n":"2/magadan,2/sakhalin,11/efate,11/guadalcanal,11/kosrae,11/noumea,11/pohnpei,11/ponape","11.5|n|04/05:03->10/04:02":"11/norfolk","10|s|04/05:03->10/04:02":"4/currie,4/hobart,4/melbourne,4/sydney,4/act,4/canberra,4/nsw,4/tasmania,4/victoria","10|s":"12/dumontdurville,4/brisbane,4/lindeman,11/port_moresby,4/queensland","10|n":"2/ust-nera,2/vladivostok,11/guam,11/saipan,11/chuuk,11/truk,11/yap","10.5|s|04/05:01->10/04:02":"4/lord_howe,4/lhi","0|s|02/15:03->03/22:02":"0/casablanca,0/el_aaiun","0|n|03/29:00->10/25:01":"3/azores","0|n|03/29:00->10/24:24":"1/scoresbysund","0|n":"0/abidjan,0/accra,0/bamako,0/banjul,0/bissau,0/conakry,0/dakar,0/freetown,0/lome,0/monrovia,0/nouakchott,0/ouagadougou,0/sao_tome,1/danmarkshavn,3/reykjavik,3/st_helena,13/gmt,13/utc,0/timbuktu,13/greenwich,13/uct,13/universal,13/zulu,gmt-0,gmt+0,gmt0,greenwich,iceland,uct,universal,utc,zulu,13/unknown,factory","-9|n|03/08:02->11/01:02":"1/adak,1/atka,us/aleutian","-9|n":"11/gambier","-9.5|n":"11/marquesas","-8|n|03/08:02->
27911/01:02":"1/anchorage,1/juneau,1/metlakatla,1/nome,1/sitka,1/yakutat,us/alaska","-8|n":"11/pitcairn","-7|n|03/08:02->11/01:03":"1/vancouver,6/pacific","-7|n|03/08:02->11/01:02":"1/los_angeles,1/santa_isabel,1/tijuana,1/ensenada,10/bajanorte,us/pacific-new,us/pacific","-7|n":"1/creston,1/dawson,1/dawson_creek,1/fort_nelson,1/hermosillo,1/mazatlan,1/phoenix,1/whitehorse,6/yukon,10/bajasur,us/arizona,mst","-6|s|04/04:22->09/05:22":"11/easter,7/easterisland","-6|n|04/07:02->10/27:02":"1/merida","-6|n|03/08:02->11/01:02":"1/boise,1/cambridge_bay,1/denver,1/edmonton,1/inuvik,1/north_dakota,1/ojinaga,1/ciudad_juarez,1/yellowknife,1/shiprock,6/mountain,navajo,us/mountain","-6|n":"1/bahia_banderas,1/belize,1/chihuahua,1/costa_rica,1/el_salvador,1/guatemala,1/managua,1/mexico_city,1/monterrey,1/regina,1/swift_current,1/tegucigalpa,11/galapagos,6/east-saskatchewan,6/saskatchewan,10/general","-5|s":"1/lima,1/rio_branco,1/porto_acre,5/acre","-5|n|03/08:02->11/01:02":"1/chicago,1/matamoros,1/menominee,1/rainy_river,1/rankin_inlet,1/resolute,1/winnipeg,1/indiana/knox,1/indiana/tell_city,1/north_dakota/beulah,1/north_dakota/center,1/north_dakota/new_salem,1/knox_in,6/central,us/central,us/indiana-starke","-5|n":"1/bogota,1/cancun,1/cayman,1/coral_harbour,1/eirunepe,1/guayaquil,1/jamaica,1/panama,1/atikokan,jamaica,est","-4|s|04/04:24->09/06:00":"1/santiago,7/continental","-4|s|03/22:24->10/05:00":"1/asuncion","-4|s":"1/campo_grande,1/cuiaba,1/la_paz,1/manaus,5/west","-4|n|03/08:02->11/01:02":"1/detroit,1/grand_turk,1/indiana,1/indianapolis,1/iqaluit,1/kentucky,1/louisville,1/montreal,1/nassau,1/new_york,1/nipigon,1/pangnirtung,1/port-au-prince,1/thunder_bay,1/toronto,1/indiana/marengo,1/indiana/petersburg,1/indiana/vevay,1/indiana/vincennes,1/indiana/winamac,1/kentucky/monticello,1/fort_wayne,1/indiana/indianapolis,1/kentucky/louisville,6/eastern,us/east-indiana,us/eastern,us/michigan","-4|n|03/08:00->11/01:01":"1/havana,cuba","-4|n":"1/anguilla,1/antigua,1/aruba,1/barbados,1/blanc-sablon,1/boa_vista,1/caracas,1/curacao,1/dominica,1/grenada,1/guadeloupe,1/guyana,1/kralendijk,1/lower_princes,1/marigot,1/martinique,1/montserrat,1/port_of_spain,1/porto_velho,1/puerto_rico,1/santo_domingo,1/st_barthelemy,1/st_kitts,1/st_lucia,1/st_thomas,1/st_vincent,1/tortola,1/virgin","-3|s":"1/argentina,1/buenos_aires,1/catamarca,1/cordoba,1/coyhaique,1/fortaleza,1/jujuy,1/mendoza,1/montevideo,1/punta_arenas,1/sao_paulo,12/palmer,12/rothera,3/stanley,1/argentina/la_rioja,1/argentina/rio_gallegos,1/argentina/salta,1/argentina/san_juan,1/argentina/san_luis,1/argentina/tucuman,1/argentina/ushuaia,1/argentina/comodrivadavia,1/argentina/buenos_aires,1/argentina/catamarca,1/argentina/cordoba,1/argentina/jujuy,1/argentina/mendoza,1/argentina/rosario,1/rosario,5/east","-3|n|03/08:02->11/01:02":"1/glace_bay,1/goose_bay,1/halifax,1/moncton,1/thule,3/bermuda,6/atlantic","-3|n":"1/araguaina,1/bahia,1/belem,1/cayenne,1/maceio,1/paramaribo,1/recife,1/santarem","-2|n|03/08:02->11/01:02":"1/miquelon","-2|n":"1/noronha,3/south_georgia,5/denoronha","-2.5|n|03/08:02->11/01:02":"1/st_johns,6/newfoundland","-1|n|03/29:00->10/24:24":"1/nuuk,1/godthab","-1|n":"3/cape_verde","-11|n":"11/midway,11/niue,11/pago_pago,11/samoa,us/samoa","-10|n":"11/honolulu,11/johnston,11/rarotonga,11/tahiti,us/hawaii,hst"},a=["africa","america","asia","atlantic","australia","brazil","canada","chile","europe","indian","mexico","pacific","antarctica","etc"];let s={};Object.keys(o).forEach(e=>{let t=e.split("|"),r={offset:Number(t[0]),hem:t[1]};t[2]&&(r.dst=t[2]),o[e].split(",").forEach(e=>{s[e=e.replace(/(^[0-9]+)\//,(e,t)=>a[t=Number(t)]+"/")]=r})}),s.utc={offset:0,hem:"n"};for(let e=-14;e<=14;e+=.5){let t=e;t>0&&(t="+"+t);let r="etc/gmt"+t;s[r]={offset:-1*e,hem:"n"},s[r="utc/gmt"+t]={offset:-1*e,hem:"n"}}let l=/(-?[0-9]+)h(rs)?/i,u=/(-?[0-9]+)/,c=/utc([\-+]?[0-9]+)/i,d=/gmt([\-+]?[0-9]+)/i,f=function(e){return(e=Number(e))>=-13&&e<=13?"etc/gmt"+(e=((e*=-1)>0?"+":"")+e):null},h=(()=>{let e=(()=>{if("undefined"==typeof Intl||void 0===Intl.DateTimeFormat)return null;let e=Intl.DateTimeFormat();if(void 0===e||void 0===e.resolvedOptions)return null;let t=e.resolvedOptions().timeZone;return t?t.toLowerCase():null})();return null===e?"utc":e})(),p=Object.keys(s).reduce((e,t)=>
279{let r=t.split("/")[1]||"";return e[r=r.replace(/_/g," ")]=t,e},{}),m=(e,t)=>{if(!e)return t.hasOwnProperty(h)||(console.warn(`Unrecognized IANA id '${h}'. Setting fallback tz to UTC.`),h="utc"),h;"string"!=typeof e&&console.error("Timezone must be a string - recieved: '",e,"'\n");let r=e.trim();if(r=r.toLowerCase(),!0===t.hasOwnProperty(r)||(r=r.replace(/ time/g,"").replace(/ (standard|daylight|summer)/g,"").replace(/\b(east|west|north|south)ern/g,"$1").replace(/\b(africa|america|australia)n/g,"$1").replace(/\beuropean/g,"europe").replace(/islands/g,"island"),!0===t.hasOwnProperty(r)))return r;if(!0===p.hasOwnProperty(r))return p[r];if(!0===/[0-9]/.test(r)){var n;let e;let t=null!==(e=(n=r).match(l))||null!==(e=n.match(c))?f(e[1]):null!==(e=n.match(d))?f(-1*Number(e[1])):null!==(e=n.match(u))?f(e[1]):null;if(t)return t}throw Error("Spacetime: Cannot find timezone named: '"+e+"'. Please enter an IANA timezone id.")};function g(e){return e%4==0&&e%100!=0||e%400==0}function y(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.valueOf())}function v(e){return"[object Object]"===Object.prototype.toString.call(e)}function b(e,t=2){return(e+="").length>=t?e:Array(t-e.length+1).join("0")+e}function w(e){let t=e%10,r=e%100;return 1===t&&11!==r?e+"st":2===t&&12!==r?e+"nd":3===t&&13!==r?e+"rd":e+"th"}function _(e){return parseInt(e=(e=String(e)).replace(/([0-9])(st|nd|rd|th)$/i,"$1"),10)}
279function x(e=""){return"day"===(e=(e=(e=(e=e.toLowerCase().trim()).replace(/ies$/,"y")).replace(/s$/,"")).replace(/-/g,""))||"days"===e?"date":"min"===e||"mins"===e?"minute":e}function E(e){return"number"==typeof e?e:y(e)?e.getTime():e.epoch||0===e.epoch?e.epoch:null}function C(e,t){return!1===v(e)?t.clone().set(e):e}function O(e,t=""){let r=Math.abs(e);return`${e>0?"+":"-"}${b(parseInt(""+r,10))}${t}${b(r%1*60)}`}let S={year:(new Date).getFullYear(),month:0,date:1},T=["year","month","date","hour","minute","second","millisecond"];var k={parseArray:(e,t,r)=>{if(0===t.length)return e;for(let n=0;n<T.length;n++){let i=t[n]||r[T[n]]||S[T[n]]||0;e=e[T[n]](i)}return e},parseObject:(e,t)=>{if(0===Object.keys(t).length)return e;(t=Object.assign({},S,t)).timezone&&(e.tz=t.timezone);for(let r=0;r<T.length;r++){let n=T[r];void 0!==t[n]&&(e=e[n](t[n]))}return e},parseNumber:function(e,t){return t>0&&t<25e8&&!1===e.silent&&(console.warn(" - Warning: You are setting the date to January 1970."),console.warn(" - did input seconds instead of milliseconds?")),e.epoch=t,e}};let A=function(e){return e.epoch=Date.now(),Object.keys(e._today||{}).forEach(t=>{"function"==typeof e[t]&&(e=e[t](e._today[t]))}),e},P={now:e=>A(e),today:e=>A(e),tonight:e=>e=(e=A(e)).hour(18),tomorrow:e=>e=(e=(e=A(e)).add(1,"day")).startOf("day"),yesterday:e=>e=(e=(e=A(e)).subtract(1,"day")).startOf("day"),christmas:e=>{let t=A(e).year();return e=e.set([t,11,25,18,0,0])},"new years":e=>{let t=A(e).year();return e=e.set([t,11,31,18,0,0])}};P["new years eve"]=P["new years"];let j={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5};j.date=j.day,j.month=25488e5,j.week=6048e5,j.year=3154e7,Object.keys(j).forEach(e=>{j[e+"s"]=j[e]});let R=(e,t,r,n,i)=>{let o=e.d[r]();if(o===t)return;let a=null===i?null:e.d[i](),s=e.epoch,l=t-o;e.epoch+=j[n]*l,"day"===n&&Math.abs(l)>28&&t<28&&(e.epoch+=j.hour),null!==i&&a!==e.d[i]()&&(e.epoch=s);let u=j[n]/2;for(;e.d[r]()<t;)e.epoch+=u;for(;e.d[r]()>t;)e.epoch-=u;null!==i&&a!==e.d[i]()&&(e.epoch=s)},M={year:{valid:e=>e>-4e3&&e<4e3,walkTo:(e,t)=>R(e,t,"getFullYear","year",null)},month:{valid:e=>e>=0&&e<=11,walkTo:(e,t)=>{let r=e.d,n=r.getMonth(),i=e.epoch,o=r.getFullYear();if(n!==t){for(e.epoch+=j.day*(28*(t-n)),o!==e.d.getFullYear()&&(e.epoch=i);e.d.getMonth()<t;)e.epoch+=j.day;for(;e.d.getMonth()>t;)e.epoch-=j.day}}},date:{valid:e=>e>0&&e<=31,walkTo:(e,t)=>R(e,t,"getDate","day","getMonth")},hour:{valid:e=>e>=0&&e<24,walkTo:(e,t)=>R(e,t,"getHours","hour","getDate")},minute:{valid:e=>e>=0&&e<60,walkTo:(e,t)=>R(e,t,"getMinutes","minute","getHours")},second:{valid:e=>e>=0&&e<60,walkTo:(e,t)=>{e.epoch=e.seconds(t).epoch}},millisecond:{valid:e=>e>=0&&e<1e3,walkTo:(e,t)=>{e.epoch=e.milliseconds(t).epoch}}},D=(e,t)=>{let r=Object.keys(M),n=e.clone();for(let i=0;i<r.length;i++){let o=r[i],a=t[o];if(void 0===a&&(a=n[o]()),"string"==typeof a&&(a=parseInt(a,10)),!M[o].valid(a))return e.epoch=null,void(!1===e.silent&&console.warn("invalid "+o+": "+a));M[o].walkTo(e,a)}},I=[31,28,31,30,31,30,31,31,30,31,30,31],L=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],N=["january","february","march","april","may","june","july","august","september","october","november","december"];function U(){return function(){let e={sep:8};for(let t=0;t<L.length;t++)e[L[t]]=t;for(let t=0;t<N.length;t++)e[N[t]]=t;return e}()}let F=(e,t)=>{if(!t)return e;t=t.trim().toLowerCase();let r=0;if(/^[+-]?[0-9]{2}:[0-9]{2}$/.test(t)&&(!0===/:00/.test(t)&&(t=t.replace(/:00/,"")),!0===/:30/.test(t)&&(t=t.replace(/:30/,".5"))),/^[+-]?[0-9]{4}$/.test(t)&&(t=t.replace(/30$/,".5")),Math.abs(r=parseFloat(t))>100&&(r/=100),0===r||"Z"===t||"z"===t)return e.tz="etc/gmt",e;(r*=-1)>=0&&(r="+"+r);let n="etc/gmt"+r;return e.timezones[n]&&(e.tz=n),e},z=(e,t="")=>{let r=(t=t.replace(/^\s+/,"").toLowerCase()).match(/([0-9]{1,2}):([0-9]{1,2}):?([0-9]{1,2})?[:.]?([0-9]{1,4})?/);if(null!==r){let[,n,i,o,a]=r;if((n=Number(n))<0||n>24||(i=Number(i),r[2].length<2||i<0||i>59))return e.startOf("day");e=(e=(e=(e=e.hour(n)).minute(i)).seconds(o||0)).millisecond(function(e=""){return(e=String(e)).length>3?e=e.substring(0,3):1===e.length?e+="00":2===e.length&&(e+="0"),Number(e)||0}(a));let s=t.match(/[0-9] ?(am|pm)\b/);return null!==s&&s[1]&&(e=e.ampm(s[1])),e}if(null!==(r=t.match(/([0-9]+) ?(am|pm)/))&&r[1]){let t=Number(r[1]);return t>
27912||t<1?e.startOf("day"):e=(e=(e=e.hour(r[1]||0)).ampm(r[2])).startOf("hour")}return e=e.startOf("day")},$=U(),B=e=>{if(!0!==I.hasOwnProperty(e.month))return!1;if(1===e.month)return!!(g(e.year)&&e.date<=29)||e.date<=28;let t=I[e.month]||0;return e.date<=t},V=(e="",t)=>{if(e=e.trim(),!0===/^'[0-9][0-9]$/.test(e)){let t=Number(e.replace(/'/,""));return t>50?1900+t:2e3+t}let r=parseInt(e,10);return!r&&t&&(r=t.year),r=r||(new Date).getFullYear()},q=function(e){return"sept"===(e=e.toLowerCase().trim())?$.sep:$[e]};var W=[].concat([{reg:/^(-?0{0,2}[0-9]{3,4})-([0-9]{1,2})-([0-9]{1,2})[T| ]([0-9.:]+)(Z|[0-9-+:]+)?(\[.*?\])?(\[.*?\])?$/i,parse:(e,t)=>{let r={year:t[1],month:parseInt(t[2],10)-1,date:t[3]};if(!1===B(r))return e.epoch=null,e;if(t[6]){let r=t[6].trim().replace(/[[\]]/g,"");r&&(e=e.timezone(r))}else F(e,t[5]);return D(e,r),e=z(e,t[4])}},{reg:/^([0-9]{4})[\-/. ]([0-9]{1,2})[\-/. ]([0-9]{1,2})( [0-9]{1,2}(:[0-9]{0,2})?(:[0-9]{0,3})? ?(am|pm)?)?$/i,parse:(e,t)=>{let r={year:t[1],month:parseInt(t[2],10)-1,date:parseInt(t[3],10)};return r.month>=12&&(r.date=parseInt(t[2],10),r.month=parseInt(t[3],10)-1),!1===B(r)?(e.epoch=null,e):(D(e,r),e=z(e,t[4]))}},{reg:/^([0-9]{4})[\-/. ]([a-z]+)[\-/. ]([0-9]{1,2})( [0-9]{1,2}(:[0-9]{0,2})?(:[0-9]{0,3})? ?(am|pm)?)?$/i,parse:(e,t)=>{let r={year:V(t[1],e._today),month:q(t[2]),date:_(t[3]||"")};return!1===B(r)?(e.epoch=null,e):(D(e,r),e=z(e,t[4]))}}],[{reg:/^([0-9]{1,2})[-/.]([0-9]{1,2})[\-/.]?([0-9]{4})?( [0-9]{1,2}:[0-9]{2}:?[0-9]{0,2} ?(am|pm|gmt))?$/i,parse:(e,t)=>{let r=parseInt(t[1],10)-1,n=parseInt(t[2],10);(e.british||r>=12)&&(n=parseInt(t[1],10),r=parseInt(t[2],10)-1);let i={date:n,month:r,year:V(t[3],e._today)||(new Date).getFullYear()};return!1===B(i)?(e.epoch=null,e):(D(e,i),e=z(e,t[4]))}},{reg:/^([a-z]+)[\-/. ]([0-9]{1,2})[\-/. ]?([0-9]{4}|'[0-9]{2})?( [0-9]{1,2}(:[0-9]{0,2})?(:[0-9]{0,3})? ?(am|pm)?)?$/i,parse:(e,t)=>{let r={year:V(t[3],e._today),month:q(t[1]),date:_(t[2]||"")};return!1===B(r)?(e.epoch=null,e):(D(e,r),e=z(e,t[4]))}},{reg:/^([a-z]+) ([0-9]{1,2})( [0-9]{4})?( ([0-9:]+( ?am| ?pm| ?gmt)?))?$/i,parse:(e,t)=>{let r={year:V(t[3],e._today),month:q(t[1]),date:_(t[2]||"")};return!1===B(r)?(e.epoch=null,e):(D(e,r),e=z(e,t[4]))}},{reg:/^([a-z]+) ([0-9]{1,2}) ([0-9]{1,2}:[0-9]{2}:?[0-9]{0,2})( \+[0-9]{4})?( [0-9]{4})?$/i,parse:(e,t)=>{let[,r,n,i,o,a]=t,s={year:V(a,e._today),month:q(r),date:_(n||"")};return!1===B(s)?(e.epoch=null,e):(D(e,s),e=z(e=F(e,o),i))}}],[{reg:/^([0-9]{1,2})[-/]([a-z]+)[\-/]?([0-9]{4})?$/i,parse:(e,t)=>{let r={year:V(t[3],e._today),month:q(t[2]),date:_(t[1]||"")};return!1===B(r)?(e.epoch=null,e):(D(e,r),e=z(e,t[4]))}},{reg:/^([0-9]{1,2})( [a-z]+)( [0-9]{4}| '[0-9]{2})? ?([0-9]{1,2}:[0-9]{2}:?[0-9]{0,2} ?(am|pm|gmt))?$/i,parse:(e,t)=>{let r={year:V(t[3],e._today),month:q(t[2]),date:_(t[1])};return r.month&&!1!==B(r)?(D(e,r),e=z(e,t[4])):(e.epoch=null,e)}},{reg:/^([0-9]{1,2})[. \-/]([a-z]+)[. \-/]([0-9]{4})?( [0-9]{1,2}(:[0-9]{0,2})?(:[0-9]{0,3})? ?(am|pm)?)?$/i,parse:(e,t)=>{let r={date:Number(t[1]),month:q(t[2]),year:Number(t[3])};return!1===B(r)?(e.epoch=null,e):(D(e,r),e=z(e=e.startOf("day"),t[4]))}}],[{reg:/^([0-9]{4})[\-/]([0-9]{2})$/,parse:(e,t)=>{let r={year:t[1],month:parseInt(t[2],10)-1,date:1};return!1===B(r)?(e.epoch=null,e):(D(e,r),e=z(e,t[4]))}},{reg:/^([a-z]+) ([0-9]{4})$/i,parse:(e,t)=>{let r={year:V(t[2],e._today),month:q(t[1]),date:e._today.date||1};return!1===B(r)?(e.epoch=null,e):(D(e,r),e=z(e,t[4]))}},{reg:/^(q[0-9])( of)?( [0-9]{4})?/i,parse:(e,t)=>{let r=t[1]||"";e=e.quarter(r);let n=t[3]||"";return n&&(n=n.trim(),e=e.year(n)),e}},{reg:/^(spring|summer|winter|fall|autumn)( of)?( [0-9]{4})?/i,parse:(e,t)=>{let r=t[1]||"";e=e.season(r);let n=t[3]||"";return n&&(n=n.trim(),e=e.year(n)),e}},{reg:/^[0-9,]+ ?b\.?c\.?$/i,parse:(e,t)=>{let r=t[0]||"";r=r.replace(/^([0-9,]+) ?b\.?c\.?$/i,"-$1");let n=new Date,i={year:parseInt(r.trim(),10),month:n.getMonth(),date:n.getDate()};return!1===B(i)?(e.epoch=null,e):(D(e,i),e=z(e))}},{reg:/^[0-9,]+ ?(a\.?d\.?|c\.?e\.?)$/i,parse:(e,t)=>{let r=t[0]||"";r=r.replace(/,/g,"");let n=new Date,i={year:parseInt(r.trim(),10),month:n.getMonth(),date:n.getDate()};return!1===B(i)?(e.epoch=null,e):(D(e,i),e=z(e))}},{reg:/^[0-9]{4}( ?a\.?d\.?)?$/i,parse:(e,t)=>{let r=e._today;r.month&&!r.date&&(r.date=1);let n=new Date,i={year:V(t[0],r),month:r.month||n.getMonth(),date:r.date||n.getDate()};return!1===B(i)?(e.epoch=null,e):(D(e,i),e=z(e))}}]);let{parseArray:H,parseObject:Y,parseNumber:Z}=k,G={year:(new Date).getFullYear(),month:0,date:1},K=(e,t)=>{var r;let n=e._today||G;if("number"==typeof t)return Z(e,t);if(e.epoch=Date.now(),e._today&&v(e._today)&&Object.keys(e._today).length>0){let t=Y(e,n);t.isValid()&&(e.epoch=t.epoch)}return null==t||""===t?e:!0===y(t)?(e.epoch=t.getTime(),e):!0==(r=t,"[object Array]"===Object.prototype.toString.call(r))?e=H(e,t,n
279):!0===v(t)?t.epoch?(e.epoch=t.epoch,e.tz=t.tz,e):e=Y(e,Object.assign({},n,t)):"string"!=typeof t?e:(t=t.replace(/\b(mon|tues?|wed|wednes|thur?s?|fri|sat|satur|sun)(day)?\b/i,"").replace(/([0-9])(th|rd|st|nd)/,"$1").replace(/,/g,"").replace(/ +/g," ").trim(),!0===P.hasOwnProperty(t)?e=P[t](e):function(e,t,r){for(let r=0;r<W.length;r++){let n=t.match(W[r].reg);if(n){let t=W[r].parse(e,n,void 0);if(null!==t&&t.isValid())return t}}return!1===e.silent&&console.warn("Warning: couldn't parse date-string: '"+t+"'"),e.epoch=null,e}(e,t))},X=["sun","mon","tue","wed","thu","fri","sat"],J=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],Q={mo:1,tu:2,we:3,th:4,fr:5,sa:6,su:7,tues:2,weds:3,wedn:3,thur:4,thurs:4},ee=!0,et=e=>{let t=e.timezone().current.offset;return t?O(t,":"):"Z"},er=e=>ee?e?e[0].toUpperCase()+e.substr(1):"":e,en={day:e=>er(e.dayName()),"day-short":e=>er(X[e.day()]),"day-number":e=>e.day(),"day-ordinal":e=>w(e.day()),"day-pad":e=>b(e.day()),date:e=>e.date(),"date-ordinal":e=>w(e.date()),"date-pad":e=>b(e.date()),month:e=>er(e.monthName()),"month-short":e=>er(L[e.month()]),"month-number":e=>e.month(),"month-ordinal":e=>w(e.month()),"month-pad":e=>b(e.month()),"iso-month":e=>b(e.month()+1),year:e=>{let t=e.year();return t>0?t:(t=Math.abs(t))+" BC"},"year-short":e=>{let t=e.year();return t>0?`'${String(e.year()).substr(2,4)}`:(t=Math.abs(t))+" BC"},"iso-year":e=>{let t=e.year(),r=t<0,n=b(Math.abs(t),4);return r&&(n="-"+(n=b(n,6))),n},time:e=>e.time(),"time-24":e=>`${e.hour24()}:${b(e.minute())}`,hour:e=>e.hour12(),"hour-pad":e=>b(e.hour12()),"hour-24":e=>e.hour24(),"hour-24-pad":e=>b(e.hour24()),minute:e=>e.minute(),"minute-pad":e=>b(e.minute()),second:e=>e.second(),"second-pad":e=>b(e.second()),millisecond:e=>e.millisecond(),"millisecond-pad":e=>b(e.millisecond(),3),ampm:e=>e.ampm(),AMPM:e=>e.ampm().toUpperCase(),quarter:e=>"Q"+e.quarter(),season:e=>e.season(),era:e=>e.era(),json:e=>e.json(),timezone:e=>e.timezone().name,offset:e=>et(e),numeric:e=>`${e.year()}/${b(e.month()+1)}/${b(e.date())}`,"numeric-us":e=>`${b(e.month()+1)}/${b(e.date())}/${e.year()}`,"numeric-uk":e=>`${b(e.date())}/${b(e.month()+1)}/${e.year()}`,"mm/dd":e=>`${b(e.month()+1)}/${b(e.date())}`,iso:e=>`${e.format("iso-year")}-${b(e.month()+1)}-${b(e.date())}T${b(e.h24())}:${b(e.minute())}:${b(e.second())}.${b(e.millisecond(),3)}${et(e)}`,"iso-short":e=>{var t;let r=b(e.month()+1),n=b(e.date());return`${(t=e.year())>=0?b(t,4):"-"+b(t=Math.abs(t),4)}-${r}-${n}`},"iso-utc":e=>new Date(e.epoch).toISOString(),"iso-full":e=>{let t=e.format("iso"),r=e.timezone().name;return r&&(t+=`[${r}]`),t},sql:e=>`${e.format("iso-year")}-${b(e.month()+1)}-${b(e.date())} ${b(e.h24())}:${b(e.minute())}:${b(e.second())}`,nice:e=>`${L[e.month()]} ${w(e.date())}, ${e.time()}`,"nice-24":e=>`${L[e.month()]} ${w(e.date())}, ${e.hour24()}:${b(e.minute())}`,"nice-year":e=>`${L[e.month()]} ${w(e.date())}, ${e.year()}`,"nice-day":e=>`${X[e.day()]} ${er(L[e.month()])} ${w(e.date())}`,"nice-full":e=>`${e.dayName()} ${er(e.monthName())} ${w(e.date())}, ${e.time()}`,"nice-full-24":e=>`${e.dayName()} ${er(e.monthName())} ${w(e.date())}, ${e.hour24()}:${b(e.minute())}`},ei={"day-name":"day","month-name":"month","iso 8601":"iso","iso 9075":"sql","time-h24":"time-24","time-12":"time","time-h12":"time",tz:"timezone",iana:"timezone","day-num":"day-number","month-num":"month-number","month-iso":"iso-month","year-iso":"iso-year","nice-short":"nice","nice-short-24":"nice-24",mdy:"numeric-us",dmy:"numeric-uk",ymd:"numeric","yyyy/mm/dd":"numeric","mm/dd/yyyy":"numeric-us","dd/mm/yyyy":"numeric-us","little-endian":"numeric-uk","big-endian":"numeric","day-nice":"nice-day"};Object.keys(ei).forEach(e=>en[e]=en[ei[e]]);let eo=(e,t="")=>{if(!0!==e.isValid())return"";if(en.hasOwnProperty(t)){let r=en[t](e)||"";return"json"!==t&&(r=String(r),"ampm"!==t.toLowerCase()&&(r=er(r))),r}return -1!==t.indexOf("{")?t=t.replace(/\{(.+?)\}/g,(t,r)=>{if("AMPM"!==(r=r.trim())&&(r=r.toLowerCase()),en.hasOwnProperty(r)){let t=String(en[r](e));return"ampm"!==r.toLowerCase()?er(t):t}return""}):e.format("iso-short")},ea={G:e=>e.era(),GG:e=>e.era(),GGG:e=>e.era(),GGGG:e=>"AD"===e.era()?"Anno Domini":"Before Christ",y:e=>e.year(),yy:e=>b(Number(String(e.year()).substr(2,4))),yyy:e=>e.year(),yyyy:e=>e.year(),yyyyy:e=>"0"+e.year(),Q:e=>e.quarter(),QQ:e=>e.quarter(),QQQ:e=>e.quarter(),QQQQ:e=>e.quarter(),M:e=>e.month()+1,MM:e=>b(e.month()+1),MMM:e=>e.format("month-short"),MMMM:e=>e.format("month"),w:e=>e.week(),ww:e=>b(e.week()),d:e=>e.date(),dd:e=>b(e.date()),D:e=>e.dayOfYear(),DD:e=>b(e.dayOfYear()),DDD:e=>b(e.dayOfYear(),3),E:e=>e.format("day-short"),EE:e=>e.format("day-short"),EEE:e=>e.format("day-short"),EEEE:e=>e.format("day"),EEEEE:e=>e.format("day")[0],e:e=>e.day(),ee:e=>e.day(),eee:e=>e.format("day-short"),eeee:e=>e.format("day"),eeeee:e=>e.format("day")[0],a:e=>e.ampm().toUpperCase(),aa:e=>e.ampm().toUpperCase(),aaa:e=>e.ampm().toUpperCase(),aaaa:e=>e.ampm().toUpperCase(),h:e=>e.h12(),hh:e=>b(e.h12()),H:e=>e.hour(),HH:e=>b(e.hour()),m:e=>e.minute(),mm:e=>b(e.minute()),s:e=>e.second(),ss:e=>b(e.second()),SSS:e=>b(e.millisecond(),3),A:e=>e.epoch-e.startOf("day").epoch,z:e=>
279e.timezone().name,zz:e=>e.timezone().name,zzz:e=>e.timezone().name,zzzz:e=>e.timezone().name,Z:e=>O(e.timezone().current.offset),ZZ:e=>O(e.timezone().current.offset),ZZZ:e=>O(e.timezone().current.offset),ZZZZ:e=>O(e.timezone().current.offset,":")},es=(e,t,r)=>{let n=e,i=t;for(let o=0;o<r;o+=1)ea[n]=ea[i],n+=e,i+=t};es("q","Q",4),es("L","M",4),es("Y","y",4),es("c","e",4),es("k","H",2),es("K","h",2),es("S","s",2),es("v","z",4),es("V","Z",4);let el=["year","season","quarter","month","week","day","quarterHour","hour","minute"],eu=function(e,t){let r=e.clone().startOf(t),n=e.clone().endOf(t).epoch-r.epoch;return parseFloat(((e.epoch-r.epoch)/n).toFixed(2))},ec=(e,t,r)=>{let n=0;for(e=e.clone();e.isBefore(t);)e=e.add(1,r),n+=1;return e.isAfter(t,r)&&(n-=1),n},ed=(e,t,r)=>e.isBefore(t)?ec(e,t,r):-1*ec(t,e,r),ef=function(e,t,r){var n;t=C(t,e);let i=!1;if(e.isAfter(t)){let r=e;e=t,t=r,i=!0}let o=function(e,t){var r;let n;let i=t.epoch-e.epoch,o={milliseconds:i,seconds:parseInt(i/1e3,10)};o.minutes=parseInt(o.seconds/60,10),o.hours=parseInt(o.minutes/60,10);let a=e.clone();return o.years=(r=a,n=t.year()-r.year(),(r=r.year(t.year())).isAfter(t)&&(n-=1),n),a=e.add(o.years,"year"),o.months=12*o.years,a=e.add(o.months,"month"),o.months+=ed(a,t,"month"),o.quarters=4*o.years,o.quarters+=parseInt(o.months%12/3,10),o.weeks=52*o.years,a=e.add(o.weeks,"week"),o.weeks+=ed(a,t,"week"),o.days=7*o.weeks,a=e.add(o.days,"day"),o.days+=ed(a,t,"day"),o}(e,t);return i&&(Object.keys(n=o).forEach(e=>{n[e]*=-1}),o=n),r?(r=x(r),!0!==/s$/.test(r)&&(r+="s"),"dates"===r&&(r="days"),o[r]):o},eh=e=>Math.abs(e)||0,ep={second:"second",seconds:"seconds",minute:"minute",minutes:"minutes",hour:"hour",hours:"hours",day:"day",days:"days",month:"month",months:"months",year:"year",years:"years"},em="past",eg="future",ey="present",ev="now",eb="almost",ew="over",e_=e=>`${e} ago`,ex=e=>`in ${e}`,eE={months:{almost:10,over:4},days:{almost:25,over:10},hours:{almost:20,over:8},minutes:{almost:50,over:20},seconds:{almost:50,over:20}};function eC(e,t){return 1===e?e+" "+(ep[t.slice(0,-1)]||""):e+" "+(ep[t]||"")}let eO=function(e){let t=null,r=null,n=[],i=[];return Object.keys(e).forEach((o,a,s)=>{let l=Math.abs(e[o]);if(0===l)return;n.push(l+o[0]);let u=eC(l,o);if(i.push(u),!t){if(t=u,r=u,a>4)return;let n=s[a+1],i=Math.abs(e[n]);i>eE[n].almost?(t=eC(l+1,o),r=eb+" "+t):i>eE[n].over&&(r=ew+" "+u)}}),{qualified:r,rounded:t,abbreviated:n,englishValues:i}},eS=(e,t)=>{let r=function(e,t){let r=e.isBefore(t),n=r?t:e,i=r?e:t;i=i.clone();let o={years:0,months:0,days:0,hours:0,minutes:0,seconds:0};return Object.keys(o).forEach(e=>{if(i.isSame(n,e))return;let t=i.diff(n,e);i=i.add(t,e),o[e]=t}),r&&Object.keys(o).forEach(e=>{0!==o[e]&&(o[e]*=-1)}),o}(e,t=C(t,e));if(!0===Object.keys(r).every(e=>!r[e]))return{diff:r,rounded:ev,qualified:ev,precise:ev,abbreviated:[],iso:"P0Y0M0DT0H0M0S",direction:ey};let n,i=eg,{rounded:o,qualified:a}=eO(r),{englishValues:s,abbreviated:l}=eO(r);n=s.splice(0,2).join(", "),!0===e.isAfter(t)?(o=e_(o),a=e_(a),n=e_(n),i=em):(o=ex(o),a=ex(a),n=ex(n));let u="P"+(eh(r.years)+"Y"+eh(r.months)+"M"+eh(r.days)+"DT"+eh(r.hours)+"H"+eh(r.minutes)+"M")+eh(r.seconds)+"S";return{diff:r,rounded:o,qualified:a,precise:n,abbreviated:l,iso:u,direction:i}};var eT={north:[["spring",2,1],["summer",5,1],["fall",8,1],["autumn",8,1],["winter",11,1]],south:[["fall",2,1],["autumn",2,1],["winter",5,1],["spring",8,1],["summer",11,1]]},ek=[null,[0,1],[3,1],[6,1],[9,1]];let eA={second:e=>(D(e,{millisecond:0}),e),minute:e=>(D(e,{second:0,millisecond:0}),e),quarterhour:e=>{let t=e.minutes();return D(e=t>=45?e.minutes(45):t>=30?e.minutes(30):t>=15?e.minutes(15):e.minutes(0),{second:0,millisecond:0}),e},hour:e=>(D(e,{minute:0,second:0,millisecond:0}),e),day:e=>(D(e,{hour:0,minute:0,second:0,millisecond:0}),e),week:e=>{let t=e.clone();return(e=e.day(e._weekStart)).isAfter(t)&&(e=e.subtract(1,"week")),D(e,{hour:0,minute:0,second:0,millisecond:0}),e},month:e=>(D(e,{date:1,hour:0,minute:0,second:0,millisecond:0}),e),quarter:e=>{let t=e.quarter();return ek[t]&&D(e,{month:ek[t][0],date:ek[t][1],hour:0,minute:0,second:0,millisecond:0}),e},season:e=>{let t=e.season(),r="north";"South"===e.hemisphere()&&(r="south");for(let n=0;n<eT[r].length;n++)if(eT[r][n][0]===t){let i=e.year();return"winter"===t&&3>e.month()&&(i-=1),D(e,{year:i,month:eT[r][n][1],date:eT[r][n][2],hour:0,minute:0,second:0,millisecond:0}),e}return e},year:e=>(D(e,{month:0,date:1,hour:0,minute:0,second:0,millisecond:0}),e),decade:e=>{let t=10*parseInt((e=e.startOf("year")).year()/10,10);return e=e.year(t)},century:e=>{let t=100*parseInt((e=e.startOf("year")).year()/100,10);return e=e.year(t)}};eA.date=eA.day;let eP=function(e,t,r,n=1){var i;if(!t||!r)return[];if(t=x(t),r=e.clone().set(r),e.isAfter(r)){let t=e;e=r,r=t}if(e.diff(r,t)<n)return[];let o=e.clone();(i=t,X.find(e=>e===i)||J.find(e=>e===i))?(o=o.next(t),t="week"):o.startOf(t).isBefore(e)&&(o=o.next(t));let a=[];for(;o.isBefore(r);)a.push(o),o=o.add(n,t);return a},ej=e=>{var t,r;let n=e.timezones,o=e.tz;if(!1===n.hasOwnProperty(o)&&(o=m(e.tz,n)),null===o)return!1===e.silent&&console.warn("Warn: could not find given or local timezone - '"+e.tz+"'"),{current:{epochShift:0}};let a=n[o],s={name:("Utc"===(t=(t=(t=(t=(t=(t=(t=(t=(t=o)[0].toUpperCase()+t.substr(1)).replace(/[/_-]([a-z])/gi,e=>e.toUpperCase())).replace(/_(of|es)_/i,e=>e.toLowerCase())).replace(/\/gmt/i,"/GMT")).replace(/\/utc/i,"/UTC")).replace(/\/Dumontdurville$/i,"/DumontDUrville")).replace(/\/Mcmurdo$/i,"/McMurdo")).replace(/\/Port-au-prince$/i,"/Port-au-Prince"))&&(t="UTC"),t),hasDst:!!a.dst,default_offset:a.offset,hemisphere:"s"===a.hem?"South":"North",current:{}};if(s.hasDst){let e=(r=a.dst)?r.split("->"):[];s.change={start:e[0],back:e[1]}}let l=a.offset,u=l;return!0===s.hasDst&&(u="North"===s.hemisphere?l-1:a.offset+1),!1===s.hasDst?(s.current.offset=l,s.current.isDST=!1):!0===i(e.epoch,s.change.start,s.change.back,l,u)?(s.current.offset=l,s.current.isDST="North"===s.hemisphere):(s.current.offset=u,s.current.isDST="South"===s.hemisphere),s},eR=["century","decade","year","month","date","day","hour","minute","second","millisecond"],eM={set:function(e,t){let r=this.clone();return r=K(r,e),t&&(r.tz=m(t,r.timezones)),r},timezone:function(e){if(void 0!==e){let t=this.json();return t.timezone=e,this.set(t,e)}return ej(this)},isDST:function(){return ej(this).current.isDST},hasDST:function(){return ej(this).hasDst},offset:function(){return 60*ej(this).current.offset},hemisphere:function(){return ej(this).hemisphere},format:function(e){return eo(this,e)},unixFmt:function(e){var t;return t=this,(function(e){for(let t=0;t<e.length;t+=1){let r=e[t];
279for(let n=t+1;n<e.length&&e[n]===r;n+=1)e[t]+=e[n],e[n]=null}return(e=e.filter(e=>e)).map(e=>("''"===e&&(e="'"),e))})(function(e){for(let t=0;t<e.length;t+=1)if("'"===e[t])for(let r=t+1;r<e.length;r+=1){if(e[r]&&(e[t]+=e[r]),"'"===e[r]){e[r]=null;break}e[r]=null}return e.filter(e=>e)}(e.split(""))).reduce((e,r)=>(void 0!==ea[r]?e+=ea[r](t)||"":(/^'.+'$/.test(r)&&(r=r.replace(/'/g,"")),e+=r),e),"")},startOf:function(e){var t;let r;return t=e,r=this.clone(),eA[t=x(t)]?eA[t](r):"summer"===t||"winter"===t?(r=r.season(t),eA.season(r)):r},endOf:function(e){var t;let r;return t=e,r=this.clone(),eA[t=x(t)]?r=(r=(r=eA[t](r)).add(1,t)).subtract(1,"millisecond"):r},leapYear:function(){return g(this.year())},progress:function(e){return((e,t)=>{if(t)return eu(e,t=x(t));let r={};return el.forEach(t=>{r[t]=eu(e,t)}),r})(this,e)},nearest:function(e){return((e,t)=>{let r=e.progress();return"quarterhour"===(t=x(t))&&(t="quarterHour"),void 0!==r[t]?(r[t]>.5&&(e=e.add(1,t)),e=e.startOf(t)):!1===e.silent&&console.warn("no known unit '"+t+"'"),e})(this,e)},diff:function(e,t){return ef(this,e,t)},since:function(e){return e||(e=this.clone().set()),eS(this,e)},next:function(e){return this.add(1,e).startOf(e)},last:function(e){return this.subtract(1,e).startOf(e)},isValid:function(){return!(!this.epoch&&0!==this.epoch)&&!isNaN(this.d.getTime())},goto:function(e){let t=this.clone();return t.tz=m(e,t.timezones),t},every:function(e,t,r){if("object"==typeof e&&"string"==typeof t){let r=t;t=e,e=r}return eP(this,e,t,r)},isAwake:function(){let e=this.hour();return!(e<8||e>22)},isAsleep:function(){return!this.isAwake()},daysInMonth:function(){switch(this.month()){case 0:case 2:case 4:case 6:case 7:case 9:case 11:return 31;case 1:return this.leapYear()?29:28;case 3:case 5:case 8:case 10:return 30;default:throw Error("Invalid Month state.")}},log:function(){return console.log(""),console.log(eo(this,"nice-short")),this},logYear:function(){return console.log(""),console.log(eo(this,"full-short")),this},json:function(e){if(void 0!==e){let t=this.clone();e.timezone&&(t.tz=e.timezone);for(let r=0;r<eR.length;r++){let n=eR[r];void 0!==e[n]&&(t=t[n](e[n]))}return t}let t=eR.reduce((e,t)=>(e[t]=this[t](),e),{});return t.offset=this.timezone().current.offset,t.timezone=this.tz,t},debug:function(){let e=this.timezone(),t=this.format("MM")+" "+this.format("date-ordinal")+" "+this.year();return console.log("\n\n",(t+="\n - "+this.format("time"))+"\n - "+e.name+" ("+e.current.offset+")"),this},from:function(e){return(e=this.clone().set(e)).since(this)},fromNow:function(){return this.clone().set(Date.now()).since(this)},weekStart:function(e){if("number"==typeof e)return this._weekStart=e,this;if("string"==typeof e){e=e.toLowerCase().trim();let t=X.indexOf(e);-1===t&&(t=J.indexOf(e)),-1===t&&(t=1),this._weekStart=t}else console.warn("Spacetime Error: Cannot understand .weekStart() input:",e);return this}};eM.inDST=eM.isDST,eM.round=eM.nearest,eM.each=eM.every;let eD=e=>("string"==typeof e&&(e=parseInt(e,10)),e),eI=["year","month","date","hour","minute","second","millisecond"],eL=(e,t,r)=>{let n=eI.indexOf(r),i=eI.slice(n,eI.length);for(let r=0;r<i.length;r++){let n=t[i[r]]();e[i[r]](n)}return e},eN=function(e,t,r,n){return!0===r&&e.isBefore(t)?e=e.add(1,n):!1===r&&e.isAfter(t)&&(e=e.minus(1,n)),e},eU=function(e,t,r){t=eD(t);let n=e.clone(),i=(e.minute()-t)*j.minute;return e.epoch-=i,eL(e,n,"second"),(e=eN(e,n,r,"hour")).epoch},eF=function(e,t,r){(t=eD(t))>=24?t=24:t<0&&(t=0);let n=e.clone(),i=e.hour()-t,o=i*j.hour;return e.epoch-=o,e.date()!==n.date()&&(e=n.clone(),i>1&&(i-=1),i<1&&(i+=1),o=i*j.hour,e.epoch-=o),D(e,{hour:t}),eL(e,n,"minute"),(e=eN(e,n,r,"day")).epoch},ez=function(e,t){return"string"==typeof t&&/^'[0-9]{2}$/.test(t)&&(t=(t=Number(t=t.replace(/'/,"").trim()))>30?1900+t:2e3+t),D(e,{year:t=eD(t)}),e.epoch},e$=function(e,t,r){let n=e.clone();return 1===(t=eD(t))&&"december"===e.monthName()&&e.date()>=29&&1===e.week()?e:("december"===(e=(e=(e=e.month(0)).date(1)).day("monday",!1)).monthName()&&29>e.date()&&(e=e.add(1,"week")),t-=1,e=eN(e=e.add(t,"weeks"),n,r,"year"))},eB="am",eV="pm",eq=e=>e=(e=(e=e.minute(0)).second(0)).millisecond(1),eW=function(e){if(void 0!==e){if("string"==typeof e&&isNaN(e=Number(e=e.replace(/([0-9])(th|rd|st|nd)/,"$1"))))return console.warn("Spacetime: Invalid millennium input"),this;e>0&&(e-=1);let t=1e3*e;return 0===t&&(t=1),this.year(t)}let t=Math.floor(this.year()/1e3);return t>=0&&(t+=1),t},eH=Object.assign({},{millisecond:function(e){if(void 0!==e){let t=this.clone();return t.epoch=function(e,t){t=eD(t);let r=e.millisecond()-t;return e.epoch-r}(t,e),t}return this.d.getMilliseconds()},second:function(e,t){if(void 0!==e){let r=this.clone();return r.epoch=function(e,t,r){t=eD(t);let n=e.clone(),i=(e.second()-t)*j.second;
279return e.epoch=e.epoch-i,(e=eN(e,n,r,"minute")).epoch}(r,e,t),r}return this.d.getSeconds()},minute:function(e,t){if(void 0!==e){let r=this.clone();return r.epoch=eU(r,e,t),r}return this.d.getMinutes()},hour:function(e,t){let r=this.d;if(void 0!==e){let r=this.clone();return r.epoch=eF(r,e,t),r}return r.getHours()},hourFloat:function(e,t){if(void 0!==e){let r=this.clone(),n=e%1;n*=60;let i=parseInt(e,10);return r.epoch=eF(r,i,t),r.epoch=eU(r,n,t),r}let r=this.d,n=r.getHours(),i=r.getMinutes();return n+(i/=60)},hour12:function(e,t){let r=this.d;if(void 0!==e){let r=this.clone(),n=(e=""+e).match(/^([0-9]+)(am|pm)$/);if(n){let e=parseInt(n[1],10);"pm"===n[2]&&(e+=12),r.epoch=eF(r,e,t)}return r}let n=r.getHours();return n>12&&(n-=12),0===n&&(n=12),n},time:function(e,t){if(void 0!==e){let r=this.clone();return e=e.toLowerCase().trim(),r.epoch=function(e,t,r){let n=t.match(/([0-9]{1,2})[:h]([0-9]{1,2})(:[0-9]{1,2})? ?(am|pm)?/);if(!n){if(!(n=t.match(/([0-9]{1,2}) ?(am|pm)/)))return null;n.splice(2,0,"0"),n.splice(3,0,"")}let i=!1,o=parseInt(n[1],10),a=parseInt(n[2],10);a>=60&&(a=59),o>12&&(i=!0),!1===i&&("am"===n[4]&&12===o&&(o=0),"pm"===n[4]&&o<12&&(o+=12)),n[3]=n[3]||"",n[3]=n[3].replace(/:/,"");let s=parseInt(n[3],10)||0,l=e.clone();return(e=eN(e=(e=(e=(e=e.hour(o)).minute(a)).second(s)).millisecond(0),l,r,"day")).epoch}(r,e,t),r}return`${this.h12()}:${b(this.minute())}${this.ampm()}`},ampm:function(e,t){let r=eB,n=this.hour();if(n>=12&&(r=eV),"string"!=typeof e)return r;let i=this.clone();return e=e.toLowerCase().trim(),n>=12&&"am"===e?(n-=12,i.hour(n,t)):n<12&&"pm"===e?(n+=12,i.hour(n,t)):i},dayTime:function(e,t){if(void 0!==e){let r={morning:"7:00",breakfast:"7:00",noon:"12:00",lunch:"12:00",afternoon:"14:00",evening:"18:00",dinner:"18:00",night:"23:00",midnight:"00:00"},n=this.clone();return e=(e=e||"").toLowerCase(),!0===r.hasOwnProperty(e)&&(n=n.time(r[e],t)),n}let r=this.hour();return r<6?"night":r<12?"morning":r<17?"afternoon":r<22?"evening":"night"},iso:function(e){return void 0!==e?this.set(e):this.format("iso")},isoFull:function(e){return void 0!==e?this.set(e):this.format("iso-full")},epochSeconds:function(e){return void 0!==e?(this.epoch=1e3*e,this):Math.floor(this.epoch/1e3)}},{date:function(e,t){if(void 0!==e){let r=this.clone();return(e=parseInt(e,10))&&(r.epoch=function(e,t,r){if((t=eD(t))>28){let r=e.month(),n=I[r];1===r&&29===t&&g(e.year())&&(n=29),t>n&&(t=n)}t<=0&&(t=1);let n=e.clone();return D(e,{date:t}),(e=eN(e,n,r,"month")).epoch}(r,e,t)),r}return this.d.getDate()},day:function(e,t){if(void 0===e)return this.d.getDay();let r=this.clone(),n=e;"string"==typeof e&&(e=e.toLowerCase(),Q.hasOwnProperty(e)?n=Q[e]:-1===(n=X.indexOf(e))&&(n=J.indexOf(e)));let i=this.d.getDay()-n;!0===t&&i>0&&(i-=7),!1===t&&i<0&&(i+=7);let o=this.subtract(i,"days");return D(o,{hour:r.hour(),minute:r.minute(),second:r.second()}),o},dayName:function(e,t){return void 0===e?J[this.day()]:this.clone().day(e,t)}},{dayOfYear:function(e,t){let r;if(void 0!==e){let r=this.clone();return r.epoch=function(e,t,r){t=eD(t);let n=e.clone();return(t-=1)<=0?t=0:t>=365&&(t=g(e.year())?365:364),eL(e=(e=e.startOf("year")).add(t,"day"),n,"hour"),(e=eN(e,n,r,"year")).epoch}(r,e,t),r}let n=0,i=this.d.getMonth();for(let e=1;e<=i;e++)(r=new Date).setDate(1),r.setFullYear(this.d.getFullYear()),r.setHours(1),r.setMinutes(1),r.setMonth(e),r.setHours(-2),n+=r.getDate();return n+this.d.getDate()},week:function(e,t){if(void 0!==e){let r=this.clone();return eq(r=e$(r,e,t))}let r=this.epoch,n=this.clone();if("december"===n.monthName()&&n.date()>=29&&e$(n.add(15,"days"),1,!1).epoch<=n.epoch||("december"===(n=(n=eq(n=(n=n.month(0)).date(1))).day("monday",!1)).monthName()&&29>n.date()&&(n=n.add(1,"week")),(n=n.minus(2,"hours")).epoch>r))return 1;let i=0,o=4*this.month();for(n.epoch+=j.week*o,i+=o;i<=52;i++){if(n.epoch>r)return i;n=n.add(1,"week")}return 52},month:function(e,t){if(void 0!==e){let r=this.clone();return r.epoch=function(e,t,r){"string"==typeof t&&("sept"===t&&(t="sep"),t=U()[t.toLowerCase()]),(t=eD(t))>=12&&(t=11),t<=0&&(t=0);let n=e.date();n>I[t]&&(n=I[t]);let i=e.clone();return D(e,{month:t,d:n}),(e=eN(e,i,r,"year")).epoch}(r,e,t),r}return this.d.getMonth()},monthName:function(e,t){return void 0!==e?this.clone().month(e,t):N[this.month()]},quarter:function(e,t){if(void 0!==e&&("string"==typeof e&&(e=parseInt(e=e.replace(/^q/i,""),10)),ek[e])){let r=this.clone(),n=ek[e][0];return(r=(r=r.month(n,t)).date(1,t)).startOf("day")}let r=this.d.getMonth();for(let e=1;e<ek.length;e++)if(r<ek[e][0])return e-1;return 4},season:function(e,t){let r="north";if("South"===this.hemisphere()&&(r="south"),void 0!==e){let n=this.clone();for(let i=0;i<eT[r].length;i++)e===eT[r][i][0]&&(n=(n=(n=n.month(eT[r][i][1],t)).date(1)).startOf("day"));return n}let n=this.d.getMonth();for(let e=0;e<eT[r].length-1;e++)if(n>=eT[r][e][1]&&n<eT[r][e+1][1])return eT[r][e][0];return"north"===r?"winter":"summer"},year:function(e){if(void 0!==e){let t=this.clone();return t.epoch=ez(t,e),t}return this.d.getFullYear()},era:function(e){if(void 0!==e){let t=this.clone();e=e.toLowerCase();let r=t.d.getFullYear();return"bc"===e&&r>0&&(t.epoch=ez(t,-1*r)),"ad"===e&&r<0&&(t.epoch=ez(t,-1*r)),t}return 0>this.d.getFullYear()?"BC":"AD"}
279,decade:function(e){if(void 0!==e){if(!(e=(e=(e=String(e)).replace(/([0-9])'?s$/,"$1")).replace(/([0-9])(th|rd|st|nd)/,"$1")))return console.warn("Spacetime: Invalid decade input"),this;2===e.length&&/[0-9][0-9]/.test(e)&&(e="19"+e);let t=Number(e);return isNaN(t)?this:(t=10*Math.floor(t/10),this.year(t))}return this.startOf("decade").year()},century:function(e){if(void 0!==e){"string"==typeof e&&(e=(e=(e=e.replace(/([0-9])(th|rd|st|nd)/,"$1")).replace(/([0-9]+) ?(b\.?c\.?|a\.?d\.?)/i,(e,t,r)=>(r.match(/b\.?c\.?/i)&&(t="-"+t),t))).replace(/c$/,""));let t=Number(e);return isNaN(e)?(console.warn("Spacetime: Invalid century input"),this):(0===t&&(t=1),t=t>=0?100*(t-1):100*(t+1),this.year(t))}let t=this.startOf("century").year();return(t=Math.floor(t/100))<0?t-1:t+1},millenium:eW,millennium:eW});eH.milliseconds=eH.millisecond,eH.seconds=eH.second,eH.minutes=eH.minute,eH.hours=eH.hour,eH.hour24=eH.hour,eH.h12=eH.hour12,eH.h24=eH.hour24,eH.days=eH.day;let eY=function(e,t){return 1===e&&g(t)?29:I[e]},eZ=(e,t)=>{if(e.month>0){let r=parseInt(e.month/12,10);e.year=t.year()+r,e.month=e.month%12}else if(e.month<0){let r=Math.abs(e.month),n=parseInt(r/12,10);r%12!=0&&(n+=1),e.year=t.year()-n,e.month=e.month%12,e.month=e.month+12,12===e.month&&(e.month=0)}return e},eG=(e,t,r)=>{let n=t.year(),i=t.month(),o=eY(i,n);for(;r>o;)r-=o,(i+=1)>=12&&(i-=12,n+=1),o=eY(i,n);return e.month=i,e.date=r,e},eK=(e,t,r)=>{e.year=t.year(),e.month=t.month();let n=t.date();for(e.date=n-Math.abs(r);e.date<1;){e.month-=1,e.month<0&&(e.month=11,e.year-=1);let t=eY(e.month,e.year);e.date+=t}return e},eX=["millisecond","second","minute","hour","date","month"],eJ={second:eX.slice(0,1),minute:eX.slice(0,2),quarterhour:eX.slice(0,2),hour:eX.slice(0,3),date:eX.slice(0,4),month:eX.slice(0,4),quarter:eX.slice(0,4),season:eX.slice(0,4),year:eX,decade:eX,century:eX};eJ.week=eJ.hour,eJ.season=eJ.date,eJ.quarter=eJ.date;let eQ={year:!0,quarter:!0,season:!0,month:!0,week:!0,date:!0},e0={month:!0,quarter:!0,season:!0,year:!0},e1={millisecond:e=>e.epoch,second:e=>[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second()].join("-"),minute:e=>[e.year(),e.month(),e.date(),e.hour(),e.minute()].join("-"),hour:e=>[e.year(),e.month(),e.date(),e.hour()].join("-"),day:e=>[e.year(),e.month(),e.date()].join("-"),week:e=>[e.year(),e.week()].join("-"),month:e=>[e.year(),e.month()].join("-"),quarter:e=>[e.year(),e.quarter()].join("-"),year:e=>e.year()};e1.date=e1.day;let e2=s,e5=function(e,t,r={}){this.epoch=null,this.tz=m(t,e2),this.silent=void 0===r.silent||r.silent,this.british=r.dmy||r.british,this._weekStart=1,void 0!==r.weekStart&&(this._weekStart=r.weekStart),this._today={},void 0!==r.today&&(this._today=r.today),Object.defineProperty(this,"d",{get:function(){let e=(e=>{let t=e.timezones[e.tz];if(void 0===t)return console.warn("Warning: couldn't find timezone "+e.tz),0;if(void 0===t.dst)return t.offset;let r=t.offset,n=t.offset+1;"n"===t.hem&&(n=r-1);let o=t.dst.split("->");return!0===i(e.epoch,o[0],o[1],r,n)?r:n})(this),t=(new Date(this.epoch).getTimezoneOffset()||0)+60*e;return t=60*t*1e3,new Date(this.epoch+t)}}),Object.defineProperty(this,"timezones",{get:()=>e2,set:e=>(e2=e,e)});let n=K(this,e);this.epoch=n.epoch,n.tz&&(this.tz=n.tz)};
279Object.keys(eM).forEach(e=>{e5.prototype[e]=eM[e]}),e5.prototype.clone=function(){return new e5(this.epoch,this.tz,{silent:this.silent,weekStart:this._weekStart,today:this._today,parsers:this.parsers})},e5.prototype.toLocalDate=function(){return this.toNativeDate()},e5.prototype.toNativeDate=function(){return new Date(this.epoch)},Object.keys(eH).forEach(e=>{e5.prototype[e]=eH[e]}),e5.prototype.add=function(e,t){let r=this.clone();if(!t||0===e)return r;let n=this.clone();if("millisecond"===(t=x(t)))return r.epoch+=e,r;"fortnight"===t&&(e*=2,t="week"),j[t]?r.epoch+=j[t]*e:"week"===t||"weekend"===t?r.epoch+=j.day*(7*e):"quarter"===t||"season"===t?r.epoch+=j.month*(3*e):"quarterhour"===t&&(r.epoch+=15*j.minute*e);let i={};if(eJ[t]&&eJ[t].forEach(e=>{i[e]=n[e]()}),eQ[t]){let e=n.timezone().current.offset-r.timezone().current.offset;r.epoch+=3600*e*1e3}if("month"===t&&(i.month=n.month()+e,i=eZ(i,n)),"week"===t){let t=n.date()+7*e;t<=28&&t>1&&(i.date=t)}if("weekend"===t&&"saturday"!==r.dayName())r=r.day("saturday",!0);else if("date"===t){if(e<0)i=eK(i,n,e);else{let t=n.date()+e;i=eG(i,n,t)}0!==e&&n.isSame(r,"day")&&(i.date=n.date()+e)}else if("quarter"===t){if(i.month=n.month()+3*e,i.year=n.year(),i.month<0){let e=Math.floor(i.month/12),t=i.month+12*Math.abs(e);i.month=t,i.year+=e}else if(i.month>=12){let e=Math.floor(i.month/12);i.month=i.month%12,i.year+=e}i.date=n.date()}else if("year"===t){let t=n.year()+e,i=r.year();if(i<t){let t=Math.floor(e/4)||1;r.epoch+=Math.abs(j.day*t)}else if(i>t){let t=Math.floor(e/4)||1;r.epoch+=j.day*t}}else"decade"===t?i.year=r.year()+10:"century"===t&&(i.year=r.year()+100);if(e0[t]){let e=void 0!==i.year?i.year:n.year(),t=eY(i.month,e);i.date=n.date(),i.date>t&&(i.date=t)}return Object.keys(i).length>1&&D(r,i),r},e5.prototype.subtract=function(e,t){return this.clone().add(-1*e,t)},e5.prototype.minus=e5.prototype.subtract,e5.prototype.plus=e5.prototype.add,e5.prototype.isSame=function(e,t,r=!0){if(!t)return null;if("string"==typeof e&&"object"==typeof t){let r=e;e=t,t=r}return"string"!=typeof e&&"number"!=typeof e||(e=new e5(e,this.timezone.name)),t=t.replace(/s$/,""),!0===r&&this.tz!==e.tz&&((e=e.clone()).tz=this.tz),e1[t]?e1[t](this)===e1[t](e):null},(e=>{let t={isAfter:function(e){let t=E(e=C(e,this));return null===t?null:this.epoch>t},isBefore:function(e){let t=E(e=C(e,this));return null===t?null:this.epoch<t},isEqual:function(e){let t=E(e=C(e,this));return null===t?null:this.epoch===t},isBetween:function(e,t,r=!1){e=C(e,this),t=C(t,this);let n=E(e);if(null===n)return null;let i=E(t);return null===i?null:r?this.isBetween(e,t)||this.isEqual(e)||this.isEqual(t):n<this.epoch&&this.epoch<i}};Object.keys(t).forEach(r=>{e.prototype[r]=t[r]})})(e5),(e=>{let t={i18n:function(e){var t,r,n,i,o;return v(e.days)&&(X=(t=e.days).short||X,J=t.long||J),v(e.months)&&(L=(n=e.months).short||L,N=n.long||N),r=e.useTitleCase,"[object Boolean]"===Object.prototype.toString.call(r)&&(ee=e.useTitleCase),v(e.ampm)&&(eB=(i=e.ampm).am||eB,eV=i.pm||eV),v(e.distance)&&(e_=(o=e.distance).pastDistance||e_,ex=o.futureDistance||ex,em=o.past||em,eg=o.future||eg,ey=o.present||ey,ev=o.now||ev,eb=o.almost||eb,ew=o.over||ew),v(e.units)&&function(e={}){ep={second:e.second||ep.second,seconds:e.seconds||ep.seconds,minute:e.minute||ep.minute,minutes:e.minutes||ep.minutes,hour:e.hour||ep.hour,hours:e.hours||ep.hours,day:e.day||ep.day,days:e.days||ep.days,month:e.month||ep.month,months:e.months||ep.months,year:e.year||ep.year,years:e.years||ep.years}}(e.units),this}};Object.keys(t).forEach(r=>{e.prototype[r]=t[r]})})(e5);let e3=(e,t,r)=>new e5(e,t,r),e4=function(e){let t=e._today||{};return Object.keys(t).forEach(r=>{e=e[r](t[r])}),e};e3.now=(e,t)=>
279e4(new e5((new Date).getTime(),e,t)),e3.today=(e,t)=>{let r=new e5((new Date).getTime(),e,t);return(r=e4(r)).startOf("day")},e3.tomorrow=(e,t)=>{let r=new e5((new Date).getTime(),e,t);return(r=e4(r)).add(1,"day").startOf("day")},e3.yesterday=(e,t)=>{let r=new e5((new Date).getTime(),e,t);return(r=e4(r)).subtract(1,"day").startOf("day")},e3.fromUnixSeconds=(e,t,r)=>new e5(1e3*e,t,r),e3.extend=function(e={}){return Object.keys(e).forEach(t=>{e5.prototype[t]=e[t]}),this},e3.timezones=function(){return(new e5).timezones},e3.max=function(e,t){let r=new e5(null,e,t);return r.epoch=864e13,r},e3.min=function(e,t){let r=new e5(null,e,t);return r.epoch=-864e13,r},e3.whereIts=(e,t)=>{let r=new e5(null),n=new e5(null);r=r.time(e),n=t?n.time(t):r.add(59,"minutes");let i=r.hour(),o=n.hour();return Object.keys(r.timezones).filter(e=>{if(-1===e.indexOf("/"))return!1;let t=new e5(null,e),a=t.hour();return a>=i&&a<=o&&!(a===i&&t.minute()<r.minute())&&!(a===o&&t.minute()>n.minute())})},e3.version="7.13.0",e3.plugin=e3.extend},74927:function(e,t,r){"use strict";r.d(t,{A:function(){return s},B:function(){return h},I:function(){return T},O:function(){return u},S:function(){return Y},U:function(){return l},a:function(){return d},b:function(){return a},c:function(){return V},d:function(){return W},e:function(){return c},f:function(){return H},g:function(){return Z},i:function(){return y},m:function(){return f},n:function(){return z},o:function(){return F},r:function(){return S},s:function(){return N},t:function(){return k},u:function(){return A},z:function(){return _}});var n=r(67294),i=r(20224),o=Object.prototype.hasOwnProperty;let a=new WeakMap,s=()=>{},l=s(),u=Object,c=e=>e===l,d=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),h=e=>d(e.then),p={},m={},g="undefined",y=typeof window!=g,v=typeof document!=g,b=y&&"Deno"in window,w=()=>y&&typeof window.requestAnimationFrame!=g,_=(e,t)=>{let r=a.get(e);return[()=>!c(t)&&e.get(t)||p,n=>{if(!c(t)){let i=e.get(t);t in m||(m[t]=i),r[5](t,f(i,n),i||p)}},r[6],()=>!c(t)&&t in m?m[t]:!c(t)&&e.get(t)||p]},x=!0,[E,C]=y&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[s,s],O={initFocus:e=>(v&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{v&&document.removeEventListener("visibilitychange",e),C("focus",e)}),initReconnect:e=>{let t=()=>{x=!0,e()},r=()=>{x=!1};return E("online",t),E("offline",r),()=>{C("online",t),C("offline",r)}}},S=!n.useId,T=!y||b,k=e=>w()?window.requestAnimationFrame(e):setTimeout(e,1),A=T?n.useEffect:n.useLayoutEffect,P="undefined"!=typeof navigator&&navigator.connection,j=!T&&P&&(["slow-2g","2g"].includes(P.effectiveType)||P.saveData),R=new WeakMap,M=e=>u.prototype.toString.call(e),D=(e,t)=>e===`[object ${t}]`,I=0,L=e=>{let t,r;let n=typeof e,i=M(e),o=D(i,"Date"),a=D(i,"RegExp"),s=D(i,"Object");if(u(e)!==e||o||a)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=R.get(e))return t;if(t=++I+"~",R.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=L(e[r])+",";R.set(e,t)}if(s){t="#";let n=u.keys(e).sort();for(;!c(r=n.pop());)c(e[r])||(t+=r+":"+L(e[r])+",");R.set(e,t)}}return t},N=e=>{if(d(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?L(e):"",t]},U=0,F=()=>++U;async function z(...e){let[t,r,n,o]=e,s=f({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{}),u=s.populateCache,p=s.rollbackOnError,m=s.optimisticData,g=e=>"function"==typeof p?p(e):!1!==p,y=s.throwOnError;if(d(r)){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(v))}return v(r);async function v(r){let o;let[f]=N(r);if(!f)return;let[p,v]=_(t,f),[b,w,x,E]=a.get(t),C=()=>{let e=b[f];return(d(s.revalidate)?s.revalidate(p().data,r):!1!==s.revalidate)&&(delete x[f],delete E[f],e&&e[0])?e[0](i.QQ).then(()=>p().data):p().data};if(e.length<3)return C();let O=n,S=!1,T=F();w[f]=[T,0];let k=!c(m),A=p(),P=A.data,j=A._c,R=c(j)?P:j;if(k&&v({data:m=d(m)?m(R,P):m,_c:R}),d(O))try{O=O(R)}catch(e){o=e,S=!0}if(O&&h(O)){if(O=await O.catch(e=>{o=e,S=!0}),T!==w[f][0]){if(S)throw o;return O}S&&k&&g(o)&&(u=!0,v({data:R,_c:l}))}if(u&&!S&&(d(u)?v({data:u(O,R),error:l,_c:l}):v({data:O,error:l,_c:l})),w[f][1]=F(),Promise.resolve(C()).then(()=>{v({_c:l})}
279),S){if(y)throw o;return}return O}}let $=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},B=(e,t)=>{if(!a.has(e)){let r=f(O,t),n=Object.create(null),o=z.bind(l,e),u=s,c=Object.create(null),d=(e,t)=>{let r=c[e]||[];return c[e]=r,r.push(t),()=>{let e=r.indexOf(t);e>=0&&(r[e]=r[r.length-1],r.pop())}},h=(t,r,n)=>{e.set(t,r);let i=c[t];if(i)for(let e of i)e(r,n)},p=()=>{if(!a.has(e)&&(a.set(e,[n,Object.create(null),Object.create(null),Object.create(null),o,h,d]),!T)){let t=r.initFocus(setTimeout.bind(l,$.bind(l,n,i.N4))),o=r.initReconnect(setTimeout.bind(l,$.bind(l,n,i.l2)));u=()=>{t&&t(),o&&o(),a.delete(e)}}};return p(),[e,o,p,u]}return[e,a.get(e)[4]]},[V,q]=B(new Map),W=f({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:(e,t,r,n,i)=>{let o=r.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(c(o)||!(a>o))&&setTimeout(n,s,i)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:j?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:j?5e3:3e3,compare:function e(t,r){var n,i;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(o.call(t,n)&&++i&&!o.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r},isPaused:()=>!1,cache:V,mutate:q,fallback:{}},{isOnline:()=>x,isVisible:()=>{let e=v&&document.visibilityState;return c(e)||"hidden"!==e}}),H=(e,t)=>{let r=f(e,t);if(t){let{use:n,fallback:i}=e,{use:o,fallback:a}=t;n&&o&&(r.use=n.concat(o)),i&&a&&(r.fallback=f(i,a))}return r},Y=(0,n.createContext)({}),Z=e=>{let{value:t}=e,r=(0,n.useContext)(Y),i=d(t),o=(0,n.useMemo)(()=>i?t(r):t,[i,r,t]),a=(0,n.useMemo)(()=>i?o:H(r,o),[i,r,o]),s=o&&o.provider,u=(0,n.useRef)(l);s&&!u.current&&(u.current=B(s(a.cache||V),o));let c=u.current;return c&&(a.cache=c[0],a.mutate=c[1]),A(()=>{if(c)return c[2]&&c[2](),c[3]},[]),(0,n.createElement)(Y.Provider,f(e,{value:a}))}},30503:function(e,t,r){"use strict";r.d(t,{U:function(){return n}});let n="$inf$"},20224:function(e,t,r){"use strict";r.d(t,{N4:function(){return n},QQ:function(){return o},aU:function(){return a},l2:function(){return i}});let n=0,i=1,o=2,a=3},10046:function(e,t,r){"use strict";r.d(t,{ko:function(){return f},s6:function(){return d},xD:function(){return h}});var n=r(74927),i=r(30503),o=r(67294);let a=n.i&&window.__SWR_DEVTOOLS_USE__,s=a?window.__SWR_DEVTOOLS_USE__:[],l=e=>(0,n.a)(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],u=()=>{let e=(0,o.useContext)(n.S);return(0,o.useMemo)(()=>(0,n.m)(n.d,e),[e])},c=s.concat(e=>(t,r,o)=>{let a=r&&((...e)=>{let[o]=(0,n.s)(t),[,,,a]=n.b.get(n.c);if(o.startsWith(i.U))return r(...e);let s=a[o];return(0,n.e)(s)?r(...e):(delete a[o],s)});return e(t,a,o)}),d=e=>function(...t){let r=u(),[i,o,a]=l(t),s=(0,n.f)(r,a),d=e,{use:f}=s,h=(f||[]).concat(c);for(let e=h.length;e--;)d=h[e](d);return d(i,o||s.fetcher||null,s)},f=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},h=(e,t)=>(...r)=>{let[n,i,o]=l(r),a=(o.use||[]).concat(t);return e(n,i,{...o,use:a})};a&&(window.__SWR_DEVTOOLS_REACT__=o)},5068:function(e,t,r){"use strict";r.d(t,{ZP:function(){return h}});var n=r(67294),i=r(61688),o=r(74927),a=r(20224),s=r(10046);let l=()=>{};l(),new WeakMap;let u=n.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),c={dedupe:!0},d=Promise.resolve(o.U);d.status="fulfilled",d.value=o.U;let f=()=>o.A;o.O.defineProperty(o.g,"defaultValue",{value:o.d});let h=(0,s.s6)((e,t,r)=>{let{cache:l,compare:h,suspense:p,fallbackData:m,revalidateOnMount:g,revalidateIfStale:y,refreshInterval:v,refreshWhenHidden:b,refreshWhenOffline:w,keepPreviousData:_,strictServerPrefetchWarning:x}=r,[E,C,O,S]=o.b.get(l),[T,k]=(0,o.s)(e),A=(0,n.useRef)(!1),P=(0,n.useRef)(!1),j=(0,n.useRef)(T),R=(0,n.useRef)(t),M=(0,n.useRef)(r),D=()=>M.current,I=()=>D().isVisible()&&D().isOnline(),[L,N,U,F]=(0,o.z)(l,T),z=(0,n.useRef)({}).current,$=(0,o.e)(m)?(0,o.e)(r.fallback)?o.U:r.fallback[T]:m,B=(e,t)=>{for(let r in z)if("data"===r){if(!h(e[r],t[r])&&(!(0,o.e)(e[r])||!h(X,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},V=!A.current,q=(0,n.useMemo)(()=>{let e=L(),r=F(),n=e=>{let r=(0,o.m)(e);return(delete r._k,(()=>{if(!T||!t||D().isPaused())return!1;if(V&&!(0,o.e)(g))return g;let e=(0,o.e)($)?r.data:$;return(0,o.e)(e)||y})())?{isValidating:!0,isLoading:!0,...r}:r},i=n(e),a=e===r?i:n(r),s=i;return[()=>{let e=n(L());return B(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>a]},[l,T]),W=(0,i.useSyncExternalStore)((0,n.useCallback)(e=>U(T,(t,r)=>{B(r,t)||e()}),[l,T]),q[0],q[1]),H=E[T]&&E[T].length>0,Y=W.data,Z=(0,o.e)(Y)?$&&(0,o.B)($)?u($):$:Y,G=W.error,K=(0,n.useRef)(Z),X=_?(0,o.e)(Y)?(0,o.e)(K.current)?Z:K.current:Y:Z,J=T&&(0,o.e)(Z),Q=(0,n.useRef)(null);
279o.I||(0,i.useSyncExternalStore)(f,()=>(Q.current=!1,Q),()=>(Q.current=!0,Q));let ee=Q.current;x&&ee&&!p&&J&&console.warn(`Missing pre-initiated data for serialized key "${T}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let et=!(!T||!t||D().isPaused())&&(!H||!!(0,o.e)(G))&&(V&&!(0,o.e)(g)?g:p?!(0,o.e)(Z)&&y:(0,o.e)(Z)||y),er=V&&et,en=(0,o.e)(W.isValidating)?er:W.isValidating,ei=(0,o.e)(W.isLoading)?er:W.isLoading,eo=(0,n.useCallback)(async e=>{let t,n;let i=R.current;if(!T||!i||P.current||D().isPaused())return!1;let s=!0,l=e||{},u=!O[T]||!l.dedupe,c=()=>o.r?!P.current&&T===j.current&&A.current:T===j.current,d={isValidating:!1,isLoading:!1},f=()=>{N(d)},p=()=>{let e=O[T];e&&e[1]===n&&delete O[T]},m={isValidating:!0};(0,o.e)(L().data)&&(m.isLoading=!0);try{if(u&&(N(m),r.loadingTimeout&&(0,o.e)(L().data)&&setTimeout(()=>{s&&c()&&D().onLoadingSlow(T,r)},r.loadingTimeout),O[T]=[i(k),(0,o.o)()]),[t,n]=O[T],t=await t,u&&setTimeout(p,r.dedupingInterval),!O[T]||O[T][1]!==n)return u&&c()&&D().onDiscarded(T),!1;d.error=o.U;let e=C[T];if(!(0,o.e)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return f(),u&&c()&&D().onDiscarded(T),!1;let a=L().data;d.data=h(a,t)?a:t,u&&c()&&D().onSuccess(t,T,r)}catch(r){p();let e=D(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=r,u&&c()&&(e.onError(r,T,e),(!0===t||(0,o.a)(t)&&t(r))&&(!D().revalidateOnFocus||!D().revalidateOnReconnect||I())&&e.onErrorRetry(r,T,e,e=>{let t=E[T];t&&t[0]&&t[0](a.aU,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return s=!1,f(),!0},[T,l]),ea=(0,n.useCallback)((...e)=>(0,o.n)(l,j.current,...e),[]);if((0,o.u)(()=>{R.current=t,M.current=r,(0,o.e)(Y)||(K.current=Y)}),(0,o.u)(()=>{if(!T)return;let e=eo.bind(o.U,c),t=0;D().revalidateOnFocus&&(t=Date.now()+D().focusThrottleInterval);let r=(0,s.ko)(T,E,(r,n={})=>{if(r==a.N4){let r=Date.now();D().revalidateOnFocus&&r>t&&I()&&(t=r+D().focusThrottleInterval,e())}else if(r==a.l2)D().revalidateOnReconnect&&I()&&e();else if(r==a.QQ)return eo();else if(r==a.aU)return eo(n)});return P.current=!1,j.current=T,A.current=!0,N({_k:k}),et&&!O[T]&&((0,o.e)(Z)||o.I?e():(0,o.t)(e)),()=>{P.current=!0,r()}},[T]),(0,o.u)(()=>{let e;function t(){let t=(0,o.a)(v)?v(L().data):v;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!L().error&&(b||D().isVisible())&&(w||D().isOnline())?eo(c).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,b,w,T]),(0,n.useDebugValue)(X),p){if(!o.r&&o.I&&J)throw Error("Fallback data is required when using Suspense in SSR.");J&&(R.current=t,M.current=r,P.current=!1);let e=S[T];if(u(!(0,o.e)(e)&&J?ea(e):d),!(0,o.e)(G)&&J)throw G;let n=J?eo(c):d;!(0,o.e)(X)&&J&&(n.status="fulfilled",n.value=!0),u(n)}return{mutate:ea,get data(){return z.data=!0,X},get error(){return z.error=!0,G},get isValidating(){return z.isValidating=!0,en},get isLoading(){return z.isLoading=!0,ei}}})},97582:function(e,t,r){"use strict";r.r(t),r.d(t,{__addDisposableResource:function(){return I},__assign:function(){return o},__asyncDelegator:function(){return O},__asyncGenerator:function(){return C},__asyncValues:function(){return S},__await:function(){return E},__awaiter:function(){return p},__classPrivateFieldGet:function(){return R},__classPrivateFieldIn:function(){return D},__classPrivateFieldSet:function(){return M},__createBinding:function(){return g},__decorate:function(){return s},__disposeResources:function(){return N},__esDecorate:function(){return u},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return j},__importStar:function(){return P}
279,__makeTemplateObject:function(){return T},__metadata:function(){return h},__param:function(){return l},__propKey:function(){return d},__read:function(){return b},__rest:function(){return a},__rewriteRelativeImportExtension:function(){return U},__runInitializers:function(){return c},__setFunctionName:function(){return f},__spread:function(){return w},__spreadArray:function(){return x},__spreadArrays:function(){return _},__values:function(){return v}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function l(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,l=n.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?n.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),f=!1,h=r.length-1;h>=0;h--){var p={};for(var m in n)p[m]="access"===m?{}:n[m];for(var m in n.access)p.access[m]=n.access[m];p.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var g=(0,r[h])("accessor"===l?{get:d.get,set:d.set}:d[u],p);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw TypeError("Object expected");(s=a(g.get))&&(d.get=s),(s=a(g.set))&&(d.set=s),(s=a(g.init))&&i.unshift(s)}else(s=a(g))&&("field"===l?i.unshift(s):d[u]=s)}c&&Object.defineProperty(c,n.name,d),f=!0}function c(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function m(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var g=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
vendor: 4,274 bytes, line 279
279(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function y(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||g(t,e,r)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function _(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function x(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function E(e){return this instanceof E?(this.v=e,this):new E(e)}function C(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{var r;(r=i[e](t)).value instanceof E?Promise.resolve(r.value.v).then(l,u):c(o[0][2],r)}catch(e){c(o[0][3],e)}}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function O(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:E(e[n](t)),done:!1}:i?i(t):t}:i}}function S(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=v(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},A=function(e){return(A=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)};function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=A(e),n=0;n<r.length;n++)"default"!==r[n]&&g(t,e,r[n]);return k(t,e),t}function j(e){return e&&e.__esModule?e:{default:e}}function R(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function M(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function I(e,t,r){if(null!=t){var n,i;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");
279if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var L="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function N(e){function t(t){e.error=e.hasError?new L(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(e){return t(e),i()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function U(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,i,o){return r?t?".jsx":".js":!n||i&&o?n+i+"."+o.toLowerCase()+"js":e}):e}t.default={__extends:i,__assign:o,__rest:a,__decorate:s,__param:l,__esDecorate:u,__runInitializers:c,__propKey:d,__setFunctionName:f,__metadata:h,__awaiter:p,__generator:m,__createBinding:g,__exportStar:y,__values:v,__read:b,__spread:w,__spreadArrays:_,__spreadArray:x,__await:E,__asyncGenerator:C,__asyncDelegator:O,__asyncValues:S,__makeTemplateOb
279ject:T,__importStar:P,__importDefault:j,__classPrivateFieldGet:R,__classPrivateFieldSet:M,__classPrivateFieldIn:D,__addDisposableResource:I,__disposeResources:N,__rewriteRelativeImportExtension:U}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(91118),t(37253)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.