1import{r as t,j as e}from"./index-CTUgqakz.js";import{i as n,V as r,c as a,u as s,f as i,L as o,M as l,r as u,a as c,l as p,b as f,d,e as y,g as h,h as m,j as g,k as x,n as v,s as j,p as b,o as w,q as k,S as A,H as M,v as $,t as C,w as D,x as S,y as R,m as I,z as E,A as L,B as P,C as F}from"./proxy--AF1RYhV.js";import{A as N}from"./index-ChAGvo2U.js";import{u as T}from"./use-motion-value-Bin7rNAF.js";function W(t,e){return n(t)?t[((t,e,n)=>{const r=e-t;return((n-t)%r+r)%r+t})(0,t.length,e)]:t}class O{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t){const e=this.animations.map(e=>e.attachTimeline(t));return()=>{e.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 state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return V(this.animations,"duration")}get iterationDuration(){return V(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function V(t,e){let n=0;for(let r=0;r<t.length;r++){const a=t[r][e];null!==a&&a>n&&(n=a)}return n}class B extends O{then(t,e){return this.finished.finally(t).then(()=>{})}}class z extends r{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(function(t,e){return t in e}(e,t)){const n=t[e];if("string"==typeof n||"number"==typeof n)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return a()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}const H=t=>!t.isLayoutDirty&&t.willUpdate(!1);function K(){const t=new Set,e=new WeakMap,n=()=>t.forEach(H);return{add:r=>{t.add(r),e.set(r,r.addEventListener("willUpdate",n))},remove:r=>{t.delete(r);const a=e.get(r);a&&(a(),e.delete(r)),n()},dirty:n}}const U=t.createContext(null);function X(){const e=function(){const e=t.useRef(!1);return s(()=>(e.current=!0,()=>{e.current=!1}),[]),e}(),[n,r]=t.useState(0),a=t.useCallback(()=>{e.current&&r(n+1)},[n]);return[t.useCallback(()=>i.postRender(a),[a]),n]}const q=t=>!0===t,J=({children:n,id:r,inherit:a=!0})=>{const s=t.useContext(o),i=t.useContext(U),[l,u]=X(),c=t.useRef(null),p=s.id||i;null===c.current&&((t=>q(!0===t)||"id"===t)(a)&&p&&(r=r?p+"-"+r:p),c.current={id:r,group:q(a)&&s.group||K()});const f=t.useMemo(()=>({...c.current,forceRender:l}),[u]);return e.jsx(o.Provider,{value:f,children:n})};function _({children:n,isValidProp:r,...a}){r&&p(r);const s=t.useContext(l);(a={...s,...a}).transition=u(a.transition,s.transition),a.isStatic=c(()=>a.isStatic);const i=t.useMemo(()=>a,[JSON.stringify(a.transition),a.transformPagePoint,a.reducedMotion,a.skipAnimations]);return e.jsx(l.Provider,{value:i,children:n})}function G(t){return"object"==typeof t&&!Array.isArray(t)}function Q(t,e,n,r){return null==t?[]:"string"==typeof t&&G(e)?f(t,n,r):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(t=>null!=t):[t]}function Y(t,e,n){return t*(e+1)}function Z(t,e,n,r){return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):r.get(e)??t}function tt(t,e,n,r,a,s){!function(t,e,n){for(let r=0;r<t.length;r++){const a=t[r];a.at>e&&a.at<n&&(y(t,a),r--)}}(t,a,s);for(let i=0;i<e.length;i++)t.push({value:e[i],at:d(a,s,r[i]),easing:W(n,i)})}function et(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function nt(t,e){return t.at===e.at?null===t.value?1:null===e.value?-1:0:t.at-e.at}function rt(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function at(t,e){return e[t]||(e[t]=[]),e[t]}function st(t){return Array.isArray(t)?t:[t]}function it(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const ot=t=>"number"==typeof t,lt=t=>t.every(ot);function ut(t){const e={presenceContext:null,props:{}
1,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=w(t)&&!k(t)?new A(e):new M(e);n.mount(t),$.set(t,n)}function ct(t){const e=new z({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),$.set(t,e)}function pt(t,e,n,r){const a=[];if(function(t,e){return h(t)||"number"==typeof t||"string"==typeof t&&!G(e)}(t,e))a.push(C(t,G(e)&&e.default||e,n&&n.default||n));else{if(null==t)return a;const s=Q(t,e,r),i=s.length;for(let t=0;t<i;t++){const r=s[t],o=r instanceof Element?ut:ct;$.has(r)||o(r);const l=$.get(r),u={...n};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(t,i)),a.push(...D(l,{...e,transition:u},{}))}}return a}function ft(t,e,n){const r=[],a=function(t,{defaultTransition:e={},...n}={},r,a){const s=e.duration||.3,i=new Map,o=new Map,l={},u=new Map;let c=0,p=0,f=0;for(let d=0;d<t.length;d++){const n=t[d];if("string"==typeof n){u.set(n,p);continue}if(!Array.isArray(n)){u.set(n.name,Z(p,n.at,c,u));continue}let[i,y,b={}]=n;void 0!==b.at&&(p=Z(p,b.at,c,u));let w=0;const k=(t,n,r,i=0,o=0)=>{const l=st(t),{delay:u=0,times:c=m(l),type:d=e.type||"keyframes",repeat:y,repeatType:h,repeatDelay:b=0,...k}=n;let{ease:A=e.ease||"easeOut",duration:M}=n;const $="function"==typeof u?u(i,o):u,C=l.length,D=v(d)?d:null==a?void 0:a[d||"keyframes"];if(C<=2&&D){let t=100;if(2===C&<(l)){const e=l[1]-l[0];t=Math.abs(e)}const n={...e,...k};void 0!==M&&(n.duration=j(M));const r=g(n,t,D);A=r.ease,M=r.duration}M??(M=s);const S=p+$;1===c.length&&0===c[0]&&(c[1]=1);const R=c.length-l.length;if(R>0&&x(c,R),1===l.length&&l.unshift(null),y){M=Y(M,y);const t=[...l],e=[...c];A=Array.isArray(A)?[...A]:[A];const n=[...A];for(let r=0;r<y;r++){l.push(...t);for(let a=0;a<t.length;a++)c.push(e[a]+(r+1)),A.push(0===a?"linear":W(n,a-1))}et(c,y)}const I=S+M;tt(r,l,A,c,S,I),w=Math.max($+M,w),f=Math.max(I,f)};if(h(i))k(y,b,at("default",rt(i,o)));else{const t=Q(i,y,r,l),e=t.length;for(let n=0;n<e;n++){const r=rt(t[n],o);for(const t in y)k(y[t],it(b,t),at(t,r),n,e)}}c=p,p+=w}return o.forEach((t,r)=>{for(const a in t){const s=t[a];s.sort(nt);const o=[],l=[],u=[];for(let t=0;t<s.length;t++){const{at:e,value:n,easing:r}=s[t];o.push(n),l.push(b(0,f,e)),u.push(r||"easeOut")}0!==l[0]&&(l.unshift(0),o.unshift(o[0]),u.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),o.push(null)),i.has(r)||i.set(r,{keyframes:{},transition:{}});const c=i.get(r);c.keyframes[a]=o;const{type:p,...d}=e;c.transition[a]={...d,duration:f,ease:u,times:l,...n}}}),i}(t.map(t=>{if(Array.isArray(t)&&"function"==typeof t[0]){const e=t[0],n=S(0);return n.on("change",e),1===t.length?[n,[0,1]]:2===t.length?[n,[0,1],t[1]]:[n,t[1],t[2]]}return t}),e,n,{spring:R});return a.forEach(({keyframes:t,transition:e},n)=>{r.push(...pt(n,t,e))}),r}const dt=function(t={}){const{scope:e,reduceMotion:n}=t;return function(t,r,a){let s,i=[];if(o=t,Array.isArray(o)&&o.some(Array.isArray)){const{onComplete:a,...o}=r||{};"function"==typeof a&&(s=a),i=ft(t,void 0!==n?{reduceMotion:n,...o}:o,e)}else{const{onComplete:o,...l}=a||{};"function"==typeof o&&(s=o),i=pt(t,r,void 0!==n?{reduceMotion:n,...l}:l,e)}var o;const l=new B(i);return s&&l.finished.then(s),e&&(e.animations.push(l),l.finished.then(()=>{y(e.animations,l)})),l}}(),yt="var(--mask-height, 0.15em)",ht="var(--mask-width, 0.5em)",mt=`calc(${ht} / var(--invert-x, 1))`,gt="#000 0, transparent 71%",xt=`linear-gradient(to right, transparent 0, #000 ${mt}, #000 calc(100% - ${mt}), transparent),linear-gradient(to bottom, transparent 0, #000 ${yt}, #000 calc(100% - ${yt}), transparent 100%),radial-gradient(at bottom right, ${gt}),radial-gradient(at bottom left, ${gt}), radial-gradient(at top left, ${gt}), radial-gradient(at top right, ${gt})`,vt=`100% calc(100% - ${yt} * 2),calc(100% - ${mt} * 2) 100%,${mt} ${yt},${mt} ${yt},${mt} ${yt},${mt} ${yt}`;function jt({children:t,layoutDependency:n}){return e.jsx(I.span,{layout:!0,layoutDependency:n,"aria-hidden":!0,style:{display:"inline-flex","--invert-x":1,margin:`0 calc(-1*${ht})`,padding:`calc(${yt}/2) ${ht}`,position:"relative",zIndex:-1,overflow:"clip",WebkitMaskImage:xt,WebkitMaskSize:vt,WebkitMaskPosition:"center, center, top left, top right, bottom right, bottom left",WebkitMaskRepeat:"no-repeat"},children:t})}function bt(){const e=t.useRef(!0);return t.useEffect(()=>{e.current=!1},[]),e.current}function wt(t){const{width:e,fontSize:n}=getComputedStyle(t);return parseFloat(e)/parseFloat(n)+"em"}E({"--invert-x":{correct:(t,{treeScale:e,projectionDelta:n})=>n.x.scale*e.x}});const kt=new WeakMap,At=t.forwardRef(function({value:n,initialValue:r=n,...a},s){const{transition:i}=t.useContext(l),o=t.useRef(r).current,u=bt(),c=t.useRef(null),p=t.useRef(null);t.useImperativeHandle(s,()=>p.current,[]);const f=t.useRef(new Array(10)),d=L(),y=d?n:0;t.useLayoutEffect(()=>{c.current&&f.current[o]&&(c.current.style.width=wt(f.current[o]))},[]);const h=t.useRef(r);t.useLayoutEffect(()=>{var t;if(!c.current||y===h.current)return;const e=c.current.getBoundingClientRect(),n=null==(t=p.current)?void 0:t.getBoundingClientRect(),r=e.height*(y-h.current)+(e.top-(n?n.top||0:e.top));return dt(c.current,{y:[r,0]},i),()=>{h.current=y}},[y]);const[m,g]=t.useState();t.useEffect(()=>{if(u&&o===y)return;if(!f.current[y])return;const t=wt(f.current[y]);p.current&&kt.set(p.current,t),g(t)},[y]);const x=t=>e.jsx("span",{style:{display:"inline-block",padding:`calc(${yt}/2) 0`},ref:e=>{f.current[t]=e},children:t},t);return e.jsx(I.span,{...a,ref:p,layout:"position","data-state":d?void 0:"exiting",style:{display:"inline-flex",justifyContent:"center",width:m},children:e.jsxs("span",{ref:c,style:{display:"inline-flex",justifyContent:"center",flexDirection:"column",alignItems:"center",position:"relative"},children:[0!==y&&e.jsx("span",{style:{...Mt,bottom:"100%",left:0},children:new Array(y).fill(null).map((t,e)=>x(e))}),x(y),9!==y&&e.jsx("span",{style:{...Mt,top:"100%",left:0},children:new Array(9-y).fill(null).map((t,e)=>x(y+e+1))})]})})}),Mt={display:"flex",flexDirection:"column",alignItems:"center",position:"absolute",width:"100%"},$t=t.createContext({justify:"left"}),Ct=t.forwardRef(function({partKey:n,type:r,children:a,layoutDependency:s,...i},o){const l=L(),{justify:u}=t.useContext($t);return e.jsx(I.span,{...i,"data-state":l?void 0:"exiting",style:{display:"inline-flex",justifyContent:u,padding:`calc(${yt}/2) 0`,position:"relative"},layout:"position",layoutDependency:s,ref:o,children:e.jsx(N,{mode:"popLayout",anchorX:u,initial:!1,children:e.jsx(I.span,{layout:"right"===u&&"position",layoutDependency:s,initial:{opacity:0}
1,animate:{opacity:[null,1]},exit:{opacity:[null,0]},style:{display:"inline-block",whiteSpace:"pre"},children:a},a)})})}),Dt=t.forwardRef(function({parts:n,justify:r="left",mode:a,style:s,name:i,layoutDependency:o,...l},u){const c=t.useRef(null);t.useImperativeHandle(u,()=>c.current,[]);const p=t.useMemo(()=>({justify:r}),[r]),f=t.useRef(null),d=bt(),[y,h]=t.useState();return t.useEffect(()=>{if(!f.current)return;if(d)return void(c.current&&(c.current.style.width=wt(f.current)));const t=Array.from(f.current.children).map(t=>{if(!(t instanceof HTMLElement))return;if("exiting"===t.dataset.state){const e=t.nextSibling;return t.remove(),()=>{f.current&&f.current.insertBefore(t,e)}}const e=kt.get(t);if(!e)return;const n=t.style.width;return t.style.width=e,()=>{t.style.width=n}});h(wt(f.current));for(let e=t.length-1;e>=0;e--){const n=t[e];n&&n()}},[n.map(t=>t.value).join("")]),e.jsx($t.Provider,{value:p,children:e.jsx(I.span,{layoutDependency:o,...l,ref:c,className:`number-section-${i}`,style:{...s,display:"inline-flex",justifyContent:r,width:y},children:e.jsxs("span",{ref:f,style:{display:"inline-flex",justifyContent:"inherit",position:"relative"},children:["â",e.jsx(N,{mode:a,anchorX:r,initial:!1,children:n.map(t=>"integer"===t.type||"fraction"===t.type?e.jsx(At,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},value:t.value,initialValue:d?void 0:0,layoutDependency:o},t.key):e.jsx(Ct,{type:t.type,partKey:t.key,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},layoutDependency:o,children:t.value},"literal"===t.type?`${t.key}:${t.value}`:t.key))})]})})})}),St={opacity:{duration:1,ease:P},layout:{type:"spring",duration:1,bounce:0},y:{type:"spring",duration:1,bounce:0}},Rt=t.forwardRef(function({children:n,locales:r,format:a,transition:s,style:i,suffix:o,prefix:u,...c},p){const f=t.useMemo(()=>((t,{locales:e,format:n},r,a)=>{const s=new Intl.NumberFormat(e,n).formatToParts(Number(t));r&&s.unshift({type:"prefix",value:r}),a&&s.push({type:"suffix",value:a});const i=[],o=[],l=[],u=[],c={},p=t=>`${t}:${c[t]=(c[t]??-1)+1}`;let f="",d=!1,y=!1;for(const m of s){f+=m.value;const t="minusSign"===m.type||"plusSign"===m.type?"sign":m.type;switch(t){case"integer":d=!0,o.push(...m.value.split("").map(e=>({type:t,value:parseInt(e)})));break;case"group":o.push({type:t,value:m.value});break;case"decimal":y=!0,l.push({type:t,value:m.value,key:p(t)});break;case"fraction":l.push(...m.value.split("").map(e=>({type:t,value:parseInt(e),key:p(t)})));break;default:(d||y?u:i).push({type:t,value:m.value,key:p(t)})}}const h=[];for(let m=o.length-1;m>=0;m--)h.unshift({...o[m],key:p(o[m].type)});return{pre:i,integer:h,fraction:l,post:u,formatted:f}})(n,{locales:r,format:a},u,o),[n,r,a]),{pre:d,integer:y,fraction:h,post:m,formatted:g}=f,x=t.useContext(l).transition;s=s??x??St;const{layoutDependency:v}=c,j=t.useMemo(()=>{if(void 0!==v)return{layoutDependency:v,value:n}},[v,n]);return e.jsx(J,{children:e.jsx(_,{transition:s,children:e.jsx(I.div,{...c,ref:p,layout:!0,layoutDependency:j,style:{lineHeight:1,...i,display:"inline-flex",isolation:"isolate",whiteSpace:"nowrap"},children:e.jsxs(I.div,{layout:!0,layoutDependency:j,"aria-label":g,style:{display:"inline-flex",direction:"ltr",isolation:"isolate",position:"relative",zIndex:-1},children:[e.jsx(Dt,{style:{padding:`calc(${yt}/2) 0`},layoutDependency:j,"aria-hidden":!0,justify:"right",mode:"popLayout",parts:d,name:"pre"}),e.jsxs(jt,{layoutDependency:j,children:[e.jsx(Dt,{layoutDependency:j,justify:"right",parts:y,name:"integer"}),e.jsx(Dt,{layout:"position",layoutDependency:j,parts:h,name:"fraction"})]}),e.jsx(Dt,{style:{padding:`calc(${yt}/2) 0`},"aria-hidden":!0,layout:"position",layoutDependency:j,mode:"popLayout",parts:m,name:"post"})]})})})})});function It(t,e){return t.length>e.length||t.length>0&&!e.startsWith(t)}function Et(t,e,n){return t+(e-t)*n}function Lt(t,e,n,r,a){if(It(e,t))return n*a;if("natural"===r)return function(t,e,n){const r=e.length,a=t[r],s=t[r-1];if(!a)return n;const i=t.slice(0,r),o=i.lastIndexOf(" "),l=r-o-1,u=o+1,c=t.slice(r),p=c.indexOf(" "),f=-1===p?t.length:r+p,d=f-u;let y=1;s&&/[.!?]/.test(s)&&" "===a&&(y*=3);d<=3?y*=.7:(0===l&&" "!==a&&(y*=1.5),l===d-1&&(y*=1.4));if(l>0&&l<d-1&&d>3){y*=1-Math.min(l/d,.4)}Pt.has(a)&&(y*=1.5);Ft.has(a)&&(y*=1.5);/\d/.test(a)&&(y*=1.3);d>8&&(y*=1.3);a!==a.toLowerCase()&&(y*=1.25);const h=200;if(r>h){y*=1+Math.min((r-h)/1e3,.3)}const m=Et(-.25,.25,Math.random());y*=1+m;const g=n*y;return Math.max(.2*n,g)}(t,e,n);if("number"==typeof r&&r>0){const t=n*(r/100);return n+Et(-t,t,Math.random())}return n}I.create(t.Fragment),t.createContext(void 0);const Pt=new Set([".",",","!","?",":",";","'",'"',"-","(",")"]),Ft=new Set(["!","@","#","$","%","^","&","*","(",")","_","+","{","}","|",":",'"',"<",">","?"]);function Nt(t,e,n,r){if("type"===n&&It(t,e)){if("all"===r)return e.slice(0,function(t,e){const n=Math.min(t.length,e.length);let r=0;for(let a=0;a<n&&t[a]===e[a];a++)r=a+1;return r}(t,e));if("word"===r){const e=function(t,e){let n=e-1;for(;n>=0&&/\s/.test(t[n]);)n--;for(;n>=0&&!/\s/.test(t[n]);)n--;return Math.max(0,n+1)}(t,t.length);return t.slice(0,e)}return t.slice(0,-1)}return e.slice(0,t.length+1)}const Tt={slow:130,normal:75,fast:30};t.forwardRef(function({children:n="",as:r,speed:a="normal",variance:s="natural",cursorClassName:i="motion-typewriter-cursor",cursorStyle:o,cursorBlinkDuration:l=.5,onComplete:u,play:c=!0,"aria-label":p,textClassName:f,textStyle:d,replace:y="type",backspace:h="character",backspaceFactor:m=.2,...g},x){const v=r||"span",j=t.useRef(n),b=T(""),w=t.useRef(null),k=t.useRef(null),A=t.useRef(null),M="number"==typeof a?a:Tt[a],$=()=>{var t;null==(t=w.current)||t.call(w),w.current=null},C=()=>{k.current=dt(A.current,{opacity:[1,1,0,0]},{duration:l,times:[0,.5,.5,1],ease:"linear",repeat:1/0,repeatType:"reverse"})};return t.useEffect(()=>{"all"===y&&n!==j.current&&b.set(""),j.current=n},[n,y]),t.useEffect(()=>{var t;if(!c)return C(),void $();null==(t=k.current)||t.cancel();const e=()=>{const t=Nt(b.get(),n,y,h);b.set(t),t!==n?r():(C(),null==u||u())},r=()=>{w.current=F(e,Lt(n,b.get(),M,s,m))};return w.current||r(),$},[c,u,n,M,s,m,h]),e.jsxs(v,{ref:x,...g,"aria-label":p||n,children:[e.jsx(I.span,{className:f,style:d,children:b}),e.jsx(I.span,{ref:A,className:i,style:{display:"inline-block",width:"2px",height:"1em",backgroundColor:"currentColor",position:"relative",top:"0.1em",left:"0.2em",...o}})]})});export{Rt as A};
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.