PageSourceSearch

https://www.artisanbarber.com/_next/static/chunks/0phxgfw3gif6a.js

js artisanbarber.com collected 2026-10-07 00:02:40 UTC 141,258 bytes, 99 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,66033,t=>{"use strict";var e=t.i(48277),i=t.i(30668);function r(t){let e=3*t-2;return 10===e?e:`0${e}`}function n(t,e,i){let n=e-i;return n<=0?`${t-1}-${r(n+4)}`:`${t}-${r(n)}`}function s({client:t,currentSupportedApiVersions:e,apiVersion:i,logger:r}){let n=`${t}: the provided apiVersion ("${i}")`,a=`Currently supported API versions: ${e.join(", ")}`;if(!i||"string"!=typeof i)throw Error(`${n} is invalid. ${a}`);let o=i.trim();e.includes(o)||(r?r({type:"Unsupported_Api_Version",content:{apiVersion:i,supportedApiVersions:e}}):console.warn(`${n} is likely deprecated or not supported. ${a}`))}t.i(39057);let a="GraphQL Client",o="An error occurred while fetching from the API. Review 'graphQLErrors' for details.",l="Response returned unexpected Content-Type:",u="An unknown error has occurred. The API did not return a data object or any errors in its response.",h="application/json",c="X-SDK-Variant",d="X-SDK-Version",p=[429,503],m=/@(defer)\b/i,f=/boundary="?([^=";]+)"?/i,y="\r\n\r\n";function g(t,e=a){return t.startsWith(`${e}`)?t:`${e}: ${t}`}function v(t){return t instanceof Error?t.message:JSON.stringify(t)}function x(t){return t instanceof Error&&t.cause?t.cause:void 0}function b(t){return t.flatMap(({errors:t})=>t??[])}function w({client:t,retries:e}){if(void 0!==e&&("number"!=typeof e||e<0||e>3))throw Error(`${t}: The provided "retries" value (${e}
1) is invalid - it cannot be less than 0 or greater than 3`)}function T(t,e){return e&&("object"!=typeof e||Array.isArray(e)||"object"==typeof e&&Object.keys(e).length>0)?{[t]:e}:{}}function P([t,...e]){return e.reduce(function t(e,i){return Object.keys(i||{}).reduce((r,n)=>(("object"==typeof i[n]||Array.isArray(i[n]))&&e[n]?r[n]=t(e[n],i[n]):r[n]=i[n],r),Array.isArray(e)?[...e]:{...e})},{...t})}async function S(t){return new Promise(e=>setTimeout(e,t))}async function C(t){let{errors:e,data:i,extensions:r}=await t.json();return{...T("data",i),...T("extensions",r),headers:t.headers,...e||!i?{errors:{networkStatusCode:t.status,message:g(e?o:u),...T("graphQLErrors",e),response:t}}:{}}}async function*A(t){let e=new TextDecoder;if(t.body[Symbol.asyncIterator])for await(let i of t.body)yield e.decode(i);else{let i,r=t.body.getReader();try{for(;!(i=await r.read()).done;)yield e.decode(i.value)}finally{r.cancel()}}}let V="application/json",M="Storefront API Client",E=function({storeDomain:t,apiVersion:e,publicAccessToken:i,privateAccessToken:E,clientName:D,retries:R=0,customFetchApi:k,logger:L}){var B,j,F,I,O;let $=function(){let t,e,i,s,{year:a,quarter:o,version:l}=(e=(t=new Date).getUTCMonth(),i=t.getUTCFullYear(),{year:i,quarter:s=Math.floor(e/3+1),version:`${i}-${r(s)}`}),u=4===o?`${a+1}-01`:`${a}-${r(o+1)}`;return[n(a,o,3),n(a,o,2),n(a,o,1),l,u,"unstable"]}(),N=function({client:t,storeDomain:e}){try{if(!e||"string"!=typeof e)throw Error();let t=e.trim(),i=t.match(/^https?:/)?t:`https://${t}`,r=new URL(i);return r.protocol="https",r.origin}catch(i){throw Error(`${t}: a valid store domain ("${e}") must be provided`,{cause:i})}}({client:M,storeDomain:t}),U={client:M,currentSupportedApiVersions:$,logger:L};if(s({...U,apiVersion:e}),!i&&!E)throw Error(`${M}: a public or private access token must be provided`);if(i&&E)throw Error(`${M}: only provide either a public or private access token`);if(E&&"u">typeof window)throw Error(`${M}: private access tokens and headers should only be used in a server-to-server implementation. Use the public API access token in nonserver environments.`);let W=(B=N,j=e,F=U,t=>{t&&s({...F,apiVersion:t});let e=(t??j).trim();return`${B}
1/api/${e}/graphql.json`}),G={storeDomain:N,apiVersion:e,...i?{publicAccessToken:i}:{privateAccessToken:E},headers:{"Content-Type":V,Accept:V,"X-SDK-Variant":"storefront-api-client","X-SDK-Version":"1.0.9",...D?{"X-SDK-Variant-Source":D}:{},...i?{"X-Shopify-Storefront-Access-Token":i}:{"Shopify-Storefront-Private-Token":E}},apiUrl:W(),clientName:D},H=function({headers:t,url:e,customFetchApi:i=fetch,retries:r=0,logger:n}){var s,V,M;w({client:a,retries:r});let E={headers:t,url:e,retries:r},D=function(t,{url:e,headers:i,retries:r}){return async(n,s={})=>{let{variables:o,headers:l,url:u,retries:h,keepalive:p,signal:m}=s,f=JSON.stringify({query:n,variables:o});w({client:a,retries:h});let y=Object.entries({...i,...l}).reduce((t,[e,i])=>(t[e]=Array.isArray(i)?i.join(", "):i.toString(),t),{});return y[c]||y[d]||(y[c]="shopify-graphql-client",y[d]="1.4.1"),t([u??e,{method:"POST",headers:y,body:f,signal:m,keepalive:p}],1,h??r)}}(function({clientLogger:t,customFetchApi:e=fetch,client:i=a,defaultRetryWaitTime:r=1e3,retriableCodes:n=p}){let s=async(a,o,l)=>{let u,h=o+1,c=l+1;try{if(u=await e(...a),t({type:"HTTP-Response",content:{requestParams:a,response:u}}),!u.ok&&n.includes(u.status)&&h<=c)throw Error();let i=u?.headers.get("X-Shopify-API-Deprecated-Reason")||"";return i&&t({type:"HTTP-Response-GraphQL-Deprecation-Notice",content:{requestParams:a,deprecationNotice:i}}),u}catch(e){if(h<=c){let e=u?.headers.get("Retry-After");return await S(e?parseInt(e,10):r),t({type:"HTTP-Retry",content:{requestParams:a,lastResponse:u,retryAttempt:o,maxRetries:l}}),s(a,h,l)}throw Error(g(`${l>0?`Attempted maximum number of ${l} network retries. Last message - `:""}${v(e)}`,i))}};return s}({customFetchApi:i,clientLogger:(s=n,t=>{s&&s(t)}),defaultRetryWaitTime:1e3}),E),R=(V=D,async(...t)=>{if(m.test(t[0]))throw Error(g("This operation will result in a streamable response - use requestStream() instead."));let e=null;try{let{status:i,statusText:r}=e=await V(...t),n=e.headers.get("content-type")||"";if(!e.ok)return{errors:{networkStatusCode:i,message:g(r),response:e}};if(!n.includes(h))return{errors:{networkStatusCode:i,message:g(`${l} ${n}`),response:e}};return await C(e)}catch(t){return{errors:{message:v(t),...null==e?{}:{networkStatusCode:e.status,response:e}}}}}),k=(M=D,async(...t)=>{if(!m.test(t[0]))throw Error(g("This operation does not result in a streamable response - use request() instead."));try{let e=await M(...t),{statusText:i}=e;if(!e.ok)throw Error(i,{cause:e});let r=e.headers.get("content-type")||"";switch(!0){case r.includes(h):return{async *[Symbol.asyncIterator](){let t=await C(e);yield{...t,hasNext:!1}}};case r.includes("multipart/mixed"):return function(t,e){let i,r=(e??"").match(f),n=`--${r?r[1]:"-"}`;if(!t.body?.getReader&&!t.body?.[Symbol.asyncIterator])throw Error("API multipart response did not return an iterable body",{cause:t});let s=A(t),a={};return{async *[Symbol.asyncIterator](){try{let t=!0;for await(let r of{async *[Symbol.asyncIterator](){try{let t="";for await(let e of s)if((t+=e).indexOf(n)>-1){let e=t.lastIndexOf(n),i=t.slice(0,e).split(n).filter(t=>t.trim().length>0).map(t=>t.slice(t.indexOf(y)+y.length).trim());i.length>0&&(yield i),t=t.slice(e+n.length),"--"===t.trim()&&(t="")}}catch(t){throw Error(`Error occured while processing stream payload - ${v(t)}`)}}}){let n=r.map(t=>{try{return JSON.parse(t)}catch(t){throw Error(`Error in parsing multipart response - ${v(t)}`)}}).map(t=>{let{data:e,incremental:i,hasNext:r,extensions:n,errors:s}=t;if(!i)return{data:e||{},...T("errors",s),...T("extensions",n),hasNext:r};let a=i.map(({data:t,path:e,errors:i})=>({data:t&&e?function t(e,i){if(0===e.length)return i;let r={[e.pop()]:i};return 0===e.length?r:t(e,r)}(e,t):{},...T("errors",i)}));return{data:1===a.length?a[0].data:P([...a.map(({data:t})=>t)]),...T("errors",b(a)),hasNext:r}});i=n.find(t=>t.extensions)?.extensions??i;let s=b(n);a=P([a,...n.map(({data:t})=>t)]),t=n.slice(-1)[0].hasNext;var e=a;if(s.length>0)throw Error(o,{cause:{graphQLErrors:s}});if(0===Object.keys(e).length)throw Error(u);yield{...T("data",a),...T("extensions",i),hasNext:t}}if(t)throw Error("Response stream terminated unexpectedly")}catch(r){let e=x(r);yield{...T("data",a),...T("extensions",i),errors:{message:g(v(r)),networkStatusCode:t.status,...T("graphQLErrors",e?.graphQLErrors),response:t},hasNext:!1}}}}}(e,r);default:throw Error(`${l} ${r}`,{cause:e})}}catch(t){return{async *[Symbol.asyncIterator](){let e=x(t);yield{errors:{message:g(v(t)),...T("networkStatusCode",e?.status),...T("response",e)},hasNext:!1}}}}});return{config:E,fetch:D,request:R,requestStream:k}}({headers:G.headers,url:G.apiUrl,retries:R,customFetchApi:k,logger:L}),z=t=>({...t??{},...G.headers}),K=(I=G,O=W,t=>t?O(t):I.apiUrl),X=function({getHeaders:t,getApiUrl:e}){return(i,r)=>{let n=[i];if(r&&Object.keys(r).length>0){let{variables:i,apiVersion:s,headers:a,retries:o,signal:l}=r;n.push({...i?{variables:i}:{},...a?{headers:t(a)}:{},...s?{url:e(s)}:{},...o?{retries:o}:{},...l?{signal:l}:{}})}return n}}({getHeaders:z,getApiUrl:K});return Object.freeze({config:G,getHeaders:z,getApiUrl:K,fetch:(...t)=>H.fetch(...X(...t)),request:(...t)=>H.request(...X(...t)),requestStream:(...t)=>H.requestStream(...X(...t))})}
1({storeDomain:"6af447-a3.myshopify.com",publicAccessToken:"15d21f00aea26d589c27129f9bab9499",apiVersion:"2026-07"}),D=`
2  fragment CartFields on Cart {
3    id
4    checkoutUrl
5    totalQuantity
6    cost {
7      subtotalAmount {
8        amount
9        currencyCode
10      }
11    }
12    lines(first: 50) {
13      edges {
14        node {
15          id
16          quantity
17          cost {
18            totalAmount {
19              amount
20              currencyCode
21            }
22          }
23          merchandise {
24            ... on ProductVariant {
25              id
26              title
27              image {
28                url
29                altText
30              }
31              product {
32                title
33                handle
34                featuredImage {
35                  url
36                  altText
37                }
38              }
39            }
40          }
41        }
42      }
43    }
44  }
45`,R=`
46  query getCart($cartId: ID!) {
47    cart(id: $cartId) {
48      ...CartFields
49    }
50  }
51  ${D}
52`,k=`
53  mutation createCart($input: CartInput!) {
54    cartCreate(input: $input) {
55      cart {
56        ...CartFields
57      }
58      userErrors {
59        field
60        message
61      }
62    }
63  }
64  ${D}
65`,L=`
66  mutation addToCart($cartId: ID!, $lines: [CartLineInput!]!) {
67    cartLinesAdd(cartId: $cartId, lines: $lines) {
68      cart {
69        ...CartFields
70      }
71      userErrors {
72        field
73        message
74      }
75    }
76  }
77  ${D}
78`,B=`
79  mutation removeFromCart($cartId: ID!, $lineIds: [ID!]!) {
80    cartLinesRemove(cartId: $cartId, lineIds: $lineIds) {
81      cart {
82        ...CartFields
83      }
84      userErrors {
85        field
86        message
87      }
88    }
89  }
90  ${D}
91`;function j(t){return{id:t.id,checkoutUrl:t.checkoutUrl,totalQuantity:t.totalQuantity,subtotal:t.cost.subtotalAmount,lines:t.lines.edges.map(({node:t})=>({id:t.id,quantity:t.quantity,merchandiseId:t.merchandise.id,variantTitle:t.merchandise.title,productTitle:t.merchandise.product.title,productHandle:t.merchandise.product.handle,image:t.merchandise.image??t.merchandise.product.featuredImage??null,totalAmount:t.cost.totalAmount}))}}function F(t,e){if(t&&t.length>0)throw console.error(`Shopify ${e} error:`,t),Error(t[0].message)}async function I(t){let e=await E.request(R,{variables:{cartId:t}}),i=e.data?.cart;if(!i)throw Error("Cart not found");return j(i)}async function O(t,e=1){let i=(await E.request(k,{variables:{input:{lines:[{merchandiseId:t,quantity:e}]}}})).data;if(!i?.cartCreate)throw Error("Invalid Shopify response");let{cart:r,userErrors:n}=i.cartCreate;if(F(n,"cartCreate"),!r)throw Error("Cart not returned from Shopify");return j(r)}async function $(t,e,i=1){let r=(await E.request(L,{variables:{cartId:t,lines:[{merchandiseId:e,quantity:i}]}})).data;if(!r?.cartLinesAdd)throw Error("Invalid Shopify response");let{cart:n,userErrors:s}=r.cartLinesAdd;if(F(s,"cartLinesAdd"),!n)throw Error("Cart not returned from Shopify");return j(n)}async function N(t,e){let i=(await E.request(B,{variables:{cartId:t,lineIds:[e]}})).data;if(!i?.cartLinesRemove)throw Error("Invalid Shopify response");let{cart:r,userErrors:n}=i.cartLinesRemove;if(F(n,"cartLinesRemove"),!r)throw Error("Cart not returned from Shopify");return j(r)}let U="shopify_cart_id",W=(0,i.createContext)(null);t.s(["CartProvider",0,function({children:t}){let[r,n]=(0,i.useState)(null),[s,a]=(0,i.useState)(!1),[o,l]=(0,i.useState)(!1),[u,h]=(0,i.useState)(null),c=(0,i.useCallback)(()=>{localStorage.removeItem(U),n(null)},[]);(0,i.useEffect)(()=>{let t=localStorage.getItem(U);if(!t)return;let e=!1;return async function(t){l(!0),h(null);try{let i=await I(t);if(e)return;n(i)}catch(t){if(e)return;console.error("Failed to load cart:",t),c(),h("We could not restore your cart.")}finally{e||l(!1)}}(t),()=>{e=!0}},[c]);let d=(0,i.useCallback)(async(t,e=1)=>{l(!0),h(null);try{let i=localStorage.getItem(U),r=i?await $(i,t,e):await O(t,e);localStorage.setItem(U,r.id),n(r),a(!0)}catch(i){if(!localStorage.getItem(U))throw console.error("Failed to add item:",i),h("We could not add that item to your cart."),i;try{c();let i=await O(t,e);localStorage.setItem(U,i.id),n(i),a(!0)}catch(t){throw console.error("Failed to add item:",t),h("We could not add that item to your cart."),t}}finally{l(!1)}},[c]),p=(0,i.useCallback)(async t=>{let e=r?.id??localStorage.getItem(U);if(e){l(!0),h(null);try{let i=await N(e,t);n(i),localStorage.setItem(U,i.id)}catch(t){console.error("Failed to remove item:",t),h("We could not remove that item.")}finally{l(!1)}}},[r?.id]),m=(0,i.useMemo)(()=>({cart:r,totalQuantity:r?.totalQuantity??0,isOpen:s,isLoading:o,error:u,addItem:d,removeItem:p,openCart:()=>a(!0),closeCart:()=>a(!1),toggleCart:()=>a(t=>!t)}),[d,r,u,o,s,p]);return(0,e.jsx)(W.Provider,{value:m,children:t})},"useCart",0,function(){let t=(0,i.useContext)(W);if(!t)throw Error("useCart must be used within CartProvider");return t},"useOptionalCart",0,function(){return(0,i.useContext)(W)}],66033)},96086,(t,e,i)=>{e.exports=t.r(9187)},56298,t=>{"use strict";let e=(0,t.i(30668).createContext)({});t.s(["LayoutGroupContext",0,e])},50772,t=>{"use strict";var e=t.i(30668);t.s(["useConstant",0,function(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}])},33645,t=>{"use strict";let e="u">typeof window;t.s(["isBrowser",0,e])},53899,t=>{"use strict";var e=t.i(30668);let i=t.i(33645).isBrowser?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",0,i])},8812,t=>{"use strict";let e=(0,t.i(30668).createContext)(null);t.s(["PresenceContext",0,e])},4683,t=>{"use strict";t.s(["isObject",0,function(t){return"object"==typeof t&&null!==t}])},21216,t=>{"use strict";var e=t.i(4683);t.s(["isHTMLElement",0,function(t){return(0,e.isObject)(t)&&"offsetHeight"in t}])},43533,t=>{"use strict";let e=(0,t.i(30668).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,e])},3363,t=>{"use strict";var e=t.i(30668),i=t.i(8812);t.s(["usePresence",0,function(t=!0){let r=(0,e.useContext)(i.PresenceContext);if(null===r)return[!0,null];let{isPresent:n,onExitComplete:s,register:a}=r,o=(0,e.useId)();(0,e.useEffect)(()=>
91{if(t)return a(o)},[t]);let l=(0,e.useCallback)(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,l]:[!0]}])},53938,t=>{"use strict";t.i(39057);var e=t.i(48277),i=t.i(30668),r=t.i(56298),n=t.i(50772),s=t.i(53899),a=t.i(8812),o=t.i(21216),l=i,u=t.i(43533);function h(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class c extends l.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=(0,o.isHTMLElement)(t)&&t.offsetWidth||0,r=this.props.sizeRef.current;r.height=e.offsetHeight||0,r.width=e.offsetWidth||0,r.top=e.offsetTop,r.left=e.offsetLeft,r.right=i-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:t,isPresent:r,anchorX:n,root:s}){let a=(0,l.useId)(),o=(0,l.useRef)(null),p=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:m}=(0,l.useContext)(u.MotionConfigContext),f=function(...t){return i.useCallback(function(...t){return e=>{let i=!1,r=t.map(t=>{let r=h(t,e);return i||"function"!=typeof r||(i=!0),r});if(i)return()=>{for(let e=0;e<r.length;e++){let i=r[e];"function"==typeof i?i():h(t[e],null)}}}}(...t),t)}(o,t?.ref);return(0,l.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:l,right:u}=p.current;if(r||!o.current||!t||!e)return;let h="left"===n?`left: ${l}`:`right: ${u}`;o.current.dataset.motionPopId=a;let c=document.createElement("style");m&&(c.nonce=m);let d=s??document.head;return d.appendChild(c),c.sheet&&c.sheet.insertRule(`
92          [data-motion-pop-id="${a}"] {
93            position: absolute !important;
94            width: ${t}px !important;
95            height: ${e}px !important;
96            ${h}px !important;
97            top: ${i}px !important;
98          }
99        `),()=>{d.contains(c)&&d.removeChild(c)}},[r]),(0,e.jsx)(c,{isPresent:r,childRef:o,sizeRef:p,children:l.cloneElement(t,{ref:f})})}let p=({children:t,initial:r,isPresent:s,onExitComplete:o,custom:l,presenceAffectsLayout:u,mode:h,anchorX:c,root:p})=>{let f=(0,n.useConstant)(m),y=(0,i.useId)(),g=!0,v=(0,i.useMemo)(()=>(g=!1,{id:y,initial:r,isPresent:s,custom:l,onExitComplete:t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;o&&o()},register:t=>(f.set(t,!1),()=>f.delete(t))}),[s,f,o]);return u&&g&&(v={...v}),(0,i.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[s]),i.useEffect(()=>{s||f.size||!o||o()},[s]),"popLayout"===h&&(t=(0,e.jsx)(d,{isPresent:s,anchorX:c,root:p,children:t})),(0,e.jsx)(a.PresenceContext.Provider,{value:v,children:t})};function m(){return new Map}var f=t.i(3363);let y=t=>t.key||"";function g(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}t.s(["AnimatePresence",0,({children:t,custom:a,initial:o=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:d="left",root:m})=>{let[v,x]=(0,f.usePresence)(c),b=(0,i.useMemo)(()=>g(t),[t]),w=c&&!v?[]:b.map(y),T=(0,i.useRef)(!0),P=(0,i.useRef)(b),S=(0,n.useConstant)(()=>new Map),[C,A]=(0,i.useState)(b),[V,M]=(0,i.useState)(b);(0,s.useIsomorphicLayoutEffect)(()=>{T.current=!1,P.current=b;for(let t=0;t<V.length;t++){let e=y(V[t]);w.includes(e)?S.delete(e):!0!==S.get(e)&&S.set(e,!1)}},[V,w.length,w.join("-")]);let E=[];if(b!==C){let t=[...b];for(let e=0;e<V.length;e++){let i=V[e],r=y(i);w.includes(r)||(t.splice(e,0,i),E.push(i))}return"wait"===h&&E.length&&(t=E),M(g(t)),A(b),null}let{forceRender:D}=(0,i.useContext)(r.LayoutGroupContext);return(0,e.jsx)(e.Fragment,{children:V.map(t=>{let i=y(t),r=(!c||!!v)&&(b===V||w.includes(i));return(0,e.jsx)(p,{isPresent:r,initial:(!T.current||!!o)&&void 0,custom:a,presenceAffectsLayout:u,mode:h,root:m,onExitComplete:r?void 0:()=>{if(!S.has(i))return;S.set(i,!0);let t=!0;S.forEach(e=>{e||(t=!1)}),t&&(D?.(),M(P.current),c&&x?.(),l&&l())},anchorX:d,children:t},i)})})}],53938)},89884,2303,64827,56354,83344,90117,1699,66982,27884,95076,10377,42896,95591,48027,97919,11006,38102,91724,13036,52130,50565,40414,67794,76175,89080,7235,50199,85806,80900,46928,51997,72541,94925,19179,6135,47760,53306,19918,t=>{"use strict";let e,i,r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],n=new Set(r);t.s(["transformPropOrder",0,r,"transformProps",0,n],89884);let s=t=>180*t/Math.PI,a=t=>l(s(Math.atan2(t[1],t[0]))),o={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:a,rotateZ:a,skewX:t=>s(Math.atan(t[1])),skewY:t=>s(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},l=t=>((t%=360)<0&&(t+=360),t),u=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),h=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),c={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:u,scaleY:h,scale:t=>(u(t)+h(t))/2,rotateX:t=>l(s(Math.atan2(t[6],t[5]))),rotateY:t=>l(s(Math.atan2(-t[2],t[0]))),rotateZ:a,rotate:a,skewX:t=>s(Math.atan(t[4])),skewY:t=>s(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function d(t){return+!!t.includes("scale")}function p(t,e){let i,r;if(!t||"none"===t)return d(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=c,r=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=o,r=e}if(!r)return d(e);let s=i[e],a=r[1].split(",").map(m);return"function"==typeof s?s(a):a[s]}function m(t){return parseFloat(t.trim())}t.s(["defaultTransformValue",0,d,"parseValueFromTransform",0,p,"readTransformValue",0,(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return p(i,e)}],2303);let f=t=>e=>"string"==typeof e&&e.startsWith(t),y=f("--"),g=f("var(--"),v=t=>!!g(t)&&x.test(t.split("/*")[0].trim()),x=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function b({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function w(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}t.s(["isCSSVariableName",0,y,"isCSSVariableToken",0,v],64827),t.s(["convertBoundingBoxToBox",0,b,"convertBoxToBoundingBox",0,function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}},"transformBoxPoints",0,w],56354);let T=(t,e,i)=>t+(e-t)*i;function P(t){return void 0===t||1===t}function S({scale:t,scaleX:e,scaleY:i}){return!P(t)||!P(e)||!P(i)}function C(t){return S(t)||A(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function A(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function V(t,e,i){return i+e*(t-i)}function M(t,e,i,r,n){return void 0!==n&&(t=V(t,n,r)),V(t,i,r)+e}function E(t,e=0,i=1,r,n){t.min=M(t.min,e,i,r,n),t.max=M(t.max,e,i,r,n)}function D(t,{x:e,y:i}){E(t.x,e.translate,e.scale,e.originPoint),E(t.y,i.translate,i.scale,i.originPoint)}function R(t,e){t.min=t.min+e,t.max=t.max+e}function k(t,e,i,r,n=.5){let s=T(t.min,t.max,n);E(t,e,i,s,r)}function L(t,e){k(t.x,e.x,e.scaleX,e.scale,e.originX),k(t.y,e.y,e.scaleY,e.scale,e.originY)}function B(t,e){return b(w(t.getBoundingClientRect(),e))}t.s(["mixNumber",0,T],83344),t.s(["has2DTranslate",0,A,"hasScale",0,S,"hasTransform",0,C],90117),t.s(["applyBoxDelta",0,D,"applyTreeDeltas",0,function(t,e,
99i,r=!1){let n,s,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){s=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&L(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,D(t,s)),r&&C(n.latestValues)&&L(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}},"scalePoint",0,V,"transformBox",0,L,"translateAxis",0,R],1699),t.s(["measurePageBox",0,function(t,e,i){let r=B(t,i),{scroll:n}=e;return n&&(R(r.x,n.offset.x),R(r.y,n.offset.y)),r},"measureViewportBox",0,B],66982);let j=new Set(["width","height","top","left","right","bottom",...r]);t.s(["positionalKeys",0,j],27884);let F=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",0,F],95076);let I={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},O={...I,transform:t=>F(0,1,t)},$={...I,default:1},N=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),U=N("deg"),W=N("%"),G=N("px"),H=N("vh"),z=N("vw"),K={...W,parse:t=>W.parse(t)/100,transform:t=>W.transform(100*t)};t.s(["degrees",0,U,"percent",0,W,"progressPercentage",0,K,"px",0,G,"vh",0,H,"vw",0,z],10377);let X=t=>e=>e.test(t),q=[I,G,W,U,z,H,{test:t=>"auto"===t,parse:t=>t}],Y=t=>q.find(X(t));t.i(39057);let _=()=>{};t.s(["invariant",0,_,"warning",0,()=>{}],42896);let Z=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);t.s(["isNumericalString",0,Z],95591);let Q=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,J=t=>t===I||t===G,tt=new Set(["x","y","z"]),te=r.filter(t=>!tt.has(t)),ti={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})=>p(e,"x"),y:(t,{transform:e})=>p(e,"y")};ti.translateX=ti.x,ti.translateY=ti.y;let tr=t=>t;t.s(["noop",0,tr],48027);let tn={};t.s(["MotionGlobalConfig",0,tn],97919);let ts=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],ta={value:null,addProjectionMetrics:null};function to(t,e){let i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,a=ts.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,r=new Set,n=!1,s=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){a.has(e)&&(h.schedule(e),t()),l++,e(o)}let h={schedule:(t,e=!1,s=!1)=>{let o=s&&n?i:r;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{r.delete(t),a.delete(t)},process:t=>{if(o=t,n){s=!0;return}n=!0,[i,r]=[r,i],i.forEach(u),e&&ta.value&&ta.value.frameloop[e].push(l),l=0,i.clear(),n=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:m}=a,f=()=>{let s=tn.useManualTiming?n.timestamp:performance.now();i=!1,tn.useManualTiming||(n.delta=r?1e3/60:Math.max(Math.min(s-n.timestamp,40),1)),n.timestamp=s,n.isProcessing=!0,o.process(n),l.process(n),u.process(n),h.process(n),c.process(n),d.process(n),p.process(n),m.process(n),n.isProcessing=!1,i&&e&&(r=!1,t(f))};return{schedule:ts.reduce((e,s)=>{let o=a[s];return e[s]=(e,s=!1,a=!1)=>(!i&&(i=!0,r=!0,n.isProcessing||t(f)),o.schedule(e,s,a)),e},{}),cancel:t=>{for(let e=0;e<ts.length;e++)a[ts[e]].cancel(t)},state:n,steps:a}}t.s(["statsBuffer",0,ta],11006);let{schedule:tl,cancel:tu,state:th,steps:tc}=to("u">typeof requestAnimationFrame?requestAnimationFrame:tr,!0);t.s(["cancelFrame",0,tu,"frame",0,tl,"frameData",0,th,"frameSteps",0,tc],38102);let td=new Set,tp=!1,tm=!1,tf=!1;function ty(){if(tm){let t=Array.from(td).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,r=(e=[],te.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e);r.length&&(i.set(t,r),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)})}tm=!1,tp=!1,td.forEach(t=>t.complete(tf)),td.clear()}function tg(){td.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tm=!0)})}class tv{constructor(t,e,i,r,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(td.add(this),tp||(tp=!0,tl.read(tg),tl.resolveKeyframes(ty))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;if(null===t[0]){let n=r?.get(),s=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let r=i.readValue(e,s);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=s),r&&void 0===n&&r.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),td.delete(this)}cancel(){"scheduled"===this.state&&(td.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}t.s(["KeyframeResolver",0,tv,"flushKeyframeResolvers",0,function(){tf=!0,tg(),ty(),tf=!1}],91724);let tx=t=>/^0[^.\s]+$/u.test(t);t.s(["isZeroValueString",0,tx],13036);let tb=t=>Math.round(1e5*t)/1e5,tw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tP=(t,e)=>i=>!!("string"==typeof i&&tT.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tS=(t,e,
99i)=>r=>{if("string"!=typeof r)return r;let[n,s,a,o]=r.match(tw);return{[t]:parseFloat(n),[e]:parseFloat(s),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},tC={...I,transform:t=>Math.round(F(0,255,t))},tA={test:tP("rgb","red"),parse:tS("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+tC.transform(t)+", "+tC.transform(e)+", "+tC.transform(i)+", "+tb(O.transform(r))+")"};t.s(["rgba",0,tA],52130);let tV={test:tP("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:tA.transform};t.s(["hex",0,tV],50565);let tM={test:tP("hsl","hue"),parse:tS("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+W.transform(tb(e))+", "+W.transform(tb(i))+", "+tb(O.transform(r))+")"};t.s(["hsla",0,tM],40414);let tE={test:t=>tA.test(t)||tV.test(t)||tM.test(t),parse:t=>tA.test(t)?tA.parse(t):tM.test(t)?tM.parse(t):tV.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tA.transform(t):tM.transform(t),getAnimatableNone:t=>{let e=tE.parse(t);return e.alpha=0,tE.transform(e)}};t.s(["color",0,tE],67794);let tD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tR="number",tk="color",tL=/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 tB(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,a=e.replace(tL,t=>(tE.test(t)?(r.color.push(s),n.push(tk),i.push(tE.parse(t))):t.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(t)):(r.number.push(s),n.push(tR),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:a,indexes:r,types:n}}function tj(t){return tB(t).values}function tF(t){let{split:e,types:i}=tB(t),r=e.length;return t=>{let n="";for(let s=0;s<r;s++)if(n+=e[s],void 0!==t[s]){let e=i[s];e===tR?n+=tb(t[s]):e===tk?n+=tE.transform(t[s]):n+=t[s]}return n}}let tI=t=>"number"==typeof t?0:tE.test(t)?tE.getAnimatableNone(t):t,tO={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tw)?.length||0)+(t.match(tD)?.length||0)>0},parse:tj,createTransformer:tF,getAnimatableNone:function(t){let e=tj(t);return tF(t)(e.map(tI))}};t.s(["analyseComplexValue",0,tB,"complex",0,tO],76175);let t$=new Set(["brightness","contrast","saturate","opacity"]);function tN(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(tw)||[];if(!r)return t;let n=i.replace(r,""),s=+!!t$.has(e);return r!==i&&(s*=100),e+"("+s+n+")"}let tU=/\b([a-z-]*)\(.*?\)/gu,tW={...tO,getAnimatableNone:t=>{let e=t.match(tU);return e?e.map(tN).join(" "):t}},tG={...I,transform:Math.round},tH={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,radius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,backgroundPositionX:G,backgroundPositionY:G,rotate:U,rotateX:U,rotateY:U,rotateZ:U,scale:$,scaleX:$,scaleY:$,scaleZ:$,skew:U,skewX:U,skewY:U,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:O,originX:K,originY:K,originZ:G,zIndex:tG,fillOpacity:O,strokeOpacity:O,numOctaves:tG};t.s(["numberValueTypes",0,tH],89080);let tz={...tH,color:tE,backgroundColor:tE,outlineColor:tE,fill:tE,stroke:tE,borderColor:tE,borderTopColor:tE,borderRightColor:tE,borderBottomColor:tE,borderLeftColor:tE,filter:tW,WebkitFilter:tW},tK=t=>tz[t];function tX(t,e){let i=tK(t);return i!==tW&&(i=tO),i.getAnimatableNone?i.getAnimatableNone(e):void 0}t.s(["getDefaultValueType",0,tK],7235),t.s(["getAnimatableNone",0,tX],50199);
99let tq=new Set(["auto","none","0"]);function tY(){i=void 0}t.s(["DOMKeyframesResolver",0,class extends tv{constructor(t,e,i,r,n){super(t,e,i,r,n,!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 r=t[i];if("string"==typeof r&&v(r=r.trim())){let n=function t(e,i,r=1){_(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,s]=function(t){let e=Q.exec(t);if(!e)return[,];let[,i,r,n]=e;return[`--${i??r}`,n]}(e);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let t=a.trim();return Z(t)?parseFloat(t):t}return v(s)?t(s,i,r+1):s}(r,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!j.has(i)||2!==t.length)return;let[r,n]=t,s=Y(r),a=Y(n);if(s!==a)if(J(s)&&J(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else ti[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var r;(null===t[e]||("number"==typeof(r=t[e])?0===r:null===r||"none"===r||"0"===r||tx(r)))&&i.push(e)}i.length&&function(t,e,i){let r,n=0;for(;n<t.length&&!r;){let e=t[n];"string"==typeof e&&!tq.has(e)&&tB(e).values.length&&(r=t[n]),n++}if(r&&i)for(let n of e)t[n]=tX(i,r)}(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=ti[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(i,r).jump(r,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let r=t.getValue(e);r&&r.jump(this.measuredOrigin,!1);let n=i.length-1,s=i[n];i[n]=ti[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
99h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}],85806),t.s(["isMotionValue",0,t=>!!(t&&t.getVelocity)],80900);let t_={now:()=>(void 0===i&&t_.set(th.isProcessing||tn.useManualTiming?th.timestamp:performance.now()),i),set:t=>{i=t,queueMicrotask(tY)}};function tZ(t,e){-1===t.indexOf(e)&&t.push(e)}function tQ(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["time",0,t_],46928),t.s(["addUniqueItem",0,tZ,"removeItem",0,tQ],51997);class tJ{constructor(){this.subscriptions=[]}add(t){return tZ(this.subscriptions,t),()=>tQ(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function t0(t,e){return e?1e3/e*t:0}t.s(["SubscriptionManager",0,tJ],72541),t.s(["velocityPerSecond",0,t0],94925);class t1{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=t_.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=t_.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(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 tJ);let i=this.events[t].add(e);return"change"===t?()=>{i(),tl.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 e&&e.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=t_.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t0(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}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()}}t.s(["motionValue",0,function(t,e){return new t1(t,e)}],19179);let t2=[...q,tE,tO];t.s(["findValueType",0,t=>t2.find(X(t))],6135);let{schedule:t4}=to(queueMicrotask,!1);t.s(["microtask",0,t4],47760);let t3={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"]},t9={};for(let t in t3)t9[t]={isEnabled:e=>t3[t].some(t=>!!e[t])};t.s(["featureDefinitions",0,t9],53306);let t5=()=>({translate:0,scale:1,origin:0,originPoint:0}),t8=()=>({min:0,max:0});t.s(["createBox",0,()=>({x:t8(),y:t8()}),"createDelta",0,()=>({x:t5(),y:t5()})],19918)},70678,21179,96545,469,82381,10288,62582,432,39083,24958,45692,55145,48425,95719,45750,14741,24242,t=>{"use strict";var e=t.i(30668),i=t.i(89884),r=t.i(2303),n=t.i(64827),s=t.i(66982),a=t.i(85806),o=t.i(80900);t.i(39057);var l=t.i(91724),u=t.i(46928),h=t.i(38102),c=t.i(19179),d=t.i(6135),p=t.i(76175),m=t.i(50199),f=t.i(47760),y=t.i(95591),g=t.i(13036),v=t.i(72541),x=t.i(53306),b=t.i(19918),w=t.i(33645);let T={current:null},P={current:!1};function S(){if(P.current=!0,w.isBrowser)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>T.current=t.matches;t.addEventListener("change",e),e()}else T.current=!1}t.s(["hasReducedMotionListener",0,P,"prefersReducedMotion",0,T],21179),t.s(["initPrefersReducedMotion",0,S],96545);let C=new WeakMap;function A(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function V(t){return"string"==typeof t||Array.isArray(t)}t.s(["isAnimationControls",0,A],469),t.s(["isVariantLabel",0,V],82381);let M=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],E=["initial",...M];function D(t){return A(t.animate)||E.some(e=>V(t[e]))}function R(t){return!!(D(t)||t.variants)}function k(t){let e=[{},{}];
99return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function L(t,e,i,r){if("function"==typeof e){let[n,s]=k(r);e=e(void 0!==i?i:t.custom,n,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,s]=k(r);e=e(void 0!==i?i:t.custom,n,s)}return e}t.s(["variantPriorityOrder",0,M,"variantProps",0,E],10288),t.s(["isControllingVariants",0,D,"isVariantNode",0,R],62582),t.s(["resolveVariantFromProps",0,L],432);let B=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class j{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:n,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=l.KeyframeResolver,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=u.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,h.frame.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=e.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!n,this.isControllingVariants=D(e),this.isVariantNode=R(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...m}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in m){const e=m[t];void 0!==c[t]&&(0,o.isMotionValue)(e)&&e.set(c[t])}}mount(t){this.current=t,C.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)),P.current||S(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||T.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,h.cancelFrame)(this.notifyUpdate),(0,h.cancelFrame)(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 r;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=i.transformProps.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&h.frame.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),r&&r(),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 x.featureDefinitions){let e=x.featureDefinitions[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(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):(0,b.createBox)()}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<B.length;e++){let i=B[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}
99this.prevMotionValues=function(t,e,i){for(let r in e){let n=e[r],s=i[r];if((0,o.isMotionValue)(n))t.addValue(r,n);else if((0,o.isMotionValue)(s))t.addValue(r,(0,c.motionValue)(n,{owner:t}));else if(s!==n)if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(r);t.addValue(r,(0,c.motionValue)(void 0!==e?e:n,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);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=(0,c.motionValue)(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&&((0,y.isNumericalString)(i)||(0,g.isZeroValueString)(i))?i=parseFloat(i):!(0,d.findValueType)(i)&&p.complex.test(e)&&(i=(0,m.getAnimatableNone)(t,e)),this.setBaseTarget(t,(0,o.isMotionValue)(i)?i.get():i)),(0,o.isMotionValue)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=L(this.props,i,this.presenceContext?.custom);r&&(e=r[t])}if(i&&void 0!==e)return e;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,o.isMotionValue)(r)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new v.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){f.microtask.render(this.render)}}class F extends j{constructor(){super(...arguments),this.KeyframeResolver=a.DOMKeyframesResolver}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[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;(0,o.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let I=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var O=t.i(89080);let $={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},N=i.transformPropOrder.length;function U(t,e,r){let{style:s,vars:a,transformOrigin:o}=t,l=!1,u=!1;for(let t in e){let r=e[t];if(i.transformProps.has(t)){l=!0;continue}if((0,n.isCSSVariableName)(t)){a[t]=r;continue}{let e=I(r,O.numberValueTypes[t]);t.startsWith("origin")?(u=!0,o[t]=e):s[t]=e}}if(!e.transform&&(l||r?s.transform=function(t,e,r){let n="",s=!0;for(let a=0;a<N;a++){let o=i.transformPropOrder[a],l=t[o];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===+!!o.startsWith("scale"):0===parseFloat(l))||r){let t=I(l,O.numberValueTypes[o]);if(!u){s=!1;let e=$[o]||o;n+=`${e}(${t}) `}r&&(e[o]=t)}}return n=n.trim(),r?n=r(e,s?"":n):s&&(n="none"),n}(e,t.transform,r):s.transform&&(s.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=o;s.transformOrigin=`${t} ${e} ${i}`}}function W(t,{style:e,vars:i},r,n){let s,a=t.style;for(s in e)a[s]=e[s];for(s in n?.applyProjectionStyles(a,r),i)a.setProperty(s,i[s])}t.s(["buildHTMLStyles",0,U],39083);let G={};function H(t,{layout:e,layoutId:r}){return i.transformProps.has(t)||t.startsWith("origin")||(e||void 0!==r)&&(!!G[t]||"opacity"===t)}function z(t,e,i){let{style:r}=t,n={};for(let s in r)((0,o.isMotionValue)(r[s])||e.style&&(0,o.isMotionValue)(e.style[s])||H(s,t)||i?.getValue(s)?.liveStyle!==void 0)&&(n[s]=r[s]);return n}t.s(["addScaleCorrector",0,function(t){for(let e in t)G[e]=t[e],(0,n.isCSSVariableName)(e)&&(G[e].isCSSVariable=!0)},"scaleCorrectors",0,G],24958),t.s(["isForcedMotionValue",0,H],45692),t.s(["scrapeMotionValuesFromProps",0,z],55145);class K extends F{constructor(){super(...arguments),this.type="html",this.renderInstance=W}readValueFromInstance(t,e){if(i.transformProps.has(e))return this.projection?.isProjecting?(0,r.defaultTransformValue)(e):(0,r.readTransformValue)(t,e);{let i=window.getComputedStyle(t),r=((0,n.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,s.measureViewportBox)(t,e)}build(t,e,i){U(t,e,i.transformTemplate)}
99scrapeMotionValuesFromProps(t,e,i){return z(t,e,i)}}var X=t.i(7235);let q=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();t.s(["camelToDash",0,q],48425);var Y=t.i(10377);let _={offset:"stroke-dashoffset",array:"stroke-dasharray"},Z={offset:"strokeDashoffset",array:"strokeDasharray"};function Q(t,{attrX:e,attrY:i,attrScale:r,pathLength:n,pathSpacing:s=1,pathOffset:a=0,...o},l,u,h){if(U(t,o,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;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),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==r&&(c.scale=r),void 0!==n&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?_:Z;t[s.offset]=Y.px.transform(-r);let a=Y.px.transform(e),o=Y.px.transform(i);t[s.array]=`${a} ${o}`}(c,n,s,a,!1)}t.s(["buildSVGAttrs",0,Q],95719);let J=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"]),tt=t=>"string"==typeof t&&"svg"===t.toLowerCase();function te(t,e,r){let n=z(t,e,r);for(let r in t)((0,o.isMotionValue)(t[r])||(0,o.isMotionValue)(e[r]))&&(n[-1!==i.transformPropOrder.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return n}t.s(["isSVGTag",0,tt],45750),t.s(["scrapeMotionValuesFromProps",0,te],14741);class ti extends F{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=b.createBox}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(i.transformProps.has(e)){let t=(0,X.getDefaultValueType)(e);return t&&t.default||0}return e=J.has(e)?e:q(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return te(t,e,i)}build(t,e,i){Q(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,r){for(let i in W(t,e,void 0,r),e.attrs)t.setAttribute(J.has(i)?i:q(i),e.attrs[i])}mount(t){this.isSVGTag=tt(t.tagName),super.mount(t)}}let tr=["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 tn(t){if("string"!=typeof t||t.includes("-"));else if(tr.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",0,tn],24242),t.s(["createDomVisualElement",0,(t,i)=>tn(t)?new ti(i):new K(i,{allowProjection:t!==e.Fragment})],70678)},27474,t=>{"use strict";let e=(0,t.i(30668).createContext)({strict:!1});t.s(["LazyContext",0,e])},16205,22671,33187,1246,99379,t=>{"use strict";var e,i=t.i(30668);let r=(0,i.createContext)({});t.s(["MotionContext",0,r],16205);var n=t.i(62582),s=t.i(82381);function a(t){return Array.isArray(t)?t.join(" "):t}t.s(["useCreateMotionContext",0,function(t){let{initial:e,animate:o}=function(t,e){if((0,n.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,s.isVariantLabel)(e)?e:void 0,animate:(0,s.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i.useContext)(r));return(0,i.useMemo)(()=>({initial:e,animate:o}),[a(e),a(o)])}],22671);var o=t.i(80900),l=t.i(45692),u=t.i(39083);let h=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function c(t,e,i){for(let r in e)(0,o.isMotionValue)(e[r])||(0,l.isForcedMotionValue)(r,i)||(t[r]=e[r])}t.s(["createHtmlRenderState",0,h],33187);var d=t.i(95719);let p=()=>({...h(),attrs:{}});t.s(["createSvgRenderState",0,p],1246);var m=t.i(45750);let f=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 y(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||f.has(t)}let g=t=>!y(t);try{e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof e&&(g=t=>t.startsWith("on")?!y(t):e(t))}catch{}var v=t.i(24242);t.s(["useRender",0,function(t,e,r,{latestValues:n},s,a=!1){let l=((0,v.isSVGComponent)(t)?function(t,e,r,n){let s=(0,i.useMemo)(()=>{let i=p();return(0,d.buildSVGAttrs)(i,e,(0,m.isSVGTag)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};c(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let r,n,s={},a=(r=t.style||{},c(n={},r,t),Object.assign(n,function({transformTemplate:t},e){return(0,i.useMemo)(()=>{let i=h();return(0,u.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=a,s}
99)(e,n,s,t),f=function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(g(n)||!0===i&&y(n)||!e&&!y(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(e,"string"==typeof t,a),x=t!==i.Fragment?{...f,...l,ref:r}:{},{children:b}=e,w=(0,i.useMemo)(()=>(0,o.isMotionValue)(b)?b.get():b,[b]);return(0,i.createElement)(t,{...x,children:w})}],99379)},39928,33122,23953,49544,29868,60321,79707,60076,7427,t=>{"use strict";var e=t.i(30668),i=t.i(469),r=t.i(16205),n=t.i(8812),s=t.i(62582),a=t.i(432),o=t.i(50772),l=t.i(80900);function u(t){return(0,l.isMotionValue)(t)?t.get():t}t.s(["resolveMotionValue",0,u],33122);let h=t=>(l,h)=>{let c=(0,e.useContext)(r.MotionContext),d=(0,e.useContext)(n.PresenceContext),p=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},r,n,o){return{latestValues:function(t,e,r,n){let o={},l=n(t,{});for(let t in l)o[t]=u(l[t]);let{initial:h,animate:c}=t,d=(0,s.isControllingVariants)(t),p=(0,s.isVariantNode)(t);e&&p&&!d&&!1!==t.inherit&&(void 0===h&&(h=e.initial),void 0===c&&(c=e.animate));let m=!!r&&!1===r.initial,f=(m=m||!1===h)?c:h;if(f&&"boolean"!=typeof f&&!(0,i.isAnimationControls)(f)){let e=Array.isArray(f)?f:[f];for(let i=0;i<e.length;i++){let r=(0,a.resolveVariantFromProps)(t,e[i]);if(r){let{transitionEnd:t,transition:e,...i}=r;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=m?e.length-1:0;e=e[t]}null!==e&&(o[t]=e)}for(let e in t)o[e]=t[e]}}}return o}(r,n,o,t),renderState:e()}})(t,l,c,d);return h?p():(0,o.useConstant)(p)};var c=t.i(33187);let d=h({scrapeMotionValuesFromProps:t.i(55145).scrapeMotionValuesFromProps,createRenderState:c.createHtmlRenderState});t.s(["useHTMLVisualState",0,d],39928);var p=t.i(1246);let m=h({scrapeMotionValuesFromProps:t.i(14741).scrapeMotionValuesFromProps,createRenderState:p.createSvgRenderState});t.s(["useSVGVisualState",0,m],23953);var f=t.i(53306);t.s(["loadFeatures",0,function(t){for(let e in t)f.featureDefinitions[e]={...f.featureDefinitions[e],...t[e]}}],49544);let y=Symbol.for("motionComponentSymbol");function g(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}t.s(["motionComponentSymbol",0,y],29868),t.s(["isRefObject",0,g],60321),t.s(["useMotionRef",0,function(t,i,r){return(0,e.useCallback)(e=>{e&&t.onMount&&t.onMount(e),i&&(e?i.mount(e):i.unmount()),r&&("function"==typeof r?r(e):g(r)&&(r.current=e))},[i])}],79707);let v="data-"+(0,t.i(48425).camelToDash)("framerAppearId");t.s(["optimizedAppearDataAttribute",0,v],60076);let x=(0,e.createContext)({});t.s(["SwitchLayoutGroupContext",0,x],7427)},72420,20448,20614,9648,74040,94590,55140,13890,47946,16042,31096,62043,50419,37932,49448,65974,68484,21402,3751,88088,83870,42666,t=>{"use strict";let e;t.i(39057);var i=t.i(48277),r=t.i(30668),n=t.i(56298),s=t.i(27474),a=t.i(43533),o=t.i(16205),l=t.i(22671),u=t.i(99379),h=t.i(24242),c=t.i(39928),d=t.i(23953),p=t.i(33645),m=t.i(53306),f=t.i(49544),y=t.i(29868),g=t.i(79707),v=t.i(60076),x=t.i(8812),b=t.i(7427),w=t.i(60321),T=t.i(53899);function P(t,{forwardMotionProps:e=!1}={},S,C){S&&(0,f.loadFeatures)(S);let A=(0,h.isSVGComponent)(t)?d.useSVGVisualState:c.useHTMLVisualState;function V(h,c){let d,f={...(0,r.useContext)(a.MotionConfigContext),...h,layoutId:function({layoutId:t}){let e=(0,r.useContext)(n.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(h)},{isStatic:y}=f,P=(0,l.useCreateMotionContext)(h),S=A(h,y);if(!y&&p.isBrowser){(0,r.useContext)(s.LazyContext).strict;let e=function(t){let{drag:e,layout:i}=m.featureDefinitions;if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(f);d=e.MeasureLayout,P.visualElement=function(t,e,i,n,l){let{visualElement:u}=(0,r.useContext)(o.MotionContext),h=(0,r.useContext)(s.LazyContext),c=(0,r.useContext)(x.PresenceContext),d=(0,r.useContext)(a.MotionConfigContext).reducedMotion,p=(0,r.useRef)(null);n=n||h.renderer,!p.current&&n&&(p.current=n(t,{visualState:e,parent:u,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));let m=p.current,f=(0,r.useContext)(b.SwitchLayoutGroupContext);m&&!m.projection&&l&&("html"===m.type||"svg"===m.type)&&function(t,e,
99i,r){let{layoutId:n,layout:s,drag:a,dragConstraints:o,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:n,layout:s,alwaysMeasureLayout:!!a||o&&(0,w.isRefObject)(o),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:u})}(p.current,i,l,f);let y=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{m&&y.current&&m.update(i,c)});let g=i[v.optimizedAppearDataAttribute],P=(0,r.useRef)(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return(0,T.useIsomorphicLayoutEffect)(()=>{m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),P.current&&m.animationState&&m.animationState.animateChanges())}),(0,r.useEffect)(()=>{m&&(!P.current&&m.animationState&&m.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),P.current=!1),m.enteringChildren=void 0)}),m}(t,S,f,C,e.ProjectionNode)}return(0,i.jsxs)(o.MotionContext.Provider,{value:P,children:[d&&P.visualElement?(0,i.jsx)(d,{visualElement:P.visualElement,...f}):null,(0,u.useRender)(t,h,(0,g.useMotionRef)(S,P.visualElement,c),S,y,e)]})}V.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let M=(0,r.forwardRef)(V);return M[y.motionComponentSymbol]=t,M}t.s(["createMotionProxy",0,function(t,e){if("u"<typeof Proxy)return P;let i=new Map,r=(i,r)=>P(i,r,t,e);return new Proxy((t,e)=>r(t,e),{get:(n,s)=>"create"===s?r:(i.has(s)||i.set(s,P(s,void 0,t,e)),i.get(s))})}],72420);var S=t.i(469),C=t.i(432);function A(t,e,i){let r=t.getProps();return(0,C.resolveVariantFromProps)(r,e,void 0!==i?i:r.custom,t)}function V(t,e){return t?.[e]??t?.default??t}t.s(["getValueTransition",0,V],20448);var M=t.i(38102),E=t.i(27884),D=t.i(19179);let R=t=>Array.isArray(t);var k=t.i(97919),L=t.i(80900);function B(t,e){let i=t.getValue("willChange");if((0,L.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&k.MotionGlobalConfig.WillChange){let i=new k.MotionGlobalConfig.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function j(t){return t.props[v.optimizedAppearDataAttribute]}function F(t){t.duration=0,t.type="keyframes"}t.s(["getOptimisedAppearId",0,j],20614);let I=(t,e)=>i=>e(t(i)),O=(...t)=>t.reduce(I);t.s(["pipe",0,O],9648);var $=t.i(95076);let N=t=>1e3*t,U=t=>t/1e3;t.s(["millisecondsToSeconds",0,U,"secondsToMilliseconds",0,N],74040);var W=t.i(46928);let G={layout:0,mainThread:0,waapi:0};t.s(["activeAnimations",0,G],94590);var H=t.i(42896),z=t.i(64827),K=t.i(67794),X=t.i(76175),q=t.i(50565),Y=t.i(40414);function _(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}var Z=t.i(52130);function Q(t,e){return i=>i>0?e:t}var J=t.i(83344);let tt=(t,e,i)=>{let r=t*t,n=i*(e*e-r)+r;return n<0?0:Math.sqrt(n)},te=[q.hex,Z.rgba,Y.hsla];function ti(t){let e=te.find(e=>e.test(t));if((0,H.warning)(!!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===Y.hsla&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,a=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,o=2*i-r;n=_(o,r,t+1/3),s=_(o,r,t),a=_(o,r,t-1/3)}else n=s=a=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*a),alpha:r}}(i)),i}let tr=(t,e)=>{let i=ti(t),r=ti(e);if(!i||!r)return Q(t,e);let n={...i};return t=>(n.red=tt(i.red,r.red,t),n.green=tt(i.green,r.green,t),n.blue=tt(i.blue,r.blue,t),n.alpha=(0,J.mixNumber)(i.alpha,r.alpha,t),Z.rgba.transform(n))},tn=new Set(["none","hidden"]);function ts(t,e){return i=>(0,J.mixNumber)(t,e,i)}function ta(t){return"number"==typeof t?ts:"string"==typeof t?(0,z.isCSSVariableToken)(t)?Q:K.color.test(t)?tr:tu:Array.isArray(t)?to:"object"==typeof t?K.color.test(t)?tr:tl:Q}function to(t,e){let i=[...t],r=i.length,n=t.map((t,i)=>ta(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}}function tl(t,e){let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=ta(t[n])(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let tu=(t,e)=>{let i=X.complex.createTransformer(e),r=(0,X.analyseComplexValue)(t),n=(0,X.analyseComplexValue)(e);if(!(r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length))return(0,H.warning)(!0,`Complex values '${t}' and '${e}
99' 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"),Q(t,e);if(tn.has(t)&&!n.values.length||tn.has(e)&&!r.values.length)return tn.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return O(to(function(t,e){let i=[],r={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let s=e.types[n],a=t.indexes[s][r[s]],o=t.values[a]??0;i[n]=o,r[s]++}return i}(r,n),n.values),i)};function th(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,J.mixNumber)(t,e,i):ta(t)(t,e)}let tc=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>M.frame.update(e,t),stop:()=>(0,M.cancelFrame)(e),now:()=>M.frameData.isProcessing?M.frameData.timestamp:W.time.now()}},td=(t,e,i=10)=>{let r="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)r+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function tp(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}var tm=t.i(94925);function tf(t,e,i){let r=Math.max(e-5,0);return(0,tm.velocityPerSecond)(i-t(r),e-r)}let ty=.01,tg=2,tv=.005,tx=.5;function tb(t,e){return t*Math.sqrt(1-e*e)}let tw=["duration","bounce"],tT=["stiffness","damping","mass"];function tP(t,e){return e.some(e=>void 0!==t[e])}function tS(t=.3,e=.3){let i,r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:s}=r,a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!tP(t,tT)&&tP(t,tw))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,n=2*(0,$.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:1,stiffness:r,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:r=1}){let n,s;(0,H.warning)(t<=N(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=(0,$.clamp)(.05,1,a),t=(0,$.clamp)(.01,10,U(t)),a<1?(n=e=>{let r=e*a,n=r*t;return .001-(r-i)/tb(e,a)*Math.exp(-n)},s=e=>{let r=e*a*t,s=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-r),l=tb(Math.pow(e,2),a);return(r*i+i-s)*o*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let o=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=N(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*r;return{stiffness:e,damping:2*a*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-U(r.velocity||0)}),f=p||0,y=h/(2*Math.sqrt(u*c)),g=o-a,v=U(Math.sqrt(u/c)),x=5>Math.abs(g);if(n||(n=x?ty:tg),s||(s=x?tv:tx),y<1){let t=tb(v,y);i=e=>o-Math.exp(-y*v*e)*((f+y*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===y)i=t=>o-Math.exp(-v*t)*(g+(f+v*g)*t);else{let t=v*Math.sqrt(y*y-1);i=e=>{let i=Math.exp(-y*v*e),r=Math.min(t*e,300);return o-i*((f+y*v*g)*Math.sinh(r)+t*g*Math.cosh(r))/t}}let b={calculatedDuration:m&&d||null,next:t=>{let e=i(t);if(m)l.done=t>=d;else{let r=0===t?f:0;y<1&&(r=0===t?N(f):tf(i,t,e));let a=Math.abs(o-e)<=s;l.done=Math.abs(r)<=n&&a}return l.value=l.done?o:e,l},toString:()=>{let t=Math.min(tp(b),2e4),e=td(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function tC({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,y=p+f,g=void 0===a?y:a(y);g!==y&&(f=g-p);let v=t=>-f*Math.exp(-t/r),x=t=>g+v(t),b=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?g:i},w=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;c=t,d=tS({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:tf(x,t,m.value),damping:n,stiffness:s,restDelta:u,restSpeed:h})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,b(t),w(t)),void 0!==c&&t>=c)?d.next(t-c):(e||b(t),m)}}}tS.applyToOptions=t=>{let e=function(t,e=100,i){let r=i({...t,keyframes:[0,e]}),n=Math.min(tp(r),2e4);return{type:"keyframes",ease:t=>r.next(n*t).value/e,duration:U(n)}}(t,100,tS);return t.ease=e.ease,t.duration=N(e.duration),t.type="keyframes",t};var tA=t.i(48027);let tV=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tM(t,e,i,r){return t===e&&i===r?tA.noop:n=>
990===n||1===n?n:tV(function(t,e,i,r,n){let s,a,o=0;do(s=tV(a=e+(i-e)/2,r,n)-t)>0?i=a:e=a;while(Math.abs(s)>1e-7&&++o<12)return a}(n,0,1,t,i),e,r)}let tE=tM(.42,0,1,1),tD=tM(0,0,.58,1),tR=tM(.42,0,.58,1),tk=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tL=t=>e=>1-t(1-e),tB=tM(.33,1.53,.69,.99),tj=tL(tB),tF=tk(tj),tI=t=>(t*=2)<1?.5*tj(t):.5*(2-Math.pow(2,-10*(t-1))),tO=t=>1-Math.sin(Math.acos(t)),t$=tL(tO),tN=tk(tO);t.s(["circIn",0,tO,"circInOut",0,tN,"circOut",0,t$],55140);let tU=t=>Array.isArray(t)&&"number"==typeof t[0],tW={linear:tA.noop,easeIn:tE,easeInOut:tR,easeOut:tD,circIn:tO,circInOut:tN,circOut:t$,backIn:tj,backInOut:tF,backOut:tB,anticipate:tI},tG=t=>{if(tU(t)){(0,H.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,r,n]=t;return tM(e,i,r,n)}return"string"==typeof t?((0,H.invariant)(void 0!==tW[t],`Invalid easing type '${t}'`,"invalid-easing-type"),tW[t]):t},tH=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r};function tz(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let s=t.length;if((0,H.invariant)(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 o=function(t,e,i){let r=[],n=i||k.MotionGlobalConfig.mix||th,s=t.length-1;for(let i=0;i<s;i++){let s=n(t[i],t[i+1]);e&&(s=O(Array.isArray(e)?e[i]||tA.noop:e,s)),r.push(s)}return r}(e,r,n),l=o.length,u=i=>{if(a&&i<t[0])return e[0];let r=0;if(l>1)for(;r<t.length-2&&!(i<t[r+1]);r++);let n=tH(t[r],t[r+1],i);return o[r](n)};return i?e=>u((0,$.clamp)(t[0],t[s-1],e)):u}function tK(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=tH(0,e,r);t.push((0,J.mixNumber)(i,1,n))}}(e,t.length-1),e}function tX({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var n;let s=Array.isArray(r)&&"number"!=typeof r[0]?r.map(tG):tG(r),a={done:!1,value:e[0]},o=tz((n=i&&i.length===e.length?i:tK(e),n.map(e=>e*t)),e,{ease:Array.isArray(s)?s:e.map(()=>s||tR).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=o(e),a.done=e>=t,a)}}t.s(["progress",0,tH],13890),t.s(["interpolate",0,tz],47946),t.s(["defaultOffset",0,tK],16042);let tq=t=>null!==t;function tY(t,{repeat:e,repeatType:i="loop"},r,n=1){let s=t.filter(tq),a=n<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return a&&void 0!==r?r:s[a]}let t_={decay:tC,inertia:tC,tween:tX,keyframes:tX,spring:tS};function tZ(t){"string"==typeof t.type&&(t.type=t_[t.type])}class tQ{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 tJ=t=>t/100;class t0 extends tQ{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!==W.time.now()&&this.tick(W.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},G.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;tZ(t);let{type:e=tX,repeat:i=0,repeatDelay:r=0,repeatType:n,velocity:s=0}=t,{keyframes:a}=t,o=e||tX;o!==tX&&"number"!=typeof a[0]&&(this.mixKeyframes=O(tJ,th(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===n&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=tp(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(i+1)-r,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:r,mixKeyframes:n,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let v=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,r)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/a)):"mirror"===c&&(x=s)),v=(0,$.clamp)(0,1,i)*a}let b=g?{done:!1,value:u[0]}:x.next(v);n&&(b.value=n(b.value));let{done:w}=b;g||null===o||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return T&&p!==tC&&(b.value=tY(u,this.options,f,this.speed)),m&&m(b.value),T&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return U(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+U(t)}get time(){return U(this.currentTime)}set time(t){t=N(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(W.time.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=U(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=tc,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(W.time.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,G.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)}}var t1=t.i(91724);function t2(t){let e;return()=>(void 0===e&&(e=t()),e)}let t4=t2(()=>void 0!==window.ScrollTimeline);t.s(["supportsScrollTimeline",0,t4],31096);var t3=t.i(11006);let t9={},t5=(e=t2(()=>{try{document.createElement("div").animate({opacity:0}
99,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>t9.linearEasing??e()),t8=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,t6={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t8([0,.65,.55,1]),circOut:t8([.55,0,1,.45]),backIn:t8([.31,.01,.66,-.59]),backOut:t8([.33,1.53,.69,.99])};function t7(t){return"function"==typeof t&&"applyToOptions"in t}class et extends tQ{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:i,keyframes:r,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=t,(0,H.invariant)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t7(t)&&t5()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?t5()?td(e,i):"ease-out":tU(e)?t8(e):Array.isArray(e)?e.map(e=>t(e,i)||t6.easeOut):t6[e]}(o,n);Array.isArray(c)&&(h.easing=c),t3.statsBuffer.value&&G.waapi++;let d={delay:r,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"};u&&(d.pseudoElement=u);let p=t.animate(h,d);return t3.statsBuffer.value&&p.finished.finally(()=>{G.waapi--}),p}(e,i,r,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=tY(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(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 U(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+U(t)}get time(){return U(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=N(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 Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&t4())?(this.animation.timeline=t,tA.noop):e(this)}}let ee={anticipate:tI,backInOut:tF,circInOut:tN};class ei extends et{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in ee&&(t.ease=ee[t.ease])}(t),tZ(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:r,element:n,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new t0({...s,autoplay:!1}),o=N(this.finishedTime??this.time);e.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}let er=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(X.complex.test(t)||"0"===t)&&!t.startsWith("url(")),en=new Set(["opacity","clipPath","filter","transform"]),es=t2(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class ea extends tQ{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=W.time.now();const c={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:n,repeatType:s,name:o,motionValue:l,element:u,...h},d=u?.KeyframeResolver||t1.KeyframeResolver;this.keyframeResolver=new d(a,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,r){this.keyframeResolver=void 0;let{name:n,type:s,velocity:a,delay:o,isHandoff:l,onUpdate:u}=i;
99this.resolvedAt=W.time.now(),!function(t,e,i,r){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],a=er(n,e),o=er(s,e);return(0,H.warning)(a===o,`You are trying to animate ${e} from "${n}" to "${s}". "${a?s:n}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(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||t7(i))&&r)}(t,n,s,a)&&((k.MotionGlobalConfig.instantAnimations||!o)&&u?.(tY(t,i,e)),t[0]=t[t.length-1],F(i),i.repeat=0);let h={startTime:r?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:r,repeatType:n,damping:s,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return es()&&i&&en.has(i)&&("transform"!==i||!l)&&!o&&!r&&"mirror"!==n&&0!==s&&"inertia"!==a}(h)?new ei({...h,element:h.motionValue.owner.current}):new t0(h);c.finished.then(()=>this.notifyFinished()).catch(tA.noop),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(),(0,t1.flushKeyframeResolvers)()),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 eo=t=>null!==t;var el=t.i(89884);let eu={type:"spring",stiffness:500,damping:25,restSpeed:10},eh={type:"keyframes",duration:.8},ec={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ed=(t,e,i,r={},n,s)=>a=>{let o=V(r,t)||{},l=o.delay||r.delay||0,{elapsed:u=0}=r;u-=N(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-u,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:s?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(o)&&Object.assign(h,((t,{keyframes:e})=>e.length>2?eh:el.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:eu:ec)(t,h)),h.duration&&(h.duration=N(h.duration)),h.repeatDelay&&(h.repeatDelay=N(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(F(h),0===h.delay&&(c=!0)),(k.MotionGlobalConfig.instantAnimations||k.MotionGlobalConfig.skipAnimations)&&(c=!0,F(h),h.delay=0),h.allowFlatten=!o.type&&!o.ease,c&&!s&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"}){let r=t.filter(eo),n=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[n]}(h.keyframes,o);if(void 0!==t)return void M.frame.update(()=>{h.onUpdate(t),h.onComplete()})}return o.isSync?new t0(h):new ea(h)};function ep(t,e,{delay:i=0,transitionOverride:r,type:n}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:a,...o}=e;r&&(s=r);let l=[],u=n&&t.animationState&&t.animationState.getState()[n];for(let e in o){let r=t.getValue(e,t.latestValues[e]??null),n=o[e];if(void 0===n||u&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(u,e))continue;let a={delay:i,...V(s||{},e)},h=r.get();if(void 0!==h&&!r.isAnimating&&!Array.isArray(n)&&n===h&&!a.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=j(t);if(i){let t=window.MotionHandoffAnimation(i,e,M.frame);null!==t&&(a.startTime=t,c=!0)}}B(t,e),r.start(ed(e,r,n,t.shouldReduceMotion&&E.positionalKeys.has(e)?{type:!1}:a,t,c));let d=r.animation;d&&l.push(d)}return a&&Promise.all(l).then(()=>{M.frame.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:r={},...n}=A(t,e)||{};for(let e in n={...n,...i}){var s;let i=R(s=n[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,D.motionValue)(i))}}(t,a)})}),l}function em(t,e,i,r=0,n=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*r;return"function"==typeof i?i(s,a):1===n?s*r:o-s*r}function ef(t,e,i={}){let r=A(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let s=r?()=>Promise.all(ep(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=n;
99return function(t,e,i=0,r=0,n=0,s=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(ef(l,e,{...a,delay:i+("function"==typeof r?0:r)+em(t.variantChildren,l,r,n,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,r,s,a,o,i)}:()=>Promise.resolve(),{when:o}=n;if(!o)return Promise.all([s(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[s,a]:[a,s];return t().then(()=>e())}}function ey(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}t.s(["animateMotionValue",0,ed],62043);var eg=t.i(82381),ev=t.i(10288);let ex=ev.variantProps.length,eb=[...ev.variantPriorityOrder].reverse(),ew=ev.variantPriorityOrder.length;function eT(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eP(){return{animate:eT(!0),whileInView:eT(),whileHover:eT(),whileTap:eT(),whileDrag:eT(),whileFocus:eT(),exit:eT()}}class eS{constructor(t){this.isMounted=!1,this.node=t}update(){}}t.s(["Feature",0,eS],50419);let eC=0;t.s(["animations",0,{animation:{Feature:class extends eS{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 r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>ef(t,e,i)));else if("string"==typeof e)r=ef(t,e,i);else{let n="function"==typeof e?A(t,e,i.custom):e;r=Promise.all(ep(t,n,i))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=eP(),r=!0,n=e=>(i,r)=>{let n=A(t,r,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...r}=n;i={...i,...r,...e}}return i};function s(s){let{props:a}=t,o=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<ex;t++){let r=ev.variantProps[t],n=e.props[r];((0,eg.isVariantLabel)(n)||!1===n)&&(i[r]=n)}return i}(t.parent)||{},l=[],u=new Set,h={},c=1/0;for(let e=0;e<ew;e++){var d,p;let m=eb[e],f=i[m],y=void 0!==a[m]?a[m]:o[m],g=(0,eg.isVariantLabel)(y),v=m===s?f.isActive:null;!1===v&&(c=e);let x=y===o[m]&&y!==a[m]&&g;if(x&&r&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...h},!f.isActive&&null===v||!y&&!f.prevProp||(0,S.isAnimationControls)(y)||"boolean"==typeof y)continue;let b=(d=f.prevProp,"string"==typeof(p=y)?p!==d:!!Array.isArray(p)&&!ey(p,d)),w=b||m===s&&f.isActive&&!x&&g||e>c&&g,T=!1,P=Array.isArray(y)?y:[y],C=P.reduce(n(m),{});!1===v&&(C={});let{prevResolvedValues:V={}}=f,M={...V,...C},E=e=>{w=!0,u.has(e)&&(T=!0,u.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in M){let e=C[t],i=V[t];if(!h.hasOwnProperty(t))(R(e)&&R(i)?ey(e,i):e===i)?void 0!==e&&u.has(t)?E(t):f.protectedKeys[t]=!0:null!=e?E(t):u.add(t)}f.prevProp=y,f.prevResolvedValues=C,f.isActive&&(h={...h,...C}),r&&t.blockInitialAnimation&&(w=!1);let D=x&&b,k=!D||T;w&&k&&l.push(...P.map(e=>{let i={type:m};if("string"==typeof e&&r&&!D&&t.manuallyAnimateOnMount&&t.parent){let{parent:r}=t,n=A(r,e);if(r.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=em(r.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=A(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let r=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=r??null}),l.push({animation:e})}let m=!!l.length;return r&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),r=!1,m?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,r){if(i[e].isActive===r)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,r)),i[e].isActive=r;let n=s(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=eP()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,S.isAnimationControls)(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?.()}}},exit:{Feature:class extends eS{constructor(){super(...arguments),this.id=eC++}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 r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>
99{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}}],37932);let eA={x:!1,y:!1};t.s(["isDragActive",0,function(){return eA.x||eA.y},"isDragging",0,eA],49448);var eV=t.i(10377);function eM(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}t.s(["addDomEvent",0,eM],65974);let eE=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function eD(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["isPrimaryPointer",0,eE],68484);let eR=t=>e=>eE(e)&&t(e,eD(e));function ek(t,e,i,r){return eM(t,e,eR(i),r)}t.s(["addPointerInfo",0,eR,"extractEventInfo",0,eD],21402);var eL=t.i(56354);function eB(t){return t.max-t.min}function ej(t,e,i,r=.5){t.origin=r,t.originPoint=(0,J.mixNumber)(e.min,e.max,t.origin),t.scale=eB(i)/eB(e),t.translate=(0,J.mixNumber)(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 eF(t,e,i){t.min=i.min+e.min,t.max=t.min+eB(e)}function eI(t,e,i){t.min=e.min-i.min,t.max=t.min+eB(e)}t.s(["calcBoxDelta",0,function(t,e,i,r){ej(t.x,e.x,i.x,r?r.originX:void 0),ej(t.y,e.y,i.y,r?r.originY:void 0)},"calcLength",0,eB,"calcRelativeBox",0,function(t,e,i){eF(t.x,e.x,i.x),eF(t.y,e.y,i.y)},"calcRelativePosition",0,function(t,e,i){eI(t.x,e.x,i.x),eI(t.y,e.y,i.y)},"isNear",0,function(t,e,i){return Math.abs(t-e)<=i}],3751);var eO=t.i(19918);function e$(t){return[t("x"),t("y")]}t.s(["eachAxis",0,e$],88088);var eN=t.i(66982);let eU=({current:t})=>t?t.ownerDocument.defaultView:null,eW=(t,e)=>Math.abs(t-e);class eG{constructor(t,e,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:n=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=eK(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(eW(t.x,e.x)**2+eW(t.y,e.y)**2)>=this.distanceThreshold);if(!r&&!n)return;let{point:s}=i,{timestamp:a}=M.frameData;this.history.push({...s,timestamp:a});let{onStart:o,onMove:l}=this.handlers;r||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=eH(e,this.transformPagePoint),M.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=eK("pointercancel"===t.type?this.lastMoveEventInfo:eH(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!eE(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=r||window;const a=eH(eD(t),this.transformPagePoint),{point:o}=a,{timestamp:l}=M.frameData;this.history=[{...o,timestamp:l}];const{onSessionStart:u}=e;u&&u(t,eK(a,this.history)),this.removeListeners=O(ek(this.contextWindow,"pointermove",this.handlePointerMove),ek(this.contextWindow,"pointerup",this.handlePointerUp),ek(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,M.cancelFrame)(this.updatePoint)}}function eH(t,e){return e?{point:e(t.point)}:t}function ez(t,e){return{x:t.x-e.x,y:t.y-e.y}}function eK({point:t},e){return{point:t,delta:ez(t,eX(e)),offset:ez(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,r=eX(t);for(;e>=0&&(i=t[e],!(r.timestamp-i.timestamp>N(.1)));)e--;if(!i)return{x:0,y:0};let n=U(r.timestamp-i.timestamp);if(0===n)return{x:0,y:0};let s={x:(r.x-i.x)/n,y:(r.y-i.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e)}}function eX(t){return t[t.length-1]}function eq(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 eY(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function e_(t,e,i){return{min:eZ(t,e),max:eZ(t,i)}}function eZ(t,e){return"number"==typeof t?t:t[e]||0}let eQ=new WeakMap;class eJ{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=(0,eO.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let n=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(eD(t).point)},s=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(eA[t])return null;else return eA[t]=!0,()=>{eA[t]=!1};return eA.x||eA.y?null:(eA.x=eA.y=!0,()=>{eA.x=eA.y=!1})}(i),!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),e$(t=>{let e=this.getAxisMotionValue(t).get()||0;if(eV.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=eB(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&M.frame.postRender(()=>n(t,e)),B(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(r&&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}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),s&&s(t,e)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>e$(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new eG(t,{onSessionStart:n,onStart:s,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:eU(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,r=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!r||!i)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:a}=this.getProps();a&&M.frame.postRender(()=>a(i,r))}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:r}=this.getProps();if(!i||!e0(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?(0,J.mixNumber)(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?(0,J.mixNumber)(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.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,r=this.constraints;t&&(0,w.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:eq(t.x,i,n),y:eq(t.y,e,r)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:e_(t,"left","right"),y:e_(t,"top","bottom")}}(e),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&e$(t=>{var e,r;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],r=this.constraints[t],n={},void 0!==r.min&&(n.min=r.min-e.min),void 0!==r.max&&(n.max=r.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,w.isRefObject)(e))return!1;let r=e.current;(0,H.invariant)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=(0,eN.measurePageBox)(r,n.root,this.visualElement.getTransformPagePoint()),a=(t=n.layout.layoutBox,{x:eY(t.x,s.x),y:eY(t.y,s.y)});if(i){let t=i((0,eL.convertBoxToBoundingBox)(a));this.hasMutatedConstraints=!!t,t&&(a=(0,eL.convertBoundingBoxToBox)(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(e$(a=>{if(!e0(a,e,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return B(this.visualElement,t),i.start(ed(t,i,0,e,this.visualElement,!1))}stopAnimation(){e$(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){e$(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){e$(e=>{let{drag:i}=this.getProps();if(!e0(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e];n.set(t[e]-(0,J.mixNumber)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,w.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};e$(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let s,a,o,l=e.get();r[t]=(i={min:l,max:l},n=this.constraints[t],s=.5,a=eB(i),(o=eB(n))>a?s=tH(n.min,n.max-a,i.min):a>o&&(s=tH(i.min,i.max-o,n.min)),(0,$.clamp)(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),e$(e=>{if(!e0(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set((0,J.mixNumber)(n,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;eQ.set(this.visualElement,this);let t=ek(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,w.isRefObject)(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),M.frame.read(e);let n=eM(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(e$(e=>{let i=this.getAxisMotionValue(e);
99i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),r(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:a}}}function e0(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}t.s(["DragGesture",0,class extends eS{constructor(t){super(t),this.removeGroupControls=tA.noop,this.removeListeners=tA.noop,this.controls=new eJ(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tA.noop}unmount(){this.removeGroupControls(),this.removeListeners()}}],83870);let e1=t=>(e,i)=>{t&&M.frame.postRender(()=>t(e,i))};t.s(["PanGesture",0,class extends eS{constructor(){super(...arguments),this.removePointerDownListener=tA.noop}onPointerDown(t){this.session=new eG(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eU(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:e1(t),onStart:e1(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&M.frame.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=ek(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}],42666)},38341,81344,t=>{"use strict";var e=t.i(48277),i=t.i(38102),r=t.i(47760),n=t.i(30668),s=t.i(3363),a=t.i(56298),o=t.i(7427);let l={hasAnimatedSinceResize:!0,hasEverUpdated:!1};t.s(["globalProjectionState",0,l],81344);var u=t.i(10377);function h(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let c={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!u.px.test(t))return t;else t=parseFloat(t);let i=h(t,e.target.x),r=h(t,e.target.y);return`${i}% ${r}%`}};var d=t.i(76175),p=t.i(83344),m=t.i(24958);let f=!1;class y extends n.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;(0,m.addScaleCorrector)(g),n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),f&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),l.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:r,drag:n,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,f=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||i.frame.postRender(()=>{let t=a.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),r.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;f=!0,r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}let g={borderRadius:{...c,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:c,borderTopRightRadius:c,borderBottomLeftRadius:c,borderBottomRightRadius:c,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=d.complex.parse(t);if(r.length>5)return t;let n=d.complex.createTransformer(t),s=+("number"!=typeof r[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;r[0+s]/=a,r[1+s]/=o;let l=(0,p.mixNumber)(a,o,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}};t.s(["MeasureLayout",0,function(t){let[i,r]=(0,s.usePresence)(),l=(0,n.useContext)(a.LayoutGroupContext);return(0,e.jsx)(y,{...t,layoutGroup:l,switchLayoutGroup:(0,n.useContext)(o.SwitchLayoutGroupContext),isPresent:i,safeToRemove:r})}],38341)}
99,22462,41492,33495,69851,97240,78759,11507,t=>{"use strict";var e=t.i(83870),i=t.i(42666),r=t.i(38341),n=t.i(11006),s=t.i(4683);function a(t){return(0,s.isObject)(t)&&"ownerSVGElement"in t}t.s(["isSVGElement",0,a],41492);var o=t.i(38102),l=t.i(20448),u=t.i(46928),h=t.i(47760),c=t.i(94590),d=t.i(19179),p=t.i(83344),m=t.i(72541),f=t.i(95076),y=t.i(48027),g=t.i(80900),v=t.i(62043),x=t.i(20614),b=t.i(51997);let w=(t,e)=>t.depth-e.depth;class T{constructor(){this.children=[],this.isDirty=!1}add(t){(0,b.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,b.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(w),this.isDirty=!1,this.children.forEach(t)}}t.i(74040);var P=t.i(33122),S=t.i(10377),C=t.i(13890),A=t.i(55140);let V=["TopLeft","TopRight","BottomLeft","BottomRight"],M=V.length,E=t=>"string"==typeof t?parseFloat(t):t,D=t=>"number"==typeof t||S.px.test(t);function R(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let k=B(0,.5,A.circOut),L=B(.5,.95,y.noop);function B(t,e,i){return r=>r<t?0:r>e?1:i((0,C.progress)(t,e,r))}function j(t,e){t.min=e.min,t.max=e.max}function F(t,e){j(t.x,e.x),j(t.y,e.y)}function I(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var O=t.i(1699),$=t.i(3751);function N(t,e,i,r,n){return t-=e,t=(0,O.scalePoint)(t,1/i,r),void 0!==n&&(t=(0,O.scalePoint)(t,1/n,r)),t}function U(t,e,[i,r,n],s,a){!function(t,e=0,i=1,r=.5,n,s=t,a=t){if(S.percent.test(e)&&(e=parseFloat(e),e=(0,p.mixNumber)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,p.mixNumber)(s.min,s.max,r);t===s&&(o-=e),t.min=N(t.min,e,i,o,n),t.max=N(t.max,e,i,o,n)}(t,e[i],e[r],e[n],e.scale,s,a)}let W=["x","scaleX","originX"],G=["y","scaleY","originY"];function H(t,e,i,r){U(t.x,e,W,i?i.x:void 0,r?r.x:void 0),U(t.y,e,G,i?i.y:void 0,r?r.y:void 0)}var z=t.i(19918);function K(t){return 0===t.translate&&1===t.scale}function X(t){return K(t.x)&&K(t.y)}function q(t,e){return t.min===e.min&&t.max===e.max}function Y(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function _(t,e){return Y(t.x,e.x)&&Y(t.y,e.y)}function Z(t){return(0,$.calcLength)(t.x)/(0,$.calcLength)(t.y)}function Q(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class J{constructor(){this.members=[]}add(t){(0,b.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,b.removeItem)(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,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:r}=t.options;!1===r&&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)}}var tt=t.i(24958),te=t.i(88088),ti=t.i(90117),tr=t.i(81344);let tn={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ts=["","X","Y","Z"],ta=0;function to(t,e,i,r){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function tl({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=ta++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,n.statsBuffer.value&&(tn.nodes=tn.calculatedTargetDeltas=tn.calculatedProjections=0),this.nodes.forEac
99h(tc),this.nodes.forEach(tv),this.nodes.forEach(tx),this.nodes.forEach(td),n.statsBuffer.addProjectionMetrics&&n.statsBuffer.addProjectionMetrics(tn)},this.resolvedRelativeTargetAt=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 T)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new m.SubscriptionManager),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=a(e)&&!(a(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||i)&&(this.isLayoutDirty=!0),t){let i,r=0,n=()=>this.root.updateBlockedByResize=!1;o.frame.read(()=>{r=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==r){let e,s;r=t,this.root.updateBlockedByResize=!0,i&&i(),e=u.time.now(),s=({timestamp:t})=>{let i=t-e;i>=250&&((0,o.cancelFrame)(s),n(i-250))},o.frame.setup(s,!0),i=()=>(0,o.cancelFrame)(s),tr.globalProjectionState.hasAnimatedSinceResize&&(tr.globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(tg))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||n.getDefaultTransition()||tC,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),u=!this.targetLayout||!_(this.targetLayout,r),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,l.getValueTransition)(s,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||tg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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(),(0,o.cancelFrame)(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(tb),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 r=(0,x.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",o.frame,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(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 r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
99h(tm);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tf);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ty),this.nodes.forEach(tu),this.nodes.forEach(th)):this.nodes.forEach(tf),this.clearAllSnapshots();let t=u.time.now();o.frameData.delta=(0,f.clamp)(0,1e3/60,t-o.frameData.timestamp),o.frameData.timestamp=t,o.frameData.isProcessing=!0,o.frameSteps.update.process(o.frameData),o.frameSteps.preRender.process(o.frameData),o.frameSteps.render.process(o.frameData),o.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,h.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tp),this.sharedNodes.forEach(tw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,o.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){o.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,$.calcLength)(this.snapshot.measuredBox.x)||(0,$.calcLength)(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.layoutCorrected=(0,z.createBox)(),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=r(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(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!X(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,n=r!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,ti.hasTransform)(this.latestValues)||n)&&(s(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),tM((e=r).x),tM(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,z.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tD))){let{scroll:t}=this.root;t&&((0,O.translateAxis)(e.x,t.offset.x),(0,O.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,z.createBox)();if(F(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let r=this.path[i],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&F(e,t),(0,O.translateAxis)(e.x,n.offset.x),(0,O.translateAxis)(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=(0,z.createBox)();F(i,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(0,O.transformBox)(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),(0,ti.hasTransform)(r.latestValues)&&(0,O.transformBox)(i,r.latestValues)}return(0,ti.hasTransform)(this.latestValues)&&(0,O.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,z.createBox)();F(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,ti.hasTransform)(i.latestValues))continue;(0,ti.hasScale)(i.latestValues)&&i.updateSnapshot();let r=(0,z.createBox)();F(r,i.measurePageBox()),H(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return(0,ti.hasTransform)(this.latestValues)&&H(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!==o.frameData.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:r,layoutId:s}=this.options;if(this.layout&&(r||s)){if(this.resolvedRelativeTargetAt=o.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,z.createBox)(),this.relativeTargetOrigin=(0,z.createBox)(),(0,$.calcRelativePosition)(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),F(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,z.createBox)(),this.targetWithTransforms=(0,z.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,$.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):F(this.target,this.layout.layoutBox),(0,O.applyBoxDelta)(this.target,this.targetDelta)):F(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,z.createBox)(),this.relativeTargetOrigin=(0,z.createBox)(),(0,$.calcRelativePosition)(this.relativeTargetOrigin,this.target,t.target),F(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}n.statsBuffer.value&&tn.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,ti.hasScale)(this.parent.latestValues)||(0,ti.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
99if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===o.frameData.timestamp&&(i=!1),i)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;F(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,l=this.treeScale.y;(0,O.applyTreeDeltas)(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=(0,z.createBox)());let{target:u}=t;if(!u){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(I(this.prevProjectionDelta.x,this.projectionDelta.x),I(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,$.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.treeScale.x===a&&this.treeScale.y===l&&Q(this.projectionDelta.x,this.prevProjectionDelta.x)&&Q(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),n.statsBuffer.value&&tn.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=(0,z.createDelta)(),this.projectionDelta=(0,z.createDelta)(),this.projectionDeltaWithTransform=(0,z.createDelta)()}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},a=(0,z.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=(0,z.createBox)(),l=(r?r.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(tS));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(tT(a.x,t.x,r),tT(a.y,t.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,m,f,y,g;(0,$.calcRelativePosition)(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,f=this.relativeTargetOrigin,y=o,g=r,tP(m.x,f.x,y.x,g),tP(m.y,f.y,y.y,g),i&&(u=this.relativeTarget,d=i,q(u.x,d.x)&&q(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,z.createBox)()),F(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=(0,p.mixNumber)(0,i.opacity??1,k(r)),t.opacityExit=(0,p.mixNumber)(e.opacity??1,0,L(r))):s&&(t.opacity=(0,p.mixNumber)(e.opacity??1,i.opacity??1,r));for(let n=0;n<M;n++){let s=`border${V[n]}Radius`,a=R(e,s),o=R(i,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||D(a)===D(o)?(t[s]=Math.max((0,p.mixNumber)(E(a),E(o),r),0),(S.percent.test(o)||S.percent.test(a))&&(t[s]+="%")):t[s]=o)}(e.rotate||i.rotate)&&(t.rotate=(0,p.mixNumber)(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,o.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=o.frame.update(()=>{var e,i,r;let n;tr.globalProjectionState.hasAnimatedSinceResize=!0,c.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,d.motionValue)(0)),this.currentAnimation=(e=this.motionValue,i=[0,1e3],r={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{c.activeAnimations.layout--},onComplete:()=>{c.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=(0,g.isMotionValue)(e)?e:(0,d.motionValue)(e)).start((0,v.animateMotionValue)("",n,i,r)),n.animation),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:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&tE(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||(0,z.createBox)();let e=(0,$.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=(0,$.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}F(e,i),(0,O.transformBox)(e,n),(0,$.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new J),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;
99return 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 r=this.getStack();r&&r.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 r={};i.z&&to("z",t,r,this.animationValues);for(let e=0;e<ts.length;e++)to(`rotate${ts[e]}`,t,r,this.animationValues),to(`skew${ts[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[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=(0,P.resolveMotionValue)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,P.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,ti.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=r.animationValues||r.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y,a=i?.z||0;if((n||s||a)&&(r=`translate3d(${n}px, ${s}px, ${a}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:s,skewX:a,skewY:o}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),a&&(r+=`skewX(${a}deg) `),o&&(r+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(r+=`scale(${o}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(s=i(n,s)),t.transform=s;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,r.animationValues?t.opacity=r===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=r===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,tt.scaleCorrectors){if
99(void 0===n[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=tt.scaleCorrectors[e],l="none"===s?n[e]:i(n[e],r);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=r===this?(0,P.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(tm),this.root.sharedNodes.clear()}}}function tu(t){t.updateLayout()}function th(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=t.layout,{animationType:n}=t.options,s=e.source!==t.layout.source;"size"===n?(0,te.eachAxis)(t=>{let r=s?e.measuredBox[t]:e.layoutBox[t],n=(0,$.calcLength)(r);r.min=i[t].min,r.max=r.min+n}):tE(n,e.layoutBox,i)&&(0,te.eachAxis)(r=>{let n=s?e.measuredBox[r]:e.layoutBox[r],a=(0,$.calcLength)(i[r]);n.max=n.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+a)});let a=(0,z.createDelta)();(0,$.calcBoxDelta)(a,i,e.layoutBox);let o=(0,z.createDelta)();s?(0,$.calcBoxDelta)(o,t.applyTransform(r,!0),e.measuredBox):(0,$.calcBoxDelta)(o,i,e.layoutBox);let l=!X(a),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let a=(0,z.createBox)();(0,$.calcRelativePosition)(a,e.layoutBox,n.layoutBox);let o=(0,z.createBox)();(0,$.calcRelativePosition)(o,i,s.layoutBox),_(a,o)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tc(t){n.statsBuffer.value&&tn.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function td(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tp(t){t.clearSnapshot()}function tm(t){t.clearMeasurements()}function tf(t){t.isLayoutDirty=!1}function ty(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tg(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tv(t){t.resolveTargetDelta()}function tx(t){t.calcProjection()}function tb(t){t.resetSkewAndRotation()}function tw(t){t.removeLeadSnapshot()}function tT(t,e,i){t.translate=(0,p.mixNumber)(e.translate,0,i),t.scale=(0,p.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tP(t,e,i,r){t.min=(0,p.mixNumber)(e.min,i.min,r),t.max=(0,p.mixNumber)(e.max,i.max,r)}function tS(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tC={duration:.45,ease:[.4,0,.1,1]},tA=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tV=tA("applewebkit/")&&!tA("chrome/")?Math.round:y.noop;function tM(t){t.min=tV(t.min),t.max=tV(t.max)}function tE(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,$.isNear)(Z(e),Z(i),.2)}function tD(t){return t!==t.root&&t.scroll?.wasRoot}var tR=t.i(65974);let tk=tl({attachResizeListener:(t,e)=>(0,tR.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tL={current:void 0},tB=tl({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tL.current){let t=new tk({});t.mount(window),t.setOptions({layoutScroll:!0}),tL.current=t}return tL.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});t.s(["HTMLProjectionNode",0,tB],33495);let tj={pan:{Feature:i.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:tB,MeasureLayout:r.MeasureLayout}};t.s(["drag",0,tj],22462);var tF=t.i(49448);function tI(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let r=document;e&&(r=e.current);let n=i?.[t]??r.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t)}function tO(t,e){let i=tI(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function t$(t){return!("touch"===t.pointerType||(0,tF.isDragActive)())}t.s(["resolveElements",0,tI],69851),t.s(["setupGesture",0,tO],97240);var tN=t.i(21402),tU=t.i(50419);function tW(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&o.frame.postRender(()=>n(e,(0,tN.extractEventInfo)(e)))}class tG extends tU.Feature{mount(){let{current:t}=this.node;
99t&&(this.unmount=function(t,e,i={}){let[r,n,s]=tO(t,i),a=t=>{if(!t$(t))return;let{target:i}=t,r=e(i,t);if("function"!=typeof r||!i)return;let s=t=>{t$(t)&&(r(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,n)};return r.forEach(t=>{t.addEventListener("pointerenter",a,n)}),s}(t,(t,e)=>(tW(this.node,e,"Start"),t=>tW(this.node,t,"End"))))}unmount(){}}t.s(["HoverGesture",0,tG],78759);var tH=t.i(9648),tz=tU;class tK extends tz.Feature{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=(0,tH.pipe)((0,tR.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,tR.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}t.s(["FocusGesture",0,tK],11507)},35691,t=>{"use strict";var e=t.i(70678),i=t.i(72420),r=t.i(37932),n=t.i(22462),s=t.i(78759),a=t.i(11507),o=t.i(21216),l=t.i(49448);let u=(t,e)=>!!e&&(t===e||u(t,e.parentElement));var h=t.i(68484),c=t.i(97240);let d=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),p=new WeakSet;function m(t){return e=>{"Enter"===e.key&&t(e)}}function f(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function y(t){return(0,h.isPrimaryPointer)(t)&&!(0,l.isDragActive)()}var g=t.i(38102),v=t.i(21402),x=t.i(50419);function b(t,e,i){let{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&g.frame.postRender(()=>n(e,(0,v.extractEventInfo)(e)))}class w extends x.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=(0,c.setupGesture)(t,i),a=t=>{let r=t.currentTarget;if(!y(t))return;p.add(r);let s=e(r,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),p.has(r)&&p.delete(r),y(t)&&"function"==typeof s&&s(t,{success:e})},o=t=>{a(t,r===window||r===document||i.useGlobalTarget||u(r,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",l,n)};return r.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",a,n),(0,o.isHTMLElement)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let r=m(()=>{if(p.has(i))return;f(i,"down");let t=m(()=>{f(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>f(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)})(t,n)),d.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(b(this.node,e,"Start"),(t,{success:e})=>b(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}var T=x;let P=new WeakMap,S=new WeakMap,C=t=>{let e=P.get(t.target);e&&e(t)},A=t=>{t.forEach(C)},V={some:0,all:1};class M extends T.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:a}=i,o={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:V[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=e?i:r;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;S.has(i)||S.set(i,{});let r=S.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(A,{root:t,...e})),r[n]}(o),P.set(t,l),e.observe(t),()=>{P.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<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 E={inView:{Feature:M},tap:{Feature:w},focus:{Feature:a.FocusGesture},hover:{Feature:s.HoverGesture}};var D=t.i(33495),R=t.i(38341);let k={layout:{ProjectionNode:D.HTMLProjectionNode,MeasureLayout:R.MeasureLayout}},L={...r.animations,...E,...n.drag,...k},B=(0,i.createMotionProxy)(L,e.createDomVisualElement);t.s(["motion",0,B],35691)},71429,t=>{"use strict";t.s(["trackEvent",0,function(t,e={}){window.gtag&&window.gtag("event",t,e)}])}]);

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.