1import{by as b}from"./index-BXuvAu3a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"95830b11ff50f9e7292c5691d851aab9e169cfb2"};var o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="6230b4b9-0f98-4f4e-9d7b-15c52ed5c225",e._sentryDebugIdIdentifier="sentry-dbid-6230b4b9-0f98-4f4e-9d7b-15c52ed5c225")}catch{}})();const f="certbox-write-queue",l=1,s="writes",y=5;function i(){return new Promise((e,o)=>{const t=indexedDB.open(f,l);t.onupgradeneeded=()=>{const n=t.result;if(!n.objectStoreNames.contains(s)){const r=n.createObjectStore(s,{keyPath:"id"});r.createIndex("entity","entity",{unique:!1}),r.createIndex("createdAt","createdAt",{unique:!1})}},t.onsuccess=()=>e(b(t.result)),t.onerror=()=>o(t.error)})}async function g(e){const o=await i(),t={...e,createdAt:e.createdAt??Date.now(),retryCount:0};return new Promise((n,r)=>{const c=o.transaction(s,"readwrite");c.objectStore(s).put(t),c.oncomplete=()=>n(),c.onerror=()=>r(c.error)})}async function m(){const e=await i();return new Promise((o,t)=>{const c=e.transaction(s,"readonly").objectStore(s).index("createdAt").getAll();c.onsuccess=()=>o(c.result),c.onerror=()=>t(c.error)})}async function x(){const e=await i();return new Promise((o,t)=>{const r=e.transaction(s,"readonly").objectStore(s).count();r.onsuccess=()=>o(r.result),r.onerror=()=>t(r.error)})}async function p(e){const o=await i();return new Promise((t,n)=>{const r=o.transaction(s,"readwrite");r.objectStore(s).delete(e),r.oncomplete=()=>t(),r.onerror=()=>n(r.error)})}async function S(e,o){const t=await i();return new Promise((n,r)=>{const c=t.transaction(s,"readwrite"),d=c.objectStore(s),u=d.get(e);u.onsuccess=()=>{const a=u.result;if(!a){n(!1);return}a.retryCount+=1,a.lastError=o,a.retryCount>=y?(d.put(a),n(!1)):(d.put(a),n(!0))},u.onerror=()=>r(u.error),c.onerror=()=>r(c.error)})}async function A(){const e=await i();return new Promise((o,t)=>{const n=e.transaction(s,"readwrite");n.objectStore(s).clear(),n.oncomplete=()=>o(),n.onerror=()=>t(n.error)})}export{m as a,A as c,g as e,x as g,S as m,p as r};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.