var M=e=>{throw TypeError(e)};var L=(e,t,r)=>t.has(e)||M("Cannot "+r);var i=(e,t,r)=>(L(e,t,"read from private field"),r?r.call(e):t.get(e)),w=(e,t,r)=>t.has(e)?M("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),j=(e,t,r,o)=>(L(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);import{as as q}from"../chunks/CaAOJBKk.js";import{m as B}from"../chunks/_HrVHmxn.js";import{m as G}from"../chunks/COpRC3mt.js";import"../chunks/Bzak7iHL.js";import{b as H}from"../chunks/Cwb-yVx6.js";import{aP as E,V as J,z as u,A as c,p as K,u as Q,f as R,t as W,a as Y,b as Z,c as k,d as x,s as p,r as A,n as $,b7 as tt}from"../chunks/M0Oc_jcV.js";import{s as et}from"../chunks/BudljjWB.js";import{s as rt}from"../chunks/DEP8SgOV.js";import{b as at,a as st}from"../chunks/3N4rtv_S.js";import{r as ot}from"../chunks/DLFHhg9C.js";import{F as nt}from"../chunks/2RD2MEG-.js";import{N as it}from"../chunks/CIHenJAz.js";import{N as lt,a as ft}from"../chunks/BWFcqLG-.js";import{n as ct,p as ut}from"../chunks/CWBBe0-W.js";import{a as mt}from"../chunks/EeV0sUoA.js";import{s as pt}from"../chunks/laE2OWwU.js";import{r as dt,l as vt}from"../chunks/CGd1D22q.js";import{l as _t,c as ht}from"../chunks/CHzgDdPA.js";const gt=!0,yt="always";q.initialize(B);async function bt(e){return G(e)}const qt=Object.freeze(Object.defineProperty({__proto__:null,load:bt,prerender:gt,trailingSlash:yt},Symbol.toStringTag,{value:"Module"}));function U(e){return Object.prototype.toString.call(e)==="[object Date]"}function z(e,t){if(e===t||e!==e)return()=>e;const r=typeof e;if(r!==typeof t||Array.isArray(e)!==Array.isArray(t))throw new Error("Cannot interpolate values of different type");if(Array.isArray(e)){const o=t.map((a,s)=>z(e[s],a));return a=>o.map(s=>s(a))}if(r==="object"){if(!e||!t)throw new Error("Object cannot be null");if(U(e)&&U(t)){const s=e.getTime(),n=t.getTime()-s;return m=>new Date(s+m*n)}const o=Object.keys(t),a={};return o.forEach(s=>{a[s]=z(e[s],t[s])}),s=>{const l={};return o.forEach(n=>{l[n]=a[n](s)}),l}}if(r==="number"){const o=t-e;return a=>e+a*o}return()=>t}var f,g,T,d;const P=class P{constructor(t,r={}){w(this,f);w(this,g);w(this,T);w(this,d,null);j(this,f,E(t)),j(this,g,E(t)),j(this,T,r)}static of(t,r){const o=new P(t(),r);return J(()=>{o.set(t())}),o}set(t,r){var O;u(i(this,g),t);let{delay:o=0,duration:a=400,easing:s=_t,interpolate:l=z}={...i(this,T),...r};if(a===0)return(O=i(this,d))==null||O.abort(),u(i(this,f),t),Promise.resolve();const n=dt.now()+o;let m,v=!1,_=i(this,d);return j(this,d,vt(h=>{if(h