import{c as i}from"../chunks/CG0ncoKB.mjs";import"../chunks/E-vkuI0X.mjs";import{i as s}from"../chunks/DE12Pz0s.mjs";import{p as c,d as l,i as p,u}from"../chunks/DXA5xaTu.mjs";import{p as f}from"../chunks/DZ_x5TWR.mjs";import{p as m}from"../chunks/DJ626W5h.mjs";import{C as d}from"../chunks/CpB_VQ73.mjs";import{g}from"../chunks/0ig4dh58.mjs";function h(o){try{return BigInt(o)}catch{return null}}const _=(async({params:o})=>{const t=h(o.cardId);return{info:t!==null?await i({cid:t}):null}}),T=Object.freeze(Object.defineProperty({__proto__:null,load:_},Symbol.toStringTag,{value:"Module"}));function j(o,t){c(t,!1);let a=f(t,"data",8);const n=m.url.searchParams.get("revlog")!=="0";globalThis.anki||(globalThis.anki={}),globalThis.anki.updateCard=async e=>{const r=`/card-info/${e}`;return g(r).catch(()=>{window.location.href=r})},s(),d(o,{get stats(){return p(a()),u(()=>a().info)},get showRevlog(){return n}}),l()}export{j as component,T as universal};
