1import{hj as A,hk as I,hl as F,hm as N}from"./index-CVUXbWDK.js";(function(){try{var 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]="d8736cd9-28a0-4db8-9047-9c0d6cb8d180",e._sentryDebugIdIdentifier="sentry-dbid-d8736cd9-28a0-4db8-9047-9c0d6cb8d180")}catch{}})();(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},(function(){var t,n=new e.Error().stack,o=e._sentryModuleMetadata[n]||{},i={"_sentryBundlerPluginAppKey:mm-sentry-boysenberry":!0},a={};for(t in o)o.hasOwnProperty(t)&&(a[t]=o[t]);for(t in i)i.hasOwnProperty(t)&&(a[t]=i[t]);e._sentryModuleMetadata[n]=a})()})();var S=function(e){return e===void 0?!1:typeof e=="boolean"?e:e.enabled!==!1},q=function(e){var t;return typeof e=="object"&&e!==null?{allowlist:(t=e.allowlist)!==null&&t!==void 0?t:[],excludelist:e.excludelist||e.blocklist||[]}:{allowlist:[],excludelist:[]}},P=function(e,t,n){if(t.length===0&&n.length===0)return e;var o=t.length>0?t:["/**"];try{var i=JSON.parse(e);return A(i,o,n),JSON.stringify(i)}catch{return e}},T=function(e,t,n,o){var i=q(t),a=i.allowlist,u=i.excludelist,r=P(e,a,u);return o(r,n)},C=10240,z=["image/","audio/","video/","application/octet-stream","font/"];function L(e){return e?z.some(function(t){return e.toLowerCase().startsWith(t)}):!1}function R(e){if(e!=null){if(typeof e=="string")return e;if(e instanceof URLSearchParams)return e.toString();if(e instanceof FormData){var t=[];return e.forEach(function(n,o){t.push("".concat(o,"=").concat(typeof n=="string"?n:"[File]"))}),t.join("&")}}}function M(e,t){if(new Blob([e]).size<=t)return{value:e,truncated:!1};for(var n=0,o=Math.min(e.length,t);n<o;){var i=Math.ceil((n+o)/2);new Blob([e.slice(0,i)]).size<=t?n=i:o=i-1}return n>0&&e.charCodeAt(n-1)>=55296&&e.charCodeAt(n-1)<=56319&&(n-=1),{value:e.slice(0,n),truncated:!0}}var J=(function(){function e(){this.fetchObserver=null}return e.prototype.start=function(t,n){this.eventCallback=t,this.networkConfig=n,this.observeFetch()},e.prototype.stop=function(){var t;(t=this.fetchObserver)===null||t===void 0||t.call(this),this.fetchObserver=null,this.eventCallback=void 0,this.networkConfig=void 0},e.prototype.notifyEvent=function(t){var n;(n=this.eventCallback)===null||n===void 0||n.call(this,t)},e.prototype.observeFetch=function(){var t=this,n=N();if(n){var o=n.fetch;o&&(n.fetch=function(i,a){return I(t,void 0,void 0,function(){var u,r,s,h,_,l,d,v,m,B,y,d,p,E=this,b,w;return F(this,function(f){switch(f.label){case 0:u=Date.now(),r={timestamp:u,type:"fetch",method:(a==null?void 0:a.method)||"GET",url:i.toString(),requestHeaders:a==null?void 0:a.headers},s=(b=this.networkConfig)===null||b===void 0?void 0:b.body,s&&S(s.request)&&(h=R(a==null?void 0:a.body),h!==void 0&&(_=(w=s.maxBodySizeBytes)!==null&&w!==void 0?w:C,r.requestBody=T(h,s.request,_,M).value)),f.label=1;case 1:return f.trys.push([1,3,,4]),[4,o(i,a)];case 2:return l=f.sent(),d=Date.now(),r.status=l.status,r.duration=d-u,v={},l.headers.forEach(function(g,c){v[c]=g}),r.responseHeaders=v,s&&S(s.response)?(m=v["content-type"]||null,L(m)?(r.responseBodyStatus="skipped_binary",this.notifyEvent(r)):(B=l.clone(),B.text().then(function(g){var c,O=(c=s.maxBodySizeBytes)!==null&&c!==void 0?c:C,k=T(g,s.response,O,M),x=k.value,D=k.truncated;r.responseBody=x,r.responseBodyStatus=D?"truncated":"captured",E.notifyEvent(r)},function(){r.responseBodyStatus="error",E.notifyEvent(r)}))):this.notifyEvent(r),[2,l];case 3:throw y=f.sent(),d=Date.now(),r.duration=d-u,p=y,r.error={name:p.name||"UnknownError",message:p.message||"An unknown error occurred"},this.notifyEvent(r),y;case 4:return[2]}})})},this.fetchObserver=function(){n.fetch=o})}},e})();export{J as NetworkObservers}; 2//# sourceMappingURL=observers-wbIYZhWz.js.map
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.