import{IZ as K,KZ as Z}from"./cli-0.5.12-5d3qcvf5.mjs";import{LZ as J,NZ as Y}from"./cli-0.5.12-f141d2qa.mjs";import{F3 as D,K3 as F,L3 as G,M0 as B,R0 as W,d4 as X}from"./cli-0.5.12-pycnjaeg.mjs";import{bfa as y,cfa as Q}from"./cli-0.5.12-k1crwtdc.mjs";import{Dna as V,lna as z}from"./cli-0.5.12-495d826j.mjs";import{aoa as N}from"./cli-0.5.12-xzeb7mtb.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
export{P as qh,_ as rh};
