PageSourceSearch

https://ibetmyr88.com/ap-member/assets/motion-fe93c737.js

js ibetmyr88.com collected 2026-10-09 23:57:30 UTC 122,411 bytes, 25 lines download raw bytes

vendor: 4,528 bytes, lines 1-17
1function Cr(t,e){for(var n=0;n<e.length;n++){const s=e[n];if(typeof s!="string"&&!Array.isArray(s)){for(const i in s)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(s,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Pc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function br(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ns={exports:{}},qt={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Vr=Symbol.for("react.transitional.element"),Rr=Symbol.for("react.fragment");function Us(t,e,n){var s=null;if(n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),"key"in e){n={};for(var i in e)i!=="key"&&(n[i]=e[i])}else n=e;return e=n.ref,{$$typeof:Vr,type:t,key:s,ref:e!==void 0?e:null,props:n}}qt.Fragment=Rr;qt.jsx=Us;qt.jsxs=Us;Ns.exports=qt;var z=Ns.exports,$s={exports:{}},S={};/**
10 * @license React
11 * react.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var ke=Symbol.for("react.transitional.element"),Er=Symbol.for("react.portal"),Mr=Symbol.for("react.fragment"),Dr=Symbol.for("react.strict_mode"),Lr=Symbol.for("react.profiler"),jr=Symbol.for("react.consumer"),Or=Symbol.for("react.context"),kr=Symbol.for("react.forward_ref"),Fr=Symbol.for("react.suspense"),Br=Symbol.for("react.memo"),Ws=Symbol.for("react.lazy"),_r=Symbol.for("react.activity"),Pn=Symbol.iterator;function Ir(t){return t===null||typeof t!="object"?null:(t=Pn&&t[Pn]||t["@@iterator"],typeof t=="function"?t:null)}var Ks={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hs=Object.assign,Gs={};function vt(t,e,n){this.props=t,this.context=e,this.refs=Gs,this.updater=n||Ks}vt.prototype.isReactComponent={};vt.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};vt.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function zs(){}zs.prototype=vt.prototype;function Fe(t,e,n){this.props=t,this.context=e,this.refs=Gs,this.updater=n||Ks}var Be=Fe.prototype=new zs;Be.constructor=Fe;Hs(Be,vt.prototype);Be.isPureReactComponent=!0;var Sn=Array.isArray;function Te(){}var V={H:null,A:null,T:null,S:null},Ys=Object.prototype.hasOwnProperty;function _e(t,e,n){var s=n.ref;return{$$typeof:ke,type:t,key:e,ref:s!==void 0?s:null,props:n}}function Nr(t,e){return _e(t.type,e,t.props)}function Ie(t){return typeof t=="object"&&t!==null&&t.$$typeof===ke}function Ur(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var An=/\/+/g;function re(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Ur(""+t.key):e.toString(36)}function $r(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Te,Te):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function ut(t,e,n,s,i){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var r=!1;if(t===null)r=!0;else switch(o){case"bigint":case"string":case"number":r=!0;break;case"object":switch(t.$$typeof){case ke:case Er:r=!0;break;case Ws:return r=t._init,ut(r(t._payload),e,n,s,i)}}if(r)return i=i(t),r=s===""?"."+re(t,0):s,Sn(i)?(n="",r!=null&&(n=r.replace(An,"$&/")+"/"),ut(i,e,n,"",function(u){return u})):i!=null&&(Ie(i)&&(i=Nr(i,n+(i.key==null||t&&t.key===i.key?"":(""+i.key).replace(An,"$&/")+"/")+r)),e.push(i)),1;r=0;var a=s===""?".":s+":";if(Sn(t))for(var l=0;l<t.length;l++)s=t[l],o=a+re(s,l),r+=ut(s,e,n,o,i);else if(l=Ir(t),typeof l=="function")for(t=l.call(t),l=0;!(s=t.next()).done;)s=s.value,o=a+re(s,l++),r+=ut(s,e,n,o,i);else if(o==="object"){if(typeof t.then=="function")return ut($r(t),e,
vendor: 2,220 bytes, line 17
17n,s,i);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return r}function kt(t,e,n){if(t==null)return t;var s=[],i=0;return ut(t,s,"","",function(o){return e.call(n,o,i++)}),s}function Wr(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var wn=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Kr={map:kt,forEach:function(t,e,n){kt(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return kt(t,function(){e++}),e},toArray:function(t){return kt(t,function(e){return e})||[]},only:function(t){if(!Ie(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};S.Activity=_r;S.Children=Kr;S.Component=vt;S.Fragment=Mr;S.Profiler=Lr;S.PureComponent=Fe;S.StrictMode=Dr;S.Suspense=Fr;S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V;S.__COMPILER_RUNTIME={__proto__:null,c:function(t){return V.H.useMemoCache(t)}};S.cache=function(t){return function(){return t.apply(null,arguments)}};S.cacheSignal=function(){return null};S.cloneElement=function(t,e,n){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var s=Hs({},t.props),i=t.key;if(e!=null)for(o in e.key!==void 0&&(i=""+e.key),e)!Ys.call(e,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&e.ref===void 0||(s[o]=e[o]);var o=arguments.length-2;if(o===1)s.children=n;else if(1<o){for(var r=Array(o),a=0;a<o;a++)r[a]=arguments[a+2];
17s.children=r}return _e(t.type,i,s)};S.createContext=function(t){return t={$$typeof:Or,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:jr,_context:t},t};S.createElement=function(t,e,n){var s,i={},o=null;if(e!=null)for(s in e.key!==void 0&&(o=""+e.key),e)Ys.call(e,s)&&s!=="key"&&s!=="__self"&&s!=="__source"&&(i[s]=e[s]);var r=arguments.length-2;if(r===1)i.children=n;else if(1<r){for(var a=Array(r),l=0;l<r;l++)a[l]=arguments[l+2];i.children=a}if(t&&t.defaultProps)for(s in r=t.defaultProps,r)i[s]===void 0&&(i[s]=r[s]);return _e(t,o,i)};S.createRef=function(){return{current:null}};S.forwardRef=function(t){return{$$typeof:kr,render:t}};S.isValidElement=Ie;S.lazy=function(t){return{$$typeof:Ws,_payload:{_status:-1,_result:t},_init:Wr}};S.memo=function(t,e){return{$$typeof:Br,type:t,compare:e===void 0?null:e}};S.startTransition=function(t){var e=V.T,n={};V.T=n;try{var s=t(),i=V.S;i!==null&&i(n,s),typeof s=="object"&&s!==null&&typeof s.then=="function"&&s.then(Te,wn)}catch(o){wn(o)}finally{e!==null&&n.types!==null&&(e.types=n.types),V.T=e}};S.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()};S.use=function(t){return V.H.use(t)};S.useActionState=function(t,e,n){return V.H.useActionState(t,e,n)};S.useCallback=function(t,e){return V.H.useCallback(t,e)};S.useContext=function(t){return V.H.useContext(t)};S.useDebugValue=function(){};S.useDeferredValue=function(t,e){return V.H.useDeferredValue(t,e)};S.useEffect=function(t,e){return V.H.useEffect(t,e)};S.useEffectEvent=function(t){return V.H.useEffectEvent(t)};S.useId=function(){return V.H.useId()};S.useImperativeHandle=function(t,e,n){return V.H.useImperativeHandle(t,e,n)};S.useInsertionEffect=function(t,e){return V.H.useInsertionEffect(t,e)};S.useLayoutEffect=function(t,e){return V.H.useLayoutEffect(t,e)};S.useMemo=function(t,e){return V.H.useMemo(t,e)};S.useOptimistic=function(t,e){return V.H.useOptimistic(t,e)};S.useReducer=function(t,e,n){return V.H.useReducer(t,e,n)};S.useRef=function(t){return V.H.useRef(t)};S.useState=function(t){return V.H.useState(t)};S.useSyncExternalStore=function(t,e,n){return V.H.useSyncExternalStore(t,e,n)};S.useTransition=function(){return V.H.useTransition()};S.version="19.2.0";$s.exports=S;var x=$s.exports;const Hr=br(x),Sc=Cr({__proto__:null,default:Hr},[x]);function Gr(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}function bt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const xe=t=>Array.isArray(t);function Xs(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function Vt(t){return typeof t=="string"||Array.isArray(t)}function Cn(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Ne(t,e,n,s){if(typeof e=="function"){const[i,o]=Cn(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Cn(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function Zt(t,e,n){const s=t.getProps();return Ne(s,e,n!==void 0?n:s.custom,t)}const Ue=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$e=["initial",...Ue],Dt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],et=new Set(Dt),$=t=>t*1e3,Y=t=>t/1e3,zr={type:"spring",stiffness:500,damping:25,restSpeed:10},Yr=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Xr={type:"keyframes",duration:.8},qr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Zr=(t,{keyframes:e})=>e.length>2?Xr:et.has(t)?t.startsWith("scale")?Yr(e[1]):zr:qr;function We(t,e){return t?t[e]||t.default||t:void 0}const Jr={skipAnimations:!1,useManualTiming:!1},Qr=t=>t!==null;function Jt(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Qr),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||s===void 0?i[o]:s}const L=t=>t;function to(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(u){o.has(u)&&(l.schedule(u),t()),u(r)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&s?e:n;return c&&o.add(u),d.has(u)||d.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(r=u,s){i=!0;return}s=!0,[e,n]=[n,e],n.clear(),e.forEach(a),s=!1,i&&(i=!1,l.process(u))}};return l}const Ft=["read","resolveKeyframes","update","preRender","render","postRender"],eo=40;function qs(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Ft.reduce((g,y)=>(g[y]=to(o),g),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=r,d=()=>{const g=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(g-i.timestamp,eo),1),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(d))},p=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:Ft.reduce((g,y)=>{const v=r[y];return g[y]=(A,w=!1,E=!1)=>(n||p(),v.schedule(A,w,E)),g},{}),cancel:g=>{for(let y=0;y<Ft.length;y++)r[Ft[y]].cancel(g)},state:i,steps:r}}const{schedule:b,cancel:J,state:D,steps:oe}=qs(typeof requestAnimationFrame<"u"?requestAnimationFrame:L,!0),Zs=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,no=1e-7,so=12;function io(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=Zs(r,s,i)-t,o>0?n=r:e=r;
vendor: 16,479 bytes, line 17
17while(Math.abs(o)>no&&++a<so);return r}function Lt(t,e,n,s){if(t===e&&n===s)return L;const i=o=>io(o,0,1,t,n);return o=>o===0||o===1?o:Zs(i(o),e,s)}const Js=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Qs=t=>e=>1-t(1-e),ti=Lt(.33,1.53,.69,.99),Ke=Qs(ti),ei=Js(Ke),ni=t=>(t*=2)<1?.5*Ke(t):.5*(2-Math.pow(2,-10*(t-1))),He=t=>1-Math.sin(Math.acos(t)),si=Qs(He),ii=Js(He),ri=t=>/^0[^.\s]+$/u.test(t);function ro(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ri(t):!0}let oo=L,oi=L;const ai=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),li=t=>e=>typeof e=="string"&&e.startsWith(t),ui=li("--"),ao=li("var(--"),Ge=t=>ao(t)?lo.test(t.split("/*")[0].trim()):!1,lo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,uo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function co(t){const e=uo.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function ci(t,e,n=1){const[s,i]=co(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return ai(r)?parseFloat(r):r}return Ge(i)?ci(i,e,n+1):i}const Q=(t,e,n)=>n>e?e:n<t?t:n,Tt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Rt={...Tt,transform:t=>Q(0,1,t)},Bt={...Tt,default:1},jt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Z=jt("deg"),W=jt("%"),P=jt("px"),ho=jt("vh"),fo=jt("vw"),bn={...W,parse:t=>W.parse(t)/100,transform:t=>W.transform(t*100)},po=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Vn=t=>t===Tt||t===P,Rn=(t,e)=>parseFloat(t.split(", ")[e]),En=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return Rn(i[1],e);{const o=s.match(/^matrix\((.+)\)$/u);return o?Rn(o[1],t):0}},mo=new Set(["x","y","z"]),go=Dt.filter(t=>!mo.has(t));function yo(t){const e=[];return go.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const mt={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:En(4,13),y:En(5,14)};mt.translateX=mt.x;mt.translateY=mt.y;const hi=t=>e=>e.test(t),vo={test:t=>t==="auto",parse:t=>t},fi=[Tt,P,W,Z,fo,ho,vo],Mn=t=>fi.find(hi(t)),at=new Set;let Pe=!1,Se=!1;function di(){if(Se){const t=Array.from(at).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=yo(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))===null||a===void 0||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Se=!1,Pe=!1,at.forEach(t=>t.complete()),at.clear()}function pi(){at.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Se=!0)})}function To(){pi(),di()}class ze{constructor(e,n,s,i,o,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(at.add(this),Pe||(Pe=!0,b.read(pi),b.resolveKeyframes(di))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const r=i==null?void 0:i.get(),a=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&r===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),at.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,at.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const At=t=>Math.round(t*1e5)/1e5,Ye=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xo(t){return t==null}const Po=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xe=(t,e)=>n=>!!(typeof n=="string"&&Po.test(n)&&n.startsWith(t)||e&&!xo(n)&&Object.prototype.hasOwnProperty.call(n,e)),mi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(Ye);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},So=t=>Q(0,255,t),ae={...Tt,transform:t=>Math.round(So(t))},ot={test:Xe("rgb","red"),parse:mi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ae.transform(t)+", "+ae.transform(e)+", "+ae.transform(n)+", "+At(Rt.transform(s))+")"};function Ao(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}}const Ae={test:Xe("#"),parse:Ao,transform:ot.transform},ct={test:Xe("hsl","hue"),parse:mi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+W.transform(At(e))+", "+W.transform(At(n))+", "+At(Rt.transform(s))+")"},j={test:t=>ot.test(t)||Ae.test(t)||ct.test(t),parse:t=>ot.test(t)?ot.parse(t):ct.test(t)?ct.parse(t):Ae.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ot.transform(t):ct.transform(t)},wo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Co(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ye))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(wo))===null||n===void 0?void 0:n.length)||0)>0}const gi="number",yi="color",bo="var",Vo="var(",Dn="${}",Ro=/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 Et(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(Ro,l=>(j.test(l)?(s.color.push(o),i.push(yi),n.push(j.parse(l))):l.startsWith(Vo)?(s.var.push(o),i.push(bo),n.push(l)):(s.number.push(o),i.push(gi),n.push(parseFloat(l))),++o,Dn)).split(Dn);return{values:n,split:a,indexes:s,types:i}}function vi(t){return Et(t).values}function Ti(t){const{split:e,types:n}=Et(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===gi?o+=At(i[r]):a===yi?o+=j.transform(i[r]):o+=i[r]}return o}}const Eo=t=>typeof t=="number"?0:t;function Mo(t){const e=vi(t);return Ti(t)(e.map(Eo))}const tt={test:Co,parse:vi,createTransformer:Ti,getAnimatableNone:Mo},Do=new Set(["brightness","contrast","saturate","opacity"]);function Lo(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ye)||[];if(!s)return t;const i=n.replace(s,"");let o=Do.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const jo=/\b([a-z-]*)\(.*?\)/gu,we={...tt,getAnimatableNone:t=>{const e=t.match(jo);return e?e.map(Lo).join(" "):t}},Oo={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,radius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,backgroundPositionX:P,backgroundPositionY:P},ko={rotate:Z,rotateX:Z,rotateY:Z,rotateZ:Z,scale:Bt,scaleX:Bt,scaleY:Bt,scaleZ:Bt,skew:Z,skewX:Z,skewY:Z,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:Rt,originX:bn,originY:bn,originZ:P},Ln={...Tt,transform:Math.round},qe={...Oo,...ko,zIndex:Ln,size:P,fillOpacity:Rt,strokeOpacity:Rt,numOctaves:Ln},Fo={...qe,color:j,backgroundColor:j,outlineColor:j,fill:j,stroke:j,borderColor:j,borderTopColor:j,borderRightColor:j,borderBottomColor:j,borderLeftColor:j,filter:we,WebkitFilter:we},Ze=t=>Fo[t];function xi(t,e){let n=Ze(t);return n!==we&&(n=tt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Bo=new Set(["auto","none","0"]);function _o(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Bo.has(o)&&Et(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=xi(n,i)}class Pi extends ze{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),Ge(u))){const c=ci(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!po.has(s)||e.length!==2)return;const[i,o]=e,r=Mn(i),a=Mn(o);if(r!==a)if(Vn(r)&&Vn(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)ro(e[i])&&s.push(i);s.length&&_o(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=mt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(s);o&&o.jump(this.measuredOrigin,!1);const r=i.length-1,a=i[r];i[r]=mt[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Je(t){return typeof t=="function"}let Nt;function Io(){Nt=void 0}const K={now:()=>(Nt===void 0&&K.set(D.isProcessing||Jr.useManualTiming?D.timestamp:performance.now()),Nt),set:t=>{Nt=t,queueMicrotask(Io)}},jn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(tt.test(t)||t==="0")&&!t.startsWith("url("));function No(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Uo(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=jn(i,e),a=jn(o,e);return!r||!a?!1:No(t)||(n==="spring"||Je(n))&&s}const $o=40;class Si{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=K.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>$o?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&To(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=K.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:o,delay:r,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Uo(e,s,i,o))if(r)this.options.duration=0;else{l==null||l(Jt(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function Ai(t,e){return e?t*(1e3/e):0}const Wo=5;function wi(t,e,n){const s=Math.max(e-Wo,0);return Ai(n-t(s),e-s)}const le=.001,Ko=.01,On=10,Ho=.05,Go=1;function zo({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let i,o;oo(t<=$(On));let r=1-e;r=Q(Ho,Go,r),t=Q(Ko,On,Y(t)),r<1?(i=u=>{const c=u*r,h=c*t,f=c-n,d=Ce(u,r),p=Math.exp(-h);return le-f/d*p},o=u=>{const h=u*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,p=Math.exp(-h),m=Ce(Math.pow(u,2),r);return(-i(u)+le>0?-1:1)*((f-d)*p)/m}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-le+c*h},o=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Xo(i,o,a);if(t=$(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const Yo=12;function Xo(t,e,n){let s=n;for(let i=1;i<Yo;i++)s=s-t(s)/e(s);return s}function Ce(t,e){return t*Math.sqrt(1-e*e)}const qo=["duration","bounce"],Zo=["stiffness","damping","mass"];function kn(t,e){return e.some(n=>t[n]!==void 0)}function Jo(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!kn(t,Zo)&&kn(t,qo)){const n=zo(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Ci({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:f}=Jo({...s,velocity:-Y(s.velocity||0)}),d=h||0,p=l/(2*Math.sqrt(a*u)),m=o-i,T=Y(Math.sqrt(a/u)),g=Math.abs(m)<5;n||(n=g?.01:2),e||(e=g?.005:.5);let y;if(p<1){const v=Ce(T,p);y=A=>{const w=Math.exp(-p*T*A);return o-w*((d+p*T*m)/v*Math.sin(v*A)+m*Math.cos(v*A))}}else if(p===1)y=v=>o-Math.exp(-T*v)*(m+(d+T*m)*v);else{const v=T*Math.sqrt(p*p-1);y=A=>{const w=Math.exp(-p*T*A),E=Math.min(v*A,300);return o-w*((d+p*T*m)*Math.sinh(E)+v*m*Math.cosh(E))/v}}return{calculatedDuration:f&&c||null,next:v=>{const A=y(v);if(f)r.done=v>=c;else{let w=0;p<1&&(w=v===0?$(d):wi(y,v,A));const E=Math.abs(w)<=n,B=Math.abs(o-A)<=e;r.done=E&&B}return r.value=r.done?o:A,r}}}function Fn({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],f={done:!1,value:h},d=C=>a!==void 0&&C<a||l!==void 0&&C>l,p=C=>a===void 0?l:l===void 0||Math.abs(a-C)<Math.abs(l-C)?a:l;let m=n*e;const T=h+m,g=r===void 0?T:r(T);g!==T&&(m=g-h);const y=C=>-m*Math.exp(-C/s),v=C=>g+y(C),A=C=>{const _=y(C),I=v(C);f.done=Math.abs(_)<=u,f.value=f.done?g:I};let w,E;const B=C=>{d(f.value)&&(w=C,E=Ci({keyframes:[f.value,p(f.value)],velocity:wi(v,C,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return B(0),{calculatedDuration:null,next:C=>{let _=!1;return!E&&w===void 0&&(_=!0,A(C),B(C)),w!==void 0&&C>=w?E.next(C-w):(!_&&A(C),f)}}}const Qo=Lt(.42,0,1,1),ta=Lt(0,0,.58,1),bi=Lt(.42,0,.58,1),ea=t=>Array.isArray(t)&&typeof t[0]!="number",Qe=t=>Array.isArray(t)&&typeof t[0]=="number",na={linear:L,easeIn:Qo,easeInOut:bi,easeOut:ta,circIn:He,circInOut:ii,circOut:si,backIn:Ke,backInOut:ei,backOut:ti,anticipate:ni},Bn=t=>{if(Qe(t)){oi(t.length===4);const[e,n,s,i]=t;return Lt(e,n,s,i)}else if(typeof t=="string")return na[t];return t},sa=(t,e)=>n=>e(t(n)),X=(...t)=>t.reduce(sa),gt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},R=(t,e,n)=>t+(e-t)*n;function ue(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function ia({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ue(l,a,t+1/3),o=ue(l,a,t),r=ue(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Wt(t,e){return n=>n>0?e:t}const ce=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},ra=[Ae,ot,ct],oa=t=>ra.find(e=>e.test(t));function _n(t){const e=oa(t);if(!e)return!1;let n=e.parse(t);return e===ct&&(n=ia(n)),n}const In=(t,e)=>{const n=_n(t),s=_n(e);if(!n||!s)return Wt(t,e);const i={...n};return o=>(i.red=ce(n.red,s.red,o),i.green=ce(n.green,s.green,o),i.blue=ce(n.blue,s.blue,o),i.alpha=R(n.alpha,s.alpha,o),ot.transform(i))},be=new Set(["none","hidden"]);function aa(t,e){return be.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function la(t,e){return n=>R(t,e,n)}function tn(t){return typeof t=="number"?la:typeof t=="string"?Ge(t)?Wt:j.test(t)?In:ha:Array.isArray(t)?Vi:typeof t=="object"?j.test(t)?In:ua:Wt}function Vi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>
vendor: 4,869 bytes, line 17
17tn(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function ua(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=tn(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function ca(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][i[r]],l=(n=t.values[a])!==null&&n!==void 0?n:0;s[o]=l,i[r]++}return s}const ha=(t,e)=>{const n=tt.createTransformer(e),s=Et(t),i=Et(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?be.has(t)&&!i.values.length||be.has(e)&&!s.values.length?aa(t,e):X(Vi(ca(s,i),i.values),n):Wt(t,e)};function Ri(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?R(t,e,n):tn(t)(t,e)}function fa(t,e,n){const s=[],i=n||Ri,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||L:e;a=X(l,a)}s.push(a)}return s}function da(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(oi(o===e.length),o===1)return()=>e[0];if(o===2&&t[0]===t[1])return()=>e[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=fa(e,s,i),a=r.length,l=u=>{let c=0;if(a>1)for(;c<t.length-2&&!(u<t[c+1]);c++);const h=gt(t[c],t[c+1],u);return r[c](h)};return n?u=>l(Q(t[0],t[o-1],u)):l}function pa(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=gt(0,e,s);t.push(R(n,1,i))}}function ma(t){const e=[0];return pa(e,t.length-1),e}function ga(t,e){return t.map(n=>n*e)}function ya(t,e){return t.map(()=>e||bi).splice(0,t.length-1)}function Kt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=ea(s)?s.map(Bn):Bn(s),o={done:!1,value:e[0]},r=ga(n&&n.length===e.length?n:ma(e),t),a=da(r,e,{ease:Array.isArray(i)?i:ya(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Nn=2e4;function va(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Nn;)e+=n,s=t.next(e);return e>=Nn?1/0:e}const Ta=t=>{const e=({timestamp:n})=>t(n);return{start:()=>b.update(e,!0),stop:()=>J(e),now:()=>D.isProcessing?D.timestamp:K.now()}},xa={decay:Fn,inertia:Fn,tween:Kt,keyframes:Kt,spring:Ci},Pa=t=>t/100;class en extends Si{constructor(e){super(e),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,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:o}=this.options,r=(i==null?void 0:i.KeyframeResolver)||ze,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new r(o,a,n,s,i),this.resolver.scheduleResolve()}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=this.options,a=Je(n)?n:xa[n]||Kt;let l,u;a!==Kt&&typeof e[0]!="number"&&(l=X(Pa,Ri(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});o==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=va(c));const{calculatedDuration:h}=c,f=h+i,d=f*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:r,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return o.next(0);const{delay:f,repeat:d,repeatType:p,repeatDelay:m,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,A=o;if(d){const C=Math.min(this.currentTime,c)/h;let _=Math.floor(C),I=C%1;!I&&C>=1&&(I=1),I===1&&_--,_=Math.min(_,d+1),!!(_%2)&&(p==="reverse"?(I=1-I,m&&(I-=m/h)):p==="mirror"&&(A=r)),v=Q(0,1,I)*h}const w=y?{done:!1,value:l[0]}:A.next(v);a&&(w.value=a(w.value));let{done:E}=w;!y&&u!==null&&(E=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const B=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return B&&i!==void 0&&(w.value=Jt(l,this.options,i)),T&&T(w.value),B&&this.finish(),w}get duration(){const{resolved:e}=this;return e?Y(e.calculatedDuration):0}
vendor: 60,567 bytes, line 17
17get time(){return Y(this.currentTime)}set time(e){e=$(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Y(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Ta,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&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(e){return this.startTime=0,this.tick(e,!0)}}const Ei=new Set(["opacity","clipPath","filter","transform"]),Sa=10,Aa=(t,e)=>{let n="";const s=Math.max(Math.round(e/Sa),2);for(let i=0;i<s;i++)n+=t(gt(0,s-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function nn(t){let e;return()=>(e===void 0&&(e=t()),e)}const wa={linearEasing:void 0};function Ca(t,e){const n=nn(t);return()=>{var s;return(s=wa[e])!==null&&s!==void 0?s:n()}}const Ht=Ca(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Mi(t){return!!(typeof t=="function"&&Ht()||!t||typeof t=="string"&&(t in Ve||Ht())||Qe(t)||Array.isArray(t)&&t.every(Mi))}const Pt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Ve={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pt([0,.65,.55,1]),circOut:Pt([.55,0,1,.45]),backIn:Pt([.31,.01,.66,-.59]),backOut:Pt([.33,1.53,.69,.99])};function Di(t,e){if(t)return typeof t=="function"&&Ht()?Aa(t,e):Qe(t)?Pt(t):Array.isArray(t)?t.map(n=>Di(n,e)||Ve.easeOut):Ve[t]}function ba(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Di(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:r==="reverse"?"alternate":"normal"})}function Un(t,e){t.timeline=e,t.onfinish=null}const Va=nn(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Gt=10,Ra=2e4;function Ea(t){return Je(t.type)||t.type==="spring"||!Mi(t.ease)}function Ma(t,e){const n=new en({...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<Ra;)s=n.sample(o),i.push(s.value),o+=Gt;return{times:void 0,keyframes:i,duration:o-Gt,ease:"linear"}}const Li={anticipate:ni,backInOut:ei,circInOut:ii};function Da(t){return t in Li}class $n extends Si{constructor(e){super(e);const{name:n,motionValue:s,element:i,keyframes:o}=this.options;this.resolver=new Pi(o,(r,a)=>this.onKeyframesResolved(r,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:i=300,times:o,ease:r,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(typeof r=="string"&&Ht()&&Da(r)&&(r=Li[r]),Ea(this.options)){const{onComplete:f,onUpdate:d,motionValue:p,element:m,...T}=this.options,g=Ma(e,T);e=g.keyframes,e.length===1&&(e[1]=e[0]),i=g.duration,o=g.times,r=g.ease,a="keyframes"}const h=ba(l.owner.current,u,e,{...this.options,duration:i,times:o,ease:r});return h.startTime=c??this.calcStartTime(),this.pendingTimeline?(Un(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:f}=this.options;l.set(Jt(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:a,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Y(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Y(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=$(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return L;const{animation:s}=n;Un(s,e)}return L}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:o,ease:r,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,element:f,...d}=this.options,p=new en({...d,keyframes:s,duration:i,type:o,ease:r,times:a,isGenerator:!0}),m=$(this.time);u.setWithVelocity(p.sample(m-Gt).value,p.sample(m).value,Gt)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:o,damping:r,type:a}=e;return Va()&&s&&Ei.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&r!==0&&a!=="inertia"}}const La=nn(()=>window.ScrollTimeline!==void 0);class ja{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e,n){const s=this.animations.map(i=>La()&&i.attachTimeline?i.attachTimeline(e):n(i));return()=>{s.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Oa({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}const sn=(t,e,n,s={},i,o)=>r=>{const a=We(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-$(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Oa(a)||(c={...c,...Zr(t,c)}),c.duration&&(c.duration=$(c.duration)),c.repeatDelay&&(c.repeatDelay=$(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!o&&e.get()!==void 0){const f=Jt(c.keyframes,a);if(f!==void 0)return b.update(()=>{c.onUpdate(f),c.onComplete()}),new ja([])}return!o&&$n.supports(c)?new $n(c):new en(c)},ka=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Fa=t=>xe(t)?t[t.length-1]||0:t;function rn(t,e){t.indexOf(e)===-1&&t.push(e)}function on(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class an{constructor(){this.subscriptions=[]}add(e){return rn(this.subscriptions,e),()=>on(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Wn=30,Ba=t=>!isNaN(parseFloat(t));class _a{constructor(e,n={}){this.version="11.11.8",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const o=K.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=K.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ba(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new an);const s=this.events[e].add(n);return e==="change"?()=>{s(),b.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=K.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Wn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Wn);return Ai(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mt(t,e){return new _a(t,e)}function Ia(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Mt(n))}function Na(t,e){const n=Zt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Fa(o[r]);Ia(t,r,a)}}const Qt=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ua="framerAppearId",ji="data-"+Qt(Ua);function Oi(t){return t.props[ji]}const O=t=>!!(t&&t.getVelocity);function $a(t){return!!(O(t)&&t.add)}function ki(t){if(et.has(t))return"transform";if(Ei.has(t))return Qt(t)}function Re(t,e){var n;if(!t.applyWillChange)return;const s=t.getValue("willChange");if($a(s))return s.add(e);!(!((n=t.props.style)===null||n===void 0)&&n.willChange)&&ki(e)&&t.setStaticValue("willChange","transform")}function Wa({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Fi(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=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(o=t.latestValues[h])!==null&&o!==void 0?o:null),d=l[h];if(d===void 0||c&&Wa(c,h))continue;const p={delay:n,...We(r||{},h)};let m=!1;if(window.MotionHandoffAnimation){const g=Oi(t);if(g){const y=window.MotionHandoffAnimation(g,h,b);y!==null&&(p.startTime=y,m=!0)}}Re(t,h),f.start(sn(h,f,d,t.shouldReduceMotion&&et.has(h)?{type:!1}:p,t,m));const T=f.animation;T&&u.push(T)}return a&&Promise.all(u).then(()=>{b.update(()=>{a&&Na(t,a)})}),u}function Ee(t,e,n={}){var s;const i=Zt(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(Fi(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=o;return Ka(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[r,a]:[a,r];return u().then(()=>c())}else return Promise.all([r(),a(n.delay)])}function Ka(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(Ha).forEach((u,c)=>{u.notify("AnimationStart",e),r.push(Ee(u,e,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(r)}function Ha(t,e){return t.sortNodePosition(e)}function Ga(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Ee(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Ee(t,e,n);else{const i=typeof e=="function"?Zt(t,e,n.custom):e;s=Promise.all(Fi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const za=$e.length;function Bi(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Bi(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<za;n++){const s=$e[n],i=t.props[s];(Vt(i)||i===!1)&&(e[s]=i)}return e}const Ya=[...Ue].reverse(),Xa=Ue.length;function qa(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Ga(t,n,s)))}function Za(t){let e=qa(t),n=Kn(),s=!0;const i=l=>(u,c)=>{var h;const f=Zt(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:p,...m}=f;u={...u,...m,...p}}return u};function o(l){e=l(t)}function r(l){const{props:u}=t,c=Bi(t.parent)||{},h=[],f=new Set;let d={},p=1/0;for(let T=0;T<Xa;T++){const g=Ya[T],y=n[g],v=u[g]!==void 0?u[g]:c[g],A=Vt(v),w=g===l?y.isActive:null;w===!1&&(p=T);let E=v===c[g]&&v!==u[g]&&A;if(E&&s&&t.manuallyAnimateOnMount&&(E=!1),y.protectedKeys={...d},!y.isActive&&w===null||!v&&!y.prevProp||bt(v)||typeof v=="boolean")continue;const B=Ja(y.prevProp,v);let C=B||g===l&&y.isActive&&!E&&A||T>p&&A,_=!1;const I=Array.isArray(v)?v:[v];let lt=I.reduce(i(g),{});w===!1&&(lt={});const{prevResolvedValues:Tn={}}=y,wr={...Tn,...lt},xn=k=>{C=!0,f.has(k)&&(_=!0,f.delete(k)),y.needsAnimating[k]=!0;const H=t.getValue(k);H&&(H.liveStyle=!1)};for(const k in wr){const H=lt[k],se=Tn[k];if(d.hasOwnProperty(k))continue;let ie=!1;xe(H)&&xe(se)?ie=!Xs(H,se):ie=H!==se,ie?H!=null?xn(k):f.add(k):H!==void 0&&f.has(k)?xn(k):y.protectedKeys[k]=!0}y.prevProp=v,y.prevResolvedValues=lt,y.isActive&&(d={...d,...lt}),s&&t.blockInitialAnimation&&(C=!1),C&&(!(E&&B)||_)&&h.push(...I.map(k=>({animation:k,options:{type:g}})))}if(f.size){const T={};f.forEach(g=>{const y=t.getBaseTarget(g),v=t.getValue(g);v&&(v.liveStyle=!0),T[g]=y??null}),h.push({animation:T})}let m=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,m?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,u)}),n[l].isActive=u;const h=r(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Kn(),s=!0}}}function Ja(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Xs(e,t):!1}function st(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Kn(){return{animate:st(!0),whileInView:st(),whileHover:st(),whileTap:st(),whileDrag:st(),whileFocus:st(),exit:st()}}class nt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Qa extends nt{constructor(e){super(e),e.animationState||(e.animationState=Za(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();bt(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let tl=0;class el extends nt{constructor(){super(...arguments),this.id=tl++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const nl={animation:{Feature:Qa},exit:{Feature:el}},_i=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function te(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const sl=t=>e=>_i(e)&&t(e,te(e));function G(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function q(t,e,n,s){return G(t,e,sl(n),s)}const Hn=(t,e)=>Math.abs(t-e);function il(t,e){const n=Hn(t.x,e.x),s=Hn(t.y,e.y);return Math.sqrt(n**2+s**2)}class Ii{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=fe(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=il(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:m}=D;this.history.push({...p,timestamp:m});const{onStart:T,onMove:g}=this.handlers;f||(T&&T(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=he(f,this.transformPagePoint),b.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=fe(h.type==="pointercancel"?this.lastMoveEventInfo:he(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,T),p&&p(h,T)},!_i(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const r=te(e),a=he(r,this.transformPagePoint),{point:l}=a,{timestamp:u}=D;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,fe(a,this.history)),this.removeListeners=X(q(this.contextWindow,"pointermove",this.handlePointerMove),q(this.contextWindow,"pointerup",this.handlePointerUp),q(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),J(this.updatePoint)}}function he(t,e){return e?{point:e(t.point)}:t}function Gn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function fe({point:t},e){return{point:t,delta:Gn(t,Ni(e)),offset:Gn(t,rl(e)),velocity:ol(e,.1)}}function rl(t){return t[0]}function Ni(t){return t[t.length-1]}function ol(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Ni(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>$(e)));)n--;if(!s)return{x:0,y:0};const o=Y(i.timestamp-s.timestamp);if(o===0)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 Ui(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const zn=Ui("dragHorizontal"),Yn=Ui("dragVertical");function $i(t){let e=!1;if(t==="y")e=Yn();else if(t==="x")e=zn();else{const n=zn(),s=Yn();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function Wi(){const t=$i(!0);return t?(t(),!1):!0}function ht(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const Ki=1e-4,al=1-Ki,ll=1+Ki,Hi=.01,ul=0-Hi,cl=0+Hi;function F(t){return t.max-t.min}function hl(t,e,n){return Math.abs(t-e)<=n}function Xn(t,e,n,s=.5){t.origin=s,t.originPoint=R(e.min,e.max,t.origin),t.scale=F(n)/F(e),t.translate=R(n.min,n.max,t.origin)-t.originPoint,(t.scale>=al&&t.scale<=ll||isNaN(t.scale))&&(t.scale=1),(t.translate>=ul&&t.translate<=cl||isNaN(t.translate))&&(t.translate=0)}function wt(t,e,n,s){Xn(t.x,e.x,n.x,s?s.originX:void 0),Xn(t.y,e.y,n.y,s?s.originY:void 0)}function qn(t,e,n){t.min=n.min+e.min,t.max=t.min+F(e)}function fl(t,e,n){qn(t.x,e.x,n.x),qn(t.y,e.y,n.y)}function Zn(t,e,n){t.min=e.min-n.min,t.max=t.min+F(e)}function Ct(t,e,n){Zn(t.x,e.x,n.x),Zn(t.y,e.y,n.y)}function dl(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?R(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?R(n,t,s.max):Math.min(t,n)),t}function Jn(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function pl(t,{top:e,left:n,bottom:s,right:i}){return{x:Jn(t.x,n,i),y:Jn(t.y,e,s)}}function Qn(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function ml(t,e){return{x:Qn(t.x,e.x),y:Qn(t.y,e.y)}}function gl(t,e){let n=.5;const s=F(t),i=F(e);return i>s?n=gt(e.min,e.max-s,t.min):s>i&&(n=gt(t.min,t.max-i,e.min)),Q(0,1,n)}function yl(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Me=.35;function vl(t=Me){return t===!1?t=0:t===!0&&(t=Me),{x:ts(t,"left","right"),y:ts(t,"top","bottom")}}function ts(t,e,n){return{min:es(t,e),max:es(t,n)}}function es(t,e){return typeof t=="number"?t:t[e]||0}const ns=()=>({translate:0,scale:1,origin:0,originPoint:0}),ft=()=>({x:ns(),y:ns()}),ss=()=>({min:0,max:0}),M=()=>({x:ss(),y:ss()});function U(t){return[t("x"),t("y")]}function Gi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Tl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function xl(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}}function de(t){return t===void 0||t===1}function De({scale:t,scaleX:e,scaleY:n}){return!de(t)||!de(e)||!de(n)}function it(t){return De(t)||zi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function zi(t){return is(t.x)||is(t.y)}function is(t){return t&&t!=="0%"}function zt(t,e,n){const s=t-n,i=e*s;return n+i}function rs(t,e,n,s,i){return i!==void 0&&(t=zt(t,i,s)),zt(t,n,s)+e}function Le(t,e=0,n=1,s,i){t.min=rs(t.min,e,n,s,i),t.max=rs(t.max,e,n,s,i)}function Yi(t,{x:e,y:n}){Le(t.x,e.translate,e.scale,e.originPoint),Le(t.y,n.translate,n.scale,n.originPoint)}const os=.999999999999,as=1.0000000000001;function Pl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&pt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Yi(t,r)),s&&it(o.latestValues)&&pt(t,o.latestValues))}e.x<as&&e.x>os&&(e.x=1),e.y<as&&e.y>os&&(e.y=1)}function dt(t,e){t.min=t.min+e,t.max=t.max+e}function ls(t,e,n,s,i=.5){const o=R(t.min,t.max,i);Le(t,e,n,o,s)}function pt(t,e){ls(t.x,e.x,e.scaleX,e.scale,e.originX),ls(t.y,e.y,e.scaleY,e.scale,e.originY)}function Xi(t,e){return Gi(xl(t.getBoundingClientRect(),e))}function Sl(t,e,n){const s=Xi(t,n),{scroll:i}=e;return i&&(dt(s.x,i.offset.x),dt(s.y,i.offset.y)),s}const qi=({current:t})=>t?t.ownerDocument.defaultView:null,Al=new WeakMap;class wl{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=M(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(te(c,"page").point)},o=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:p}=this.getProps();if(f&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=$i(f),!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),U(T=>{let g=this.getAxisMotionValue(T).get()||0;if(W.test(g)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[T];v&&(g=F(v)*(parseFloat(g)/100))}}this.originPoint[T]=g}),p&&b.postRender(()=>p(c,h)),Re(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},r=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:T}=h;if(d&&this.currentDirection===null){this.currentDirection=Cl(T),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,T),this.updateAxis("y",h.point,T),this.visualElement.render(),m&&m(c,h)},a=(c,h)=>this.stop(c,h),l=()=>U(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Ii(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:qi(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&b.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!_t(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=dl(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&ht(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=pl(i.layoutBox,n):this.constraints=!1,this.elastic=vl(s),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&U(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=yl(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ht(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Sl(s,i.root,this.visualElement.getTransformPagePoint());let r=ml(i.layout.layoutBox,o);if(n){const a=n(Tl(r));this.hasMutatedConstraints=!!a,a&&(r=Gi(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=U(c=>{if(!_t(c,n,this.currentDirection))return;let h=l&&l[c]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Re(this.visualElement,e),s.start(sn(e,s,0,n,this.visualElement,!1))}stopAnimation(){U(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){U(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){U(n=>{const{drag:s}=this.getProps();if(!_t(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-R(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!ht(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};U(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=gl({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),U(r=>{if(!_t(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(R(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;Al.set(this.visualElement,this);const e=this.visualElement.current,n=q(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();ht(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),b.read(s);const r=G(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(U(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Me,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function _t(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Cl(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class bl extends nt{constructor(e){super(e),this.removeGroupControls=L,this.removeListeners=L,this.controls=new wl(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||L}unmount(){this.removeGroupControls(),this.removeListeners()}}const us=t=>(e,n)=>{t&&b.postRender(()=>t(e,n))};class Vl extends nt{constructor(){super(...arguments),this.removePointerDownListener=L}onPointerDown(e){this.session=new Ii(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:us(e),onStart:us(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&b.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=q(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ot=x.createContext(null);function Rl(){const t=x.useContext(Ot);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=x.useId();x.useEffect(()=>s(i),[]);const o=x.useCallback(()=>n&&n(i),[i,n]);return!e&&n?[!1,o]:[!0]}function Ac(){return El(x.useContext(Ot))}function El(t){return t===null?!0:t.isPresent}const ln=x.createContext({}),Zi=x.createContext({}),Ut={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const xt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(P.test(t))t=parseFloat(t);else return t;const n=cs(t,e.target.x),s=cs(t,e.target.y);return`${n}% ${s}%`}},Ml={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=tt.parse(t);if(i.length>5)return s;const o=tt.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=R(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}},Yt={};function Dl(t){Object.assign(Yt,t)}const{schedule:un,cancel:wc}=qs(queueMicrotask,!1);class Ll extends x.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;Dl(jl),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ut.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,r=s.projection;return r&&(r.isPresent=o,i||e.layoutDependency!==n||n===void 0?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||b.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),un.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ji(t){const[e,n]=Rl(),s=x.useContext(ln);return z.jsx(Ll,{...t,layoutGroup:s,switchLayoutGroup:x.useContext(Zi),isPresent:e,safeToRemove:n})}const jl={borderRadius:{...xt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xt,borderTopRightRadius:xt,borderBottomLeftRadius:xt,borderBottomRightRadius:xt,boxShadow:Ml},Qi=["TopLeft","TopRight","BottomLeft","BottomRight"],Ol=Qi.length,hs=t=>typeof t=="string"?parseFloat(t):t,fs=t=>typeof t=="number"||P.test(t);function kl(t,e,n,s,i,o){i?(t.opacity=R(0,n.opacity!==void 0?n.opacity:1,Fl(s)),t.opacityExit=R(e.opacity!==void 0?e.opacity:1,0,Bl(s))):o&&(t.opacity=R(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let r=0;r<Ol;r++){const a=`border${Qi[r]}Radius`;let l=ds(e,a),u=ds(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||fs(l)===fs(u)?(t[a]=Math.max(R(hs(l),hs(u),s),0),(W.test(u)||W.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=R(e.rotate||0,n.rotate||0,s))}function ds(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Fl=tr(0,.5,si),Bl=tr(.5,.95,L);function tr(t,e,n){return s=>s<t?0:s>e?1:n(gt(t,e,s))}function ps(t,e){t.min=e.min,t.max=e.max}function N(t,e){ps(t.x,e.x),ps(t.y,e.y)}function ms(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function gs(t,e,n,s,i){return t-=e,t=zt(t,1/n,s),i!==void 0&&(t=zt(t,1/i,s)),t}function _l(t,e=0,n=1,s=.5,i,o=t,r=t){if(W.test(e)&&(e=parseFloat(e),e=R(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=R(o.min,o.max,s);t===o&&(a-=e),t.min=gs(t.min,e,n,a,i),t.max=gs(t.max,e,n,a,i)}function ys(t,e,[n,s,i],o,r){_l(t,e[n],e[s],e[i],e.scale,o,r)}const Il=["x","scaleX","originX"],Nl=["y","scaleY","originY"];function vs(t,e,n,s){ys(t.x,e,Il,n?n.x:void 0,s?s.x:void 0),ys(t.y,e,Nl,n?n.y:void 0,s?s.y:void 0)}function Ts(t){return t.translate===0&&t.scale===1}function er(t){return Ts(t.x)&&Ts(t.y)}function xs(t,e){return t.min===e.min&&t.max===e.max}function Ul(t,e){return xs(t.x,e.x)&&xs(t.y,e.y)}function Ps(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nr(t,e){return Ps(t.x,e.x)&&Ps(t.y,e.y)}function Ss(t){return F(t.x)/F(t.y)}function As(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class $l{constructor(){this.members=[]}add(e){rn(this.members,e),e.scheduleRender()}remove(e){if(on(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Wl(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Kl=(t,e)=>t.depth-e.depth;class Hl{constructor(){this.children=[],this.isDirty=!1}add(e){rn(this.children,e),this.isDirty=!0}remove(e){on(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Kl),this.isDirty=!1,this.children.forEach(e)}}function $t(t){const e=O(t)?t.get():t;return ka(e)?e.toValue():e}function Gl(t,e){const n=K.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(J(s),t(o-e))};return b.read(s,!0),()=>J(s)}function zl(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Yl(t,e,n){const s=O(t)?t:Mt(t);return s.start(sn("",s,e,n)),s.animation}const rt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},St=typeof window<"u"&&window.MotionDebug!==void 0,pe=["","X","Y","Z"],Xl={visibility:"hidden"},ws=1e3;let ql=0;function me(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function sr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Oi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",b,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&sr(s)}function ir({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=ql++,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,St&&(rt.totalNodes=rt.resolvedTargetDeltas=rt.recalculatedProjection=0),this.nodes.forEach(Ql),this.nodes.forEach(iu),this.nodes.forEach(ru),this.nodes.forEach(tu),St&&window.MotionDebug.record(rt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Hl)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new an),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=zl(r),this.instance=r;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let h;const f=()=>this.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Gl(f,250),Ut.hasAnimatedSinceResize&&(Ut.hasAnimatedSinceResize=!1,this.nodes.forEach(bs))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||cu,{onLayoutAnimationStart:T,onLayoutAnimationComplete:g}=c.getProps(),y=!this.targetLayout||!nr(this.targetLayout,p)||d,v=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,v);const A={...We(m,"layout"),onPlay:T,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else f||bs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,J(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(ou),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&sr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Cs);return}this.isUpdating||this.nodes.forEach(nu),this.isUpdating=!1,this.nodes.forEach(su),this.nodes.forEach(Zl),this.nodes.forEach(Jl),this.clearAllSnapshots();const a=K.now();D.delta=Q(0,1e3/60,a-D.timestamp),D.timestamp=a,D.isProcessing=!0,oe.update.process(D),oe.preRender.process(D),oe.render.process(D),D.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,un.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(eu),this.sharedNodes.forEach(au)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,b.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){b.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=M(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!er(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;r&&(a||it(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),hu(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var r;const{visualElement:a}=this.options;if(!a)return M();const l=a.measureViewportBox();if(!(((r=this.scroll)===null||r===void 0?void 0:r.wasRoot)||this.path.some(fu))){const{scroll:c}=this.root;c&&(dt(l.x,c.offset.x),dt(l.y,c.offset.y))}return l}removeElementScroll(r){var a;const l=M();if(N(l,r),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:f}=c;c!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&N(l,r),dt(l.x,h.offset.x),dt(l.y,h.offset.y))}return l}applyTransform(r,a=!1){const l=M();N(l,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&pt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),it(c.latestValues)&&pt(l,c.latestValues)}return it(this.latestValues)&&pt(l,this.latestValues),l}removeTransform(r){const a=M();N(a,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!it(u.latestValues))continue;De(u.latestValues)&&u.updateSnapshot();const c=M(),h=u.measurePageBox();N(c,h),vs(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return it(this.latestValues)&&vs(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==D.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(r||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=D.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=M(),this.relativeTargetOrigin=M(),Ct(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),N(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=M(),this.targetWithTransforms=M()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),fl(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):N(this.target,this.layout.layoutBox),Yi(this.target,this.targetDelta)):N(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=M(),this.relativeTargetOrigin=M(),Ct(this.relativeTargetOrigin,this.target,d.target),N(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}St&&rt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||De(this.parent.latestValues)||zi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var r;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((r=this.parent)===null||r===void 0)&&r.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===D.timestamp&&(u=!1),u)return;const{layout:c,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||h))return;N(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;Pl(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=M());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ms(this.prevProjectionDelta.x,this.projectionDelta.x),ms(this.prevProjectionDelta.y,this.projectionDelta.y)),wt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!As(this.projectionDelta.x,this.prevProjectionDelta.x)||!As(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),St&&rt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ft(),this.projectionDelta=ft(),this.projectionDeltaWithTransform=ft()}setAnimationOrigin(r,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=ft();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=M(),d=l?l.source:void 0,p=this.layout?this.layout.source:void 0,m=d!==p,T=this.getStack(),g=!T||T.members.length<=1,y=!!(m&&!g&&this.options.crossfade===!0&&!this.path.some(uu));this.animationProgress=0;let v;this.mixTargetDelta=A=>{const w=A/1e3;Vs(h.x,r.x,w),Vs(h.y,r.y,w),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ct(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),lu(this.relativeTarget,this.relativeTargetOrigin,f,w),v&&Ul(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=M()),N(v,this.relativeTarget)),m&&(this.animationValues=c,kl(c,u,this.latestValues,w,y,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(J(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=b.update(()=>{Ut.hasAnimatedSinceResize=!0,this.currentAnimation=Yl(0,ws,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.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 r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ws),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=r;if(!(!a||!l||!u)){if(this!==r&&this.layout&&u&&rr(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||M();const h=F(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=F(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}N(a,l),pt(a,c),wt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new $l),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&me("z",r,u,this.animationValues);for(let c=0;c<pe.length;c++)me(`rotate${pe[c]}`,r,u,this.animationValues),me(`skew${pe[c]}`,r,u,this.animationValues);r.render();for(const c in u)r.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);r.scheduleRender()}getProjectionStyles(r){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Xl;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=$t(r==null?void 0:r.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=$t(r==null?void 0:r.pointerEvents)||""),this.hasProjected&&!it(this.latestValues)&&(m.transform=c?c({},""):"none",this.hasProjected=!1),m}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=Wl(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:d,y:p}=this.projectionDelta;u.transformOrigin=`${d.origin*100}% ${p.origin*100}% 0`,h.animationValues?u.opacity=h===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const m in Yt){if(f[m]===void 0)continue;const{correct:T,applyTo:g}=Yt[m],y=u.transform==="none"?f[m]:T(f[m],h);if(g){const v=g.length;for(let A=0;A<v;A++)u[g[A]]=y}else u[m]=y}return this.options.layoutId&&(u.pointerEvents=h===this?$t(r==null?void 0:r.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Cs),this.root.sharedNodes.clear()}}}function Zl(t){t.updateLayout()}function Jl(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?U(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=F(f);f.min=s[h].min,f.max=f.min+d}):rr(o,n.layoutBox,s)&&U(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=F(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=ft();wt(a,s,n.layoutBox);const l=ft();r?wt(l,t.applyTransform(i,!0),n.measuredBox):wt(l,s,n.layoutBox);const u=!er(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=M();Ct(p,n.layoutBox,f.layoutBox);const m=M();Ct(m,s,d.layoutBox),nr(p,m)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Ql(t){St&&rt.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function tu(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function eu(t){t.clearSnapshot()}function Cs(t){t.clearMeasurements()}function nu(t){t.isLayoutDirty=!1}function su(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function bs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function iu(t){t.resolveTargetDelta()}function ru(t){t.calcProjection()}
17function ou(t){t.resetSkewAndRotation()}function au(t){t.removeLeadSnapshot()}function Vs(t,e,n){t.translate=R(e.translate,0,n),t.scale=R(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Rs(t,e,n,s){t.min=R(e.min,n.min,s),t.max=R(e.max,n.max,s)}function lu(t,e,n,s){Rs(t.x,e.x,n.x,s),Rs(t.y,e.y,n.y,s)}function uu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const cu={duration:.45,ease:[.4,0,.1,1]},Es=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ms=Es("applewebkit/")&&!Es("chrome/")?Math.round:L;function Ds(t){t.min=Ms(t.min),t.max=Ms(t.max)}function hu(t){Ds(t.x),Ds(t.y)}function rr(t,e,n){return t==="position"||t==="preserve-aspect"&&!hl(Ss(e),Ss(n),.2)}function fu(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const du=ir({attachResizeListener:(t,e)=>G(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ge={current:void 0},or=ir({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ge.current){const t=new du({});t.mount(window),t.setOptions({layoutScroll:!0}),ge.current=t}return ge.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),pu={pan:{Feature:Vl},drag:{Feature:bl,ProjectionNode:or,MeasureLayout:Ji}};function Ls(t,e){const n=e?"pointerenter":"pointerleave",s=e?"onHoverStart":"onHoverEnd",i=(o,r)=>{if(o.pointerType==="touch"||Wi())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e);const l=a[s];l&&b.postRender(()=>l(o,r))};return q(t.current,n,i,{passive:!t.getProps()[s]})}class mu extends nt{mount(){this.unmount=X(Ls(this.node,!0),Ls(this.node,!1))}unmount(){}}class gu extends nt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=X(G(this.node.current,"focus",()=>this.onFocus()),G(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ar=(t,e)=>e?t===e?!0:ar(t,e.parentElement):!1;function ye(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,te(n))}class yu extends nt{constructor(){super(...arguments),this.removeStartListeners=L,this.removeEndListeners=L,this.removeAccessibleListeners=L,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const s=this.node.getProps(),o=q(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:h}=this.node.getProps(),f=!h&&!ar(this.node.current,a.target)?c:u;f&&b.update(()=>f(a,l))},{passive:!(s.onTap||s.onPointerUp)}),r=q(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=X(o,r),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const r=a=>{a.key!=="Enter"||!this.checkPressEnd()||ye("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&b.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=G(this.node.current,"keyup",r),ye("down",(a,l)=>{this.startPress(a,l)})},n=G(this.node.current,"keydown",e),s=()=>{this.isPressing&&ye("cancel",(o,r)=>this.cancelPress(o,r))},i=G(this.node.current,"blur",s);this.removeAccessibleListeners=X(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:s,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&b.postRender(()=>s(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Wi()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&b.postRender(()=>s(e,n))}mount(){const e=this.node.getProps(),n=q(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),s=G(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=X(n,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const je=new WeakMap,ve=new WeakMap,vu=t=>{const e=je.get(t.target);e&&e(t)}
vendor: 5,046 bytes, line 17
17,Tu=t=>{t.forEach(vu)};function xu({root:t,...e}){const n=t||document;ve.has(n)||ve.set(n,{});const s=ve.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Tu,{root:t,...e})),s[i]}function Pu(t,e,n){const s=xu(e);return je.set(t,n),s.observe(t),()=>{je.delete(t),s.unobserve(t)}}const Su={some:0,all:1};class Au extends nt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Su[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return Pu(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(wu(e,n))&&this.startObserver()}unmount(){}}function wu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Cu={inView:{Feature:Au},tap:{Feature:yu},focus:{Feature:gu},hover:{Feature:mu}},bu={layout:{ProjectionNode:or,MeasureLayout:Ji}},cn=x.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),ee=x.createContext({}),hn=typeof window<"u",lr=hn?x.useLayoutEffect:x.useEffect,ur=x.createContext({strict:!1});function Vu(t,e,n,s,i){var o,r;const{visualElement:a}=x.useContext(ee),l=x.useContext(ur),u=x.useContext(Ot),c=x.useContext(cn).reducedMotion,h=x.useRef();s=s||l.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=h.current,d=x.useContext(Zi);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Ru(h.current,n,i,d),x.useInsertionEffect(()=>{f&&f.update(n,u)});const p=n[ji],m=x.useRef(!!p&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,p))&&((r=window.MotionHasOptimisedAnimation)===null||r===void 0?void 0:r.call(window,p)));return lr(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),un.render(f.render),m.current&&f.animationState&&f.animationState.animateChanges())}),x.useEffect(()=>{f&&(!m.current&&f.animationState&&f.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)===null||T===void 0||T.call(window,p)}),m.current=!1))}),f}function Ru(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:cr(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&ht(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function cr(t){if(t)return t.options.allowProjection!==!1?t.projection:cr(t.parent)}function Eu(t,e,n){return x.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):ht(n)&&(n.current=s))},[e])}function ne(t){return bt(t.animate)||$e.some(e=>Vt(t[e]))}function hr(t){return!!(ne(t)||t.variants)}function Mu(t,e){if(ne(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Vt(n)?n:void 0,animate:Vt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Du(t){const{initial:e,animate:n}=Mu(t,x.useContext(ee));return x.useMemo(()=>({initial:e,animate:n}),[js(e),js(n)])}function js(t){return Array.isArray(t)?t.join(" "):t}const Os={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"]},yt={};for(const t in Os)yt[t]={isEnabled:e=>Os[t].some(n=>!!e[n])};function Lu(t){for(const e in t)yt[e]={...yt[e],...t[e]}}const ju=Symbol.for("motionComponentSymbol");function Ou({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&Lu(t);function o(a,l){let u;const c={...x.useContext(cn),...a,layoutId:ku(a)},{isStatic:h}=c,f=Du(a),d=s(a,h);if(!h&&hn){Fu();const p=Bu(c);u=p.MeasureLayout,f.visualElement=Vu(i,d,c,e,p.ProjectionNode)}return z.jsxs(ee.Provider,{value:f,children:[u&&f.visualElement?z.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,Eu(d,f.visualElement,l),d,h,f.visualElement)]})}const r=x.forwardRef(o);return r[ju]=i,r}function ku({layoutId:t}){const e=x.useContext(ln).id;return e&&t!==void 0?e+"-"+t:t}function Fu(t,e){x.useContext(ur).strict}function Bu(t){const{drag:e,layout:n}=yt;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
17const _u=["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 fn(t){return typeof t!="string"||t.includes("-")?!1:!!(_u.indexOf(t)>-1||/[A-Z]/u.test(t))}function fr(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const o in n)t.style.setProperty(o,n[o])}const dr=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 pr(t,e,n,s){fr(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(dr.has(i)?i:Qt(i),e.attrs[i])}function mr(t,{layout:e,layoutId:n}){return et.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Yt[t]||t==="opacity")}function dn(t,e,n){var s;const{style:i}=t,o={};for(const r in i)(O(i[r])||e.style&&O(e.style[r])||mr(r,t)||((s=n==null?void 0:n.getValue(r))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(o[r]=i[r]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),o}function gr(t,e,n){const s=dn(t,e,n);for(const i in t)if(O(t[i])||O(e[i])){const o=Dt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}function pn(t){const e=x.useRef(null);return e.current===null&&(e.current=t()),e.current}function Iu({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:n,onMount:s},i,o,r,a){const l={latestValues:Nu(i,o,r,a?!1:t,e),renderState:n()};return s&&(l.mount=u=>s(i,u,l)),l}const yr=t=>(e,n)=>{const s=x.useContext(ee),i=x.useContext(Ot),o=()=>Iu(t,e,s,i,n);return n?o():pn(o)};function ks(t,e,n){const s=Array.isArray(e)?e:[e];for(let i=0;i<s.length;i++){const o=Ne(t,s[i]);if(o){const{transitionEnd:r,transition:a,...l}=o;n(l,r)}}}function Nu(t,e,n,s,i){var o;const r={};let a=s&&((o=t.style)===null||o===void 0?void 0:o.willChange)===void 0;const l=i(t,{});for(const m in l)r[m]=$t(l[m]);let{initial:u,animate:c}=t;const h=ne(t),f=hr(t);e&&f&&!h&&t.inherit!==!1&&(u===void 0&&(u=e.initial),c===void 0&&(c=e.animate));let d=n?n.initial===!1:!1;d=d||u===!1;const p=d?c:u;return p&&typeof p!="boolean"&&!bt(p)&&ks(t,p,(m,T)=>{for(const g in m){let y=m[g];if(Array.isArray(y)){const v=d?y.length-1:0;y=y[v]}y!==null&&(r[g]=y)}for(const g in T)r[g]=T[g]}),a&&c&&u!==!1&&!bt(c)&&ks(t,c,m=>{for(const T in m)if(ki(T)){r.willChange="transform";return}}),r}const mn=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),vr=()=>({...mn(),attrs:{}}),Tr=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Uu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$u=Dt.length;function Wu(t,e,n){let s="",i=!0;for(let o=0;o<$u;o++){const r=Dt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Tr(a,qe[r]);if(!l){i=!1;const c=Uu[r]||r;s+=`${c}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function gn(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const u=e[l];if(et.has(l)){r=!0;continue}else if(ui(l)){i[l]=u;continue}else{const c=Tr(u,qe[l]);l.startsWith("origin")?(a=!0,o[l]=c):s[l]=c}}if(e.transform||(r||n?s.transform=Wu(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;s.transformOrigin=`${l} ${u} ${c}`}}function Fs(t,e,n){return typeof t=="string"?t:P.transform(e+n*t)}function Ku(t,e,n){const s=Fs(e,t.x,t.width),i=Fs(n,t.y,t.height);return`${s} ${i}`}const Hu={offset:"stroke-dashoffset",array:"stroke-dasharray"},Gu={offset:"strokeDashoffset",array:"strokeDasharray"};function zu(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?Hu:Gu;t[o.offset]=P.transform(-s);const r=P.transform(e),a=P.transform(n);t[o.array]=`${r} ${a}`}function yn(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...u}
vendor: 13,266 bytes, lines 17-25
17,c,h){if(gn(t,u,h),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:d,dimensions:p}=t;f.transform&&(p&&(d.transform=f.transform),delete f.transform),p&&(i!==void 0||o!==void 0||d.transform)&&(d.transformOrigin=Ku(p,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),r!==void 0&&zu(f,r,a,l,!1)}const vn=t=>typeof t=="string"&&t.toLowerCase()==="svg",Yu={useVisualState:yr({scrapeMotionValuesFromProps:gr,createRenderState:vr,onMount:(t,e,{renderState:n,latestValues:s})=>{b.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),b.render(()=>{yn(n,s,vn(e.tagName),t.transformTemplate),pr(e,n)})}})},Xu={useVisualState:yr({applyWillChange:!0,scrapeMotionValuesFromProps:dn,createRenderState:mn})};function xr(t,e,n){for(const s in e)!O(e[s])&&!mr(s,n)&&(t[s]=e[s])}function qu({transformTemplate:t},e){return x.useMemo(()=>{const n=mn();return gn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Zu(t,e){const n=t.style||{},s={};return xr(s,n,t),Object.assign(s,qu(t,e)),s}function Ju(t,e){const n={},s=Zu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const Qu=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 Xt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Qu.has(t)}let Pr=t=>!Xt(t);function tc(t){t&&(Pr=e=>e.startsWith("on")?!Xt(e):t(e))}try{tc(require("@emotion/is-prop-valid").default)}catch{}function ec(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Pr(i)||n===!0&&Xt(i)||!e&&!Xt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function nc(t,e,n,s){const i=x.useMemo(()=>{const o=vr();return yn(o,e,vn(s),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};xr(o,t.style,t),i.style={...o,...i.style}}return i}function sc(t=!1){return(n,s,i,{latestValues:o},r)=>{const l=(fn(n)?nc:Ju)(s,o,r,n),u=ec(s,typeof n=="string",t),c=n!==x.Fragment?{...u,...l,ref:i}:{},{children:h}=s,f=x.useMemo(()=>O(h)?h.get():h,[h]);return x.createElement(n,{...c,children:f})}}function ic(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const r={...fn(s)?Yu:Xu,preloadedFeatures:t,useRender:sc(i),createVisualElement:e,Component:s};return Ou(r)}}const Oe={current:null},Sr={current:!1};function rc(){if(Sr.current=!0,!!hn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Oe.current=t.matches;t.addListener(e),e()}else Oe.current=!1}function oc(t,e,n){for(const s in e){const i=e[s],o=n[s];if(O(i))t.addValue(s,i);else if(O(o))t.addValue(s,Mt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,Mt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Bs=new WeakMap,ac=[...fi,j,tt],lc=t=>ac.find(hi(t)),_s=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class uc{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ze,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 f=K.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,b.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=ne(n),this.isVariantNode=hr(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&O(d)&&d.set(l[f],!1)}}mount(e){this.current=e,Bs.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),Sr.current||rc(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Oe.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Bs.delete(this.current),this.projection&&this.projection.unmount(),J(this.notifyUpdate),J(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=et.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&b.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in yt){const n=yt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):M()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<_s.length;s++){const i=_s[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=oc(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Mt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(ai(i)||ri(i))?i=parseFloat(i):!lc(i)&&tt.test(n)&&(i=xi(e,n)),this.setBaseTarget(e,O(i)?i.get():i)),O(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const r=Ne(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);r&&(i=r[e])}if(s&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!O(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new an),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Ar extends uc{constructor(){super(...arguments),this.KeyframeResolver=Pi}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}}function cc(t){return window.getComputedStyle(t)}class hc extends Ar{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=fr}readValueFromInstance(e,n){if(et.has(n)){const s=Ze(n);return s&&s.default||0}else{const s=cc(e),i=(ui(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Xi(e,n)}build(e,n,s){gn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return dn(e,n,s)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;O(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class fc extends Ar{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=M}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(et.has(n)){const s=Ze(n);return s&&s.default||0}return n=dr.has(n)?n:Qt(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return gr(e,n,s)}build(e,n,s){yn(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){pr(e,n,s,i)}mount(e){this.isSVGTag=vn(e.tagName),super.mount(e)}}const dc=(t,e)=>fn(t)?new fc(e):new hc(e,{allowProjection:t!==x.Fragment}),pc=ic({...nl,...Cu,...pu,...bu},dc),bc=Gr(pc);class mc extends x.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function gc({children:t,isPresent:e}){const n=x.useId(),s=x.useRef(null),i=x.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=x.useContext(cn);return x.useInsertionEffect(()=>{const{width:r,height:a,top:l,left:u}=i.current;if(e||!s.current||!r||!a)return;s.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
18          [data-motion-pop-id="${n}"] {
19            position: absolute !important;
20            width: ${r}px !important;
21            height: ${a}px !important;
22            top: ${l}px !important;
23            left: ${u}px !important;
24          }
25        `),()=>{document.head.removeChild(c)}},[e]),z.jsx(mc,{isPresent:e,childRef:s,sizeRef:i,children:x.cloneElement(t,{ref:s})})}const yc=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r})=>{const a=pn(vc),l=x.useId(),u=x.useCallback(h=>{a.set(h,!0);for(const f of a.values())if(!f)return;s&&s()},[a,s]),c=x.useMemo(()=>({id:l,initial:e,isPresent:n,custom:i,onExitComplete:u,register:h=>(a.set(h,!1),()=>a.delete(h))}),o?[Math.random(),u]:[n,u]);return x.useMemo(()=>{a.forEach((h,f)=>a.set(f,!1))},[n]),x.useEffect(()=>{!n&&!a.size&&s&&s()},[n]),r==="popLayout"&&(t=z.jsx(gc,{isPresent:n,children:t})),z.jsx(Ot.Provider,{value:c,children:t})};function vc(){return new Map}const It=t=>t.key||"";function Is(t){const e=[];
25return x.Children.forEach(t,n=>{x.isValidElement(n)&&e.push(n)}),e}const Vc=({children:t,exitBeforeEnter:e,custom:n,initial:s=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:r="sync"})=>{const a=x.useMemo(()=>Is(t),[t]),l=a.map(It),u=x.useRef(!0),c=x.useRef(a),h=pn(()=>new Map),[f,d]=x.useState(a),[p,m]=x.useState(a);lr(()=>{u.current=!1,c.current=a;for(let y=0;y<p.length;y++){const v=It(p[y]);l.includes(v)?h.delete(v):h.get(v)!==!0&&h.set(v,!1)}},[p,l.length,l.join("-")]);const T=[];if(a!==f){let y=[...a];for(let v=0;v<p.length;v++){const A=p[v],w=It(A);l.includes(w)||(y.splice(v,0,A),T.push(A))}r==="wait"&&T.length&&(y=T),m(Is(y)),d(a);return}const{forceRender:g}=x.useContext(ln);return z.jsx(z.Fragment,{children:p.map(y=>{const v=It(y),A=a===p||l.includes(v),w=()=>{if(h.has(v))h.set(v,!0);else return;let E=!0;h.forEach(B=>{B||(E=!1)}),E&&(g==null||g(),m(c.current),i&&i())};return z.jsx(yc,{isPresent:A,initial:!u.current||s?void 0:!1,custom:A?void 0:n,presenceAffectsLayout:o,mode:r,onExitComplete:A?void 0:w,children:y},v)})})};export{Vc as A,Sc as R,Hr as a,Pc as c,br as g,z as j,bc as m,x as r,Ac as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.