try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`249d220e-93e8-4f3d-ad5b-7b8747cf91df`,e._sentryDebugIdIdentifier=`sentry-dbid-249d220e-93e8-4f3d-ad5b-7b8747cf91df`)}catch{}import"./rolldown-runtime-nx40z1zs.js";import{Jd as e,Nf as t,Uf as n,zf as r}from"./entry.client-mpghtlrl.js";var i=r({success:t().optional(),notices:n().optional(),error:n().optional()});function a(e){return i.parse(e)}var o=30*1e3,s=class extends Error{constructor(e,t){super(e,t),this.name=`GetOSSNoticesError`}};async function c(t){let n;try{n=a(await e(`getOSSNotices`,void 0,t??o))}catch(e){throw new s(e instanceof Error?`Failed to get OSS notices: ${e.message}`:`Failed to get OSS notices`,{cause:e})}if(n.success===!1||typeof n.notices!=`string`)throw new s(n.error??`Kepler getOSSNotices response did not include a notices payload`);return n.notices}var l=class{async getOSSNotices(){return await c()}};export{l as KeplerOSSNoticesAdaptor};