PageSourceSearch

https://holodao.ai/assets/ai-assistant-DgUMQP4h.js

js holodao.ai collected 2026-10-05 14:32:12 UTC 145,203 bytes, 7 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ai-workspace-CF8q3fVt.js","assets/index-0zhNVRug.js","assets/index-CSjlGTlS.css","assets/data-table-DFDm0OGI.js","assets/table-DG77DIqs.js","assets/product-media-preview-p4dWEcRP.js","assets/image-preview-BPLDXIIq.js","assets/dialog-B03XWl0X.js","assets/media-placeholder-CDGH8vJ9.js","assets/image-ClwVnXuo.js","assets/scope-tabs-1N-FeZcb.js","assets/badge-BDvZO2HK.js","assets/checkbox-DmIpAb0m.js","assets/index-2u2hsgzk.js","assets/check-CgRzuzL8.js","assets/progress-xmEQm0IF.js","assets/select-BTT3HWef.js","assets/index-BdQq_4o_.js","assets/index-CYH_bLPU.js","assets/textarea-BrWRRkvi.js","assets/pencil-BzLRu4Ix.js","assets/refresh-cw-CWNueLk0.js","assets/plus-Cszl_Elf.js","assets/search-DOtdbsZl.js","assets/circle-alert-BaJppXPr.js","assets/external-link-CeqCPNkD.js","assets/arrow-left-BaqYZu5s.js","assets/useMutation-C3WMk1-_.js","assets/govern-share-DoA0wrg9.js","assets/eye-off-n_2dsqWN.js"])))=>i.map(i=>d[i]);
2import{a2 as Sa,r as v,j as w,d as Ue,aw as Rt,ax as It,u as On,e as ba,J as Pa,M as Aa,m as Ca,g as De,B as Ct,dR as Fs,dS as js,dT as _s,dU as ur,an as hr,k as Ma,i as Ea,bB as Va,R as Da,t as Os,b3 as Ra,h as Ia,q as La}from"./index-0zhNVRug.js";import{u as Lt}from"./useMutation-C3WMk1-_.js";import{c as ka,b as Ba}from"./dialog-B03XWl0X.js";import{T as Fa}from"./textarea-BrWRRkvi.js";import{r as ja}from"./govern-share-DoA0wrg9.js";import{E as _a}from"./eye-off-n_2dsqWN.js";/**
3 * @license lucide-react v1.17.0 - ISC
4 *
5 * This source code is licensed under the ISC license.
6 * See the LICENSE file in the root directory of this source tree.
7 */const Oa=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
vendor: 28,216 bytes, line 7
7],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Na=Sa("sparkles",Oa),dr=v.createContext({});function fr(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const pr=typeof window<"u",Ua=pr?v.useLayoutEffect:v.useEffect,Nn=v.createContext(null);function Un(e,t){e.indexOf(t)===-1&&e.push(t)}function Re(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ct=(e,t,n)=>n>t?t:n<e?e:n;let Wn=()=>{};const dt={},mr=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function gr(e){return typeof e=="object"&&e!==null}const yr=e=>/^0[^.\s]+$/u.test(e);function zn(e){let t;return()=>(t===void 0&&(t=e()),t)}const nt=e=>e,Wa=(e,t)=>n=>t(e(n)),le=(...e)=>e.reduce(Wa),se=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s};class Kn{constructor(){this.subscriptions=[]}add(t){return Un(this.subscriptions,t),()=>Re(this.subscriptions,t)}notify(t,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const rt=e=>e*1e3,et=e=>e/1e3;function vr(e,t){return t?e*(1e3/t):0}const xr=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,za=1e-7,Ka=12;function Ha(e,t,n,s,i){let o,r,a=0;do r=t+(n-t)/2,o=xr(r,s,i)-e,o>0?n=r:t=r;while(Math.abs(o)>za&&++a<Ka);return r}function ce(e,t,n,s){if(e===t&&n===s)return nt;const i=o=>Ha(o,0,1,e,n);return o=>o===0||o===1?o:xr(i(o),t,s)}const Tr=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,wr=e=>t=>1-e(1-t),Sr=ce(.33,1.53,.69,.99),Hn=wr(Sr),br=Tr(Hn),Pr=e=>(e*=2)<1?.5*Hn(e):.5*(2-Math.pow(2,-10*(e-1))),$n=e=>1-Math.sin(Math.acos(e)),Ar=wr($n),Cr=Tr($n),$a=ce(.42,0,1,1),Ga=ce(0,0,.58,1),Mr=ce(.42,0,.58,1),Ya=e=>Array.isArray(e)&&typeof e[0]!="number",Er=e=>Array.isArray(e)&&typeof e[0]=="number",Xa={linear:nt,easeIn:$a,easeInOut:Mr,easeOut:Ga,circIn:$n,circInOut:Cr,circOut:Ar,backIn:Hn,backInOut:br,backOut:Sr,anticipate:Pr},qa=e=>typeof e=="string",Ns=e=>{if(Er(e)){Wn(e.length===4);const[t,n,s,i]=e;return ce(t,n,s,i)}else if(qa(e))return Xa[e];return e},ye=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Za(e,t){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){r.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,h=!1,d=!1)=>{const p=d&&i?n:s;return h&&r.add(u),p.has(u)||p.add(u),u},cancel:u=>{s.delete(u),r.delete(u)},process:u=>{if(a=u,i){o=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,c.process(u))}};return c}const Qa=40;function Vr(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=ye.reduce((x,A)=>(x[A]=Za(o),x),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:d,render:f,postRender:p}=r,y=()=>{const x=dt.useManualTiming?i.timestamp:performance.now();n=!1,dt.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(x-i.timestamp,Qa),1)),i.timestamp=x,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),d.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(y))},g=()=>{n=!0,s=!0,i.isProcessing||e(y)};return{schedule:ye.reduce((x,A)=>{const S=r[A];return x[A]=(E,V=!1,C=!1)=>(n||g(),S.schedule(E,V,C)),x},{}),cancel:x=>{for(let A=0;A<ye.length;A++)r[ye[A]].cancel(x)},state:i,steps:r}}const{schedule:I,cancel:yt,state:K,steps:Qe}=Vr(typeof requestAnimationFrame<"u"?requestAnimationFrame:nt,!0);let be;function Ja(){be=void 0}const X={now:()=>(be===void 0&&X.set(K.isProcessing||dt.useManualTiming?K.timestamp:performance.now()),be),set:e=>{be=e,queueMicrotask(Ja)}},Dr=e=>t=>typeof t=="string"&&t.startsWith(e),Rr=Dr("--"),tl=Dr("var(--"),Gn=e=>tl(e)?el.test(e.split("/*")[0].trim()):!1,el=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Us(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const zt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ie={...zt,transform:e=>ct(0,1,e)},ve={...zt,default:1},Jt=e=>Math.round(e*1e5)/1e5,Yn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function nl(e){return e==null}const sl=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xn=(e,t)=>n=>!!(typeof n=="string"&&sl.test(n)&&n.startsWith(e)||t&&!nl(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ir=(e,t,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(Yn);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},il=e=>ct(0,255,e),Je={...zt,transform:e=>Math.round(il(e))},bt={test:Xn("rgb","red"),parse:Ir("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Je.transform(e)+", "+Je.transform(t)+", "+Je.transform(n)+", "+Jt(ie.transform(s))+")"};function rl(e){let t="",n="",s="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const yn={test:Xn("#"),parse:rl,transform:bt.transform},ue=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pt=ue("deg"),lt=ue("%"),b=ue("px"),ol=ue("vh"),al=ue("vw"),Ws={...lt,parse:e=>lt.parse(e)/100,transform:e=>lt.transform(e*100)},Ft={test:Xn("hsl","hue"),parse:Ir("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+lt.transform(Jt(t))+", "+lt.transform(Jt(n))+", "+Jt(ie.transform(s))+")"},N={test:e=>bt.test(e)||yn.test(e)||Ft.test(e),parse:e=>bt.test(e)?bt.parse(e):Ft.test(e)?Ft.parse(e):yn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?bt.transform(e):Ft.transform(e),getAnimatableNone:e=>{const t=N.parse(e);return t.alpha=0,N.transform(t)}},ll=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function cl(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Yn))==null?void 0:t.length)||0)+(((n=e.match(ll))==null?void 0:n.length)||0)>0}const Lr="number",kr="color",ul="var",hl="var(",zs="${}",dl=/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 re(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(dl,l=>(N.test(l)?(s.color.push(o),i.push(kr),n.push(N.parse(l))):l.startsWith(hl)?(s.var.push(o),i.push(ul),n.push(l)):(s.number.push(o),i.push(Lr),n.push(parseFloat(l))),++o,zs)).split(zs);return{values:n,split:a,indexes:s,types:i}}function Br(e){return re(e).values}function Fr(e){const{split:t,types:n}=re(e),s=t.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=t[r],i[r]!==void 0){const a=n[r];a===Lr?o+=Jt(i[r]):a===kr?o+=N.transform(i[r]):o+=i[r]}return o}}const fl=e=>typeof e=="number"?0:N.test(e)?N.getAnimatableNone(e):e;function pl(e){const t=Br(e);return Fr(e)(t.map(fl))}const vt={test:cl,parse:Br,createTransformer:Fr,getAnimatableNone:pl};function tn(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 ml({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,o=0,r=0;if(!t)i=o=r=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=tn(l,a,e+1/3),o=tn(l,a,e),r=tn(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Ie(e,t){return n=>n>0?t:e}const F=(e,t,n)=>e+(t-e)*n,en=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},gl=[yn,bt,Ft],yl=e=>gl.find(t=>t.test(e));function Ks(e){const t=yl(e);if(!t)return!1;let n=t.parse(e);return t===Ft&&(n=ml(n)),n}const Hs=(e,t)=>{const n=Ks(e),s=Ks(t);if(!n||!s)return Ie(e,t);const i={...n};return o=>(i.red=en(n.red,s.red,o),i.green=en(n.green,s.green,o),i.blue=en(n.blue,s.blue,o),i.alpha=F(n.alpha,s.alpha,o),bt.transform(i))},vn=new Set(["none","hidden"]);function vl(e,t){return vn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function xl(e,t){return n=>F(e,t,n)}function qn(e){return typeof e=="number"?xl:typeof e=="string"?Gn(e)?Ie:N.test(e)?Hs:Sl:Array.isArray(e)?jr:typeof e=="object"?N.test(e)?Hs:Tl:Ie}function jr(e,t){const n=[...e],s=n.length,i=e.map((o,r)=>qn(o)(o,t[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function Tl(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=qn(e[i])(e[i],t[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function wl(e,t){const n=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],r=e.indexes[o][s[o]],a=e.values[r]??0;n[i]=a,s[o]++}return n}const Sl=(e,t)=>{const n=vt.createTransformer(t),s=re(e),i=re(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?vn.has(e)&&!i.values.length||vn.has(t)&&!s.values.length?vl(e,t):le(jr(wl(s,i),i.values),n):Ie(e,t)};function _r(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?F(e,t,n):qn(e)(e,t)}const bl=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>I.update(t,n),stop:()=>yt(t),now:()=>K.isProcessing?K.timestamp:X.now()}},Or=(e,t,n=10)=>{let s="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)s+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Le=2e4;function Zn(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Le;)t+=n,s=e.next(t);return t>=Le?1/0:t}function Pl(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(Zn(s),Le);return{type:"keyframes",ease:o=>s.next(i*o).value/t,duration:et(i)}}const Al=5;function Nr(e,t,n){const s=Math.max(t-Al,0);return vr(n-e(s),t-s)}const _={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},nn=.001;function Cl({duration:e=_.duration,bounce:t=_.bounce,velocity:n=_.velocity,mass:s=_.mass}){let i,o,r=1-t;r=ct(_.minDamping,_.maxDamping,r),e=ct(_.minDuration,_.maxDuration,et(e)),r<1?(i=c=>{const u=c*r,h=u*e,d=u-n,f=xn(c,r),p=Math.exp(-h);return nn-d/f*p},o=c=>{const h=c*r*e,d=h*n+n,f=Math.pow(r,2)*Math.pow(c,2)*e,p=Math.exp(-h),y=xn(Math.pow(c,2),r);return(-i(c)+nn>0?-1:1)*((d-f)*p)/y}):(i=c=>{const u=Math.exp(-c*e),h=(c-n)*e+1;return-nn+u*h},o=c=>{const u=Math.exp(-c*e),h=(n-c)*(e*e);return u*h});const a=5/e,l=El(i,o,a);if(e=rt(e),isNaN(l))return{stiffness:_.stiffness,damping:_.damping,duration:e};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:e}}}const Ml=12;function El(e,t,n){let s=n;for(let i=1;i<Ml;i++)s=s-e(s)/t(s);return s}function xn(e,t){return e*Math.sqrt(1-t*t)}const Vl=["duration","bounce"],Dl=["stiffness","damping","mass"];function $s(e,t){return t.some(n=>e[n]!==void 0)}function Rl(e){let t={velocity:_.velocity,stiffness:_.stiffness,damping:_.damping,mass:_.mass,isResolvedFromDuration:!1,...e};if(!$s(e,Dl)&&$s(e,Vl))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*ct(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:_.mass,stiffness:i,damping:o}}else{const n=Cl(e);t={...t,...n,mass:_.mass},t.isResolvedFromDuration=!0}return t}function ke(e=_.visualDuration,t=_.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:h,velocity:d,isResolvedFromDuration:f}=Rl({...n,velocity:-et(n.velocity||0)}),p=d||0,y=c/(2*Math.sqrt(l*u)),g=r-o,m=et(Math.sqrt(l/u)),T=Math.abs(g)<5;s||(s=T?_.restSpeed.granular:_.restSpeed.default),i||(i=T?_.restDelta.granular:_.restDelta.default);let x;if(y<1){const S=xn(m,y);x=E=>{const V=Math.exp(-y*m*E);return r-V*((p+y*m*g)/S*Math.sin(S*E)+g*Math.cos(S*E))}}else if(y===1)x=S=>r-Math.exp(-m*S)*(g+(p+m*g)*S);else{const S=m*Math.sqrt(y*y-1);x=E=>{const V=Math.exp(-y*m*E),C=Math.min(S*E,300);return r-V*((p+y*m*g)*Math.sinh(C)+S*g*Math.cosh(C))/S}}const A={calculatedDuration:f&&h||null,next:S=>{const E=x(S);if(f)a.done=S>=h;else{let V=S===0?p:0;y<1&&(V=S===0?rt(p):Nr(x,S,E));const C=Math.abs(V)<=s,D=Math.abs(r-E)<=i;a.done=C&&D}return a.value=a.done?r:E,a},toString:()=>{const S=Math.min(Zn(A),Le),E=Or(V=>A.next(S*V).value,S,30);return S+"ms "+E},toTransition:()=>{}};return A}ke.applyToOptions=e=>{const t=Pl(e,100,ke);return e.ease=t.ease,e.duration=rt(t.duration),e.type="keyframes",e};function Tn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=e[0],d={done:!1,value:h},f=C=>a!==void 0&&C<a||l!==void 0&&C>l,p=C=>a===void 0?l:l===void 0||Math.abs(a-C)<Math.abs(l-C)?a:l;let y=n*t;const g=h+y,m=r===void 0?g:r(g);m!==g&&(y=m-h);const T=C=>-y*Math.exp(-C/s),x=C=>m+T(C),A=C=>{const D=T(C),R=x(C);d.done=Math.abs(D)<=c,d.value=d.done?m:R};let S,E;const V=C=>{f(d.value)&&(S=C,E=ke({keyframes:[d.value,p(d.value)],velocity:Nr(x,C,d.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return V(0),{calculatedDuration:null,next:C=>{let D=!1;return!E&&S===void 0&&(D=!0,A(C),V(C)),S!==void 0&&C>=S?E.next(C-S):(!D&&A(C),d)}}}function Il(e,t,n){const s=[],i=n||dt.mix||_r,o=e.length-1;for(let r=0;r<o;r++){let a=i(e[r],e[r+1]);if(t){const l=Array.isArray(t)?t[r]||nt:t;a=le(l,a)}s.push(a)}return s}function Ll(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const o=e.length;if(Wn(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const r=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Il(t,s,i),l=a.length,c=u=>{if(r&&u<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(u<e[h+1]);h++);const d=se(e[h],e[h+1],u);return a[h](d)};return n?u=>c(ct(e[0],e[o-1],u)):c}function kl(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=se(0,t,s);e.push(F(n,1,i))}}function Bl(e){const t=[0];return kl(t,e.length-1),t}function Fl(e,t){return e.map(n=>n*t)}function jl(e,t){return e.map(()=>t||Mr).splice(0,e.length-1)}function te({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=Ya(s)?s.map(Ns):Ns(s),o={done:!1,value:t[0]},r=Fl(n&&n.length===t.length?n:Bl(t),e),a=Ll(r,t,{ease:Array.isArray(i)?i:jl(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const _l=e=>e!==null;function Qn(e,{repeat:t,repeatType:n="loop"},s,i=1){const o=e.filter(_l),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const Ol={decay:Tn,inertia:Tn,tween:te,keyframes:te,spring:ke};function Ur(e){typeof e.type=="string"&&(e.type=Ol[e.type])}class Jn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Nl=e=>e/100;class ts extends Jn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==X.now()&&this.tick(X.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ur(t);const{type:n=te,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=t;let{keyframes:a}=t;const l=n||te;l!==te&&typeof a[0]!="number"&&(this.mixKeyframes=le(Nl,_r(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=Zn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:f,type:p,onUpdate:y,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-c*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,A=s;if(h){const C=Math.min(this.currentTime,i)/a;let D=Math.floor(C),R=C%1;!R&&C>=1&&(R=1),R===1&&D--,D=Math.min(D,h+1),!!(D%2)&&(d==="reverse"?(R=1-R,f&&(R-=f/a)):d==="mirror"&&(A=r)),x=ct(0,1,R)*a}const S=T?{done:!1,value:u[0]}:A.next(x);o&&(S.value=o(S.value));let{done:E}=S;!T&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return V&&p!==Tn&&(S.value=Qn(u,this.options,g,this.speed)),y&&y(S.value),V&&this.finish(),S}then(t,n){return this.finished.then(t,n)}get duration(){return et(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+et(t)}get time(){return et(this.currentTime)}set time(t){var n;t=rt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(X.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=et(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=bl,startTime:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),(o=(i=this.options).onPlay)==null||o.call(i);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(X.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Ul(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Pt=e=>e*180/Math.PI,wn=e=>{const t=Pt(Math.atan2(e[1],e[0]));return Sn(t)},Wl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:wn,rotateZ:wn,skewX:e=>Pt(Math.atan(e[1])),skewY:e=>Pt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Sn=e=>(e=e%360,e<0&&(e+=360),e),Gs=wn,Ys=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Xs=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),zl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ys,scaleY:Xs,scale:e=>(Ys(e)+Xs(e))/2,rotateX:e=>Sn(Pt(Math.atan2(e[6],e[5]))),rotateY:e=>Sn(Pt(Math.atan2(-e[2],e[0]))),rotateZ:Gs,rotate:Gs,skewX:e=>Pt(Math.atan(e[4])),skewY:e=>Pt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function bn(e){return e.includes("scale")?1:0}function Pn(e,t){if(!e||e==="none")return bn(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=zl,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Wl,i=a}if(!i)return bn(t);const o=s[t],r=i[1].split(",").map(Hl);return typeof o=="function"?o(r):r[o]}const Kl=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Pn(n,t)};function Hl(e){return parseFloat(e.trim())}const Kt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ht=new Set(Kt),qs=e=>e===zt||e===b,$l=new Set(["x","y","z"]),Gl=Kt.filter(e=>!$l.has(e));function Yl(e){const t=[];return Gl.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const gt={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:(e,{transform:t})=>Pn(t,"x"),y:(e,{transform:t})=>Pn(t,"y")};gt.translateX=gt.x;gt.translateY=gt.y;const Mt=new Set;let An=!1,Cn=!1,Mn=!1;function Wr(){if(Cn){const e=Array.from(Mt).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const i=Yl(s);i.length&&(n.set(s,i),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))==null||a.set(r)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Cn=!1,An=!1,Mt.forEach(e=>e.complete(Mn)),Mt.clear()}function zr(){Mt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Cn=!0)})}function Xl(){Mn=!0,zr(),Wr(),Mn=!1}class es{constructor(t,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Mt.add(this),An||(An=!0,I.read(zr),I.resolveKeyframes(Wr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),r=t[t.length-1];if(o!==void 0)t[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=r),i&&o===void 0&&i.set(t[0])}Ul(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Mt.delete(this)}cancel(){this.state==="scheduled"&&(Mt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ql=e=>e.startsWith("--");function Zl(e,t,n){ql(t)?e.style.setProperty(t,n):e.style[t]=n}const Ql=zn(()=>window.ScrollTimeline!==void 0),Jl={};function tc(e,t){const n=zn(e);return()=>Jl[t]??n()}const Kr=tc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Qt=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Zs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qt([0,.65,.55,1]),circOut:Qt([.55,0,1,.45]),backIn:Qt([.31,.01,.66,-.59]),backOut:Qt([.33,1.53,.69,.99])};function Hr(e,t){if(e)return typeof e=="function"?Kr()?Or(e,t):"ease-out":Er(e)?Qt(e):Array.isArray(e)?e.map(n=>Hr(n,t)||Zs.easeOut):Zs[e]}function ec(e,t,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const h=Hr(a,i);Array.isArray(h)&&(u.easing=h);const d={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return c&&(d.pseudoElement=c),e.animate(u,d)}function $r(e){return typeof e=="function"&&"applyToOptions"in e}function nc({type:e,...t}){return $r(e)&&Kr()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Gr extends Jn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=t,Wn(typeof t.type!="string");const c=nc(t);this.animation=ec(n,s,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=Qn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Zl(n,s,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,s,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(s=this.animation).commitStyles)==null||i.call(s))}get duration(){var n,s;const t=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return et(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+et(t)}get time(){return et(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=rt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Ql()?(this.animation.timeline=t,nt):n(this)}}const Yr={anticipate:Pr,backInOut:br,circInOut:Cr};function sc(e){return e in Yr}function ic(e){typeof e.ease=="string"&&sc(e.ease)&&(e.ease=Yr[e.ease])}const sn=10;class rc extends Gr{constructor(t){ic(t),Ur(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new ts({...r,autoplay:!1}),l=Math.max(sn,X.now()-this.startTime),c=ct(0,sn,l-sn);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const Qs=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(vt.test(e)||e==="0")&&!e.startsWith("url("));function oc(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 ac(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],r=Qs(i,t),a=Qs(o,t);return!r||!a?!1:oc(e)||(n==="spring"||$r(n))&&s}function En(e){e.duration=0,e.type="keyframes"}const lc=new Set(["opacity","clipPath","filter","transform"]),cc=zn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function uc(e){var u;const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return cc()&&n&&lc.has(n)&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const hc=40;class dc extends Jn{constructor({autoplay:t=!0,delay:n=0,type:s="
7keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:c,element:u,...h}){var p;super(),this.stop=()=>{var y,g;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=X.now();const d={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:l,motionValue:c,element:u,...h},f=(u==null?void 0:u.KeyframeResolver)||es;this.keyframeResolver=new f(a,(y,g,m)=>this.onKeyframesResolved(y,g,d,!m),l,c,u),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(t,n,s,i){var g,m;this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=X.now(),ac(t,o,r,a)||((dt.instantAnimations||!l)&&(u==null||u(Qn(t,s,n))),t[0]=t[t.length-1],En(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>hc?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},f=!c&&uc(d),p=(m=(g=d.motionValue)==null?void 0:g.owner)==null?void 0:m.current,y=f?new rc({...d,element:p}):new ts(d);y.finished.then(()=>{this.notifyFinished()}).catch(nt),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Xl()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function Xr(e,t,n,s=0,i=1){const o=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),r=e.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const fc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pc(e){const t=fc.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}function qr(e,t,n=1){const[s,i]=pc(e);if(!s)return;const o=window.getComputedStyle(t).getPropertyValue(s);if(o){const r=o.trim();return mr(r)?parseFloat(r):r}return Gn(i)?qr(i,t,n+1):i}const mc={type:"spring",stiffness:500,damping:25,restSpeed:10},gc=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yc={type:"keyframes",duration:.8},vc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xc=(e,{keyframes:t})=>t.length>2?yc:Ht.has(e)?e.startsWith("scale")?gc(t[1]):mc:vc,Tc=e=>e!==null;function wc(e,{repeat:t,repeatType:n="loop"},s){const i=e.filter(Tc),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}function Zr(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function ns(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?Zr(n,e):n}function Sc({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const ss=(e,t,n,s={},i,o)=>r=>{const a=ns(s,e)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-rt(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};Sc(a)||Object.assign(u,xc(e,u)),u.duration&&(u.duration=rt(u.duration)),u.repeatDelay&&(u.repeatDelay=rt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(En(u),u.delay===0&&(h=!0)),(dt.instantAnimations||dt.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(h=!0,En(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!o&&t.get()!==void 0){const d=wc(u.keyframes,a);if(d!==void 0){I.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new ts(u):new dc(u)};function Js(e){const t=[{},{}];
vendor: 4,796 bytes, line 7
7return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function is(e,t,n,s){if(typeof t=="function"){const[i,o]=Js(s);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Js(s);t=t(n!==void 0?n:e.custom,i,o)}return t}function Ut(e,t,n){const s=e.getProps();return is(s,t,n!==void 0?n:s.custom,e)}const Qr=new Set(["width","height","top","left","right","bottom",...Kt]),ti=30,bc=e=>!isNaN(parseFloat(e));class Pc{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var o;const i=X.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=X.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=bc(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 Kn);const s=this.events[t].add(n);return t==="change"?()=>{s(),I.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=X.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ti)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ti);return vr(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Et(e,t){return new Pc(e,t)}const Vn=e=>Array.isArray(e);function Ac(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Et(n))}function Cc(e){return Vn(e)?e[e.length-1]||0:e}function Mc(e,t){const n=Ut(e,t);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Cc(o[r]);Ac(e,r,a)}}const $=e=>!!(e&&e.getVelocity);function Ec(e){return!!($(e)&&e.add)}function Dn(e,t){const n=e.getValue("willChange");if(Ec(n))return n.add(t);if(!n&&dt.WillChange){const s=new dt.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function rs(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Vc="framerAppearId",Jr="data-"+rs(Vc);function to(e){return e.props[Jr]}function Dc({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function eo(e,t,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o,transitionEnd:r,...a}=t;const l=e.getDefaultTransition();o=o?Zr(o,l):l;const c=o==null?void 0:o.reduceMotion;s&&(o=s);const u=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const d in a){const f=e.getValue(d,e.latestValues[d]??null),p=a[d];if(p===void 0||h&&Dc(h,d))continue;const y={delay:n,...ns(o||{},d)},g=f.get();if(g!==void 0&&!f.isAnimating&&!Array.isArray(p)&&p===g&&!y.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const A=to(e);if(A){const S=window.MotionHandoffAnimation(A,d,I);S!==null&&(y.startTime=S,m=!0)}}Dn(e,d);const T=c??e.shouldReduceMotion;f.start(ss(d,f,p,T&&Qr.has(d)?{type:!1}:y,e,m));const x=f.animation;x&&u.push(x)}if(r){const d=()=>I.update(()=>{r&&Mc(e,r)});u.length?Promise.all(u).then(d):d()}return u}function Rn(e,t,n={}){var l;const s=Ut(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};
vendor: 4,665 bytes, line 7
7n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(eo(e,s,n)):()=>Promise.resolve(),r=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:d}=i;return Rc(e,t,c,u,h,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,u]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function Rc(e,t,n=0,s=0,i=0,o=1,r){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Rn(l,t,{...r,delay:n+(typeof s=="function"?0:s)+Xr(e.variantChildren,l,s,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Ic(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(o=>Rn(e,o,n));s=Promise.all(i)}else if(typeof t=="string")s=Rn(e,t,n);else{const i=typeof t=="function"?Ut(e,t,n.custom):t;s=Promise.all(eo(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const Lc={test:e=>e==="auto",parse:e=>e},no=e=>t=>t.test(e),so=[zt,b,lt,pt,al,ol,Lc],ei=e=>so.find(no(e));function kc(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||yr(e):!0}const Bc=new Set(["brightness","contrast","saturate","opacity"]);function Fc(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Yn)||[];if(!s)return e;const i=n.replace(s,"");let o=Bc.has(t)?1:0;return s!==n&&(o*=100),t+"("+o+i+")"}const jc=/\b([a-z-]*)\(.*?\)/gu,In={...vt,getAnimatableNone:e=>{const t=e.match(jc);return t?t.map(Fc).join(" "):e}},ni={...zt,transform:Math.round},_c={rotate:pt,rotateX:pt,rotateY:pt,rotateZ:pt,scale:ve,scaleX:ve,scaleY:ve,scaleZ:ve,skew:pt,skewX:pt,skewY:pt,distance:b,translateX:b,translateY:b,translateZ:b,x:b,y:b,z:b,perspective:b,transformPerspective:b,opacity:ie,originX:Ws,originY:Ws,originZ:b},os={borderWidth:b,borderTopWidth:b,borderRightWidth:b,borderBottomWidth:b,borderLeftWidth:b,borderRadius:b,borderTopLeftRadius:b,borderTopRightRadius:b,borderBottomRightRadius:b,borderBottomLeftRadius:b,width:b,maxWidth:b,height:b,maxHeight:b,top:b,right:b,bottom:b,left:b,inset:b,insetBlock:b,insetBlockStart:b,insetBlockEnd:b,insetInline:b,insetInlineStart:b,insetInlineEnd:b,padding:b,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b,paddingBlock:b,paddingBlockStart:b,paddingBlockEnd:b,paddingInline:b,paddingInlineStart:b,paddingInlineEnd:b,margin:b,marginTop:b,marginRight:b,marginBottom:b,marginLeft:b,marginBlock:b,marginBlockStart:b,marginBlockEnd:b,marginInline:b,marginInlineStart:b,marginInlineEnd:b,fontSize:b,backgroundPositionX:b,backgroundPositionY:b,..._c,zIndex:ni,fillOpacity:ie,strokeOpacity:ie,numOctaves:ni},Oc={...os,color:N,backgroundColor:N,outlineColor:N,fill:N,stroke:N,borderColor:N,borderTopColor:N,borderRightColor:N,borderBottomColor:N,borderLeftColor:N,filter:In,WebkitFilter:In},io=e=>Oc[e];function ro(e,t){let n=io(e);return n!==In&&(n=vt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Nc=new Set(["auto","none","0"]);function Uc(e,t,n){let s=0,i;for(;s<e.length&&!i;){const o=e[s];typeof o=="string"&&!Nc.has(o)&&re(o).values.length&&(i=e[s]),s++}if(i&&n)for(const o of t)e[o]=ro(n,i)}class Wc extends es{constructor(t,n,s,i,o){super(t,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let h=t[u];if(typeof h=="string"&&(h=h.trim(),Gn(h))){const d=qr(h,n.current);d!==void 0&&(t[u]=d),u===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Qr.has(s)||t.length!==2)return;const[i,o]=t,r=ei(i),a=ei(o),l=Us(i),c=Us(o);if(l!==c&&gt[s]){this.needsMeasurement=!0;return}if(r!==a)if(qs(r)&&qs(a))for(let u=0;u<t.length;u++){const h=t[u];typeof h=="string"&&(t[u]=parseFloat(h))}else gt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)(t[i]===null||kc(t[i]))&&s.push(i);s.length&&Uc(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=gt[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=gt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEac
vendor: 11,805 bytes, line 7
7h(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const zc=new Set(["opacity","clipPath","filter","transform"]);function oo(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const i=(n==null?void 0:n[e])??s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(s=>s!=null)}const ao=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Kc(e){return gr(e)&&"offsetHeight"in e}const{schedule:as}=Vr(queueMicrotask,!1),it={x:!1,y:!1};function lo(){return it.x||it.y}function Hc(e){return e==="x"||e==="y"?it[e]?null:(it[e]=!0,()=>{it[e]=!1}):it.x||it.y?null:(it.x=it.y=!0,()=>{it.x=it.y=!1})}function co(e,t){const n=oo(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function $c(e){return!(e.pointerType==="touch"||lo())}function Gc(e,t,n={}){const[s,i,o]=co(e,n);return s.forEach(r=>{let a=!1,l=!1,c;const u=()=>{r.removeEventListener("pointerleave",p)},h=g=>{c&&(c(g),c=void 0),u()},d=g=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),l&&(l=!1,h(g))},f=()=>{a=!0,window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",d,i)},p=g=>{if(g.pointerType!=="touch"){if(a){l=!0;return}h(g)}},y=g=>{if(!$c(g))return;l=!1;const m=t(r,g);typeof m=="function"&&(c=m,r.addEventListener("pointerleave",p,i))};r.addEventListener("pointerenter",y,i),r.addEventListener("pointerdown",f,i)}),o}const uo=(e,t)=>t?e===t?!0:uo(e,t.parentElement):!1,ls=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Yc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Xc(e){return Yc.has(e.tagName)||e.isContentEditable===!0}const qc=new Set(["INPUT","SELECT","TEXTAREA"]);function Zc(e){return qc.has(e.tagName)||e.isContentEditable===!0}const Pe=new WeakSet;function si(e){return t=>{t.key==="Enter"&&e(t)}}function rn(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Qc=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=si(()=>{if(Pe.has(n))return;rn(n,"down");const i=si(()=>{rn(n,"up")}),o=()=>rn(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function ii(e){return ls(e)&&!lo()}const ri=new WeakSet;function Jc(e,t,n={}){const[s,i,o]=co(e,n),r=a=>{const l=a.currentTarget;if(!ii(a)||ri.has(a))return;Pe.add(l),n.stopPropagation&&ri.add(a);const c=t(l,a),u=(f,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",d),Pe.has(l)&&Pe.delete(l),ii(f)&&typeof c=="function"&&c(f,{success:p})},h=f=>{u(f,l===window||l===document||n.useGlobalTarget||uo(l,f.target))},d=f=>{u(f,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",d,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),Kc(a)&&(a.addEventListener("focus",c=>Qc(c,i)),!Xc(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function cs(e){return gr(e)&&"ownerSVGElement"in e}const Ae=new WeakMap;let mt;const ho=(e,t,n)=>(s,i)=>i&&i[0]?i[0][e+"Size"]:cs(s)&&"getBBox"in s?s.getBBox()[t]:s[n],tu=ho("inline","width","offsetWidth"),eu=ho("block","height","offsetHeight");function nu({target:e,borderBoxSize:t}){var n;(n=Ae.get(e))==null||n.forEach(s=>{s(e,{get width(){return tu(e,t)},get height(){return eu(e,t)}})})}function su(e){e.forEach(nu)}function iu(){typeof ResizeObserver>"u"||(mt=new ResizeObserver(su))}function ru(e,t){mt||iu();const n=oo(e);return n.forEach(s=>{let i=Ae.get(s);i||(i=new Set,Ae.set(s,i)),i.add(t),mt==null||mt.observe(s)}),()=>{n.forEach(s=>{const i=Ae.get(s);i==null||i.delete(t),i!=null&&i.size||mt==null||mt.unobserve(s)})}}const Ce=new Set;let jt;function ou(){jt=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ce.forEach(t=>t(e))},window.addEventListener("resize",jt)}function au(e){return Ce.add(e),jt||ou(),()=>{Ce.delete(e),!Ce.size&&typeof jt=="function"&&(window.removeEventListener("resize",jt),jt=void 0)}}function oi(e,t){return typeof e=="function"?au(e):ru(e,t)}function lu(e){return cs(e)&&e.tagName==="svg"}const cu=[...so,N,vt],uu=e=>cu.find(no(e)),ai=()=>({translate:0,scale:1,origin:0,originPoint:0}),_t=()=>({x:ai(),y:ai()}),li=()=>({min:0,max:0}),U=()=>({x:li(),y:li()}),hu=new WeakMap;function We(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function oe(e){return typeof e=="string"||Array.isArray(e)}const us=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hs=["initial",...us];function ze(e){return We(e.animate)||hs.some(t=>oe(e[t]))}function fo(e){return!!(ze(e)||e.variants)}function du(e,t,n){for(const s in t){const i=t[s],o=n[s];if($(i))e.addValue(s,i);else if($(o))e.addValue(s,Et(i,{owner:e}));else if(o!==i)if(e.hasValue(s)){const r=e.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=e.getStaticValue(s);e.addValue(s,Et(r!==void 0?r:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const Be={current:null},ds={current:!1},fu=typeof window<"u";function po(){if(ds.current=!0,!!fu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Be.current=e.matches;e.addEventListener("change",t),t()}else Be.current=!1}const ci=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Fe={};function mo(e){Fe=e}function pu(){return Fe}class mu{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:r,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=es,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 f=X.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,I.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!r,this.isControllingVariants=ze(n),this.isVariantNode=fo(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];c[f]!==void 0&&$(p)&&p.set(c[f])}}mount(t){var n,s;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,hu.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((i,o)=>this.bindToMotionValue(o,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ds.current||po(),this.shouldReduceMotion=Be.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),yt(this.notifyUpdate),yt(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&zc.has(t)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,h=new Gr({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:rt(u)}),d=r(h);this.valueSubscriptions.set(t,()=>{d(),h.cancel()});return}const s=Ht.has(t);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[t]=r,this.props.onUpdate&&I.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{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 Fe){const n=Fe[t];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):U()}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<ci.length;s++){const i=ci[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=t[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=du(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){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=Et(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);
vendor: 10,110 bytes, line 7
7return s!=null&&(typeof s=="string"&&(mr(s)||yr(s))?s=parseFloat(s):!uu(s)&&vt.test(n)&&(s=ro(t,n)),this.setBaseTarget(t,$(s)?s.get():s)),$(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=is(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);r&&(s=r[t])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!$(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Kn),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){as.render(this.render)}}class go extends mu{constructor(){super(...arguments),this.KeyframeResolver=Wc}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const s=t.style;return s?s[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;$(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class xt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function yo({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function gu({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function yu(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 on(e){return e===void 0||e===1}function Ln({scale:e,scaleX:t,scaleY:n}){return!on(e)||!on(t)||!on(n)}function St(e){return Ln(e)||vo(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vo(e){return ui(e.x)||ui(e.y)}function ui(e){return e&&e!=="0%"}function je(e,t,n){const s=e-n,i=t*s;return n+i}function hi(e,t,n,s,i){return i!==void 0&&(e=je(e,i,s)),je(e,n,s)+t}function kn(e,t=0,n=1,s,i){e.min=hi(e.min,t,n,s,i),e.max=hi(e.max,t,n,s,i)}function xo(e,{x:t,y:n}){kn(e.x,t.translate,t.scale,t.originPoint),kn(e.y,n.translate,n.scale,n.originPoint)}const di=.999999999999,fi=1.0000000000001;function vu(e,t,n,s=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Nt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(t.x*=r.x.scale,t.y*=r.y.scale,xo(e,r)),s&&St(o.latestValues)&&Nt(e,o.latestValues))}t.x<fi&&t.x>di&&(t.x=1),t.y<fi&&t.y>di&&(t.y=1)}function Ot(e,t){e.min=e.min+t,e.max=e.max+t}function pi(e,t,n,s,i=.5){const o=F(e.min,e.max,i);kn(e,t,n,o,s)}function Nt(e,t){pi(e.x,t.x,t.scaleX,t.scale,t.originX),pi(e.y,t.y,t.scaleY,t.scale,t.originY)}function To(e,t){return yo(yu(e.getBoundingClientRect(),t))}function xu(e,t,n){const s=To(e,n),{scroll:i}=t;return i&&(Ot(s.x,i.offset.x),Ot(s.y,i.offset.y)),s}const Tu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wu=Kt.length;function Su(e,t,n){let s="",i=!0;for(let o=0;o<wu;o++){const r=Kt[o],a=e[r];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(r.startsWith("scale")?1:0);else{const c=parseFloat(a);l=r.startsWith("scale")?c===1:c===0}if(!l||n){const c=ao(a,os[r]);if(!l){i=!1;const u=Tu[r]||r;s+=`${u}(${c}) `}n&&(t[r]=c)}}return s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}function fs(e,t,n){const{style:s,vars:i,transformOrigin:o}=e;let r=!1,a=!1;for(const l in t){const c=t[l];if(Ht.has(l)){r=!0;continue}else if(Rr(l)){i[l]=c;continue}else{const u=ao(c,os[l]);l.startsWith("origin")?(a=!0,o[l]=u):s[l]=u}}if(t.transform||(r||n?s.transform=Su(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;s.transformOrigin=`${l} ${c} ${u}`}}function wo(e,{style:t,vars:n},s,i){const o=e.style;let r;for(r in t)o[r]=t[r];i==null||i.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function mi(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Zt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(b.test(e))e=parseFloat(e);else return e;const n=mi(e,t.target.x),s=mi(e,t.target.y);return`${n}% ${s}%`}},bu={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,i=vt.parse(e);if(i.length>5)return s;const o=vt.createTransformer(e),r=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+r]/=a,i[1+r]/=l;const c=F(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}},Bn={borderRadius:{...Zt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Zt,borderTopRightRadius:Zt,borderBottomLeftRadius:Zt,borderBottomRightRadius:Zt,boxShadow:bu};function So(e,{layout:t,layoutId:n}){return Ht.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Bn[e]||e==="opacity")}function ps(e,t,n){var r;const s=e.style,i=t==null?void 0:t.style,o={};if(!s)return o;for(const a in s)($(s[a])||i&&$(i[a])||So(a,e)||((r=n==null?void 0:n.getValue(a))==null?void 0:r.liveStyle)!==void 0)&&(o[a]=s[a]);return o}function Pu(e){return window.getComputedStyle(e)}class Au extends go{constructor(){super(...arguments),this.type="html",this.renderInstance=wo}readValueFromInstance(t,n){var s;if(Ht.has(n))return(s=this.projection)!=null&&s.isProjecting?bn(n):Kl(t,n);{const i=Pu(t),o=(Rr(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return To(t,n)}build(t,n,s){fs(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return ps(t,n,s)}}const Cu={offset:"stroke-dashoffset",array:"stroke-dasharray"},Mu={offset:"strokeDashoffset",array:"strokeDasharray"};function Eu(e,t,n=1,s=0,i=!0){e.pathLength=1;const o=i?Cu:Mu;e[o.offset]=`${-s}`,e[o.array]=`${t} ${n}`}const Vu=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function bo(e,{attrX:t,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},l,c,u){if(fs(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:d}=e;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete h.transformBox);for(const f of Vu)h[f]!==void 0&&(d[f]=h[f],delete h[f]);t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&Eu(h,i,o,r,!1)}const Po=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"]),Ao=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Du(e,t,n,s){wo(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(Po.has(i)?i:rs(i),t.attrs[i])}function Co(e,t,n){const s=ps(e,t,n);for(const i in e)if($(e[i])||$(t[i])){const o=Kt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=e[i]}return s}class Ru extends go{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=U}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ht.has(n)){const s=io(n);return s&&s.default||0}return n=Po.has(n)?n:rs(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Co(t,n,s)}build(t,n,s){bo(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,i){Du(t,n,s,i)}mount(t){this.isSVGTag=Ao(t.tagName),super.mount(t)}}const Iu=hs.length;function Mo(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Mo(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Iu;n++){const s=hs[n],i=e.props[s];(oe(i)||i===!1)&&(t[s]=i)}return t}function Eo(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}const Lu=[...us].reverse(),ku=us.length;function Bu(e){return t=>Promise.all(t.map(({animation:n,options:s})=>Ic(e,n,s)))}function Fu(e){let t=Bu(e),n=gi(),s=!0;const i=l=>(c,u)=>{var d;const h=Ut(e,u,l==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(h){const{transition:f,transitionEnd:p,...y}=h;c={...c,...y,...p}}return c};function o(l){t=l(e)}function r(l){const{props:c}=e,u=Mo(e.parent)||{},h=[],d=new Set;let f={},p=1/0;for(let g=0;g<ku;g++){const m=Lu[g],T=n[m],x=c[m]!==void 0?c[m]:u[m],A=oe(x),S=m===l?T.isActive:null;S===!1&&(p=g);let E=x===u[m]&&x!==c[m]&&A;if(E&&s&&e.manuallyAnimateOnMount&&(E=!1),T.protectedKeys={...f},!T.isActive&&S===null||!x&&!T.prevProp||We(x)||typeof x=="boolean")continue;if(m==="exit"&&T.isActive&&S!==!0){T.prevResolvedValues&&(f={...f,...T.prevResolvedValues});continue}const V=ju(T.prevProp,x);let C=V||m===l&&T.isActive&&!E&&A||g>p&&A,D=!1;const R=Array.isArray(x)?x:[x];let j=R.reduce(i(m),{});S===!1&&(j={});const{prevResolvedValues:J={}}=T,H={...J,...j},Q=k=>{C=!0,d.has(k)&&(D=!0,d.delete(k)),T.needsAnimating[k]=!0;const L=e.getValue(k);L&&(L.liveStyle=!1)};for(const k in H){const L=j[k],W=J[k];if(f.hasOwnProperty(k))continue;let z=!1;Vn(L)&&Vn(W)?z=!Eo(L,W):z=L!==W,z?L!=null?Q(k):d.add(k):L!==void 0&&d.has(k)?Q(k):T.protectedKeys[k]=!0}T.prevProp=x,T.prevResolvedValues=j,T.isActive&&(f={...f,...j}),s&&e.blockInitialAnimation&&(C=!1);const tt=E&&V;C&&(!tt||D)&&h.push(...R.map(k=>{const L={type:m};if(typeof k=="string"&&s&&!tt&&e.manuallyAnimateOnMount&&e.parent){const{parent:W}=e,z=Ut(W,k);if(W.enteringChildren&&z){const{delayChildren:Y}=z.transition||{};L.delay=Xr(W.enteringChildren,e,Y)}}return{animation:k,options:L}}))}if(d.size){const g={};if(typeof c.initial!="boolean"){const m=Ut(e,Array.isArray(c.initial)?c.initial[0]:c.initial);m&&m.transition&&(g.transition=m.transition)}
vendor: 2,828 bytes, line 7
7d.forEach(m=>{const T=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),g[m]=T??null}),h.push({animation:g})}let y=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),s=!1,y?t(h):Promise.resolve()}function a(l,c){var h;if(n[l].isActive===c)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(d=>{var f;return(f=d.animationState)==null?void 0:f.setActive(l,c)}),n[l].isActive=c;const u=r(l);for(const d in n)n[d].protectedKeys={};return u}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=gi()}}}function ju(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Eo(t,e):!1}function wt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gi(){return{animate:wt(!0),whileInView:wt(),whileHover:wt(),whileTap:wt(),whileDrag:wt(),whileFocus:wt(),exit:wt()}}function yi(e,t){e.min=t.min,e.max=t.max}function st(e,t){yi(e.x,t.x),yi(e.y,t.y)}function vi(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Vo=1e-4,_u=1-Vo,Ou=1+Vo,Do=.01,Nu=0-Do,Uu=0+Do;function q(e){return e.max-e.min}function Wu(e,t,n){return Math.abs(e-t)<=n}function xi(e,t,n,s=.5){e.origin=s,e.originPoint=F(t.min,t.max,e.origin),e.scale=q(n)/q(t),e.translate=F(n.min,n.max,e.origin)-e.originPoint,(e.scale>=_u&&e.scale<=Ou||isNaN(e.scale))&&(e.scale=1),(e.translate>=Nu&&e.translate<=Uu||isNaN(e.translate))&&(e.translate=0)}function ee(e,t,n,s){xi(e.x,t.x,n.x,s?s.originX:void 0),xi(e.y,t.y,n.y,s?s.originY:void 0)}function Ti(e,t,n){e.min=n.min+t.min,e.max=e.min+q(t)}function zu(e,t,n){Ti(e.x,t.x,n.x),Ti(e.y,t.y,n.y)}function wi(e,t,n){e.min=t.min-n.min,e.max=e.min+q(t)}function _e(e,t,n){wi(e.x,t.x,n.x),wi(e.y,t.y,n.y)}function Si(e,t,n,s,i){return e-=t,e=je(e,1/n,s),i!==void 0&&(e=je(e,1/i,s)),e}function Ku(e,t=0,n=1,s=.5,i,o=e,r=e){if(lt.test(t)&&(t=parseFloat(t),t=F(r.min,r.max,t/100)-r.min),typeof t!="number")return;let a=F(o.min,o.max,s);e===o&&(a-=t),e.min=Si(e.min,t,n,a,i),e.max=Si(e.max,t,n,a,i)}function bi(e,t,[n,s,i],o,r){Ku(e,t[n],t[s],t[i],t.scale,o,r)}const Hu=["x","scaleX","originX"],$u=["y","scaleY","originY"];function Pi(e,t,n,s){bi(e.x,t,Hu,n?n.x:void 0,s?s.x:void 0),bi(e.y,t,$u,n?n.y:void 0,s?s.y:void 0)}function Ai(e){return e.translate===0&&e.scale===1}function Ro(e){return Ai(e.x)&&Ai(e.y)}function Ci(e,t){return e.min===t.min&&e.max===t.max}function Gu(e,t){return Ci(e.x,t.x)&&Ci(e.y,t.y)}function Mi(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Io(e,t){return Mi(e.x,t.x)&&Mi(e.y,t.y)}function Ei(e){return q(e.x)/q(e.y)}function Vi(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function ot(e){return[e("x"),e("y")]}function Yu(e,t,n){let s="";
vendor: 15,375 bytes, line 7
7const i=e.x.translate/t.x,o=e.y.translate/t.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:d,skewX:f,skewY:p}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotateX(${h}deg) `),d&&(s+=`rotateY(${d}deg) `),f&&(s+=`skewX(${f}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Lo=["TopLeft","TopRight","BottomLeft","BottomRight"],Xu=Lo.length,Di=e=>typeof e=="string"?parseFloat(e):e,Ri=e=>typeof e=="number"||b.test(e);function qu(e,t,n,s,i,o){i?(e.opacity=F(0,n.opacity??1,Zu(s)),e.opacityExit=F(t.opacity??1,0,Qu(s))):o&&(e.opacity=F(t.opacity??1,n.opacity??1,s));for(let r=0;r<Xu;r++){const a=`border${Lo[r]}Radius`;let l=Ii(t,a),c=Ii(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Ri(l)===Ri(c)?(e[a]=Math.max(F(Di(l),Di(c),s),0),(lt.test(c)||lt.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=F(t.rotate||0,n.rotate||0,s))}function Ii(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Zu=ko(0,.5,Ar),Qu=ko(.5,.95,nt);function ko(e,t,n){return s=>s<e?0:s>t?1:n(se(e,t,s))}function Ju(e,t,n){const s=$(e)?e:Et(e);return s.start(ss("",s,t,n)),s.animation}function ae(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}const th=(e,t)=>e.depth-t.depth;class eh{constructor(){this.children=[],this.isDirty=!1}add(t){Un(this.children,t),this.isDirty=!0}remove(t){Re(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(th),this.isDirty=!1,this.children.forEach(t)}}function nh(e,t){const n=X.now(),s=({timestamp:i})=>{const o=i-n;o>=t&&(yt(s),e(o-t))};return I.setup(s,!0),()=>yt(s)}function Me(e){return $(e)?e.get():e}class sh{constructor(){this.members=[]}add(t){Un(this.members,t);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===t||s===this.lead||s===this.prevLead)continue;const i=s.instance;i&&i.isConnected===!1&&s.isPresent!==!1&&!s.snapshot&&Re(this.members,s)}t.scheduleRender()}remove(t){if(Re(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i],r=o.instance;if(o.isPresent!==!1&&(!r||r.isConnected!==!1)){s=o;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender();const i=s.options.layoutDependency,o=t.options.layoutDependency;if(!(i!==void 0&&o!==void 0&&i===o)){const l=s.instance;l&&l.isConnected===!1&&!s.snapshot||(t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:a}=t.options;a===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Ee={hasAnimatedSinceResize:!0,hasEverUpdated:!1},an=["","X","Y","Z"],ih=1e3;let rh=0;function ln(e,t,n,s){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),s&&(s[e]=0))}function Bo(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=to(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",I,!(i||o))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&Bo(s)}function Fo({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=t==null?void 0:t()){this.id=rh++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(lh),this.nodes.forEach(dh),this.nodes.forEach(fh),this.nodes.forEach(ch)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new eh)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Kn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=cs(r)&&!lu(r),this.instance=r;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,h=0;const d=()=>this.root.updateBlockedByResize=!1;I.read(()=>{h=window.innerWidth}),e(r,()=>{const f=window.innerWidth;f!==h&&(h=f,this.root.updateBlockedByResize=!0,u&&u(),u=nh(d,250),Ee.hasAnimatedSinceResize&&(Ee.hasAnimatedSinceResize=!1,this.nodes.forEach(Bi)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:d,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||vh,{onLayoutAnimationStart:y,onLayoutAnimationComplete:g}=c.getProps(),m=!this.targetLayout||!Io(this.targetLayout,f),T=!h&&d;if(this.options.layoutRoot||this.resumeFrom||T||h&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...ns(p,"layout"),onPlay:y,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,T)}else h||Bi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),yt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ph),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Bo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Li);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ki);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(hh),this.nodes.forEach(oh),this.nodes.forEach(ah)):this.nodes.forEach(ki),this.clearAllSnapshots();const a=X.now();K.delta=ct(0,1e3/60,a-K.timestamp),K.timestamp=a,K.isProcessing=!0,Qe.update.process(K),Qe.preRender.process(K),Qe.render.process(K),K.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,as.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(uh),this.sharedNodes.forEach(mh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,I.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){I.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!q(this.snapshot.measuredBox.x)&&!q(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=U(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ro(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&this.instance&&(a||St(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),xh(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:r}=this.options;if(!r)return U();const a=r.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(Th))){const{scroll:u}=this.root;u&&(Ot(a.x,u.offset.x),Ot(a.y,u.offset.y))}return a}removeElementScroll(r){var l;const a=U();if(st(a,r),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:h,options:d}=u;u!==this.root&&h&&d.layoutScroll&&(h.wasRoot&&st(a,r),Ot(a.x,h.offset.x),Ot(a.y,h.offset.y))}return a}applyTransform(r,a=!1){const l=U();st(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Nt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),St(u.latestValues)&&Nt(l,u.latestValues)}return St(this.latestValues)&&Nt(l,this.latestValues),l}removeTransform(r){const a=U();st(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!St(c.latestValues))continue;Ln(c.latestValues)&&c.updateSnapshot();const u=U(),h=c.measurePageBox();st(u,h),Pi(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return St(this.latestValues)&&Pi(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==K.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=K.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=U(),this.targetWithTransforms=U()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),zu(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):st(this.target,this.layout.layoutBox),xo(this.target,this.targetDelta)):st(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ln(this.parent.latestValues)||vo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,l){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=U(),this.relativeTargetOrigin=U(),_e(this.relativeTargetOrigin,a,l),st(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&
vendor: 5,263 bytes, line 7
7(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===K.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;st(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;vu(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=U());const{target:f}=r;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vi(this.prevProjectionDelta.x,this.projectionDelta.x),vi(this.prevProjectionDelta.y,this.projectionDelta.y)),ee(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==d||!Vi(this.projectionDelta.x,this.prevProjectionDelta.x)||!Vi(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=_t(),this.projectionDelta=_t(),this.projectionDeltaWithTransform=_t()}setAnimationOrigin(r,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=_t();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=U(),f=l?l.source:void 0,p=this.layout?this.layout.source:void 0,y=f!==p,g=this.getStack(),m=!g||g.members.length<=1,T=!!(y&&!m&&this.options.crossfade===!0&&!this.path.some(yh));this.animationProgress=0;let x;this.mixTargetDelta=A=>{const S=A/1e3;Fi(h.x,r.x,S),Fi(h.y,r.y,S),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_e(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),gh(this.relativeTarget,this.relativeTargetOrigin,d,S),x&&Gu(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=U()),st(x,this.relativeTarget)),y&&(this.animationValues=u,qu(u,c,this.latestValues,S,T,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(yt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=I.update(()=>{Ee.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Et(0)),this.currentAnimation=Ju(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),r.onUpdate&&r.onUpdate(u)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ih),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&jo(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||U();const h=q(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const d=q(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+d}st(a,l),Nt(a,u),ee(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new sh),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var a;const{layoutId:r}=this.options;return r?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:r}=this.options;return r?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}
vendor: 8,565 bytes, line 7
7resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&ln("z",r,c,this.animationValues);for(let u=0;u<an.length;u++)ln(`rotate${an[u]}`,r,c,this.animationValues),ln(`skew${an[u]}`,r,c,this.animationValues);r.render();for(const u in c)r.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Me(a==null?void 0:a.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Me(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!St(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=Yu(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),r.transform=h;const{x:d,y:f}=this.projectionDelta;r.transformOrigin=`${d.origin*100}% ${f.origin*100}% 0`,c.animationValues?r.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const p in Bn){if(u[p]===void 0)continue;const{correct:y,applyTo:g,isCSSVariable:m}=Bn[p],T=h==="none"?u[p]:y(u[p],c);if(g){const x=g.length;for(let A=0;A<x;A++)r[g[A]]=T}else m?this.options.visualElement.renderState.vars[p]=T:r[p]=T}this.options.layoutId&&(r.pointerEvents=c===this?Me(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Li),this.root.sharedNodes.clear()}}}function oh(e){e.updateLayout()}function ah(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=e.layout,{animationType:o}=e.options,r=t.source!==e.layout.source;o==="size"?ot(h=>{const d=r?t.measuredBox[h]:t.layoutBox[h],f=q(d);d.min=s[h].min,d.max=d.min+f}):jo(o,t.layoutBox,s)&&ot(h=>{const d=r?t.measuredBox[h]:t.layoutBox[h],f=q(s[h]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+f)});const a=_t();ee(a,s,t.layoutBox);const l=_t();r?ee(l,e.applyTransform(i,!0),t.measuredBox):ee(l,s,t.layoutBox);const c=!Ro(a);let u=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const p=U();_e(p,t.layoutBox,d.layoutBox);const y=U();_e(y,s,f.layoutBox),Io(p,y)||(u=!0),h.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=p,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function lh(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ch(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function uh(e){e.clearSnapshot()}function Li(e){e.clearMeasurements()}function ki(e){e.isLayoutDirty=!1}function hh(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Bi(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dh(e){e.resolveTargetDelta()}function fh(e){e.calcProjection()}function ph(e){e.resetSkewAndRotation()}function mh(e){e.removeLeadSnapshot()}function Fi(e,t,n){e.translate=F(t.translate,0,n),e.scale=F(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ji(e,t,n,s){e.min=F(t.min,n.min,s),e.max=F(t.max,n.max,s)}function gh(e,t,n,s){ji(e.x,t.x,n.x,s),ji(e.y,t.y,n.y,s)}function yh(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const vh={duration:.45,ease:[.4,0,.1,1]},_i=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Oi=_i("applewebkit/")&&!_i("chrome/")?Math.round:nt;function Ni(e){e.min=Oi(e.min),e.max=Oi(e.max)}function xh(e){Ni(e.x),Ni(e.y)}function jo(e,t,n){return e==="position"||e==="preserve-aspect"&&!Wu(Ei(t),Ei(n),.2)}function Th(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const wh=Fo({attachResizeListener:(e,t)=>ae(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),cn={current:void 0},_o=Fo({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cn.current){const e=new wh({});e.mount(window),e.setOptions({layoutScroll:!0}),cn.current=e}return cn.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ms=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Sh(e=!0){const t=v.useContext(Nn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=t,o=v.useId();v.useEffect(()=>{if(e)return i(o)},[e]);const r=v.useCallback(()=>e&&s&&s(o),[o,s,e]);return!n&&s?[!1,r]:[!0]}const Oo=v.createContext({strict:!1}),Ui={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"]};let Wi=!1;function bh(){if(Wi)return;const e={};for(const t in Ui)e[t]={isEnabled:n=>Ui[t].some(s=>!!n[s])};mo(e),Wi=!0}function No(){return bh(),pu()}function Ph(e){const t=No();for(const n in e)t[n]={...t[n],...e[n]};mo(t)}const Ah=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","propagate","ignoreStrict","viewport"]);function Oe(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ah.has(e)}let Uo=e=>!Oe(e);function Ch(e){typeof e=="function"&&(Uo=t=>t.startsWith("on")?!Oe(t):e(t))}try{Ch(require("@emotion/is-prop-valid").default)}catch{}function Mh(e,t,n){const s={};for(const i in e)i==="values"&&typeof e.values=="object"||(Uo(i)||n===!0&&Oe(i)||!t&&!Oe(i)||e.draggable&&i.startsWith("onDrag"))&&(s[i]=e[i]);return s}const Ke=v.createContext({});function Eh(e,t){if(ze(e)){const{initial:n,animate:s}=e;return{initial:n===!1||oe(n)?n:void 0,animate:oe(s)?s:void 0}}return e.inherit!==!1?t:{}}function Vh(e){const{initial:t,animate:n}=Eh(e,v.useContext(Ke));return v.useMemo(()=>({initial:t,animate:n}),[zi(t),zi(n)])}function zi(e){return Array.isArray(e)?e.join(" "):e}const gs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wo(e,t,n){for(const s in t)!$(t[s])&&!So(s,n)&&(e[s]=t[s])}function Dh({transformTemplate:e},t){return v.useMemo(()=>{const n=gs();return fs(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Rh(e,t){const n=e.style||{},s={};return Wo(s,n,e),Object.assign(s,Dh(e,t)),s}function Ih(e,t){const n={},s=Rh(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"}
7`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}const zo=()=>({...gs(),attrs:{}});function Lh(e,t,n,s){const i=v.useMemo(()=>{const o=zo();return bo(o,t,Ao(s),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Wo(o,e.style,e),i.style={...o,...i.style}}return i}const kh=["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 ys(e){return typeof e!="string"||e.includes("-")?!1:!!(kh.indexOf(e)>-1||/[A-Z]/u.test(e))}function Bh(e,t,n,{latestValues:s},i,o=!1,r){const l=(r??ys(e)?Lh:Ih)(t,s,i,e),c=Mh(t,typeof e=="string",o),u=e!==v.Fragment?{...c,...l,ref:n}:{},{children:h}=t,d=v.useMemo(()=>$(h)?h.get():h,[h]);return v.createElement(e,{...u,children:d})}function Fh({scrapeMotionValuesFromProps:e,createRenderState:t},n,s,i){return{latestValues:jh(n,s,i,e),renderState:t()}}function jh(e,t,n,s){const i={},o=s(e,{});for(const d in o)i[d]=Me(o[d]);let{initial:r,animate:a}=e;const l=ze(e),c=fo(e);t&&c&&!l&&e.inherit!==!1&&(r===void 0&&(r=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const h=u?a:r;if(h&&typeof h!="boolean"&&!We(h)){const d=Array.isArray(h)?h:[h];for(let f=0;f<d.length;f++){const p=is(e,d[f]);if(p){const{transitionEnd:y,transition:g,...m}=p;for(const T in m){let x=m[T];if(Array.isArray(x)){const A=u?x.length-1:0;x=x[A]}x!==null&&(i[T]=x)}for(const T in y)i[T]=y[T]}}}return i}const Ko=e=>(t,n)=>{const s=v.useContext(Ke),i=v.useContext(Nn),o=()=>Fh(e,t,s,i);return n?o():fr(o)},_h=Ko({scrapeMotionValuesFromProps:ps,createRenderState:gs}),Oh=Ko({scrapeMotionValuesFromProps:Co,createRenderState:zo}),Nh=Symbol.for("motionComponentSymbol");function Uh(e,t,n){const s=v.useRef(n);v.useInsertionEffect(()=>{s.current=n});const i=v.useRef(null);return v.useCallback(o=>{var a;o&&((a=e.onMount)==null||a.call(e,o)),t&&(o?t.mount(o):t.unmount());const r=s.current;if(typeof r=="function")if(o){const l=r(o);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o)},[t])}const Ho=v.createContext({});function Bt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Wh(e,t,n,s,i,o){var x,A;const{visualElement:r}=v.useContext(Ke),a=v.useContext(Oo),l=v.useContext(Nn),c=v.useContext(ms),u=c.reducedMotion,h=c.skipAnimations,d=v.useRef(null),f=v.useRef(!1);s=s||a.renderer,!d.current&&s&&(d.current=s(e,{visualState:t,parent:r,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:h,isSVG:o}),f.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const p=d.current,y=v.useContext(Ho);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&zh(d.current,n,i,y);const g=v.useRef(!1);v.useInsertionEffect(()=>{p&&g.current&&p.update(n,l)});const m=n[Jr],T=v.useRef(!!m&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,m))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,m)));return Ua(()=>{f.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),T.current&&p.animationState&&p.animationState.animateChanges())}),v.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)==null||S.call(window,m)}),T.current=!1),p.enteringChildren=void 0)}),p}function zh(e,t,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:$o(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&Bt(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:c})}function $o(e){if(e)return e.options.allowProjection!==!1?e.projection:$o(e.parent)}function un(e,{forwardMotionProps:t=!1,type:n}={},s,i){s&&Ph(s);const o=n?n==="svg":ys(e),r=o?Oh:_h;function a(c,u){let h;const d={...v.useContext(ms),...c,layoutId:Kh(c)},{isStatic:f}=d,p=Vh(c),y=r(c,f);
vendor: 5,663 bytes, line 7
7if(!f&&pr){Hh();const g=$h(d);h=g.MeasureLayout,p.visualElement=Wh(e,y,d,i,g.ProjectionNode,o)}return w.jsxs(Ke.Provider,{value:p,children:[h&&p.visualElement?w.jsx(h,{visualElement:p.visualElement,...d}):null,Bh(e,c,Uh(y,p.visualElement,u),y,f,t,o)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=v.forwardRef(a);return l[Nh]=e,l}function Kh({layoutId:e}){const t=v.useContext(dr).id;return t&&e!==void 0?t+"-"+e:e}function Hh(e,t){v.useContext(Oo).strict}function $h(e){const t=No(),{drag:n,layout:s}=t;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n!=null&&n.isEnabled(e)||s!=null&&s.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Gh(e,t){if(typeof Proxy>"u")return un;const n=new Map,s=(o,r)=>un(o,r,e,t),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,un(r,void 0,e,t)),n.get(r))})}const Yh=(e,t)=>t.isSVG??ys(e)?new Ru(t):new Au(t,{allowProjection:e!==v.Fragment});class Xh extends xt{constructor(t){super(t),t.animationState||(t.animationState=Fu(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();We(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.call(this)}}let qh=0;class Zh extends xt{constructor(){super(...arguments),this.id=qh++}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 i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Qh={animation:{Feature:Xh},exit:{Feature:Zh}};function he(e){return{point:{x:e.pageX,y:e.pageY}}}const Jh=e=>t=>ls(t)&&e(t,he(t));function ne(e,t,n,s){return ae(e,t,Jh(n),s)}const Go=({current:e})=>e?e.ownerDocument.defaultView:null,Ki=(e,t)=>Math.abs(e-t);function td(e,t){const n=Ki(e.x,t.x),s=Ki(e.y,t.y);return Math.sqrt(n**2+s**2)}const Hi=new Set(["auto","scroll"]);class Yo{constructor(t,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=dn(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=td(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!y)return;const{point:g}=f,{timestamp:m}=K;this.history.push({...g,timestamp:m});const{onStart:T,onMove:x}=this.handlers;p||(T&&T(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=hn(p,this.transformPagePoint),I.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:y,onSessionEnd:g,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=dn(f.type==="pointercancel"?this.lastMoveEventInfo:hn(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(f,T),g&&g(f,T)},!ls(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const l=he(t),c=hn(l,this.transformPagePoint),{point:u}=c,{timestamp:h}=K;this.history=[{...u,timestamp:h}];const{onSessionStart:d}=n;d&&d(t,dn(c,this.history)),this.removeListeners=le(ne(this.contextWindow,"pointermove",this.handlePointerMove),ne(this.contextWindow,"pointerup",this.handlePointerUp),ne(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const s=getComputedStyle(n);(Hi.has(s.overflowX)||Hi.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const s=t===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,i),I.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),yt(this.updatePoint)}}function hn(e,t){return t?{point:t(e.point)}:e}function $i(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dn({point:e},t){return{point:e,delta:$i(e,Xo(t)),offset:$i(e,ed(t)),velocity:nd(t,.1)}}function ed(e){return e[0]}function Xo(e){return e[e.length-1]}
vendor: 12,730 bytes, line 7
7function nd(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const i=Xo(e);for(;n>=0&&(s=e[n],!(i.timestamp-s.timestamp>rt(t)));)n--;if(!s)return{x:0,y:0};s===e[0]&&e.length>2&&i.timestamp-s.timestamp>rt(t)*2&&(s=e[1]);const o=et(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function sd(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?F(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?F(n,e,s.max):Math.min(e,n)),e}function Gi(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function id(e,{top:t,left:n,bottom:s,right:i}){return{x:Gi(e.x,n,i),y:Gi(e.y,t,s)}}function Yi(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function rd(e,t){return{x:Yi(e.x,t.x),y:Yi(e.y,t.y)}}function od(e,t){let n=.5;const s=q(e),i=q(t);return i>s?n=se(t.min,t.max-s,e.min):s>i&&(n=se(e.min,e.max-i,t.min)),ct(0,1,n)}function ad(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Fn=.35;function ld(e=Fn){return e===!1?e=0:e===!0&&(e=Fn),{x:Xi(e,"left","right"),y:Xi(e,"top","bottom")}}function Xi(e,t,n){return{min:qi(e,t),max:qi(e,n)}}function qi(e,t){return typeof e=="number"?e:e[t]||0}const cd=new WeakMap;class ud{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=U(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{n&&this.snapToCursor(he(h).point),this.stopAnimation()},r=(h,d)=>{const{drag:f,dragPropagation:p,onDragStart:y}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Hc(f),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ot(m=>{let T=this.getAxisMotionValue(m).get()||0;if(lt.test(T)){const{projection:x}=this.visualElement;if(x&&x.layout){const A=x.layout.layoutBox[m];A&&(T=q(A)*(parseFloat(T)/100))}}this.originPoint[m]=T}),y&&I.update(()=>y(h,d),!1,!0),Dn(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d;const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:y,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:m}=d;if(p&&this.currentDirection===null){this.currentDirection=dd(m),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,m),this.updateAxis("y",d.point,m),this.visualElement.render(),g&&I.update(()=>g(h,d),!1,!0)},l=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d,this.stop(h,d),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Yo(t,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Go(this.visualElement),element:this.visualElement.current})}stop(t,n){const s=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&I.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,s){const{drag:i}=this.getProps();if(!s||!xe(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let r=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(r=sd(r,this.constraints[t],this.elastic[t])),o.set(r)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&Bt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=id(s.layoutBox,t):this.constraints=!1,this.elastic=ld(n),i!==this.constraints&&!Bt(t)&&s&&this.constraints&&!this.hasMutatedConstraints&&ot(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=ad(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bt(t))return!1;const s=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=xu(s,i.root,this.visualElement.getTransformPagePoint());let r=rd(i.layout.layoutBox,o);if(n){const a=n(gu(r));this.hasMutatedConstraints=!!a,a&&(r=yo(a))}return r}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=ot(u=>{if(!xe(u,n,this.currentDirection))return;let h=l&&l[u]||{};r&&(h={min:0,max:0});const d=i?200:1e6,f=i?40:1e7,p={type:"inertia",velocity:s?t[u]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return Dn(this.visualElement,t),s.start(ss(t,s,0,n,this.visualElement,!1))}stopAnimation(){ot(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){ot(n=>{const{drag:s}=this.getProps();if(!xe(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],l=o.get()||0;o.set(t[n]-F(r,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Bt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ot(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=od({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),ot(r=>{if(!xe(r,t,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(F(l,c,i[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;cd.set(this.visualElement,this);const t=this.visualElement.current,n=ne(t,"pointerdown",c=>{const{drag:u,dragListener:h=!0}=this.getProps(),d=c.target,f=d!==t&&Zc(d);u&&h&&!f&&this.start(c)});let s;const i=()=>{const{dragConstraints:c}=this.getProps();Bt(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),s||(s=hd(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),I.read(i);const a=ae(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(ot(h=>{const d=this.getAxisMotionValue(h);d&&(this.originPoint[h]+=c[h].translate,d.set(d.get()+c[h].translate))}),this.visualElement.render())}));return()=>{a(),n(),r(),l&&l(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Fn,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Zi(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function hd(e,t,n){const s=oi(e,Zi(n)),i=oi(t,Zi(n));return()=>{s(),i()}}function xe(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function dd(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class fd extends xt{constructor(t){super(t),this.removeGroupControls=nt,this.removeListeners=nt,this.controls=new ud(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||nt}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const fn=e=>(t,n)=>{e&&I.update(()=>e(t,n),!1,!0)};class pd extends xt{constructor(){super(...arguments),this.removePointerDownListener=nt}onPointerDown(t){this.session=new Yo(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Go(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:fn(t),onStart:fn(n),onMove:fn(s),onEnd:(o,r)=>{delete this.session,i&&I.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=ne(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let pn=!1;class md extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),pn&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ee.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,t.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),pn=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?r.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?r.promote():r.relegate()||I.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),as.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=t;pn=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function qo(e){const[t,n]=Sh(),s=v.useContext(dr);return w.jsx(md,{...e,layoutGroup:s,switchLayoutGroup:v.useContext(Ho),isPresent:t,safeToRemove:n})}const gd={pan:{Feature:pd},drag:{Feature:fd,ProjectionNode:_o,MeasureLayout:qo}};function Qi(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&I.postRender(()=>o(t,he(t)))}class yd extends xt{mount(){const{current:t}=this.node;t&&(this.unmount=Gc(t,(n,s)=>(Qi(this.node,s,"Start"),i=>Qi(this.node,i,"End"))))}unmount(){}}class vd extends xt{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(ae(this.node.current,"focus",()=>this.onFocus()),ae(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ji(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&I.postRender(()=>o(t,he(t)))}class xd extends xt{mount(){const{current:t}=this.node;if(!t)return;
7const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Jc(t,(i,o)=>(Ji(this.node,o,"Start"),(r,{success:a})=>Ji(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const jn=new WeakMap,mn=new WeakMap,Td=e=>{const t=jn.get(e.target);t&&t(e)},wd=e=>{e.forEach(Td)};function Sd({root:e,...t}){const n=e||document;mn.has(n)||mn.set(n,{});const s=mn.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(wd,{root:e,...t})),s[i]}function bd(e,t,n){const s=Sd(t);return jn.set(e,n),s.observe(e),()=>{jn.delete(e),s.unobserve(e)}}const Pd={some:0,all:1};class Ad extends xt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=t,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Pd[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),d=c?u:h;d&&d(l)};return bd(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Cd(t,n))&&this.startObserver()}unmount(){}}function Cd({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Md={inView:{Feature:Ad},tap:{Feature:xd},focus:{Feature:vd},hover:{Feature:yd}},Ed={layout:{ProjectionNode:_o,MeasureLayout:qo}},Vd={...Qh,...Md,...gd,...Ed},Wt=Gh(Vd,Yh);function tr(e){const t=fr(()=>Et(e)),{isStatic:n}=v.useContext(ms);if(n){const[,s]=v.useState(e);v.useEffect(()=>t.on("change",s),[])}return t}function Dd(){!ds.current&&po();const[e]=v.useState(Be.current);return e}const Rd="/assets/ai_box-D2Tnh36J.webp",Z={Parse:"parse",Match:"match",Compare:"compare",Dao:"dao"},At={Idle:"idle",Processing:"processing",Ready:"ready"},ht={Idle:"idle",Parsing:"parsing",Review:"review",Matching:"matching",Ready:"ready",Partial:"partial",Comparing:"comparing",Complete:"complete",Navigating:"navigating"},Te={Input:"input",Review:"review",Candidates:"candidates",Compare:"compare"},at={Spot:"SPOT",Proposal:"PROPOSAL"},we={Spot:"SPOT",Futures:"FUTURES",Proposal:"PROPOSAL",Peers:"PEERS"},mf=[{value:we.Spot,labelKey:"ai.match.type.spot"},{value:we.Proposal,labelKey:"ai.match.type.proposal"},{value:we.Futures,labelKey:"ai.match.type.futures",disabled:!0},{value:we.Peers,labelKey:"ai.match.type.peers",disabled:!0}],_n={Spot:"ERP_SPOT",Proposal:"PROPOSAL"},Ve={LandedPrice:"LANDED_PRICE",LeadTime:"LEAD_TIME",MaterialSize:"MATERIAL_SIZE",Certificates:"CERTIFICATES",Sla:"SLA",Governance:"GOVERNANCE"},gf=Object.values(Ve),er=[Ve.LandedPrice,Ve.LeadTime,Ve.MaterialSize],Ne={BestMatch:"bestMatch",LowestPrice:"lowestPrice",FastestDelivery:"fastestDelivery"},Id=["category","budget","color","delivery","fulfillment","assembly"],Ld=["VIEW","REVIEW","COMPARE","BUY"],kd=20,Bd=20,Zo=2,gn="holo-ai-guest-prompt",Fd=!1;function jd(e){const t=Ue.c(5);let n;t[0]!==e?(n=()=>typeof window>"u"?!1:window.matchMedia(e).matches,t[0]=e,t[1]=n):n=t[1];const[s,i]=v.useState(n);let o,r;return t[2]!==e?(o=()=>{const a=window.matchMedia(e),l=()=>i(a.matches);return l(),a.addEventListener("change",l),()=>a.removeEventListener("change",l)},r=[e],t[2]=e,t[3]=o,t[4]=r):(o=t[3],r=t[4]),v.useEffect(o,r),s}const kt={parse:e=>Rt.post(It.aiHub.parse,e),reparse:e=>Rt.post(It.aiHub.reparse,e),match:e=>Rt.post(It.aiHub.match,e),similar:e=>Rt.post(It.aiHub.similar,e),scan:e=>Rt.post(It.aiHub.scan,e),buildCompare:e=>Rt.post(It.aiHub.compareBuild,e)},_d=e=>{var t,n;return[...((t=e.groupedByType)==null?void 0:t.SPOT)??[],...((n=e.groupedByType)==null?void 0:n.PROPOSAL)??[]].filter(s=>s.type===at.Spot||s.type===at.Proposal)},Od=({isProcessing:e,hasActiveWorkflow:t})=>e?At.Processing:t?At.Ready:At.Idle,Nd=({wasProcessing:e,isProcessing:t,hasActiveWorkflow:n,isAssistantOpen:s})=>e&&!t&&n&&!s,nr=(e,t,n,s)=>{const i=Math.max(0,t-n),o=Math.min(Math.max(0,s),i/2);return Math.min(Math.max(e,o),i-o)},sr=(e,{width:t,height:n,bubbleSize:s=64,margin:i=12})=>({x:nr(e.x,t,s,i),y:nr(e.y,n,s,i)}),ir=e=>{const t=new Map(e.map(s=>[s.key,String(s.value??"").trim()])),n=Id.flatMap(s=>{const i=t.get(s);if(!i)return[];if(s==="budget"){const o=Number(i.replace(/[$,]/g,""));return Number.isFinite(o)?[[s,o]]:[]}return[[s,i]]});return Object.fromEntries(n)},Se=e=>e==null||!Number.isFinite(e)?Number.POSITIVE_INFINITY:e,yf=(e,t)=>
7[...e].sort((n,s)=>t===Ne.LowestPrice?Se(n.landedPrice)-Se(s.landedPrice):t===Ne.FastestDelivery?Se(n.leadTime)-Se(s.leadTime):(s.matchRate??0)-(n.matchRate??0)),Qo=e=>{if(e===at.Spot)return _n.Spot;if(e===at.Proposal)return _n.Proposal},rr=e=>`${e.type}:${e.id}`,Ud=e=>{const t=Qo(e.type);if(t)return{id:String(e.type===at.Proposal?e.proposalId??e.id:e.id),type:t}},Wd=e=>{const t=Qo(e.type);return t?{id:String(e.proposalId),type:t}:void 0},vf=(e,t,n)=>{const s=`${e.type}:${e.id}`,i=t.find(r=>{const a=Ud(r);return a?rr(a)===s:!1});if(i)return{proposalId:i.proposalId??i.id,actions:ar(i.actions).filter(r=>r!=="COMPARE")};const o=n.find(r=>{const a=Wd(r);return a?rr(a)===s:!1});if(o)return{proposalId:o.proposalId,actions:ar(o.actions).filter(r=>r!=="COMPARE")}},zd=e=>e.some(t=>t!=="idle"),xf=({hasIntent:e,hasStartedMatching:t,hasCompareResult:n,isEditing:s})=>n&&!s?Te.Compare:e?t&&!s?Te.Candidates:Te.Review:Te.Input,Tf=({hasIntent:e,isParsing:t,hasStartedMatching:n,isMatching:s,hasMatchingError:i,isComparing:o,hasCompareResult:r,isNavigating:a})=>a?ht.Navigating:t?ht.Parsing:o?ht.Comparing:r?ht.Complete:s?ht.Matching:n?i?ht.Partial:ht.Ready:e?ht.Review:ht.Idle,or=(e,t)=>e.some(n=>n.id===t.id&&n.type===t.type)?[...e]:[...e,t],Kd=e=>e.length>=Zo,Hd=(e,t)=>e.filter(n=>n.id!==t.id||n.type!==t.type),$d=e=>{const t=e.filter(n=>n.type===at.Spot).sort((n,s)=>(s.matchRate??0)-(n.matchRate??0))[0];return t?[{id:String(t.id),type:_n.Spot}]:[]},ar=e=>(e??[]).filter(t=>Ld.includes(t)),Gd=v.lazy(()=>Va(()=>import("./ai-workspace-CF8q3fVt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29])).then(e=>({default:e.AiWorkspace}))),Yd=[{key:"demandParsing",dot:"bg-primary",ring:"ring-primary/30"},{key:"holoPicks",dot:"bg-warning",ring:"ring-warning/30"},{key:"daoPeers",dot:"bg-destructive",ring:"ring-destructive/30"}],Xd=["ai.prompt.sofa","ai.prompt.bottle"],qd=420,Zd="(max-width: 639px)",Qd=60,Jd=52,tf=12,ef=16,nf=24,sf=16;function lr(e){const t=Ue.c(23),{status:n,readySignal:s,reduceMotion:i,edgeHidden:o}=e,r=o===void 0?!1:o;let a;t[0]!==i||t[1]!==n?(a=n===At.Processing&&!i?{opacity:[.94,1,.94],scale:[.99,1.015,.99]}:void 0,t[0]=i,t[1]=n,t[2]=a):a=t[2];let l,c,u;t[3]===Symbol.for("react.memo_cache_sentinel")?(l={duration:1.6,ease:"easeInOut",repeat:Number.POSITIVE_INFINITY},c=w.jsx("span",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_at_58%_94%,rgba(153,112,255,.34)_0%,transparent_54%)]"}),u=w.jsx("span",{className:"-rotate-[18deg] pointer-events-none absolute top-[9%] left-[15%] h-[25%] w-[44%] rounded-[50%] bg-[linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,.04))] blur-[1px]"}),t[3]=l,t[4]=c,t[5]=u):(l=t[3],c=t[4],u=t[5]);let h;t[6]!==i||t[7]!==n?(h=n===At.Processing&&w.jsx(Wt.span,{className:"pointer-events-none absolute inset-[3px] z-10 rounded-full border-2 border-transparent border-t-cyan-100/90 border-r-cyan-300/45 shadow-[inset_0_0_8px_rgba(103,232,249,.16)]",animate:i?void 0:{rotate:360},transition:{duration:1.8,ease:"linear",repeat:Number.POSITIVE_INFINITY},"aria-hidden":!0}),t[6]=i,t[7]=n,t[8]=h):h=t[8];let d;t[9]!==r||t[10]!==s||t[11]!==i||t[12]!==n?(d=n===At.Ready&&s>0&&!i&&w.jsx(Wt.span,{className:De("pointer-events-none absolute top-[7px] z-30 size-[10px] rounded-full bg-emerald-300/45",r?"left-[7px]":"right-[7px]"),initial:{opacity:.8,scale:.6},animate:{opacity:0,scale:2.4},transition:{duration:.6,ease:"easeOut"},"aria-hidden":!0},s),t[9]=r,t[10]=s,t[11]=i,t[12]=n,t[13]=d):d=t[13];let f;t[14]!==r||t[15]!==n?(f=n===At.Ready&&w.jsx("span",{className:De("pointer-events-none absolute top-[7px] z-30 size-[10px] rounded-full bg-emerald-300 shadow-[0_0_9px_rgba(110,231,183,.9)]",r?"left-[7px]":"right-[7px]"),"aria-hidden":!0}),t[14]=r,t[15]=n,t[16]=f):f=t[16];let p;t[17]===Symbol.for("react.memo_cache_sentinel")?(p=w.jsx(Ia,{className:"relative z-20 size-[28px] drop-shadow-[0_4px_4px_rgba(11,7,48,.55)] sm:size-[32px]"}),t[17]=p):p=t[17];let y;return t[18]!==a||t[19]!==h||t[20]!==d||t[21]!==f?(y=w.jsxs(Wt.span,{"data-ai-sphere":!0,className:"relative flex size-full items-center justify-center overflow-hidden rounded-full bg-[radial-gradient(circle_at_28%_20%,rgba(255,255,255,.5)_0%,rgba(209,216,255,.18)_18%,transparent_36%),radial-gradient(circle_at_50%_42%,rgba(104,101,198,.55)_0%,rgba(70,62,151,.68)_55%,rgba(37,30,103,.84)_78%,rgba(13,15,55,.94)_100%),linear-gradient(145deg,rgba(111,123,210,.64)_0%,rgba(72,66,164,.72)_48%,rgba(48,37,123,.88)_100%)] shadow-[0_14px_30px_rgba(0,2,24,.72),inset_8px_8px_14px_rgba(204,212,255,.12),inset_-10px_-12px_18px_rgba(15,8,60,.48)] backdrop-blur-[10px]",animate:a,transition:l,children:[c,u,h,d,f,p]}),t[18]=a,t[19]=h,t[20]=d,t[21]=f,t[22]=y):y=t[22],y}function cr(e){const t=Ue.c(27),{sheet:n,onHide:s,onClose:i}=e,o=n===void 0?!1:n,{t:r}=On();let a;t[0]!==o?(a=o&&w.jsx("div",{className:"mx-auto mt-2 h-1 w-10 rounded-full bg-white/25"}),t[0]=o,t[1]=a):a=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=w.jsx("img",{src:Rd,alt:"",className:"size-7 rounded-full"}),t[2]=l):l=t[2];let c;t[3]!==o||t[4]!==r?(c=w.jsxs("div",{className:"flex items-center gap-2",children:[l,o?w.jsx(ur,{children:r("ai.title")}):w.jsx("span",{className:"font-semibold text-foreground",children:r("ai.title")})]}),t[3]=o,t[4]=r,t[5]=c):c=t[5];let u;t[6]!==r?(u=r("ai.hide"),t[6]=r,t[7]=u):u=t[7];let h;t[8]===Symbol.for("react.memo_cache_sentinel")?(h=w.jsx(_a,{}),t[8]=h):h=t[8];let d;t[9]!==s||t[10]!==u?(d=w.jsx(Ct,{variant:"ghost",size:"icon-sm","aria-label":u,onClick:s,children:h}),t[9]=s,t[10]=u,t[11]=d):d=t[11];let f;t[12]!==r?(f=r("common.close"),t[12]=r,t[13]=f):f=t[13];let p;t[14]===Symbol.for("react.memo_cache_sentinel")?(p=w.jsx(hr,{}),t[14]=p):p=t[14];let y;t[15]!==i||t[16]!==f?(y=w.jsx(Ct,{variant:"ghost",size:"icon-sm","aria-label":f,onClick:i,children:p}),t[15]=i,t[16]=f,t[17]=y):y=t[17];let g;t[18]!==y||t[19]!==d?(g=w.jsxs("div",{className:"flex gap-1",children:[d,y]}),t[18]=y,t[19]=d,t[20]=g):g=t[20];let m;t[21]!==g||t[22]!==c?(m=w.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-3.5 sm:px-4",children:[c,g]}),t[21]=g,t[22]=c,t[23]=m):m=t[23];let T;return t[24]!==m||t[25]!==a?(T=w.jsxs("div",{className:"shrink-0",children:[a,m]}),t[24]=m,t[25]=a,t[26]=T):T=t[26],T}function rf(e){const t=Ue.c(63),{prompt:n,isAuthed:s,isLoading:i,sheet:o,onPromptChange:r,onStart:a}=e,l=o===void 0?!1:o,{t:c}=On();let u;t[0]!==n?(u=n.trim(),t[0]=n,t[1]=u):u=t[1];const h=!u;let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d=w.jsx(Na,{}),t[2]=d):d=t[2];let f;t[3]!==s||t[4]!==c?(f=c(s?"ai.analyze":"ai.loginFirst"),t[3]=s,t[4]=c,t[5]=f):f=t[5];let p;t[6]!==i||t[7]!==a||t[8]!==h||t[9]!==f?(p=w.jsxs(Ct,{className:"w-full",isLoading:i,disabled:h,onClick:a,children:[d,f]}),t[6]=i,t[7]=a,t[8]=h,t[9]=f,t[10]=p):p=t[10];const y=p;let g;t[11]!==c?(g=c("ai.welcomeBack"),t[11]=c,t[12]=g):g=t[12];let m;t[13]!==g?(m=w.jsx("p",{className:"text-muted-foreground text-sm",children:g}),t[13]=g,t[14]=m):m=t[14];let T;t[15]!==c?(T=c("ai.headline"),t[15]=c,t[16]=T):T=t[16];let x;t[17]!==T?(x=w.jsx("h2",{className:"bg-[linear-gradient(90deg,#9FC1F4_0%,#D7D2FF_100%)] bg-clip-text font-bold text-2xl text-transparent",children:T}),t[17]=T,t[18]=x):x=t[18];let A;t[19]!==c?(A=c("ai.subhead"),t[19]=c,t[20]=A):A=t[20];let S;t[21]!==A?(S=w.jsx("p",{className:"text-muted-foreground text-sm",children:A}),t[21]=A,t[22]=S):S=t[22];let E;t[23]!==x||t[24]!==S||t[25]!==m?(E=w.jsxs("div",{className:"space-y-1 text-center",children:[m,x,S]}),t[23]=x,t[24]=S,t[25]=m,t[26]=E):E=t[26];let V;t[27]!==c?(V=Yd.map(Y=>w.jsx(Ma,{glow:!0,className:"py-2",children:w.jsxs(Ea,{className:"space-y-2 px-4 py-2 lg:px-4",children:[w.jsx("span",{className:`mb-3 block size-2.5 rounded-full ring-4 ${Y.dot} ${Y.ring}`}),w.jsx("h3",{className:"font-semibold text-sm",children:c(`ai.feature.${Y.key}.title`)}),w.jsx("p",{className:"text-muted-foreground text-xs",children:c(`ai.feature.${Y.key}.desc`)})]})},Y.key)),t[27]=c,t[28]=V):V=t[28];let C;t[29]!==V?(C=w.jsx("div",{className:"grid grid-cols-2 gap-3",children:V}),t[29]=V,t[30]=C):C=t[30];let D;t[31]!==c?(D=c("ai.quickPrompts"),t[31]=c,t[32]=D):D=t[32];let R;t[33]!==D?(R=w.jsx("p",{className:"font-medium text-sm",children:D}),t[33]=D,t[34]=R):R=t[34];let j;t[35]!==r||t[36]!==c?(j=Xd.map(Y=>w.jsx(Ct,{size:"sm",variant:"outline",className:"h-auto min-h-9 shrink-0 whitespace-nowrap rounded-full py-2 text-[11px]",onClick:()=>r(c(Y)),children:c(Y)},Y)),t[35]=r,t[36]=c,t[37]=j):j=t[37];let J;t[38]!==j?(J=w.jsx("div",{className:"flex gap-2 overflow-x-auto pb-1",children:j}),t[38]=j,t[39]=J):J=t[39];let H;t[40]!==R||t[41]!==J?(H=w.jsxs("div",{className:"space-y-2",children:[R,J]}
7),t[40]=R,t[41]=J,t[42]=H):H=t[42];let Q;t[43]!==c?(Q=c("ai.typePlaceholder"),t[43]=c,t[44]=Q):Q=t[44];let tt;t[45]!==r?(tt=Y=>r(Y.target.value),t[45]=r,t[46]=tt):tt=t[46];let G;t[47]!==n||t[48]!==Q||t[49]!==tt?(G=w.jsx(Fa,{value:n,rows:4,placeholder:Q,onChange:tt}),t[47]=n,t[48]=Q,t[49]=tt,t[50]=G):G=t[50];const k=!l&&y;let L;t[51]!==E||t[52]!==C||t[53]!==H||t[54]!==G||t[55]!==k?(L=w.jsxs("div",{className:"min-h-0 flex-1 space-y-6 overflow-y-auto overscroll-contain px-4 pb-4 sm:px-6",children:[E,C,H,G,k]}),t[51]=E,t[52]=C,t[53]=H,t[54]=G,t[55]=k,t[56]=L):L=t[56];let W;t[57]!==l||t[58]!==y?(W=l&&w.jsx("div",{className:"shrink-0 border-white/10 border-t bg-[#30276f]/95 px-4 pt-3 pb-[calc(1rem+env(safe-area-inset-bottom))] backdrop-blur-xl",children:y}),t[57]=l,t[58]=y,t[59]=W):W=t[59];let z;return t[60]!==L||t[61]!==W?(z=w.jsxs(w.Fragment,{children:[L,W]}),t[60]=L,t[61]=W,t[62]=z):z=t[62],z}function of(){const{t:e,i18n:t}=On(),n=ba(),s=Pa(),i=Aa(),o=Dd(),r=jd(Zd),a=Ca(P=>P.isAuthed),l=v.useRef(0),c=v.useRef(!1),u=v.useRef(!1),h=v.useRef(Z.Parse),d=v.useRef(!1),f=tr(0),p=tr(0),[y,g]=v.useState(!1),[m,T]=v.useState(!1),[x,A]=v.useState(!1),[S,E]=v.useState(""),[V,C]=v.useState(""),[D,R]=v.useState(Z.Parse),[j,J]=v.useState(null),[H,Q]=v.useState([]),[tt,G]=v.useState([]),[k,L]=v.useState(!1),[W,z]=v.useState(!1),[Y,vs]=v.useState([]),[Jo,xs]=v.useState([]),[ta,ea]=v.useState(null),[He,de]=v.useState("idle"),[$e,fe]=v.useState("idle"),[na,sa]=v.useState("idle"),[Ge,Ye]=v.useState([]),[Ts,ws]=v.useState(er),[Ss,$t]=v.useState(null),[ia,bs]=v.useState(at.Spot),[ra,Ps]=v.useState(Ne.BestMatch),[As,oa]=v.useState(0),[Gt,aa]=v.useState({width:0,height:0}),Tt=r?Jd:Qd,ut=r?ef:tf,Xe=r?sf:nf,la={left:ut,top:ut,right:Math.max(ut,Gt.width-Tt-ut),bottom:Math.max(ut,Gt.height-Tt-ut)},Yt=Lt({mutationFn:kt.parse}),Xt=Lt({mutationFn:kt.reparse}),Cs=Lt({mutationFn:kt.match}),Ms=Lt({mutationFn:kt.similar}),ca=Lt({mutationFn:kt.scan}),qt=Lt({mutationFn:kt.buildCompare});v.useEffect(()=>{if(!a)return;const P=sessionStorage.getItem(gn);P&&(E(P),sessionStorage.removeItem(gn))},[a]),v.useEffect(()=>{var O;let P=0;const M=()=>{window.cancelAnimationFrame(P),P=window.requestAnimationFrame(()=>{var ks,Bs;const B={width:((ks=window.visualViewport)==null?void 0:ks.width)??window.innerWidth,height:((Bs=window.visualViewport)==null?void 0:Bs.height)??window.innerHeight};aa(Ze=>Ze.width===B.width&&Ze.height===B.height?Ze:B);const ft=u.current,Vt=ft?{x:f.get(),y:p.get()}:{x:B.width-Tt-Xe,y:B.height-Tt-Xe},Dt=sr(Vt,{...B,bubbleSize:Tt,margin:ut});(!ft||Dt.x!==Vt.x)&&f.set(Dt.x),(!ft||Dt.y!==Vt.y)&&p.set(Dt.y),u.current=!0})};return M(),window.addEventListener("resize",M),window.addEventListener("orientationchange",M),(O=window.visualViewport)==null||O.addEventListener("resize",M),()=>{var B;window.cancelAnimationFrame(P),window.removeEventListener("resize",M),window.removeEventListener("orientationchange",M),(B=window.visualViewport)==null||B.removeEventListener("resize",M)}},[Xe,ut,Tt,f,p]);const qe=()=>{l.current+=1,vs([]),xs([]),ea(null),de("idle"),fe("idle"),sa("idle"),Ye([]),$t(null),Cs.reset(),Ms.reset(),ca.reset(),qt.reset()},ua=(P,M)=>{const O=P.filters??[];J(P),E(M),C(M),Q(O),G(O),L(!1),z(!1),qe(),R(Z.Parse)},Es=async()=>{const P=S.trim();if(!P)return;const M=l.current;R(Z.Parse);try{const O=j?await Xt.mutateAsync({intentId:j.intentId,text:P}):await Yt.mutateAsync({text:P,locale:Ra(t.resolvedLanguage)});return M!==l.current?!1:(ua(O,P),!0)}catch{return!1}},ha=async()=>{if(S.trim()){if(!a){sessionStorage.setItem(gn,S),i();return}T(!1),A(!0),await Es()}},Vs=async(P=H)=>{if(!j)return;const M=l.current,O=ir(P);de("loading");let B;try{B=await Cs.mutateAsync({filter:O,types:[at.Spot,at.Proposal],limit:kd})}catch{M===l.current&&de("error");return}if(M!==l.current)return;const ft=_d(B);vs(ft),de("success");const[Vt]=$d(ft);Vt&&Ye(Dt=>or(Dt,Vt))},Ds=async(P=H)=>{const M=l.current,O=ir(P);fe("loading");try{const B=await Ms.mutateAsync({filter:O.category?{category:O.category}:{},limit:Bd});if(M!==l.current)return;xs(B),fe("success")}catch{M===l.current&&fe("error")}},da=async(P=H)=>{},fa=async()=>
7{if(!j)return;const P=W?tt:H;Q(P),G(P),z(!1),qe(),R(Z.Match);const M=[Vs(P),Ds(P)];await Promise.allSettled(M)},pa=P=>{Ye(M=>M.some(B=>B.id===P.id&&B.type===P.type)?Hd(M,P):or(M,P)),$t(null)},ma=P=>{ws(M=>M.includes(P)?M.length===1?(Os.info(e("ai.compare.minFields")),M):M.filter(O=>O!==P):[...M,P]),$t(null)},ga=async()=>{if(!j)return;if(!Kd(Ge)){Os.info(e("ai.compare.minItems",{min:Zo}));return}const P=l.current;R(Z.Compare);try{const M=await qt.mutateAsync({intentId:j.intentId,selected:Ge,fields:Ts});if(P!==l.current)return;$t(M)}catch{}},Rs=async(P,M)=>{h.current=D,R(Z.Dao);const[O]=await Promise.all([P,new Promise(B=>window.setTimeout(B,o?0:qd))]);A(!1),R(h.current),n(O,M?{state:M}:void 0)},ya=(P,M)=>{const O=P==="BUY"?"purchase":"view";Rs(ja({proposalId:M.proposalId,action:O},B=>s.ensureQueryData(La.govern.projectDetail(B))))},va=()=>{Rs(Da.DEMAND_CREATE,{aiDescription:(V||S).trim()})},xa=()=>{E(""),C(""),J(null),Q([]),G([]),L(!1),z(!1),ws(er),bs(at.Spot),Ps(Ne.BestMatch),qe(),Yt.reset(),Xt.reset(),R(Z.Parse)},pe=D===Z.Parse&&(Yt.isPending||Xt.isPending)||D===Z.Match&&(He==="loading"||$e==="loading"||Fd)||D===Z.Compare&&qt.isPending||D===Z.Dao,me=j!==null,Ta=zd([He,$e]),wa=!(k||W)&&(Ta||qt.isPending||Ss!==null||D===Z.Dao),ge=Od({isProcessing:pe,hasActiveWorkflow:me});v.useEffect(()=>{const P=d.current;d.current=pe,Nd({wasProcessing:P,isProcessing:pe,hasActiveWorkflow:me,isAssistantOpen:m||x})&&oa(M=>M+1)},[me,m,x,pe]);const Is=P=>w.jsx(rf,{prompt:S,isAuthed:a,isLoading:Yt.isPending||Xt.isPending,sheet:P,onPromptChange:E,onStart:()=>void ha()}),Ls=()=>w.jsx(v.Suspense,{fallback:null,children:w.jsx(Gd,{promptDraft:S,committedPrompt:V,stage:D,intent:j,filters:H,filterDrafts:tt,isPromptEditing:k,isFilterEditing:W,parseLoading:Yt.isPending||Xt.isPending,matchStatus:He,similarStatus:$e,scanStatus:na,matches:Y,similar:Jo,scan:ta,selections:Ge,compareFields:Ts,compareResult:Ss,compareLoading:qt.isPending,matchType:ia,matchSort:ra,onPromptDraftChange:E,onStartPromptEdit:()=>{E(V),L(!0),z(!1)},onCancelPromptEdit:()=>{E(V),L(!1)},onParsePrompt:()=>void Es(),onStartFilterEdit:()=>{G(H),z(!0),L(!1)},onCancelFilterEdit:()=>{G(H),z(!1)},onFilterDraftChange:(P,M)=>{G(O=>O.map((B,ft)=>ft===P?{...B,value:M}:B))},onAddMissingFilter:P=>{G(M=>[...M,{key:P,label:e(`ai.filter.${P}`),value:"",type:"string",confidence:1}])},onStartMatch:()=>void fa(),onRetryMatch:()=>void Vs(),onRetrySimilar:()=>void Ds(),onRetryScan:()=>void da(),onToggleSelection:pa,onToggleCompareField:ma,onBuildCompare:()=>void ga(),onBackToMatches:()=>{$t(null),R(Z.Match)},onAction:ya,onCreateDemand:va,onResetSearch:xa,onMatchTypeChange:bs,onMatchSortChange:Ps})});return y?w.jsx(Wt.div,{initial:o?!1:{opacity:0},animate:{opacity:1},style:{y:p},className:"fixed top-0 right-0 z-50",children:w.jsx("div",{className:De("translate-x-1/2",o?"transition-none":"transition-transform duration-200 sm:hover:translate-x-0 sm:focus-within:translate-x-0"),children:w.jsx(Ct,{variant:"ghost","aria-label":e("ai.restore"),"data-ai-status":ge,className:"relative size-[52px] overflow-visible rounded-full bg-transparent p-0 shadow-none hover:bg-transparent focus-visible:brightness-125 focus-visible:drop-shadow-[0_0_8px_rgba(165,180,252,.8)] sm:size-[60px]",onClick:()=>{const P=sr({x:Gt.width,y:p.get()},{...Gt,bubbleSize:Tt,margin:ut});f.set(P.x),p.set(P.y),g(!1)},children:w.jsx(lr,{status:ge,readySignal:As,reduceMotion:!!o,edgeHidden:!0})})})}):w.jsxs(w.Fragment,{children:[Gt.width>0&&!m&&!x&&w.jsx("div",{className:"pointer-events-none fixed inset-0 z-50",children:w.jsx(Wt.div,{drag:!0,dragConstraints:la,dragElastic:!1,dragMomentum:!1,style:{x:f,y:p},onDragStart:()=>{c.current=!0},onDragEnd:()=>{window.setTimeout(()=>{c.current=!1},0)},whileHover:o||r?void 0:{scale:1.03,rotateX:-3,rotateY:4},whileTap:{scale:.97},className:"pointer-events-auto absolute top-0 left-0 cursor-grab touch-none active:cursor-grabbing",children:w.jsx(Ct,{variant:"ghost","aria-label":e("ai.assistantLabel"),"data-ai-status":ge,className:"relative size-[52px] overflow-visible rounded-full bg-transparent p-0 shadow-none hover:bg-transparent focus-visible:brightness-125 focus-visible:drop-shadow-[0_0_8px_rgba(165,180,252,.8)] sm:size-[60px]",onClick:()=>
7{if(!c.current){if(me){A(!0);return}T(!0)}},onContextMenu:P=>{P.preventDefault(),g(!0)},children:w.jsx(lr,{status:ge,readySignal:As,reduceMotion:!!o})})})}),r?w.jsx(Fs,{open:m,onOpenChange:T,children:w.jsxs(js,{side:"bottom",showCloseButton:!1,overlayClassName:"bg-[#02051a]/70 backdrop-blur-sm",backgroundClassName:"bg-[linear-gradient(180deg,#41449A_0%,#30256B_100%)]",className:"max-h-[88dvh] gap-0 overflow-hidden rounded-t-[28px] border-white/15 border-x border-t p-0 shadow-[0_-20px_60px_rgba(4,8,40,.65)]",children:[w.jsx(cr,{sheet:!0,onHide:()=>{T(!1),g(!0)},onClose:()=>T(!1)}),w.jsx(_s,{className:"sr-only",children:e("ai.subhead")}),Is(!0)]})}):m&&w.jsxs(Wt.div,{initial:o?{opacity:0}:{opacity:0,y:20,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:12,scale:.98},className:"card-glow fixed right-4 bottom-4 z-50 flex max-h-[calc(100dvh-3rem)] w-[400px] max-w-[calc(100vw-2rem)] flex-col overflow-hidden rounded-2xl border border-white/10 bg-[linear-gradient(0deg,#3A2D7B_0%,#3E4097_100%)] shadow-2xl sm:right-6 sm:bottom-6",children:[w.jsx(cr,{onHide:()=>{T(!1),g(!0)},onClose:()=>T(!1)}),Is(!1)]}),r?w.jsx(Fs,{open:x,onOpenChange:A,children:w.jsxs(js,{side:"bottom",showCloseButton:!1,overlayClassName:"bg-[#02051a]/75 backdrop-blur-sm",backgroundClassName:"bg-[linear-gradient(180deg,#3D4093_0%,#30256B_100%)]",className:"h-[96dvh] gap-0 overflow-hidden rounded-t-[28px] border-white/15 border-x border-t p-0 shadow-[0_-24px_70px_rgba(4,8,40,.7)]",children:[w.jsxs("div",{className:"shrink-0",children:[w.jsx("div",{className:"mx-auto mt-2 h-1 w-10 rounded-full bg-white/25"}),w.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3",children:[w.jsx(ur,{children:e("ai.workspaceTitle")}),w.jsx(Ct,{variant:"ghost",size:"icon-sm","aria-label":e("common.close"),onClick:()=>A(!1),children:w.jsx(hr,{})})]})]}),w.jsx(_s,{className:"sr-only",children:e("ai.progressLabel")}),w.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain px-4 pb-[max(1rem,env(safe-area-inset-bottom))]",children:Ls()})]})}):w.jsx(ka,{open:x,onOpenChange:A,children:w.jsx(Ba,{title:e("ai.workspaceTitle"),className:De("max-h-[92vh] w-full max-w-[calc(100vw-1rem)] rounded-2xl bg-[linear-gradient(0deg,#30256B_0%,#393B8E_100%)] p-4 sm:max-w-[min(960px,calc(100vw-2rem))] sm:p-6 lg:max-w-[min(1200px,calc(100vw-3rem))] xl:max-w-[min(1400px,calc(100vw-3rem))] 2xl:max-w-[1600px]",!o&&"transition-[height] duration-300",wa&&"h-[92vh]"),children:Ls()})})]})}const wf=Object.freeze(Object.defineProperty({__proto__:null,AiAssistant:of},Symbol.toStringTag,{value:"Module"}));export{ht as A,Na as S,Fd as a,Tf as b,Z as c,Te as d,at as e,Ud as f,Wd as g,zd as h,rr as i,mf as j,Kd as k,gf as l,Wt as m,Id as n,ar as o,Ne as p,vf as q,xf as r,yf as s,wf as t,Dd 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.