PageSourceSearch

https://peabiru-casa-floresta-frontend.vercel.app/_next/static/chu…?dpl=dpl_13EjZFMJz3Jq9aw5Zo9pjxgk8QVj

js peabiru-casa-floresta-frontend.vercel.app collected 2026-10-03 07:28:37 UTC 166,408 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[714],{265:function(t,e,i){"use strict";i.d(e,{Z:function(){return n}});let n=(0,i(9205).Z)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},3145:function(t,e,i){"use strict";i.d(e,{default:function(){return r.a}});var n=i(8461),r=i.n(n)},7648:function(t,e,i){"use strict";i.d(e,{default:function(){return r.a}});var n=i(2972),r=i.n(n)},9376:function(t,e,i){"use strict";var n=i(5475);i.o(n,"usePathname")&&i.d(e,{usePathname:function(){return n.usePathname}}),i.o(n,"useRouter")&&i.d(e,{useRouter:function(){return n.useRouter}}),i.o(n,"useSelectedLayoutSegment")&&i.d(e,{useSelectedLayoutSegment:function(){return n.useSelectedLayoutSegment}})},8461:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return l},getImageProps:function(){return a}});let n=i(7043),r=i(5346),s=i(5878),o=n._(i(5084));function a(t){let{props:e}=(0,r.getImgProps)(t,{defaultLoader:o.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[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=s.Image},6089:function(t,e,i){"use strict";i.d(e,{Z:function(){return l}});var n=i(2265),r="undefined"!=typeof window,s=function(t){(0,n.useEffect)(t,[])},o=function(t){var e=(0,n.useRef)(t);e.current=t,s(function(){return function(){return e.current()}})},a=function(t){var e=(0,n.useRef)(0),i=(0,n.useState)(t),r=i[0],s=i[1],a=(0,n.useCallback)(function(t){cancelAnimationFrame(e.current),e.current=requestAnimationFrame(function(){s(t)})},[]);return o(function(){cancelAnimationFrame(e.current)}),[r,a]},l=function(){var t=a(function(){return{x:r?window.pageXOffset:0,y:r?window.pageYOffset:0}}),e=t[0],i=t[1];return(0,n.useEffect)(function(){var t=function(){i(function(t){var e=window.pageXOffset,i=window.pageYOffset;return t.x!==e||t.y!==i?{x:e,y:i}:t})};return t(),function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];t&&t.addEventListener&&t.addEventListener.apply(t,e)}(window,"scroll",t,{capture:!1,passive:!0}),function(){!function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];t&&t.removeEventListener&&t.removeEventListener.apply(t,e)}(window,"scroll",t)}},[]),e}},4369:function(t,e,i){"use strict";var n=i(2265),r="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},s=n.useState,o=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!r(t,i)}catch(t){return!0}}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var i=e(),n=s({inst:{value:i,getSnapshot:e}}),r=n[0].inst,h=n[1];return a(function(){r.value=i,r.getSnapshot=e,u(r)&&h({inst:r})},[t,i,e]),o(function(){return u(r)&&h({inst:r}),t(function(){u(r)&&h({inst:r})})},[t]),l(i),i};e.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:h},2860:function(t,e,i){"use strict";var n=i(2265),r=i(2558),s="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=r.useSyncExternalStore,a=n.useRef,l=n.useEffect,u=n.useMemo,h=n.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,i,n,r){var c=a(null);if(null===c.current){var d={hasValue:!1,value:null};c.current=d}else d=c.current;var p=o(t,(c=u(function(){function t(t){if(!l){if(l=!0,o=t,t=n(t),void 0!==r&&d.hasValue){var e=d.value;if(r(e,t))return a=e}return a=t}if(e=a,s(o,t))return e;var i=n(t);return void 0!==r&&r(e,i)?(o=t,e):(o=t,a=i)}var o,a,l=!1,u=void 0===i?null:i;return[function(){return t(e())},null===u?void 0:function(){return t(u())}]},[e,i,n,r]))[0],c[1]);return l(function(){d.hasValue=!0,d.value=p},[p]),h(p),p}},2558:function(t,e,i){"use strict";t.exports=i(4369)},5195:function(t,e,i){"use strict";
1t.exports=i(2860)},5047:function(){},9974:function(t){t.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3'",fontStyle:"normal"},className:"__className_f367f3"}},5566:function(t){var e,i,n,r=t.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(i){try{return e.call(null,t,0)}catch(i){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:s}catch(t){e=s}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(t){i=o}}();var l=[],u=!1,h=-1;function c(){u&&n&&(u=!1,n.length?l=n.concat(l):h=-1,l.length&&d())}function d(){if(!u){var t=a(c);u=!0;for(var e=l.length;e;){for(n=l,l=[];++h<e;)n&&n[h].run();h=-1,e=l.length}n=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function f(){}r.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new p(t,e)),1!==l.length||u||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(t){return[]},r.binding=function(t){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw Error("process.chdir is not supported")},r.umask=function(){return 0}},1373:function(t,e,i){"use strict";let n;i.d(e,{e:function(){return $}});let r=t=>Array.isArray(t)?`[${t.map(r).join(", ")}]`:"string"==typeof t?`"${t.replace(/"/g,'\\"')}"`:t instanceof Date?`${t.getTime()}`:`${t}`,s=t=>(e,...i)=>{let n=i.map(r).join(", ");return`[${t}(${e}${e&&i.length?", ":""}${n})]`},o=t=>{let e=s(t);return t=>e(t)},a={at:s("at"),not:s("not"),any:s("any"),in:s("in"),fulltext:s("fulltext"),has:o("has"),missing:o("missing"),similar:(t=>{let e=s(t);return(...t)=>e("",...t)})("similar"),geopointNear:s("geopoint.near"),numberLessThan:s("number.lt"),numberGreaterThan:s("number.gt"),numberInRange:s("number.inRange"),dateAfter:s("date.after"),dateBefore:s("date.before"),dateBetween:s("date.between"),dateDayOfMonth:s("date.day-of-month"),dateDayOfMonthAfter:s("date.day-of-month-after"),dateDayOfMonthBefore:s("date.day-of-month-before"),dateDayOfWeek:s("date.day-of-week"),dateDayOfWeekAfter:s("date.day-of-week-after"),dateDayOfWeekBefore:s("date.day-of-week-before"),dateMonth:s("date.month"),dateMonthAfter:s("date.month-after"),dateMonthBefore:s("date.month-before"),dateYear:s("date.year"),dateHour:s("date.hour"),dateHourAfter:s("date.hour-after"),dateHourBefore:s("date.hour-before")};var l="7.21.3";let u=t=>`https://prismic.dev/msg/client/v${l}/${t}`,h=t=>t.replace(/%3B/g,";"),c=t=>{let e;for(let i of t.split("; ")){let t=i.split("=");if("io.prismic.preview"===h(t[0]).replace(/%3D/g,"=")){e=h(t.slice(1).join("="));break}}return e},d=t=>new Promise(e=>setTimeout(e,t)),p=({interval:t}={})=>{let e=[],i=!1,n=0,r=()=>{if(!i&&e.length>0){var t;null===(t=e.shift())||void 0===t||t(),i=!0}},s=()=>{i=!1,r()},o=async(e,i,r)=>{let o=Date.now()-n;t&&o<t&&await d(t-o);let a=(async()=>e(...r))();i(a);try{await a}catch{}n=Date.now(),s()},a=(t,n,s)=>{new Promise(t=>{e.push(t)}).then(o.bind(void 0,t,n,s)),(async()=>{await Promise.resolve(),i||r()})()};return(t,...e)=>new Promise(i=>{a(t,i,e)})},f={},m={};async function g(t,e,i){var n,r;let s;let o=t.toString();if(null==e?void 0:e.body)s=(f[n=t.hostname]||(f[n]=p({interval:1500})))(()=>i(o,e));else{let t=null===(r=m[o])||void 0===r?void 0:r.get(null==e?void 0:e.signal);t?s=t:(s=i(o,e).finally(()=>{var t,i;null===(t=m[o])||void 0===t||t.delete(null==e?void 0:e.signal),(null===(i=m[o])||void 0===i?void 0:i.size)===0&&delete m[o]}),(m[o]||(m[o]=new Map)).set(null==e?void 0:e.signal,s))}let a=await s;if(429===a.status){let n=Number(a.headers.get("retry-after")),r=Number.isNaN(n)?1500:1e3*n;return await new Promise(t=>setTimeout(t,r)),g(t,e,i)}return a.clone()}let y=0,v=t=>{if(t===n&&Date.now()-y<5e3){y=Date.now();return}y=Date.now(),n=t,console.warn(t)};
1var w=class extends Error{url;response;constructor(t="An invalid API response was returned",e,i){super(t),this.url=e,this.response=i}},x=class extends w{},b=class extends w{},T=class extends b{},P=class extends w{},S=class extends x{},E=class extends x{},A=class extends x{};let R={Any:"Any",Document:"Document",Media:"Media",Web:"Web"},k=t=>{var e;return{link_type:R.Document,id:t.id,uid:t.uid||void 0,type:t.type,tags:t.tags,lang:t.lang,url:null==t.url?void 0:t.url,slug:null===(e=t.slugs)||void 0===e?void 0:e[0],...t.data&&Object.keys(t.data).length>0?{data:t.data}:{}}},M=(t,...e)=>{let i;if(!t)return null;let n="link_type"in t?t:k(t),[r]=e;switch(i="function"==typeof r||null==r?{linkResolver:r}:{...r},n.link_type){case R.Media:case R.Web:return"url"in n?n.url:null;case R.Document:if("id"in n&&i.linkResolver){let t=i.linkResolver(n);if(null!=t)return t}if("url"in n&&n.url)return n.url;return null;case R.Any:default:return null}},D={accessToken:"access_token"},C=t=>"string"==typeof t?t:"desc"===t.direction?`${t.field} desc`:t.field,V=(t,e)=>{let{filters:i,predicates:n,...r}=e;t.endsWith("/")||(t+="/");let s=new URL("documents/search",t);if(i)for(let t of L(i))s.searchParams.append("q",`[${t}]`);if(n)for(let t of L(n))s.searchParams.append("q",`[${t}]`);for(let t in r){let e=D[t]||t,i=r[t];if("orderings"===e){let t=r[e];null!=t&&(i=`[${L(t).map(t=>C(t)).join(",")}]`)}else"routes"===e&&"object"==typeof r[e]&&(i=JSON.stringify(L(r[e])));null!=i&&s.searchParams.set(e,L(i).join(","))}return s.searchParams.set("x-c",`js-${l}`),s.toString()};function L(t){return Array.isArray(t)?t:[t]}let j=t=>/^[a-zA-Z0-9][-a-zA-Z0-9]{2,}[a-zA-Z0-9]$/.test(t),O=t=>{if(j(t))return`https://${t}.cdn.prismic.io/api/v2`;throw new w(`An invalid Prismic repository name was given: ${t}`,void 0,void 0)},I=t=>{try{let e=new URL(t).hostname;if(e.endsWith("prismic.io")||e.endsWith("wroom.io")||e.endsWith("wroom.test"))return e.split(".")[0]}catch{}throw new w(`An invalid Prismic Document API endpoint was provided: ${t}`,void 0,void 0)},F=t=>{try{return new URL(t),!0}catch{return!1}};var B=class{documentAPIEndpoint;accessToken;routes;brokenRoute;defaultParams;fetchFn;fetchOptions;#t;#e;#i=!0;#n;#r;#s=0;constructor(t,e={}){var i;let{documentAPIEndpoint:n,accessToken:r,ref:s,routes:o,brokenRoute:a,defaultParams:l,fetchOptions:h={},fetch:c=null===(i=globalThis.fetch)||void 0===i?void 0:i.bind(globalThis)}=e;if(F(t)){try{this.repositoryName=I(t)}catch{console.warn(`[@prismicio/client] A repository name could not be inferred from the provided endpoint (\`${t}\`). Some methods will be disabled. Create the client using a repository name to prevent this warning. For more details, see ${u("prefer-repository-name")}`)}this.documentAPIEndpoint=n||t}else this.repositoryName=t,this.documentAPIEndpoint=n||O(t);if(!c)throw new w("A valid fetch implementation was not provided. In environments where fetch is not available, a fetch implementation must be provided via a polyfill or the `fetch` option.",void 0,void 0);if("function"!=typeof c)throw new w(`fetch must be a function, but received: ${typeof c}`,void 0,void 0);if(!F(this.documentAPIEndpoint))throw new w(`documentAPIEndpoint is not a valid URL: ${n}`,void 0,void 0);F(t)&&n&&t!==n&&console.warn(`[@prismicio/client] Multiple incompatible endpoints were provided. Create the client using a repository name to prevent this error. For more details, see ${u("prefer-repository-name")}`),this.accessToken=r,this.routes=o,this.brokenRoute=a,this.defaultParams=l,this.fetchOptions=h,this.fetchFn=c,this.graphQLFetch=this.graphQLFetch.bind(this),s&&this.queryContentFromRef(s)}set repositoryName(t){this.#t=t}get repositoryName(){if(!this.#t)throw new w(`A repository name is required for this method but one could not be inferred from the provided API endpoint (\`${this.documentAPIEndpoint}\`). To fix this error, provide a repository name when creating the client. For more details, see ${u("prefer-repository-name")}`,void 0,void 0);return this.#t}set endpoint(t){this.documentAPIEndpoint=t}get endpoint(){return this.documentAPIEndpoint}enableAutoPreviews(){this.#i=!0}enableAutoPreviewsFromReq(t){this.enableAutoPreviews(),this.#n=t}disableAutoPreviews(){this.#i=!1,this.#n=void 0}async get(t){return await (await this.#o(t)).json()}async getFirst(t){let e=(null==t?void 0:t.page)||(null==t?void 0:t.pageSize)?t:{...t,pageSize:1},i=await this.#o(e),{results:n}=await i.clone().json();if(n[0])return n[0];throw new b("No documents were returned",i.url,void 0)}async dangerouslyGetAll(t={}){var e;let i;let{limit:n=1/0,...r}=t,s={...r,pageSize:Math.min(n,r.pageSize||(null===(e=this.defaultParams)||void 0===e?void 0:e.pageSize)||100)},o=[];for(;(!i||i.next_page)&&o.length<n;){let t=i?i.page+1:void 0;i=await this.get({...s,page:t}),o.push(...i.results),i.next_page&&await new Promise(t=>setTimeout(t,500))}return o.slice(0,n)}async getByID(t,e){return await this.getFirst(U(e,a.at("document.id",t)))}async getByIDs(t,e){return await this.get(U(e,a.in("document.id",t)))}async getAllByIDs(t,e){return await this.dangerouslyGetAll(U(e,a.in("document.id",t)))}async getByUID(t,e,i){return await this.getFirst(U(i,a.at("document.type",t),a.at(`my.${t}.uid`,e)))}
1async getByUIDs(t,e,i){return await this.get(U(i,a.at("document.type",t),a.in(`my.${t}.uid`,e)))}async getAllByUIDs(t,e,i){return await this.dangerouslyGetAll(U(i,a.at("document.type",t),a.in(`my.${t}.uid`,e)))}async getSingle(t,e){return await this.getFirst(U(e,a.at("document.type",t)))}async getByType(t,e){return await this.get(U(e,a.at("document.type",t)))}async getAllByType(t,e){return await this.dangerouslyGetAll(U(e,a.at("document.type",t)))}async getByTag(t,e){return await this.get(U(e,a.any("document.tags",[t])))}async getAllByTag(t,e){return await this.dangerouslyGetAll(U(e,a.any("document.tags",[t])))}async getByEveryTag(t,e){return await this.get(U(e,a.at("document.tags",t)))}async getAllByEveryTag(t,e){return await this.dangerouslyGetAll(U(e,a.at("document.tags",t)))}async getBySomeTags(t,e){return await this.get(U(e,a.any("document.tags",t)))}async getAllBySomeTags(t,e){return await this.dangerouslyGetAll(U(e,a.any("document.tags",t)))}async getRepository(t){if(this.#r&&this.#s>Date.now())return this.#r;let e=new URL(this.documentAPIEndpoint),i=(null==t?void 0:t.accessToken)||this.accessToken;i&&e.searchParams.set("access_token",i);let n=await this.#a(e,t);if(n.ok)return this.#r=await n.json(),this.#s=Date.now()+5e3,this.#r;if(404===n.status)throw new T(`Prismic repository not found. Check that "${this.documentAPIEndpoint}" is pointing to the correct repository.`,e.toString(),void 0);return await this.#l(n,e.toString())}async getRefs(t){return(await this.getRepository(t)).refs}async getRefByID(t,e){let i=(await this.getRefs(e)).find(e=>e.id===t);if(!i)throw new w(`Ref with ID "${t}" could not be found.`,void 0,void 0);return i}async getRefByLabel(t,e){let i=(await this.getRefs(e)).find(e=>e.label===t);if(!i)throw new w(`Ref with label "${t}" could not be found.`,void 0,void 0);return i}async getMasterRef(t){let e=(await this.getRefs(t)).find(t=>t.isMasterRef);if(!e)throw new w("Master ref could not be found.",void 0,void 0);return e}async getReleases(t){return(await this.getRefs(t)).filter(t=>!t.isMasterRef)}async getReleaseByID(t,e){let i=(await this.getReleases(e)).find(e=>e.id===t);if(!i)throw new w(`Release with ID "${t}" could not be found.`,void 0,void 0);return i}async getReleaseByLabel(t,e){let i=(await this.getReleases(e)).find(e=>e.label===t);if(!i)throw new w(`Release with label "${t}" could not be found.`,void 0,void 0);return i}async getTags(t){let e=await this.getRepository(t),i=e.forms.tags;if(i){let e=new URL(i.action);this.accessToken&&e.searchParams.set("access_token",this.accessToken);let n=await this.#a(e,t);if(n.ok)return await n.json()}return e.tags}async buildQueryURL({signal:t,fetchOptions:e,...i}={}){let n=i.ref||await this.#u({accessToken:i.accessToken,signal:t,fetchOptions:e}),r=i.integrationFieldsRef||(await this.getRepository({accessToken:i.accessToken,signal:t,fetchOptions:e})).integrationFieldsRef||void 0;return V(this.documentAPIEndpoint,{...this.defaultParams,...i,ref:n,integrationFieldsRef:r,routes:i.routes||this.routes,brokenRoute:i.brokenRoute||this.brokenRoute,accessToken:i.accessToken||this.accessToken})}async resolvePreviewURL(t){let e=t.documentID,i=t.previewToken;if(void 0!==globalThis.location){let t=new URLSearchParams(globalThis.location.search);e=e||t.get("documentId"),i=i||t.get("token")}else if(this.#n){if("query"in this.#n){var n,r;e=e||(null===(n=this.#n.query)||void 0===n?void 0:n.documentId),i=i||(null===(r=this.#n.query)||void 0===r?void 0:r.token)}else if("url"in this.#n&&this.#n.url){let t=new URL(this.#n.url,"missing-host://").searchParams;e=e||t.get("documentId"),i=i||t.get("token")}}if(null!=e&&null!=i){let n=M(await this.getByID(e,{ref:i,lang:"*",signal:t.signal,fetchOptions:t.fetchOptions}),{linkResolver:t.linkResolver});if("string"==typeof n)return n}return t.defaultURL}queryLatestContent(){this.#e=void 0}queryContentFromReleaseByID(t){this.#e=async e=>(await this.getReleaseByID(t,e)).ref}queryContentFromReleaseByLabel(t){this.#e=async e=>(await this.getReleaseByLabel(t,e)).ref}queryContentFromRef(t){this.#e="string"==typeof t?()=>t:t}async graphQLFetch(t,e){let i={accessToken:this.accessToken,fetchOptions:this.fetchOptions},n=await this.getRepository(i),r=await this.#u(i),s={};for(let[t,i]of(s["prismic-ref"]=r,this.accessToken&&(s.authorization=`Token ${this.accessToken}`),n.integrationFieldsRef&&(s["prismic-integration-field-ref"]=n.integrationFieldsRef),Object.entries((null==e?void 0:e.headers)??{})))s[t.toLowerCase()]=i;let o=new URL("string"==typeof t?t:t.url),a=(o.searchParams.get("query")??"").replace(/(\n| )*( |{|})(\n| )*/gm,(t,e,i)=>i);return o.searchParams.set("query",a),o.searchParams.set("ref",r),await this.fetchFn(o.toString(),{...e,headers:s})}async #u(t){var e,i,n;if(this.#i){let t=c(((null===(i=this.#n)||void 0===i?void 0:i.headers)?"get"in this.#n.headers?this.#n.headers.get("cookie"):this.#n.headers.cookie:null===(n=globalThis.document)||void 0===n?void 0:n.cookie)??"");if(t)return t}return await (null===(e=this.#e)||void 0===e?void 0:e.call(this,t))||(await this.getMasterRef(t)).ref}async #o(t,e=1){let i=await this.buildQueryURL(t),n=await this.#a(new URL(i),t);
1if(n.ok)return n;try{return await this.#l(n,i)}catch(n){if((n instanceof E||n instanceof S)&&e<3){var r;(null==t?void 0:t.ref)||(this.#r=void 0);let s=null===(r=n.message.match(/master ref is: (?<ref>.*)$/i))||void 0===r||null===(r=r.groups)||void 0===r?void 0:r.ref;if(!s)throw n;return v(`[@prismicio/client] The ref (${new URL(i).searchParams.get("ref")}) was ${n instanceof E?"invalid":"expired"}. Now retrying with the latest master ref (${s}). If you were previewing content, the response will not include draft content.`),await this.#o({...t,ref:s},e+1)}throw n}}async #l(t,e){switch(t.status){case 400:{let i=await t.clone().json();throw new P(i.message,e,i)}case 401:{let i=await t.clone().json();throw new x(i.message,e,i)}case 404:{let i=await t.clone().json();switch(i.type){case"api_notfound_error":throw new E(i.message,e,i);case"api_security_error":if(/preview token.*expired/i.test(i.message))throw new A(i.message,e,i);default:throw new b(i.message,e,i)}}case 410:{let i=await t.clone().json();throw new S(i.message,e,i)}default:throw new w(void 0,e,await t.text())}}async #a(t,e){var i,n,r,s;return await g(t,{...this.fetchOptions,...null==e?void 0:e.fetchOptions,headers:{...null===(i=this.fetchOptions)||void 0===i?void 0:i.headers,...null==e||null===(n=e.fetchOptions)||void 0===n?void 0:n.headers},signal:(null==e||null===(r=e.fetchOptions)||void 0===r?void 0:r.signal)||(null==e?void 0:e.signal)||(null===(s=this.fetchOptions)||void 0===s?void 0:s.signal)},this.fetchFn)}};function U(t={},...e){return{...t,filters:[...t.filters??[],...e]}}let $=(t,e)=>new B(t,e)},7586:function(t,e,i){"use strict";i.d(e,{M:function(){return w}});var n=i(7437),r=i(2265),s=i(8881),o=i(3576),a=i(1534),l=i(4252),u=i(3537),h=i(5750);function c(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class d extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=(0,u.R)(t)&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function p(t){var e,i;let{children:s,isPresent:o,anchorX:a,root:l}=t,u=(0,r.useId)(),p=(0,r.useRef)(null),f=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:m}=(0,r.useContext)(h._),g=function(...t){return r.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=c(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():c(t[e],null)}}}}(...t),t)}(p,null!==(i=null===(e=s.props)||void 0===e?void 0:e.ref)&&void 0!==i?i:null==s?void 0:s.ref);return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:n,right:r}=f.current;if(o||!p.current||!t||!e)return;p.current.dataset.motionPopId=u;let s=document.createElement("style");m&&(s.nonce=m);let h=null!=l?l:document.head;return h.appendChild(s),s.sheet&&s.sheet.insertRule('\n          [data-motion-pop-id="'.concat(u,'"] {\n            position: absolute !important;\n            width: ').concat(t,"px !important;\n            height: ").concat(e,"px !important;\n            ").concat("left"===a?"left: ".concat(n):"right: ".concat(r),"px !important;\n            top: ").concat(i,"px !important;\n          }\n        ")),()=>{h.contains(s)&&h.removeChild(s)}},[o]),(0,n.jsx)(d,{isPresent:o,childRef:p,sizeRef:f,children:r.cloneElement(s,{ref:g})})}let f=t=>{let{children:e,initial:i,isPresent:s,onExitComplete:a,custom:u,presenceAffectsLayout:h,mode:c,anchorX:d,root:f}=t,g=(0,o.h)(m),y=(0,r.useId)(),v=!0,w=(0,r.useMemo)(()=>(v=!1,{id:y,initial:i,isPresent:s,custom:u,onExitComplete:t=>{for(let e of(g.set(t,!0),g.values()))if(!e)return;a&&a()},register:t=>(g.set(t,!1),()=>g.delete(t))}),[s,g,a]);return h&&v&&(w={...w}),(0,r.useMemo)(()=>{g.forEach((t,e)=>g.set(e,!1))},[s]),r.useEffect(()=>{s||g.size||!a||a()},[s]),"popLayout"===c&&(e=(0,n.jsx)(p,{isPresent:s,anchorX:d,root:f,children:e})),(0,n.jsx)(l.O.Provider,{value:w,children:e})};function m(){return new Map}var g=i(9637);let y=t=>t.key||"";function v(t){let e=[];
1return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}let w=t=>{let{children:e,custom:i,initial:l=!0,onExitComplete:u,presenceAffectsLayout:h=!0,mode:c="sync",propagate:d=!1,anchorX:p="left",root:m}=t,[w,x]=(0,g.oO)(d),b=(0,r.useMemo)(()=>v(e),[e]),T=d&&!w?[]:b.map(y),P=(0,r.useRef)(!0),S=(0,r.useRef)(b),E=(0,o.h)(()=>new Map),A=(0,r.useRef)(new Set),[R,k]=(0,r.useState)(b),[M,D]=(0,r.useState)(b);(0,a.L)(()=>{P.current=!1,S.current=b;for(let t=0;t<M.length;t++){let e=y(M[t]);T.includes(e)?(E.delete(e),A.current.delete(e)):!0!==E.get(e)&&E.set(e,!1)}},[M,T.length,T.join("-")]);let C=[];if(b!==R){let t=[...b];for(let e=0;e<M.length;e++){let i=M[e],n=y(i);T.includes(n)||(t.splice(e,0,i),C.push(i))}return"wait"===c&&C.length&&(t=C),D(v(t)),k(b),null}let{forceRender:V}=(0,r.useContext)(s.p);return(0,n.jsx)(n.Fragment,{children:M.map(t=>{let e=y(t),r=(!d||!!w)&&(b===M||T.includes(e));return(0,n.jsx)(f,{isPresent:r,initial:(!P.current||!!l)&&void 0,custom:i,presenceAffectsLayout:h,mode:c,root:m,onExitComplete:r?void 0:()=>{if(A.current.has(e)||(A.current.add(e),!E.has(e)))return;E.set(e,!0);let t=!0;E.forEach(e=>{e||(t=!1)}),t&&(null==V||V(),D(S.current),d&&(null==x||x()),u&&u())},anchorX:p,children:t},e)})})}},9637:function(t,e,i){"use strict";i.d(e,{oO:function(){return s}});var n=i(2265),r=i(4252);function s(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,n.useContext)(r.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:o}=e,a=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return o(a)},[t]);let l=(0,n.useCallback)(()=>t&&s&&s(a),[a,s,t]);return!i&&s?[!1,l]:[!0]}},8881:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});let n=(0,i(2265).createContext)({})},5750:function(t,e,i){"use strict";i.d(e,{_:function(){return n}});let n=(0,i(2265).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},4252:function(t,e,i){"use strict";i.d(e,{O:function(){return n}});let n=(0,i(2265).createContext)(null)},2837:function(t,e,i){"use strict";let n;i.d(e,{E:function(){return sO}});let r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(r),o=(t,e,i)=>i>e?e:i<t?t:i,a={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},l={...a,transform:t=>o(0,1,t)},u={...a,default:1},h=t=>Math.round(1e5*t)/1e5,c=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,d=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,p=(t,e)=>i=>!!("string"==typeof i&&d.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),f=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(c);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},m=t=>o(0,255,t),g={...a,transform:t=>Math.round(m(t))},y={test:p("rgb","red"),parse:f("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+g.transform(t)+", "+g.transform(e)+", "+g.transform(i)+", "+h(l.transform(n))+")"},v={test:p("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:y.transform},w=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),x=w("deg"),b=w("%"),T=w("px"),P=w("vh"),S=w("vw"),E={...b,parse:t=>b.parse(t)/100,transform:t=>b.transform(100*t)},A={test:p("hsl","hue"),parse:f("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+b.transform(h(e))+", "+b.transform(h(i))+", "+h(l.transform(n))+")"},R={test:t=>y.test(t)||v.test(t)||A.test(t),parse:t=>y.test(t)?y.parse(t):A.test(t)?A.parse(t):v.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?y.transform(t):A.transform(t),getAnimatableNone:t=>{let e=R.parse(t);return e.alpha=0,R.transform(e)}},k=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,M="number",D="color",C=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function V(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(C,t=>(R.test(t)?(n.color.push(s),r.push(D),i.push(R.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(M),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function L(t){return V(t).values}function j(t){let{split:e,types:i}=V(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===M?r+=h(t[s]):e===D?r+=R.transform(t[s]):r+=t[s]}return r}}let O=t=>"number"==typeof t?0:R.test(t)?R.getAnimatableNone(t):t,I={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(c)?.length||0)+(t.match(k)?.length||0)>0},parse:L,createTransformer:j,getAnimatableNone:function(t){let e=L(t);return j(t)(e.map(O))}},F=new Set(["brightness","contrast","saturate","opacity"]);function B(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(c)||[];
1if(!n)return t;let r=i.replace(n,""),s=F.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let U=/\b([a-z-]*)\(.*?\)/gu,$={...I,getAnimatableNone:t=>{let e=t.match(U);return e?e.map(B).join(" "):t}},N={...a,transform:Math.round},W={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,radius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,top:T,right:T,bottom:T,left:T,inset:T,insetBlock:T,insetBlockStart:T,insetBlockEnd:T,insetInline:T,insetInlineStart:T,insetInlineEnd:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockStart:T,paddingBlockEnd:T,paddingInline:T,paddingInlineStart:T,paddingInlineEnd:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockStart:T,marginBlockEnd:T,marginInline:T,marginInlineStart:T,marginInlineEnd:T,backgroundPositionX:T,backgroundPositionY:T,rotate:x,rotateX:x,rotateY:x,rotateZ:x,scale:u,scaleX:u,scaleY:u,scaleZ:u,skew:x,skewX:x,skewY:x,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:l,originX:E,originY:E,originZ:T,zIndex:N,fillOpacity:l,strokeOpacity:l,numOctaves:N},_={...W,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:$,WebkitFilter:$},z=t=>_[t],q=()=>({translate:0,scale:1,origin:0,originPoint:0}),Y=()=>({x:q(),y:q()}),H=()=>({min:0,max:0}),X=()=>({x:H(),y:H()}),G=t=>!!(t&&t.getVelocity),K=new Set(["width","height","top","left","right","bottom",...r]),Z=t=>e=>e.test(t),Q=[a,T,b,x,S,P,{test:t=>"auto"===t,parse:t=>t}],J=t=>Q.find(Z(t));i(5566);let tt=()=>{},te=()=>{},ti=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),tn=t=>e=>"string"==typeof e&&e.startsWith(t),tr=tn("--"),ts=tn("var(--"),to=t=>!!ts(t)&&ta.test(t.split("/*")[0].trim()),ta=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tl(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,th=t=>180*t/Math.PI,tc=t=>tp(th(Math.atan2(t[1],t[0]))),td={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tc,rotateZ:tc,skewX:t=>th(Math.atan(t[1])),skewY:t=>th(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tp=t=>((t%=360)<0&&(t+=360),t),tf=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tm=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tg={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tf,scaleY:tm,scale:t=>(tf(t)+tm(t))/2,rotateX:t=>tp(th(Math.atan2(t[6],t[5]))),rotateY:t=>tp(th(Math.atan2(-t[2],t[0]))),rotateZ:tc,rotate:tc,skewX:t=>th(Math.atan(t[4])),skewY:t=>th(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ty(t){return t.includes("scale")?1:0}function tv(t,e){let i,n;if(!t||"none"===t)return ty(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=tg,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=td,n=e}if(!n)return ty(e);let s=i[e],o=n[1].split(",").map(tx);return"function"==typeof s?s(o):o[s]}let tw=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tv(i,e)};function tx(t){return parseFloat(t.trim())}let tb=t=>t===a||t===T,tT=new Set(["x","y","z"]),tP=r.filter(t=>!tT.has(t)),tS={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tv(e,"x"),y:(t,{transform:e})=>tv(e,"y")};tS.translateX=tS.x,tS.translateY=tS.y;let tE=t=>t,tA={},tR=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tk={value:null,addProjectionMetrics:null};function tM(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=tR.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&r?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}
1r=!0,[i,n]=[n,i],i.forEach(u),e&&tk.value&&tk.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:f}=o,m=()=>{let s=tA.useManualTiming?r.timestamp:performance.now();i=!1,tA.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),p.process(r),f.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(m))},g=()=>{i=!0,n=!0,r.isProcessing||t(m)};return{schedule:tR.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,r=!1)=>(i||g(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<tR.length;e++)o[tR[e]].cancel(t)},state:r,steps:o}}let{schedule:tD,cancel:tC,state:tV,steps:tL}=tM("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tE,!0),tj=new Set,tO=!1,tI=!1,tF=!1;function tB(){if(tI){let t=Array.from(tj).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return tP.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tI=!1,tO=!1,tj.forEach(t=>t.complete(tF)),tj.clear()}function tU(){tj.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tI=!0)})}class t${constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tj.add(this),tO||(tO=!0,tD.read(tU),tD.resolveKeyframes(tB))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tj.delete(this)}cancel(){"scheduled"===this.state&&(tj.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tN=t=>/^0[^.\s]+$/u.test(t);function tW(t,e){let i=z(t);return i!==$&&(i=I),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let t_=new Set(["auto","none","0"]);class tz extends t${constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&to(n=n.trim())){let r=function t(e,i,n=1){te(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(t){let e=tu.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return ti(t)?parseFloat(t):t}return to(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!K.has(i)||2!==t.length)return;let[n,r]=t,s=J(n),o=J(r);if(tl(n)!==tl(r)&&tS[i]){this.needsMeasurement=!0;return}if(s!==o){if(tb(s)&&tb(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tS[i]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||tN(n)))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!t_.has(e)&&V(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tW(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tS[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=tS[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}function tq(t,e){-1===t.indexOf(e)&&t.push(e)}function tY(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tH{constructor(){this.subscriptions=[]}add(t){return tq(this.subscriptions,t),()=>tY(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let{schedule:tX,cancel:tG}=tM(queueMicrotask,!1);function tK(){n=void 0}let tZ={now:()=>(void 0===n&&tZ.set(tV.isProcessing||tA.useManualTiming?tV.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(tK)}},tQ=t=>!isNaN(parseFloat(t)),tJ={current:void 0};class t0{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=tZ.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=tZ.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=tQ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tH);let i=this.events[t].add(e);return"change"===t?()=>{i(),tD.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return tJ.current&&tJ.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=tZ.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function t1(t,e){return new t0(t,e)}let t5=[...Q,R,I],t2=t=>t5.find(Z(t)),t3={current:null},t6={current:!1},t4="undefined"!=typeof window,t9=new WeakMap;function t7(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function t8(t){return"string"==typeof t||Array.isArray(t)}let et=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ee=["initial",...et];function ei(t){return t7(t.animate)||ee.some(e=>t8(t[e]))}function en(t){return!!(ei(t)||t.variants)}function er(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function es(t,e,i,n){if("function"==typeof e){let[r,s]=er(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=er(n);e=e(void 0!==i?i:t.custom,r,s)}return e}let eo=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ea={};
1class el{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=t$,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tZ.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tD.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=ei(e),this.isVariantNode=en(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==a[t]&&G(e)&&e.set(a[t])}}mount(t){this.current=t,t9.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(t6.current||function(){if(t6.current=!0,t4){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>t3.current=t.matches;t.addEventListener("change",e),e()}else t3.current=!1}}(),this.shouldReduceMotion=t3.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),tC(this.notifyUpdate),tC(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=s.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tD.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ea){let e=ea[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):X()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<eo.length;e++){let i=eo[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}
1this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(G(r))t.addValue(n,r);else if(G(s))t.addValue(n,t1(r,{owner:t}));else if(s!==r){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,t1(void 0!==e?e:r,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=t1(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(ti(i)||tN(i))?i=parseFloat(i):!t2(i)&&I.test(e)&&(i=tW(t,e)),this.setBaseTarget(t,G(i)?i.get():i)),G(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=es(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||G(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tH),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){tX.render(this.render)}}class eu extends el{constructor(){super(...arguments),this.KeyframeResolver=tz}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;G(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eh(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let ec=(t,e)=>e&&"number"==typeof t?e.transform(t):t,ed={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ep=r.length;function ef(t,e,i){let{style:n,vars:o,transformOrigin:a}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(s.has(t)){l=!0;continue}if(tr(t)){o[t]=i;continue}{let e=ec(i,W[t]);t.startsWith("origin")?(u=!0,a[t]=e):n[t]=e}}if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",s=!0;for(let o=0;o<ep;o++){let a=r[o],l=t[a];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===(a.startsWith("scale")?1:0):0===parseFloat(l))||i){let t=ec(l,W[a]);if(!u){s=!1;let e=ed[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;n.transformOrigin=`${t} ${e} ${i}`}}let em={offset:"stroke-dashoffset",array:"stroke-dasharray"},eg={offset:"strokeDashoffset",array:"strokeDasharray"},ey=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ev(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a}
1,l,u,h){if(ef(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),ey))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?em:eg;t[s.offset]=T.transform(-n);let o=T.transform(e),a=T.transform(i);t[s.array]=`${o} ${a}`}(c,r,s,o,!1)}let ew=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"]),ex=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eb(t,{style:e,vars:i},n,r){let s;let o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}function eT(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eP={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!T.test(t))return t;t=parseFloat(t)}let i=eT(t,e.target.x),n=eT(t,e.target.y);return`${i}% ${n}%`}},eS=(t,e,i)=>t+(e-t)*i,eE={borderRadius:{...eP,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eP,borderTopRightRadius:eP,borderBottomLeftRadius:eP,borderBottomRightRadius:eP,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=I.parse(t);if(n.length>5)return t;let r=I.createTransformer(t),s="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=eS(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function eA(t,{layout:e,layoutId:i}){return s.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eE[t]||"opacity"===t)}function eR(t,e,i){let n=t.style,r=e?.style,s={};if(!n)return s;for(let e in n)(G(n[e])||r&&G(r[e])||eA(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=n[e]);return s}function ek(t,e,i){let n=eR(t,e,i);for(let i in t)(G(t[i])||G(e[i]))&&(n[-1!==r.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eM extends eu{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=X}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(s.has(e)){let t=z(e);return t&&t.default||0}return e=ew.has(e)?e:eh(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return ek(t,e,i)}build(t,e,i){ev(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){!function(t,e,i,n){for(let i in eb(t,e,void 0,n),e.attrs)t.setAttribute(ew.has(i)?i:eh(i),e.attrs[i])}(t,e,0,n)}mount(t){this.isSVGTag=ex(t.tagName),super.mount(t)}}function eD({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function eC(t){return void 0===t||1===t}function eV({scale:t,scaleX:e,scaleY:i}){return!eC(t)||!eC(e)||!eC(i)}function eL(t){return eV(t)||ej(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ej(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eO(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function eI(t,e=0,i=1,n,r){t.min=eO(t.min,e,i,n,r),t.max=eO(t.max,e,i,n,r)}function eF(t,{x:e,y:i}){eI(t.x,e.translate,e.scale,e.originPoint),eI(t.y,i.translate,i.scale,i.originPoint)}function eB(t,e){t.min=t.min+e,t.max=t.max+e}function eU(t,e,i,n,r=.5){let s=eS(t.min,t.max,r);eI(t,e,i,s,n)}function e$(t,e){eU(t.x,e.x,e.scaleX,e.scale,e.originX),eU(t.y,e.y,e.scaleY,e.scale,e.originY)}function eN(t,e){return eD(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class eW extends eu{constructor(){super(...arguments),this.type="html",this.renderInstance=eb}readValueFromInstance(t,e){if(s.has(e))return this.projection?.isProjecting?ty(e):tw(t,e);{let i=window.getComputedStyle(t),n=(tr(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return eN(t,e)}build(t,e,i){ef(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return eR(t,e,i)}}var e_,ez=i(2265);let eq=["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 eY(t){if("string"!=typeof t||t.includes("-"));else if(eq.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var eH=i(7437),eX=i(8881);let eG=(0,ez.createContext)({strict:!1});var eK=i(5750);let eZ=(0,ez.createContext)({});function eQ(t){return Array.isArray(t)?t.join(" "):t}let eJ=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function e0(t,e,i){for(let n in e)G(e[n])||eA(n,i)||(t[n]=e[n])}let e1=()=>({...eJ(),attrs:{}}),e5=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function e2(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||e5.has(t)}let e3=t=>!e2(t);try{e_=require("@emotion/is-prop-valid").default,"function"==typeof e_&&(e3=t=>t.startsWith("on")?!e2(t):e_(t))}catch{}function e6(t){return G(t)?t.get():t}var e4=i(4252),e9=i(3576);let e7=t=>(e,i)=>{let n=(0,ez.useContext)(eZ),r=(0,ez.useContext)(e4.O),s=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:r,createRenderState:s}=t;return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=e6(s[t]);let{initial:o,animate:a}=t,l=ei(t),u=en(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!t7(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=es(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(e,i,n,r),renderState:s()}})(t,e,n,r);return i?s():(0,e9.h)(s)},e8=e7({scrapeMotionValuesFromProps:eR,createRenderState:eJ}),it=e7({scrapeMotionValuesFromProps:ek,createRenderState:e1});var ie=i(4563);let ii={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"]},ir=!1;function is(){return!function(){if(ir)return;let t={};for(let e in ii)t[e]={isEnabled:t=>ii[e].some(e=>!!t[e])};ea=t,ir=!0}(),ea}let io=Symbol.for("motionComponentSymbol"),ia="data-"+eh("framerAppearId"),il=(0,ez.createContext)({});function iu(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var ih=i(1534);function ic(t){var e,i;let{forwardMotionProps:n=!1,type:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;s&&function(t){let e=is();for(let i in t)e[i]={...e[i],...t[i]};ea=e}(s);let a=r?"svg"===r:eY(t),l=a?it:e8;function u(e,i){let r;let s={...(0,ez.useContext)(eK._),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,ez.useContext)(eX.p).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:u}=s,h=function(t){let{initial:e,animate:i}=function(t,e){if(ei(t)){let{initial:e,animate:i}=t;return{initial:!1===e||t8(e)?e:void 0,animate:t8(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,ez.useContext)(eZ));return(0,ez.useMemo)(()=>({initial:e,animate:i}),[eQ(e),eQ(i)])}(e),c=l(e,u);if(!u&&ie.j){(0,ez.useContext)(eG).strict;let e=function(t){let{drag:e,layout:i}=is();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(s);r=e.MeasureLayout,h.visualElement=function(t,e,i,n,r,s){var o,a,l,u;let{visualElement:h}=(0,ez.useContext)(eZ),c=(0,ez.useContext)(eG),d=(0,ez.useContext)(e4.O),p=(0,ez.useContext)(eK._).reducedMotion,f=(0,ez.useRef)(null);n=n||c.renderer,!f.current&&n&&(f.current=n(t,{visualState:e,parent:h,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p,isSVG:s}));let m=f.current,g=(0,ez.useContext)(il);m&&!m.projection&&r&&("html"===m.type||"svg"===m.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&iu(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(f.current,i,r,g);let y=(0,ez.useRef)(!1);(0,ez.useInsertionEffect)(()=>{m&&y.current&&m.update(i,d)});let v=i[ia],w=(0,ez.useRef)(!!v&&!(null===(o=(a=window).MotionHandoffIsComplete)||void 0===o?void 0:o.call(a,v))&&(null===(l=(u=window).MotionHasOptimisedAnimation)||void 0===l?void 0:l.call(u,v)));return(0,ih.L)(()=>{m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),w.current&&m.animationState&&m.animationState.animateChanges())}),(0,ez.useEffect)(()=>{m&&(!w.current&&m.animationState&&m.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var t,e;null===(t=(e=window).MotionHandoffMarkAsComplete)||void 0===t||t.call(e,v)}),w.current=!1),m.enteringChildren=void 0)}),m}(t,c,s,o,e.ProjectionNode,a)}return(0,eH.jsxs)(eZ.Provider,{value:h,children:[r&&h.visualElement?(0,eH.jsx)(r,{visualElement:h.visualElement,...s}):null,function(t,e,i,n,r){let{latestValues:s}=n,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=((null!=a?a:eY(t))?function(t,e,i,n){let r=(0,ez.useMemo)(()=>{let i=e1();return ev(i,e,ex(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};e0(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return e0(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,ez.useMemo)(()=>{let t=eJ();return ef(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,s,r,t),u=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(e3(r)||!0===i&&e2(r)||!e&&!e2(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,o),h=t!==ez.Fragment?{...u,...l,ref:i}:{},{children:c}=e,d=(0,ez.useMemo)(()=>G(c)?c.get():c,[c]);return(0,ez.createElement)(t,{...h,children:d})}(t,e,function(t,e,i){let n=(0,ez.useRef)(i);(0,ez.useInsertionEffect)(()=>{n.current=i});let r=(0,ez.useRef)(null);return(0,ez.useCallback)(i=>{if(i){var s;null===(s=t.onMount)||void 0===s||s.call(t,i)}e&&(i?e.mount(i):e.unmount());let o=n.current;if("function"==typeof o){if(i){let t=o(i);"function"==typeof t&&(r.current=t)}else r.current?(r.current(),r.current=null):o(i)}else o&&(o.current=i)},[e])}(c,h.visualElement,i),c,u,n,a)]})}u.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!==(i=null!==(e=t.displayName)&&void 0!==e?e:t.name)&&void 0!==i?i:"",")"));let h=(0,ez.forwardRef)(u);return h[io]=t,h}class id{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ip(t,e,i){let n=t.getProps();return es(n,e,void 0!==i?i:n.custom,t)}function im(t,e){return t?.[e]??t?.default??t}let ig=t=>Array.isArray(t);function iy(t,e){let i=t.getValue("willChange");if(G(i)&&i.add)return i.add(e);if(!i&&tA.WillChange){let i=new tA.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}let iv=t=>1e3*t,iw=t=>t/1e3,ix=(t,e)=>i=>e(t(i)),ib=(...t)=>t.reduce(ix),iT={layout:0,mainThread:0,waapi:0};function iP(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iS(t,e){return i=>i>0?e:t}let iE=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},iA=[v,y,A],iR=t=>iA.find(e=>e.test(t));function ik(t){let e=iR(t);if(tt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===A&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=iP(a,n,t+1/3),s=iP(a,n,t),o=iP(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let iM=(t,e)=>{let i=ik(t),n=ik(e);if(!i||!n)return iS(t,e);let r={...i};return t=>(r.red=iE(i.red,n.red,t),r.green=iE(i.green,n.green,t),r.blue=iE(i.blue,n.blue,t),r.alpha=eS(i.alpha,n.alpha,t),y.transform(r))},iD=new Set(["none","hidden"]);function iC(t,e){return i=>eS(t,e,i)}function iV(t){return"number"==typeof t?iC:"string"==typeof t?to(t)?iS:R.test(t)?iM:iO:Array.isArray(t)?iL:"object"==typeof t?R.test(t)?iM:ij:iS}function iL(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>iV(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function ij(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=iV(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let iO=(t,e)=>{let i=I.createTransformer(e),n=V(t),r=V(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?iD.has(t)&&!r.values.length||iD.has(e)&&!n.values.length?iD.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:ib(iL(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][n[s]],a=t.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i):(tt(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iS(t,e))};function iI(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eS(t,e,i):iV(t)(t,e)}let iF=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tD.update(e,t),stop:()=>tC(e),now:()=>tV.isProcessing?tV.timestamp:tZ.now()}},iB=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function iU(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function i$(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}let iN={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function iW(t,e){return t*Math.sqrt(1-e*e)}let i_=["duration","bounce"],iz=["stiffness","damping","mass"];function iq(t,e){return e.some(e=>void 0!==t[e])}function iY(t=iN.visualDuration,e=iN.bounce){let i;let n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,a=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:h,damping:c,mass:d,duration:p,velocity:f,isResolvedFromDuration:m}=function(t){let e={velocity:iN.velocity,stiffness:iN.stiffness,damping:iN.damping,mass:iN.mass,isResolvedFromDuration:!1,...t};if(!iq(t,iz)&&iq(t,i_)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*o(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:iN.mass,stiffness:n,damping:r}}else{let i=function({duration:t=iN.duration,bounce:e=iN.bounce,velocity:i=iN.velocity,mass:n=iN.mass}){let r,s;tt(t<=iv(iN.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=o(iN.minDamping,iN.maxDamping,a),t=o(iN.minDuration,iN.maxDuration,iw(t)),a<1?(r=e=>{let n=e*a,r=n*t;return .001-(n-i)/iW(e,a)*Math.exp(-r)},s=e=>{let n=e*a*t,s=Math.pow(a,2)*Math.pow(e,2)*t,o=iW(Math.pow(e,2),a);return(n*i+i-s)*Math.exp(-n)*(-r(e)+.001>0?-1:1)/o}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));
1let l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=iv(t),isNaN(l))return{stiffness:iN.stiffness,damping:iN.damping,duration:t};{let e=Math.pow(l,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:iN.mass}).isResolvedFromDuration=!0}}return e}({...n,velocity:-iw(n.velocity||0)}),g=f||0,y=c/(2*Math.sqrt(h*d)),v=l-a,w=iw(Math.sqrt(h/d)),x=5>Math.abs(v);if(r||(r=x?iN.restSpeed.granular:iN.restSpeed.default),s||(s=x?iN.restDelta.granular:iN.restDelta.default),y<1){let t=iW(w,y);i=e=>l-Math.exp(-y*w*e)*((g+y*w*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===y)i=t=>l-Math.exp(-w*t)*(v+(g+w*v)*t);else{let t=w*Math.sqrt(y*y-1);i=e=>{let i=Math.exp(-y*w*e),n=Math.min(t*e,300);return l-i*((g+y*w*v)*Math.sinh(n)+t*v*Math.cosh(n))/t}}let b={calculatedDuration:m&&p||null,next:t=>{let e=i(t);if(m)u.done=t>=p;else{let n=0===t?g:0;y<1&&(n=0===t?iv(g):i$(i,t,e));let o=Math.abs(n)<=r,a=Math.abs(l-e)<=s;u.done=o&&a}return u.value=u.done?l:e,u},toString:()=>{let t=Math.min(iU(b),2e4),e=iB(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function iH({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,y=i*e,v=p+y,w=void 0===o?v:o(v);w!==v&&(y=w-p);let x=t=>-y*Math.exp(-t/n),b=t=>w+x(t),T=t=>{let e=x(t),i=b(t);f.done=Math.abs(e)<=u,f.value=f.done?w:i},P=t=>{m(f.value)&&(c=t,d=iY({keyframes:[f.value,g(f.value)],velocity:i$(b,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,T(t),P(t)),void 0!==c&&t>=c)?d.next(t-c):(e||T(t),f)}}}iY.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(iU(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:iw(r)}}(t,100,iY);return t.ease=e.ease,t.duration=iv(e.duration),t.type="keyframes",t};let iX=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function iG(t,e,i,n){if(t===e&&i===n)return tE;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=iX(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:iX(r(t),e,n)}let iK=iG(.42,0,1,1),iZ=iG(0,0,.58,1),iQ=iG(.42,0,.58,1),iJ=t=>Array.isArray(t)&&"number"!=typeof t[0],i0=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,i1=t=>e=>1-t(1-e),i5=iG(.33,1.53,.69,.99),i2=i1(i5),i3=i0(i2),i6=t=>(t*=2)<1?.5*i2(t):.5*(2-Math.pow(2,-10*(t-1))),i4=t=>1-Math.sin(Math.acos(t)),i9=i1(i4),i7=i0(i4),i8=t=>Array.isArray(t)&&"number"==typeof t[0],nt={linear:tE,easeIn:iK,easeInOut:iQ,easeOut:iZ,circIn:i4,circInOut:i7,circOut:i9,backIn:i2,backInOut:i3,backOut:i5,anticipate:i6},ne=t=>"string"==typeof t,ni=t=>{if(i8(t)){te(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return iG(e,i,n,r)}return ne(t)?(te(void 0!==nt[t],`Invalid easing type '${t}'`,"invalid-easing-type"),nt[t]):t},nn=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function nr({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=iJ(n)?n.map(ni):ni(n),s={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(te(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let n=[],r=i||tA.mix||iI,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=ib(Array.isArray(e)?e[i]||tE:e,s)),n.push(s)}return n}(e,n,r),u=l.length,h=i=>{if(a&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=nn(t[n],t[n+1],i);return l[n](r)};return i?e=>h(o(t[0],t[s-1],e)):h}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=nn(0,e,n);t.push(eS(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||iQ).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}let ns=t=>null!==t;function no(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(ns),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}let na={decay:iH,inertia:iH,tween:nr,keyframes:nr,spring:iY};function nl(t){"string"==typeof t.type&&(t.type=na[t.type])}class nu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let nh=t=>t/100;class nc extends nu{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==tZ.now()&&this.tick(tZ.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},iT.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;
1nl(t);let{type:e=nr,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||nr;a!==nr&&"number"!=typeof o[0]&&(this.mixKeyframes=ib(nh,iI(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iU(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:h,repeat:c,repeatType:d,repeatDelay:p,type:f,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let w=this.currentTime,x=i;if(c){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===d?(i=1-i,p&&(i-=p/a)):"mirror"===d&&(x=s)),w=o(0,1,i)*a}let b=v?{done:!1,value:h[0]}:x.next(w);r&&(b.value=r(b.value));let{done:T}=b;v||null===l||(T=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return P&&f!==iH&&(b.value=no(h,this.options,g,this.speed)),m&&m(b.value),P&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return iw(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+iw(t)}get time(){return iw(this.currentTime)}set time(t){t=iv(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tZ.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=iw(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=iF,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tZ.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,iT.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nd=t=>t.startsWith("--");function np(t){let e;return()=>(void 0===e&&(e=t()),e)}let nf=np(()=>void 0!==window.ScrollTimeline),nm={},ng=function(t,e){let i=np(t);return()=>nm[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ny=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,nv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ny([0,.65,.55,1]),circOut:ny([.55,0,1,.45]),backIn:ny([.31,.01,.66,-.59]),backOut:ny([.33,1.53,.69,.99])};function nw(t){return"function"==typeof t&&"applyToOptions"in t}class nx extends nu{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,te("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return nw(t)&&ng()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?ng()?iB(e,i):"ease-out":i8(e)?ny(e):Array.isArray(e)?e.map(e=>t(e,i)||nv.easeOut):nv[e]}(a,r);Array.isArray(c)&&(h.easing=c),tk.value&&iT.waapi++;let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(d.pseudoElement=u);let p=t.animate(h,d);return tk.value&&p.finished.finally(()=>{iT.waapi--}),p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=no(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):nd(i)?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return iw(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+iw(t)}get time(){return iw(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=iv(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&nf())?(this.animation.timeline=t,tE):e(this)}}
1let nb={anticipate:i6,backInOut:i3,circInOut:i7};class nT extends nx{constructor(t){"string"==typeof t.ease&&t.ease in nb&&(t.ease=nb[t.ease]),nl(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let a=new nc({...s,autoplay:!1}),l=Math.max(10,tZ.now()-this.startTime),u=o(0,10,l-10);e.setWithVelocity(a.sample(Math.max(0,l-u)).value,a.sample(l).value,u),a.stop()}}let nP=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(I.test(t)||"0"===t)&&!t.startsWith("url("));function nS(t){t.duration=0,t.type="keyframes"}let nE=new Set(["opacity","clipPath","filter","transform"]),nA=np(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nR extends nu{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tZ.now();let c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||t$;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:r,type:s,velocity:o,delay:a,isHandoff:l,onUpdate:u}=i;this.resolvedAt=tZ.now(),!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=nP(r,e),a=nP(s,e);return tt(o===a,`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||nw(i))&&n)}(t,r,s,o)&&((tA.instantAnimations||!a)&&u?.(no(t,i,e)),t[0]=t[t.length-1],nS(i),i.repeat=0);let h={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return nA()&&i&&nE.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(h)?new nT({...h,element:h.motionValue.owner.current}):new nc(h);c.finished.then(()=>this.notifyFinished()).catch(tE),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tF=!0,tU(),tB(),tF=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nk={type:"spring",stiffness:500,damping:25,restSpeed:10},nM=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),nD={type:"keyframes",duration:.8},nC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nV=(t,{keyframes:e})=>e.length>2?nD:s.has(t)?t.startsWith("scale")?nM(e[1]):nk:nC,nL=t=>null!==t,nj=(t,e,i,n={},r,s)=>o=>{let a=im(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=iv(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:
1o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&Object.assign(h,nV(t,h)),h.duration&&(h.duration=iv(h.duration)),h.repeatDelay&&(h.repeatDelay=iv(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(nS(h),0!==h.delay||(c=!0)),(tA.instantAnimations||tA.skipAnimations)&&(c=!0,nS(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,c&&!s&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(nL),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[s]}(h.keyframes,a);if(void 0!==t){tD.update(()=>{h.onUpdate(t),h.onComplete()});return}}return a.isSync?new nc(h):new nR(h)};function nO(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=e;n&&(s=n);let l=[],u=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let n=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||u&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(u,e))continue;let o={delay:i,...im(s||{},e)},h=n.get();if(void 0!==h&&!n.isAnimating&&!Array.isArray(r)&&r===h&&!o.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=t.props[ia];if(i){let t=window.MotionHandoffAnimation(i,e,tD);null!==t&&(o.startTime=t,c=!0)}}iy(t,e),n.start(nj(e,n,r,t.shouldReduceMotion&&K.has(e)?{type:!1}:o,t,c));let d=n.animation;d&&l.push(d)}return o&&Promise.all(l).then(()=>{tD.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=ip(t,e)||{};for(let e in r={...r,...i}){var s;let i=ig(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,t1(i))}}(t,o)})}),l}function nI(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function nF(t,e,i={}){let n=ip(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(nO(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,n=0,r=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nF(l,e,{...o,delay:i+("function"==typeof n?0:n)+nI(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}let nB=ee.length;function nU(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let n$=[...et].reverse(),nN=et.length;function nW(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function n_(){return{animate:nW(!0),whileInView:nW(),whileHover:nW(),whileTap:nW(),whileDrag:nW(),whileFocus:nW(),exit:nW()}}class nz extends id{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nF(t,e,i)));else if("string"==typeof e)n=nF(t,e,i);else{let r="function"==typeof e?ip(t,e,i.custom):e;n=Promise.all(nO(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=n_(),n=!0,r=e=>(i,n)=>{let r=ip(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function s(s){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<nB;t++){let n=ee[t],r=e.props[n];(t8(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},l=[],u=new Set,h={},c=1/0;for(let e=0;e<nN;e++){var d;let p=n$[e],f=i[p],m=void 0!==o[p]?o[p]:a[p],g=t8(m),y=p===s?f.isActive:null;!1===y&&(c=e);let v=m===a[p]&&m!==o[p]&&g;if(v&&n&&t.manuallyAnimateOnMount&&(v=!1),f.protectedKeys={...h},!f.isActive&&null===y||!m&&!f.prevProp||t7(m)||"boolean"==typeof m)continue;let w=(d=f.prevProp,"string"==typeof m?m!==d:!!Array.isArray(m)&&!nU(m,d)),x=w||p===s&&f.isActive&&!v&&g||e>c&&g,b=!1,T=Array.isArray(m)?m:[m],P=T.reduce(r(p),{});!1===y&&(P={});let{prevResolvedValues:S={}}=f,E={...S,...P},A=e=>{x=!0,u.has(e)&&(b=!0,u.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in E){let e=P[t],i=S[t];if(!h.hasOwnProperty(t))(ig(e)&&ig(i)?nU(e,i):e===i)?void 0!==e&&u.has(t)?A(t):f.protectedKeys[t]=!0:null!=e?A(t):u.add(t)}f.prevProp=m,f.prevResolvedValues=P,f.isActive&&(h={...h,...P}),n&&t.blockInitialAnimation&&(x=!1);let R=v&&w,k=!R||b;x&&k&&l.push(...T.map(e=>{let i={type:p};if("string"==typeof e&&n&&!R&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=ip(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=nI(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof o.initial){let i=ip(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let p=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(p=!1),n=!1,p?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=s(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=n_()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();t7(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let nq=0;class nY extends id{constructor(){super(...arguments),this.id=nq++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let nH={x:!1,y:!1};function nX(t){return[t("x"),t("y")]}function nG(t){return t.max-t.min}function nK(t,e,i,n=.5){t.origin=n,t.originPoint=eS(e.min,e.max,t.origin),t.scale=nG(i)/nG(e),t.translate=eS(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nZ(t,e,i,n){nK(t.x,e.x,i.x,n?n.originX:void 0),nK(t.y,e.y,i.y,n?n.originY:void 0)}function nQ(t,e,i){t.min=i.min+e.min,t.max=t.min+nG(e)}function nJ(t,e,i){t.min=e.min-i.min,t.max=t.min+nG(e)}function n0(t,e,i){nJ(t.x,e.x,i.x),nJ(t.y,e.y,i.y)}let n1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function n5(t){return n1.has(t.tagName)||!0===t.isContentEditable}function n2(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let n3=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function n6(t){return{point:{x:t.pageX,y:t.pageY}}}let n4=t=>e=>n3(e)&&t(e,n6(e));function n9(t,e,i,n){return n2(t,e,n4(i),n)}let n7=({current:t})=>t?t.ownerDocument.defaultView:null,n8=(t,e)=>Math.abs(t-e),rt=new Set(["auto","scroll"]);class re{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=rr(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(n8(t.x,e.x)**2+n8(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=tV;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ri(e,this.transformPagePoint),tD.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rr("pointercancel"===t.type?this.lastMoveEventInfo:ri(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!n3(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let a=ri(n6(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tV;this.history=[{...l,timestamp:u}];let{onSessionStart:h}=e;h&&h(t,rr(a,this.history)),this.removeListeners=ib(n9(this.contextWindow,"pointermove",this.handlePointerMove),n9(this.contextWindow,"pointerup",this.handlePointerUp),n9(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(rt.has(t.overflowX)||rt.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),tD.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tC(this.updatePoint)}}function ri(t,e){return e?{point:e(t.point)}:t}function rn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rr({point:t},e){return{point:t,delta:rn(t,rs(e)),offset:rn(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=rs(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>iv(.1)));)i--;if(!n)return{x:0,y:0};let s=iw(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
1;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function rs(t){return t[t.length-1]}function ro(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function ra(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function rl(t,e,i){return{min:ru(t,e),max:ru(t,i)}}function ru(t,e){return"number"==typeof t?t:t[e]||0}let rh=new WeakMap;class rc{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=X(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new re(t,{onSessionStart:t=>{e?(this.stopAnimation(),this.snapToCursor(n6(t).point)):this.pauseAnimation()},onStart:(t,e)=>{this.stopAnimation();let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?nH[i]?null:(nH[i]=!0,()=>{nH[i]=!1}):nH.x||nH.y?null:(nH.x=nH.y=!0,()=>{nH.x=nH.y=!1}),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nX(t=>{let e=this.getAxisMotionValue(t).get()||0;if(b.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=nG(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&tD.postRender(()=>r(t,e)),iy(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>nX(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:i,contextWindow:n7(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&tD.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!rd(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eS(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eS(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&iu(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:ro(t.x,i,r),y:ro(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:rl(t,"left","right"),y:rl(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nX(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iu(e))return!1;let n=e.current;te(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
1let s=function(t,e,i){let n=eN(t,i),{scroll:r}=e;return r&&(eB(n.x,r.offset.x),eB(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:ra((t=r.layout.layoutBox).x,s.x),y:ra(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eD(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nX(o=>{if(!rd(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iy(this.visualElement,t),i.start(nj(t,i,0,e,this.visualElement,!1))}stopAnimation(){nX(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nX(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){nX(e=>{let{drag:i}=this.getProps();if(!rd(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e],o=r.get()||0;r.set(t[e]-eS(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iu(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nX(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=nG(t),r=nG(e);return r>n?i=nn(e.min,e.max-n,t.min):n>r&&(i=nn(t.min,t.max-r,e.min)),o(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),nX(e=>{if(!rd(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(eS(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;rh.set(this.visualElement,this);let t=n9(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&!n5(t.target)&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iu(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tD.read(e);let r=n2(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nX(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function rd(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class rp extends id{constructor(t){super(t),this.removeGroupControls=tE,this.removeListeners=tE,this.controls=new rc(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tE}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}let rf=t=>(e,i)=>{t&&tD.postRender(()=>t(e,i))};class rm extends id{constructor(){super(...arguments),this.removePointerDownListener=tE}onPointerDown(t){this.session=new re(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n7(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rf(t),onStart:rf(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&tD.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=n9(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let rg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ry=i(9637);let rv=!1;class rw extends ez.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),rv&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),rg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,rv=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||tD.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tX.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;rv=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rx(t){let[e,i]=(0,ry.oO)(),n=(0,ez.useContext)(eX.p);return(0,eH.jsx)(rw,{...t,layoutGroup:n,switchLayoutGroup:(0,ez.useContext)(il),isPresent:e,safeToRemove:i})}function rb(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function rT(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(b.test(e)&&(e=parseFloat(e),e=eS(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eS(s.min,s.max,n);t===s&&(a-=e),t.min=rb(t.min,e,i,a,r),t.max=rb(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}
1let rP=["x","scaleX","originX"],rS=["y","scaleY","originY"];function rE(t,e,i,n){rT(t.x,e,rP,i?i.x:void 0,n?n.x:void 0),rT(t.y,e,rS,i?i.y:void 0,n?n.y:void 0)}function rA(t,e){t.min=e.min,t.max=e.max}function rR(t,e){rA(t.x,e.x),rA(t.y,e.y)}function rk(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rM(t){return 0===t.translate&&1===t.scale}function rD(t){return rM(t.x)&&rM(t.y)}function rC(t,e){return t.min===e.min&&t.max===e.max}function rV(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rL(t,e){return rV(t.x,e.x)&&rV(t.y,e.y)}function rj(t){return nG(t.x)/nG(t.y)}function rO(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}let rI=["TopLeft","TopRight","BottomLeft","BottomRight"],rF=rI.length,rB=t=>"string"==typeof t?parseFloat(t):t,rU=t=>"number"==typeof t||T.test(t);function r$(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rN=r_(0,.5,i9),rW=r_(.5,.95,tE);function r_(t,e,i){return n=>n<t?0:n>e?1:i(nn(t,e,n))}var rz=i(1464);function rq(t){return(0,rz.K)(t)&&"ownerSVGElement"in t}let rY=(t,e)=>t.depth-e.depth;class rH{constructor(){this.children=[],this.isDirty=!1}add(t){tq(this.children,t),this.isDirty=!0}remove(t){tY(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rY),this.isDirty=!1,this.children.forEach(t)}}class rX{constructor(){this.members=[]}add(t){tq(this.members,t),t.scheduleRender()}remove(t){if(tY(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rG={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rK=["","X","Y","Z"],rZ=0;function rQ(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function rJ({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=rZ++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tk.value&&(rG.nodes=rG.calculatedTargetDeltas=rG.calculatedProjections=0),this.nodes.forEach(r5),this.nodes.forEach(r8),this.nodes.forEach(st),this.nodes.forEach(r2),tk.addProjectionMetrics&&tk.addProjectionMetrics(rG)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rH)}
1addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tH),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=rq(e)&&!(rq(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i;let n=0,r=()=>this.root.updateBlockedByResize=!1;tD.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tZ.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&(tC(n),t(r-250))};return tD.setup(n,!0),()=>tC(n)}(r,0),rg.hasAnimatedSinceResize&&(rg.hasAnimatedSinceResize=!1,this.nodes.forEach(r7)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||so,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rL(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...im(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||r7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tC(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(se),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[ia];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tD,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r6);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(r4);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r9),this.nodes.forEach(r0),this.nodes.forEach(r1)):this.nodes.forEach(r4),this.clearAllSnapshots();let t=tZ.now();tV.delta=o(0,1e3/60,t-tV.timestamp),tV.timestamp=t,tV.isProcessing=!0,tL.update.process(tV),tL.preRender.process(tV),tL.render.process(tV),tV.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tX.read(this.scheduleUpdate))}
1clearAllSnapshots(){this.nodes.forEach(r3),this.sharedNodes.forEach(si)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tD.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tD.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||nG(this.snapshot.measuredBox.x)||nG(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=X(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rD(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eL(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),su((e=n).x),su(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return X();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sc))){let{scroll:t}=this.root;t&&(eB(e.x,t.offset.x),eB(e.y,t.offset.y))}return e}removeElementScroll(t){let e=X();if(rR(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&rR(e,t),eB(e.x,r.offset.x),eB(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=X();rR(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&e$(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),eL(n.latestValues)&&e$(i,n.latestValues)}return eL(this.latestValues)&&e$(i,this.latestValues),i}removeTransform(t){let e=X();rR(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!eL(i.latestValues))continue;eV(i.latestValues)&&i.updateSnapshot();let n=X();rR(n,i.measurePageBox()),rE(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return eL(this.latestValues)&&rE(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.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!==tV.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=tV.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=X(),this.targetWithTransforms=X()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,nQ(o.x,a.x,l.x),nQ(o.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rR(this.target,this.layout.layoutBox),eF(this.target,this.targetDelta)):rR(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0),tk.value&&rG.calculatedTargetDeltas++}}getClosestProjectingParent(){return!this.parent||eV(this.parent.latestValues)||ej(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=X(),this.relativeTargetOrigin=X(),n0(this.relativeTargetOrigin,e,i),rR(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tV.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;rR(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let r,s;let o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&e$(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,eF(t,s)),n&&eL(r.latestValues)&&e$(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=X());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rk(this.prevProjectionDelta.x,this.projectionDelta.x),rk(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nZ(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&rO(this.projectionDelta.x,this.prevProjectionDelta.x)&&rO(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),tk.value&&rG.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Y(),this.projectionDelta=Y(),this.projectionDeltaWithTransform=Y()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=Y();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=X(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(ss));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(sn(o.x,t.x,n),sn(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;n0(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,sr(p.x,f.x,a.x,n),sr(p.y,f.y,a.y,n),i&&(u=this.relativeTarget,d=i,rC(u.x,d.x)&&rC(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=X()),rR(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=eS(0,i.opacity??1,rN(n)),t.opacityExit=eS(e.opacity??1,0,rW(n))):s&&(t.opacity=eS(e.opacity??1,i.opacity??1,n));for(let r=0;r<rF;r++){let s=`border${rI[r]}Radius`,o=r$(e,s),a=r$(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rU(o)===rU(a)?(t[s]=Math.max(eS(rB(o),rB(a),n),0),(b.test(a)||b.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eS(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tC(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tD.update(()=>{rg.hasAnimatedSinceResize=!0,iT.layout++,this.motionValue||(this.motionValue=t1(0)),this.currentAnimation=function(t,e,
1i){let n=G(t)?t:t1(t);return n.start(nj("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{iT.layout--},onComplete:()=>{iT.layout--,t.onComplete&&t.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 t=this.getStack();t&&t.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 t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&sh(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||X();let e=nG(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nG(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}rR(e,i),e$(e,r),nZ(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rX),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&rQ("z",t,n,this.animationValues);for(let e=0;e<rK.length;e++)rQ(`rotate${rK[e]}`,t,n,this.animationValues),rQ(`skew${rK[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=e6(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=e6(e?.pointerEvents)||""),this.hasProjected&&!eL(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eE){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eE[e],l="none"===s?r[e]:i(r[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?e6(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(r6),this.root.sharedNodes.clear()}}}function r0(t){t.updateLayout()}function r1(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?nX(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=nG(n);n.min=i[t].min,n.max=n.min+r}):sh(r,e.layoutBox,i)&&nX(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=nG(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=Y();nZ(o,i,e.layoutBox);let a=Y();s?nZ(a,t.applyTransform(n,!0),e.measuredBox):nZ(a,i,e.layoutBox);let l=!rD(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=X();n0(o,e.layoutBox,r.layoutBox);let a=X();n0(a,i,s.layoutBox),rL(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function r5(t){tk.value&&rG.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function r2(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r3(t){t.clearSnapshot()}function r6(t){t.clearMeasurements()}function r4(t){t.isLayoutDirty=!1}function r9(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r7(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function r8(t){t.resolveTargetDelta()}function st(t){t.calcProjection()}function se(t){t.resetSkewAndRotation()}function si(t){t.removeLeadSnapshot()}function sn(t,e,i){t.translate=eS(e.translate,0,i),t.scale=eS(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sr(t,e,i,n){t.min=eS(e.min,i.min,n),t.max=eS(e.max,i.max,n)}function ss(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let so={duration:.45,ease:[.4,0,.1,1]},sa=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sl=sa("applewebkit/")&&!sa("chrome/")?Math.round:tE;function su(t){t.min=sl(t.min),t.max=sl(t.max)}function sh(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rj(e)-rj(i)))}function sc(t){return t!==t.root&&t.scroll?.wasRoot}let sd=rJ({attachResizeListener:(t,e)=>n2(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sp={current:void 0},sf=rJ({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sp.current){let t=new sd({});t.mount(window),t.setOptions({layoutScroll:!0}),sp.current=t}return sp.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sm(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sg(t){return!("touch"===t.pointerType||nH.x||nH.y)}function sy(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&tD.postRender(()=>r(e,n6(e)))}class sv extends id{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=sm(t,i),o=t=>{if(!sg(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{sg(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}(t,(t,e)=>(sy(this.node,e,"Start"),t=>sy(this.node,t,"End"))))}unmount(){}}class sw extends id{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ib(n2(this.node.current,"focus",()=>this.onFocus()),n2(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var sx=i(3537);let sb=(t,e)=>!!e&&(t===e||sb(t,e.parentElement)),sT=new WeakSet;function sP(t){return e=>{"Enter"===e.key&&t(e)}}function sS(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let sE=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=sP(()=>{if(sT.has(i))return;sS(i,"down");let t=sP(()=>{sS(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sS(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function sA(t){return n3(t)&&!(nH.x||nH.y)}function sR(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&tD.postRender(()=>r(e,n6(e)))}class sk extends id{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[n,r,s]=sm(t,i),o=t=>{let n=t.currentTarget;if(!sA(t))return;sT.add(n);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sT.has(n)&&sT.delete(n),sA(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||sb(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),!(0,sx.R)(t)||(t.addEventListener("focus",t=>sE(t,r)),n5(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(sR(this.node,e,"Start"),(t,{success:e})=>sR(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let sM=new WeakMap,sD=new WeakMap,sC=t=>{let e=sM.get(t.target);e&&e(t)},sV=t=>{t.forEach(sC)},sL={some:0,all:1};class sj extends id{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:sL[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;sD.has(i)||sD.set(i,{});let n=sD.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(sV,{root:t,...e})),n[r]}(e);return sM.set(t,i),n.observe(t),()=>{sM.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let sO=function(t,e){if("undefined"==typeof Proxy)return ic;let i=new Map,n=(i,n)=>ic(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,ic(s,void 0,t,e)),i.get(s))})}({animation:{Feature:nz},exit:{Feature:nY},inView:{Feature:sj},tap:{Feature:sk},focus:{Feature:sw},hover:{Feature:sv},pan:{Feature:rm},drag:{Feature:rp,ProjectionNode:sf,MeasureLayout:rx},layout:{ProjectionNode:sf,MeasureLayout:rx}},(t,e)=>e.isSVG??eY(t)?new eM(e):new eW(e,{allowProjection:t!==ez.Fragment}))},4563:function(t,e,i){"use strict";i.d(e,{j:function(){return n}});let n="undefined"!=typeof window},3576:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(2265);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},1534:function(t,e,i){"use strict";i.d(e,{L:function(){return r}});var n=i(2265);let r=i(4563).j?n.useLayoutEffect:n.useEffect},4131:function(t,e,i){"use strict";function n(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)t[n]=i[n]}return t}i.d(e,{Z:function(){return r}});var r=function t(e,i){function r(t,r,s){if("undefined"!=typeof document){"number"==typeof(s=n({},i,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in s)s[a]&&(o+="; "+a,!0!==s[a]&&(o+="="+s[a].split(";")[0]));return document.cookie=t+"="+e.write(r,t)+o}}return Object.create({set:r,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var i=document.cookie?document.cookie.split("; "):[],n={},r=0;r<i.length;r++){var s=i[r].split("="),o=s.slice(1).join("=");try{var a=decodeURIComponent(s[0]);if(n[a]=e.read(o,a),t===a)break}catch(t){}}return t?n[t]:n}},remove:function(t,e){r(t,"",n({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,n({},this.attributes,e))},withConverter:function(e){return t(n({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
1URIComponent)}},{path:"/"})},3537:function(t,e,i){"use strict";i.d(e,{R:function(){return r}});var n=i(1464);function r(t){return(0,n.K)(t)&&"offsetHeight"in t}},1464:function(t,e,i){"use strict";function n(t){return"object"==typeof t&&null!==t}i.d(e,{K:function(){return n}})},9064:function(t,e,i){"use strict";let n,r;function s(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}i.d(e,{Toaster:function(){return tk}});var o,a=i(2265);let l={data:""},u=t=>{if("object"==typeof window){let e=(t?t.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return e.nonce=window.__nonce__,e.parentNode||(t||document.head).appendChild(e),e.firstChild}return t||l},h=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,c=/\/\*[^]*?\*\/|  +/g,d=/\n+/g,p=(t,e)=>{let i="",n="",r="";for(let s in t){let o=t[s];"@"==s[0]?"i"==s[1]?i=s+" "+o+";":n+="f"==s[1]?p(o,s):s+"{"+p(o,"k"==s[1]?"":e)+"}":"object"==typeof o?n+=p(o,e?e.replace(/([^,])+/g,t=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,e=>/&/.test(e)?e.replace(/&/g,t):t?t+" "+e:e)):s):null!=o&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=p.p?p.p(s,o):s+":"+o+";")}return i+(e&&r?e+"{"+r+"}":r)+n},f={},m=t=>{if("object"==typeof t){let e="";for(let i in t)e+=i+m(t[i]);return e}return t},g=(t,e,i,n,r)=>{var s;let o=m(t),a=f[o]||(f[o]=(t=>{let e=0,i=11;for(;e<t.length;)i=101*i+t.charCodeAt(e++)>>>0;return"go"+i})(o));if(!f[a]){let e=o!==t?t:(t=>{let e,i,n=[{}];for(;e=h.exec(t.replace(c,""));)e[4]?n.shift():e[3]?(i=e[3].replace(d," ").trim(),n.unshift(n[0][i]=n[0][i]||{})):n[0][e[1]]=e[2].replace(d," ").trim();return n[0]})(t);f[a]=p(r?{["@keyframes "+a]:e}:e,i?"":"."+a)}let l=i&&f.g?f.g:null;return i&&(f.g=f[a]),s=f[a],l?e.data=e.data.replace(l,s):-1===e.data.indexOf(s)&&(e.data=n?s+e.data:e.data+s),a},y=(t,e,i)=>t.reduce((t,n,r)=>{let s=e[r];if(s&&s.call){let t=s(i),e=t&&t.props&&t.props.className||/^go/.test(t)&&t;s=e?"."+e:t&&"object"==typeof t?t.props?"":p(t,""):!1===t?"":t}return t+n+(null==s?"":s)},"");function v(t){let e=this||{},i=t.call?t(e.p):t;return g(i.unshift?i.raw?y(i,[].slice.call(arguments,1),e.p):i.reduce((t,i)=>Object.assign(t,i&&i.call?i(e.p):i),{}):i,u(e.target),e.g,e.o,e.k)}v.bind({g:1});let w,x,b,T=v.bind({k:1});function P(t,e){let i=this||{};return function(){let n=arguments;function r(s,o){let a=Object.assign({},s),l=a.className||r.className;i.p=Object.assign({theme:x&&x()},a),i.o=/ *go\d+/.test(l),a.className=v.apply(i,n)+(l?" "+l:""),e&&(a.ref=o);let u=t;return t[0]&&(u=a.as||t,delete a.as),b&&u[0]&&b(a),w(u,a)}return e?e(r):r}}function S(){let t=s(["\nfrom {\n  transform: scale(0) rotate(45deg);\n	opacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n  opacity: 1;\n}"]);return S=function(){return t},t}function E(){let t=s(["\nfrom {\n  transform: scale(0);\n  opacity: 0;\n}\nto {\n  transform: scale(1);\n  opacity: 1;\n}"]);return E=function(){return t},t}function A(){let t=s(["\nfrom {\n  transform: scale(0) rotate(90deg);\n	opacity: 0;\n}\nto {\n  transform: scale(1) rotate(90deg);\n	opacity: 1;\n}"]);return A=function(){return t},t}function R(){let t=s(["\n  width: 20px;\n  opacity: 0;\n  height: 20px;\n  border-radius: 10px;\n  background: ",";\n  position: relative;\n  transform: rotate(45deg);\n\n  animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n  animation-delay: 100ms;\n\n  &:after,\n  &:before {\n    content: '';\n    animation: "," 0.15s ease-out forwards;\n    animation-delay: 150ms;\n    position: absolute;\n    border-radius: 3px;\n    opacity: 0;\n    background: ",";\n    bottom: 9px;\n    left: 4px;\n    height: 2px;\n    width: 12px;\n  }\n\n  &:before {\n    animation: "," 0.15s ease-out forwards;\n    animation-delay: 180ms;\n    transform: rotate(90deg);\n  }\n"]);return R=function(){return t},t}function k(){let t=s(["\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n"]);return k=function(){return t},t}function M(){let t=s(["\n  width: 12px;\n  height: 12px;\n  box-sizing: border-box;\n  border: 2px solid;\n  border-radius: 100%;\n  border-color: ",";\n  border-right-color: ",";\n  animation: "," 1s linear infinite;\n"]);return M=function(){return t},t}function D(){let t=s(["\nfrom {\n  transform: scale(0) rotate(45deg);\n	opacity: 0;\n}\nto {\n  transform: scale(1) rotate(45deg);\n	opacity: 1;\n}"]);return D=function(){return t},t}function C(){let t=s(["\n0% {\n	height: 0;\n	width: 0;\n	opacity: 0;\n}\n40% {\n  height: 0;\n	width: 6px;\n	opacity: 1;\n}\n100% {\n  opacity: 1;\n  height: 10px;\n}"]);return C=function(){return t},t}
1function V(){let t=s(["\n  width: 20px;\n  opacity: 0;\n  height: 20px;\n  border-radius: 10px;\n  background: ",";\n  position: relative;\n  transform: rotate(45deg);\n\n  animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n  animation-delay: 100ms;\n  &:after {\n    content: '';\n    box-sizing: border-box;\n    animation: "," 0.2s ease-out forwards;\n    opacity: 0;\n    animation-delay: 200ms;\n    position: absolute;\n    border-right: 2px solid;\n    border-bottom: 2px solid;\n    border-color: ",";\n    bottom: 6px;\n    left: 6px;\n    height: 10px;\n    width: 6px;\n  }\n"]);return V=function(){return t},t}function L(){let t=s(["\n  position: absolute;\n"]);return L=function(){return t},t}function j(){let t=s(["\n  position: relative;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  min-width: 20px;\n  min-height: 20px;\n"]);return j=function(){return t},t}function O(){let t=s(["\nfrom {\n  transform: scale(0.6);\n  opacity: 0.4;\n}\nto {\n  transform: scale(1);\n  opacity: 1;\n}"]);return O=function(){return t},t}function I(){let t=s(["\n  position: relative;\n  transform: scale(0.6);\n  opacity: 0.4;\n  min-width: 20px;\n  animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n"]);return I=function(){return t},t}function F(){let t=s(["\n  display: flex;\n  align-items: center;\n  background: #fff;\n  color: #363636;\n  line-height: 1.3;\n  will-change: transform;\n  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n  max-width: 350px;\n  pointer-events: auto;\n  padding: 8px 10px;\n  border-radius: 8px;\n"]);return F=function(){return t},t}function B(){let t=s(["\n  display: flex;\n  justify-content: center;\n  margin: 4px 10px;\n  color: inherit;\n  flex: 1 1 auto;\n  white-space: pre-line;\n"]);return B=function(){return t},t}function U(){let t=s(["\n  z-index: 9999;\n  > * {\n    pointer-events: auto;\n  }\n"]);return U=function(){return t},t}var $=t=>"function"==typeof t,N=(t,e)=>$(t)?t(e):t,W=(n=0,()=>(++n).toString()),_=()=>{if(void 0===r&&"u">typeof window){let t=matchMedia("(prefers-reduced-motion: reduce)");r=!t||t.matches}return r},z="default",q=(t,e)=>{let{toastLimit:i}=t.settings;switch(e.type){case 0:return{...t,toasts:[e.toast,...t.toasts].slice(0,i)};case 1:return{...t,toasts:t.toasts.map(t=>t.id===e.toast.id?{...t,...e.toast}:t)};case 2:let{toast:n}=e;return q(t,{type:t.toasts.find(t=>t.id===n.id)?1:0,toast:n});case 3:let{toastId:r}=e;return{...t,toasts:t.toasts.map(t=>t.id===r||void 0===r?{...t,dismissed:!0,visible:!1}:t)};case 4:return void 0===e.toastId?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(t=>t.id!==e.toastId)};case 5:return{...t,pausedAt:e.time};case 6:let s=e.time-(t.pausedAt||0);return{...t,pausedAt:void 0,toasts:t.toasts.map(t=>({...t,pauseDuration:t.pauseDuration+s}))}}},Y=[],H={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},X={},G=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z;X[e]=q(X[e]||H,t),Y.forEach(t=>{let[i,n]=t;i===e&&n(X[e])})},K=t=>Object.keys(X).forEach(e=>G(t,e)),Z=t=>Object.keys(X).find(e=>X[e].toasts.some(e=>e.id===t)),Q=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z;return e=>{G(e,t)}},J={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},tt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,[i,n]=(0,a.useState)(X[e]||H),r=(0,a.useRef)(X[e]);(0,a.useEffect)(()=>(r.current!==X[e]&&n(X[e]),Y.push([e,n]),()=>{let t=Y.findIndex(t=>{let[i]=t;return i===e});t>-1&&Y.splice(t,1)}),[e]);let s=i.toasts.map(e=>{var i,n,r;return{...t,...t[e.type],...e,removeDelay:e.removeDelay||(null==(i=t[e.type])?void 0:i.removeDelay)||(null==t?void 0:t.removeDelay),duration:e.duration||(null==(n=t[e.type])?void 0:n.duration)||(null==t?void 0:t.duration)||J[e.type],style:{...t.style,...null==(r=t[e.type])?void 0:r.style,...e.style}}});return{...i,toasts:s}},te=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",i=arguments.length>2?arguments[2]:void 0;return{createdAt:Date.now(),visible:!0,dismissed:!1,type:e,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0,...i,id:(null==i?void 0:i.id)||W()}},ti=t=>(e,i)=>{let n=te(e,t,i);return Q(n.toasterId||Z(n.id))({type:2,toast:n}),n.id},tn=(t,e)=>ti("blank")(t,e);tn.error=ti("error"),tn.success=ti("success"),tn.loading=ti("loading"),tn.custom=ti("custom"),tn.dismiss=(t,e)=>{let i={type:3,toastId:t};e?Q(e)(i):K(i)},tn.dismissAll=t=>tn.dismiss(void 0,t),tn.remove=(t,e)=>{let i={type:4,toastId:t};e?Q(e)(i):K(i)},tn.removeAll=t=>tn.remove(void 0,t),tn.promise=(t,e,i)=>{let n=tn.loading(e.loading,{...i,...null==i?void 0:i.loading});return"function"==typeof t&&(t=t()),t.then(t=>{let r=e.success?N(e.success,t):void 0;return r?tn.success(r,{id:n,...i,...null==i?void 0:i.success}):tn.dismiss(n),t}).catch(t=>{let r=e.error?N(e.error,t):void 0;r?tn.error(r,{id:n,...i,...null==i?void 0:i.error}):tn.dismiss(n)}),t};var tr=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",{toasts:i,pausedAt:n}=tt(t,e),r=(0,a.useRef)(new Map).current,s=(0,a.useCallback)(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(r.has(t))return;let i=setTimeout(()=>{r.delete(t),o({type:4,toastId:t})},e);r.set(t,i)},[]);(0,a.useEffect)(()=>
1{if(n)return;let t=Date.now(),r=i.map(i=>{if(i.duration===1/0)return;let n=(i.duration||0)+i.pauseDuration-(t-i.createdAt);if(n<0){i.visible&&tn.dismiss(i.id);return}return setTimeout(()=>tn.dismiss(i.id,e),n)});return()=>{r.forEach(t=>t&&clearTimeout(t))}},[i,n,e]);let o=(0,a.useCallback)(Q(e),[e]),l=(0,a.useCallback)(()=>{o({type:5,time:Date.now()})},[o]),u=(0,a.useCallback)((t,e)=>{o({type:1,toast:{id:t,height:e}})},[o]),h=(0,a.useCallback)(()=>{n&&o({type:6,time:Date.now()})},[n,o]),c=(0,a.useCallback)((t,e)=>{let{reverseOrder:n=!1,gutter:r=8,defaultPosition:s}=e||{},o=i.filter(e=>(e.position||s)===(t.position||s)&&e.height),a=o.findIndex(e=>e.id===t.id),l=o.filter((t,e)=>e<a&&t.visible).length;return o.filter(t=>t.visible).slice(...n?[l+1]:[0,l]).reduce((t,e)=>t+(e.height||0)+r,0)},[i]);return(0,a.useEffect)(()=>{i.forEach(t=>{if(t.dismissed)s(t.id,t.removeDelay);else{let e=r.get(t.id);e&&(clearTimeout(e),r.delete(t.id))}})},[i,s]),{toasts:i,handlers:{updateHeight:u,startPause:l,endPause:h,calculateOffset:c}}},ts=T(S()),to=T(E()),ta=T(A()),tl=P("div")(R(),t=>t.primary||"#ff4b4b",ts,to,t=>t.secondary||"#fff",ta),tu=T(k()),th=P("div")(M(),t=>
1t.secondary||"#e0e0e0",t=>t.primary||"#616161",tu),tc=T(D()),td=T(C()),tp=P("div")(V(),t=>t.primary||"#61d345",tc,td,t=>t.secondary||"#fff"),tf=P("div")(L()),tm=P("div")(j()),tg=T(O()),ty=P("div")(I(),tg),tv=t=>{let{toast:e}=t,{icon:i,type:n,iconTheme:r}=e;return void 0!==i?"string"==typeof i?a.createElement(ty,null,i):i:"blank"===n?null:a.createElement(tm,null,a.createElement(th,{...r}),"loading"!==n&&a.createElement(tf,null,"error"===n?a.createElement(tl,{...r}):a.createElement(tp,{...r})))},tw=t=>"\n0% {transform: translate3d(0,".concat(-200*t,"%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n"),tx=t=>"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,".concat(-150*t,"%,-1px) scale(.6); opacity:0;}\n"),tb=P("div")(F()),tT=P("div")(B()),tP=(t,e)=>{let i=t.includes("top")?1:-1,[n,r]=_()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[tw(i),tx(i)];return{animation:e?"".concat(T(n)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(T(r)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}},tS=a.memo(t=>{let{toast:e,position:i,style:n,children:r}=t,s=e.height?tP(e.position||i||"top-center",e.visible):{opacity:0},o=a.createElement(tv,{toast:e}),l=a.createElement(tT,{...e.ariaProps},N(e.message,e));return a.createElement(tb,{className:e.className,style:{...s,...n,...e.style}},"function"==typeof r?r({icon:o,message:l}):a.createElement(a.Fragment,null,o,l))});o=a.createElement,p.p=void 0,w=o,x=void 0,b=void 0;var tE=t=>{let{id:e,className:i,style:n,onHeightUpdate:r,children:s}=t,o=a.useCallback(t=>{if(t){let i=()=>{r(e,t.getBoundingClientRect().height)};i(),new MutationObserver(i).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return a.createElement("div",{ref:o,className:i,style:n},s)},tA=(t,e)=>{let i=t.includes("top"),n=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:_()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(e*(i?1:-1),"px)"),...i?{top:0}:{bottom:0},...n}},tR=v(U()),tk=t=>{let{reverseOrder:e,position:i="top-center",toastOptions:n,gutter:r,children:s,toasterId:o,containerStyle:l,containerClassName:u}=t,{toasts:h,handlers:c}=tr(n,o);return a.createElement("div",{"data-rht-toaster":o||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...l},className:u,onMouseEnter:c.startPause,onMouseLeave:c.endPause},h.map(t=>{let n=t.position||i,o=tA(n,c.calculateOffset(t,{reverseOrder:e,gutter:r,defaultPosition:i}));return a.createElement(tE,{id:t.id,key:t.id,onHeightUpdate:c.updateHeight,className:t.visible?tR:"",style:o},"custom"===t.type?N(t.message,t):s?s(t):a.createElement(tS,{toast:t,position:n}))}))}},6163:function(t,e,i){"use strict";let n;i.d(e,{ZP:function(){return ts}});var r=i(2265),s=i(2558),o=Object.prototype.hasOwnProperty;let a=new WeakMap,l=()=>{},u=l(),h=Object,c=t=>t===u,d=t=>"function"==typeof t,p=(t,e)=>({...t,...e}),f=t=>d(t.then),m={},g={},y="undefined",v=typeof window!=y,w=typeof document!=y,x=v&&"Deno"in window,b=()=>v&&typeof window.requestAnimationFrame!=y,T=(t,e)=>{let i=a.get(t);return[()=>!c(e)&&t.get(e)||m,n=>{if(!c(e)){let r=t.get(e);e in g||(g[e]=r),i[5](e,p(r,n),r||m)}},i[6],()=>!c(e)&&e in g?g[e]:!c(e)&&t.get(e)||m]},P=!0,[S,E]=v&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[l,l],A={initFocus:t=>(w&&document.addEventListener("visibilitychange",t),S("focus",t),()=>{w&&document.removeEventListener("visibilitychange",t),E("focus",t)}),initReconnect:t=>{let e=()=>{P=!0,t()},i=()=>{P=!1};return S("online",e),S("offline",i),()=>{E("online",e),E("offline",i)}}},R=!r.useId,k=!v||x,M=t=>b()?window.requestAnimationFrame(t):setTimeout(t,1),D=k?r.useEffect:r.useLayoutEffect,C="undefined"!=typeof navigator&&navigator.connection,V=!k&&C&&(["slow-2g","2g"].includes(C.effectiveType)||C.saveData),L=new WeakMap,j=t=>h.prototype.toString.call(t),O=(t,e)=>t==="[object ".concat(e,"]"),I=0,F=t=>{let e,i;let n=typeof t,r=j(t),s=O(r,"Date"),o=O(r,"RegExp"),a=O(r,"Object");
1if(h(t)!==t||s||o)e=s?t.toJSON():"symbol"==n?t.toString():"string"==n?JSON.stringify(t):""+t;else{if(e=L.get(t))return e;if(e=++I+"~",L.set(t,e),Array.isArray(t)){for(i=0,e="@";i<t.length;i++)e+=F(t[i])+",";L.set(t,e)}if(a){e="#";let n=h.keys(t).sort();for(;!c(i=n.pop());)c(t[i])||(e+=i+":"+F(t[i])+",");L.set(t,e)}}return e},B=t=>{if(d(t))try{t=t()}catch(e){t=""}let e=t;return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?F(t):"",e]},U=0,$=()=>++U;async function N(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];let[n,r,s,o]=e,l=p({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{}),h=l.populateCache,m=l.rollbackOnError,g=l.optimisticData,y=t=>"function"==typeof m?m(t):!1!==m,v=l.throwOnError;if(d(r)){let t=[];for(let e of n.keys())!/^\$(inf|sub)\$/.test(e)&&r(n.get(e)._k)&&t.push(e);return Promise.all(t.map(w))}return w(r);async function w(t){let i;let[r]=B(t);if(!r)return;let[o,p]=T(n,r),[m,w,x,b]=a.get(n),P=()=>{let e=m[r];return(d(l.revalidate)?l.revalidate(o().data,t):!1!==l.revalidate)&&(delete x[r],delete b[r],e&&e[0])?e[0](2).then(()=>o().data):o().data};if(e.length<3)return P();let S=s,E=!1,A=$();w[r]=[A,0];let R=!c(g),k=o(),M=k.data,D=k._c,C=c(D)?M:D;if(R&&p({data:g=d(g)?g(C,M):g,_c:C}),d(S))try{S=S(C)}catch(t){i=t,E=!0}if(S&&f(S)){if(S=await S.catch(t=>{i=t,E=!0}),A!==w[r][0]){if(E)throw i;return S}E&&R&&y(i)&&(h=!0,p({data:C,_c:u}))}if(h&&!E&&(d(h)?p({data:h(S,C),error:u,_c:u}):p({data:S,error:u,_c:u})),w[r][1]=$(),Promise.resolve(P()).then(()=>{p({_c:u})}),E){if(v)throw i;return}return S}}let W=(t,e)=>{for(let i in t)t[i][0]&&t[i][0](e)},_=(t,e)=>{if(!a.has(t)){let i=p(A,e),n=Object.create(null),r=N.bind(u,t),s=l,o=Object.create(null),h=(t,e)=>{let i=o[t]||[];return o[t]=i,i.push(e),()=>i.splice(i.indexOf(e),1)},c=(e,i,n)=>{t.set(e,i);let r=o[e];if(r)for(let t of r)t(i,n)},d=()=>{if(!a.has(t)&&(a.set(t,[n,Object.create(null),Object.create(null),Object.create(null),r,c,h]),!k)){let e=i.initFocus(setTimeout.bind(u,W.bind(u,n,0))),r=i.initReconnect(setTimeout.bind(u,W.bind(u,n,1)));s=()=>{e&&e(),r&&r(),a.delete(t)}}};return d(),[t,r,d,s]}return[t,a.get(t)[4]]},[z,q]=_(new Map),Y=p({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:(t,e,
1i,n,r)=>{let s=i.errorRetryCount,o=r.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*i.errorRetryInterval;(c(s)||!(o>s))&&setTimeout(n,a,r)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:V?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:V?5e3:3e3,compare:function t(e,i){var n,r;if(e===i)return!0;if(e&&i&&(n=e.constructor)===i.constructor){if(n===Date)return e.getTime()===i.getTime();if(n===RegExp)return e.toString()===i.toString();if(n===Array){if((r=e.length)===i.length)for(;r--&&t(e[r],i[r]););return -1===r}if(!n||"object"==typeof e){for(n in r=0,e)if(o.call(e,n)&&++r&&!o.call(i,n)||!(n in i)||!t(e[n],i[n]))return!1;return Object.keys(i).length===r}}return e!=e&&i!=i},isPaused:()=>!1,cache:z,mutate:q,fallback:{}},{isOnline:()=>P,isVisible:()=>{let t=w&&document.visibilityState;return c(t)||"hidden"!==t}}),H=(t,e)=>{let i=p(t,e);if(e){let{use:n,fallback:r}=t,{use:s,fallback:o}=e;n&&s&&(i.use=n.concat(s)),r&&o&&(i.fallback=p(r,o))}return i},X=(0,r.createContext)({}),G=v&&window.__SWR_DEVTOOLS_USE__,K=G?window.__SWR_DEVTOOLS_USE__:[],Z=t=>d(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}],Q=()=>{let t=(0,r.useContext)(X);return(0,r.useMemo)(()=>p(Y,t),[t])},J=K.concat(t=>(e,i,n)=>{let r=i&&((...t)=>{let[n]=B(e),[,,,r]=a.get(z);if(n.startsWith("$inf$"))return i(...t);let s=r[n];return c(s)?i(...t):(delete r[n],s)});return t(e,r,n)}),tt=(t,e,i)=>{let n=e[t]||(e[t]=[]);return n.push(i),()=>{let t=n.indexOf(i);t>=0&&(n[t]=n[n.length-1],n.pop())}};G&&(window.__SWR_DEVTOOLS_REACT__=r);let te=()=>{};te(),new WeakMap;let ti=r.use||(t=>{switch(t.status){case"pending":throw t;case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}),t}}),tn={dedupe:!0},tr=Promise.resolve(u);h.defineProperty(t=>{let{value:e}=t,i=(0,r.useContext)(X),n=d(e),s=(0,r.useMemo)(()=>n?e(i):e,[n,i,e]),o=(0,r.useMemo)(()=>n?s:H(i,s),[n,i,s]),a=s&&s.provider,l=(0,r.useRef)(u);a&&!l.current&&(l.current=_(a(o.cache||z),s));let h=l.current;return h&&(o.cache=h[0],o.mutate=h[1]),D(()=>{if(h)return h[2]&&h[2](),h[3]},[]),(0,r.createElement)(X.Provider,p(t,{value:o}))},"defaultValue",{value:Y});let ts=(n=(t,e,i)=>{let{cache:n,compare:o,suspense:h,fallbackData:m,revalidateOnMount:g,revalidateIfStale:y,refreshInterval:v,refreshWhenHidden:w,refreshWhenOffline:x,keepPreviousData:b,strictServerPrefetchWarning:P}=i,[S,E,A,C]=a.get(n),[V,L]=B(t),j=(0,r.useRef)(!1),O=(0,r.useRef)(!1),I=(0,r.useRef)(V),F=(0,r.useRef)(e),U=(0,r.useRef)(i),W=()=>U.current,_=()=>W().isVisible()&&W().isOnline(),[z,q,Y,H]=T(n,V),X=(0,r.useRef)({}).current,G=c(m)?c(i.fallback)?u:i.fallback[V]:m,K=(t,e)=>{for(let i in X)if("data"===i){if(!o(t[i],e[i])&&(!c(t[i])||!o(tu,e[i])))return!1}else if(e[i]!==t[i])return!1;return!0},Z=(0,r.useMemo)(()=>{let t=!!V&&!!e&&(c(g)?!W().isPaused()&&!h&&!1!==y:g),i=e=>{let i=p(e);return(delete i._k,t)?{isValidating:!0,isLoading:!0,...i}:i},n=z(),r=H(),s=i(n),o=n===r?s:i(r),a=s;return[()=>{let t=i(z());return K(t,a)?(a.data=t.data,a.isLoading=t.isLoading,a.isValidating=t.isValidating,a.error=t.error,a):(a=t,t)},()=>o]},[n,V]),Q=(0,s.useSyncExternalStore)((0,r.useCallback)(t=>Y(V,(e,i)=>{K(i,e)||t()}),[n,V]),Z[0],Z[1]),J=!j.current,te=S[V]&&S[V].length>0,ts=Q.data,to=c(ts)?G&&f(G)?ti(G):G:ts,ta=Q.error,tl=(0,r.useRef)(to),tu=b?c(ts)?c(tl.current)?to:tl.current:ts:to,th=V&&c(to),tc=!k&&(0,s.useSyncExternalStore)(()=>l,()=>!1,()=>!0);P&&tc&&!h&&th&&console.warn(`Missing pre-initiated data for serialized key "${V}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let td=(!te||!!c(ta))&&(J&&!c(g)?g:!W().isPaused()&&(h?!c(to)&&y:c(to)||y)),tp=!!(V&&e&&J&&td),tf=c(Q.isValidating)?tp:Q.isValidating,tm=c(Q.isLoading)?tp:Q.isLoading,tg=(0,r.useCallback)(async t=>{let e,n;let r=F.current;if(!V||!r||O.current||W().isPaused())return!1;let s=!0,a=t||{},l=!A[V]||!a.dedupe,h=()=>R?!O.current&&V===I.current&&j.current:V===I.current,p={isValidating:!1,isLoading:!1},f=()=>{q(p)},m=()=>{let t=A[V];t&&t[1]===n&&delete A[V]},g={isValidating:!0};c(z().data)&&(g.isLoading=!0);try{if(l&&(q(g),i.loadingTimeout&&c(z().data)&&setTimeout(()=>{s&&h()&&W().onLoadingSlow(V,i)},i.loadingTimeout),A[V]=[r(L),$()]),[e,n]=A[V],e=await e,l&&setTimeout(m,i.dedupingInterval),!A[V]||A[V][1]!==n)return l&&h()&&W().onDiscarded(V),!1;p.error=u;let t=E[V];if(!c(t)&&(n<=t[0]||n<=t[1]||0===t[1]))return f(),l&&h()&&W().onDiscarded(V),!1;let a=z().data;p.data=o(a,e)?a:e,l&&h()&&W().onSuccess(e,V,i)}catch(i){m();let t=W(),{shouldRetryOnError:e}=t;!t.isPaused()&&(p.error=i,l&&h()&&(t.onError(i,V,t),(!0===e||d(e)&&e(i))&&(!W().revalidateOnFocus||!W().revalidateOnReconnect||_())&&t.onErrorRetry(i,V,t,t=>{let e=S[V];e&&e[0]&&e[0](3,t)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return s=!1,f(),!0},[V,n]),ty=(0,r.useCallback)((...t)=>N(n,I.current,...t),[]);if(D(()=>{F.current=e,U.current=i,c(ts)||(tl.current=ts)}),D(()=>
1{if(!V)return;let t=tg.bind(u,tn),e=0;W().revalidateOnFocus&&(e=Date.now()+W().focusThrottleInterval);let i=tt(V,S,(i,n={})=>{if(0==i){let i=Date.now();W().revalidateOnFocus&&i>e&&_()&&(e=i+W().focusThrottleInterval,t())}else if(1==i)W().revalidateOnReconnect&&_()&&t();else if(2==i)return tg();else if(3==i)return tg(n)});return O.current=!1,I.current=V,j.current=!0,q({_k:L}),td&&!A[V]&&(c(to)||k?t():M(t)),()=>{O.current=!0,i()}},[V]),D(()=>{let t;function e(){let e=d(v)?v(z().data):v;e&&-1!==t&&(t=setTimeout(i,e))}function i(){!z().error&&(w||W().isVisible())&&(x||W().isOnline())?tg(tn).then(e):e()}return e(),()=>{t&&(clearTimeout(t),t=-1)}},[v,w,x,V]),(0,r.useDebugValue)(tu),h){if(!R&&k&&th)throw Error("Fallback data is required when using Suspense in SSR.");th&&(F.current=e,U.current=i,O.current=!1);let t=C[V];if(ti(!c(t)&&th?ty(t):tr),!c(ta)&&th)throw ta;let n=th?tg(tn):tr;!c(tu)&&th&&(n.status="fulfilled",n.value=!0),ti(n)}return{mutate:ty,get data(){return X.data=!0,tu},get error(){return X.error=!0,ta},get isValidating(){return X.isValidating=!0,tf},get isLoading(){return X.isLoading=!0,tm}}},function(...t){let e=Q(),[i,r,s]=Z(t),o=H(e,s),a=n,{use:l}=o,u=(l||[]).concat(J);for(let t=u.length;t--;)a=u[t](a);return a(i,r||o.fetcher||null,o)})},9625:function(t,e,i){"use strict";i.d(e,{Ue:function(){return d}});let n=t=>{let e;let i=new Set,n=(t,n)=>{let r="function"==typeof t?t(e):t;if(!Object.is(r,e)){let t=e;e=(null!=n?n:"object"!=typeof r||null===r)?r:Object.assign({},e,r),i.forEach(i=>i(e,t))}},r=()=>e,s={setState:n,getState:r,getInitialState:()=>o,subscribe:t=>(i.add(t),()=>i.delete(t)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}},o=e=t(n,r,s);return s},r=t=>t?n(t):n;var s=i(2265),o=i(5195);let{useDebugValue:a}=s,{useSyncExternalStoreWithSelector:l}=o,u=!1,h=t=>t,c=t=>{"function"!=typeof t&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let e="function"==typeof t?r(t):t,i=(t,i)=>(function(t,e=h,i){i&&!u&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),u=!0);let n=l(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,i);return a(n),n})(e,t,i);return Object.assign(i,e),i},d=t=>t?c(t):c}}]);

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.