"use strict";var t,e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,o={};((t,r)=>{for(var i in r)e(t,i,{get:r[i],enumerable:!0})})(o,{H:()=>l,Highlight:()=>s}),module.exports=(t=o,((t,o,a,l)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let s of i(o))n.call(t,s)||s===a||e(t,s,{get:()=>o[s],enumerable:!(l=r(o,s))||l.enumerable});return t})(e({},"__esModule",{value:!0}),t));var a=require("@highlight-run/cloudflare"),l={...a.H,init:function(t,e,r){return function(t){"function"!=typeof t.waitUntil&&(Array.isArray(t.__waitUntilPromises)||(t.__waitUntilPromises=[]),t.waitUntil=function(e){t.__waitUntilPromises.push(e),t.__waitUntilTimer=setInterval((()=>{Promise.allSettled(t.__waitUntilPromises||[]).then((()=>{t.__waitUntilTimer&&(clearInterval(t.__waitUntilTimer),t.__waitUntilTimer=void 0)}))}),200)})}(r),a.H.init(t,e,r)}};function s(t){return function(e){return async function(r,i){l.init(r,t,i);try{const t=await e(r,i);return l.sendResponse(t),t}catch(t){throw t instanceof Error&&l.consumeError(t),t}}}}//# sourceMappingURL=edge.js.map