PageSourceSearch

https://liquidbounce.net/assets/overview-DH18hU8j.js

js liquidbounce.net collected 2026-09-24 09:47:52 UTC 167,632 bytes, 11 lines download raw bytes

1import{w as Ha}from"./with-props-CFCTPvbg.js";import{r as b,j as d,m as Xa,L as Tt,u as Ya,l as Za,k as Qa}from"./chunk-D4RADZKF-BJ5MSu0N.js";import{u as Ct}from"./useTranslation-D-n3_fv4.js";import{C as Ce,b as jt,a as je,I as Ja}from"./Card-tuhV4Y2j.js";import{H as ke,T as W}from"./Typography-B3TOvgoz.js";import{T as Q}from"./Trans-DQJ0ZI7r.js";import{B as oe}from"./Button-DCPtXYp_.js";import{C as el}from"./chevron-up-WMz9sGrz.js";import{C as io}from"./chevron-down-CgsgdpxS.js";import{C as tl}from"./calendar-B6pzMQzP.js";import{D as Nt}from"./download-DpsrqEQb.js";import{c as Hn}from"./compareAsc-D_JVxYGq.js";import{t as Ne,c as Xn}from"./getTimezoneOffsetInMilliseconds-BcGZcdus.js";import{d as sl}from"./differenceInMonths-BXgzdgGV.js";import{d as nl}from"./differenceInCalendarDays-CXi0v9iC.js";import{A as ro}from"./AdComponent-S43nBNuO.js";import{c as oo,X as ao}from"./x-BVQjsxq4.js";import{E as lo}from"./external-link-LRroxGdg.js";import{S as il}from"./Separator-B0pOxAD-.js";import{S as rl}from"./shield-check-Dw0z1Odc.js";import{a as ol,b as al,c as ll,d as cl,e as ul}from"./index-DNY3qVhx.js";import{c as ee}from"./utils-CytzSlOG.js";import{b as hl,c as Yn}from"./Page-CnYu7IZl.js";import{S as dl}from"./search-Cwj4ySo3.js";import{I as fl}from"./Input-9cl-yLVs.js";import"./context-DGjhNc_M.js";import"./index-CyLcmhXl.js";import"./index-BmJsZb7I.js";import"./index-Dkbv98jg.js";import"./iconBase-DEr7XFbm.js";function ml(e,t){const s=Ne(e);if(isNaN(t))return Xn(e,NaN);if(!t)return s;const n=s.getDate(),i=Xn(e,s.getTime());i.setMonth(s.getMonth()+t+1,0);const c=i.getDate();return n>=c?i:(s.setFullYear(i.getFullYear(),i.getMonth(),n),s)}function pl(e,t){const s=Ne(e),n=Ne(t);return s.getFullYear()-n.getFullYear()}function gl(e,t){const s=Ne(e),n=Ne(t),i=Zn(s,n),c=Math.abs(nl(s,n));s.setDate(s.getDate()-i*c);const r=+(Zn(s,n)===-i),l=i*(c-r);return l===0?0:l}function Zn(e,t){const s=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return s<0?-1:s>0?1:s}function yl(e,t){const s=Ne(e),n=Ne(t),i=Hn(s,n),c=Math.abs(pl(s,n));s.setFullYear(1584),n.setFullYear(1584);const r=Hn(s,n)===-i,l=i*(c-+r);return l===0?0:l}/**
2 * @license lucide-react v0.368.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const co=oo("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
7 * @license lucide-react v0.368.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const Qn=oo("Loader",[["line",{x1:"12",x2:"12",y1:"2",y2:"6",key:"gza1u7"}],["line",{x1:"12",x2:"12",y1:"18",y2:"22",key:"1qhbu9"}],["line",{x1:"4.93",x2:"7.76",y1:"4.93",y2:"7.76",key:"xae44r"}],["line",{x1:"16.24",x2:"19.07",y1:"16.24",y2:"19.07",key:"bxnmvf"}],["line",{x1:"2",x2:"6",y1:"12",y2:"12",key:"89khin"}],["line",{x1:"18",x2:"22",y1:"12",y2:"12",key:"pb8tfm"}],["line",{x1:"4.93",x2:"7.76",y1:"19.07",y2:"16.24",key:"1uxjnu"}],["line",{x1:"16.24",x2:"19.07",y1:"7.76",y2:"4.93",key:"6duxfx"}]]),uo=b.forwardRef(({className:e,...t},s)=>d.jsx("div",{className:"relative w-full overflow-auto",children:d.jsx("table",{ref:s,className:ee("w-full caption-bottom text-sm",e),...t})}));uo.displayName="Table";const ho=b.forwardRef(({className:e,...t},s)=>d.jsx("thead",{ref:s,className:ee("[&_tr]:border-b",e),...t}));ho.displayName="TableHeader";const fo=b.forwardRef(({className:e,...t},s)=>d.jsx("tbody",{ref:s,className:ee("[&_tr:last-child]:border-0",e),...t}));fo.displayName="TableBody";const xl=b.forwardRef(({className:e,...t},s)=>d.jsx("tfoot",{ref:s,className:ee("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));xl.displayName="TableFooter";const gt=b.forwardRef(({className:e,...t},s)=>d.jsx("tr",{ref:s,className:ee("border-b transition-colors hover:bg-zinc-300/50 data-[state=selected]:bg-bg-zinc-300",e),...t}));gt.displayName="TableRow";const De=b.forwardRef(({className:e,...t},s)=>d.jsx("th",{ref:s,className:ee("h-12 px-4 text-left align-middle font-medium text-zinc-700 [&:has([role=checkbox])]:pr-0",e),...t}));De.displayName="TableHead";const Te=b.forwardRef(({className:e,...t},s)=>d.jsx("td",{ref:s,className:ee("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Te.displayName="TableCell";const vl=b.forwardRef(({className:e,...t},s)=>d.jsx("caption",{ref:s,className:ee("mt-4 text-sm text-zinc-700",e),...t}));vl.displayName="TableCaption";function wl({onSelect:e,buttonText:t="Download",className:s="",variant:n="default",size:i="default",showSourceOption:c=!1}){var D,C;const r=()=>{if(typeof navigator>"u")return"windows";const A=navigator.platform.toLowerCase();return A.includes("win")?"windows":A.includes("mac")?"macos":A.includes("linux")?"linux":"windows"},[l,o]=b.useState(r()),[u,a]=b.useState(!1),h=b.useRef(null),f={windows:{id:"windows",name:"Windows",icon:d.jsx(ll,{size:16})},linux:{id:"linux",name:"Linux",icon:d.jsx(al,{size:16})},macos:{id:"macos",name:"macOS",icon:d.jsx(ol,{size:16})}};c&&(f.source={id:"source",name:"Source Code",icon:d.jsx(cl,{size:16})});const m=A=>{o(A),a(!1)},g=()=>{e&&e(l)};b.useEffect(()=>{const A=V=>{h.current&&!h.current.contains(V.target)&&a(!1)};return document.addEventListener("mousedown",A),()=>{document.removeEventListener("mousedown",A)}},[]);const y=(()=>{switch(i){case"sm":return"h-8";case"lg":return"h-11";default:return"h-9"}})(),x="border border-border",P="bg-background",v="hover:bg-background-alt";return d.jsxs("div",{className:ee("relative inline-block",s),ref:h,children:[d.jsxs("div",{className:"flex text-foreground-primary",children:[d.jsxs("button",{type:"button","aria-label":"Select OS",className:ee("flex items-center justify-center cursor-pointer px-2",P,x,v,"border-r-0 rounded-l-md",y),onClick:()=>a(!u),children:[d.jsxs("span",{className:"flex items-center gap-1.5",children:[(D=f[l])==null?void 0:D.icon,d.jsx("span",{className:"sr-only",children:(C=f[l])==null?void 0:C.name})]}),d.jsx(io,{className:"ml-1 h-3.5 w-3.5 opacity-50"})]}),d.jsx("button",{type:"button",onClick:g,className:ee("flex items-center justify-center",y,x,P,v,"rounded-r-md border-l-0","cursor-pointer font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",n==="brand"?"text-white bg-blue-600 hover:bg-blue-700 dark:bg-blue-700 dark:hover:bg-blue-800 border-blue-600 dar
11k:border-blue-700":"",i==="sm"?"px-3 text-sm":i==="lg"?"px-6 text-lg":"px-4 text-sm"),children:t})]}),u&&d.jsx("div",{className:"absolute mt-1 w-52 z-50 rounded-md border border-border bg-background shadow-md ",children:d.jsx("div",{className:"p-1",children:Object.values(f).map(A=>d.jsxs("div",{className:ee("flex items-center gap-2 px-3 py-2 rounded-md cursor-pointer","hover:bg-background-alt"),onClick:()=>m(A.id),onKeyDown:V=>{(V.key==="Enter"||V.key===" ")&&m(A.id)},children:[d.jsx("span",{className:"text-foreground-primary flex items-center justify-center w-5",children:A.icon}),d.jsx("span",{className:"text-sm text-foreground-primary",children:A.name})]},A.id))})})]})}var ht={exports:{}},_t,Jn;function Lt(){if(Jn)return _t;Jn=1;const e="2.0.0",t=256,s=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,i=t-6;return _t={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:s,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},_t}var qt,ei;function Dt(){if(ei)return qt;ei=1;var e={};return qt=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...s)=>console.error("SEMVER",...s):()=>{},qt}var ti;function ot(){return ti||(ti=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=Lt(),c=Dt();t=e.exports={};const r=t.re=[],l=t.safeRe=[],o=t.src=[],u=t.safeSrc=[],a=t.t={};let h=0;const f="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",i],[f,n]],g=y=>{for(const[x,P]of m)y=y.split(`${x}*`).join(`${x}{0,${P}}`).split(`${x}+`).join(`${x}{1,${P}}`);return y},p=(y,x,P)=>{const v=g(x),D=h++;c(y,D,x),a[y]=D,o[D]=x,u[D]=v,r[D]=new RegExp(x,P?"g":void 0),l[D]=new RegExp(v,P?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),p("MAINVERSION",`(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${o[a.NONNUMERICIDENTIFIER]}|${o[a.NUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${o[a.NONNUMERICIDENTIFIER]}|${o[a.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASE",`(?:-(${o[a.PRERELEASEIDENTIFIER]}(?:\\.${o[a.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${o[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[a.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${f}+`),p("BUILD",`(?:\\+(${o[a.BUILDIDENTIFIER]}(?:\\.${o[a.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${o[a.MAINVERSION]}${o[a.PRERELEASE]}?${o[a.BUILD]}?`),p("FULL",`^${o[a.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${o[a.MAINVERSIONLOOSE]}${o[a.PRERELEASELOOSE]}?${o[a.BUILD]}?`),p("LOOSE",`^${o[a.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${o[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${o[a.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:${o[a.PRERELEASE]})?${o[a.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:${o[a.PRERELEASELOOSE]})?${o[a.BUILD]}?)?)?`),p("XRANGE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),p("COERCE",`${o[a.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",o[a.COERCEPLAIN]+`(?:${o[a.PRERELEASE]})?(?:${o[a.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",o[a.COERCE],!0),p("COERCERTLFULL",o[a.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${o[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${o[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${o[a.LONECARET]}${o[a.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${o[a.LONECARET]}
11${o[a.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${o[a.GTLT]}\\s*(${o[a.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]}|${o[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${o[a.XRANGEPLAIN]})\\s+-\\s+(${o[a.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${o[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[a.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(ht,ht.exports)),ht.exports}var Ut,si;function hn(){if(si)return Ut;si=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Ut=n=>n?typeof n!="object"?e:n:t,Ut}var Gt,ni;function mo(){if(ni)return Gt;ni=1;const e=/^[0-9]+$/,t=(n,i)=>{if(typeof n=="number"&&typeof i=="number")return n===i?0:n<i?-1:1;const c=e.test(n),r=e.test(i);return c&&r&&(n=+n,i=+i),n===i?0:c&&!r?-1:r&&!c?1:n<i?-1:1};return Gt={compareIdentifiers:t,rcompareIdentifiers:(n,i)=>t(i,n)},Gt}var zt,ii;function Z(){if(ii)return zt;ii=1;const e=Dt(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:s}=Lt(),{safeRe:n,t:i}=ot(),c=hn(),{compareIdentifiers:r}=mo();class l{constructor(u,a){if(a=c(a),u instanceof l){if(u.loose===!!a.loose&&u.includePrerelease===!!a.includePrerelease)return u;u=u.version}else if(typeof u!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",u,a),this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease;const h=u.trim().match(a.loose?n[i.LOOSE]:n[i.FULL]);if(!h)throw new TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+h[1],this.minor=+h[2],this.patch=+h[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");h[4]?this.prerelease=h[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){const m=+f;if(m>=0&&m<s)return m}return f}):this.prerelease=[],this.build=h[5]?h[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(u){if(e("SemVer.compare",this.version,this.options,u),!(u instanceof l)){if(typeof u=="string"&&u===this.version)return 0;u=new l(u,this.options)}return u.version===this.version?0:this.compareMain(u)||this.comparePre(u)}compareMain(u){return u instanceof l||(u=new l(u,this.options)),this.major<u.major?-1:this.major>u.major?1:this.minor<u.minor?-1:this.minor>u.minor?1:this.patch<u.patch?-1:this.patch>u.patch?1:0}comparePre(u){if(u instanceof l||(u=new l(u,this.options)),this.prerelease.length&&!u.prerelease.length)return-1;if(!this.prerelease.length&&u.prerelease.length)return 1;if(!this.prerelease.length&&!u.prerelease.length)return 0;let a=0;do{const h=this.prerelease[a],f=u.prerelease[a];if(e("prerelease compare",a,h,f),h===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(h===void 0)return-1;if(h===f)continue;return r(h,f)}while(++a)}compareBuild(u){u instanceof l||(u=new l(u,this.options));let a=0;do{const h=this.build[a],f=u.build[a];if(e("build compare",a,h,f),h===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(h===void 0)return-1;if(h===f)continue;return r(h,f)}while(++a)}inc(u,a,h){if(u.startsWith("pre")){if(!a&&h===!1)throw new Error("invalid increment argument: identifier is empty");if(a){const f=`-${a}`.match(this.options.loose?n[i.PRERELEASELOOSE]:n[i.PRERELEASE]);if(!f||f[1]!==a)throw new Error(`invalid identifier: ${a}`)}}switch(u){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",a,h);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",a,h);break;case"prepatch":this.prerelease.length=0,this.inc("patch",a,h),this.inc("pre",a,h);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",a,h),this.inc("pre",a,h);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const f=Number(h)?1:0;if(this.prerelease.length===0)this.prerelease=[f];else{let m=this.prerelease.length;for(;--m>=0;)typeof this.prerelease[m]=="number"&&(this.prerelease[m]++,m=-2);if(m===-1){if(a===this.prerelease.join(".")&&h===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(f)}}if(a){let m=[a,f];h===!1&&(m=[a]),r(this.prerelease[0],a)===0?isNaN(this.prerelease[1])&&(this.prerelease=m):this.prerelease=m}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return zt=l,zt}var Kt,ri;function Be(){if(ri)return Kt;ri=1;const e=Z();return Kt=(s,n,i=!1)=>
11{if(s instanceof e)return s;try{return new e(s,n)}catch(c){if(!i)return null;throw c}},Kt}var Wt,oi;function Tl(){if(oi)return Wt;oi=1;const e=Be();return Wt=(s,n)=>{const i=e(s,n);return i?i.version:null},Wt}var Ht,ai;function El(){if(ai)return Ht;ai=1;const e=Be();return Ht=(s,n)=>{const i=e(s.trim().replace(/^[=v]+/,""),n);return i?i.version:null},Ht}var Xt,li;function Sl(){if(li)return Xt;li=1;const e=Z();return Xt=(s,n,i,c,r)=>{typeof i=="string"&&(r=c,c=i,i=void 0);try{return new e(s instanceof e?s.version:s,i).inc(n,c,r).version}catch{return null}},Xt}var Yt,ci;function bl(){if(ci)return Yt;ci=1;const e=Be();return Yt=(s,n)=>{const i=e(s,null,!0),c=e(n,null,!0),r=i.compare(c);if(r===0)return null;const l=r>0,o=l?i:c,u=l?c:i,a=!!o.prerelease.length;if(!!u.prerelease.length&&!a){if(!u.patch&&!u.minor)return"major";if(u.compareMain(o)===0)return u.minor&&!u.patch?"minor":"patch"}const f=a?"pre":"";return i.major!==c.major?f+"major":i.minor!==c.minor?f+"minor":i.patch!==c.patch?f+"patch":"prerelease"},Yt}var Zt,ui;function Rl(){if(ui)return Zt;ui=1;const e=Z();return Zt=(s,n)=>new e(s,n).major,Zt}var Qt,hi;function Al(){if(hi)return Qt;hi=1;const e=Z();return Qt=(s,n)=>new e(s,n).minor,Qt}var Jt,di;function Pl(){if(di)return Jt;di=1;const e=Z();return Jt=(s,n)=>new e(s,n).patch,Jt}var es,fi;function Cl(){if(fi)return es;fi=1;const e=Be();return es=(s,n)=>{const i=e(s,n);return i&&i.prerelease.length?i.prerelease:null},es}var ts,mi;function ae(){if(mi)return ts;mi=1;const e=Z();return ts=(s,n,i)=>new e(s,i).compare(new e(n,i)),ts}var ss,pi;function jl(){if(pi)return ss;pi=1;const e=ae();return ss=(s,n,i)=>e(n,s,i),ss}var ns,gi;function Nl(){if(gi)return ns;gi=1;const e=ae();return ns=(s,n)=>e(s,n,!0),ns}var is,yi;function dn(){if(yi)return is;yi=1;const e=Z();return is=(s,n,i)=>{const c=new e(s,i),r=new e(n,i);return c.compare(r)||c.compareBuild(r)},is}var rs,xi;function Ll(){if(xi)return rs;xi=1;const e=dn();return rs=(s,n)=>s.sort((i,c)=>e(i,c,n)),rs}var os,vi;function Dl(){if(vi)return os;vi=1;const e=dn();return os=(s,n)=>s.sort((i,c)=>e(c,i,n)),os}var as,wi;function Vt(){if(wi)return as;wi=1;const e=ae();return as=(s,n,i)=>e(s,n,i)>0,as}var ls,Ti;function fn(){if(Ti)return ls;Ti=1;const e=ae();return ls=(s,n,i)=>e(s,n,i)<0,ls}var cs,Ei;function po(){if(Ei)return cs;Ei=1;const e=ae();return cs=(s,n,i)=>e(s,n,i)===0,cs}var us,Si;function go(){if(Si)return us;Si=1;const e=ae();return us=(s,n,i)=>e(s,n,i)!==0,us}var hs,bi;function mn(){if(bi)return hs;bi=1;const e=ae();return hs=(s,n,i)=>e(s,n,i)>=0,hs}var ds,Ri;function pn(){if(Ri)return ds;Ri=1;const e=ae();return ds=(s,n,i)=>e(s,n,i)<=0,ds}var fs,Ai;function yo(){if(Ai)return fs;Ai=1;const e=po(),t=go(),s=Vt(),n=mn(),i=fn(),c=pn();return fs=(l,o,u,a)=>{switch(o){case"===":return typeof l=="object"&&(l=l.version),typeof u=="object"&&(u=u.version),l===u;case"!==":return typeof l=="object"&&(l=l.version),typeof u=="object"&&(u=u.version),l!==u;case"":case"=":case"==":return e(l,u,a);case"!=":return t(l,u,a);case">":return s(l,u,a);case">=":return n(l,u,a);case"<":return i(l,u,a);case"<=":return c(l,u,a);default:throw new TypeError(`Invalid operator: ${o}`)}},fs}var ms,Pi;
11function Vl(){if(Pi)return ms;Pi=1;const e=Z(),t=Be(),{safeRe:s,t:n}=ot();return ms=(c,r)=>{if(c instanceof e)return c;if(typeof c=="number"&&(c=String(c)),typeof c!="string")return null;r=r||{};let l=null;if(!r.rtl)l=c.match(r.includePrerelease?s[n.COERCEFULL]:s[n.COERCE]);else{const m=r.includePrerelease?s[n.COERCERTLFULL]:s[n.COERCERTL];let g;for(;(g=m.exec(c))&&(!l||l.index+l[0].length!==c.length);)(!l||g.index+g[0].length!==l.index+l[0].length)&&(l=g),m.lastIndex=g.index+g[1].length+g[2].length;m.lastIndex=-1}if(l===null)return null;const o=l[2],u=l[3]||"0",a=l[4]||"0",h=r.includePrerelease&&l[5]?`-${l[5]}`:"",f=r.includePrerelease&&l[6]?`+${l[6]}`:"";return t(`${o}.${u}.${a}${h}${f}`,r)},ms}var ps,Ci;function Il(){if(Ci)return ps;Ci=1;class e{constructor(){this.max=1e3,this.map=new Map}get(s){const n=this.map.get(s);if(n!==void 0)return this.map.delete(s),this.map.set(s,n),n}delete(s){return this.map.delete(s)}set(s,n){if(!this.delete(s)&&n!==void 0){if(this.map.size>=this.max){const c=this.map.keys().next().value;this.delete(c)}this.map.set(s,n)}return this}}return ps=e,ps}var gs,ji;function le(){if(ji)return gs;ji=1;const e=/\s+/g;class t{constructor(E,N){if(N=i(N),E instanceof t)return E.loose===!!N.loose&&E.includePrerelease===!!N.includePrerelease?E:new t(E.raw,N);if(E instanceof c)return this.raw=E.value,this.set=[[E]],this.formatted=void 0,this;if(this.options=N,this.loose=!!N.loose,this.includePrerelease=!!N.includePrerelease,this.raw=E.trim().replace(e," "),this.set=this.raw.split("||").map(S=>this.parseRange(S.trim())).filter(S=>S.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const S=this.set[0];if(this.set=this.set.filter(w=>!p(w[0])),this.set.length===0)this.set=[S];else if(this.set.length>1){for(const w of this.set)if(w.length===1&&y(w[0])){this.set=[w];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let E=0;E<this.set.length;E++){E>0&&(this.formatted+="||");const N=this.set[E];for(let S=0;S<N.length;S++)S>0&&(this.formatted+=" "),this.formatted+=N[S].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(E){const S=((this.options.includePrerelease&&m)|(this.options.loose&&g))+":"+E,w=n.get(S);if(w)return w;const j=this.options.loose,L=j?o[u.HYPHENRANGELOOSE]:o[u.HYPHENRANGE];E=E.replace(L,me(this.options.includePrerelease)),r("hyphen replace",E),E=E.replace(o[u.COMPARATORTRIM],a),r("comparator trim",E),E=E.replace(o[u.TILDETRIM],h),r("tilde trim",E),E=E.replace(o[u.CARETTRIM],f),r("caret trim",E);let $=E.split(" ").map(G=>P(G,this.options)).join(" ").split(/\s+/).map(G=>se(G,this.options));j&&($=$.filter(G=>(r("loose invalid filter",G,this.options),!!G.match(o[u.COMPARATORLOOSE])))),r("range list",$);const O=new Map,k=$.map(G=>new c(G,this.options));for(const G of k){if(p(G))return[G];O.set(G.value,G)}O.size>1&&O.has("")&&O.delete("");const X=[...O.values()];return n.set(S,X),X}intersects(E,N){if(!(E instanceof t))throw new TypeError("a Range is required");return this.set.some(S=>x(S,N)&&E.set.some(w=>x(w,N)&&S.every(j=>w.every(L=>j.intersects(L,N)))))}test(E){if(!E)return!1;if(typeof E=="string")try{E=new l(E,this.options)}catch{return!1}for(let N=0;N<this.set.length;N++)if(pe(this.set[N],E,this.options))return!0;return!1}}gs=t;const s=Il(),n=new s,i=hn(),c=It(),r=Dt(),l=Z(),{safeRe:o,t:u,comparatorTrimReplace:a,tildeTrimReplace:h,c
vendor: 5,094 bytes, line 11
11aretTrimReplace:f}=ot(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:g}=Lt(),p=R=>R.value==="<0.0.0-0",y=R=>R.value==="",x=(R,E)=>{let N=!0;const S=R.slice();let w=S.pop();for(;N&&S.length;)N=S.every(j=>w.intersects(j,E)),w=S.pop();return N},P=(R,E)=>(R=R.replace(o[u.BUILD],""),r("comp",R,E),R=A(R,E),r("caret",R),R=D(R,E),r("tildes",R),R=T(R,E),r("xrange",R),R=U(R,E),r("stars",R),R),v=R=>!R||R.toLowerCase()==="x"||R==="*",D=(R,E)=>R.trim().split(/\s+/).map(N=>C(N,E)).join(" "),C=(R,E)=>{const N=E.loose?o[u.TILDELOOSE]:o[u.TILDE];return R.replace(N,(S,w,j,L,$)=>{r("tilde",R,S,w,j,L,$);let O;return v(w)?O="":v(j)?O=`>=${w}.0.0 <${+w+1}.0.0-0`:v(L)?O=`>=${w}.${j}.0 <${w}.${+j+1}.0-0`:$?(r("replaceTilde pr",$),O=`>=${w}.${j}.${L}-${$} <${w}.${+j+1}.0-0`):O=`>=${w}.${j}.${L} <${w}.${+j+1}.0-0`,r("tilde return",O),O})},A=(R,E)=>R.trim().split(/\s+/).map(N=>V(N,E)).join(" "),V=(R,E)=>{r("caret",R,E);const N=E.loose?o[u.CARETLOOSE]:o[u.CARET],S=E.includePrerelease?"-0":"";return R.replace(N,(w,j,L,$,O)=>{r("caret",R,w,j,L,$,O);let k;return v(j)?k="":v(L)?k=`>=${j}.0.0${S} <${+j+1}.0.0-0`:v($)?j==="0"?k=`>=${j}.${L}.0${S} <${j}.${+L+1}.0-0`:k=`>=${j}.${L}.0${S} <${+j+1}.0.0-0`:O?(r("replaceCaret pr",O),j==="0"?L==="0"?k=`>=${j}.${L}.${$}-${O} <${j}.${L}.${+$+1}-0`:k=`>=${j}.${L}.${$}-${O} <${j}.${+L+1}.0-0`:k=`>=${j}.${L}.${$}-${O} <${+j+1}.0.0-0`):(r("no pr"),j==="0"?L==="0"?k=`>=${j}.${L}.${$}${S} <${j}.${L}.${+$+1}-0`:k=`>=${j}.${L}.${$}${S} <${j}.${+L+1}.0-0`:k=`>=${j}.${L}.${$} <${+j+1}.0.0-0`),r("caret return",k),k})},T=(R,E)=>(r("replaceXRanges",R,E),R.split(/\s+/).map(N=>M(N,E)).join(" ")),M=(R,E)=>{R=R.trim();const N=E.loose?o[u.XRANGELOOSE]:o[u.XRANGE];return R.replace(N,(S,w,j,L,$,O)=>{r("xRange",R,S,w,j,L,$,O);const k=v(j),X=k||v(L),G=X||v($),Ge=G;return w==="="&&Ge&&(w=""),O=E.includePrerelease?"-0":"",k?w===">"||w==="<"?S="<0.0.0-0":S="*":w&&Ge?(X&&(L=0),$=0,w===">"?(w=">=",X?(j=+j+1,L=0,$=0):(L=+L+1,$=0)):w==="<="&&(w="<",X?j=+j+1:L=+L+1),w==="<"&&(O="-0"),S=`${w+j}.${L}.${$}${O}`):X?S=`>=${j}.0.0${O} <${+j+1}.0.0-0`:G&&(S=`>=${j}.${L}.0${O} <${j}.${+L+1}.0-0`),r("xRange return",S),S})},U=(R,E)=>(r("replaceStars",R,E),R.trim().replace(o[u.STAR],"")),se=(R,E)=>(r("replaceGTE0",R,E),R.trim().replace(o[E.includePrerelease?u.GTE0PRE:u.GTE0],"")),me=R=>(E,N,S,w,j,L,$,O,k,X,G,Ge)=>(v(S)?N="":v(w)?N=`>=${S}.0.0${R?"-0":""}`:v(j)?N=`>=${S}.${w}.0${R?"-0":""}`:L?N=`>=${N}`:N=`>=${N}${R?"-0":""}`,v(k)?O="":v(X)?O=`<${+k+1}.0.0-0`:v(G)?O=`<${k}.${+X+1}.0-0`:Ge?O=`<=${k}.${X}.${G}-${Ge}`:R?O=`<${k}.${X}.${+G+1}-0`:O=`<=${O}`,`${N} ${O}`.trim()),pe=(R,E,N)=>{for(let S=0;S<R.length;S++)if(!R[S].test(E))return!1;if(E.prerelease.length&&!N.includePrerelease){for(let S=0;S<R.length;S++)if(r(R[S].semver),R[S].semver!==c.ANY&&R[S].semver.prerelease.length>0){const w=R[S].semver;if(w.major===E.major&&w.minor===E.minor&&w.patch===E.patch)return!0}return!1}return!0};return gs}var ys,Ni;function It(){if(Ni)return ys;Ni=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(a,h){if(h=s(h),a instanceof t){if(a.loose===!!h.loose)return a;a=a.value}a=a.trim().split(/\s+/).join(" "),r("comparator",a,h),this.options=h,this.loose=!!h.loose,this.parse(a),this.semver===e?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}parse(a){const h=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],f=a.match(h);if(!f)throw new TypeError(`Invalid comparator: ${a}`);this.operator=f[1]!==void 0?f[1]:"",this.operator==="="&&(this.operator=""),f[2]?this.semver=new l(f[2],this.options.loose):this.semver=e}toString(){return this.value}test(a){if(r("Comparator.test",a,this.options.loose),this.semver===e||a===e)return!0;if(typeof a=="string")try{a=new l(a,this.options)}catch{return!1}return c(a,this.operator,this.semver,this.options)}intersects(a,h){if(!(a instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new o(a.value,h).test(this.value):a.operator===""?a.value===""?!0:new o(this.value,h).test(a.semver):(h=s(h),h.includePrerelease&&(this.value==="<0.0.0-0"||a.value==="<0.0.0-0")||!h.includePrerelease&&(this.value.startsWith("<0.0.0")||a.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&a.operator.startsWith(">")||this.operator.startsWith("<")&&a.operator.startsWith("<")||this.semver.version===a.semver.version&&this.operator.includes("=")&&a.operator.includes("=")||c(this.semver,"<",a.semver,h)&&this.operator.startsWith(">")&&a.operator.startsWith("<")||c(this.semver,">",a.semver,h)&&this.operator.startsWith("<")&&a.operator.startsWith(">")))}}ys=t;const s=hn(),{safeRe:n,t:i}=ot(),c=yo(),r=Dt(),l=Z(),o=le();return ys}var xs,Li;function Mt(){if(Li)return xs;Li=1;const e=le();return xs=(s,n,i)=>{try{n=new e(n,i)}catch{return!1}return n.test(s)},xs}var vs,Di;function Ml(){if(Di)return vs;Di=1;const e=le();return vs=(s,n)=>new e(s,n).set.map(i=>i.map(c=>c.value).join(" ").trim().split(" ")),vs}var ws,Vi;function Ol(){if(Vi)return ws;Vi=1;const e=Z(),t=le();return ws=(n,i,c)=>{let r=null,l=null,o=null;try{o=new t(i,c)}catch{return null}
11return n.forEach(u=>{o.test(u)&&(!r||l.compare(u)===-1)&&(r=u,l=new e(r,c))}),r},ws}var Ts,Ii;function $l(){if(Ii)return Ts;Ii=1;const e=Z(),t=le();return Ts=(n,i,c)=>{let r=null,l=null,o=null;try{o=new t(i,c)}catch{return null}return n.forEach(u=>{o.test(u)&&(!r||l.compare(u)===1)&&(r=u,l=new e(r,c))}),r},Ts}var Es,Mi;function kl(){if(Mi)return Es;Mi=1;const e=Z(),t=le(),s=Vt();return Es=(i,c)=>{i=new t(i,c);let r=new e("0.0.0");if(i.test(r)||(r=new e("0.0.0-0"),i.test(r)))return r;r=null;for(let l=0;l<i.set.length;++l){const o=i.set[l];let u=null;o.forEach(a=>{const h=new e(a.semver.version);switch(a.operator){case">":h.prerelease.length===0?h.patch++:h.prerelease.push(0),h.raw=h.format();case"":case">=":(!u||s(h,u))&&(u=h);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),u&&(!r||s(r,u))&&(r=u)}return r&&i.test(r)?r:null},Es}var Ss,Oi;function Fl(){if(Oi)return Ss;Oi=1;const e=le();return Ss=(s,n)=>{try{return new e(s,n).range||"*"}catch{return null}},Ss}var bs,$i;function gn(){if($i)return bs;$i=1;const e=Z(),t=It(),{ANY:s}=t,n=le(),i=Mt(),c=Vt(),r=fn(),l=pn(),o=mn();return bs=(a,h,f,m)=>{a=new e(a,m),h=new n(h,m);let g,p,y,x,P;switch(f){case">":g=c,p=l,y=r,x=">",P=">=";break;case"<":g=r,p=o,y=c,x="<",P="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(a,h,m))return!1;for(let v=0;v<h.set.length;++v){const D=h.set[v];let C=null,A=null;if(D.forEach(V=>{V.semver===s&&(V=new t(">=0.0.0")),C=C||V,A=A||V,g(V.semver,C.semver,m)?C=V:y(V.semver,A.semver,m)&&(A=V)}),C.operator===x||C.operator===P||(!A.operator||A.operator===x)&&p(a,A.semver))return!1;if(A.operator===P&&y(a,A.semver))return!1}return!0},bs}var Rs,ki;function Bl(){if(ki)return Rs;ki=1;const e=gn();return Rs=(s,n,i)=>e(s,n,">",i),Rs}var As,Fi;function _l(){if(Fi)return As;Fi=1;const e=gn();return As=(s,n,i)=>e(s,n,"<",i),As}var Ps,Bi;function ql(){if(Bi)return Ps;Bi=1;const e=le();return Ps=(s,n,i)=>(s=new e(s,i),n=new e(n,i),s.intersects(n,i)),Ps}var Cs,_i;function Ul(){if(_i)return Cs;_i=1;const e=Mt(),t=ae();return Cs=(s,n,i)=>{const c=[];let r=null,l=null;const o=s.sort((f,m)=>t(f,m,i));for(const f of o)e(f,n,i)?(l=f,r||(r=f)):(l&&c.push([r,l]),l=null,r=null);r&&c.push([r,null]);const u=[];for(const[f,m]of c)f===m?u.push(f):!m&&f===o[0]?u.push("*"):m?f===o[0]?u.push(`<=${m}`):u.push(`${f} - ${m}`):u.push(`>=${f}`);const a=u.join(" || "),h=typeof n.raw=="string"?n.raw:String(n);return a.length<h.length?a:n},Cs}var js,qi;function Gl(){if(qi)return js;qi=1;const e=le(),t=It(),{ANY:s}=t,n=Mt(),i=ae(),c=(h,f,m={})=>{if(h===f)return!0;h=new e(h,m),f=new e(f,m);let g=!1;e:for(const p of h.set){for(const y of f.set){const x=o(p,y,m);if(g=g||x!==null,x)continue e}if(g)return!1}return!0},r=[new t(">=0.0.0-0")],l=[new t(">=0.0.0")],o=(h,f,m)=>{if(h===f)return!0;if(h.length===1&&h[0].semver===s){if(f.length===1&&f[0].semver===s)return!0;m.includePrerelease?h=r:h=l}if(f.length===1&&f[0].semver===s){if(m.includePrerelease)return!0;f=l}const g=new Set;let p,y;for(const T of h)T.operator===">"||T.operator===">="?p=u(p,T,m):T.operator==="<"||T.operator==="<="?y=a(y,T,m):g.add(T.semver);if(g.size>1)return null;let x;if(p&&y){if(x=i(p.semver,y.semver,m),x>0)return null;if(x===0&&(p.operator!==">="||y.operator!=="<="))return null}for(const T of g){if(p&&!n(T,String(p),m)||y&&!n(T,String(y),m))return null;for(const M of f)if(!n(T,String(M),m))return!1;return!0}let P,v,D,C,A=y&&!m.includePrerelease&&y.semver.prerelease.length?y.semver:!1,V=p&&!m.includePrerelease&&p.semver.prerelease.length?p.semver:!1;A&&A.prerelease.length===1&&y.operator==="<"&&A.prerelease[0]===0&&(A=!1);for(const T of f){if(C=C||T.operator===">"||T.operator===">=",D=D||T.operator==="<"||T.operator==="<=",p){if(V&&T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===V.major&&T.semver.minor===V.minor&&T.semver.patch===V.patch&&(V=!1),T.operator===">"||T.operator===">="){if(P=u(p,T,m),P===T&&P!==p)return!1}else if(p.operator===">="&&!n(p.semver,String(T),m))return!1}if(y){if(A&&T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===A.major&&T.semver.minor===A.minor&&T.semver.patch===A.patch&&(A=!1),T.operator==="<"||T.operator==="<="){if(v=a(y,T,m),v===T&&v!==y)return!1}else if(y.operator==="<="&&!n(y.semver,String(T),m))return!1}if(!T.operator&&(y||p)&&x!==0)return!1}return!(p&&D&&!y&&x!==0||y&&C&&!p&&x!==0||V||A)},u=(h,f,m)=>{if(!h)return f;const g=i(h.semver,f.semver,m);return g>0?h:g<0||f.operator===">"&&h.operator===">="?f:h},a=(h,f,m)=>{if(!h)return f;const g=i(h.semver,f.semver,m);return g<0?h:g>0||f.operator==="<"&&h.operator==="<="?f:h};return js=c,js}var Ns,Ui;function zl(){if(Ui)return Ns;Ui=1;
11const e=ot(),t=Lt(),s=Z(),n=mo(),i=Be(),c=Tl(),r=El(),l=Sl(),o=bl(),u=Rl(),a=Al(),h=Pl(),f=Cl(),m=ae(),g=jl(),p=Nl(),y=dn(),x=Ll(),P=Dl(),v=Vt(),D=fn(),C=po(),A=go(),V=mn(),T=pn(),M=yo(),U=Vl(),se=It(),me=le(),pe=Mt(),R=Ml(),E=Ol(),N=$l(),S=kl(),w=Fl(),j=gn(),L=Bl(),$=_l(),O=ql(),k=Ul(),X=Gl();return Ns={parse:i,valid:c,clean:r,inc:l,diff:o,major:u,minor:a,patch:h,prerelease:f,compare:m,rcompare:g,compareLoose:p,compareBuild:y,sort:x,rsort:P,gt:v,lt:D,eq:C,neq:A,gte:V,lte:T,cmp:M,coerce:U,Comparator:se,Range:me,satisfies:pe,toComparators:R,maxSatisfying:E,minSatisfying:N,minVersion:S,validRange:w,outside:j,gtr:L,ltr:$,intersects:O,simplifyRange:k,subset:X,SemVer:s,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers},Ns}var Kl=zl();const Ls=Xa(Kl),xo=b.createContext(new Map);xo.Provider;function Wl(e,{event:t="message",init:s,enabled:n=!0}={}){let i=b.useContext(xo),[c,r]=b.useState(null);return b.useEffect(()=>{if(!n)return;let l=[e.toString(),s==null?void 0:s.withCredentials].join("::"),o=i.get(l)??{count:0,source:new EventSource(e,s)};++o.count,i.set(l,o),o.source.addEventListener(t,u),r(null);function u(a){r(a.data||"UNKNOWN_EVENT_DATA")}return()=>{o.source.removeEventListener(t,u),--o.count,o.count<=0&&(o.source.close(),i.delete(l))}},[e,t,s,i,n]),c}const Hl=e=>/^\d+\.\d+\.\d+(-[a-zA-Z0-9.-]+)?(\+[a-zA-Z0-9.-]+)?$/.test(e),Xl=e=>Hl(e)?`v${e}`:e;function Yl(){return d.jsx(Ce,{className:"animate-pulse",children:d.jsxs(je,{className:"p-4 flex flex-col gap-3",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("div",{className:"h-6 bg-zinc-200 dark:bg-zinc-800 rounded w-24"}),d.jsx("div",{className:"h-5 bg-zinc-200 dark:bg-zinc-800 rounded w-16"})]}),d.jsx("div",{className:"h-4 bg-zinc-200 dark:bg-zinc-800 rounded w-full"}),d.jsx("div",{className:"h-4 bg-zinc-200 dark:bg-zinc-800 rounded w-3/4"}),d.jsx("div",{className:"flex justify-end mt-2",children:d.jsx("div",{className:"h-9 bg-zinc-200 dark:bg-zinc-800 rounded w-28"})})]})})}function Zl({build:e,locale:t,detailsLinkUrl:s}){const{t:n}=Ct(),i=c=>new Date(c).toLocaleDateString(t,{year:"numeric",month:"short",day:"numeric"});return d.jsx(Ce,{withHoverEffect:!0,className:"cursor-pointer",children:d.jsx(Tt,{to:s(e.build_id),children:d.jsxs(je,{className:"p-4",children:[d.jsxs("div",{className:"flex justify-between",children:[d.jsx("div",{className:"font-semibold text-foreground-primary",children:Xl(e.lb_version)}),e.release&&d.jsx("div",{className:"flex items-center justify-center text-xs px-2 py-0.5 text-foreground-green bg-background-green rounded-full font-medium",children:n("download.table.release")})]}),d.jsxs("div",{className:"text-xs text-foreground-secondary mt-1 flex items-center gap-1",children:[d.jsx(tl,{size:12}),i(e.date)]}),d.jsx(W,{className:"line-clamp-2 text-sm mt-2",color:"muted",children:e.message}),d.jsx("div",{className:"flex justify-end mt-3",children:d.jsxs(oe,{size:"sm",variant:"outline",className:"flex items-center gap-2",children:[d.jsx(Nt,{size:14}),n("common.buttons.download")]})})]})})},e.build_id)}function Ql({mcVersion:e,builds:t,loading:s,detailsLinkUrl:n,locale:i,isNewestVersion:c=!0}){const r=p=>new Date(p).toLocaleDateString(i,{year:"numeric",month:"short",day:"numeric"}),{t:l}=Ct(),[o,u]=b.useState(!1),a=t,h=a.filter(p=>p.release),f=h.length>0,m=f?r(h[0].date):null,g=o?a:a.slice(0,3);return d.jsxs(Ce,{className:"overflow-hidden",children:[d.jsx(jt,{className:"bg-gradient-to-r from-blue-600 to-blue-700",children:d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsxs("div",{children:[d.jsxs(ke,{as:"h3",size:"lg",color:"white",children:[l("download.table.minecraft")," ",e]}),f&&d.jsx(W,{color:"white",size:"sm",children:d.jsx(Q,{i18nKey:"download.table.releaseDate",values:{date:m}})})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[!c&&d.jsx("div",{className:"bg-red-500/80 text-white text-xs font-bold px-3 py-1 rounded-full",children:l("download.legacy.discontinued")}),d.jsxs("div",{className:"bg-white text-brand text-xs font-bold px-3 py-1 rounded-full",children:[t.length," ",t.length===1?l("download.builds.build"):l("download.builds.builds")]})]})]})}),d.jsx(je,{className:"p-4",children:s?d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[...Array(3)].map((p,y)=>d.jsx(Yl,{},y))}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:g.map(p=>d.jsx(Zl,{locale:i,build:p,detailsLinkUrl:n},p.build_id))}),t.length>3&&d.jsx("div",{className:"mt-4 flex justify-center",children:d.jsx(oe,{variant:"outline",size:"sm",className:"flex items-center gap-2",onClick:p=>{p.stopPropagation(),u(!o)},children:o?d.jsxs(d.Fragment,{children:[d.jsx(el,{size:16}),l("download.groups.showLess")]}):d.jsxs(d.Fragment,{children:[d.jsx(io,{size:16}),l("download.groups.showAll",{count:t.length})]})})})]})})]})}function Jl({mcVersion:e,newestVersion:t}){const{t:s}=Ct(),n=()=>{const i=new Date("2015-12-09"),c=new Date,r=yl(c,i),l=sl(c,i),o=l%12,u=ml(i,l),a=Math.floor(gl(c,u)/7);let h="download.legacy.ageText";return r>0&&o>0&&a>0?h="download.legacy.ageText.yearsMonthsWeeks":r>0&&o>0?h="download.legacy.ageText.yearsMonths":r>0&&a>0?h="download.legacy.ageText.yearsWeeks":o>0&&a>0?h="download.legacy.ageText.monthsWeeks":r>0?h="download.legacy.ageText.years":o>0?h="download.legacy.ageText.months":a>0&&(h="download.legacy.ageText.weeks"),d.jsx(Q,{i18nKey:h,values:{years:r,months:o,weeks:a}})};return d.jsxs(Ce,{className:"overflow-hidden",children:[d.jsx(jt,{className:"bg-gradient-to-r from-blue-600 to-blue-700",children:d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsxs("div",{children:[d.jsxs(ke,{as:"h3",size:"lg",color:"white",children:[s("download.table.minecraft")," ",e]}),d.jsx(W,{color:"white",size:"sm",children:n()})]}),d.jsx("div",{className:"bg-white dark:bg-zinc-800 text-brand text-xs font-bold px-3 py-1 rounded-full",children:s("download.legacy.legacySupport")})]})}),d.jsx(je,{className:"p-6",children:d.jsx("div",{className:"flex flex-col gap-4",children:d.jsxs("div",{className:"flex items-start gap-4 flex-col md:flex-row",children:[d.jsxs("div",{className:"flex-1",children:[d.jsx(W,{className:"text-foreground-secondary mb-4",children:d.jsx(Q,{i18nKey:"download.legacy.compatibilityText",values:{newestVersion:t,mcVersion:e}})}),d.jsxs("ul",{className:"list-disc pl-5 space-y-2 text-foreground-secondary",children:[d.jsxs("li",{children:[d.jsxs("span",{className:"font-medium",children:[s("download.legacy.versionSwitcherTitle"),":"]})," ",d.jsx(Q,{i18nKey:"download.legacy.versionSwitcherDesc",values:{mcVersion:e},components:{vfp:d.jsx("a",{href:"https://modrinth.com/mod/viafabricplus",target:"_blank",rel:"noopener",className:"text-blue-600 hover:underline",children:"ViaFabricPlus"},"vfp")}})]}),d.jsxs("li",{children:[d.jsxs("span",{className:"font-medium",children:[s("download.legacy.combatCompatTitle"),":"]})," ",d.jsx(Q,{i18nKey:"download.legacy.combatCompatDesc",values:{mcVersion:e}})]}),d.jsxs("li",{children:[d.jsxs("span",{className:"font-medium",children:[s("download.legacy.advantageTitle"),":"]})," ",d.jsx(Q,{i18nKey:"download.legacy.advantageDesc",values:{newestVersion:t,mcVersion:e}})]})]})]}),d.jsx("div",{className:"w-full md:w-1/3 lg:w-1/4 flex justify-center",children:d.jsx(Tt,{to:"/docs/tutorials/changing-version",className:"w-full",children:d.jsxs(oe,{variant:"outline",className:"w-full flex items-center justify-center gap-2",children:[d.jsx(Ja,{size:16}),s("download.legacy.learnMore")]})})})]})})})]})}function ec({hashValues:e}){return d.jsxs("div",{className:"space-y-2",children:[d.jsx(W,{className:"text-sm font-medium",children:d.jsx(Q,{i18nKey:"download.liquidlauncher.verification.title"})}),d.jsx("div",{className:"flex flex-col gap-2 bg-background text-foreground-secondary rounded-md p-3 text-xs",children:e.map((t,s)=>d.jsx("p",{className:"font-mono",children:d.jsx(Q,{i18nKey:"download.liquidlauncher.verification.hash",values:{label:t.label,hash:t.value}})},t.value))})]})}function tc({href:e,label:t,description:s,icon:n=d.jsx(Nt,{size:18})}){return d.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[d.jsx(oe,{variant:"outline",size:"sm",className:"w-full justify-center gap-2",asChild:!0,children:d.jsxs("a",{href:e,children:[n,t]})}),d.jsx(W,{className:"text-xs text-foreground-secondary text-center px-2",children:s})]})}function sc(){return d.jsxs("div",{className:"bg-background-brand border border-brand-alt rounded-md p-4 flex gap-3",children:[d.jsx(rl,{className:"h-5 w-5 text-brand flex-shrink-0 mt-0.5"}),d.jsxs("div",{children:[d.jsx(W,{className:"text-sm font-medium text-foreground-brand",children:d.jsx(Q,{i18nKey:"download.liquidlauncher.official.title"})}),d.jsx(W,{className:"text-xs text-foreground-brand mt-1",children:d.jsx(Q,{i18nKey:"download.liquidlauncher.official.description"})})]})]})}function nc({title:e,buttons:t}){const s=t.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 md:grid-cols-3";return d.jsxs("div",{className:"space-y-3",children:[d.jsx(W,{className:"font-medium text-sm",children:e}),d.jsx("div",{className:`grid ${s} gap-2`,children:t.map((n,i)=>d.jsx(tc,{href:n.href,label:n.label,description:n.description||"",icon:n.icon},n.href))})]})}function ic({message:e,link:t}){return d.jsxs("div",{className:"bg-amber-50 dark:bg-amber-950/30 border border-amber-200 dark:border-amber-800 rounded-md p-4 flex gap-3",children:[d.jsx(co,{className:"h-5 w-5 text-amber-600 dar
11k:text-amber-400 flex-shrink-0 mt-0.5"}),d.jsxs("div",{children:[d.jsx(W,{className:"text-sm font-medium text-amber-700 dark:text-amber-400",children:e}),t&&d.jsx(W,{className:"text-xs mt-1",children:d.jsxs("a",{href:t.url,className:"text-amber-800 dark:text-amber-300 hover:underline flex items-center gap-1 mt-2",target:"_blank",rel:"noopener noreferrer",children:[t.text," ",d.jsx(lo,{size:12})]})})]})]})}const Ee={msi:{name:"MSI Installer",description:"Recommended installer for most users"},nsis:{name:"EXE Installer",description:"Alternative installer format"},deb:{name:"DEB Package",description:"For Ubuntu/Debian systems"},rpm:{name:"RPM Package",description:"For Fedora/RHEL systems"},dmg:{name:"DMG Installer",description:"Standard installer"},app:{name:"App Archive",description:"ZIP archive of the application"}},rc={"macos/x86_64/dmg":"Standard installer for Intel Macs","macos/aarch64/dmg":"Optimized for Apple Silicon Macs"},ze={"windows/x86_64":{name:"Windows x64",short:"x64"},"linux/x86_64":{name:"Linux x64",short:"x64"},"macos/x86_64":{name:"Intel-based Mac",short:"Intel"},"macos/aarch64":{name:"Apple Silicon (M1/M2/M3)",short:"ARM"}},oc={"linux/x86_64":[{name:"AUR Package",description:"For Arch Linux users",url:"https://aur.archlinux.org/packages/liquidlauncher-bin"}]},Ds={"macos/aarch64":{message:`macOS will show the message "LiquidLauncher is damaged and can't be opened" because the app is not signed with an Apple Developer license.`,link:{text:"You can find a fix for this here.",url:"/docs/tutorials/liquidlauncher-on-macos"}}},ac={windows:"msi",linux:"deb",macos:"dmg"},lc=e=>rc[`${e.os}/${e.arch}/${e.type}`]??Ee[e.type].description,dt=(e,t)=>{const s=Object.keys(e).indexOf(t);return s===-1?Object.keys(e).length:s};function cc({title:e,binaries:t,onClose:s}){const n=t.filter(o=>Ee[o.type]&&ze[`${o.os}/${o.arch}`]).sort((o,u)=>dt(ze,`${o.os}/${o.arch}`)-dt(ze,`${u.os}/${u.arch}`)||dt(Ee,o.type)-dt(Ee,u.type)),i=[...new Set(n.map(o=>`${o.os}/${o.arch}`))],c=n.find(o=>o.type===ac[o.os]&&o.sha256)??n.find(o=>o.sha256),r=c?`https://www.virustotal.com/gui/file/${c.sha256}`:void 0,l=n.filter(o=>o.sha256).map(o=>({label:i.length>1?`${Ee[o.type].name} (${ze[`${o.os}/${o.arch}`].short})`:Ee[o.type].name,value:o.sha256}));return d.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[d.jsx("div",{className:"fixed inset-0 bg-black opacity-50",onClick:s,onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&s()},role:"button",tabIndex:0}),d.jsxs(Ce,{className:"relative w-full max-w-2xl",children:[d.jsx(jt,{children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx(ke,{as:"h3",size:"xl",children:e}),d.jsx(oe,{variant:"ghost",size:"icon",onClick:s,"aria-label":"Close",children:d.jsx(ao,{className:"h-5 w-5"})})]})}),d.jsxs(je,{className:"space-y-6",children:[i.filter(o=>Ds[o]).map(o=>d.jsx(ic,{message:Ds[o].message,link:Ds[o].link},o)),d.jsx("div",{className:"space-y-6",children:i.map(o=>d.jsx(nc,{title:ze[o].name,buttons:[...n.filter(u=>`${u.os}/${u.arch}`===o).map(u=>({href:u.url,label:Ee[u.type].name,description:lc(u),icon:d.jsx(Nt,{size:18})})),...(oc[o]??[]).map(u=>({href:u.url,label:u.name,description:u.description,icon:d.jsx(lo,{size:18})}))]},o))}),d.jsx(il,{}),d.jsxs("div",{className:"space-y-4",children:[d.jsx(sc,{}),l.length>0&&d.jsx(ec,{hashValues:l}),r&&d.jsxs("div",{className:"flex items-start gap-2 mt-2",children:[d.jsx(co,{className:"h-4 w-4 text-foreground-secondary flex-shrink-0 mt-0.5"}),d.jsx(W,{className:"text-xs text-foreground-secondary",children:d.jsx(Q,{i18nKey:"download.liquidlauncher.scanned",components:[d.jsx("a",{href:r,target:"_blank",rel:"noreferrer noopener",className:"text-foreground-brand hover:underline dark:text-blue-400 inline-flex items-center",children:"VirusTotal"},"virusTotalLink"),d.jsx("a",{href:"https://www.trustpilot.com/review/liquidbounce.net",target:"_blank",rel:"noreferrer noopener",className:"text-foreground-brand hover:underline dark:text-blue-400 inline-flex items-center",children:"Trustpilot"},"trustpilotLink")]})})]})]}),d.jsx("div",{children:d.jsx(ro,{slot:"download-index"})})]})]})]})}const vo=b.createContext({});function Et(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const yn=typeof window<"u",wo=yn?b.useLayoutEffect:b.useEffect,xn=b.createContext(null),Ot=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function uc(e=!0){const t=b.useContext(xn);if(t===null)return[!0,null];const{isPresent:s,onExitComplete:n,register:i}=t,c=b.useId();b.useEffect(()=>{if(e)return i(c)},[e]);const r=b.useCallback(()=>e&&n&&n(c),[c,n,e]);return!s&&n?[!1,r]:[!0]}const ft=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function hc(e,t){let s=new Set,n=new Set,i=!1,c=!1;const r=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function o(a){r.has(a)&&(u.schedule(a),e()),a(l)}const u={schedule:(a,h=!1,f=!1)=>{const g=f&&i?s:n;return h&&r.add(a),g.has(a)||g.add(a),a},cancel:a=>{n.delete(a),r.delete(a)},process:a=>{if(l=a,i){c=!0;return}
vendor: 25,693 bytes, line 11
11i=!0,[s,n]=[n,s],s.forEach(o),s.clear(),i=!1,c&&(c=!1,u.process(a))}};return u}const de={},dc=40;function To(e,t){let s=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},c=()=>s=!0,r=ft.reduce((v,D)=>(v[D]=hc(c),v),{}),{setup:l,read:o,resolveKeyframes:u,preUpdate:a,update:h,preRender:f,render:m,postRender:g}=r,p=()=>{const v=de.useManualTiming?i.timestamp:performance.now();s=!1,de.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(v-i.timestamp,dc),1)),i.timestamp=v,i.isProcessing=!0,l.process(i),o.process(i),u.process(i),a.process(i),h.process(i),f.process(i),m.process(i),g.process(i),i.isProcessing=!1,s&&t&&(n=!1,e(p))},y=()=>{s=!0,n=!0,i.isProcessing||e(p)};return{schedule:ft.reduce((v,D)=>{const C=r[D];return v[D]=(A,V=!1,T=!1)=>(s||y(),C.schedule(A,V,T)),v},{}),cancel:v=>{for(let D=0;D<ft.length;D++)r[ft[D]].cancel(v)},state:i,steps:r}}const te=e=>e,{schedule:F,cancel:ye,state:K,steps:Vs}=To(typeof requestAnimationFrame<"u"?requestAnimationFrame:te,!0),Eo=b.createContext({strict:!1}),Gi={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"]},Fe={};for(const e in Gi)Fe[e]={isEnabled:t=>Gi[e].some(s=>!!t[s])};function fc(e){for(const t in e)Fe[t]={...Fe[t],...e[t]}}const mc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function St(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||mc.has(e)}let So=e=>!St(e);function pc(e){e&&(So=t=>t.startsWith("on")?!St(t):e(t))}try{pc(require("@emotion/is-prop-valid").default)}catch{}function gc(e,t,s){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(So(i)||s===!0&&St(i)||!t&&!St(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function yc(e){if(typeof Proxy>"u")return e;const t=new Map,s=(...n)=>e(...n);return new Proxy(s,{get:(n,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const $t=b.createContext({});function kt(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Je(e){return typeof e=="string"||Array.isArray(e)}const vn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wn=["initial",...vn];function Ft(e){return kt(e.animate)||wn.some(t=>Je(e[t]))}function bo(e){return!!(Ft(e)||e.variants)}function xc(e,t){if(Ft(e)){const{initial:s,animate:n}=e;return{initial:s===!1||Je(s)?s:void 0,animate:Je(n)?n:void 0}}return e.inherit!==!1?t:{}}function vc(e){const{initial:t,animate:s}=xc(e,b.useContext($t));return b.useMemo(()=>({initial:t,animate:s}),[zi(t),zi(s)])}function zi(e){return Array.isArray(e)?e.join(" "):e}const wc=Symbol.for("motionComponentSymbol");function Ve(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Tc(e,t,s){return b.useCallback(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),s&&(typeof s=="function"?s(n):Ve(s)&&(s.current=n))},[t])}const Tn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ec="framerAppearId",Ro="data-"+Tn(Ec),Ao=b.createContext({}),{schedule:En}=To(queueMicrotask,!1);function Sc(e,t,s,n,i){var p,y;const{visualElement:c}=b.useContext($t),r=b.useContext(Eo),l=b.useContext(xn),o=b.useContext(Ot).reducedMotion,u=b.useRef(null);n=n||r.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:c,props:s,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:o}));const a=u.current,h=b.useContext(Ao);a&&!a.projection&&i&&(a.type==="html"||a.type==="svg")&&bc(u.current,s,i,h);const f=b.useRef(!1);b.useInsertionEffect(()=>{a&&f.current&&a.update(s,l)});const m=s[Ro],g=b.useRef(!!m&&!((p=window.MotionHandoffIsComplete)!=null&&p.call(window,m))&&((y=window.MotionHasOptimisedAnimation)==null?void 0:y.call(window,m)));return wo(()=>{a&&(f.current=!0,window.MotionIsMounted=!0,a.updateFeatures(),En.render(a.render),g.current&&a.animationState&&a.animationState.animateChanges())}),b.useEffect(()=>{a&&(!g.current&&a.animationState&&a.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)==null||x.call(window,m)}),g.current=!1))}),a}function bc(e,t,s,n){const{layoutId:i,layout:c,drag:r,dragConstraints:l,layoutScroll:o,layoutRoot:u,layoutCrossfade:a}=t;e.projection=new s(e.latestValues,t["data-framer-portal-id"]?void 0:Po(e.parent)),e.projection.setOptions({layoutId:i,layout:c,alwaysMeasureLayout:!!r||l&&Ve(l),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:n,crossfade:a,layoutScroll:o,layoutRoot:u})}function Po(e){if(e)return e.options.allowProjection!==!1?e.projection:Po(e.parent)}let Sn=()=>{};function Rc({preloadedFeatures:e,createVisualElement:t,useRender:s,useVisualState:n,Component:i}){e&&fc(e);function c(l,o){let u;const a={...b.useContext(Ot),...l,layoutId:Ac(l)},{isStatic:h}=a,f=vc(l),m=n(l,h);if(!h&&yn){Pc();const g=Cc(a);u=g.MeasureLayout,f.visualElement=Sc(i,m,a,t,g.ProjectionNode)}return d.jsxs($t.Provider,{value:f,children:[u&&f.visualElement?d.jsx(u,{visualElement:f.visualElement,...a}):null,s(i,l,Tc(m,f.visualElement,o),m,h,f.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const r=b.forwardRef(c);return r[wc]=i,r}function Ac({layoutId:e}){const t=b.useContext(vo).id;return t&&e!==void 0?t+"-"+e:e}function Pc(e,t){b.useContext(Eo).strict}function Cc(e){const{drag:t,layout:s}=Fe;if(!t&&!s)return{};const n={...t,...s};return{MeasureLayout:t!=null&&t.isEnabled(e)||s!=null&&s.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}const Co=e=>t=>typeof t=="string"&&t.startsWith(e),bn=Co("--"),jc=Co("var(--"),Rn=e=>jc(e)?Nc.test(e.split("/*")[0].trim()):!1,Nc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,et={};function Lc(e){for(const t in e)et[t]=e[t],bn(t)&&(et[t].isCSSVariable=!0)}const _e=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qe=new Set(_e);function jo(e,{layout:t,layoutId:s}){return qe.has(e)||e.startsWith("origin")||(t||s!==void 0)&&(!!et[e]||e==="opacity")}const z=e=>!!(e&&e.getVelocity),No=(e,t)=>t&&typeof e=="number"?t.transform(e):e,fe=(e,t,s)=>s>t?t:s<e?e:s,Ue={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},tt={...Ue,transform:e=>fe(0,1,e)},mt={...Ue,default:1},Ki={...Ue,transform:Math.round},at=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ge=at("deg"),ce=at("%"),I=at("px"),Dc=at("vh"),Vc=at("vw"),Wi={...ce,parse:e=>ce.parse(e)/100,transform:e=>ce.transform(e*100)},Ic={rotate:ge,rotateX:ge,rotateY:ge,rotateZ:ge,scale:mt,scaleX:mt,scaleY:mt,scaleZ:mt,skew:ge,skewX:ge,skewY:ge,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:tt,originX:Wi,originY:Wi,originZ:I},An={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,radius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,backgroundPositionX:I,backgroundPositionY:I,...Ic,zIndex:Ki,fillOpacity:tt,strokeOpacity:tt,numOctaves:Ki},Mc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Oc=_e.length;function $c(e,t,s){let n="",i=!0;for(let c=0;c<Oc;c++){const r=_e[c],l=e[r];if(l===void 0)continue;let o=!0;if(typeof l=="number"?o=l===(r.startsWith("scale")?1:0):o=parseFloat(l)===0,!o||s){const u=No(l,An[r]);if(!o){i=!1;const a=Mc[r]||r;n+=`${a}(${u}) `}s&&(t[r]=u)}}return n=n.trim(),s?n=s(t,i?"":n):i&&(n="none"),n}function Pn(e,t,s){const{style:n,vars:i,transformOrigin:c}=e;let r=!1,l=!1;for(const o in t){const u=t[o];if(qe.has(o)){r=!0;continue}else if(bn(o)){i[o]=u;continue}else{const a=No(u,An[o]);o.startsWith("origin")?(l=!0,c[o]=a):n[o]=a}}if(t.transform||(r||s?n.transform=$c(t,e.transform,s):n.transform&&(n.transform="none")),l){const{originX:o="50%",originY:u="50%",originZ:a=0}=c;n.transformOrigin=`${o} ${u} ${a}`}}const Cn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Lo(e,t,s){for(const n in t)!z(t[n])&&!jo(n,s)&&(e[n]=t[n])}function kc({transformTemplate:e},t){return b.useMemo(()=>{const s=Cn();return Pn(s,t,e),Object.assign({},s.vars,s.style)},[t])}function Fc(e,t){const s=e.style||{},n={};return Lo(n,s,e),Object.assign(n,kc(e,t)),n}function Bc(e,t){const s={},n=Fc(e,t);return e.drag&&e.dragListener!==!1&&(s.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=n,s}const _c=["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 jn(e){return typeof e!="string"||e.includes("-")?!1:!!(_c.indexOf(e)>-1||/[A-Z]/u.test(e))}const qc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Uc={offset:"strokeDashoffset",array:"strokeDasharray"};function Gc(e,t,s=1,n=0,i=!0){e.pathLength=1;const c=i?qc:Uc;e[c.offset]=I.transform(-n);const r=I.transform(t),l=I.transform(s);e[c.array]=`${r} ${l}`}function Do(e,{attrX:t,attrY:s,attrScale:n,pathLength:i,pathSpacing:c=1,pathOffset:r=0,...l},o,u,a){if(Pn(e,l,u),o){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:f}=e;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=(a==null?void 0:a.transformBox)??"fill-box",delete h.transformBox),t!==void 0&&(h.x=t),s!==void 0&&(h.y=s),n!==void 0&&(h.scale=n),i!==void 0&&Gc(h,i,c,r,!1)}const Vo=()=>({...Cn(),attrs:{}}),Io=e=>typeof e=="string"&&e.toLowerCase()==="svg";function zc(e,t,s,n){const i=b.useMemo(()=>{const c=Vo();return Do(c,t,Io(n),e.transformTemplate,e.style),{...c.attrs,style:{...c.style}}},[t]);if(e.style){const c={};Lo(c,e.style,e),i.style={...c,...i.style}}return i}function Kc(e=!1){return(s,n,i,{latestValues:c},r)=>{const o=(jn(s)?zc:Bc)(n,c,r,s),u=gc(n,typeof s=="string",e),a=s!==b.Fragment?{...u,...o,ref:i}:{},{children:h}=n,f=b.useMemo(()=>z(h)?h.get():h,[h]);return b.createElement(s,{...a,children:f})}}function Hi(e){const t=[{},{}];return e==null||e.values.forEach((s,n)=>{t[0][n]=s.get(),t[1][n]=s.getVelocity()}),t}function Nn(e,t,s,n){if(typeof t=="function"){const[i,c]=Hi(n);t=t(s!==void 0?s:e.custom,i,c)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,c]=Hi(n);t=t(s!==void 0?s:e.custom,i,c)}return t}function yt(e){return z(e)?e.get():e}function Wc({scrapeMotionValuesFromProps:e,createRenderState:t},s,n,i){return{latestValues:Hc(s,n,i,e),renderState:t()}}const Mo=e=>(t,s)=>{const n=b.useContext($t),i=b.useContext(xn),c=()=>Wc(e,t,n,i);return s?c():Et(c)};function Hc(e,t,s,n){const i={},c=n(e,{});for(const f in c)i[f]=yt(c[f]);let{initial:r,animate:l}=e;const o=Ft(e),u=bo(e);t&&u&&!o&&e.inherit!==!1&&(r===void 0&&(r=t.initial),l===void 0&&(l=t.animate));let a=s?s.initial===!1:!1;a=a||r===!1;const h=a?l:r;if(h&&typeof h!="boolean"&&!kt(h)){const f=Array.isArray(h)?h:[h];for(let m=0;m<f.length;m++){const g=Nn(e,f[m]);if(g){const{transitionEnd:p,transition:y,...x}=g;for(const P in x){let v=x[P];if(Array.isArray(v)){const D=a?v.length-1:0;v=v[D]}v!==null&&(i[P]=v)}for(const P in p)i[P]=p[P]}}}return i}function Ln(e,t,s){var c;const{style:n}=e,i={};for(const r in n)(z(n[r])||t.style&&z(t.style[r])||jo(r,e)||((c=s==null?void 0:s.getValue(r))==null?void 0:c.liveStyle)!==void 0)&&(i[r]=n[r]);return i}const Xc={useVisualState:Mo({scrapeMotionValuesFromProps:Ln,createRenderState:Cn})};function Oo(e,t,s){const n=Ln(e,t,s);for(const i in e)if(z(e[i])||z(t[i])){const c=_e.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[c]=e[i]}return n}const Yc={useVisualState:Mo({scrapeMotionValuesFromProps:Oo,createRenderState:Vo})};function Zc(e,t){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){const r={...jn(n)?Yc:Xc,preloadedFeatures:e,useRender:Kc(i),createVisualElement:t,Component:n};return Rc(r)}}function st(e,t,s){const n=e.getProps();return Nn(n,t,s!==void 0?s:n.custom,e)}const zs=e=>Array.isArray(e);let xt;function Qc(){xt=void 0}const J={now:()=>(xt===void 0&&J.set(K.isProcessing||de.useManualTiming?K.timestamp:performance.now()),xt),set:e=>{xt=e,queueMicrotask(Qc)}};function Dn(e,t){e.indexOf(t)===-1&&e.push(t)}function Vn(e,t){const s=e.indexOf(t);s>-1&&e.splice(s,1)}class In{constructor(){this.subscriptions=[]}add(t){return Dn(this.subscriptions,t),()=>Vn(this.subscriptions,t)}notify(t,s,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,s,n);else for(let c=0;c<i;c++){const r=this.subscriptions[c];r&&r(t,s,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function $o(e,t){return t?e*(1e3/t):0}const Xi=30,Jc=e=>!isNaN(parseFloat(e));class eu{constructor(t,s={}){this.version="__VERSION__",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{var r,l;const c=J.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&((r=this.events.change)==null||r.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty();i&&((l=this.events.renderRequest)==null||l.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=s.owner}setCurrent(t){this.current=t,this.updatedAt=J.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Jc(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,s){this.events[t]||(this.events[t]=new In);const n=this.events[t].add(s);return t==="change"?()=>{n(),F.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,s){this.passiveEffect=t,this.stopPassiveEffect=s}set(t,s=!0){!s||!this.passiveEffect?this.updateAndNotify(t,s):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,s,n){this.set(s),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,s=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&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=J.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Xi)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Xi);return $o(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(t){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=t(s),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,s;(t=this.dependents)==null||t.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Le(e,t){return new eu(e,t)}function tu(e,t,s){e.hasValue(t)?e.getValue(t).set(s):e.addValue(t,Le(s))}function su(e){return zs(e)?e[e.length-1]||0:e}function nu(e,t){const s=st(e,t);let{transitionEnd:n={},transition:i={},...c}=s||{};c={...c,...n};for(const r in c){const l=su(c[r]);tu(e,r,l)}}function iu(e){return!!(z(e)&&e.add)}function Ks(e,t){const s=e.getValue("willChange");if(iu(s))return s.add(t);if(!s&&de.WillChange){const n=new de.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function ko(e){return e.props[Ro]}const ru=e=>e!==null;function ou(e,{repeat:t,repeatType:s="loop"},n){const i=e.filter(ru),c=t&&s!=="loop"&&t%2===1?0:i.length-1;return i[c]}const au={type:"spring",stiffness:500,damping:25,restSpeed:10},lu=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cu={type:"keyframes",duration:.8},uu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hu=(e,{keyframes:t})=>t.length>2?cu:qe.has(e)?e.startsWith("scale")?lu(t[1]):au:uu;function du({when:e,delay:t,delayChildren:s,staggerChildren:n,staggerDirection:i,repeat:c,repeatType:r,repeatDelay:l,from:o,elapsed:u,...a}){return!!Object.keys(a).length}function Mn(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const ue=e=>e*1e3,he=e=>e/1e3,He=e=>Math.round(e*1e5)/1e5,On=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fu(e){return e==null}const mu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$n=(e,t)=>s=>!!(typeof s=="string"&&mu.test(s)&&s.startsWith(e)||t&&!fu(s)&&Object.prototype.hasOwnProperty.call(s,t)),Fo=(e,t,s)=>n=>{if(typeof n!="string")return n;const[i,c,r,l]=n.match(On);return{[e]:parseFloat(i),[t]:parseFloat(c),[s]:parseFloat(r),alpha:l!==void 0?parseFloat(l):1}},pu=e=>fe(0,255,e),Is={...Ue,transform:e=>Math.round(pu(e))},be={test:$n("rgb","red"),parse:Fo("red","green","blue"),transform:({red:e,green:t,blue:s,alpha:n=1})=>"rgba("+Is.transform(e)+", "+Is.transform(t)+", "+Is.transform(s)+", "+He(tt.transform(n))+")"};function gu(e){let t="",s="",n="",i="";return e.length>5?(t=e.substring(1,3),s=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),s=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,s+=s,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(s,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Ws={test:$n("#"),parse:gu,transform:be.transform},Ie={test:$n("hsl","hue"),parse:Fo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:s,alpha:n=1})=>"hsla("+Math.round(e)+", "+ce.transform(He(t))+", "+ce.transform(He(s))+", "+He(tt.transform(n))+")"},H={test:e=>be.test(e)||Ws.test(e)||Ie.test(e),parse:e=>be.test(e)?be.parse(e):Ie.test(e)?Ie.parse(e):Ws.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?be.transform(e):Ie.transform(e)},yu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function xu(e){var t,s;return isNaN(e)&&typeof e=="string"&&(((t=e.match(On))==null?void 0:t.length)||0)+(((s=e.match(yu))==null?void 0:s.length)||0)>0}const Bo="number",_o="color",vu="var",wu="var(",Yi="${}",Tu=/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 nt(e){const t=e.toString(),s=[],n={color:[],number:[],var:[]},i=[];let c=0;const l=t.replace(Tu,o=>(H.test(o)?(n.color.push(c),i.push(_o),s.push(H.parse(o))):o.startsWith(wu)?(n.var.push(c),i.push(vu),s.push(o)):(n.number.push(c),i.push(Bo),s.push(parseFloat(o))),++c,Yi)).split(Yi);return{values:s,split:l,indexes:n,types:i}}function qo(e){return nt(e).values}function Uo(e){const{split:t,types:s}=nt(e),n=t.length;return i=>{let c="";for(let r=0;r<n;r++)if(c+=t[r],i[r]!==void 0){const l=s[r];l===Bo?c+=He(i[r]):l===_o?c+=H.transform(i[r]):c+=i[r]}return c}}const Eu=e=>typeof e=="number"?0:e;function Su(e){const t=qo(e);return Uo(e)(t.map(Eu))}const xe={test:xu,parse:qo,createTransformer:Uo,getAnimatableNone:Su};function Ms(e,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(t-e)*6*s:s<1/2?t:s<2/3?e+(t-e)*(2/3-s)*6:e}function bu({hue:e,saturation:t,lightness:s,alpha:n}){e/=360,t/=100,s/=100;let i=0,c=0,r=0;if(!t)i=c=r=s;else{const l=s<.5?s*(1+t):s+t-s*t,o=2*s-l;i=Ms(o,l,e+1/3),c=Ms(o,l,e),r=Ms(o,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(c*255),blue:Math.round(r*255),alpha:n}}function bt(e,t){return s=>s>0?t:e}const B=(e,t,s)=>e+(t-e)*s,Os=(e,t,s)=>{const n=e*e,i=s*(t*t-n)+n;return i<0?0:Math.sqrt(i)},Ru=[Ws,be,Ie],Au=e=>Ru.find(t=>t.test(e));function Zi(e){const t=Au(e);if(!t)return!1;let s=t.parse(e);return t===Ie&&(s=bu(s)),s}const Qi=(e,t)=>{const s=Zi(e),n=Zi(t);if(!s||!n)return bt(e,t);const i={...s};return c=>(i.red=Os(s.red,n.red,c),i.green=Os(s.green,n.green,c),i.blue=Os(s.blue,n.blue,c),i.alpha=B(s.alpha,n.alpha,c),be.transform(i))},Hs=new Set(["none","hidden"]);function Pu(e,t){return Hs.has(e)?s=>s<=0?e:t:s=>s>=1?t:e}const Cu=(e,t)=>s=>t(e(s)),lt=(...e)=>e.reduce(Cu);function ju(e,t){return s=>B(e,t,s)}function kn(e){return typeof e=="number"?ju:typeof e=="string"?Rn(e)?bt:H.test(e)?Qi:Du:Array.isArray(e)?Go:typeof e=="object"?H.test(e)?Qi:Nu:bt}function Go(e,t){const s=[...e],n=s.length,i=e.map((c,r)=>kn(c)(c,t[r]));return c=>{for(let r=0;r<n;r++)s[r]=i[r](c);return s}}function Nu(e,t){const s={...e,...t},n={};for(const i in s)e[i]!==void 0&&t[i]!==void 0&&(n[i]=kn(e[i])(e[i],t[i]));return i=>{for(const c in n)s[c]=n[c](i);return s}}function Lu(e,t){const s=[],n={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const c=t.types[i],r=e.indexes[c][n[c]],l=e.values[r]??0;s[i]=l,n[c]++}return s}const Du=(e,t)=>{const s=xe.createTransformer(t),n=nt(e),i=nt(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?Hs.has(e)&&!i.values.length||Hs.has(t)&&!n.values.length?Pu(e,t):lt(Go(Lu(n,i),i.values),s):bt(e,t)};function zo(e,t,s){return typeof e=="number"&&typeof t=="number"&&typeof s=="number"?B(e,t,s):kn(e)(e,t)}const Vu=e=>{const t=({timestamp:s})=>e(s);return{start:(s=!0)=>F.update(t,s),stop:()=>ye(t),now:()=>K.isProcessing?K.timestamp:J.now()}},Ko=(e,t,s=10)=>{let n="";const i=Math.max(Math.round(t/s),2);for(let c=0;c<i;c++)n+=e(c/(i-1))+", ";return`linear(${n.substring(0,n.length-2)})`},Rt=2e4;function Fn(e){let t=0;const s=50;let n=e.next(t);for(;!n.done&&t<Rt;)t+=s,n=e.next(t);return t>=Rt?1/0:t}function Iu(e,t=100,s){const n=s({...e,keyframes:[0,t]}),i=Math.min(Fn(n),Rt);return{type:"keyframes",ease:c=>n.next(i*c).value/t,duration:he(i)}}const Mu=5;function Wo(e,t,s){const n=Math.max(t-Mu,0);return $o(s-e(n),t-n)}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},Ji=.001;function Ou({duration:e=_.duration,bounce:t=_.bounce,velocity:s=_.velocity,mass:n=_.mass}){let i,c,r=1-t;r=fe(_.minDamping,_.maxDamping,r),e=fe(_.minDuration,_.maxDuration,he(e)),r<1?(i=u=>{const a=u*r,h=a*e,f=a-s,m=Xs(u,r),g=Math.exp(-h);return Ji-f/m*g},c=u=>{const h=u*r*e,f=h*s+s,m=Math.pow(r,2)*Math.pow(u,2)*e,g=Math.exp(-h),p=Xs(Math.pow(u,2),r);return(-i(u)+Ji>0?-1:1)*((f-m)*g)/p}):(i=u=>{const a=Math.exp(-u*e),h=(u-s)*e+1;return-.001+a*h},c=u=>{const a=Math.exp(-u*e),h=(s-u)*(e*e);return a*h});const l=5/e,o=ku(i,c,l);if(e=ue(e),isNaN(o))return{stiffness:_.stiffness,damping:_.damping,duration:e};{const u=Math.pow(o,2)*n;return{stiffness:u,damping:r*2*Math.sqrt(n*u),duration:e}}}const $u=12;function ku(e,t,s){let n=s;for(let i=1;i<$u;i++)n=n-e(n)/t(n);return n}function Xs(e,t){return e*Math.sqrt(1-t*t)}const Fu=["duration","bounce"],Bu=["stiffness","damping","mass"];function er(e,t){return t.some(s=>e[s]!==void 0)}function _u(e){let t={velocity:_.velocity,stiffness:_.stiffness,damping:_.damping,mass:_.mass,isResolvedFromDuration:!1,...e};if(!er(e,Bu)&&er(e,Fu))if(e.visualDuration){const s=e.visualDuration,n=2*Math.PI/(s*1.2),i=n*n,c=2*fe(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:_.mass,stiffness:i,damping:c}}else{const s=Ou(e);t={...t,...s,mass:_.mass},t.isResolvedFromDuration=!0}return t}function At(e=_.visualDuration,t=_.bounce){const s=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:i}=s;const c=s.keyframes[0],r=s.keyframes[s.keyframes.length-1],l={done:!1,value:c},{stiffness:o,damping:u,mass:a,duration:h,velocity:f,isResolvedFromDuration:m}=_u({...s,velocity:-he(s.velocity||0)}),g=f||0,p=u/(2*Math.sqrt(o*a)),y=r-c,x=he(Math.sqrt(o/a)),P=Math.abs(y)<5;n||(n=P?_.restSpeed.granular:_.restSpeed.default),i||(i=P?_.restDelta.granular:_.restDelta.default);let v;if(p<1){const C=Xs(x,p);v=A=>{const V=Math.exp(-p*x*A);return r-V*((g+p*x*y)/C*Math.sin(C*A)+y*Math.cos(C*A))}}else if(p===1)v=C=>
11r-Math.exp(-x*C)*(y+(g+x*y)*C);else{const C=x*Math.sqrt(p*p-1);v=A=>{const V=Math.exp(-p*x*A),T=Math.min(C*A,300);return r-V*((g+p*x*y)*Math.sinh(T)+C*y*Math.cosh(T))/C}}const D={calculatedDuration:m&&h||null,next:C=>{const A=v(C);if(m)l.done=C>=h;else{let V=C===0?g:0;p<1&&(V=C===0?ue(g):Wo(v,C,A));const T=Math.abs(V)<=n,M=Math.abs(r-A)<=i;l.done=T&&M}return l.value=l.done?r:A,l},toString:()=>{const C=Math.min(Fn(D),Rt),A=Ko(V=>D.next(C*V).value,C,30);return C+"ms "+A},toTransition:()=>{}};return D}At.applyToOptions=e=>{const t=Iu(e,100,At);return e.ease=t.ease,e.duration=ue(t.duration),e.type="keyframes",e};function Ys({keyframes:e,velocity:t=0,power:s=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:c=500,modifyTarget:r,min:l,max:o,restDelta:u=.5,restSpeed:a}){const h=e[0],f={done:!1,value:h},m=T=>l!==void 0&&T<l||o!==void 0&&T>o,g=T=>l===void 0?o:o===void 0||Math.abs(l-T)<Math.abs(o-T)?l:o;let p=s*t;const y=h+p,x=r===void 0?y:r(y);x!==y&&(p=x-h);const P=T=>-p*Math.exp(-T/n),v=T=>x+P(T),D=T=>{const M=P(T),U=v(T);f.done=Math.abs(M)<=u,f.value=f.done?x:U};let C,A;const V=T=>{m(f.value)&&(C=T,A=At({keyframes:[f.value,g(f.value)],velocity:Wo(v,T,f.value),damping:i,stiffness:c,restDelta:u,restSpeed:a}))};return V(0),{calculatedDuration:null,next:T=>{let M=!1;return!A&&C===void 0&&(M=!0,D(T),V(T)),C!==void 0&&T>=C?A.next(T-C):(!M&&D(T),f)}}}const it=(e,t,s)=>{const n=t-e;return n===0?1:(s-e)/n};function qu(e,t,s){const n=[],i=s||de.mix||zo,c=e.length-1;for(let r=0;r<c;r++){let l=i(e[r],e[r+1]);if(t){const o=Array.isArray(t)?t[r]||te:t;l=lt(o,l)}n.push(l)}return n}function Uu(e,t,{clamp:s=!0,ease:n,mixer:i}={}){const c=e.length;if(Sn(c===t.length),c===1)return()=>t[0];if(c===2&&t[0]===t[1])return()=>t[1];const r=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=qu(t,n,i),o=l.length,u=a=>{if(r&&a<e[0])return t[0];let h=0;if(o>1)for(;h<e.length-2&&!(a<e[h+1]);h++);const f=it(e[h],e[h+1],a);return l[h](f)};return s?a=>u(fe(e[0],e[c-1],a)):u}function Gu(e,t){const s=e[e.length-1];for(let n=1;n<=t;n++){const i=it(0,t,n);e.push(B(s,1,i))}}function zu(e){const t=[0];return Gu(t,e.length-1),t}function Ku(e,t){return e.map(s=>s*t)}const Ho=(e,t,s)=>(((1-3*s+3*t)*e+(3*s-6*t))*e+3*t)*e,Wu=1e-7,Hu=12;function Xu(e,t,s,n,i){let c,r,l=0;do r=t+(s-t)/2,c=Ho(r,n,i)-e,c>0?s=r:t=r;while(Math.abs(c)>Wu&&++l<Hu);return r}function ct(e,t,s,n){if(e===t&&s===n)return te;const i=c=>Xu(c,0,1,e,s);return c=>c===0||c===1?c:Ho(i(c),t,n)}const Yu=ct(.42,0,1,1),Zu=ct(0,0,.58,1),Xo=ct(.42,0,.58,1),Qu=e=>Array.isArray(e)&&typeof e[0]!="number",Yo=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Zo=e=>t=>1-e(1-t),Qo=ct(.33,1.53,.69,.99),Bn=Zo(Qo),Jo=Yo(Bn),ea=e=>(e*=2)<1?.5*Bn(e):.5*(2-Math.pow(2,-10*(e-1))),_n=e=>1-Math.sin(Math.acos(e)),ta=Zo(_n),sa=Yo(_n),na=e=>Array.isArray(e)&&typeof e[0]=="number",Ju={linear:te,easeIn:Yu,easeInOut:Xo,easeOut:Zu,circIn:_n,circInOut:sa,circOut:ta,backIn:Bn,backInOut:Jo,backOut:Qo,anticipate:ea},eh=e=>typeof e=="string",tr=e=>{if(na(e)){Sn(e.length===4);const[t,s,n,i]=e;return ct(t,s,n,i)}else if(eh(e))return Ju[e];return e};function th(e,t){return e.map(()=>t||Xo).splice(0,e.length-1)}function Xe({duration:e=300,keyframes:t,times:s,ease:n="easeInOut"}){const i=Qu(n)?n.map(tr):tr(n),c={done:!1,value:t[0]},r=Ku(s&&s.length===t.length?s:zu(t),e),l=Uu(r,t,{ease:Array.isArray(i)?i:th(t,i)});return{calculatedDuration:e,next:o=>(c.value=l(o),c.done=o>=e,c)}}const sh=e=>e!==null;function qn(e,{repeat:t,repeatType:s="loop"},n,i=1){const c=e.filter(sh),l=i<0||t&&s!=="loop"&&t%2===1?0:c.length-1;return!l||n===void 0?c[l]:n}const nh={decay:Ys,inertia:Ys,tween:Xe,keyframes:Xe,spring:At};function ia(e){typeof e.type=="string"&&(e.type=nh[e.type])}class Un{constructor(){this.count=0,this.updateFinished()}get finished(){return this._finished}updateFinished(){this.count++,this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,s){return this.finished.then(t,s)}}const ih=e=>e/100;class Bt extends Un{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=(s=!0)=>
11{if(s){const{motionValue:i}=this.options;i&&i.updatedAt!==J.now()&&this.tick(J.now())}if(this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:n}=this.options;n&&n()},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ia(t);const{type:s=Xe,repeat:n=0,repeatDelay:i=0,repeatType:c,velocity:r=0}=t;let{keyframes:l}=t;const o=s||Xe;o!==Xe&&typeof l[0]!="number"&&(this.mixKeyframes=lt(ih,zo(l[0],l[1])),l=[0,100]);const u=o({...t,keyframes:l});c==="mirror"&&(this.mirroredGenerator=o({...t,keyframes:[...l].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Fn(u));const{calculatedDuration:a}=u;this.calculatedDuration=a,this.resolvedDuration=a+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=u}updateTime(t){const s=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(t,s=!1){const{generator:n,totalDuration:i,mixKeyframes:c,mirroredGenerator:r,resolvedDuration:l,calculatedDuration:o}=this;if(this.startTime===null)return n.next(0);const{delay:u=0,keyframes:a,repeat:h,repeatType:f,repeatDelay:m,type:g,onUpdate:p,finalKeyframe:y}=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)),s?this.currentTime=t:this.updateTime(t);const x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),P=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,D=n;if(h){const T=Math.min(this.currentTime,i)/l;let M=Math.floor(T),U=T%1;!U&&T>=1&&(U=1),U===1&&M--,M=Math.min(M,h+1),!!(M%2)&&(f==="reverse"?(U=1-U,m&&(U-=m/l)):f==="mirror"&&(D=r)),v=fe(0,1,U)*l}const C=P?{done:!1,value:a[0]}:D.next(v);c&&(C.value=c(C.value));let{done:A}=C;!P&&o!==null&&(A=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return V&&g!==Ys&&(C.value=qn(a,this.options,y,this.speed)),p&&p(C.value),V&&this.finish(),C}then(t,s){return this.finished.then(t,s)}get duration(){return he(this.calculatedDuration)}get time(){return he(this.currentTime)}set time(t){var s;t=ue(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),(s=this.driver)==null||s.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(J.now());const s=this.playbackSpeed!==t;this.playbackSpeed=t,s&&(this.time=he(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Vu,onPlay:s,startTime:n}=this.options;this.driver||(this.driver=t(c=>this.tick(c))),s&&s();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),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(J.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown()}teardown(){this.notifyFinished(),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 s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),t.observe(this)}}function rh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Re=e=>e*180/Math.PI,Zs=e=>{const t=Re(Math.atan2(e[1],e[0]));return Qs(t)},oh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Zs,rotateZ:Zs,skewX:e=>Re(Math.atan(e[1])),skewY:e=>Re(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Qs=e=>(e=e%360,e<0&&(e+=360),e),sr=Zs,nr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ir=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ah={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:nr,scaleY:ir,scale:e=>(nr(e)+ir(e))/2,rotateX:e=>Qs(Re(Math.atan2(e[6],e[5]))),rotateY:e=>Qs(Re(Math.atan2(-e[2],e[0]))),rotateZ:sr,rotate:sr,skewX:e=>Re(Math.atan(e[4])),skewY:e=>Re(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function rr(e){return e.includes("scale")?1:0}function Js(e,t){if(!e||e==="none")return rr(t);const s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(s)n=ah,i=s;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=oh,i=l}if(!i)return rr(t);const c=n[t],r=i[1].split(",").map(ch);return typeof c=="function"?c(r):r[c]}const lh=(e,t)=>{const{transform:s="none"}=getComputedStyle(e);return Js(s,t)};function ch(e){return parseFloat(e.trim())}const or=e=>e===Ue||e===I,uh=new Set(["x","y","z"]),hh=_e.filter(e=>!uh.has(e));function dh(e){const t=[];
11return hh.forEach(s=>{const n=e.getValue(s);n!==void 0&&(t.push([s,n.get()]),n.set(s.startsWith("scale")?1:0))}),t}const Ae={width:({x:e},{paddingLeft:t="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),height:({y:e},{paddingTop:t="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),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})=>Js(t,"x"),y:(e,{transform:t})=>Js(t,"y")};Ae.translateX=Ae.x;Ae.translateY=Ae.y;const Pe=new Set;let en=!1,tn=!1,sn=!1;function ra(){if(tn){const e=Array.from(Pe).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),s=new Map;t.forEach(n=>{const i=dh(n);i.length&&(s.set(n,i),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const i=s.get(n);i&&i.forEach(([c,r])=>{var l;(l=n.getValue(c))==null||l.set(r)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}tn=!1,en=!1,Pe.forEach(e=>e.complete(sn)),Pe.clear()}function oa(){Pe.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tn=!0)})}function fh(){sn=!0,oa(),ra(),sn=!1}class Gn{constructor(t,s,n,i,c,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=s,this.name=n,this.motionValue=i,this.element=c,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Pe.add(this),en||(en=!0,F.read(oa),F.resolveKeyframes(ra))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:s,element:n,motionValue:i}=this;if(t[0]===null){const c=i==null?void 0:i.get(),r=t[t.length-1];if(c!==void 0)t[0]=c;else if(n&&s){const l=n.readValue(s,r);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=r),i&&c===void 0&&i.set(t[0])}rh(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Pe.delete(this)}cancel(){this.state==="scheduled"&&(Pe.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const mh=e=>e.startsWith("--");function ph(e,t,s){mh(t)?e.style.setProperty(t,s):e.style[t]=s}function zn(e){let t;return()=>(t===void 0&&(t=e()),t)}const gh=zn(()=>window.ScrollTimeline!==void 0),yh={};function xh(e,t){const s=zn(e);return()=>yh[t]??s()}const aa=xh(()=>{try{document.createElement("div").animate({opacity:0}
11,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),We=([e,t,s,n])=>`cubic-bezier(${e}, ${t}, ${s}, ${n})`,ar={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:We([0,.65,.55,1]),circOut:We([.55,0,1,.45]),backIn:We([.31,.01,.66,-.59]),backOut:We([.33,1.53,.69,.99])};function la(e,t){if(e)return typeof e=="function"?aa()?Ko(e,t):"ease-out":na(e)?We(e):Array.isArray(e)?e.map(s=>la(s,t)||ar.easeOut):ar[e]}function vh(e,t,s,{delay:n=0,duration:i=300,repeat:c=0,repeatType:r="loop",ease:l="easeOut",times:o}={},u=void 0){const a={[t]:s};o&&(a.offset=o);const h=la(l,i);Array.isArray(h)&&(a.easing=h);const f={delay:n,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:c+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(a,f)}function ca(e){return typeof e=="function"&&"applyToOptions"in e}function wh({type:e,...t}){return ca(e)&&aa()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Th extends Un{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:s,name:n,keyframes:i,pseudoElement:c,allowFlatten:r=!1,finalKeyframe:l,onComplete:o}=t;this.isPseudoElement=!!c,this.allowFlatten=r,this.options=t,Sn(typeof t.type!="string");const u=wh(t);this.animation=vh(s,n,i,u,c),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const a=qn(i,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(a):ph(s,n,a),this.animation.cancel()}o==null||o(),this.notifyFinished()},this.animation.oncancel=()=>this.notifyFinished()}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,s;(s=(t=this.animation).finish)==null||s.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 t,s;this.isPseudoElement||(s=(t=this.animation).commitStyles)==null||s.call(t)}get duration(){var s,n;const t=((n=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:n.call(s).duration)||0;return he(Number(t))}get time(){return he(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ue(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 Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:s}){var n;return this.allowFlatten&&((n=this.animation.effect)==null||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&gh()?(this.animation.timeline=t,te):s(this)}}const ua={anticipate:ea,backInOut:Jo,circInOut:sa};function Eh(e){return e in ua}function Sh(e){typeof e.ease=="string"&&Eh(e.ease)&&(e.ease=ua[e.ease])}const lr=10;class bh extends Th{constructor(t){Sh(t),ia(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:s,onUpdate:n,onComplete:i,element:c,...r}=this.options;if(!s)return;if(t!==void 0){s.set(t);return}const l=new Bt({...r,autoplay:!1}),o=ue(this.finishedTime??this.time);s.setWithVelocity(l.sample(o-lr).value,l.sample(o).value,lr),l.stop()}}const cr=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xe.test(e)||e==="0")&&!e.startsWith("url("));function Rh(e){const t=e[0];if(e.length===1)return!0;for(let s=0;s<e.length;s++)if(e[s]!==t)return!0}function Ah(e,t,s,n){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const c=e[e.length-1],r=cr(i,t),l=cr(c,t);return!r||!l?!1:Rh(e)||(s==="spring"||ca(s))&&n}const Ph=new Set(["opacity","clipPath","filter","transform"]),Ch=zn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function jh(e){const{motionValue:t,name:s,repeatDelay:n,repeatType:i,damping:c,type:r}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:o}=t.owner.getProps();return Ch()&&s&&Ph.has(s)&&(s!=="transform"||!o)&&!l&&!n&&i!=="mirror"&&c!==0&&r!=="inertia"}const Nh=40;class Lh extends Un{constructor({autoplay:t=!0,delay:s=0,type:n="keyframes",repeat:i=0,repeatDelay:c=0,repeatType:r="loop",keyframes:l,name:o,motionValue:u,element:a,...h}){var g;super(),this.stop=()=>{var p,y;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=J.now();
11const f={autoplay:t,delay:s,type:n,repeat:i,repeatDelay:c,repeatType:r,name:o,motionValue:u,element:a,...h},m=(a==null?void 0:a.KeyframeResolver)||Gn;this.keyframeResolver=new m(l,(p,y,x)=>this.onKeyframesResolved(p,y,f,!x),o,u,a),(g=this.keyframeResolver)==null||g.scheduleResolve()}onKeyframesResolved(t,s,n,i){this.keyframeResolver=void 0;const{name:c,type:r,velocity:l,delay:o,isHandoff:u,onUpdate:a}=n;this.resolvedAt=J.now(),Ah(t,c,r,l)||((de.instantAnimations||!o)&&(a==null||a(qn(t,n,s))),t[0]=t[t.length-1],n.duration=0,n.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Nh?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...n,keyframes:t},m=!u&&jh(f)?new bh({...f,element:f.motionValue.owner.current}):new Bt(f);m.finished.then(()=>this.notifyFinished()).catch(te),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,s){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),fh()),this._animation}get duration(){return this.animation.duration}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()}}const Kn=(e,t,s,n={},i,c)=>r=>{const l=Mn(n,e)||{},o=l.delay||n.delay||0;let{elapsed:u=0}=n;u=u-ue(o);const a={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{r(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:c?void 0:i};du(l)||Object.assign(a,hu(e,a)),a.duration&&(a.duration=ue(a.duration)),a.repeatDelay&&(a.repeatDelay=ue(a.repeatDelay)),a.from!==void 0&&(a.keyframes[0]=a.from);let h=!1;if((a.type===!1||a.duration===0&&!a.repeatDelay)&&(a.duration=0,a.delay===0&&(h=!0)),(de.instantAnimations||de.skipAnimations)&&(h=!0,a.duration=0,a.delay=0),a.allowFlatten=!l.type&&!l.ease,h&&!c&&t.get()!==void 0){const f=ou(a.keyframes,l);if(f!==void 0){F.update(()=>{a.onUpdate(f),a.onComplete()});return}}return l.isSync?new Bt(a):new Lh(a)},ha=new Set(["width","height","top","left","right","bottom",..._e]);function Dh({protectedKeys:e,needsAnimating:t},s){const n=e.hasOwnProperty(s)&&t[s]!==!0;return t[s]=!1,n}function da(e,t,{delay:s=0,transitionOverride:n,type:i}={}){let{transition:c=e.getDefaultTransition(),transitionEnd:r,...l}=t;n&&(c=n);const o=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const a in l){const h=e.getValue(a,e.latestValues[a]??null),f=l[a];if(f===void 0||u&&Dh(u,a))continue;const m={delay:s,...Mn(c||{},a)},g=h.get();if(g!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===g&&!m.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const x=ko(e);if(x){const P=window.MotionHandoffAnimation(x,a,F);P!==null&&(m.startTime=P,p=!0)}}Ks(e,a),h.start(Kn(a,h,f,e.shouldReduceMotion&&ha.has(a)?{type:!1}:m,e,p));const y=h.animation;y&&o.push(y)}return r&&Promise.all(o).then(()=>{F.update(()=>{r&&nu(e,r)})}),o}function nn(e,t,s={}){var o;const n=st(e,t,s.type==="exit"?(o=e.presenceContext)==null?void 0:o.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=n||{};s.transitionOverride&&(i=s.transitionOverride);const c=n?()=>Promise.all(da(e,n,s)):()=>Promise.resolve(),r=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:a=0,staggerChildren:h,staggerDirection:f}=i;return Vh(e,t,a+u,h,f,s)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,a]=l==="beforeChildren"?[c,r]:[r,c];return u().then(()=>a())}else return Promise.all([c(),r(s.delay)])}function Vh(e,t,s=0,n=0,i=1,c){const r=[],l=(e.variantChildren.size-1)*n,o=i===1?(u=0)=>u*n:(u=0)=>
vendor: 64,229 bytes, line 11
11l-u*n;return Array.from(e.variantChildren).sort(Ih).forEach((u,a)=>{u.notify("AnimationStart",t),r.push(nn(u,t,{...c,delay:s+o(a)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(r)}function Ih(e,t){return e.sortNodePosition(t)}function Mh(e,t,s={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(c=>nn(e,c,s));n=Promise.all(i)}else if(typeof t=="string")n=nn(e,t,s);else{const i=typeof t=="function"?st(e,t,s.custom):t;n=Promise.all(da(e,i,s))}return n.then(()=>{e.notify("AnimationComplete",t)})}function fa(e,t){if(!Array.isArray(t))return!1;const s=t.length;if(s!==e.length)return!1;for(let n=0;n<s;n++)if(t[n]!==e[n])return!1;return!0}const Oh=wn.length;function ma(e){if(!e)return;if(!e.isControllingVariants){const s=e.parent?ma(e.parent)||{}:{};return e.props.initial!==void 0&&(s.initial=e.props.initial),s}const t={};for(let s=0;s<Oh;s++){const n=wn[s],i=e.props[n];(Je(i)||i===!1)&&(t[n]=i)}return t}const $h=[...vn].reverse(),kh=vn.length;function Fh(e){return t=>Promise.all(t.map(({animation:s,options:n})=>Mh(e,s,n)))}function Bh(e){let t=Fh(e),s=ur(),n=!0;const i=o=>(u,a)=>{var f;const h=st(e,a,o==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(h){const{transition:m,transitionEnd:g,...p}=h;u={...u,...p,...g}}return u};function c(o){t=o(e)}function r(o){const{props:u}=e,a=ma(e.parent)||{},h=[],f=new Set;let m={},g=1/0;for(let y=0;y<kh;y++){const x=$h[y],P=s[x],v=u[x]!==void 0?u[x]:a[x],D=Je(v),C=x===o?P.isActive:null;C===!1&&(g=y);let A=v===a[x]&&v!==u[x]&&D;if(A&&n&&e.manuallyAnimateOnMount&&(A=!1),P.protectedKeys={...m},!P.isActive&&C===null||!v&&!P.prevProp||kt(v)||typeof v=="boolean")continue;const V=_h(P.prevProp,v);let T=V||x===o&&P.isActive&&!A&&D||y>g&&D,M=!1;const U=Array.isArray(v)?v:[v];let se=U.reduce(i(x),{});C===!1&&(se={});const{prevResolvedValues:me={}}=P,pe={...me,...se},R=S=>{T=!0,f.has(S)&&(M=!0,f.delete(S)),P.needsAnimating[S]=!0;const w=e.getValue(S);w&&(w.liveStyle=!1)};for(const S in pe){const w=se[S],j=me[S];if(m.hasOwnProperty(S))continue;let L=!1;zs(w)&&zs(j)?L=!fa(w,j):L=w!==j,L?w!=null?R(S):f.add(S):w!==void 0&&f.has(S)?R(S):P.protectedKeys[S]=!0}P.prevProp=v,P.prevResolvedValues=se,P.isActive&&(m={...m,...se}),n&&e.blockInitialAnimation&&(T=!1),T&&(!(A&&V)||M)&&h.push(...U.map(S=>({animation:S,options:{type:x}})))}if(f.size){const y={};if(typeof u.initial!="boolean"){const x=st(e,Array.isArray(u.initial)?u.initial[0]:u.initial);x&&x.transition&&(y.transition=x.transition)}f.forEach(x=>{const P=e.getBaseTarget(x),v=e.getValue(x);v&&(v.liveStyle=!0),y[x]=P??null}),h.push({animation:y})}let p=!!h.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(h):Promise.resolve()}function l(o,u){var h;if(s[o].isActive===u)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(f=>{var m;return(m=f.animationState)==null?void 0:m.setActive(o,u)}),s[o].isActive=u;const a=r(o);for(const f in s)s[f].protectedKeys={};return a}return{animateChanges:r,setActive:l,setAnimateFunction:c,getState:()=>s,reset:()=>{s=ur(),n=!0}}}function _h(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fa(t,e):!1}function we(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ur(){return{animate:we(!0),whileInView:we(),whileHover:we(),whileTap:we(),whileDrag:we(),whileFocus:we(),exit:we()}}class ve{constructor(t){this.isMounted=!1,this.node=t}update(){}}class qh extends ve{constructor(t){super(t),t.animationState||(t.animationState=Bh(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();kt(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:s}=this.node.prevProps||{};t!==s&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Uh=0;class Gh extends ve{constructor(){super(...arguments),this.id=Uh++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:s}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);s&&!t&&i.then(()=>{s(this.id)})}mount(){const{register:t,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const zh={animation:{Feature:qh},exit:{Feature:Gh}};function rt(e,t,s,n={passive:!0}){return e.addEventListener(t,s,n),()=>e.removeEventListener(t,s)}const Wn=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ut(e){return{point:{x:e.pageX,y:e.pageY}}}const Kh=e=>t=>Wn(t)&&e(t,ut(t));function Ye(e,t,s,n){return rt(e,t,Kh(s),n)}function pa({top:e,left:t,right:s,bottom:n}){return{x:{min:t,max:s},y:{min:e,max:n}}}function Wh({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Hh(e,t){if(!t)return e;const s=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}const ga=1e-4,Xh=1-ga,Yh=1+ga,ya=.01,Zh=0-ya,Qh=0+ya;function Y(e){return e.max-e.min}function Jh(e,t,s){return Math.abs(e-t)<=s}function hr(e,t,s,n=.5){e.origin=n,e.originPoint=B(t.min,t.max,e.origin),e.scale=Y(s)/Y(t),e.translate=B(s.min,s.max,e.origin)-e.originPoint,(e.scale>=Xh&&e.scale<=Yh||isNaN(e.scale))&&(e.scale=1),(e.translate>=Zh&&e.translate<=Qh||isNaN(e.translate))&&(e.translate=0)}function Ze(e,t,s,n){hr(e.x,t.x,s.x,n?n.originX:void 0),hr(e.y,t.y,s.y,n?n.originY:void 0)}function dr(e,t,s){e.min=s.min+t.min,e.max=e.min+Y(t)}function ed(e,t,s){dr(e.x,t.x,s.x),dr(e.y,t.y,s.y)}function fr(e,t,s){e.min=t.min-s.min,e.max=e.min+Y(t)}function Qe(e,t,s){fr(e.x,t.x,s.x),fr(e.y,t.y,s.y)}const mr=()=>({translate:0,scale:1,origin:0,originPoint:0}),Me=()=>({x:mr(),y:mr()}),pr=()=>({min:0,max:0}),q=()=>({x:pr(),y:pr()});function ie(e){return[e("x"),e("y")]}function $s(e){return e===void 0||e===1}function rn({scale:e,scaleX:t,scaleY:s}){return!$s(e)||!$s(t)||!$s(s)}function Se(e){return rn(e)||xa(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xa(e){return gr(e.x)||gr(e.y)}function gr(e){return e&&e!=="0%"}function Pt(e,t,s){const n=e-s,i=t*n;return s+i}function yr(e,t,s,n,i){return i!==void 0&&(e=Pt(e,i,n)),Pt(e,s,n)+t}function on(e,t=0,s=1,n,i){e.min=yr(e.min,t,s,n,i),e.max=yr(e.max,t,s,n,i)}function va(e,{x:t,y:s}){on(e.x,t.translate,t.scale,t.originPoint),on(e.y,s.translate,s.scale,s.originPoint)}const xr=.999999999999,vr=1.0000000000001;function td(e,t,s,n=!1){const i=s.length;if(!i)return;t.x=t.y=1;let c,r;for(let l=0;l<i;l++){c=s[l],r=c.projectionDelta;const{visualElement:o}=c.options;o&&o.props.style&&o.props.style.display==="contents"||(n&&c.options.layoutScroll&&c.scroll&&c!==c.root&&$e(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),r&&(t.x*=r.x.scale,t.y*=r.y.scale,va(e,r)),n&&Se(c.latestValues)&&$e(e,c.latestValues))}t.x<vr&&t.x>xr&&(t.x=1),t.y<vr&&t.y>xr&&(t.y=1)}function Oe(e,t){e.min=e.min+t,e.max=e.max+t}function wr(e,t,s,n,i=.5){const c=B(e.min,e.max,i);on(e,t,s,c,n)}function $e(e,t){wr(e.x,t.x,t.scaleX,t.scale,t.originX),wr(e.y,t.y,t.scaleY,t.scale,t.originY)}function wa(e,t){return pa(Hh(e.getBoundingClientRect(),t))}function sd(e,t,s){const n=wa(e,s),{scroll:i}=t;return i&&(Oe(n.x,i.offset.x),Oe(n.y,i.offset.y)),n}const Ta=({current:e})=>e?e.ownerDocument.defaultView:null,Tr=(e,t)=>Math.abs(e-t);function nd(e,t){const s=Tr(e.x,t.x),n=Tr(e.y,t.y);return Math.sqrt(s**2+n**2)}class Ea{constructor(t,s,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:c=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Fs(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=nd(h.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:g}=h,{timestamp:p}=K;this.history.push({...g,timestamp:p});const{onStart:y,onMove:x}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ks(f,this.transformPagePoint),F.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Fs(h.type==="pointercancel"?this.lastMoveEventInfo:ks(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(h,y),g&&g(h,y)},!Wn(t))return;this.dragSnapToOrigin=c,this.handlers=s,this.transformPagePoint=n,this.contextWindow=i||window;const r=ut(t),l=ks(r,this.transformPagePoint),{point:o}=l,{timestamp:u}=K;this.history=[{...o,timestamp:u}];const{onSessionStart:a}=s;a&&a(t,Fs(l,this.history)),this.removeListeners=lt(Ye(this.contextWindow,"pointermove",this.handlePointerMove),Ye(this.contextWindow,"pointerup",this.handlePointerUp),Ye(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ye(this.updatePoint)}}function ks(e,t){return t?{point:t(e.point)}:e}function Er(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Fs({point:e},t){return{point:e,delta:Er(e,Sa(t)),offset:Er(e,id(t)),velocity:rd(t,.1)}}function id(e){return e[0]}function Sa(e){return e[e.length-1]}function rd(e,t){if(e.length<2)return{x:0,y:0};let s=e.length-1,n=null;const i=Sa(e);for(;s>=0&&(n=e[s],!(i.timestamp-n.timestamp>ue(t)));)s--;if(!n)return{x:0,y:0};const c=he(i.timestamp-n.timestamp);if(c===0)return{x:0,y:0};const r={x:(i.x-n.x)/c,y:(i.y-n.y)/c};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function od(e,{min:t,max:s},n){return t!==void 0&&e<t?e=n?B(t,e,n.min):Math.max(e,t):s!==void 0&&e>s&&(e=n?B(s,e,n.max):Math.min(e,s)),e}function Sr(e,t,s){return{min:t!==void 0?e.min+t:void 0,max:s!==void 0?e.max+s-(e.max-e.min):void 0}}function ad(e,{top:t,left:s,bottom:n,right:i}){return{x:Sr(e.x,s,i),y:Sr(e.y,t,n)}}function br(e,t){let s=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([s,n]=[n,s]),{min:s,max:n}}function ld(e,t){return{x:br(e.x,t.x),y:br(e.y,t.y)}}function cd(e,t){let s=.5;const n=Y(e),i=Y(t);return i>n?s=it(t.min,t.max-n,e.min):n>i&&(s=it(e.min,e.max-i,t.min)),fe(0,1,s)}function ud(e,t){const s={};return t.min!==void 0&&(s.min=t.min-e.min),t.max!==void 0&&(s.max=t.max-e.min),s}const an=.35;function hd(e=an){return e===!1?e=0:e===!0&&(e=an),{x:Rr(e,"left","right"),y:Rr(e,"top","bottom")}}function Rr(e,t,s){return{min:Ar(e,t),max:Ar(e,s)}}function Ar(e,t){return typeof e=="number"?e:e[t]||0}const re={x:!1,y:!1};function ba(){return re.x||re.y}function dd(e){return e==="x"||e==="y"?re[e]?null:(re[e]=!0,()=>{re[e]=!1}):re.x||re.y?null:(re.x=re.y=!0,()=>{re.x=re.y=!1})}const fd=new WeakMap;class md{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=q(),this.visualElement=t}start(t,{snapToCursor:s=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=a=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(ut(a).point)},c=(a,h)=>{const{drag:f,dragPropagation:m,onDragStart:g}=this.getProps();if(f&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=dd(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ie(y=>{let x=this.getAxisMotionValue(y).get()||0;if(ce.test(x)){const{projection:P}=this.visualElement;if(P&&P.layout){const v=P.layout.layoutBox[y];v&&(x=Y(v)*(parseFloat(x)/100))}}this.originPoint[y]=x}),g&&F.postRender(()=>g(a,h)),Ks(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},r=(a,h)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:g,onDrag:p}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=h;if(m&&this.currentDirection===null){this.currentDirection=pd(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),p&&p(a,h)},l=(a,h)=>this.stop(a,h),o=()=>ie(a=>{var h;return this.getAnimationState(a)==="paused"&&((h=this.getAxisMotionValue(a).animation)==null?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Ea(t,{onSessionStart:i,onStart:c,onMove:r,onSessionEnd:l,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ta(this.visualElement)})}stop(t,s){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=s;this.startAnimation(i);const{onDragEnd:c}=this.getProps();c&&F.postRender(()=>c(t,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:s}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(t,s,n){const{drag:i}=this.getProps();if(!n||!pt(t,i,this.currentDirection))return;const c=this.getAxisMotionValue(t);let r=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(r=od(r,this.constraints[t],this.elastic[t])),c.set(r)}resolveConstraints(){var c;const{dragConstraints:t,dragElastic:s}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(c=this.visualElement.projection)==null?void 0:c.layout,i=this.constraints;t&&Ve(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=ad(n.layoutBox,t):this.constraints=!1,this.elastic=hd(s),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ie(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=ud(n.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!Ve(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const c=sd(n,i.root,this.visualElement.getTransformPagePoint());let r=ld(i.layout.layoutBox,c);if(s){const l=s(Wh(r));this.hasMutatedConstraints=!!l,l&&(r=pa(l))}return r}startAnimation(t){const{drag:s,dragMomentum:n,dragElastic:i,dragTransition:c,dragSnapToOrigin:r,onDragTransitionEnd:l}=this.getProps(),o=this.constraints||{},u=ie(a=>{if(!pt(a,s,this.currentDirection))return;let h=o&&o[a]||{};r&&(h={min:0,max:0});const f=i?200:1e6,m=i?40:1e7,g={type:"inertia",velocity:n?t[a]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...c,...h};return this.startAxisValueAnimation(a,g)});return Promise.all(u).then(l)}startAxisValueAnimation(t,s){const n=this.getAxisMotionValue(t);return Ks(this.visualElement,t),n.start(Kn(t,n,0,s,this.visualElement,!1))}stopAnimation(){ie(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ie(t=>{var s;return(s=this.getAxisMotionValue(t).animation)==null?void 0:s.pause()})}getAnimationState(t){var s;return(s=this.getAxisMotionValue(t).animation)==null?void 0:s.state}getAxisMotionValue(t){const s=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[s];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ie(s=>{const{drag:n}=this.getProps();if(!pt(s,n,this.currentDirection))return;const{projection:i}=this.visualElement,c=this.getAxisMotionValue(s);if(i&&i.layout){const{min:r,max:l}=i.layout.layoutBox[s];c.set(t[s]-B(r,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:n}=this.visualElement;if(!Ve(s)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ie(r=>{const l=this.getAxisMotionValue(r);if(l&&this.constraints!==!1){const o=l.get();i[r]=cd({min:o,max:o},this.constraints[r])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ie(r=>{if(!pt(r,t,null))return;const l=this.getAxisMotionValue(r),{min:o,max:u}=this.constraints[r];l.set(B(o,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;fd.set(this.visualElement,this);const t=this.visualElement.current,s=Ye(t,"pointerdown",o=>{const{drag:u,dragListener:a=!0}=this.getProps();u&&a&&this.start(o)}),n=()=>{const{dragConstraints:o}=this.getProps();Ve(o)&&o.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,c=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),F.read(n);const r=rt(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:o,hasLayoutChanged:u})=>{this.isDragging&&u&&(ie(a=>{const h=this.getAxisMotionValue(a);h&&(this.originPoint[a]+=o[a].translate,h.set(h.get()+o[a].translate))}),this.visualElement.render())});return()=>{r(),s(),c(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:c=!1,dragElastic:r=an,dragMomentum:l=!0}=t;return{...t,drag:s,dragDirectionLock:n,dragPropagation:i,dragConstraints:c,dragElastic:r,dragMomentum:l}}}function pt(e,t,s){return(t===!0||t===e)&&(s===null||s===e)}function pd(e,t=10){let s=null;return Math.abs(e.y)>t?s="y":Math.abs(e.x)>t&&(s="x"),s}class gd extends ve{constructor(t){super(t),this.removeGroupControls=te,this.removeListeners=te,this.controls=new md(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||te}unmount(){this.removeGroupControls(),this.removeListeners()}}const Pr=e=>(t,s)=>{e&&F.postRender(()=>e(t,s))};class yd extends ve{constructor(){super(...arguments),this.removePointerDownListener=te}onPointerDown(t){this.session=new Ea(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ta(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:s,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Pr(t),onStart:Pr(s),onMove:n,onEnd:(c,r)=>{delete this.session,i&&F.postRender(()=>i(c,r))}}}mount(){this.removePointerDownListener=Ye(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const vt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Cr(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ke={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(I.test(e))e=parseFloat(e);else return e;const s=Cr(e,t.target.x),n=Cr(e,t.target.y);return`${s}% ${n}%`}},xd={correct:(e,{treeScale:t,projectionDelta:s})=>{const n=e,i=xe.parse(e);if(i.length>5)return n;const c=xe.createTransformer(e),r=typeof i[0]!="number"?1:0,l=s.x.scale*t.x,o=s.y.scale*t.y;i[0+r]/=l,i[1+r]/=o;const u=B(l,o,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),c(i)}};class vd extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:n,layoutId:i}=this.props,{projection:c}=t;Lc(wd),c&&(s.group&&s.group.add(c),n&&n.register&&i&&n.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),vt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:s,visualElement:n,drag:i,isPresent:c}=this.props,{projection:r}=n;return r&&(r.isPresent=c,i||t.layoutDependency!==s||s===void 0||t.isPresent!==c?r.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?r.promote():r.relegate()||F.postRender(()=>{const l=r.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),En.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ra(e){const[t,s]=uc(),n=b.useContext(vo);return d.jsx(vd,{...e,layoutGroup:n,switchLayoutGroup:b.useContext(Ao),isPresent:t,safeToRemove:s})}const wd={borderRadius:{...Ke,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ke,borderTopRightRadius:Ke,borderBottomLeftRadius:Ke,borderBottomRightRadius:Ke,boxShadow:xd};function Td(e,t,s){const n=z(e)?e:Le(e);return n.start(Kn("",n,t,s)),n.animation}function Ed(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Sd=(e,t)=>e.depth-t.depth;class bd{constructor(){this.children=[],this.isDirty=!1}add(t){Dn(this.children,t),this.isDirty=!0}remove(t){Vn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Sd),this.isDirty=!1,this.children.forEach(t)}}function Rd(e,t){const s=J.now(),n=({timestamp:i})=>{const c=i-s;c>=t&&(ye(n),e(c-t))};return F.setup(n,!0),()=>ye(n)}const Aa=["TopLeft","TopRight","BottomLeft","BottomRight"],Ad=Aa.length,jr=e=>typeof e=="string"?parseFloat(e):e,Nr=e=>typeof e=="number"||I.test(e);function Pd(e,t,s,n,i,c){i?(e.opacity=B(0,s.opacity??1,Cd(n)),e.opacityExit=B(t.opacity??1,0,jd(n))):c&&(e.opacity=B(t.opacity??1,s.opacity??1,n));for(let r=0;r<Ad;r++){const l=`border${Aa[r]}Radius`;let o=Lr(t,l),u=Lr(s,l);if(o===void 0&&u===void 0)continue;o||(o=0),u||(u=0),o===0||u===0||Nr(o)===Nr(u)?(e[l]=Math.max(B(jr(o),jr(u),n),0),(ce.test(u)||ce.test(o))&&(e[l]+="%")):e[l]=u}(t.rotate||s.rotate)&&(e.rotate=B(t.rotate||0,s.rotate||0,n))}function Lr(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Cd=Pa(0,.5,ta),jd=Pa(.5,.95,te);function Pa(e,t,s){return n=>n<e?0:n>t?1:s(it(e,t,n))}function Dr(e,t){e.min=t.min,e.max=t.max}function ne(e,t){Dr(e.x,t.x),Dr(e.y,t.y)}function Vr(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ir(e,t,s,n,i){return e-=t,e=Pt(e,1/s,n),i!==void 0&&(e=Pt(e,1/i,n)),e}function Nd(e,t=0,s=1,n=.5,i,c=e,r=e){if(ce.test(t)&&(t=parseFloat(t),t=B(r.min,r.max,t/100)-r.min),typeof t!="number")return;let l=B(c.min,c.max,n);e===c&&(l-=t),e.min=Ir(e.min,t,s,l,i),e.max=Ir(e.max,t,s,l,i)}function Mr(e,t,[s,n,i],c,r){Nd(e,t[s],t[n],t[i],t.scale,c,r)}const Ld=["x","scaleX","originX"],Dd=["y","scaleY","originY"];function Or(e,t,s,n){Mr(e.x,t,Ld,s?s.x:void 0,n?n.x:void 0),Mr(e.y,t,Dd,s?s.y:void 0,n?n.y:void 0)}function $r(e){return e.translate===0&&e.scale===1}function Ca(e){return $r(e.x)&&$r(e.y)}function kr(e,t){return e.min===t.min&&e.max===t.max}function Vd(e,t){return kr(e.x,t.x)&&kr(e.y,t.y)}function Fr(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ja(e,t){return Fr(e.x,t.x)&&Fr(e.y,t.y)}function Br(e){return Y(e.x)/Y(e.y)}function _r(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Id{constructor(){this.members=[]}add(t){Dn(this.members,t),t.scheduleRender()}remove(t){if(Vn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(t){const s=this.members.findIndex(i=>t===i);if(s===0)return!1;let n;for(let i=s;i>=0;i--){const c=this.members[i];if(c.isPresent!==!1){n=c;break}}return n?(this.promote(n),!0):!1}promote(t,s){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,s&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:s,resumingFrom:n}=t;s.onExitComplete&&s.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Md(e,t,s){let n="";const i=e.x.translate/t.x,c=e.y.translate/t.y,r=(s==null?void 0:s.z)||0;if((i||c||r)&&(n=`translate3d(${i}px, ${c}px, ${r}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),s){const{transformPerspective:u,rotate:a,rotateX:h,rotateY:f,skewX:m,skewY:g}=s;u&&(n=`perspective(${u}px) ${n}`),a&&(n+=`rotate(${a}deg) `),h&&(n+=`rotateX(${h}deg) `),f&&(n+=`rotateY(${f}deg) `),m&&(n+=`skewX(${m}deg) `),g&&(n+=`skewY(${g}deg) `)}const l=e.x.scale*t.x,o=e.y.scale*t.y;return(l!==1||o!==1)&&(n+=`scale(${l}, ${o})`),n||"none"}const Bs=["","X","Y","Z"],Od={visibility:"hidden"},$d=1e3;let kd=0;function _s(e,t,s,n){const{latestValues:i}=t;i[e]&&(s[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Na(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const s=ko(t);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:i,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",F,!(i||c))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&Na(n)}function La({attachResizeListener:e,defaultParent:t,measureScroll:s,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(r={},l=t==null?void 0:t()){this.id=kd++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(_d),this.nodes.forEach(Kd),this.nodes.forEach(Wd),this.nodes.forEach(qd)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new bd)}addEventListener(r,l){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new In),this.eventHandlers.get(r).add(l)}notifyListeners(r,...l){const o=this.eventHandlers.get(r);o&&o.notify(...l)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Ed(r),this.instance=r;const{layoutId:l,layout:o,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(o||l)&&(this.isLayoutDirty=!0),e){let a;const h=()=>this.root.updateBlockedByResize=!1;e(r,()=>{this.root.updateBlockedByResize=!0,a&&a(),a=Rd(h,250),vt.hasAnimatedSinceResize&&(vt.hasAnimatedSinceResize=!1,this.nodes.forEach(Ur))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||o)&&this.addEventListener("didUpdate",({delta:a,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||Qd,{onLayoutAnimationStart:p,onLayoutAnimationComplete:y}=u.getProps(),x=!this.targetLayout||!ja(this.targetLayout,m),P=!h&&f;if(this.options.layoutRoot||this.resumeFrom||P||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(a,P);const v={...Mn(g,"layout"),onPlay:p,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v)}else h||Ur(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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(),ye(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(Hd),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&&Na(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){const h=this.path[a];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:o}=this.options;if(l===void 0&&!o)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qr);return}this.isUpdating||this.nodes.forEach(Gd),this.isUpdating=!1,this.nodes.forEach(zd),this.nodes.forEach(Fd),this.nodes.forEach(Bd),this.clearAllSnapshots();const l=J.now();K.delta=fe(0,1e3/60,l-K.timestamp),K.timestamp=l,K.isProcessing=!0,Vs.update.process(K),Vs.preRender.process(K),Vs.render.process(K),K.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,En.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ud),this.sharedNodes.forEach(Xd)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,F.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){F.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Y(this.snapshot.measuredBox.x)&&!Y(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 o=0;o<this.path.length;o++)this.path[o].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=q(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(l=!1),l&&this.instance){const o=n(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:o,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:o}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Ca(this.projectionDelta),o=this.getTransformTemplate(),u=o?o(this.latestValues,""):void 0,a=u!==this.prevTransformTemplateValue;r&&this.instance&&(l||Se(this.latestValues)||a)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const l=this.measurePageBox();let o=this.removeElementScroll(l);return r&&(o=this.removeTransform(o)),Jd(o),{animationId:this.root.animationId,measuredBox:l,layoutBox:o,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:r}=this.options;if(!r)return q();const l=r.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(ef))){const{scroll:a}=this.root;a&&(Oe(l.x,a.offset.x),Oe(l.y,a.offset.y))}return l}removeElementScroll(r){var o;const l=q();if(ne(l,r),(o=this.scroll)!=null&&o.wasRoot)return l;for(let u=0;u<this.path.length;u++){const a=this.path[u],{scroll:h,options:f}=a;a!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&ne(l,r),Oe(l.x,h.offset.x),Oe(l.y,h.offset.y))}return l}applyTransform(r,l=!1){const o=q();ne(o,r);for(let u=0;u<this.path.length;u++){const a=this.path[u];!l&&a.options.layoutScroll&&a.scroll&&a!==a.root&&$e(o,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),Se(a.latestValues)&&$e(o,a.latestValues)}return Se(this.latestValues)&&$e(o,this.latestValues),o}removeTransform(r){const l=q();ne(l,r);for(let o=0;o<this.path.length;o++){const u=this.path[o];if(!u.instance||!Se(u.latestValues))continue;rn(u.latestValues)&&u.updateSnapshot();const a=q(),h=u.measurePageBox();ne(a,h),Or(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,a)}return Se(this.latestValues)&&Or(l,this.latestValues),l}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 l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const o=!!this.resumingFrom||this!==l;if(!(r||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:a,layoutId:h}=this.options;if(!(!this.layout||!(a||h))){if(this.resolvedRelativeTargetAt=K.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),Qe(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),ne(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ed(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ne(this.target,this.layout.layoutBox),va(this.target,this.targetDelta)):ne(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),Qe(this.relativeTargetOrigin,this.target,m.target),ne(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||rn(this.parent.latestValues)||xa(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var g;const r=this.getLead(),l=!!this.resumingFrom||this!==r;let o=!0;if((this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty)&&(o=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(o=!1),this.resolvedRelativeTargetAt===K.timestamp&&(o=!1),o)return;const{layout:u,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||a))return;ne(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;td(this.layoutCorrected,this.treeScale,this.path,l),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=q());const{target:m}=r;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Vr(this.prevProjectionDelta.x,this.projectionDelta.x),Vr(this.prevProjectionDelta.y,this.projectionDelta.y)),Ze(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!_r(this.projectionDelta.x,this.prevProjectionDelta.x)||!_r(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),r){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Me(),this.projectionDelta=Me(),this.projectionDeltaWithTransform=Me()}setAnimationOrigin(r,l=!1){const o=this.snapshot,u=o?o.latestValues:{},a={...this.latestValues},h=Me();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=q(),m=o?o.source:void 0,g=this.layout?this.layout.source:void 0,p=m!==g,y=this.getStack(),x=!y||y.members.length<=1,P=!!(p&&!x&&this.options.crossfade===!0&&!this.path.some(Zd));this.animationProgress=0;let v;this.mixTargetDelta=D=>{const C=D/1e3;Gr(h.x,r.x,C),Gr(h.y,r.y,C),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qe(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Yd(this.relativeTarget,this.relativeTargetOrigin,f,C),v&&Vd(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=q()),ne(v,this.relativeTarget)),p&&(this.animationValues=a,Pd(a,u,this.latestValues,C,P,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){var l,o,u;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(!1),(u=(o=this.resumingFrom)==null?void 0:o.currentAnimation)==null||u.stop(!1),this.pendingAnimation&&(ye(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=F.update(()=>{vt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Le(0)),this.currentAnimation=Td(this.motionValue,[0,1e3],{...r,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},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($d),this.currentAnimation.stop(!1)),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:l,target:o,layout:u,latestValues:a}=r;if(!(!l||!o||!u)){if(this!==r&&this.layout&&u&&Da(this.options.animationType,this.layout.layoutBox,u.layoutBox)){o=this.target||q();const h=Y(this.layout.layoutBox.x);o.x.min=r.target.x.min,o.x.max=o.x.min+h;const f=Y(this.layout.layoutBox.y);o.y.min=r.target.y.min,o.y.max=o.y.min+f}ne(l,o),$e(l,a),Ze(this.projectionDeltaWithTransform,this.layoutCorrected,l,a)}}registerSharedNode(r,l){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Id),this.sharedNodes.get(r).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var l;const{layoutId:r}=this.options;return r?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:r}=this.options;return r?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:l,preserveFollowOpacity:o}={}){const u=this.getStack();u&&u.promote(this,o),r&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let l=!1;const{latestValues:o}=r;if((o.z||o.rotate||o.rotateX||o.rotateY||o.rotateZ||o.skewX||o.skewY)&&(l=!0),!l)return;const u={};o.z&&_s("z",r,u,this.animationValues);for(let a=0;a<Bs.length;a++)_s(`rotate${Bs[a]}`,r,u,this.animationValues),_s(`skew${Bs[a]}`,r,u,this.animationValues);r.render();for(const a in u)r.setStaticValue(a,u[a]),this.animationValues&&(this.animationValues[a]=u[a]);r.scheduleRender()}getProjectionStyles(r){if(!this.instance||this.isSVG)return;if(!this.isVisible)return Od;const l={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=yt(r==null?void 0:r.pointerEvents)||"",l.transform=o?o(this.latestValues,""):"none",l;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=yt(r==null?void 0:r.pointerEvents)||""),this.hasProjected&&!Se(this.latestValues)&&(m.transform=o?o({},""):"none",this.hasProjected=!1),m}const a=u.animationValues||u.latestValues;this.applyTransformsToTarget(),l.transform=Md(this.projectionDeltaWithTransform,this.treeScale,a),o&&(l.transform=o(a,l.transform));const{x:h,y:f}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${f.origin*100}% 0`,u.animationValues?l.opacity=u===this?a.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:l.opacity=u===this?a.opacity!==void 0?a.opacity:"":a.opacityExit!==void 0?a.opacityExit:0;for(const m in et){if(a[m]===void 0)continue;const{correct:g,applyTo:p,isCSSVariable:y}=et[m],x=l.transform==="none"?a[m]:g(a[m],u);if(p){const P=p.length;for(let v=0;v<P;v++)l[p[v]]=x}else y?this.options.visualElement.renderState.vars[m]=x:l[m]=x}return this.options.layoutId&&(l.pointerEvents=u===this?yt(r==null?void 0:r.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var l;return(l=r.currentAnimation)==null?void 0:l.stop(!1)}),this.root.nodes.forEach(qr),this.root.sharedNodes.clear()}}}function Fd(e){e.updateLayout()}function Bd(e){var s;const t=((s=e.resumeFrom)==null?void 0:s.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:c}=e.options,r=t.source!==e.layout.source;c==="size"?ie(h=>{const f=r?t.measuredBox[h]:t.layoutBox[h],m=Y(f);f.min=n[h].min,f.max=f.min+m}):Da(c,t.layoutBox,n)&&ie(h=>{const f=r?t.measuredBox[h]:t.layoutBox[h],m=Y(n[h]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+m)});const l=Me();Ze(l,n,t.layoutBox);const o=Me();r?Ze(o,e.applyTransform(i,!0),t.measuredBox):Ze(o,n,t.layoutBox);const u=!Ca(l);let a=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:m}=h;if(f&&m){const g=q();Qe(g,t.layoutBox,f.layoutBox);const p=q();Qe(p,n,m.layoutBox),ja(g,p)||(a=!0),h.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=g,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:a})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function _d(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 qd(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ud(e){e.clearSnapshot()}function qr(e){e.clearMeasurements()}function Gd(e){e.isLayoutDirty=!1}function zd(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ur(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Kd(e){e.resolveTargetDelta()}function Wd(e){e.calcProjection()}function Hd(e){e.resetSkewAndRotation()}function Xd(e){e.removeLeadSnapshot()}function Gr(e,t,s){e.translate=B(t.translate,0,s),e.scale=B(t.scale,1,s),e.origin=t.origin,e.originPoint=t.originPoint}function zr(e,t,s,n){e.min=B(t.min,s.min,n),e.max=B(t.max,s.max,n)}function Yd(e,t,s,n){zr(e.x,t.x,s.x,n),zr(e.y,t.y,s.y,n)}function Zd(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Qd={duration:.45,ease:[.4,0,.1,1]},Kr=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Wr=Kr("applewebkit/")&&!Kr("chrome/")?Math.round:te;function Hr(e){e.min=Wr(e.min),e.max=Wr(e.max)}function Jd(e){Hr(e.x),Hr(e.y)}function Da(e,t,s){return e==="position"||e==="preserve-aspect"&&!Jh(Br(t),Br(s),.2)}function ef(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const tf=La({attachResizeListener:(e,t)=>rt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qs={current:void 0},Va=La({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!qs.current){const e=new tf({});e.mount(window),e.setOptions({layoutScroll:!0}),qs.current=e}return qs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),sf={pan:{Feature:yd},drag:{Feature:gd,ProjectionNode:Va,MeasureLayout:Ra}};function nf(e,t,s){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const i=(s==null?void 0:s[e])??n.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Ia(e,t){const s=nf(e),n=new AbortController,i={passive:!0,...t,signal:n.signal};return[s,i,()=>n.abort()]}function Xr(e){return!(e.pointerType==="touch"||ba())}function rf(e,t,s={}){const[n,i,c]=Ia(e,s),r=l=>{if(!Xr(l))return;const{target:o}=l,u=t(o,l);if(typeof u!="function"||!o)return;const a=h=>{Xr(h)&&(u(h),o.removeEventListener("pointerleave",a))};o.addEventListener("pointerleave",a,i)};return n.forEach(l=>{l.addEventListener("pointerenter",r,i)}),c}function Yr(e,t,s){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",s==="Start");const i="onHover"+s,c=n[i];c&&F.postRender(()=>c(t,ut(t)))}class of extends ve{mount(){const{current:t}=this.node;t&&(this.unmount=rf(t,(s,n)=>(Yr(this.node,n,"Start"),i=>Yr(this.node,i,"End"))))}unmount(){}}class af extends ve{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=lt(rt(this.node.current,"focus",()=>this.onFocus()),rt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Ma=(e,t)=>t?e===t?!0:Ma(e,t.parentElement):!1,lf=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function cf(e){return lf.has(e.tagName)||e.tabIndex!==-1}const wt=new WeakSet;function Zr(e){return t=>{t.key==="Enter"&&e(t)}}function Us(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const uf=(e,t)=>{const s=e.currentTarget;if(!s)return;const n=Zr(()=>{if(wt.has(s))return;Us(s,"down");const i=Zr(()=>{Us(s,"up")}),c=()=>Us(s,"cancel");s.addEventListener("keyup",i,t),s.addEventListener("blur",c,t)});s.addEventListener("keydown",n,t),s.addEventListener("blur",()=>s.removeEventListener("keydown",n),t)};function Qr(e){return Wn(e)&&!ba()}function hf(e,t,s={}){const[n,i,c]=Ia(e,s),r=l=>{const o=l.currentTarget;if(!Qr(l))return;wt.add(o);const u=t(o,l),a=(m,g)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),wt.has(o)&&wt.delete(o),Qr(m)&&typeof u=="function"&&u(m,{success:g})},h=m=>{a(m,o===window||o===document||s.useGlobalTarget||Ma(o,m.target))},f=m=>{a(m,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return n.forEach(l=>{(s.useGlobalTarget?window:l).addEventListener("pointerdown",r,i),l instanceof HTMLElement&&(l.addEventListener("focus",u=>uf(u,i)),!cf(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),c}function Jr(e,t,s){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",s==="Start");const i="onTap"+(s==="End"?"":s),c=n[i];c&&F.postRender(()=>c(t,ut(t)))}class df extends ve{mount(){const{current:t}=this.node;t&&(this.unmount=hf(t,(s,n)=>(Jr(this.node,n,"Start"),(i,{success:c})=>Jr(this.node,i,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ln=new WeakMap,Gs=new WeakMap,ff=e=>{const t=ln.get(e.target);t&&t(e)},mf=e=>{e.forEach(ff)};function pf({root:e,...t}){const s=e||document;Gs.has(s)||Gs.set(s,{});const n=Gs.get(s),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(mf,{root:e,...t})),n[i]}function gf(e,t,s){const n=pf(t);return ln.set(e,s),n.observe(e),()=>{ln.delete(e),n.unobserve(e)}}const yf={some:0,all:1};class xf extends ve{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:s,margin:n,amount:i="some",once:c}=t,r={root:s?s.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:yf[i]},l=o=>{const{isIntersecting:u}=o;if(this.isInView===u||(this.isInView=u,c&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:a,onViewportLeave:h}=this.node.getProps(),f=u?a:h;f&&f(o)};return gf(this.node.current,r,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:s}=this.node;["amount","margin","root"].some(vf(t,s))&&this.startObserver()}unmount(){}}function vf({viewport:e={}},{viewport:t={}}={}){return s=>e[s]!==t[s]}const wf={inView:{Feature:xf},tap:{Feature:df},focus:{Feature:af},hover:{Feature:of}},Tf={layout:{ProjectionNode:Va,MeasureLayout:Ra}},cn={current:null},Oa={current:!1};function Ef(){if(Oa.current=!0,!!yn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cn.current=e.matches;e.addListener(t),t()}else cn.current=!1}const Sf=new WeakMap;function bf(e,t,s){for(const n in t){const i=t[n],c=s[n];if(z(i))e.addValue(n,i);else if(z(c))e.addValue(n,Le(i,{owner:e}));else if(c!==i)if(e.hasValue(n)){const r=e.getValue(n);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=e.getStaticValue(n);e.addValue(n,Le(r!==void 0?r:i,{owner:e}))}}for(const n in s)t[n]===void 0&&e.removeValue(n);return t}const $a=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ka=e=>/^0[^.\s]+$/u.test(e),Rf={test:e=>e==="auto",parse:e=>e},Fa=e=>t=>t.test(e),Ba=[Ue,I,ce,ge,Vc,Dc,Rf],eo=e=>Ba.find(Fa(e)),Af=[...Ba,H,xe],Pf=e=>Af.find(Fa(e)),Cf=new Set(["brightness","contrast","saturate","opacity"]);function jf(e){const[t,s]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=s.match(On)||[];if(!n)return e;const i=s.replace(n,"");let c=Cf.has(t)?1:0;return n!==s&&(c*=100),t+"("+c+i+")"}const Nf=/\b([a-z-]*)\(.*?\)/gu,un={...xe,getAnimatableNone:e=>{const t=e.match(Nf);return t?t.map(jf).join(" "):e}},Lf={...An,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:un,WebkitFilter:un},_a=e=>Lf[e];function qa(e,t){let s=_a(e);return s!==un&&(s=xe),s.getAnimatableNone?s.getAnimatableNone(t):void 0}const to=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Df{scrapeMotionValuesFromProps(t,s,n){return{}}constructor({parent:t,props:s,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:c,visualState:r},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Gn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=J.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,F.render(this.render,!1,!0))};const{latestValues:o,renderState:u}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=s.initial?{...o}:{},this.renderState=u,this.parent=t,this.props=s,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!c,this.isControllingVariants=Ft(s),this.isVariantNode=bo(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:a,...h}=this.scrapeMotionValuesFromProps(s,{},this);for(const f in h){const m=h[f];o[f]!==void 0&&z(m)&&m.set(o[f],!1)}}mount(t){this.current=t,Sf.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((s,n)=>this.bindToMotionValue(n,s)),Oa.current||Ef(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:cn.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ye(this.notifyUpdate),ye(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const s=this.features[t];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(t,s){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=qe.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=s.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&F.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),c=s.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,s)),this.valueSubscriptions.set(t,()=>{i(),c(),r&&r(),s.owner&&s.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 s=Fe[t];if(!s)continue;const{isEnabled:n,Feature:i}=s;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const c=this.features[t];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,s){this.latestValues[t]=s}update(t,s){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let n=0;n<to.length;n++){const i=to[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const c="on"+i,r=t[c];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=bf(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 s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(t),()=>s.variantChildren.delete(t)}addValue(t,s){const n=this.values.get(t);s!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,s),this.values.set(t,s),this.latestValues[t]=s.get())}removeValue(t){this.values.delete(t);const s=this.valueSubscriptions.get(t);s&&(s(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,s){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&s!==void 0&&(n=Le(s===null?void 0:s,{owner:this}),this.addValue(t,n)),n}readValue(t,s){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&($a(n)||ka(n))?n=parseFloat(n):!Pf(n)&&xe.test(s)&&(n=qa(t,s)),this.setBaseTarget(t,z(n)?n.get():n)),z(n)?n.get():n}setBaseTarget(t,s){this.baseTarget[t]=s}getBaseTarget(t){var c;const{initial:s}=this.props;let n;if(typeof s=="string"||typeof s=="object"){const r=Nn(this.props,s,(c=this.presenceContext)==null?void 0:c.custom);r&&(n=r[t])}if(s&&n!==void 0)return n;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!z(i)?i:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,s){return this.events[t]||(this.events[t]=new In),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}}const Vf=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function If(e){const t=Vf.exec(e);if(!t)return[,];const[,s,n,i]=t;return[`--${s??n}`,i]}function Ua(e,t,s=1){const[n,i]=If(e);if(!n)return;const c=window.getComputedStyle(t).getPropertyValue(n);if(c){const r=c.trim();return $a(r)?parseFloat(r):r}return Rn(i)?Ua(i,t,s+1):i}function Mf(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ka(e):!0}const Of=new Set(["auto","none","0"]);function $f(e,t,s){let n=0,i;for(;n<e.length&&!i;){const c=e[n];typeof c=="string"&&!Of.has(c)&&nt(c).values.length&&(i=e[n]),n++}if(i&&s)for(const c of t)e[c]=qa(s,i)}class kf extends Gn{constructor(t,s,n,i,c){super(t,s,n,i,c,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:s,name:n}=this;if(!s||!s.current)return;super.readKeyframes();for(let o=0;o<t.length;o++){let u=t[o];if(typeof u=="string"&&(u=u.trim(),Rn(u))){const a=Ua(u,s.current);a!==void 0&&(t[o]=a),o===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!ha.has(n)||t.length!==2)return;const[i,c]=t,r=eo(i),l=eo(c);if(r!==l)if(or(r)&&or(l))for(let o=0;o<t.length;o++){const u=t[o];typeof u=="string"&&(t[o]=parseFloat(u))}else Ae[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:s}=this,n=[];for(let i=0;i<t.length;i++)(t[i]===null||Mf(t[i]))&&n.push(i);n.length&&$f(t,n,s)}measureInitialState(){const{element:t,unresolvedKeyframes:s,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ae[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s[0]=this.measuredOrigin;const i=s[s.length-1];i!==void 0&&t.getValue(n,i).jump(i,!1)}measureEndState(){var l;const{element:t,name:s,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(s);i&&i.jump(this.measuredOrigin,!1);const c=n.length-1,r=n[c];n[c]=Ae[s](t.measureViewportBox(),window.getComputedStyle(t.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([o,u])=>{t.getValue(o).set(u)}),this.resolveNoneKeyframes()}}class Ga extends Df{constructor(){super(...arguments),this.KeyframeResolver=kf}sortInstanceNodePosition(t,s){return t.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(t,s){return t.style?t.style[s]:void 0}removeValueFromRenderState(t,{vars:s,style:n}){delete s[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;z(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function za(e,{style:t,vars:s},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const c in s)e.style.setProperty(c,s[c])}function Ff(e){return window.getComputedStyle(e)}class Bf extends Ga{constructor(){super(...arguments),this.type="html",this.renderInstance=za}readValueFromInstance(t,s){if(qe.has(s))return lh(t,s);{const n=Ff(t),i=(bn(s)?n.getPropertyValue(s):n[s])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:s}){return wa(t,s)}build(t,s,n){Pn(t,s,n.transformTemplate)}scrapeMotionValuesFromProps(t,s,n){return Ln(t,s,n)}}const Ka=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function _f(e,t,s,n){za(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(Ka.has(i)?i:Tn(i),t.attrs[i])}class qf extends Ga{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(qe.has(s)){const n=_a(s);return n&&n.default||0}return s=Ka.has(s)?s:Tn(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,s,n){return Oo(t,s,n)}
11build(t,s,n){Do(t,s,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,s,n,i){_f(t,s,n,i)}mount(t){this.isSVGTag=Io(t.tagName),super.mount(t)}}const Uf=(e,t)=>jn(e)?new qf(t):new Bf(t,{allowProjection:e!==b.Fragment}),Gf=Zc({...zh,...wf,...sf,...Tf},Uf),zf=yc(Gf);function Wa(e){const t=Et(()=>Le(e)),{isStatic:s}=b.useContext(Ot);if(s){const[,n]=b.useState(e);b.useEffect(()=>t.on("change",n),[])}return t}function Kf(e,t={}){const{isStatic:s}=b.useContext(Ot),n=b.useRef(null),i=Et(()=>z(e)?e.get():e),c=Et(()=>typeof i=="string"?i.replace(/[\d.-]/g,""):void 0),r=Wa(i),l=b.useRef(i),o=b.useRef(te),u=()=>{a(),n.current=new Bt({keyframes:[no(r.get()),no(l.current)],velocity:r.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:o.current})},a=()=>{n.current&&n.current.stop()};return b.useInsertionEffect(()=>r.attach((h,f)=>s?f(h):(l.current=h,o.current=m=>f(so(m,c)),F.postRender(u),r.get()),a),[JSON.stringify(t)]),wo(()=>{if(z(e))return e.on("change",h=>r.set(so(h,c)))},[r,c]),r}function so(e,t){return t?e+t:e}function no(e){return typeof e=="number"?e:parseFloat(e)}function Wf({value:e,direction:t="up",locale:s,className:n}){const i=b.useRef(null),c=Wa(t==="down"?e:0),r=Kf(c,{damping:30,stiffness:100,restDelta:.5}),l=Math.max(String(Math.round(e)).replace(/,/g,"").length,1),o=b.useCallback(u=>{const a=Math.floor(u).toString();if(a.length<l){const h=a.padStart(l,"0");let f="";for(let m=0;m<h.length;m++){const g=h.length-m-1;if(f+=h[m],g%3===0&&g>0){const p=new Intl.NumberFormat(s).format(1111).charAt(1);f+=p}}return f}return new Intl.NumberFormat(s,{maximumFractionDigits:0}).format(Math.floor(u))},[l,s]);return b.useEffect(()=>{const u=t==="down"?0:e;c.set(t==="down"?e:0),r.set(u)},[e,t,c,r]),b.useEffect(()=>(i.current&&(i.current.textContent=o(t==="down"?e:0)),r.on("change",u=>{i.current&&(i.current.textContent=o(u))})),[r,o,t,e]),d.jsx(zf.span,{className:ee("font-mono text-foreground-brand",n),ref:i,children:o(t==="down"?e:0)})}const Hf=e=>/^\d+\.\d+\.\d+(-[a-zA-Z0-9.-]+)?(\+[a-zA-Z0-9.-]+)?$/.test(e),Xf=e=>Hf(e)?`v${e}`:e,Yf={windows:"Download for Windows",linux:"Download for Linux",macos:"Download for macOS"},Cm=Ha(function(){var N,S;const{launcherRelease:t,branch:s,builds:n,categorizedBuilds:i,showNightly:c,limit:r,searchQuery:l,newestStableMinecraftVersion:o,locale:u,downloadCount:a}=Ya(),h=Wl("/sse/download-count",{event:"download-count"}),f=Number(h||0)||a,m=Za(),g=((N=m.data)==null?void 0:N.builds)||n,p=((S=m.data)==null?void 0:S.categorizedBuilds)||i,y=Qa(),[x,P]=b.useState(c),[v,D]=b.useState(r),[C,A]=b.useState(l||""),[V,T]=b.useState(null),{t:M}=Ct();function U(w,j,L,$){return m.load(`/download?branch=${w}&nightly=${j}&limit=${L}&search=${$}`)}const se=()=>{const w=!x;P(w),U(s,w,v,C)},me=()=>{const w=v+100;D(w),U(s,x,w,C)},pe=()=>{A(""),U(s,x,v,"")},R=y.state==="loading",E=t.binaries.filter(w=>w.os===V);return d.jsxs("div",{className:"flex flex-col min-h-screen bg-background",children:[d.jsx(hl,{background:"blue-gradient",paddingY:"py-32 pb-16",className:"overflow-hidden",children:d.jsxs("header",{className:"flex flex-col gap-2",children:[d.jsx("h1",{className:"text-3xl md:text-4xl font-bold tracking-tight",children:M("download.title")}),d.jsx("p",{className:"text-zinc-300",children:M("download.description")})]})}),d.jsx(Yn,{id:"launcher",className:"py-16 bg-background-alt",children:d.jsxs("div",{className:"container mx-auto px-4",children:[d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-center",children:[d.jsxs("div",{children:[d.jsx(ke,{as:"h2",size:"2xl",className:"mb-4",children:M("download.liquidlauncher.title")}),d.jsx(W,{className:"text-lg text-foreground-secondary mb-6",children:M("download.liquidlauncher.description")}),d.jsxs("div",{className:"mb-6 flex items-center gap-3",children:[d.jsx(wl,{onSelect:w=>T(w),buttonText:"Download",variant:"default",size:"lg"}),d.jsx(oe,{variant:"outline",className:"flex items-center gap-1.5",asChild:!0,children:d.jsxs("a",{href:"https://github.com/CCBlueX/LiquidLauncher",target:"_blank",rel:"noreferrer noopener",children:[d.jsx(ul,{size:16}
11),M("common.buttons.sourceCode")]})})]}),d.jsxs("div",{className:"mb-6",children:[d.jsx(W,{className:"text-sm text-foreground-primary mb-4",children:d.jsx(Q,{i18nKey:"download.downloadCount",components:{count:d.jsx(Wf,{locale:u,value:f})}})}),d.jsx(W,{className:"text-sm text-foreground-secondary",children:d.jsx(Q,{i18nKey:"download.termsAndPrivacy",components:{tosLink:d.jsx("a",{href:"https://ccbluex.net/tos",className:"text-foreground-brand hover:underline",children:"Terms of Service"},"tos-link"),privacyLink:d.jsx("a",{href:"https://ccbluex.net/privacy",className:"text-foreground-brand hover:underline",children:"Privacy Policy"},"privacy-link"),contactLink:d.jsx("a",{href:"https://ccbluex.net/contact",className:"text-foreground-brand hover:underline",children:"Contact"},"contact-link")}})})]})]}),d.jsx("div",{className:"aspect-video",children:d.jsx("div",{className:"relative w-full h-0 pb-[56.25%] rounded-lg overflow-hidden",children:d.jsx("iframe",{className:"absolute top-0 left-0 w-full h-full",src:"https://www.youtube.com/embed/THwKoGahZpc?showinfo=0",title:"LiquidLauncher Introduction",allowFullScreen:!0})})})]}),d.jsx("div",{className:"mt-10",children:d.jsx(ro,{slot:"download-index"})})]})}),V&&E.length>0&&d.jsx(cc,{title:Yf[V]??"Download",binaries:E,onClose:()=>T(null)}),d.jsx(Yn,{id:"manual",className:"py-16 bg-background-alt",children:d.jsxs("div",{className:"container mx-auto px-4",children:[d.jsxs("div",{className:"mb-8",children:[d.jsx(ke,{as:"h2",size:"2xl",className:"mb-4",children:M("download.manual.title")}),d.jsx(W,{className:"text-lg text-foreground-secondary mb-4",children:M("download.manual.description")}),d.jsx(W,{className:"text-foreground-secondary",children:d.jsx(Q,{i18nKey:"download.manual.advanced",components:{tutorial:d.jsx(Tt,{to:"/docs/get-started/manual-installation",className:"text-foreground-brand hover:underline",children:"Tutorial"},"tutorial-link")}})})]}),d.jsxs("div",{className:"flex flex-col gap-6",children:[d.jsx(Ce,{children:d.jsx(je,{className:"p-6",children:d.jsxs("div",{className:"flex flex-col md:flex-row gap-4 items-center justify-between",children:[d.jsx("div",{className:"flex items-center w-full md:w-auto gap-3 flex-wrap",children:d.jsx(oe,{variant:"outline",className:"flex items-center gap-2",onClick:se,disabled:R,children:M(x?"download.buttons.hideNightly":"download.buttons.showNightly")})}),d.jsxs("div",{className:"relative w-full md:w-80",children:[d.jsx(dl,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-zinc-400",size:18}),d.jsx(fl,{type:"text",placeholder:M("download.search.placeholder"),value:C,onChange:w=>{A(w.target.value);const j=w.target.value,L=setTimeout(()=>{m.load(`/download?search=${j}&limit=${v}`)},500);return()=>clearTimeout(L)},className:"pl-10 pr-10"}),C&&d.jsx(oe,{type:"button",onClick:pe,className:"absolute right-1 top-1/2 transform -translate-y-1/2 h-7 w-7 p-0",size:"sm",variant:"ghost",children:d.jsx(ao,{size:14})})]})]})})}),l.trim()!==""?d.jsxs(Ce,{children:[d.jsxs(jt,{className:"flex flex-row items-center justify-between",children:[d.jsx(ke,{as:"h3",size:"lg",children:M("download.search.title")}),d.jsx(oe,{variant:"outline",size:"sm",onClick:pe,children:M("download.search.buttons.clear")})]}),d.jsx(je,{className:"p-4",children:d.jsxs(uo,{children:[d.jsx(ho,{children:d.jsxs(gt,{children:[d.jsx(De,{children:M("download.table.ver
11sion")}),d.jsx(De,{children:M("download.table.minecraft")}),d.jsx(De,{children:M("download.table.date")}),d.jsx(De,{className:"w-full",children:M("download.table.changes")}),d.jsx(De,{children:M("download.table.actions")})]})}),d.jsx(fo,{children:g.items.length>0?g.items.map(w=>d.jsxs(gt,{className:"hover:bg-zinc-100 dark:hover:bg-zinc-800",children:[d.jsx(Te,{children:d.jsxs("div",{className:"flex flex-col",children:[d.jsx("span",{className:"font-medium",children:Xf(w.lb_version)}),d.jsx("span",{className:"text-xs text-zinc-500",children:w.release?M("download.table.release"):M("download.table.nightly")})]})}),d.jsx(Te,{children:w.mc_version}),d.jsx(Te,{children:d.jsx("div",{className:"whitespace-nowrap text-sm",children:new Date(w.date).toLocaleDateString()})}),d.jsx(Te,{children:d.jsx("div",{className:"truncate max-w-[400px]",children:w.message})}),d.jsx(Te,{children:d.jsx(oe,{size:"sm",variant:"outline",className:"flex items-center gap-1",asChild:!0,children:d.jsxs(Tt,{to:`/download/${w.build_id}`,children:[d.jsx(Nt,{size:14}),M("common.buttons.download")]})})})]},w.commit_id)):d.jsx(gt,{children:d.jsx(Te,{colSpan:5,className:"text-center py-8",children:M("download.search.noResults")})})})]})})]}):d.jsxs("div",{className:"space-y-6",children:[p.mcVersionsList.map(w=>{const j=Ls.lt(Ls.coerce(w)||w,Ls.coerce(o)||o);return d.jsx(Ql,{locale:u,mcVersion:w,builds:p.buildsByMcVersion[w],loading:!1,detailsLinkUrl:L=>`/download/${L}`,isNewestVersion:!j},w)}),g.items.length>=g.pagination.items?d.jsx(Jl,{mcVersion:"1.8.9",newestVersion:o}):d.jsx("div",{className:"flex justify-center mt-4",children:d.jsx(oe,{variant:"outline",onClick:me,className:"flex items-center gap-2",disabled:R,children:R?d.jsxs(d.Fragment,{children:[d.jsx(Qn,{size:16,className:"animate-spin"}),"Loading..."]}):d.jsxs(d.Fragment,{children:["Load More Versions",d.jsx(Qn,{size:16})]})})})]})]})]})})]})});export{Cm as default};

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.