PageSourceSearch

https://levenza.com/_wa/_next/static/chunks/2728-5817ce91ed62a358.js

js levenza.com collected 2026-10-09 22:13:25 UTC 115,358 bytes, 1 lines download raw bytes

1try{!function(){var t="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="472b7e88-68a6-4b2d-af89-2e20406c5c79",t._sentryDebugIdIdentifier="sentry-dbid-472b7e88-68a6-4b2d-af89-2e20406c5c79")}()}catch(t){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2728],{417:(t,e,i)=>{i.d(e,{f:()=>s});function s(t,e){return e?1e3/e*t:0}},5289:(t,e,i)=>{i.d(e,{G:()=>s});function s(t){return"object"==typeof t&&null!==t}},5390:(t,e,i)=>{i.d(e,{j:()=>S});var s=i(37937),n=i(9032),r=i(96140),a=i(20742),o=i(53538),l=i(33601),h=i(98022);function u(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var d=i(25562);function c(t,e){return i=>i>0?e:t}var p=i(11632);let m=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},f=[l.u,d.B,h.V];function y(t){let e=f.find(e=>e.test(t));if((0,n.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===h.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,r=0,a=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,o=2*i-s;n=u(o,s,t+1/3),r=u(o,s,t),a=u(o,s,t-1/3)}else n=r=a=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*a),alpha:s}}(i)),i}let v=(t,e)=>{let i=y(t),s=y(e);if(!i||!s)return c(t,e);let n={...i};return t=>(n.red=m(i.red,s.red,t),n.green=m(i.green,s.green,t),n.blue=m(i.blue,s.blue,t),n.alpha=(0,p.k)(i.alpha,s.alpha,t),d.B.transform(n))},g=new Set(["none","hidden"]);function x(t,e){return i=>(0,p.k)(t,e,i)}function T(t){return"number"==typeof t?x:"string"==typeof t?(0,r.p)(t)?c:a.y.test(t)?v:b:Array.isArray(t)?w:"object"==typeof t?a.y.test(t)?v:P:c}function w(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>T(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function P(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=T(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let b=(t,e)=>{let i=o.f.createTransformer(e),r=(0,o.V)(t),a=(0,o.V)(e);if(!(r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length))return(0,n.$)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),c(t,e);if(g.has(t)&&!a.values.length||g.has(e)&&!r.values.length)return g.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return(0,s.F)(w(function(t,e){let i=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let r=e.types[n],a=t.indexes[r][s[r]],o=t.values[a]??0;i[n]=o,s[r]++}return i}(r,a),a.values),i)};function S(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,p.k)(t,e,i):T(t)(t,e)}},9032:(t,e,i)=>{i.d(e,{$:()=>s,V:()=>n});let s=()=>{},n=()=>{}},9221:(t,e,i)=>{i.d(e,{s:()=>n});var s=i(5289);function n(t){return(0,s.G)(t)&&"offsetHeight"in t}},11632:(t,e,i)=>{i.d(e,{k:()=>s});let s=(t,e,i)=>t+(e-t)*i},18365:(t,e,i)=>{i.d(e,{S:()=>s});let s=t=>!!(t&&t.getVelocity)},20742:(t,e,i)=>{i.d(e,{y:()=>a});var s=i(33601),n=i(98022),r=i(25562);let a={test:t=>r.B.test(t)||s.u.test(t)||n.V.test(t),parse:t=>r.B.test(t)?r.B.parse(t):n.V.test(t)?n.V.parse(t):s.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?r.B.transform(t):n.V.transform(t),getAnimatableNone:t=>{let e=a.parse(t);return e.alpha=0,a.transform(e)}}},20800:(t,e,i)=>{i.d(e,{v:()=>n});var s=i(99474);class n{constructor(){this.subscriptions=[]}add(t){return(0,s.Kq)(this.subscriptions,t),()=>(0,s.Ai)(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},22288:(t,e,i)=>{i.d(e,{OQ:()=>h,bt:()=>o});var s=i(20800),n=i(417),r=i(93647),a=i(56813);let o={current:void 0};class l{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=r.k.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=r.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new s.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),a.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return o.current&&o.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=r.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,n.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function h(t,e){return new l(t,e)}},25562:(t,e,i)=>{i.d(e,{B:()=>l});var s=i(59236),n=i(98501),r=i(94647),a=i(68238);let o={...n.ai,transform:t=>Math.round((0,s.q)(0,255,t))},l={test:(0,a.$)("rgb","red"),parse:(0,a.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+o.transform(t)+", "+o.transform(e)+", "+o.transform(i)+", "+(0,r.a)(n.X4.transform(s))+")"}},25662:(t,e,i)=>{i.d(e,{A:()=>s});let s=(0,i(19556).A)("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},27513:(t,e,i)=>{i.d(e,{W:()=>s});let s={}},28556:(t,e,i)=>{i.d(e,{I:()=>a});var s=i(27513);let n=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var r=i(76758);function a(t,e){let i=!1,a=!0,o={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,h=n.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,n=!1,a=!1,o=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},h=0;function u(e){o.has(e)&&(d.schedule(e),t()),h++,e(l)}let d={schedule:(t,e=!1,r=!1)=>{let a=r&&n?i:s;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{s.delete(t),o.delete(t)},process:t=>{if(l=t,n){a=!0;return}
1n=!0,[i,s]=[s,i],i.forEach(u),e&&r.Q.value&&r.Q.value.frameloop[e].push(h),h=0,i.clear(),n=!1,a&&(a=!1,d.process(t))}};return d}(l,e?i:void 0),t),{}),{setup:u,read:d,resolveKeyframes:c,preUpdate:p,update:m,preRender:f,render:y,postRender:v}=h,g=()=>{let n=s.W.useManualTiming?o.timestamp:performance.now();i=!1,s.W.useManualTiming||(o.delta=a?1e3/60:Math.max(Math.min(n-o.timestamp,40),1)),o.timestamp=n,o.isProcessing=!0,u.process(o),d.process(o),c.process(o),p.process(o),m.process(o),f.process(o),y.process(o),v.process(o),o.isProcessing=!1,i&&e&&(a=!1,t(g))};return{schedule:n.reduce((e,s)=>{let n=h[s];return e[s]=(e,s=!1,r=!1)=>(!i&&(i=!0,a=!0,o.isProcessing||t(g)),n.schedule(e,s,r)),e},{}),cancel:t=>{for(let e=0;e<n.length;e++)h[n[e]].cancel(t)},state:o,steps:h}}},31132:(t,e,i)=>{i.d(e,{KN:()=>r,gQ:()=>h,px:()=>a,uj:()=>n,vh:()=>o,vw:()=>l});let s=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),n=s("deg"),r=s("%"),a=s("px"),o=s("vh"),l=s("vw"),h={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}},33601:(t,e,i)=>{i.d(e,{u:()=>n});var s=i(25562);let n={test:(0,i(68238).$)("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:s.B.transform}},34697:(t,e,i)=>{i.d(e,{G:()=>u});var s=i(27513),n=i(45817),r=i(37937),a=i(9032),o=i(92864),l=i(59236),h=i(5390);function u(t,e,{clamp:i=!0,ease:d,mixer:c}={}){let p=t.length;if((0,a.V)(p===e.length,"Both input and output ranges must be the same length","range-length"),1===p)return()=>e[0];if(2===p&&e[0]===e[1])return()=>e[1];let m=t[0]===t[1];t[0]>t[p-1]&&(t=[...t].reverse(),e=[...e].reverse());let f=function(t,e,i){let a=[],o=i||s.W.mix||h.j,l=t.length-1;for(let i=0;i<l;i++){let s=o(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||n.l:e;s=(0,r.F)(t,s)}a.push(s)}return a}(e,d,c),y=f.length,v=i=>{if(m&&i<t[0])return e[0];let s=0;if(y>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let n=(0,o.q)(t[s],t[s+1],i);return f[s](n)};return i?e=>v((0,l.q)(t[0],t[p-1],e)):v}},36016:(t,e,i)=>{i.d(e,{Q:()=>s});let s=(0,i(74361).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},37937:(t,e,i)=>{i.d(e,{F:()=>n});let s=(t,e)=>i=>e(t(i)),n=(...t)=>t.reduce(s)},40421:(t,e,i)=>{i.d(e,{M:()=>n});var s=i(74361);function n(t){let e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}},41816:(t,e,i)=>{i.d(e,{B:()=>s});let s="u">typeof window},45817:(t,e,i)=>{i.d(e,{l:()=>s});let s=t=>t},53538:(t,e,i)=>{i.d(e,{V:()=>u,f:()=>m});var s=i(20742);let n=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var r=i(84496),a=i(94647);let o="number",l="color",h=/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 u(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],a=0,u=e.replace(h,t=>(s.y.test(t)?(n.color.push(a),r.push(l),i.push(s.y.parse(t))):t.startsWith("var(")?(n.var.push(a),r.push("var"),i.push(t)):(n.number.push(a),r.push(o),i.push(parseFloat(t))),++a,"${}")).split("${}");return{values:i,split:u,indexes:n,types:r}}function d(t){return u(t).values}function c(t){let{split:e,types:i}=u(t),n=e.length;return t=>{let r="";for(let h=0;h<n;h++)if(r+=e[h],void 0!==t[h]){let e=i[h];e===o?r+=(0,a.a)(t[h]):e===l?r+=s.y.transform(t[h]):r+=t[h]}return r}}let p=t=>"number"==typeof t?0:s.y.test(t)?s.y.getAnimatableNone(t):t,m={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(r.S)?.length||0)+(t.match(n)?.length||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},56813:(t,e,i)=>{i.d(e,{Gt:()=>n,PP:()=>o,WG:()=>r,uv:()=>a});var s=i(45817);let{schedule:n,cancel:r,state:a,steps:o}=(0,i(28556).I)("u">typeof requestAnimationFrame?requestAnimationFrame:s.l,!0)}
1,59236:(t,e,i)=>{i.d(e,{q:()=>s});let s=(t,e,i)=>i>e?e:i<t?t:i},64834:(t,e,i)=>{i.d(e,{xQ:()=>r});var s=i(74361),n=i(72810);function r(t=!0){let e=(0,s.useContext)(n.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:a,register:o}=e,l=(0,s.useId)();(0,s.useEffect)(()=>{if(t)return o(l)},[t]);let h=(0,s.useCallback)(()=>t&&a&&a(l),[l,a,t]);return!i&&a?[!1,h]:[!0]}},68238:(t,e,i)=>{i.d(e,{$:()=>r,q:()=>a});var s=i(84496);let n=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,r=(t,e)=>i=>!!("string"==typeof i&&n.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),a=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,a,o,l]=n.match(s.S);return{[t]:parseFloat(r),[e]:parseFloat(a),[i]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}},70158:(t,e,i)=>{i.d(e,{E:()=>n});var s=i(74361);let n=i(41816).B?s.useLayoutEffect:s.useEffect},72810:(t,e,i)=>{i.d(e,{t:()=>s});let s=(0,i(74361).createContext)(null)},76758:(t,e,i)=>{i.d(e,{Q:()=>s});let s={value:null,addProjectionMetrics:null}},80407:(t,e,i)=>{let s;i.d(e,{P:()=>nR});var n,r=i(74361);let a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set(a),l=t=>180*t/Math.PI,h=t=>d(l(Math.atan2(t[1],t[0]))),u={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:h,rotateZ:h,skewX:t=>l(Math.atan(t[1])),skewY:t=>l(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},d=t=>((t%=360)<0&&(t+=360),t),c=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),p=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),m={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:c,scaleY:p,scale:t=>(c(t)+p(t))/2,rotateX:t=>d(l(Math.atan2(t[6],t[5]))),rotateY:t=>d(l(Math.atan2(-t[2],t[0]))),rotateZ:h,rotate:h,skewX:t=>l(Math.atan(t[4])),skewY:t=>l(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function f(t){return+!!t.includes("scale")}function y(t,e){let i,s;if(!t||"none"===t)return f(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=m,s=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=u,s=e}if(!s)return f(e);let r=i[e],a=s[1].split(",").map(v);return"function"==typeof r?r(a):a[r]}function v(t){return parseFloat(t.trim())}var g=i(96140);function x({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}var T=i(11632);function w(t){return void 0===t||1===t}function P({scale:t,scaleX:e,scaleY:i}){return!w(t)||!w(e)||!w(i)}function b(t){return P(t)||S(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function S(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function A(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function V(t,e=0,i=1,s,n){t.min=A(t.min,e,i,s,n),t.max=A(t.max,e,i,s,n)}function M(t,{x:e,y:i}){V(t.x,e.translate,e.scale,e.originPoint),V(t.y,i.translate,i.scale,i.originPoint)}function k(t,e){t.min=t.min+e,t.max=t.max+e}function E(t,e,i,s,n=.5){let r=(0,T.k)(t.min,t.max,n);V(t,e,i,r,s)}function C(t,e){E(t.x,e.x,e.scaleX,e.scale,e.originX),E(t.y,e.y,e.scaleY,e.scale,e.originY)}function D(t,e){return x(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}let R=new Set(["width","height","top","left","right","bottom",...a]);var j=i(98501),L=i(31132);let F=t=>e=>e.test(t),B=[j.ai,L.px,L.KN,L.uj,L.vw,L.vh,{test:t=>"auto"===t,parse:t=>t}],O=t=>B.find(F(t));var I=i(9032);let U=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,W=t=>t===j.ai||t===L.px,N=new Set(["x","y","z"]),$=a.filter(t=>!N.has(t)),G={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})=>y(e,"x"),y:(t,{transform:e})=>y(e,"y")};G.translateX=G.x,G.translateY=G.y;var q=i(56813);let X=new Set,z=!1,K=!1,Y=!1;function H(){if(K){let t=Array.from(X).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,s=(e=[],$.forEach(i=>
1{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e);s.length&&(i.set(t,s),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)})}K=!1,z=!1,X.forEach(t=>t.complete(Y)),X.clear()}function Q(){X.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(K=!0)})}class _{constructor(t,e,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(X.add(this),z||(z=!0,q.Gt.read(Q),q.Gt.resolveKeyframes(H))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let n=s?.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let s=i.readValue(e,r);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=r),s&&void 0===n&&s.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),X.delete(this)}cancel(){"scheduled"===this.state&&(X.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}var Z=i(53538),J=i(84496);let tt=new Set(["brightness","contrast","saturate","opacity"]);function te(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(J.S)||[];if(!s)return t;let n=i.replace(s,""),r=+!!tt.has(e);return s!==i&&(r*=100),e+"("+r+n+")"}let ti=/\b([a-z-]*)\(.*?\)/gu,ts={...Z.f,getAnimatableNone:t=>{let e=t.match(ti);return e?e.map(te).join(" "):t}};var tn=i(20742);let tr={...j.ai,transform:Math.round},ta={rotate:L.uj,rotateX:L.uj,rotateY:L.uj,rotateZ:L.uj,scale:j.hs,scaleX:j.hs,scaleY:j.hs,scaleZ:j.hs,skew:L.uj,skewX:L.uj,skewY:L.uj,distance:L.px,translateX:L.px,translateY:L.px,translateZ:L.px,x:L.px,y:L.px,z:L.px,perspective:L.px,transformPerspective:L.px,opacity:j.X4,originX:L.gQ,originY:L.gQ,originZ:L.px},to={borderWidth:L.px,borderTopWidth:L.px,borderRightWidth:L.px,borderBottomWidth:L.px,borderLeftWidth:L.px,borderRadius:L.px,radius:L.px,borderTopLeftRadius:L.px,borderTopRightRadius:L.px,borderBottomRightRadius:L.px,borderBottomLeftRadius:L.px,width:L.px,maxWidth:L.px,height:L.px,maxHeight:L.px,top:L.px,right:L.px,bottom:L.px,left:L.px,padding:L.px,paddingTop:L.px,paddingRight:L.px,paddingBottom:L.px,paddingLeft:L.px,margin:L.px,marginTop:L.px,marginRight:L.px,marginBottom:L.px,marginLeft:L.px,backgroundPositionX:L.px,backgroundPositionY:L.px,...ta,zIndex:tr,fillOpacity:j.X4,strokeOpacity:j.X4,numOctaves:tr},tl={...to,color:tn.y,backgroundColor:tn.y,outlineColor:tn.y,fill:tn.y,stroke:tn.y,borderColor:tn.y,borderTopColor:tn.y,borderRightColor:tn.y,borderBottomColor:tn.y,borderLeftColor:tn.y,filter:ts,WebkitFilter:ts},th=t=>tl[t];function tu(t,e){let i=th(t);return i!==ts&&(i=Z.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let td=new Set(["auto","none","0"]);class tc extends _{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&(s=s.trim(),(0,g.p)(s))){let n=function t(e,i,s=1){(0,I.V)(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,r]=function(t){let e=U.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${i??s}`,n]}(e);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let t=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return(0,g.p)(r)?t(r,i,s+1):r}(s,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!R.has(i)||2!==t.length)return;let[s,n]=t,r=O(s),a=O(n);if(r!==a)if(W(r)&&W(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else G[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);
1i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!td.has(e)&&(0,Z.V)(e).values.length&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]=tu(i,s)}(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=G[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);let n=i.length-1,r=i[n];i[n]=G[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}var tp=i(18365),tm=i(93647),tf=i(22288);let ty=[...B,tn.y,Z.f],{schedule:tv}=(0,i(28556).I)(queueMicrotask,!1);var tg=i(20800);let tx={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"]},tT={};for(let t in tx)tT[t]={isEnabled:e=>tx[t].some(t=>!!e[t])};let tw=()=>({translate:0,scale:1,origin:0,originPoint:0}),tP=()=>({x:tw(),y:tw()}),tb=()=>({min:0,max:0}),tS=()=>({x:tb(),y:tb()});var tA=i(41816);let tV={current:null},tM={current:!1},tk=new WeakMap;function tE(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function tC(t){return"string"==typeof t||Array.isArray(t)}let tD=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tR=["initial",...tD];function tj(t){return tE(t.animate)||tR.some(e=>tC(t[e]))}function tL(t){return!!(tj(t)||t.variants)}function tF(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function tB(t,e,i,s){if("function"==typeof e){let[n,r]=tF(s);e=e(void 0!==i?i:t.custom,n,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,r]=tF(s);e=e(void 0!==i?i:t.custom,n,r)}return e}let tO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tI{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.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=tm.k.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,q.Gt.render(this.render,!1,!0))};const{latestValues:o,renderState:l}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!n,this.isControllingVariants=tj(e),this.isVariantNode=tL(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in u){const e=u[t];void 0!==o[t]&&(0,tp.S)(e)&&e.set(o[t])}}mount(t){this.current=t,tk.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.forEac
1h((t,e)=>this.bindToMotionValue(e,t)),tM.current||function(){if(tM.current=!0,tA.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>tV.current=t.matches;t.addEventListener("change",e),e()}else tV.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||tV.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,q.WG)(this.notifyUpdate),(0,q.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=o.has(t);s&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&q.Gt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),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 tT){let e=tT[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(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):tS()}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<tO.length;e++){let i=tO[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],r=i[s];if((0,tp.S)(n))t.addValue(s,n);else if((0,tp.S)(r))t.addValue(s,(0,tf.OQ)(n,{owner:t}));else if(r!==n)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(s);t.addValue(s,(0,tf.OQ)(void 0!==e?e:n,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,tf.OQ)(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];if(null!=i){let s,n;if("string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let s;s=i,!ty.find(F(s))&&Z.f.test(e)&&(i=tu(t,e))}this.setBaseTarget(t,(0,tp.S)(i)?i.get():i)}return(0,tp.S)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=tB(this.props,i,this.presenceContext?.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,tp.S)(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new tg.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){tv.render(this.render)}}class tU extends tI{constructor(){super(...arguments),this.KeyframeResolver=tc}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,tp.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let tW=(t,e)=>e&&"number"==typeof t?e.transform(t):t,tN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},t$=a.length;function tG(t,e,i){let{style:s,vars:n,transformOrigin:r}=t,l=!1,h=!1;for(let t in e){let i=e[t];if(o.has(t)){l=!0;continue}if((0,g.j)(t)){n[t]=i;continue}{let e=tW(i,to[t]);t.startsWith("origin")?(h=!0,r[t]=e):s[t]=e}}
1if(!e.transform&&(l||i?s.transform=function(t,e,i){let s="",n=!0;for(let r=0;r<t$;r++){let o=a[r],l=t[o];if(void 0===l)continue;let h=!0;if(!(h="number"==typeof l?l===+!!o.startsWith("scale"):0===parseFloat(l))||i){let t=tW(l,to[o]);if(!h){n=!1;let e=tN[o]||o;s+=`${e}(${t}) `}i&&(e[o]=t)}}return s=s.trim(),i?s=i(e,n?"":s):n&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),h){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;s.transformOrigin=`${t} ${e} ${i}`}}function tq(t,{style:e,vars:i},s,n){let r,a=t.style;for(r in e)a[r]=e[r];for(r in n?.applyProjectionStyles(a,s),i)a.setProperty(r,i[r])}let tX={};function tz(t,{layout:e,layoutId:i}){return o.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!tX[t]||"opacity"===t)}function tK(t,e,i){let{style:s}=t,n={};for(let r in s)((0,tp.S)(s[r])||e.style&&(0,tp.S)(e.style[r])||tz(r,t)||i?.getValue(r)?.liveStyle!==void 0)&&(n[r]=s[r]);return n}class tY extends tU{constructor(){super(...arguments),this.type="html",this.renderInstance=tq}readValueFromInstance(t,e){if(o.has(e))return this.projection?.isProjecting?f(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return y(i,e)})(t,e);{let i=window.getComputedStyle(t),s=((0,g.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return D(t,e)}build(t,e,i){tG(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return tK(t,e,i)}}let tH=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tQ={offset:"stroke-dashoffset",array:"stroke-dasharray"},t_={offset:"strokeDashoffset",array:"strokeDasharray"};function tZ(t,{attrX:e,attrY:i,attrScale:s,pathLength:n,pathSpacing:r=1,pathOffset:a=0,...o},l,h,u){if(tG(t,o,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=u?.transformBox??"fill-box",delete d.transformBox),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==s&&(d.scale=s),void 0!==n&&function(t,e,i=1,s=0,n=!0){t.pathLength=1;let r=n?tQ:t_;t[r.offset]=L.px.transform(-s);let a=L.px.transform(e),o=L.px.transform(i);t[r.array]=`${a} ${o}`}(d,n,r,a,!1)}let tJ=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"]),t0=t=>"string"==typeof t&&"svg"===t.toLowerCase();function t1(t,e,i){let s=tK(t,e,i);for(let i in t)((0,tp.S)(t[i])||(0,tp.S)(e[i]))&&(s[-1!==a.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}class t2 extends tU{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tS}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(o.has(e)){let t=th(e);return t&&t.default||0}return e=tJ.has(e)?e:tH(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return t1(t,e,i)}build(t,e,i){tZ(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in tq(t,e,void 0,s),e.attrs)t.setAttribute(tJ.has(i)?i:tH(i),e.attrs[i])}mount(t){this.isSVGTag=t0(t.tagName),super.mount(t)}}let t5=["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 t3(t){if("string"!=typeof t||t.includes("-"));else if(t5.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var t9=i(62021),t4=i(92469);let t6=(0,r.createContext)({strict:!1});var t8=i(36016);let t7=(0,r.createContext)({});function et(t){return Array.isArray(t)?t.join(" "):t}let ee=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ei(t,e,i){for(let s in e)(0,tp.S)(e[s])||tz(s,i)||(t[s]=e[s])}let es=()=>({...ee(),attrs:{}}),en=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 er(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||en.has(t)}let ea=t=>!er(t);try{n=require("@emotion/is-prop-valid").default,"function"==typeof n&&(ea=t=>t.startsWith("on")?!er(t):n(t))}catch{}var eo=i(72810),el=i(40421);function eh(t){return(0,tp.S)(t)?t.get():t}let eu=t=>(e,i)=>{let s=(0,r.useContext)(t7),n=(0,r.useContext)(eo.t),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e}
1,i,s,n){return{latestValues:function(t,e,i,s){let n={},r=s(t,{});for(let t in r)n[t]=eh(r[t]);let{initial:a,animate:o}=t,l=tj(t),h=tL(t);e&&h&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!tE(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let s=tB(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(i,s,n,t),renderState:e()}})(t,e,s,n);return i?a():(0,el.M)(a)},ed=eu({scrapeMotionValuesFromProps:tK,createRenderState:ee}),ec=eu({scrapeMotionValuesFromProps:t1,createRenderState:es}),ep=Symbol.for("motionComponentSymbol");function em(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let ef="data-"+tH("framerAppearId"),ey=(0,r.createContext)({});var ev=i(70158);function eg(t,{forwardMotionProps:e=!1}={},i,s){i&&function(t){for(let e in t)tT[e]={...tT[e],...t[e]}}(i);let n=t3(t)?ec:ed;function a(i,a){var o;let l,h={...(0,r.useContext)(t8.Q),...i,layoutId:function({layoutId:t}){let e=(0,r.useContext)(t4.L).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:u}=h,d=function(t){let{initial:e,animate:i}=function(t,e){if(tj(t)){let{initial:e,animate:i}=t;return{initial:!1===e||tC(e)?e:void 0,animate:tC(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(t7));return(0,r.useMemo)(()=>({initial:e,animate:i}),[et(e),et(i)])}(i),c=n(i,u);if(!u&&tA.B){(0,r.useContext)(t6).strict;let e=function(t){let{drag:e,layout:i}=tT;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(h);l=e.MeasureLayout,d.visualElement=function(t,e,i,s,n){let{visualElement:a}=(0,r.useContext)(t7),o=(0,r.useContext)(t6),l=(0,r.useContext)(eo.t),h=(0,r.useContext)(t8.Q).reducedMotion,u=(0,r.useRef)(null);s=s||o.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:a,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h}));let d=u.current,c=(0,r.useContext)(ey);d&&!d.projection&&n&&("html"===d.type||"svg"===d.type)&&function(t,e,i,s){let{layoutId:n,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:!!a||o&&em(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:h})}(u.current,i,n,c);let p=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{d&&p.current&&d.update(i,l)});let m=i[ef],f=(0,r.useRef)(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return(0,ev.E)(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),f.current&&d.animationState&&d.animationState.animateChanges())}),(0,r.useEffect)(()=>{d&&(!f.current&&d.animationState&&d.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),f.current=!1),d.enteringChildren=void 0)}),d}(t,c,h,s,e.ProjectionNode)}return(0,t9.jsxs)(t7.Provider,{value:d,children:[l&&d.visualElement?(0,t9.jsx)(l,{visualElement:d.visualElement,...h}):null,function(t,e,i,{latestValues:s},n,a=!1){let o=(t3(t)?function(t,e,i,s){let n=(0,r.useMemo)(()=>{let i=es();return tZ(i,e,t0(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ei(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,s,n={},a=(i=t.style||{},ei(s={},i,t),Object.assign(s,function({transformTemplate:t},e){return(0,r.useMemo)(()=>{let i=ee();return tG(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=a,n}
1)(e,s,n,t),l=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(ea(n)||!0===i&&er(n)||!e&&!er(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(e,"string"==typeof t,a),h=t!==r.Fragment?{...l,...o,ref:i}:{},{children:u}=e,d=(0,r.useMemo)(()=>(0,tp.S)(u)?u.get():u,[u]);return(0,r.createElement)(t,{...h,children:d})}(t,i,(o=d.visualElement,(0,r.useCallback)(t=>{t&&c.onMount&&c.onMount(t),o&&(t?o.mount(t):o.unmount()),a&&("function"==typeof a?a(t):em(a)&&(a.current=t))},[o])),c,u,e)]})}a.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let o=(0,r.forwardRef)(a);return o[ep]=t,o}function ex(t,e,i){let s=t.getProps();return tB(s,e,void 0!==i?i:s.custom,t)}function eT(t,e){return t?.[e]??t?.default??t}let ew=t=>Array.isArray(t);var eP=i(27513);function eb(t,e){let i=t.getValue("willChange");if((0,tp.S)(i)&&i.add)return i.add(e);if(!i&&eP.W.WillChange){let i=new eP.W.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function eS(t){t.duration=0,t.type="keyframes"}var eA=i(37937),eV=i(59236);let eM=t=>1e3*t,ek={layout:0,mainThread:0,waapi:0};var eE=i(5390);let eC=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>q.Gt.update(e,t),stop:()=>(0,q.WG)(e),now:()=>q.uv.isProcessing?q.uv.timestamp:tm.k.now()}},eD=(t,e,i=10)=>{let s="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)s+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`};function eR(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}var ej=i(417);function eL(t,e,i){let s=Math.max(e-5,0);return(0,ej.f)(i-t(s),e-s)}let eF=.01,eB=2,eO=.005,eI=.5;function eU(t,e){return t*Math.sqrt(1-e*e)}let eW=["duration","bounce"],eN=["stiffness","damping","mass"];function e$(t,e){return e.some(e=>void 0!==t[e])}function eG(t=.3,e=.3){let i,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:r}=s,a=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],l={done:!1,value:a},{stiffness:h,damping:u,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!e$(t,eN)&&e$(t,eW))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*(0,eV.q)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let n,r;(0,I.$)(t<=eM(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=(0,eV.q)(.05,1,a),t=(0,eV.q)(.01,10,t/1e3),a<1?(n=e=>{let s=e*a,n=s*t;return .001-(s-i)/eU(e,a)*Math.exp(-n)},r=e=>{let s=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-s),l=eU(Math.pow(e,2),a);return(s*i+i-r)*o*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let o=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,r,5/t);if(t=eM(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-((s.velocity||0)/1e3)}),f=p||0,y=u/(2*Math.sqrt(h*d)),v=o-a,g=Math.sqrt(h/d)/1e3,x=5>Math.abs(v);if(n||(n=x?eF:eB),r||(r=x?eO:eI),y<1){let t=eU(g,y);i=e=>o-Math.exp(-y*g*e)*((f+y*g*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===y)i=t=>o-Math.exp(-g*t)*(v+(f+g*v)*t);else{let t=g*Math.sqrt(y*y-1);i=e=>{let i=Math.exp(-y*g*e),s=Math.min(t*e,300);return o-i*((f+y*g*v)*Math.sinh(s)+t*v*Math.cosh(s))/t}}let T={calculatedDuration:m&&c||null,next:t=>{let e=i(t);if(m)l.done=t>=c;else{let s=0===t?f:0;y<1&&(s=0===t?eM(f):eL(i,t,e));let a=Math.abs(o-e)<=r;l.done=Math.abs(s)<=n&&a}return l.value=l.done?o:e,l},toString:()=>{let t=Math.min(eR(T),2e4),e=eD(e=>T.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return T}function eq({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:u}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,y=p+f,v=void 0===a?y:a(y);v!==y&&(f=v-p);let g=t=>-f*Math.exp(-t/s),x=t=>v+g(t),T=t=>{let e=g(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?v:i},w=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;d=t,c=eG({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:eL(x,t,m.value),damping:n,stiffness:r,restDelta:h,restSpeed:u})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,T(t),w(t)),void 0!==d&&t>=d)?c.next(t-d):(e||T(t),m)}}}eG.applyToOptions=t=>{let e=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),n=Math.min(eR(s),2e4);return{type:"keyframes",ease:t=>s.next(n*t).value/e,duration:n/1e3}}(t,100,eG);return t.ease=e.ease,t.duration=eM(e.duration),t.type="keyframes",t};var eX=i(45817);let ez=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function eK(t,e,i,s){return t===e&&i===s?eX.l:n=>
10===n||1===n?n:ez(function(t,e,i,s,n){let r,a,o=0;do(r=ez(a=e+(i-e)/2,s,n)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12);return a}(n,0,1,t,i),e,s)}let eY=eK(.42,0,1,1),eH=eK(0,0,.58,1),eQ=eK(.42,0,.58,1),e_=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,eZ=t=>e=>1-t(1-e),eJ=eK(.33,1.53,.69,.99),e0=eZ(eJ),e1=e_(e0),e2=t=>(t*=2)<1?.5*e0(t):.5*(2-Math.pow(2,-10*(t-1))),e5=t=>1-Math.sin(Math.acos(t)),e3=eZ(e5),e9=e_(e5),e4=t=>Array.isArray(t)&&"number"==typeof t[0],e6={linear:eX.l,easeIn:eY,easeInOut:eQ,easeOut:eH,circIn:e5,circInOut:e9,circOut:e3,backIn:e0,backInOut:e1,backOut:eJ,anticipate:e2},e8=t=>{if(e4(t)){(0,I.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,s,n]=t;return eK(e,i,s,n)}return"string"==typeof t?((0,I.V)(void 0!==e6[t],`Invalid easing type '${t}'`,"invalid-easing-type"),e6[t]):t};var e7=i(34697),it=i(92864);function ie({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var n;let r,a=Array.isArray(s)&&"number"!=typeof s[0]?s.map(e8):e8(s),o={done:!1,value:e[0]},l=(n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=(0,it.q)(0,e,s);t.push((0,T.k)(i,1,n))}}(r=[0],e.length-1),r),n.map(e=>e*t)),h=(0,e7.G)(l,e,{ease:Array.isArray(a)?a:e.map(()=>a||eQ).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=h(e),o.done=e>=t,o)}}let ii=t=>null!==t;function is(t,{repeat:e,repeatType:i="loop"},s,n=1){let r=t.filter(ii),a=n<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==s?s:r[a]}let ir={decay:eq,inertia:eq,tween:ie,keyframes:ie,spring:eG};function ia(t){"string"==typeof t.type&&(t.type=ir[t.type])}class io{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 il=t=>t/100;class ih extends io{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!==tm.k.now()&&this.tick(tm.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},ek.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;ia(t);let{type:e=ie,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=t,{keyframes:a}=t,o=e||ie;o!==ie&&"number"!=typeof a[0]&&(this.mixKeyframes=(0,eA.F)(il,(0,eE.j)(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===n&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=eR(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:s,mixKeyframes:n,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:h,repeat:u,repeatType:d,repeatDelay:c,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>s;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let g=this.currentTime,x=i;if(u){let t=Math.min(this.currentTime,s)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,u+1))%2&&("reverse"===d?(i=1-i,c&&(i-=c/a)):"mirror"===d&&(x=r)),g=(0,eV.q)(0,1,i)*a}let T=v?{done:!1,value:h[0]}:x.next(g);n&&(T.value=n(T.value));let{done:w}=T;v||null===o||(w=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&p!==eq&&(T.value=is(h,this.options,f,this.speed)),m&&m(T.value),P&&this.finish(),T}
1then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=eM(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(tm.k.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=eC,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(tm.k.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,ek.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)}}function iu(t){let e;return()=>(void 0===e&&(e=t()),e)}let id=iu(()=>void 0!==window.ScrollTimeline);var ic=i(76758);let ip={},im=(s=iu(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>ip.linearEasing??s()),iy=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,iv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iy([0,.65,.55,1]),circOut:iy([.55,0,1,.45]),backIn:iy([.31,.01,.66,-.59]),backOut:iy([.33,1.53,.69,.99])};function ig(t){return"function"==typeof t&&"applyToOptions"in t}class ix extends io{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=t,(0,I.V)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return ig(t)&&im()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?im()?eD(e,i):"ease-out":e4(e)?iy(e):Array.isArray(e)?e.map(e=>t(e,i)||iv.easeOut):iv[e]}(o,n);Array.isArray(d)&&(u.easing=d),ic.Q.value&&ek.waapi++;let c={delay:s,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};h&&(c.pseudoElement=h);let p=t.animate(u,c);return ic.Q.value&&p.finished.finally(()=>{ek.waapi--}),p}(e,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=is(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){this.finishedTime=null,this.animation.currentTime=eM(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&&id())?(this.animation.timeline=t,eX.l):e(this)}}let iT={anticipate:e2,backInOut:e1,circInOut:e9};class iw extends ix{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in iT&&(t.ease=iT[t.ease])}(t),ia(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new ih({...r,autoplay:!1}),o=eM(this.finishedTime??this.time);e.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}let iP=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(Z.f.test(t)||"0"===t)&&!t.startsWith("url(")),ib=new Set(["opacity","clipPath","filter","transform"]),iS=iu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class iA extends io{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tm.k.now();const d={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:r,name:o,motionValue:l,element:h,...u},c=h?.KeyframeResolver||_;this.keyframeResolver=new c(a,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),o,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){this.keyframeResolver=void 0;let{name:n,type:r,velocity:a,delay:o,isHandoff:l,onUpdate:h}=i;
1this.resolvedAt=tm.k.now(),!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=iP(n,e),o=iP(r,e);return(0,I.$)(a===o,`You are trying to animate ${e} from "${n}" to "${r}". "${a?r:n}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||ig(i))&&s)}(t,n,r,a)&&((eP.W.instantAnimations||!o)&&h?.(is(t,i,e)),t[0]=t[t.length-1],eS(i),i.repeat=0);let u={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},d=!l&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return iS()&&i&&ib.has(i)&&("transform"!==i||!l)&&!o&&!s&&"mirror"!==n&&0!==r&&"inertia"!==a}(u)?new iw({...u,element:u.motionValue.owner.current}):new ih(u);d.finished.then(()=>this.notifyFinished()).catch(eX.l),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}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(),Y=!0,Q(),H(),Y=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let iV=t=>null!==t,iM={type:"spring",stiffness:500,damping:25,restSpeed:10},ik={type:"keyframes",duration:.8},iE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iC=(t,e,i,s={},n,r)=>a=>{let l=eT(s,t)||{},h=l.delay||s.delay||0,{elapsed:u=0}=s;u-=eM(h);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(l)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?ik:o.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:iM:iE)(t,d)),d.duration&&(d.duration=eM(d.duration)),d.repeatDelay&&(d.repeatDelay=eM(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(eS(d),0===d.delay&&(c=!0)),(eP.W.instantAnimations||eP.W.skipAnimations)&&(c=!0,eS(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,c&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"}){let s=t.filter(iV),n=e&&"loop"!==i&&e%2==1?0:s.length-1;return s[n]}(d.keyframes,l);if(void 0!==t)return void q.Gt.update(()=>{d.onUpdate(t),d.onComplete()})}return l.isSync?new ih(d):new iA(d)};function iD(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:a,...o}=e;s&&(r=s);let l=[],h=n&&t.animationState&&t.animationState.getState()[n];for(let e in o){let s=t.getValue(e,t.latestValues[e]??null),n=o[e];if(void 0===n||h&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(h,e))continue;let a={delay:i,...eT(r||{},e)},u=s.get();if(void 0!==u&&!s.isAnimating&&!Array.isArray(n)&&n===u&&!a.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let i=t.props[ef];if(i){let t=window.MotionHandoffAnimation(i,e,q.Gt);null!==t&&(a.startTime=t,d=!0)}}eb(t,e),s.start(iC(e,s,n,t.shouldReduceMotion&&R.has(e)?{type:!1}:a,t,d));let c=s.animation;c&&l.push(c)}return a&&Promise.all(l).then(()=>{q.Gt.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:s={},...n}=ex(t,e)||{};for(let e in n={...n,...i}){var r;let i=ew(r=n[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,tf.OQ)(i))}}(t,a)})}),l}function iR(t,e,i,s=0,n=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*s;return"function"==typeof i?i(r,a):1===n?r*s:o-r*s}
1function ij(t,e,i={}){let s=ex(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let r=s?()=>Promise.all(iD(t,s,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=n;return function(t,e,i=0,s=0,n=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(ij(l,e,{...a,delay:i+("function"==typeof s?0:s)+iR(t.variantChildren,l,s,n,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,s,r,a,o,i)}:()=>Promise.resolve(),{when:o}=n;if(!o)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[r,a]:[a,r];return t().then(()=>e())}}function iL(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let iF=tR.length,iB=[...tD].reverse(),iO=tD.length;function iI(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iU(){return{animate:iI(!0),whileInView:iI(),whileHover:iI(),whileTap:iI(),whileDrag:iI(),whileFocus:iI(),exit:iI()}}class iW{constructor(t){this.isMounted=!1,this.node=t}update(){}}class iN extends iW{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>ij(t,e,i)));else if("string"==typeof e)s=ij(t,e,i);else{let n="function"==typeof e?ex(t,e,i.custom):e;s=Promise.all(iD(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=iU(),s=!0,n=e=>(i,s)=>{let n=ex(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function r(r){let{props:a}=t,o=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<iF;t++){let s=tR[t],n=e.props[s];(tC(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},l=[],h=new Set,u={},d=1/0;for(let e=0;e<iO;e++){var c,p;let m=iB[e],f=i[m],y=void 0!==a[m]?a[m]:o[m],v=tC(y),g=m===r?f.isActive:null;!1===g&&(d=e);let x=y===o[m]&&y!==a[m]&&v;if(x&&s&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...u},!f.isActive&&null===g||!y&&!f.prevProp||tE(y)||"boolean"==typeof y)continue;let T=(c=f.prevProp,"string"==typeof(p=y)?p!==c:!!Array.isArray(p)&&!iL(p,c)),w=T||m===r&&f.isActive&&!x&&v||e>d&&v,P=!1,b=Array.isArray(y)?y:[y],S=b.reduce(n(m),{});!1===g&&(S={});let{prevResolvedValues:A={}}=f,V={...A,...S},M=e=>{w=!0,h.has(e)&&(P=!0,h.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in V){let e=S[t],i=A[t];if(!u.hasOwnProperty(t))(ew(e)&&ew(i)?iL(e,i):e===i)?void 0!==e&&h.has(t)?M(t):f.protectedKeys[t]=!0:null!=e?M(t):h.add(t)}f.prevProp=y,f.prevResolvedValues=S,f.isActive&&(u={...u,...S}),s&&t.blockInitialAnimation&&(w=!1);let k=x&&T,E=!k||P;w&&E&&l.push(...b.map(e=>{let i={type:m};if("string"==typeof e&&s&&!k&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,n=ex(s,e);if(s.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=iR(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=ex(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),l.push({animation:e})}let m=!!l.length;return s&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,m?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let n=r(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=iU()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();tE(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let i$=0;class iG extends iW{constructor(){super(...arguments),this.id=i$++}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 s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let iq={x:!1,y:!1};function iX(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}let iz=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function iK(t){return{point:{x:t.pageX,y:t.pageY}}}function iY(t,e,i,s){return iX(t,e,t=>iz(t)&&i(t,iK(t)),s)}function iH(t){return t.max-t.min}function iQ(t,e,i,s=.5){t.origin=s,t.originPoint=(0,T.k)(e.min,e.max,t.origin),t.scale=iH(i)/iH(e),t.translate=(0,T.k)(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 i_(t,e,i,s){iQ(t.x,e.x,i.x,s?s.originX:void 0),iQ(t.y,e.y,i.y,s?s.originY:void 0)}function iZ(t,e,i){t.min=i.min+e.min,t.max=t.min+iH(e)}function iJ(t,e,i){t.min=e.min-i.min,t.max=t.min+iH(e)}function i0(t,e,i){iJ(t.x,e.x,i.x),iJ(t.y,e.y,i.y)}function i1(t){return[t("x"),t("y")]}let i2=({current:t})=>t?t.ownerDocument.defaultView:null,i5=(t,e)=>Math.abs(t-e);class i3{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=i6(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(i5(t.x,e.x)**2+i5(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i,{timestamp:a}=q.uv;this.history.push({...r,timestamp:a});let{onStart:o,onMove:l}=this.handlers;s||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=i9(e,this.transformPagePoint),q.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=i6("pointercancel"===t.type?this.lastMoveEventInfo:i9(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!iz(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const a=i9(iK(t),this.transformPagePoint),{point:o}=a,{timestamp:l}=q.uv;this.history=[{...o,timestamp:l}];const{onSessionStart:h}=e;h&&h(t,i6(a,this.history)),this.removeListeners=(0,eA.F)(iY(this.contextWindow,"pointermove",this.handlePointerMove),iY(this.contextWindow,"pointerup",this.handlePointerUp),iY(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,q.WG)(this.updatePoint)}}function i9(t,e){return e?{point:e(t.point)}:t}function i4(t,e){return{x:t.x-e.x,y:t.y-e.y}}function i6({point:t},e){return{point:t,delta:i4(t,i8(e)),offset:i4(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=i8(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>eM(.1)));)e--;if(!i)return{x:0,y:0};let n=(s.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let r={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function i8(t){return t[t.length-1]}function i7(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 st(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function se(t,e,i){return{min:si(t,e),max:si(t,i)}}function si(t,e){return"number"==typeof t?t:t[e]||0}let ss=new WeakMap;class sn{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=tS(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(iK(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(iq[t])return null;else return iq[t]=!0,()=>{iq[t]=!1};return iq.x||iq.y?null:(iq.x=iq.y=!0,()=>{iq.x=iq.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),i1(t=>{let e=this.getAxisMotionValue(t).get()||0;if(L.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=iH(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&q.Gt.postRender(()=>n(t,e)),eb(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&r(t,e)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>i1(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new i3(t,{onSessionStart:n,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:i2(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&q.Gt.postRender(()=>a(i,s))}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:s}=this.getProps();if(!i||!sr(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,T.k)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,T.k)(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}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,s=this.constraints;t&&em(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:i7(t.x,i,n),y:i7(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:se(t,"left","right"),y:se(t,"top","bottom")}}(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&i1(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!em(e))return!1;let s=e.current;(0,I.V)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
1let r=function(t,e,i){let s=D(t,i),{scroll:n}=e;return n&&(k(s.x,n.offset.x),k(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),a=(t=n.layout.layoutBox,{x:st(t.x,r.x),y:st(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=x(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(i1(a=>{if(!sr(a,e,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return eb(this.visualElement,t),i.start(iC(t,i,0,e,this.visualElement,!1))}stopAnimation(){i1(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){i1(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){i1(e=>{let{drag:i}=this.getProps();if(!sr(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[e];n.set(t[e]-(0,T.k)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!em(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};i1(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let r,a,o,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],r=.5,a=iH(i),(o=iH(n))>a?r=(0,it.q)(n.min,n.max-a,i.min):a>o&&(r=(0,it.q)(i.min,i.max-o,n.min)),(0,eV.q)(0,1,r))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),i1(e=>{if(!sr(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set((0,T.k)(n,r,s[e]))})}addListeners(){if(!this.visualElement.current)return;ss.set(this.visualElement,this);let t=iY(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();em(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),q.Gt.read(e);let n=iX(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(i1(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),s(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:a}}}function sr(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class sa extends iW{constructor(t){super(t),this.removeGroupControls=eX.l,this.removeListeners=eX.l,this.controls=new sn(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eX.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let so=t=>(e,i)=>{t&&q.Gt.postRender(()=>t(e,i))};class sl extends iW{constructor(){super(...arguments),this.removePointerDownListener=eX.l}onPointerDown(t){this.session=new i3(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:i2(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:so(t),onStart:so(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&q.Gt.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=iY(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var sh=i(64834);let su={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function sd(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let sc={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!L.px.test(t))return t;else t=parseFloat(t);let i=sd(t,e.target.x),s=sd(t,e.target.y);return`${i}% ${s}%`}},sp=!1;class sm extends r.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;
1for(let t in sy)tX[t]=sy[t],(0,g.j)(t)&&(tX[t].isCSSVariable=!0);n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),sp&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),su.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,sp=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?r.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?r.promote():r.relegate()||q.Gt.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tv.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;sp=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sf(t){let[e,i]=(0,sh.xQ)(),s=(0,r.useContext)(t4.L);return(0,t9.jsx)(sm,{...t,layoutGroup:s,switchLayoutGroup:(0,r.useContext)(ey),isPresent:e,safeToRemove:i})}let sy={borderRadius:{...sc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sc,borderTopRightRadius:sc,borderBottomLeftRadius:sc,borderBottomRightRadius:sc,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=Z.f.parse(t);if(s.length>5)return t;let n=Z.f.createTransformer(t),r=+("number"!=typeof s[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;s[0+r]/=a,s[1+r]/=o;let l=(0,T.k)(a,o,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}};var sv=i(5289);function sg(t){return(0,sv.G)(t)&&"ownerSVGElement"in t}var sx=i(99474);let sT=(t,e)=>t.depth-e.depth;class sw{constructor(){this.children=[],this.isDirty=!1}add(t){(0,sx.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,sx.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sT),this.isDirty=!1,this.children.forEach(t)}}let sP=["TopLeft","TopRight","BottomLeft","BottomRight"],sb=sP.length,sS=t=>"string"==typeof t?parseFloat(t):t,sA=t=>"number"==typeof t||L.px.test(t);function sV(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sM=sE(0,.5,e3),sk=sE(.5,.95,eX.l);function sE(t,e,i){return s=>s<t?0:s>e?1:i((0,it.q)(t,e,s))}function sC(t,e){t.min=e.min,t.max=e.max}function sD(t,e){sC(t.x,e.x),sC(t.y,e.y)}function sR(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sj(t,e,i,s,n){return t-=e,t=s+1/i*(t-s),void 0!==n&&(t=s+1/n*(t-s)),t}function sL(t,e,[i,s,n],r,a){!function(t,e=0,i=1,s=.5,n,r=t,a=t){if(L.KN.test(e)&&(e=parseFloat(e),e=(0,T.k)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,T.k)(r.min,r.max,s);t===r&&(o-=e),t.min=sj(t.min,e,i,o,n),t.max=sj(t.max,e,i,o,n)}(t,e[i],e[s],e[n],e.scale,r,a)}let sF=["x","scaleX","originX"],sB=["y","scaleY","originY"];function sO(t,e,i,s){sL(t.x,e,sF,i?i.x:void 0,s?s.x:void 0),sL(t.y,e,sB,i?i.y:void 0,s?s.y:void 0)}function sI(t){return 0===t.translate&&1===t.scale}function sU(t){return sI(t.x)&&sI(t.y)}function sW(t,e){return t.min===e.min&&t.max===e.max}function sN(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function s$(t,e){return sN(t.x,e.x)&&sN(t.y,e.y)}function sG(t){return iH(t.x)/iH(t.y)}function sq(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sX{constructor(){this.members=[]}add(t){(0,sx.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,sx.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:s}=t.options;!1===s&&i.hide()}}
1exitAnimationComplete(){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 sz={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},sK=["","X","Y","Z"],sY=0;function sH(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function sQ({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=sY++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ic.Q.value&&(sz.nodes=sz.calculatedTargetDeltas=sz.calculatedProjections=0),this.nodes.forEach(sJ),this.nodes.forEach(s4),this.nodes.forEach(s6),this.nodes.forEach(s0),ic.Q.addProjectionMetrics&&ic.Q.addProjectionMetrics(sz)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new sw)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tg.v),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=sg(e)&&!(sg(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;q.Gt.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,r;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=tm.k.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&((0,q.WG)(r),n(i-250))},q.Gt.setup(r,!0),i=()=>(0,q.WG)(r),su.hasAnimatedSinceResize&&(su.hasAnimatedSinceResize=!1,this.nodes.forEach(s9))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||ns,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!s$(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...eT(r,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||s9(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,q.WG)(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.forEac
1h(s8),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=i.props[ef];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",q.Gt,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(s2);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(s5);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(s3),this.nodes.forEach(s_),this.nodes.forEach(sZ)):this.nodes.forEach(s5),this.clearAllSnapshots();let t=tm.k.now();q.uv.delta=(0,eV.q)(0,1e3/60,t-q.uv.timestamp),q.uv.timestamp=t,q.uv.isProcessing=!0,q.PP.update.process(q.uv),q.PP.preRender.process(q.uv),q.PP.render.process(q.uv),q.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tv.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s1),this.sharedNodes.forEach(s7)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,q.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){q.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||iH(this.snapshot.measuredBox.x)||iH(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=tS(),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=s(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(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!sU(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||b(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),na((e=s).x),na(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return tS();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(nl))){let{scroll:t}=this.root;t&&(k(e.x,t.offset.x),k(e.y,t.offset.y))}return e}removeElementScroll(t){let e=tS();if(sD(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&sD(e,t),k(e.x,n.offset.x),k(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=tS();sD(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&C(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),b(s.latestValues)&&C(i,s.latestValues)}return b(this.latestValues)&&C(i,this.latestValues),i}removeTransform(t){let e=tS();sD(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!b(i.latestValues))continue;P(i.latestValues)&&i.updateSnapshot();let s=tS();sD(s,i.measurePageBox()),sO(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return b(this.latestValues)&&sO(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!==q.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=q.uv.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=tS(),this.targetWithTransforms=tS()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,iZ(a.x,o.x,l.x),iZ(a.y,o.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sD(this.target,this.layout.layoutBox),M(this.target,this.targetDelta)):sD(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0),ic.Q.value&&sz.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||P(this.parent.latestValues)||S(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tS(),this.relativeTargetOrigin=tS(),i0(this.relativeTargetOrigin,e,i),sD(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===q.uv.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;sD(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,s=!1){let n,r,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){r=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&C(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,M(t,r)),s&&b(n.latestValues)&&C(t,n.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=tS());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sR(this.prevProjectionDelta.x,this.projectionDelta.x),sR(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),i_(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&sq(this.projectionDelta.x,this.prevProjectionDelta.x)&&sq(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),ic.Q.value&&sz.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=tP(),this.projectionDelta=tP(),this.projectionDeltaWithTransform=tP()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},a=tP();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=tS(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(ni));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(nt(a.x,t.x,s),nt(a.y,t.y,s),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,p,m,f,y;i0(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,y=s,ne(p.x,m.x,f.x,y),ne(p.y,m.y,f.y,y),i&&(h=this.relativeTarget,c=i,sW(h.x,c.x)&&sW(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=tS()),sD(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,s,n,r){n?(t.opacity=(0,T.k)(0,i.opacity??1,sM(s)),t.opacityExit=(0,T.k)(e.opacity??1,0,sk(s))):r&&(t.opacity=(0,T.k)(e.opacity??1,i.opacity??1,s));for(let n=0;n<sb;n++){let r=`border${sP[n]}Radius`,a=sV(e,r),o=sV(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||sA(a)===sA(o)?(t[r]=Math.max((0,T.k)(sS(a),sS(o),s),0),(L.KN.test(o)||L.KN.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=(0,T.k)(e.rotate||0,i.rotate||0,s))}(r,n,this.latestValues,s,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,q.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=q.Gt.update(()=>{var e,i,s;let n;su.hasAnimatedSinceResize=!0,ek.layout++,this.motionValue||(this.motionValue=(0,tf.OQ)(0)),this.currentAnimation=(e=this.motionValue,i=[0,1e3],s={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ek.layout--},onComplete:()=>{ek.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=(0,tp.S)(e)?e:(0,tf.OQ)(e)).start(iC("",n,i,s)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&no(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||tS();let e=iH(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=iH(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}sD(e,i),C(e,n),i_(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sX),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.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 s={};i.z&&sH("z",t,s,this.animationValues);for(let e=0;e<sK.length;e++)sH(`rotate${sK[e]}`,t,s,this.animationValues),sH(`skew${sK[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=eh(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eh(e?.pointerEvents)||""),this.hasProjected&&!b(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let s="",n=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((n||r||a)&&(s=`translate3d(${n}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:r,skewX:a,skewY:o}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),r&&(s+=`rotateY(${r}deg) `),a&&(s+=`skewX(${a}deg) `),o&&(s+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,tX){if(void 0===n[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=tX[e],l="none"===r?n[e]:i(n[e],s);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?eh(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(s2),this.root.sharedNodes.clear()}}}function s_(t){t.updateLayout()}function sZ(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;"size"===n?i1(t=>{let s=r?e.measuredBox[t]:e.layoutBox[t],n=iH(s);s.min=i[t].min,s.max=s.min+n}):no(n,e.layoutBox,i)&&i1(s=>{let n=r?e.measuredBox[s]:e.layoutBox[s],a=iH(i[s]);n.max=n.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+a)});let a=tP();i_(a,i,e.layoutBox);let o=tP();r?i_(o,t.applyTransform(s,!0),e.measuredBox):i_(o,i,e.layoutBox);let l=!sU(a),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let a=tS();i0(a,e.layoutBox,n.layoutBox);let o=tS();i0(o,i,r.layoutBox),s$(a,o)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function sJ(t){ic.Q.value&&sz.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function s0(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function s1(t){t.clearSnapshot()}function s2(t){t.clearMeasurements()}function s5(t){t.isLayoutDirty=!1}function s3(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function s9(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function s4(t){t.resolveTargetDelta()}function s6(t){t.calcProjection()}function s8(t){t.resetSkewAndRotation()}function s7(t){t.removeLeadSnapshot()}function nt(t,e,i){t.translate=(0,T.k)(e.translate,0,i),t.scale=(0,T.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ne(t,e,i,s){t.min=(0,T.k)(e.min,i.min,s),t.max=(0,T.k)(e.max,i.max,s)}function ni(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ns={duration:.45,ease:[.4,0,.1,1]},nn=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),nr=nn("applewebkit/")&&!nn("chrome/")?Math.round:eX.l;function na(t){t.min=nr(t.min),t.max=nr(t.max)}function no(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(sG(e)-sG(i)))}function nl(t){return t!==t.root&&t.scroll?.wasRoot}let nh=sQ({attachResizeListener:(t,e)=>iX(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nu={current:void 0},nd=sQ({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!nu.current){let t=new nh({});t.mount(window),t.setOptions({layoutScroll:!0}),nu.current=t}return nu.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function nc(t,e){let i=function(t){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function np(t){return!("touch"===t.pointerType||iq.x||iq.y)}function nm(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&q.Gt.postRender(()=>n(e,iK(e)))}class nf extends iW{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,r]=nc(t,i),a=t=>{if(!np(t))return;let{target:i}=t,s=e(i,t);if("function"!=typeof s||!i)return;let r=t=>{np(t)&&(s(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,n)};return s.forEach(t=>{t.addEventListener("pointerenter",a,n)}),r}(t,(t,e)=>(nm(this.node,e,"Start"),t=>nm(this.node,t,"End"))))}unmount(){}}class ny extends iW{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,eA.F)(iX(this.node.current,"focus",()=>this.onFocus()),iX(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var nv=i(9221);let ng=(t,e)=>!!e&&(t===e||ng(t,e.parentElement)),nx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),nT=new WeakSet;function nw(t){return e=>{"Enter"===e.key&&t(e)}}function nP(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function nb(t){return iz(t)&&!(iq.x||iq.y)}function nS(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&q.Gt.postRender(()=>n(e,iK(e)))}class nA extends iW{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,r]=nc(t,i),a=t=>{let s=t.currentTarget;if(!nb(t))return;nT.add(s);let r=e(s,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),nT.has(s)&&nT.delete(s),nb(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,s===window||s===document||i.useGlobalTarget||ng(s,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",l,n)};
1return s.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",a,n),(0,nv.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=nw(()=>{if(nT.has(i))return;nP(i,"down");let t=nw(()=>{nP(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>nP(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),nx.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(nS(this.node,e,"Start"),(t,{success:e})=>nS(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let nV=new WeakMap,nM=new WeakMap,nk=t=>{let e=nV.get(t.target);e&&e(t)},nE=t=>{t.forEach(nk)},nC={some:0,all:1};class nD extends iW{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:a}=i,o={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:nC[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;nM.has(i)||nM.set(i,{});let s=nM.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(nE,{root:t,...e})),s[n]}(o),nV.set(t,l),e.observe(t),()=>{nV.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let nR=function(t,e){if("u"<typeof Proxy)return eg;let i=new Map,s=(i,s)=>eg(i,s,t,e);return new Proxy((t,e)=>s(t,e),{get:(n,r)=>"create"===r?s:(i.has(r)||i.set(r,eg(r,void 0,t,e)),i.get(r))})}({animation:{Feature:iN},exit:{Feature:iG},inView:{Feature:nD},tap:{Feature:nA},focus:{Feature:ny},hover:{Feature:nf},pan:{Feature:sl},drag:{Feature:sa,ProjectionNode:nd,MeasureLayout:sf},layout:{ProjectionNode:nd,MeasureLayout:sf}},(t,e)=>t3(t)?new t2(e):new tY(e,{allowProjection:t!==r.Fragment}))},83161:(t,e,i)=>{i.d(e,{A:()=>s});let s=(0,i(19556).A)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},84496:(t,e,i)=>{i.d(e,{S:()=>s});let s=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},92469:(t,e,i)=>{i.d(e,{L:()=>s});let s=(0,i(74361).createContext)({})},92864:(t,e,i)=>{i.d(e,{q:()=>s});let s=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s}},93647:(t,e,i)=>{let s;i.d(e,{k:()=>o});var n=i(27513),r=i(56813);function a(){s=void 0}let o={now:()=>(void 0===s&&o.set(r.uv.isProcessing||n.W.useManualTiming?r.uv.timestamp:performance.now()),s),set:t=>{s=t,queueMicrotask(a)}}},94647:(t,e,i)=>{i.d(e,{a:()=>s});let s=t=>Math.round(1e5*t)/1e5},96140:(t,e,i)=>{i.d(e,{j:()=>n,p:()=>a});let s=t=>e=>"string"==typeof e&&e.startsWith(t),n=s("--"),r=s("var(--"),a=t=>!!r(t)&&o.test(t.split("/*")[0].trim()),o=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},98022:(t,e,i)=>{i.d(e,{V:()=>o});var s=i(98501),n=i(31132),r=i(94647),a=i(68238);let o={test:(0,a.$)("hsl","hue"),parse:(0,a.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:a=1})=>"hsla("+Math.round(t)+", "+n.KN.transform((0,r.a)(e))+", "+n.KN.transform((0,r.a)(i))+", "+(0,r.a)(s.X4.transform(a))+")"}},98501:(t,e,i)=>{i.d(e,{X4:()=>r,ai:()=>n,hs:()=>a});var s=i(59236);let n={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},r={...n,transform:t=>(0,s.q)(0,1,t)},a={...n,default:1}},99474:(t,e,i)=>{function s(t,e){-1===t.indexOf(e)&&t.push(e)}function n(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function r([...t],e,i){let s=e<0?t.length+e:e;if(s>=0&&s<t.length){let s=i<0?t.length+i:i,[n]=t.splice(e,1);t.splice(s,0,n)}return t}i.d(e,{Ai:()=>n,Kq:()=>s,Pe:()=>r})}}]);

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.