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(ha?(u(i(this,f),t),!1):(u(i(this,f),m(s(N/a))),!0)})),i(this,d).promise}get current(){return c(i(this,f))}get target(){return c(i(this,g))}set target(t){this.set(t)}};f=new WeakMap,g=new WeakMap,T=new WeakMap,d=new WeakMap;let D=P;var wt=k('

',1);function Bt(e,t){K(t,!0);let r=E(!1),o=tt(()=>mt(ut.url.pathname,"/"));pt(t.data.remote_d3fend_tree,t.data.remote_version_info);let a=new D(0,{duration:200,easing:ht}),s=E(!1),l=null,n=null;Q(()=>{ct.to?(a.target=0,l=setInterval(()=>{a.target=a.current<.9>{u(s,!0)},100)):(a.target=1,clearInterval(l),l=null,n&&(clearTimeout(n),n=null),c(s)&&setTimeout(()=>{u(s,!1)},300))}),H(()=>{l&&clearInterval(l),n&&clearTimeout(n)});var m=wt(),v=R(m),_=x(v);lt(_,{get current_path(){return c(o)},get open(){return c(r)},set open(b){u(r,b,!0)}});var O=p(_,2);ft(O,{get current_path(){return c(o)},get sidebar(){return c(r)},set sidebar(b){u(r,b,!0)}}),A(v);var h=p(v,2),N=x(h);rt(N,()=>t.children??$),A(h);var y=p(h,2);it(y,{});var I=p(y,2),C=x(I);nt(C,{});var F=p(C,2),S=p(x(F)),V=x(S,!0);A(S),A(F),A(I);var X=p(I,2);W(b=>{at(S,"href",b),et(V,t.data.remote_version_info.frontend_version),st(X,` transform: scaleX(${a.current??""}); opacity: ${c(s)?1:0}; `)},[()=>ot("/version")]),Y(e,m),Z()}export{Bt as component,qt as universal};