PageSourceSearch

https://episodehive.com/_next/static/chunks/9541-cf96b83d6b57d064.js

js episodehive.com collected 2026-10-02 14:56:27 UTC 128,110 bytes, 14 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9541],{31012:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var n=i(91373);/**
2 * @license lucide-react v0.436.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let s=(0,n.Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},9008:function(t,e,i){t.exports=i(90046)},90512:function(t,e,i){"use strict";e.Z=function(){for(var t,e,i=0,n="",s=arguments.length;i<s;i++)(t=arguments[i])&&(e=function r(t){var e,i,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t){if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(i=r(t[e]))&&(n&&(n+=" "),n+=i)}else for(i in t)t[i]&&(n&&(n+=" "),n+=i)}return n}(t))&&(n&&(n+=" "),n+=e);return n}},13114:function(t,e,i){"use strict";i.d(e,{M:function(){return AnimatePresence}});var n=i(85893),s=i(67294),a=i(25364),o=i(96681),l=i(58868),u=i(240),h=i(93243),c=i(16014);let PopChildMeasure=class PopChildMeasure extends s.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=(0,h.R)(t)&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}};function PopChild({children:t,isPresent:e,anchorX:i}){let a=(0,s.useId)(),o=(0,s.useRef)(null),l=(0,s.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=(0,s.useContext)(c._);return(0,s.useInsertionEffect)(()=>{let{width:t,height:n,top:s,left:h,right:c}=l.current;if(e||!o.current||!t||!n)return;let d="left"===i?`left: ${h}`:`right: ${c}`;o.current.dataset.motionPopId=a;let m=document.createElement("style");return u&&(m.nonce=u),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(`
7          [data-motion-pop-id="${a}"] {
8            position: absolute !important;
9            width: ${t}px !important;
10            height: ${n}px !important;
11            ${d}px !important;
12            top: ${s}px !important;
13          }
14        `),()=>{document.head.contains(m)&&document.head.removeChild(m)}},[e]),(0,n.jsx)(PopChildMeasure,{isPresent:e,childRef:o,sizeRef:l,children:s.cloneElement(t,{ref:o})})}let PresenceChild=({children:t,initial:e,isPresent:i,onExitComplete:a,custom:l,presenceAffectsLayout:h,mode:c,anchorX:d})=>{let m=(0,o.h)(newChildrenMap),p=(0,s.useId)(),f=!0,g=(0,s.useMemo)(()=>(f=!1,{id:p,initial:e,isPresent:i,custom:l,onExitComplete:t=>
14{for(let e of(m.set(t,!0),m.values()))if(!e)return;a&&a()},register:t=>(m.set(t,!1),()=>m.delete(t))}),[i,m,a]);return h&&f&&(g={...g}),(0,s.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[i]),s.useEffect(()=>{i||m.size||!a||a()},[i]),"popLayout"===c&&(t=(0,n.jsx)(PopChild,{isPresent:i,anchorX:d,children:t})),(0,n.jsx)(u.O.Provider,{value:g,children:t})};function newChildrenMap(){return new Map}var d=i(15947);let getChildKey=t=>t.key||"";function onlyElements(t){let e=[];return s.Children.forEach(t,t=>{(0,s.isValidElement)(t)&&e.push(t)}),e}let AnimatePresence=({children:t,custom:e,initial:i=!0,onExitComplete:u,presenceAffectsLayout:h=!0,mode:c="sync",propagate:m=!1,anchorX:p="left"})=>{let[f,g]=(0,d.oO)(m),y=(0,s.useMemo)(()=>onlyElements(t),[t]),v=m&&!f?[]:y.map(getChildKey),x=(0,s.useRef)(!0),T=(0,s.useRef)(y),P=(0,o.h)(()=>new Map),[b,V]=(0,s.useState)(y),[A,S]=(0,s.useState)(y);(0,l.L)(()=>{x.current=!1,T.current=y;for(let t=0;t<A.length;t++){let e=getChildKey(A[t]);v.includes(e)?P.delete(e):!0!==P.get(e)&&P.set(e,!1)}},[A,v.length,v.join("-")]);let w=[];if(y!==b){let t=[...y];for(let e=0;e<A.length;e++){let i=A[e],n=getChildKey(i);v.includes(n)||(t.splice(e,0,i),w.push(i))}return"wait"===c&&w.length&&(t=w),S(onlyElements(t)),V(y),null}let{forceRender:M}=(0,s.useContext)(a.p);return(0,n.jsx)(n.Fragment,{children:A.map(t=>{let s=getChildKey(t),a=(!m||!!f)&&(y===A||v.includes(s));return(0,n.jsx)(PresenceChild,{isPresent:a,initial:(!x.current||!!i)&&void 0,custom:e,presenceAffectsLayout:h,mode:c,onExitComplete:a?void 0:()=>{if(!P.has(s))return;P.set(s,!0);let t=!0;P.forEach(e=>{e||(t=!1)}),t&&(M?.(),S(T.current),m&&g?.(),u&&u())},anchorX:p,children:t},s)})})}},15947:function(t,e,i){"use strict";i.d(e,{oO:function(){return usePresence}});var n=i(67294),s=i(240);function usePresence(t=!0){let e=(0,n.useContext)(s.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:a,register:o}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return o(l)},[t]);let u=(0,n.useCallback)(()=>t&&a&&a(l),[l,a,t]);return!i&&a?[!1,u]:[!0]}},25364:function(t,e,i){"use strict";i.d(e,{p:function(){return s}});var n=i(67294);let s=(0,n.createContext)({})},16014:function(t,e,i){"use strict";i.d(e,{_:function(){return s}});var n=i(67294);let s=(0,n.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},240:function(t,e,i){"use strict";i.d(e,{O:function(){return s}});var n=i(67294);let s=(0,n.createContext)(null)},29092:function(t,e,i){"use strict";let n;function isAnimationControls(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function getValueState(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function resolveVariantFromProps(t,e,i,n){if("function"==typeof e){let[s,a]=getValueState(n);e=e(void 0!==i?i:t.custom,s,a)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,a]=getValueState(n);e=e(void 0!==i?i:t.custom,s,a)}return e}function resolveVariant(t,e,i){let n=t.getProps();return resolveVariantFromProps(n,e,void 0!==i?i:n.custom,t)}function getValueTransition(t,e){return t?.[e]??t?.default??t}i.d(e,{E:function(){return eO}});let noop=t=>t,s={},a=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],o={value:null,addProjectionMetrics:null};function createRenderBatcher(t,e){let i=!1,n=!0,l={delta:0,timestamp:0,isProcessing:!1},flagRunNextFrame=()=>i=!0,u=a.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,a=!1,l=new WeakSet,u={delta:0,timestamp:0,isProcessing:!1},h=0;function triggerCallback(e){l.has(e)&&(c.schedule(e),t()),h++,e(u)}let c={schedule:(t,e=!1,a=!1)=>{let o=a&&s,u=o?i:n;return e&&l.add(t),u.has(t)||u.add(t),t},cancel:t=>{n.delete(t),l.delete(t)},process:t=>{if(u=t,s){a=!0;return}s=!0,[i,n]=[n,i],i.forEach(triggerCallback),e&&o.value&&o.value.frameloop[e].push(h),h=0,i.clear(),s=!1,a&&(a=!1,c.process(t))}};return c}(flagRunNextFrame,e?i:void 0),t),{}),{setup:h,read:c,resolveKeyframes:d,preUpdate:m,update:p,preRender:f,render:g,postRender:y}=u,processBatch=()=>{let a=s.useManualTiming?l.timestamp:performance.now();i=!1,s.useManualTiming||(l.delta=n?1e3/60:Math.max(Math.min(a-l.timestamp,40),1)),l.timestamp=a,l.isProcessing=!0,h.process(l),c.process(l),d.process(l),m.process(l),p.process(l),f.process(l),g.process(l),y.process(l),l.isProcessing=!1,i&&e&&(n=!1,t(processBatch))},wake=()=>{i=!0,n=!0,l.isProcessing||t(processBatch)},v=a.reduce((t,e)=>{let n=u[e];return t[e]=(t,e=!1,s=!1)=>(i||wake(),n.schedule(t,e,s)),t},{});return{schedule:v,cancel:t=>{for(let e=0;e<a.length;e++)u[a[e]].cancel(t)},state:l,steps:u}}let{schedule:l,cancel:u,state:h,steps:c}=createRenderBatcher("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:noop,!0),d=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],m=new Set(d),p=new Set(["width","height","top","left","right","bottom",...d]);function addUniqueItem(t,e){-1===t.indexOf(e)&&t.push(e)}function removeItem(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}let SubscriptionManager=class SubscriptionManager{constructor(){this.subscriptions=[]}add(t){return addUniqueItem(this.subscriptions,t),()=>removeItem(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function clearTime(){n=void 0}let f={now:()=>(void 0===n&&f.set(h.isProcessing||s.useManualTiming?h.timestamp:performance.now()),n),set
14:t=>{n=t,queueMicrotask(clearTime)}},isFloat=t=>!isNaN(parseFloat(t)),g={current:void 0};let MotionValue=class MotionValue{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=f.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty();e&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=f.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=isFloat(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new SubscriptionManager);let i=this.events[t].add(e);return"change"===t?()=>{i(),l.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return g.current&&g.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=f.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?t*(1e3/i):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function motionValue(t,e){return new MotionValue(t,e)}let isKeyframesTarget=t=>Array.isArray(t),isMotionValue=t=>!!(t&&t.getVelocity);function addValueToWillChange(t,e){let i=t.getValue("willChange");if(isMotionValue(i)&&i.add)return i.add(e);if(!i&&s.WillChange){let i=new s.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let camelToDash=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),y="data-"+camelToDash("framerAppearId"),combineFunctions=(t,e)=>i=>e(t(i)),pipe=(...t)=>t.reduce(combineFunctions),clamp=(t,e,i)=>i>e?e:i<t?t:i,time_conversion_secondsToMilliseconds=t=>1e3*t,millisecondsToSeconds=t=>t/1e3,v={layout:0,mainThread:0,waapi:0},warning=()=>{},invariant=()=>{},checkStringStartsWith=t=>e=>"string"==typeof e&&e.startsWith(t),x=checkStringStartsWith("--"),T=checkStringStartsWith("var(--"),isCSSVariableToken=t=>{let e=T(t);return!!e&&P.test(t.split("/*")[0].trim())},P=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,b={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},V={...b,transform:t=>clamp(0,1,t)},A={...b,default:1},sanitize=t=>Math.round(1e5*t)/1e5,S=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,w=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,isColorString=(t,e)=>i=>!!("string"==typeof i&&w.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),splitColor=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,a,o,l]=n.match(S);return{[t]:parseFloat(s),[e]:parseFloat(a),[i]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}},clampRgbUnit=t=>clamp(0,255,t),M={...b,transform:t=>Math.round(clampRgbUnit(t))},D={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+M.transform(t)+", "+M.transform(e)+", "+M.transform(i)+", "+sanitize(V.transform(n))+")"},E={test:isColorString("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alph
14a:s?parseInt(s,16)/255:1}},transform:D.transform},createUnitType=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),C=createUnitType("deg"),R=createUnitType("%"),k=createUnitType("px"),B=createUnitType("vh"),L=createUnitType("vw"),F={...R,parse:t=>R.parse(t)/100,transform:t=>R.transform(100*t)},j={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+R.transform(sanitize(e))+", "+R.transform(sanitize(i))+", "+sanitize(V.transform(n))+")"},O={test:t=>D.test(t)||E.test(t)||j.test(t),parse:t=>D.test(t)?D.parse(t):j.test(t)?j.parse(t):E.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?D.transform(t):j.transform(t)},I=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,N="number",U="color",W=/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 analyseComplexValue(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],a=0,o=e.replace(W,t=>(O.test(t)?(n.color.push(a),s.push(U),i.push(O.parse(t))):t.startsWith("var(")?(n.var.push(a),s.push("var"),i.push(t)):(n.number.push(a),s.push(N),i.push(parseFloat(t))),++a,"${}")),l=o.split("${}");return{values:i,split:l,indexes:n,types:s}}function parseComplexValue(t){return analyseComplexValue(t).values}function createTransformer(t){let{split:e,types:i}=analyseComplexValue(t),n=e.length;return t=>{let s="";for(let a=0;a<n;a++)if(s+=e[a],void 0!==t[a]){let e=i[a];e===N?s+=sanitize(t[a]):e===U?s+=O.transform(t[a]):s+=t[a]}return s}}let convertNumbersToZero=t=>"number"==typeof t?0:t,$={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(S)?.length||0)+(t.match(I)?.length||0)>0},parse:parseComplexValue,createTransformer,getAnimatableNone:function(t){let e=parseComplexValue(t),i=createTransformer(t);return i(e.map(convertNumbersToZero))}};function hueToRgb(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function mixImmediate(t,e){return i=>i>0?e:t}let mixNumber=(t,e,i)=>t+(e-t)*i,mixLinearColor=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},_=[E,D,j],getColorType=t=>_.find(e=>e.test(t));function asRGBA(t){let e=getColorType(t);if(warning(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===j&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,a=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,l=2*i-n;s=hueToRgb(l,n,t+1/3),a=hueToRgb(l,n,t),o=hueToRgb(l,n,t-1/3)}else s=a=o=i;return{red:Math.round(255*s),green:Math.round(255*a),blue:Math.round(255*o),alpha:n}}(i)),i}let mixColor=(t,e)=>{let i=asRGBA(t),n=asRGBA(e);if(!i||!n)return mixImmediate(t,e);let s={...i};return t=>(s.red=mixLinearColor(i.red,n.red,t),s.green=mixLinearColor(i.green,n.green,t),s.blue=mixLinearColor(i.blue,n.blue,t),s.alpha=mixNumber(i.alpha,n.alpha,t),D.transform(s))},z=new Set(["none","hidden"]);function complex_mixNumber(t,e){return i=>mixNumber(t,e,i)}function getMixer(t){return"number"==typeof t?complex_mixNumber:"string"==typeof t?isCSSVariableToken(t)?mixImmediate:O.test(t)?mixColor:mixComplex:Array.isArray(t)?mixArray:"object"==typeof t?O.test(t)?mixColor:mixObject:mixImmediate}function mixArray(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>getMixer(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function mixObject(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=getMixer(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let mixComplex=(t,e)=>{let i=$.createTransformer(e),n=analyseComplexValue(t),s=analyseComplexValue(e),a=n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length;return a?z.has(t)&&!s.values.length||z.has(e)&&!n.values.length?z.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:pipe(mixArray(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let a=e.types[s],o=t.indexes[a][n[a]],l=t.values[o]??0;i[s]=l,n[a]++}return i}(n,s),s.values),i):(warning(!0,`Complex values '${t}' and '${e}
14' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),mixImmediate(t,e))};function mix(t,e,i){if("number"==typeof t&&"number"==typeof e&&"number"==typeof i)return mixNumber(t,e,i);let n=getMixer(t);return n(t,e)}let frameloopDriver=t=>{let passTimestamp=({timestamp:e})=>t(e);return{start:(t=!0)=>l.update(passTimestamp,t),stop:()=>u(passTimestamp),now:()=>h.isProcessing?h.timestamp:f.now()}},generateLinearEasing=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function calcGeneratorDuration(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function calcGeneratorVelocity(t,e,i){var n,s;let a=Math.max(e-5,0);return n=i-t(a),(s=e-a)?n*(1e3/s):0}let H={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function calcAngularFreq(t,e){return t*Math.sqrt(1-e*e)}let K=["duration","bounce"],G=["stiffness","damping","mass"];function isSpringType(t,e){return e.some(e=>void 0!==t[e])}function spring(t=H.visualDuration,e=H.bounce){let i;let n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:a}=n,o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:h,damping:c,mass:d,duration:m,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:H.velocity,stiffness:H.stiffness,damping:H.damping,mass:H.mass,isResolvedFromDuration:!1,...t};if(!isSpringType(t,G)&&isSpringType(t,K)){if(t.visualDuration){let i=t.visualDuration,n=2*Math.PI/(1.2*i),s=n*n,a=2*clamp(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:H.mass,stiffness:s,damping:a}}else{let i=function({duration:t=H.duration,bounce:e=H.bounce,velocity:i=H.velocity,mass:n=H.mass}){let s,a;warning(t<=time_conversion_secondsToMilliseconds(H.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=clamp(H.minDamping,H.maxDamping,o),t=clamp(H.minDuration,H.maxDuration,millisecondsToSeconds(t)),o<1?(s=e=>{let n=e*o,s=n*t,a=calcAngularFreq(e,o);return .001-(n-i)/a*Math.exp(-s)},a=e=>{let n=e*o,a=n*t,l=Math.pow(o,2)*Math.pow(e,2)*t,u=calcAngularFreq(Math.pow(e,2),o),h=-s(e)+.001>0?-1:1;return h*((a*i+i-l)*Math.exp(-a))/u}):(s=e=>{let n=Math.exp(-e*t),s=(e-i)*t+1;return -.001+n*s},a=e=>{let n=Math.exp(-e*t),s=(i-e)*(t*t);return n*s});let l=5/t,u=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,a,l);if(t=time_conversion_secondsToMilliseconds(t),isNaN(u))return{stiffness:H.stiffness,damping:H.damping,duration:t};{let e=Math.pow(u,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:H.mass}).isResolvedFromDuration=!0}}return e}({...n,velocity:-millisecondsToSeconds(n.velocity||0)}),g=p||0,y=c/(2*Math.sqrt(h*d)),v=l-o,x=millisecondsToSeconds(Math.sqrt(h/d)),T=5>Math.abs(v);if(s||(s=T?H.restSpeed.granular:H.restSpeed.default),a||(a=T?H.restDelta.granular:H.restDelta.default),y<1){let t=calcAngularFreq(x,y);i=e=>{let i=Math.exp(-y*x*e);return l-i*((g+y*x*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}}else if(1===y)i=t=>l-Math.exp(-x*t)*(v+(g+x*v)*t);else{let t=x*Math.sqrt(y*y-1);i=e=>{let i=Math.exp(-y*x*e),n=Math.min(t*e,300);return l-i*((g+y*x*v)*Math.sinh(n)+t*v*Math.cosh(n))/t}}let P={calculatedDuration:f&&m||null,next:t=>{let e=i(t);if(f)u.done=t>=m;else{let n=0===t?g:0;y<1&&(n=0===t?time_conversion_secondsToMilliseconds(g):calcGeneratorVelocity(i,t,e));let o=Math.abs(n)<=s,h=Math.abs(l-e)<=a;u.done=o&&h}return u.value=u.done?l:e,u},toString:()=>{let t=Math.min(calcGeneratorDuration(P),2e4),e=generateLinearEasing(e=>P.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return P}function inertia({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:o,min:l,max:u,restDelta:h=.5,restSpeed:c}){let d,m;let p=t[0],f={done:!1,value:p},isOutOfBounds=t=>void 0!==l&&t<l||void 0!==u&&t>u,nearestBoundary=t=>void 0===l?u:void 0===u?l:Math.abs(l-t)<Math.abs(u-t)?l:u,g=i*e,y=p+g,v=void 0===o?y:o(y);v!==y&&(g=v-p);let calcDelta=t=>-g*Math.exp(-t/n),calcLatest=t=>v+calcDelta(t),applyFriction=t=>{let e=calcDelta(t),i=calcLatest(t);f.done=Math.abs(e)<=h,f.value=f.done?v:i},checkCatchBoundary=t=>{isOutOfBounds(f.value)&&(d=t,m=spring({keyframes:[f.value,nearestBoundary(f.value)],velocity:calcGeneratorVelocity(calcLatest,t,f.value),damping:s,stiffness:a,restDelta:h,restSpeed:c}))};return checkCatchBoundary(0),{calculatedDuration:null,next:t=>{let e=!1;return(m||void 0!==d||(e=!0,applyFriction(t),checkCatchBoundary(t)),void 0!==d&&t>=d)?m.next(t-d):(e||applyFriction(t),f)}}}spring.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(calcGeneratorDuration(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:millisecondsToSeconds(s)}}(t,100,spring);return t.ease=e.ease,t.duration=time_conversion_secondsToMilliseconds(e.duration),t.type="keyframes",t};let calcBezier=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function cubicBezier(t,e,i,n){if(t===e&&i===n)return noop;let getTForX=e=>
14(function(t,e,i,n,s){let a,o;let l=0;do(a=calcBezier(o=e+(i-e)/2,n,s)-t)>0?i=o:e=o;while(Math.abs(a)>1e-7&&++l<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:calcBezier(getTForX(t),e,n)}let q=cubicBezier(.42,0,1,1),X=cubicBezier(0,0,.58,1),Y=cubicBezier(.42,0,.58,1),isEasingArray=t=>Array.isArray(t)&&"number"!=typeof t[0],mirrorEasing=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,reverseEasing=t=>e=>1-t(1-e),Z=cubicBezier(.33,1.53,.69,.99),J=reverseEasing(Z),Q=mirrorEasing(J),anticipate=t=>(t*=2)<1?.5*J(t):.5*(2-Math.pow(2,-10*(t-1))),circIn=t=>1-Math.sin(Math.acos(t)),tt=reverseEasing(circIn),te=mirrorEasing(circIn),isBezierDefinition=t=>Array.isArray(t)&&"number"==typeof t[0],ti={linear:noop,easeIn:q,easeInOut:Y,easeOut:X,circIn:circIn,circInOut:te,circOut:tt,backIn:J,backInOut:Q,backOut:Z,anticipate:anticipate},isValidEasing=t=>"string"==typeof t,easingDefinitionToFunction=t=>{if(isBezierDefinition(t)){invariant(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,s]=t;return cubicBezier(e,i,n,s)}return isValidEasing(t)?(invariant(void 0!==ti[t],`Invalid easing type '${t}'`),ti[t]):t},progress=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function keyframes({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let a=isEasingArray(n)?n.map(easingDefinitionToFunction):easingDefinitionToFunction(n),o={done:!1,value:e[0]},l=(i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=progress(0,e,n);t.push(mixNumber(i,1,s))}}(e,t.length-1),e}(e)).map(e=>e*t),u=function(t,e,{clamp:i=!0,ease:n,mixer:a}={}){let o=t.length;if(invariant(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];let l=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let u=function(t,e,i){let n=[],a=i||s.mix||mix,o=t.length-1;for(let i=0;i<o;i++){let s=a(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||noop:e;s=pipe(t,s)}n.push(s)}return n}(e,n,a),h=u.length,interpolator=i=>{if(l&&i<t[0])return e[0];let n=0;if(h>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=progress(t[n],t[n+1],i);return u[n](s)};return i?e=>interpolator(clamp(t[0],t[o-1],e)):interpolator}(l,e,{ease:Array.isArray(a)?a:e.map(()=>a||Y).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=u(e),o.done=e>=t,o)}}let isNotNull=t=>null!==t;function getFinalKeyframe(t,{repeat:e,repeatType:i="loop"},n,s=1){let a=t.filter(isNotNull),o=s<0||e&&"loop"!==i&&e%2==1?0:a.length-1;return o&&void 0!==n?n:a[o]}let tn={decay:inertia,inertia:inertia,tween:keyframes,keyframes:keyframes,spring:spring};function replaceTransitionType(t){"string"==typeof t.type&&(t.type=tn[t.type])}let WithPromise=class WithPromise{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}};let percentToProgress=t=>t/100;let JSAnimation=class JSAnimation extends WithPromise{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==f.now()&&this.tick(f.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},v.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;replaceTransitionType(t);let{type:e=keyframes,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:a=0}=t,{keyframes:o}=t,l=e||keyframes;l!==keyframes&&"number"!=typeof o[0]&&(this.mixKeyframes=pipe(percentToProgress,mix(o[0],o[1])),o=[0,100]);let u=l({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=calcGeneratorDuration(u));let{calculatedDuration:h}=u;this.calculatedDuration=h,this.resolvedDuration=h+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=u}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:h,repeat:c,repeatType:d,repeatDelay:m,type:p,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let x=this.currentTime,T=i;if(c){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,e=Math.min(e,c+1);let s=!!(e%2);s&&("reverse"===d?(i=1-i,m&&(i-=m/o)):"mirror"===d&&(T=a)),x=clamp(0,1,i)*o}let P=v?{done:!1,value:h[0]}:T.next(x);s&&(P.value=s(P.value));let{done:b}=P;v||null===l||(b=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let V=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return V&&p!==inertia&&(P.value=getFinalKeyframe(h,this.options,g,this.speed)),f&&f(P.value),V&&this.finish(),P}then(t,e){return this.finished.then(t,e)}get duration(){return millisecondsToSeconds(this.calculatedDuration)}get time(){return millisecondsToSeconds(this.currentTime)}set time(t){t=time_conversion_secondsToMilliseconds(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(f.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=millisecondsToSeconds(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=frameloopDriver,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(f.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,v.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};let radToDeg=t=>180*t/Math.PI,rotate=t=>{let e=radToDeg(Math.atan2(t[1],t[0]));return rebaseAngle(e)},ts={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate,rotateZ:rotate,skewX:t=>radToDeg(Math.atan(t[1])),skewY:t=>radToDeg(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},rebaseAngle=t=>((t%=360)<0&&(t+=360),t),scaleX=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),scaleY=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX,scaleY,scale:t=>(scaleX(t)+scaleY(t))/2,rotateX:t=>rebaseAngle(radToDeg(Math.atan2(t[6],t[5]))),rotateY:t=>rebaseAngle(radToDeg(Math.atan2(-t[2],t[0]))),rotateZ:rotate,rotate:rotate,skewX:t=>radToDeg(Math.atan(t[4])),skewY:t=>radToDeg(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function defaultTransformValue(t){return t.includes("scale")?1:0}function parseValueFromTransform(t,e){let i,n;if(!t||"none"===t)return defaultTransformValue(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=tr,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=ts,n=e}if(!n)return defaultTransformValue(e);let a=i[e],o=n[1].split(",").map(convertTransformToNumber);return"function"==typeof a?a(o):o[a]}let readTransformValue=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return parseValueFromTransform(i,e)};function convertTransformToNumber(t){return parseFloat(t.trim())}let isNumOrPxType=t=>t===b||t===k,ta=new Set(["x","y","z"]),to=d.filter(t=>!ta.has(t)),tl={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>parseValueFromTransform(e,"x"),y:(t,{transform:e})=>parseValueFromTransform(e,"y")};tl.translateX=tl.x,tl.translateY=tl.y;let tu=new Set,th=!1,tc=!1,td=!1;function measureAllKeyframes(){if(tc){let t=Array.from(tu).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return to.forEach(i=>
14{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tc=!1,th=!1,tu.forEach(t=>t.complete(td)),tu.clear()}function readAllKeyframes(){tu.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tc=!0)})}let KeyframeResolver=class KeyframeResolver{constructor(t,e,i,n,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(tu.add(this),th||(th=!0,l.read(readAllKeyframes),l.resolveKeyframes(measureAllKeyframes))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),a=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,a);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=a),n&&void 0===s&&n.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tu.delete(this)}cancel(){"scheduled"===this.state&&(tu.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}};let isCSSVar=t=>t.startsWith("--");function memo(t){let e;return()=>(void 0===e&&(e=t()),e)}let tm=memo(()=>void 0!==window.ScrollTimeline),tp={},tf=function(t,e){let i=memo(t);return()=>tp[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
14,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),cubicBezierAsString=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,tg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function isGenerator(t){return"function"==typeof t&&"applyToOptions"in t}let NativeAnimation=class NativeAnimation extends WithPromise{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:l,onComplete:u}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,invariant("string"!=typeof t.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let h=function({type:t,...e}){return isGenerator(t)&&tf()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:a=0,repeatType:l="loop",ease:u="easeOut",times:h}={},c){let d={[e]:i};h&&(d.offset=h);let m=function mapEasingToNativeEasing(t,e){if(t)return"function"==typeof t?tf()?generateLinearEasing(t,e):"ease-out":isBez
14ierDefinition(t)?cubicBezierAsString(t):Array.isArray(t)?t.map(t=>mapEasingToNativeEasing(t,e)||tg.easeOut):tg[t]}(u,s);Array.isArray(m)&&(d.easing=m),o.value&&v.waapi++;let p={delay:n,duration:s,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:"reverse"===l?"alternate":"normal"};c&&(p.pseudoElement=c);let f=t.animate(d,p);return o.value&&f.finished.finally(()=>{v.waapi--}),f}(e,i,n,h,s),!1===h.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=getFinalKeyframe(n,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(t):isCSSVar(i)?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return millisecondsToSeconds(Number(t))}get time(){return millisecondsToSeconds(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=time_conversion_secondsToMilliseconds(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tm())?(this.animation.timeline=t,noop):e(this)}};let ty={anticipate:anticipate,backInOut:Q,circInOut:te};let NativeAnimationExtended=class NativeAnimationExtended extends NativeAnimation{constructor(t){"string"==typeof t.ease&&t.ease in ty&&(t.ease=ty[t.ease]),replaceTransitionType(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...a}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let o=new JSAnimation({...a,autoplay:!1}),l=time_conversion_secondsToMilliseconds(this.finishedTime??this.time);e.setWithVelocity(o.sample(l-10).value,o.sample(l).value,10),o.stop()}};let isAnimatable=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&($.test(t)||"0"===t)&&!t.startsWith("url("));var tv,tx,tT,tP=i(93243);let tb=new Set(["opacity","clipPath","filter","transform"]),tV=memo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));let AsyncMotionValueAnimation=class AsyncMotionValueAnimation extends WithPromise{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:a="loop",keyframes:o,name:l,motionValue:u,element:h,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=f.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:a,name:l,motionValue:u,element:h,...c},m=h?.KeyframeResolver||KeyframeResolver;this.keyframeResolver=new m(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),l,u,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:a,type:o,velocity:l,delay:u,isHandoff:h,onUpdate:c}=i;this.resolvedAt=f.now(),!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let a=t[t.length-1],o=isAnimatable(s,e),l=isAnimatable(a,e);return warning(o===l,`You are trying to animate ${e} from "${s}" to "${a}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${a} via the \`style\` property.`),!!o&&!!l&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||isGenerator(i))&&n)}(t,a,o,l)&&((s.instantAnimations||!u)&&c?.(getFinalKeyframe(t,i,e)),t[0]=t[t.length-1],i.duration=0,i.repeat=0);let d=n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,m={startTime:d,finalKeyframe:e,...i,keyframes:t},p=!h&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:a,type:o}=t;if(!(0,tP.R)(e?.owner?.current))return!1;
14let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return tV()&&i&&tb.has(i)&&("transform"!==i||!u)&&!l&&!n&&"mirror"!==s&&0!==a&&"inertia"!==o}(m)?new NativeAnimationExtended({...m,element:m.motionValue.owner.current}):new JSAnimation(m);p.finished.then(()=>this.notifyFinished()).catch(noop),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),td=!0,readAllKeyframes(),measureAllKeyframes(),td=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};let get_final_keyframe_isNotNull=t=>null!==t,tA={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),tS={type:"keyframes",duration:.8},tw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(t,{keyframes:e})=>e.length>2?tS:m.has(t)?t.startsWith("scale")?criticallyDampedSpring(e[1]):tA:tw,animateMotionValue=(t,e,i,n={},a,o)=>u=>{let h=getValueTransition(n,t)||{},c=h.delay||n.delay||0,{elapsed:d=0}=n;d-=time_conversion_secondsToMilliseconds(c);let m={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...h,delay:-d,onUpdate:t=>{e.set(t),h.onUpdate&&h.onUpdate(t)},onComplete:()=>{u(),h.onComplete&&h.onComplete()},name:t,motionValue:e,element:o?void 0:a};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:a,repeatType:o,repeatDelay:l,from:u,elapsed:h,...c}){return!!Object.keys(c).length}(h)&&Object.assign(m,getDefaultTransition(t,m)),m.duration&&(m.duration=time_conversion_secondsToMilliseconds(m.duration)),m.repeatDelay&&(m.repeatDelay=time_conversion_secondsToMilliseconds(m.repeatDelay)),void 0!==m.from&&(m.keyframes[0]=m.from);let p=!1;if(!1!==m.type&&(0!==m.duration||m.repeatDelay)||(m.duration=0,0!==m.delay||(p=!0)),(s.instantAnimations||s.skipAnimations)&&(p=!0,m.duration=0,m.delay=0),m.allowFlatten=!h.type&&!h.ease,p&&!o&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(get_final_keyframe_isNotNull),a=e&&"loop"!==i&&e%2==1?0:s.length-1;return a&&void 0!==n?n:s[a]}(m.keyframes,h);if(void 0!==t){l.update(()=>{m.onUpdate(t),m.onComplete()});return}}return h.isSync?new JSAnimation(m):new AsyncMotionValueAnimation(m)};function animateTarget(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:a=t.getDefaultTransition(),transitionEnd:o,...u}=e;n&&(a=n);let h=[],c=s&&t.animationState&&t.animationState.getState()[s];for(let e in u){let n=t.getValue(e,t.latestValues[e]??null),s=u[e];if(void 0===s||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let o={delay:i,...getValueTransition(a||{},e)},d=n.get();if(void 0!==d&&!n.isAnimating&&!Array.isArray(s)&&s===d&&!o.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){let i=t.props[y];if(i){let t=window.MotionHandoffAnimation(i,e,l);null!==t&&(o.startTime=t,m=!0)}}addValueToWillChange(t,e),n.start(animateMotionValue(e,n,s,t.shouldReduceMotion&&p.has(e)?{type:!1}:o,t,m));let f=n.animation;f&&h.push(f)}return o&&Promise.all(h).then(()=>{l.update(()=>{o&&function(t,e){let i=resolveVariant(t,e),{transitionEnd:n={},transition:s={},...a}=i||{};for(let e in a={...a,...n}){var o;let i=isKeyframesTarget(o=a[e])?o[o.length-1]||0:o;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,motionValue(i))}}(t,o)})}),h}function animateVariant(t,e,i={}){let n=resolveVariant(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let a=n?()=>Promise.all(animateTarget(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:l}=s;
14return function(t,e,i=0,n=0,s=1,a){let o=[],l=(t.variantChildren.size-1)*n,u=1===s?(t=0)=>t*n:(t=0)=>l-t*n;return Array.from(t.variantChildren).sort(sortByTreeOrder).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(animateVariant(t,e,{...a,delay:i+u(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,a+n,o,l,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([a(),o(i.delay)]);{let[t,e]="beforeChildren"===l?[a,o]:[o,a];return t().then(()=>e())}}function sortByTreeOrder(t,e){return t.sortNodePosition(e)}function shallowCompare(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function isVariantLabel(t){return"string"==typeof t||Array.isArray(t)}let tM=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tD=["initial",...tM],tE=tD.length,tC=[...tM].reverse(),tR=tM.length;function createTypeState(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}let Feature=class Feature{constructor(t){this.isMounted=!1,this.node=t}update(){}};let tk=0,tB={x:!1,y:!1};function addDomEvent(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let isPrimaryPointer=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function extractEventInfo(t){return{point:{x:t.pageX,y:t.pageY}}}let addPointerInfo=t=>e=>isPrimaryPointer(e)&&t(e,extractEventInfo(e));function addPointerEvent(t,e,i,n){return addDomEvent(t,e,addPointerInfo(i),n)}function convertBoundingBoxToBox({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function calcLength(t){return t.max-t.min}function calcAxisDelta(t,e,i,n=.5){t.origin=n,t.originPoint=mixNumber(e.min,e.max,t.origin),t.scale=calcLength(i)/calcLength(e),t.translate=mixNumber(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function calcBoxDelta(t,e,i,n){calcAxisDelta(t.x,e.x,i.x,n?n.originX:void 0),calcAxisDelta(t.y,e.y,i.y,n?n.originY:void 0)}function calcRelativeAxis(t,e,i){t.min=i.min+e.min,t.max=t.min+calcLength(e)}function calcRelativeAxisPosition(t,e,i){t.min=e.min-i.min,t.max=t.min+calcLength(e)}function calcRelativePosition(t,e,i){calcRelativeAxisPosition(t.x,e.x,i.x),calcRelativeAxisPosition(t.y,e.y,i.y)}let createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()});function eachAxis(t){return[t("x"),t("y")]}function isIdentityScale(t){return void 0===t||1===t}function hasScale({scale:t,scaleX:e,scaleY:i}){return!isIdentityScale(t)||!isIdentityScale(e)||!isIdentityScale(i)}function hasTransform(t){return hasScale(t)||has2DTranslate(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function has2DTranslate(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function applyPointDelta(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function applyAxisDelta(t,e=0,i=1,n,s){t.min=applyPointDelta(t.min,e,i,n,s),t.max=applyPointDelta(t.max,e,i,n,s)}function applyBoxDelta(t,{x:e,y:i}){applyAxisDelta(t.x,e.translate,e.scale,e.originPoint),applyAxisDelta(t.y,i.translate,i.scale,i.originPoint)}function translateAxis(t,e){t.min=t.min+e,t.max=t.max+e}function transformAxis(t,e,i,n,s=.5){let a=mixNumber(t.min,t.max,s);applyAxisDelta(t,e,i,a,n)}function transformBox(t,e){transformAxis(t.x,e.x,e.scaleX,e.scale,e.originX),transformAxis(t.y,e.y,e.scaleY,e.scale,e.originY)}function measureViewportBox(t,e){return convertBoundingBoxToBox(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let getContextWindow=({current:t})=>t?t.ownerDocument.defaultView:null;function isRefObject(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let distance=(t,e)=>Math.abs(t-e);let PanSession=class PanSession{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=getPanInfo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){let i=distance(t.x,e.x),n=distance(t.y,e.y);return Math.sqrt(i**2+n**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=h;this.history.push({...n,timestamp:s});let{onStart:a,onMove:o}=this.handlers;e||(a&&a(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=transformPoint(e,this.transformPagePoint),l.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=getPanInfo("pointercancel"===t.type?this.lastMoveEventInfo:transformPoint(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,a),n&&n(t,a)},!isPrimaryPointer(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let a=extractEventInfo(t),o=transformPoint(a,this.transformPagePoint),{point:u}=o,{timestamp:c}=h;this.history=[{...u,timestamp:c}];let{onSessionStart:d}=e;d&&d(t,getPanInfo(o,this.history)),this.removeListeners=pipe(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),u(this.updatePoint)}};function transformPoint(t,e){return e?{point:e(t.point)}:t}function subtractPoint(t,e){return{x:t.x-e.x,y:t.y-e.y}}function getPanInfo({point:t},e){return{point:t,delta:subtractPoint(t,lastDevicePoint(e)),offset:subtractPoint(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=lastDevicePoint(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>time_conversion_secondsToMilliseconds(.1)));)i--;if(!n)return{x:0,y:0};let a=millisecondsToSeconds(s.timestamp-n.timestamp);if(0===a)return{x:0,y:0};let o={x:(s.x-n.x)/a,y:(s.y-n.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function lastDevicePoint(t){return t[t.length-1]}function calcRelativeAxisConstraints(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function calcViewportAxisConstraints(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function resolveAxisElastic(t,e,i){return{min:resolvePointElastic(t,e),max:resolvePointElastic(t,i)}}function resolvePointElastic(t,e){return"number"==typeof t?t:t[e]||0}let tL=new WeakMap;let VisualElementDragControls=class VisualElementDragControls{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new PanSession(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(extractEventInfo(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?tB[i]?null:(tB[i]=!0,()=>{tB[i]=!1}):tB.x||tB.y?null:(tB.x=tB.y=!0,()=>{tB.x=tB.y=!1}),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(t=>{let e=this.getAxisMotionValue(t).get()||0;if(R.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=calcLength(n);e=t*(parseFloat(e)/100)}}}this.originPoint[t]=e}),s&&l.postRender(()=>s(t,e)),addValueToWillChange(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:a}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),a&&a(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>eachAxis(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:getContextWindow(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&l.postRender(()=>s(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!shouldDrag(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),a=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(a=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?mixNumber(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?mixNumber(i,t,n.max):Math.min(t,i)),t}(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&isRefObject(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:calcRelativeAxisConstraints(t.x,i,s),y:calcRelativeAxisConstraints(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:resolveAxisElastic(t,"left","right"),y:resolveAxisElastic(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!isRefObject(e))return!1;let n=e.current;invariant(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;
14let a=function(t,e,i){let n=measureViewportBox(t,i),{scroll:s}=e;return s&&(translateAxis(n.x,s.offset.x),translateAxis(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),o={x:calcViewportAxisConstraints((t=s.layout.layoutBox).x,a.x),y:calcViewportAxisConstraints(t.y,a.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=convertBoundingBoxToBox(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=eachAxis(o=>{if(!shouldDrag(o,e,this.currentDirection))return;let u=l&&l[o]||{};a&&(u={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(o,h)});return Promise.all(u).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return addValueToWillChange(this.visualElement,t),i.start(animateMotionValue(t,i,0,e,this.visualElement,!1))}stopAnimation(){eachAxis(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){eachAxis(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),n=i[e];return n||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){eachAxis(e=>{let{drag:i}=this.getProps();if(!shouldDrag(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:a}=n.layout.layoutBox[e];s.set(t[e]-mixNumber(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!isRefObject(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};eachAxis(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=calcLength(t),s=calcLength(e);return s>n?i=progress(e.min,e.max-n,t.min):n>s&&(i=progress(t.min,t.max-s,e.min)),clamp(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),eachAxis(e=>{if(!shouldDrag(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:a}=this.constraints[e];i.set(mixNumber(s,a,n[e]))})}addListeners(){if(!this.visualElement.current)return;tL.set(this.visualElement,this);let t=this.visualElement.current,e=addPointerEvent(t,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),measureDragConstraints=()=>{let{dragConstraints:t}=this.getProps();isRefObject(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",measureDragConstraints);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),l.read(measureDragConstraints);let s=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(eachAxis(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),e(),n(),a&&a()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:a=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:a,dragMomentum:o}}};function shouldDrag(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let asyncHandler=t=>(e,i)=>{t&&l.postRender(()=>t(e,i))};var tF=i(85893);let{schedule:tj,cancel:tO}=createRenderBatcher(queueMicrotask,!1);var tI=i(67294),tN=i(15947),tU=i(25364);let tW=(0,tI.createContext)({}),t$={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let t_={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!k.test(t))return t;t=parseFloat(t)}let i=pixelsToPercent(t,e.target.x),n=pixelsToPercent(t,e.target.y);return`${i}% ${n}%`}},tz={};let MeasureLayoutWithContext=class MeasureLayoutWithContext extends tI.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;!function(t){for(let e in t)tz[e]=t[e],x(e)&&(tz[e].isCSSVariable=!0)}(tH),s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),t$.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:a}=i;return a&&(a.isPresent=s,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent===s||(s?a.promote():a.relegate()||l.postRender(()=>{let t=a.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tj.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function MeasureLayout(t){let[e,i]=(0,tN.oO)(),n=(0,tI.useContext)(tU.p);return(0,tF.jsx)(MeasureLayoutWithContext,{...t,layoutGroup:n,switchLayoutGroup:(0,tI.useContext)(tW),isPresent:e,safeToRemove:i})}let tH={borderRadius:{...t_,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:t_,borderTopRightRadius:t_,borderBottomLeftRadius:t_,borderBottomRightRadius:t_,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=$.parse(t);if(n.length>5)return t;let s=$.createTransformer(t),a="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,l=i.y.scale*e.y;n[0+a]/=o,n[1+a]/=l;let u=mixNumber(o,l,.5);return"number"==typeof n[2+a]&&(n[2+a]/=u),"number"==typeof n[3+a]&&(n[3+a]/=u),s(n)}}};var tK=i(36464);function isSVGElement(t){return(0,tK.K)(t)&&"ownerSVGElement"in t}let compareByDepth=(t,e)=>t.depth-e.depth;let FlatTree=class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(t){addUniqueItem(this.children,t),this.isDirty=!0}remove(t){removeItem(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEac
14h(t)}};function resolveMotionValue(t){return isMotionValue(t)?t.get():t}let tG=["TopLeft","TopRight","BottomLeft","BottomRight"],tq=tG.length,asNumber=t=>"string"==typeof t?parseFloat(t):t,isPx=t=>"number"==typeof t||k.test(t);function getRadius(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tX=compress(0,.5,tt),tY=compress(.5,.95,noop);function compress(t,e,i){return n=>n<t?0:n>e?1:i(progress(t,e,n))}function copyAxisInto(t,e){t.min=e.min,t.max=e.max}function copyBoxInto(t,e){copyAxisInto(t.x,e.x),copyAxisInto(t.y,e.y)}function copyAxisDeltaInto(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function removePointDelta(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function removeAxisTransforms(t,e,[i,n,s],a,o){!function(t,e=0,i=1,n=.5,s,a=t,o=t){if(R.test(e)){e=parseFloat(e);let t=mixNumber(o.min,o.max,e/100);e=t-o.min}if("number"!=typeof e)return;let l=mixNumber(a.min,a.max,n);t===a&&(l-=e),t.min=removePointDelta(t.min,e,i,l,s),t.max=removePointDelta(t.max,e,i,l,s)}(t,e[i],e[n],e[s],e.scale,a,o)}let tZ=["x","scaleX","originX"],tJ=["y","scaleY","originY"];function removeBoxTransforms(t,e,i,n){removeAxisTransforms(t.x,e,tZ,i?i.x:void 0,n?n.x:void 0),removeAxisTransforms(t.y,e,tJ,i?i.y:void 0,n?n.y:void 0)}function isAxisDeltaZero(t){return 0===t.translate&&1===t.scale}function isDeltaZero(t){return isAxisDeltaZero(t.x)&&isAxisDeltaZero(t.y)}function axisEquals(t,e){return t.min===e.min&&t.max===e.max}function axisEqualsRounded(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function boxEqualsRounded(t,e){return axisEqualsRounded(t.x,e.x)&&axisEqualsRounded(t.y,e.y)}function aspectRatio(t){return calcLength(t.x)/calcLength(t.y)}function axisDeltaEquals(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}let NodeStack=class NodeStack{constructor(){this.members=[]}add(t){addUniqueItem(this.members,t),t.scheduleRender()}remove(t){if(removeItem(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};let tQ={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},t0=["","X","Y","Z"],t1={visibility:"hidden"},t2=0;function resetDistortingTransform(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function createProjectionNode({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=t2++,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,o.value&&(tQ.nodes=tQ.calculatedTargetDeltas=tQ.calculatedProjections=0),this.nodes.forEac
14h(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),o.addProjectionMetrics&&o.addProjectionMetrics(tQ)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=isSVGElement(e)&&!(isSVGElement(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i;let resizeUnblockUpdate=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=f.now(),checkElapsed=({timestamp:n})=>{let s=n-i;s>=e&&(u(checkElapsed),t(s-e))};return l.setup(checkElapsed,!0),()=>u(checkElapsed)}(resizeUnblockUpdate,250),t$.hasAnimatedSinceResize&&(t$.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||s.getDefaultTransition()||t5,{onLayoutAnimationStart:o,onLayoutAnimationComplete:l}=s.getProps(),u=!this.targetLayout||!boxEqualsRounded(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...getValueTransition(a,"layout"),onPlay:o,onComplete:l};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),u(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(resetSkewAndRotation),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function cancelTreeOptimisedTransformAnimations(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:e}=t.options;if(!e)return;let i=e.props[y];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",l,!(e||n))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;let t=this.isUpdateBlocked();if(t){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
14h(clearMeasurements);return}this.isUpdating||this.nodes.forEach(clearIsLayoutDirty),this.isUpdating=!1,this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate),this.clearAllSnapshots();let e=f.now();h.delta=clamp(0,1e3/60,e-h.timestamp),h.timestamp=e,h.isProcessing=!0,c.update.process(h),c.preRender.process(h),c.render.process(h),h.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tj.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,l.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){l.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||calcLength(this.snapshot.measuredBox.x)||calcLength(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){let e=this.path[t];e.updateScroll()}let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=createBox(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!isDeltaZero(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,a=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||hasTransform(this.latestValues)||a)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),roundAxis((e=n).x),roundAxis(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return createBox();let e=t.measureViewportBox(),i=this.scroll?.wasRoot||this.path.some(checkNodeWasScrollRoot);if(!i){let{scroll:t}=this.root;t&&(translateAxis(e.x,t.offset.x),translateAxis(e.y,t.offset.y))}return e}removeElementScroll(t){let e=createBox();if(copyBoxInto(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:a}=n;n!==this.root&&s&&a.layoutScroll&&(s.wasRoot&&copyBoxInto(e,t),translateAxis(e.x,s.offset.x),translateAxis(e.y,s.offset.y))}return e}applyTransform(t,e=!1){let i=createBox();copyBoxInto(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&transformBox(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),hasTransform(n.latestValues)&&transformBox(i,n.latestValues)}return hasTransform(this.latestValues)&&transformBox(i,this.latestValues),i}removeTransform(t){let e=createBox();copyBoxInto(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!hasTransform(i.latestValues))continue;hasScale(i.latestValues)&&i.updateSnapshot();let n=createBox(),s=i.measurePageBox();copyBoxInto(n,s),removeBoxTransforms(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return hasTransform(this.latestValues)&&removeBoxTransforms(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==h.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e,n=!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize);
14if(n)return;let{layout:s,layoutId:a}=this.options;if(this.layout&&(s||a)){if(this.resolvedRelativeTargetAt=h.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=createBox(),this.targetWithTransforms=createBox()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var l,u,c;this.forceRelativeParentToResolveTarget(),l=this.target,u=this.relativeTarget,c=this.relativeParent.target,calcRelativeAxis(l.x,u.x,c.x),calcRelativeAxis(l.y,u.y,c.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):copyBoxInto(this.target,this.layout.layoutBox),applyBoxDelta(this.target,this.targetDelta)):copyBoxInto(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.target,t.target),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}o.value&&tQ.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||hasScale(this.parent.latestValues)||has2DTranslate(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===h.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,l=this.treeScale.y;!function(t,e,i,n=!1){let s,a;let o=i.length;if(o){e.x=e.y=1;for(let l=0;l<o;l++){a=(s=i[l]).projectionDelta;let{visualElement:o}=s.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&transformBox(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,applyBoxDelta(t,a)),n&&hasTransform(s.latestValues)&&transformBox(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=createBox());let{target:u}=t;if(!u){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(copyAxisDeltaInto(this.prevProjectionDelta.x,this.projectionDelta.x),copyAxisDeltaInto(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),calcBoxDelta(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.treeScale.x===a&&this.treeScale.y===l&&axisDeltaEquals(this.projectionDelta.x,this.prevProjectionDelta.x)&&axisDeltaEquals(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),o.value&&tQ.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=createDelta(),this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,s=n?n.latestValues:{},a={...this.latestValues},o=createDelta();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=createBox(),u=n?n.source:void 0,h=this.layout?this.layout.source:void 0,c=u!==h,d=this.getStack(),m=!d||d.members.length<=1,p=!!(c&&!m&&!0===this.options.crossfade&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(mixAxisDelta(o.x,t.x,n),mixAxisDelta(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,d,f;calcRelativePosition(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d=this.relativeTarget,f=this.relativeTargetOrigin,mixAxis(d.x,f.x,l.x,n),mixAxis(d.y,f.y,l.y,n),i&&(u=this.relativeTarget,h=i,axisEquals(u.x,h.x)&&axisEquals(u.y,h.y))&&(this.isProjectionDirty=!1),i||(i=createBox()),copyBoxInto(i,this.relativeTarget)}
14c&&(this.animationValues=a,function(t,e,i,n,s,a){s?(t.opacity=mixNumber(0,i.opacity??1,tX(n)),t.opacityExit=mixNumber(e.opacity??1,0,tY(n))):a&&(t.opacity=mixNumber(e.opacity??1,i.opacity??1,n));for(let s=0;s<tq;s++){let a=`border${tG[s]}Radius`,o=getRadius(e,a),l=getRadius(i,a);if(void 0===o&&void 0===l)continue;o||(o=0),l||(l=0);let u=0===o||0===l||isPx(o)===isPx(l);u?(t[a]=Math.max(mixNumber(asNumber(o),asNumber(l),n),0),(R.test(l)||R.test(o))&&(t[a]+="%")):t[a]=l}(e.rotate||i.rotate)&&(t.rotate=mixNumber(e.rotate||0,i.rotate||0,n))}(a,s,this.latestValues,n,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(u(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=l.update(()=>{t$.hasAnimatedSinceResize=!0,v.layout++,this.motionValue||(this.motionValue=motionValue(0)),this.currentAnimation=function(t,e,i){let n=isMotionValue(t)?t:motionValue(t);return n.start(animateMotionValue("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{v.layout--},onComplete:()=>{v.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||createBox();let e=calcLength(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=calcLength(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}copyBoxInto(e,i),transformBox(e,s),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new NodeStack);let i=this.sharedNodes.get(t);i.add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
14return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&resetDistortingTransform("z",t,n,this.animationValues);for(let e=0;e<t0.length;e++)resetDistortingTransform(`rotate${t0[e]}`,t,n,this.animationValues),resetDistortingTransform(`skew${t0[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return t1;let e={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.opacity="",e.pointerEvents=resolveMotionValue(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none",e;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=resolveMotionValue(t?.pointerEvents)||""),this.hasProjected&&!hasTransform(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=n.animationValues||n.latestValues;this.applyTransformsToTarget(),e.transform=function(t,e,i){let n="",s=t.x.translate/e.x,a=t.y.translate/e.y,o=i?.z||0;if((s||a||o)&&(n=`translate3d(${s}px, ${a}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:a,skewX:o,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),a&&(n+=`rotateY(${a}deg) `),o&&(n+=`skewX(${o}deg) `),l&&(n+=`skewY(${l}deg) `)}let l=t.x.scale*e.x,u=t.y.scale*e.y;return(1!==l||1!==u)&&(n+=`scale(${l}, ${u})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(e.transform=i(s,e.transform));let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?e.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:e.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,tz){if(void 0===s[t])continue;let{correct:i,applyTo:a,isCSSVariable:o}=tz[t],l="none"===e.transform?s[t]:i(s[t],n);if(a){let t=a.length;for(let i=0;i<t;i++)e[a[i]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}return this.options.layoutId&&(e.pointerEvents=n===this?resolveMotionValue(t?.pointerEvents)||"":"none"),e}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(t){t.updateLayout()}function notifyLayoutUpdate(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,a=e.source!==t.layout.source;"size"===s?eachAxis(t=>{let n=a?e.measuredBox[t]:e.layoutBox[t],s=calcLength(n);n.min=i[t].min,n.max=n.min+s}):shouldAnimatePositionOnly(s,e.layoutBox,i)&&eachAxis(n=>{let s=a?e.measuredBox[n]:e.layoutBox[n],o=calcLength(i[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=createDelta();calcBoxDelta(o,i,e.layoutBox);let l=createDelta();a?calcBoxDelta(l,t.applyTransform(n,!0),e.measuredBox):calcBoxDelta(l,i,e.layoutBox);let u=!isDeltaZero(o),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:a}=n;
14if(s&&a){let o=createBox();calcRelativePosition(o,e.layoutBox,s.layoutBox);let l=createBox();calcRelativePosition(l,i,a.layoutBox),boxEqualsRounded(o,l)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:l,layoutDelta:o,hasLayoutChanged:u,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function propagateDirtyNodes(t){o.value&&tQ.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function cleanDirtyNodes(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function clearSnapshot(t){t.clearSnapshot()}function clearMeasurements(t){t.clearMeasurements()}function clearIsLayoutDirty(t){t.isLayoutDirty=!1}function resetTransformStyle(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function finishAnimation(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function resolveTargetDelta(t){t.resolveTargetDelta()}function calcProjection(t){t.calcProjection()}function resetSkewAndRotation(t){t.resetSkewAndRotation()}function removeLeadSnapshots(t){t.removeLeadSnapshot()}function mixAxisDelta(t,e,i){t.translate=mixNumber(e.translate,0,i),t.scale=mixNumber(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function mixAxis(t,e,i,n){t.min=mixNumber(e.min,i.min,n),t.max=mixNumber(e.max,i.max,n)}function hasOpacityCrossfade(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let t5={duration:.45,ease:[.4,0,.1,1]},userAgentContains=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),t3=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:noop;function roundAxis(t){t.min=t3(t.min),t.max=t3(t.max)}function shouldAnimatePositionOnly(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(aspectRatio(e)-aspectRatio(i)))}function checkNodeWasScrollRoot(t){return t!==t.root&&t.scroll?.wasRoot}let t9=createProjectionNode({attachResizeListener:(t,e)=>addDomEvent(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),t4={current:void 0},t6=createProjectionNode({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!t4.current){let t=new t9({});t.mount(window),t.setOptions({layoutScroll:!0}),t4.current=t}return t4.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function setupGesture(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let i=document;e&&(i=e.current);let n=(void 0)??i.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t)}(t),n=new AbortController,s={passive:!0,...e,signal:n.signal};return[i,s,()=>n.abort()]}function isValidHover(t){return!("touch"===t.pointerType||tB.x||tB.y)}function handleHoverEvent(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s="onHover"+i,a=n[s];a&&l.postRender(()=>a(e,extractEventInfo(e)))}let isNodeOrChild=(t,e)=>!!e&&(t===e||isNodeOrChild(t,e.parentElement)),t8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),t7=new WeakSet;function filterEvents(t){return e=>{"Enter"===e.key&&t(e)}}function firePointerEvent(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let enableKeyboardPress=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=filterEvents(()=>{if(t7.has(i))return;firePointerEvent(i,"down");let t=filterEvents(()=>{firePointerEvent(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>firePointerEvent(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function isValidPressEvent(t){return isPrimaryPointer(t)&&!(tB.x||tB.y)}function handlePressEvent(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s="onTap"+("End"===i?"":i),a=n[s];a&&l.postRender(()=>a(e,extractEventInfo(e)))}let et=new WeakMap,ee=new WeakMap,fireObserverCallback=t=>{let e=et.get(t.target);e&&e(t)}
14,fireAllObserverCallbacks=t=>{t.forEach(fireObserverCallback)},ei={some:0,all:1},en=(0,tI.createContext)({strict:!1});var es=i(16014);let er=(0,tI.createContext)({});function isControllingVariants(t){return isAnimationControls(t.animate)||tD.some(e=>isVariantLabel(t[e]))}function isVariantNode(t){return!!(isControllingVariants(t)||t.variants)}function variantLabelsAsDependency(t){return Array.isArray(t)?t.join(" "):t}var ea=i(11741);let eo={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"]},el={};for(let t in eo)el[t]={isEnabled:e=>eo[t].some(t=>!!e[t])};let eu=Symbol.for("motionComponentSymbol");var eh=i(240),ec=i(58868);function isForcedMotionValue(t,{layout:e,layoutId:i}){return m.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!tz[t]||"opacity"===t)}let getValueAsType=(t,e)=>e&&"number"==typeof t?e.transform(t):t,ed={...b,transform:Math.round},em={borderWidth:k,borderTopWidth:k,borderRightWidth:k,borderBottomWidth:k,borderLeftWidth:k,borderRadius:k,radius:k,borderTopLeftRadius:k,borderTopRightRadius:k,borderBottomRightRadius:k,borderBottomLeftRadius:k,width:k,maxWidth:k,height:k,maxHeight:k,top:k,right:k,bottom:k,left:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,backgroundPositionX:k,backgroundPositionY:k,rotate:C,rotateX:C,rotateY:C,rotateZ:C,scale:A,scaleX:A,scaleY:A,scaleZ:A,skew:C,skewX:C,skewY:C,distance:k,translateX:k,translateY:k,translateZ:k,x:k,y:k,z:k,perspective:k,transformPerspective:k,opacity:V,originX:F,originY:F,originZ:k,zIndex:ed,fillOpacity:V,strokeOpacity:V,numOctaves:ed},ep={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ef=d.length;function buildHTMLStyles(t,e,i){let{style:n,vars:s,transformOrigin:a}=t,o=!1,l=!1;for(let t in e){let i=e[t];if(m.has(t)){o=!0;continue}if(x(t)){s[t]=i;continue}{let e=getValueAsType(i,em[t]);t.startsWith("origin")?(l=!0,a[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",s=!0;for(let a=0;a<ef;a++){let o=d[a],l=t[o];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===(o.startsWith("scale")?1:0):0===parseFloat(l))||i){let t=getValueAsType(l,em[o]);if(!u){s=!1;let e=ep[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),l){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;n.transformOrigin=`${t} ${e} ${i}`}}let createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(t,e,i){for(let n in e)isMotionValue(e[n])||isForcedMotionValue(n,i)||(t[n]=e[n])}function useHTMLProps(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return copyRawValuesOnly(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,tI.useMemo)(()=>{let i=createHtmlRenderState();return buildHTMLStyles(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i}let eg={offset:"stroke-dashoffset",array:"stroke-dasharray"},ey={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGAttrs(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:a=1,pathOffset:o=0,...l},u,h,c){if(buildHTMLStyles(t,l,h),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:m}=t;d.transform&&(m.transform=d.transform,delete d.transform),(m.transform||d.transformOrigin)&&(m.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),m.transform&&(m.transformBox=c?.transformBox??"fill-box",delete d.transformBox),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==s&&function(t,e,
14i=1,n=0,s=!0){t.pathLength=1;let a=s?eg:ey;t[a.offset]=k.transform(-n);let o=k.transform(e),l=k.transform(i);t[a.array]=`${o} ${l}`}(d,s,a,o,!1)}let createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),isSVGTag=t=>"string"==typeof t&&"svg"===t.toLowerCase();function useSVGProps(t,e,i,n){let s=(0,tI.useMemo)(()=>{let i=createSvgRenderState();return buildSVGAttrs(i,e,isSVGTag(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};copyRawValuesOnly(e,t.style,t),s.style={...e,...s.style}}return s}let ev=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 isValidMotionProp(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ev.has(t)}let shouldForward=t=>!isValidMotionProp(t);try{(tv=require("@emotion/is-prop-valid").default)&&(shouldForward=t=>t.startsWith("on")?!isValidMotionProp(t):tv(t))}catch{}let ex=["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 isSVGComponent(t){if("string"!=typeof t||t.includes("-"));else if(ex.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var eT=i(96681);let makeUseVisualState=t=>(e,i)=>{let n=(0,tI.useContext)(er),s=(0,tI.useContext)(eh.O),make=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){let a={latestValues:function(t,e,i,n){let s={},a=n(t,{});for(let t in a)s[t]=resolveMotionValue(a[t]);let{initial:o,animate:l}=t,u=isControllingVariants(t),h=isVariantNode(t);e&&h&&!u&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===l&&(l=e.animate));let c=!!i&&!1===i.initial;c=c||!1===o;let d=c?l:o;if(d&&"boolean"!=typeof d&&!isAnimationControls(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=resolveVariantFromProps(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()};return a})(t,e,n,s);return i?make():(0,eT.h)(make)};function scrapeMotionValuesFromProps(t,e,i){let{style:n}=t,s={};for(let a in n)(isMotionValue(n[a])||e.style&&isMotionValue(e.style[a])||isForcedMotionValue(a,t)||i?.getValue(a)?.liveStyle!==void 0)&&(s[a]=n[a]);return s}let eP={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps,createRenderState:createHtmlRenderState})};function scrape_motion_values_scrapeMotionValuesFromProps(t,e,i){let n=scrapeMotionValuesFromProps(t,e,i);for(let i in t)if(isMotionValue(t[i])||isMotionValue(e[i])){let e=-1!==d.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[e]=t[i]}return n}let eb={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrape_motion_values_scrapeMotionValuesFromProps,createRenderState:createSvgRenderState})},testValueType=t=>e=>e.test(t),eV=[b,k,R,C,L,B,{test:t=>"auto"===t,parse:t=>t}],findDimensionValueType=t=>eV.find(testValueType(t)),isNumericalString=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),eA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,isZeroValueString=t=>/^0[^.\s]+$/u.test(t),eS=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(S)||[];if(!n)return t;let s=i.replace(n,""),a=eS.has(e)?1:0;return n!==i&&(a*=100),e+"("+a+s+")"}let ew=/\b([a-z-]*)\(.*?\)/gu,eM={...$,getAnimatableNone:t=>{let e=t.match(ew);return e?e.map(applyDefaultFilter).join(" "):t}},eD={...em,color:O,backgroundColor:O,outlineColor:O,fill:O,stroke:O,borderColor:O,borderTopColor:O,borderRightColor:O,borderBottomColor:O,borderLeftColor:O,filter:eM,WebkitFilter:eM},getDefaultValueType=t=>eD[t];function animatable_none_getAnimatableNone(t,e){let i=getDefaultValueType(t);return i!==eM&&(i=$),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
14let eE=new Set(["auto","none","0"]);let DOMKeyframesResolver=class DOMKeyframesResolver extends KeyframeResolver{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&isCSSVariableToken(n=n.trim())){let s=function getVariableValue(t,e,i=1){invariant(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,s]=function(t){let e=eA.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(t);if(!n)return;let a=window.getComputedStyle(e).getPropertyValue(n);if(a){let t=a.trim();return isNumericalString(t)?parseFloat(t):t}return isCSSVariableToken(s)?getVariableValue(s,e,i+1):s}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!p.has(i)||2!==t.length)return;let[n,s]=t,a=findDimensionValueType(n),o=findDimensionValueType(s);if(a!==o){if(isNumOrPxType(a)&&isNumOrPxType(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tl[i]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||isZeroValueString(n)))&&i.push(e)}i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!eE.has(e)&&analyseComplexValue(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=animatable_none_getAnimatableNone(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tl[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,a=i[s];i[s]=tl[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
14h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}};let eC=[...eV,O,$],findValueType=t=>eC.find(testValueType(t)),eR={current:null},ek={current:!1},eB=new WeakMap,eL=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let VisualElement=class VisualElement{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=f.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,l.render(this.render,!1,!0))};let{latestValues:u,renderState:h}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=e.initial?{...u}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=isControllingVariants(e),this.isVariantNode=isVariantNode(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:c,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==u[t]&&isMotionValue(e)&&e.set(u[t],!1)}}mount(t){this.current=t,eB.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),ek.current||function(){if(ek.current=!0,ea.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),setReducedMotionPreferences=()=>eR.current=t.matches;t.addListener(setReducedMotionPreferences),setReducedMotionPreferences()}else eR.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||eR.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),u(this.notifyUpdate),u(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=m.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&l.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),a(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in el){let e=el[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<eL.length;e++){let i=eL[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n="on"+i,s=t[n];s&&(this.propEventSubscriptions[i]=this.on(i,s))}
14this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],a=i[n];if(isMotionValue(s))t.addValue(n,s);else if(isMotionValue(a))t.addValue(n,motionValue(s,{owner:t}));else if(a!==s){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,motionValue(void 0!==e?e:s,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=motionValue(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(isNumericalString(i)||isZeroValueString(i))?i=parseFloat(i):!findValueType(i)&&$.test(e)&&(i=animatable_none_getAnimatableNone(t,e)),this.setBaseTarget(t,isMotionValue(i)?i.get():i)),isMotionValue(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=resolveVariantFromProps(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||isMotionValue(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}};let DOMVisualElement=class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;isMotionValue(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}};function renderHTML(t,{style:e,vars:i},n,s){for(let a in Object.assign(t.style,e,s&&s.getProjectionStyles(n)),i)t.style.setProperty(a,i[a])}let HTMLVisualElement=class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=renderHTML}readValueFromInstance(t,e){if(m.has(e))return this.projection?.isProjecting?defaultTransformValue(e):readTransformValue(t,e);{let i=window.getComputedStyle(t),n=(x(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return measureViewportBox(t,e)}build(t,e,i){buildHTMLStyles(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return scrapeMotionValuesFromProps(t,e,i)}};let eF=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"]);let SVGVisualElement=class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=createBox}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(m.has(e)){let t=getDefaultValueType(e);return t&&t.default||0}return e=eF.has(e)?e:camelToDash(e),t.getAttribute(e)}
14scrapeMotionValuesFromProps(t,e,i){return scrape_motion_values_scrapeMotionValuesFromProps(t,e,i)}build(t,e,i){buildSVGAttrs(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){!function(t,e,i,n){for(let i in renderHTML(t,e,void 0,n),e.attrs)t.setAttribute(eF.has(i)?i:camelToDash(i),e.attrs[i])}(t,e,0,n)}mount(t){this.isSVGTag=isSVGTag(t.tagName),super.mount(t)}};let ej=(tx={animation:{Feature:class extends Feature{constructor(t){super(t),t.animationState||(t.animationState=function(t){let animate=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e)){let s=e.map(e=>animateVariant(t,e,i));n=Promise.all(s)}else if("string"==typeof e)n=animateVariant(t,e,i);else{let s="function"==typeof e?resolveVariant(t,e,i.custom):e;n=Promise.all(animateTarget(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),e=createState(),i=!0,buildResolvedTypeValues=e=>(i,n)=>{let s=resolveVariant(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function animateChanges(n){let{props:s}=t,a=function getVariantContext(t){if(!t)return;if(!t.isControllingVariants){let e=t.parent&&getVariantContext(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}let e={};for(let i=0;i<tE;i++){let n=tD[i],s=t.props[n];(isVariantLabel(s)||!1===s)&&(e[n]=s)}return e}(t.parent)||{},o=[],l=new Set,u={},h=1/0;for(let d=0;d<tR;d++){var c;let m=tC[d],p=e[m],f=void 0!==s[m]?s[m]:a[m],g=isVariantLabel(f),y=m===n?p.isActive:null;!1===y&&(h=d);let v=f===a[m]&&f!==s[m]&&g;if(v&&i&&t.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...u},!p.isActive&&null===y||!f&&!p.prevProp||isAnimationControls(f)||"boolean"==typeof f)continue;let x=(c=p.prevProp,"string"==typeof f?f!==c:!!Array.isArray(f)&&!shallowCompare(f,c)),T=x||m===n&&p.isActive&&!v&&g||d>h&&g,P=!1,b=Array.isArray(f)?f:[f],V=b.reduce(buildResolvedTypeValues(m),{});!1===y&&(V={});let{prevResolvedValues:A={}}=p,S={...A,...V},markToAnimate=e=>{T=!0,l.has(e)&&(P=!0,l.delete(e)),p.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in S){let e=V[t],i=A[t];if(!u.hasOwnProperty(t))(isKeyframesTarget(e)&&isKeyframesTarget(i)?shallowCompare(e,i):e===i)?void 0!==e&&l.has(t)?markToAnimate(t):p.protectedKeys[t]=!0:null!=e?markToAnimate(t):l.add(t)}p.prevProp=f,p.prevResolvedValues=V,p.isActive&&(u={...u,...V}),i&&t.blockInitialAnimation&&(T=!1);let w=v&&x,M=!w||P;T&&M&&o.push(...b.map(t=>({animation:t,options:{type:m}})))}if(l.size){let e={};if("boolean"!=typeof s.initial){let i=resolveVariant(t,Array.isArray(s.initial)?s.initial[0]:s.initial);i&&i.transition&&(e.transition=i.transition)}l.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),o.push({animation:e})}let d=!!o.length;return i&&(!1===s.initial||s.initial===s.animate)&&!t.manuallyAnimateOnMount&&(d=!1),i=!1,d?animate(o):Promise.resolve()}return{animateChanges,setActive:function(i,n){if(e[i].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(i,n)),e[i].isActive=n;let s=animateChanges(i);for(let t in e)e[t].protectedKeys={};return s},setAnimateFunction:function(e){animate=e(t)},getState:()=>e,reset:()=>{e=createState(),i=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();isAnimationControls(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends Feature{constructor(){super(...arguments),this.id=tk++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>
14{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,a={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:ei[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;ee.has(i)||ee.set(i,{});let n=ee.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(fireAllObserverCallbacks,{root:t,...e})),n[s]}(e);return et.set(t,i),n.observe(t),()=>{et.delete(t),n.unobserve(t)}}(this.node.current,a,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),a=e?i:n;a&&a(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node,i=["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e));i&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,a]=setupGesture(t,i),startPress=t=>{let n=t.currentTarget;if(!isValidPressEvent(t))return;t7.add(n);let a=e(n,t),onPointerEnd=(t,e)=>{window.removeEventListener("pointerup",onPointerUp),window.removeEventListener("pointercancel",onPointerCancel),t7.has(n)&&t7.delete(n),isValidPressEvent(t)&&"function"==typeof a&&a(t,{success:e})},onPointerUp=t=>{onPointerEnd(t,n===window||n===document||i.useGlobalTarget||isNodeOrChild(n,t.target))},onPointerCancel=t=>{onPointerEnd(t,!1)};window.addEventListener("pointerup",onPointerUp,s),window.addEventListener("pointercancel",onPointerCancel,s)};return n.forEach(t=>{let e=i.useGlobalTarget?window:t;e.addEventListener("pointerdown",startPress,s),(0,tP.R)(t)&&(t.addEventListener("focus",t=>enableKeyboardPress(t,s)),t8.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),a}(t,(t,e)=>(handlePressEvent(this.node,e,"Start"),(t,{success:e})=>handlePressEvent(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,a]=setupGesture(t,i),onPointerEnter=t=>{if(!isValidHover(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let onPointerLeave=t=>{isValidHover(t)&&(n(t),i.removeEventListener("pointerleave",onPointerLeave))};i.addEventListener("pointerleave",onPointerLeave,s)};return n.forEach(t=>{t.addEventListener("pointerenter",onPointerEnter,s)}),a}(t,(t,e)=>(handleHoverEvent(this.node,e,"Start"),t=>handleHoverEvent(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends Feature{constructor(){super(...arguments),this.removePointerDownListener=noop}onPointerDown(t){this.session=new PanSession(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:asyncHandler(t),onStart:asyncHandler(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&l.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Feature{constructor(t){super(t),this.removeGroupControls=noop,this.removeListeners=noop,this.controls=new VisualElementDragControls(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||noop}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:t6,MeasureLayout:MeasureLayout},layout:{ProjectionNode:t6,MeasureLayout:MeasureLayout}},tT=(t,e)=>isSVGComponent(t)?new SVGVisualElement(e):new HTMLVisualElement(e,{allowProjection:t!==tI.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){let i=isSVGComponent(t)?eb:eP,n={...i,preloadedFeatures:tx,useRender:function(t=!1){return(e,i,n,{latestValues:s},a)=>{let o=isSVGComponent(e)?useSVGProps:useHTMLProps,l=o(i,s,a,e),u=function(t,e,
14i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(shouldForward(s)||!0===i&&isValidMotionProp(s)||!e&&!isValidMotionProp(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(i,"string"==typeof e,t),h=e!==tI.Fragment?{...u,...l,ref:n}:{},{children:c}=i,d=(0,tI.useMemo)(()=>isMotionValue(c)?c.get():c,[c]);return(0,tI.createElement)(e,{...h,children:d})}}(e),createVisualElement:tT,Component:t};return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:s}){function MotionComponent(t,a){var o;let l;let u={...(0,tI.useContext)(es._),...t,layoutId:function({layoutId:t}){let e=(0,tI.useContext)(tU.p).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:h}=u,c=function(t){let{initial:e,animate:i}=function(t,e){if(isControllingVariants(t)){let{initial:e,animate:i}=t;return{initial:!1===e||isVariantLabel(e)?e:void 0,animate:isVariantLabel(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tI.useContext)(er));return(0,tI.useMemo)(()=>({initial:e,animate:i}),[variantLabelsAsDependency(e),variantLabelsAsDependency(i)])}(t),d=n(t,h);if(!h&&ea.j){(0,tI.useContext)(en).strict;let t=function(t){let{drag:e,layout:i}=el;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);l=t.MeasureLayout,c.visualElement=function(t,e,i,n,s){let{visualElement:a}=(0,tI.useContext)(er),o=(0,tI.useContext)(en),l=(0,tI.useContext)(eh.O),u=(0,tI.useContext)(es._).reducedMotion,h=(0,tI.useRef)(null);n=n||o.renderer,!h.current&&n&&(h.current=n(t,{visualState:e,parent:a,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let c=h.current,d=(0,tI.useContext)(tW);c&&!c.projection&&s&&("html"===c.type||"svg"===c.type)&&function(t,e,i,n){let{layoutId:s,layout:a,drag:o,dragConstraints:l,layoutScroll:u,layoutRoot:h,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function getClosestProjectingNode(t){if(t)return!1!==t.options.allowProjection?t.projection:getClosestProjectingNode(t.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:a,alwaysMeasureLayout:!!o||l&&isRefObject(l),visualElement:t,animationType:"string"==typeof a?a:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:u,layoutRoot:h})}(h.current,i,s,d);let m=(0,tI.useRef)(!1);(0,tI.useInsertionEffect)(()=>{c&&m.current&&c.update(i,l)});let p=i[y],f=(0,tI.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,ec.L)(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),tj.render(c.render),f.current&&c.animationState&&c.animationState.animateChanges())}),(0,tI.useEffect)(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),f.current=!1))}),c}(s,d,u,e,t.ProjectionNode)}return(0,tF.jsxs)(er.Provider,{value:c,children:[l&&c.visualElement?(0,tF.jsx)(l,{visualElement:c.visualElement,...u}):null,i(s,t,(o=c.visualElement,(0,tI.useCallback)(t=>{t&&d.onMount&&d.onMount(t),o&&(t?o.mount(t):o.unmount()),a&&("function"==typeof a?a(t):isRefObject(a)&&(a.current=t))},[o])),d,h,c.visualElement)]})}t&&function(t){for(let e in t)el[e]={...el[e],...t[e]}}(t),MotionComponent.displayName=`motion.${"string"==typeof s?s:`create(${s.displayName??s.name??""})`}`;let a=(0,tI.forwardRef)(MotionComponent);return a[eu]=s,a}(n)}),eO=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}(ej)},11741:function(t,e,i){"use strict";i.d(e,{j:function(){return n}});let n="undefined"!=typeof window},96681:function(t,e,i){"use strict";i.d(e,{h:function(){return useConstant}});var n=i(67294);function useConstant(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},58868:function(t,e,i){"use strict";i.d(e,{L:function(){return a}});var n=i(67294),s=i(11741);let a=s.j?n.useLayoutEffect:n.useEffect},93243:function(t,e,i){"use strict";i.d(e,{R:function(){return isHTMLElement}});var n=i(36464);function isHTMLElement(t){return(0,n.K)(t)&&"offsetHeight"in t}}
14,36464:function(t,e,i){"use strict";function isObject(t){return"object"==typeof t&&null!==t}i.d(e,{K:function(){return isObject}})}}]);

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.