import{c as s}from"../chunks/MDPyFyai.mjs";import"../chunks/E-vkuI0X.mjs";import{i}from"../chunks/DoxTZSDF.mjs";import{p as c,d as l,u as p,j as u}from"../chunks/4Xd67fio.mjs";import{p as f}from"../chunks/B7xFKswI.mjs";import{p as m}from"../chunks/DGBOFQ0q.mjs";import{C as d}from"../chunks/B0nM3jlD.mjs";import{g}from"../chunks/2V-9rEas.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 s({cid:t}):null}}),S=Object.freeze(Object.defineProperty({__proto__:null,load:_},Symbol.toStringTag,{value:"Module"}));function T(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})},i(),d(o,{get stats(){return u(a()),p(()=>a().info)},get showRevlog(){return n}}),l()}export{T as component,S as universal};
