芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/ithemes-security-pro/dist/9890.min.js
"use strict";(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[9890],{52278:(t,e,n)=>{n.d(e,{Z:()=>o});var s=n(6293),i=n(14776);const o=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}))},63708:(t,e,n)=>{n.d(e,{Z:()=>o});var s=n(6293),i=n(14776);const o=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}))},36713:(t,e,n)=>{n.d(e,{Z:()=>o});var s=n(6293),i=n(14776);const o=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"}))},83904:(t,e,n)=>{n.d(e,{Z:()=>o});var s=n(6293),i=n(14776);const o=(0,s.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}))},55024:(t,e,n)=>{n.d(e,{Z:()=>o});var s=n(6293),i=n(14776);const o=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}))},96015:(t,e,n)=>{n.d(e,{Z:()=>o});var s=n(6293),i=n(14776);const o=(0,s.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}))},36058:(t,e,n)=>{n.d(e,{Z:()=>o});var s=n(6293),i=n(14776);const o=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}))},65430:(t,e,n)=>{n.d(e,{Z:()=>o});var s=n(6293),i=n(14776);const o=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}))},82816:(t,e,n)=>{n.d(e,{Z:()=>o});var s=n(6293),i=n(14776);const o=(0,s.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Path,{d:"M9 13.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM9 16a4.002 4.002 0 003.8-2.75H15V16h2.5v-2.75H19v-2.5h-6.2A4.002 4.002 0 005 12a4 4 0 004 4z",fillRule:"evenodd",clipRule:"evenodd"}))},61:(t,e,n)=>{n.d(e,{Z:()=>o});var s=n(6293),i=n(14776);const o=(0,s.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"}))},58823:(t,e,n)=>{n.d(e,{Z:()=>o});var s=n(6293),i=n(14776);const o=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"}))},71941:(t,e,n)=>{n.d(e,{Z:()=>o});var s=n(6293),i=n(14776);const o=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}))},48562:(t,e,n)=>{n.d(e,{Z:()=>o});var s=n(6293),i=n(14776);const o=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,s.createElement)(i.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}))},28306:(t,e,n)=>{var s,i;function o(t){return[t]}function r(){var t={clear:function(){t.head=null}};return t}function a(t,e,n){var s;if(t.length!==e.length)return!1;for(s=n;s
l}),s={},i="undefined"!=typeof WeakMap},47069:(t,e,n)=>{n.d(e,{ZP:()=>a});var s=n(99196),i=Object.prototype.hasOwnProperty;function o(t,e,n){for(n of t.keys())if(r(n,e))return n}function r(t,e){var n,s,a;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((s=t.length)===e.length)for(;s--&&r(t[s],e[s]););return-1===s}if(n===Set){if(t.size!==e.size)return!1;for(s of t){if((a=s)&&"object"==typeof a&&!(a=o(e,a)))return!1;if(!e.has(a))return!1}return!0}if(n===Map){if(t.size!==e.size)return!1;for(s of t){if((a=s[0])&&"object"==typeof a&&!(a=o(e,a)))return!1;if(!r(s[1],e.get(a)))return!1}return!0}if(n===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(n===DataView){if((s=t.byteLength)===e.byteLength)for(;s--&&t.getInt8(s)===e.getInt8(s););return-1===s}if(ArrayBuffer.isView(t)){if((s=t.byteLength)===e.byteLength)for(;s--&&t[s]===e[s];);return-1===s}if(!n||"object"==typeof t){for(n in s=0,t){if(i.call(t,n)&&++s&&!i.call(e,n))return!1;if(!(n in e)||!r(t[n],e[n]))return!1}return Object.keys(e).length===s}}return t!=t&&e!=e}function a(t,e){return s.useEffect(t,(n=e,i=s.useRef(n),o=s.useRef(0),r(n,i.current)||(i.current=n,o.current+=1),s.useMemo((function(){return i.current}),[o.current])));var n,i,o}},94946:(t,e,n)=>{n.d(e,{M:()=>g});var s=n(85893),i=n(99196),o=n(4048),r=n(92585),a=n(77439);class l extends i.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u({children:t,isPresent:e}){const n=(0,i.useId)(),o=(0,i.useRef)(null),r=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:u}=(0,i.useContext)(a._);return(0,i.useInsertionEffect)((()=>{const{width:t,height:s,top:i,left:a}=r.current;if(e||!o.current||!t||!s)return;o.current.dataset.motionPopId=n;const l=document.createElement("style");return u&&(l.nonce=u),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${s}px !important;\n top: ${i}px !important;\n left: ${a}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[e]),(0,s.jsx)(l,{isPresent:e,childRef:o,sizeRef:r,children:i.cloneElement(t,{ref:o})})}const c=({children:t,initial:e,isPresent:n,onExitComplete:a,custom:l,presenceAffectsLayout:c,mode:d})=>{const p=(0,r.h)(h),m=(0,i.useId)(),f=(0,i.useCallback)((t=>{p.set(t,!0);for(const t of p.values())if(!t)return;a&&a()}),[p,a]),v=(0,i.useMemo)((()=>({id:m,initial:e,isPresent:n,custom:l,onExitComplete:f,register:t=>(p.set(t,!1),()=>p.delete(t))})),c?[Math.random(),f]:[n,f]);return(0,i.useMemo)((()=>{p.forEach(((t,e)=>p.set(e,!1)))}),[n]),i.useEffect((()=>{!n&&!p.size&&a&&a()}),[n]),"popLayout"===d&&(t=(0,s.jsx)(u,{isPresent:n,children:t})),(0,s.jsx)(o.O.Provider,{value:v,children:t})};function h(){return new Map}var d=n(40910),p=n(37063);const m=t=>t.key||"";function f(t){const e=[];return i.Children.forEach(t,(t=>{(0,i.isValidElement)(t)&&e.push(t)})),e}var v=n(14822);const g=({children:t,exitBeforeEnter:e,custom:n,initial:o=!0,onExitComplete:a,presenceAffectsLayout:l=!0,mode:u="sync"})=>{(0,p.k)(!e,"Replace exitBeforeEnter with mode='wait'");const h=(0,i.useMemo)((()=>f(t)),[t]),g=h.map(m),y=(0,i.useRef)(!0),x=(0,i.useRef)(h),w=(0,r.h)((()=>new Map)),[P,T]=(0,i.useState)(h),[S,b]=(0,i.useState)(h);(0,v.L)((()=>{y.current=!1,x.current=h;for(let t=0;t
{const e=m(t),i=h===S||g.includes(e);return(0,s.jsx)(c,{isPresent:i,initial:!(y.current&&!o)&&void 0,custom:i?void 0:n,presenceAffectsLayout:l,mode:u,onExitComplete:i?void 0:()=>{if(!w.has(e))return;w.set(e,!0);let t=!0;w.forEach((e=>{e||(t=!1)})),t&&(null==E||E(),b(x.current),a&&a())},children:t},e)}))})}},40910:(t,e,n)=>{n.d(e,{p:()=>s});const s=(0,n(99196).createContext)({})},77439:(t,e,n)=>{n.d(e,{_:()=>s});const s=(0,n(99196).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},4048:(t,e,n)=>{n.d(e,{O:()=>s});const s=(0,n(99196).createContext)(null)},92496:(t,e,n)=>{n.d(e,{Z:()=>r});var s=n(72216);const i=["read","resolveKeyframes","update","preRender","render","postRender"],o=40;function r(t,e){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=i.reduce(((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,s=!1,i=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(r)}const l={schedule:(t,i=!1,r=!1)=>{const a=r&&s?e:n;return i&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{r=t,s?i=!0:(s=!0,[e,n]=[n,e],n.clear(),e.forEach(a),s=!1,i&&(i=!1,l.process(t)))}};return l}(l),t)),{}),{read:c,resolveKeyframes:h,update:d,preRender:p,render:m,postRender:f}=u,v=()=>{const i=s.c.useManualTiming?a.timestamp:performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(i-a.timestamp,o),1),a.timestamp=i,a.isProcessing=!0,c.process(a),h.process(a),d.process(a),p.process(a),m.process(a),f.process(a),a.isProcessing=!1,n&&e&&(r=!1,t(v))};return{schedule:i.reduce(((e,s)=>{const i=u[s];return e[s]=(e,s=!1,o=!1)=>(n||(n=!0,r=!0,a.isProcessing||t(v)),i.schedule(e,s,o)),e}),{}),cancel:t=>{for(let e=0;e
{n.d(e,{Pn:()=>r,Wi:()=>o,w0:()=>a,yL:()=>l});var s=n(79534),i=n(92496);const{schedule:o,cancel:r,state:a,steps:l}=(0,i.Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:s.Z,!0)},9233:(t,e,n)=>{n.d(e,{X:()=>a});var s=n(72216),i=n(46961);let o;function r(){o=void 0}const a={now:()=>(void 0===o&&a.set(i.w0.isProcessing||s.c.useManualTiming?i.w0.timestamp:performance.now()),o),set:t=>{o=t,queueMicrotask(r)}}},69687:(t,e,n)=>{function s(t){if("undefined"==typeof Proxy)return t;const e=new Map;return new Proxy(((...e)=>t(...e)),{get:(n,s)=>"create"===s?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}function i(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}n.d(e,{E:()=>Mr});const o=t=>Array.isArray(t);function r(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s
{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function u(t,e,n,s){if("function"==typeof e){const[i,o]=l(s);e=e(void 0!==n?n:t.custom,i,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[i,o]=l(s);e=e(void 0!==n?n:t.custom,i,o)}return e}function c(t,e,n){const s=t.getProps();return u(s,e,void 0!==n?n:s.custom,t)}const h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...h],p=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],m=new Set(p),f=t=>1e3*t,v=t=>t/1e3,g={type:"spring",stiffness:500,damping:25,restSpeed:10},y={type:"keyframes",duration:.8},x={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},w=(t,{keyframes:e})=>e.length>2?y:m.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:g:x;function P(t,e){return t?t[e]||t.default||t:void 0}var T=n(72216);const S=t=>null!==t;function b(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(S),o=e&&"loop"!==n&&e%2==1?0:i.length-1;return o&&void 0!==s?s:i[o]}var A=n(46961),E=n(79534);const V=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function M(t,e,n,s){if(t===e&&n===s)return E.Z;return i=>0===i||1===i?i:V(function(t,e,n,s,i){let o,r,a=0;do{r=e+(n-e)/2,o=V(r,s,i)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(i,0,1,t,n),e,s)}const C=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,D=t=>e=>1-t(1-e),R=M(.33,1.53,.69,.99),k=D(R),L=C(k),B=t=>(t*=2)<1?.5*k(t):.5*(2-Math.pow(2,-10*(t-1))),j=t=>1-Math.sin(Math.acos(t)),F=D(j),O=C(j),I=t=>/^0[^.\s]+$/u.test(t);var W=n(37063);const U=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),z=t=>e=>"string"==typeof e&&e.startsWith(t),$=z("--"),N=z("var(--"),X=t=>!!N(t)&&Z.test(t.split("/*")[0].trim()),Z=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,H=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function G(t,e,n=1){(0,W.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[s,i]=function(t){const e=H.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${null!=n?n:s}`,i]}(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const t=o.trim();return U(t)?parseFloat(t):t}return X(i)?G(i,e,n+1):i}const K=(t,e,n)=>n>e?e:n
"number"==typeof t,parse:parseFloat,transform:t=>t},q={...Y,transform:t=>K(0,1,t)},_={...Y,default:1},J=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Q=J("deg"),tt=J("%"),et=J("px"),nt=J("vh"),st=J("vw"),it={...tt,parse:t=>tt.parse(t)/100,transform:t=>tt.transform(100*t)},ot=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),rt=t=>t===Y||t===et,at=(t,e)=>parseFloat(t.split(", ")[e]),lt=(t,e)=>(n,{transform:s})=>{if("none"===s||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return at(i[1],e);{const e=s.match(/^matrix\((.+)\)$/u);return e?at(e[1],t):0}},ut=new Set(["x","y","z"]),ct=p.filter((t=>!ut.has(t))),ht={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:lt(4,13),y:lt(5,14)};ht.translateX=ht.x,ht.translateY=ht.y;const dt=t=>e=>e.test(t),pt=[Y,et,tt,Q,st,nt,{test:t=>"auto"===t,parse:t=>t}],mt=t=>pt.find(dt(t)),ft=new Set;let vt=!1,gt=!1;function yt(){if(gt){const t=Array.from(ft).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return ct.forEach((n=>{const s=t.getValue(n);void 0!==s&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((([e,n])=>{var s;null===(s=t.getValue(e))||void 0===s||s.set(n)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}gt=!1,vt=!1,ft.forEach((t=>t.complete())),ft.clear()}function xt(){ft.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(gt=!0)}))}class wt{constructor(t,e,n,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ft.add(this),vt||(vt=!0,A.Wi.read(xt),A.Wi.resolveKeyframes(yt))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:s}=this;for(let i=0;i
Math.round(1e5*t)/1e5,Tt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,St=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bt=(t,e)=>n=>Boolean("string"==typeof n&&St.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),At=(t,e,n)=>s=>{if("string"!=typeof s)return s;const[i,o,r,a]=s.match(Tt);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},Et={...Y,transform:t=>Math.round((t=>K(0,255,t))(t))},Vt={test:bt("rgb","red"),parse:At("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Et.transform(t)+", "+Et.transform(e)+", "+Et.transform(n)+", "+Pt(q.transform(s))+")"},Mt={test:bt("#"),parse:function(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}},transform:Vt.transform},Ct={test:bt("hsl","hue"),parse:At("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+tt.transform(Pt(e))+", "+tt.transform(Pt(n))+", "+Pt(q.transform(s))+")"},Dt={test:t=>Vt.test(t)||Mt.test(t)||Ct.test(t),parse:t=>Vt.test(t)?Vt.parse(t):Ct.test(t)?Ct.parse(t):Mt.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?Vt.transform(t):Ct.transform(t)},Rt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,kt="number",Lt="color",Bt="var",jt="var(",Ft="${}",Ot=/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 It(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const r=e.replace(Ot,(t=>(Dt.test(t)?(s.color.push(o),i.push(Lt),n.push(Dt.parse(t))):t.startsWith(jt)?(s.var.push(o),i.push(Bt),n.push(t)):(s.number.push(o),i.push(kt),n.push(parseFloat(t))),++o,Ft))).split(Ft);return{values:n,split:r,indexes:s,types:i}}function Wt(t){return It(t).values}function Ut(t){const{split:e,types:n}=It(t),s=e.length;return t=>{let i="";for(let o=0;o
"number"==typeof t?0:t,$t={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(Tt))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(Rt))||void 0===n?void 0:n.length)||0)>0},parse:Wt,createTransformer:Ut,getAnimatableNone:function(t){const e=Wt(t);return Ut(t)(e.map(zt))}},Nt=new Set(["brightness","contrast","saturate","opacity"]);function Xt(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[s]=n.match(Tt)||[];if(!s)return t;const i=n.replace(s,"");let o=Nt.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Zt=/\b([a-z-]*)\(.*?\)/gu,Ht={...$t,getAnimatableNone:t=>{const e=t.match(Zt);return e?e.map(Xt).join(" "):t}},Gt={borderWidth:et,borderTopWidth:et,borderRightWidth:et,borderBottomWidth:et,borderLeftWidth:et,borderRadius:et,radius:et,borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomRightRadius:et,borderBottomLeftRadius:et,width:et,maxWidth:et,height:et,maxHeight:et,top:et,right:et,bottom:et,left:et,padding:et,paddingTop:et,paddingRight:et,paddingBottom:et,paddingLeft:et,margin:et,marginTop:et,marginRight:et,marginBottom:et,marginLeft:et,backgroundPositionX:et,backgroundPositionY:et},Kt={rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:_,scaleX:_,scaleY:_,scaleZ:_,skew:Q,skewX:Q,skewY:Q,distance:et,translateX:et,translateY:et,translateZ:et,x:et,y:et,z:et,perspective:et,transformPerspective:et,opacity:q,originX:it,originY:it,originZ:et},Yt={...Y,transform:Math.round},qt={...Gt,...Kt,zIndex:Yt,size:et,fillOpacity:q,strokeOpacity:q,numOctaves:Yt},_t={...qt,color:Dt,backgroundColor:Dt,outlineColor:Dt,fill:Dt,stroke:Dt,borderColor:Dt,borderTopColor:Dt,borderRightColor:Dt,borderBottomColor:Dt,borderLeftColor:Dt,filter:Ht,WebkitFilter:Ht},Jt=t=>_t[t];function Qt(t,e){let n=Jt(t);return n!==Ht&&(n=$t),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const te=new Set(["auto","none","0"]);class ee extends wt{constructor(t,e,n,s,i){super(t,e,n,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n
{e.getValue(t).set(n)})),this.resolveNoneKeyframes()}}function ne(t){return"function"==typeof t}var se=n(9233);const ie=(t,e)=>!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!$t.test(t)&&"0"!==t||t.startsWith("url(")));function oe(t,e,n,s){const i=t[0];if(null===i)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],r=ie(i,e),a=ie(o,e);return(0,W.K)(r===a,`You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n
40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(xt(),yt()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=se.X.now(),this.hasAttemptedResolve=!0;const{name:n,type:s,velocity:i,delay:o,onComplete:r,onUpdate:a,isGenerator:l}=this.options;if(!l&&!oe(t,n,s,i)){if(!o)return null==a||a(b(t,this.options,e)),null==r||r(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((t=>{this.resolveFinishedPromise=t}))}}var ae=n(45904);const le=5;function ue(t,e,n){const s=Math.max(e-le,0);return(0,ae.R)(n-t(s),e-s)}const ce=.001,he=.01,de=10,pe=.05,me=1;const fe=12;function ve(t,e){return t*Math.sqrt(1-e*e)}const ge=["duration","bounce"],ye=["stiffness","damping","mass"];function xe(t,e){return e.some((e=>void 0!==t[e]))}function we({keyframes:t,restDelta:e,restSpeed:n,...s}){const i=t[0],o=t[t.length-1],r={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:h,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!xe(t,ye)&&xe(t,ge)){const n=function({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let i,o;(0,W.K)(t<=f(de),"Spring duration must be 10 seconds or less");let r=1-e;r=K(pe,me,r),t=K(he,de,v(t)),r<1?(i=e=>{const s=e*r,i=s*t,o=s-n,a=ve(e,r),l=Math.exp(-i);return ce-o/a*l},o=e=>{const s=e*r*t,o=s*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-s),u=ve(Math.pow(e,2),r);return(-i(e)+ce>0?-1:1)*((o-a)*l)/u}):(i=e=>Math.exp(-e*t)*((e-n)*t+1)-ce,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let s=n;for(let n=1;n
{const n=Math.exp(-m*y*e);return o-n*((p+m*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}}else if(1===m)w=t=>o-Math.exp(-y*t)*(g+(p+y*g)*t);else{const t=y*Math.sqrt(m*m-1);w=e=>{const n=Math.exp(-m*y*e),s=Math.min(t*e,300);return o-n*((p+m*y*g)*Math.sinh(s)+t*g*Math.cosh(s))/t}}return{calculatedDuration:d&&c||null,next:t=>{const s=w(t);if(d)r.done=t>=c;else{let i=0;m<1&&(i=0===t?f(p):ue(w,t,s));const a=Math.abs(i)<=n,l=Math.abs(o-s)<=e;r.done=a&&l}return r.value=r.done?o:s,r}}}function Pe({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],d={done:!1,value:h},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)
-m*Math.exp(-t/s),y=t=>v+g(t),x=t=>{const e=g(t),n=y(t);d.done=Math.abs(e)<=u,d.value=d.done?v:n};let w,P;const T=t=>{var e;e=d.value,(void 0!==a&&e
l)&&(w=t,P=we({keyframes:[d.value,p(d.value)],velocity:ue(y,t,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return P||void 0!==w||(e=!0,x(t),T(t)),void 0!==w&&t>=w?P.next(t-w):(!e&&x(t),d)}}}const Te=M(.42,0,1,1),Se=M(0,0,.58,1),be=M(.42,0,.58,1),Ae=t=>Array.isArray(t)&&"number"==typeof t[0],Ee={linear:E.Z,easeIn:Te,easeInOut:be,easeOut:Se,circIn:j,circInOut:O,circOut:F,backIn:k,backInOut:L,backOut:R,anticipate:B},Ve=t=>{if(Ae(t)){(0,W.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,s,i]=t;return M(e,n,s,i)}return"string"==typeof t?((0,W.k)(void 0!==Ee[t],`Invalid easing type '${t}'`),Ee[t]):t},Me=(t,e)=>n=>e(t(n)),Ce=(...t)=>t.reduce(Me),De=(t,e,n)=>{const s=e-t;return 0===s?1:(n-t)/s},Re=(t,e,n)=>t+(e-t)*n;function ke(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Le(t,e){return n=>n>0?e:t}const Be=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},je=[Mt,Vt,Ct];function Fe(t){const e=(n=t,je.find((t=>t.test(n))));var n;if((0,W.K)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let s=e.parse(t);return e===Ct&&(s=function({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,n/=100;let i=0,o=0,r=0;if(e/=100){const s=n<.5?n*(1+e):n+e-n*e,a=2*n-s;i=ke(a,s,t+1/3),o=ke(a,s,t),r=ke(a,s,t-1/3)}else i=o=r=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*r),alpha:s}}(s)),s}const Oe=(t,e)=>{const n=Fe(t),s=Fe(e);if(!n||!s)return Le(t,e);const i={...n};return t=>(i.red=Be(n.red,s.red,t),i.green=Be(n.green,s.green,t),i.blue=Be(n.blue,s.blue,t),i.alpha=Re(n.alpha,s.alpha,t),Vt.transform(i))},Ie=new Set(["none","hidden"]);function We(t,e){return n=>Re(t,e,n)}function Ue(t){return"number"==typeof t?We:"string"==typeof t?X(t)?Le:Dt.test(t)?Oe:Ne:Array.isArray(t)?ze:"object"==typeof t?Dt.test(t)?Oe:$e:Le}function ze(t,e){const n=[...t],s=n.length,i=t.map(((t,n)=>Ue(t)(t,e[n])));return t=>{for(let e=0;e
{for(const e in s)n[e]=s[e](t);return n}}const Ne=(t,e)=>{const n=$t.createTransformer(e),s=It(t),i=It(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ie.has(t)&&!i.values.length||Ie.has(e)&&!s.values.length?function(t,e){return Ie.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):Ce(ze(function(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let o=0;o
Array.isArray(t)&&"number"!=typeof t[0])(s)?s.map(Ve):Ve(s),o={done:!1,value:e[0]},r=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:function(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=De(0,e,s);t.push(Re(n,1,i))}}(e,t.length-1),e}(e),t),a=function(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if((0,W.k)(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&t[0]===t[1])return()=>e[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=function(t,e,n){const s=[],i=n||Xe,o=t.length-1;for(let n=0;n
{let n=0;if(a>1)for(;n
l(K(t[0],t[o-1],e)):l}(r,e,{ease:Array.isArray(i)?i:(l=e,u=i,l.map((()=>u||be)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}const He=t=>{const e=({timestamp:e})=>t(e);return{start:()=>A.Wi.update(e,!0),stop:()=>(0,A.Pn)(e),now:()=>A.w0.isProcessing?A.w0.timestamp:se.X.now()}},Ge={decay:Pe,inertia:Pe,tween:Ze,keyframes:Ze,spring:we},Ke=t=>t/100;class Ye extends re{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:s,keyframes:i}=this.options,o=(null==s?void 0:s.KeyframeResolver)||wt;this.resolver=new o(i,((t,e)=>this.onKeyframesResolved(t,e)),e,n,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,r=ne(e)?e:Ge[e]||Ze;let a,l;r!==Ze&&"number"!=typeof t[0]&&(a=Ce(Ke,Xe(t[0],t[1])),t=[0,100]);const u=r({...this.options,keyframes:t});"mirror"===i&&(l=r({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=function(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}(u));const{calculatedDuration:c}=u,h=c+s;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:h,totalDuration:h*(n+1)-s}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:r,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);const{delay:h,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-h*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=i;if(d){const t=Math.min(this.currentTime,u)/c;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1),Boolean(e%2)&&("reverse"===p?(n=1-n,m&&(n-=m/c)):"mirror"===p&&(x=o)),y=K(0,1,n)*c}const w=g?{done:!1,value:a[0]}:x.next(y);r&&(w.value=r(w.value));let{done:P}=w;g||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return T&&void 0!==s&&(w.value=b(a,this.options,s)),f&&f(w.value),T&&this.finish(),w}get duration(){const{resolved:t}=this;return t?v(t.calculatedDuration):0}get time(){return v(this.currentTime)}set time(t){t=f(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=v(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=He,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const s=this.driver.now();null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=s):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const qe=new Set(["opacity","clipPath","filter","transform"]),_e=(t,e)=>{let n="";const s=Math.max(Math.round(e/10),2);for(let e=0;e
(void 0===e&&(e=t()),e)}const Qe={linearEasing:void 0};function tn(t,e){const n=Je(t);return()=>{var t;return null!==(t=Qe[e])&&void 0!==t?t:n()}}const en=tn((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),"linearEasing");function nn(t){return Boolean("function"==typeof t&&en()||!t||"string"==typeof t&&(t in on||en())||Ae(t)||Array.isArray(t)&&t.every(nn))}const sn=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,on={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:sn([0,.65,.55,1]),circOut:sn([.55,0,1,.45]),backIn:sn([.31,.01,.66,-.59]),backOut:sn([.33,1.53,.69,.99])};function rn(t,e){return t?"function"==typeof t&&en()?_e(t,e):Ae(t)?sn(t):Array.isArray(t)?t.map((t=>rn(t,e)||on.easeOut)):on[t]:void 0}function an(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=rn(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}function ln(t,e){t.timeline=e,t.onfinish=null}const un=Je((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),cn={anticipate:B,backInOut:L,circInOut:O};class hn extends re{constructor(t){super(t);const{name:e,motionValue:n,element:s,keyframes:i}=this.options;this.resolver=new ee(i,((t,e)=>this.onKeyframesResolved(t,e)),e,n,s),this.resolver.scheduleResolve()}initPlayback(t,e){var n;let{duration:s=300,times:i,ease:o,type:r,motionValue:a,name:l,startTime:u}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;var c;if("string"==typeof o&&en()&&o in cn&&(o=cn[o]),ne((c=this.options).type)||"spring"===c.type||!nn(c.ease)){const{onComplete:e,onUpdate:n,motionValue:a,element:l,...u}=this.options,c=function(t,e){const n=new Ye({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let o=0;for(;!s.done&&o<2e4;)s=n.sample(o),i.push(s.value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(t,u);1===(t=c.keyframes).length&&(t[1]=t[0]),s=c.duration,i=c.times,o=c.ease,r="keyframes"}const h=an(a.owner.current,l,t,{...this.options,duration:s,times:i,ease:o});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(ln(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:n}=this.options;a.set(b(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:s,times:i,type:r,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return v(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return v(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=f(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return E.Z;const{animation:n}=e;ln(n,t)}else this.pendingTimeline=t;return E.Z}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:s,type:i,ease:o,times:r}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,c=new Ye({...u,keyframes:n,duration:s,type:i,ease:o,times:r,isGenerator:!0}),h=f(this.time);t.setWithVelocity(c.sample(h-10).value,c.sample(h).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;return un()&&n&&qe.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!s&&"mirror"!==i&&0!==o&&"inertia"!==r}}const dn=Je((()=>void 0!==window.ScrollTimeline));class pn{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n
dn()&&n.attachTimeline?n.attachTimeline(t):e(n)));return()=>{n.forEach(((t,e)=>{t&&t(),this.animations[e].stop()}))}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e
e[t]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const mn=(t,e,n,s={},i,o)=>r=>{const a=P(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u-=f(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};(function({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(a)||(c={...c,...w(t,c)}),c.duration&&(c.duration=f(c.duration)),c.repeatDelay&&(c.repeatDelay=f(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(h=!0)),T.c.skipAnimations&&(h=!0,c.duration=0,c.delay=0),h&&!o&&void 0!==e.get()){const t=b(c.keyframes,a);if(void 0!==t)return A.Wi.update((()=>{c.onUpdate(t),c.onComplete()})),new pn([])}return!o&&hn.supports(c)?new hn(c):new Ye(c)},fn=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),vn=t=>o(t)?t[t.length-1]||0:t;var gn=n(89022);function yn(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,gn.BX)(n))}const xn=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),wn="data-"+xn("framerAppearId");function Pn(t){return t.props[wn]}const Tn=t=>Boolean(t&&t.getVelocity);function Sn(t,e){const n=t.getValue("willChange");if(s=n,Boolean(Tn(s)&&s.add))return n.add(e);var s}function bn({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,s}function An(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(r=s);const u=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const e in l){const s=t.getValue(e,null!==(o=t.latestValues[e])&&void 0!==o?o:null),i=l[e];if(void 0===i||h&&bn(h,e))continue;const a={delay:n,...P(r||{},e)};let c=!1;if(window.MotionHandoffAnimation){const n=Pn(t);if(n){const t=window.MotionHandoffAnimation(n,e,A.Wi);null!==t&&(a.startTime=t,c=!0)}}Sn(t,e),s.start(mn(e,s,i,t.shouldReduceMotion&&m.has(e)?{type:!1}:a,t,c));const d=s.animation;d&&u.push(d)}return a&&Promise.all(u).then((()=>{A.Wi.update((()=>{a&&function(t,e){const n=c(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const e in o)yn(t,e,vn(o[e]))}(t,a)}))})),u}function En(t,e,n={}){var s;const i=c(t,e,"exit"===n.type?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(An(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{const{delayChildren:i=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=1===i?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(Vn).forEach(((t,s)=>{t.notify("AnimationStart",e),r.push(En(t,e,{...o,delay:n+l(s)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,i+s,r,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then((()=>e()))}return Promise.all([r(),a(n.delay)])}function Vn(t,e){return t.sortNodePosition(e)}const Mn=d.length;function Cn(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&Cn(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n
Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e)){const i=e.map((e=>En(t,e,n)));s=Promise.all(i)}else if("string"==typeof e)s=En(t,e,n);else{const i="function"==typeof e?c(t,e,n.custom):e;s=Promise.all(An(t,i,n))}return s.then((()=>{t.notify("AnimationComplete",e)}))}(t,e,n))))}(t),n=Bn(),s=!0;const l=e=>(n,s)=>{var i;const o=c(t,s,"exit"===e?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){const{transition:t,transitionEnd:e,...s}=o;n={...n,...s,...e}}return n};function u(u){const{props:c}=t,h=Cn(t.parent)||{},d=[],p=new Set;let m={},f=1/0;for(let e=0;e
f&&P,E=!1;const V=Array.isArray(w)?w:[w];let M=V.reduce(l(y),{});!1===T&&(M={});const{prevResolvedValues:C={}}=x,D={...C,...M},R=e=>{A=!0,p.has(e)&&(E=!0,p.delete(e)),x.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in D){const e=M[t],n=C[t];if(m.hasOwnProperty(t))continue;let s=!1;s=o(e)&&o(n)?!r(e,n):e!==n,s?null!=e?R(t):p.add(t):void 0!==e&&p.has(t)?R(t):x.protectedKeys[t]=!0}x.prevProp=w,x.prevResolvedValues=M,x.isActive&&(m={...m,...M}),s&&t.blockInitialAnimation&&(A=!1),A&&(!S||!b||E)&&d.push(...V.map((t=>({animation:t,options:{type:y}}))))}var v,g;if(p.size){const e={};p.forEach((n=>{const s=t.getBaseTarget(n),i=t.getValue(n);i&&(i.liveStyle=!0),e[n]=null!=s?s:null})),d.push({animation:e})}let y=Boolean(d.length);return!s||!1!==c.initial&&c.initial!==c.animate||t.manuallyAnimateOnMount||(y=!1),s=!1,y?e(d):Promise.resolve()}return{animateChanges:u,setActive:function(e,s){var i;if(n[e].isActive===s)return Promise.resolve();null===(i=t.variantChildren)||void 0===i||i.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,s)})),n[e].isActive=s;const o=u(e);for(const t in n)n[t].protectedKeys={};return o},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=Bn(),s=!0}}}function Ln(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Bn(){return{animate:Ln(!0),whileInView:Ln(),whileHover:Ln(),whileTap:Ln(),whileDrag:Ln(),whileFocus:Ln(),exit:Ln()}}class jn{constructor(t){this.isMounted=!1,this.node=t}update(){}}let Fn=0;const On={animation:{Feature:class extends jn{constructor(t){super(t),t.animationState||(t.animationState=kn(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();i(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends jn{constructor(){super(...arguments),this.id=Fn++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},In=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function Wn(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const Un=t=>e=>In(e)&&t(e,Wn(e));function zn(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function $n(t,e,n,s){return zn(t,e,Un(n),s)}const Nn=(t,e)=>Math.abs(t-e);class Xn{constructor(t,e,{transformPagePoint:n,contextWindow:s,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Gn(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Nn(t.x,e.x),s=Nn(t.y,e.y);return Math.sqrt(n**2+s**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:s}=t,{timestamp:i}=A.w0;this.history.push({...s,timestamp:i});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Zn(e,this.transformPagePoint),A.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:s,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Gn("pointercancel"===t.type?this.lastMoveEventInfo:Zn(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),s&&s(t,o)},!In(t))return;this.dragSnapToOrigin=i,this.handlers=e,this.transformPagePoint=n,this.contextWindow=s||window;const o=Zn(Wn(t),this.transformPagePoint),{point:r}=o,{timestamp:a}=A.w0;this.history=[{...r,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,Gn(o,this.history)),this.removeListeners=Ce($n(this.contextWindow,"pointermove",this.handlePointerMove),$n(this.contextWindow,"pointerup",this.handlePointerUp),$n(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,A.Pn)(this.updatePoint)}}function Zn(t,e){return e?{point:e(t.point)}:t}function Hn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Gn({point:t},e){return{point:t,delta:Hn(t,Yn(e)),offset:Hn(t,Kn(e)),velocity:qn(e,.1)}}function Kn(t){return t[0]}function Yn(t){return t[t.length-1]}function qn(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Yn(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>f(e)));)n--;if(!s)return{x:0,y:0};const o=v(i.timestamp-s.timestamp);if(0===o)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function _n(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}const Jn=_n("dragHorizontal"),Qn=_n("dragVertical");function ts(t){let e=!1;if("y"===t)e=Qn();else if("x"===t)e=Jn();else{const t=Jn(),n=Qn();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function es(){const t=ts(!0);return!t||(t(),!1)}function ns(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}const ss=.9999,is=1.0001,os=-.01,rs=.01;function as(t){return t.max-t.min}function ls(t,e,n,s=.5){t.origin=s,t.originPoint=Re(e.min,e.max,t.origin),t.scale=as(n)/as(e),t.translate=Re(n.min,n.max,t.origin)-t.originPoint,(t.scale>=ss&&t.scale<=is||isNaN(t.scale))&&(t.scale=1),(t.translate>=os&&t.translate<=rs||isNaN(t.translate))&&(t.translate=0)}function us(t,e,n,s){ls(t.x,e.x,n.x,s?s.originX:void 0),ls(t.y,e.y,n.y,s?s.originY:void 0)}function cs(t,e,n){t.min=n.min+e.min,t.max=t.min+as(e)}function hs(t,e,n){t.min=e.min-n.min,t.max=t.min+as(e)}function ds(t,e,n){hs(t.x,e.x,n.x),hs(t.y,e.y,n.y)}function ps(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function ms(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min
({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),xs=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ws(t){return[t("x"),t("y")]}function Ps({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Ts(t){return void 0===t||1===t}function Ss({scale:t,scaleX:e,scaleY:n}){return!Ts(t)||!Ts(e)||!Ts(n)}function bs(t){return Ss(t)||As(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function As(t){return Es(t.x)||Es(t.y)}function Es(t){return t&&"0%"!==t}function Vs(t,e,n){return n+e*(t-n)}function Ms(t,e,n,s,i){return void 0!==i&&(t=Vs(t,i,s)),Vs(t,n,s)+e}function Cs(t,e=0,n=1,s,i){t.min=Ms(t.min,e,n,s,i),t.max=Ms(t.max,e,n,s,i)}function Ds(t,{x:e,y:n}){Cs(t.x,e.translate,e.scale,e.originPoint),Cs(t.y,n.translate,n.scale,n.originPoint)}const Rs=.999999999999,ks=1.0000000000001;function Ls(t,e){t.min=t.min+e,t.max=t.max+e}function Bs(t,e,n,s,i=.5){Cs(t,e,n,Re(t.min,t.max,i),s)}function js(t,e){Bs(t.x,e.x,e.scaleX,e.scale,e.originX),Bs(t.y,e.y,e.scaleY,e.scale,e.originY)}function Fs(t,e){return Ps(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}const Os=({current:t})=>t?t.ownerDocument.defaultView:null,Is=new WeakMap;class Ws{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xs(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:s}=this.getProps();this.panSession=new Xn(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(Wn(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:s,onDragStart:i}=this.getProps();if(n&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ts(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ws((t=>{let e=this.getAxisMotionValue(t).get()||0;if(tt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const s=n.layout.layoutBox[t];s&&(e=as(s)*(parseFloat(e)/100))}}this.originPoint[t]=e})),i&&A.Wi.postRender((()=>i(t,e))),Sn(this.visualElement,"transform");const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:s,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:r}=e;if(s&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(r),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>ws((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:Os(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:s}=e;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&A.Wi.postRender((()=>i(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:s}=this.getProps();if(!n||!Us(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},s){return void 0!==e&&t
n&&(t=s?Re(n,t,s.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,i=this.constraints;e&&ns(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!s)&&function(t,{top:e,left:n,bottom:s,right:i}){return{x:ps(t.x,n,i),y:ps(t.y,e,s)}}(s.layoutBox,e),this.elastic=function(t=fs){return!1===t?t=0:!0===t&&(t=fs),{x:vs(t,"left","right"),y:vs(t,"top","bottom")}}(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ws((t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(s.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!ns(t))return!1;const n=t.current;(0,W.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=function(t,e,n){const s=Fs(t,n),{scroll:i}=e;return i&&(Ls(s.x,i.offset.x),Ls(s.y,i.offset.y)),s}(n,s.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:ms(t.x,e.x),y:ms(t.y,e.y)}}(s.layout.layoutBox,i);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=Ps(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=ws((r=>{if(!Us(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const u=s?200:1e6,c=s?40:1e7,h={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(r,h)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return Sn(this.visualElement,t),n.start(mn(t,n,0,e,this.visualElement,!1))}stopAnimation(){ws((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){ws((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ws((e=>{const{drag:n}=this.getProps();if(!Us(e,n,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(e);if(s&&s.layout){const{min:n,max:o}=s.layout.layoutBox[e];i.set(t[e]-Re(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!ns(e)||!n||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ws((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();s[t]=function(t,e){let n=.5;const s=as(t),i=as(e);return i>s?n=De(e.min,e.max-s,t.min):s>i&&(n=De(t.min,t.max-i,e.min)),K(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ws((e=>{if(!Us(e,t,null))return;const n=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];n.set(Re(i,o,s[e]))}))}addListeners(){if(!this.visualElement.current)return;Is.set(this.visualElement,this);const t=$n(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();ns(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,s=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),A.Wi.read(e);const i=zn(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ws((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{i(),t(),s(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=fs,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:r}}}function Us(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const zs=t=>(e,n)=>{t&&A.Wi.postRender((()=>t(e,n)))};var $s=n(85893),Ns=n(99196),Xs=n(4048),Zs=n(40910);const Hs=(0,Ns.createContext)({}),Gs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ks(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ys={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!et.test(t))return t;t=parseFloat(t)}return`${Ks(t,e.target.x)}% ${Ks(t,e.target.y)}%`}},qs={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=$t.parse(t);if(i.length>5)return s;const o=$t.createTransformer(t),r="number"!=typeof i[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=Re(a,l,.5);return"number"==typeof i[2+r]&&(i[2+r]/=u),"number"==typeof i[3+r]&&(i[3+r]/=u),o(i)}},_s={};var Js=n(92496);const{schedule:Qs,cancel:ti}=(0,Js.Z)(queueMicrotask,!1);class ei extends Ns.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:s}=this.props,{projection:i}=t;var o;o=si,Object.assign(_s,o),i&&(e.group&&e.group.add(i),n&&n.register&&s&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Gs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:s,isPresent:i}=this.props,o=n.projection;return o?(o.isPresent=i,s||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||A.Wi.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Qs.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),n&&n.deregister&&n.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ni(t){const[e,n]=function(){const t=(0,Ns.useContext)(Xs.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=(0,Ns.useId)();(0,Ns.useEffect)((()=>s(i)),[]);const o=(0,Ns.useCallback)((()=>n&&n(i)),[i,n]);return!e&&n?[!1,o]:[!0]}(),s=(0,Ns.useContext)(Zs.p);return(0,$s.jsx)(ei,{...t,layoutGroup:s,switchLayoutGroup:(0,Ns.useContext)(Hs),isPresent:e,safeToRemove:n})}const si={borderRadius:{...Ys,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ys,borderTopRightRadius:Ys,borderBottomLeftRadius:Ys,borderBottomRightRadius:Ys,boxShadow:qs};var ii=n(52327);const oi=["TopLeft","TopRight","BottomLeft","BottomRight"],ri=oi.length,ai=t=>"string"==typeof t?parseFloat(t):t,li=t=>"number"==typeof t||et.test(t);function ui(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const ci=di(0,.5,F),hi=di(.5,.95,E.Z);function di(t,e,n){return s=>s
e?1:n(De(t,e,s))}function pi(t,e){t.min=e.min,t.max=e.max}function mi(t,e){pi(t.x,e.x),pi(t.y,e.y)}function fi(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function vi(t,e,n,s,i){return t=Vs(t-=e,1/n,s),void 0!==i&&(t=Vs(t,1/i,s)),t}function gi(t,e,[n,s,i],o,r){!function(t,e=0,n=1,s=.5,i,o=t,r=t){if(tt.test(e)&&(e=parseFloat(e),e=Re(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=Re(o.min,o.max,s);t===o&&(a-=e),t.min=vi(t.min,e,n,a,i),t.max=vi(t.max,e,n,a,i)}(t,e[n],e[s],e[i],e.scale,o,r)}const yi=["x","scaleX","originX"],xi=["y","scaleY","originY"];function wi(t,e,n,s){gi(t.x,e,yi,n?n.x:void 0,s?s.x:void 0),gi(t.y,e,xi,n?n.y:void 0,s?s.y:void 0)}function Pi(t){return 0===t.translate&&1===t.scale}function Ti(t){return Pi(t.x)&&Pi(t.y)}function Si(t,e){return t.min===e.min&&t.max===e.max}function bi(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ai(t,e){return bi(t.x,e.x)&&bi(t.y,e.y)}function Ei(t){return as(t.x)/as(t.y)}function Vi(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var Mi=n(79136);class Ci{constructor(){this.members=[]}add(t){(0,Mi.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,Mi.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;!1===s&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Di=(t,e)=>t.depth-e.depth;class Ri{constructor(){this.children=[],this.isDirty=!1}add(t){(0,Mi.y4)(this.children,t),this.isDirty=!0}remove(t){(0,Mi.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Di),this.isDirty=!1,this.children.forEach(t)}}function ki(t){const e=Tn(t)?t.get():t;return fn(e)?e.toValue():e}const Li={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Bi="undefined"!=typeof window&&void 0!==window.MotionDebug,ji=["","X","Y","Z"],Fi={visibility:"hidden"};let Oi=0;function Ii(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Wi(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Pn(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",A.Wi,!(e||s))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Wi(s)}function Ui({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=Oi++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Bi&&(Li.totalNodes=Li.resolvedTargetDeltas=Li.recalculatedProjection=0),this.nodes.forEach(Ni),this.nodes.forEach(qi),this.nodes.forEach(_i),this.nodes.forEach(Xi),Bi&&window.MotionDebug.record(Li)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t
this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=se.X.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&((0,A.Pn)(s),t(o-e))};return A.Wi.read(s,!0),()=>(0,A.Pn)(s)}(s,250),Gs.hasAnimatedSinceResize&&(Gs.hasAnimatedSinceResize=!1,this.nodes.forEach(Yi))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||o)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:s})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||r.getDefaultTransition()||so,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!Ai(this.targetLayout,s)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...P(i,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||Yi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,A.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ji),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Wi(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t
{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t
Rs&&(e.x=1),e.y
Rs&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms=xs());const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(fi(this.prevProjectionDelta.x,this.projectionDelta.x),fi(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),us(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&Vi(this.projectionDelta.x,this.prevProjectionDelta.x)&&Vi(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Bi&&Li.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ys(),this.projectionDelta=ys(),this.projectionDeltaWithTransform=ys()}setAnimationOrigin(t,e=!1){const n=this.snapshot,s=n?n.latestValues:{},i={...this.latestValues},o=ys();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r=xs(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(no));let h;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,v;to(o.x,t.x,n),to(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ds(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,v=n,eo(p.x,m.x,f.x,v),eo(p.y,m.y,f.y,v),h&&(l=this.relativeTarget,d=h,Si(l.x,d.x)&&Si(l.y,d.y))&&(this.isProjectionDirty=!1),h||(h=xs()),mi(h,this.relativeTarget)),a&&(this.animationValues=i,function(t,e,n,s,i,o){i?(t.opacity=Re(0,void 0!==n.opacity?n.opacity:1,ci(s)),t.opacityExit=Re(void 0!==e.opacity?e.opacity:1,0,hi(s))):o&&(t.opacity=Re(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,s));for(let i=0;i
{Gs.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const s=Tn(0)?0:(0,gn.BX)(0);return s.start(mn("",s,1e3,n)),s.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const 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(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:s,latestValues:i}=t;if(e&&n&&s){if(this!==t&&this.layout&&s&&ao(this.options.animationType,this.layout.layoutBox,s.layoutBox)){n=this.target||xs();const e=as(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const s=as(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+s}mi(e,n),js(e,i),us(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Ci),this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const s=this.getStack();s&&s.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const s={};n.z&&Ii("z",t,s,this.animationValues);for(let e=0;e
{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(Hi),this.root.sharedNodes.clear()}}}function zi(t){t.updateLayout()}function $i(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:s}=t.layout,{animationType:i}=t.options,o=n.source!==t.layout.source;"size"===i?ws((t=>{const s=o?n.measuredBox[t]:n.layoutBox[t],i=as(s);s.min=e[t].min,s.max=s.min+i})):ao(i,n.layoutBox,e)&&ws((s=>{const i=o?n.measuredBox[s]:n.layoutBox[s],r=as(e[s]);i.max=i.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+r)}));const r=ys();us(r,e,n.layoutBox);const a=ys();o?us(a,t.applyTransform(s,!0),n.measuredBox):us(a,e,n.layoutBox);const l=!Ti(r);let u=!1;if(!t.resumeFrom){const s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){const{snapshot:i,layout:o}=s;if(i&&o){const r=xs();ds(r,n.layoutBox,i.layoutBox);const a=xs();ds(a,e,o.layoutBox),Ai(r,a)||(u=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Ni(t){Bi&&Li.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Xi(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Zi(t){t.clearSnapshot()}function Hi(t){t.clearMeasurements()}function Gi(t){t.isLayoutDirty=!1}function Ki(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Yi(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function qi(t){t.resolveTargetDelta()}function _i(t){t.calcProjection()}function Ji(t){t.resetSkewAndRotation()}function Qi(t){t.removeLeadSnapshot()}function to(t,e,n){t.translate=Re(e.translate,0,n),t.scale=Re(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function eo(t,e,n,s){t.min=Re(e.min,n.min,s),t.max=Re(e.max,n.max,s)}function no(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const so={duration:.45,ease:[.4,0,.1,1]},io=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),oo=io("applewebkit/")&&!io("chrome/")?Math.round:E.Z;function ro(t){t.min=oo(t.min),t.max=oo(t.max)}function ao(t,e,n){return"position"===t||"preserve-aspect"===t&&(s=Ei(e),i=Ei(n),.2,!(Math.abs(s-i)<=.2));var s,i}function lo(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}const uo=Ui({attachResizeListener:(t,e)=>zn(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),co={current:void 0},ho=Ui({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!co.current){const t=new uo({});t.mount(window),t.setOptions({layoutScroll:!0}),co.current=t}return co.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),po={pan:{Feature:class extends jn{constructor(){super(...arguments),this.removePointerDownListener=E.Z}onPointerDown(t){this.session=new Xn(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Os(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:s}=this.node.getProps();return{onSessionStart:zs(t),onStart:zs(e),onMove:n,onEnd:(t,e)=>{delete this.session,s&&A.Wi.postRender((()=>s(t,e)))}}}mount(){this.removePointerDownListener=$n(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends jn{constructor(t){super(t),this.removeGroupControls=E.Z,this.removeListeners=E.Z,this.controls=new Ws(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||E.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ho,MeasureLayout:ni}};function mo(t,e){const n=e?"pointerenter":"pointerleave",s=e?"onHoverStart":"onHoverEnd";return $n(t.current,n,((n,i)=>{if("touch"===n.pointerType||es())return;const o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e);const r=o[s];r&&A.Wi.postRender((()=>r(n,i)))}),{passive:!t.getProps()[s]})}const fo=(t,e)=>!!e&&(t===e||fo(t,e.parentElement));function vo(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Wn(n))}const go=new WeakMap,yo=new WeakMap,xo=t=>{const e=go.get(t.target);e&&e(t)},wo=t=>{t.forEach(xo)};const Po={some:0,all:1},To={inView:{Feature:class extends jn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:s="some",once:i}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:Po[s]};return function(t,e,n){const s=function({root:t,...e}){const n=t||document;yo.has(n)||yo.set(n,{});const s=yo.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(wo,{root:t,...e})),s[i]}(e);return go.set(t,n),s.observe(t),()=>{go.delete(t),s.unobserve(t)}}(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,i&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:s}=this.node.getProps(),o=e?n:s;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends jn{constructor(){super(...arguments),this.removeStartListeners=E.Z,this.removeEndListeners=E.Z,this.removeAccessibleListeners=E.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),s=$n(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:s,globalTapTarget:i}=this.node.getProps(),o=i||fo(this.node.current,t.target)?n:s;o&&A.Wi.update((()=>o(t,e)))}),{passive:!(n.onTap||n.onPointerUp)}),i=$n(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Ce(s,i),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=zn(this.node.current,"keydown",(t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=zn(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&vo("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&A.Wi.postRender((()=>n(t,e)))}))})),vo("down",((t,e)=>{this.startPress(t,e)})))})),e=zn(this.node.current,"blur",(()=>{this.isPressing&&vo("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=Ce(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&A.Wi.postRender((()=>n(t,e)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!es()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&A.Wi.postRender((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=$n(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=zn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ce(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends jn{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=Ce(zn(this.node.current,"focus",(()=>this.onFocus())),zn(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends jn{mount(){this.unmount=Ce(mo(this.node,!0),mo(this.node,!1))}unmount(){}}}},So={layout:{ProjectionNode:ho,MeasureLayout:ni}};var bo=n(77439);const Ao=(0,Ns.createContext)({});var Eo=n(14822);const Vo=(0,Ns.createContext)({strict:!1});function Mo(t,e,n,s,i){var o,r;const{visualElement:a}=(0,Ns.useContext)(Ao),l=(0,Ns.useContext)(Vo),u=(0,Ns.useContext)(Xs.O),c=(0,Ns.useContext)(bo._).reducedMotion,h=(0,Ns.useRef)();s=s||l.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));const d=h.current,p=(0,Ns.useContext)(Hs);!d||d.projection||!i||"html"!==d.type&&"svg"!==d.type||function(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Co(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:Boolean(r)||a&&ns(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}(h.current,n,i,p);const m=(0,Ns.useRef)(!1);(0,Ns.useInsertionEffect)((()=>{d&&m.current&&d.update(n,u)}));const f=n[wn],v=(0,Ns.useRef)(Boolean(f)&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,f))&&(null===(r=window.MotionHasOptimisedAnimation)||void 0===r?void 0:r.call(window,f)));return(0,Eo.L)((()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Qs.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())})),(0,Ns.useEffect)((()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask((()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)})),v.current=!1))})),d}function Co(t){if(t)return!1!==t.options.allowProjection?t.projection:Co(t.parent)}function Do(t,e,n){return(0,Ns.useCallback)((s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&("function"==typeof n?n(s):ns(n)&&(n.current=s))}),[e])}function Ro(t){return i(t.animate)||d.some((e=>a(t[e])))}function ko(t){return Boolean(Ro(t)||t.variants)}function Lo(t){return Array.isArray(t)?t.join(" "):t}const Bo={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"]},jo={};for(const t in Bo)jo[t]={isEnabled:e=>Bo[t].some((t=>!!e[t]))};var Fo=n(28269);const Oo=Symbol.for("motionComponentSymbol");function Io({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&function(t){for(const e in t)jo[e]={...jo[e],...t[e]}}(t);const o=(0,Ns.forwardRef)((function(t,o){let r;const l={...(0,Ns.useContext)(bo._),...t,layoutId:Wo(t)},{isStatic:u}=l,c=function(t){const{initial:e,animate:n}=function(t,e){if(Ro(t)){const{initial:e,animate:n}=t;return{initial:!1===e||a(e)?e:void 0,animate:a(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,Ns.useContext)(Ao));return(0,Ns.useMemo)((()=>({initial:e,animate:n})),[Lo(e),Lo(n)])}(t),h=s(t,u);if(!u&&Fo.j){(0,Ns.useContext)(Vo).strict;const t=function(t){const{drag:e,layout:n}=jo;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(l);r=t.MeasureLayout,c.visualElement=Mo(i,h,l,e,t.ProjectionNode)}return(0,$s.jsxs)(Ao.Provider,{value:c,children:[r&&c.visualElement?(0,$s.jsx)(r,{visualElement:c.visualElement,...l}):null,n(i,t,Do(h,c.visualElement,o),h,u,c.visualElement)]})}));return o[Oo]=i,o}function Wo({layoutId:t}){const e=(0,Ns.useContext)(Zs.p).id;return e&&void 0!==t?e+"-"+t:t}const Uo=["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 zo(t){return"string"==typeof t&&!t.includes("-")&&!!(Uo.indexOf(t)>-1||/[A-Z]/u.test(t))}function $o(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const e in n)t.style.setProperty(e,n[e])}const No=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Xo(t,e,n,s){$o(t,e,void 0,s);for(const n in e.attrs)t.setAttribute(No.has(n)?n:xn(n),e.attrs[n])}function Zo(t,{layout:e,layoutId:n}){return m.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!_s[t]||"opacity"===t)}function Ho(t,e,n){var s;const{style:i}=t,o={};for(const r in i)(Tn(i[r])||e.style&&Tn(e.style[r])||Zo(r,t)||void 0!==(null===(s=null==n?void 0:n.getValue(r))||void 0===s?void 0:s.liveStyle))&&(o[r]=i[r]);return o}function Go(t,e,n){const s=Ho(t,e,n);for(const n in t)(Tn(t[n])||Tn(e[n]))&&(s[-1!==p.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return s}var Ko=n(92585);const Yo=t=>(e,n)=>{const s=(0,Ns.useContext)(Ao),i=(0,Ns.useContext)(Xs.O),o=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,o){const r={latestValues:qo(s,i,o,t),renderState:e()};return n&&(r.mount=t=>n(s,t,r)),r}(t,e,s,i);return n?o():(0,Ko.h)(o)};function qo(t,e,n,s){const o={},r=s(t,{});for(const t in r)o[t]=ki(r[t]);let{initial:a,animate:l}=t;const c=Ro(t),h=ko(t);e&&h&&!c&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let d=!!n&&!1===n.initial;d=d||!1===a;const p=d?l:a;if(p&&"boolean"!=typeof p&&!i(p)){const e=Array.isArray(p)?p:[p];for(let n=0;n
({style:{},transform:{},transformOrigin:{},vars:{}}),Jo=()=>({..._o(),attrs:{}}),Qo=(t,e)=>e&&"number"==typeof t?e.transform(t):t,tr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},er=p.length;function nr(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const t in e){const n=e[t];if(m.has(t))r=!0;else if($(t))i[t]=n;else{const e=Qo(n,qt[t]);t.startsWith("origin")?(a=!0,o[t]=e):s[t]=e}}if(e.transform||(r||n?s.transform=function(t,e,n){let s="",i=!0;for(let o=0;o
"string"==typeof t&&"svg"===t.toLowerCase(),lr={useVisualState:Yo({scrapeMotionValuesFromProps:Go,createRenderState:Jo,onMount:(t,e,{renderState:n,latestValues:s})=>{A.Wi.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),A.Wi.render((()=>{rr(n,s,ar(e.tagName),t.transformTemplate),Xo(e,n)}))}})},ur={useVisualState:Yo({scrapeMotionValuesFromProps:Ho,createRenderState:_o})};function cr(t,e,n){for(const s in e)Tn(e[s])||Zo(s,n)||(t[s]=e[s])}function hr(t,e){const n={},s=function(t,e){const n={};return cr(n,t.style||{},t),Object.assign(n,function({transformTemplate:t},e){return(0,Ns.useMemo)((()=>{const n=_o();return nr(n,e,t),Object.assign({},n.vars,n.style)}),[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const dr=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 pr(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||dr.has(t)}let mr=t=>!pr(t);try{(fr=require("@emotion/is-prop-valid").default)&&(mr=t=>t.startsWith("on")?!pr(t):fr(t))}catch(t){}var fr;function vr(t,e,n,s){const i=(0,Ns.useMemo)((()=>{const n=Jo();return rr(n,e,ar(s),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};cr(e,t.style,t),i.style={...e,...i.style}}return i}function gr(t=!1){return(e,n,s,{latestValues:i},o)=>{const r=(zo(e)?vr:hr)(n,i,o,e),a=function(t,e,n){const s={};for(const i in t)"values"===i&&"object"==typeof t.values||(mr(i)||!0===n&&pr(i)||!e&&!pr(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}(n,"string"==typeof e,t),l=e!==Ns.Fragment?{...a,...r,ref:s}:{},{children:u}=n,c=(0,Ns.useMemo)((()=>Tn(u)?u.get():u),[u]);return(0,Ns.createElement)(e,{...l,children:c})}}function yr(t,e){return function(n,{forwardMotionProps:s}={forwardMotionProps:!1}){return Io({...zo(n)?lr:ur,preloadedFeatures:t,useRender:gr(s),createVisualElement:e,Component:n})}}const xr={current:null},wr={current:!1},Pr=new WeakMap,Tr=[...pt,Dt,$t],Sr=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class br{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=wt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=se.X.now();this.renderScheduledAt
this.bindToMotionValue(e,t))),wr.current||function(){if(wr.current=!0,Fo.j)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>xr.current=t.matches;t.addListener(e),e()}else xr.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||xr.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Pr.delete(this.current),this.projection&&this.projection.unmount(),(0,A.Pn)(this.notifyUpdate),(0,A.Pn)(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=m.has(t),s=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&A.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{s(),i(),o&&o(),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 jo){const e=jo[t];if(!e)continue;const{isEnabled:n,Feature:s}=e;if(!this.features[t]&&s&&n(this.props)&&(this.features[t]=new s(this)),this.features[t]){const 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):xs()}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
e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const 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 n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,gn.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let s=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var i;return null!=s&&("string"==typeof s&&(U(s)||I(s))?s=parseFloat(s):(i=s,!Tr.find(dt(i))&&$t.test(e)&&(s=Qt(t,e))),this.setBaseTarget(t,Tn(s)?s.get():s)),Tn(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let s;if("string"==typeof n||"object"==typeof n){const i=u(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);i&&(s=i[t])}if(n&&void 0!==s)return s;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||Tn(i)?void 0!==this.initialValues[t]&&void 0===s?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new ii.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class Ar extends br{constructor(){super(...arguments),this.KeyframeResolver=ee}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:n}){delete e[t],delete n[t]}}class Er extends Ar{constructor(){super(...arguments),this.type="html",this.renderInstance=$o}readValueFromInstance(t,e){if(m.has(e)){const t=Jt(e);return t&&t.default||0}{const s=(n=t,window.getComputedStyle(n)),i=($(e)?s.getPropertyValue(e):s[e])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return Fs(t,e)}build(t,e,n){nr(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Ho(t,e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Tn(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}class Vr extends Ar{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xs}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(m.has(e)){const t=Jt(e);return t&&t.default||0}return e=No.has(e)?e:xn(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return Go(t,e,n)}build(t,e,n){rr(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,s){Xo(t,e,0,s)}mount(t){this.isSVGTag=ar(t.tagName),super.mount(t)}}const Mr=s(yr({...On,...To,...po,...So},((t,e)=>zo(t)?new Vr(e):new Er(e,{allowProjection:t!==Ns.Fragment}))))},72216:(t,e,n)=>{n.d(e,{c:()=>s});const s={skipAnimations:!1,useManualTiming:!1}},79136:(t,e,n)=>{function s(t,e){-1===t.indexOf(e)&&t.push(e)}function i(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>i,y4:()=>s})},37063:(t,e,n)=>{n.d(e,{K:()=>i,k:()=>o});var s=n(79534);let i=s.Z,o=s.Z},28269:(t,e,n)=>{n.d(e,{j:()=>s});const s="undefined"!=typeof window},79534:(t,e,n)=>{n.d(e,{Z:()=>s});const s=t=>t},52327:(t,e,n)=>{n.d(e,{L:()=>i});var s=n(79136);class i{constructor(){this.subscriptions=[]}add(t){return(0,s.y4)(this.subscriptions,t),()=>(0,s.cl)(this.subscriptions,t)}notify(t,e,n){const s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,n);else for(let i=0;i
{n.d(e,{h:()=>i});var s=n(99196);function i(t){const e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}},14822:(t,e,n)=>{n.d(e,{L:()=>i});var s=n(99196);const i=n(28269).j?s.useLayoutEffect:s.useEffect},43046:(t,e,n)=>{n.d(e,{W:()=>i});var s=n(99196);function i(t,e,n){(0,s.useInsertionEffect)((()=>t.on(e,n)),[t,e,n])}},45904:(t,e,n)=>{function s(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>s})},89022:(t,e,n)=>{n.d(e,{BX:()=>u});var s=n(52327),i=n(45904),o=n(9233),r=n(46961);const a={current:void 0};class l{constructor(t,e={}){this.version="11.11.17",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=o.X.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=o.X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}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 s.L);const n=this.events[t].add(e);return"change"===t?()=>{n(),r.Wi.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=o.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,i.R)(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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(t,e){return new l(t,e)}},63182:(t,e,n)=>{n.d(e,{r:()=>l});var s=n(99196),i=n(77439),o=n(46961),r=n(89022),a=n(92585);function l(){const t=function(t){const e=(0,a.h)((()=>(0,r.BX)(0))),{isStatic:n}=(0,s.useContext)(i._);if(n){const[,t]=(0,s.useState)(0);(0,s.useEffect)((()=>e.on("change",t)),[])}return e}();return function(t){const e=(0,s.useRef)(0),{isStatic:n}=(0,s.useContext)(i._);(0,s.useEffect)((()=>{if(n)return;const s=({timestamp:n,delta:s})=>{e.current||(e.current=n),t(n-e.current)};return o.Wi.update(s,!0),()=>(0,o.Pn)(s)}),[t])}((e=>t.set(e))),t}}}]);