vendor: 29,575 bytes, lines 1-9
1import{r as b}from"./react-CLtB6tdp.js";var An={exports:{}},Pe={};/** 2 * @license React 3 * react-jsx-runtime.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Hs=b,Gs=Symbol.for("react.element"),Us=Symbol.for("react.fragment"),$s=Object.prototype.hasOwnProperty,qs=Hs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ys={key:!0,ref:!0,__self:!0,__source:!0};function Pn(e,t,n){var s,r={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(s in t)$s.call(t,s)&&!Ys.hasOwnProperty(s)&&(r[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)r[s]===void 0&&(r[s]=t[s]);return{$$typeof:Gs,type:e,key:i,ref:o,props:r,_owner:qs.current}}Pe.Fragment=Us;Pe.jsx=Pn;Pe.jsxs=Pn;An.exports=Pe;var $e=An.exports;const Xs=b.createContext({});function Me(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Mn=b.createContext(null),ot=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),at=typeof window<"u",lt=at?b.useLayoutEffect:b.useEffect,B=e=>e;let Zs=B,Cn=B;function ut(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ce=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},_=e=>e*1e3,K=e=>e/1e3,Js={useManualTiming:!1};function Qs(e){let t=new Set,n=new Set,s=!1,r=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(o)}const l={schedule:(u,c=!1,d=!1)=>{const h=d&&s?t:n;return c&&i.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(o=u,s){r=!0;return}s=!0,[t,n]=[n,t],t.forEach(a),t.clear(),s=!1,r&&(r=!1,l.process(u))}};return l}const me=["read","resolveKeyframes","update","preRender","render","postRender"],er=40;function Fn(e,t){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=me.reduce((p,v)=>(p[v]=Qs(i),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=o,h=()=>{const p=performance.now();n=!1,r.delta=s?1e3/60:Math.max(Math.min(p-r.timestamp,er),1),r.timestamp=p,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),c.process(r),d.process(r),f.process(r),r.isProcessing=!1,n&&t&&(s=!1,e(h))},m=()=>{n=!0,s=!0,r.isProcessing||e(h)};return{schedule:me.reduce((p,v)=>{const S=o[v];return p[v]=(M,T=!1,V=!1)=>(n||m(),S.schedule(M,T,V)),p},{}),cancel:p=>{for(let v=0;v<me.length;v++)o[me[v]].cancel(p)},state:r,steps:o}}const{schedule:P,cancel:X,state:ue}=Fn(typeof requestAnimationFrame<"u"?requestAnimationFrame:B,!0),ct=b.createContext({strict:!1}),_t={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"]},Z={};for(const e in _t)Z[e]={isEnabled:t=>_t[e].some(n=>!!t[n])};function Kt(e){for(const t in e)Z[t]={...Z[t],...e[t]}}function el({children:e,features:t,strict:n=!1}){const[,s]=b.useState(!Ne(t)),r=b.useRef(void 0);if(!Ne(t)){const{renderer:i,...o}=t;r.current=i,Kt(o)}return b.useEffect(()=>{Ne(t)&&t().then(({renderer:i,...o})=>{Kt(o),r.current=i,s(!0)})},[]),$e.jsx(ct.Provider,{value:{renderer:r.current,strict:n},children:e})}function Ne(e){return typeof e=="function"}const tr=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 we(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tr.has(e)}let En=e=>!we(e);function nr(e){e&&(En=t=>t.startsWith("on")?!we(t):e(t))}try{nr(require("@emotion/is-prop-valid").default)}catch{}function sr(e,t,n){const s={};for(const r in e)r==="values"&&typeof e.values=="object"||(En(r)||n===!0&&we(r)||!t&&!we(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}function rr(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const Fe=b.createContext({});function ce(e){return typeof e=="string"||Array.isArray(e)}function Ee(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ft=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],dt=["initial",...ft];function Re(e){return Ee(e.animate)||dt.some(t=>ce(e[t]))}function Rn(e){return!!(Re(e)||e.variants)}function ir(e,t){if(Re(e)){const{initial:n,animate:s}=e;return{initial:n===!1||ce(n)?n:void 0,animate:ce(s)?s:void 0}}return e.inherit!==!1?t:{}}function or(e){const{initial:t,animate:n}=ir(e,b.useContext(Fe));return b.useMemo(()=>({initial:t,animate:n}),[Wt(t),Wt(n)])}function Wt(e){return Array.isArray(e)?e.join(" "):e}const ar=Symbol.for("motionComponentSymbol");function On(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lr(e,t,n){return b.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):On(n)&&(n.current=s))},[t])}const ht=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ur="framerAppearId",Dn="data-"+ht(ur),{schedule:cr}=Fn(queueMicrotask,!1),fr=b.createContext({});function dr(e,t,n,s,r){var i,o;const{visualElement:a}=b.useContext(Fe),l=b.useContext(ct),u=b.useContext(Mn),c=b.useContext(ot).reducedMotion,d=b.useRef(null);s=s||l.renderer,!d.current&&s&&(d.current=s(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,h=b.useContext(fr);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&hr(d.current,n,r,h);const m=b.useRef(!1);b.useInsertionEffect(()=>{f&&m.current&&f.update(n,u)});const y=n[Dn],w=b.useRef(!!y&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,y))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,y)));return lt(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),cr.render(f.render),w.current&&f.animationState&&f.animationState.animateChanges())}),b.useEffect(()=>{f&&(!w.current&&f.animationState&&f.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,y)}),w.current=!1))}),f}function hr(e,t,n,s){const{layoutId:r,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:In(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||a&&On(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function In(e){if(e)return e.options.allowProjection!==!1?e.projection:In(e.parent)}function pr({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:r}){var i,o;function a(u,c){let d;const f={...b.useContext(ot),...u,layoutId:mr(u)},{isStatic:h}=f,m=or(u),y=s(u,h);if(!h&&at){gr();const w=yr(f);d=w.MeasureLayout,m.visualElement=dr(r,y,f,t,w.ProjectionNode)}return $e.jsxs(Fe.Provider,{value:m,children:[d&&m.visualElement?$e.jsx(d,{visualElement:m.visualElement,...f}):null,n(r,u,lr(y,m.visualElement,c),y,h,m.visualElement)]})}a.displayName=`motion.${typeof r=="string"?r:`create(${(o=(i=r.displayName)!==null&&i!==void 0?i:r.name)!==null&&o!==void 0?o:""})`}`;const l=b.forwardRef(a);return l[ar]=r,l}function mr({layoutId:e}){const t=b.useContext(Xs).id;return t&&e!==void 0?t+"-"+e:e}function gr(e,t){b.useContext(ct).strict}function yr(e){const{drag:t,layout:n}=Z;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const vr=["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 pt(e){return typeof e!="string"||e.includes("-")?!1:!!(vr.indexOf(e)>-1||/[A-Z]/u.test(e))}function jt(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function mt(e,t,n,s){if(typeof t=="function"){const[r,i]=jt(s);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=jt(s);t=t(n!==void 0?n:e.custom,r,i)}return t}const qe=e=>Array.isArray(e),br=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),wr=e=>qe(e)?e[e.length-1]||0:e,R=e=>!!(e&&e.getVelocity);function Tr(e){const t=R(e)?e.get():e;return br(t)?t.toValue():t}function xr({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,r,i){const o={latestValues:Sr(s,r,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:s,current:a,...o}),o.onUpdate=a=>n(a)),o}const Ln=e=>(t,n)=>{const s=b.useContext(Fe),r=b.useContext(Mn),i=()=>xr(e,t,s,r);return n?i():Me(i)};function Sr(e,t,n,s){const r={},i=s(e,{});for(const f in i)r[f]=Tr(i[f]);let{initial:o,animate:a}=e;const l=Re(e),u=Rn(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;if(d&&typeof d!="boolean"&&!Ee(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const m=mt(e,f[h]);if(m){const{transitionEnd:y,transition:w,...p}=m;for(const v in p){let S=p[v];if(Array.isArray(S)){const M=c?S.length-1:0;S=S[M]}S!==null&&(r[v]=S)}for(const v in y)r[v]=y[v]}}}return r}const Q=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],U=new Set(Q),Bn=e=>t=>typeof t=="string"&&t.startsWith(e),kn=Bn("--"),Vr=Bn("var(--"),gt=e=>Vr(e)?Ar.test(e.split("/*")[0].trim()):!1,Ar=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Nn=(e,t)=>t&&typeof e=="number"?t.transform(e):e,j=(e,t,n)=>n>t?t:n<e?e:n,ee={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},fe={...ee,transform:e=>j(0,1,e)},ge={...ee,default:1},he=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),k=he("deg"),Y=he("%"),g=he("px"),Pr=he("vh"),Mr=he("vw"),zt={...Y,parse:e=>Y.parse(e)/100,transform:e=>Y.transform(e*100)},Cr={borderWidth:g,borderTopWidth:g,borderRightWidth:g,borderBottomWidth:g,borderLeftWidth:g,borderRadius:g,radius:g,borderTopLeftRadius:g,borderTopRightRadius:g,borderBottomRightRadius:g,borderBottomLeftRadius:g,width:g,maxWidth:g,height:g,maxHeight:g,top:g,right:g,bottom:g,left:g,padding:g,paddingTop:g,paddingRight:g,paddingBottom:g,paddingLeft:g,margin:g,marginTop:g,marginRight:g,marginBottom:g,marginLeft:g,backgroundPositionX:g,backgroundPositionY:g},Fr={rotate:k,rotateX:k,rotateY:k,rotateZ:k,scale:ge,scaleX:ge,scaleY:ge,scaleZ:ge,skew:k,skewX:k,skewY:k,distance:g,translateX:g,translateY:g,translateZ:g,x:g,y:g,z:g,perspective:g,transformPerspective:g,opacity:fe,originX:zt,originY:zt,originZ:g},Ht={...ee,transform:Math.round},yt={...Cr,...Fr,zIndex:Ht,size:g,fillOpacity:fe,strokeOpacity:fe,numOctaves:Ht},Er={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Rr=Q.length;function Or(e,t,n){let s="",r=!0;for(let i=0;i<Rr;i++){const o=Q[i],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Nn(a,yt[o]);if(!l){r=!1;const c=Er[o]||o;s+=`${c}(${u}) `}n&&(t[o]=u)}}return s=s.trim(),n?s=n(t,r?"":s):r&&(s="none"),s}function vt(e,t,n){const{style:s,vars:r,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(U.has(l)){o=!0;continue}else if(kn(l)){r[l]=u;continue}else{const c=Nn(u,yt[l]);l.startsWith("origin")?(a=!0,i[l]=c):s[l]=c}}if(t.transform||(o||n?s.transform=Or(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;s.transformOrigin=`${l} ${u} ${c}`}}const Dr={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ir={offset:"strokeDashoffset",array:"strokeDasharray"};function Lr(e,t,n=1,s=0,r=!0){e.pathLength=1;const i=r?Dr:Ir;e[i.offset]=g.transform(-s);const o=g.transform(t),a=g.transform(n);e[i.array]=`${o} ${a}`}function Gt(e,t,n){return typeof e=="string"?e:g.transform(t+n*e)}function Br(e,t,n){const s=Gt(t,e.x,e.width),r=Gt(n,e.y,e.height);return`${s} ${r}`}function bt(e,{attrX:t,attrY:n,attrScale:s,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(vt(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:m}=e;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(r!==void 0||i!==void 0||h.transform)&&(h.transformOrigin=Br(m,r!==void 0?r:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),o!==void 0&&Lr(f,o,a,l,!1)}const wt=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),_n=()=>({...wt(),attrs:{}}),Tt=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Kn(e,{style:t,vars:n},s,r){Object.assign(e.style,t,r&&r.getProjectionStyles(s));for(const i in n)e.style.setProperty(i,n[i])}const Wn=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 jn(e,t,n,s){Kn(e,t,void 0,s);for(const r in t.attrs)e.setAttribute(Wn.has(r)?r:ht(r),t.attrs[r])}const kr={};function zn(e,{layout:t,layoutId:n}){return U.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!kr[e]||e==="opacity")}function xt(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(R(r[o])||t.style&&R(t.style[o])||zn(o,e)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}function Hn(e,t,n){const s=xt(e,t,n);for(const r in e)if(R(e[r])||R(t[r])){const i=Q.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[i]=e[r]}return s}function Nr(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Ut=["x","y","width","height","cx","cy","r"],_r={useVisualState:Ln({scrapeMotionValuesFromProps:Hn,createRenderState:_n,onUpdate:({props:e,prevProps:t,current:n,renderState:s,latestValues:r})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in r)if(U.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a<Ut.length;a++){const l=Ut[a];e[l]!==t[l]&&(o=!0)}o&&P.read(()=>{Nr(n,s),P.render(()=>{bt(s,r,Tt(n.tagName),e.transformTemplate),jn(n,s)})})}})},Kr={useVisualState:Ln({scrapeMotionValuesFromProps:xt,createRenderState:wt})};function Gn(e,t,n){for(const s in t)!R(t[s])&&!zn(s,n)&&(e[s]=t[s])}function Wr({transformTemplate:e},t){return b.useMemo(()=>{const n=wt();return vt(n,t,e),Object.assign({},n.vars,n.style)},[t])}function jr(e,t){const n=e.style||{},s={};return Gn(s,n,e),Object.assign(s,Wr(e,t)),s}function zr(e,t){const n={},s=jr(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}function Hr(e,t,n,s){const r=b.useMemo(()=>{const i=_n();return bt(i,t,Tt(s),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Gn(i,e.style,e),r.style={...i,...r.style}}return r}function Gr(e=!1){return(n,s,r,{latestValues:i},o)=>{const l=(pt(n)?Hr:zr)(s,i,o,n),u=sr(s,typeof n=="string",e),c=n!==b.Fragment?{...u,...l,ref:r}:{},{children:d}=s,f=b.useMemo(()=>R(d)?d.get():d,[d]);return b.createElement(n,{...c,children:f})}}function Ur(e,t){return function(s,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...pt(s)?_r:Kr,preloadedFeatures:e,useRender:Gr(r),createVisualElement:t,Component:s};return pr(o)}}const $r=Ur(),tl=rr($r);function Un(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}function Oe(e,t,n){const s=e.getProps();return mt(s,t,n!==void 0?n:s.custom,e)}const $n=ut(()=>window.ScrollTimeline!==void 0);class qr{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let s=0;s<this.animations.length;s++)this.animations[s][t]=n}attachTimeline(t,n){const s=this.animations.map(r=>{if($n()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{s.forEach((r,i)=>{r&&r(),this.animations[i].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 n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Yr extends qr{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function qn(e,t){return e?e[t]||e.default||e:void 0}const Ye=2e4;function Yn(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Ye;)t+=n,s=e.next(t);return t>=Ye?1/0:t}function St(e){return typeof e=="function"}function $t(e,t){e.timeline=t,e.onfinish=null}const Vt=e=>Array.isArray(e)&&typeof e[0]=="number",Xr={linearEasing:void 0};function Zr(e,t){const n=ut(e);return()=>{var s;return(s=Xr[t])!==null&&s!==void 0?s:n()}}const Te=Zr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Xn=(e,t,n=10)=>{let s="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)s+=e(Ce(0,r-1,i))+", ";return`linear(${s.substring(0,s.length-2)})`};function Zn(e){return!!(typeof e=="function"&&Te()||!e||typeof e=="string"&&(e in Xe||Te())||Vt(e)||Array.isArray(e)&&e.every(Zn))}const re=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Xe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:re([0,.65,.55,1]),circOut:re([.55,0,1,.45]),backIn:re([.31,.01,.66,-.59]),backOut:re([.33,1.53,.69,.99])};function Jn(e,t){if(e)return typeof e=="function"&&Te()?Xn(e,t):Vt(e)?re(e):Array.isArray(e)?e.map(n=>Jn(n,t)||Xe.easeOut):Xe[e]}const Jr={y:!1};function Qr(){return Jr.y}function Qn(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const i=(s=void 0)!==null&&s!==void 0?s:r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function es(e,t){const n=Qn(e),s=new AbortController,r={passive:!0,...t,signal:s.signal};return[n,r,()=>s.abort()]}function qt(e){return t=>{t.pointerType==="touch"||Qr()||e(t)}}function ei(e,t,n={}){const[s,r,i]=es(e,n),o=qt(a=>{const{target:l}=a,u=t(a);if(typeof u!="function"||!l)return;const c=qt(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,r)});return s.forEach(a=>{a.addEventListener("pointerenter",o,r)}),i}const ts=(e,t)=>t?e===t?!0:ts(e,t.parentElement):!1,ti=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ni=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function si(e){return ni.has(e.tagName)||e.tabIndex!==-1}const ie=new WeakSet;function Yt(e){return t=>{t.key==="Enter"&&e(t)}}function _e(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ri=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Yt(()=>{if(ie.has(n))return;_e(n,"down");const r=Yt(()=>{_e(n,"up")}),i=()=>_e(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function Xt(e){return ti(e)&&!0}function ii(e,t,n={}){const[s,r,i]=es(e,n),o=a=>{const l=a.currentTarget;if(!Xt(a)||ie.has(l))return;ie.add(l);const u=t(a),c=(h,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!Xt(h)||!ie.has(l))&&(ie.delete(l),typeof u=="function"&&u(h,{success:m}))},d=h=>{c(h,n.useGlobalTarget||ts(l,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",f,r)};return s.forEach(a=>{!si(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),a.addEventListener("focus",u=>ri(u,r),r)}),i}const ns=new Set(["width","height","top","left","right","bottom",...Q]);let ye;function oi(){ye=void 0}const W={now:()=>(ye===void 0&&W.set(ue.isProcessing||Js.useManualTiming?ue.timestamp:performance.now()),ye),set:e=>{ye=e,queueMicrotask(oi)}};function ai(e,t){e.indexOf(t)===-1&&e.push(t)}function li(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ss{constructor(){this.subscriptions=[]}add(t){return ai(this.subscriptions,t),()=>li(this.subscriptions,t)}notify(t,n,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,s);else for(let i=0;i<r;i++){const o=this.subscriptions[i];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function At(e,t){return t?e*(1e3/t):0}const Zt=30,ui=e=>!isNaN(parseFloat(e)),oe={current:void 0};class ci{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,r=!0)=>{const i=W.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=W.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ui(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ss);const s=this.events[t].add(n);return t==="change"?()=>{s(),P.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return oe.current&&oe.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=W.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zt)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zt);return At(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function L(e,t){return new ci(e,t)}function fi(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,L(n))}function di(e,t){const n=Oe(e,t);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const o in i){const a=wr(i[o]);fi(e,o,a)}}function hi(e){return!!(R(e)&&e.add)}function pi(e,t){const n=e.getValue("willChange");if(hi(n))return n.add(t)}function mi(e){return e.props[Dn]}const rs=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,gi=1e-7,yi=12;function vi(e,t,n,s,r){let i,o,a=0;do o=t+(n-t)/2,i=rs(o,s,r)-e,i>0?n=o:t=o;while(Math.abs(i)>gi&&++a<yi);return o}function pe(e,t,n,s){if(e===t&&n===s)return B;const r=i=>vi(i,0,1,e,n);return i=>i===0||i===1?i:rs(r(i),t,s)}const is=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,os=e=>t=>1-e(1-t),as=pe(.33,1.53,.69,.99),Pt=os(as),ls=is(Pt),us=e=>(e*=2)<1?.5*Pt(e):.5*(2-Math.pow(2,-10*(e-1))),Mt=e=>1-Math.sin(Math.acos(e)),bi=os(Mt),cs=is(Mt),fs=e=>/^0[^.\s]+$/u.test(e);function wi(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||fs(e):!0}const ae=e=>Math.round(e*1e5)/1e5,Ct=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ti(e){return e==null}const xi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ft=(e,t)=>n=>!!(typeof n=="string"&&xi.test(n)&&n.startsWith(e)||t&&!Ti(n)&&Object.prototype.hasOwnProperty.call(n,t)),ds=(e,t,n)=>s=>{if(typeof s!="string")return s;const[r,i,o,a]=s.match(Ct);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Si=e=>j(0,255,e),Ke={...ee,transform:e=>Math.round(Si(e))},H={test:Ft("rgb","red"),parse:ds("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Ke.transform(e)+", "+Ke.transform(t)+", "+Ke.transform(n)+", "+ae(fe.transform(s))+")"};function Vi(e){let t="",n="",s="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const Ze={test:Ft("#"),parse:Vi,transform:H.transform},q={test:Ft("hsl","hue"),parse:ds("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+Y.transform(ae(t))+", "+Y.transform(ae(n))+", "+ae(fe.transform(s))+")"},F={test:e=>H.test(e)||Ze.test(e)||q.test(e),parse:e=>H.test(e)?H.parse(e):q.test(e)?q.parse(e):Ze.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?H.transform(e):q.transform(e)},Ai=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pi(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ct))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ai))===null||n===void 0?void 0:n.length)||0)>0}const hs="number",ps="color",Mi="var",Ci="var(",Jt="${}",Fi=/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 de(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(Fi,l=>(F.test(l)?(s.color.push(i),r.push(ps),n.push(F.parse(l))):l.startsWith(Ci)?(s.var.push(i),r.push(Mi),n.push(l)):(s.number.push(i),r.push(hs),n.push(parseFloat(l))),++i,Jt)).split(Jt);return{values:n,split:a,indexes:s,types:r}}function ms(e){return de(e).values}function gs(e){const{split:t,types:n}=de(e),s=t.length;return r=>{let i="";for(let o=0;o<s;o++)if(i+=t[o],r[o]!==void 0){const a=n[o];a===hs?i+=ae(r[o]):a===ps?i+=F.transform(r[o]):i+=r[o]}return i}}const Ei=e=>typeof e=="number"?0:e;function Ri(e){const t=ms(e);return gs(e)(t.map(Ei))}const te={test:Pi,parse:ms,createTransformer:gs,getAnimatableNone:Ri},Oi=new Set(["brightness","contrast","saturate","opacity"]);function Di(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Ct)||[];if(!s)return e;const r=n.replace(s,"");let i=Oi.has(t)?1:0;return s!==n&&(i*=100),t+"("+i+r+")"}const Ii=/\b([a-z-]*)\(.*?\)/gu,Je={...te,getAnimatableNone:e=>{const t=e.match(Ii);return t?t.map(Di).join(" "):e}},Li={...yt,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:Je,WebkitFilter:Je},Et=e=>Li[e];function ys(e,t){let n=Et(e);return n!==Je&&(n=te),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Bi=new Set(["auto","none","0"]);function ki(e,t,n){let s=0,r;for(;s<e.length&&!r;){const i=e[s];typeof i=="string"&&!Bi.has(i)&&de(i).values.length&&(r=e[s]),s++}if(r&&n)for(const i of t)e[i]=ys(n,r)}const Qt=e=>e===ee||e===g,en=(e,t)=>parseFloat(e.split(", ")[t]),tn=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/u);if(r)return en(r[1],t);{const i=s.match(/^matrix\((.+)\)$/u);return i?en(i[1],e):0}},Ni=new Set(["x","y","z"]),_i=Q.filter(e=>!Ni.has(e));function Ki(e){const t=[];
vendor: 8,701 bytes, line 9
9return _i.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const J={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:tn(4,13),y:tn(5,14)};J.translateX=J.x;J.translateY=J.y;const G=new Set;let Qe=!1,et=!1;function vs(){if(et){const e=Array.from(G).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const r=Ki(s);r.length&&(n.set(s,r),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const r=n.get(s);r&&r.forEach(([i,o])=>{var a;(a=s.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}et=!1,Qe=!1,G.forEach(e=>e.complete()),G.clear()}function bs(){G.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(et=!0)})}function Wi(){bs(),vs()}class Rt{constructor(t,n,s,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(G.add(this),Qe||(Qe=!0,P.read(bs),P.resolveKeyframes(vs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:r}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const o=r==null?void 0:r.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(s&&n){const l=s.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),r&&o===void 0&&r.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),G.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,G.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ws=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ji=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zi(e){const t=ji.exec(e);if(!t)return[,];const[,n,s,r]=t;return[`--${n??s}`,r]}function Ts(e,t,n=1){const[s,r]=zi(e);if(!s)return;const i=window.getComputedStyle(t).getPropertyValue(s);if(i){const o=i.trim();return ws(o)?parseFloat(o):o}return gt(r)?Ts(r,t,n+1):r}const xs=e=>t=>t.test(e),Hi={test:e=>e==="auto",parse:e=>e},Ss=[ee,g,Y,k,Mr,Pr,Hi],nn=e=>Ss.find(xs(e));class Vs extends Rt{constructor(t,n,s,r,i){super(t,n,s,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),gt(u))){const c=Ts(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!ns.has(s)||t.length!==2)return;const[r,i]=t,o=nn(r),a=nn(i);if(o!==a)if(Qt(o)&&Qt(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let r=0;r<t.length;r++)wi(t[r])&&s.push(r);s.length&&ki(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=J[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(s,r).jump(r,!1)}measureEndState(){var t;const{element:n,name:s,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const i=n.getValue(s);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,a=r[o];r[o]=J[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const sn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(te.test(e)||e==="0")&&!e.startsWith("url("));function Gi(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ui(e,t,n,s){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=sn(r,t),a=sn(i,t);return!o||!a?!1:Gi(e)||(n==="spring"||St(n))&&s}const $i=e=>e!==null;function De(e,{repeat:t,repeatType:n="loop"},s){const r=e.filter($i),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return!i||s===void 0?r[i]:s}const qi=40;class As{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=W.now(),this.options={autoplay:t,delay:n,type:s,repeat:r,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>qi?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Wi(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=W.now(),this.hasAttemptedResolve=!0;const{name:s,type:r,velocity:i,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Ui(t,s,r,i))if(o)this.options.duration=0;else{l&&l(De(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Ie=(e,t,n)=>e+(t-e)*n;function We(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Yi({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let r=0,i=0,o=0;if(!t)r=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=We(l,a,e+1/3),i=We(l,a,e),o=We(l,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}function xe(e,t){return n=>n>0?t:e}const je=(e,t,n)=>{const s=e*e,r=n*(t*t-s)+s;return r<0?0:Math.sqrt(r)},Xi=[Ze,H,q],Zi=e=>Xi.find(t=>t.test(e));function rn(e){const t=Zi(e);if(!t)return!1;let n=t.parse(e);return t===q&&(n=Yi(n)),n}const on=(e,t)=>{const n=rn(e),s=rn(t);if(!n||!s)return xe(e,t);const r={...n};return i=>(r.red=je(n.red,s.red,i),r.green=je(n.green,s.green,i),r.blue=je(n.blue,s.blue,i),r.alpha=Ie(n.alpha,s.alpha,i),H.transform(r))},Ji=(e,t)=>n=>t(e(n)),Le=(...e)=>e.reduce(Ji),tt=new Set(["none","hidden"]);function Qi(e,t){return tt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function eo(e,t){return n=>Ie(e,t,n)}function Ot(e){return typeof e=="number"?eo:typeof e=="string"?gt(e)?xe:F.test(e)?on:so:Array.isArray(e)?Ps:typeof e=="object"?F.test(e)?on:to:xe}function Ps(e,t){const n=[...e],s=n.length,r=e.map((i,o)=>Ot(i)(i,t[o]));return i=>{for(let o=0;o<s;o++)n[o]=r[o](i);return n}}function to(e,t){const n={...e,...t},s={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(s[r]=Ot(e[r])(e[r],t[r]));return r=>{for(const i in s)n[i]=s[i](r);return n}}function no(e,t){var n;const s=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],a=e.indexes[o][r[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;s[i]=l,r[o]++}return s}const so=(e,t)=>{const n=te.createTransformer(t),s=de(e),r=de(t);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?tt.has(e)&&!r.values.length||tt.has(t)&&!s.values.length?Qi(e,t):Le(Ps(no(s,r),r.values),n):xe(e,t)};function Ms(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ie(e,t,n):Ot(e)(e,t)}const ro=5;function Cs(e,t,n){const s=Math.max(t-ro,0);return At(n-e(s),t-s)}const A={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},ze=.001;function io({duration:e=A.duration,bounce:t=A.bounce,velocity:n=A.velocity,mass:s=A.mass}){let r,i,o=1-t;o=j(A.minDamping,A.maxDamping,o),e=j(A.minDuration,A.maxDuration,K(e)),o<1?(r=u=>{const c=u*o,d=c*e,f=c-n,h=nt(u,o),m=Math.exp(-d);return ze-f/h*m},i=u=>{const d=u*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(u,2)*e,m=Math.exp(-d),y=nt(Math.pow(u,2),o);return(-r(u)+ze>0?-1:1)*((f-h)*m)/y}
vendor: 8,978 bytes, line 9
9):(r=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-ze+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=ao(r,i,a);if(e=_(e),isNaN(l))return{stiffness:A.stiffness,damping:A.damping,duration:e};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:e}}}const oo=12;function ao(e,t,n){let s=n;for(let r=1;r<oo;r++)s=s-e(s)/t(s);return s}function nt(e,t){return e*Math.sqrt(1-t*t)}const lo=["duration","bounce"],uo=["stiffness","damping","mass"];function an(e,t){return t.some(n=>e[n]!==void 0)}function co(e){let t={velocity:A.velocity,stiffness:A.stiffness,damping:A.damping,mass:A.mass,isResolvedFromDuration:!1,...e};if(!an(e,uo)&&an(e,lo))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),r=s*s,i=2*j(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:A.mass,stiffness:r,damping:i}}else{const n=io(e);t={...t,...n,mass:A.mass},t.isResolvedFromDuration=!0}return t}function Fs(e=A.visualDuration,t=A.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:r}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=co({...n,velocity:-K(n.velocity||0)}),m=f||0,y=u/(2*Math.sqrt(l*c)),w=o-i,p=K(Math.sqrt(l/c)),v=Math.abs(w)<5;s||(s=v?A.restSpeed.granular:A.restSpeed.default),r||(r=v?A.restDelta.granular:A.restDelta.default);let S;if(y<1){const T=nt(p,y);S=V=>{const C=Math.exp(-y*p*V);return o-C*((m+y*p*w)/T*Math.sin(T*V)+w*Math.cos(T*V))}}else if(y===1)S=T=>o-Math.exp(-p*T)*(w+(m+p*w)*T);else{const T=p*Math.sqrt(y*y-1);S=V=>{const C=Math.exp(-y*p*V),x=Math.min(T*V,300);return o-C*((m+y*p*w)*Math.sinh(x)+T*w*Math.cosh(x))/T}}const M={calculatedDuration:h&&d||null,next:T=>{const V=S(T);if(h)a.done=T>=d;else{let C=0;y<1&&(C=T===0?_(m):Cs(S,T,V));const x=Math.abs(C)<=s,O=Math.abs(o-V)<=r;a.done=x&&O}return a.value=a.done?o:V,a},toString:()=>{const T=Math.min(Yn(M),Ye),V=Xn(C=>M.next(T*C).value,T,30);return T+"ms "+V}};return M}function ln({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=x=>a!==void 0&&x<a||l!==void 0&&x>l,m=x=>a===void 0?l:l===void 0||Math.abs(a-x)<Math.abs(l-x)?a:l;let y=n*t;const w=d+y,p=o===void 0?w:o(w);p!==w&&(y=p-d);const v=x=>-y*Math.exp(-x/s),S=x=>p+v(x),M=x=>{const O=v(x),D=S(x);f.done=Math.abs(O)<=u,f.value=f.done?p:D};let T,V;const C=x=>{h(f.value)&&(T=x,V=Fs({keyframes:[f.value,m(f.value)],velocity:Cs(S,x,f.value),damping:r,stiffness:i,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:x=>{let O=!1;return!V&&T===void 0&&(O=!0,M(x),C(x)),T!==void 0&&x>=T?V.next(x-T):(!O&&M(x),f)}}}const fo=pe(.42,0,1,1),ho=pe(0,0,.58,1),Es=pe(.42,0,.58,1),po=e=>Array.isArray(e)&&typeof e[0]!="number",mo={linear:B,easeIn:fo,easeInOut:Es,easeOut:ho,circIn:Mt,circInOut:cs,circOut:bi,backIn:Pt,backInOut:ls,backOut:as,anticipate:us},un=e=>{if(Vt(e)){Cn(e.length===4);const[t,n,s,r]=e;return pe(t,n,s,r)}else if(typeof e=="string")return mo[e];return e};function go(e,t,n){const s=[],r=n||Ms,i=e.length-1;for(let o=0;o<i;o++){let a=r(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||B:t;a=Le(l,a)}s.push(a)}return s}function Dt(e,t,{clamp:n=!0,ease:s,mixer:r}={}){const i=e.length;if(Cn(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=go(t,s,r),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=Ce(e[d],e[d+1],c);return a[d](f)};return n?c=>u(j(e[0],e[i-1],c)):u}function yo(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const r=Ce(0,t,s);e.push(Ie(n,1,r))}}function Rs(e){const t=[0];return yo(t,e.length-1),t}function vo(e,t){return e.map(n=>n*t)}function bo(e,t){return e.map(()=>t||Es).splice(0,e.length-1)}function Se({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const r=po(s)?s.map(un):un(s),i={done:!1,value:t[0]},o=vo(n&&n.length===t.length?n:Rs(t),e),a=Dt(o,t,{ease:Array.isArray(r)?r:bo(t,r)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const wo=e=>{const t=({timestamp:n})=>e(n);return{start:()=>P.update(t,!0),stop:()=>X(t),now:()=>ue.isProcessing?ue.timestamp:W.now()}},To={decay:ln,inertia:ln,tween:Se,keyframes:Se,spring:Fs},xo=e=>e/100;class It extends As{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,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:r,keyframes:i}=this.options,o=(r==null?void 0:r.KeyframeResolver)||Rt,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(i,a,n,s,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,a=St(n)?n:To[n]||Se;let l,u;a!==Se&&typeof t[0]!="number"&&(l=Le(xo,Ms(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Yn(c));const{calculatedDuration:d}=c,f=d+r,h=f*(s+1)-r;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:s}=this;if(!s){const{keyframes:x}=this.options;return{done:!0,value:x[x.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=s;if(this.startTime===null)return i.next(0);const{delay:f,repeat:h,repeatType:m,repeatDelay:y,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const p=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let S=this.currentTime,M=i;if(h){const x=Math.min(this.currentTime,c)/d;let O=Math.floor(x),D=x%1;!D&&x>=1&&(D=1),D===1&&O--,O=Math.min(O,h+1),!!(O%2)&&(m==="reverse"?(D=1-D,y&&(D-=y/d)):m==="mirror"&&(M=o)),S=j(0,1,D)*d}const T=v?{done:!1,value:l[0]}:M.next(S);a&&(T.value=a(T.value));let{done:V}=T;!v&&u!==null&&(V=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return C&&r!==void 0&&(T.value=De(l,this.options,r)),w&&w(T.value),C&&this.finish(),T}get duration(){const{resolved:t}=this;return t?K(t.calculatedDuration):0}get time(){return K(this.currentTime)}set time(t){t=_(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=K(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=wo,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const So=new Set(["opacity","clipPath","filter","transform"]);function Vo(e,t,n,{delay:s=0,duration:r=300,repeat:i=0,repeatType:
vendor: 4,138 bytes, line 9
9o="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Jn(a,r);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:s,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const Ao=ut(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ve=10,Po=2e4;function Mo(e){return St(e.type)||e.type==="spring"||!Zn(e.ease)}function Co(e,t){const n=new It({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const r=[];let i=0;for(;!s.done&&i<Po;)s=n.sample(i),r.push(s.value),i+=Ve;return{times:void 0,keyframes:r,duration:i-Ve,ease:"linear"}}const Os={anticipate:us,backInOut:ls,circInOut:cs};function Fo(e){return e in Os}class cn extends As{constructor(t){super(t);const{name:n,motionValue:s,element:r,keyframes:i}=this.options;this.resolver=new Vs(i,(o,a)=>this.onKeyframesResolved(o,a),n,s,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:s=300,times:r,ease:i,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&Te()&&Fo(i)&&(i=Os[i]),Mo(this.options)){const{onComplete:d,onUpdate:f,motionValue:h,element:m,...y}=this.options,w=Co(t,y);t=w.keyframes,t.length===1&&(t[1]=t[0]),s=w.duration,r=w.times,i=w.ease,o="keyframes"}const c=Vo(a.owner.current,l,t,{...this.options,duration:s,times:r,ease:i});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?($t(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;a.set(De(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:s,times:r,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return K(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return K(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=_(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return B;const{animation:s}=n;$t(s,t)}return B}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:s,duration:r,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...h}=this.options,m=new It({...h,keyframes:s,duration:r,type:i,ease:o,times:a,isGenerator:!0}),y=_(this.time);u.setWithVelocity(m.sample(y-Ve).value,m.sample(y).value,Ve)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:s,repeatDelay:r,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return Ao()&&s&&So.has(s)&&!l&&!u&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}}const Eo={type:"spring",stiffness:500,damping:25,restSpeed:10},Ro=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Oo={type:"keyframes",duration:.8},Do={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Io=(e,{keyframes:t})=>t.length>2?Oo:U.has(e)?e.startsWith("scale")?Ro(t[1]):Eo:Do;function Lo({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:
vendor: 9,877 bytes, line 9
9o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Bo=(e,t,n,s={},r,i)=>o=>{const a=qn(s,e)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-_(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:r};Lo(a)||(c={...c,...Io(e,c)}),c.duration&&(c.duration=_(c.duration)),c.repeatDelay&&(c.repeatDelay=_(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=De(c.keyframes,a);if(f!==void 0)return P.update(()=>{c.onUpdate(f),c.onComplete()}),new Yr([])}return!i&&cn.supports(c)?new cn(c):new It(c)};function ko({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function Ds(e,t,{delay:n=0,transitionOverride:s,type:r}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;s&&(o=s);const u=[],c=r&&e.animationState&&e.animationState.getState()[r];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),h=l[d];if(h===void 0||c&&ko(c,d))continue;const m={delay:n,...qn(o||{},d)};let y=!1;if(window.MotionHandoffAnimation){const p=mi(e);if(p){const v=window.MotionHandoffAnimation(p,d,P);v!==null&&(m.startTime=v,y=!0)}}pi(e,d),f.start(Bo(d,f,h,e.shouldReduceMotion&&ns.has(d)?{type:!1}:m,e,y));const w=f.animation;w&&u.push(w)}return a&&Promise.all(u).then(()=>{P.update(()=>{a&&di(e,a)})}),u}function st(e,t,n={}){var s;const r=Oe(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Ds(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return No(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function No(e,t,n=0,s=0,r=1,i){const o=[],a=(e.variantChildren.size-1)*s,l=r===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(e.variantChildren).sort(_o).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(st(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function _o(e,t){return e.sortNodePosition(t)}function Ko(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const r=t.map(i=>st(e,i,n));s=Promise.all(r)}else if(typeof t=="string")s=st(e,t,n);else{const r=typeof t=="function"?Oe(e,t,n.custom):t;s=Promise.all(Ds(e,r,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const Wo=dt.length;function Is(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Is(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Wo;n++){const s=dt[n],r=e.props[s];(ce(r)||r===!1)&&(t[s]=r)}return t}const jo=[...ft].reverse(),zo=ft.length;function Ho(e){return t=>Promise.all(t.map(({animation:n,options:s})=>Ko(e,n,s)))}function Go(e){let t=Ho(e),n=fn(),s=!0;const r=l=>(u,c)=>{var d;const f=Oe(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:m,...y}=f;u={...u,...y,...m}}return u};function i(l){t=l(e)}function o(l){const{props:u}=e,c=Is(e.parent)||{},d=[],f=new Set;let h={},m=1/0;for(let w=0;w<zo;w++){const p=jo[w],v=n[p],S=u[p]!==void 0?u[p]:c[p],M=ce(S),T=p===l?v.isActive:null;T===!1&&(m=w);let V=S===c[p]&&S!==u[p]&&M;if(V&&s&&e.manuallyAnimateOnMount&&(V=!1),v.protectedKeys={...h},!v.isActive&&T===null||!S&&!v.prevProp||Ee(S)||typeof S=="boolean")continue;const C=Uo(v.prevProp,S);let x=C||p===l&&v.isActive&&!V&&M||w>m&&M,O=!1;const D=Array.isArray(S)?S:[S];let $=D.reduce(r(p),{});T===!1&&($={});const{prevResolvedValues:kt={}}=v,zs={...kt,...$},Nt=E=>{x=!0,f.has(E)&&(O=!0,f.delete(E)),v.needsAnimating[E]=!0;const I=e.getValue(E);I&&(I.liveStyle=!1)};for(const E in zs){const I=$[E],Be=kt[E];if(h.hasOwnProperty(E))continue;let ke=!1;qe(I)&&qe(Be)?ke=!Un(I,Be):ke=I!==Be,ke?I!=null?Nt(E):f.add(E):I!==void 0&&f.has(E)?Nt(E):v.protectedKeys[E]=!0}v.prevProp=S,v.prevResolvedValues=$,v.isActive&&(h={...h,...$}),s&&e.blockInitialAnimation&&(x=!1),x&&(!(V&&C)||O)&&d.push(...D.map(E=>({animation:E,options:{type:p}})))}if(f.size){const w={};f.forEach(p=>{const v=e.getBaseTarget(p),S=e.getValue(p);S&&(S.liveStyle=!0),w[p]=v??null}),d.push({animation:w})}let y=!!d.length;return s&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),s=!1,y?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=fn(),s=!0}}}function Uo(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Un(t,e):!1}function z(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fn(){return{animate:z(!0),whileInView:z(),whileHover:z(),whileTap:z(),whileDrag:z(),whileFocus:z(),exit:z()}}class ne{constructor(t){this.isMounted=!1,this.node=t}update(){}}class $o extends ne{constructor(t){super(t),t.animationState||(t.animationState=Go(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ee(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let qo=0;class Yo extends ne{constructor(){super(...arguments),this.id=qo++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Xo={animation:{Feature:$o},exit:{Feature:Yo}};function dn(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Ls(e){return{point:{x:e.pageX,y:e.pageY}}}const hn=()=>({min:0,max:0}),Bs=()=>({x:hn(),y:hn()});function Zo({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Jo(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Qo(e,t){return Zo(Jo(e.getBoundingClientRect(),t))}function pn(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=s[r];i&&P.postRender(()=>i(t,Ls(t)))}class ea extends ne{mount(){const{current:t}=this.node;t&&(this.unmount=ei(t,n=>(pn(this.node,n,"Start"),s=>pn(this.node,s,"End"))))}unmount(){}}class ta extends ne{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{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=Le(dn(this.node.current,"focus",()=>this.onFocus()),dn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function mn(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=s[r];i&&P.postRender(()=>i(t,Ls(t)))}class na extends ne{mount(){const{current:t}=this.node;t&&(this.unmount=ii(t,n=>(mn(this.node,n,"Start"),(s,{success:r})=>mn(this.node,s,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const rt=new WeakMap,He=new WeakMap,sa=e=>{const t=rt.get(e.target);t&&t(e)},ra=e=>{e.forEach(sa)};function ia({root:e,...t}){const n=e||document;He.has(n)||He.set(n,{});const s=He.get(n),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(ra,{root:e,...t})),s[r]}function oa(e,t,n){const s=ia(t);return rt.set(e,n),s.observe(e),()=>{rt.delete(e),s.unobserve(e)}}const aa={some:0,all:1};class la extends ne{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof r=="number"?r:aa[r]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return oa(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(ua(t,n))&&this.startObserver()}unmount(){}}function ua({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ca={inView:{Feature:la},tap:{Feature:na},focus:{Feature:ta},hover:{Feature:ea}},Ae={current:null},Lt={current:!1};function ks(){if(Lt.current=!0,!!at)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ae.current=e.matches;e.addListener(t),t()}else Ae.current=!1}const fa=[...Ss,F,te],da=e=>fa.find(xs(e)),gn=new WeakMap;
vendor: 4,942 bytes, line 9
9function ha(e,t,n){for(const s in t){const r=t[s],i=n[s];if(R(r))e.addValue(s,r);else if(R(i))e.addValue(s,L(r,{owner:e}));else if(i!==r)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(s);e.addValue(s,L(o!==void 0?o:r,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const yn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class pa{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Rt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=W.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,P.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=o;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Re(n),this.isVariantNode=Rn(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const m=f[h];l[h]!==void 0&&R(m)&&m.set(l[h],!1)}}mount(t){this.current=t,gn.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((n,s)=>this.bindToMotionValue(s,n)),Lt.current||ks(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ae.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){gn.delete(this.current),this.projection&&this.projection.unmount(),X(this.notifyUpdate),X(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=U.has(t),r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&P.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Z){const n=Z[t];if(!n)continue;const{isEnabled:s,Feature:r}=n;if(!this.features[t]&&r&&s(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Bs()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<yn.length;s++){const r=yn[s];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,o=t[i];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=ha(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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}
9addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=L(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(ws(r)||fs(r))?r=parseFloat(r):!da(r)&&te.test(n)&&(r=ys(t,n)),this.setBaseTarget(t,R(r)?r.get():r)),R(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const o=mt(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(r=o[t])}if(s&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!R(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ss),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Ns extends pa{constructor(){super(...arguments),this.KeyframeResolver=Vs}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;R(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ma(e){return window.getComputedStyle(e)}class ga extends Ns{constructor(){super(...arguments),this.type="html",this.renderInstance=Kn}readValueFromInstance(t,n){if(U.has(n)){const s=Et(n);return s&&s.default||0}else{const s=ma(t),r=(kn(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Qo(t,n)}build(t,n,s){vt(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return xt(t,n,s)}}class ya extends Ns{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Bs}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(U.has(n)){const s=Et(n);return s&&s.default||0}return n=Wn.has(n)?n:ht(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Hn(t,n,s)}build(t,n,s){bt(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,r){jn(t,n,s,r)}mount(t){this.isSVGTag=Tt(t.tagName),super.mount(t)}}const va=(e,t)=>pt(e)?new ya(t):new ga(t,{allowProjection:e!==b.Fragment}),nl={renderer:va,...Xo,...ca};function _s(e,t){let n;const s=()=>{const{currentTime:r}=t,o=(r===null?0:r.value)/100;n!==o&&e(o),n=o};return P.update(s,!0),()=>X(s)}const ve=new WeakMap;let N;function ba(e,t){if(t){const{inlineSize:n,blockSize:s}=t[0];return{width:n,height:s}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function wa({target:e,contentRect:t,borderBoxSize:n}){var s;(s=ve.get(e))===null||s===void 0||s.forEach(r=>{r({target:e,contentSize:t,get size(){return ba(e,n)}})})}function Ta(e){e.forEach(wa)}function xa(){typeof ResizeObserver>"u"||(N=new ResizeObserver(Ta))}function Sa(e,t){N||xa();const n=Qn(e);return n.forEach(s=>{let r=ve.get(s);r||(r=new Set,ve.set(s,r)),r.add(t),N==null||N.observe(s)}),()=>{n.forEach(s=>{const r=ve.get(s);r==null||r.delete(t),r!=null&&r.size||N==null||N.unobserve(s)})}}const be=new Set;let le;function Va(){le=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};be.forEach(n=>n(t))},window.addEventListener("resize",le)}function Aa(e){return be.add(e),le||Va(),()=>{be.delete(e),!be.size&&le&&(le=void 0)}}function Pa(e,t){return typeof e=="function"?Aa(e):Sa(e,t)}const Ma=50,vn=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Ca=()=>({time:0,x:vn(),y:vn()}),Fa={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function bn(e,t,n,s){const r=n[t],{length:i,position:o}=Fa[t],a=r.current,l=n.time;r.current=e[`scroll${o}`],r.scrollLength=e[`scroll${i}`]-e[`client${i}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=Ce(0,r.scrollLength,r.current);const u=s-l;r.velocity=u>Ma?0:At(r.current-a,u)}
9function Ea(e,t,n){bn(e,"x",t,n),bn(e,"y",t,n),t.time=n}function Ra(e,t){const n={x:0,y:0};let s=e;for(;s&&s!==t;)if(s instanceof HTMLElement)n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if(s.tagName==="svg"){const r=s.getBoundingClientRect();s=s.parentElement;const i=s.getBoundingClientRect();n.x+=r.left-i.left,n.y+=r.top-i.top}else if(s instanceof SVGGraphicsElement){const{x:r,y:i}=s.getBBox();n.x+=r,n.y+=i;let o=null,a=s.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=s.parentNode;s=o}else break;return n}const it={start:0,center:.5,end:1};function wn(e,t,n=0){let s=0;if(e in it&&(e=it[e]),typeof e=="string"){const r=parseFloat(e);e.endsWith("px")?s=r:e.endsWith("%")?e=r/100:e.endsWith("vw")?s=r/100*document.documentElement.clientWidth:e.endsWith("vh")?s=r/100*document.documentElement.clientHeight:e=r}return typeof e=="number"&&(s=t*e),n+s}const Oa=[0,0];function Da(e,t,n,s){let r=Array.isArray(e)?e:Oa,i=0,o=0;return typeof e=="number"?r=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?r=e.split(" "):r=[e,it[e]?e:"0"]),i=wn(r[0],n,s),o=wn(r[1],t),i-o}const Ia={All:[[0,0],[1,1]]},La={x:0,y:0};function Ba(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function ka(e,t,n){const{offset:s=Ia.All}=n,{target:r=e,axis:i="y"}=n,o=i==="y"?"height":"width",a=r!==e?Ra(r,e):La,l=r===e?{width:e.scrollWidth,height:e.scrollHeight}:Ba(r),u={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let c=!t[i].interpolate;const d=s.length;for(let f=0;f<d;f++){const h=Da(s[f],u[o],l[o],a[i]);!c&&h!==t[i].interpolatorOffsets[f]&&(c=!0),t[i].offset[f]=h}c&&(t[i].interpolate=Dt(t[i].offset,Rs(s),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=j(0,1,t[i].interpolate(t[i].current))}function Na(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let s=t;for(;s&&s!==e;)n.x.targetOffset+=s.offsetLeft,n.y.targetOffset+=s.offsetTop,s=s.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function _a(e,t,n,s={}){return{measure:()=>Na(e,s.target,n),update:r=>{Ea(e,n,r),(s.offset||s.target)&&ka(e,n,s)},notify:()=>t(n)}}const se=new WeakMap,Tn=new WeakMap,Ge=new WeakMap,xn=e=>e===document.documentElement?window:e;function Bt(e,{container:t=document.documentElement,...n}={}){let s=Ge.get(t);s||(s=new Set,Ge.set(t,s));const r=Ca(),i=_a(t,e,r,n);if(s.add(i),!se.has(t)){const a=()=>{for(const f of s)f.measure()},l=()=>{for(const f of s)f.update(ue.timestamp)},u=()=>{for(const f of s)f.notify()},c=()=>{P.read(a,!1,!0),P.read(l,!1,!0),P.update(u,!1,!0)};se.set(t,c);const d=xn(t);window.addEventListener("resize",c,{passive:!0}),t!==document.documentElement&&Tn.set(t,Pa(t,c)),d.addEventListener("scroll",c,{passive:!0})}const o=se.get(t);return P.read(o,!1,!0),()=>{var a;X(o);const l=Ge.get(t);if(!l||(l.delete(i),l.size))return;const u=se.get(t);se.delete(t),u&&(xn(t).removeEventListener("scroll",u),(a=Tn.get(t))===null||a===void 0||a(),window.removeEventListener("resize",u))}}function Ka({source:e,container:t,axis:n="y"}){e&&(t=e);const s={value:0},r=Bt(i=>{s.value=i[n].progress*100},{container:t,axis:n});return{currentTime:s,cancel:r}}const Ue=new Map;function Ks({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),Ue.has(t)||Ue.set(t,{});const s=Ue.get(t);return s[n]||(s[n]=$n()?new ScrollTimeline({source:t,axis:n}):Ka({source:t,axis:n})),s[n]}function Wa(e){return e.length===2}function Ws(e){return e&&(e.target||e.offset)}function ja(e,t){return Wa(e)||Ws(t)?Bt(n=>{e(n[t.axis].progress,n)},t):_s(e,Ks(t))}function za(e,t){if(e.flatten(),Ws(t))return e.pause(),Bt(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=Ks(t);return e.attachTimeline?e.attachTimeline(n,s=>(s.pause(),_s(r=>{s.time=s.duration*r},n))):B}}function Ha(e,{axis:t="y",...n}={}){const s={axis:t,...n};return typeof e=="function"?ja(e,s):za(e,s)}function Sn(e,t){Zs(!!(!t||t.current))}const Ga=()=>({scrollX:L(0),scrollY:L(0),scrollXProgress:L(0),scrollYProgress:L(0)});function sl({container:e,target:t,layoutEffect:n=!0,...s}={}){const r=Me(Ga);return(n?lt:b.useEffect)(()=>(Sn("target",t),Sn("container",e),Ha((o,{x:a,y:l})=>{r.scrollX.set(a.current),r.scrollXProgress.set(a.progress),r.scrollY.set(l.current),r.scrollYProgress.set(l.progress)},{...s,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(s.offset)]),r}function Ua(e){const t=Me(()=>L(e)),{isStatic:n}=b.useContext(ot);if(n){const[,s]=b.useState(e);b.useEffect(()=>t.on("change",s),[])}return t}
9function js(e,t){const n=Ua(t()),s=()=>n.set(t());return s(),lt(()=>{const r=()=>P.preRender(s,!1,!0),i=e.map(o=>o.on("change",r));return()=>{i.forEach(o=>o()),X(s)}}),n}const $a=e=>e&&typeof e=="object"&&e.mix,qa=e=>$a(e)?e.mix:void 0;function Ya(...e){const t=!Array.isArray(e[0]),n=t?0:-1,s=e[0+n],r=e[1+n],i=e[2+n],o=e[3+n],a=Dt(r,i,{mixer:qa(i[0]),...o});return t?a(s):a}function Xa(e){oe.current=[],e();const t=js(oe.current,e);return oe.current=void 0,t}function rl(e,t,n,s){if(typeof e=="function")return Xa(e);const r=typeof t=="function"?t:Ya(t,n,s);return Array.isArray(e)?Vn(e,r):Vn([e],([i])=>r(i))}function Vn(e,t){const n=Me(()=>[]);return js(e,()=>{n.length=0;const s=e.length;for(let r=0;r<s;r++)n[r]=e[r].get();return t(n)})}function il(){!Lt.current&&ks();const[e]=b.useState(Ae.current);return e}export{el as L,sl as a,rl as b,nl as d,$e as j,tl as m,il as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.