PageSourceSearch

https://www.vidduo.com/_next/static/chunks/278-c0fb793472613f40.js?dpl=dpl_9M3yayCN1noifzyPJPLM4SPekSfF

js vidduo.com collected 2026-10-08 04:20:23 UTC 148,965 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[278],{13555:(t,e,i)=>{i.d(e,{i:()=>a});var n,r=i(47342),s=i(84233),o=(n||(n=i.t(r,2)))[" useInsertionEffect ".trim().toString()]||s.N;function a({prop:t,defaultProp:e,onChange:i=()=>{},caller:n}){let[s,a,l]=function({defaultProp:t,onChange:e}){let[i,n]=r.useState(t),s=r.useRef(i),a=r.useRef(e);return o(()=>{a.current=e},[e]),r.useEffect(()=>{s.current!==i&&(a.current?.(i),s.current=i)},[i,s]),[i,n,a]}({defaultProp:e,onChange:i}),u=void 0!==t,h=u?t:s;{let e=r.useRef(void 0!==t);r.useEffect(()=>{let t=e.current;if(t!==u){let e=u?"controlled":"uncontrolled";console.warn(`${n} is changing from ${t?"controlled":"uncontrolled"} to ${e}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}e.current=u},[u,n])}return[h,r.useCallback(e=>{if(u){let i="function"==typeof e?e(t):e;i!==t&&l.current?.(i)}else a(e)},[u,t,a,l])]}Symbol("RADIX:SYNC_STATE")},14541:(t,e,i)=>{i.d(e,{N:()=>g});var n=i(41470),r=i(47342),s=i(98500),o=i(81022),a=i(43413);class l extends r.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 u(t){let{children:e,isPresent:i}=t,s=(0,r.useId)(),o=(0,r.useRef)(null),u=(0,r.useRef)({width:0,height:0,top:0,left:0}),{nonce:h}=(0,r.useContext)(a.Q);return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:r}=u.current;if(i||!o.current||!t||!e)return;o.current.dataset.motionPopId=s;let a=document.createElement("style");return h&&(a.nonce=h),document.head.appendChild(a),a.sheet&&a.sheet.insertRule('\n          [data-motion-pop-id="'.concat(s,'"] {\n            position: absolute !important;\n            width: ').concat(t,"px !important;\n            height: ").concat(e,"px !important;\n            top: ").concat(n,"px !important;\n            left: ").concat(r,"px !important;\n          }\n        ")),()=>{document.head.removeChild(a)}},[i]),(0,n.jsx)(l,{isPresent:i,childRef:o,sizeRef:u,children:r.cloneElement(e,{ref:o})})}let h=t=>{let{children:e,initial:i,isPresent:a,onExitComplete:l,custom:h,presenceAffectsLayout:c,mode:p}=t,m=(0,o.M)(d),f=(0,r.useId)(),v=(0,r.useCallback)(t=>
1{for(let e of(m.set(t,!0),m.values()))if(!e)return;l&&l()},[m,l]),g=(0,r.useMemo)(()=>({id:f,initial:i,isPresent:a,custom:h,onExitComplete:v,register:t=>(m.set(t,!1),()=>m.delete(t))}),c?[Math.random(),v]:[a,v]);return(0,r.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[a]),r.useEffect(()=>{a||m.size||!l||l()},[a]),"popLayout"===p&&(e=(0,n.jsx)(u,{isPresent:a,children:e})),(0,n.jsx)(s.t.Provider,{value:g,children:e})};function d(){return new Map}var c=i(71234),p=i(92576);let m=t=>t.key||"";function f(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}var v=i(78207);let g=t=>{let{children:e,exitBeforeEnter:i,custom:s,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:d="sync"}=t;(0,p.V)(!i,"Replace exitBeforeEnter with mode='wait'");let g=(0,r.useMemo)(()=>f(e),[e]),y=g.map(m),x=(0,r.useRef)(!0),w=(0,r.useRef)(g),b=(0,o.M)(()=>new Map),[T,P]=(0,r.useState)(g),[S,E]=(0,r.useState)(g);(0,v.E)(()=>{x.current=!1,w.current=g;for(let t=0;t<S.length;t++){let e=m(S[t]);y.includes(e)?b.delete(e):!0!==b.get(e)&&b.set(e,!1)}},[S,y.length,y.join("-")]);let C=[];if(g!==T){let t=[...g];for(let e=0;e<S.length;e++){let i=S[e],n=m(i);y.includes(n)||(t.splice(e,0,i),C.push(i))}"wait"===d&&C.length&&(t=C),E(f(t)),P(g);return}let{forceRender:A}=(0,r.useContext)(c.L);return(0,n.jsx)(n.Fragment,{children:S.map(t=>{let e=m(t),i=g===S||y.includes(e);return(0,n.jsx)(h,{isPresent:i,initial:(!x.current||!!a)&&void 0,custom:i?void 0:s,presenceAffectsLayout:u,mode:d,onExitComplete:i?void 0:()=>{if(!b.has(e))return;b.set(e,!0);let t=!0;b.forEach(e=>{e||(t=!1)}),t&&(null==A||A(),E(w.current),l&&l())},children:t},e)})})}},18141:(t,e,i)=>{i.d(e,{l:()=>n});let n=t=>t},21578:(t,e,i)=>{i.d(e,{s:()=>o,t:()=>s});var n=i(47342);function r(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function s(...t){return e=>{let i=!1,n=t.map(t=>{let n=r(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():r(t[e],null)}}}}function o(...t){return n.useCallback(s(...t),t)}},35374:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(75384).A)("Shuffle",[["path",{d:"M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22",key:"1wmou1"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 6h1.9c1.5 0 2.9.9 3.6 2.2",key:"10bdb2"}],["path",{d:"M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8",key:"vgxac0"}],["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}]])},37807:(t,e,i)=>{i.d(e,{B:()=>l});var n,r=i(47342),s=i(84233),o=(n||(n=i.t(r,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function l(t){let[e,i]=r.useState(o());return(0,s.N)(()=>{t||i(t=>t??String(a++))},[t]),t||(e?`radix-${e}`:"")}},43244:(t,e,i)=>{var n=i(22076);i.o(n,"permanentRedirect")&&i.d(e,{permanentRedirect:function(){return n.permanentRedirect}}),i.o(n,"redirect")&&i.d(e,{redirect:function(){return n.redirect}}),i.o(n,"useParams")&&i.d(e,{useParams:function(){return n.useParams}}),i.o(n,"usePathname")&&i.d(e,{usePathname:function(){return n.usePathname}}),i.o(n,"useRouter")&&i.d(e,{useRouter:function(){return n.useRouter}}),i.o(n,"useSearchParams")&&i.d(e,{useSearchParams:function(){return n.useSearchParams}})},43413:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(47342).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},45338:(t,e,i)=>{let n;function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}i.d(e,{P:()=>sp});let s=t=>Array.isArray(t);function o(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function a(t){return"string"==typeof t||Array.isArray(t)}function l(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function u(t,e,i,n){if("function"==typeof e){let[r,s]=l(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=l(n);e=e(void 0!==i?i:t.custom,r,s)}return e}function h(t,e,i){let n=t.getProps();return u(n,e,void 0!==i?i:n.custom,t)}let d=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],c=["initial",...d],p=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],m=new Set(p),f=t=>1e3*t,v=t=>t/1e3,g={type:"spring",stiffness:500,damping:25,restSpeed:10},y=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),x={type:"keyframes",duration:.8},w={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},b=(t,{keyframes:e})=>e.length>2?x:m.has(t)?t.startsWith("scale")?y(e[1]):g:w;function T(t,e){return t?t[e]||t.default||t:void 0}let P={skipAnimations:!1,useManualTiming:!1},S={current:!1},E=t=>null!==t;function C(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(E),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return s&&void 0!==n?n:r[s]}var A,k,M=i(18141);let R=["read","resolveKeyframes","update","preRender","render","postRender"];function D(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=R.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&n?e:i;return r&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0,[e,i]=[i,e],e.forEach(a),e.clear(),n=!1,r&&(r=!1,l.process(t))}};return l}(s),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:d,postRender:c}=o,p=()=>{let s=P.useManualTiming?r.timestamp:performance.now();i=!1,r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),d.process(r),c.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(p))},m=()=>{i=!0,n=!0,r.isProcessing||t(p)};return{schedule:R.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,r=!1)=>(i||m(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<R.length;e++)o[R[e]].cancel(t)},state:r,steps:o}}
1let{schedule:L,cancel:V,state:B,steps:j}=D("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:M.l,!0),N=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function I(t,e,i,n){if(t===e&&i===n)return M.l;let r=e=>(function(t,e,i,n,r){let s,o,a=0;do(s=N(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:N(r(t),e,n)}let O=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,F=t=>e=>1-t(1-e),_=I(.33,1.53,.69,.99),U=F(_),W=O(U),$=t=>(t*=2)<1?.5*U(t):.5*(2-Math.pow(2,-10*(t-1))),q=t=>1-Math.sin(Math.acos(t)),z=F(q),H=O(q),Y=t=>/^0[^.\s]+$/u.test(t);var X=i(92576);let K=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),G=t=>e=>"string"==typeof e&&e.startsWith(t),Z=G("--"),Q=G("var(--"),J=t=>!!Q(t)&&tt.test(t.split("/*")[0].trim()),tt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,te=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ti=(t,e,i)=>i>e?e:i<t?t:i,tn={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tr={...tn,transform:t=>ti(0,1,t)},ts={...tn,default:1},to=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),ta=to("deg"),tl=to("%"),tu=to("px"),th=to("vh"),td=to("vw"),tc={...tl,parse:t=>tl.parse(t)/100,transform:t=>tl.transform(100*t)},tp=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tm=t=>t===tn||t===tu,tf=(t,e)=>parseFloat(t.split(", ")[e]),tv=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/u);if(r)return tf(r[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?tf(e[1],t):0}},tg=new Set(["x","y","z"]),ty=p.filter(t=>!tg.has(t)),tx={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:tv(4,13),y:tv(5,14)};tx.translateX=tx.x,tx.translateY=tx.y;let tw=t=>e=>e.test(t),tb=[tn,tu,tl,ta,td,th,{test:t=>"auto"===t,parse:t=>t}],tT=t=>tb.find(tw(t)),tP=new Set,tS=!1,tE=!1;function tC(){if(tE){let t=Array.from(tP).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return ty.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var n;null===(n=t.getValue(e))||void 0===n||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tE=!1,tS=!1,tP.forEach(t=>t.complete()),tP.clear()}function tA(){tP.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tE=!0)})}class tk{constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tP.add(this),tS||(tS=!0,L.read(tA),L.resolveKeyframes(tC))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r<t.length;r++)if(null===t[r])if(0===r){let r=null==n?void 0:n.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),tP.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tP.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let tM=t=>Math.round(1e5*t)/1e5,tR=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tD=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tL=(t,e)=>i=>!!("string"==typeof i&&tD.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tV=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(tR);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tB=t=>ti(0,255,t),tj={...tn,transform:t=>Math.round(tB(t))},tN={test:tL("rgb","red"),parse:tV("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tj.transform(t)+", "+tj.transform(e)+", "+tj.transform(i)+", "+tM(tr.transform(n))+")"},tI={test:tL("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alph
1a:r?parseInt(r,16)/255:1}},transform:tN.transform},tO={test:tL("hsl","hue"),parse:tV("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+tl.transform(tM(e))+", "+tl.transform(tM(i))+", "+tM(tr.transform(n))+")"},tF={test:t=>tN.test(t)||tI.test(t)||tO.test(t),parse:t=>tN.test(t)?tN.parse(t):tO.test(t)?tO.parse(t):tI.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tN.transform(t):tO.transform(t)},t_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tU="number",tW="color",t$=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tq(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(t$,t=>(tF.test(t)?(n.color.push(s),r.push(tW),i.push(tF.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(tU),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function tz(t){return tq(t).values}function tH(t){let{split:e,types:i}=tq(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===tU?r+=tM(t[s]):e===tW?r+=tF.transform(t[s]):r+=t[s]}return r}}let tY=t=>"number"==typeof t?0:t,tX={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(tR))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(t_))||void 0===i?void 0:i.length)||0)>0},parse:tz,createTransformer:tH,getAnimatableNone:function(t){let e=tz(t);return tH(t)(e.map(tY))}},tK=new Set(["brightness","contrast","saturate","opacity"]);function tG(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tR)||[];if(!n)return t;let r=i.replace(n,""),s=+!!tK.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let tZ=/\b([a-z-]*)\(.*?\)/gu,tQ={...tX,getAnimatableNone:t=>{let e=t.match(tZ);return e?e.map(tG).join(" "):t}},tJ={...tn,transform:Math.round},t0={borderWidth:tu,borderTopWidth:tu,borderRightWidth:tu,borderBottomWidth:tu,borderLeftWidth:tu,borderRadius:tu,radius:tu,borderTopLeftRadius:tu,borderTopRightRadius:tu,borderBottomRightRadius:tu,borderBottomLeftRadius:tu,width:tu,maxWidth:tu,height:tu,maxHeight:tu,top:tu,right:tu,bottom:tu,left:tu,padding:tu,paddingTop:tu,paddingRight:tu,paddingBottom:tu,paddingLeft:tu,margin:tu,marginTop:tu,marginRight:tu,marginBottom:tu,marginLeft:tu,backgroundPositionX:tu,backgroundPositionY:tu,rotate:ta,rotateX:ta,rotateY:ta,rotateZ:ta,scale:ts,scaleX:ts,scaleY:ts,scaleZ:ts,skew:ta,skewX:ta,skewY:ta,distance:tu,translateX:tu,translateY:tu,translateZ:tu,x:tu,y:tu,z:tu,perspective:tu,transformPerspective:tu,opacity:tr,originX:tc,originY:tc,originZ:tu,zIndex:tJ,size:tu,fillOpacity:tr,strokeOpacity:tr,numOctaves:tJ},t1={...t0,color:tF,backgroundColor:tF,outlineColor:tF,fill:tF,stroke:tF,borderColor:tF,borderTopColor:tF,borderRightColor:tF,borderBottomColor:tF,borderLeftColor:tF,filter:tQ,WebkitFilter:tQ},t2=t=>t1[t];function t5(t,e){let i=t2(t);return i!==tQ&&(i=tX),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let t3=new Set(["auto","none","0"]);class t4 extends tk{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&J(n=n.trim())){let r=function t(e,i,n=1){(0,X.V)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(t){let e=te.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${null!=i?i:n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return K(t)?parseFloat(t):t}return J(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!tp.has(i)||2!==t.length)return;let[n,r]=t,s=tT(n),o=tT(r);if(s!==o)if(tm(s)&&tm(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||Y(n))&&i.push(e)}if(i.length){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!t3.has(e)&&tq(e).values.length&&(n=t[r]),r++}if(n&&e)for(let r of i)t[r]=t5(e,n)}}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tx[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let s=n.length-1,o=n[s];n[s]=tx[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}function t9(t){return"function"==typeof t}function t7(){n=void 0}let t8={now:()=>(void 0===n&&t8.set(B.isProcessing||P.useManualTiming?B.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(t7)}},t6=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tX.test(t)||"0"===t)&&!t.startsWith("url("));class et{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=t8.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tA(),tC()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=t8.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:r,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=t6(r,e),a=t6(s,e);return(0,X.$)(o===a,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||t9(i))&&n)}(t,i,n,r))if(S.current||!s){null==a||a(C(t,this.options,e)),null==o||o(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}let ee=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n},ei=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=t(ee(0,r-1,e))+", ";return`linear(${n.substring(0,n.length-2)})`};function en(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}let er={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function es(t,e){return t*Math.sqrt(1-e*e)}function eo(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let ea=["duration","bounce"],el=["stiffness","damping","mass"];function eu(t,e){return e.some(e=>void 0!==t[e])}function eh(t=er.visualDuration,e=er.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:er.velocity,stiffness:er.stiffness,damping:er.damping,mass:er.mass,isResolvedFromDuration:!1,...t};if(!eu(t,el)&&eu(t,ea))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*ti(.05,1,1-t.bounce)*Math.sqrt(n);e={...e,mass:er.mass,stiffness:n,damping:r}}else{let i=function({duration:t=er.duration,bounce:e=er.bounce,velocity:i=er.velocity,mass:n=er.mass}){let r,s;(0,X.$)(t<=f(er.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=ti(er.minDamping,er.maxDamping,o),t=ti(er.minDuration,er.maxDuration,v(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/es(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=es(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=f(t),isNaN(a))return{stiffness:er.stiffness,damping:er.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:er.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-v(n.velocity||0)}),g=p||0,y=h/(2*Math.sqrt(u*d)),x=a-o,w=v(Math.sqrt(u/d)),b=5>Math.abs(x);if(r||(r=b?er.restSpeed.granular:er.restSpeed.default),s||(s=b?er.restDelta.granular:er.restDelta.default),y<1){let t=es(w,y);i=e=>a-Math.exp(-y*w*e)*((g+y*w*x)/t*Math.sin(t*e)+x*Math.cos(t*e))}else if(1===y)i=t=>
1a-Math.exp(-w*t)*(x+(g+w*x)*t);else{let t=w*Math.sqrt(y*y-1);i=e=>{let i=Math.exp(-y*w*e),n=Math.min(t*e,300);return a-i*((g+y*w*x)*Math.sinh(n)+t*x*Math.cosh(n))/t}}let T={calculatedDuration:m&&c||null,next:t=>{let e=i(t);if(m)l.done=t>=c;else{let n=0;y<1&&(n=0===t?f(g):en(i,t,e));let o=Math.abs(a-e)<=s;l.done=Math.abs(n)<=r&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(eo(T),2e4),e=ei(e=>T.next(t*e).value,t,30);return t+"ms "+e}};return T}function ed({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,g=i*e,y=p+g,x=void 0===o?y:o(y);x!==y&&(g=x-p);let w=t=>-g*Math.exp(-t/n),b=t=>x+w(t),T=t=>{let e=w(t),i=b(t);m.done=Math.abs(e)<=u,m.value=m.done?x:i},P=t=>{f(m.value)&&(d=t,c=eh({keyframes:[m.value,v(m.value)],velocity:en(b,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,T(t),P(t)),void 0!==d&&t>=d)?c.next(t-d):(e||T(t),m)}}}let ec=I(.42,0,1,1),ep=I(0,0,.58,1),em=I(.42,0,.58,1),ef=t=>Array.isArray(t)&&"number"!=typeof t[0],ev=t=>Array.isArray(t)&&"number"==typeof t[0],eg={linear:M.l,easeIn:ec,easeInOut:em,easeOut:ep,circIn:q,circInOut:H,circOut:z,backIn:U,backInOut:W,backOut:_,anticipate:$},ey=t=>{if(ev(t)){(0,X.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return I(e,i,n,r)}return"string"==typeof t?((0,X.V)(void 0!==eg[t],`Invalid easing type '${t}'`),eg[t]):t},ex=(t,e)=>i=>e(t(i)),ew=(...t)=>t.reduce(ex),eb=(t,e,i)=>t+(e-t)*i;function eT(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function eP(t,e){return i=>i>0?e:t}let eS=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},eE=[tI,tN,tO],eC=t=>eE.find(e=>e.test(t));function eA(t){let e=eC(t);if((0,X.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tO&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=eT(a,n,t+1/3),s=eT(a,n,t),o=eT(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let ek=(t,e)=>{let i=eA(t),n=eA(e);if(!i||!n)return eP(t,e);let r={...i};return t=>(r.red=eS(i.red,n.red,t),r.green=eS(i.green,n.green,t),r.blue=eS(i.blue,n.blue,t),r.alpha=eb(i.alpha,n.alpha,t),tN.transform(r))},eM=new Set(["none","hidden"]);function eR(t,e){return i=>eb(t,e,i)}function eD(t){return"number"==typeof t?eR:"string"==typeof t?J(t)?eP:tF.test(t)?ek:eB:Array.isArray(t)?eL:"object"==typeof t?tF.test(t)?ek:eV:eP}function eL(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>eD(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function eV(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=eD(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let eB=(t,e)=>{let i=tX.createTransformer(e),n=tq(t),r=tq(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?eM.has(t)&&!r.values.length||eM.has(e)&&!n.values.length?function(t,e){return eM.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):ew(eL(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][r[o]],l=null!==(i=t.values[a])&&void 0!==i?i:0;n[s]=l,r[o]++}return n}(n,r),r.values),i):((0,X.$)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),eP(t,e))};function ej(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eb(t,e,i):eD(t)(t,e)}function eN({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=ef(n)?n.map(ey):ey(n),s={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if((0,X.V)(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&t[0]===t[1])return()=>e[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());
1let o=function(t,e,i){let n=[],r=i||ej,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=ew(Array.isArray(e)?e[i]||M.l:e,s)),n.push(s)}return n}(e,n,r),a=o.length,l=e=>{let i=0;if(a>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let n=ee(t[i],t[i+1],e);return o[i](n)};return i?e=>l(ti(t[0],t[s-1],e)):l}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=ee(0,e,n);t.push(eb(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||em).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}let eI=t=>{let e=({timestamp:e})=>t(e);return{start:()=>L.update(e,!0),stop:()=>V(e),now:()=>B.isProcessing?B.timestamp:t8.now()}},eO={decay:ed,inertia:ed,tween:eN,keyframes:eN,spring:eh},eF=t=>t/100;class e_ extends et{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:r}=this.options,s=(null==n?void 0:n.KeyframeResolver)||tk;this.resolver=new s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=t9(n)?n:eO[n]||eN;l!==eN&&"number"!=typeof t[0]&&(e=ew(eF,ej(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=eo(u));let{calculatedDuration:h}=u,d=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:d,totalDuration:d*(r+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(c){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(x=s)),y=ti(0,1,i)*h}let w=g?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:b}=w;g||null===l||(b=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return T&&void 0!==n&&(w.value=C(a,this.options,n)),f&&f(w.value),T&&this.finish(),w}get duration(){let{resolved:t}=this;return t?v(t.calculatedDuration):0}get time(){return v(this.currentTime)}set time(t){t=f(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=v(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eI,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedProm
1ise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let eU=new Set(["opacity","clipPath","filter","transform"]);function eW(t){let e;return()=>(void 0===e&&(e=t()),e)}let e$={linearEasing:void 0},eq=function(t,e){let i=eW(t);return()=>{var t;return null!==(t=e$[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ez=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,eH={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ez([0,.65,.55,1]),circOut:ez([.55,0,1,.45]),backIn:ez([.31,.01,.66,-.59]),backOut:ez([.33,1.53,.69,.99])};function eY(t,e){t.timeline=e,t.onfinish=null}let eX=eW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),eK={anticipate:$,backInOut:W,circInOut:H};class eG extends et{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new t4(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i,n;let{duration:r=300,times:s,ease:o,type:a,motionValue:l,name:u,startTime:h}=this.options;if(!(null===(i=l.owner)||void 0===i?void 0:i.current))return!1;if("string"==typeof o&&eq()&&o in eK&&(o=eK[o]),t9((n=this.options).type)||"spring"===n.type||!function t(e){return!!("function"==typeof e&&eq()||!e||"string"==typeof e&&(e in eH||eq())||ev(e)||Array.isArray(e)&&e.every(t))}(n.ease)){let{onComplete:e,onUpdate:i,motionValue:n,element:l,...u}=this.options,h=function(t,e){let i=new e_({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,s=h.times,o=h.ease,a="keyframes"}let d=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&eq()?ei(e,i):ev(e)?ez(e):Array.isArray(e)?e.map(e=>t(e,i)||eH.easeOut):eH[e]}(a,r);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return d.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?(eY(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:i}=this.options;l.set(C(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return v(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return v(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=f(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return M.l;let{animation:i}=e;eY(i,t)}else this.pendingTimeline=t;return M.l}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:r,ease:s,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new e_({...u,keyframes:i,duration:n,type:r,ease:s,times:o,isGenerator:!0}),d=f(this.time);t.setWithVelocity(h.sample(d-10).value,h.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;return eX()&&i&&eU.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUp
1date&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}let eZ=eW(()=>void 0!==window.ScrollTimeline);class eQ{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>eZ()&&i.attachTimeline?i.attachTimeline(t):e(i));return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let eJ=(t,e,i,n={},r,s)=>o=>{let a=T(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=f(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...b(t,h)}),h.duration&&(h.duration=f(h.duration)),h.repeatDelay&&(h.repeatDelay=f(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0!==h.delay||(d=!0)),(S.current||P.skipAnimations)&&(d=!0,h.duration=0,h.delay=0),d&&!s&&void 0!==e.get()){let t=C(h.keyframes,a);if(void 0!==t)return L.update(()=>{h.onUpdate(t),h.onComplete()}),new eQ([])}return!s&&eG.supports(h)?new eG(h):new e_(h)},e0=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),e1=t=>s(t)?t[t.length-1]||0:t;function e2(t,e){-1===t.indexOf(e)&&t.push(e)}function e5(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class e3{constructor(){this.subscriptions=[]}add(t){return e2(this.subscriptions,t),()=>e5(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let e4=t=>!isNaN(parseFloat(t)),e9={current:void 0};class e7{constructor(t,e={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=t8.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=t8.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=e4(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new e3);let i=this.events[t].add(e);return"change"===t?()=>{i(),L.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return e9.current&&e9.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=t8.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function e8(t,e){return new e7(t,e)}let e6=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),it="data-"+e6("framerAppearId"),ie=t=>!!(t&&t.getVelocity);function ii(t,e){let i=t.getValue("willChange");if(ie(i)&&i.add)return i.add(e)}function ir(t,e,{delay:i=0,transitionOverride:n,type:r}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;n&&(o=n);let u=[],d=r&&t.animationState&&t.animationState.getState()[r];for(let e in l){let n=t.getValue(e,null!==(s=t.latestValues[e])&&void 0!==s?s:null),r=l[e];if(void 0===r||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let a={delay:i,...T(o||{},e)},h=!1;if(window.MotionHandoffAnimation){let i=t.props[it];if(i){let t=window.MotionHandoffAnimation(i,e,L);null!==t&&(a.startTime=t,h=!0)}}ii(t,e),n.start(eJ(e,n,r,t.shouldReduceMotion&&m.has(e)?{type:!1}:a,t,h));let c=n.animation;c&&u.push(c)}return a&&Promise.all(u).then(()=>{L.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=h(t,e)||{};for(let e in r={...r,...i}){let i=e1(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,e8(i))}}(t,a)})}),u}
1function is(t,e,i={}){var n;let r=h(t,e,"exit"===i.type?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let o=r?()=>Promise.all(ir(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(io).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(is(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function io(t,e){return t.sortNodePosition(e)}let ia=c.length,il=[...d].reverse(),iu=d.length;function ih(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function id(){return{animate:ih(!0),whileInView:ih(),whileHover:ih(),whileTap:ih(),whileDrag:ih(),whileFocus:ih(),exit:ih()}}class ic{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ip extends ic{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>is(t,e,i)));else if("string"==typeof e)n=is(t,e,i);else{let r="function"==typeof e?h(t,e,i.custom):e;n=Promise.all(ir(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=id(),n=!0,l=e=>(i,n)=>{var r;let s=h(t,n,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function u(u){let{props:h}=t,d=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<ia;t++){let n=c[t],r=e.props[n];(a(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},p=[],m=new Set,f={},v=1/0;for(let e=0;e<iu;e++){var g,y;let c=il[e],x=i[c],w=void 0!==h[c]?h[c]:d[c],b=a(w),T=c===u?x.isActive:null;!1===T&&(v=e);let P=w===d[c]&&w!==h[c]&&b;if(P&&n&&t.manuallyAnimateOnMount&&(P=!1),x.protectedKeys={...f},!x.isActive&&null===T||!w&&!x.prevProp||r(w)||"boolean"==typeof w)continue;let S=(g=x.prevProp,"string"==typeof(y=w)?y!==g:!!Array.isArray(y)&&!o(y,g)),E=S||c===u&&x.isActive&&!P&&b||e>v&&b,C=!1,A=Array.isArray(w)?w:[w],k=A.reduce(l(c),{});!1===T&&(k={});let{prevResolvedValues:M={}}=x,R={...M,...k},D=e=>{E=!0,m.has(e)&&(C=!0,m.delete(e)),x.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in R){let e=k[t],i=M[t];if(f.hasOwnProperty(t))continue;let n=!1;(s(e)&&s(i)?o(e,i):e===i)?void 0!==e&&m.has(t)?D(t):x.protectedKeys[t]=!0:null!=e?D(t):m.add(t)}x.prevProp=w,x.prevResolvedValues=k,x.isActive&&(f={...f,...k}),n&&t.blockInitialAnimation&&(E=!1);let L=!(P&&S)||C;E&&L&&p.push(...A.map(t=>({animation:t,options:{type:c}})))}if(m.size){let e={};m.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),p.push({animation:e})}let x=!!p.length;return n&&(!1===h.initial||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(x=!1),n=!1,x?e(p):Promise.resolve()}return{animateChanges:u,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let s=u(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=id(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();r(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let im=0;class iv extends ic{constructor(){super(...arguments),this.id=im++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>
1e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let ig={x:!1,y:!1};function iy(t,e){let i=function(t,e,i){var n;if(t instanceof Element)return[t];if("string"==typeof t){let e=document,i=(n=void 0,e.querySelectorAll(t));return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function ix(t){return e=>{"touch"===e.pointerType||ig.x||ig.y||t(e)}}let iw=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,ib=new WeakSet;function iT(t){return e=>{"Enter"===e.key&&t(e)}}function iP(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let iS=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=iT(()=>{if(ib.has(i))return;iP(i,"down");let t=iT(()=>{iP(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>iP(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)},iE=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),iC=(t,e)=>!!e&&(t===e||iC(t,e.parentElement));function iA(t){return iw(t)&&!(ig.x||ig.y)}function ik(t){return{point:{x:t.pageX,y:t.pageY}}}let iM=t=>e=>iw(e)&&t(e,ik(e));function iR(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function iD(t,e,i,n){return iR(t,e,iM(i),n)}let iL=(t,e)=>Math.abs(t-e);class iV{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=iN(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(iL(t.x,e.x)**2+iL(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=B;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iB(e,this.transformPagePoint),L.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=iN("pointercancel"===t.type?this.lastMoveEventInfo:iB(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!iw(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=iB(ik(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=B;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,iN(s,this.history)),this.removeListeners=ew(iD(this.contextWindow,"pointermove",this.handlePointerMove),iD(this.contextWindow,"pointerup",this.handlePointerUp),iD(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),V(this.updatePoint)}}function iB(t,e){return e?{point:e(t.point)}:t}function ij(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iN({point:t},e){return{point:t,delta:ij(t,iI(e)),offset:ij(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=iI(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>f(.1)));)i--;if(!n)return{x:0,y:0};let s=v(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function iI(t){return t[t.length-1]}function iO(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iF(t){return t.max-t.min}function i_(t,e,i,n=.5){t.origin=n,t.originPoint=eb(e.min,e.max,t.origin),t.scale=iF(i)/iF(e),t.translate=eb(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function iU(t,e,i,n){i_(t.x,e.x,i.x,n?n.originX:void 0),i_(t.y,e.y,i.y,n?n.originY:void 0)}function iW(t,e,i){t.min=i.min+e.min,t.max=t.min+iF(e)}function i$(t,e,i){t.min=e.min-i.min,t.max=t.min+iF(e)}function iq(t,e,i){i$(t.x,e.x,i.x),i$(t.y,e.y,i.y)}function iz(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function iH(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function iY(t,e,i){return{min:iX(t,e),max:iX(t,i)}}function iX(t,e){return"number"==typeof t?t:t[e]||0}let iK=()=>({translate:0,scale:1,origin:0,originPoint:0}),iG=()=>({x:iK(),y:iK()}),iZ=()=>({min:0,max:0}),iQ=()=>({x:iZ(),y:iZ()});function iJ(t){return[t("x"),t("y")]}function i0({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function i1(t){return void 0===t||1===t}function i2({scale:t,scaleX:e,scaleY:i}){return!i1(t)||!i1(e)||!i1(i)}function i5(t){return i2(t)||i3(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function i3(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function i4(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function i9(t,e=0,i=1,n,r){t.min=i4(t.min,e,i,n,r),t.max=i4(t.max,e,i,n,r)}function i7(t,{x:e,y:i}){i9(t.x,e.translate,e.scale,e.originPoint),i9(t.y,i.translate,i.scale,i.originPoint)}function i8(t,e){t.min=t.min+e,t.max=t.max+e}function i6(t,e,i,n,r=.5){let s=eb(t.min,t.max,r);i9(t,e,i,s,n)}function nt(t,e){i6(t.x,e.x,e.scaleX,e.scale,e.originX),i6(t.y,e.y,e.scaleY,e.scale,e.originY)}function ne(t,e){return i0(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let ni=({current:t})=>t?t.ownerDocument.defaultView:null,nn=new WeakMap;
1class nr{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iQ(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new iV(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ik(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(ig[t])return null;else return ig[t]=!0,()=>{ig[t]=!1};return ig.x||ig.y?null:(ig.x=ig.y=!0,()=>{ig.x=ig.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iJ(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tl.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=iF(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&L.postRender(()=>r(t,e)),ii(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>iJ(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:ni(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&L.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!ns(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eb(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eb(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&iO(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:iz(t.x,i,r),y:iz(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iY(t,"left","right"),y:iY(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&iJ(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iO(e))return!1;let n=e.current;(0,X.V)(null!==n,"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;
1let s=function(t,e,i){let n=ne(t,i),{scroll:r}=e;return r&&(i8(n.x,r.offset.x),i8(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:iH((t=r.layout.layoutBox).x,s.x),y:iH(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=i0(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iJ(o=>{if(!ns(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return ii(this.visualElement,t),i.start(eJ(t,i,0,e,this.visualElement,!1))}stopAnimation(){iJ(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iJ(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iJ(e=>{let{drag:i}=this.getProps();if(!ns(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-eb(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iO(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};iJ(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=iF(t),r=iF(e);return r>n?i=ee(e.min,e.max-n,t.min):n>r&&(i=ee(t.min,t.max-r,e.min)),ti(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iJ(e=>{if(!ns(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(eb(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;nn.set(this.visualElement,this);let t=iD(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iO(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),L.read(e);let r=iR(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iJ(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function ns(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class no extends ic{constructor(t){super(t),this.removeGroupControls=M.l,this.removeListeners=M.l,this.controls=new nr(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||M.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let na=t=>(e,i)=>{t&&L.postRender(()=>t(e,i))};class nl extends ic{constructor(){super(...arguments),this.removePointerDownListener=M.l}onPointerDown(t){this.session=new iV(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ni(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:na(t),onStart:na(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&L.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=iD(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var nu=i(41470),nh=i(47342),nd=i(98500),nc=i(71234);let np=(0,nh.createContext)({}),nm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nf(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nv={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tu.test(t))return t;else t=parseFloat(t);let i=nf(t,e.target.x),n=nf(t,e.target.y);return`${i}% ${n}%`}},ng={},{schedule:ny,cancel:nx}=D(queueMicrotask,!1);
1class nw extends nh.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;Object.assign(ng,nT),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),nm.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||L.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ny.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nb(t){let[e,i]=function(){let t=(0,nh.useContext)(nd.t);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,r=(0,nh.useId)();(0,nh.useEffect)(()=>n(r),[]);let s=(0,nh.useCallback)(()=>i&&i(r),[r,i]);return!e&&i?[!1,s]:[!0]}(),n=(0,nh.useContext)(nc.L);return(0,nu.jsx)(nw,{...t,layoutGroup:n,switchLayoutGroup:(0,nh.useContext)(np),isPresent:e,safeToRemove:i})}let nT={borderRadius:{...nv,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nv,borderTopRightRadius:nv,borderBottomLeftRadius:nv,borderBottomRightRadius:nv,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tX.parse(t);if(n.length>5)return t;let r=tX.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=eb(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}},nP=["TopLeft","TopRight","BottomLeft","BottomRight"],nS=nP.length,nE=t=>"string"==typeof t?parseFloat(t):t,nC=t=>"number"==typeof t||tu.test(t);function nA(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nk=nR(0,.5,z),nM=nR(.5,.95,M.l);function nR(t,e,i){return n=>n<t?0:n>e?1:i(ee(t,e,n))}function nD(t,e){t.min=e.min,t.max=e.max}function nL(t,e){nD(t.x,e.x),nD(t.y,e.y)}function nV(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nB(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function nj(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(tl.test(e)&&(e=parseFloat(e),e=eb(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eb(s.min,s.max,n);t===s&&(a-=e),t.min=nB(t.min,e,i,a,r),t.max=nB(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let nN=["x","scaleX","originX"],nI=["y","scaleY","originY"];function nO(t,e,i,n){nj(t.x,e,nN,i?i.x:void 0,n?n.x:void 0),nj(t.y,e,nI,i?i.y:void 0,n?n.y:void 0)}function nF(t){return 0===t.translate&&1===t.scale}function n_(t){return nF(t.x)&&nF(t.y)}function nU(t,e){return t.min===e.min&&t.max===e.max}function nW(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function n$(t,e){return nW(t.x,e.x)&&nW(t.y,e.y)}function nq(t){return iF(t.x)/iF(t.y)}function nz(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nH{constructor(){this.members=[]}add(t){e2(this.members,t),t.scheduleRender()}remove(t){if(e5(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}
1exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nY=(t,e)=>t.depth-e.depth;class nX{constructor(){this.children=[],this.isDirty=!1}add(t){e2(this.children,t),this.isDirty=!0}remove(t){e5(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nY),this.isDirty=!1,this.children.forEach(t)}}function nK(t){let e=ie(t)?t.get():t;return e0(e)?e.toValue():e}let nG={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},nZ="undefined"!=typeof window&&void 0!==window.MotionDebug,nQ=["","X","Y","Z"],nJ={visibility:"hidden"},n0=0;function n1(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function n2({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=n0++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,nZ&&(nG.totalNodes=nG.resolvedTargetDeltas=nG.recalculatedProjection=0),this.nodes.forEach(n4),this.nodes.forEach(ri),this.nodes.forEach(rn),this.nodes.forEach(n9),nZ&&window.MotionDebug.record(nG)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new nX)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new e3),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i,n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=t8.now(),n=({timestamp:r})=>{let s=r-i;s>=250&&(V(n),t(s-e))};return L.read(n,!0),()=>V(n)}(n,250),nm.hasAnimatedSinceResize&&(nm.hasAnimatedSinceResize=!1,this.nodes.forEach(re))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||ru,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!n$(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...T(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||re(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,V(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(rr),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[it];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",L,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n8);return}this.isUpdating||this.nodes.forEach(n6),this.isUpdating=!1,this.nodes.forEach(rt),this.nodes.forEach(n5),this.nodes.forEach(n3),this.clearAllSnapshots();let t=t8.now();B.delta=ti(0,1e3/60,t-B.timestamp),B.timestamp=t,B.isProcessing=!0,j.update.process(B),j.preRender.process(B),j.render.process(B),B.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ny.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n7),this.sharedNodes.forEach(rs)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,L.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){L.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iQ(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!n_(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||i5(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rc((e=n).x),rc(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return iQ();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(rm))){let{scroll:t}=this.root;t&&(i8(i.x,t.offset.x),i8(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=iQ();if(nL(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&nL(i,t),i8(i.x,r.offset.x),i8(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=iQ();nL(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&nt(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),i5(n.latestValues)&&nt(i,n.latestValues)}return i5(this.latestValues)&&nt(i,this.latestValues),i}removeTransform(t){let e=iQ();nL(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!i5(i.latestValues))continue;i2(i.latestValues)&&i.updateSnapshot();let n=iQ();nL(n,i.measurePageBox()),nO(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return i5(this.latestValues)&&nO(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==B.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,n,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=B.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iQ(),this.relativeTargetOrigin=iQ(),iq(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nL(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=iQ(),this.targetWithTransforms=iQ()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,iW(i.x,n.x,r.x),iW(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nL(this.target,this.layout.layoutBox),i7(this.target,this.targetDelta)):nL(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iQ(),this.relativeTargetOrigin=iQ(),iq(this.relativeTargetOrigin,this.target,t.target),nL(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nZ&&nG.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||i2(this.parent.latestValues)||i3(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===B.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;nL(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nt(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,i7(t,s)),n&&i5(r.latestValues)&&nt(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=iQ());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nV(this.prevProjectionDelta.x,this.projectionDelta.x),nV(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iU(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&nz(this.projectionDelta.x,this.prevProjectionDelta.x)&&nz(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),nZ&&nG.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iG(),this.projectionDelta=iG(),this.projectionDeltaWithTransform=iG()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=iG();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iQ(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(rl));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(ro(o.x,t.x,n),ro(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,v;if(iq(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=n,ra(p.x,m.x,f.x,v),ra(p.y,m.y,f.y,v),i&&(u=this.relativeTarget,c=i,nU(u.x,c.x)&&nU(u.y,c.y)))this.isProjectionDirty=!1;i||(i=iQ()),nL(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=eb(0,void 0!==i.opacity?i.opacity:1,nk(n)),t.opacityExit=eb(void 0!==e.opacity?e.opacity:1,0,nM(n))):s&&(t.opacity=eb(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<nS;r++){let s=`border${nP[r]}Radius`,o=nA(e,s),a=nA(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nC(o)===nC(a)?(t[s]=Math.max(eb(nE(o),nE(a),n),0),(tl.test(a)||tl.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eb(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(V(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=L.update(()=>{nm.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let n=ie(0)?0:e8(t);return n.start(eJ("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rp(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iQ();let e=iF(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=iF(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nL(e,i),nt(e,r),iU(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nH),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){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:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&n1("z",t,n,this.animationValues);for(let e=0;e<nQ.length;e++)n1(`rotate${nQ[e]}`,t,n,this.animationValues),n1(`skew${nQ[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nJ;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=nK(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;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=nK(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!i5(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;
1this.applyTransformsToTarget(),n.transform=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?n.opacity=s===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,ng){if(void 0===o[t])continue;let{correct:e,applyTo:i}=ng[t],r="none"===n.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=s===this?nK(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(n8),this.root.sharedNodes.clear()}}}function n5(t){t.updateLayout()}function n3(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?iJ(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=iF(n);n.min=e[t].min,n.max=n.min+r}):rp(r,i.layoutBox,e)&&iJ(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=iF(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=iG();iU(o,e,i.layoutBox);let a=iG();s?iU(a,t.applyTransform(n,!0),i.measuredBox):iU(a,e,i.layoutBox);let l=!n_(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=iQ();iq(o,i.layoutBox,r.layoutBox);let a=iQ();iq(a,e,s.layoutBox),n$(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function n4(t){nZ&&nG.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function n9(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n7(t){t.clearSnapshot()}function n8(t){t.clearMeasurements()}function n6(t){t.isLayoutDirty=!1}function rt(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function re(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ri(t){t.resolveTargetDelta()}function rn(t){t.calcProjection()}function rr(t){t.resetSkewAndRotation()}function rs(t){t.removeLeadSnapshot()}function ro(t,e,i){t.translate=eb(e.translate,0,i),t.scale=eb(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ra(t,e,i,n){t.min=eb(e.min,i.min,n),t.max=eb(e.max,i.max,n)}function rl(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ru={duration:.45,ease:[.4,0,.1,1]},rh=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rd=rh("applewebkit/")&&!rh("chrome/")?Math.round:M.l;function rc(t){t.min=rd(t.min),t.max=rd(t.max)}function rp(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nq(e)-nq(i)))}function rm(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let rf=n2({attachResizeListener:(t,e)=>iR(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rv={current:void 0},rg=n2({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rv.current){let t=new rf({});t.mount(window),t.setOptions({layoutScroll:!0}),rv.current=t}return rv.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ry(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&L.postRender(()=>r(e,ik(e)))}class rx extends ic{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[n,r,s]=iy(t,i),o=ix(t=>{let{target:i}=t,n=e(t);if(!n||!i)return;let s=ix(t=>{n(t),i.removeEventListener("pointerleave",s)});i.addEventListener("pointerleave",s,r)});return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}(t,t=>(ry(this.node,t,"Start"),t=>ry(this.node,t,"End"))))}unmount(){}}class rw extends ic{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ew(iR(this.node.current,"focus",()=>this.onFocus()),iR(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function rb(t,e,i){let{props:n}=t;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&L.postRender(()=>r(e,ik(e)))}class rT extends ic{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=iy(t,i),o=t=>{let n=t.currentTarget;if(!iA(t)||ib.has(n))return;ib.add(n);let s=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),iA(t)&&ib.has(n)&&(ib.delete(n),s&&s(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||iC(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{!iE.has(t.tagName)&&-1===t.tabIndex&&(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),t.addEventListener("focus",t=>iS(t,r),r)}),s}(t,t=>(rb(this.node,t,"Start"),(t,{success:e})=>rb(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let rP=new WeakMap,rS=new WeakMap,rE=t=>{let e=rP.get(t.target);e&&e(t)},rC=t=>{t.forEach(rE)},rA={some:0,all:1};class rk extends ic{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:rA[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;rS.has(i)||rS.set(i,{});let n=rS.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(rC,{root:t,...e})),n[r]}(e);return rP.set(t,i),n.observe(t),()=>{rP.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}var rM=i(43413);let rR=(0,nh.createContext)({});var rD=i(78207);let rL=(0,nh.createContext)({strict:!1});function rV(t){return r(t.animate)||c.some(e=>a(t[e]))}function rB(t){return!!(rV(t)||t.variants)}function rj(t){return Array.isArray(t)?t.join(" "):t}let rN={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},rI={};for(let t in rN)rI[t]={isEnabled:e=>rN[t].some(t=>!!e[t])};var rO=i(87859);let rF=Symbol.for("motionComponentSymbol"),r_=["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 rU(t){if("string"!=typeof t||t.includes("-"));else if(r_.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}function rW(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}let r$=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 rq(t,e,i,n){for(let i in rW(t,e,void 0,n),e.attrs)t.setAttribute(r$.has(i)?i:e6(i),e.attrs[i])}function rz(t,{layout:e,layoutId:i}){return m.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!ng[t]||"opacity"===t)}function rH(t,e,i){var n;let{style:r}=t,s={};for(let o in r)(ie(r[o])||e.style&&ie(e.style[o])||rz(o,t)||(null===(n=null==i?void 0:i.getValue(o))||void 0===n?void 0:n.liveStyle)!==void 0)&&(s[o]=r[o]);return s}function rY(t,e,i){let n=rH(t,e,i);for(let i in t)(ie(t[i])||ie(e[i]))&&(n[-1!==p.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}var rX=i(81022);let rK=t=>(e,i)=>{let n=(0,nh.useContext)(rR),s=(0,nh.useContext)(nd.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i}
1,n,s,o){let a={latestValues:function(t,e,i,n){let s={},o=n(t,{});for(let t in o)s[t]=nK(o[t]);let{initial:a,animate:l}=t,h=rV(t),d=rB(t);e&&d&&!h&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===a)?l:a;if(p&&"boolean"!=typeof p&&!r(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let n=u(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(n,s,o,t),renderState:e()};return i&&(a.mount=t=>i(n,t,a)),a})(t,e,n,s);return i?o():(0,rX.M)(o)},rG=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),rZ=()=>({...rG(),attrs:{}}),rQ=(t,e)=>e&&"number"==typeof t?e.transform(t):t,rJ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},r0=p.length;function r1(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(m.has(t)){o=!0;continue}if(Z(t)){r[t]=i;continue}{let e=rQ(i,t0[t]);t.startsWith("origin")?(a=!0,s[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<r0;s++){let o=p[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=rQ(a,t0[o]);if(!l){r=!1;let e=rJ[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}function r2(t,e,i){return"string"==typeof t?t:tu.transform(e+i*t)}let r5={offset:"stroke-dashoffset",array:"stroke-dasharray"},r3={offset:"strokeDashoffset",array:"strokeDasharray"};function r4(t,{attrX:e,attrY:i,attrScale:n,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,d){if(r1(t,u,d),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:p,dimensions:m}=t;c.transform&&(m&&(p.transform=c.transform),delete c.transform),m&&(void 0!==r||void 0!==s||p.transform)&&(p.transformOrigin=function(t,e,i){let n=r2(e,t.x,t.width),r=r2(i,t.y,t.height);return`${n} ${r}`}(m,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==o&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?r5:r3;t[s.offset]=tu.transform(-n);let o=tu.transform(e),a=tu.transform(i);t[s.array]=`${o} ${a}`}(c,o,a,l,!1)}let r9=t=>"string"==typeof t&&"svg"===t.toLowerCase(),r7={useVisualState:rK({scrapeMotionValuesFromProps:rY,createRenderState:rZ,onMount:(t,e,{renderState:i,latestValues:n})=>{L.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),L.render(()=>{r4(i,n,r9(e.tagName),t.transformTemplate),rq(e,i)})}})},r8={useVisualState:rK({scrapeMotionValuesFromProps:rH,createRenderState:rG})};function r6(t,e,i){for(let n in e)ie(e[n])||rz(n,i)||(t[n]=e[n])}
1let st=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function se(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||st.has(t)}let si=t=>!se(t);try{!function(t){t&&(si=e=>e.startsWith("on")?!se(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}let sn={current:null},sr={current:!1},ss=new WeakMap,so=[...tb,tF,tX],sa=t=>so.find(tw(t)),sl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class su{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tk,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=t8.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,L.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=rV(e),this.isVariantNode=rB(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==a[t]&&ie(e)&&e.set(a[t],!1)}}mount(t){if(this.current=t,ss.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),!sr.current&&(sr.current=!0,rO.B))if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>sn.current=t.matches;t.addListener(e),e()}else sn.current=!1;this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sn.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in ss.delete(this.current),this.projection&&this.projection.unmount(),V(this.notifyUpdate),V(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=m.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&L.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in rI){let e=rI[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iQ()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<sl.length;e++){let i=sl[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(ie(r))t.addValue(n,r);else if(ie(s))t.addValue(n,e8(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,e8(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=e8(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&(K(n)||Y(n))?n=parseFloat(n):!sa(n)&&tX.test(e)&&(n=t5(t,e)),this.setBaseTarget(t,ie(n)?n.get():n)),ie(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=u(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||ie(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 e3),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class sh extends su{constructor(){super(...arguments),this.KeyframeResolver=t4}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;ie(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class sd extends sh{constructor(){super(...arguments),this.type="html",this.renderInstance=rW}readValueFromInstance(t,e){if(m.has(e)){let t=t2(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=(Z(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return ne(t,e)}build(t,e,i){r1(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return rH(t,e,i)}}class sc extends sh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iQ}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(m.has(e)){let t=t2(e);return t&&t.default||0}return e=r$.has(e)?e:e6(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return rY(t,e,i)}build(t,e,i){r4(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){rq(t,e,i,n)}mount(t){this.isSVGTag=r9(t.tagName),super.mount(t)}}let sp=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((A={animation:{Feature:ip},exit:{Feature:iv},inView:{Feature:rk},tap:{Feature:rT},focus:{Feature:rw},hover:{Feature:rx},pan:{Feature:nl},drag:{Feature:no,ProjectionNode:rg,MeasureLayout:nb},layout:{ProjectionNode:rg,MeasureLayout:nb}},k=(t,e)=>rU(t)?new sc(e):new sd(e,{allowProjection:t!==nh.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){let{preloadedFeatures:e,createVisualElement:i,useRender:n,useVisualState:r,Component:s}=t;e&&function(t){for(let e in t)rI[e]={...rI[e],...t[e]}}(e);let o=(0,nh.forwardRef)(function(t,e){var o,l,u;let h,d={...(0,nh.useContext)(rM.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,nh.useContext)(nc.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:c}=d,p=function(t){let{initial:e,animate:i}=function(t,e){if(rV(t)){let{initial:e,animate:i}=t;return{initial:!1===e||a(e)?e:void 0,animate:a(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,nh.useContext)(rR));return(0,nh.useMemo)(()=>({initial:e,animate:i}),[rj(e),rj(i)])}(t),m=r(t,c);if(!c&&rO.B){l=0,u=0,(0,nh.useContext)(rL).strict;let t=function(t){let{drag:e,layout:i}=rI;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(d);h=t.MeasureLayout,p.visualElement=function(t,e,i,n,r){var s,o;let{visualElement:a}=(0,nh.useContext)(rR),l=(0,nh.useContext)(rL),u=(0,nh.useContext)(nd.t),h=(0,nh.useContext)(rM.Q).reducedMotion,d=(0,nh.useRef)(null);n=n||l.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let c=d.current,p=(0,nh.useContext)(np);c&&!c.projection&&r&&("html"===c.type||"svg"===c.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&iO(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,i,r,p);let m=(0,nh.useRef)(!1);(0,nh.useInsertionEffect)(()=>{c&&m.current&&c.update(i,u)});let f=i[it],v=(0,nh.useRef)(!!f&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,f))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,f)));return(0,rD.E)(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),ny.render(c.render),v.current&&c.animationState&&c.animationState.animateChanges())}),(0,nh.useEffect)(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)}),v.current=!1))}),c}(s,m,d,i,t.ProjectionNode)}return(0,nu.jsxs)(rR.Provider,{value:p,children:[h&&p.visualElement?(0,nu.jsx)(h,{visualElement:p.visualElement,...d}):null,n(s,t,(o=p.visualElement,(0,nh.useCallback)(t=>{t&&m.mount&&m.mount(t),o&&(t?o.mount(t):o.unmount()),e&&("function"==typeof e?e(t):iO(e)&&(e.current=t))},[o])),m,c,p.visualElement)]})});return o[rF]=s,o}({...rU(t)?r7:r8,preloadedFeatures:A,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>{let o=(rU(e)?function(t,e,i,n){let r=(0,nh.useMemo)(()=>{let i=rZ();return r4(i,e,r9(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};r6(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return r6(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,nh.useMemo)(()=>{let i=rG();return r1(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i}
1)(i,r,s,e),a=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(si(r)||!0===i&&se(r)||!e&&!se(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),l=e!==nh.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,nh.useMemo)(()=>ie(u)?u.get():u,[u]);return(0,nh.createElement)(e,{...l,children:h})}}(e),createVisualElement:k,Component:t})}))},47039:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(75384).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},47281:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(75384).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},53130:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(75384).A)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},56612:(t,e,i)=>{i.d(e,{m:()=>n});function n(t,e,{checkForDefaultPrevented:i=!0}={}){return function(n){if(t?.(n),!1===i||!n.defaultPrevented)return e?.(n)}}},64359:(t,e,i)=>{i.d(e,{c:()=>r});var n=i(47342);function r(t){let e=n.useRef(t);return n.useEffect(()=>{e.current=t}),n.useMemo(()=>(...t)=>e.current?.(...t),[])}},71234:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(47342).createContext)({})},78207:(t,e,i)=>{i.d(e,{E:()=>r});var n=i(47342);let r=i(87859).B?n.useLayoutEffect:n.useEffect},78353:(t,e,i)=>{i(97424)},81022:(t,e,i)=>{i.d(e,{M:()=>r});var n=i(47342);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},81523:(t,e,i)=>{i.d(e,{UC:()=>t0,ZL:()=>tJ,bL:()=>tZ,l9:()=>tQ});var n,r=i(47342),s=i(56612),o=i(21578),a=i(97856),l=i(27947),u=i(41470);function h(t){let e=function(t){let e=r.forwardRef((t,e)=>{let{children:i,...n}=t;if(r.isValidElement(i)){var s;let t,a,l=(s=i,(a=(t=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?s.ref:(a=(t=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?s.props.ref:s.props.ref||s.ref),u=function(t,e){let i={...e};for(let n in e){let r=t[n],s=e[n];/^on[A-Z]/.test(n)?r&&s?i[n]=(...t)=>{let e=s(...t);return r(...t),e}:r&&(i[n]=r):"style"===n?i[n]={...r,...s}:"className"===n&&(i[n]=[r,s].filter(Boolean).join(" "))}return{...t,...i}}(n,i.props);return i.type!==r.Fragment&&(u.ref=e?(0,o.t)(e,l):l),r.cloneElement(i,u)}return r.Children.count(i)>1?r.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}(t),i=r.forwardRef((t,i)=>{let{children:n,...s}=t,o=r.Children.toArray(n),a=o.find(c);if(a){let t=a.props.children,n=o.map(e=>e!==a?e:r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null);return(0,u.jsx)(e,{...s,ref:i,children:r.isValidElement(t)?r.cloneElement(t,void 0,n):null})}return(0,u.jsx)(e,{...s,ref:i,children:n})});return i.displayName=`${t}.Slot`,i}var d=Symbol("radix.slottable");function c(t){return r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===d}var p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,e)=>{let i=h(`Primitive.${e}`),n=r.forwardRef((t,n)=>{let{asChild:r,...s}=t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(r?i:e,{...s,ref:n})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{}),m=i(64359),f="dismissableLayer.update",v=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),g=r.forwardRef((t,e)=>{var i,a;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:h,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:g,onDismiss:w,...b}=t,T=r.useContext(v),[P,S]=r.useState(null),E=null!==(a=null==P?void 0:P.ownerDocument)&&void 0!==a?a:null===(i=globalThis)||void 0===i?void 0:i.document,[,C]=r.useState({}),A=(0,o.s)(e,t=>
1S(t)),k=Array.from(T.layers),[M]=[...T.layersWithOutsidePointerEventsDisabled].slice(-1),R=k.indexOf(M),D=P?k.indexOf(P):-1,L=T.layersWithOutsidePointerEventsDisabled.size>0,V=D>=R,B=function(t){var e;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(e=globalThis)||void 0===e?void 0:e.document,n=(0,m.c)(t),s=r.useRef(!1),o=r.useRef(()=>{});return r.useEffect(()=>{let t=t=>{if(t.target&&!s.current){let e=function(){x("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})},r={originalEvent:t};"touch"===t.pointerType?(i.removeEventListener("click",o.current),o.current=e,i.addEventListener("click",o.current,{once:!0})):e()}else i.removeEventListener("click",o.current);s.current=!1},e=window.setTimeout(()=>{i.addEventListener("pointerdown",t)},0);return()=>{window.clearTimeout(e),i.removeEventListener("pointerdown",t),i.removeEventListener("click",o.current)}},[i,n]),{onPointerDownCapture:()=>s.current=!0}}(t=>{let e=t.target,i=[...T.branches].some(t=>t.contains(e));!V||i||(null==d||d(t),null==g||g(t),t.defaultPrevented||null==w||w())},E),j=function(t){var e;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(e=globalThis)||void 0===e?void 0:e.document,n=(0,m.c)(t),s=r.useRef(!1);return r.useEffect(()=>{let t=t=>{t.target&&!s.current&&x("dismissableLayer.focusOutside",n,{originalEvent:t},{discrete:!1})};return i.addEventListener("focusin",t),()=>i.removeEventListener("focusin",t)},[i,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}(t=>{let e=t.target;[...T.branches].some(t=>t.contains(e))||(null==c||c(t),null==g||g(t),t.defaultPrevented||null==w||w())},E);return!function(t,e=globalThis?.document){let i=(0,m.c)(t);r.useEffect(()=>{let t=t=>{"Escape"===t.key&&i(t)};return e.addEventListener("keydown",t,{capture:!0}),()=>e.removeEventListener("keydown",t,{capture:!0})},[i,e])}(t=>{D===T.layers.size-1&&(null==h||h(t),!t.defaultPrevented&&w&&(t.preventDefault(),w()))},E),r.useEffect(()=>{if(P)return l&&(0===T.layersWithOutsidePointerEventsDisabled.size&&(n=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),T.layersWithOutsidePointerEventsDisabled.add(P)),T.layers.add(P),y(),()=>{l&&1===T.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=n)}},[P,E,l,T]),r.useEffect(()=>()=>{P&&(T.layers.delete(P),T.layersWithOutsidePointerEventsDisabled.delete(P),y())},[P,T]),r.useEffect(()=>{let t=()=>C({});return document.addEventListener(f,t),()=>document.removeEventListener(f,t)},[]),(0,u.jsx)(p.div,{...b,ref:A,style:{pointerEvents:L?V?"auto":"none":void 0,...t.style},onFocusCapture:(0,s.m)(t.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,s.m)(t.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,s.m)(t.onPointerDownCapture,B.onPointerDownCapture)})});function y(){let t=new CustomEvent(f);document.dispatchEvent(t)}function x(t,e,i,n){let{discrete:r}=n,s=i.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:i});if(e&&s.addEventListener(t,e,{once:!0}),r)s&&l.flushSync(()=>s.dispatchEvent(o));else s.dispatchEvent(o)}g.displayName="DismissableLayer",r.forwardRef((t,e)=>{let i=r.useContext(v),n=r.useRef(null),s=(0,o.s)(e,n);return r.useEffect(()=>{let t=n.current;if(t)return i.branches.add(t),()=>{i.branches.delete(t)}},[i.branches]),(0,u.jsx)(p.div,{...t,ref:s})}).displayName="DismissableLayerBranch";var w=0;function b(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var T="focusScope.autoFocusOnMount",P="focusScope.autoFocusOnUnmount",S={bubbles:!1,cancelable:!0},E=r.forwardRef((t,e)=>{let{loop:i=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...l}=t,[h,d]=r.useState(null),c=(0,m.c)(s),f=(0,m.c)(a),v=r.useRef(null),g=(0,o.s)(e,t=>d(t)),y=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(n){let t=function(t){if(y.paused||!h)return;let e=t.target;h.contains(e)?v.current=e:k(v.current,{select:!0})},e=function(t){if(y.paused||!h)return;let e=t.relatedTarget;null===e||h.contains(e)||k(v.current,{select:!0})};document.addEventListener("focusin",t),document.addEventListener("focusout",e);let i=new MutationObserver(function(t){if(document.activeElement===document.body)for(let e of t)e.removedNodes.length>0&&k(h)});return h&&i.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",t),document.removeEventListener("focusout",e),i.disconnect()}}},[n,h,y.paused]),r.useEffect(()=>{if(h){M.add(y);let t=document.activeElement;if(!h.contains(t)){let e=new CustomEvent(T,S);h.addEventListener(T,c),h.dispatchEvent(e),e.defaultPrevented||(function(t){let{select:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=document.activeElement;for(let n of t)if(k(n,{select:e}),document.activeElement!==i)return}(C(h).filter(t=>"A"!==t.tagName),{select:!0}),document.activeElement===t&&k(h))}return()=>{h.removeEventListener(T,c),setTimeout(()=>{let e=new CustomEvent(P,S);h.addEventListener(P,f),h.dispatchEvent(e),e.defaultPrevented||k(null!=t?t:document.body,{select:!0}),h.removeEventListener(P,f),M.remove(y)},0)}}},[h,c,f,y]);let x=r.useCallback(t=>{if(!i&&!n||y.paused)return;let e="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,r=document.activeElement;if(e&&r){let e=t.currentTarget,[n,s]=function(t){let e=C(t);return[A(e,t),A(e.reverse(),t)]}(e);n&&s?t.shiftKey||r!==s?t.shiftKey&&r===n&&(t.preventDefault(),i&&k(s,{select:!0})):(t.preventDefault(),i&&k(n,{select:!0})):r===e&&t.preventDefault()}},[i,n,y.paused]);return(0,u.jsx)(p.div,{tabIndex:-1,...l,ref:g,onKeyDown:x})});function C(t){let e=[],i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{let e="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||e?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)e.push(i.currentNode);return e}function A(t,e){for(let i of t)if(!function(t,e){let{upTo:i}=e;if("hidden"===getComputedStyle(t).visibility)return!0;for(;t&&(void 0===i||t!==i);){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(i,{upTo:e}))return i}function k(t){let{select:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&t.focus){var i;let n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&(i=t)instanceof HTMLInputElement&&"select"in i&&e&&t.select()}}E.displayName="FocusScope";var M=function(){let t=[];return{add(e){let i=t[0];e!==i&&(null==i||i.pause()),(t=R(t,e)).unshift(e)},remove(e){var i;null===(i=(t=R(t,e))[0])||void 0===i||i.resume()}}}();function R(t,e){let i=[...t],n=i.indexOf(e);return -1!==n&&i.splice(n,1),i}var D=i(37807),L=i(15129),V=i(3653),B=r.forwardRef((t,e)=>{let{children:i,width:n=10,height:r=5,...s}=t;return(0,u.jsx)(p.svg,{...s,ref:e,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?i:(0,u.jsx)("polygon",{points:"0,0 30,0 15,10"})})});B.displayName="Arrow";var j=i(84233),N="Popper",[I,O]=(0,a.A)(N),[F,_]=I(N),U=t=>{let{__scopePopper:e,children:i}=t,[n,s]=r.useState(null);return(0,u.jsx)(F,{scope:e,anchor:n,onAnchorChange:s,children:i})};U.displayName=N;var W="PopperAnchor",$=r.forwardRef((t,e)=>{let{__scopePopper:i,virtualRef:n,...s}=t,a=_(W,i),l=r.useRef(null),h=(0,o.s)(e,l);return r.useEffect(()=>{a.onAnchorChange((null==n?void 0:n.current)||l.current)}),n?null:(0,u.jsx)(p.div,{...s,ref:h})});$.displayName=W;var q="PopperContent",[z,H]=I(q),Y=r.forwardRef((t,e)=>{var i,n,s,a,l,h,d,c;let{__scopePopper:f,side:v="bottom",sideOffset:g=0,align:y="center",alignOffset:x=0,arrowPadding:w=0,avoidCollisions:b=!0,collisionBoundary:T=[],collisionPadding:P=0,sticky:S="partial",hideWhenDetached:E=!1,updatePositionStrategy:C="optimized",onPlaced:A,...k}=t,M=_(q,f),[R,D]=r.useState(null),B=(0,o.s)(e,t=>D(t)),[N,I]=r.useState(null),O=function(t){let[e,i]=r.useState(void 0);return(0,j.N)(()=>
1{if(t){i({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{let n,r;if(!Array.isArray(e)||!e.length)return;let s=e[0];if("borderBoxSize"in s){let t=s.borderBoxSize,e=Array.isArray(t)?t[0]:t;n=e.inlineSize,r=e.blockSize}else n=t.offsetWidth,r=t.offsetHeight;i({width:n,height:r})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}i(void 0)},[t]),e}(N),F=null!==(d=null==O?void 0:O.width)&&void 0!==d?d:0,U=null!==(c=null==O?void 0:O.height)&&void 0!==c?c:0,W="number"==typeof P?P:{top:0,right:0,bottom:0,left:0,...P},$=Array.isArray(T)?T:[T],H=$.length>0,Y={padding:W,boundary:$.filter(Z),altBoundary:H},{refs:X,floatingStyles:K,placement:G,isPositioned:tt,middlewareData:te}=(0,L.we)({strategy:"fixed",placement:v+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return(0,V.ll)(...e,{animationFrame:"always"===C})},elements:{reference:M.anchor},middleware:[(0,L.cY)({mainAxis:g+U,alignmentAxis:x}),b&&(0,L.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?(0,L.ER)():void 0,...Y}),b&&(0,L.UU)({...Y}),(0,L.Ej)({...Y,apply:t=>{let{elements:e,rects:i,availableWidth:n,availableHeight:r}=t,{width:s,height:o}=i.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width","".concat(n,"px")),a.setProperty("--radix-popper-available-height","".concat(r,"px")),a.setProperty("--radix-popper-anchor-width","".concat(s,"px")),a.setProperty("--radix-popper-anchor-height","".concat(o,"px"))}}),N&&(0,L.UE)({element:N,padding:w}),Q({arrowWidth:F,arrowHeight:U}),E&&(0,L.jD)({strategy:"referenceHidden",...Y})]}),[ti,tn]=J(G),tr=(0,m.c)(A);(0,j.N)(()=>{tt&&(null==tr||tr())},[tt,tr]);let ts=null===(i=te.arrow)||void 0===i?void 0:i.x,to=null===(n=te.arrow)||void 0===n?void 0:n.y,ta=(null===(s=te.arrow)||void 0===s?void 0:s.centerOffset)!==0,[tl,tu]=r.useState();return(0,j.N)(()=>{R&&tu(window.getComputedStyle(R).zIndex)},[R]),(0,u.jsx)("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:tt?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:tl,"--radix-popper-transform-origin":[null===(a=te.transformOrigin)||void 0===a?void 0:a.x,null===(l=te.transformOrigin)||void 0===l?void 0:l.y].join(" "),...(null===(h=te.hide)||void 0===h?void 0:h.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,u.jsx)(z,{scope:f,placedSide:ti,onArrowChange:I,arrowX:ts,arrowY:to,shouldHideArrow:ta,children:(0,u.jsx)(p.div,{"data-side":ti,"data-align":tn,...k,ref:B,style:{...k.style,animation:tt?void 0:"none"}})})})});Y.displayName=q;var X="PopperArrow",K={top:"bottom",right:"left",bottom:"top",left:"right"},G=r.forwardRef(function(t,e){let{__scopePopper:i,...n}=t,r=H(X,i),s=K[r.placedSide];return(0,u.jsx)("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:(0,u.jsx)(B,{...n,ref:e,style:{...n.style,display:"block"}})})});function Z(t){return null!==t}G.displayName=X;var Q=t=>({name:"transformOrigin",options:t,fn(e){var i,n,r,s,o;let{placement:a,rects:l,middlewareData:u}=e,h=(null===(i=u.arrow)||void 0===i?void 0:i.centerOffset)!==0,d=h?0:t.arrowWidth,c=h?0:t.arrowHeight,[p,m]=J(a),f={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(s=null===(n=u.arrow)||void 0===n?void 0:n.x)&&void 0!==s?s:0)+d/2,g=(null!==(o=null===(r=u.arrow)||void 0===r?void 0:r.y)&&void 0!==o?o:0)+c/2,y="",x="";return"bottom"===p?(y=h?f:"".concat(v,"px"),x="".concat(-c,"px")):"top"===p?(y=h?f:"".concat(v,"px"),x="".concat(l.floating.height+c,"px")):"right"===p?(y="".concat(-c,"px"),x=h?f:"".concat(g,"px")):"left"===p&&(y="".concat(l.floating.width+c,"px"),x=h?f:"".concat(g,"px")),{data:{x:y,y:x}}}});function J(t){let[e,i="center"]=t.split("-");return[e,i]}var tt=r.forwardRef((t,e)=>{var i,n;
1let{container:s,...o}=t,[a,h]=r.useState(!1);(0,j.N)(()=>h(!0),[]);let d=s||a&&(null===(n=globalThis)||void 0===n?void 0:null===(i=n.document)||void 0===i?void 0:i.body);return d?l.createPortal((0,u.jsx)(p.div,{...o,ref:e}),d):null});tt.displayName="Portal";var te=t=>{let{present:e,children:i}=t,n=function(t){var e,i;let[n,s]=r.useState(),o=r.useRef(null),a=r.useRef(t),l=r.useRef("none"),[u,h]=(e=t?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((t,e)=>{let n=i[t][e];return null!=n?n:t},e));return r.useEffect(()=>{let t=ti(o.current);l.current="mounted"===u?t:"none"},[u]),(0,j.N)(()=>{let e=o.current,i=a.current;if(i!==t){let n=l.current,r=ti(e);t?h("MOUNT"):"none"===r||(null==e?void 0:e.display)==="none"?h("UNMOUNT"):i&&n!==r?h("ANIMATION_OUT"):h("UNMOUNT"),a.current=t}},[t,h]),(0,j.N)(()=>{if(n){var t;let e,i=null!==(t=n.ownerDocument.defaultView)&&void 0!==t?t:window,r=t=>{let r=ti(o.current).includes(t.animationName);if(t.target===n&&r&&(h("ANIMATION_END"),!a.current)){let t=n.style.animationFillMode;n.style.animationFillMode="forwards",e=i.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=t)})}},s=t=>{t.target===n&&(l.current=ti(o.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{i.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:r.useCallback(t=>{o.current=t?getComputedStyle(t):null,s(t)},[])}}(e),s="function"==typeof i?i({present:n.isPresent}):r.Children.only(i),a=(0,o.s)(n.ref,function(t){var e,i;let n=null===(e=Object.getOwnPropertyDescriptor(t.props,"ref"))||void 0===e?void 0:e.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?t.ref:(r=(n=null===(i=Object.getOwnPropertyDescriptor(t,"ref"))||void 0===i?void 0:i.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref}(s));return"function"==typeof i||n.isPresent?r.cloneElement(s,{ref:a}):null};function ti(t){return(null==t?void 0:t.animationName)||"none"}te.displayName="Presence";var tn=i(13555),tr=i(32207),ts=i(80432),to=i(30232),ta=i(49067),tl=(0,i(48168).f)(),tu=function(){},th=r.forwardRef(function(t,e){var i=r.useRef(null),n=r.useState({onScrollCapture:tu,onWheelCapture:tu,onTouchMoveCapture:tu}),s=n[0],o=n[1],a=t.forwardProps,l=t.children,u=t.className,h=t.removeScrollBar,d=t.enabled,c=t.shards,p=t.sideCar,m=t.noRelative,f=t.noIsolation,v=t.inert,g=t.allowPinchZoom,y=t.as,x=t.gapMode,w=(0,ts.Tt)(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=(0,ta.S)([i,e]),T=(0,ts.Cl)((0,ts.Cl)({},w),s);return r.createElement(r.Fragment,null,d&&r.createElement(p,{sideCar:tl,removeScrollBar:h,shards:c,noRelative:m,noIsolation:f,inert:v,setCallbacks:o,allowPinchZoom:!!g,lockRef:i,gapMode:x}),a?r.cloneElement(r.Children.only(l),(0,ts.Cl)((0,ts.Cl)({},T),{ref:b})):r.createElement(void 0===y?"div":y,(0,ts.Cl)({},T,{className:u,ref:b}),l))});th.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},th.classNames={fullWidth:to.pN,zeroRight:to.Mi};var td=i(6390),tc=i(70025),tp=i(21224),tm=!1;if("undefined"!=typeof window)try{var tf=Object.defineProperty({},"passive",{get:function(){return tm=!0,!0}});window.addEventListener("test",tf,tf),window.removeEventListener("test",tf,tf)}catch(t){tm=!1}var tv=!!tm&&{passive:!1},tg=function(t,e){if(!(t instanceof Element))return!1;var i=window.getComputedStyle(t);return"hidden"!==i[e]&&(i.overflowY!==i.overflowX||"TEXTAREA"===t.tagName||"visible"!==i[e])},ty=function(t,e){var i=e.ownerDocument,n=e;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),tx(t,n)){var r=tw(t,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==i.body);return!1},tx=function(t,e){return"v"===t?tg(e,"overflowY"):tg(e,"overflowX")},tw=function(t,e){return"v"===t?[e.scrollTop,e.scrollHeight,e.clientHeight]:[e.scrollLeft,e.scrollWidth,e.clientWidth]}
1,tb=function(t,e,i,n,r){var s,o=(s=window.getComputedStyle(e).direction,"h"===t&&"rtl"===s?-1:1),a=o*n,l=i.target,u=e.contains(l),h=!1,d=a>0,c=0,p=0;do{var m=tw(t,l),f=m[0],v=m[1]-m[2]-o*f;(f||v)&&tx(t,l)&&(c+=v,p+=f),l=l.parentNode.host||l.parentNode}while(!u&&l!==document.body||u&&(e.contains(l)||e===l));return d&&(r&&1>Math.abs(c)||!r&&a>c)?h=!0:!d&&(r&&1>Math.abs(p)||!r&&-a>p)&&(h=!0),h},tT=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},tP=function(t){return[t.deltaX,t.deltaY]},tS=function(t){return t&&"current"in t?t.current:t},tE=0,tC=[];let tA=(0,td.m)(tl,function(t){var e=r.useRef([]),i=r.useRef([0,0]),n=r.useRef(),s=r.useState(tE++)[0],o=r.useState(tp.T0)[0],a=r.useRef(t);r.useEffect(function(){a.current=t},[t]),r.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var e=(0,ts.fX)([t.lockRef.current],(t.shards||[]).map(tS),!0).filter(Boolean);return e.forEach(function(t){return t.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),e.forEach(function(t){return t.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var l=r.useCallback(function(t,e){if("touches"in t&&2===t.touches.length||"wheel"===t.type&&t.ctrlKey)return!a.current.allowPinchZoom;var r,s=tT(t),o=i.current,l="deltaX"in t?t.deltaX:o[0]-s[0],u="deltaY"in t?t.deltaY:o[1]-s[1],h=t.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in t&&"h"===d&&"range"===h.type)return!1;var c=ty(d,h);if(!c)return!0;if(c?r=d:(r="v"===d?"h":"v",c=ty(d,h)),!c)return!1;if(!n.current&&"changedTouches"in t&&(l||u)&&(n.current=r),!r)return!0;var p=n.current||r;return tb(p,e,t,"h"===p?l:u,!0)},[]),u=r.useCallback(function(t){if(tC.length&&tC[tC.length-1]===o){var i="deltaY"in t?tP(t):tT(t),n=e.current.filter(function(e){var n;return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta)[0]===i[0]&&n[1]===i[1]})[0];if(n&&n.should){t.cancelable&&t.preventDefault();return}if(!n){var r=(a.current.shards||[]).map(tS).filter(Boolean).filter(function(e){return e.contains(t.target)});(r.length>0?l(t,r[0]):!a.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),h=r.useCallback(function(t,i,n,r){var s={name:t,delta:i,target:n,should:r,shadowParent:function(t){for(var e=null;null!==t;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}(n)};e.current.push(s),setTimeout(function(){e.current=e.current.filter(function(t){return t!==s})},1)},[]),d=r.useCallback(function(t){i.current=tT(t),n.current=void 0},[]),c=r.useCallback(function(e){h(e.type,tP(e),e.target,l(e,t.lockRef.current))},[]),p=r.useCallback(function(e){h(e.type,tT(e),e.target,l(e,t.lockRef.current))},[]);r.useEffect(function(){return tC.push(o),t.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:p}),document.addEventListener("wheel",u,tv),document.addEventListener("touchmove",u,tv),document.addEventListener("touchstart",d,tv),function(){tC=tC.filter(function(t){return t!==o}),document.removeEventListener("wheel",u,tv),document.removeEventListener("touchmove",u,tv),document.removeEventListener("touchstart",d,tv)}},[]);var m=t.removeScrollBar,f=t.inert;return r.createElement(r.Fragment,null,f?r.createElement(o,{styles:"\n  .block-interactivity-".concat(s," {pointer-events: none;}\n  .allow-interactivity-").concat(s," {pointer-events: all;}\n")}):null,m?r.createElement(tc.jp,{noRelative:t.noRelative,gapMode:t.gapMode}):null)});var tk=r.forwardRef(function(t,e){return r.createElement(th,(0,ts.Cl)({},t,{ref:e,sideCar:tA}))});tk.classNames=th.classNames;var tM="Popover",[tR,tD]=(0,a.A)(tM,[O]),tL=O(),[tV,tB]=tR(tM),tj=t=>{let{__scopePopover:e,children:i,open:n,defaultOpen:s,onOpenChange:o,modal:a=!1}=t,l=tL(e),h=r.useRef(null),[d,c]=r.useState(!1),[p,m]=(0,tn.i)({prop:n,defaultProp:null!=s&&s,onChange:o,caller:tM});return(0,u.jsx)(U,{...l,children:(0,u.jsx)(tV,{scope:e,contentId:(0,D.B)(),triggerRef:h,open:p,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(t=>!t),[m]),hasCustomAnchor:d,onCustomAnchorAdd:r.useCallback(()=>c(!0),[]),onCustomAnchorRemove:r.useCallback(()=>c(!1),[]),modal:a,children:i})})};tj.displayName=tM;var tN="PopoverAnchor";r.forwardRef((t,e)=>{let{__scopePopover:i,...n}=t,s=tB(tN,i),o=tL(i),{onCustomAnchorAdd:a,onCustomAnchorRemove:l}=s;return r.useEffect(()=>(a(),()=>l()),[a,l]),(0,u.jsx)($,{...o,...n,ref:e})}).displayName=tN;var tI="PopoverTrigger",tO=r.forwardRef((t,e)=>{let{__scopePopover:i,...n}=t,r=tB(tI,i),a=tL(i),l=(0,o.s)(e,r.triggerRef),h=(0,u.jsx)(p.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":tG(r.open),...n,ref:l,onClick:(0,s.m)(t.onClick,r.onOpenToggle)});
1return r.hasCustomAnchor?h:(0,u.jsx)($,{asChild:!0,...a,children:h})});tO.displayName=tI;var tF="PopoverPortal",[t_,tU]=tR(tF,{forceMount:void 0}),tW=t=>{let{__scopePopover:e,forceMount:i,children:n,container:r}=t,s=tB(tF,e);return(0,u.jsx)(t_,{scope:e,forceMount:i,children:(0,u.jsx)(te,{present:i||s.open,children:(0,u.jsx)(tt,{asChild:!0,container:r,children:n})})})};tW.displayName=tF;var t$="PopoverContent",tq=r.forwardRef((t,e)=>{let i=tU(t$,t.__scopePopover),{forceMount:n=i.forceMount,...r}=t,s=tB(t$,t.__scopePopover);return(0,u.jsx)(te,{present:n||s.open,children:s.modal?(0,u.jsx)(tH,{...r,ref:e}):(0,u.jsx)(tY,{...r,ref:e})})});tq.displayName=t$;var tz=h("PopoverContent.RemoveScroll"),tH=r.forwardRef((t,e)=>{let i=tB(t$,t.__scopePopover),n=r.useRef(null),a=(0,o.s)(e,n),l=r.useRef(!1);return r.useEffect(()=>{let t=n.current;if(t)return(0,tr.Eq)(t)},[]),(0,u.jsx)(tk,{as:tz,allowPinchZoom:!0,children:(0,u.jsx)(tX,{...t,ref:a,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,s.m)(t.onCloseAutoFocus,t=>{var e;t.preventDefault(),l.current||null===(e=i.triggerRef.current)||void 0===e||e.focus()}),onPointerDownOutside:(0,s.m)(t.onPointerDownOutside,t=>{let e=t.detail.originalEvent,i=0===e.button&&!0===e.ctrlKey;l.current=2===e.button||i},{checkForDefaultPrevented:!1}),onFocusOutside:(0,s.m)(t.onFocusOutside,t=>t.preventDefault(),{checkForDefaultPrevented:!1})})})}),tY=r.forwardRef((t,e)=>{let i=tB(t$,t.__scopePopover),n=r.useRef(!1),s=r.useRef(!1);return(0,u.jsx)(tX,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var r,o;null===(r=t.onCloseAutoFocus)||void 0===r||r.call(t,e),e.defaultPrevented||(n.current||null===(o=i.triggerRef.current)||void 0===o||o.focus(),e.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:e=>{var r,o;null===(r=t.onInteractOutside)||void 0===r||r.call(t,e),e.defaultPrevented||(n.current=!0,"pointerdown"!==e.detail.originalEvent.type||(s.current=!0));let a=e.target;(null===(o=i.triggerRef.current)||void 0===o?void 0:o.contains(a))&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&s.current&&e.preventDefault()}})}),tX=r.forwardRef((t,e)=>{let{__scopePopover:i,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:h,onFocusOutside:d,onInteractOutside:c,...p}=t,m=tB(t$,i),f=tL(i);return r.useEffect(()=>{var t,e;let i=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(t=i[0])&&void 0!==t?t:b()),document.body.insertAdjacentElement("beforeend",null!==(e=i[1])&&void 0!==e?e:b()),w++,()=>{1===w&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),w--}},[]),(0,u.jsx)(E,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:o,children:(0,u.jsx)(g,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:l,onPointerDownOutside:h,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),children:(0,u.jsx)(Y,{"data-state":tG(m.open),role:"dialog",id:m.contentId,...f,...p,ref:e,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),tK="PopoverClose";function tG(t){return t?"open":"closed"}r.forwardRef((t,e)=>{let{__scopePopover:i,...n}=t,r=tB(tK,i);return(0,u.jsx)(p.button,{type:"button",...n,ref:e,onClick:(0,s.m)(t.onClick,()=>r.onOpenChange(!1))})}).displayName=tK,r.forwardRef((t,e)=>{let{__scopePopover:i,...n}=t,r=tL(i);return(0,u.jsx)(G,{...r,...n,ref:e})}).displayName="PopoverArrow";var tZ=tj,tQ=tO,tJ=tW,t0=tq},84233:(t,e,i)=>{i.d(e,{N:()=>r});var n=i(47342),r=globalThis?.document?n.useLayoutEffect:()=>{}},87859:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},92576:(t,e,i)=>{i.d(e,{$:()=>r,V:()=>s});var n=i(18141);let r=n.l,s=n.l},95976:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(75384).A)("Gem",[["path",{d:"M6 3h12l4 6-10 13L2 9Z",key:"1pcd5k"}],["path",{d:"M11 3 8 9l4 13 4-13-3-6",key:"1fcu3u"}],["path",{d:"M2 9h20",key:"16fsjt"}]])},97424:(t,e)=>
1{Object.defineProperty(e,"__esModule",{value:!0}),e.SnowflakeIdv1=void 0;class i{constructor(t){if(void 0===t.workerId)throw Error("lost WorkerId");(!t.baseTime||t.baseTime<0)&&(t.baseTime=15778368e5),(!t.workerIdBitLength||t.workerIdBitLength<0)&&(t.workerIdBitLength=6),(!t.seqBitLength||t.seqBitLength<0)&&(t.seqBitLength=6),(void 0==t.maxSeqNumber||t.maxSeqNumber<=0)&&(t.maxSeqNumber=63),(void 0==t.minSeqNumber||t.minSeqNumber<0)&&(t.minSeqNumber=5),(void 0==t.topOverCostCount||t.topOverCostCount<0)&&(t.topOverCostCount=2e3),2!==t.method?t.method=1:t.method=2,this.Method=BigInt(t.method),this.BaseTime=BigInt(t.baseTime),this.WorkerId=BigInt(t.workerId),this.WorkerIdBitLength=BigInt(t.workerIdBitLength),this.SeqBitLength=BigInt(t.seqBitLength),this.MaxSeqNumber=BigInt(t.maxSeqNumber),this.MinSeqNumber=BigInt(t.minSeqNumber),this.TopOverCostCount=BigInt(t.topOverCostCount);let e=this.WorkerIdBitLength+this.SeqBitLength,i=this.MinSeqNumber;this._TimestampShift=e,this._CurrentSeqNumber=i,this._LastTimeTick=BigInt(0),this._TurnBackTimeTick=BigInt(0),this._TurnBackIndex=0,this._IsOverCost=!1,this._OverCostCountInOneTerm=0}BeginOverCostAction(t){}EndOverCostAction(t){}BeginTurnBackAction(t){}EndTurnBackAction(t){}NextOverCostId(){let t=this.GetCurrentTimeTick();return t>this._LastTimeTick?(this.EndOverCostAction(t),this._LastTimeTick=t,this._CurrentSeqNumber=this.MinSeqNumber,this._IsOverCost=!1,this._OverCostCountInOneTerm=0):this._OverCostCountInOneTerm>=this.TopOverCostCount?(this.EndOverCostAction(t),this._LastTimeTick=this.GetNextTimeTick(),this._CurrentSeqNumber=this.MinSeqNumber,this._IsOverCost=!1,this._OverCostCountInOneTerm=0):this._CurrentSeqNumber>this.MaxSeqNumber&&(this._LastTimeTick++,this._CurrentSeqNumber=this.MinSeqNumber,this._IsOverCost=!0,this._OverCostCountInOneTerm++),this.CalcId(this._LastTimeTick)}NextNormalId(){let t=this.GetCurrentTimeTick();return t<this._LastTimeTick?(this._TurnBackTimeTick<1&&(this._TurnBackTimeTick=this._LastTimeTick-BigInt(1),this._TurnBackIndex++,this._TurnBackIndex>4&&(this._TurnBackIndex=1),this.BeginTurnBackAction(this._TurnBackTimeTick)),this.CalcTurnBackId(this._TurnBackTimeTick)):((this._TurnBackTimeTick>0&&(this.EndTurnBackAction(this._TurnBackTimeTick),this._TurnBackTimeTick=BigInt(0)),t>this._LastTimeTick)?(this._LastTimeTick=t,this._CurrentSeqNumber=this.MinSeqNumber):this._CurrentSeqNumber>this.MaxSeqNumber&&(this.BeginOverCostAction(t),this._LastTimeTick++,this._CurrentSeqNumber=this.MinSeqNumber,this._IsOverCost=!0,this._OverCostCountInOneTerm=1),this.CalcId(this._LastTimeTick))}CalcId(t){let e=BigInt(t<<this._TimestampShift)+BigInt(this.WorkerId<<this.SeqBitLength)+BigInt(this._CurrentSeqNumber);return this._CurrentSeqNumber++,e}CalcTurnBackId(t){let e=BigInt(t<<this._TimestampShift)+BigInt(this.WorkerId<<this.SeqBitLength)+BigInt(this._TurnBackIndex);return this._TurnBackTimeTick--,e}GetCurrentTimeTick(){return BigInt(new Date().valueOf())-this.BaseTime}GetNextTimeTick(){let t=this.GetCurrentTimeTick();for(;t<=this._LastTimeTick;)t=this.GetCurrentTimeTick();return t}NextNumber(){if(this._IsOverCost){let t=this.NextOverCostId();if(t>=9007199254740992n)throw Error(`${t.toString()} over max of Number 9007199254740992`);return parseInt(t.toString())}{let t=this.NextNormalId();if(t>=9007199254740992n)throw Error(`${t.toString()} over max of Number 9007199254740992`);return parseInt(t.toString())}}NextId(){if(this._IsOverCost){let t=this.NextOverCostId();return t>=9007199254740992n?t:parseInt(t.toString())}{let t=this.NextNormalId();return t>=9007199254740992n?t:parseInt(t.toString())}}NextBigId(){return this._IsOverCost?this.NextOverCostId():this.NextNormalId()}}e.SnowflakeIdv1=i},97856:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(47342),r=i(41470);function s(t,e=[]){let i=[],o=()=>{let e=i.map(t=>n.createContext(t));return function(i){let r=i?.[t]||e;return n.useMemo(()=>({[`__scope${t}`]:{...i,[t]:r}}),[i,r])}};return o.scopeName=t,[function(e,s){let o=n.createContext(s),a=i.length;i=[...i,s];let l=e=>{let{scope:i,children:s,...l}=e,u=i?.[t]?.[a]||o,h=n.useMemo(()=>l,Object.values(l));return(0,r.jsx)(u.Provider,{value:h,children:s})};return l.displayName=e+"Provider",[l,function(i,r){let l=r?.[t]?.[a]||o,u=n.useContext(l);if(u)return u;if(void 0!==s)return s;throw Error(`\`${i}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let i=()=>{let i=t.map(t=>({useScope:t(),scopeName:t.scopeName}));
1return function(t){let r=i.reduce((e,{useScope:i,scopeName:n})=>{let r=i(t)[`__scope${n}`];return{...e,...r}},{});return n.useMemo(()=>({[`__scope${e.scopeName}`]:r}),[r])}};return i.scopeName=e.scopeName,i}(o,...e)]}},98500:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(47342).createContext)(null)}}]);

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.