1"use strict";(self.webpackChunkinsuranceWeb=self.webpackChunkinsuranceWeb||[]).push([[2686],{65636:function(t,e,n){n.d(e,{Z:function(){return u}});var i=n(87462),r=n(63366),o=n(68027),s=n(32641);let a=["sx"],l=t=>{var e,n;let i={systemProps:{},otherProps:{}},r=null!=(e=null==t||null==(n=t.theme)?void 0:n.unstable_sxConfig)?e:s.Z;return Object.keys(t).forEach(e=>{r[e]?i.systemProps[e]=t[e]:i.otherProps[e]=t[e]}),i};function u(t){let e;let{sx:n}=t,{systemProps:s,otherProps:u}=l((0,r.Z)(t,a));return e=Array.isArray(n)?[s,...n]:"function"==typeof n?function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];let a=n(...e);return(0,o.P)(a)?(0,i.Z)({},s,a):s}:(0,i.Z)({},s,n),(0,i.Z)({},u,{sx:e})}},24948:function(t,e,n){n.r(e),n.d(e,{default:function(){return oW}});var i,r,o,s,a,l=n(6147),u=n(73935),h=n(78790);let c="undefined"!=typeof document?h.useLayoutEffect:()=>{};function d(...t){return(...e)=>{for(let n of t)"function"==typeof n&&n(...e)}}"undefined"!=typeof window&&window.document&&window.document.createElement;function p(t){var e;return"undefined"!=typeof window&&null!=window.navigator&&t.test((null===(e=window.navigator.userAgentData)||void 0===e?void 0:e.platform)||window.navigator.platform)}let f=new Map,m=new Set;function v(){if("undefined"==typeof window)return;function t(t){return"propertyName"in t}let e=n=>{if(!t(n)||!n.target)return;let i=f.get(n.target);if(i&&(i.delete(n.propertyName),0===i.size&&(n.target.removeEventListener("transitioncancel",e),f.delete(n.target)),0===f.size)){for(let t of m)t();m.clear()}};document.body.addEventListener("transitionrun",n=>{if(!t(n)||!n.target)return;let i=f.get(n.target);i||(i=new Set,f.set(n.target,i),n.target.addEventListener("transitioncancel",e,{once:!0})),i.add(n.propertyName)}),document.body.addEventListener("transitionend",e)}function g(t,e){let n=t;for(y(n,e)&&(n=n.parentElement);n&&!y(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function y(t,e){let n=window.getComputedStyle(t),i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return i&&e&&(i=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),i}"undefined"!=typeof document&&("loading"!==document.readyState?v():document.addEventListener("DOMContentLoaded",v)),"undefined"!=typeof document&&window.visualViewport,"undefined"!=typeof window&&window.visualViewport,new WeakMap,"undefined"!=typeof window&&window.visualViewport;let x="undefined"!=typeof window&&window.visualViewport,b=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function w(t,e,n){let i=t.style[e];return t.style[e]=n,()=>{t.style[e]=i}}function E(t,e,n,i){return t.addEventListener(e,n,i),()=>{t.removeEventListener(e,n,i)}}function P(t){let e=document.scrollingElement||document.documentElement;for(;t&&t!==e;){let e=g(t);if(e!==document.documentElement&&e!==document.body&&e!==t){let n=e.getBoundingClientRect().top,i=t.getBoundingClientRect().top;i>n+t.clientHeight&&(e.scrollTop+=i-n)}t=e.parentElement}}function A(t){return t instanceof HTMLInputElement&&!b.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}new WeakMap;var T=n(80242);let S={delta:0,timestamp:0},C=1/60*1e3,V="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),M="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(V()),C),R=!0,k=!1,L=!1,D=["read","update","preRender","render","postRender"],B=D.reduce((t,e)=>(t[e]=function(t){let e=[],n=[],i=0,r=!1,o=!1,s=new WeakSet,a={schedule:(t,o=!1,a=!1)=>{let l=a&&r,u=l?e:n;return o&&s.add(t),-1===u.indexOf(t)&&(u.push(t),l&&r&&(i=e.length)),t},cancel:t=>{let e=n.indexOf(t);-1!==e&&n.splice(e,1),s.delete(t)},process:l=>{if(r){o=!0;return}if(r=!0,[e,n]=[n,e],n.length=0,i=e.length)for(let n=0;n<i;n++){let i=e[n];i(l),s.has(i)&&(a.schedule(i),t())}r=!1,o&&(o=!1,a.process(l))}};return a}(()=>k=!0),t),{}),O=D.reduce((t,e)=>{let n=B[e];return t[e]=(t,e=!1,i=!1)=>(k||N(),n.schedule(t,e,i)),t},{}),F=D.reduce((t,e)=>(t[e]=B[e].cancel,t),{}),j=D.reduce((t,e)=>(t[e]=()=>B[e].process(S),t),{}),I=t=>B[t].process(S),U=t=>{k=!1,S.delta=R?C:Math.max(Math.min(t-S.timestamp,40),1),S.timestamp=t,L=!0,D.forEach(I),L=!1,k&&(R=!1,M(U))},N=()=>{k=!0,R=!0,L||M(U)};function $(t,e){-1===t.indexOf(e)&&t.push(e)}function H(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}class z{constructor(){this.subscriptions=[]}add(t){return $(this.subscriptions,t),()=>H(this.subscriptions,t)}notify(t,e,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](t,e,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(t,e,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function W(t,e){return e?1e3/e*t:0}let Y=t=>!isNaN(parseFloat(t));class X{constructor(t,e={}){this.version="8.4.2",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:n,timestamp:i}=S;this.lastUpdated!==i&&(this.timeDelta=n,this.lastUpdated=i,O.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>O.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Y(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new z);let n=this.events[t].add(e);return"change"===t?()=>{n(),O.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?W(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.stopAnimation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function q(t,e){return new X(t,e)}let Z=(0,T.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function G(t){let e=(0,T.useRef)(null);return null===e.current&&(e.current=t()),e.current}function K(t){let e=G(()=>q(t)),{isStatic:n}=(0,T.useContext)(Z);if(n){let[,n]=(0,T.useState)(t);(0,T.useEffect)(()=>e.on("change",n),[])}return e}let _="undefined"!=typeof document,J={current:null},Q={current:!1};function tt(){if(Q.current=!0,_){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>J.current=t.matches;t.addListener(e),e()}else J.current=!1}}var te=function(){},tn=function(){};let ti=t=>1e3*t,tr={current:!1},to=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ts=t=>e=>1-t(1-e),ta=t=>t*t,tl=ts(ta),tu=to(ta),th=t=>
1Math.round(1e5*t)/1e5,tc=/(-)?([\d]*\.?[\d])+/g,td=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,tp=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function tf(t){return"string"==typeof t}let tm=(t,e,n)=>Math.min(Math.max(n,t),e),tv={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tg={...tv,transform:t=>tm(0,1,t)},ty={...tv,default:1},tx=(t,e)=>n=>!!(tf(n)&&tp.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),tb=(t,e,n)=>i=>{if(!tf(i))return i;let[r,o,s,a]=i.match(tc);return{[t]:parseFloat(r),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},tw=t=>tm(0,255,t),tE={...tv,transform:t=>Math.round(tw(t))},tP={test:tx("rgb","red"),parse:tb("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+tE.transform(t)+", "+tE.transform(e)+", "+tE.transform(n)+", "+th(tg.transform(i))+")"},tA={test:tx("#"),parse:function(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:tP.transform},tT=t=>({test:e=>tf(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tS=tT("deg"),tC=tT("%"),tV=tT("px"),tM=tT("vh"),tR=tT("vw"),tk={...tC,parse:t=>tC.parse(t)/100,transform:t=>tC.transform(100*t)},tL={test:tx("hsl","hue"),parse:tb("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+tC.transform(th(e))+", "+tC.transform(th(n))+", "+th(tg.transform(i))+")"},tD={test:t=>tP.test(t)||tA.test(t)||tL.test(t),parse:t=>tP.test(t)?tP.parse(t):tL.test(t)?tL.parse(t):tA.parse(t),transform:t=>tf(t)?t:t.hasOwnProperty("red")?tP.transform(t):tL.transform(t)},tB=(t,e,n)=>-n*t+n*e+t;function tO(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}let tF=(t,e,n)=>{let i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},tj=[tA,tP,tL],tI=t=>tj.find(e=>e.test(t));function tU(t){let e=tI(t);tn(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===tL&&(n=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let r=0,o=0,s=0;if(e/=100){let i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;r=tO(a,i,t+1/3),o=tO(a,i,t),s=tO(a,i,t-1/3)}else r=o=s=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(n)),n}let tN=(t,e)=>{let n=tU(t),i=tU(e),r={...n};return t=>(r.red=tF(n.red,i.red,t),r.green=tF(n.green,i.green,t),r.blue=tF(n.blue,i.blue,t),r.alpha=tB(n.alpha,i.alpha,t),tP.transform(r))},t$=(t,e)=>n=>e(t(n)),tH=(...t)=>t.reduce(t$),tz="${c}",tW="${n}";function tY(t){"number"==typeof t&&(t=`${t}`);let e=[],n=0,i=0,r=t.match(td);r&&(n=r.length,t=t.replace(td,tz),e.push(...r.map(tD.parse)));let o=t.match(tc);return o&&(i=o.length,t=t.replace(tc,tW),e.push(...o.map(tv.parse))),{values:e,numColors:n,numNumbers:i,tokenised:t}}function tX(t){return tY(t).values}function tq(t){let{values:e,numColors:n,tokenised:i}=tY(t),r=e.length;return t=>{let e=i;for(let i=0;i<r;i++)e=e.replace(i<n?tz:tW,i<n?tD.transform(t[i]):th(t[i]));return e}}let tZ=t=>"number"==typeof t?0:t,tG={test:function(t){var e,n;return isNaN(t)&&tf(t)&&((null===(e=t.match(tc))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(td))||void 0===n?void 0:n.length)||0)>0},parse:tX,createTransformer:tq,getAnimatableNone:function(t){let e=tX(t);return tq(t)(e.map(tZ))}};function tK(t,e){return"number"==typeof t?n=>tB(t,e,n):tD.test(t)?tN(t,e):tQ(t,e)}let t_=(t,e)=>{let n=[...t],i=n.length,r=t.map((t,n)=>tK(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=r[e](t);return n}},tJ=(t,e)=>{let n={...t,...e},i={};for(let r in n)void 0!==t[r]&&void 0!==e[r]&&(i[r]=tK(t[r],e[r]));return t=>{for(let e in i)n[e]=i[e](t);return n}},tQ=(t,e)=>{let n=tG.createTransformer(e),i=tY(t),r=tY(e);return i.numColors===r.numColors&&i.numNumbers>=r.numNumbers?tH(t_(i.values,r.values),n):(te(!0,`Complex values '${t}' and '${e}
1' 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.`),n=>`${n>0?e:t}`)},t0=(t,e,n)=>{let i=e-t;return 0===i?1:(n-t)/i},t1=(t,e)=>n=>tB(t,e,n);function t5(t,e,{clamp:n=!0,ease:i,mixer:r}={}){let o=t.length;tn(o===e.length,"Both input and output ranges must be the same length"),tn(!i||!Array.isArray(i)||i.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let s=function(t,e,n){let i=[],r=n||function(t){if("number"==typeof t);else if("string"==typeof t)return tD.test(t)?tN:tQ;else if(Array.isArray(t))return t_;else if("object"==typeof t)return tJ;return t1}(t[0]),o=t.length-1;for(let n=0;n<o;n++){let o=r(t[n],t[n+1]);e&&(o=tH(Array.isArray(e)?e[n]:e,o)),i.push(o)}return i}(e,i,r),a=s.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);let i=t0(t[n],t[n+1],e);return s[n](i)};return n?e=>l(tm(t[0],t[o-1],e)):l}let t2=t=>t,t3=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function t9(t,e,n,i){if(t===e&&n===i)return t2;let r=e=>(function(t,e,n,i,r){let o,s;let a=0;do(o=t3(s=e+(n-e)/2,i,r)-t)>0?n=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s})(e,0,1,t,n);return t=>0===t||1===t?t:t3(r(t),e,i)}let t6=t=>1-Math.sin(Math.acos(t)),t4=ts(t6),t8=to(t4),t7=t9(.33,1.53,.69,.99),et=ts(t7),ee=to(et),en={linear:t2,easeIn:ta,easeInOut:tu,easeOut:tl,circIn:t6,circInOut:t8,circOut:t4,backIn:et,backInOut:ee,backOut:t7,anticipate:t=>(t*=2)<1?.5*et(t):.5*(2-Math.pow(2,-10*(t-1)))},ei=t=>{if(Array.isArray(t)){tn(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,i,r]=t;return t9(e,n,i,r)}return"string"==typeof t?(tn(void 0!==en[t],`Invalid easing type '${t}'`),en[t]):t},er=t=>Array.isArray(t)&&"number"!=typeof t[0];function eo({keyframes:t,ease:e=tu,times:n,duration:i=300}){t=[...t];let r=er(e)?e.map(ei):ei(e),o={done:!1,value:t[0]},s=(n&&n.length===t.length?n:function(t){let e=t.length;return t.map((t,n)=>0!==n?n/(e-1):0)}(t)).map(t=>t*i);function a(){var e;return t5(s,t,{ease:Array.isArray(r)?r:(e=t).map(()=>r||tu).splice(0,e.length-1)})}let l=a();return{next:t=>(o.value=l(t),o.done=t>=i,o),flipTarget:()=>{t.reverse(),l=a()}}}function es(t,e){return t*Math.sqrt(1-e*e)}let ea=["duration","bounce"],el=["stiffness","damping","mass"];function eu(t,e){return e.some(e=>void 0!==t[e])}function eh({keyframes:t,restSpeed:e=2,restDelta:n=.01,...i}){let r=t[0],o=t[t.length-1],s={done:!1,value:r},{stiffness:a,damping:l,mass:u,velocity:h,duration:c,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!eu(t,el)&&eu(t,ea)){let n=function({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let r,o;te(t<=1e4,"Spring duration must be 10 seconds or less");let s=1-e;s=tm(.05,1,s),t=tm(.01,10,t/1e3),s<1?(r=e=>{let i=e*s,r=i*t;return .001-(i-n)/es(e,s)*Math.exp(-r)},o=e=>{let i=e*s*t,o=Math.pow(s,2)*Math.pow(e,2)*t,a=es(Math.pow(e,2),s);return(i*n+n-o)*Math.exp(-i)*(-r(e)+.001>0?-1:1)/a}):(r=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),o=e=>t*t*(n-e)*Math.exp(-e*t));let a=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(r,o,5/t);if(t*=1e3,isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*i;return{stiffness:e,damping:2*s*Math.sqrt(i*e),duration:t}}}(t);(e={...e,...n,velocity:0,mass:1}).isResolvedFromDuration=!0}return e}(i),p=ec,f=h?-(h/1e3):0,m=l/(2*Math.sqrt(a*u));function v(){let t=o-r,e=Math.sqrt(a/u)/1e3;if(void 0===n&&(n=Math.min(Math.abs(o-r)/100,.4)),m<1){let n=es(e,m);p=i=>o-Math.exp(-m*e*i)*((f+m*e*t)/n*Math.sin(n*i)+t*Math.cos(n*i))}else if(1===m)p=n=>o-Math.exp(-e*n)*(t+(f+e*t)*n);else{let n=e*Math.sqrt(m*m-1);p=i=>{let r=Math.exp(-m*e*i),s=Math.min(n*i,300);return o-r*((f+m*e*t)*Math.sinh(s)+n*t*Math.cosh(s))/n}}}return v(),{next:t=>{let i=p(t);if(d)s.done=t>=c;else{let r=f;if(0!==t){if(m<1){let e=Math.max(0,t-5);r=W(i-p(e),t-e)}else r=0}let a=Math.abs(r)<=e,l=Math.abs(o-i)<=n;s.done=a&&l}return s.value=s.done?o:i,s},flipTarget:()=>{f=-f,[r,o]=[o,r],v()}}}eh.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;let ec=t=>0,ed={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:i=350,restDelta:r=.5,modifyTarget:o}){let s=t[0],a={done:!1,value:s},l=n*e,u=s+l,h=void 0===o?u:o(u);return h!==u&&(l=h-s),{next:t=>{let e=-l*Math.exp(-t/i);return a.done=!(e>r||e<-r),a.value=a.done?h:h+e,a},flipTarget:()=>{}}},keyframes:eo,tween:eo,spring:eh};function ep(t,e,n=0){return t-e-n}let ef=t=>{let e=({delta:e})=>t(e);return{start:()=>O.update(e,!0),stop:()=>F.update(e)}};function em({duration:t,driver:e=ef,elapsed:n=0,repeat:i=0,repeatType:r="loop",repeatDelay:o=0,keyframes:s,autoplay:a=!0,onPlay:l,onStop:u,onComplete:h,onRepeat:c,onUpdate:d,type:p="keyframes",...f}){var m;let v,g;let y=n,x=0,b=t,w=!1,E=!0,P=ed[s.length>2?"keyframes":p]||eo,A=s[0],T=s[s.length-1],S={done:!1,value:A};(null===(m=P.needsInterpolation)||void 0===m?void 0:m.call(P,A,T))&&(g=t5([0,100],[A,T],{clamp:!1}),s=[0,100]);let C=P({...f,duration:t,keyframes:s}
1);function V(t){if(E||(t=-t),n+=t,w||(S=C.next(Math.max(0,n)),g&&(S.value=g(S.value)),w=E?S.done:n<=0),d&&d(S.value),w){if(0===x&&(b=void 0!==b?b:n),x<i){var e,s;e=n,s=b,(E?e>=s+o:e<=-o)&&(x++,"reverse"===r?n=function(t,e=0,n=0,i=!0){return i?ep(e+-t,e,n):e-(t-e)+n}(n,b,o,E=x%2==0):(n=ep(n,b,o),"mirror"===r&&C.flipTarget()),w=!1,c&&c())}else v&&v.stop(),h&&h()}}return a&&(l&&l(),(v=e(V)).start()),{stop:()=>{u&&u(),v&&v.stop()},sample:e=>{n=y;let i=t&&"number"==typeof t?Math.max(.5*t,50):50,r=0;for(V(0);r<=e;)V(Math.min(e-r,i)),r+=i;return S}}}let ev=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,eg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ev([0,.65,.55,1]),circOut:ev([.55,0,1,.45]),backIn:ev([.31,.01,.66,-.59]),backOut:ev([.33,1.53,.69,.99])},ey={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},ex={},eb={};for(let t in ey)eb[t]=()=>(void 0===ex[t]&&(ex[t]=ey[t]()),ex[t]);let ew=new Set(["opacity"]);function eE(t,e){let n=performance.now(),i=({timestamp:r})=>{let o=r-n;o>=e&&(F.read(i),t(o-e))};return O.read(i,!0),()=>F.read(i)}let eP=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),eA=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),eT=()=>({type:"keyframes",ease:"linear",duration:.3}),eS={type:"keyframes",duration:.8},eC={x:eP,y:eP,z:eP,rotate:eP,rotateX:eP,rotateY:eP,rotateZ:eP,scaleX:eA,scaleY:eA,scale:eA,opacity:eT,backgroundColor:eT,color:eT,default:eA},eV=(t,{keyframes:e})=>e.length>2?eS:(eC[t]||eC.default)(e[1]),eM=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&tG.test(e)&&!e.startsWith("url(")),eR=new Set(["brightness","contrast","saturate","opacity"]);function ek(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[i]=n.match(tc)||[];if(!i)return t;let r=n.replace(i,""),o=eR.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+r+")"}let eL=/([a-z-]*)\(.*?\)/g,eD={...tG,getAnimatableNone:t=>{let e=t.match(eL);return e?e.map(ek).join(" "):t}},eB={...tv,transform:Math.round},eO={borderWidth:tV,borderTopWidth:tV,borderRightWidth:tV,borderBottomWidth:tV,borderLeftWidth:tV,borderRadius:tV,radius:tV,borderTopLeftRadius:tV,borderTopRightRadius:tV,borderBottomRightRadius:tV,borderBottomLeftRadius:tV,width:tV,maxWidth:tV,height:tV,maxHeight:tV,size:tV,top:tV,right:tV,bottom:tV,left:tV,padding:tV,paddingTop:tV,paddingRight:tV,paddingBottom:tV,paddingLeft:tV,margin:tV,marginTop:tV,marginRight:tV,marginBottom:tV,marginLeft:tV,rotate:tS,rotateX:tS,rotateY:tS,rotateZ:tS,scale:ty,scaleX:ty,scaleY:ty,scaleZ:ty,skew:tS,skewX:tS,skewY:tS,distance:tV,translateX:tV,translateY:tV,translateZ:tV,x:tV,y:tV,z:tV,perspective:tV,transformPerspective:tV,opacity:tg,originX:tk,originY:tk,originZ:tV,zIndex:eB,fillOpacity:tg,strokeOpacity:tg,numOctaves:eB},eF={...eO,color:tD,backgroundColor:tD,outlineColor:tD,fill:tD,stroke:tD,borderColor:tD,borderTopColor:tD,borderRightColor:tD,borderBottomColor:tD,borderLeftColor:tD,filter:eD,WebkitFilter:eD},ej=t=>eF[t];function eI(t,e){var n;let i=ej(t);return i!==eD&&(i=tG),null===(n=i.getAnimatableNone)||void 0===n?void 0:n.call(i,e)}function eU(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function eN(t){return"number"==typeof t?0:eI("",t)}function e$(t,e){return t[e]||t.default||t}let eH=(t,e,n,i={})=>r=>{let o=e$(i,t)||{},s=o.delay||i.delay||0,{elapsed:a=0}=i;a-=ti(s);let l=function(t,e,n,i){let r=eM(e,n),o=void 0!==i.from?i.from:t.get();return("none"===o&&r&&"string"==typeof n?o=eI(e,n):eU(o)&&"string"==typeof n?o=eN(n):!Array.isArray(n)&&eU(n)&&"string"==typeof o&&(n=eN(o)),Array.isArray(n))?(null===n[0]&&(n[0]=o),n):[o,n]}(e,t,n,o),u=l[0],h=l[l.length-1],c=eM(t,u),d=eM(t,h);te(c===d,`You are trying to animate ${t} from "${u}" to "${h}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${h} via the \`style\` property.`);let p={keyframes:l,velocity:e.getVelocity(),...o,elapsed:a,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{r(),o.onComplete&&o.onComplete()}};if(!c||!d||tr.current||!1===o.type)return function({keyframes:t,elapsed:e,onUpdate:n,onComplete:i}){let r=()=>(n&&n(t[t.length-1]),i&&i(),()=>{});return e?eE(r,-e):r()}(p);if("inertia"===o.type){let t=function({keyframes:t,velocity:e=0,min:n,max:i,power:r=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:h,onUpdate:c,onComplete:d,onStop:p}){let f;let m=t[0];function v(t){return void 0!==n&&t<n||void 0!==i&&t>i}function g(t){return void 0===n?i:void 0===i?n:Math.abs(n-t)<Math.abs(i-t)?n:i}function y(t){null==f||f.stop(),f=em({keyframes:[0,1],velocity:0,...t,driver:h,onUpdate:e=>{var n;null==c||c(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:p})}function x(t){y({type:"spring",stiffness:s,damping:a,restDelta:l,...t})}if(v(m))x({velocity:e,keyframes:[m,g(m)]});else{let t,i,s=r*e+m;void 0!==u&&(s=u(s));let a=g(s),h=a===n?-1:1;y({type:"decay",keyframes:[m,0],velocity:e,timeConstant:o,power:r,restDelta:l,modifyTarget:u,onUpdate:v(s)?n=>{t=i,i=n,e=W(n-t,S.delta),(1===h&&n>a||-1===h&&n<a)&&x({keyframes:[n,a],velocity:e})}:void 0})}return{stop:()=>null==f?void 0:f.stop()}}(p);return()=>t.stop()}!function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(o)&&(p={...p,...eV(t,p)}),p.duration&&(p.duration=ti(p.duration)),p.repeatDelay&&(p.repeatDelay=ti(p.repeatDelay));let f=e.owner,m=f&&f.current;if(f&&m instanceof HTMLElement&&!(null==f?void 0:f.getProps().onUp
1date)){let n=function(t,e,{onUpdate:n,onComplete:i,...r}){var o;if(!(eb.waapi()&&ew.has(e)&&!r.repeatDelay&&"mirror"!==r.repeatType&&0!==r.damping))return!1;let{keyframes:s,duration:a=300,elapsed:l=0,ease:u}=r;if("spring"===r.type||!(!(o=r.ease)||Array.isArray(o)||"string"==typeof o&&eg[o])){if(r.repeat===1/0)return;let t=em({...r,elapsed:0}),e={done:!1,value:s[0]},n=[],i=0;for(;!e.done&&i<2e4;)e=t.sample(i),n.push(e.value),i+=10;s=n,a=i-10,u="linear"}let h=function(t,e,n,{delay:i=0,duration:r,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){return t.animate({[e]:n,offset:l},{delay:i,duration:r,easing:function(t){if(t)return Array.isArray(t)?ev(t):eg[t]}(a),fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(t.owner.current,e,s,{...r,delay:-l,duration:a,ease:u});return h.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){let i=e&&"loop"!==n&&e%2==1?0:t.length-1;return t[i]}(s,r)),i&&i()},()=>{let{currentTime:e}=h;if(e){let n=em({...r,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}O.update(()=>h.cancel())}}(e,t,p);if(n)return n}let v=em(p);return()=>v.stop()},ez=t=>!!(null==t?void 0:t.getVelocity);function eW(t,e,n={}){let i=ez(t)?t:q(t);return i.start(eH("",i,e,n)),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}let eY=_?T.useLayoutEffect:T.useEffect;function eX(){let t=(0,T.useRef)(!1);return eY(()=>(t.current=!0,()=>{t.current=!1}),[]),t}let eq=(0,T.createContext)(null);class eZ extends T.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function eG({children:t,isPresent:e}){let n=(0,T.useId)(),i=(0,T.useRef)(null),r=(0,T.useRef)({width:0,height:0,top:0,left:0});return(0,T.useInsertionEffect)(()=>{let{width:t,height:o,top:s,left:a}=r.current;if(e||!i.current||!t||!o)return;i.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` 2 [data-motion-pop-id="${n}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${o}px !important; 6 top: ${s}px !important; 7 left: ${a}px !important; 8 } 9 `),()=>{document.head.removeChild(l)}},[e]),T.createElement(eZ,{isPresent:e,childRef:i,sizeRef:r},T.cloneElement(t,{ref:i}))}let eK=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:o,mode:s})=>{let a=G(e_),l=(0,T.useId)(),u=(0,T.useMemo)(()=>({id:l,initial:e,isPresent:n,custom:r,onExitComplete:t=>{for(let e of(a.set(t,!0),a.values()))if(!e)return;i&&i()},register:t=>(a.set(t,!1),()=>a.delete(t))}),o?void 0:[n]);return(0,T.useMemo)(()=>{a.forEach((t,e)=>a.set(e,!1))},[n]),T.useEffect(()=>{n||a.size||!i||i()},[n]),"popLayout"===s&&(t=T.createElement(eG,{isPresent:n},t)),T.createElement(eq.Provider,{value:u},t)};function e_(){return new Map}let eJ=(0,T.createContext)({});function eQ(t){return(0,T.useEffect)(()=>()=>t(),[])}let e0=t=>t.key||"",e1=({children:t,custom:e,initial:n=!0,onExitComplete:i,exitBeforeEnter:r,presenceAffectsLayout:o=!0,mode:s="sync"})=>{r&&(s="wait");let[a]=function(){let t=eX(),[e,n]=(0,T.useState)(0),i=(0,T.useCallback)(()=>{t.current&&n(e+1)},[e]);return[(0,T.useCallback)(()=>O.postRender(i),[i]),e]}(),l=(0,T.useContext)(eJ).forceRender;l&&(a=l);let u=eX(),h=function(t){let e=[];return T.Children.forEach(t,t=>{(0,T.isValidElement)(t)&&e.push(t)}),e}(t),c=h,d=new Set,p=(0,T.useRef)(c),f=(0,T.useRef)(new Map).current,m=(0,T.useRef)(!0);if(eY(()=>{m.current=!1,function(t,e){t.forEach(t=>{let n=e0(t);e.set(n,t)})}(h,f),p.current=c}),eQ(()=>{m.current=!0,f.clear(),d.clear()}),m.current)return T.createElement(T.Fragment,null,c.map(t=>T.createElement(eK,{key:e0(t),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:s},t)));c=[...c];let v=p.current.map(e0),g=h.map(e0),y=v.length;for(let t=0;t<y;t++){let e=v[t];-1===g.indexOf(e)&&d.add(e)}return"wait"===s&&d.size&&(c=[]),d.forEach(t=>{if(-1!==g.indexOf(t))return;let n=f.get(t);if(!n)return;let r=v.indexOf(t);c.splice(r,0,T.createElement(eK,{key:e0(n),isPresent:!1,onExitComplete:()=>{f.delete(t),d.delete(t);let e=p.current.findIndex(e=>e.key===t);if(p.current.splice(e,1),!d.size){if(p.current=h,!1===u.current)return;a(),i&&i()}},custom:e,presenceAffectsLayout:o,mode:s},n))}),c=c.map(t=>{let e=t.key;return d.has(e)?t:T.createElement(eK,{key:e0(t),isPresent:!0,presenceAffectsLayout:o,mode:s},t)}),T.createElement(T.Fragment,null,d.size?c:c.map(t=>(0,T.cloneElement)(t)))},e5=(0,T.createContext)({}),e2=(0,T.createContext)({strict:!1});function e3(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function e9(t){return"string"==typeof t||Array.isArray(t)}function e6(t){return"object"==typeof t&&"function"==typeof t.start}let e4=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function e8(t){return e6(t.animate)||e4.some(e=>e9(t[e]))}function e7(t){return!!(e8(t)||t.variants)}function nt(t){return Array.isArray(t)?t.join(" "):t}let ne=t=>({isEnabled:e=>t.some(t=>!!e[t])}),nn={measureLayout:ne(["layout","layoutId","drag"]),animation:ne(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ne(["exit"]),drag:ne(["drag","dragControls"]),focus:ne(["whileFocus"]),hover:ne(["whileHover","onHoverStart","onHoverEnd"]),tap:ne(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ne(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ne(["whileInView","onViewportEnter","onViewportLeave"])},ni={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nr=1;class no extends T.Component{getSnapshotBeforeUpdate(){let{visualElement:t,props:e}=this.props;return t&&t.setProps(e),null}componentDidUpdate(){}render(){return this.props.children}}let ns=(0,T.createContext)({}),na=Symbol.for("motionComponentSymbol"),nl=["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 nu(t){if("string"!=typeof t||t.includes("-"));else if(nl.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let nh={},nc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nd=new Set(nc);function np(t,{layout:e,layoutId:n}){return nd.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!nh[t]||"opacity"===t)}let nf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nm=(t,e)=>nc.indexOf(t)-nc.indexOf(e);function nv(t){return t.startsWith("--")}let ng=(t,e)=>e&&"number"==typeof t?e.transform(t):t;function ny(t,e,n,i){let{style:r,vars:o,transform:s,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,h=!1,c=!0;for(let t in e){let n=e[t];if(nv(t)){o[t]=n;continue}let i=eO[t],d=ng(n,i);if(nd.has(t)){if(u=!0,s[t]=d,a.push(t),!c)continue;n!==(i.default||0)&&(c=!1)}else t.startsWith("origin")?(h=!0,l[t]=d):r[t]=d}if(!e.transform&&(u||i?r.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0}
9,r,o){let s="";for(let n of(e.sort(nm),e))s+=`${nf[n]||n}(${t[n]}) `;return n&&!t.z&&(s+="translateZ(0)"),s=s.trim(),o?s=o(t,r?"":s):i&&r&&(s="none"),s}(t,n,c,i):r.transform&&(r.transform="none")),h){let{originX:t="50%",originY:e="50%",originZ:n=0}=l;r.transformOrigin=`${t} ${e} ${n}`}}let nx=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function nb(t,e,n){for(let i in e)ez(e[i])||np(i,n)||(t[i]=e[i])}let nw=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function nE(t){return nw.has(t)}let nP=t=>!nE(t);try{(i=require("@emotion/is-prop-valid").default)&&(nP=t=>t.startsWith("on")?!nE(t):i(t))}catch(t){}function nA(t,e,n){return"string"==typeof t?t:tV.transform(e+n*t)}let nT={offset:"stroke-dashoffset",array:"stroke-dasharray"},nS={offset:"strokeDashoffset",array:"strokeDasharray"};function nC(t,{attrX:e,attrY:n,originX:i,originY:r,pathLength:o,pathSpacing:s=1,pathOffset:a=0,...l},u,h,c){if(ny(t,l,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:p,dimensions:f}=t;d.transform&&(f&&(p.transform=d.transform),delete d.transform),f&&(void 0!==i||void 0!==r||p.transform)&&(p.transformOrigin=function(t,e,n){let i=nA(e,t.x,t.width),r=nA(n,t.y,t.height);return`${i} ${r}`}(f,void 0!==i?i:.5,void 0!==r?r:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==o&&function(t,e,n=1,i=0,r=!0){t.pathLength=1;let o=r?nT:nS;t[o.offset]=tV.transform(-i);let s=tV.transform(e),a=tV.transform(n);t[o.array]=`${s} ${a}`}(d,o,s,a,!1)}let nV=()=>({...nx(),attrs:{}}),nM=t=>"string"==typeof t&&"svg"===t.toLowerCase(),nR=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function nk(t,{style:e,vars:n},i,r){for(let o in Object.assign(t.style,e,r&&r.getProjectionStyles(i)),n)t.style.setProperty(o,n[o])}let nL=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function nD(t,e,n,i){for(let n in nk(t,e,void 0,i),e.attrs)t.setAttribute(nL.has(n)?n:nR(n),e.attrs[n])}function nB(t,e){let{style:n}=t,i={};for(let r in n)(ez(n[r])||e.style&&ez(e.style[r])||np(r,t))&&(i[r]=n[r]);return i}function nO(t,e){let n=nB(t,e);for(let i in t)(ez(t[i])||ez(e[i]))&&(n["x"===i||"y"===i?"attr"+i.toUpperCase():i]=t[i]);return n}function nF(t,e,n,i={},r={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,r)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,r)),e}let nj=t=>Array.isArray(t),nI=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),nU=t=>nj(t)?t[t.length-1]||0:t;function nN(t){let e=ez(t)?t.get():t;return nI(e)?e.toValue():e}let n$=t=>(e,n)=>{let i=(0,T.useContext)(e5),r=(0,T.useContext)(eq),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,r,o){let s={latestValues:function(t,e,n,i){let r={},o=i(t,{});for(let t in o)r[t]=nN(o[t]);let{initial:s,animate:a}=t,l=e8(t),u=e7(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let h=!!n&&!1===n.initial,c=(h=h||!1===s)?a:s;return c&&"boolean"!=typeof c&&!e6(c)&&(Array.isArray(c)?c:[c]).forEac
9h(e=>{let n=nF(t,e);if(!n)return;let{transitionEnd:i,transition:o,...s}=n;for(let t in s){let e=s[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let t in i)r[t]=i[t]}),r}(i,r,o,t),renderState:e()};return n&&(s.mount=t=>n(i,t,s)),s})(t,e,i,r);return n?o():G(o)},nH={useVisualState:n$({scrapeMotionValuesFromProps:nO,createRenderState:nV,onMount:(t,e,{renderState:n,latestValues:i})=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}nC(n,i,{enableHardwareAcceleration:!1},nM(e.tagName),t.transformTemplate),nD(e,n)}})},nz={useVisualState:n$({scrapeMotionValuesFromProps:nB,createRenderState:nx})};function nW(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function nY(t,e,n,i){(0,T.useEffect)(()=>{let r=t.current;if(n&&r)return nW(r,e,n,i)},[t,e,n,i])}(r=s||(s={})).Animate="animate",r.Hover="whileHover",r.Tap="whileTap",r.Drag="whileDrag",r.Focus="whileFocus",r.InView="whileInView",r.Exit="exit";let nX=t=>!1!==t.isPrimary;function nq(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let nZ=t=>e=>nX(e)&&t(e,nq(e));function nG(t,e,n,i){return nW(t,e,nZ(n),i)}function nK(t,e,n,i){return nY(t,e,n&&nZ(n),i)}function n_(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let nJ=n_("dragHorizontal"),nQ=n_("dragVertical");function n0(t){let e=!1;if("y"===t)e=nQ();else if("x"===t)e=nJ();else{let t=nJ(),n=nQ();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function n1(){let t=n0(!0);return!t||(t(),!1)}function n5(t,e,n){return(i,r)=>{!("touch"===i.type||n1())&&(t.animationState&&t.animationState.setActive(s.Hover,e),n&&n(i,r))}}let n2=(t,e)=>!!e&&(t===e||n2(t,e.parentElement)),n3=new WeakMap,n9=new WeakMap,n6=t=>{let e=n3.get(t.target);e&&e(t)},n4=t=>{t.forEach(n6)},n8={some:0,all:1},n7=t=>e=>(t(e),null),it={inView:n7(function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:i,viewport:r={}}){let o=(0,T.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(e||n||i);r.once&&o.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?function(t,e,n,{fallback:i=!0}){(0,T.useEffect)(()=>{t&&i&&requestAnimationFrame(()=>{e.hasEnteredView=!0;let{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(s.InView,!0)})},[t])}:function(t,e,n,{root:i,margin:r,amount:o="some",once:a}){(0,T.useEffect)(()=>{if(!t||!n.current)return;let l={root:null==i?void 0:i.current,rootMargin:r,threshold:"number"==typeof o?o:n8[o]};return function(t,e,n){let i=function({root:t,...e}){let n=t||document;n9.has(n)||n9.set(n,{});let i=n9.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(n4,{root:t,...e})),i[r]}(e);return n3.set(t,n),i.observe(t),()=>{n3.delete(t),i.unobserve(t)}}(n.current,l,t=>{let{isIntersecting:i}=t;if(e.isInView===i||(e.isInView=i,a&&!i&&e.hasEnteredView))return;i&&(e.hasEnteredView=!0),n.animationState&&n.animationState.setActive(s.InView,i);let r=n.getProps(),o=i?r.onViewportEnter:r.onViewportLeave;o&&o(t)})},[t,i,r,o])})(a,o.current,t,r)}),tap:n7(function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:i,visualElement:r,...o}){let a=t||e||n||i,l=(0,T.useRef)(!1),u=(0,T.useRef)(null),h={passive:!(e||t||n||o.onPointerDown)};function c(){u.current&&u.current(),u.current=null}function d(){return c(),l.current=!1,r.animationState&&r.animationState.setActive(s.Tap,!1),!n1()}function p(t,e){var n,i,o,s;d()&&(n2(r.current,t.target)?null===(s=(o=r.getProps()).onTap)||void 0===s||s.call(o,t,e):null===(i=(n=r.getProps()).onTapCancel)||void 0===i||i.call(n,t,e))}function f(t,e){var n,i;d()&&(null===(i=(n=r.getProps()).onTapCancel)||void 0===i||i.call(n,t,e))}let m=(0,T.useCallback)((t,e)=>{var n,i;c(),l.current||(l.current=!0,u.current=tH(nG(window,"pointerup",p,h),nG(window,"pointercancel",f,h)),r.animationState&&r.animationState.setActive(s.Tap,!0),null===(i=(n=r.getProps()).onTapStart)||void 0===i||i.call(n,t,e))},[!!e,r]);nK(r,"pointerdown",a?m:void 0,h),eQ(c)}),focus:n7(function({whileFocus:t,visualElement:e}){let{animationState:n}=e,i=(0,T.useCallback)(()=>{n&&n.setActive(s.Focus,!0)},[n]),r=(0,T.useCallback)(()=>{n&&n.setActive(s.Focus,!1)},[n]);nY(e,"focus",t?i:void 0),nY(e,"blur",t?r:void 0)}),hover:n7(function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:i}){nK(i,"pointerenter",(0,T.useMemo)(()=>t||n?n5(i,!0,t):void 0,[t,!!n,i]),{passive:!t}),nK(i,"pointerleave",(0,T.useMemo)(()=>e||n?n5(i,!1,e):void 0,[t,!!n,i]),{passive:!e})})};function ie(){let t=(0,T.useContext)(eq);
9if(null===t)return[!0,null];let{isPresent:e,onExitComplete:n,register:i}=t,r=(0,T.useId)();return(0,T.useEffect)(()=>i(r),[]),!e&&n?[!1,()=>n&&n(r)]:[!0]}function ii(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}let ir=t=>/^\-?\d*\.?\d+$/.test(t),io=t=>/^0[^.\s]+$/.test(t),is=t=>e=>e.test(t),ia=[tv,tV,tC,tS,tR,tM,{test:t=>"auto"===t,parse:t=>t}],il=t=>ia.find(is(t)),iu=[...ia,tD,tG],ih=t=>iu.find(is(t));function ic(t,e,n){let i=t.getProps();return nF(i,e,void 0!==n?n:i.custom,function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.getVelocity()),e}(t))}function id(t){return!!(ez(t)&&t.add)}let ip=(t,e)=>`${t}: ${e}`,im="data-"+nR("framerAppearId");function iv(t,e,n={}){var i;let r=ic(t,e,n.custom),{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);let s=r?()=>ig(t,r,n):()=>Promise.resolve(),a=(null===(i=t.variantChildren)||void 0===i?void 0:i.size)?(i=0)=>{let{delayChildren:r=0,staggerChildren:s,staggerDirection:a}=o;return function(t,e,n=0,i=0,r=1,o){let s=[],a=(t.variantChildren.size-1)*i,l=1===r?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(iy).forEach((t,i)=>{t.notify("AnimationStart",e),s.push(iv(t,e,{...o,delay:n+l(i)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(s)}(t,e,r+i,s,a,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([s(),a(n.delay)]);{let[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then(e)}}function ig(t,e,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e),u=t.getValue("willChange");i&&(s=i);let h=[],c=r&&(null===(o=t.animationState)||void 0===o?void 0:o.getState()[r]);for(let e in l){let i=t.getValue(e),r=l[e];if(!i||void 0===r||c&&function({protectedKeys:t,needsAnimating:e},n){let i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}(c,e))continue;let o={delay:n,elapsed:0,...s};if(t.shouldReduceMotion&&nd.has(e)&&(o={...o,type:!1,delay:0}),!i.hasAnimated){let n=t.getProps()[im];n&&(o.elapsed=function(t,e){let{MotionAppearAnimations:n}=window,i=ip(t,nd.has(e)?"transform":e),r=n&&n.get(i);return r?(O.render(()=>{try{r.cancel(),n.delete(i)}catch(t){}}),r.currentTime||0):0}(n,e))}let a=i.start(eH(e,i,r,o));id(u)&&(u.add(e),a=a.then(()=>u.remove(e))),h.push(a)}return Promise.all(h).then(()=>{a&&function(t,e){let n=ic(t,e),{transitionEnd:i={},transition:r={},...o}=n?t.makeTargetAnimatable(n,!1):{};for(let e in o={...o,...i}){let n=nU(o[e]);t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,q(n))}}(t,a)})}function iy(t,e){return t.sortNodePosition(e)}let ix=[s.Animate,s.InView,s.Focus,s.Hover,s.Tap,s.Drag,s.Exit],ib=[...ix].reverse(),iw=ix.length;function iE(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let iP={animation:n7(({visualElement:t,animate:e})=>{t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>iv(t,e,n)));else if("string"==typeof e)i=iv(t,e,n);else{let r="function"==typeof e?ic(t,e,n.custom):e;i=ig(t,r,n)}return i.then(()=>t.notify("AnimationComplete",e))})(t,e,n))),n={[s.Animate]:iE(!0),[s.InView]:iE(),[s.Hover]:iE(),[s.Tap]:iE(),[s.Drag]:iE(),[s.Focus]:iE(),[s.Exit]:iE()},i=!0,r=(e,n)=>{let i=ic(t,n);if(i){let{transition:t,transitionEnd:n,...r}=i;e={...e,...r,...n}}return e};function o(o,s){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<iw;e++){var p;let f=ib[e],m=n[f],v=void 0!==a[f]?a[f]:l[f],g=e9(v),y=f===s?m.isActive:null;!1===y&&(d=e);let x=v===l[f]&&v!==a[f]&&g;if(x&&i&&t.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...c},!m.isActive&&null===y||!v&&!m.prevProp||e6(v)||"boolean"==typeof v)continue;let b=(p=m.prevProp,"string"==typeof v?v!==p:!!Array.isArray(v)&&!ii(v,p)),w=b||f===s&&m.isActive&&!x&&g||e>d&&g,E=Array.isArray(v)?v:[v],P=E.reduce(r,{});!1===y&&(P={});let{prevResolvedValues:A={}}=m,T={...A,...P},S=t=>{w=!0,h.delete(t),m.needsAnimating[t]=!0}
9;for(let t in T){let e=P[t],n=A[t];c.hasOwnProperty(t)||(e!==n?nj(e)&&nj(n)?!ii(e,n)||b?S(t):m.protectedKeys[t]=!0:void 0!==e?S(t):h.add(t):void 0!==e&&h.has(t)?S(t):m.protectedKeys[t]=!0)}m.prevProp=v,m.prevResolvedValues=P,m.isActive&&(c={...c,...P}),i&&t.blockInitialAnimation&&(w=!1),w&&!x&&u.push(...E.map(t=>({animation:t,options:{type:f,...o}})))}if(h.size){let e={};h.forEach(n=>{let i=t.getBaseTarget(n);void 0!==i&&(e[n]=i)}),u.push({animation:e})}let f=!!u.length;return i&&!1===a.initial&&!t.manuallyAnimateOnMount&&(f=!1),i=!1,f?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,i,r){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)}),n[e].isActive=i;let a=o(r,e);for(let t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}(t)),e6(e)&&(0,T.useEffect)(()=>e.subscribe(t),[e])}),exit:n7(t=>{let{custom:e,visualElement:n}=t,[i,r]=ie(),o=(0,T.useContext)(eq);(0,T.useEffect)(()=>{n.isPresent=i;let t=n.animationState&&n.animationState.setActive(s.Exit,!i,{custom:o&&o.custom||e});t&&!i&&t.then(r)},[i])})},iA=(t,e)=>Math.abs(t-e);class iT{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=iV(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,r=(t=n.offset,e={x:0,y:0},Math.sqrt(iA(t.x,e.x)**2+iA(t.y,e.y)**2)>=3);if(!i&&!r)return;let{point:o}=n,{timestamp:s}=S;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;
9i||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iS(e,this.transformPagePoint),O.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:n,onSessionEnd:i}=this.handlers,r=iV("pointercancel"===t.type?this.lastMoveEventInfo:iS(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,r),i&&i(t,r)},!nX(t))return;this.handlers=e,this.transformPagePoint=n;let i=iS(nq(t),this.transformPagePoint),{point:r}=i,{timestamp:o}=S;this.history=[{...r,timestamp:o}];let{onSessionStart:s}=e;s&&s(t,iV(i,this.history)),this.removeListeners=tH(nG(window,"pointermove",this.handlePointerMove),nG(window,"pointerup",this.handlePointerUp),nG(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),F.update(this.updatePoint)}}function iS(t,e){return e?{point:e(t.point)}:t}function iC(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iV({point:t},e){return{point:t,delta:iC(t,iM(e)),offset:iC(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null,r=iM(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>ti(.1)));)n--;if(!i)return{x:0,y:0};let o=(r.timestamp-i.timestamp)/1e3;if(0===o)return{x:0,y:0};let s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,0)}}function iM(t){return t[t.length-1]}function iR(t){return t.max-t.min}function ik(t,e=0,n=.01){return Math.abs(t-e)<=n}function iL(t,e,n,i=.5){t.origin=i,t.originPoint=tB(e.min,e.max,t.origin),t.scale=iR(n)/iR(e),(ik(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=tB(n.min,n.max,t.origin)-t.originPoint,(ik(t.translate)||isNaN(t.translate))&&(t.translate=0)}function iD(t,e,n,i){iL(t.x,e.x,n.x,null==i?void 0:i.originX),iL(t.y,e.y,n.y,null==i?void 0:i.originY)}function iB(t,e,n){t.min=n.min+e.min,t.max=t.min+iR(e)}function iO(t,e,n){t.min=e.min-n.min,t.max=t.min+iR(e)}function iF(t,e,n){iO(t.x,e.x,n.x),iO(t.y,e.y,n.y)}function ij(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function iI(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function iU(t,e,n){return{min:iN(t,e),max:iN(t,n)}}function iN(t,e){return"number"==typeof t?t:t[e]||0}let i$=()=>({translate:0,scale:1,origin:0,originPoint:0}),iH=()=>({x:i$(),y:i$()}),iz=()=>({min:0,max:0}),iW=()=>({x:iz(),y:iz()});function iY(t){return[t("x"),t("y")]}function iX({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function iq(t){return void 0===t||1===t}function iZ({scale:t,scaleX:e,scaleY:n}){return!iq(t)||!iq(e)||!iq(n)}function iG(t){return iZ(t)||iK(t)||t.z||t.rotate||t.rotateX||t.rotateY}function iK(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function i_(t,e,n,i,r){return void 0!==r&&(t=i+r*(t-i)),i+n*(t-i)+e}function iJ(t,e=0,n=1,i,r){t.min=i_(t.min,e,n,i,r),t.max=i_(t.max,e,n,i,r)}function iQ(t,{x:e,y:n}){iJ(t.x,e.translate,e.scale,e.originPoint),iJ(t.y,n.translate,n.scale,n.originPoint)}function i0(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function i1(t,e){t.min=t.min+e,t.max=t.max+e}function i5(t,e,[n,i,r]){let o=void 0!==e[r]?e[r]:.5,s=tB(t.min,t.max,o);iJ(t,e[n],e[i],s,e.scale)}let i2=["x","scaleX","originX"],i3=["y","scaleY","originY"];function i9(t,e){i5(t.x,e,i2),i5(t.y,e,i3)}function i6(t,e){return iX(function(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}let i4=new WeakMap;class i8{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iW(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new iT(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor(nq(t,"page").point)},onStart:(t,e)=>{var n;let{drag:i,dragPropagation:r,onDragStart:o}=this.getProps();(!i||r||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=n0(i),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iY(t=>{var e,n;let i=this.getAxisMotionValue(t).get()||0;if(tC.test(i)){let r=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(r){let t=iR(r);i=parseFloat(i)/100*t}}this.originPoint[t]=i}),null==o||o(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(s.Drag,!0))},onMove:(t,e)=>{let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:s}=e;if(i&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(s),null!==this.currentDirection&&(null==r||r(this.currentDirection));return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),null==o||o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(t,e){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=e;this.startAnimation(i);let{onDragEnd:r}=this.getProps();null==r||r(t,e)}cancel(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(s.Drag,!1)}updateAxis(t,e,n){let{drag:i}=this.getProps();if(!n||!i7(t,i,this.currentDirection))return;let r=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?tB(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?tB(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&e3(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(t,{top:e,left:n,bottom:i,right:r}){return{x:ij(t.x,n,r),y:ij(t.y,e,i)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iU(t,"left","right"),y:iU(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&iY(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!e3(e))return!1;let i=e.current;tn(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let o=function(t,e,n){let i=i6(t,n),{scroll:r}=e;return r&&(i1(i.x,r.offset.x),i1(i.y,r.offset.y)),i}(i,r.root,this.visualElement.getTransformPagePoint()),s={x:iI((t=r.layout.layoutBox).x,o.x),y:iI(t.y,o.y)};if(n){let t=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=iX(t))}return s}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(iY(s=>{if(!i7(s,e,this.currentDirection))return;let l=(null==a?void 0:a[s])||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return n.start(eH(t,n,0,e))}stopAnimation(){iY(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var e;let n="_drag"+t.toUpperCase();return this.visualElement.getProps()[n]||this.visualElement.getValue(t,(null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])||0)}snapToCursor(t){iY(e=>{let{drag:n}=this.getProps();if(!i7(e,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(e);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[e];r.set(t[e]-tB(n,o,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;let{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!e3(n)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};iY(t=>{let e=this.getAxisMotionValue(t);if(e){let n=e.get();r[t]=function(t,e){let n=.5,i=iR(t),r=iR(e);return r>i?n=t0(e.min,e.max-i,t.min):i>r&&(n=t0(t.min,t.max-r,e.min)),tm(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),iY(t=>{if(!i7(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(tB(i,o,r[t]))})}addListeners(){var t;if(!this.visualElement.current)return;i4.set(this.visualElement,this);let e=nG(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:n=!0}
9=this.getProps();e&&n&&this.start(t)}),n=()=>{let{dragConstraints:t}=this.getProps();e3(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",n);i&&!i.layout&&(null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout()),n();let o=nW(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iY(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),e(),r(),null==s||s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:s}}}function i7(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}let rt={pan:n7(function({onPan:t,onPanStart:e,onPanEnd:n,onPanSessionStart:i,visualElement:r}){let o=(0,T.useRef)(null),{transformPagePoint:s}=(0,T.useContext)(Z),a={onSessionStart:i,onStart:e,onMove:t,onEnd:(t,e)=>{o.current=null,n&&n(t,e)}};(0,T.useEffect)(()=>{null!==o.current&&o.current.updateHandlers(a)}),nK(r,"pointerdown",(t||e||n||i)&&function(t){o.current=new iT(t,a,{transformPagePoint:s})}),eQ(()=>o.current&&o.current.end())}),drag:n7(function(t){let{dragControls:e,visualElement:n}=t,i=G(()=>new i8(n));(0,T.useEffect)(()=>e&&e.subscribe(i),[i,e]),(0,T.useEffect)(()=>i.addListeners(),[i])})};function re(t){return"string"==typeof t&&t.startsWith("var(--")}let rn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ri(t,e,n=1){tn(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,r]=function(t){let e=rn.exec(t);if(!e)return[,];let[,n,i]=e;return[n,i]}(t);if(!i)return;let o=window.getComputedStyle(e).getPropertyValue(i);return o?o.trim():re(r)?ri(r,e,n+1):r}let rr=new Set(["width","height","top","left","right","bottom","x","y"]),ro=t=>rr.has(t),rs=t=>Object.keys(t).some(ro),ra=t=>t===tv||t===tV;(o=a||(a={})).width="width",o.height="height",o.left="left",o.right="right",o.top="top",o.bottom="bottom";let rl=(t,e)=>parseFloat(t.split(", ")[e]),ru=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;let r=i.match(/^matrix3d\((.+)\)$/);if(r)return rl(r[1],e);{let e=i.match(/^matrix\((.+)\)$/);return e?rl(e[1],t):0}},rh=new Set(["x","y","z"]),rc=nc.filter(t=>!rh.has(t)),rd={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:ru(4,13),y:ru(5,14)},rp=(t,e,n)=>{let i=e.measureViewportBox(),r=getComputedStyle(e.current),{display:o}=r,s={};"none"===o&&e.setStaticValue("display",t.display||"block"),n.forEach(t=>{s[t]=rd[t](i,r)}),e.render();let a=e.measureViewportBox();return n.forEach(n=>{let i=e.getValue(n);i&&i.jump(s[n]),t[n]=rd[n](a,r)}),t},rf=(t,e,n={},i={})=>{e={...e},i={...i};let r=Object.keys(e).filter(ro),o=[],s=!1,a=[];if(r.forEach(r=>{let l;let u=t.getValue(r);if(!t.hasValue(r))return;let h=n[r],c=il(h),d=e[r];if(nj(d)){let t=d.length,e=null===d[0]?1:0;c=il(h=d[e]);for(let n=e;n<t;n++)l?tn(il(d[n])===l,"All keyframes must be of the same type"):tn((l=il(d[n]))===c||ra(c)&&ra(l),"Keyframes must be of the same dimension as the current value")}else l=il(d);if(c!==l){if(ra(c)&&ra(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[r]=parseFloat(d):Array.isArray(d)&&l===tV&&(e[r]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==l?void 0:l.transform)&&(0===h||0===d)?0===h?u.set(l.transform(h)):e[r]=c.transform(d):(s||(o=function(t){let e=[];return rc.forEach(n=>{let i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),s=!0),a.push(r),i[r]=void 0!==i[r]?i[r]:e[r],u.jump(d))}}),!a.length)return{target:e,transitionEnd:i};{let n=a.indexOf("height")>=0?window.pageYOffset:null,r=rp(e,t,a);return o.length&&o.forEach(([e,n])=>{t.getValue(e).set(n)}),t.render(),_&&null!==n&&window.scrollTo({top:n}),{target:r,transitionEnd:i}}},rm=(t,e,n,i)=>{var r,o;let s=function(t,{...e},n){let i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:n};
9for(let r in n&&(n={...n}),t.values.forEach(t=>{let e=t.get();if(!re(e))return;let n=ri(e,i);n&&t.set(n)}),e){let t=e[r];if(!re(t))continue;let o=ri(t,i);o&&(e[r]=o,n&&void 0===n[r]&&(n[r]=t))}return{target:e,transitionEnd:n}}(t,e,i);return e=s.target,i=s.transitionEnd,r=e,o=i,rs(r)?rf(t,r,n,o):{target:r,transitionEnd:o}},rv=Object.keys(nn),rg=rv.length,ry=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rx{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:i},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,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.scheduleRender=()=>O.render(this.render,!1,!0);let{latestValues:o,renderState:s}=i;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=s,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=r,this.isControllingVariants=e8(e),this.isVariantNode=e7(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:a,...l}=this.scrapeMotionValuesFromProps(e,{});for(let t in l){let e=l[t];void 0!==o[t]&&ez(e)&&(e.set(o[t],!1),id(a)&&a.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(e=this.parent)||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),Q.current||tt(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||J.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;for(let i in null===(t=this.projection)||void 0===t||t.unmount(),F.update(this.notifyUpdate),F.render(this.render),this.valueSubscriptions.forEach(t=>t()),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[i].clear();this.current=null}bindToMotionValue(t,e){let n=nd.has(t),i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&O.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,i,r,o,s){let a=[];for(let t=0;t<rg;t++){let n=rv[t],{isEnabled:i,Component:r}=nn[n];i(e)&&r&&a.push((0,T.createElement)(r,{key:n,...e,visualElement:this}))}if(!this.projection&&o){this.projection=new o(r,this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:n,drag:i,dragConstraints:a,layoutScroll:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:!!i||a&&e3(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iW()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();let e=this.props;this.props=t;for(let e=0;e<ry.length;e++){let n=ry[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){let{willChange:i}=e;for(let r in e){let o=e[r],s=n[r];if(ez(o))t.addValue(r,o),id(i)&&i.add(r);else if(ez(s))t.addValue(r,q(o,{owner:t})),id(i)&&i.remove(r);else if(s!==o){if(t.hasValue(r)){let e=t.getValue(r);e.hasAnimated||e.set(o)}else{let e=t.getStaticValue(r);t.addValue(r,q(void 0!==e?e:o))}}}for(let i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,e),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){var e;return null===(e=this.props.variants)||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===(t=this.parent)||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){let t=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let i={};for(let t=0;t<rw;t++){let e=rb[t],n=this.props[e];(e9(n)||!1===n)&&(i[e]=n)}return i}addVariantChild(t){var e;let n=this.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){var e;this.values.delete(t),null===(e=this.valueSubscriptions.get(t))||void 0===e||e(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=q(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:n}=this.props,i="string"==typeof n||"object"==typeof n?null===(e=n
9F(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||ez(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new z),this.events[t].add(e)}notify(t,...e){var n;null===(n=this.events[t])||void 0===n||n.notify(...e)}}let rb=["initial",...ix],rw=rb.length;class rE extends rx{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:i},r){let o=function(t,e,n){var i;let r={};for(let o in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(o,e);r[o]=void 0!==t?t:null===(i=n.getValue(o))||void 0===i?void 0:i.get()}return r}(n,t||{},this);if(i&&(e&&(e=i(e)),n&&(n=i(n)),o&&(o=i(o))),r){!function(t,e,n){var i,r;let o=Object.keys(e).filter(e=>!t.hasValue(e)),s=o.length;if(s)for(let a=0;a<s;a++){let s=o[a],l=e[s],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(r=null!==(i=n[s])&&void 0!==i?i:t.readValue(s))&&void 0!==r?r:e[s]),null!=u&&("string"==typeof u&&(ir(u)||io(u))?u=parseFloat(u):!ih(u)&&tG.test(l)&&(u=eI(s,l)),t.addValue(s,q(u,{owner:t})),void 0===n[s]&&(n[s]=u),null!==u&&t.setBaseTarget(s,u))}}(this,n,o);let t=rm(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class rP extends rE{readValueFromInstance(t,e){if(nd.has(e)){let t=ej(e);return t&&t.default||0}{let n=window.getComputedStyle(t),i=(nv(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return i6(t,e)}build(t,e,n,i){ny(t,e,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,e){return nB(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;ez(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,n,i){nk(t,e,n,i)}}class rA extends rE{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return nd.has(e)?(null===(n=ej(e))||void 0===n?void 0:n.default)||0:(e=nL.has(e)?e:nR(e),t.getAttribute(e))}measureInstanceViewportBox(){return iW()}scrapeMotionValuesFromProps(t,e){return nO(t,e)}build(t,e,n,i){nC(t,e,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,n,i){nD(t,e,n,i)}mount(t){this.isSVGTag=nM(t.tagName),super.mount(t)}}let rT=(t,e)=>nu(t)?new rA(e,{enableHardwareAcceleration:!1}):new rP(e,{enableHardwareAcceleration:!0});function rS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rC={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tV.test(t))return t;t=parseFloat(t)}let n=rS(t,e.target.x),i=rS(t,e.target.y);return`${n}% ${i}%`}},rV="_$css",rM={correct:(t,{treeScale:e,projectionDelta:n})=>{let i=t,r=t.includes("var("),o=[];r&&(t=t.replace(rn,t=>(o.push(t),rV)));let s=tG.parse(t);if(s.length>5)return i;let a=tG.createTransformer(t),l="number"!=typeof s[0]?1:0,u=n.x.scale*e.x,h=n.y.scale*e.y;s[0+l]/=u,s[1+l]/=h;let c=tB(u,h,.5);"number"==typeof s[2+l]&&(s[2+l]/=c),"number"==typeof s[3+l]&&(s[3+l]/=c);let d=a(s);if(r){let t=0;d=d.replace(rV,()=>{let e=o[t];return t++,e})}return d}};class rR extends T.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=t;Object.assign(nh,rk),r&&(e.group&&e.group.add(r),n&&n.register&&i&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ni.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:i,isPresent:r}=this.props,o=n.projection;return o&&(o.isPresent=r,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===r||(r?o.promote():o.relegate()||O.postRender(()=>{var t;(null===(t=o.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),(null==e?void 0:e.group)&&e.group.remove(i),(null==n?void 0:n.deregister)&&n.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;null==t||t()}render(){return null}}let rk={borderRadius:{...rC,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rC,borderTopRightRadius:rC,borderBottomLeftRadius:rC,borderBottomRightRadius:rC,boxSh
9adow:rM},rL=["TopLeft","TopRight","BottomLeft","BottomRight"],rD=rL.length,rB=t=>"string"==typeof t?parseFloat(t):t,rO=t=>"number"==typeof t||tV.test(t);function rF(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rj=rU(0,.5,t4),rI=rU(.5,.95,t2);function rU(t,e,n){return i=>i<t?0:i>e?1:n(t0(t,e,i))}function rN(t,e){t.min=e.min,t.max=e.max}function r$(t,e){rN(t.x,e.x),rN(t.y,e.y)}function rH(t,e,n,i,r){return t-=e,t=i+1/n*(t-i),void 0!==r&&(t=i+1/r*(t-i)),t}function rz(t,e,[n,i,r],o,s){!function(t,e=0,n=1,i=.5,r,o=t,s=t){if(tC.test(e)&&(e=parseFloat(e),e=tB(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=tB(o.min,o.max,i);t===o&&(a-=e),t.min=rH(t.min,e,n,a,r),t.max=rH(t.max,e,n,a,r)}(t,e[n],e[i],e[r],e.scale,o,s)}let rW=["x","scaleX","originX"],rY=["y","scaleY","originY"];function rX(t,e,n,i){rz(t.x,e,rW,null==n?void 0:n.x,null==i?void 0:i.x),rz(t.y,e,rY,null==n?void 0:n.y,null==i?void 0:i.y)}function rq(t){return 0===t.translate&&1===t.scale}function rZ(t){return rq(t.x)&&rq(t.y)}function rG(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function rK(t){return iR(t.x)/iR(t.y)}class r_{constructor(){this.members=[]}add(t){$(this.members,t),t.scheduleRender()}remove(t){if(H(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let t=n;t>=0;t--){let n=this.members[t];if(!1!==n.isPresent){e=n;break}}return!!e&&(this.promote(e),!0)}promote(t,e){var n;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),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var e,n,i,r,o;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(o=null===(i=t.resumingFrom)||void 0===i?void 0:(r=i.options).onExitComplete)||void 0===o||o.call(r)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rJ(t,e,n){let i="",r=t.x.translate/e.x,o=t.y.translate/e.y;if((r||o)&&(i=`translate3d(${r}px, ${o}px, 0) `),(1!==e.x||1!==e.y)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){let{rotate:t,rotateX:e,rotateY:r}=n;t&&(i+=`rotate(${t}deg) `),e&&(i+=`rotateX(${e}deg) `),r&&(i+=`rotateY(${r}deg) `)}let s=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==s||1!==a)&&(i+=`scale(${s}, ${a})`),i||"none"}let rQ=(t,e)=>t.depth-e.depth;class r0{constructor(){this.children=[],this.isDirty=!1}add(t){$(this.children,t),this.isDirty=!0}remove(t){H(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rQ),this.isDirty=!1,this.children.forEach(t)}}let r1=["","X","Y","Z"],r5=0;function r2({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(t,n={},i=null==e?void 0:e()){this.id=r5++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(r6),this.nodes.forEach(oe),this.nodes.forEach(on)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new r0)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new z),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let n=this.eventHandlers.get(t);null==n||n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){var i;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:o,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),null===(i=this.parent)||void 0===i||i.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(o||r)&&(this.isLayoutDirty=!0),t){let n;let i=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=eE(i,250),ni.hasAnimatedSinceResize&&(ni.hasAnimatedSinceResize=!1,this.nodes.forEac
9h(ot))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||o)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{var r,o,a,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let h=null!==(o=null!==(r=this.options.transition)&&void 0!==r?r:s.getDefaultTransition())&&void 0!==o?o:ol,{onLayoutAnimationStart:c,onLayoutAnimationComplete:d}=s.getProps(),p=!this.targetLayout||!rG(this.targetLayout,i)||n,f=!e&&n;if((null===(a=this.resumeFrom)||void 0===a?void 0:a.instance)||f||e&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,f);let e={...e$(h,"layout"),onPlay:c,onComplete:d};s.shouldReduceMotion&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||ot(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=i})}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,F.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;!this.isUpdateBlocked()&&(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(oi),this.animationId++)}willUpdate(t=!0){var e,n,i;if(this.root.isUpdateBlocked()){null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e);return}if(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")}let{layoutId:r,layout:o}=this.options;if(void 0===r&&!o)return;let s=null===(i=this.options.visualElement)||void 0===i?void 0:i.getProps().transformTemplate;this.prevTransformTemplateValue=null==s?void 0:s(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r8);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ou),this.potentialNodes.clear()),this.nodes.forEach(r7),this.nodes.forEach(r3),this.nodes.forEach(r9),this.clearAllSnapshots(),j.update(),j.preRender(),j.render())}clearAllSnapshots(){this.nodes.forEach(r4),this.sharedNodes.forEach(or)}scheduleUpdateProjection(){O.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){O.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;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 e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iW(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(t=this.options.visualElement)||void 0===t||t.notify("LayoutMeasure",this.layout.layoutBox,null==e?void 0:e.layoutBox)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){var t;if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!rZ(this.projectionDelta),i=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,o=null==i?void 0:i(this.latestValues,""),s=o!==this.prevTransformTemplateValue;e&&(n||iG(this.latestValues)||s)&&(r(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let n=this.measurePageBox(),i=this.removeElementScroll(n);return t&&(i=this.removeTransform(i)),oh((e=i).x),oh(e.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return iW();let e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(i1(e.x,n.offset.x),i1(e.y,n.offset.y)),e}removeElementScroll(t){let e=iW();r$(e,t);for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:o}=i;if(i!==this.root&&r&&o.layoutScroll){if(r.isRoot){r$(e,t);let{scroll:n}=this.root;n&&(i1(e.x,-n.offset.x),i1(e.y,-n.offset.y))}i1(e.x,r.offset.x),i1(e.y,r.offset.y)}}return e}applyTransform(t,e=!1){let n=iW();r$(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&i9(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),iG(i.latestValues)&&i9(n,i.latestValues)}return iG(this.latestValues)&&i9(n,this.latestValues),n}removeTransform(t){var e;let n=iW();r$(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iG(i.latestValues))continue;iZ(i.latestValues)&&i.updateSnapshot();let r=iW();r$(r,i.measurePageBox()),rX(n,i.latestValues,null===(e=i.snapshot)||void 0===e?void 0:e.layoutBox,r)}return iG(this.latestValues)&&rX(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}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}resolveTargetDelta(){var t,e,n,i;let r=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;let{layout:o,layoutId:s}=this.options;if(this.layout&&(o||s)){if(!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget=iW(),this.relativeTargetOrigin=iW(),iF(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),r$(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if((this.relativeTarget||this.targetDelta)&&((this.target||(this.target=iW(),this.targetWithTransforms=iW()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target))?(e=this.target,n=this.relativeTarget,i=this.relativeParent.target,iB(e.x,n.x,i.x),iB(e.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):r$(this.target,this.layout.layoutBox),iQ(this.target,this.targetDelta)):r$(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget=iW(),this.relativeTargetOrigin=iW(),iF(this.relativeTargetOrigin,this.target,t.target),r$(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||iZ(this.parent.latestValues)||iK(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;let{isProjectionDirty:e,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;let i=this.getLead(),r=!!this.resumingFrom||this!==i,o=!0;if(e&&(o=!1),r&&n&&(o=!1),o)return;let{layout:s,layoutId:a}=this.options;if(this.isTreeAnimating=!!((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||a))return;r$(this.layoutCorrected,this.layout.layoutBox),function(t,e,n,i=!1){var r,o;let s,a;let l=n.length;if(l){e.x=e.y=1;for(let u=0;u<l;u++)a=(s=n[u]).projectionDelta,(null===(o=null===(r=s.instance)||void 0===r?void 0:r.style)||void 0===o?void 0:o.display)!=="contents"&&(i&&s.options.layoutScroll&&s.scroll&&s!==s.root&&i9(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,iQ(t,a)),i&&iG(s.latestValues)&&i9(t,s.latestValues));e.x=i0(e.x),e.y=i0(e.y)}}(this.layoutCorrected,this.treeScale,this.path,r);let{target:l}=i;if(!l)return;this.projectionDelta||(this.projectionDelta=iH(),this.projectionDeltaWithTransform=iH());let u=this.treeScale.x,h=this.treeScale.y,c=this.projectionTransform;iD(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=rJ(this.projectionDelta,this.treeScale),(this.projectionTransform!==c||this.treeScale.x!==u||this.treeScale.y!==h)&&
9(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,n,i;null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(i=this.getStack())||void 0===i||i.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var n,i;let r=this.snapshot,o=(null==r?void 0:r.latestValues)||{},s={...this.latestValues},a=iH();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;let l=iW(),u=(null==r?void 0:r.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),h=1>=((null===(i=this.getStack())||void 0===i?void 0:i.members.length)||0),c=!!(u&&!h&&!0===this.options.crossfade&&!this.path.some(oa));this.animationProgress=0,this.mixTargetDelta=e=>{var n,i,r;let d=e/1e3;oo(a.x,t.x,d),oo(a.y,t.y,d),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(iF(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i=this.relativeTarget,r=this.relativeTargetOrigin,os(i.x,r.x,l.x,d),os(i.y,r.y,l.y,d)),u&&(this.animationValues=s,function(t,e,n,i,r,o){r?(t.opacity=tB(0,void 0!==n.opacity?n.opacity:1,rj(i)),t.opacityExit=tB(void 0!==e.opacity?e.opacity:1,0,rI(i))):o&&(t.opacity=tB(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let r=0;r<rD;r++){let o=`border${rL[r]}Radius`,s=rF(e,o),a=rF(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||rO(s)===rO(a)?(t[o]=Math.max(tB(rB(s),rB(a),i),0),(tC.test(a)||tC.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=tB(e.rotate||0,n.rotate||0,i))}(s,o,this.latestValues,d,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=d},this.mixTargetDelta(0)}startAnimation(t){var e,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(F.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=O.update(()=>{ni.hasAnimatedSinceResize=!0,this.currentAnimation=eW(0,1e3,{...t,onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:n,layout:i,latestValues:r}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&oc(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||iW();let e=iR(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let i=iR(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}r$(e,n),i9(e,r),iD(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){var n,i,r;this.sharedNodes.has(t)||this.sharedNodes.set(t,new r_),this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(r=null===(i=e.options.initialPromotionConfig)||void 0===i?void 0:i.shouldPreserveFollowOpacity)||void 0===r?void 0:r.call(i,e)})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;let i={};for(let e=0;e<r1.length;e++){let r="rotate"+r1[e];n[r]&&(i[r]=n[r],t.setStaticValue(r,0))}for(let e in null==t||t.render(),i)t.setStaticValue(e,i[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,n,i;let r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";let o=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=nN(t.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=nN(t.pointerEvents)||""),this.hasProjected&&!iG(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}let a=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=rJ(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));let{x:l,y:u}=this.projectionDelta;for(let t in r.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,s.animationValues?r.opacity=s===this?null!==(i=null!==(n=a.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=s===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,nh){if(void 0===a[t])continue;let{correct:e,applyTo:n}=nh[t],i="none"===r.transform?a[t]:e(a[t],s);if(n){let t=n.length;for(let e=0;e<t;e++)r[n[e]]=i}else r[t]=i}return this.options.layoutId&&(r.pointerEvents=s===this?nN(t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
9resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(r8),this.root.sharedNodes.clear()}}}function r3(t){t.updateLayout()}function r9(t){var e,n,i;let r=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:i}=t.options,o=r.source!==t.layout.source;"size"===i?iY(t=>{let n=o?r.measuredBox[t]:r.layoutBox[t],i=iR(n);n.min=e[t].min,n.max=n.min+i}):oc(i,r.layoutBox,e)&&iY(t=>{let n=o?r.measuredBox[t]:r.layoutBox[t],i=iR(e[t]);n.max=n.min+i});let s=iH();iD(s,e,r.layoutBox);let a=iH();o?iD(a,t.applyTransform(n,!0),r.measuredBox):iD(a,e,r.layoutBox);let l=!rZ(s),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:t,layout:i}=n;if(t&&i){let n=iW();iF(n,r.layoutBox,t.layoutBox);let o=iW();iF(o,e,i.layoutBox),rG(n,o)||(u=!0)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:r,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else t.isLead()&&(null===(i=(n=t.options).onExitComplete)||void 0===i||i.call(n));t.options.transition=void 0}function r6(t){t.isProjectionDirty||(t.isProjectionDirty=!!(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=!!(t.parent&&t.parent.isTransformDirty))}function r4(t){t.clearSnapshot()}function r8(t){t.clearMeasurements()}function r7(t){let{visualElement:e}=t.options;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ot(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function oe(t){t.resolveTargetDelta()}function on(t){t.calcProjection()}function oi(t){t.resetRotation()}function or(t){t.removeLeadSnapshot()}function oo(t,e,n){t.translate=tB(e.translate,0,n),t.scale=tB(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function os(t,e,n,i){t.min=tB(e.min,n.min,i),t.max=tB(e.max,n.max,i)}function oa(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ol={duration:.45,ease:[.4,0,.1,1]};function ou(t,e){let n=t.root;for(let e=t.path.length-1;e>=0;e--)if(t.path[e].instance){n=t.path[e];break}
9let i=(n&&n!==t.root?n.instance:document).querySelector(`[data-projection-id="${e}"]`);i&&t.mount(i,!0)}function oh(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function oc(t,e,n){return"position"===t||"preserve-aspect"===t&&!ik(rK(e),rK(n),.2)}let od=r2({attachResizeListener:(t,e)=>nW(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),op={current:void 0},of=r2({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!op.current){let t=new od(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),op.current=t}return op.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),om={...iP,...it,...rt,measureLayout:function(t){let[e,n]=ie(),i=(0,T.useContext)(eJ);return T.createElement(rR,{...t,layoutGroup:i,switchLayoutGroup:(0,T.useContext)(ns),isPresent:e,safeToRemove:n})}},ov=function(t){function e(e,n={}){return function({preloadedFeatures:t,createVisualElement:e,projectionNodeConstructor:n,useRender:i,useVisualState:r,Component:o}){t&&function(t){for(let e in t)"projectionNodeConstructor"===e?nn.projectionNodeConstructor=t[e]:nn[e].Component=t[e]}(t);let s=(0,T.forwardRef)(function(s,a){var l;let u={...(0,T.useContext)(Z),...s,layoutId:function({layoutId:t}){let e=(0,T.useContext)(eJ).id;return e&&void 0!==t?e+"-"+t:t}(s)},{isStatic:h}=u,c=null,d=function(t){let{initial:e,animate:n}=function(t,e){if(e8(t)){let{initial:e,animate:n}=t;return{initial:!1===e||e9(e)?e:void 0,animate:e9(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,T.useContext)(e5));return(0,T.useMemo)(()=>({initial:e,animate:n}),[nt(e),nt(n)])}(s),p=h?void 0:G(()=>{if(ni.hasEverUpdated)return nr++}),f=r(s,h);if(!h&&_){d.visualElement=function(t,e,n,i){let r=(0,T.useContext)(e5).visualElement,o=(0,T.useContext)(e2),s=(0,T.useContext)(eq),a=(0,T.useContext)(Z).reducedMotion,l=(0,T.useRef)();i=i||o.renderer,!l.current&&i&&(l.current=i(t,{visualState:e,parent:r,props:n,presenceId:s?s.id:void 0,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:a}));let u=l.current;return eY(()=>{u&&u.render()}),eY(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}(o,f,u,e);let i=(0,T.useContext)(e2).strict,r=(0,T.useContext)(ns);d.visualElement&&(c=d.visualElement.loadFeatures(u,i,t,p,n||nn.projectionNodeConstructor,r))}return T.createElement(no,{visualElement:d.visualElement,props:u},c,T.createElement(e5.Provider,{value:d},i(o,s,p,(l=d.visualElement,(0,T.useCallback)(t=>{t&&f.mount&&f.mount(t),l&&(t?l.mount(t):l.unmount()),a&&("function"==typeof a?a(t):e3(a)&&(a.current=t))},[l])),f,h,d.visualElement)))});return s[na]=o,s}(t(e,n))}if("undefined"==typeof Proxy)return e;let n=new Map;return new Proxy(e,{get:(t,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},n,i,r){return{...nu(t)?nH:nz,preloadedFeatures:n,useRender:function(t=!1){return(e,n,i,r,{latestValues:o},s)=>{let a=(nu(e)?function(t,e,n,i){let r=(0,T.useMemo)(()=>{let n=nV();return nC(n,e,{enableHardwareAcceleration:!1},nM(i),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};nb(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e,n){let i={},r=function(t,e,n){let i=t.style||{},r={};return nb(r,i,t),Object.assign(r,function({transformTemplate:t},e,n){return(0,T.useMemo)(()=>{let i=nx();return ny(i,e,{enableHardwareAcceleration:!n},t),Object.assign({},i.vars,i.style)},[e])}(t,e,n)),t.transformValues?t.transformValues(r):r}(t,e,n);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),i.style=r,i})(n,o,s,e),l={...function(t,e,n){let i={};for(let r in t)(nP(r)||!0===n&&nE(r)||!e&&!nE(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}(n,"string"==typeof e,t),...a,ref:r},{children:u}=n,h=(0,T.useMemo)(()=>ez(u)?u.get():u,[u]);return i&&(l["data-projection-id"]=i),(0,T.createElement)(e,{...l,children:h})}}(e),createVisualElement:i,projectionNodeConstructor:r,Component:t}})(t,e,om,rT,of)),og=t=>"object"==typeof t&&t.mix,oy=t=>og(t)?t.mix:void 0;function ox(t,e,n,i){let r="function"==typeof e?e:function(...t){let e=!Array.isArray(t[0]),n=e?0:-1,i=t[0+n],r=t[1+n],o=t[2+n],s=t[3+n],a=t5(r,o,{mixer:oy(o[0]),...s});return e?a(i):a}(e,n,i);return Array.isArray(t)?ob(t,r):ob([t],([t])=>r(t))}function ob(t,e){let n=G(()=>[]);return function(t,e){let n=K(e()),i=()=>n.set(e());return i(),eY(()=>{let e=()=>O.update(i,!1,!0),n=t.map(t=>t.on("change",e));return()=>
9{n.forEach(t=>t()),F.update(i)}}),n}(t,()=>{n.length=0;let i=t.length;for(let e=0;e<i;e++)n[e]=t[e].get();return e(n)})}function ow(){return(ow=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function oE(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}var oP="calc(100% - env(safe-area-inset-top) - 34px)",oA="undefined"==typeof window,oT={stiffness:300,damping:30,mass:.2};function oS(t,e){return t.reduce(function(t,n){return Math.abs(n-e)<Math.abs(t-e)?n:t})}var oC="react-modal-sheet-highlight";function oV(t){var e=document.querySelector("body"),n=document.getElementById(t),i=document.getElementById(oC);n&&i&&(n.style.removeProperty("border-top-right-radius"),n.style.removeProperty("border-top-left-radius"),n.style.removeProperty("transform"),i.style.opacity="0",n.addEventListener("transitionend",function t(){var r;n.style.removeProperty("overflow"),n.style.removeProperty("will-change"),n.style.removeProperty("transition"),e.style.removeProperty("background-color"),n.removeEventListener("transitionend",t),null==(r=i.parentNode)||r.removeChild(i)}))}function oM(t){var e=t.snapTo,n=t.sheetHeight;return e<0&&console.warn("Snap point is out of bounds. Sheet height is "+n+" but snap point is "+(n+Math.abs(e))+"."),Math.max(Math.round(e),0)}var oR=oA?l.useEffect:l.useLayoutEffect,ok=function(t,e){var n=oD(t);(0,l.useEffect)(function(){e&&!n&&t?function(t){var e=document.querySelector("body"),n=document.querySelector("#"+t);if(n){var i=window.innerHeight;e.style.backgroundColor="#000",n.style.overflow="hidden",n.style.willChange="transform",n.style.transition="transform 200ms linear",n.style.transform="translateY(calc(env(safe-area-inset-top) + 12px)) scale("+(i-24)/i+")",n.style.borderTopRightRadius="10px",n.style.borderTopLeftRadius="10px";var r=document.createElement("div");r.setAttribute("aria-hidden","true"),r.id=oC,r.style.position="absolute",r.style.top="0px",r.style.left="0px",r.style.bottom="0px",r.style.right="0px",r.style.opacity="0",r.style.transition="opacity 200ms linear",r.style.backgroundColor="rgba(150, 150, 150, 0.1)",n.appendChild(r),requestAnimationFrame(function(){return r.style.opacity="1"})}}(e):e&&!t&&n&&oV(e)},[t,n]),(0,l.useEffect)(function(){return function(){e&&t&&oV(e)}},[t])},oL=function(t,e){var n=oD(t),i=(0,l.useRef)(!1),r=(0,l.useCallback)(function(){i.current?(null==e.current.onCloseEnd||e.current.onCloseEnd(),i.current=!1):(null==e.current.onOpenEnd||e.current.onOpenEnd(),i.current=!0)},[t,n]);return(0,l.useEffect)(function(){!n&&t?null==e.current.onOpenStart||e.current.onOpenStart():!t&&n&&(null==e.current.onCloseStart||e.current.onCloseStart())},[t,n]),{handleAnimationComplete:r}};function oD(t){var e=(0,l.useRef)();return(0,l.useEffect)(function(){e.current=t}),e.current}function oB(t){var e=(0,l.useRef)();return oR(function(){e.current=t}),(0,l.useCallback)(function(){for(var t=e.current,n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return null==t?void 0:t.apply(void 0,i)},[])}var oO=(0,l.createContext)(void 0),oF=function(){var t=(0,l.useContext)(oO);if(!t)throw Error("Sheet context error");return t},oj={wrapper:{position:"fixed",top:0,bottom:0,left:0,right:0,zIndex:9999999,overflow:"hidden",pointerEvents:"none"},backdrop:{zIndex:1,position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(51, 51, 51, 0.5)",touchAction:"none",border:"none"},container:{zIndex:2,position:"absolute",left:0,bottom:0,width:"100%",backgroundColor:"#fff",borderTopRightRadius:"8px",borderTopLeftRadius:"8px",boxShadow:"0px -2px 16px rgba(0, 0, 0, 0.3)",display:"flex",flexDirection:"column",pointerEvents:"auto"},headerWrapper:{width:"100%"},header:{height:"40px",width:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"},indicator:{width:"18px",height:"4px",borderRadius:"99px",backgroundColor:"#ddd"},content:{flex:1,overflow:"auto",position:"relative"}}
9,oI=(0,l.forwardRef)(function(t,e){var n,i,r,o=t.onOpenStart,s=t.onOpenEnd,a=t.onClose,h=t.onCloseStart,f=t.onCloseEnd,m=t.onSnap,v=t.children,y=t.isOpen,b=t.snapPoints,S=t.rootId,C=t.mountPoint,V=t.style,M=t.detent,R=void 0===M?"full-height":M,k=t.initialSnap,L=void 0===k?0:k,D=t.springConfig,B=t.disableDrag,O=void 0!==B&&B,F=t.prefersReducedMotion,j=oE(t,["onOpenStart","onOpenEnd","onClose","onCloseStart","onCloseEnd","onSnap","children","isOpen","snapPoints","rootId","mountPoint","style","detent","initialSnap","springConfig","disableDrag","prefersReducedMotion"]),I=(0,l.useRef)(null),U=K(0),N=(i=(n=(0,l.useState)(0))[0],r=n[1],oR(function(){var t=function(){return r(window.innerHeight)};return window.addEventListener("resize",t),t(),function(){return window.removeEventListener("resize",t)}},[]),i),$=function(){Q.current||tt();let[t]=(0,T.useState)(J.current);return t}(),H=!!(void 0!==F&&F||$),z=H?{type:"tween",duration:.01}:ow({type:"spring"},void 0===D?oT:D),W=K(0),Y=(0,l.useRef)({onOpenStart:o,onOpenEnd:s,onCloseStart:h,onCloseEnd:f});oR(function(){Y.current={onOpenStart:o,onOpenEnd:s,onCloseStart:h,onCloseEnd:f}}),b&&console.assert(function(t){for(var e=0;e<t.length;e++)if(t[e+1]>t[e])return!1;return!0}(b=b.map(function(t){return t>0&&t<=1?Math.round(t*N):t<0?N+t:t}))||0===N,"Snap points need to be in descending order got: ["+b+"]");var X=oB(function(t,e){var n=e.delta,i=W.getVelocity();i>0&&U.set(10),i<0&&U.set(-10),W.set(Math.max(W.get()+n.y,0))}),q=oB(function(t,e){if(e.velocity.y>500)a();else{var n=I.current.getBoundingClientRect().height,i=W.get(),r=0;if(b){var o=b.map(function(t){return n-t}).filter(function(t){return t>=0});"content-height"!==R||o.includes(0)||o.unshift(0),r=oS(o,i)}else i/n>.6&&(r=n);if(eW(W,r=oM({snapTo:r,sheetHeight:n}),z),b&&m){var s=Math.abs(Math.round(b[0]-r));m(b.indexOf(oS(b,s)))}r>=n&&a()}U.set(0)});(0,l.useEffect)(function(){b&&m&&m(y?L:b.length-1)},[y]),(0,l.useImperativeHandle)(e,function(){return{y:W,snapTo:function(t){var e=I.current;if(b&&void 0!==b[t]&&null!==e){var n=e.getBoundingClientRect().height,i=oM({snapTo:n-b[t],sheetHeight:n});eW(W,i,z),m&&m(t),i>=n&&a()}}}}),ok(y,S),function(t={}){let{isDisabled:e}=t;c(()=>{if(!e){let t,e,n,i,r,o;if(!(p(/^iPhone/i)||p(/^iPad/i)||p(/^Mac/i)&&navigator.maxTouchPoints>1))return d(w(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),w(document.documentElement,"overflow","hidden"));return e=0,n=window.pageXOffset,i=window.pageYOffset,r=d(w(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),w(document.documentElement,"overflow","hidden"),w(document.body,"marginTop",`-${i}px`)),window.scrollTo(0,0),o=d(E(document,"touchstart",n=>{((t=g(n.target))!==document.documentElement||t!==document.body)&&(e=n.changedTouches[0].pageY)},{passive:!1,capture:!0}),E(document,"touchmove",n=>{if(t===document.documentElement||t===document.body){n.preventDefault();return}let i=n.changedTouches[0].pageY,r=t.scrollTop,o=t.scrollHeight-t.clientHeight;(r<=0&&i>e||r>=o&&i<e)&&n.preventDefault(),e=i},{passive:!1,capture:!0}),E(document,"touchend",t=>{let e=t.target;A(e)&&e!==document.activeElement&&(t.preventDefault(),e.style.transform="translateY(-2000px)",e.focus(),requestAnimationFrame(()=>{e.style.transform=""}))},{passive:!1,capture:!0}),E(document,"focus",t=>{let e=t.target;A(e)&&(e.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{e.style.transform="",x&&(x.height<window.innerHeight?requestAnimationFrame(()=>{P(e)}):x.addEventListener("resize",()=>P(e),{once:!0}))}))},!0),E(window,"scroll",()=>{window.scrollTo(0,0)})),()=>{r(),o(),window.scrollTo(n,i)}}},[e])}({isDisabled:!y});var Z=(0,l.useMemo)(function(){return O?void 0:{drag:"y",dragElastic:0,dragConstraints:{top:0,bottom:0},dragMomentum:!1,onDrag:X,onDragEnd:q}},[O]),G={y:W,sheetRef:I,isOpen:y,initialSnap:L,snapPoints:b,detent:R,indicatorRotation:U,callbacks:Y,dragProps:Z,windowHeight:N,animationOptions:z,reduceMotion:H},_=(0,l.createElement)(oO.Provider,{value:G},(0,l.createElement)("div",Object.assign({},j,{ref:e,style:ow({},oj.wrapper,V)}),(0,l.createElement)(e1,null,y?l.Children.map(v,function(t,e){return(0,l.cloneElement)(t,{key:"sheet-child-"+e})}):null)));return oA?_:(0,u.createPortal)(_,null!=C?C:document.body)}),oU=(0,l.forwardRef)(function(t,e){var n,i=t.children,r=t.style,o=t.className,s=oE(t,["children","style","className"]),a=oF(),u=a.y,h=a.isOpen,c=a.callbacks,d=a.snapPoints,p=a.initialSnap,f=a.sheetRef,m=a.windowHeight,v=a.detent,g=a.animationOptions,y=a.reduceMotion,x=oL(h,c).handleAnimationComplete,b=d?d[0]-d[void 0===p?0:p]:0,w=d?d[0]:null,E=null!==w?"min("+w+"px, "+oP+")":oP;return(0,l.createElement)(ov.div,Object.assign({}
9,s,{ref:(n=[f,e],function(t){n.forEach(function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)})}),className:"react-modal-sheet-container "+(void 0===o?"":o),style:ow({},oj.container,void 0===r?{}:r,"full-height"===v&&{height:E},"content-height"===v&&{maxHeight:E},{y:u}),initial:!y&&{y:m},animate:{y:b,transition:g},exit:{y:m,transition:g},onAnimationComplete:x}),i)}),oN=(0,l.forwardRef)(function(t,e){var n=t.children,i=t.style,r=t.disableDrag,o=t.className,s=oE(t,["children","style","disableDrag","className"]),a=oF().dragProps;return(0,l.createElement)(ov.div,Object.assign({},s,{ref:e,className:"react-modal-sheet-content "+(void 0===o?"":o),style:ow({},oj.content,i)},r?void 0:a),n)}),o$=(0,l.forwardRef)(function(t,e){var n=t.children,i=t.style,r=t.disableDrag,o=oE(t,["children","style","disableDrag"]),s=oF(),a=s.indicatorRotation,u=s.dragProps,h=ox(a,function(t){return"translateX(2px) rotate("+t+"deg)"}),c=ox(a,function(t){return"translateX(-2px) rotate("+-1*t+"deg)"});return(0,l.createElement)(ov.div,Object.assign({},o,{ref:e,style:ow({},oj.headerWrapper,i)},r?void 0:u),n||(0,l.createElement)("div",{className:"react-modal-sheet-header",style:oj.header},(0,l.createElement)(ov.span,{className:"react-modal-sheet-drag-indicator",style:ow({},oj.indicator,{transform:h})}),(0,l.createElement)(ov.span,{className:"react-modal-sheet-drag-indicator",style:ow({},oj.indicator,{transform:c})})))}),oH=function(t){return!!t.onClick||!!t.onTap},oz=(0,l.forwardRef)(function(t,e){var n=t.style,i=t.className,r=oE(t,["style","className"]),o=oH(r)?ov.button:ov.div,s=oH(r)?"auto":"none";return(0,l.createElement)(o,Object.assign({},r,{ref:e,className:"react-modal-sheet-backdrop "+(void 0===i?"":i),style:ow({},oj.backdrop,void 0===n?{}:n,{pointerEvents:s}),initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0}}))});oI.Container=oU,oI.Header=o$,oI.Content=oN,oI.Backdrop=oz;var oW=oI}}]);
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.