1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[197],{62136:function(e,t,n){var r=n(37811);e.exports=function(){"use strict";let e;var t,o,i,a,s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function c(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var l={},p={},d=function(e,t){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function f(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var h=function(){return(h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function _(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function E(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function m(e,t){return function(n,r){t(n,r,e)}}function g(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function S(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function v(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){var c=[s,u];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var T=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||T(t,e,n)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
vendor: 4,701 bytes, line 1
1if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function A(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function R(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(A(arguments[t]));return e}function O(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function N(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function I(e){return this instanceof I?(this.v=e,this):new I(e)}function C(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{var n;(n=o[e](t)).value instanceof I?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function M(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:I(e[r](t)),done:!1}:o?o(t):t}:o}}function L(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=b(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){var i;i=(t=e[n](t)).done,Promise.resolve(t.value).then(function(e){r({value:e,done:i})},o)})}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function D(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&T(t,e,n);return P(t,e),t}function x(e){return e&&e.__esModule?e:{default:e}}function U(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function k(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function B(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function V(e,t,n){if(null!=t){var r;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(n){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var F="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function j(e){function t(t){e.error=e.hasError?new F(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(n,function(e){return t(e),n()})}catch(e){t(e)}}if(e.hasError)throw e.error}()}var G={__extends:f,__assign:h,__rest:_,__decorate:E,__param:m,__metadata:g,__awaiter:S,__generator:v,__createBinding:T,__exportStar:y,__values:b,__read:A,__spread:R,__spreadArrays:O,__spreadArray:N,__await:I,__asyncGenerator:C,__asyncDelegator:M,__asyncValues:L,__makeTemplateOb
1ject:w,__importStar:D,__importDefault:x,__classPrivateFieldGet:U,__classPrivateFieldSet:k,__classPrivateFieldIn:B,__addDisposableResource:V,__disposeResources:j},H=c(Object.freeze({__proto__:null,__addDisposableResource:V,get __assign(){return h},__asyncDelegator:M,__asyncGenerator:C,__asyncValues:L,__await:I,__awaiter:S,__classPrivateFieldGet:U,__classPrivateFieldIn:B,__classPrivateFieldSet:k,__createBinding:T,__decorate:E,__disposeResources:j,__esDecorate:function(e,t,n,r,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,u=r.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!t&&e?r.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,f=n.length-1;f>=0;f--){var h={};for(var _ in r)h[_]="access"===_?{}:r[_];for(var _ in r.access)h.access[_]=r.access[_];h.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var E=(0,n[f])("accessor"===u?{get:p.get,set:p.set}:p[c],h);if("accessor"===u){if(void 0===E)continue;if(null===E||"object"!=typeof E)throw TypeError("Object expected");(s=a(E.get))&&(p.get=s),(s=a(E.set))&&(p.set=s),(s=a(E.init))&&o.unshift(s)}else(s=a(E))&&("field"===u?o.unshift(s):p[c]=s)}l&&Object.defineProperty(l,r.name,p),d=!0},__exportStar:y,__extends:f,__generator:v,__importDefault:x,__importStar:D,__makeTemplateOb
1ject:w,__metadata:g,__param:m,__propKey:function(e){return"symbol"==typeof e?e:"".concat(e)},__read:A,__rest:_,__runInitializers:function(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0},__setFunctionName:function(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})},__spread:R,__spreadArray:N,__spreadArrays:O,__values:b,default:G})),Y={},z="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{},W="1.8.0",$=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,K=function(e){var t=new Set([e]),n=new Set,r=e.match($);if(!r)return function(){return!1};var o=+r[1],i=+r[2],a=+r[3];if(null!=r[4])return function(t){return t===e};function s(e){return n.add(e),!1}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match($);if(!r)return s(e);var u=+r[1],c=+r[2],l=+r[3];return null!=r[4]||o!==u?s(e):0===o?i===c&&a<=l?(t.add(e),!0):s(e):i<=c?(t.add(e),!0):s(e)}}(W),X=Symbol.for("opentelemetry.js.api."+W.split(".")[0]);function q(e,t,n,r){void 0===r&&(r=!1);var o,i=z[X]=null!=(o=z[X])?o:{version:W};if(!r&&i[e]){var a=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(a.stack||a.message),!1}return i.version!==W?(a=Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+W),n.error(a.stack||a.message),!1):(i[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+W+"."),!0)}function J(e){var t,n,r=null==(t=z[X])?void 0:t.version;if(r&&K(r))return null==(n=z[X])?void 0:n[e]}function Z(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+W+".");var n=z[X];n&&delete n[e]}var Q,ee=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},et=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},en=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return er("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return er("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return er("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return er("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return er("verbose",this._namespace,e)},e}();function er(e,t,n){var r=J("diag");if(r)return n.unshift(t),r[e].apply(r,et([],ee(n),!1))}(e_=Q||(Q={}))[e_.NONE=0]="NONE",e_[e_.ERROR=30]="ERROR",e_[e_.WARN=50]="WARN",e_[e_.INFO=60]="INFO",e_[e_.DEBUG=70]="DEBUG",e_[e_.VERBOSE=80]="VERBOSE",e_[e_.ALL=9999]="ALL";var eo=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},ei=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},ea=function(){function e(){function e(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=J("diag");if(r)return r[e].apply(r,ei([],eo(t),!1))}}var t=this;t.setLogger=function(e,n){if(void 0===n&&(n={logLevel:Q.INFO}),e===t){var r,o,i,a=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!=(r=a.stack)?r:a.message),!1}"number"==typeof n&&(n={logLevel:n});var s=J("diag"),u=function(e,t){function n(n,r){var o=t[n];return"function"==typeof o&&e>=r?o.bind(t):function(){}}return e<Q.NONE?e=Q.NONE:e>Q.ALL&&(e=Q.ALL),t=t||{},{error:n("error",Q.ERROR),warn:n("warn",Q.WARN),info:n("info",Q.INFO),debug:n("debug",Q.DEBUG),verbose
1:n("verbose",Q.VERBOSE)}}(null!=(o=n.logLevel)?o:Q.INFO,e);if(s&&!n.suppressOverrideMessage){var c=null!=(i=Error().stack)?i:"<failed to generate stacktrace>";s.warn("Current logger will be overwritten from "+c),u.warn("Current logger will overwrite one already registered from "+c)}return q("diag",u,t,!0)},t.disable=function(){Z("diag",t)},t.createComponentLogger=function(e){return new en(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),es=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},eu=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ec=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=es(e,2);return[t[0],t[1]]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=new e(this._entries);try{for(var a=eu(r),s=a.next();!s.done;s=a.next()){var u=s.value;i._entries.delete(u)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e}(),el=Symbol("BaggageEntryMetadata"),ep=ea.instance();function ed(e){return void 0===e&&(e={}),new ec(new Map(Object.entries(e)))}function ef(e){return"string"!=typeof e&&(ep.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:el,toString:function(){return e}}}function eh(e){return Symbol.for(e)}var e_,eE,em,eg=new function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var o=new e(n._currentContext);return o._currentContext.set(t,r),o},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}},eS=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],ev=(eE=function(e,t){return(eE=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}eE(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),eT=function(){function e(){}return e.prototype.createHistogram=function(e,t){return ew},e.prototype.createCounter=function(e,t){return eL},e.prototype.createUpDownCounter=function(e,t){return eP},e.prototype.createObservableGauge=function(e,t){return ex},e.prototype.createObservableCounter=function(e,t){return eD},e.prototype.createObservableUpDownCounter=function(e,t){return eU},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),ey=function(){},eb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ev(t,e),t.prototype.add=function(e,t){},t}(ey),eA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ev(t,e),t.prototype.add=function(e,t){},t}(ey),eR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ev(t,e),t.prototype.record=function(e,t){},t}(ey),eO=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),eN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ev(t,e),t}(eO),eI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ev(t,e),t}(eO),eC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ev(t,e),t}(eO),eM=new eT,eL=new eb,ew=new eR,eP=new eA,eD=new eN,ex=new eI,eU=new eC;(ek=em||(em={}))[ek.INT=0]="INT",ek[ek.DOUBLE=1]="DOUBLE";var ek,eB,eV={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},eF={set:function(e,t,n){null!=e&&(e[t]=n)}},ej=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},eG=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},eH=function(){function e(){}return e.prototype.active=function(){return eg},e.prototype.with=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return t.call.apply(t,eG([n],ej(r),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),eY=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},ez=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},eW="context",e$=new eH,eK=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return q(eW,e,ea.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var r,o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return(r=this._getContextManager()).with.apply(r,ez([e,t,n],eY(o),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return J(eW)||e$},e.prototype.disable=function(){this._getContextManager().disable(),Z(eW,ea.instance())},e}();(tn=eB||(eB={}))[tn.NONE=0]="NONE",tn[tn.SAMPLED=1]="SAMPLED";var eX="0000000000000000",eq="00000000000000000000000000000000",eJ={traceId:eq,spanId:eX,traceFlags:eB.NONE},eZ=function(){function e(e){void 0===e&&(e=eJ),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}(),eQ=eh("OpenTelemetry Context Key SPAN");function e0(e){return e.getValue(eQ)||void 0}function e1(){return e0(eK.getInstance().active())}function e2(e,t){return e.setValue(eQ,t)}function e3(e){return e.deleteValue(eQ)}function e4(e,t){return e2(e,new eZ(t))}function e5(e){var t;return null==(t=e0(e))?void 0:t.spanContext()}var e6=/^([0-9a-f]{32})$/i,e8=/^[0-9a-f]{16}$/i;function e7(e){return e6.test(e)&&e!==eq}function e9(e){return e8.test(e)&&e!==eX}function te(e){return e7(e.traceId)&&e9(e.spanId)}function tt(e){return new eZ(e)}var tn,tr,to,ti,ta=eK.getInstance(),ts=function(){function e(){}return e.prototype.startSpan=function(e,t,n){if(void 0===n&&(n=ta.active()),null==t?void 0:t.root)return new eZ;var r=n&&e5(n);return"object"==typeof r&&"string"==typeof r.spanId&&"string"==typeof r.traceId&&"number"==typeof r.traceFlags&&te(r)?new eZ(r):new eZ},e.prototype.startActiveSpan=function(e,t,n,r){var o,i,a;if(!(arguments.length<2)){2==arguments.length?a=t:3==arguments.length?(o=t,a=n):(o=t,i=n,a=r);var s=null!=i?i:ta.active(),u=this.startSpan(e,o,s),c=e2(s,u);return ta.with(c,a,void 0,u)}},e}
1(),tu=new ts,tc=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):tu},e}(),tl=new(function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new ts},e}()),tp=function(){function e(){}return e.prototype.getTracer=function(e,t,n){var r;return null!=(r=this.getDelegateTracer(e,t,n))?r:new tc(this,e,t,n)},e.prototype.getDelegate=function(){var e;return null!=(e=this._delegate)?e:tl},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){var r;return null==(r=this._delegate)?void 0:r.getTracer(e,t,n)},e}();(tI=tr||(tr={}))[tI.NOT_RECORD=0]="NOT_RECORD",tI[tI.RECORD=1]="RECORD",tI[tI.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED",(tC=to||(to={}))[tC.INTERNAL=0]="INTERNAL",tC[tC.SERVER=1]="SERVER",tC[tC.CLIENT=2]="CLIENT",tC[tC.PRODUCER=3]="PRODUCER",tC[tC.CONSUMER=4]="CONSUMER",(tM=ti||(ti={}))[tM.UNSET=0]="UNSET",tM[tM.OK=1]="OK",tM[tM.ERROR=2]="ERROR";var td="[_0-9a-z-*/]",tf=RegExp("^(?:[a-z]"+td+"{0,255}|"+("[a-z0-9]"+td+"{0,240}@[a-z]")+td+"{0,13})$"),th=/^[ -~]{0,255}[!-~]$/,t_=/,|=/,tE=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+"="+e.get(n)),t},[]).join(",")},e.prototype._parse=function(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(function(e,t){var n=t.trim(),r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r),i=n.slice(r+1,t.length);tf.test(o)&&th.test(i)&&!t_.test(i)&&e.set(o,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),tm=eK.getInstance(),tg=ea.instance(),tS=new(function(){function e(){}return e.prototype.getMeter=function(e,t,n){return eM},e}()),tv="metrics",tT=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(e){return q(tv,e,ea.instance())},e.prototype.getMeterProvider=function(){return J(tv)||tS},e.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},e.prototype.disable=function(){Z(tv,ea.instance())},e})().getInstance(),ty=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}(),tb=eh("OpenTelemetry Baggage Key");function tA(e){return e.getValue(tb)||void 0}function tR(){return tA(eK.getInstance().active())}function tO(e,t){return e.setValue(tb,t)}function tN(e){return e.deleteValue(tb)}var tI,tC,tM,tL,tw="propagation",tP=new ty,tD=(function(){function e(){this.createBaggage=ed,this.getBaggage=tA,this.getActiveBaggage=tR,this.setBaggage=tO,this.deleteBaggage=tN}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return q(tw,e,ea.instance())},e.prototype.inject=function(e,t,n){return void 0===n&&(n=eF),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return void 0===n&&(n=eV),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Z(tw,ea.instance())},e.prototype._getGlobalPropagator=function(){return J(tw)||tP},e})().getInstance(),tx="trace",tU=(function(){function e(){this._proxyTracerProvider=new tp,this.wrapSpanContext=tt,this.isSpanContextValid=te,this.deleteSpan=e3,this.get
1Span=e0,this.getActiveSpan=e1,this.getSpanContext=e5,this.setSpan=e2,this.setSpanContext=e4}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=q(tx,this._proxyTracerProvider,ea.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return J(tx)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){Z(tx,ea.instance()),this._proxyTracerProvider=new tp},e})().getInstance(),tk={context:tm,diag:tg,metrics:tT,propagation:tD,trace:tU},tB=c(Object.freeze({__proto__:null,DiagConsoleLogger:function(){for(var e=0;e<eS.length;e++)this[eS[e].n]=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(console){var r=console[e];if("function"!=typeof r&&(r=console.log),"function"==typeof r)return r.apply(console,t)}}}(eS[e].c)},get DiagLogLevel(){return Q},INVALID_SPANID:eX,INVALID_SPAN_CONTEXT:eJ,INVALID_TRACEID:eq,ProxyTracer:tc,ProxyTracerProvider:tp,ROOT_CONTEXT:eg,get SamplingDecision(){return tr},get SpanKind(){return to},get SpanStatusCode(){return ti},get TraceFlags(){return eB},get ValueType(){return em},baggageEntryMetadataFromString:ef,context:tm,createContextKey:eh,createNoopMeter:function(){return eM},createTraceState:function(e){return new tE(e)},default:tk,defaultTextMapGetter:eV,defaultTextMapSetter:eF,diag:tg,isSpanContextValid:te,isValidSpanId:e9,isValidTraceId:e7,metrics:tT,propagation:tD,trace:tU})),tV={};function tF(e){for(var t={},n=e.length,r=0;r<n;r++){var o=e[r];o&&(t[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return t}var tj="aws.lambda.invoked_arn",tG="db.system",tH="db.connection_string",tY="db.user",tz="db.jdbc.driver_classname",tW="db.name",t$="db.statement",tK="db.operation",tX="db.mssql.instance_name",tq="db.cassandra.keyspace",tJ="db.cassandra.page_size",tZ="db.cassandra.consistency_level",tQ="db.cassandra.table",t0="db.cassandra.idempotence",t1="db.cassandra.speculative_execution_count",t2="db.cassandra.coordinator.id",t3="db.cassandra.coordinator.dc",t4="db.hbase.namespace",t5="db.redis.database_index",t6="db.mongodb.collection",t8="db.sql.table",t7="exception.type",t9="exception.message",ne="exception.stacktrace",nt="exception.escaped",nn="faas.trigger",nr="faas.execution",no="faas.document.collection",ni="faas.document.operation",na="faas.document.time",ns="faas.document.name",nu="faas.time",nc="faas.cron",nl="faas.coldstart",np="faas.invoked_name",nd="faas.invoked_provider",nf="faas.invoked_region",nh="net.transport",n_="net.peer.ip",nE="net.peer.port",nm="net.peer.name",ng="net.host.ip",nS="net.host.port",nv="net.host.name",nT="net.host.connection.type",ny="net.host.connection.subtype",nb="net.host.carrier.name",nA="net.host.carrier.mcc",nR="net.host.carrier.mnc",nO="net.host.carrier.icc",nN="peer.service",nI="enduser.id",nC="enduser.role",nM="enduser.scope",nL="thread.id",nw="thread.name",nP="code.function",nD="code.namespace",nx="code.filepath",nU="code.lineno",nk="http.method",nB="http.url",nV="http.target",nF="http.host",nj="http.scheme",nG="http.status_code",nH="http.flavor",nY="http.user_agent",nz="http.request_content_length",nW="http.request_content_length_uncompressed",n$="http.response_content_length",nK="http.response_content_length_uncompressed",nX="http.server_name",nq="http.route",nJ="http.client_ip",nZ="aws.dynamodb.table_names",nQ="aws.dynamodb.consumed_capacity",n0="aws.dynamodb.item_collection_metrics",n1="aws.dynamodb.provisioned_read_capacity",n2="aws.dynamodb.provisioned_write_capacity",n3="aws.dynamodb.consistent_read",n4="aws.dynamodb.projection",n5="aws.dynamodb.limit",n6="aws.dynamodb.attributes_to_get",n8="aws.dynamodb.index_name",n7="aws.dynamodb.select",n9="aws.dynamodb.global_secondary_indexes",re="aws.dynamodb.local_secondary_indexes",rt="aws.dynamodb.exclusive_start_table",rn="aws.dynamodb.table_count",rr="aws.dynamodb.scan_forward",ro="aws.dynamodb.segment",ri="aws.dynamodb.total_segments",ra="aws.dynamodb.count",rs="aws.dynamodb.scanned_count",ru="aws.dynamodb.attribute_definitions",rc="aws.dynamodb.global_secondary_index_updates",rl="messaging.system",rp="messaging.destination",rd="messaging.destination_kind",rf="messaging.temp_destination",rh="messaging.protocol",r_="messaging.protocol_version",rE="messaging.url",rm="messaging.message_id",rg="messaging.conversation_id",rS="messaging.message_payload_size_bytes",rv="messaging.message_payload_compressed_size_bytes",rT="messaging.operation",ry="messaging.consumer_id",rb="messaging.rabbitmq.routing_key",rA="messaging.kafka.message_key",rR="messaging.kafka.consumer_group",rO="messaging.kafka.client_id",rN="messaging.kafka.partition",rI="messaging.kafka.tombstone",rC="rpc.system",rM="rpc.service",rL="rpc.method",rw="rpc.grpc.status_code",rP="rpc.jsonrpc.version",rD="rpc.jsonrpc.request_id",rx="rpc.jsonrpc.error_code",rU="rpc.jsonrpc.error_message",rk="message.type",rB="message.id",rV="message.compressed_size",rF="message.uncompressed_size",rj=tF([tj,tG,tH,tY,tz,tW,t$,tK,tX,tq,tJ,tZ,tQ,t0,t1,t2,t3,t4,t5,t6,t8,t7,t9,ne,nt,nn,nr,no,ni,na,ns,nu,nc,nl,np,nd,nf,nh,n_,nE,nm,ng,nS,nv,nT,ny,nb,nA,nR,nO,nN,nI,nC,nM,nL,nw,nP,nD,nx,nU,nk,nB,nV,nF,nj,nG,nH,nY,nz,nW,n$,nK,nX,nq,nJ,nZ,nQ,n0,n1,n2,n3,n4,n5,n6,n8,n7,n9,re,rt,rn,rr,ro,ri,ra,rs,ru,rc,rl,rp,rd,rf,rh,r_,rE,rm,rg,rS,rv,rT,ry,rb,rA,rR,rO,rN,rI,rC,rM,rL,rw,rP,rD,rx,rU,rk,rB,rV,rF]),rG="other_sql",rH="mssql",rY="mysql",rz="oracle",rW="postgresql",r$="redshift",rK="hive",rX="cloudscape",rq="hsqldb",rJ="progress",rZ="maxdb",rQ="hanadb",r0="ingres",r1="firstsql",r2="cache",r3="adabas",r4="firebird",r5="derby",r6="filemaker",r8="informix",r7="instantdb",r9="interbase",oe="mariadb",ot="netezza",on="pervasive",or="pointbase",oo="sqlite",oi="sybase",oa="teradata",os="vertica",ou="coldfusion",oc="cassandra",ol="hbase",op="mongodb",od="redis",of="couchbase",oh="couchdb",o_="cosmosdb",oE="dynamodb",om="neo4j",og="geode",oS="elasticsearch",ov="memcached",oT="cockroachdb",oy=tF([rG,rH,rY,rz,"db2",rW,r$,rK,rX,rq,rJ,rZ,rQ,r0,r1,"edb",r2,r3,r4,r5,r6,r8,r7,r9,oe,ot,on,or,oo,oi,oa,os,"h2",ou,oc,ol,op,od,of,oh,o_,oE,om,og,oS,ov,oT]),ob="each_quorum",oA="quorum",oR="local_quorum",oO="three",oN="local_one",oI="serial",oC="local_serial",oM=tF(["all",ob,oA,oR,"one","two",oO,oN,"any",oI,oC]),oL="datasource",ow="http",oP="pubsub",oD="timer",ox="other",oU=tF([oL,ow,oP,oD,ox]),ok="insert",oB="edit",oV="delete",oF=tF([ok,oB,oV]),oj="alibaba_cloud",oG="azure",oH=tF([oj,"aws",oG,"gcp"]),oY="ip_tcp",oz="ip_udp",oW="unix",o$="pipe",oK="inproc",oX="other",oq=tF([oY,oz,"ip",oW,o$,oK,oX]),oJ="wifi",o
1Z="wired",oQ="cell",o0="unavailable",o1="unknown",o2=tF([oJ,oZ,oQ,o0,o1]),o3="gprs",o4="edge",o5="umts",o6="cdma",o8="evdo_0",o7="evdo_a",o9="cdma2000_1xrtt",ie="hsdpa",it="hsupa",ir="hspa",io="iden",ii="evdo_b",ia="ehrpd",is="hspap",iu="td_scdma",ic="iwlan",il="nrnsa",ip="lte_ca",id=tF([o3,o4,o5,o6,o8,o7,o9,ie,it,ir,io,ii,"lte",ia,is,"gsm",iu,ic,"nr",il,ip]),ih="SPDY",i_="QUIC",iE="queue",im="topic",ig=tF([iE,im]),iS="receive",iv="process",iT=tF([iS,iv]),iy="SENT",ib="RECEIVED",iA=tF([iy,ib]),iR="cloud.provider",iO="cloud.account.id",iN="cloud.region",iI="cloud.availability_zone",iC="cloud.platform",iM="aws.ecs.container.arn",iL="aws.ecs.cluster.arn",iw="aws.ecs.launchtype",iP="aws.ecs.task.arn",iD="aws.ecs.task.family",ix="aws.ecs.task.revision",iU="aws.eks.cluster.arn",ik="aws.log.group.names",iB="aws.log.group.arns",iV="aws.log.stream.names",iF="aws.log.stream.arns",ij="container.name",iG="container.id",iH="container.runtime",iY="container.image.name",iz="container.image.tag",iW="deployment.environment",i$="device.id",iK="device.model.identifier",iX="device.model.name",iq="faas.name",iJ="faas.id",iZ="faas.version",iQ="faas.instance",i0="faas.max_memory",i1="host.id",i2="host.name",i3="host.type",i4="host.arch",i5="host.image.name",i6="host.image.id",i8="host.image.version",i7="k8s.cluster.name",i9="k8s.node.name",ae="k8s.node.uid",at="k8s.namespace.name",an="k8s.pod.uid",ar="k8s.pod.name",ao="k8s.container.name",ai="k8s.replicaset.uid",aa="k8s.replicaset.name",as="k8s.deployment.uid",au="k8s.deployment.name",ac="k8s.statefulset.uid",al="k8s.statefulset.name",ap="k8s.daemonset.uid",ad="k8s.daemonset.name",af="k8s.job.uid",ah="k8s.job.name",a_="k8s.cronjob.uid",aE="k8s.cronjob.name",am="os.type",ag="os.description",aS="os.name",av="os.version",aT="process.pid",ay="process.executable.name",ab="process.executable.path",aA="process.command",aR="process.command_line",aO="process.command_args",aN="process.owner",aI="process.runtime.name",aC="process.runtime.version",aM="process.runtime.description",aL="service.name",aw="service.namespace",aP="service.instance.id",aD="service.version",ax="telemetry.sdk.name",aU="telemetry.sdk.language",ak="telemetry.sdk.version",aB="telemetry.auto.version",aV="webengine.name",aF="webengine.version",aj="webengine.description",aG=tF([iR,iO,iN,iI,iC,iM,iL,iw,iP,iD,ix,iU,ik,iB,iV,iF,ij,iG,iH,iY,iz,iW,i$,iK,iX,iq,iJ,iZ,iQ,i0,i1,i2,i3,i4,i5,i6,i8,i7,i9,ae,at,an,ar,ao,ai,aa,as,au,ac,al,ap,ad,af,ah,a_,aE,am,ag,aS,av,aT,ay,ab,aA,aR,aO,aN,aI,aC,aM,aL,aw,aP,aD,ax,aU,ak,aB,aV,aF,aj]),aH="alibaba_cloud",aY="azure",az=tF([aH,"aws",aY,"gcp"]),aW="alibaba_cloud_ecs",a$="alibaba_cloud_fc",aK="aws_ec2",aX="aws_ecs",aq="aws_eks",aJ="aws_lambda",aZ="aws_elastic_beanstalk",aQ="azure_vm",a0="azure_container_instances",a1="azure_aks",a2="azure_functions",a3="azure_app_service",a4="gcp_compute_engine",a5="gcp_cloud_run",a6="gcp_kubernetes_engine",a8="gcp_cloud_functions",a7="gcp_app_engine",a9=tF([aW,a$,aK,aX,aq,aJ,aZ,aQ,a0,a1,a2,a3,a4,a5,a6,a8,a7]),se="fargate",st=tF(["ec2",se]),sn="amd64",sr="arm32",so="arm64",si="ia64",sa="ppc32",ss="ppc64",su=tF([sn,sr,so,si,sa,ss,"x86"]),sc="windows",sl="linux",sp="darwin",sd="freebsd",sf="netbsd",sh="openbsd",s_="dragonflybsd",sE="hpux",sm="solaris",sg="z_os",sS=tF([sc,sl,sp,sd,sf,sh,s_,sE,"aix",sm,sg]),sv="dotnet",sT="erlang",sy="java",sb="nodejs",sA="python",sR="ruby",sO="webjs",sN=tF(["cpp",sv,sT,"go",sy,sb,"php",sA,sR,sO]),sI=c(Object.freeze({__proto__:null,AWSECSLAUNCHTYPEVALUES_EC2:"ec2",AWSECSLAUNCHTYPEVALUES_FARGATE:se,AwsEcsLaunchtypeValues:st,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:aW,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:a$,CLOUDPLATFORMVALUES_AWS_EC2:aK,CLOUDPLATFORMVALUES_AWS_ECS:aX,CLOUDPLATFORMVALUES_AWS_EKS:aq,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:aZ,CLOUDPLATFORMVALUES_AWS_LAMBDA:aJ,CLOUDPLATFORMVALUES_AZURE_AKS:a1,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:a3,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:a0,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:a2,CLOUDPLATFORMVALUES_AZURE_VM:aQ,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:a7,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:a8,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:a5,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:a4,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:a6,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:aH,CLOUDPROVIDERVALUES_AWS:"aws",CLOUDPROVIDERVALUES_AZURE:aY,CLOUDPROVIDERVALUES_GCP:"gcp",CloudPlatformValues:a9,CloudProviderValues:az,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:"all",DBCASSANDRACONSISTENCYLEVELVALUES_ANY:"any",DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:ob,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:oN,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:oR,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:oC,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:"one",DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:oA,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:oI,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:oO,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:"two",DBSYSTEMVALUES_ADABAS:r3,DBSYSTEMVALUES_CACHE:r2,DBSYSTEMVALUES_CASSANDRA:oc,DBSYSTEMVALUES_CLOUDSCAPE:rX,DBSYSTEMVALUES_COCKROACHDB:oT,DBSYSTEMVALUES_COLDFUSION:ou,DBSYSTEMVALUES_COSMOSDB:o_,DBSYSTEMVALUES_COUCHBASE:of,DBSYSTEMVALUES_COUCHDB:oh,DBSYSTEMVALUES_DB2:"db2",DBSY
1STEMVALUES_DERBY:r5,DBSYSTEMVALUES_DYNAMODB:oE,DBSYSTEMVALUES_EDB:"edb",DBSYSTEMVALUES_ELASTICSEARCH:oS,DBSYSTEMVALUES_FILEMAKER:r6,DBSYSTEMVALUES_FIREBIRD:r4,DBSYSTEMVALUES_FIRSTSQL:r1,DBSYSTEMVALUES_GEODE:og,DBSYSTEMVALUES_H2:"h2",DBSYSTEMVALUES_HANADB:rQ,DBSYSTEMVALUES_HBASE:ol,DBSYSTEMVALUES_HIVE:rK,DBSYSTEMVALUES_HSQLDB:rq,DBSYSTEMVALUES_INFORMIX:r8,DBSYSTEMVALUES_INGRES:r0,DBSYSTEMVALUES_INSTANTDB:r7,DBSYSTEMVALUES_INTERBASE:r9,DBSYSTEMVALUES_MARIADB:oe,DBSYSTEMVALUES_MAXDB:rZ,DBSYSTEMVALUES_MEMCACHED:ov,DBSYSTEMVALUES_MONGODB:op,DBSYSTEMVALUES_MSSQL:rH,DBSYSTEMVALUES_MYSQL:rY,DBSYSTEMVALUES_NEO4J:om,DBSYSTEMVALUES_NETEZZA:ot,DBSYSTEMVALUES_ORACLE:rz,DBSYSTEMVALUES_OTHER_SQL:rG,DBSYSTEMVALUES_PERVASIVE:on,DBSYSTEMVALUES_POINTBASE:or,DBSYSTEMVALUES_POSTGRESQL:rW,DBSYSTEMVALUES_PROGRESS:rJ,DBSYSTEMVALUES_REDIS:od,DBSYSTEMVALUES_REDSHIFT:r$,DBSYSTEMVALUES_SQLITE:oo,DBSYSTEMVALUES_SYBASE:oi,DBSYSTEMVALUES_TERADATA:oa,DBSYSTEMVALUES_VERTICA:os,DbCassandraConsistencyLevelValues:oM,DbSystemValues:oy,FAASDOCUMENTOPERATIONVALUES_DELETE:oV,FAASDOCUMENTOPERATIONVALUES_EDIT:oB,FAASDOCUMENTOPERATIONVALUES_INSERT:ok,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:oj,FAASINVOKEDPROVIDERVALUES_AWS:"aws",FAASINVOKEDPROVIDERVALUES_AZURE:oG,FAASINVOKEDPROVIDERVALUES_GCP:"gcp",FAASTRIGGERVALUES_DATASOURCE:oL,FAASTRIGGERVALUES_HTTP:ow,FAASTRIGGERVALUES_OTHER:ox,FAASTRIGGERVALUES_PUBSUB:oP,FAASTRIGGERVALUES_TIMER:oD,FaasDocumentOperationValues:oF,FaasInvokedProviderValues:oH,FaasTriggerValues:oU,HOSTARCHVALUES_AMD64:sn,HOSTARCHVALUES_ARM32:sr,HOSTARCHVALUES_ARM64:so,HOSTARCHVALUES_IA64:si,HOSTARCHVALUES_PPC32:sa,HOSTARCHVALUES_PPC64:ss,HOSTARCHVALUES_X86:"x86",HTTPFLAVORVALUES_HTTP_1_0:"1.0",HTTPFLAVORVALUES_HTTP_1_1:"1.1",HTTPFLAVORVALUES_HTTP_2_0:"2.0",HTTPFLAVORVALUES_QUIC:i_,HTTPFLAVORVALUES_SPDY:ih,HostArchValues:su,HttpFlavorValues:{HTTP_1_0:"1.0",HTTP_1_1:"1.1",HTTP_2_0:"2.0",SPDY:ih,QUIC:i_},MESSAGETYPEVALUES_RECEIVED:ib,MESSAGETYPEVALUES_SENT:iy,MESSAGINGDESTINATIONKINDVALUES_QUEUE:iE,MESSAGINGDESTINATIONKINDVALUES_TOPIC:im,MESSAGINGOPERATIONVALUES_PROCESS:iv,MESSAGINGOPERATIONVALUES_RECEIVE:iS,MessageTypeValues:iA,MessagingDestinationKindValues:ig,MessagingOperationValues:iT,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:o6,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:o9,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:o4,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:ia,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:o8,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:o7,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:ii,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:o3,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:"gsm",NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:ie,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:ir,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:is,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:it,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:io,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:ic,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:"lte",NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:ip,NETHOSTCONNECTIONSUBTYPEVALUES_NR:"nr",NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:il,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:iu,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:o5,NETHOSTCONNECTIONTYPEVALUES_CELL:oQ,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:o0,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:o1,NETHOSTCONNECTIONTYPEVALUES_WIFI:oJ,NETHOSTCONNECTIONTYPEVALUES_WIRED:oZ,NETTRANSPORTVALUES_INPROC:oK,NETTRANSPORTVALUES_IP:"ip",NETTRANSPORTVALUES_IP_TCP:oY,NETTRANSPORTVALUES_IP_UDP:oz,NETTRANSPORTVALUES_OTHER:oX,NETTRANSPORTVALUES_PIPE:o$,NETTRANSPORTVALUES_UNIX:oW,NetHostConnectionSubtypeValues:id,NetHostConnectionTypeValues:o2,NetTransportValues:oq,OSTYPEVALUES_AIX:"aix",OSTYPEVALUES_DARWIN:sp,OSTYPEVALUES_DRAGONFLYBSD:s_,OSTYPEVALUES_FREEBSD:sd,OSTYPEVALUES_HPUX:sE,OSTYPEVALUES_LINUX:sl,OSTYPEVALUES_NETBSD:sf,OSTYPEVALUES_OPENBSD:sh,OSTYPEVALUES_SOLARIS:sm,OSTYPEVALUES_WINDOWS:sc,OSTYPEVALUES_Z_OS:sg,OsTypeValues:sS,RPCGRPCSTATUSCODEVALUES_ABORTED:10,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:6,RPCGRPCSTATUSCODEVALUES_CANCELLED:1,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:15,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:4,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:9,RPCGRPCSTATUSCODEVALUES_INTERNAL:13,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:3,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:5,RPCGRPCSTATUSCODEVALUES_OK:0,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:11,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:7,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:8,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:16,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:14,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENT
1ED:12,RPCGRPCSTATUSCODEVALUES_UNKNOWN:2,RpcGrpcStatusCodeValues:{OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15,UNAUTHENTICATED:16},SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:n6,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:ru,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:n3,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:nQ,SEMATTRS_AWS_DYNAMODB_COUNT:ra,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:rt,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:n9,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:rc,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:n8,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:n0,SEMATTRS_AWS_DYNAMODB_LIMIT:n5,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:re,SEMATTRS_AWS_DYNAMODB_PROJECTION:n4,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:n1,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:n2,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:rs,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:rr,SEMATTRS_AWS_DYNAMODB_SEGMENT:ro,SEMATTRS_AWS_DYNAMODB_SELECT:n7,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:rn,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:nZ,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:ri,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:tj,SEMATTRS_CODE_FILEPATH:nx,SEMATTRS_CODE_FUNCTION:nP,SEMATTRS_CODE_LINENO:nU,SEMATTRS_CODE_NAMESPACE:nD,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:tZ,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:t3,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:t2,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:t0,SEMATTRS_DB_CASSANDRA_KEYSPACE:tq,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:tJ,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:t1,SEMATTRS_DB_CASSANDRA_TABLE:tQ,SEMATTRS_DB_CONNECTION_STRING:tH,SEMATTRS_DB_HBASE_NAMESPACE:t4,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:tz,SEMATTRS_DB_MONGODB_COLLECTION:t6,SEMATTRS_DB_MSSQL_INSTANCE_NAME:tX,SEMATTRS_DB_NAME:tW,SEMATTRS_DB_OPERATION:tK,SEMATTRS_DB_REDIS_DATABASE_INDEX:t5,SEMATTRS_DB_SQL_TABLE:t8,SEMATTRS_DB_STATEMENT:t$,SEMATTRS_DB_SYSTEM:tG,SEMATTRS_DB_USER:tY,SEMATTRS_ENDUSER_ID:nI,SEMATTRS_ENDUSER_ROLE:nC,SEMATTRS_ENDUSER_SCOPE:nM,SEMATTRS_EXCEPTION_ESCAPED:nt,SEMATTRS_EXCEPTION_MESSAGE:t9,SEMATTRS_EXCEPTION_STACKTRACE:ne,SEMATTRS_EXCEPTION_TYPE:t7,SEMATTRS_FAAS_COLDSTART:nl,SEMATTRS_FAAS_CRON:nc,SEMATTRS_FAAS_DOCUMENT_COLLECTION:no,SEMATTRS_FAAS_DOCUMENT_NAME:ns,SEMATTRS_FAAS_DOCUMENT_OPERATION:ni,SEMATTRS_FAAS_DOCUMENT_TIME:na,SEMATTRS_FAAS_EXECUTION:nr,SEMATTRS_FAAS_INVOKED_NAME:np,SEMATTRS_FAAS_INVOKED_PROVIDER:nd,SEMATTRS_FAAS_INVOKED_REGION:nf,SEMATTRS_FAAS_TIME:nu,SEMATTRS_FAAS_TRIGGER:nn,SEMATTRS_HTTP_CLIENT_IP:nJ,SEMATTRS_HTTP_FLAVOR:nH,SEMATTRS_HTTP_HOST:nF,SEMATTRS_HTTP_METHOD:nk,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:nz,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:nW,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:n$,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:nK,SEMATTRS_HTTP_ROUTE:nq,SEMATTRS_HTTP_SCHEME:nj,SEMATTRS_HTTP_SERVER_NAME:nX,SEMATTRS_HTTP_STATUS_CODE:nG,SEMATTRS_HTTP_TARGET:nV,SEMATTRS_HTTP_URL:nB,SEMATTRS_HTTP_USER_AGENT:nY,SEMATTRS_MESSAGE_COMPRESSED_SIZE:rV,SEMATTRS_MESSAGE_ID:rB,SEMATTRS_MESSAGE_TYPE:rk,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:rF,SEMATTRS_MESSAGING_CONSUMER_ID:ry,SEMATTRS_MESSAGING_CONVERSATION_ID:rg,SEMATTRS_MESSAGING_DESTINATION:rp,SEMATTRS_MESSAGING_DESTINATION_KIND:rd,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:rO,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:rR,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:rA,SEMATTRS_MESSAGING_KAFKA_PARTITION:rN,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:rI,SEMATTRS_MESSAGING_MESSAGE_ID:rm,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:rv,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:rS,SEMATTRS_MESSAGING_OPERATION:rT,SEMATTRS_MESSAGING_PROTOCOL:rh,SEMATTRS_MESSAGING_PROTOCOL_VERSION:r_,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:rb,SEMATTRS_MESSAGING_SYSTEM:rl,SEMATTRS_MESSAGING_TEMP_DESTINATION:rf,SEMATTRS_MESSAGING_URL:rE,SEMATTRS_NET_HOST_CARRIER_ICC:nO,SEMATTRS_NET_HOST_CARRIER_MCC:nA,SEMATTRS_NET_HOST_CARRIER_MNC:nR,SEMATTRS_NET_HOST_CARRIER_NAME:nb,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:ny,SEMATTRS_NET_HOST_CONNECTION_TYPE:nT,SEMATTRS_NET_HOST_IP:ng,SEMATTRS_NET_HOST_NAME:nv,SEMATTRS_NET_HOST_PORT:nS,SEMATTRS_NET_PEER_IP:n_,SEMATTRS_NET_PEER_NAME:nm,SEMATTRS_NET_PEER_PORT:nE,SEMATTRS_NET_TRANSPORT:nh,SEMATTRS_PEER_SERVICE:nN,SEMATTRS_RPC_GRPC_STATUS_CODE:rw,SEMATTRS_RPC_JSONRPC_ERROR_CODE:rx,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:rU,SEMATTRS_RPC_JSONRPC_REQUEST_ID:rD,SEMATTRS_RPC_JSONRPC_VERSION:rP,SEMATTRS_RPC_METHOD:rL,SEMATTRS_RPC_SERVICE:rM,SEMATTRS_RPC_SYSTEM:rC,SEMATTRS_THREAD_ID:nL,SEMATTRS_THREAD_NAME:nw,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:iL,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:iM,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:iw,SEMRESATTRS_AWS_ECS_TASK_ARN:iP,SEMRESATTRS_AWS_ECS_TASK_FAMILY:iD,SEMRESATTRS_AWS_ECS_TASK_REVISION:ix,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:iU,SEMRESATTRS_AWS_LOG_GROUP_ARNS:iB,SEMRESATTRS_AWS_LOG_GROUP_NAMES:ik,SEMRESATTRS_AWS_LOG_STREAM_ARNS:iF,SEMRESATTRS_AWS_LOG_STREAM_NAMES:iV,SEMRESATTRS_CLOUD_ACCOUNT_ID:iO,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:iI,SEMRESATTRS_CLOUD_PLATFORM:iC,SEMRESATTRS_CLOUD_PROVIDER:iR,SEMRESATTRS_CLOUD_REGION:iN,SEMRESATTRS_CONTAINER_ID:iG,SEMRESATTRS_CONTAINER_IMAGE_NAME:iY,SEMRESATTRS_CONTAINER_IMAGE_TAG:iz,SEMRESATTRS_CONTAINER_NAME:ij,SEMRESATTRS_CONTAINER_RUNTIME:iH,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:iW,SEMRESATTRS_DEVICE_ID:i$,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:iK,SEMRESATTRS_DEVICE_MODEL_NAME:iX,SEMRESATTRS_FAAS_ID:iJ,SEMRESATTRS_FAAS_INSTANCE:iQ,SEMRESATTRS_FAAS_MAX_MEMORY:i0,SEMRESATTRS_FAAS_NAME:iq,SEMRESATTRS_FAAS_VERSION:iZ,SEMRESATTRS_HOST_ARCH:i4,SEMRESATTRS_HOST_ID:i1,SEMRESATTRS_HOST_IMAGE_ID:i6,SEMRESATTRS_HOST_IMAGE_NAME:i5,SEMRESATTRS_HOST_IMAGE_VERSION:i8,SEMRESATTRS_HOST_NAME:i2,SEMRESATTRS_HOST_TYPE:i3,SEMRESATTRS_K8S_CLUSTER_NAME:i7,SEMRESATTRS_K8S_CONTAINER_NAME:ao,SEMRESATTRS_K8S_CRONJOB_NAME:aE,SEMRESATTRS_K8S_CRONJOB_UID:a_,SEMRESATTRS_K8S_DAEMONSET_NAME:ad,SEMRESATTRS_K8S_DAEMONSET_UID:ap,SEMRESATTRS_K8S_DEPLOYMENT_NAME:au,SEMRESATTRS_K8S_DEPLOYMENT_UID:as,SEMRESATTRS_K8S_JOB_NAME:ah,SEMRESATTRS_K8S_JOB_UID:af,SEMRESATTRS_K8S_NAMESPACE_NAME:at,SEMRESATTRS_K8S_NODE_NAME:i9,SEMRESATTRS_K8S_NODE_UID:ae,SEMRESATTRS_K8S_POD_NAME:ar,SEMRESATTRS_K8S_POD_UID:an,SEMRESATTRS_K8S_REPLICASET_NAME:aa,SEMRESATTRS_K8S_REPLICASET_UID:ai,SEMRESATTRS_K8S_STATEFULSET_NAME:al,SEMRESATTRS_K8S_STATEFULSET_UID:ac,SEMRESATTRS_OS_DESCRIPTION:ag,SEMRESATTRS_OS_NAME:aS,SEMRESATTRS_OS_TYPE:am,SEMRESATTRS_OS_VERSION:av,SEMRESATTRS_PROCESS_COMMAND:aA,SEMRESATTRS_PROCESS_COMMAND_ARGS:aO,SEMRESATTRS_PROCESS_COMMAND_LINE:aR,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:ay,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:ab,SEMRESATTRS_PROCESS_OWNER:aN,SEMRESATTRS_PROCESS_PID:aT,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:aM,SEMRESATTRS_PROCESS_RUNTIME_NAME:aI,SEMRESATTRS_PROCESS_RUNTIME_VERSION:aC,SEMRESATTRS_SERVICE_INSTANCE_ID:aP,SEMRESATTRS_SERVICE_NAME:aL,SEMRESATTRS_SERVICE_NAMESPACE:aw,SEMRESATTRS_SERVICE_VERSION:aD,SEMRESATTRS_TELEMETRY_AUTO_VERSION:aB,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:aU,SEMRESATTRS_TELEMETRY_SDK_NAME:ax,SEMRESATTRS_TELEMETRY_SDK_VERSION:ak,SEMRESATTRS_WEBENGINE_DESCRIPTION:aj,SEMRESATTRS_WEBENGINE_NAME:aV,SEMRESATTRS_WEBENGINE_VERSION:aF,SemanticAttributes:rj,SemanticResourceAttributes:aG,TELEMETRYSDKLANGUAGEVALUES_CPP:"cpp",TELEMETRYSDKLANGUAGEVALUES_DOTNET:sv,TELEMETRYSDKLANGUAGEVALUES_ERLANG:sT,TELEMETRYSDKLANGUAGEVALUES_GO:"go",TELEMETRYSDKLANGUAGEVALUES_JAVA:sy,TELEMETRYSDKLANGUAGEVALUES_NODEJS:sb,TELEMETRYSDKLANGUAGEVALUES_PHP:"php",TELEMETRYSDKLANGUAGEVALUES_PYTHON:sA,TELEMETRYSDKLANGUAGEVALUES_RUBY:sR,TELEMETRYSDKLANGUAGEVALUES_WEBJS:sO,TelemetrySdkLanguageValues:sN})),sC="@hyperdx/instrumentation-sentry-node",sM="0.1.0",sL={},sw={exports:{}};function sP(e,t){var n=[],r=[];
1return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"}),function(o,i){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?r.splice(a,1/0,o):r.push(o),~n.indexOf(i)&&(i=t.call(this,o,i))}else n.push(i);return null==e?i:e.call(this,o,i)}}(sw.exports=function(e,t,n,r){return JSON.stringify(e,sP(t,r),n)}).getSerialize=sP;var sD,sx,sU=sw.exports,sk=u(sU);function sB(){return sx||(sx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getEventProcessor=e.getSpanNameFromEvent=e.isSentryEventAnException=e.extractSpanEventsFromException=e.extractSemAttrsFromEvent=e.SEMATTRS_SENTRY_VERSION=e.SEMATTRS_EXCEPTION_THREAD_ID=e.SEMATTRS_EXCEPTION_TAGS=e.SEMATTRS_EXCEPTION_PARSED_STACKTRACE=e.SEMATTRS_EXCEPTION_MODULES=e.SEMATTRS_EXCEPTION_MODULE=e.SEMATTRS_EXCEPTION_MECHANISM=void 0;let t=H.__importStar(tB),n=(tL||(tL=1,Object.defineProperty(tV,"__esModule",{value:!0}),tV.ExceptionEventName=void 0,tV.ExceptionEventName="exception"),tV),r=function(){if(sD)return sL;sD=1,Object.defineProperty(sL,"__esModule",{value:!0}),sL.jsonToString=void 0;let e=H.__importDefault(sU);return sL.jsonToString=t=>{try{return JSON.stringify(t)}catch(n){return tB.diag.error("Failed to stringify json",n),(0,e.default)(t)}},sL}(),o=t.default.trace.getTracer(sC,sM);e.SEMATTRS_EXCEPTION_MECHANISM="exception.mechanism",e.SEMATTRS_EXCEPTION_MODULE="exception.module",e.SEMATTRS_EXCEPTION_MODULES="exception.modules",e.SEMATTRS_EXCEPTION_PARSED_STACKTRACE="exception.parsed_stacktrace",e.SEMATTRS_EXCEPTION_TAGS="exception.tags",e.SEMATTRS_EXCEPTION_THREAD_ID="exception.thread_id",e.SEMATTRS_SENTRY_VERSION="sentry.version",e.extractSemAttrsFromEvent=(t,n,o)=>{var i,a,s,u,c,l;return{...o&&{[e.SEMATTRS_SENTRY_VERSION]:o},...t.modules&&{[e.SEMATTRS_EXCEPTION_MODULES]:(0,r.jsonToString)(t.modules)},[e.SEMATTRS_EXCEPTION_TAGS]:(0,r.jsonToString)({culture:null==(i=t.contexts)?void 0:i.culture,dist:t.dist,environment:t.environment,mechanism:n.mechanism,release:t.release}),...(null==(a=t.contexts)?void 0:a.app)&&{"app.build_type":t.contexts.app.build_type,"app.id":t.contexts.app.app_identifier,"app.memory":t.contexts.app.app_memory,"app.name":t.contexts.app.app_name,"app.start_time":t.contexts.app.app_start_time,"app.version":t.contexts.app.app_version},...(null==(s=t.contexts)?void 0:s.response)&&{[sI.SEMATTRS_HTTP_STATUS_CODE]:t.contexts.response.status_code,[sI.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH]:t.contexts.response.body_size,...(t.contexts.response.headers&&Object.entries(t.contexts.response.headers).reduce((e,[t,n])=>(e[`http.response.header.${t}`]=n,e)),{})},...(null==(u=t.contexts)?void 0:u.cloud_resource)&&{"cloud.provider":t.contexts.cloud_resource["cloud.provider"],"cloud.account.id":t.contexts.cloud_resource["cloud.account.id"],"cloud.region":t.contexts.cloud_resource["cloud.region"],"cloud.availability_zone":t.contexts.cloud_resource["cloud.availability_zone"],"cloud.platform":t.contexts.cloud_resource["cloud.platform"],"host.id":t.contexts.cloud_resource["host.id"],"host.type":t.contexts.cloud_resource["host.type"]},...(null==(c=t.contexts)?void 0:c.os)&&{"os.build_id":t.contexts.os.build,"os.kernel_version":t.contexts.os.kernel_version,"os.type":t.contexts.os.name,"os.version":t.contexts.os.version},...(null==(l=t.contexts)?void 0:l.device)&&{"device.id":t.contexts.device.device_unique_identifier,"device.manufacturer":t.contexts.device.manufacturer,"device.model.identifier":t.contexts.device.model_id,"device.model.name":t.contexts.device.model,"device.type":t.contexts.device.device_type,"device.battery_level":t.contexts.device.battery_level,"device.battery_status":t.contexts.device.battery_status,"device.orientation":t.contexts.device.orientation,"device.brand":t.contexts.device.brand,"device.sreen_resolution":t.contexts.device.screen_resolution,"device.screen_height_pixels":t.contexts.device.screen_height_pixels,"device.screen_width_pixels":t.contexts.device.screen_width_pixels,"device.screen_density":t.contexts.device.screen_density,"device.screen_dpi":t.contexts.device.screen_dpi,"device.online":t.contexts.device.online,"device.charging":t.contexts.device.charging,"device.supports_vibration":t.contexts.device.supports_vibration,"device.supports_accelerometer":t.contexts.device.supports_accelerometer,"device.supports_gyroscope":t.contexts.device.supports_gyroscope,"device.supports_audio":t.contexts.device.supports_audio,"device.supports_location_service":t.contexts.device.supports_location_service,"device.boot_time":t.contexts.device.boot_time,"device.low_memory":t.contexts.device.low_memory,"device.simulator":t.contexts.device.simulator,"device.memory_size":t.contexts.device.memory_size,"device.free_memory":t.contexts.device.free_memory,"device.usable_memory":t.contexts.device.usable_memory,"device.storage_size":t.contexts.device.storage_size,"device.free_storage":t.contexts.device.free_storage,"device.external_storage_size":t.contexts.device.external_storage_size,"device.external_free_storage":t.contexts.device.external_free_storage,"host.cpu.model.name":t.contexts.device.cpu_description,"host.cpu.count":t.contexts.device.processor_count,"host.cpu.frequency":t.contexts.device.processor_frequency},...t.server_name&&{"host.name":t.server_name}}},e.extractSpanEventsFromException=t=>({[sI.SEMATTRS_EXCEPTION_MESSAGE]:t.value,[e.SEMATTRS_EXCEPTION_PARSED_STACKTRACE]:(0,r.jsonToString)(t.stacktrace),[sI.SEMATTRS_EXCEPTION_TYPE]:t.type,...t.mechanism&&{[e.SEMATTRS_EXCEPTION_MECHANISM]:(0,r.jsonToString)(t.mechanism)},...t.module&&{[e.SEMATTRS_EXCEPTION_MODULE]:t.module},...t.thread_id&&{[e.SEMATTRS_EXCEPTION_THREAD_ID]:t.thread_id}}),e.isSentryEventAnException=e=>{var t,n;return(null==(n=null==(t=e.exception)?void 0:t.values)?void 0:n.length)>0},e.getSpanNameFromEvent=e=>{var t;return e.message?e.message:[null==(t=e.exception)?void 0:t.values[0].type,e.transaction].join(" ")},e.getEventProcessor=(r,i)=>(a,s,u,c)=>{try{if(t.diag.debug("Received Sentry event",a),(0,e.isSentryEventAnException)(a)){let l=r;null==l&&(l=o,t.diag.debug("Using default tracer")),(({customAttributes:r,event:o,hint:i,sentryVersion:a,span:s,spanStatus:u,tracer:c})=>{var l,p;let d=s,f=!1,h=1e3*o.timestamp,_=(0,e.extractSemAttrsFromEvent)(o,i,a);for(let i of(null==d&&(f=!0,d=c.startSpan((0,e.getSpanNameFromEvent)(o),{attributes:{...r,..._},startTime:h,kind:t.SpanKind.INTERNAL})),d.setStatus({code:u}),null!=(p=null==(l=o.exception)?void 0:l.values)?p:[]))d.addEvent(n.ExceptionEventName,(0,e.extractSpanEventsFromException)(i));f&&d.end(h)})({customAttributes:c,event:a,hint:s,sentryVersion:i,span:u,spanStatus:t.SpanStatusCode.ERROR,tracer:l})}}catch(e){t.diag.error("Error processing event",e)}return a}}(Y)),Y}var sV={},sF=function(){function e(){}return e.prototype.emit=function(e){},e}(),sj=new(function(){function e(){}return e.prototype.getLogger=function(e,t,n){return new sF},e}()),sG="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{},sH=Symbol.for("io.opentelemetry.js.api.logs"),sY=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(e){return sG[sH]?this.getLoggerProvider():(sG[sH]=function(t){return 1===t?e:sj},e)},e.prototype.getLoggerProvider=function(){var e,t;return null!=(t=null==(e=sG[sH])?void 0:e.call(sG,1))?t:sj},e.prototype.getLogger=function(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)},e.prototype.disable=function(){delete sG[sH]},e})().getInstance();function sz(e){var t=function e(t){void 0===t&&(t=[]);for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];
1if(Array.isArray(i)){var a=e(i);n=n.concat(a.instrumentations)}else"function"==typeof i?n.push(new i):i.instrumentationName&&n.push(i)}return{instrumentations:n}}(e.instrumentations).instrumentations;return function(e,t,n,r){for(var o=0,i=e.length;o<i;o++){var a=e[o];t&&a.setTracerProvider(t),n&&a.setMeterProvider(n),r&&a.setLoggerProvider&&a.setLoggerProvider(r),a.getConfig().enabled||a.enable()}}(t,e.tracerProvider||tU.getTracerProvider(),e.meterProvider||tT.getMeterProvider(),e.loggerProvider||sY.getLoggerProvider()),function(){t.forEach(function(e){return e.disable()})}}function sW(e){return"function"==typeof e}var s$=console.error.bind(console);function sK(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function sX(e){e&&e.logger&&(sW(e.logger)?s$=e.logger:s$("new logger isn't a function, not replacing"))}function sq(e,t,n){if(e&&e[t]){if(!n)return s$("no wrapper function"),void s$(Error().stack);if(sW(e[t])&&sW(n)){var r=e[t],o=n(r,t);return sK(o,"__original",r),sK(o,"__unwrap",function(){e[t]===o&&sK(e,t,r)}),sK(o,"__wrapped",!0),sK(e,t,o),o}s$("original object and wrapper must be functions")}else s$("no original function "+t+" to wrap")}function sJ(e,t){return e&&e[t]?e[t].__unwrap?e[t].__unwrap():void s$("no original to unwrap to -- has "+t+" already been unwrapped?"):(s$("no function to unwrap."),void s$(Error().stack))}sX.wrap=sq,sX.massWrap=function(e,t,n){if(!e)return s$("must provide one or more modules to patch"),void s$(Error().stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach(function(e){t.forEach(function(t){sq(e,t,n)})}):s$("must provide one or more functions to wrap on modules")},sX.unwrap=sJ,sX.massUnwrap=function(e,t){if(!e)return s$("must provide one or more modules to patch"),void s$(Error().stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach(function(e){t.forEach(function(t){sJ(e,t)})}):s$("must provide one or more functions to unwrap on modules")};var sZ=function(){return(sZ=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},sQ=function(){function e(e,t,n){void 0===n&&(n={}),this.instrumentationName=e,this.instrumentationVersion=t,this._wrap=sX.wrap,this._unwrap=sX.unwrap,this._massWrap=sX.massWrap,this._massUnwrap=sX.massUnwrap,this._config=sZ({enabled:!0},n),this._diag=tg.createComponentLogger({namespace:e}),this._tracer=tU.getTracer(e,t),this._meter=tT.getMeter(e,t),this._logger=sY.getLogger(e,t),this._updateMetricInstruments()}return Object.defineProperty(e.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),e.prototype.setMeterProvider=function(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(e.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),e.prototype.setLoggerProvider=function(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)},e.prototype.getModuleDefinitions=function(){var e,t=null!=(e=this.init())?e:[];return Array.isArray(t)?t:[t]},e.prototype._updateMetricInstruments=function(){},e.prototype.getConfig=function(){return this._config},e.prototype.setConfig=function(e){void 0===e&&(e={}),this._config=Object.assign({},e)},e.prototype.setTracerProvider=function(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(e.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),e}
1(),s0=(s5=function(e,t){return(s5=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s5(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s1=function(e){function t(t,n,r){void 0===r&&(r={});var o=e.call(this,t,n,r)||this;return o._config.enabled&&o.enable(),o}return s0(t,e),t}(sQ),s2=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}};function s3(e,t,n){var r,o;try{o=e()}catch(e){r=e}finally{if(t(r,o),r&&!n)throw r;return o}}function s4(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}var s5,s6,s8,s7,s9=c(Object.freeze({__proto__:null,InstrumentationBase:s1,InstrumentationNodeModuleDefinition:function(e,t,n,r,o){this.name=e,this.supportedVersions=t,this.patch=n,this.unpatch=r,this.files=o||[]},InstrumentationNodeModuleFile:function(e,t,n,r){this.supportedVersions=t,this.patch=n,this.unpatch=r,this.name=(tg.warn("Path normalization is not implemented for this platform. To silence this warning, ensure no node-specific instrumentations are loaded, and node-specific types (e.g. InstrumentationNodeModuleFile), are not used in a browser context)"),e)},isWrapped:s4,registerInstrumentations:sz,safeExecuteInTheMiddle:s3,safeExecuteInTheMiddleAsync:function(e,t,n){var r,o,i,a;return r=this,o=void 0,i=void 0,a=function(){var r,o;return s2(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),[4,e()];case 1:return o=i.sent(),[3,4];case 2:return r=i.sent(),[3,4];case 3:if(t(r,o),r&&!n)throw r;return[2,o];case 4:return[2]}})},new(i||(i=Promise))(function(e,t){function n(e){try{u(a.next(e))}catch(e){t(e)}}function s(e){try{u(a.throw(e))}catch(e){t(e)}}function u(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(n,s)}u((a=a.apply(r,o||[])).next())})}})),ue={},ut={};Object.defineProperty(p,"__esModule",{value:!0}),H.__exportStar(sB(),p),H.__exportStar(function(){if(s8)return sV;s8=1,Object.defineProperty(sV,"__esModule",{value:!0}),sV.SentryNodeInstrumentation=void 0;let e=s9,t=(s6||(s6=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hyperdxIntegration=e._hyperdxIntegration=void 0;let t=sB();e._hyperdxIntegration=(e={})=>({name:"HyperDX",setupOnce(){},setup(e){var n;if(!e.on)return;let r=e.getSdkMetadata(),o=(0,t.getEventProcessor)(void 0,null==(n=r.sdk)?void 0:n.version);e.on("beforeSendEvent",(e,t)=>{o(e,t)})}}),e.hyperdxIntegration=e._hyperdxIntegration}(ue)),ue);class n extends e.InstrumentationBase{constructor(e={}){super(sC,sM,e)}setConfig(e={}){this._config=Object.assign({},e)}getConfig(){return this._config}init(){return[new e.InstrumentationNodeModuleDefinition("@sentry/node",[">=7.30.0 <9"],e=>(tB.diag.debug(`Detected Sentry installed with SDK version: ${e.SDK_VERSION}`),this._wrap(e,"init",n=>(...r)=>{let o=n.apply(this,r);try{e.addIntegration instanceof Function?(e.addIntegration((0,t.hyperdxIntegration)()),tB.diag.debug("Added HyperDX Sentry integration")):tB.diag.error("Sentry SDK does not support addIntegration method")}catch(e){tB.diag.error("Error adding HyperDX Sentry integration",e)}return o}
1),e),e=>{})]}}return sV.SentryNodeInstrumentation=n,sV}(),p),H.__exportStar((s7||(s7=1,Object.defineProperty(ut,"__esModule",{value:!0})),ut),p);var un={},ur={},uo={},ui={},ua={};Object.defineProperty(ua,"__esModule",{value:!0});let us=Object.prototype.toString;function uu(e,t){return us.call(e)===`[object ${t}]`}function uc(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function ul(e){return uu(e,"Object")}function up(e,t){try{return e instanceof t}catch(e){return!1}}ua.isDOMError=function(e){return uu(e,"DOMError")},ua.isDOMException=function(e){return uu(e,"DOMException")},ua.isElement=function(e){return"undefined"!=typeof Element&&up(e,Element)},ua.isError=function(e){switch(us.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return up(e,Error)}},ua.isErrorEvent=function(e){return uu(e,"ErrorEvent")},ua.isEvent=function(e){return"undefined"!=typeof Event&&up(e,Event)},ua.isInstanceOf=up,ua.isParameterizedString=uc,ua.isPlainObject=ul,ua.isPrimitive=function(e){return null===e||uc(e)||"object"!=typeof e&&"function"!=typeof e},ua.isRegExp=function(e){return uu(e,"RegExp")},ua.isString=function(e){return uu(e,"String")},ua.isSyntheticEvent=function(e){return ul(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e},ua.isThenable=function(e){return!!(e&&e.then&&"function"==typeof e.then)},ua.isVueViewModel=function(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)};var ud={};function uf(e,t,n=!1){return!!ua.isString(e)&&(ua.isRegExp(t)?t.test(e):!!ua.isString(t)&&(n?e===t:e.includes(t)))}function uh(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function u_(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}Object.defineProperty(ud,"__esModule",{value:!0}),ud.isMatchingPattern=uf,ud.safeJoin=function(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{ua.isVueViewModel(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)},ud.snipLine=function(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n},ud.stringMatchesSomePattern=function(e,t=[],n=!1){return t.some(t=>uf(e,t,n))},ud.truncate=function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`},Object.defineProperty(ui,"__esModule",{value:!0}),ui.applyAggregateErrorsToEvent=function(e,t,n=250,r,o,i,a){if(!(i.exception&&i.exception.values&&a&&ua.isInstanceOf(a.originalException,Error)))return;let s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=(function e(t,n,r,o,i,a,s,u){if(a.length>=r+1)return a;let c=[...a];if(ua.isInstanceOf(o[i],Error)){uh(s,u);let a=t(n,o[i]),l=c.length;u_(a,i,l,u),c=e(t,n,r,o[i],i,[a,...c],a,l)}return Array.isArray(o.errors)&&o.errors.forEach((o,a)=>{if(ua.isInstanceOf(o,Error)){uh(s,u);let l=t(n,o),p=c.length;u_(l,`errors[${a}]`,p,u),c=e(t,n,r,o,i,[l,...c],l,p)}}),c})(e,t,o,a.originalException,r,i.exception.values,s,0).map(e=>(e.value&&(e.value=ud.truncate(e.value,n)),e)))};var uE={},um={},ug={};Object.defineProperty(ug,"__esModule",{value:!0}),ug.SDK_VERSION="8.7.0",Object.defineProperty(um,"__esModule",{value:!0});let uS=globalThis;um.GLOBAL_OBJ=uS,um.getGlobalSingleton=function(e,t,n){let r=n||uS,o=r.__SENTRY__=r.__SENTRY__||{},i=o[ug.SDK_VERSION]=o[ug.SDK_VERSION]||{};return i[e]||(i[e]=t())},Object.defineProperty(uE,"__esModule",{value:!0});let uv=um.GLOBAL_OBJ;uE.getComponentName=function(e){if(!uv.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null},uE.getDomElement=function(e){return uv.document&&uv.document.querySelector?uv.document.querySelector(e):null},uE.getLocationHref=function(){try{return uv.document.location.href}catch(e){return""}},uE.htmlTreeAsString=function(e,t={}){if(!e)return"<unknown>";try{let n,r=e,o=[],i=0,a=0,s=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&i++<5&&(n=function(e,t){let n,r,o,i,a,s=[];if(!e||!e.tagName)return"";if(uv.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}s.push(e.tagName.toLowerCase());let u=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;
1if(u&&u.length)u.forEach(e=>{s.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&s.push(`#${e.id}`),(n=e.className)&&ua.isString(n))for(r=n.split(/\s+/),a=0;a<r.length;a++)s.push(`.${r[a]}`);let c=["aria-label","type","name","title","alt"];for(a=0;a<c.length;a++)o=c[a],(i=e.getAttribute(o))&&s.push(`[${o}="${i}"]`);return s.join("")}(r,s),!("html"===n||i>1&&a+3*o.length+n.length>=u));)o.push(n),a+=n.length,r=r.parentNode;return o.reverse().join(" > ")}catch(e){return"<unknown>"}};var uT={},uy={};Object.defineProperty(uy,"__esModule",{value:!0}),uy.DEBUG_BUILD="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var ub={};Object.defineProperty(ub,"__esModule",{value:!0});let uA=["debug","info","warn","error","log","assert","trace"],uR={};function uO(e){if(!("console"in um.GLOBAL_OBJ))return e();let t=um.GLOBAL_OBJ.console,n={},r=Object.keys(uR);r.forEach(e=>{let r=uR[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let uN=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return uy.DEBUG_BUILD?uA.forEach(n=>{t[n]=(...t)=>{e&&uO(()=>{um.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...t)})}}):uA.forEach(e=>{t[e]=()=>{}}),t}();ub.CONSOLE_LEVELS=uA,ub.consoleSandbox=uO,ub.logger=uN,ub.originalConsoleMethods=uR,Object.defineProperty(uT,"__esModule",{value:!0});let uI=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function uC(e){let t=uI.exec(e);if(!t)return void ub.consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[n,r,o="",i,a="",s]=t.slice(1),u="",c=s,l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return uM({host:i,pass:o,path:u,projectId:c,port:a,protocol:n,publicKey:r})}function uM(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}uT.dsnFromString=uC,uT.dsnToString=function(e,t=!1){let{host:n,path:r,pass:o,port:i,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${a}`},uT.makeDsn=function(e){let t="string"==typeof e?uC(e):uM(e);if(t&&function(e){if(!uy.DEBUG_BUILD)return!0;let{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(ub.logger.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?"http"===r||"https"===r?t&&isNaN(parseInt(t,10))&&(ub.logger.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(ub.logger.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(ub.logger.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t};var uL={};Object.defineProperty(uL,"__esModule",{value:!0});class uw extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}uL.SentryError=uw;var uP={},uD={};function ux(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){uy.DEBUG_BUILD&&ub.logger.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function uU(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,ux(e,"__sentry_original__",t)}catch(e){}}function uk(e){if(ua.isError(e))return{message:e.message,name:e.name,stack:e.stack,...uV(e)};if(ua.isEvent(e)){let t={type:e.type,target:uB(e.target),currentTarget:uB(e.currentTarget),...uV(e)};return"undefined"!=typeof CustomEvent&&ua.isInstanceOf(e,CustomEvent)&&(t.detail=e.detail),t}return e}function uB(e){try{return ua.isElement(e)?uE.htmlTreeAsString(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function uV(e){if("object"==typeof e&&null!==e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}Object.defineProperty(uD,"__esModule",{value:!0}),uD.addNonEnumerableProperty=ux,uD.convertToPlainObject=uk,uD.dropUndefinedKeys=function(e){return function e(t,n){if(function(e){if(!ua.isPlainObject(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let o={};
1for(let r of(n.set(t,o),Object.keys(t)))void 0!==t[r]&&(o[r]=e(t[r],n));return o}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let o=[];return n.set(t,o),t.forEach(t=>{o.push(e(t,n))}),o}return t}(e,new Map)},uD.extractExceptionKeysForMessage=function(e,t=40){let n=Object.keys(uk(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return ud.truncate(n[0],t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:ud.truncate(r,t)}return""},uD.fill=function(e,t,n){if(!(t in e))return;let r=e[t],o=n(r);"function"==typeof o&&uU(o,r),e[t]=o},uD.getOriginalFunction=function(e){return e.__sentry_original__},uD.markFunctionWrapped=uU,uD.objectify=function(e){let t;switch(!0){case null==e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case ua.isPrimitive(e):t=new e.constructor(e);break;default:t=e}return t},uD.urlEncode=function(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")};var uF={},uj={};Object.defineProperty(uj,"__esModule",{value:!0});let uG=/\(error: (.*)\)/,uH=/captureMessage|captureException/;function uY(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let o=[],i=e.split("\n");for(let e=n;e<i.length;e++){let n=i[e];if(n.length>1024)continue;let a=uG.test(n)?n.replace(uG,"$1"):n;if(!a.match(/\S*Error: /)){for(let e of t){let t=e(a);if(t){o.push(t);break}}if(o.length>=50+r)break}}return uz(o.slice(r))}}function uz(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),uH.test(t[t.length-1].function||"")&&(t.pop(),uH.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"}))}let uW="<anonymous>";uj.UNKNOWN_FUNCTION="?",uj.createStackParser=uY,uj.getFunctionName=function(e){try{return e&&"function"==typeof e&&e.name||uW}catch(e){return uW}},uj.stackParserFromStackParserOptions=function(e){return Array.isArray(e)?uY(...e):e},uj.stripSentryFramesAndReverse=uz,Object.defineProperty(uF,"__esModule",{value:!0});let u$={},uK={};function uX(){"console"in um.GLOBAL_OBJ&&ub.CONSOLE_LEVELS.forEach(function(e){e in um.GLOBAL_OBJ.console&&uD.fill(um.GLOBAL_OBJ.console,e,function(t){return ub.originalConsoleMethods[e]=t,function(...t){uF.triggerHandlers("console",{args:t,level:e});let n=ub.originalConsoleMethods[e];n&&n.apply(um.GLOBAL_OBJ.console,t)}})})}uF.addHandler=function(e,t){u$[e]=u$[e]||[],u$[e].push(t)},uF.maybeInstrument=function(e,t){uK[e]||(t(),uK[e]=!0)},uF.resetInstrumentationHandlers=function(){Object.keys(u$).forEach(e=>{u$[e]=void 0})},uF.triggerHandlers=function(e,t){let n=e&&u$[e];if(n)for(let r of n)try{r(t)}catch(t){uy.DEBUG_BUILD&&ub.logger.error(`Error while triggering instrumentation handler. 2Type: ${e} 3Name: ${uj.getFunctionName(r)} 4Error:`,t)}},Object.defineProperty(uP,"__esModule",{value:!0}),uP.addConsoleInstrumentationHandler=function(e){let t="console";uF.addHandler(t,e),uF.maybeInstrument(t,uX)};var uq={},uJ={};Object.defineProperty(uJ,"__esModule",{value:!0});let uZ=um.GLOBAL_OBJ;function uQ(){if(!("fetch"in uZ))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function u0(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}uJ.isNativeFunction=u0,uJ.supportsDOMError=function(){try{return new DOMError(""),!0}catch(e){return!1}},uJ.supportsDOMException=function(){try{return new DOMException(""),!0}catch(e){return!1}},uJ.supportsErrorEvent=function(){try{return new ErrorEvent(""),!0}catch(e){return!1}},uJ.supportsFetch=uQ,uJ.supportsNativeFetch=function(){if("string"==typeof EdgeRuntime)return!0;if(!uQ())return!1;if(u0(uZ.fetch))return!0;let e=!1,t=uZ.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");
4n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=u0(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){uy.DEBUG_BUILD&&ub.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e},uJ.supportsReferrerPolicy=function(){if(!uQ())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}},uJ.supportsReportingObserver=function(){return"ReportingObserver"in uZ};var u1={};function u2(){return Date.now()/1e3}Object.defineProperty(u1,"__esModule",{value:!0});let u3=function(){let{performance:e}=um.GLOBAL_OBJ;if(!e||!e.now)return u2;let t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();u1._browserPerformanceTimeOriginMode=void 0;let u4=(()=>{let{performance:e}=um.GLOBAL_OBJ;if(!e||!e.now)return void(u1._browserPerformanceTimeOriginMode="none");let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=e.timing&&e.timing.navigationStart,i="number"==typeof o?Math.abs(o+t-n):36e5;return r<36e5||i<36e5?r<=i?(u1._browserPerformanceTimeOriginMode="timeOrigin",e.timeOrigin):(u1._browserPerformanceTimeOriginMode="navigationStart",o):(u1._browserPerformanceTimeOriginMode="dateNow",n)})();function u5(){uJ.supportsNativeFetch()&&uD.fill(um.GLOBAL_OBJ,"fetch",function(e){return function(...t){let{method:n,url:r}=u7(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:1e3*u1.timestampInSeconds()};return uF.triggerHandlers("fetch",{...o}),e.apply(um.GLOBAL_OBJ,t).then(e=>{let t={...o,endTimestamp:1e3*u1.timestampInSeconds(),response:e};return uF.triggerHandlers("fetch",t),e},e=>{let t={...o,endTimestamp:1e3*u1.timestampInSeconds(),error:e};throw uF.triggerHandlers("fetch",t),e})}})}function u6(e,t){return!!e&&"object"==typeof e&&!!e[t]}function u8(e){return"string"==typeof e?e:e?u6(e,"url")?e.url:e.toString?e.toString():"":""}function u7(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:u8(t),method:u6(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:u8(t),method:u6(t,"method")?String(t.method).toUpperCase():"GET"}}u1.browserPerformanceTimeOrigin=u4,u1.dateTimestampInSeconds=u2,u1.timestampInSeconds=u3,Object.defineProperty(uq,"__esModule",{value:!0}),uq.addFetchInstrumentationHandler=function(e){let t="fetch";uF.addHandler(t,e),uF.maybeInstrument(t,u5)},uq.parseFetchArgs=u7;var u9={};Object.defineProperty(u9,"__esModule",{value:!0});let ce=null;function ct(){ce=um.GLOBAL_OBJ.onerror,um.GLOBAL_OBJ.onerror=function(e,t,n,r,o){return uF.triggerHandlers("error",{column:r,error:o,line:n,msg:e,url:t}),!(!ce||ce.__SENTRY_LOADER__)&&ce.apply(this,arguments)},um.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}u9.addGlobalErrorInstrumentationHandler=function(e){let t="error";uF.addHandler(t,e),uF.maybeInstrument(t,ct)};var cn={};Object.defineProperty(cn,"__esModule",{value:!0});let cr=null;function co(){cr=um.GLOBAL_OBJ.onunhandledrejection,um.GLOBAL_OBJ.onunhandledrejection=function(e){return uF.triggerHandlers("unhandledrejection",e),!(cr&&!cr.__SENTRY_LOADER__)||cr.apply(this,arguments)},um.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}cn.addGlobalUnhandledRejectionInstrumentationHandler=function(e){let t="unhandledrejection";uF.addHandler(t,e),uF.maybeInstrument(t,co)};var ci={},ca={exports:{}},cs={};Object.defineProperty(cs,"__esModule",{value:!0}),cs.getSDKSource=function(){return"npm"},cs.isBrowserBundle=function(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__},function(e,t){function n(e,t){return e.require(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.dynamicRequire=n,t.isNodeEnv=function(){return!cs.isBrowserBundle()&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)},t.loadModule=function(t){let r;try{r=n(e,t)}catch(e){}try{let{cwd:o}=n(e,"process");r=n(e,`${o()}/node_modules/${t}`)}catch(e){}return r}}(ca,ca.exports);var cu=ca.exports;Object.defineProperty(ci,"__esModule",{value:!0}),ci.isBrowser=function(){return"undefined"!=typeof window&&(!cu.isNodeEnv()||void 0!==um.GLOBAL_OBJ.process&&"renderer"===um.GLOBAL_OBJ.process.type)};var cc={};Object.defineProperty(cc,"__esModule",{value:!0}),cc.memoBuilder=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]};var cl={};function cp(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}
4Object.defineProperty(cl,"__esModule",{value:!0});let cd=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;cl.addContextToFrame=function(e,t,n=5){if(void 0===t.lineno)return;let r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map(e=>ud.snipLine(e,0)),t.context_line=ud.snipLine(e[Math.min(r-1,o)],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map(e=>ud.snipLine(e,0))},cl.addExceptionMechanism=function(e,t){let n=cp(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}},cl.addExceptionTypeValue=function(e,t,n){let r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")},cl.arrayify=function(e){return Array.isArray(e)?e:[e]},cl.checkOrSetAlreadyCaught=function(e){if(e&&e.__sentry_captured__)return!0;try{uD.addNonEnumerableProperty(e,"__sentry_captured__",!0)}catch(e){}return!1},cl.getEventDescription=function(e){let{message:t,event_id:n}=e;if(t)return t;let r=cp(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"},cl.parseSemver=function(e){let t=e.match(cd)||[],n=parseInt(t[1],10),r=parseInt(t[2],10),o=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(o)?void 0:o,prerelease:t[4]}},cl.uuid4=function(){let e=um.GLOBAL_OBJ,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))};var cf={};function ch(e,t=100,n=1/0){try{return function e(t,n,r=1/0,o=1/0,i=cc.memoBuilder()){let[a,u]=i;if(null==n||["number","boolean","string"].includes(typeof n)&&!Number.isNaN(n))return n;let c=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==s&&t===s)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(ua.isVueViewModel(t))return"[VueViewModel]";if(ua.isSyntheticEvent(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${uj.getFunctionName(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let n=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(t,n);if(!c.startsWith("[object "))return c;if(n.__sentry_skip_normalization__)return n;let l="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:r;if(0===l)return c.replace("object ","");if(a(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{return e("",n.toJSON(),l-1,o,i)}catch(e){}let p=Array.isArray(n)?[]:{},d=0,f=uD.convertToPlainObject(n);for(let t in f){if(!Object.prototype.hasOwnProperty.call(f,t))continue;if(d>=o){p[t]="[MaxProperties ~]";break}let n=f[t];p[t]=e(t,n,l-1,o,i),d++}return u(n),p}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}Object.defineProperty(cf,"__esModule",{value:!0}),cf.normalize=ch,cf.normalizeToSize=function e(t,n=3,r=102400){let o=ch(t,n);return~-encodeURI(JSON.stringify(o)).split(/%..|./).length>r?e(t,n-1,r):o},cf.normalizeUrlToBase=function(e,t){let n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),r=e;try{r=decodeURI(e)}catch(e){}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")};var c_={};function cE(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift("..");return e}
4Object.defineProperty(c_,"__esModule",{value:!0});let cm=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function cg(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=cm.exec(t);return n?n.slice(1):[]}function cS(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n="/"===o.charAt(0))}return t=cE(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function cv(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}function cT(e){let t=cy(e),n="/"===e.slice(-1),r=cE(e.split("/").filter(e=>!!e),!t).join("/");return r||t||(r="."),r&&n&&(r+="/"),(t?"/":"")+r}function cy(e){return"/"===e.charAt(0)}c_.basename=function(e,t){let n=cg(e)[2];return t&&n.slice(-1*t.length)===t&&(n=n.slice(0,n.length-t.length)),n},c_.dirname=function(e){let t=cg(e),n=t[0],r=t[1];return n||r?(r&&(r=r.slice(0,r.length-1)),n+r):"."},c_.isAbsolute=cy,c_.join=function(...e){return cT(e.join("/"))},c_.normalizePath=cT,c_.relative=function(e,t){e=cS(e).slice(1),t=cS(t).slice(1);let n=cv(e.split("/")),r=cv(t.split("/")),o=Math.min(n.length,r.length),i=o;for(let e=0;e<o;e++)if(n[e]!==r[e]){i=e;break}let a=[];for(let e=i;e<n.length;e++)a.push("..");return(a=a.concat(r.slice(i))).join("/")},c_.resolve=cS;var cb={},cA={};Object.defineProperty(cA,"__esModule",{value:!0}),(fo=fi||(fi={}))[fo.PENDING=0]="PENDING",fo[fo.RESOLVED=1]="RESOLVED",fo[fo.REJECTED=2]="REJECTED";class cR{constructor(e){cR.prototype.__init.call(this),cR.prototype.__init2.call(this),cR.prototype.__init3.call(this),cR.prototype.__init4.call(this),this._state=fi.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new cR((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new cR((t,n)=>{let r,o;return this.then(t=>{o=!1,r=t,e&&e()},t=>{o=!0,r=t,e&&e()}).then(()=>{o?n(r):t(r)})})}__init(){this._resolve=e=>{this._setResult(fi.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(fi.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===fi.PENDING&&(ua.isThenable(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===fi.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===fi.RESOLVED&&e[1](this._value),this._state===fi.REJECTED&&e[2](this._value),e[0]=!0)})}}}cA.SyncPromise=cR,cA.rejectedSyncPromise=function(e){return new cR((t,n)=>{n(e)})},cA.resolvedSyncPromise=function(e){return new cR(t=>{t(e)})},Object.defineProperty(cb,"__esModule",{value:!0}),cb.makePromiseBuffer=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return cA.rejectedSyncPromise(new uL.SentryError("Not adding Promise because buffer limit was reached."));let o=r();return -1===t.indexOf(o)&&t.push(o),o.then(()=>n(o)).then(null,()=>n(o).then(null,()=>{})),o},drain:function(e){return new cA.SyncPromise((n,r)=>{let o=t.length;if(!o)return n(!0);let i=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{cA.resolvedSyncPromise(e).then(()=>{--o||(clearTimeout(i),n(!0))},r)})})}}};var cO={},cN={};Object.defineProperty(cN,"__esModule",{value:!0}),cN.parseCookie=function(e){let t={},n=0;for(;n<e.length;){let r=e.indexOf("=",n);if(-1===r)break;let o=e.indexOf(";",n);if(-1===o)o=e.length;else if(o<r){n=e.lastIndexOf(";",r-1)+1;continue}let i=e.slice(n,r).trim();if(void 0===t[i]){let n=e.slice(r+1,o).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1));
4try{t[i]=-1!==n.indexOf("%")?decodeURIComponent(n):n}catch(e){t[i]=n}}n=o+1}return t};var cI={};Object.defineProperty(cI,"__esModule",{value:!0}),cI.getNumberOfUrlSegments=function(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length},cI.getSanitizedUrlString=function(e){let{protocol:t,host:n,path:r}=e;return`${t?`${t}://`:""}${n&&n.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${r}`},cI.parseUrl=function(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}},cI.stripUrlQueryAndFragment=function(e){return e.split(/[\?#]/,1)[0]},Object.defineProperty(cO,"__esModule",{value:!0});let cC={ip:!1,request:!0,transaction:!0,user:!0},cM=["cookies","data","headers","method","query_string","url"],cL=["id","username","email"];function cw(e,t={}){let n=e.method&&e.method.toUpperCase(),r="",o="url";t.customRoute||e.route?(r=t.customRoute||`${e.baseUrl||""}${e.route&&e.route.path}`,o="route"):(e.originalUrl||e.url)&&(r=cI.stripUrlQueryAndFragment(e.originalUrl||e.url||""));let i="";return t.method&&n&&(i+=n),t.method&&t.path&&(i+=" "),t.path&&r&&(i+=r),[i,o]}function cP(e,t){let{include:n=cM}=t||{},r={},o=e.headers||{},i=e.method,a=o.host||e.hostname||e.host||"<no host>",s="https"===e.protocol||e.socket&&e.socket.encrypted?"https":"http",u=e.originalUrl||e.url||"",c=u.startsWith(s)?u:`${s}://${a}${u}`;return n.forEach(t=>{switch(t){case"headers":r.headers=o,n.includes("cookies")||delete r.headers.cookie;break;case"method":r.method=i;break;case"url":r.url=c;break;case"cookies":r.cookies=e.cookies||o.cookie&&cN.parseCookie(o.cookie)||{};break;case"query_string":r.query_string=function(e){let t=e.originalUrl||e.url||"";if(t){t.startsWith("/")&&(t=`http://dogs.are.great${t}`);try{let n=e.query||new URL(t).search.slice(1);return n.length?n:void 0}catch(e){return}}}(e);break;case"data":if("GET"===i||"HEAD"===i)break;void 0!==e.body&&(r.data=ua.isString(e.body)?e.body:JSON.stringify(cf.normalize(e.body)));break;default:({}).hasOwnProperty.call(e,t)&&(r[t]=e[t])}}),r}function cD(e){let t={};try{e.forEach((e,n)=>{"string"==typeof e&&(t[n]=e)})}catch(e){uy.DEBUG_BUILD&&ub.logger.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return t}cO.DEFAULT_USER_INCLUDES=cL,cO.addRequestDataToEvent=function(e,t,n){let r={...cC,...n&&n.include};if(r.request){let n=Array.isArray(r.request)?cP(t,{include:r.request}):cP(t);e.request={...e.request,...n}}if(r.user){let n=t.user&&ua.isPlainObject(t.user)?function(e,t){let n={};return(Array.isArray(t)?t:cL).forEach(t=>{e&&t in e&&(n[t]=e[t])}),n}(t.user,r.user):{};Object.keys(n).length&&(e.user={...e.user,...n})}if(r.ip){let n=t.ip||t.socket&&t.socket.remoteAddress;n&&(e.user={...e.user,ip_address:n})}return r.transaction&&!e.transaction&&"transaction"===e.type&&(e.transaction=function(e,t){switch(t){case"path":return cw(e,{path:!0})[0];case"handler":return e.route&&e.route.stack&&e.route.stack[0]&&e.route.stack[0].name||"<anonymous>";default:return cw(e,{path:!0,method:!0,customRoute:e._reconstructedRoute?e._reconstructedRoute:void 0})[0]}}(t,r.transaction)),e},cO.extractPathForTransaction=cw,cO.extractRequestData=cP,cO.winterCGHeadersToDict=cD,cO.winterCGRequestToRequestData=function(e){let t=cD(e.headers);return{method:e.method,url:e.url,headers:t}};var cx={};Object.defineProperty(cx,"__esModule",{value:!0});let cU=["fatal","error","warning","log","info","debug"];cx.severityLevelFromString=function(e){return"warn"===e?"warning":cU.includes(e)?e:"log"},cx.validSeverityLevels=cU;var ck={};function cB(e,t=!1){return!(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==e&&!e.includes("node_modules/")}function cV(e){let t=/^\s*[-]{4,}$/,n=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return r=>{let o=r.match(n);if(o){let t,n,r,i,a;if(o[1]){let e=(r=o[1]).lastIndexOf(".");if("."===r[e-1]&&e--,e>0){t=r.slice(0,e),n=r.slice(e+1);let o=t.indexOf(".Module");o>0&&(r=r.slice(o+1),t=t.slice(0,o))}i=void 0}n&&(i=t,a=n),"<anonymous>"===n&&(a=void 0,r=void 0),void 0===r&&(a=a||uj.UNKNOWN_FUNCTION,r=i?`${i}.${a}
4`:a);let s=o[2]&&o[2].startsWith("file://")?o[2].slice(7):o[2],u="native"===o[5];return s&&s.match(/\/[A-Z]:/)&&(s=s.slice(1)),s||!o[5]||u||(s=o[5]),{filename:s,module:e?e(s):void 0,function:r,lineno:parseInt(o[3],10)||void 0,colno:parseInt(o[4],10)||void 0,in_app:cB(s,u)}}if(r.match(t))return{filename:r}}}Object.defineProperty(ck,"__esModule",{value:!0}),ck.filenameIsInApp=cB,ck.node=cV,ck.nodeStackLineParser=function(e){return[90,cV(e)]};var cF={},cj={};Object.defineProperty(cj,"__esModule",{value:!0});let cG="sentry-",cH=/^sentry-/;function cY(e){if(e&&(ua.isString(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=cz(t);for(let t of Object.keys(n))e[t]=n[t];return e},{}):cz(e)}function cz(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(e[t]=n,e),{})}cj.BAGGAGE_HEADER_NAME="baggage",cj.MAX_BAGGAGE_STRING_LENGTH=8192,cj.SENTRY_BAGGAGE_KEY_PREFIX=cG,cj.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=cH,cj.baggageHeaderToDynamicSamplingContext=function(e){let t=cY(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.match(cH)&&(e[t.slice(7)]=n),e),{});return Object.keys(n).length>0?n:void 0},cj.dynamicSamplingContextToSentryBaggageHeader=function(e){if(e){var t=Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${cG}${t}`]=n),e),{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,[t,n],r)=>{let o=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,i=0===r?o:`${e},${o}`;return i.length>8192?(uy.DEBUG_BUILD&&ub.logger.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):i},""):void 0}},cj.parseBaggageHeader=cY,Object.defineProperty(cF,"__esModule",{value:!0});let cW=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function c$(e){let t;if(!e)return;let n=e.match(cW);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}cF.TRACEPARENT_REGEXP=cW,cF.extractTraceparentData=c$,cF.generateSentryTraceHeader=function(e=cl.uuid4(),t=cl.uuid4().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`},cF.propagationContextFromHeaders=function(e,t){let n=c$(e),r=cj.baggageHeaderToDynamicSamplingContext(t),{traceId:o,parentSpanId:i,parentSampled:a}=n||{};return n?{traceId:o||cl.uuid4(),parentSpanId:i||cl.uuid4().substring(16),spanId:cl.uuid4().substring(16),sampled:a,dsc:r||{}}:{traceId:o||cl.uuid4(),spanId:cl.uuid4().substring(16)}};var cK={};function cX(e,t){for(let n of e[1])if(t(n,n[0].type))return!0;return!1}function cq(e){return um.GLOBAL_OBJ.__SENTRY__&&um.GLOBAL_OBJ.__SENTRY__.encodePolyfill?um.GLOBAL_OBJ.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}Object.defineProperty(cK,"__esModule",{value:!0});let cJ={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};cK.addItemToEnvelope=function(e,t){let[n,r]=e;return[n,[...r,t]]},cK.createAttachmentEnvelopeItem=function(e){let t="string"==typeof e.data?cq(e.data):e.data;return[uD.dropUndefinedKeys({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]},cK.createEnvelope=function(e,t=[]){return[e,t]},cK.createEventEnvelopeHeaders=function(e,t,n,r){let o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:uT.dsnToString(r)},...o&&{trace:uD.dropUndefinedKeys({...o})}}},cK.createSpanEnvelopeItem=function(e){return[{type:"span"},e]},cK.envelopeContainsItemType=function(e,t){return cX(e,(e,n)=>t.includes(n))},cK.envelopeItemTypeToDataCategory=function(e){return cJ[e]},cK.forEachEnvelopeItem=cX,cK.getSdkMetadataForEnvelopeHeader=function(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}},cK.parseEnvelope=function(e){let t="string"==typeof e?cq(e):e;function n(e){let n=t.subarray(0,e);return t=t.subarray(e+1),n}function r(){var e;let r=t.indexOf(10);return r<0&&(r=t.length),JSON.parse((e=n(r),um.GLOBAL_OBJ.__SENTRY__&&um.GLOBAL_OBJ.__SENTRY__.decodePolyfill?um.GLOBAL_OBJ.__SENTRY__.decodePolyfill(e):(new TextDecoder).decode(e)))}let o=r(),i=[];for(;t.length;){let e=r(),t="number"==typeof e.length?e.length:void 0;i.push([e,t?n(t):r()])}return[o,i]},cK.serializeEnvelope=function(e){let[t,n]=e,r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[cq(r),e]:r.push("string"==typeof e?cq(e):e)}for(let e of n){let[t,n]=e;if(o(` 5${JSON.stringify(t)} 6`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(cf.normalize(n))}o(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>
6e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)};var cZ={};Object.defineProperty(cZ,"__esModule",{value:!0}),cZ.createClientReportEnvelope=function(e,t,n){let r=[{type:"client_report"},{timestamp:n||u1.dateTimestampInSeconds(),discarded_events:e}];return cK.createEnvelope(t?{dsn:t}:{},[r])};var cQ={};function c0(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function c1(e,t){return e[t]||e.all||0}Object.defineProperty(cQ,"__esModule",{value:!0}),cQ.DEFAULT_RETRY_AFTER=6e4,cQ.disabledUntil=c1,cQ.isRateLimited=function(e,t,n=Date.now()){return c1(e,t)>n},cQ.parseRetryAfterHeader=c0,cQ.updateRateLimits=function(e,{statusCode:t,headers:n},r=Date.now()){let o={...e},i=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(i)for(let e of i.trim().split(",")){let[t,n,,,i]=e.split(":",5),a=parseInt(t,10),s=1e3*(isNaN(a)?60:a);if(n)for(let e of n.split(";"))"metric_bucket"===e&&i&&!i.split(";").includes("custom")||(o[e]=r+s);else o.all=r+s}else a?o.all=r+c0(a,r):429===t&&(o.all=r+6e4);return o};var c2={};Object.defineProperty(c2,"__esModule",{value:!0}),c2.makeFifoCache=function(e){let t=[],n={};return{add(r,o){for(;t.length>=e;){let e=t.shift();void 0!==e&&delete n[e]}n[r]&&this.delete(r),t.push(r),n[r]=o},clear(){n={},t=[]},get:e=>n[e],size:()=>t.length,delete(e){if(!n[e])return!1;delete n[e];for(let n=0;n<t.length;n++)if(t[n]===e){t.splice(n,1);break}return!0}}};var c3={};function c4(e,t){return e(t.stack||"",1)}function c5(e,t){let n={type:t.name||t.constructor.name,value:t.message},r=c4(e,t);return r.length&&(n.stacktrace={frames:r}),n}Object.defineProperty(c3,"__esModule",{value:!0}),c3.eventFromMessage=function(e,t,n="info",r,o){let i={event_id:r&&r.event_id,level:n};if(o&&r&&r.syntheticException){let n=c4(e,r.syntheticException);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]})}if(ua.isParameterizedString(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i},c3.eventFromUnknownInput=function(e,t,n,r){let o=r&&r.data&&r.data.mechanism||{handled:!0,type:"generic"},[i,a]=function(e,t,n,r){if(ua.isError(n))return[n,void 0];if(t.synthetic=!0,ua.isPlainObject(n)){let t=e&&e.getOptions().normalizeDepth,o={__serialized__:cf.normalizeToSize(n,t)},i=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(n);if(i)return[i,o];let a=function(e){if("name"in e&&"string"==typeof e.name){let t=`'${e.name}' captured as exception`;return"message"in e&&"string"==typeof e.message&&(t+=` with message '${e.message}'`),t}if("message"in e&&"string"==typeof e.message)return e.message;let t=uD.extractExceptionKeysForMessage(e);if(ua.isErrorEvent(e))return`Event \`ErrorEvent\` captured as exception with message \`${e.message}\``;let n=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`${n&&"Object"!==n?`'${n}'`:"Object"} captured as exception with keys: ${t}`}(n),s=r&&r.syntheticException||Error(a);return s.message=a,[s,o]}let o=r&&r.syntheticException||Error(n);return o.message=`${n}`,[o,void 0]}(e,o,n,r),s={exception:{values:[c5(t,i)]}};return a&&(s.extra=a),cl.addExceptionTypeValue(s,void 0,void 0),cl.addExceptionMechanism(s,o),{...s,event_id:r&&r.event_id}},c3.exceptionFromError=c5,c3.parseStackFrames=c4;var c6={};Object.defineProperty(c6,"__esModule",{value:!0}),c6.callFrameToStackFrame=function(e,t,n){let r=t?t.replace(/^file:\/\//,""):void 0,o=e.location.columnNumber?e.location.columnNumber+1:void 0,i=e.location.lineNumber?e.location.lineNumber+1:void 0;return uD.dropUndefinedKeys({filename:r,module:n(r),function:e.functionName||uj.UNKNOWN_FUNCTION,colno:o,lineno:i,in_app:r?ck.filenameIsInApp(r):void 0})},c6.watchdogTimer=function(e,t,n,r){let o=e(),i=!1,a=!0;return setInterval(()=>{let e=o.getTimeMs();!1===i&&e>t+n&&(i=!0,a&&r()),e<t+n&&(i=!1)},20),{poll:()=>{o.reset()},enabled:e=>{a=e}}};var c8={};Object.defineProperty(c8,"__esModule",{value:!0}),c8.LRUMap=class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}};var c7={},c9={};
6Object.defineProperty(c9,"__esModule",{value:!0}),c9._nullishCoalesce=function(e,t){return null!=e?e:t()},Object.defineProperty(c7,"__esModule",{value:!0}),c7._asyncNullishCoalesce=async function(e,t){return c9._nullishCoalesce(e,t)};var le={};Object.defineProperty(le,"__esModule",{value:!0}),le._asyncOptionalChain=async function(e){let t,n=e[0],r=1;for(;r<e.length;){let o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=await i(n)):"call"!==o&&"optionalCall"!==o||(n=await i((...e)=>n.call(t,...e)),t=void 0)}return n};var lt={};Object.defineProperty(lt,"__esModule",{value:!0}),lt._asyncOptionalChainDelete=async function(e){let t=await le._asyncOptionalChain(e);return null==t||t};var ln={};Object.defineProperty(ln,"__esModule",{value:!0}),ln._optionalChain=function(e){let t,n=e[0],r=1;for(;r<e.length;){let o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n};var lr={};Object.defineProperty(lr,"__esModule",{value:!0}),lr._optionalChainDelete=function(e){let t=ln._optionalChain(e);return null==t||t};var lo={};Object.defineProperty(lo,"__esModule",{value:!0}),lo.generatePropagationContext=function(){return{traceId:cl.uuid4(),spanId:cl.uuid4().substring(16)}};var li={};Object.defineProperty(li,"__esModule",{value:!0}),li.escapeStringForRegex=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};var la={};Object.defineProperty(la,"__esModule",{value:!0});let ls=um.GLOBAL_OBJ;la.supportsHistory=function(){let e=ls.chrome,t=e&&e.app&&e.app.runtime,n="history"in ls&&!!ls.history.pushState&&!!ls.history.replaceState;return!t&&n},Object.defineProperty(uo,"__esModule",{value:!0}),uo.applyAggregateErrorsToEvent=ui.applyAggregateErrorsToEvent,uo.getComponentName=uE.getComponentName,uo.getDomElement=uE.getDomElement,uo.getLocationHref=uE.getLocationHref,uo.htmlTreeAsString=uE.htmlTreeAsString,uo.dsnFromString=uT.dsnFromString,uo.dsnToString=uT.dsnToString,uo.makeDsn=uT.makeDsn,uo.SentryError=uL.SentryError,uo.GLOBAL_OBJ=um.GLOBAL_OBJ,uo.getGlobalSingleton=um.getGlobalSingleton,uo.addConsoleInstrumentationHandler=uP.addConsoleInstrumentationHandler,uo.addFetchInstrumentationHandler=uq.addFetchInstrumentationHandler,uo.addGlobalErrorInstrumentationHandler=u9.addGlobalErrorInstrumentationHandler,uo.addGlobalUnhandledRejectionInstrumentationHandler=cn.addGlobalUnhandledRejectionInstrumentationHandler,uo.addHandler=uF.addHandler,uo.maybeInstrument=uF.maybeInstrument,uo.resetInstrumentationHandlers=uF.resetInstrumentationHandlers,uo.triggerHandlers=uF.triggerHandlers,uo.isDOMError=ua.isDOMError,uo.isDOMException=ua.isDOMException,uo.isElement=ua.isElement,uo.isError=ua.isError,uo.isErrorEvent=ua.isErrorEvent,uo.isEvent=ua.isEvent,uo.isInstanceOf=ua.isInstanceOf,uo.isParameterizedString=ua.isParameterizedString,uo.isPlainObject=ua.isPlainObject,uo.isPrimitive=ua.isPrimitive,uo.isRegExp=ua.isRegExp,uo.isString=ua.isString,uo.isSyntheticEvent=ua.isSyntheticEvent,uo.isThenable=ua.isThenable,uo.isVueViewModel=ua.isVueViewModel,uo.isBrowser=ci.isBrowser,uo.CONSOLE_LEVELS=ub.CONSOLE_LEVELS,uo.consoleSandbox=ub.consoleSandbox,uo.logger=ub.logger,uo.originalConsoleMethods=ub.originalConsoleMethods,uo.memoBuilder=cc.memoBuilder,uo.addContextToFrame=cl.addContextToFrame,uo.addExceptionMechanism=cl.addExceptionMechanism,uo.addExceptionTypeValue=cl.addExceptionTypeValue,uo.arrayify=cl.arrayify,uo.checkOrSetAlreadyCaught=cl.checkOrSetAlreadyCaught,uo.getEventDescription=cl.getEventDescription,uo.parseSemver=cl.parseSemver,uo.uuid4=cl.uuid4,uo.dynamicRequire=cu.dynamicRequire,uo.isNodeEnv=cu.isNodeEnv,uo.loadModule=cu.loadModule,uo.normalize=cf.normalize,uo.normalizeToSize=cf.normalizeToSize,uo.normalizeUrlToBase=cf.normalizeUrlToBase,uo.addNonEnumerableProperty=uD.addNonEnumerableProperty,uo.convertToPlainObject=uD.convertToPlainObject,uo.dropUndefinedKeys=uD.dropUndefinedKeys,uo.extractExceptionKeysForMessage=uD.extractExceptionKeysForMessage,uo.fill=uD.fill,uo.getOriginalFunction=uD.getOriginalFunction,uo.markFunctionWrapped=uD.markFunctionWrapped,uo.objectify=uD.objectify,uo.urlEncode=uD.urlEncode,uo.basename=c_.basename,uo.dirname=c_.dirname,uo.isAbsolute=c_.isAbsolute,uo.join=c_.join,uo.normalizePath=c_.normalizePath,uo.relative=c_.relative,uo.resolve=c_.resolve,uo.makePromiseBuffer=cb.makePromiseBuffer,uo.DEFAULT_USER_INCLUDES=cO.DEFAULT_USER_INCLUDES,uo.addRequestDataToEvent=cO.addRequestDataToEvent,uo.extractPathForTransaction=cO.extractPathForTransaction,uo.extractRequestData=cO.extractRequestData,uo.winterCGHeadersToDict=cO.winterCGHeadersToDict,uo.winterCGRequestToRequestData=cO.winterCGRequestToRequestData,uo.severityLevelFromString=cx.severityLevelFromString,uo.validSeverityLevels=cx.val
6idSeverityLevels,uo.UNKNOWN_FUNCTION=uj.UNKNOWN_FUNCTION,uo.createStackParser=uj.createStackParser,uo.getFunctionName=uj.getFunctionName,uo.stackParserFromStackParserOptions=uj.stackParserFromStackParserOptions,uo.stripSentryFramesAndReverse=uj.stripSentryFramesAndReverse,uo.filenameIsInApp=ck.filenameIsInApp,uo.node=ck.node,uo.nodeStackLineParser=ck.nodeStackLineParser,uo.isMatchingPattern=ud.isMatchingPattern,uo.safeJoin=ud.safeJoin,uo.snipLine=ud.snipLine,uo.stringMatchesSomePattern=ud.stringMatchesSomePattern,uo.truncate=ud.truncate,uo.isNativeFunction=uJ.isNativeFunction,uo.supportsDOMError=uJ.supportsDOMError,uo.supportsDOMException=uJ.supportsDOMException,uo.supportsErrorEvent=uJ.supportsErrorEvent,uo.supportsFetch=uJ.supportsFetch,uo.supportsNativeFetch=uJ.supportsNativeFetch,uo.supportsReferrerPolicy=uJ.supportsReferrerPolicy,uo.supportsReportingObserver=uJ.supportsReportingObserver,uo.SyncPromise=cA.SyncPromise,uo.rejectedSyncPromise=cA.rejectedSyncPromise,uo.resolvedSyncPromise=cA.resolvedSyncPromise,Object.defineProperty(uo,"_browserPerformanceTimeOriginMode",{enumerable:!0,get:()=>u1._browserPerformanceTimeOriginMode}),uo.browserPerformanceTimeOrigin=u1.browserPerformanceTimeOrigin,uo.dateTimestampInSeconds=u1.dateTimestampInSeconds,uo.timestampInSeconds=u1.timestampInSeconds,uo.TRACEPARENT_REGEXP=cF.TRACEPARENT_REGEXP,uo.extractTraceparentData=cF.extractTraceparentData,uo.generateSentryTraceHeader=cF.generateSentryTraceHeader,uo.propagationContextFromHeaders=cF.propagationContextFromHeaders,uo.getSDKSource=cs.getSDKSource,uo.isBrowserBundle=cs.isBrowserBundle,uo.addItemToEnvelope=cK.addItemToEnvelope,uo.createAttachmentEnvelopeItem=cK.createAttachmentEnvelopeItem,uo.createEnvelope=cK.createEnvelope,uo.createEventEnvelopeHeaders=cK.createEventEnvelopeHeaders,uo.createSpanEnvelopeItem=cK.createSpanEnvelopeItem,uo.envelopeContainsItemType=cK.envelopeContainsItemType,uo.envelopeItemTypeToDataCategory=cK.envelopeItemTypeToDataCategory,uo.forEachEnvelopeItem=cK.forEachEnvelopeItem,uo.getSdkMetadataForEnvelopeHeader=cK.getSdkMetadataForEnvelopeHeader,uo.parseEnvelope=cK.parseEnvelope,uo.serializeEnvelope=cK.serializeEnvelope,uo.createClientReportEnvelope=cZ.createClientReportEnvelope,uo.DEFAULT_RETRY_AFTER=cQ.DEFAULT_RETRY_AFTER,uo.disabledUntil=cQ.disabledUntil,uo.isRateLimited=cQ.isRateLimited,uo.parseRetryAfterHeader=cQ.parseRetryAfterHeader,uo.updateRateLimits=cQ.updateRateLimits,uo.BAGGAGE_HEADER_NAME=cj.BAGGAGE_HEADER_NAME,uo.MAX_BAGGAGE_STRING_LENGTH=cj.MAX_BAGGAGE_STRING_LENGTH,uo.SENTRY_BAGGAGE_KEY_PREFIX=cj.SENTRY_BAGGAGE_KEY_PREFIX,uo.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=cj.SENTRY_BAGGAGE_KEY_PREFIX_REGEX,uo.baggageHeaderToDynamicSamplingContext=cj.baggageHeaderToDynamicSamplingContext,uo.dynamicSamplingContextToSentryBaggageHeader=cj.dynamicSamplingContextToSentryBaggageHeader,uo.parseBaggageHeader=cj.parseBaggageHeader,uo.getNumberOfUrlSegments=cI.getNumberOfUrlSegments,uo.getSanitizedUrlString=cI.getSanitizedUrlString,uo.parseUrl=cI.parseUrl,uo.stripUrlQueryAndFragment=cI.stripUrlQueryAndFragment,uo.makeFifoCache=c2.makeFifoCache,uo.eventFromMessage=c3.eventFromMessage,uo.eventFromUnknownInput=c3.eventFromUnknownInput,uo.exceptionFromError=c3.exceptionFromError,uo.parseStackFrames=c3.parseStackFrames,uo.callFrameToStackFrame=c6.callFrameToStackFrame,uo.watchdogTimer=c6.watchdogTimer,uo.LRUMap=c8.LRUMap,uo._asyncNullishCoalesce=c7._asyncNullishCoalesce,uo._asyncOptionalChain=le._asyncOptionalChain,uo._asyncOptionalChainDelete=lt._asyncOptionalChainDelete,uo._nullishCoalesce=c9._nullishCoalesce,uo._optionalChain=ln._optionalChain,uo._optionalChainDelete=lr._optionalChainDelete,uo.generatePropagationContext=lo.generatePropagationContext,uo.SDK_VERSION=ug.SDK_VERSION,uo.escapeStringForRegex=li.escapeStringForRegex,uo.supportsHistory=la.supportsHistory;var lu={};Object.defineProperty(lu,"__esModule",{value:!0}),lu.DEBUG_BUILD="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var lc={},ll={},lp={};function ld(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||uo.SDK_VERSION,t[uo.SDK_VERSION]=t[uo.SDK_VERSION]||{}}Object.defineProperty(lp,"__esModule",{value:!0}),lp.getMainCarrier=function(){return ld(uo.GLOBAL_OBJ),uo.GLOBAL_OBJ}
6,lp.getSentryCarrier=ld;var lf={},lh={},l_={},lE={};function lm(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||uo.timestampInSeconds(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:uo.uuid4()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}Object.defineProperty(lE,"__esModule",{value:!0}),lE.closeSession=function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),lm(e,n)},lE.makeSession=function(e){let t=uo.timestampInSeconds(),n={sid:uo.uuid4(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>uo.dropUndefinedKeys({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&lm(n,e),n},lE.updateSession=lm;var lg={};Object.defineProperty(lg,"__esModule",{value:!0});let lS="_sentrySpan";lg._getSpanForScope=function(e){return e[lS]},lg._setSpanForScope=function(e,t){t?uo.addNonEnumerableProperty(e,lS,t):delete e[lS]}
vendor: 4,130 bytes, line 6
6,Object.defineProperty(l_,"__esModule",{value:!0});class lv{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=uo.generatePropagationContext()}clone(){let e=new lv;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,lg._setSpanForScope(e,lg._getSpanForScope(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&lE.updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,[n,r]=t instanceof lT?[t.getScopeData(),t.getRequestSession()]:uo.isPlainObject(t)?[e,e.requestSession]:[],{tags:o,extra:i,user:a,contexts:s,level:u,fingerprint:c=[],propagationContext:l}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...s},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),c.length&&(this._fingerprint=c),l&&(this._propagationContext=l),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,lg._setSpanForScope(this,void 0),this._attachments=[],this._propagationContext=uo.generatePropagationContext(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:uo.dateTimestampInSeconds(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:lg._get
6SpanForScope(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:uo.uuid4();if(!this._client)return uo.logger.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:uo.uuid4();if(!this._client)return uo.logger.warn("No client configured on scope - will not capture message!"),r;let o=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:uo.uuid4();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):uo.logger.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let lT=lv;l_.Scope=lT,Object.defineProperty(lh,"__esModule",{value:!0}),lh.getDefaultCurrentScope=function(){return uo.getGlobalSingleton("defaultCurrentScope",()=>new l_.Scope)},lh.getDefaultIsolationScope=function(){return uo.getGlobalSingleton("defaultIsolationScope",()=>new l_.Scope)},Object.defineProperty(lf,"__esModule",{value:!0});class ly{constructor(e,t){let n,r;n=e||new l_.Scope,r=t||new l_.Scope,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return uo.isThenable(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}_popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}}function lb(){let e=lp.getMainCarrier(),t=lp.getSentryCarrier(e);return t.stack=t.stack||new ly(lh.getDefaultCurrentScope(),lh.getDefaultIsolationScope())}function lA(e){return lb().withScope(e)}function lR(e,t){let n=lb();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function lO(e){return lb().withScope(()=>e(lb().getIsolationScope()))}lf.AsyncContextStack=ly,lf.getStackAsyncContextStrategy=function(){return{withIsolationScope:lO,withScope:lA,withSetScope:lR,withSetIsolationScope:(e,t)=>lO(t),getCurrentScope:()=>lb().getScope(),getIsolationScope:()=>lb().getIsolationScope()}}
6,Object.defineProperty(ll,"__esModule",{value:!0}),ll.getAsyncContextStrategy=function(e){let t=lp.getSentryCarrier(e);return t.acs?t.acs:lf.getStackAsyncContextStrategy()},ll.setAsyncContextStrategy=function(e){let t=lp.getMainCarrier();lp.getSentryCarrier(t).acs=e};var lN={};function lI(){let e=lp.getMainCarrier();return ll.getAsyncContextStrategy(e).getCurrentScope()}Object.defineProperty(lN,"__esModule",{value:!0}),lN.getClient=function(){return lI().getClient()},lN.getCurrentScope=lI,lN.getGlobalScope=function(){return uo.getGlobalSingleton("globalScope",()=>new l_.Scope)},lN.getIsolationScope=function(){let e=lp.getMainCarrier();return ll.getAsyncContextStrategy(e).getIsolationScope()},lN.withIsolationScope=function(...e){let t=lp.getMainCarrier(),n=ll.getAsyncContextStrategy(t);if(2===e.length){let[t,r]=e;return t?n.withSetIsolationScope(t,r):n.withIsolationScope(r)}return n.withIsolationScope(e[0])},lN.withScope=function(...e){let t=lp.getMainCarrier(),n=ll.getAsyncContextStrategy(t);if(2===e.length){let[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])};var lC={};Object.defineProperty(lC,"__esModule",{value:!0});let lM="_sentryMetrics";lC.getMetricSummaryJsonForSpan=function(e){let t=e[lM];if(!t)return;let n={};for(let[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push(uo.dropUndefinedKeys(r));return n},lC.updateMetricSummaryOnSpan=function(e,t,n,r,o,i,a){let s=e[lM]||(e[lM]=new Map),u=`${t}:${n}@${o}`,c=s.get(a);if(c){let[,e]=c;s.set(a,[u,{min:Math.min(e.min,r),max:Math.max(e.max,r),count:e.count+=1,sum:e.sum+=r,tags:e.tags}])}else s.set(a,[u,{min:r,max:r,count:1,sum:r,tags:i}])};var lL={};Object.defineProperty(lL,"__esModule",{value:!0}),lL.SEMANTIC_ATTRIBUTE_CACHE_HIT="cache.hit",lL.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE="cache.item_size",lL.SEMANTIC_ATTRIBUTE_CACHE_KEY="cache.key",lL.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME="sentry.exclusive_time",lL.SEMANTIC_ATTRIBUTE_PROFILE_ID="sentry.profile_id",lL.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON="sentry.idle_span_finish_reason",lL.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT="sentry.measurement_unit",lL.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE="sentry.measurement_value",lL.SEMANTIC_ATTRIBUTE_SENTRY_OP="sentry.op",lL.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN="sentry.origin",lL.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE="sentry.sample_rate",lL.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE="sentry.source";var lw={};function lP(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"unknown_error"}}function lD(e){return"number"==typeof e?lx(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?lx(e.getTime()):uo.timestampInSeconds()}function lx(e){return e>0x2540be3ff?e/1e3:e}function lU(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:r,startTime:o,name:i,endTime:a,parentSpanId:s,status:u}=e;return uo.dropUndefinedKeys({span_id:t,trace_id:n,data:r,description:i,parent_span_id:s,start_timestamp:lD(o),timestamp:lD(a)||void 0,status:lB(u),op:r[lL.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:r[lL.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:lC.getMetricSummaryJsonForSpan(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function lk(e){let{traceFlags:t}=e.spanContext();return 1===t}function lB(e){if(e&&e.code!==lw.SPAN_STATUS_UNSET)return e.code===lw.SPAN_STATUS_OK?"ok":e.message||"unknown_error"}Object.defineProperty(lw,"__esModule",{value:!0}),lw.SPAN_STATUS_ERROR=2,lw.SPAN_STATUS_OK=1,lw.SPAN_STATUS_UNSET=0,lw.getSpanStatusFromHttpCode=lP,lw.setHttpStatus=function(e,t){e.setAttribute("http.response.status_code",t);let n=lP(t);"unknown_error"!==n.message&&e.setStatus(n)},Object.defineProperty(lc,"__esModule",{value:!0});let lV="_sentryChildSpans",lF="_sentryRootSpan";function lj(){let e=lp.getMainCarrier(),t=ll.getAsyncContextStrategy(e);
6return t.getActiveSpan?t.getActiveSpan():lg._getSpanForScope(lN.getCurrentScope())}lc.TRACE_FLAG_NONE=0,lc.TRACE_FLAG_SAMPLED=1,lc.addChildSpanToSpan=function(e,t){let n=e[lF]||e;uo.addNonEnumerableProperty(t,lF,n),e[lV]?e[lV].add(t):uo.addNonEnumerableProperty(e,lV,new Set([t]))},lc.getActiveSpan=lj,lc.getRootSpan=function(e){return e[lF]||e},lc.getSpanDescendants=function(e){let t=new Set;return function e(n){if(!t.has(n)&&lk(n))for(let r of(t.add(n),n[lV]?Array.from(n[lV]):[]))e(r)}(e),Array.from(t)},lc.getStatusMessage=lB,lc.removeChildSpanFromSpan=function(e,t){e[lV]&&e[lV].delete(t)},lc.spanIsSampled=lk,lc.spanTimeInputToSeconds=lD,lc.spanToJSON=lU,lc.spanToTraceContext=function(e){let{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=lU(e);return uo.dropUndefinedKeys({parent_span_id:r,span_id:t,trace_id:n})},lc.spanToTraceHeader=function(e){let{traceId:t,spanId:n}=e.spanContext(),r=lk(e);return uo.generateSentryTraceHeader(t,n,r)},lc.spanToTransactionTraceContext=function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:a,origin:s}=lU(e);return uo.dropUndefinedKeys({parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:a,origin:s})},lc.updateMetricSummaryOnActiveSpan=function(e,t,n,r,o,i){let a=lj();a&&lC.updateMetricSummaryOnSpan(a,e,t,n,r,o,i)},Object.defineProperty(ur,"__esModule",{value:!0});let lG=!1;function lH(){let e=lc.getActiveSpan(),t=e&&lc.getRootSpan(e);if(t){let e="internal_error";lu.DEBUG_BUILD&&uo.logger.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:lw.SPAN_STATUS_ERROR,message:e})}}lH.tag="sentry_tracingErrorCallback",ur.registerSpanErrorInstrumentation=function(){lG||(lG=!0,uo.addGlobalErrorInstrumentationHandler(lH),uo.addGlobalUnhandledRejectionInstrumentationHandler(lH))};var lY={};Object.defineProperty(lY,"__esModule",{value:!0});let lz="_sentryScope",lW="_sentryIsolationScope";lY.stripUrlQueryAndFragment=uo.stripUrlQueryAndFragment,lY.getCapturedScopesOnSpan=function(e){return{scope:e[lz],isolationScope:e[lW]}},lY.setCapturedScopesOnSpan=function(e,t,n){e&&(uo.addNonEnumerableProperty(e,lW,n),uo.addNonEnumerableProperty(e,lz,t))};var l$={};Object.defineProperty(l$,"__esModule",{value:!0}),l$.addTracingExtensions=function(){ur.registerSpanErrorInstrumentation()};var lK={},lX={};Object.defineProperty(lX,"__esModule",{value:!0}),lX.hasTracingEnabled=function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||function(){let e=lN.getClient();return e&&e.getOptions()}();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)};var lq={};Object.defineProperty(lq,"__esModule",{value:!0}),lq.SentryNonRecordingSpan=class{constructor(e={}){this._traceId=e.traceId||uo.uuid4(),this._spanId=e.spanId||uo.uuid4().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:lc.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}};var lJ={},lZ={};Object.defineProperty(lZ,"__esModule",{value:!0}),lZ.handleCallbackErrors=function(e,t,n=()=>{}){var r;let o;try{o=e()}catch(e){throw t(e),n(),e}return r=o,uo.isThenable(r)?r.then(e=>(n(),e),e=>{throw t(e),n(),e}):(n(),r)};var lQ={},l0={};Object.defineProperty(l0,"__esModule",{value:!0}),l0.DEFAULT_ENVIRONMENT="production",Object.defineProperty(lQ,"__esModule",{value:!0});let l1="_frozenDsc";function l2(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=uo.dropUndefinedKeys({environment:n.environment||l0.DEFAULT_ENVIRONMENT,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function l3(e){let t=lN.getClient();if(!t)return{};let n=l2(lc.spanToJSON(e).trace_id||"",t),r=lc.getRootSpan(e);if(!r)return n;let o=r[l1];if(o)return o;let i=lc.spanToJSON(r),a=i.data||{},s=a[lL.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];null!=s&&(n.sample_rate=`${s}`);let u=a[lL.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return u&&"url"!==u&&(n.transaction=i.description),n.sampled=String(lc.spanIsSampled(r)),t.emit("createDsc",n),n}lQ.freezeDscOnSpan=function(e,t){uo.addNonEnumerableProperty(e,l
61,t)},lQ.getDynamicSamplingContextFromClient=l2,lQ.getDynamicSamplingContextFromSpan=l3,lQ.spanToBaggageHeader=function(e){let t=l3(e);return uo.dynamicSamplingContextToSentryBaggageHeader(t)};var l4={};Object.defineProperty(l4,"__esModule",{value:!0}),l4.logSpanEnd=function(e){if(!lu.DEBUG_BUILD)return;let{description:t="< unknown name >",op:n="< unknown op >"}=lc.spanToJSON(e),{spanId:r}=e.spanContext(),o=`[Tracing] Finishing "${n}" ${lc.getRootSpan(e)===e?"root ":""}span "${t}" with ID ${r}`;uo.logger.log(o)},l4.logSpanStart=function(e){if(!lu.DEBUG_BUILD)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=lc.spanToJSON(e),{spanId:o}=e.spanContext(),i=lc.spanIsSampled(e),a=lc.getRootSpan(e),s=a===e,u=`[Tracing] Starting ${i?"sampled":"unsampled"} ${s?"root ":""}span`,c=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&c.push(`parent ID: ${r}`),!s){let{op:e,description:t}=lc.spanToJSON(a);c.push(`root ID: ${a.spanContext().spanId}`),e&&c.push(`root op: ${e}`),t&&c.push(`root description: ${t}`)}uo.logger.log(`${u} 7 ${c.join("\n ")}`)};var l5={},l6={};Object.defineProperty(l6,"__esModule",{value:!0}),l6.parseSampleRate=function(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;lu.DEBUG_BUILD&&uo.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)},Object.defineProperty(l5,"__esModule",{value:!0}),l5.sampleSpan=function(e,t){let n;if(!lX.hasTracingEnabled(e))return[!1];n="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;let r=l6.parseSampleRate(n);return void 0===r?(lu.DEBUG_BUILD&&uo.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(lu.DEBUG_BUILD&&uo.logger.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(lu.DEBUG_BUILD&&uo.logger.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,r])};var l8={},l7={};Object.defineProperty(l7,"__esModule",{value:!0}),l7.createEventEnvelope=function(e,t,n,r){var o;let i=uo.getSdkMetadataForEnvelopeHeader(n),a=e.type&&"replay_event"!==e.type?e.type:"event";(o=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||o.name,e.sdk.version=e.sdk.version||o.version,e.sdk.integrations=[...e.sdk.integrations||[],...o.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...o.packages||[]]);let s=uo.createEventEnvelopeHeaders(e,i,r,t);delete e.sdkProcessingMetadata;let u=[{type:a},e];return uo.createEnvelope(s,[u])},l7.createSessionEnvelope=function(e,t,n,r){let o=uo.getSdkMetadataForEnvelopeHeader(n),i={sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:uo.dsnToString(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return uo.createEnvelope(i,[a])},l7.createSpanEnvelope=function(e,t){let n=lQ.getDynamicSamplingContextFromSpan(e[0]),r=t&&t.getDsn(),o=t&&t.getOptions().tunnel,i={sent_at:(new Date).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!o&&r&&{dsn:uo.dsnToString(r)}},a=t&&t.getOptions().beforeSendSpan,s=a?e=>a(lc.spanToJSON(e)):e=>lc.spanToJSON(e),u=[];for(let t of e){let e=s(t);e&&u.push(uo.createSpanEnvelopeItem(e))}return uo.createEnvelope(i,u)};var l9={};Object.defineProperty(l9,"__esModule",{value:!0}),l9.setMeasurement=function(e,t,n){let r=lc.getActiveSpan(),o=r&&lc.getRootSpan(r);o&&o.addEvent(e,{[lL.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[lL.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:n})},l9.timedEventsToMeasurements=function(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[lL.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],o=n[lL.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof r&&"number"==typeof o&&(t[e.name]={value:o,unit:r})}),t}
7,Object.defineProperty(l8,"__esModule",{value:!0});class pe{constructor(e={}){this._traceId=e.traceId||uo.uuid4(),this._spanId=e.spanId||uo.uuid4().substring(16),this._startTime=e.startTimestamp||uo.timestampInSeconds(),this._attributes={},this.setAttributes({[lL.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[lL.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?lc.TRACE_FLAG_SAMPLED:lc.TRACE_FLAG_NONE}}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach(t=>this.setAttribute(t,e[t]))}updateStartTime(e){this._startTime=lc.spanTimeInputToSeconds(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=lc.spanTimeInputToSeconds(e),l4.logSpanEnd(this),this._onSpanEnded())}getSpanJSON(){return uo.dropUndefinedKeys({data:this._attributes,description:this._name,op:this._attributes[lL.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:lc.getStatusMessage(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[lL.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:lC.getMetricSummaryJsonForSpan(this),profile_id:this._attributes[lL.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[lL.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:l9.timedEventsToMeasurements(this._events),is_segment:this._isStandaloneSpan&&lc.getRootSpan(this)===this||void 0,segment_id:this._isStandaloneSpan?lc.getRootSpan(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){lu.DEBUG_BUILD&&uo.logger.log("[Tracing] Adding an event to span:",e);let r=pt(t)?t:n||uo.timestampInSeconds(),o=pt(t)?{}:t||{},i={name:e,time:lc.spanTimeInputToSeconds(r),attributes:o};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=lN.getClient();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===lc.getRootSpan(this)))return;if(this._isStandaloneSpan)return void function(e){let t=lN.getClient();if(!t)return;let n=e[1];if(!n||0===n.length)return t.recordDroppedEvent("before_send","span");let r=t.getTransport();r&&r.send(e).then(null,e=>{lu.DEBUG_BUILD&&uo.logger.error("Error while sending span:",e)})}(l7.createSpanEnvelope([this],e));let t=this._convertSpanToTransaction();t&&(lY.getCapturedScopesOnSpan(this).scope||lN.getCurrentScope()).captureEvent(t)}_convertSpanToTransaction(){if(!pn(lc.spanToJSON(this)))return;this._name||(lu.DEBUG_BUILD&&uo.logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=lY.getCapturedScopesOnSpan(this),n=(e||lN.getCurrentScope()).getClient()||lN.getClient();if(!0!==this._sampled)return lu.DEBUG_BUILD&&uo.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));let r=lc.getSpanDescendants(this).filter(e=>e!==this&&!(e instanceof pe&&e.isStandaloneSpan())).map(e=>lc.spanToJSON(e)).filter(pn),o=this._attributes[lL.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],i={contexts:{trace:lc.spanToTransactionTraceContext(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...uo.dropUndefinedKeys({dynamicSamplingContext:lQ.getDynamicSamplingContextFromSpan(this)})},_metrics_summary:lC.getMetricSummaryJsonForSpan(this),...o&&{transaction_info:{source:o}}},a=l9.timedEventsToMeasurements(this._events);return a&&Object.keys(a).length&&(lu.DEBUG_BUILD&&uo.logger.log("[Measurements] Adding measurements to transaction",JSON.stringify(a,void 0,2)),i.measurements=a),i}}function pt(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function pn(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}
7l8.SentrySpan=pe,Object.defineProperty(lJ,"__esModule",{value:!0});let pr="__SENTRY_SUPPRESS_TRACING__";function po(e,t){let n=ps();return n.withActiveSpan?n.withActiveSpan(e,t):lN.withScope(n=>(lg._setSpanForScope(n,e||void 0),t(n)))}function pi({parentSpan:e,spanContext:t,forceTransaction:n,scope:r}){let o;if(!lX.hasTracingEnabled())return new lq.SentryNonRecordingSpan;let i=lN.getIsolationScope();if(e&&!n)o=function(e,t,n){let{spanId:r,traceId:o}=e.spanContext(),i=!t.getScopeData().sdkProcessingMetadata[pr]&&lc.spanIsSampled(e),a=i?new l8.SentrySpan({...n,parentSpanId:r,traceId:o,sampled:i}):new lq.SentryNonRecordingSpan({traceId:o});lc.addChildSpanToSpan(e,a);let s=lN.getClient();return s&&(s.emit("spanStart",a),n.endTimestamp&&s.emit("spanEnd",a)),a}(e,r,t),lc.addChildSpanToSpan(e,o);else if(e){let n=lQ.getDynamicSamplingContextFromSpan(e),{traceId:i,spanId:a}=e.spanContext(),s=lc.spanIsSampled(e);o=pu({traceId:i,parentSpanId:a,...t},r,s),lQ.freezeDscOnSpan(o,n)}else{let{traceId:e,dsc:n,parentSpanId:a,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};o=pu({traceId:e,parentSpanId:a,...t},r,s),n&&lQ.freezeDscOnSpan(o,n)}return l4.logSpanStart(o),lY.setCapturedScopesOnSpan(o,r,i),o}function pa(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=lc.spanTimeInputToSeconds(e.startTime),delete n.startTime,n}return t}function ps(){let e=lp.getMainCarrier();return ll.getAsyncContextStrategy(e)}function pu(e,t,n){let r=lN.getClient(),o=r&&r.getOptions()||{},{name:i="",attributes:a}=e,[s,u]=t.getScopeData().sdkProcessingMetadata[pr]?[!1]:l5.sampleSpan(o,{name:i,parentSampled:n,attributes:a,transactionContext:{name:i,parentSampled:n}}),c=new l8.SentrySpan({...e,attributes:{[lL.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",...e.attributes},sampled:s});return void 0!==u&&c.setAttribute(lL.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,u),r&&r.emit("spanStart",c),c}function pc(e){let t=lg._getSpanForScope(e);if(!t)return;let n=lN.getClient();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?lc.getRootSpan(t):t}lJ.continueTrace=({sentryTrace:e,baggage:t},n)=>lN.withScope(r=>{let o=uo.propagationContextFromHeaders(e,t);return r.setPropagationContext(o),n()}),lJ.startInactiveSpan=function(e){let t=ps();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=pa(e),r=e.scope||lN.getCurrentScope(),o=pc(r);return e.onlyIfParent&&!o?new lq.SentryNonRecordingSpan:pi({parentSpan:o,spanContext:n,forceTransaction:e.forceTransaction,scope:r})},lJ.startNewTrace=function(e){return lN.withScope(t=>(t.setPropagationContext(uo.generatePropagationContext()),lu.DEBUG_BUILD&&uo.logger.info(`Starting a new trace with id ${t.getPropagationContext().traceId}`),po(null,e)))},lJ.startSpan=function(e,t){let n=ps();if(n.startSpan)return n.startSpan(e,t);let r=pa(e);return lN.withScope(e.scope,n=>{let o=pc(n),i=e.onlyIfParent&&!o?new lq.SentryNonRecordingSpan:pi({parentSpan:o,spanContext:r,forceTransaction:e.forceTransaction,scope:n});return lg._setSpanForScope(n,i),lZ.handleCallbackErrors(()=>t(i),()=>{let{status:e}=lc.spanToJSON(i);!i.isRecording()||e&&"ok"!==e||i.setStatus({code:lw.SPAN_STATUS_ERROR,message:"internal_error"})},()=>i.end())})},lJ.startSpanManual=function(e,t){let n=ps();if(n.startSpanManual)return n.startSpanManual(e,t);let r=pa(e);return lN.withScope(e.scope,n=>{let o=pc(n),i=e.onlyIfParent&&!o?new lq.SentryNonRecordingSpan:pi({parentSpan:o,spanContext:r,forceTransaction:e.forceTransaction,scope:n});function a(){i.end()}return lg._setSpanForScope(n,i),lZ.handleCallbackErrors(()=>t(i,a),()=>{let{status:e}=lc.spanToJSON(i);!i.isRecording()||e&&"ok"!==e||i.setStatus({code:lw.SPAN_STATUS_ERROR,message:"internal_error"})})})},lJ.suppressTracing=function(e){let t=ps();return t.suppressTracing?t.suppressTracing(e):lN.withScope(t=>(t.setSDKProcessingMetadata({[pr]:!0}),e()))},lJ.withActiveSpan=po,Object.defineProperty(lK,"__esModule",{value:!0});let pl={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};lK.TRACING_DEFAULTS=pl,lK.startIdleSpan=function(e,t={}){let n=new Map,r,o=!1,i="externalFinish",a=!t.disableAutoFinish,{idleTimeout:s=pl.idleTimeout,finalTimeout:u=pl.finalTimeout,childSpanTimeout:c=pl.childSpanTimeout,beforeSpanEnd:l}=t,p=lN.getClient();if(!p||!lX.hasTracingEnabled())return new lq.SentryNonRecordingSpan;let d=lN.getCurrentScope(),f=lc.getActiveSpan(),h=function(e){let t=lJ.startInactiveSpan(e);return lg._setSpanForScope(lN.getCurrentScope(),t),lu.DEBUG_BUILD&&uo.logger.log("[Tracing] Started span is an i
7dle span"),t}(e);function _(e=uo.timestampInSeconds()){let t=lc.getSpanDescendants(h).filter(e=>e!==h);if(!t.length)return void h.end(e);let n=t.map(e=>lc.spanToJSON(e).timestamp).filter(e=>!!e),r=n.length?Math.max(...n):void 0,o=lc.spanTimeInputToSeconds(e),i=lc.spanToJSON(h).start_timestamp,a=Math.min(i?i+u/1e3:1/0,Math.max(i||-1/0,Math.min(o,r||1/0)));h.end(a)}function E(){r&&(clearTimeout(r),r=void 0)}function m(e){E(),r=setTimeout(()=>{!o&&0===n.size&&a&&(i="idleTimeout",_(e))},s)}function g(e){r=setTimeout(()=>{!o&&a&&(i="heartbeatFailed",_(e))},c)}return p.on("spanStart",e=>{var t;o||e===h||lc.spanToJSON(e).timestamp||lc.getSpanDescendants(h).includes(e)&&(t=e.spanContext().spanId,E(),n.set(t,!0),g(uo.timestampInSeconds()+c/1e3))}),p.on("spanEnd",e=>{var t;o||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&m(uo.timestampInSeconds()+s/1e3),e===h&&function(){o=!0,n.clear(),l&&l(h),lg._setSpanForScope(d,f);let e=lc.spanToJSON(h),{timestamp:t,start_timestamp:r}=e;if(!t||!r)return;(e.data||{})[lL.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||h.setAttribute(lL.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,i),uo.logger.log(`[Tracing] Idle span "${e.op}" finished`);let a=lc.getSpanDescendants(h).filter(e=>e!==h),c=0;a.forEach(e=>{e.isRecording()&&(e.setStatus({code:lw.SPAN_STATUS_ERROR,message:"cancelled"}),e.end(t),lu.DEBUG_BUILD&&uo.logger.log("[Tracing] Cancelling span since span ended early",JSON.stringify(e,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=lc.spanToJSON(e),o=r<=t,i=n-r<(u+s)/1e3;if(lu.DEBUG_BUILD){let t=JSON.stringify(e,void 0,2);o?i||uo.logger.log("[Tracing] Discarding span since it finished after idle span final timeout",t):uo.logger.log("[Tracing] Discarding span since it happened after idle span was finished",t)}i&&o||(lc.removeChildSpanFromSpan(h,e),c++)}),c>0&&h.setAttribute("sentry.idle_span_discarded_spans",c)}())}),p.on("idleSpanEnableAutoFinish",e=>{e===h&&(a=!0,m(),n.size&&g())}),t.disableAutoFinish||m(),setTimeout(()=>{o||(h.setStatus({code:lw.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),i="finalTimeout",_())},u),h};var pp={},pd={},pf={};
7Object.defineProperty(pf,"__esModule",{value:!0}),pf.notifyEventProcessors=function e(t,n,r,o=0){return new uo.SyncPromise((i,a)=>{let s=t[o];if(null===n||"function"!=typeof s)i(n);else{let u=s({...n},r);lu.DEBUG_BUILD&&s.id&&null===u&&uo.logger.log(`Event processor "${s.id}" dropped event`),uo.isThenable(u)?u.then(n=>e(t,n,r,o+1).then(i)).then(null,a):e(t,u,r,o+1).then(i).then(null,a)}})};var ph={};function p_(e,t,n){if(n&&Object.keys(n).length)for(let r in e[t]={...e[t]},n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}Object.defineProperty(ph,"__esModule",{value:!0}),ph.applyScopeDataToEvent=function(e,t){let{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;!function(e,t){let{extra:n,tags:r,user:o,contexts:i,level:a,transactionName:s}=t,u=uo.dropUndefinedKeys(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});let c=uo.dropUndefinedKeys(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});let l=uo.dropUndefinedKeys(o);l&&Object.keys(l).length&&(e.user={...l,...e.user});let p=uo.dropUndefinedKeys(i);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts}),a&&(e.level=a),s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:lc.spanToTraceContext(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:lQ.getDynamicSamplingContextFromSpan(t),...e.sdkProcessingMetadata};let n=lc.getRootSpan(t),r=lc.spanToJSON(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,r),e.fingerprint=e.fingerprint?uo.arrayify(e.fingerprint):[],n&&(e.fingerprint=e.fingerprint.concat(n)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...i}},ph.mergeAndOverwriteScopeData=p_,ph.mergeScopeData=function(e,t){let{extra:n,tags:r,user:o,contexts:i,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:p,propagationContext:d,transactionName:f,span:h}=t;p_(e,"extra",n),p_(e,"tags",r),p_(e,"user",o),p_(e,"contexts",i),p_(e,"sdkProcessingMetadata",s),a&&(e.level=a),f&&(e.transactionName=f),h&&(e.span=h),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...d}},Object.defineProperty(pd,"__esModule",{value:!0});let pE=new WeakMap;function pm(e,t){let n,r=uo.GLOBAL_OBJ._sentryDebugIds;if(!r)return;let o=pE.get(t);o?n=o:(n=new Map,pE.set(t,n));let i=Object.keys(r).reduce((e,o)=>{let i,a=n.get(o);a?i=a:(i=t(o),n.set(o,i));for(let t=i.length-1;t>=0;t--){let n=i[t];if(n.filename){e[n.filename]=r[o];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=i[e.filename])})})}catch(e){}}function pg(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}let pS=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function pv(e,t){let n=lN.getCurrentScope(),r=lN.getClient();if(r){if(r.captureCheckIn)return r.captureCheckIn(e,t,n);lu.DEBUG_BUILD&&uo.logger.warn("Cannot capture check-in. Client does not support sending check-ins.")}else lu.DEBUG_BUILD&&uo.logger.warn("Cannot capture check-in. No client defined.");return uo.uuid4()}function pT(){let e=lN.getIsolationScope(),t=lN.getCurrentScope(),n=t.getSession()||e.getSession();n&&lE.closeSession(n),py(),e.setSession(),t.setSession()}function py(){let e=lN.getIsolationScope(),t=lN.getCurrentScope(),n=lN.getClient(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}pd.applyDebugIds=pm,pd.applyDebugMeta=pg,pd.parseEventHintOrCaptureContext=function(e){if(e)return e instanceof l_.Scope||"function"==typeof e||Object.keys(e).some(e=>pS.includes(e))?{captureContext:e}:e},pd.prepareEvent=function(e,t,n,r,o,i){let{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,u={...t,event_id:t.event_id||n.event_id||uo.uuid4(),timestamp:t.timestamp||uo.dateTimestampInSeconds()},c=n.integrations||e.integrations.map(e=>e.name);!function(e,t){let{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:l0.DEFAULT_ENVIRONMENT),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=uo.truncate(e.message,i));let a=e.exception&&e.exception.values&&e.exception.values[0];
7a&&a.value&&(a.value=uo.truncate(a.value,i));let s=e.request;s&&s.url&&(s.url=uo.truncate(s.url,i))}(u,e),c.length>0&&(u.sdk=u.sdk||{},u.sdk.integrations=[...u.sdk.integrations||[],...c]),void 0===t.type&&pm(u,e.stackParser);let l=function(e,t){if(!t)return e;let n=e?e.clone():new l_.Scope;return n.update(t),n}(r,n.captureContext);n.mechanism&&uo.addExceptionMechanism(u,n.mechanism);let p=o?o.getEventProcessors():[],d=lN.getGlobalScope().getScopeData();if(i){let e=i.getScopeData();ph.mergeScopeData(d,e)}if(l){let e=l.getScopeData();ph.mergeScopeData(d,e)}let f=[...n.attachments||[],...d.attachments];f.length&&(n.attachments=f),ph.applyScopeDataToEvent(u,d);let h=[...p,...d.eventProcessors];return pf.notifyEventProcessors(h,u,n).then(e=>(e&&pg(e),"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:uo.normalize(e.data,t,n)}}))},...e.user&&{user:uo.normalize(e.user,t,n)},...e.contexts&&{contexts:uo.normalize(e.contexts,t,n)},...e.extra&&{extra:uo.normalize(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=uo.normalize(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:uo.normalize(e.data,t,n)}}))),r}(e,a,s):e))},Object.defineProperty(pp,"__esModule",{value:!0}),pp.addEventProcessor=function(e){lN.getIsolationScope().addEventProcessor(e)},pp.captureCheckIn=pv,pp.captureEvent=function(e,t){return lN.getCurrentScope().captureEvent(e,t)},pp.captureException=function(e,t){return lN.getCurrentScope().captureException(e,pd.parseEventHintOrCaptureContext(t))},pp.captureMessage=function(e,t){let n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return lN.getCurrentScope().captureMessage(e,n,r)},pp.captureSession=function(e=!1){e?pT():py()},pp.close=async function(e){let t=lN.getClient();return t?t.close(e):(lu.DEBUG_BUILD&&uo.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))},pp.endSession=pT,pp.flush=async function(e){let t=lN.getClient();return t?t.flush(e):(lu.DEBUG_BUILD&&uo.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))},pp.isEnabled=function(){let e=lN.getClient();return!!e&&!1!==e.getOptions().enabled&&!!e.getTransport()},pp.isInitialized=function(){return!!lN.getClient()},pp.lastEventId=function(){return lN.getIsolationScope().lastEventId()},pp.setContext=function(e,t){lN.getIsolationScope().setContext(e,t)},pp.setExtra=function(e,t){lN.getIsolationScope().setExtra(e,t)},pp.setExtras=function(e){lN.getIsolationScope().setExtras(e)},pp.setTag=function(e,t){lN.getIsolationScope().setTag(e,t)},pp.setTags=function(e){lN.getIsolationScope().setTags(e)},pp.setUser=function(e){lN.getIsolationScope().setUser(e)},pp.startSession=function(e){let t=lN.getClient(),n=lN.getIsolationScope(),r=lN.getCurrentScope(),{release:o,environment:i=l0.DEFAULT_ENVIRONMENT}=t&&t.getOptions()||{},{userAgent:a}=uo.GLOBAL_OBJ.navigator||{},s=lE.makeSession({release:o,environment:i,user:r.getUser()||n.getUser(),...a&&{userAgent:a},...e}),u=n.getSession();return u&&"ok"===u.status&&lE.updateSession(u,{status:"exited"}),pT(),n.setSession(s),r.setSession(s),s},pp.withMonitor=function(e,t,n){let r=pv({monitorSlug:e,status:"in_progress"},n),o=uo.timestampInSeconds();function i(t){pv({monitorSlug:e,status:t,checkInId:r,duration:uo.timestampInSeconds()-o})}return lN.withIsolationScope(()=>{let e;try{e=t()}catch(e){throw i("error"),e}return uo.isThenable(e)?Promise.resolve(e).then(()=>{i("ok")},()=>{i("error")}):i("ok"),e})};var pb={};
7Object.defineProperty(pb,"__esModule",{value:!0}),pb.SessionFlusher=class{constructor(e,t){this._client=e,this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._intervalId=setInterval(()=>this.flush(),1e3*this.flushTimeout),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=t}flush(){let e=this.getSessionAggregates();0!==e.aggregates.length&&(this._pendingAggregates={},this._client.sendSession(e))}getSessionAggregates(){let e=Object.keys(this._pendingAggregates).map(e=>this._pendingAggregates[parseInt(e)]),t={attrs:this._sessionAttrs,aggregates:e};return uo.dropUndefinedKeys(t)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;let e=lN.getIsolationScope(),t=e.getRequestSession();t&&t.status&&(this._incrementSessionStatusCount(t.status,new Date),e.setRequestSession(void 0))}_incrementSessionStatusCount(e,t){let n=new Date(t).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};let r=this._pendingAggregates[n];switch(r.started||(r.started=new Date(n).toISOString()),e){case"errored":return r.errored=(r.errored||0)+1,r.errored;case"ok":return r.exited=(r.exited||0)+1,r.exited;default:return r.crashed=(r.crashed||0)+1,r.crashed}}};var pA={};function pR(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}Object.defineProperty(pA,"__esModule",{value:!0}),pA.getEnvelopeEndpointWithUrlEncodedAuth=function(e,t,n){return t||`${pR(e)}${e.projectId}/envelope/?${uo.urlEncode({sentry_key:e.publicKey,sentry_version:"7",...n&&{sentry_client:`${n.name}/${n.version}`}})}`},pA.getReportDialogEndpoint=function(e,t){let n=uo.makeDsn(e);if(!n)return"";let r=`${pR(n)}embed/error-page/`,o=`dsn=${uo.dsnToString(n)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=t.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${o}`};var pO={},pN={};Object.defineProperty(pN,"__esModule",{value:!0});let pI=[];function pC(e,t,n){if(n[t.name])lu.DEBUG_BUILD&&uo.logger.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===pI.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),pI.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}lu.DEBUG_BUILD&&uo.logger.log(`Integration installed: ${t.name}`)}}pN.addIntegration=function(e){let t=lN.getClient();t?t.addIntegration(e):lu.DEBUG_BUILD&&uo.logger.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)},pN.afterSetupIntegrations=function(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)},pN.defineIntegration=function(e){return e},pN.getIntegrationsToSetup=function(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r=function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}(Array.isArray(n)?[...t,...n]:"function"==typeof n?uo.arrayify(n(t)):t),o=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return -1}(r,e=>"Debug"===e.name);if(-1!==o){let[e]=r.splice(o,1);r.push(e)}return r},pN.installedIntegrations=pI,pN.setupIntegration=pC,pN.setupIntegrations=function(e,t){let n={};return t.forEach(t=>{t&&pC(e,t,n)}),n},Object.defineProperty(pO,"__esModule",{value:!0});let pM="Not capturing exception because it's already been captured.";function pL(e){return void 0===e.type}function pw(e){return"transaction"===e.type}pO.BaseClient=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=uo.makeDsn(e.dsn):lu.DEBUG_BUILD&&uo.logger.warn("No DSN provided, client will not send events."),this._dsn){let t=pA.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){let r=uo.uuid4();if(uo.checkOrSetAlreadyCaught(e))return lu.DEBUG_BUILD&&uo.logger.log(pM),r;let o={event_id:r,...t};return this._process(this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n))),o.event_id}captureMessage(e,t,n,r){let o={event_id:uo.uuid4(),...n},i=uo.isParameterizedString(e)?e:String(e),a=uo.isPrimitive(e)?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(a.then(e=>this._captureEvent(e,o,r))),o.event_id}captureEvent(e,t,n){let r=uo.uuid4();if(t&&t.originalException&&uo.checkOrSetAlreadyCaught(t.originalException))return lu.DEBUG_BUILD&&uo.logger.log(pM),r;let o={event_id:r,...t},i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,i||n)),o.event_id}captureSession(e){"string"!=typeof e.release?lu.DEBUG_BUILD&&uo.logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),lE.updateSession(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;
7return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):uo.resolvedSyncPromise(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];pN.setupIntegration(this,e,this._integrations),t||pN.afterSetupIntegrations(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=l7.createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=uo.addItemToEnvelope(n,uo.createAttachmentEnvelopeItem(e));let r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=l7.createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let n=`${e}:${t}`;lu.DEBUG_BUILD&&uo.logger.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,e=>(lu.DEBUG_BUILD&&uo.logger.error("Error while sending event:",e),e)):(lu.DEBUG_BUILD&&uo.logger.error("Transport disabled"),uo.resolvedSyncPromise({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=pN.setupIntegrations(this,e),pN.afterSetupIntegrations(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1,o=t.exception&&t.exception.values;if(o)for(let e of(r=!0,o)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let i="ok"===e.status;(i&&0===e.errors||i&&n)&&(lE.updateSession(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new uo.SyncPromise(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=lN.getIsolationScope()){let o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),pd.prepareEvent(o,e,t,n,this,r).then(e=>{if(null===e)return e;let t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:n,spanId:r,parentSpanId:o,dsc:i}=t;e.contexts={trace:uo.dropUndefinedKeys({trace_id:n,span_id:r,parent_span_id:o}),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:i||lQ.getDynamicSamplingContextFromClient(n,this),...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{lu.DEBUG_BUILD&&("log"===e.logLevel?uo.logger.log(e.message):uo.logger.warn(e))})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:o}=r,i=pw(e),a=pL(e),s=e.type||"error",u=`before send for type \`${s}\``,c=void 0===o?void 0:l6.parseSampleRate(o);if(a&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",e),uo.rejectedSyncPromise(new uo.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));let l="replay_event"===s?"replay":s,p=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,p).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new uo.SentryError("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;var o=function(e,t,n){let{beforeSend:r,beforeSendTransaction:o,beforeSendSpan:i}=e;if(pL(t)&&r)return r(t,n);if(pw(t)){if(t.spans&&i){let e=[];for(let n of t.spans){let t=i(n);t&&e.push(t)}t.spans=e}if(o)return o(t,n)}return t}(r,n,t);let i=`${u} must return \`null\` or a valid event.`;if(uo.isThenable(o))return o.then(e=>{if(!uo.isPlainObject(e)&&null!==e)throw new uo.SentryError(i);return e},e=>{throw new uo.SentryError(`${u} rejected with ${e}`)});if(!uo.isPlainObject(o)&&null!==o)throw new uo.SentryError(i);return o}
7).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",l,e),new uo.SentryError(`${u} returned \`null\`, will not send event.`,"log");let o=n&&n.getSession();!i&&o&&this._updateSessionFromEvent(o,r);let a=r.transaction_info;return i&&a&&r.transaction!==e.transaction&&(r.transaction_info={...a,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof uo.SentryError)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new uo.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 8Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}};var pP={},pD={};Object.defineProperty(pD,"__esModule",{value:!0}),pD.createCheckInEnvelope=function(e,t,n,r,o){let i={sent_at:(new Date).toISOString()};return n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&o&&(i.dsn=uo.dsnToString(o)),t&&(i.trace=uo.dropUndefinedKeys(t)),uo.createEnvelope(i,[[{type:"check_in"},e]])},Object.defineProperty(pP,"__esModule",{value:!0});let px=pO;class pU extends px.BaseClient{constructor(e){ur.registerSpanErrorInstrumentation(),super(e)}eventFromException(e,t){return uo.resolvedSyncPromise(uo.eventFromUnknownInput(this,this._options.stackParser,e,t))}eventFromMessage(e,t="info",n){return uo.resolvedSyncPromise(uo.eventFromMessage(this._options.stackParser,e,t,n,this._options.attachStacktrace))}captureException(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher){let e=lN.getIsolationScope().getRequestSession();e&&"ok"===e.status&&(e.status="errored")}return super.captureException(e,t,n)}captureEvent(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&"exception"===(e.type||"exception")&&e.exception&&e.exception.values&&e.exception.values.length>0){let e=lN.getIsolationScope().getRequestSession();e&&"ok"===e.status&&(e.status="errored")}return super.captureEvent(e,t,n)}close(e){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(e)}initSessionFlusher(){let{release:e,environment:t}=this._options;e?this._sessionFlusher=new pb.SessionFlusher(this,{release:e,environment:t}):lu.DEBUG_BUILD&&uo.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}captureCheckIn(e,t,n){let r="checkInId"in e&&e.checkInId?e.checkInId:uo.uuid4();if(!this._isEnabled())return lu.DEBUG_BUILD&&uo.logger.warn("SDK not enabled, will not capture checkin."),r;let{release:o,environment:i,tunnel:a}=this.getOptions(),s={check_in_id:r,monitor_slug:e.monitorSlug,status:e.status,release:o,environment:i};"duration"in e&&(s.duration=e.duration),t&&(s.monitor_config={schedule:t.schedule,checkin_margin:t.checkinMargin,max_runtime:t.maxRuntime,timezone:t.timezone,failure_issue_threshold:t.failureIssueThreshold,recovery_threshold:t.recoveryThreshold});let[u,c]=this._getTraceInfoFromScope(n);c&&(s.contexts={trace:c});let l=pD.createCheckInEnvelope(s,u,this.getSdkMetadata(),a,this.getDsn());return lu.DEBUG_BUILD&&uo.logger.info("Sending checkin:",e.monitorSlug,e.status),this.sendEnvelope(l),r}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():lu.DEBUG_BUILD&&uo.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")}_prepareEvent(e,t,n,r){return this._options.platform&&(e.platform=e.platform||this._options.platform),this._options.runtime&&(e.contexts={...e.contexts,runtime:(e.contexts||{}).runtime||this._options.runtime}),this._options.serverName&&(e.server_name=e.server_name||this._options.serverName),super._prepareEvent(e,t,n,r)}_getTraceInfoFromScope(e){if(!e)return[void 0,void 0];let t=lg._getSpanForScope(e);if(t){let e=lc.getRootSpan(t);return[lQ.getDynamicSamplingContextFromSpan(e),lc.spanToTraceContext(e)]}let{traceId:n,spanId:r,parentSpanId:o,dsc:i}=e.getPropagationContext(),a={trace_id:n,span_id:r,parent_span_id:o};return i?[i,a]:[lQ.getDynamicSamplingContextFromClient(n,this),a]}}pP.ServerRuntimeClient=pU;var pk={};function pB(e){lN.getCurrentScope().setClient(e)}Object.defineProperty(pk,"__esModule",{value:!0}),pk.initAndBind=function(e,t){!0===t.debug&&(lu.DEBUG_BUILD?uo.logger.enable():uo.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),lN.getCurrentScope().update(t.initialScope);let n=new e(t);pB(n),n.init()},pk.setCurrentClient=pB;var pV={};function pF(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}Object.defineProperty(pV,"__esModule",{value:!0}),pV.DEFAULT_TRANSPORT_BUFFER_SIZE=64,pV.createTransport=function(e,t,n=uo.makePromiseBuffer(e.bufferSize||64)){let r={};return{send:function(o){let i=[];if(uo.forEachEnvelopeItem(o,(t,n)=>{let o=uo.envelopeItemTypeToDataCategory(n);if(uo.isRateLimited(r,o)){let r=pF(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else i.push(t)}),0===i.length)return uo.resolvedSyncPromise({});let a=uo.createEnvelope(o[0],i),s=t=>{uo.forEachEnvelopeItem(a,(n,r)=>{let o=pF(n,r);e.recordDroppedEvent(t,uo.envelopeItemTypeToDataCategory(r),o)})};return n.add(()=>t({body:uo.serializeEnvelope(a)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&lu.DEBUG_BUILD&&uo.logger.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=uo.updateRateLimits(r,e),e),e=>{throw s("network_error"),e})).then(e=>e,e=>
8{if(e instanceof uo.SentryError)return lu.DEBUG_BUILD&&uo.logger.error("Skipped sending event because buffer is full."),s("queue_overflow"),uo.resolvedSyncPromise({});throw e})},flush:e=>n.drain(e)}};var pj={};Object.defineProperty(pj,"__esModule",{value:!0}),pj.MIN_DELAY=100,pj.START_DELAY=5e3,pj.makeOfflineTransport=function(e){function t(...e){lu.DEBUG_BUILD&&uo.logger.info("[Offline]:",...e)}return n=>{let r=e(n);if(!n.createStore)throw Error("No `createStore` function was provided");let o=n.createStore(n),i,a=5e3;function s(e){i&&clearTimeout(i),"number"!=typeof(i=setTimeout(async()=>{i=void 0;let e=await o.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=(new Date).toISOString(),c(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))&&i.unref&&i.unref()}function u(){i||(s(a),a=Math.min(2*a,36e5))}async function c(e,i=!1){if(!i&&uo.envelopeContainsItemType(e,["replay_event","replay_recording"]))return await o.push(e),s(100),{};try{let t=await r.send(e),n=100;if(t){if(t.headers&&t.headers["retry-after"])n=uo.parseRetryAfterHeader(t.headers["retry-after"]);else if(t.headers&&t.headers["x-sentry-rate-limits"])n=6e4;else if((t.statusCode||0)>=400)return t}return s(n),a=5e3,t}catch(r){var l;if(await (l=a,!uo.envelopeContainsItemType(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,r,l))))return i?await o.unshift(e):await o.push(e),u(),t("Error sending. Event queued.",r),{};throw r}}return n.flushAtStartup&&u(),{send:c,flush:e=>r.flush(e)}}};var pG={};function pH(e,t){let n;return uo.forEachEnvelopeItem(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}Object.defineProperty(pG,"__esModule",{value:!0}),pG.eventFromEnvelope=pH,pG.makeMultiplexedTransport=function(e,t){return n=>{let r=e(n),o=new Map;function i(t,r){let i=r?`${t}:${r}`:t,a=o.get(i);if(!a){let s=uo.dsnFromString(t);if(!s)return;let u=pA.getEnvelopeEndpointWithUrlEncodedAuth(s,n.tunnel);a=r?(t=>{let n=e(t);return{...n,send:async e=>{let t=pH(e,["event","transaction","profile","replay_event"]);return t&&(t.release=r),n.send(e)}}})({...n,url:u}):e({...n,url:u}),o.set(i,a)}return[t,a]}return{send:async function(e){let n=t({envelope:e,getEvent:function(t){return pH(e,t&&t.length?t:["event"])}}).map(e=>"string"==typeof e?i(e,void 0):i(e.dsn,e.release)).filter(e=>!!e);return 0===n.length&&n.push(["",r]),(await Promise.all(n.map(([t,n])=>n.send(uo.createEnvelope(t?{...e[0],dsn:t}:e[0],e[1])))))[0]},flush:async function(e){let t=[...o.values(),r];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}};var pY={};function pz(e){return"/"===e[e.length-1]?e.slice(0,-1):e}Object.defineProperty(pY,"__esModule",{value:!0}),pY.isSentryRequestUrl=function(e,t){let n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return!!n&&e.includes(n.host)||!!r&&pz(e)===pz(r)};var pW={};
8Object.defineProperty(pW,"__esModule",{value:!0}),pW.parameterize=function(e,...t){let n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n};var p$={};Object.defineProperty(p$,"__esModule",{value:!0}),p$.applySdkMetadata=function(e,t,n=[t],r="npm"){let o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:uo.SDK_VERSION})),version:uo.SDK_VERSION}),e._metadata=o};var pK={};Object.defineProperty(pK,"__esModule",{value:!0}),pK.addBreadcrumb=function(e,t){let n=lN.getClient(),r=lN.getIsolationScope();if(!n)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:i=100}=n.getOptions();if(i<=0)return;let a={timestamp:uo.dateTimestampInSeconds(),...e},s=o?uo.consoleSandbox(()=>o(a,t)):a;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,i))};var pX={};Object.defineProperty(pX,"__esModule",{value:!0});let pq=new WeakMap;pX.functionToStringIntegration=pN.defineIntegration(()=>({name:"FunctionToString",setupOnce(){e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let n=uo.getOriginalFunction(this),r=pq.has(lN.getClient())&&void 0!==n?n:this;return e.apply(r,t)}}catch(e){}},setup(e){pq.set(e,!0)}}));var pJ={};Object.defineProperty(pJ,"__esModule",{value:!0});let pZ=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/];function pQ(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return lu.DEBUG_BUILD&&uo.logger.error(`Cannot extract url for event ${uo.getEventDescription(e)}`),null}}pJ.inboundFiltersIntegration=pN.defineIntegration((e={})=>({name:"InboundFilters",processEvent:(t,n,r)=>!function(e,t){var n;return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(lu.DEBUG_BUILD&&uo.logger.warn(`Event dropped due to being internal Sentry Error. 9Event: ${uo.getEventDescription(e)}`),!0):(n=t.ignoreErrors,!e.type&&n&&n.length&&(function(e){let t,n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),n})(e).some(e=>uo.stringMatchesSomePattern(e,n)))?(lu.DEBUG_BUILD&&uo.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 10Event: ${uo.getEventDescription(e)}`),!0):!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&uo.stringMatchesSomePattern(n,t)}(e,t.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=pQ(e);return!!n&&uo.stringMatchesSomePattern(n,t)}(e,t.denyUrls)?!function(e,t){if(!t||!t.length)return!0;let n=pQ(e);return!n||uo.stringMatchesSomePattern(n,t)}(e,t.allowUrls)&&(lu.DEBUG_BUILD&&uo.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option. 11Event: ${uo.getEventDescription(e)}. 12Url: ${pQ(e)}`),!0):(lu.DEBUG_BUILD&&uo.logger.warn(`Event dropped due to being matched by \`denyUrls\` option. 13Event: ${uo.getEventDescription(e)}. 14Url: ${pQ(e)}`),!0):(lu.DEBUG_BUILD&&uo.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 15Event: ${uo.getEventDescription(e)}`),!0)}(t,function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:pZ],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r.getOptions()))?t:null}));var p0={};Object.defineProperty(p0,"__esModule",{value:!0}),p0.linkedErrorsIntegration=pN.defineIntegration((e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){let i=o.getOptions();uo.applyAggregateErrorsToEvent(uo.exceptionFromError,i.stackParser,i.maxValueLength,n,t,e,r)}}});var p1={},p2={};
15Object.defineProperty(p2,"__esModule",{value:!0});let p3=new Map,p4=new Set;function p5(e,t){return function(e){if(uo.GLOBAL_OBJ._sentryModuleMetadata)for(let t of Object.keys(uo.GLOBAL_OBJ._sentryModuleMetadata)){let n=uo.GLOBAL_OBJ._sentryModuleMetadata[t];if(!p4.has(t)){for(let r of(p4.add(t),e(t).reverse()))if(r.filename){p3.set(r.filename,n);break}}}}(e),p3.get(t)}p2.addMetadataToStackFrames=function(e,t){try{t.exception.values.forEach(t=>{if(t.stacktrace)for(let n of t.stacktrace.frames||[]){if(!n.filename)continue;let t=p5(e,n.filename);t&&(n.module_metadata=t)}})}catch(e){}},p2.getMetadataForUrl=p5,p2.stripMetadataFromStackFrames=function(e){try{e.exception.values.forEach(e=>{if(e.stacktrace)for(let t of e.stacktrace.frames||[])delete t.module_metadata})}catch(e){}},Object.defineProperty(p1,"__esModule",{value:!0}),p1.moduleMetadataIntegration=pN.defineIntegration(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{uo.forEachEnvelopeItem(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(p2.stripMetadataFromStackFrames(t),e[1]=t)}})})},processEvent(e,t,n){let r=n.getOptions().stackParser;return p2.addMetadataToStackFrames(r,e),e}}));var p6={};Object.defineProperty(p6,"__esModule",{value:!0});let p8={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"};p6.requestDataIntegration=pN.defineIntegration((e={})=>{let t={...p8,...e,include:{...p8.include,...e.include,user:e.include&&"boolean"==typeof e.include.user?e.include.user:{...p8.include.user,...(e.include||{}).user}}};return{name:"RequestData",processEvent(e){let{sdkProcessingMetadata:n={}}=e,r=n.request;if(!r)return e;let o=function(e){let t,{transactionNamingScheme:n,include:{ip:r,user:o,...i}}=e,a=["method"];for(let[e,t]of Object.entries(i))t&&a.push(e);if(void 0===o)t=!0;else if("boolean"==typeof o)t=o;else{let e=[];for(let[t,n]of Object.entries(o))n&&e.push(t);t=e}return{include:{ip:r,user:t,request:0!==a.length?a:void 0,transaction:n}}}(t);return uo.addRequestDataToEvent(e,r,o)}}});var p7={};Object.defineProperty(p7,"__esModule",{value:!0}),p7.captureConsoleIntegration=pN.defineIntegration((e={})=>{let t=e.levels||uo.CONSOLE_LEVELS;return{name:"CaptureConsole",setup(e){"console"in uo.GLOBAL_OBJ&&uo.addConsoleInstrumentationHandler(({args:n,level:r})=>{lN.getClient()===e&&t.includes(r)&&function(e,t){let n={level:uo.severityLevelFromString(t),extra:{arguments:e}};lN.withScope(r=>{if(r.addEventProcessor(e=>(e.logger="console",uo.addExceptionMechanism(e,{handled:!1,type:"console"}),e)),"assert"===t){if(!e[0]){let t=`Assertion failed: ${uo.safeJoin(e.slice(1)," ")||"console.assert"}`;r.setExtra("arguments",e.slice(1)),pp.captureMessage(t,n)}return}let o=e.find(e=>e instanceof Error);if(o)return void pp.captureException(o,n);let i=uo.safeJoin(e," ");pp.captureMessage(i,n)})}(n,r)})}}});var p9={};Object.defineProperty(p9,"__esModule",{value:!0}),p9.debugIntegration=pN.defineIntegration((e={})=>{let t={debugger:!1,stringify:!1,...e};return{name:"Debug",setup(e){e.on("beforeSendEvent",(e,n)=>{t.debugger,uo.consoleSandbox(()=>{t.stringify?(console.log(JSON.stringify(e,null,2)),n&&Object.keys(n).length&&console.log(JSON.stringify(n,null,2))):(console.log(e),n&&Object.keys(n).length&&console.log(n))})})}}});var de={};Object.defineProperty(de,"__esModule",{value:!0});let dt=pN.defineIntegration(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(dn(t,e))return lu.DEBUG_BUILD&&uo.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function dn(e,t){return!!t&&(!!function(e,t){let n=e.message,r=t.message;return(!!n||!!r)&&(!n||!!r)&&(!!n||!r)&&n===r&&!!di(e,t)&&!!dr(e,t)&&!0}(e,t)||!!function(e,t){let n=da(t),r=da(e);return!!n&&!!r&&n.type===r.type&&n.value===r.value&&!!di(e,t)&&!!dr(e,t)}(e,t))}function dr(e,t){let n=ds(e),r=ds(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function di(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;
15if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch(e){return!1}}function da(e){return e.exception&&e.exception.values&&e.exception.values[0]}function ds(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}de._shouldDropEvent=dn,de.dedupeIntegration=dt;var du={};Object.defineProperty(du,"__esModule",{value:!0}),du.extraErrorDataIntegration=pN.defineIntegration((e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent:(e,r)=>(function(e,t={},n,r){if(!t.originalException||!uo.isError(t.originalException))return e;let o=t.originalException.name||t.originalException.constructor.name,i=function(e,t){try{let n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],r={};for(let t of Object.keys(e)){if(-1!==n.indexOf(t))continue;let o=e[t];r[t]=uo.isError(o)?o.toString():o}if(t&&void 0!==e.cause&&(r.cause=uo.isError(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){let t=e.toJSON();for(let e of Object.keys(t)){let n=t[e];r[e]=uo.isError(n)?n.toString():n}}return r}catch(e){lu.DEBUG_BUILD&&uo.logger.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,r);if(i){let t={...e.contexts},r=uo.normalize(i,n);return uo.isPlainObject(r)&&(uo.addNonEnumerableProperty(r,"__sentry_skip_normalization__",!0),t[o]=r),{...e,contexts:t}}return e})(e,r,t,n)}});var dc={};Object.defineProperty(dc,"__esModule",{value:!0});let dl=pN.defineIntegration((e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in uo.GLOBAL_OBJ&&void 0!==uo.GLOBAL_OBJ.window,o=e.iteratee||dp({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t&&t.frames&&t.frames.map(e=>o(e))}}}})}}}catch(t){return e}}(t)),t}}});function dp({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let o=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),i=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(o||i){let e=o?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,i=t?uo.relative(t,e):uo.basename(e);r.filename=`${n}${i}`}return r}}dc.generateIteratee=dp,dc.rewriteFramesIntegration=dl;var dd={};Object.defineProperty(dd,"__esModule",{value:!0}),dd.sessionTimingIntegration=pN.defineIntegration(()=>{let e=1e3*uo.timestampInSeconds();return{name:"SessionTiming",processEvent(t){let n=1e3*uo.timestampInSeconds();return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}});var df={};function dh(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function d_(e,t,n){var r;return t.exception&&t.exception.values&&n&&n.originalException&&(r=n.originalException,uo.isError(r)&&"ZodError"===r.name&&Array.isArray(r.errors))&&0!==n.originalException.issues.length?{...t,exception:{...t.exception,values:[{...t.exception.values[0],value:function(e){let t=new Set;for(let n of e.issues)n.path&&t.add(n.path[0]);let n=Array.from(t);return`Failed to validate keys: ${uo.truncate(n.join(", "),100)}`}(n.originalException)},...t.exception.values.slice(1)]},extra:{...t.extra,"zoderror.issues":n.originalException.errors.slice(0,e).map(dh)}}:t}Object.defineProperty(df,"__esModule",{value:!0});let dE=pN.defineIntegration((e={})=>{let t=e.limit||10;return{name:"ZodErrors",processEvent:(e,n)=>d_(t,e,n)}});df.applyZodErrorsToEvent=d_,df.zodErrorsIntegration=dE;var dm={},dg={};function dS(e,t){let n=uo.getGlobalSingleton("globalMetricsAggregators",()=>new WeakMap),r=n.get(e);if(r)return r;let o=new t(e);return e.on("flush",()=>o.flush()),e.on("close",()=>o.close()),n.set(e,o),o}function dv(e,t,n,r,o={}){let i=o.client||lN.getClient();if(!i)return;let a=lc.getActiveSpan(),s=a?lc.getRootSpan(a):void 0,u=s&&lc.spanToJSON(s).description,{unit:c,tags:l,timestamp:p}=o,{release:d,environment:f}=i.getOptions(),h={};d&&(h.release=d),f&&(h.environment=f),u&&(h.transaction=u),lu.DEBUG_BUILD&&uo.logger.log(`Adding value of ${r} to ${t} metric ${n}`),dS(i,e).add(t,n,r,c,{...h,...l},p)}function dT(e,t,n,r){dv(e,dg.DISTRIBUTION_METRIC_TYPE,t,dy(n),r)}function dy(e){return"string"==typeof e?parseInt(e):e}
15Object.defineProperty(dg,"__esModule",{value:!0}),dg.COUNTER_METRIC_TYPE="c",dg.DEFAULT_BROWSER_FLUSH_INTERVAL=5e3,dg.DEFAULT_FLUSH_INTERVAL=1e4,dg.DISTRIBUTION_METRIC_TYPE="d",dg.GAUGE_METRIC_TYPE="g",dg.MAX_WEIGHT=1e4,dg.SET_METRIC_TYPE="s",Object.defineProperty(dm,"__esModule",{value:!0}),dm.metrics={increment:function(e,t,n=1,r){dv(e,dg.COUNTER_METRIC_TYPE,t,dy(n),r)},distribution:dT,set:function(e,t,n,r){dv(e,dg.SET_METRIC_TYPE,t,n,r)},gauge:function(e,t,n,r){dv(e,dg.GAUGE_METRIC_TYPE,t,dy(n),r)},timing:function(e,t,n,r="second",o){if("function"==typeof n){let r=uo.timestampInSeconds();return lJ.startSpanManual({op:"metrics.timing",name:t,startTime:r,onlyIfParent:!0},i=>lZ.handleCallbackErrors(()=>n(),()=>{},()=>{let n=uo.timestampInSeconds();dT(e,t,n-r,{...o,unit:"second"}),i.end(n)}))}dT(e,t,n,{...o,unit:r})},getMetricsAggregatorForClient:dS};var db={},dA={},dR={},dO={};Object.defineProperty(dO,"__esModule",{value:!0});let dN=[["\n","\\n"],["\r","\\r"],[" ","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function dI(e,t,n,r){let o={sent_at:(new Date).toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=uo.dsnToString(t));let i=function(e){let t=dO.serializeMetricBuckets(e);return[{type:"statsd",length:t.length},t]}(e);return uo.createEnvelope(o,[i])}dO.getBucketKey=function(e,t,n,r){let o=Object.entries(uo.dropUndefinedKeys(r)).sort((e,t)=>e[0].localeCompare(t[0]));return`${e}${t}${n}${o}`},dO.sanitizeMetricKey=function(e){return e.replace(/[^\w\-.]+/gi,"_")},dO.sanitizeTags=function(e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n.replace(/[^\w\-./]+/gi,"")]=[...String(e[n])].reduce((e,t)=>e+function(e){for(let[t,n]of dN)if(e===t)return n;return e}(t),""));return t},dO.sanitizeUnit=function(e){return e.replace(/[^\w]+/gi,"_")},dO.serializeMetricBuckets=function(e){let t="";for(let n of e){let e=Object.entries(n.tags),r=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp} 16`}return t},dO.simpleHash=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t>>>0},Object.defineProperty(dR,"__esModule",{value:!0}),dR.captureAggregateMetrics=function(e,t){uo.logger.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);let n=dI(t,e.getDsn(),e.getSdkMetadata(),e.getOptions().tunnel);e.sendEnvelope(n)},dR.createMetricEnvelope=dI;var dC={};Object.defineProperty(dC,"__esModule",{value:!0});class dM{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}}class dL{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,e<this._min&&(this._min=e),e>this._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}}class dw{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}}class dP{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map(e=>"string"==typeof e?dO.simpleHash(e):e).join(":")}}let dD={[dg.COUNTER_METRIC_TYPE]:dM,[dg.GAUGE_METRIC_TYPE]:dL,[dg.DISTRIBUTION_METRIC_TYPE]:dw,[dg.SET_METRIC_TYPE]:dP};dC.CounterMetric=dM,dC.DistributionMetric=dw,dC.GaugeMetric=dL,dC.METRIC_MAP=dD,dC.SetMetric=dP,Object.defineProperty(dA,"__esModule",{value:!0}),dA.MetricsAggregator=class{constructor(e){this._client=e,this._buckets=new Map,this._bucketsTotalWeight=0,this._interval=setInterval(()=>this._flush(),dg.DEFAULT_FLUSH_INTERVAL),this._interval.unref&&this._interval.unref(),this._flushShift=Math.floor(Math.random()*dg.DEFAULT_FLUSH_INTERVAL/1e3),this._forceFlush=!1}add(e,t,n,r="none",o={},i=uo.timestampInSeconds()){let a=Math.floor(i),s=dO.sanitizeMetricKey(t),u=dO.sanitizeTags(o),c=dO.sanitizeUnit(r),l=dO.getBucketKey(e,s,c,u),p=this._buckets.get(l),d=p&&e===dg.SET_METRIC_TYPE?p.metric.weight:0;p?(p.metric.add(n),p.timestamp<a&&(p.timestamp=a)):(p={metric:new dC.METRIC_MAP[e](n),timestamp:a,metricType:e,name:s,unit:c,tags:u},this._buckets.set(l,p));let f="string"==typeof n?p.metric.weight-d:n;lc.updateMetricSummaryOnActiveSpan(e,s,f,c,o,l),this._bucketsTotalWeight+=p.metric.weight,this._bucketsTotalWeight>=dg.MAX_WEIGHT&&this.flush()}flush(){this._forceFlush=!0,this._flush()}close(){this._forceFlush=!0,clearInterval(this._interval),this._flush()}_flush(){if(this._forceFlush)return this._forceFlush=!1,this._bucketsTotalWeight=0,this._captureMetrics(this._buckets),void this._buckets.clear();let e=Math.floor(uo.timestampInSeconds())-dg.DEFAULT_FLUSH_INTERVAL/1e3-this._flushShift,t=new Map;for(let[n,r]of this._buckets)r.timestamp<=e&&(t.set(n,r),this._bucketsTotalWeight-=r.metric.weight);for(let[e]of t)this._buckets.delete(e);this._captureMetrics(t)}_captureMetrics(e){if(e.size>0){let t=Array.from(e).map(([,e])=>e);dR.captureAggregateMetrics(this._client,t)}}}
16,Object.defineProperty(db,"__esModule",{value:!0}),db.metricsDefault={increment:function(e,t=1,n){dm.metrics.increment(dA.MetricsAggregator,e,t,n)},distribution:function(e,t,n){dm.metrics.distribution(dA.MetricsAggregator,e,t,n)},set:function(e,t,n){dm.metrics.set(dA.MetricsAggregator,e,t,n)},gauge:function(e,t,n){dm.metrics.gauge(dA.MetricsAggregator,e,t,n)},timing:function(e,t,n="second",r){return dm.metrics.timing(dA.MetricsAggregator,e,t,n,r)},getMetricsAggregatorForClient:function(e){return dm.metrics.getMetricsAggregatorForClient(e,dA.MetricsAggregator)}};var dx={};Object.defineProperty(dx,"__esModule",{value:!0}),dx.BrowserMetricsAggregator=class{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),dg.DEFAULT_BROWSER_FLUSH_INTERVAL)}add(e,t,n,r="none",o={},i=uo.timestampInSeconds()){let a=Math.floor(i),s=dO.sanitizeMetricKey(t),u=dO.sanitizeTags(o),c=dO.sanitizeUnit(r),l=dO.getBucketKey(e,s,c,u),p=this._buckets.get(l),d=p&&e===dg.SET_METRIC_TYPE?p.metric.weight:0;p?(p.metric.add(n),p.timestamp<a&&(p.timestamp=a)):(p={metric:new dC.METRIC_MAP[e](n),timestamp:a,metricType:e,name:s,unit:c,tags:u},this._buckets.set(l,p));let f="string"==typeof n?p.metric.weight-d:n;lc.updateMetricSummaryOnActiveSpan(e,s,f,c,o,l)}flush(){if(0===this._buckets.size)return;let e=Array.from(this._buckets.values());dR.captureAggregateMetrics(this._client,e),this._buckets.clear()}close(){clearInterval(this._interval),this.flush()}};var dU={};function dk(e,t,n,r,o){let{traceId:i,spanId:a,sampled:s,dsc:u}={...lN.getIsolationScope().getPropagationContext(),...n.getPropagationContext()},c=o?lc.spanToTraceHeader(o):uo.generateSentryTraceHeader(i,a,s),l=uo.dynamicSamplingContextToSentryBaggageHeader(u||(o?lQ.getDynamicSamplingContextFromSpan(o):lQ.getDynamicSamplingContextFromClient(i,t))),p=r.headers||("undefined"!=typeof Request&&uo.isInstanceOf(e,Request)?e.headers:void 0);if(p){if("undefined"!=typeof Headers&&uo.isInstanceOf(p,Headers)){let e=new Headers(p);return e.append("sentry-trace",c),l&&e.append(uo.BAGGAGE_HEADER_NAME,l),e}if(Array.isArray(p)){let e=[...p,["sentry-trace",c]];return l&&e.push([uo.BAGGAGE_HEADER_NAME,l]),e}{let e="baggage"in p?p.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),l&&t.push(l),{...p,"sentry-trace":c,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":c,baggage:l}}Object.defineProperty(dU,"__esModule",{value:!0}),dU.addTracingHeadersToFetchRequest=dk,dU.instrumentFetchRequest=function(e,t,n,r,o="auto.http.browser"){if(!e.fetchData)return;let i=lX.hasTracingEnabled()&&t(e.fetchData.url);if(e.endTimestamp&&i){let t=e.fetchData.__span;if(!t)return;let n=r[t];return void(n&&(!function(e,t){if(t.response){lw.setHttpStatus(e,t.response.status);let n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:lw.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(n,e),delete r[t]))}let a=lN.getCurrentScope(),s=lN.getClient(),{method:u,url:c}=e.fetchData,l=function(e){try{return new URL(e).href}catch(e){return}}(c),p=l?uo.parseUrl(l).host:void 0,d=!!lc.getActiveSpan(),f=i&&d?lJ.startInactiveSpan({name:`${u} ${c}`,attributes:{url:c,type:"fetch","http.method":u,"http.url":l,"server.address":p,[lL.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:o,[lL.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"}}):new lq.SentryNonRecordingSpan;if(e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)&&s){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=dk(t,s,a,n,lX.hasTracingEnabled()&&d?f:void 0)}return f};var dB={};Object.defineProperty(dB,"__esModule",{value:!0});let dV={mechanism:{handled:!1,data:{function:"trpcMiddleware"}}};dB.trpcMiddleware=function(e={}){return function(t){let{path:n,type:r,next:o,rawInput:i}=t,a=lN.getClient(),s=a&&a.getOptions(),u={procedure_type:r};function c(e){"object"==typeof e&&null!==e&&"ok"in e&&!e.ok&&"error"in e&&pp.captureException(e.error,dV)}return(void 0!==e.attachRpcInput?e.attachRpcInput:s&&s.sendDefaultPii)&&(u.input=uo.normalize(i)),pp.setContext("trpc",u),lJ.startSpanManual({name:`trpc/${n}`,op:"rpc.server",attributes:{[lL.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[lL.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"}},e=>{let t;try{t=o()}catch(t){throw pp.captureException(t,dV),e.end(),t}return uo.isThenable(t)?t.then(t=>(c(t),e.end(),t),t=>{throw pp.captureException(t,dV),e.end(),t}):(c(t),e.end(),t)})}};var dF={};Object.defineProperty(dF,"__esModule",{value:!0}),dF.captureFeedback=function(e,t={},n=lN.getCurrentScope()){let{message:r,name:o,email:i,url:a,source:s,associatedEventId:u}=e,c={contexts:{feedback:uo.dropUndefinedKeys({contact_email:i,name:o,message:r,url:a,source:s,associated_event_id:u})},type:"feedback",level:"info"},l=n&&n.getClient()||lN.getClient();return l&&l.emit("beforeSendFeedback",c,t),n.captureEvent(c,t)};var dj={};function dG(){return{bindClient(e){lN.getCurrentScope().setClient(e)},withScope:lN.withScope,getClient:()=>
16lN.getClient(),getScope:lN.getCurrentScope,getIsolationScope:lN.getIsolationScope,captureException:(e,t)=>lN.getCurrentScope().captureException(e,t),captureMessage:(e,t,n)=>lN.getCurrentScope().captureMessage(e,t,n),captureEvent:pp.captureEvent,addBreadcrumb:pK.addBreadcrumb,setUser:pp.setUser,setTags:pp.setTags,setTag:pp.setTag,setExtra:pp.setExtra,setExtras:pp.setExtras,setContext:pp.setContext,getIntegration(e){let t=lN.getClient();return t&&t.getIntegrationByName(e.id)||null},startSession:pp.startSession,endSession:pp.endSession,captureSession(e){if(e)return pp.endSession();let t=lN.getCurrentScope(),n=lN.getClient(),r=t.getSession();n&&r&&n.captureSession(r)}}}Object.defineProperty(dj,"__esModule",{value:!0}),dj.getCurrentHub=dG,dj.getCurrentHubShim=dG,Object.defineProperty(un,"__esModule",{value:!0}),un.registerSpanErrorInstrumentation=ur.registerSpanErrorInstrumentation,un.getCapturedScopesOnSpan=lY.getCapturedScopesOnSpan,un.setCapturedScopesOnSpan=lY.setCapturedScopesOnSpan,un.addTracingExtensions=l$.addTracingExtensions,un.TRACING_DEFAULTS=lK.TRACING_DEFAULTS,un.startIdleSpan=lK.startIdleSpan,un.SentrySpan=l8.SentrySpan,un.SentryNonRecordingSpan=lq.SentryNonRecordingSpan,un.SPAN_STATUS_ERROR=lw.SPAN_STATUS_ERROR,un.SPAN_STATUS_OK=lw.SPAN_STATUS_OK,un.SPAN_STATUS_UNSET=lw.SPAN_STATUS_UNSET,un.getSpanStatusFromHttpCode=lw.getSpanStatusFromHttpCode,un.setHttpStatus=lw.setHttpStatus,un.continueTrace=lJ.continueTrace,un.startInactiveSpan=lJ.startInactiveSpan,un.startNewTrace=lJ.startNewTrace,un.startSpan=lJ.startSpan,un.startSpanManual=lJ.startSpanManual,un.suppressTracing=lJ.suppressTracing,un.withActiveSpan=lJ.withActiveSpan,un.getDynamicSamplingContextFromClient=lQ.getDynamicSamplingContextFromClient,un.getDynamicSamplingContextFromSpan=lQ.getDynamicSamplingContextFromSpan,un.spanToBaggageHeader=lQ.spanToBaggageHeader,un.setMeasurement=l9.setMeasurement,un.timedEventsToMeasurements=l9.timedEventsToMeasurements,un.sampleSpan=l5.sampleSpan,un.logSpanEnd=l4.logSpanEnd,un.logSpanStart=l4.logSpanStart,un.SEMANTIC_ATTRIBUTE_CACHE_HIT=lL.SEMANTIC_ATTRIBUTE_CACHE_HIT,un.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=lL.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,un.SEMANTIC_ATTRIBUTE_CACHE_KEY=lL.SEMANTIC_ATTRIBUTE_CACHE_KEY,un.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=lL.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,un.SEMANTIC_ATTRIBUTE_PROFILE_ID=lL.SEMANTIC_ATTRIBUTE_PROFILE_ID,un.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=lL.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,un.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=lL.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,un.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=lL.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,un.SEMANTIC_ATTRIBUTE_SENTRY_OP=lL.SEMANTIC_ATTRIBUTE_SENTRY_OP,un.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=lL.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,un.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=lL.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,un.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=lL.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,un.createEventEnvelope=l7.createEventEnvelope,un.createSessionEnvelope=l7.createSessionEnvelope,un.createSpanEnvelope=l7.createSpanEnvelope,un.addEventProcessor=pp.addEventProcessor,un.captureCheckIn=pp.captureCheckIn,un.captureEvent=pp.captureEvent,un.captureException=pp.captureException,un.captureMessage=pp.captureMessage,un.captureSession=pp.captureSession,un.close=pp.close,un.endSession=pp.endSession,un.flush=pp.flush,un.isEnabled=pp.isEnabled,un.isInitialized=pp.isInitialized,un.lastEventId=pp.lastEventId,un.setContext=pp.setContext,un.setExtra=pp.setExtra,un.setExtras=pp.setExtras,un.setTag=pp.setTag,un.setTags=pp.setTags,un.setUser=pp.setUser,un.startSession=pp.startSession,un.withMonitor=pp.withMonitor,un.getClient=lN.getClient,un.getCurrentScope=lN.getCurrentScope,un.getGlobalScope=lN.getGlobalScope,un.getIsolationScope=lN.getIsolationScope,un.withIsolationScope=lN.withIsolationScope,un.withScope=lN.withScope,un.getDefaultCurrentScope=lh.getDefaultCurrentScope,un.getDefaultIsolationScope=lh.getDefaultIsolationScope,un.setAsyncContextStrategy=ll.setAsyncContextStrategy,un.getMainCarrier=lp.getMainCarrier,un.closeSession=lE.closeSession,un.makeSession=lE.makeSession,un.updateSession=lE.updateSession,un.SessionFlusher=pb.SessionFlusher,un.Scope=l_.Scope,un.notifyEventProcessors=pf.notifyEventProcessors,un.getEnvelopeEndpointWithUrlEncodedAuth=pA.getEnvelopeEndpointWithUrlEncodedAuth,un.getReportDialogEndpoint=pA.getReportDialogEndpoint,un.BaseClient=pO.BaseClient,un.ServerRuntimeClient=pP.ServerRuntimeClient,un.initAndBind=pk.initAndBind,un.setCurrentClient=pk.setCurrentClient,un.createTransport=pV.createTransport,un.makeOfflineTransport=pj.makeOfflineTransport,un.makeMultiplexedTransport=pG.makeMultiplexedTransport,un.addIntegration=pN.addIntegration,un.defineIntegration=pN.defineIntegration,un.getIntegrationsToSetup=pN.getIntegrationsToSetup,un.applyScopeDataToEvent=ph.applyScopeDataToEvent,un.mergeScopeData=ph.mergeScopeData,un.prepareEvent=pd.prepareEvent,un.createCheckInEnvelope=pD.createCheckInEnvelope,un.hasTracingEnabled=lX.hasTracingEnabled,un.isSentryRequestUrl=pY.isSe
16ntryRequestUrl,un.handleCallbackErrors=lZ.handleCallbackErrors,un.parameterize=pW.parameterize,un.addChildSpanToSpan=lc.addChildSpanToSpan,un.getActiveSpan=lc.getActiveSpan,un.getRootSpan=lc.getRootSpan,un.getSpanDescendants=lc.getSpanDescendants,un.getStatusMessage=lc.getStatusMessage,un.spanIsSampled=lc.spanIsSampled,un.spanToJSON=lc.spanToJSON,un.spanToTraceContext=lc.spanToTraceContext,un.spanToTraceHeader=lc.spanToTraceHeader,un.parseSampleRate=l6.parseSampleRate,un.applySdkMetadata=p$.applySdkMetadata,un.DEFAULT_ENVIRONMENT=l0.DEFAULT_ENVIRONMENT,un.addBreadcrumb=pK.addBreadcrumb,un.functionToStringIntegration=pX.functionToStringIntegration,un.inboundFiltersIntegration=pJ.inboundFiltersIntegration,un.linkedErrorsIntegration=p0.linkedErrorsIntegration,un.moduleMetadataIntegration=p1.moduleMetadataIntegration,un.requestDataIntegration=p6.requestDataIntegration,un.captureConsoleIntegration=p7.captureConsoleIntegration,un.debugIntegration=p9.debugIntegration,un.dedupeIntegration=de.dedupeIntegration,un.extraErrorDataIntegration=du.extraErrorDataIntegration,un.rewriteFramesIntegration=dc.rewriteFramesIntegration,un.sessionTimingIntegration=dd.sessionTimingIntegration,un.zodErrorsIntegration=df.zodErrorsIntegration,un.metrics=dm.metrics,un.metricsDefault=db.metricsDefault,un.BrowserMetricsAggregator=dx.BrowserMetricsAggregator,un.getMetricSummaryJsonForSpan=lC.getMetricSummaryJsonForSpan,un.addTracingHeadersToFetchRequest=dU.addTracingHeadersToFetchRequest,un.instrumentFetchRequest=dU.instrumentFetchRequest,un.trpcMiddleware=dB.trpcMiddleware,un.captureFeedback=dF.captureFeedback,un.getCurrentHub=dj.getCurrentHub,un.getCurrentHubShim=dj.getCurrentHubShim,un.SDK_VERSION=uo.SDK_VERSION;var dH="@hyperdx/instrumentation-exception",dY="0.1.0",dz={};function dW(e,t){let n=dK(e,t),r={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function d$(e,t){return{exception:{values:[dW(e,t)]}}}function dK(e,t){let n=t.stacktrace||t.stack||"",r=t&&dX.test(t.message)?1:0,o="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(n,r,o)}catch(e){}return[]}Object.defineProperty(dz,"__esModule",{value:!0}),dz.eventFromUnknownInput=dz.eventFromMessage=dz.eventFromException=dz.exceptionFromError=void 0,dz.exceptionFromError=dW;let dX=/Minified React error #\d+;/i;function dq(e,t,n,r,o){let i;if((0,uo.isErrorEvent)(t)&&t.error)return d$(e,t.error);if((0,uo.isDOMError)(t)||(0,uo.isDOMException)(t)){if("stack"in t)i=d$(e,t);else{let o=t.name||((0,uo.isDOMError)(t)?"DOMError":"DOMException"),a=t.message?`${o}: ${t.message}`:o;i=dJ(e,a,n,r),(0,uo.addExceptionTypeValue)(i,a)}return"code"in t&&(i.tags={...i.tags,"DOMException.code":`${t.code}`}),i}return(0,uo.isError)(t)?d$(e,t):((0,uo.isPlainObject)(t)||(0,uo.isEvent)(t)?i=function(e,t,n,r){let o=(0,un.getClient)(),i=o&&o.getOptions().normalizeDepth,a=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),s={__serialized__:(0,uo.normalizeToSize)(t,i)};if(a)return{exception:{values:[dW(e,a)]},extra:s};let u={exception:{values:[{type:(0,uo.isEvent)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,uo.extractExceptionKeysForMessage)(e),r=t?"promise rejection":"exception";return(0,uo.isErrorEvent)(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:(0,uo.isEvent)(e)?`Event \`${function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:s};if(n){let t=dK(e,n);t.length&&(u.exception.values[0].stacktrace={frames:t})}return u}(e,t,n,o):(i=dJ(e,t,n,r),(0,uo.addExceptionTypeValue)(i,`${t}`,void 0)),(0,uo.addExceptionMechanism)(i,{synthetic:!0}),i)}function dJ(e,t,n,r){let o={};if(r&&n){let r=dK(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}
16if((0,uo.isParameterizedString)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}dz.eventFromException=function(e,t,n,r){let o=dq(e,t,n&&n.syntheticException||void 0,r);return(0,uo.addExceptionMechanism)(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),(0,uo.resolvedSyncPromise)(o)},dz.eventFromMessage=function(e,t,n="info",r,o){let i=dJ(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),(0,uo.resolvedSyncPromise)(i)},dz.eventFromUnknownInput=dq;var dZ={},dQ={};Object.defineProperty(dQ,"__esModule",{value:!0}),dQ.wrap=dQ.ignoreNextOnError=dQ.shouldIgnoreOnError=dQ.WINDOW=void 0,dQ.WINDOW=uo.GLOBAL_OBJ;let d0=0;function d1(){d0++,setTimeout(()=>{d0--})}dQ.shouldIgnoreOnError=function(){return d0>0},dQ.ignoreNextOnError=d1,dQ.wrap=function e(t,n={},r){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e)return e;if((0,uo.getOriginalFunction)(t))return t}catch(e){return t}let o=function(){let o=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);let i=o.map(t=>e(t,n));return t.apply(this,i)}catch(e){throw d1(),(0,un.withScope)(t=>{t.addEventProcessor(e=>(n.mechanism&&((0,uo.addExceptionTypeValue)(e,void 0,void 0),(0,uo.addExceptionMechanism)(e,n.mechanism)),e.extra={...e.extra,arguments:o},e)),(0,un.captureException)(e)}),e}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}catch(e){}(0,uo.markFunctionWrapped)(o,t),(0,uo.addNonEnumerableProperty)(t,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:()=>t.name})}catch(e){}return o},Object.defineProperty(dZ,"__esModule",{value:!0}),dZ.browserApiErrorsIntegration=void 0;let d2=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];function d3(e){return function(...t){let n=t[0];return t[0]=(0,dQ.wrap)(n,{mechanism:{data:{function:(0,uo.getFunctionName)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function d4(e){return function(t){return e.apply(this,[(0,dQ.wrap)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,uo.getFunctionName)(e)},handled:!1,type:"instrument"}})])}}function d5(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,uo.fill)(n,e,function(t){let n={mechanism:{data:{function:e,handler:(0,uo.getFunctionName)(t)},handled:!1,type:"instrument"}},r=(0,uo.getOriginalFunction)(t);return r&&(n.mechanism.data.handler=(0,uo.getFunctionName)(r)),(0,dQ.wrap)(t,n)})}),e.apply(this,t)}}function d6(e){let t=dQ.WINDOW,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,uo.fill)(n,"addEventListener",function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=(0,dQ.wrap)(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,uo.getFunctionName)(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,(0,dQ.wrap)(r,{mechanism:{data:{function:"addEventListener",handler:(0,uo.getFunctionName)(r),target:e},handled:!1,type:"instrument"}}),o])}}),(0,uo.fill)(n,"removeEventListener",function(e){return function(t,n,r){try{let o=n&&n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(e){}return e.call(this,t,n,r)}}))}dZ.browserApiErrorsIntegration=(0,un.defineIntegration)((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,uo.fill)(dQ.WINDOW,"setTimeout",d3),t.setInterval&&(0,uo.fill)(dQ.WINDOW,"setInterval",d3),t.requestAnimationFrame&&(0,uo.fill)(dQ.WINDOW,"requestAnimationFrame",d4),t.XMLHttpRequest&&"XMLHttpRequest"in dQ.WINDOW&&(0,uo.fill)(XMLHttpRequest.prototype,"send",d5);let e=t.eventTarget;e&&(Array.isArray(e)?e:d2).forEach(d6)}}});var d8={};
16Object.defineProperty(d8,"__esModule",{value:!0}),d8.applySourceContextToFrame=d8.contextLinesIntegration=void 0;let d7=uo.GLOBAL_OBJ;function d9(e,t,n,r){return e.filename===n&&e.lineno&&t.length&&(0,uo.addContextToFrame)(t,e,r),e}d8.contextLinesIntegration=(0,un.defineIntegration)((e={})=>{let t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>(function(e,t){let n=d7.document,r=d7.location&&(0,uo.stripUrlQueryAndFragment)(d7.location.href);if(!n||!r)return e;let o=e.exception&&e.exception.values;if(!o||!o.length)return e;let i=n.documentElement.innerHTML;if(!i)return e;let a=["<!DOCTYPE html>","<html>",...i.split("\n"),"</html>"];return o.forEach(e=>{let n=e.stacktrace;n&&n.frames&&(n.frames=n.frames.map(e=>d9(e,a,r,t)))}),e})(e,t)}}),d8.applySourceContextToFrame=d9;var fe={};Object.defineProperty(fe,"__esModule",{value:!0}),fe.httpContextIntegration=void 0,fe.httpContextIntegration=(0,un.defineIntegration)(()=>({name:"HttpContext",preprocessEvent(e){if(!dQ.WINDOW.navigator&&!dQ.WINDOW.location&&!dQ.WINDOW.document)return;let t=e.request&&e.request.url||dQ.WINDOW.location&&dQ.WINDOW.location.href,{referrer:n}=dQ.WINDOW.document||{},{userAgent:r}=dQ.WINDOW.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}}));var ft={};Object.defineProperty(ft,"__esModule",{value:!0}),ft.hyperdxIntegration=ft._hyperdxIntegration=void 0,ft._hyperdxIntegration=(e={})=>({name:"HyperDX",processEvent(e){var t,n,r,o,i,a,s,u;let c=function(e){let t,n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),n}(e);c.length>0&&(e.message=c[c.length-1]);let l=null==(t=e.exception)?void 0:t.values;if(l&&l.length>0){for(let e of l)if(null==(n=e.stacktrace)?void 0:n.frames){let t=[],n=null;for(let c=e.stacktrace.frames.length-1;c>=0;c--){let l=e.stacktrace.frames[c];(null==(r=l.filename)?void 0:r.includes("framework-"))||(null==(o=l.function)?void 0:o.endsWith("hdxReportString"))||(null==(i=l.function)?void 0:i.endsWith("hdxReportError"))||(null==(a=l.function)?void 0:a.endsWith("hdxReportErrorEvent"))||(null==(s=l.function)?void 0:s.endsWith("hdxReportEvent"))||((null==(u=l.function)?void 0:u.endsWith("hdxReport"))?n=l.filename:n&&l.filename===n?n=null:t.unshift(l))}e.stacktrace.frames=t}}return e}}),ft.hyperdxIntegration=(0,un.defineIntegration)(ft._hyperdxIntegration);var fn={};Object.defineProperty(fn,"__esModule",{value:!0}),fn.linkedErrorsIntegration=void 0,fn.linkedErrorsIntegration=(0,un.defineIntegration)((e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){let i=o.getOptions();(0,uo.applyAggregateErrorsToEvent)(dz.exceptionFromError,i.stackParser,i.maxValueLength,n,t,e,r)}}});var fr={};!function(e){function t(e,t,n,r){let o={filename:e,function:"<anonymous>"===t?uo.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}Object.defineProperty(e,"__esModule",{value:!0}),e.defaultStackParser=e.defaultStackLineParsers=e.opera11StackLineParser=e.opera10StackLineParser=e.winjsStackLineParser=e.geckoStackLineParser=e.chromeStackLineParser=void 0;let n=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,r=/\((\S*)(?::(\d+))(?::(\d+))\)/;e.chromeStackLineParser=[30,e=>{let o=n.exec(e);if(o){if(o[2]&&0===o[2].indexOf("eval")){let e=r.exec(o[2]);e&&(o[2]=e[1],o[3]=e[2],o[4]=e[3])}let[e,n]=c(o[1]||uo.UNKNOWN_FUNCTION,o[2]);return t(n,e,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}}];let o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,i=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;e.geckoStackLineParser=[50,e=>{let n=o.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){let e=i.exec(n[3]);e&&(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]="")}let e=n[3],r=n[1]||uo.UNKNOWN_FUNCTION;return[r,e]=c(r,e),t(e,r,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}];let a=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;e.winjsStackLineParser=[40,e=>{let n=a.exec(e);return n?t(n[2],n[1]||uo.UNKNOWN_FUNCTION,+n[3],n[4]?+n[4]:void 0):void 0}];let s=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;e.opera10StackLineParser=[10,e=>{let n=s.exec(e);return n?t(n[2],n[3]||uo.UNKNOWN_FUNCTION,+n[1]):void 0}];let u=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i;e.opera11StackLineParser=[20,e=>{let n=u.exec(e);return n?t(n[5],n[3]||n[4]||uo.UNKNOWN_FUNCTION,+n[1],+n[2]):void 0}],e.defaultStackLineParsers=[e.chromeStackLineParser,e.geckoStackLineParser],e.defaultStackParser=(0,uo.createStackParser)(...e.defaultStackLineParsers);let c=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:uo.UNKNOWN_FUNCTION,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}}
16(fr),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.recordException=e.buildEventFromException=e.applyIntegrations=e.setupIntegrations=void 0;let t=tB.trace.getTracer(dH,dY),n=[(0,un.inboundFiltersIntegration)(),(0,d8.contextLinesIntegration)(),(0,dZ.browserApiErrorsIntegration)(),(0,fn.linkedErrorsIntegration)(),(0,fe.httpContextIntegration)(),(0,ft.hyperdxIntegration)()],r={integrations:n,stackParser:fr.defaultStackParser,maxValueLength:250,transport:{}},o={getOptions:()=>r};e.setupIntegrations=()=>{var e,t;for(let r of n)null==(e=r.setupOnce)||e.call(r),null==(t=r.setup)||t.call(r,o)},e.applyIntegrations=async(e,t)=>{var r;for(let i of n)await (null==(r=i.preprocessEvent)?void 0:r.call(i,e,t,o));for(let r of n)"function"==typeof r.processEvent&&(e=await r.processEvent(e,t,o));return e},e.buildEventFromException=async(t,n)=>{let o=(0,dz.eventFromUnknownInput)(fr.defaultStackParser,t);try{o=await (0,un.prepareEvent)(r,o,n)}catch(e){tB.diag.error("Failed to prepare event",e)}return(0,e.applyIntegrations)(o,n)},e.recordException=async(n,r)=>{try{let{tracer:o,span:i,attributes:a,...s}=null!=r?r:{},u=Object.keys(s).length>0?s:{mechanism:{type:"generic",handled:!0}};(0,p.getEventProcessor)(null!=o?o:t)(await (0,e.buildEventFromException)(n,{data:u}),u,i,a)}catch(e){tB.diag.error("Failed to capture exception",e)}}}(l);var fo,fi,fa,fs={},fu={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HyperDXErrorInstrumentation=e.ERROR_INSTRUMENTATION_VERSION=e.ERROR_INSTRUMENTATION_NAME=void 0;let t=s9,n=H.__importStar(sX),r=(fa||(fa=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.getElementXPath=fu.limitLen=void 0,fu.limitLen=function(e,t){return e.length>t?e.substring(0,t):e},fu.getElementXPath=function e(t,n){if(t.nodeType===Node.DOCUMENT_NODE)return"/";let r=function(e,t){let n=e.nodeType,r=function(e){if(!e.parentNode)return 0;let t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let n=Array.from(e.parentNode.childNodes);return(n=n.filter(n=>{let r=n.localName;return t.indexOf(n.nodeType)>=0&&r===e.localName})).length>=1?n.indexOf(e)+1:0}(e),o="";if(n===Node.ELEMENT_NODE){let n=e.getAttribute("id");if(t&&n)return`//*[@id="${n}"]`;o=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)o="text()";else{if(n!==Node.COMMENT_NODE)return"";o="comment()"}return o&&r>1?`/${o}[${r}]`:`/${o}`}(t,n);if(n&&r.indexOf("@id")>0)return r;let o="";return t.parentNode&&(o+=e(t.parentNode,!1)),o+=r}),fu);function o(e){return e&&""!==e.trim()&&!e.startsWith("[object")&&"error"!==e}function i(e){return void 0===e?"(undefined)":e.toString()}function a(e,t){t&&t.stack&&o(t.stack)&&e.setAttribute("error.stack",(0,r.limitLen)(t.stack.toString(),4096))}e.ERROR_INSTRUMENTATION_NAME="errors",e.ERROR_INSTRUMENTATION_VERSION="1";class s extends t.InstrumentationBase{constructor(t){super(e.ERROR_INSTRUMENTATION_NAME,e.ERROR_INSTRUMENTATION_VERSION,t),this._consoleErrorHandler=e=>(...t)=>(this.hdxReport("console.error",t),e.apply(this,t)),this._unhandledRejectionListener=e=>{this.hdxReport("unhandledrejection",e.reason)},this._errorListener=e=>{this.hdxReport("onerror",e)},this._documentErrorListener=e=>{this.hdxReport("eventListener.error",e)}}init(){}enable(){n.wrap(console,"error",this._consoleErrorHandler),window.addEventListener("unhandledrejection",this._unhandledRejectionListener),window.addEventListener("error",this._errorListener),document.documentElement.addEventListener("error",this._documentErrorListener,{capture:!0})}disable(){n.unwrap(console,"error"),window.removeEventListener("unhandledrejection",this._unhandledRejectionListener),window.removeEventListener("error",this._errorListener),document.documentElement.removeEventListener("error",this._documentErrorListener,{capture:!0})}hdxReportError(e,t){let n=t.message||t.toString();if(!o(n)&&!t.stack)return;let i=Date.now(),s=this.tracer.startSpan(e,{startTime:i});s.setAttribute("component","error"),s.setAttribute("error",!0),s.setAttribute("error.object",o(t.name)?t.name:t.constructor&&t.constructor.name?t.constructor.name:"Error"),s.setAttribute("error.message",(0,r.limitLen)(n,1024)),a(s,t),(0,l.recordException)(t,{tracer:this.tracer,span:s}).finally(()=>{s.end(i)})}hdxReportString(e,t,n){if(!o(t))return;let i=Date.now(),s=this.tracer.startSpan(e,{startTime:i});s.setAttribute("component","error"),s.setAttribute("error",!0),s.setAttribute("error.object","String"),s.setAttribute("error.message",(0,r.limitLen)(t,1024)),n?(a(s,n),(0,l.recordException)(n,{tracer:this.tracer,span:s}).finally(()=>{s.end(i)})):s.end(i)}hdxReportErrorEvent(e,t){t.error?this.hdxReport(e,t.error):t.message&&this.hdxReport(e,t.message)}
16hdxReportEvent(e,t){if(!t.target&&!o(t.type))return;let n=Date.now(),i=this.tracer.startSpan(e,{startTime:n});i.setAttribute("component","error"),i.setAttribute("error.type",t.type),t.target&&(i.setAttribute("target_element",t.target.tagName),i.setAttribute("target_xpath",(0,r.getElementXPath)(t.target,!0)),i.setAttribute("target_src",t.target.src)),(0,l.recordException)(t,{tracer:this.tracer,span:i}).finally(()=>{i.end(n)})}hdxReport(e,t){if(!Array.isArray(t)||0!==t.length)if(t instanceof Array&&1===t.length&&(t=t[0]),t instanceof Error)this.hdxReportError(e,t);else if(t instanceof ErrorEvent)this.hdxReportErrorEvent(e,t);else if(t instanceof Event)this.hdxReportEvent(e,t);else if("string"==typeof t)this.hdxReportString(e,t);else if(t instanceof Array){let n=t.find(e=>e instanceof Error);this.hdxReportString(e,t.map(e=>i(e)).join(" "),n)}else this.hdxReportString(e,i(t))}}e.HyperDXErrorInstrumentation=s}(fs);var fc=eh("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function fl(e){return e.setValue(fc,!0)}function fp(e){return!0===e.getValue(fc)}var fd="baggage",ff=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function fh(e){var t=e.split(";");if(!(t.length<=0)){var n=t.shift();if(n){var r=n.indexOf("=");if(!(r<=0)){var o,i=decodeURIComponent(n.substring(0,r).trim()),a=decodeURIComponent(n.substring(r+1).trim());return t.length>0&&(o=ef(t.join(";"))),{key:i,value:a,metadata:o}}}}}function f_(e){return"string"!=typeof e||0===e.length?{}:e.split(",").map(function(e){return fh(e)}).filter(function(e){return void 0!==e&&e.value.length>0}).reduce(function(e,t){return e[t.key]=t.value,e},{})}var fE=function(){function e(){}return e.prototype.inject=function(e,t,n){var r=tD.getBaggage(e);if(r&&!fp(e)){var o=r.getAllEntries().map(function(e){var t=ff(e,2),n=t[0],r=t[1],o=encodeURIComponent(n)+"="+encodeURIComponent(r.value);return void 0!==r.metadata&&(o+=";"+r.metadata.toString()),o}).filter(function(e){return e.length<=4096}).slice(0,180).reduce(function(e,t){var n=""+e+(""!==e?",":"")+t;return n.length>8192?e:n},"");o.length>0&&n.set(t,fd,o)}},e.prototype.extract=function(e,t,n){var r=n.get(t,fd),o=Array.isArray(r)?r.join(","):r;if(!o)return e;var i={};return 0===o.length?e:(o.split(",").forEach(function(e){var t=fh(e);if(t){var n={value:t.value};t.metadata&&(n.metadata=t.metadata),i[t.key]=n}}),0===Object.entries(i).length?e:tD.setBaggage(e,tD.createBaggage(i)))},e.prototype.fields=function(){return[fd]},e}(),fm=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},fg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function fS(e){var t,n,r={};if("object"!=typeof e||null==e)return r;try{for(var o=fm(Object.entries(e)),i=o.next();!i.done;i=o.next()){var a,s=fg(i.value,2),u=s[0],c=s[1];(a=u,"string"==typeof a&&a.length>0)?fv(c)?Array.isArray(c)?r[u]=c.slice():r[u]=c:tg.warn("Invalid attribute value set for key: "+u):tg.warn("Invalid attribute key: "+u)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function fv(e){return null==e||(Array.isArray(e)?function(e){var t,n,r;try{for(var o=fm(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!r){if(fT(a)){r=typeof a;continue}return!1}if(typeof a!==r)return!1}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0}(e):fT(e))}function fT(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var fy,fb=function(e){tg.error("string"==typeof e?e:JSON.stringify(function(e){for(var t={},n=e;null!==n;
16)Object.getOwnPropertyNames(n).forEach(function(e){if(!t[e]){var r=n[e];r&&(t[e]=String(r))}}),n=Object.getPrototypeOf(n);return t}(e)))};function fA(e){try{fb(e)}catch(e){}}(fU=fy||(fy={})).AlwaysOff="always_off",fU.AlwaysOn="always_on",fU.ParentBasedAlwaysOff="parentbased_always_off",fU.ParentBasedAlwaysOn="parentbased_always_on",fU.ParentBasedTraceIdRatio="parentbased_traceidratio",fU.TraceIdRatio="traceidratio";var fR=["OTEL_SDK_DISABLED"],fO=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"],fN=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"],fI=1/0,fC={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:Q.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:fI,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:fI,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:fI,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:fy.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"},fM={ALL:Q.ALL,VERBOSE:Q.VERBOSE,DEBUG:Q.DEBUG,INFO:Q.INFO,WARN:Q.WARN,ERROR:Q.ERROR,NONE:Q.NONE};function fL(e){var t={};for(var n in fC)if("OTEL_LOG_LEVEL"===n)!function(e,t,n){var r=n[e];if("string"==typeof r){var o=fM[r.toUpperCase()];null!=o&&(t[e]=o)}}(n,t,e);else if(fR.indexOf(n)>-1)!function(e,t,n){if(void 0!==n[e]){var r=String(n[e]);t[e]="true"===r.toLowerCase()}}(n,t,e);else if(fO.indexOf(n)>-1)!function(e,t,n,r,o){if(void 0===r&&(r=-1/0),void 0===o&&(o=1/0),void 0!==n[e]){var i=Number(n[e]);isNaN(i)||(t[e]=i<r?r:i>o?o:i)}}(n,t,e);else if(fN.indexOf(n)>-1)!function(e,t,n,r){void 0===r&&(r=",");var o=n[e];
16"string"==typeof o&&(t[e]=o.split(r).map(function(e){return e.trim()}))}(n,t,e);else{var r=e[n];null!=r&&(t[n]=String(r))}return t}var fw="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{};function fP(){return Object.assign({},fC,fL(fw))}function fD(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function fx(e){for(var t=new Uint8Array(e.length/2),n=0,r=0;r<e.length;r+=2){var o=fD(e.charCodeAt(r)),i=fD(e.charCodeAt(r+1));t[n++]=o<<4|i}return t}var fU,fk,fB=performance,fV=((fk={})[aG.TELEMETRY_SDK_NAME]="opentelemetry",fk[aG.PROCESS_RUNTIME_NAME]="browser",fk[aG.TELEMETRY_SDK_LANGUAGE]=sN.WEBJS,fk[aG.TELEMETRY_SDK_VERSION]="1.24.1",fk);function fF(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}function fj(){var e=fB.timeOrigin;return"number"!=typeof e&&(e=fB.timing&&fB.timing.fetchStart),e}function fG(e){return fK(fF(fj()),fF("number"==typeof e?e:fB.now()))}function fH(e){if(fW(e))return e;if("number"==typeof e)return e<fj()?fG(e):fF(e);if(e instanceof Date)return fF(e.getTime());throw TypeError("Invalid input type")}function fY(e){return 1e9*e[0]+e[1]}function fz(e){return 1e6*e[0]+e[1]/1e3}function fW(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function f$(e){return fW(e)||"number"==typeof e||e instanceof Date}function fK(e,t){var n=[e[0]+t[0],e[1]+t[1]];return n[1]>=1e9&&(n[1]-=1e9,n[0]+=1),n}(fq=fX||(fX={}))[fq.SUCCESS=0]="SUCCESS",fq[fq.FAILED=1]="FAILED";var fX,fq,fJ,fZ,fQ=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},f0=function(){function e(e){var t;void 0===e&&(e={}),this._propagators=null!=(t=e.propagators)?t:[],this._fields=Array.from(new Set(this._propagators.map(function(e){return"function"==typeof e.fields?e.fields():[]}).reduce(function(e,t){return e.concat(t)},[])))}return e.prototype.inject=function(e,t,n){var r,o;try{for(var i=fQ(this._propagators),a=i.next();!a.done;a=i.next()){var s=a.value;try{s.inject(e,t,n)}catch(e){tg.warn("Failed to inject with "+s.constructor.name+". Err: "+e.message)}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},e.prototype.extract=function(e,t,n){return this._propagators.reduce(function(e,r){try{return r.extract(e,t,n)}catch(e){tg.warn("Failed to inject with "+r.constructor.name+". Err: "+e.message)}return e},e)},e.prototype.fields=function(){return this._fields.slice()},e}(),f1="[_0-9a-z-*/]",f2=RegExp("^(?:[a-z]"+f1+"{0,255}|"+("[a-z0-9]"+f1+"{0,240}@[a-z]")+f1+"{0,13})$"),f3=/^[ -~]{0,255}[!-~]$/,f4=/,|=/,f5=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+"="+e.get(n)),t},[]).join(",")},e.prototype._parse=function(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(function(e,t){var n=t.trim(),r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r),i=n.slice(r+1,t.length);f2.test(o)&&f3.test(i)&&!f4.test(i)&&e.set(o,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),f6="traceparent",f8="tracestate",f7=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$"),f9=function(){function e(){}return e.prototype.inject=function(e,t,n){var r=tU.getSpanContext(e);if(r&&!fp(e)&&te(r)){var o="00-"+r.traceId+"-"+r.spanId+"-0"+Number(r.traceFlags||eB.NONE).toString(16);n.set(t,f6,o),r.traceState&&n.set(t,f8,r.traceState.serialize())}},e.prototype.extract=function(e,t,n){var r,o=n.get(t,f6);if(!o)return e;var i=Array.isArray(o)?o[0]:o;if("string"!=typeof i)return e;var a=(r=f7.exec(i))?"00"===r[1]&&r[5]?null:{traceId:r[2],spanId:r[3],traceFlags:parseInt(r[4],16)}:null;if(!a)return e;a.isRemote=!0;var s=n.get(t,f8);if(s){var u=Array.isArray(s)?s.join(","):s;a.traceState=new f5("string"==typeof u?u:void 0)}return tU.setSpanContext(e,a)},e.prototype.fields=function(){return[f6,f8]},e}(),he=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:tr.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),ht=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:tr.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}(),hn=Function.prototype.toString,hr=hn.call(Object),ho=(fJ=Object.getPrototypeOf,fZ=Object,function(e){return fJ(fZ(e))}),hi=Object.prototype,ha=hi.hasOwnProperty,hs=Symbol?Symbol.toStringTag:void 0,hu=hi.toString;function hc(e){if(null==e||"object"!=typeof e||"[object Object]"!==function(e){return null==e?void 0===e?"[object Undef
16ined]":"[object Null]":hs&&hs in Object(e)?function(e){var t=ha.call(e,hs),n=e[hs],r=!1;try{e[hs]=void 0,r=!0}catch(e){}var o=hu.call(e);return r&&(t?e[hs]=n:delete e[hs]),o}(e):hu.call(e)}(e))return!1;var t=ho(e);if(null===t)return!0;var n=ha.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&hn.call(n)===hr}function hl(e){return hd(e)?e.slice():e}function hp(e,t,n){for(var r=n.get(e[t])||[],o=0,i=r.length;o<i;o++){var a=r[o];if(a.key===t&&a.obj===e)return!0}return!1}function hd(e){return Array.isArray(e)}function hf(e){return"function"==typeof e}function hh(e){return!h_(e)&&!hd(e)&&!hf(e)&&"object"==typeof e}function h_(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||void 0===e||e instanceof Date||e instanceof RegExp||null===e}var hE=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function hm(e,t){return"string"==typeof t?e===t:!!e.match(t)}function hg(e,t){var n,r;if(!t)return!1;try{for(var o=hE(t),i=o.next();!i.done;i=o.next())if(hm(e,i.value))return!0}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}var hS,hv=function(){function e(){var e=this;this._promise=new Promise(function(t,n){e._resolve=t,e._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(e){this._resolve(e)},e.prototype.reject=function(e){this._reject(e)},e}(),hT=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},hy=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},hb=function(){function e(e,t){this._callback=e,this._that=t,this._isCalled=!1,this._deferred=new hv}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var e,t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,hy([this._that],hT(n),!1))).then(function(e){return t._deferred.resolve(e)},function(e){return t._deferred.reject(e)})}catch(e){this._deferred.reject(e)}}return this._deferred.promise},e}(),hA=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},hR=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},hO=function(){function e(e,t,n,r,o,i,a,s,u,c){void 0===a&&(a=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:ti.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=r,this.parentSpanId=i,this.kind=o,this.links=a;var l=Date.now();this._performanceStartTime=fB.now(),this._performanceOffset=l-(this._performanceStartTime+fj()),this._startTimeProvided=null!=s,this.startTime=this._getTime(null!=s?s:l),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,null!=c&&this.setAttributes(c),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,t)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return null==t||this._isSpanEnded()||(0===e.length?tg.warn("Invalid attribute key: "+e):fv(t)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?this._droppedAttributesCount++:this.attributes[e]=this._truncateToSize(t):tg.warn("Invalid attribute value set for key: "+e)),this},e.prototype.setAttributes=function(e){var t,n;try{for(var r=hA(Object.entries(e)),o=r.next();!o.done;o=r.next()){var i=hR(o.value,2),a=i[0],s=i[1];this.setAttribute(a,s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.addEvent=function(e,t,n){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return tg.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(0===this._droppedEventsCount&&tg.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),f$(t)&&(f$(n)||(n=t),t=void 0);var r=fS(t);return this.events.push({name:e,attributes:r,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.setStatus=function(e){return this._isSpanEnded()||(this.status=e),this},e.prototype.updateName=function(e){return this._isSpanEnded()||(this.name=e),this},e.prototype.end=function(e){var t,n,r,o;this._isSpanEnded()?tg.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once."):(this._ended=!0,this.endTime=this._getTime(e),this._duration=(t=this.startTime,r=(n=this.endTime)[0]-t[0],(o=n[1]-t[1])<0&&(r-=1,o+=1e9),[r,o]),this._duration[0]<0&&(tg.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&tg.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this))},e.prototype._getTime=function(e){if("number"==typeof e&&e<fB.now())return fG(e+this._performanceOffset);if("number"==typeof e)return fF(e);if(e instanceof Date)return fF(e.getTime());if(fW(e))return e;if(this._startTimeProvided)return fF(Date.now());var t=fB.now()-this._performanceStartTime;return fK(this.startTime,fF(t))},e.prototype.isRecording=function(){return!1===this._ended},e.prototype.recordException=function(e,t){var n={};"string"==typeof e?n[rj.EXCEPTION_MESSAGE]=e:e&&(e.code?n[rj.EXCEPTION_TYPE]=e.code.toString():e.name&&(n[rj.EXCEPTION_TYPE]=e.name),e.message&&(n[rj.EXCEPTION_MESSAGE]=e.message),e.stack&&(n[rj.EXCEPTION_STACKTRACE]=e.stack)),n[rj.EXCEPTION_TYPE]||n[rj.EXCEPTION_MESSAGE]?this.addEvent("exception",n,t):tg.warn("Failed to record an exception "+e)},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration}
16,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&tg.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(e,t){return e.length<=t?e:e.substr(0,t)},e.prototype._truncateToSize=function(e){var t=this,n=this._attributeValueLengthLimit;return n<=0?(tg.warn("Attribute value limit must be positive, got "+n),e):"string"==typeof e?this._truncateToLimitUtil(e,n):Array.isArray(e)?e.map(function(e){return"string"==typeof e?t._truncateToLimitUtil(e,n):e}):e},e}();(hG=hS||(hS={}))[hG.NOT_RECORD=0]="NOT_RECORD",hG[hG.RECORD=1]="RECORD",hG[hG.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED";var hN=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:hS.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),hI=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:hS.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}(),hC=function(){function e(e){var t,n,r,o;this._root=e.root,this._root||(fA(Error("ParentBasedSampler must have a root sampler configured")),this._root=new hI),this._remoteParentSampled=null!=(t=e.remoteParentSampled)?t:new hI,this._remoteParentNotSampled=null!=(n=e.remoteParentNotSampled)?n:new hN,this._localParentSampled=null!=(r=e.localParentSampled)?r:new hI,this._localParentNotSampled=null!=(o=e.localParentNotSampled)?o:new hN}return e.prototype.shouldSample=function(e,t,n,r,o,i){var a=tU.getSpanContext(e);return a&&te(a)?a.isRemote?a.traceFlags&eB.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,r,o,i):this._remoteParentNotSampled.shouldSample(e,t,n,r,o,i):a.traceFlags&eB.SAMPLED?this._localParentSampled.shouldSample(e,t,n,r,o,i):this._localParentNotSampled.shouldSample(e,t,n,r,o,i):this._root.shouldSample(e,t,n,r,o,i)},e.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}(),hM=function(){function e(e){void 0===e&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(0xffffffff*this._ratio)}return e.prototype.shouldSample=function(e,t){return{decision:e7(t)&&this._accumulate(t)<this._upperBound?hS.RECORD_AND_SAMPLED:hS.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e},e.prototype._accumulate=function(e){for(var t=0,n=0;n<e.length/8;n++){var r=8*n;t=(t^parseInt(e.slice(r,r+8),16))>>>0}return t},e}(),hL=fP(),hw=fy.AlwaysOn;function hP(){return{sampler:hD(hL),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:fP().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:fP().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:fP().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:fP().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:fP().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:fP().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:fP().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:fP().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function hD(e){switch(void 0===e&&(e=fP()),e.OTEL_TRACES_SAMPLER){case fy.AlwaysOn:return new hI;case fy.AlwaysOff:return new hN;case fy.ParentBasedAlwaysOn:return new hC({root:new hI});case fy.ParentBasedAlwaysOff:return new hC({root:new hN});case fy.TraceIdRatio:return new hM(hx(e));case fy.ParentBasedTraceIdRatio:return new hC({root:new hM(hx(e))});default:return tg.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+hw+'".'),new hI}}function hx(e){if(void 0===e.OTEL_TRACES_SAMPLER_ARG||""===e.OTEL_TRACES_SAMPLER_ARG)return tg.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(tg.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invali
16d, defaulting to 1."),1):t<0||t>1?(tg.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to 1."),1):t}var hU=function(){function e(e,t){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=fP();this._maxExportBatchSize="number"==typeof(null==t?void 0:t.maxExportBatchSize)?t.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==t?void 0:t.maxQueueSize)?t.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==t?void 0:t.scheduledDelayMillis)?t.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==t?void 0:t.exportTimeoutMillis)?t.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new hb(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(tg.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&eB.SAMPLED&&this._addToBuffer(e)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var e=this;return Promise.resolve().then(function(){return e.onShutdown()}).then(function(){return e._flushAll()}).then(function(){return e._exporter.shutdown()})},e.prototype._addToBuffer=function(e){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&tg.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(tg.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()},e.prototype._flushAll=function(){var e=this;return new Promise(function(t,n){for(var r=[],o=0,i=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize);o<i;o++)r.push(e._flushOneBatch());Promise.all(r).then(function(){t()}).catch(n)})},e.prototype._flushOneBatch=function(){var e=this;return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise(function(t,n){var r=setTimeout(function(){n(Error("Timeout"))},e._exportTimeoutMillis);tm.with(fl(tm.active()),function(){var o;e._finishedSpans.length<=e._maxExportBatchSize?(o=e._finishedSpans,e._finishedSpans=[]):o=e._finishedSpans.splice(0,e._maxExportBatchSize);for(var i=function(){return e._exporter.export(o,function(e){var o;clearTimeout(r),e.code===fX.SUCCESS?t():n(null!=(o=e.error)?o:Error("BatchSpanProcessor: span export failed"))})},a=null,s=0,u=o.length;s<u;s++){var c=o[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(null!=a||(a=[]),a.push(c.resource.waitForAsyncAttributes()))}null===a?i():Promise.all(a).then(i,function(e){fA(e),n(e)})})})},e.prototype._maybeStartTimer=function(){var e=this;if(!this._isExporting){var t=function(){e._isExporting=!0,e._flushOneBatch().finally(function(){e._isExporting=!1,e._finishedSpans.length>0&&(e._clearTimer(),e._maybeStartTimer())}).catch(function(t){e._isExporting=!1,fA(t)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();void 0===this._timer&&(this._timer=setTimeout(function(){return t()},this._scheduledDelayMillis),this._timer)}},e.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},e}(),hk=(hH=function(e,t){return(hH=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}hH(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),hB=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.onInit(n),r}return hk(t,e),t.prototype.onInit=function(e){var t=this;!0!==(null==e?void 0:e.disableAutoFlushOnDocumentHide)&&"undefined"!=typeof document&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&t.forceFlush()},this._pageHideListener=function(){t.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t.prototype.onShutdown=function(){"undefined"!=typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t}(hU),hV=function(){this.generateTraceId=hj(16),this.generateSpanId=hj(8)},hF=Array(32);function hj(e){return function(){for(var t=0;t<2*e;t++)hF[t]=Math.floor(16*Math.random())+48,hF[t]>=58&&(hF[t]+=39);return String.fromCharCode.apply(null,hF.slice(0,2*e))}}var hG,hH,hY,hz=function(){function e(e,t,n){this._tracerProvider=n;var r,o,i,a=(r={sampler:hD()},(i=Object.assign({},o=hP(),r,t)).generalLimits=Object.assign({},o.generalLimits,t.generalLimits||{}),i.spanLimits=Object.assign({},o.spanLimits,t.spanLimits||{}),i);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=t.idGenerator||new hV,this.resource=n.resource,this.instrumentationLibrary=e}return e.prototype.startSpan=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=tm.active()),t.root&&(n=tU.deleteSpan(n));var r=tU.getSpan(n);if(fp(n))return tg.debug("Instrumentation suppressed, returning Noop Span"),tU.wrapSpanContext(eJ);var o,i,a,s,u,c,l=null==r?void 0:r.spanContext(),p=this._idGenerator.generateSpanId();l&&tU.isSpanContextValid(l)?(s=l.traceId,u=l.traceState,c=l.spanId):s=this._idGenerator.generateTraceId();var d=null!=(o=t.kind)?o:to.INTERNAL,f=(null!=(i=t.links)?i:[]).map(function(e){return{context:e.context,attributes:fS(e.attributes)}}),h=fS(t.attributes),_=this._sampler.shouldSample(n,s,e,d,h,f);u=null!=(a=_.traceState)?a:u;var E={traceId:s,spanId:p,traceFlags:_.decision===tr.RECORD_AND_SAMPLED?eB.SAMPLED:eB.NONE,traceState:u};if(_.decision===tr.NOT_RECORD)return tg.debug("Recording is off, prop
16agating context in a non-recording span"),tU.wrapSpanContext(E);var m=fS(Object.assign(h,_.attributes));return new hO(this,n,e,E,d,c,f,t.startTime,void 0,m)},e.prototype.startActiveSpan=function(e,t,n,r){var o,i,a;if(!(arguments.length<2)){2==arguments.length?a=t:3==arguments.length?(o=t,a=n):(o=t,i=n,a=r);var s=null!=i?i:tm.active(),u=this.startSpan(e,o,s),c=tU.setSpan(s,u);return tm.with(c,a,void 0,u)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}(),hW=function(){return(hW=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},h$=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},hK=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},hX=function(){function e(e,t){var n,r=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(n=this._attributes)?n:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return r._attributes=Object.assign({},r._attributes,e),r.asyncAttributesPending=!1,e},function(e){return tg.debug("a resource's async attributes promise rejected: %s",e),r.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[aL]="unknown_service",t[aU]=fV[aU],t[ax]=fV[ax],t[ak]=fV[ak],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&tg.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){var e,t,n,r;return e=this,t=void 0,n=void 0,r=function(){return h$(this,function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})},new(n||(n=Promise))(function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},e.prototype.merge=function(t){var n,r=this;if(!t)return this;var o=hW(hW({},this._syncAttributes),null!=(n=t._syncAttributes)?n:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(o,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var n,o=hK(e,2),i=o[0],a=o[1];return hW(hW(hW(hW({},r._syncAttributes),i),null!=(n=t._syncAttributes)?n:t.attributes),a)})):new e(o)},e.EMPTY=new e({}),e}(),hq=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},hJ=function(){function e(e){this._spanProcessors=e}return e.prototype.forceFlush=function(){var e,t,n=[];
16try{for(var r=hq(this._spanProcessors),o=r.next();!o.done;o=r.next()){var i=o.value;n.push(i.forceFlush())}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return new Promise(function(e){Promise.all(n).then(function(){e()}).catch(function(t){fA(t||Error("MultiSpanProcessor: forceFlush failed")),e()})})},e.prototype.onStart=function(e,t){var n,r;try{for(var o=hq(this._spanProcessors),i=o.next();!i.done;i=o.next())i.value.onStart(e,t)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.onEnd=function(e){var t,n;try{for(var r=hq(this._spanProcessors),o=r.next();!o.done;o=r.next())o.value.onEnd(e)}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.shutdown=function(){var e,t,n=[];try{for(var r=hq(this._spanProcessors),o=r.next();!o.done;o=r.next()){var i=o.value;n.push(i.shutdown())}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return new Promise(function(e,t){Promise.all(n).then(function(){e()},t)})},e}(),hZ=function(){function e(){}return e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}();(hQ=hY||(hY={}))[hQ.resolved=0]="resolved",hQ[hQ.timeout=1]="timeout",hQ[hQ.error=2]="error",hQ[hQ.unresolved=3]="unresolved";var hQ,h0,h1,h2,h3,h4=function(){function e(e){void 0===e&&(e={}),this._registeredSpanProcessors=[],this._tracers=new Map;var t,n,r,o,i,a,s,u,c,l,p,d,f,h,_,E,m=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.shift(),r=new WeakMap;e.length>0;)n=function e(t,n,r,o){var i;if(void 0===r&&(r=0),!(r>20)){if(r++,h_(t)||h_(n)||hf(n))i=hl(n);else if(hd(t)){if(i=t.slice(),hd(n))for(var a=0,s=n.length;a<s;a++)i.push(hl(n[a]));else if(hh(n))for(a=0,s=(u=Object.keys(n)).length;a<s;a++)i[c=u[a]]=hl(n[c])}else if(hh(t))if(hh(n)){if(!(hc(t)&&hc(n)))return n;for(a=0,i=Object.assign({},t),s=(u=Object.keys(n)).length;a<s;a++){var u,c,l=n[c=u[a]];if(h_(l))void 0===l?delete i[c]:i[c]=l;else{var p=i[c];if(hp(t,c,o)||hp(n,c,o))delete i[c];else{if(hh(p)&&hh(l)){var d=o.get(p)||[],f=o.get(l)||[];d.push({obj:t,key:c}),f.push({obj:n,key:c}),o.set(p,d),o.set(l,f)}i[c]=e(i[c],l,r,o)}}}}else i=n;return i}}(n,e.shift(),0,r);return n}({},hP(),(h=Object.assign({},(t=e).spanLimits),_=fL(fw),h.attributeCountLimit=null!=(s=null!=(a=null!=(i=null!=(r=null==(n=t.spanLimits)?void 0:n.attributeCountLimit)?r:null==(o=t.generalLimits)?void 0:o.attributeCountLimit)?i:_.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)?a:_.OTEL_ATTRIBUTE_COUNT_LIMIT)?s:128,h.attributeValueLengthLimit=null!=(f=null!=(d=null!=(p=null!=(c=null==(u=t.spanLimits)?void 0:u.attributeValueLengthLimit)?c:null==(l=t.generalLimits)?void 0:l.attributeValueLengthLimit)?p:_.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)?d:_.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)?f:fI,Object.assign({},t,{spanLimits:h})));this.resource=null!=(E=m.resource)?E:hX.empty(),this.resource=hX.default().merge(this.resource),this._config=Object.assign({},m,{resource:this.resource});var g=this._buildExporterFromEnv();if(void 0!==g){var S=new hB(g);this.activeSpanProcessor=S}else this.activeSpanProcessor=new hZ}return e.prototype.getTracer=function(e,t,n){var r=e+"@"+(t||"")+":"+((null==n?void 0:n.schemaUrl)||"");return this._tracers.has(r)||this._tracers.set(r,new hz({name:e,version:t,schemaUrl:null==n?void 0:n.schemaUrl},this._config,this)),this._tracers.get(r)},e.prototype.addSpanProcessor=function(e){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch(function(e){return tg.error("Error while trying to shutdown current span processor",e)}),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new hJ(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(e){void 0===e&&(e={}),tU.setGlobalTracerProvider(this),void 0===e.propagator&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&tm.setGlobalContextManager(e.contextManager),e.propagator&&tD.setGlobalPropagator(e.propagator)},e.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,t=this._registeredSpanProcessors.map(function(t){return new Promise(function(n){var r,o=setTimeout(function(){n(Error("Span processor did n
16ot completed within timeout period of "+e+" ms")),r=hY.timeout},e);t.forceFlush().then(function(){clearTimeout(o),r!==hY.timeout&&n(r=hY.resolved)}).catch(function(e){clearTimeout(o),r=hY.error,n(e)})})});return new Promise(function(e,n){Promise.all(t).then(function(t){var r=t.filter(function(e){return e!==hY.resolved});r.length>0?n(r):e()}).catch(function(e){return n([e])})})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(e){var t;return null==(t=this.constructor._registeredPropagators.get(e))?void 0:t()},e.prototype._getSpanExporter=function(e){var t;return null==(t=this.constructor._registeredExporters.get(e))?void 0:t()},e.prototype._buildPropagatorFromEnv=function(){var e=this,t=Array.from(new Set(fP().OTEL_PROPAGATORS)),n=t.map(function(t){var n=e._getPropagator(t);return n||tg.warn('Propagator "'+t+'" requested through environment variable is unavailable.'),n}).reduce(function(e,t){return t&&e.push(t),e},[]);return 0===n.length?void 0:1===t.length?n[0]:new f0({propagators:n})},e.prototype._buildExporterFromEnv=function(){var e=fP().OTEL_TRACES_EXPORTER;if("none"!==e&&""!==e){var t=this._getSpanExporter(e);return t||tg.error('Exporter "'+e+'" requested through environment variable is unavailable.'),t}},e._registeredPropagators=new Map([["tracecontext",function(){return new f9}],["baggage",function(){return new fE}]]),e._registeredExporters=new Map,e}(),h5=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},h6=function(){function e(){}return e.prototype.export=function(e,t){return this._sendSpans(e,t)},e.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},e.prototype.forceFlush=function(){return Promise.resolve()},e.prototype._exportInfo=function(e){var t;return{resource:{attributes:e.resource.attributes},traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:null==(t=e.spanContext().traceState)?void 0:t.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:fz(e.startTime),duration:fz(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}},e.prototype._sendSpans=function(e,t){var n,r;try{for(var o=h5(e),i=o.next();!i.done;i=o.next()){var a=i.value;console.dir(this._exportInfo(a),{depth:3})}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}if(t)return t({code:fX.SUCCESS})},e}(),h8=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},h7=function(){function e(e){this._exporter=e,this._shutdownOnce=new hb(this._shutdown,this),this._unresolvedExports=new Set}return e.prototype.forceFlush=function(){var e,t,n,r;return e=this,t=void 0,n=void 0,r=function(){return h8(this,function(e){switch(e.label){case 0:return[4,Promise.all(Array.from(this._unresolvedExports))];case 1:return e.sent(),this._exporter.forceFlush?[4,this._exporter.forceFlush()]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}})}
16,new(n||(n=Promise))(function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){var t,n,r=this;if(!this._shutdownOnce.isCalled&&e.spanContext().traceFlags&eB.SAMPLED){var o=function(){var t,n;return(t=r._exporter,n=[e],new Promise(function(e){tm.with(fl(tm.active()),function(){t.export(n,function(t){e(t)})})})).then(function(e){var t;e.code!==fX.SUCCESS&&fA(null!=(t=e.error)?t:Error("SimpleSpanProcessor: span export failed (status "+e+")"))}).catch(function(e){fA(e)})};if(e.resource.asyncAttributesPending){var i=null==(n=(t=e.resource).waitForAsyncAttributes)?void 0:n.call(t).then(function(){return null!=i&&r._unresolvedExports.delete(i),o()},function(e){return fA(e)});null!=i&&this._unresolvedExports.add(i)}else o()}},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){return this._exporter.shutdown()},e}(),h9=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},_e=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},_t=function(){function e(){this._enabled=!1,this._currentContext=eg}return e.prototype._bindFunction=function(e,t){void 0===e&&(e=eg);var n=this,r=function(){for(var r=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n.with(e,function(){return t.apply(r,o)})};return Object.defineProperty(r,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),r},e.prototype.active=function(){return this._currentContext},e.prototype.bind=function(e,t){return void 0===e&&(e=this.active()),"function"==typeof t?this._bindFunction(e,t):t},e.prototype.disable=function(){return this._currentContext=eg,this._enabled=!1,this},e.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=eg),this},e.prototype.with=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var i=this._currentContext;this._currentContext=e||eg;try{return t.call.apply(t,_e([n],h9(r),!1))}finally{this._currentContext=i}},e}(),_n=(h0=function(e,t){return(h0=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}h0(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_r=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;if(t.contextManager)throw"contextManager should be defined in register method not in constructor";if(t.propagator)throw"propagator should be defined in register method not in constructor";return n}return _n(t,e),t.prototype.register=function(t){void 0===t&&(t={}),void 0===t.contextManager&&(t.contextManager=new _t),t.contextManager&&t.contextManager.enable(),e.prototype.register.call(this,t)},t}(h4);function _o(e,t,n,r){var o=void 0,i=void 0;t in n&&"number"==typeof n[t]&&(o=n[t]);var a=r||h1.FETCH_START;if(a in n&&"number"==typeof n[a]&&(i=n[a]),void 0!==o&&void 0!==i&&o>=i)return e.addEvent(t,o),e}function _i(e,t){_o(e,h1.FETCH_START,t),_o(e,h1.DOMAIN_LOOKUP_START,t),_o(e,h1.DOMAIN_LOOKUP_END,t),_o(e,h1.CONNECT_START,t),"name"in t&&t.name.startsWith("https:")&&_o(e,h1.SECURE_CONNECTION_START,t),_o(e,h1.CONNECT_END,t),_o(e,h1.REQUEST_START,t),_o(e,h1.RESPONSE_START,t),_o(e,h1.RESPONSE_END,t);var n=t[h1.ENCODED_BODY_SIZE];void 0!==n&&e.setAttribute(rj.HTTP_RESPONSE_CONTENT_LENGTH,n);var r=t[h1.DECODED_BODY_SIZE];void 0!==r&&n!==r&&e.setAttribute(rj.HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,r)}function _a(){return"undefined"!=typeof location?location.origin:void 0}function _s(e,t,n,r,o,i){void 0===o&&(o=new WeakSet);var a,s,u,c,l,p=_u(e),d=(a=e=p.toString(),s=o,u=fY(t),c=fY(n),(l=r.filter(function(e){var t=fY(fH(e[h1.FETCH_START])),n=fY(fH(e[h1.RESPONSE_END]));return e.initiatorType.toLowerCase()===(i||"xmlhttprequest")&&e.name===a&&t>=u&&n<=c})).length>0&&(l=l.filter(function(e){return!s.has(e)})),l);
16if(0===d.length)return{mainRequest:void 0};if(1===d.length)return{mainRequest:d[0]};var f=d.slice().sort(function(e,t){var n=e[h1.FETCH_START],r=t[h1.FETCH_START];return n>r?1:n<r?-1:0});if(p.origin!==_a()&&f.length>1){var h=f[0],_=function(e,t,n){for(var r,o=fY(n),i=fY(fH(t)),a=e[1],s=e.length,u=1;u<s;u++){var c=e[u],l=fY(fH(c[h1.FETCH_START])),p=o-fY(fH(c[h1.RESPONSE_END]));l>=i&&(!r||p<r)&&(r=p,a=c)}return a}(f,h[h1.RESPONSE_END],n),E=h[h1.RESPONSE_END];return _[h1.FETCH_START]<E&&(_=h,h=void 0),{corsPreFlightRequest:h,mainRequest:_}}return{mainRequest:d[0]}}function _u(e){if("function"==typeof URL)return new URL(e,"undefined"!=typeof document?document.baseURI:"undefined"!=typeof location?location.href:void 0);var t=(h2||(h2=document.createElement("a")),h2);return t.href=e,t}function _c(e,t){var n=t||[];return("string"==typeof n||n instanceof RegExp)&&(n=[n]),_u(e).origin===_a()||n.some(function(t){return hm(e,t)})}(Et=h1||(h1={})).CONNECT_END="connectEnd",Et.CONNECT_START="connectStart",Et.DECODED_BODY_SIZE="decodedBodySize",Et.DOM_COMPLETE="domComplete",Et.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",Et.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",Et.DOM_INTERACTIVE="domInteractive",Et.DOMAIN_LOOKUP_END="domainLookupEnd",Et.DOMAIN_LOOKUP_START="domainLookupStart",Et.ENCODED_BODY_SIZE="encodedBodySize",Et.FETCH_START="fetchStart",Et.LOAD_EVENT_END="loadEventEnd",Et.LOAD_EVENT_START="loadEventStart",Et.NAVIGATION_START="navigationStart",Et.REDIRECT_END="redirectEnd",Et.REDIRECT_START="redirectStart",Et.REQUEST_START="requestStart",Et.RESPONSE_END="responseEnd",Et.RESPONSE_START="responseStart",Et.SECURE_CONNECTION_START="secureConnectionStart",Et.UNLOAD_EVENT_END="unloadEventEnd",Et.UNLOAD_EVENT_START="unloadEventStart",(En=h3||(h3={})).DOCUMENT_LOAD="documentLoad",En.DOCUMENT_FETCH="documentFetch",En.RESOURCE_FETCH="resourceFetch",(Er=El||(El={})).FIRST_PAINT="firstPaint",Er.FIRST_CONTENTFUL_PAINT="firstContentfulPaint";var _l={"first-paint":El.FIRST_PAINT,"first-contentful-paint":El.FIRST_CONTENTFUL_PAINT},_p=(Eo=function(e,t){return(Eo=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Eo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_d=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,"@opentelemetry/instrumentation-document-load","0.38.0",t)||this;return n.component="document-load",n.version="1",n.moduleName=n.component,n}return _p(t,e),t.prototype.init=function(){},t.prototype._onDocumentLoaded=function(){var e=this;window.setTimeout(function(){e._collectPerformance()})},t.prototype._addResourcesSpans=function(e){var t,n=this,r=null==(t=fB.getEntriesByType)?void 0:t.call(fB,"resource");r&&r.forEach(function(t){n._initResourceSpan(t,e)})},t.prototype._collectPerformance=function(){var e=this,t=Array.from(document.getElementsByTagName("meta")).find(function(e){return e.getAttribute("name")===f6}),n=function(){var e,t={},n=null==(e=fB.getEntriesByType)?void 0:e.call(fB,"navigation")[0];if(n)Object.values(h1).forEach(function(e){if(e in n){var r=n[e];"number"==typeof r&&(t[e]=r)}});else{var r=fB.timing;r&&Object.values(h1).forEach(function(e){if(e in r){var n=r[e];"number"==typeof n&&(t[e]=n)}})}return t}(),r=t&&t.content||"";tm.with(tD.extract(eg,{traceparent:r}),function(){var t,r,o,i,a=e._startSpan(h3.DOCUMENT_LOAD,h1.FETCH_START,n);a&&(tm.with(tU.setSpan(tm.active(),a),function(){var t=e._startSpan(h3.DOCUMENT_FETCH,h1.FETCH_START,n);t&&(t.setAttribute(nB,location.href),tm.with(tU.setSpan(tm.active(),t),function(){var r;_i(t,n),e._addCustomAttributesOnSpan(t,null==(r=e._getConfig().applyCustomAttributesOnSpan)?void 0:r.documentFetch),e._endSpan(t,h1.RESPONSE_END,n)}))}),a.setAttribute(nB,location.href),a.setAttribute(nY,navigator.userAgent),e._addResourcesSpans(a),_o(a,h1.FETCH_START,n),_o(a,h1.UNLOAD_EVENT_START,n
16),_o(a,h1.UNLOAD_EVENT_END,n),_o(a,h1.DOM_INTERACTIVE,n),_o(a,h1.DOM_CONTENT_LOADED_EVENT_START,n),_o(a,h1.DOM_CONTENT_LOADED_EVENT_END,n),_o(a,h1.DOM_COMPLETE,n),_o(a,h1.LOAD_EVENT_START,n),_o(a,h1.LOAD_EVENT_END,n),t=a,(o=null==(r=fB.getEntriesByType)?void 0:r.call(fB,"paint"))&&o.forEach(function(e){var n=e.name,r=e.startTime;n in _l&&t.addEvent(_l[n],r)}),e._addCustomAttributesOnSpan(a,null==(i=e._getConfig().applyCustomAttributesOnSpan)?void 0:i.documentLoad),e._endSpan(a,h1.LOAD_EVENT_END,n))})},t.prototype._endSpan=function(e,t,n){e&&(t in n?e.end(n[t]):e.end())},t.prototype._initResourceSpan=function(e,t){var n,r=this._startSpan(h3.RESOURCE_FETCH,h1.FETCH_START,e,t);r&&(r.setAttribute(nB,e.name),_i(r,e),this._addCustomAttributesOnResourceSpan(r,e,null==(n=this._getConfig().applyCustomAttributesOnSpan)?void 0:n.resourceFetch),this._endSpan(r,h1.RESPONSE_END,e))},t.prototype._startSpan=function(e,t,n,r){if(t in n&&"number"==typeof n[t])return this.tracer.startSpan(e,{startTime:n[t]},r?tU.setSpan(tm.active(),r):void 0)},t.prototype._waitForPageLoad=function(){"complete"===window.document.readyState?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))},t.prototype._getConfig=function(){return this._config},t.prototype._addCustomAttributesOnSpan=function(e,t){var n=this;t&&s3(function(){return t(e)},function(e){e&&n._diag.error("addCustomAttributesOnSpan",e)},!0)},t.prototype._addCustomAttributesOnResourceSpan=function(e,t,n){var r=this;n&&s3(function(){return n(e,t)},function(e){e&&r._diag.error("addCustomAttributesOnResourceSpan",e)},!0)},t.prototype.enable=function(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()},t.prototype.disable=function(){window.removeEventListener("load",this._onDocumentLoaded)},t}(s1);function _f(e,t){if(e&&e[1]&&e[2]){let n=e[1],r=e[2];t.setAttribute("link.traceId",n),t.setAttribute("link.spanId",r)}}let _h=RegExp("traceparent;desc=['\"]00-([0-9a-f]{32})-([0-9a-f]{16})-01['\"]");function __(e,t){for(let n of e.split(","))_f((n=n.trim()).match(_h),t)}let _E=/00-([0-9a-f]{32})-([0-9a-f]{16})-01/,_m=["beacon","fetch","xmlhttprequest"];(Ei=Ep||(Ep={})).EVENT_TYPE="event_type",Ei.TARGET_ELEMENT="target_element",Ei.TARGET_XPATH="target_xpath",Ei.HTTP_URL="http.url";var _g="0.38.0",_S=(Ea=function(e,t){return(Ea=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ea(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_v=["click"];function _T(){return!1}var _y=function(e){function t(t){var n,r=e.call(this,"@opentelemetry/instrumentation-user-interaction",_g,t)||this;return r.version=_g,r.moduleName="user-interaction",r._spansData=new WeakMap,r._wrappedListeners=new WeakMap,r._eventsSpanMap=new WeakMap,r._eventNames=new Set(null!=(n=null==t?void 0:t.eventNames)?n:_v),r._shouldPreventSpanCreation="function"==typeof(null==t?void 0:t.shouldPreventSpanCreation)?t.shouldPreventSpanCreation:_T,r}return _S(t,e),t.prototype.init=function(){},t.prototype._checkForTimeout=function(e,t){var n=this._spansData.get(t);n&&("setTimeout"===e.source?n.hrTimeLastTimeout=fG():"Promise.then"!==e.source&&"setTimeout"!==e.source&&(n.hrTimeLastTimeout=void 0))},t.prototype._allowEventName=function(e){return this._eventNames.has(e)},t.prototype._createSpan=function(e,t,n){var r;if(e instanceof HTMLElement&&e.getAttribute&&!e.hasAttribute("disabled")&&this._allowEventName(t)){var o=function e(t,n){if(t.nodeType===Node.DOCUMENT_NODE)return"/";var r=function(e,t){var n=e.nodeType,r=function(e){if(!e.parentNode)return 0;var t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);var n=Array.from(e.parentNode.childNodes);return(n=n.filter(function(n){var r=n.localName;return t.indexOf(n.nodeType)>=0&&r===e.localName})).length>=1?n.indexOf(e)+1:0}(e),o="";if(n===Node.ELEMENT_NODE){var i=e.getAttribute("id");if(t&&i)return'//*[@id="'+i+'"]';o=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)o="text()";else{if(n!==Node.COMMENT_NODE)return"";o="comment()"}return o&&r>
161?"/"+o+"["+r+"]":"/"+o}(t,n);if(n&&r.indexOf("@id")>0)return r;var o="";return t.parentNode&&(o+=e(t.parentNode,!1)),o+=r}(e,!0);try{var i=this.tracer.startSpan(t,{attributes:((r={})[Ep.EVENT_TYPE]=t,r[Ep.TARGET_ELEMENT]=e.tagName,r[Ep.TARGET_XPATH]=o,r[Ep.HTTP_URL]=window.location.href,r)},n?tU.setSpan(tm.active(),n):void 0);if(!0===this._shouldPreventSpanCreation(t,e,i))return;return this._spansData.set(i,{taskCount:0}),i}catch(e){this._diag.error("failed to start create new user interaction span",e)}}},t.prototype._decrementTask=function(e){var t=this._spansData.get(e);t&&(t.taskCount--,0===t.taskCount&&this._tryToEndSpan(e,t.hrTimeLastTimeout))},t.prototype._getCurrentSpan=function(e){var t=e.get("OT_ZONE_CONTEXT");return t?tU.getSpan(t):t},t.prototype._incrementTask=function(e){var t=this._spansData.get(e);t&&t.taskCount++},t.prototype.addPatchedListener=function(e,t,n,r){var o=this._wrappedListeners.get(n);o||(o=new Map,this._wrappedListeners.set(n,o));var i=o.get(t);return i||(i=new Map,o.set(t,i)),!i.has(e)&&(i.set(e,r),!0)},t.prototype.removePatchedListener=function(e,t,n){var r=this._wrappedListeners.get(n);if(r){var o=r.get(t);if(o){var i=o.get(e);return i&&(o.delete(e),0===o.size&&(r.delete(t),0===r.size&&this._wrappedListeners.delete(n))),i}}},t.prototype._invokeListener=function(e,t,n){return"function"==typeof e?e.apply(t,n):e.handleEvent(n[0])},t.prototype._patchAddEventListener=function(){var e=this;return function(t){return function(n,r,o){if(!r)return t.call(this,n,r,o);var i=o&&"object"==typeof o&&o.once,a=function(){for(var t,o=this,a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var u=a[0],c=null==u?void 0:u.target;u&&(t=e._eventsSpanMap.get(u)),i&&e.removePatchedListener(this,n,r);var l=e._createSpan(c,n,t);return l?(u&&e._eventsSpanMap.set(u,l),tm.with(tU.setSpan(tm.active(),l),function(){var t=e._invokeListener(r,o,a);return l.end(),t})):e._invokeListener(r,this,a)};return e.addPatchedListener(this,n,r,a)?t.call(this,n,a,o):void 0}}},t.prototype._patchRemoveEventListener=function(){var e=this;return function(t){return function(n,r,o){var i=e.removePatchedListener(this,n,r);return i?t.call(this,n,i,o):t.call(this,n,r,o)}}},t.prototype._getPatchableEventTargets=function(){return window.EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]},t.prototype._patchHistoryApi=function(){this._unpatchHistoryApi(),this._wrap(history,"replaceState",this._patchHistoryMethod()),this._wrap(history,"pushState",this._patchHistoryMethod()),this._wrap(history,"back",this._patchHistoryMethod()),this._wrap(history,"forward",this._patchHistoryMethod()),this._wrap(history,"go",this._patchHistoryMethod())},t.prototype._patchHistoryMethod=function(){var e=this;return function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=""+location.pathname+location.hash+location.search,i=t.apply(this,n),a=""+location.pathname+location.hash+location.search;return o!==a&&e._updateInteractionName(a),i}}},t.prototype._unpatchHistoryApi=function(){s4(history.replaceState)&&this._unwrap(history,"replaceState"),s4(history.pushState)&&this._unwrap(history,"pushState"),s4(history.back)&&this._unwrap(history,"back"),s4(history.forward)&&this._unwrap(history,"forward"),s4(history.go)&&this._unwrap(history,"go")},t.prototype._updateInteractionName=function(e){var t=tU.getSpan(tm.active());t&&"function"==typeof t.updateName&&t.updateName("Navigation: "+e)},t.prototype._patchZoneCancelTask=function(){var e=this;return function(t){return function(n){var r=Zone.current,o=e._getCurrentSpan(r);return o&&e._shouldCountTask(n,r)&&e._decrementTask(o),t.call(this,n)}}},t.prototype._patchZoneScheduleTask=function(){var e=this;return function(t){return function(n){var r=Zone.current,o=e._getCurrentSpan(r);return o&&e._shouldCountTask(n,r)&&(e._incrementTask(o),e._checkForTimeout(n,o)),t.call(this,n)}}},t.prototype._patchZoneRunTask=function(){var e=this;return function(t){return function(n,r,o){var i,a=Array.isArray(o)&&o[0]instanceof Event?o[0]:void 0,s=null==a?void 0:a.target;if(s){if(i=e._createSpan(s,n.eventName))return e._incrementTask(i),this.run(function(){try{return tm.with(tU.setSpan(tm.active(),i),function(){var e=Zone.current;return n._zone=e,t.call(e,n,r,o)})}finally{e._decrementTask(i)}})}else i=e._getCurrentSpan(this);try{return t.call(this,n,r,o)}finally{i&&e._shouldCountTask(n,this)&&e._decrementTask(i)}}}},t.prototype._shouldCountTask=function(e,t){if(e._zone&&(t=e._zone),!t||!e.data||e.data.isPeriodic)return!1;var n=this._getCurrentSpan(t);return!!n&&!!this._spansData.get(n)&&("macroTask"===e.type||"microTask"===e.type)},t.prototype._tryToEndSpan=function(e,t){e&&this._spansData.get(e)&&(e.end(t),this._spansData.delete(e))},t.prototype.enable=function(){var e=this,t=this.getZoneWithPrototype();(this._diag.debug("applying patch to",this.moduleName,this.version,"zone:",!!t),t)?(s4(t.prototype.runTask)&&(this._unwrap(t.prototype,"runTask"),this._diag.debug("removing previous patch from method runTask")),s4(t.prototype.scheduleTask)&&(this._unwrap(t.prototype,"scheduleTask"),this._diag.debug("removing previous patch from method scheduleTask")),s4(t.prototype.cancelTask)&&(this._unwrap(t.prototype,"cancelTask"),this._diag.debug("removing previous patch from method cancelTask")),this._zonePatched=!0,this._wrap(t.prototype,"runTask",this._patchZoneRunTask()),this._wrap(t.prototype,"scheduleTask",this._patchZoneSc
16heduleTask()),this._wrap(t.prototype,"cancelTask",this._patchZoneCancelTask())):(this._zonePatched=!1,this._getPatchableEventTargets().forEach(function(t){s4(t.addEventListener)&&(e._unwrap(t,"addEventListener"),e._diag.debug("removing previous patch from method addEventListener")),s4(t.removeEventListener)&&(e._unwrap(t,"removeEventListener"),e._diag.debug("removing previous patch from method removeEventListener")),e._wrap(t,"addEventListener",e._patchAddEventListener()),e._wrap(t,"removeEventListener",e._patchRemoveEventListener())})),this._patchHistoryApi()},t.prototype.disable=function(){var e=this,t=this.getZoneWithPrototype();(this._diag.debug("removing patch from",this.moduleName,this.version,"zone:",!!t),t&&this._zonePatched)?(s4(t.prototype.runTask)&&this._unwrap(t.prototype,"runTask"),s4(t.prototype.scheduleTask)&&this._unwrap(t.prototype,"scheduleTask"),s4(t.prototype.cancelTask)&&this._unwrap(t.prototype,"cancelTask")):this._getPatchableEventTargets().forEach(function(t){s4(t.addEventListener)&&e._unwrap(t,"addEventListener"),s4(t.removeEventListener)&&e._unwrap(t,"removeEventListener")}),this._unpatchHistoryApi()},t.prototype.getZoneWithPrototype=function(){return window.Zone},t}(s1);let _b={click:!0,dblclick:!0,mousedown:!0,mouseup:!0,submit:!0,reset:!0,change:!0,dragend:!0,drop:!0,ended:!0,pause:!0,play:!0},_A=Object.keys(_b),_R="route";var _O=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function _N(e,t){return tg.warn("Timeout must be greater than 0",e),t}var _I=function(){function e(e){var t,n,r;void 0===e&&(e={}),this._sendingPromises=[],this.url=this.getDefaultUrl(e),"string"==typeof e.hostname&&(this.hostname=e.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new hb(this._shutdown,this),this._concurrencyLimit="number"==typeof e.concurrencyLimit?e.concurrencyLimit:30,this.timeoutMillis="number"==typeof(t=e.timeoutMillis)?t<=0?_N(t,1e4):t:(r=Number(null!=(n=fP().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)?n:fP().OTEL_EXPORTER_OTLP_TIMEOUT))<=0?_N(r,1e4):r,this.onInit(e)}return e.prototype.export=function(e,t){this._shutdownOnce.isCalled?t({code:fX.FAILED,error:Error("Exporter has been shutdown")}):this._sendingPromises.length>=this._concurrencyLimit?t({code:fX.FAILED,error:Error("Concurrent export limit reached")}):this._export(e).then(function(){t({code:fX.SUCCESS})}).catch(function(e){t({code:fX.FAILED,error:e})})},e.prototype._export=function(e){var t=this;return new Promise(function(n,r){try{tg.debug("items to be sent",e),t.send(e,n,r)}catch(e){r(e)}})},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},e.prototype._shutdown=function(){return tg.debug("shutdown started"),this.onShutdown(),this.forceFlush()},e}(),_C=(Es=function(e,t){return(Es=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Es(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_M=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.name="OTLPExporterError",o.data=r,o.code=n,o}return _C(t,e),t}(Error),_L=function(){return(_L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},_w=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},_P=(Eu=function(e,t){return(Eu=Object.setPrototypeOf||({__proto__:[]}
16)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Eu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_D=function(e){function t(t){void 0===t&&(t={});var n,r,o=e.call(this,t)||this;return o._useXHR=!1,o._useXHR=!!t.headers||"function"!=typeof navigator.sendBeacon,o._useXHR?o._headers=Object.assign({},(void 0===(n=t.headers)&&(n={}),r={},Object.entries(n).forEach(function(e){var t=_O(e,2),n=t[0],o=t[1];void 0!==o?r[n]=String(o):tg.warn('Header "'+n+'" has invalid value ('+o+") and will be ignored")}),r),f_(fP().OTEL_EXPORTER_OTLP_HEADERS)):o._headers={},o}return _P(t,e),t.prototype.onInit=function(){},t.prototype.onShutdown=function(){},t.prototype.send=function(e,t,n){var r=this;if(this._shutdownOnce.isCalled)tg.debug("Shutdown already started. Cannot send objects");else{var o=JSON.stringify(this.convert(e)),i=new Promise(function(e,t){var n,i,a,s,u,c,l,p,d;r._useXHR?(n=r.url,i=r._headers,a=r.timeoutMillis,c=!1,l=setTimeout(function(){(clearTimeout(s),c=!0,u.readyState===XMLHttpRequest.DONE)?t(new _M("Request Timeout")):u.abort()},a),(p=function(r,a){void 0===r&&(r=5),void 0===a&&(a=1e3),(u=new XMLHttpRequest).open("POST",n),Object.entries(_L(_L({},{Accept:"application/json","Content-Type":"application/json"}),i)).forEach(function(e){var t=_w(e,2),n=t[0],r=t[1];u.setRequestHeader(n,r)}),u.send(o),u.onreadystatechange=function(){if(u.readyState===XMLHttpRequest.DONE&&!1===c)if(u.status>=200&&u.status<=299)tg.debug("xhr success",o),e(),clearTimeout(l),clearTimeout(s);else if(u.status&&[429,502,503,504].includes(u.status)&&r>0)a*=1.5,s=setTimeout(function(){p(r-1,a)},u.getResponseHeader("Retry-After")?function(e){if(null==e)return -1;var t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?1e3*t:-1;var n=new Date(e).getTime()-Date.now();return n>=0?n:0}(u.getResponseHeader("Retry-After")):Math.round(Math.random()*(5e3-a)+a));else t(new _M("Failed to export with XHR (status: "+u.status+")",u.status)),clearTimeout(l),clearTimeout(s)},u.onabort=function(){c&&t(new _M("Request Timeout")),clearTimeout(l),clearTimeout(s)},u.onerror=function(){c&&t(new _M("Request Timeout")),clearTimeout(l),clearTimeout(s)}})()):(d=r.url,navigator.sendBeacon(d,new Blob([o],{type:"application/json"}))?(tg.debug("sendBeacon - can send",o),e()):t(new _M("sendBeacon - cannot send "+o)))}).then(t,n);this._sendingPromises.push(i);var a=function(){var e=r._sendingPromises.indexOf(i);r._sendingPromises.splice(e,1)};i.then(a,a)}},t}(_I);function _x(e){var t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function _U(e){var t=_x(e);return{low:Number(BigInt.asUintN(32,t)),high:Number(BigInt.asUintN(32,t>>BigInt(32)))}}var _k="undefined"!=typeof BigInt?function(e){return _x(e).toString()}:fY;function _B(e){return e}function _V(e){if(void 0!==e)return fx(e)}var _F={encodeHrTime:_U,encodeSpanContext:fx,encodeOptionalSpanContext:_V},_j=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function _G(e){return Object.keys(e).map(function(t){return function e(t,n){return{key:t,value:function t(n){var r=typeof n;return"string"===r?{stringValue:n}:"number"===r?Number.isInteger(n)?{intValue:n}:{doubleValue:n}:"boolean"===r?{boolValue:n}:n instanceof Uint8Array?{bytesValue:n}:Array.isArray(n)?{arrayValue:{values:n.map(t)}}:"object"===r&&null!=n?{kvlistValue:{values:Object.entries(n).map(function(t){var n=_j(t,2);return e(n[0],n[1])})}}:{}}(n)}}(t,e[t])})}var _H=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_Y=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}
16,_z=(Ec=function(e,t){return(Ec=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ec(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_W="v1/traces",_$="http://localhost:4318/"+_W,_K=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n._headers=Object.assign(n._headers,f_(fP().OTEL_EXPORTER_OTLP_TRACES_HEADERS)),n}return _z(t,e),t.prototype.convert=function(e){return{resourceSpans:function(e,t){for(var n=function(e){var t,n,r=new Map;try{for(var o=_H(e),i=o.next();!i.done;i=o.next()){var a=i.value,s=r.get(a.resource);s||(s=new Map,r.set(a.resource,s));var u=a.instrumentationLibrary.name+"@"+(a.instrumentationLibrary.version||"")+":"+(a.instrumentationLibrary.schemaUrl||""),c=s.get(u);c||(c=[],s.set(u,c)),c.push(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(e),r=[],o=n.entries(),i=o.next();!i.done;){for(var a=_Y(i.value,2),s=a[0],u=[],c=a[1].values(),l=c.next();!l.done;){var p=l.value;if(p.length>0){var d,f=p.map(function(e){return function(e,t){var n,r=e.spanContext(),o=e.status;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:t.encodeOptionalSpanContext(e.parentSpanId),traceState:null==(n=r.traceState)?void 0:n.serialize(),name:e.name,kind:null==e.kind?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:_G(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(function(e){return{attributes:e.attributes?_G(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}),droppedEventsCount:e.droppedEventsCount,status:{code:o.code,message:o.message},links:e.links.map(function(e){var n;return{attributes:e.attributes?_G(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:null==(n=e.context.traceState)?void 0:n.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}),droppedLinksCount:e.droppedLinksCount}}(e,t)});u.push({scope:{name:(d=p[0].instrumentationLibrary).name,version:d.version},spans:f,schemaUrl:p[0].instrumentationLibrary.schemaUrl})}l=c.next()}var h={resource:{attributes:_G(s.attributes),droppedAttributesCount:0},scopeSpans:u,schemaUrl:void 0};r.push(h),i=o.next()}return r}(e,function(e){if(void 0===e)return _F;var t,n,r=null==(t=e.useLongBits)||t,o=null!=(n=e.useHex)&&n;return{encodeHrTime:r?_U:_k,encodeSpanContext:o?_B:fx,encodeOptionalSpanContext:o?_B:_V}}({useHex:!0,useLongBits:!1}))}},t.prototype.getDefaultUrl=function(e){var t;return"string"==typeof e.url?e.url:fP().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length>0?function(e){try{var t=new URL(e);return""===t.pathname&&(t.pathname=t.pathname+"/"),t.toString()}catch(t){return tg.warn("Could not parse export URL: '"+e+"'"),e}}(fP().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT):fP().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?(t=fP().OTEL_EXPORTER_OTLP_ENDPOINT,t.endsWith("/")||(t+="/"),t+_W):_$},t}(_D);function _X(e){return"x".repeat(e/4).replace(/x/g,function(){return(16*Math.random()|0).toString(16)})}function _q(e,t,n){return!1===e?e:(void 0!==e||!n)&&Object.assign({},t,e)}function _J(e){return"function"==typeof e}function _Z(e,t,n){let r=e[t];sX.wrap(e,t,n),e[t].toString=r.toString.bind(r)}function _Q(e){for(;e.__original&&e.__original!==e;)e=e.__original;return e}function _0(e,t){let n=new Map(t.map(e=>[e,e.toLowerCase().replace(/-/g,"_")]));return(t,r)=>{for(let[o,i]of n){let n=r(o);if(void 0===n)continue;let a=`http.${e}.header.${i}`;"string"==typeof n?t.setAttribute(a,[n]):Array.isArray(n)?t.setAttribute(a,n):t.setAttribute(a,[n])}}}let _1="__rum_sid",_2,_3,_4,_5=!1;function _6(){_5=!0}function _8(e){let t=Date.now();return e>t||t>e+144e5}function _7(){let e=function(){let e,t=function(e){let t=decodeURIComponent(document.cookie).split(";");for(let n=0;n<t.length;n++){let r=t[n].trim();if(0===r.indexOf(e+"="))return r.substring((e+"=").length,r.length)}}(_1);if(!t)return;let n=decodeURIComponent(t);if(n){try{e=JSON.parse(n)}catch(e){return}return e&&"object"==typeof e&&e.id&&"string"==typeof e.id&&e.id.length&&32===e.id.length&&e.startTime&&"number"==typeof e.startTime&&!_8(e.startTime)?e:void 0}}();e||(e={id:_X(128),startTime:Date.now()},_5=!0),_2=e.id,null==_4||_4.emit("session-changed",{sessionId:_2}),_5&&function(e){if(_8(e.startTime))return;let t=_1+"="+encodeURIComponent(JSON.stringify(e))+"; path=/;"+(_3?`domain=${_3};`:"")+"max-age=900";!function(){try{return window.self!==window.top}catch(e){return!0}}()?t+=";SameSite=Strict":t+=";SameSite=None; Secure",document.cookie=t}(e),_5=!1}let _9="0.16.3";function Ee(e){return e.byteLength||e.size||e.length||void 0}var Et,En,Er,Eo,Ei,Ea,Es,Eu,Ec,El,Ep,Ed,Ef,Eh,E_,EE,Em=-1,Eg=function(e){addEventListener("pageshow",function(t){t.persisted&&(Em=t.timeStamp,e(t))},!0)},ES=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Ev=function(){var e=ES();return e&&e.activationStart||0},ET=function(e,t){var n=ES(),r="navigate";return Em>=0?r="back-forward-cache":n&&(document.prerendering||Ev()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:r}},Ey=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},Eb=function(e,t,n,r){var o,i;return function(a){var s;t.value>=0&&(a||r)&&((i=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=i,s=t.value,t.rating=s>n[1]?"poor":s>n[0]?"needs-improvement":"good",e(t))}},EA=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})}
16,ER=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},EO=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},EN=-1,EI=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},EC=function(e){"hidden"===document.visibilityState&&EN>-1&&(EN="visibilitychange"===e.type?e.timeStamp:0,EL())},EM=function(){addEventListener("visibilitychange",EC,!0),addEventListener("prerenderingchange",EC,!0)},EL=function(){removeEventListener("visibilitychange",EC,!0),removeEventListener("prerenderingchange",EC,!0)},Ew=function(){return EN<0&&(EN=EI(),EM(),Eg(function(){setTimeout(function(){EN=EI(),EM()},0)})),{get firstHiddenTime(){return EN}}},EP=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},ED=[1800,3e3],Ex=[.1,.25],EU=function(e,t){var n,r;t=t||{},n=EO(function(){var n,r=ET("CLS",0),o=0,i=[],a=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=i[0],n=i[i.length-1];o&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,i.push(e)):(o=e.value,i=[e])}}),o>r.value&&(r.value=o,r.entries=i,n())},s=Ey("layout-shift",a);s&&(n=Eb(e,r,Ex,t.reportAllChanges),ER(function(){a(s.takeRecords()),n(!0)}),Eg(function(){o=0,n=Eb(e,r=ET("CLS",0),Ex,t.reportAllChanges),EA(function(){return n()})}),setTimeout(n,0))}),r=r||{},EP(function(){var e,t=Ew(),o=ET("FCP"),i=Ey("paint",function(n){n.forEach(function(n){"first-contentful-paint"===n.name&&(i.disconnect(),n.startTime<t.firstHiddenTime&&(o.value=Math.max(n.startTime-Ev(),0),o.entries.push(n),e(!0)))})});i&&(e=Eb(n,o,ED,r.reportAllChanges),Eg(function(t){e=Eb(n,o=ET("FCP"),ED,r.reportAllChanges),EA(function(){o.value=performance.now()-t.timeStamp,e(!0)})}))})},Ek={passive:!0,capture:!0},EB=new Date,EV=function(e,t){Ed||(Ed=t,Ef=e,Eh=new Date,EG(removeEventListener),EF())},EF=function(){if(Ef>=0&&Ef<Eh-EB){var e={entryType:"first-input",name:Ed.type,target:Ed.target,cancelable:Ed.cancelable,startTime:Ed.timeStamp,processingStart:Ed.timeStamp+Ef};E_.forEach(function(t){t(e)}),E_=[]}},Ej=function(e){if(e.cancelable){var t,n,r,o=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){EV(o,e),r()},n=function(){r()},r=function(){removeEventListener("pointerup",t,Ek),removeEventListener("pointercancel",n,Ek)},addEventListener("pointerup",t,Ek),addEventListener("pointercancel",n,Ek)):EV(o,e)}},EG=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,Ej,Ek)})},EH=[100,300],EY=0,Ez=1/0,EW=0,E$=function(e){e.forEach(function(e){e.interactionId&&(Ez=Math.min(Ez,e.interactionId),EY=(EW=Math.max(EW,e.interactionId))?(EW-Ez)/7+1:0)})},EK=function(){return EE?EY:performance.interactionCount||0},EX=function(){"interactionCount"in performance||EE||(EE=Ey("event",E$,{type:"event",buffered:!0,durationThreshold:0}))},Eq=[200,500],EJ=0,EZ=function(){return EK()-EJ},EQ=[],E0={},E1=function(e){var t=EQ[EQ.length-1],n=E0[e.interactionId];if(n||EQ.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};E0[r.id]=r,EQ.push(r)}EQ.sort(function(e,t){return t.latency-e.latency}),EQ.splice(10).forEach(function(e){delete E0[e.id]})}},E2=[2500,4e3],E3={};let E4={};function E5(e,t,n){if(E4[t])return;E4[t]=!0;let r=n.value,o=Date.now(),i=e.startSpan("webvitals",{startTime:o});i.setAttribute(t,r),i.end(o)}let E6="longtask",E8="browser-longtask",E7="post-doc-load-resource",E9=["img","script"],me=e=>e instanceof HTMLScriptElement||e instanceof HTMLImageElement;class mt extends s1{constructor(e={}){let t=Object.assign({},{allowedInitiatorTypes:E9},e);super(E7,_9,t),this.config=t,this.urlToContextMap={}}init(){}enable(){window.PerformanceObserver&&window.addEventListener("load",()=>{this._startPerformanceObserver()}),window.MutationObserver&&this._startHeadMutationObserver()}disable(){this.performanceObserver&&this.performanceObserver.disconnect(),this.headMutationObserver&&this.headMutationObserver.disconnect()}onBeforeContextChange(){this._processHeadMutationObserverRecords(this.headMutationObserver.takeRecords())}_startPerformanceObserver(){this.performanceObserver=new PerformanceObserver(e=>
16{"complete"===window.document.readyState&&e.getEntries().forEach(e=>{this.config.allowedInitiatorTypes.includes(e.initiatorType)&&this._createSpan(e)})}),this.performanceObserver.observe({entryTypes:["resource"]})}_startHeadMutationObserver(){this.headMutationObserver=new MutationObserver(this._processHeadMutationObserverRecords.bind(this)),this.headMutationObserver.observe(document.head,{childList:!0})}_processHeadMutationObserverRecords(e){tm.active()!==eg&&e.flatMap(e=>Array.from(e.addedNodes||[])).filter(me).forEach(e=>{try{let t=e.getAttribute("src");if(!t)return;let n=new URL(t,location.origin);this.urlToContextMap[n.toString()]=tm.active()}catch(e){}})}_createSpan(e){if(hg(e.name,this.config.ignoreUrls))return;let t=new URL(e.name,location.origin),n=this.tracer.startSpan("resourceFetch",{startTime:e.fetchStart},this.urlToContextMap[t.toString()]);n.setAttribute("component",E7),n.setAttribute(rj.HTTP_URL,e.name),n.setAttribute(rj.HTTP_METHOD,"GET"),_i(n,e);let r=e.responseEnd;r&&r>0?n.end(r):n.end()}}class mn extends _r{shutdown(){return new Promise(e=>{tD.disable(),tm.disable(),tU.disable(),e()}).then(()=>super.shutdown())}}class mr{constructor(){this.events={}}addEventListener(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t)}removeEventListener(e,t){if(!this.events[e])return;let n=this.events[e].indexOf(t);n>=0&&this.events[e].splice(n,1)}emit(e,t){let n=this.events[e];n&&n.forEach(e=>{Promise.resolve({payload:t}).then(e)})}}let mo="__splunk_context";class mi{constructor(e={}){this._config=e,this._enabled=!1,this._currentContext=eg,this._hashChangeContext=null,this._contextResumingListeners=new WeakMap,this._messagePorts=new WeakMap}_bindFunction(e,t=eg){let n=this,r=function(...r){return n.with(t,()=>e.apply(this,r))};return Object.defineProperty(r,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),r}active(){return this._currentContext}bind(e,t){return _J(t)?this._bindFunction(t,e):t}disable(){return this._enabled&&(this._config.async&&(this._unpatchTimeouts(),this._unpatchPromise(),this._unpatchMutationObserver(),this._unpatchEvents(),this._unpatchMessageChannel()),this._currentContext=eg,this._enabled=!1),this}enable(){return this._enabled||(this._config.async&&(this._patchTimeouts(),this._patchPromise(),this._patchMutationObserver(),this._patchEvents(),this._patchMessageChannel()),this._enabled=!0,this._currentContext=eg),this}bindActiveToArgument(e,t){_J(e[t])&&(e[t]=this.bind(this.active(),e[t]))}_patchTimeouts(){let e=this;_Z(window,"setTimeout",t=>function(...n){return(!n[1]||n[1]<=34)&&e.bindActiveToArgument(n,0),t.apply(this,n)}),window.setImmediate&&_Z(window,"setImmediate",t=>function(...n){return e.bindActiveToArgument(n,0),t.apply(this,n)}),window.requestAnimationFrame&&_Z(window,"requestAnimationFrame",t=>function(...n){return e.bindActiveToArgument(n,0),t.apply(this,n)})}_unpatchTimeouts(){sX.unwrap(window,"setTimeout"),window.setImmediate&&sX.unwrap(window,"setImmediate")}_patchPromise(){if(!window.Promise)return;let e=this;_Z(Promise.prototype,"then",t=>function(...n){return e.bindActiveToArgument(n,0),e.bindActiveToArgument(n,1),t.apply(this,n)}),_Z(Promise.prototype,"catch",t=>function(...n){return e.bindActiveToArgument(n,0),t.apply(this,n)}),_Z(Promise.prototype,"finally",t=>function(...n){return e.bindActiveToArgument(n,0),t.apply(this,n)})}_unpatchPromise(){window.Promise&&(sX.unwrap(Promise.prototype,"then"),sX.unwrap(Promise.prototype,"catch"),sX.unwrap(Promise.prototype,"finally"))}_patchMutationObserver(){let e=this;_Z(window,"MutationObserver",t=>class extends t{constructor(...t){if(_J(t[0])){let n=t[0];t[0]=function(...t){return this[mo]&&e._enabled?e.with(this[mo],n,this,...t):n.apply(this,t)}}super(...t),Object.defineProperty(this,mo,{value:null,writable:!0,enumerable:!1})}observe(...t){if(t[0]&&t[0]instanceof Text&&!t[0].parentNode&&t[1]&&t[1].characterData){let n=this,r=t[0],o=Object.getOwnPropertyDescriptor(CharacterData.prototype,"data");Object.defineProperty(r,"data",Object.assign(Object.assign({},o),{enumerable:!1,set:function(...t){let r=e.active();return r&&(n[mo]=r),o.set.apply(this,t)}}))}return super.observe(...t)}})}_unpatchMutationObserver(){sX.unwrap(window,"MutationObserver")}_getListenersMap(e,t){this._contextResumingListeners.has(e)||this._contextResumingListeners.set(e,new Map);let n=this._contextResumingListeners.get(e);return n.has(t)||n.set(t,new WeakMap),n.get(t)}_patchEvents(){let e=this;_Z(XMLHttpRequest.prototype,"addEventListener",t=>function(...n){if(_J(n[1])){let t=e._getListenersMap(this,n[0]),r=t.get(n[1]);r||(r=e.bind(e.active(),n[1]),t.set(n[1],r)),n[1]=r}return t.apply(this,n)}),_Z(XMLHttpRequest.prototype,"removeEventListener",t=>function(...n){if(_J(n[1])){let t=e._getListenersMap(this,n[0]).get(n[1]);t&&(n[1]=t)}return t.apply(this,n)}),["onabort","onerror","onload","onloadend","onloadstart","onprogress","ontimeout"].forEach(t=>{let n=Object.getOwnPropertyDescriptor(XMLHttpRequestEventTarget.prototype,t);n&&(_Z(n,"get",e=>function(){let t=e.call(this);return _J(t)&&t._orig?t._orig:t}),_Z(n,"set",t=>function(n){if(_J(n)){let t=n,r=e.bind(e.active(),n);r._orig=t,n=r}return t.call(this,n)}),Object.defineProperty(XMLHttpRequestEventTarget.prototype,t,n))}),_Z(Window.prototype,"addEventListener",t=>function(...n){if("hashchange"===n[0]&&_J(n[1])){let t=e._getListenersMap(this,n[0]),r=t.get(n[1]);r||(r=e._getWrappedEventListener(n[1],()=>e._hashChangeContext),t.set(n[1],r)),n[1]=r}return t.apply(this,n)});let t=Object.getOwnPropertyDescriptor(window,"onhashchange");_Z(t,"get",e=>function(){let t=e.call(this);return _J(t)&&t._orig?t._orig:t}),_Z(t,"set",t=>function(n){if(_J(n)){let t=e._getWrappedEventListener(n,()=>e._hashChangeContext);t._orig=n,n=t}return t.call(this,n)}),Object.defineProperty(window,"onhashchange",t)}_unpatchEvents(){sX.unwrap(XMLHttpRequest.prototype,"addEventListener"),sX.unwrap(XMLHttpRequest.prototype,"removeEventListener")}_patchMessageChannel(){let e=this;
16_Z(window,"MessageChannel",t=>class extends t{constructor(...t){super(...t),e._messagePorts.set(this.port1,this.port2),e._messagePorts.set(this.port2,this.port1),Object.defineProperty(this.port1,mo,{value:null,writable:!0,enumerable:!1}),Object.defineProperty(this.port2,mo,{value:null,writable:!0,enumerable:!1})}}),_Z(MessagePort.prototype,"postMessage",t=>function(...n){let r=e.active();if(!e._messagePorts.has(this)||!r)return t.apply(this,n);let o=e._messagePorts.get(this);o[mo]=r;let i=t.apply(this,n);return _Q(setTimeout)(()=>{o[mo]===r&&(o[mo]=null)},100),i}),_Z(MessagePort.prototype,"addEventListener",t=>function(...n){if("message"===n[0]&&_J(n[1])){let t=e._getListenersMap(this,n[0]),r=t.get(n[1]);r||(r=e._getWrappedEventListener(n[1],()=>this[mo]),t.set(n[1],r)),n[1]=r}return t.apply(this,n)}),_Z(MessagePort.prototype,"removeEventListener",t=>function(...n){if("message"===n[0]&&_J(n[1])){let t=e._getListenersMap(this,n[0]).get(n[1]);t&&(n[1]=t)}return t.apply(this,n)});let t=Object.getOwnPropertyDescriptor(MessagePort.prototype,"onmessage");_Z(t,"get",e=>function(){let t=e.call(this);return _J(t)&&t._orig?t._orig:t}),_Z(t,"set",t=>function(n){if(_J(n)){let t=e._getWrappedEventListener(n,()=>this[mo]);t._orig=n,n=t}return t.call(this,n)}),Object.defineProperty(MessagePort.prototype,"onmessage",t)}_getWrappedEventListener(e,t){let n=this;return function(...r){let o=t();return o&&n._enabled?n.with(o,e,this,...r):e.apply(this,r)}}_unpatchMessageChannel(){sX.unwrap(window,"MessageChannel"),sX.unwrap(MessagePort.prototype,"postMessage"),sX.unwrap(MessagePort.prototype,"addEventListener"),sX.unwrap(MessagePort.prototype,"removeEventListener");let e=Object.getOwnPropertyDescriptor(MessagePort.prototype,"onmessage");sX.unwrap(e,"get"),sX.unwrap(e,"set"),Object.defineProperty(MessagePort.prototype,"onmessage",e)}with(e,t,n,...r){var o,i,a,s;try{null==(i=(o=this._config).onBeforeContextStart)||i.call(o)}catch(e){}let u=this._currentContext;this._currentContext=e||eg;let c=location.hash;try{let e=t.call(n,...r);return null==(s=(a=this._config).onBeforeContextEnd)||s.call(a),e}finally{this._currentContext=u,c!==location.hash&&(this._hashChangeContext=e,_Q(setTimeout)(()=>{this._hashChangeContext===e&&(this._hashChangeContext=null)},33))}}}class ma{constructor(e){this._globalAttributes=null!=e?e:{}}setGlobalAttributes(e){if(e)Object.assign(this._globalAttributes,e);else for(let e of Object.keys(this._globalAttributes))delete this._globalAttributes[e]}getGlobalAttributes(){return this._globalAttributes}forceFlush(){return Promise.resolve()}onStart(e){e.setAttribute("location.href",location.href),e.setAttributes(this._globalAttributes)}onEnd(){}shutdown(){return Promise.resolve()}}let ms="messaging.socket.io.namespace",mu="messaging.socket.io.event_name",mc=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];class ml extends hB{constructor(e,t){super(e,t)}onInit(e){!0!==(null==e?void 0:e.disableAutoFlushOnDocumentHide)&&"undefined"!=typeof document&&(this._visibilityChangeListener=()=>{"hidden"===document.visibilityState&&this.forceFlush().catch(e=>fA(e))},this._pageHideListener=()=>{this.forceFlush().catch(e=>fA(e))},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}}var mp=u(function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}),md="object"==typeof s&&s&&s.Object===Object&&s,mf="object"==typeof self&&self&&self.Object===Object&&self,mh=(md||mf||Function("return this")()).Symbol,m_=Object.prototype,mE=m_.hasOwnProperty,mm=m_.toString,mg=mh?mh.toStringTag:void 0,mS=Object.prototype.toString,mv=function(e){var t=mE.call(e,mg),n=e[mg];try{e[mg]=void 0;var r=!0}catch(e){}var o=mm.call(e);return r&&(t?e[mg]=n:delete e[mg]),o},mT=mh?mh.toStringTag:void 0,my=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":mT&&mT in Object(e)?mv(e):mS.call(e)},mb=(mP=Object.getPrototypeOf,mD=Object,function(e){return mP(mD(e))}),mA=function(e){return null!=e&&"object"==typeof e},mR=Object.prototype,mO=Function.prototype.toString,mN=mR.hasOwnProperty,mI=mO.call(Object),mC=u(function(e){if(!mA(e)||"[object Object]"!=my(e))return!1;var t=mb(e);if(null===t)return!0;var n=mN.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&mO.call(n)==mI}),mM=Array.isArray,mL=u(function(e){return"string"==typeof e||!mM(e)&&mA(e)&&"[object String]"==my(e)});let mw="console";(mx=mk||(mk={})).COMPONENT="component",mx.HTTP_ERROR_NAME="http.error_name",mx.HTTP_STATUS_TEXT="http.status_text";var mP,mD,mx,mU,mk,mB,mV,mF="0.51.1",mj=(mU=function(e,t){return(mU=Object.
16setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}mU(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),mG="object"==typeof r&&"node"===(null==(mB=r.release)?void 0:mB.name),mH=function(e){function t(t){var n=e.call(this,"@opentelemetry/instrumentation-fetch",mF,t)||this;return n.component="fetch",n.version=mF,n.moduleName=n.component,n._usedResources=new WeakSet,n._tasksCount=0,n}return mj(t,e),t.prototype.init=function(){},t.prototype._getConfig=function(){return this._config},t.prototype._addChildSpan=function(e,t){var n=this.tracer.startSpan("CORS Preflight",{startTime:t[h1.FETCH_START]},tU.setSpan(tm.active(),e));this._getConfig().ignoreNetworkEvents||_i(n,t),n.end(t[h1.RESPONSE_END])},t.prototype._addFinalSpanAttributes=function(e,t){var n=_u(t.url);e.setAttribute(rj.HTTP_STATUS_CODE,t.status),null!=t.statusText&&e.setAttribute(mk.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(rj.HTTP_HOST,n.host),e.setAttribute(rj.HTTP_SCHEME,n.protocol.replace(":","")),"undefined"!=typeof navigator&&e.setAttribute(rj.HTTP_USER_AGENT,navigator.userAgent)},t.prototype._addHeaders=function(e,t){if(!_c(t,this._getConfig().propagateTraceHeaderCorsUrls)){var n={};return tD.inject(tm.active(),n),void(Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}e instanceof Request?tD.inject(tm.active(),e.headers,{set:function(e,t,n){return e.set(t,"string"==typeof n?n:String(n))}}):e.headers instanceof Headers?tD.inject(tm.active(),e.headers,{set:function(e,t,n){return e.set(t,"string"==typeof n?n:String(n))}}):e.headers instanceof Map?tD.inject(tm.active(),e.headers,{set:function(e,t,n){return e.set(t,"string"==typeof n?n:String(n))}}):(n={},tD.inject(tm.active(),n),e.headers=Object.assign({},n,e.headers||{}))},t.prototype._clearResources=function(){0===this._tasksCount&&this._getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},t.prototype._createSpan=function(e,t){var n;if(void 0===t&&(t={}),!hg(e,this._getConfig().ignoreUrls)){var r=(t.method||"GET").toUpperCase(),o="HTTP "+r;return this.tracer.startSpan(o,{kind:to.CLIENT,attributes:((n={})[mk.COMPONENT]=this.moduleName,n[rj.HTTP_METHOD]=r,n[rj.HTTP_URL]=e,n)})}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._findResourceAndAddNetworkEvents=function(e,t,n){var r=t.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType("resource")}var o=_s(t.spanUrl,t.startTime,n,r,this._usedResources,"fetch");if(o.mainRequest){var i=o.mainRequest;this._markResourceAsUsed(i);var a=o.corsPreFlightRequest;a&&(this._addChildSpan(e,a),this._markResourceAsUsed(a)),this._getConfig().ignoreNetworkEvents||_i(e,i)}},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._endSpan=function(e,t,n){var r=this,o=fF(Date.now()),i=fG();this._addFinalSpanAttributes(e,n),setTimeout(function(){var n;null==(n=t.observer)||n.disconnect(),r._findResourceAndAddNetworkEvents(e,t,i),r._tasksCount--,r._clearResources(),e.end(o)},300)},t.prototype._patchConstructor=function(){var e=this;return function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=this,i=_u(n[0]instanceof Request?n[0].url:String(n[0])).href,a=n[0]instanceof Request?n[0]:n[1]||{},s=e._createSpan(i,a);if(!s)return t.apply(this,n);var u=e._prepareSpanData(i);function c(t,n){e._applyAttributesAfterFetch(t,a,n),e._endSpan(t,u,{status:n.status||0,statusText:n.message,url:i})}function l(t,n){e._applyAttributesAfterFetch(t,a,n),n.status>=200&&n.status<400?e._endSpan(t,u,n):e._endSpan(t,u,{status:n.status,statusText:n.statusText,url:i})}function p(e,t,n){try{var r=n.clone(),o=n.clone(),i=r.body;if(i){var a=i.getReader(),s=function(){a.read().then(function(t){t.done?l(e,o):s()},function(t){c(e,t)})};s()}else l(e,n)}finally{t(n)}}
16function d(e,t,n){try{c(e,n)}finally{t(n)}}return new Promise(function(n,r){return tm.with(tU.setSpan(tm.active(),s),function(){return e._addHeaders(a,i),e._tasksCount++,t.apply(o,a instanceof Request?[a]:[i,a]).then(p.bind(o,s,n),d.bind(o,s,r))})})}}},t.prototype._applyAttributesAfterFetch=function(e,t,n){var r=this,o=this._getConfig().applyCustomAttributesOnSpan;o&&s3(function(){return o(e,t,n)},function(e){e&&r._diag.error("applyCustomAttributesOnSpan",e)},!0)},t.prototype._prepareSpanData=function(e){var t=fG(),n=[];if("function"!=typeof PerformanceObserver)return{entries:n,startTime:t,spanUrl:e};var r=new PerformanceObserver(function(t){t.getEntries().forEach(function(t){"fetch"===t.initiatorType&&t.name===e&&n.push(t)})});return r.observe({entryTypes:["resource"]}),{entries:n,observer:r,startTime:t,spanUrl:e}},t.prototype.enable=function(){mG?this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()"):(s4(fetch)&&(this._unwrap(fw,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(fw,"fetch",this._patchConstructor()))},t.prototype.disable=function(){mG||(this._unwrap(fw,"fetch"),this._usedResources=new WeakSet)},t}(s1);(mY=mV||(mV={})).METHOD_OPEN="open",mY.METHOD_SEND="send",mY.EVENT_ABORT="abort",mY.EVENT_ERROR="error",mY.EVENT_LOAD="loaded",mY.EVENT_TIMEOUT="timeout";var mY,mz,mW="0.51.1";(mz||(mz={})).HTTP_STATUS_TEXT="http.status_text";var m$=(m5=function(e,t){return(m5=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}m5(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),mK=function(e){function t(t){var n=e.call(this,"@opentelemetry/instrumentation-xml-http-request",mW,t)||this;return n.component="xml-http-request",n.version=mW,n.moduleName=n.component,n._tasksCount=0,n._xhrMem=new WeakMap,n._usedResources=new WeakSet,n}return m$(t,e),t.prototype.init=function(){},t.prototype._getConfig=function(){return this._config},t.prototype._addHeaders=function(e,t){if(!_c(_u(t).href,this._getConfig().propagateTraceHeaderCorsUrls)){var n={};return tD.inject(tm.active(),n),void(Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}var r={};tD.inject(tm.active(),r),Object.keys(r).forEach(function(t){e.setRequestHeader(t,String(r[t]))})},t.prototype._addChildSpan=function(e,t){var n=this;tm.with(tU.setSpan(tm.active(),e),function(){var e=n.tracer.startSpan("CORS Preflight",{startTime:t[h1.FETCH_START]});n._getConfig().ignoreNetworkEvents||_i(e,t),e.end(t[h1.RESPONSE_END])})},t.prototype._addFinalSpanAttributes=function(e,t,n){if("string"==typeof n){var r=_u(n);void 0!==t.status&&e.setAttribute(rj.HTTP_STATUS_CODE,t.status),void 0!==t.statusText&&e.setAttribute(mz.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(rj.HTTP_HOST,r.host),e.setAttribute(rj.HTTP_SCHEME,r.protocol.replace(":","")),e.setAttribute(rj.HTTP_USER_AGENT,navigator.userAgent)}},t.prototype._applyAttributesAfterXHR=function(e,t){var n=this,r=this._getConfig().applyCustomAttributesOnSpan;"function"==typeof r&&s3(function(){return r(e,t)},function(e){e&&n._diag.error("applyCustomAttributesOnSpan",e)},!0)},t.prototype._addResourceObserver=function(e,t){var n=this._xhrMem.get(e);n&&"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&(n.createdResources={observer:new PerformanceObserver(function(e){var r=e.getEntries(),o=_u(t);r.forEach(function(e){"xmlhttprequest"===e.initiatorType&&e.name===o.href&&n.createdResources&&n.createdResources.entries.push(e)})}),entries:[]},n.createdResources.observer.observe({entryTypes:["resource"]}))},t.prototype._clearResources=function(){0===this._tasksCount&&this._getConfig().clearTimingResources&&(fB.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},t.prototype._findResourceAndAddNetworkEvents=function(e,t,n,r,o){if(n&&r&&o&&e.createdResources){var i=e.createdResources.entries;i&&i.length||(i=fB.getEntriesByType("resource"));var a=_s(_u(n).href,r,o,i,this._usedResources);if(a.mainRequest){var s=a.mainRequest;this._markResourceAsUsed(s);var u=a.corsPreFlightRequest;u&&(this._addChildSpan(t,u),this._markResourceAsUsed(u)),this._getConfig().ignoreNetworkEvents||_i(t,s)}}},t.prototype._cleanPreviousSpanInformation=function(e){var t=this._xhrMem.get(e);if(t){var n=t.callbackToRemoveEvents;n&&n(),this._xhrMem.delete(e)}},t.prototype._createSpan=function(e,t,n){var r;
16if(!hg(t,this._getConfig().ignoreUrls)){var o=n.toUpperCase(),i=this.tracer.startSpan(o,{kind:to.CLIENT,attributes:((r={})[rj.HTTP_METHOD]=n,r[rj.HTTP_URL]=_u(t).toString(),r)});return i.addEvent(mV.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:i,spanUrl:t}),i}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._patchOpen=function(){var e=this;return function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n[0],i=n[1];return e._createSpan(this,i,o),t.apply(this,n)}}},t.prototype._patchSend=function(){var e=this;function t(t,n){var r=e._xhrMem.get(n);if(r){r.status=n.status,r.statusText=n.statusText,e._xhrMem.delete(n),r.span&&e._applyAttributesAfterXHR(r.span,n);var o=fG(),i=Date.now();setTimeout(function(){var n,a,s,u;"function"==typeof(n=r.callbackToRemoveEvents)&&n(),a=r.span,s=r.spanUrl,u=r.sendStartTime,a&&(e._findResourceAndAddNetworkEvents(r,a,s,u,o),a.addEvent(t,i),e._addFinalSpanAttributes(a,r,s),a.end(i),e._tasksCount--),e._clearResources()},300)}}function n(){t(mV.EVENT_ERROR,this)}function r(){t(mV.EVENT_ABORT,this)}function o(){t(mV.EVENT_TIMEOUT,this)}function i(){this.status<299?t(mV.EVENT_LOAD,this):t(mV.EVENT_ERROR,this)}return function(t){return function(){for(var a=this,s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];var c=e._xhrMem.get(this);if(!c)return t.apply(this,s);var l=c.span,p=c.spanUrl;return l&&p&&tm.with(tU.setSpan(tm.active(),l),function(){e._tasksCount++,c.sendStartTime=fG(),l.addEvent(mV.METHOD_SEND),a.addEventListener("abort",r),a.addEventListener("error",n),a.addEventListener("load",i),a.addEventListener("timeout",o),c.callbackToRemoveEvents=function(){var t;a.removeEventListener("abort",r),a.removeEventListener("error",n),a.removeEventListener("load",i),a.removeEventListener("timeout",o),(t=e._xhrMem.get(a))&&(t.callbackToRemoveEvents=void 0),c.createdResources&&c.createdResources.observer.disconnect()},e._addHeaders(a,p),e._addResourceObserver(a,p)}),t.apply(this,s)}}},t.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),s4(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),s4(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())},t.prototype.disable=function(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet},t}(s1);let mX={app:"unknown-browser-app",url:void 0,bufferTimeout:4e3,bufferSize:50,instrumentations:{},exporter:{factory:e=>new _K({url:e.url,headers:{authorization:e.authHeader}})},spanProcessor:{factory:(e,t)=>new ml(e,t)},apiKey:void 0};function mq(e,t,n){!(t in e)||n in e&&e[n]!==mX[n]||(e[n]=e[t])}let mJ=[{Instrument:class extends _d{constructor(e={}){super(e);let t=this._endSpan.bind(this);this._endSpan=(e,n,r)=>{var o;if(e&&e.setAttribute("component",this.component),e&&"documentLoad"!==e.name){if("documentFetch"===e.name&&!r.serverTiming&&performance.getEntriesByType){let e=performance.getEntriesByType("navigation");(null==(o=e[0])?void 0:o.serverTiming)&&(r.serverTiming=e[0].serverTiming)}!function(e,t){if(e.serverTiming)for(let n of e.serverTiming)"traceparent"===n.name&&n.description&&_f(n.description.match(_E),t)}(r,e),e.setAttribute(rj.HTTP_METHOD,"GET")}return e&&"documentLoad"===e.name&&function(e){document.referrer&&""!==document.referrer&&e.setAttribute("document.referrer",document.referrer),window.screen&&e.setAttribute("screen.xy",window.screen.width+"x"+window.screen.height)}(e),t(e,n,r)};let n=this._initResourceSpan.bind(this);this._initResourceSpan=(t,r)=>{-1!==_m.indexOf(t.initiatorType)||hg(t.name,e.ignoreUrls)||n(t,r)}}},confKey:"document",disable:!1},{Instrument:class extends mK{constructor(e={}){super(e);let t=this._createSpan.bind(this);this._createSpan=(n,r,o)=>{var i;let a=t(n,r,o);return a&&((null==(i=e.advancedNetworkCapture)?void 0:i.call(e))&&n.addEventListener("readystatechange",function(){if(n.readyState===n.OPENED)sX.wrap(n,"setRequestHeader",e=>function(t,n){return _0("request",[t])(a,()=>n),e.apply(this,arguments)}),sX.wrap(n,"send",e=>function(t){return t&&a.setAttribute("http.request.body",t.toString()),e.apply(this,arguments)});else if(n.readyState===n.DONE){let e=n.getAllResponseHeaders().split("\r\n").reduce((e,t)=>
16{let[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{});_0("response",Object.keys(e))(a,t=>e[t]);try{a.setAttribute("http.response.body",n.responseText)}catch(e){}sX.unwrap(n,"setRequestHeader"),sX.unwrap(n,"send")}}),n.addEventListener("readystatechange",function(){if(n.readyState===n.HEADERS_RECEIVED&&-1!==n.getAllResponseHeaders().toLowerCase().indexOf("server-timing")){let e=n.getResponseHeader("server-timing");null!==e&&__(e,a)}}),a.setAttribute("component",this.moduleName),a.updateName(`HTTP ${o.toUpperCase()}`)),a};let n=this._addResourceObserver.bind(this);this._addResourceObserver=(e,t)=>{"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&n(e,t)}}},confKey:"xhr",disable:!1},{Instrument:class extends _y{constructor(e={}){if(!e.eventNames){let t=Object.entries(Object.assign({},_b,e.events)).filter(([e,t])=>t).map(([e])=>e);e.eventNames=t}super(e),this._routingTracer=tU.getTracer(_R,"1");let t=this._createSpan.bind(this);this._createSpan=(e,n,r)=>{e===document&&(e=document.documentElement);let o=t(e,n,r);return o&&o.setAttribute("component",this.moduleName),o};let n=this._patchAddEventListener.bind(this);this._patchAddEventListener=()=>{let e=n();return t=>{let n=e(t);return function(e,r,o){return r&&("function"==typeof r||"object"==typeof r&&"function"==typeof r.handleEvent)?(null===o&&(o=void 0),n.call(this,e,r,o)):t.call(this,e,r,o)}}}}setTracerProvider(e){super.setTracerProvider(e),this._routingTracer=e.getTracer(_R,"1")}getZoneWithPrototype(){}enable(){this.__hashChangeHandler=e=>{this._emitRouteChangeSpan(e.oldURL)},window.addEventListener("hashchange",this.__hashChangeHandler),super.enable()}disable(){super.disable(),window.removeEventListener("hashchange",this.__hashChangeHandler)}_patchHistoryMethod(){let e=this;return t=>function(...n){let r=location.href,o=t.apply(this,n);return r!==location.href&&e._emitRouteChangeSpan(r),o}}_emitRouteChangeSpan(e){let t=Date.now(),n=this._routingTracer.startSpan("routeChange",{startTime:t});n.setAttribute("component",this.moduleName),n.setAttribute("prev.href",e),n.end(t)}},confKey:"interactions",disable:!1},{Instrument:mt,confKey:"postload",disable:!1},{Instrument:class extends mH{constructor(e={}){let t=e.applyCustomAttributesOnSpan;e.applyCustomAttributesOnSpan=function(n,r,o){var i;if(n.updateName(`HTTP ${(r.method||"GET").toUpperCase()}`),n.setAttribute("component","fetch"),(null==(i=e.advancedNetworkCapture)?void 0:i.call(e))&&n&&(r.headers&&_0("request",Object.keys(r.headers))(n,e=>{var t;return null==(t=r.headers)?void 0:t[e]}),r.body&&(r.body instanceof ReadableStream?n.setAttribute("http.request.body","[ReadableStream]"):n.setAttribute("http.request.body",r.body.toString())),o instanceof Response)){if(o.headers){let e=[];o.headers.forEach((t,n)=>{e.push(n)}),_0("response",e)(n,e=>{var t;return null!=(t=o.headers.get(e))?t:""})}o.clone().text().then(e=>{n.setAttribute("http.response.body",e)}).catch(()=>{})}if(n&&o instanceof Response&&o.headers){let e=o.headers.get("Server-Timing");e&&__(e,n)}t&&t(n,r,o)},super(e)}enable(){window.fetch&&super.enable()}},confKey:"fetch",disable:!1},{Instrument:class extends s1{constructor(e){super("splunk-websocket",_9,e),this.listener2ws2patched=new WeakMap,this._config=e}init(){}enable(){let e=this;sX.wrap(window,"WebSocket",function(){class t extends WebSocket{constructor(t,n){if(hg(t,e._config.ignoreUrls))return void super(t,n);let r=e.tracer.startSpan("connect",{kind:to.CLIENT,attributes:{component:"websocket"}});t&&r.setAttribute("http.url",t),n&&("string"==typeof n?r.setAttribute("protocols",n):r.setAttribute("protocols",JSON.stringify(n)));try{super(t,n)}catch(t){throw e.endSpanExceptionally(r,t),t}this.addEventListener("open",function(){r.end()}),this.addEventListener("error",function(t){r.isRecording()?e.endSpanExceptionally(r,Error(t.error||t.message||"Could not connect.")):e.startSpan(this,"error",to.CLIENT).end()}),e.patchSend(this),e.patchEventListener(this)}}return t})}disable(){sX.unwrap(window,"WebSocket")}startSpan(e,t,n){let r=this.tracer.startSpan(t,{kind:n});return r.setAttribute("component","websocket"),r.setAttribute("protocol",e.protocol),r.setAttribute("http.url",e.url),r}patchSend(e){let t=this,n=e.send;e.send=function(...r){let o,i=t.startSpan(e,"send",to.PRODUCER),a=r.length>0?Ee(r[0]):void 0;i.setAttribute("http.request_content_length",a);try{o=n.apply(e,r)}catch(e){throw t.endSpanExceptionally(i,e),e}return!1===o&&t.endSpanExceptionally(i,Error("Failed to send frame.")),i.end(),o}}addPatchedListener(e,t,n){let r=this.listener2ws2patched.get(t);return r||(r=new Map,this.listener2ws2patched.set(t,r)),!r.has(e)&&(r.set(e,n),!0)}removePatchedListener(e,t){let n=this.listener2ws2patched.get(t);if(!n)return;let r=n.get(e);return r&&(n.delete(e),0===n.size&&this.listener2ws2patched.delete(e)),r}patchEventListener(e){let t=this,n=e.addEventListener.bind(e);
16e.addEventListener=function(r,o,i){if("message"!==r)return void n(r,o,i);let a="boolean"==typeof i||null==i?void 0:i.once,s=function(...n){let r=this;a&&t.removePatchedListener(e,o);let i=t.startSpan(e,"onmessage",to.CONSUMER);n&&n[0]&&n[0].data&&i.setAttribute("http.response_content_length",Ee(n[0].data)),tm.with(tU.setSpan(tm.active(),i),()=>{let e;return e="function"==typeof o?o.apply(r,n):o.handleEvent(n[0]),i.end(),e})};t.addPatchedListener(e,o,s)&&n.apply(e,[r,s,i])};let r=e.removeEventListener;e.removeEventListener=function(n,o,i){if("message"!==n)return r.call(e,n,o,i);let a=t.removePatchedListener(e,o);return a?r.call(e,n,a,i):r.call(e,n,o,i)}}endSpanExceptionally(e,t){e.setAttribute("error",!0),e.setAttribute("error.message",t.message),e.setAttribute("error.object",t.name?t.name:t.constructor&&t.constructor.name?t.constructor.name:"Error"),e.end()}},confKey:"websocket",disable:!0},{Instrument:class extends s1{constructor(e={}){super(E8,_9,Object.assign({},e))}init(){}enable(){this.isSupported()&&(this._longtaskObserver=new PerformanceObserver(e=>{e.getEntries().forEach(e=>this._createSpanFromEntry(e))}),this._longtaskObserver.observe({type:E6,buffered:!0}))}disable(){this.isSupported()&&this._longtaskObserver.disconnect()}_createSpanFromEntry(e){let t=this.tracer.startSpan(E6,{startTime:e.startTime});t.setAttribute("component",E8),t.setAttribute("longtask.name",e.name),t.setAttribute("longtask.entry_type",e.entryType),t.setAttribute("longtask.duration",e.duration);let n=e.attribution;Array.isArray(n)&&n.forEach((e,n)=>{let r=e>1?`longtask.attribution[${n}]`:"longtask.attribution";t.setAttribute(`${r}.name`,e.name),t.setAttribute(`${r}.entry_type`,e.entryType),t.setAttribute(`${r}.start_time`,e.startTime),t.setAttribute(`${r}.duration`,e.duration),t.setAttribute(`${r}.container_type`,e.containerType),t.setAttribute(`${r}.container_src`,e.containerSrc),t.setAttribute(`${r}.container_id`,e.containerId),t.setAttribute(`${r}.container_name`,e.containerName)}),t.end(e.startTime+e.duration)}isSupported(){return(window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes||[]).includes(E6)}},confKey:"longtask",disable:!1},{Instrument:fs.HyperDXErrorInstrumentation,confKey:fs.ERROR_INSTRUMENTATION_NAME,disable:!1},{Instrument:class extends s1{constructor(e={}){super("page-visibility",_9,Object.assign({},e)),this.unloading=!1}init(){}enable(){document.hidden&&this._createSpan(document.hidden),this.unloadListener=()=>{this.unloading=!0},this.visibilityListener=()=>{this.unloading||this._createSpan(document.hidden)},window.addEventListener("beforeunload",this.unloadListener),window.addEventListener("visibilitychange",this.visibilityListener)}disable(){window.removeEventListener("beforeunload",this.unloadListener),window.removeEventListener("visibilitychange",this.visibilityListener)}_createSpan(e){let t=Date.now(),n=this.tracer.startSpan("visibility",{startTime:t});n.setAttribute("hidden",e),n.end(t)}},confKey:"visibility",disable:!0},{Instrument:class extends s1{constructor(e={}){super("splunk-connectivity",_9,Object.assign({},e)),this.offlineStart=navigator.onLine?null:Date.now()}init(){}enable(){this.offlineListener=()=>{this.offlineStart=Date.now()},this.onlineListener=()=>{this.offlineStart&&(this._createSpan(!1,this.offlineStart),this._createSpan(!0,Date.now()))},window.addEventListener("offline",this.offlineListener),window.addEventListener("online",this.onlineListener)}disable(){window.removeEventListener("offline",this.offlineListener),window.removeEventListener("online",this.onlineListener)}_createSpan(e,t){let n=this.tracer.startSpan("connectivity",{startTime:t});n.setAttribute("online",e),n.end(t)}},confKey:"connectivity",disable:!0},{Instrument:class extends s1{constructor(e={}){super("splunk-socket.io-client",_9,Object.assign({target:"io"},e)),this.listeners=new WeakMap}init(){}getConfig(){return this._config}patchSocketIo(e){if("function"!=typeof e||"function"!=typeof e.Socket)return void this._diag.debug("Doesn't seem like socket.io-client",e);let t=this;this._wrap(e.Socket.prototype,"emit",e=>function(n,...r){let o=t.tracer.startSpan(`${n} send`,{kind:to.PRODUCER,attributes:{[rj.MESSAGING_SYSTEM]:"socket.io",[rj.MESSAGING_DESTINATION]:this.nsp,[rj.MESSAGING_DESTINATION_KIND]:ig.TOPIC,[ms]:this.nsp,[mu]:n}});try{return tm.with(tU.setSpan(tm.active(),o),()=>e.apply(this,[n,...r]))}catch(t){let e;throw t instanceof Error&&(o.recordException(t),e=t.message),o.setStatus({code:ti.ERROR,message:e}),t}finally{o.end()}}),this._wrap(e.Socket.prototype,"on",e=>function(n,r){let o;return mc.includes(n)||"function"!=typeof r?e.call(this,n,r):(t.listeners.has(r)?o=t.listeners.get(r):(o=function(...e){let o=t.tracer.startSpan(`${n} ${iT.RECEIVE}`,{kind:to.CONSUMER,attributes:{[rj.MESSAGING_SYSTEM]:"socket.io",[rj.MESSAGING_DESTINATION]:this.nsp,[rj.MESSAGING_DESTINATION_KIND]:ig.TOPIC,[rj.MESSAGING_OPERATION]:iT.RECEIVE,[ms]:this.nsp,[mu]:n}});try{r.call(this,e)}catch(e){throw e instanceof Error&&o.recordException(e),e}finally{o.end()}},t.listeners.set(r,o)),e.call(this,n,o))}),e.Socket.prototype.addEventListener=e.Socket.prototype.on,this._wrap(e.Socket.prototype,"off",e=>function(n,r){return!n||mc.includes(n)||"function"!=typeof r?e.call(this,n,r):t.listeners.has(r)?e.call(this,n,t.listeners.get(r)):e.call(this,n,r)}
16),e.Socket.prototype.removeListener=e.Socket.prototype.off,e.Socket.prototype.removeEventListener=e.Socket.prototype.off,e.Socket.prototype.removeAllListeners=e.Socket.prototype.off,this._onDisable=()=>{this._unwrap(e.Socket.prototype,"emit"),this._unwrap(e.Socket.prototype,"on"),e.Socket.prototype.addEventListener=e.Socket.prototype.on,this._unwrap(e.Socket.prototype,"off"),e.Socket.prototype.removeListener=e.Socket.prototype.off,e.Socket.prototype.removeEventListener=e.Socket.prototype.off,e.Socket.prototype.removeAllListeners=e.Socket.prototype.off}}enable(){let e=this.getConfig();e.target&&("string"==typeof e.target?this._onDisable=function(e,t){if(window[e])return t(window[e]),()=>{};let n=window[e],r=!1;return Object.defineProperty(window,e,{get:()=>n,set(n){delete window[e],r=!0,window[e]=n,t(n)},configurable:!0,enumerable:!1}),()=>{r||window[e]!==n||(delete window[e],void 0!==n&&(window[e]=n))}}(e.target,e=>this.patchSocketIo(e)):this.patchSocketIo(e.target))}disable(){this._onDisable&&(this._onDisable(),this._onDisable=void 0)}},confKey:"socketio",disable:!0},{Instrument:class extends s1{_createSpan(e,...t){let n=Date.now(),r=(e=>{let t,n=[];for(let r of e)if(mp(r)){null==t&&mC(r)&&(t=r);try{let e=JSON.stringify(r);null!=e&&n.push(e)}catch(e){}}else n.push(r);return t?Object.assign(Object.assign({},t),e.length>1&&{message:n.join(" ")}):n.join(" ")})(t),o=mL(r)?r:(e=>{let t="[HyperDX] Failed to stringify",n=!1;try{t=JSON.stringify(e)}catch(e){n=!0}if(n)try{t=sk(e)}catch(e){}return t})(r),i=this.tracer.startSpan(`console.${e}`,{kind:to.INTERNAL,startTime:n}),a=e;"log"===e&&(a="info"),i.setAttribute("component",mw),i.setAttribute("level",a),i.setAttribute("message",o),mC(r)&&i.setAttributes(r),i.end(n)}constructor(e={}){super(mw,_9,Object.assign({},e)),this._consoleLogHandler=e=>(...t)=>(this._createSpan("log",...t),e.apply(this,t)),this._consoleInfoHandler=e=>(...t)=>(this._createSpan("info",...t),e.apply(this,t)),this._consoleWarnHandler=e=>(...t)=>(this._createSpan("warn",...t),e.apply(this,t)),this._consoleDebugHandler=e=>(...t)=>(this._createSpan("debug",...t),e.apply(this,t))}init(){}enable(){sX.wrap(console,"debug",this._consoleDebugHandler),sX.wrap(console,"info",this._consoleInfoHandler),sX.wrap(console,"log",this._consoleLogHandler),sX.wrap(console,"warn",this._consoleWarnHandler)}disable(){sX.unwrap(console,"debug"),sX.unwrap(console,"info"),sX.unwrap(console,"log"),sX.unwrap(console,"warn")}},confKey:"console",disable:!0}];mJ.map(e=>e.confKey).reduce((e,t)=>(e[t]=!1,e),{webvitals:!1});let mZ,mQ,m0,m1,m2,m3=!1,m4={DEFAULT_AUTO_INSTRUMENTED_EVENTS:_b,DEFAULT_AUTO_INSTRUMENTED_EVENT_NAMES:_A,AlwaysOnSampler:hI,AlwaysOffSampler:hN,ParentBasedSampler:hC,SessionBasedSampler:class{constructor({ratio:e=1,sampled:t=new ht,notSampled:n=new he}={}){this._ratio=this._normalize(e),this._upperBound=Math.floor(0xffffffff*this._ratio),this._sampled=t,this._notSampled=n}shouldSample(e,t,n,r,o,i){let a=_2;return this._currentSession!==a&&(this._currentSessionSampled=this._accumulate(a)<this._upperBound,this._currentSession=a),(this._currentSessionSampled?this._sampled:this._notSampled).shouldSample(e,t,n,r,o,i)}toString(){return`SessionBased{ratio=${this._ratio}, sampled=${this._sampled.toString()}, notSampled=${this._notSampled.toString()}}`}_normalize(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){let r=8*n;t=(t^parseInt(e.slice(r,r+8),16))>>>0}return t}},get inited(){return m3},_internalInit:function(e){m4.init(Object.assign(Object.assign({},mX),e))},init:function(e){"OTEL_TRACES_EXPORTER"in fw||(fw.OTEL_TRACES_EXPORTER="none");let t=(e,t)=>"function"==typeof e&&!0!==e.__wrapped&&e.name===t,n=t(null==console?void 0:console.log,"log")?console.log:()=>{},r=t(null==console?void 0:console.warn,"warn")?console.warn:n,o=t(null==console?void 0:console.error,"error")?console.error:n,i=t(null==console?void 0:console.debug,"debug")?console.debug:n,a=t(null==console?void 0:console.trace,"trace")?console.trace:n;if(tg.setLogger({error:(...e)=>{t(o,"error")&&o(...e)},warn:(...e)=>{t(r,"warn")&&r(...e)},info:(...e)=>{t(n,"log")&&n(...e)},debug:(...e)=>{t(i,"debug")&&i(...e)}
16,verbose:(...e)=>{t(a,"trace")&&a(...e)}},{suppressOverrideMessage:!0,logLevel:(null==e?void 0:e.debug)?Q.DEBUG:Q.NONE}),"object"!=typeof window)return void tg.error("Rum: Non-browser environment detected, aborting");if("function"!=typeof Symbol)return void tg.error("Rum: browser not supported, disabling instrumentation.");m2=new mr;let s=Object.assign({},mX,(mq(e,"app","applicationName"),mq(e,"environment","deploymentEnvironment"),e),{exporter:Object.assign({},mX.exporter,e.exporter)});if(m3)return void tg.warn("Rum already init()ed.");if(!s.debug){if(!s.url)throw Error("Rum.init( {url: 'https://something'} ) is required.");if(!s.url.startsWith("https")&&!s.allowInsecureUrl)throw Error("Not using https is unsafe, if you want to force it use allowInsecureUrl option.")}let u=_X(64);mQ=function(e,t,n){n&&(_3=n),_2=e,_5=!0,_4=t,_7();let r=setInterval(()=>_7(),6e4);return["click","scroll","mousedown","keydown","touchend","visibilitychange"].forEach(e=>document.addEventListener(e,_6,{capture:!0,passive:!0})),{deinit:()=>{clearInterval(r),_2=void 0,_4=void 0}}}(u,m2,s.cookieDomain).deinit;let{ignoreUrls:c,applicationName:l,deploymentEnvironment:p,version:d}=s,f={ignoreUrls:c,enabled:!1},h=Object.assign(Object.assign({},fV),{[aG.TELEMETRY_SDK_NAME]:"@hyperdx/otel-web",[aG.TELEMETRY_SDK_VERSION]:_9,[aG.SERVICE_NAME]:l,"rum.version":_9,"rum.scriptInstance":u}),_=window.syntheticsRunId;_&&(h["Synthetics-RunId"]=_);let E=new mn(Object.assign(Object.assign({},s.tracer),{resource:new hX(h)}));Object.defineProperty(E.resource.attributes,"rum.sessionId",{get:()=>_2,configurable:!0,enumerable:!0});let m=mJ.map(({Instrument:e,confKey:t,disable:n})=>{let r=_q(s.instrumentations[t],f,n);if(r){let n=new e(r);return t===fs.ERROR_INSTRUMENTATION_NAME&&n instanceof fs.HyperDXErrorInstrumentation&&(m0=n),"postload"===t&&n instanceof mt&&(m1=n),n}return null}).filter(e=>!!e);if(this.attributesProcessor=new ma(Object.assign(Object.assign(Object.assign({},p?{environment:p,"deployment.environment":p}:{}),d?{"app.version":d}:{}),s.globalAttributes||{})),E.addSpanProcessor(this.attributesProcessor),s.url){let e=s.exporter.factory({url:s.url,onAttributesSerializing:s.exporter.onAttributesSerializing,authHeader:s.apiKey}),t=s.spanProcessor.factory(e,{scheduledDelayMillis:s.bufferTimeout,maxExportBatchSize:s.bufferSize});E.addSpanProcessor(t),this._processor=t}s.debug&&E.addSpanProcessor(new h7(new h6)),window.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&this._processor.forceFlush()}),E.register({contextManager:new mi(Object.assign(Object.assign({},s.context),{onBeforeContextStart:()=>null==m1?void 0:m1.onBeforeContextChange(),onBeforeContextEnd:()=>null==m1?void 0:m1.onBeforeContextChange()}))}),mZ=sz({tracerProvider:E,instrumentations:m}),this.provider=E,!1!==_q(s.instrumentations.webvitals)&&function(e){var t,n,r,o,i,a;let s=e.getTracer("webvitals");t=e=>
16{E5(s,"fid",e)},n=n||{},EP(function(){var e,r=Ew(),o=ET("FID"),i=function(t){t.startTime<r.firstHiddenTime&&(o.value=t.processingStart-t.startTime,o.entries.push(t),e(!0))},a=function(e){e.forEach(i)},s=Ey("first-input",a);e=Eb(t,o,EH,n.reportAllChanges),s&&ER(EO(function(){a(s.takeRecords()),s.disconnect()})),s&&Eg(function(){e=Eb(t,o=ET("FID"),EH,n.reportAllChanges),E_=[],Ef=-1,Ed=null,EG(addEventListener),E_.push(i),EF()})}),EU(e=>{E5(s,"cls",e)}),r=e=>{E5(s,"lcp",e)},o=o||{},EP(function(){var e,t=Ew(),n=ET("LCP"),i=function(r){var o=r[r.length-1];o&&o.startTime<t.firstHiddenTime&&(n.value=Math.max(o.startTime-Ev(),0),n.entries=[o],e())},a=Ey("largest-contentful-paint",i);if(a){e=Eb(r,n,E2,o.reportAllChanges);var s=EO(function(){E3[n.id]||(i(a.takeRecords()),a.disconnect(),E3[n.id]=!0,e(!0))});["keydown","click"].forEach(function(e){addEventListener(e,function(){return setTimeout(s,0)},!0)}),ER(s),Eg(function(t){e=Eb(r,n=ET("LCP"),E2,o.reportAllChanges),EA(function(){n.value=performance.now()-t.timeStamp,E3[n.id]=!0,e(!0)})})}}),i=e=>{E5(s,"inp",e)},a=a||{},EP(function(){EX();var e,t,n=ET("INP"),r=function(e){e.forEach(function(e){e.interactionId&&E1(e),"first-input"!==e.entryType||EQ.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||E1(e)});var r,o=(r=Math.min(EQ.length-1,Math.floor(EZ()/50)),EQ[r]);o&&o.latency!==n.value&&(n.value=o.latency,n.entries=o.entries,t())},o=Ey("event",r,{durationThreshold:null!=(e=a.durationThreshold)?e:40});t=Eb(i,n,Eq,a.reportAllChanges),o&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),ER(function(){r(o.takeRecords()),n.value<0&&EZ()>0&&(n.value=0,n.entries=[]),t(!0)}),Eg(function(){EQ=[],EJ=EK(),t=Eb(i,n=ET("INP"),Eq,a.reportAllChanges)}))})}(E),m3=!0,tg.info("Rum.init() complete")},deinit(){m3&&(null==mZ||mZ(),mZ=void 0,null==mQ||mQ(),mQ=void 0,this.provider.shutdown(),delete this.provider,m2=void 0,tg.disable(),m3=!1)},setGlobalAttributes(e){var t,n;null==(t=this.attributesProcessor)||t.setGlobalAttributes(e),null==m2||m2.emit("global-attributes-changed",{attributes:(null==(n=this.attributesProcessor)?void 0:n.getGlobalAttributes())||{}})},getGlobalAttributes(){var e;return(null==(e=this.attributesProcessor)?void 0:e.getGlobalAttributes())||{}},addAction(e,t){if(!m3)return void tg.debug("Rum not inited");let n=Date.now(),r=this.provider.getTracer("custom-action").startSpan(e,{startTime:n});r.setAttributes(t),r.end(n)},_experimental_getGlobalAttributes(){return this.getGlobalAttributes()},recordException(e,t){if(!m3)return void tg.debug("Rum not inited");let n=this.provider.getTracer("record-exception");return l.recordException(e,{tracer:n,attributes:t})},error(...e){m3?m0?m0.hdxReport("Rum.error",e):tg.error("Error was reported, but error instrumentation is disabled."):tg.debug("Rum not inited")},addEventListener(e,t){null==m2||m2.addEventListener(e,t)},removeEventListener(e,t){null==m2||m2.removeEventListener(e,t)},_experimental_addEventListener(e,t){return this.addEventListener(e,t)},_experimental_removeEventListener(e,t){return this.removeEventListener(e,t)},getSessionId:()=>_2,_experimental_getSessionId(){return this.getSessionId()}};var m5,m6,m8=function(){return(m8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function m7(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m9(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ge(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function gt(e){var t=null==e?void 0:e.host;return!!(t&&t.shadowRoot&&t.shadowRoot===e)}function gn(e){var t=e.maskInputOptions,n=e.tagName,r=e.type,o=e.value,i=e.maskInputFn,a=o||"";return(t[n.toLowerCase()]||t[r])&&(a=i?i(a):"*".repeat(a.length)),a}(gr=m6||(m6={}))[gr.Document=0]="Document",gr[gr.DocumentType=1]="DocumentType",gr[gr.Element=2]="Element",gr[gr.Text=3]="Text",gr[gr.CDATA=4]="CDATA",gr[gr.Comment=5]="Comment";var gr,go,gi,ga="__rrweb_original__",gs=1,gu=RegExp("[^a-z0-9-_:]");function gc(e){try{var t=e.rules||e.cssRules;return t?Array.from(t).map(gl).join(""):null}catch(e){return null}}function gl(e){var t=e.cssText;if("styleSheet"in e)try{t=gc(e.styleSheet)||t}catch(e){}return t}var gp=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,gd=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,gf=/^(data:)([^,]*),(.*)/i;function gh(e,t){return(e||"").replace(gp,function(e,n,r,o,i,a){var s=r||i||a,u=n||o||"";if(!s)return e;
16if(!gd.test(s)||gf.test(s))return"url("+u+s+u+")";if("/"===s[0])return"url("+u+((t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s)+u+")";var c=t.split("/"),l=s.split("/");c.pop();for(var p=0;p<l.length;p++){var d=l[p];"."!==d&&(".."===d?c.pop():c.push(d))}return"url("+u+c.join("/")+u+")"})}var g_,gE,gm,gg,gS,gv,gT=/^[^ \t\n\r\u000c]+/,gy=/^[, \t\n\r\u000c]+/;function gb(e,t){if(!t||""===t.trim())return t;var n=e.createElement("a");return n.href=t,n.href}function gA(){var e=document.createElement("a");return e.href="",e.href}function gR(e,t,n,r){return"src"===n||"href"===n&&r||"xlink:href"===n&&r&&"#"!==r[0]||"background"===n&&r&&("table"===t||"td"===t||"th"===t)?gb(e,r):"srcset"===n&&r?function(e,t){if(""===t.trim())return t;var n=0;function r(e){var r,o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}for(var o=[];r(gy),!(n>=t.length);){var i=r(gT);if(","===i.slice(-1))i=gb(e,i.substring(0,i.length-1)),o.push(i);else{var a="";i=gb(e,i);for(var s=!1;;){var u=t.charAt(n);if(""===u){o.push((i+a).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){n+=1,o.push((i+a).trim());break}"("===u&&(s=!0)}a+=u,n+=1}}}return o.join(", ")}(e,r):"style"===n&&r?gh(r,gA()):"object"===t&&"data"===n&&r?gb(e,r):r}function gO(e,t,n){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var r=0;r<e.classList.length;r++){var o=e.classList[r];if(t.test(o))return!0}return!(!n||!e.matches(n))||gO(e.parentNode,t,n)}return e.nodeType,e.TEXT_NODE,gO(e.parentNode,t,n)}function gN(e){return void 0===e?"":e.toLowerCase()}function gI(e,t){var n,r=t.doc,o=t.map,i=t.blockClass,a=t.blockSelector,s=t.maskTextClass,u=t.maskTextSelector,c=t.skipChild,l=void 0!==c&&c,p=t.inlineStylesheet,d=void 0===p||p,f=t.maskInputOptions,h=void 0===f?{}:f,_=t.maskTextFn,E=t.maskInputFn,m=t.slimDOMOptions,g=t.dataURLOptions,S=void 0===g?{}:g,v=t.inlineImages,T=void 0!==v&&v,y=t.recordCanvas,b=void 0!==y&&y,A=t.onSerialize,R=t.onIframeLoad,O=t.iframeLoadTimeout,N=void 0===O?5e3:O,I=t.keepIframeSrcFn,C=void 0===I?function(){return!1}:I,M=t.preserveWhiteSpace,L=void 0===M||M,w=function(e,t){var n,r,o,i=t.doc,a=t.blockClass,s=t.blockSelector,u=t.maskTextClass,c=t.maskTextSelector,l=t.inlineStylesheet,p=t.maskInputOptions,d=void 0===p?{}:p,f=t.maskTextFn,h=t.maskInputFn,_=t.dataURLOptions,E=void 0===_?{}:_,m=t.inlineImages,g=t.recordCanvas,S=t.keepIframeSrcFn;if(i.__sn){var v=i.__sn.id;r=1===v?void 0:v}switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:m6.Document,childNodes:[],compatMode:e.compatMode,rootId:r}:{type:m6.Document,childNodes:[],rootId:r};case e.DOCUMENT_TYPE_NODE:return{type:m6.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:r};case e.ELEMENT_NODE:for(var T=function(e,t,n){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var r=0;r<e.classList.length;r++){var o=e.classList[r];if(t.test(o))return!0}return!!n&&e.matches(n)}(e,a,s),y=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return gu.test(t)?"div":t}(e),b={},A=0,R=Array.from(e.attributes);A<R.length;A++){var O=R[A],N=O.name,I=O.value;b[N]=gR(i,y,N,I)}if("link"===y&&l){var C=Array.from(i.styleSheets).find(function(t){return t.href===e.href}),M=null;C&&(M=gc(C)),M&&(delete b.rel,delete b.href,b._cssText=gh(M,C.href))}if("style"===y&&e.sheet&&!(e.innerText||e.textContent||"").trim().length&&(M=gc(e.sheet))&&(b._cssText=gh(M,gA())),("input"===y||"textarea"===y||"select"===y)&&(I=e.value,"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&I?b.value=gn({type:b.type,tagName:y,value:I,maskInputOptions:d,maskInputFn:h}):e.checked&&(b.checked=e.checked)),"option"===y&&(e.selected&&!d.select?b.selected=!0:delete b.selected),"canvas"===y&&g){if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var n=0;n<e.width;n+=50)for(var r=0;r<e.height;r+=50){var o=t.getImageData;if(new Uint32Array((ga in o?o[ga]:o).call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(function(e){return 0!==e}))return!1}return!0})(e)||(b.rr_dataURL=e.toDataURL(E.type,E.quality));else if(!("__context"in e)){var L=e.toDataURL(E.type,E.quality),w=document.createElement("canvas");w.width=e.width,w.height=e.height,L!==w.toDataURL(E.type,E.quality)&&(b.rr_dataURL=L)}}if("img"===y&&m){go||(gi=(go=i.createElement("canvas")).getContext("2d"));var P=e.crossOrigin;e.crossOrigin="anonymous";
16var D=function(){try{go.width=e.naturalWidth,go.height=e.naturalHeight,gi.drawImage(e,0,0),b.rr_dataURL=go.toDataURL(E.type,E.quality)}catch(t){console.warn("Cannot inline img src="+e.currentSrc+"! Error: "+t)}P?b.crossOrigin=P:delete b.crossOrigin};e.complete&&0!==e.naturalWidth?D():e.onload=D}if("audio"!==y&&"video"!==y||(b.rr_mediaState=e.paused?"paused":"played",b.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop),T){var x=e.getBoundingClientRect(),U=x.width,k=x.height;b={class:b.class,rr_width:U+"px",rr_height:k+"px"}}return"iframe"!==y||S(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src),{type:m6.Element,tagName:y,attributes:b,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:T,rootId:r};case e.TEXT_NODE:var B=e.parentNode&&e.parentNode.tagName,V=e.textContent,F="STYLE"===B||void 0,j="SCRIPT"===B||void 0;if(F&&V){try{e.nextSibling||e.previousSibling||(null==(n=e.parentNode.sheet)?void 0:n.cssRules)&&(V=(o=e.parentNode.sheet).cssRules?Array.from(o.cssRules).map(function(e){return e.cssText||""}).join(""):"")}catch(t){console.warn("Cannot get CSS styles from text's parentNode. Error: "+t,e)}V=gh(V,gA())}return j&&(V="SCRIPT_PLACEHOLDER"),!F&&!j&&gO(e,u,c)&&V&&(V=f?f(V):V.replace(/[\S]/g,"*")),{type:m6.Text,textContent:V||"",isStyle:F,rootId:r};case e.CDATA_SECTION_NODE:return{type:m6.CDATA,textContent:"",rootId:r};case e.COMMENT_NODE:return{type:m6.Comment,textContent:e.textContent||"",rootId:r};default:return!1}}(e,{doc:r,blockClass:i,blockSelector:a,maskTextClass:s,maskTextSelector:u,inlineStylesheet:d,maskInputOptions:h,maskTextFn:_,maskInputFn:E,dataURLOptions:S,inlineImages:T,recordCanvas:b,keepIframeSrcFn:C});if(!w)return console.warn(e,"not serialized"),null;n="__sn"in e?e.__sn.id:!function(e,t){if(t.comment&&e.type===m6.Comment)return!0;if(e.type===m6.Element&&(t.script&&("script"===e.tagName||"link"===e.tagName&&"preload"===e.attributes.rel&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js"))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(gN(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===gN(e.attributes.name)||"icon"===gN(e.attributes.rel)||"apple-touch-icon"===gN(e.attributes.rel)||"shortcut icon"===gN(e.attributes.rel)))||"meta"===e.tagName&&(t.headMetaDescKeywords&&gN(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(gN(e.attributes.property).match(/^(og|twitter|fb):/)||gN(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===gN(e.attributes.name))||t.headMetaRobots&&("robots"===gN(e.attributes.name)||"googlebot"===gN(e.attributes.name)||"bingbot"===gN(e.attributes.name))||t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"]||t.headMetaAuthorship&&("author"===gN(e.attributes.name)||"generator"===gN(e.attributes.name)||"framework"===gN(e.attributes.name)||"publisher"===gN(e.attributes.name)||"progid"===gN(e.attributes.name)||gN(e.attributes.property).match(/^article:/)||gN(e.attributes.property).match(/^product:/))||t.headMetaVerification&&("google-site-verification"===gN(e.attributes.name)||"yandex-verification"===gN(e.attributes.name)||"csrf-token"===gN(e.attributes.name)||"p:domain_verify"===gN(e.attributes.name)||"verify-v1"===gN(e.attributes.name)||"verification"===gN(e.attributes.name)||"shopify-checkout-api-token"===gN(e.attributes.name)))))return!0;return!1}(w,m)&&(L||w.type!==m6.Text||w.isStyle||w.textContent.replace(/^\s+|\s+$/gm,"").length)?gs++:-2;var P=Object.assign(w,{id:n});if(e.__sn=P,-2===n)return null;o[n]=e,A&&A(e);var D=!l;if(P.type===m6.Element&&(D=D&&!P.needBlock,delete P.needBlock,e.shadowRoot&&(P.isShadowHost=!0)),(P.type===m6.Document||P.type===m6.Element)&&D){m.headWhitespace&&w.type===m6.Element&&"head"===w.tagName&&(L=!1);for(var x,U={doc:r,map:o,blockClass:i,blockSelector:a,maskTextClass:s,maskTextSelector:u,skipChild:l,inlineStylesheet:d,maskInputOptions:h,maskTextFn:_,maskInputFn:E,slimDOMOptions:m,dataURLOptions:S,inlineImages:T,recordCanvas:b,preserveWhiteSpace:L,onSerialize:A,onIframeLoad:R,iframeLoadTimeout:N,keepIframeSrcFn:C},k=0,B=Array.from(e.childNodes);k<B.length;k++)(x=gI(B[k],U))&&P.childNodes.push(x);if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(var V=0,F=Array.from(e.shadowRoot.childNodes);V<F.length;V++)(x=gI(F[V],U))&&(x.isShadow=!0,P.childNodes.push(x))}return e.parentNode&>(e.parentNode)&&(P.isShadow=!0),P.type===m6.Element&&"iframe"===P.tagName&&function(e,t,n){var r=e.contentWindow;if(r){var o,i=!1;try{o=r.document.readyState}catch(e){return}if("complete"===o){var a="about:blank";r.location.href===a&&e.src!==a&&""!==e.src?e.addEventListener("load",t):setTimeout(t,0)}else{var s=setTimeout(function(){i||(t(),i=!0)},n);e.addEventListener("load",function(){clearTimeout(s),i=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&R){var n=gI(t,{doc:t,map:o,blockClass:i,blockSelector:a,maskTextClass:s,maskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:h,maskTextFn:_,maskInputFn:E,slimDOMOptions:m,dataURLOptions:S,inlineImages:T,recordCanvas:b,preserveWhiteSpace:L,onSerialize:A,onIframeLoad:R,iframeLoadTimeout:N,keepIframeSrcFn:C});n&&R(e,n)}},N),P}
16function gC(e,t,n){void 0===n&&(n=document);var r={capture:!0,passive:!0};return n.addEventListener(e,t,r),function(){return n.removeEventListener(e,t,r)}}(Si=g_||(g_={}))[Si.DomContentLoaded=0]="DomContentLoaded",Si[Si.Load=1]="Load",Si[Si.FullSnapshot=2]="FullSnapshot",Si[Si.IncrementalSnapshot=3]="IncrementalSnapshot",Si[Si.Meta=4]="Meta",Si[Si.Custom=5]="Custom",Si[Si.Plugin=6]="Plugin",(Sa=gE||(gE={}))[Sa.Mutation=0]="Mutation",Sa[Sa.MouseMove=1]="MouseMove",Sa[Sa.MouseInteraction=2]="MouseInteraction",Sa[Sa.Scroll=3]="Scroll",Sa[Sa.ViewportResize=4]="ViewportResize",Sa[Sa.Input=5]="Input",Sa[Sa.TouchMove=6]="TouchMove",Sa[Sa.MediaInteraction=7]="MediaInteraction",Sa[Sa.StyleSheetRule=8]="StyleSheetRule",Sa[Sa.CanvasMutation=9]="CanvasMutation",Sa[Sa.Font=10]="Font",Sa[Sa.Log=11]="Log",Sa[Sa.Drag=12]="Drag",Sa[Sa.StyleDeclaration=13]="StyleDeclaration",(Ss=gm||(gm={}))[Ss.MouseUp=0]="MouseUp",Ss[Ss.MouseDown=1]="MouseDown",Ss[Ss.Click=2]="Click",Ss[Ss.ContextMenu=3]="ContextMenu",Ss[Ss.DblClick=4]="DblClick",Ss[Ss.Focus=5]="Focus",Ss[Ss.Blur=6]="Blur",Ss[Ss.TouchStart=7]="TouchStart",Ss[Ss.TouchMove_Departed=8]="TouchMove_Departed",Ss[Ss.TouchEnd=9]="TouchEnd",Ss[Ss.TouchCancel=10]="TouchCancel",(Su=gg||(gg={}))[Su["2D"]=0]="2D",Su[Su.WebGL=1]="WebGL",Su[Su.WebGL2=2]="WebGL2",(Sc=gS||(gS={}))[Sc.Play=0]="Play",Sc[Sc.Pause=1]="Pause",Sc[Sc.Seeked=2]="Seeked",Sc[Sc.VolumeChange=3]="VolumeChange",(Sl=gv||(gv={})).Start="start",Sl.Pause="pause",Sl.Resume="resume",Sl.Resize="resize",Sl.Finish="finish",Sl.FullsnapshotRebuilded="fullsnapshot-rebuilded",Sl.LoadStylesheetStart="load-stylesheet-start",Sl.LoadStylesheetEnd="load-stylesheet-end",Sl.SkipStart="skip-start",Sl.SkipEnd="skip-end",Sl.MouseInteraction="mouse-interaction",Sl.EventCast="event-cast",Sl.CustomEvent="custom-event",Sl.Flush="flush",Sl.StateChange="state-change",Sl.PlayBack="play-back";var gM="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",gL={map:{},getId:function(){return console.error(gM),-1},getNode:function(){return console.error(gM),null},removeNodeFromMap:function(){console.error(gM)},has:function(){return console.error(gM),!1},reset:function(){console.error(gM)}};function gw(e,t,n){void 0===n&&(n={});var r=null,o=0;return function(i){var a=Date.now();o||!1!==n.leading||(o=a);var s=t-(a-o),u=this,c=arguments;s<=0||s>t?(r&&(clearTimeout(r),r=null),o=a,e.apply(u,c)):r||!1===n.trailing||(r=setTimeout(function(){o=!1===n.leading?0:Date.now(),r=null,e.apply(u,c)},s))}}function gP(e,t,n,r,o){void 0===o&&(o=window);var i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set:function(e){var t=this;setTimeout(function(){n.set.call(t,e)},0),i&&i.set&&i.set.call(this,e)}}),function(){return gP(e,t,i||{},!0)}}function gD(e,t,n){try{if(!(t in e))return function(){};var r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,function(){e[t]=r}}catch(e){return function(){}}}function gx(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function gU(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function gk(e,t){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){var n=!1;if("string"==typeof t){if(void 0!==e.closest)return null!==e.closest("."+t);n=e.classList.contains(t)}else e.classList.forEach(function(e){t.test(e)&&(n=!0)});return n||gk(e.parentNode,t)}return e.nodeType,e.TEXT_NODE,gk(e.parentNode,t)}function gB(e){return"__sn"in e&&-2===e.__sn.id}function gV(e){return!!e.changedTouches}function gF(e){return"__sn"in e&&e.__sn.type===m6.Element&&"iframe"===e.__sn.tagName}function gj(e){return!!(null==e?void 0:e.shadowRoot)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(gL=new Proxy(gL,{get:function(e,t,n){return"map"===t&&console.error(gM),Reflect.get(e,t,n)}}));var gG=function(){function e(){this.length=0,this.head=null}return e.prototype.get=function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t},e.prototype.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){var n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
16(n.previous=t)}else e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous?(t.previous=n=e.nextSibling.__ln.previous,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)):(this.head&&(this.head.previous=t),t.next=this.head,this.head=t);this.length++},e.prototype.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next&&(t.next.previous=t.previous)):(this.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)},e}(),gH=function(e,t){return"".concat(e,"@").concat(t)},gY=function(){function e(){var e=this;this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(t){t.forEach(e.processMutation),e.emit()},this.emit=function(){var t,n,r,o;if(!e.frozen&&!e.locked){for(var i=[],a=new gG,s=function(t){for(var n=t,r=-2;-2===r;)r=(n=n&&n.nextSibling)&&e.mirror.getId(n);return r},u=function(t){for(var n,r,o,u,c,l=t.getRootNode?null==(n=t.getRootNode())?void 0:n.host:null,p=l;null==(o=null==(r=null==p?void 0:p.getRootNode)?void 0:r.call(p))?void 0:o.host;)p=(null==(c=null==(u=null==p?void 0:p.getRootNode)?void 0:u.call(p))?void 0:c.host)||null;var d=!(e.doc.contains(t)||null!==p&&e.doc.contains(p));if(t.parentNode&&!d){var f=gt(t.parentNode)?e.mirror.getId(l):e.mirror.getId(t.parentNode),h=s(t);if(-1===f||-1===h)return a.addNode(t);var _=gI(t,{doc:e.doc,map:e.mirror.map,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(n){gF(n)&&e.iframeManager.addIframe(n),gj(t)&&e.shadowDomManager.addShadowRoot(t.shadowRoot,document)},onIframeLoad:function(t,n){e.iframeManager.attachIframe(t,n),e.shadowDomManager.observeAttachShadow(t)}});_&&i.push({parentId:f,nextId:h,node:_})}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());try{for(var c=m7(e.movedSet),l=c.next();!l.done;l=c.next()){var p=l.value;gW(e.removes,p,e.mirror)&&!e.movedSet.has(p.parentNode)||u(p)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}try{for(var d=m7(e.addedSet),f=d.next();!f.done;f=d.next())p=f.value,g$(e.droppedSet,p)||gW(e.removes,p,e.mirror)?g$(e.movedSet,p)?u(p):e.droppedSet.add(p):u(p)}catch(e){r={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}for(var h=null;a.length;){var _=null;if(h){var E=e.mirror.getId(h.value.parentNode),m=s(h.value);-1!==E&&-1!==m&&(_=h)}if(!_)for(var g=a.length-1;g>=0;g--){var S=a.get(g);if(S&&(E=e.mirror.getId(S.value.parentNode),m=s(S.value),-1!==E&&-1!==m)){_=S;break}}if(!_){for(;a.head;)a.removeNode(a.head.value);break}h=_.previous,a.removeNode(_.value),u(_.value)}var v={texts:e.texts.map(function(t){return{id:e.mirror.getId(t.node),value:t.value}}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){return{id:e.mirror.getId(t.node),attributes:t.attributes}}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:i};(v.texts.length||v.attributes.length||v.removes.length||v.adds.length)&&(e.texts=[],e.attributes=[],e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.movedMap={},e.mutationCb(v))}},this.processMutation=function(t){var n,r,o,i;if(!gB(t.target))switch(t.type){case"characterData":var a=t.target.textContent;gk(t.target,e.blockClass)||a===t.oldValue||e.texts.push({value:gO(t.target,e.maskTextClass,e.maskTextSelector)&&a?e.maskTextFn?e.maskTextFn(a):a.replace(/[\S]/g,"*"):a,node:t.target});break;case"attributes":var s=t.target;if(a=t.target.getAttribute(t.attributeName),"value"===t.attributeName&&(a=gn({maskInputOptions:e.maskInputOptions,tagName:t.target.tagName,type:t.target.getAttribute("type"),value:a,maskInputFn:e.maskInputFn})),gk(t.target,e.blockClass)||a===t.oldValue)return;
16var u=e.attributes.find(function(e){return e.node===t.target});if(u||(u={node:t.target,attributes:{}},e.attributes.push(u)),"style"===t.attributeName){var c=e.doc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue),void 0!==u.attributes.style&&null!==u.attributes.style||(u.attributes.style={});var l=u.attributes.style;try{for(var p=m7(Array.from(s.style)),d=p.next();!d.done;d=p.next()){var f=d.value,h=s.style.getPropertyValue(f),_=s.style.getPropertyPriority(f);h===c.style.getPropertyValue(f)&&_===c.style.getPropertyPriority(f)||(l[f]=""===_?h:[h,_])}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var E=m7(Array.from(c.style)),m=E.next();!m.done;m=E.next())f=m.value,""===s.style.getPropertyValue(f)&&(l[f]=!1)}catch(e){o={error:e}}finally{try{m&&!m.done&&(i=E.return)&&i.call(E)}finally{if(o)throw o.error}}}else u.attributes[t.attributeName]=gR(e.doc,t.target.tagName,t.attributeName,a);break;case"childList":t.addedNodes.forEach(function(n){return e.genAdds(n,t.target)}),t.removedNodes.forEach(function(n){var r=e.mirror.getId(n),o=gt(t.target)?e.mirror.getId(t.target.host):e.mirror.getId(t.target);gk(t.target,e.blockClass)||gB(n)||(e.addedSet.has(n)?(gz(e.addedSet,n),e.droppedSet.add(n)):e.addedSet.has(t.target)&&-1===r||function e(t,n){if(gt(t))return!1;var r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(t.target,e.mirror)||(e.movedSet.has(n)&&e.movedMap[gH(r,o)]?gz(e.movedSet,n):e.removes.push({parentId:o,id:r,isShadow:!!gt(t.target)||void 0})),e.mapRemoves.push(n))})}},this.genAdds=function(t,n){if(!n||!gk(n,e.blockClass)){if("__sn"in t){if(gB(t))return;e.movedSet.add(t);var r=null;n&&"__sn"in n&&(r=n.__sn.id),r&&(e.movedMap[gH(t.__sn.id,r)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);gk(t,e.blockClass)||t.childNodes.forEach(function(t){return e.genAdds(t)})}}}return e.prototype.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(function(n){t[n]=e[n]})},e.prototype.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},e.prototype.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},e.prototype.isFrozen=function(){return this.frozen},e.prototype.lock=function(){this.locked=!0,this.canvasManager.lock()},e.prototype.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},e.prototype.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}();function gz(e,t){e.delete(t),t.childNodes.forEach(function(t){return gz(e,t)})}function gW(e,t,n){var r=t.parentNode;if(!r)return!1;var o=n.getId(r);return!!e.some(function(e){return e.id===o})||gW(e,r,n)}function g$(e,t){var n=t.parentNode;return!!n&&(!!e.has(n)||g$(e,n))}var gK=[],gX="undefined"!=typeof CSSGroupingRule,gq="undefined"!=typeof CSSMediaRule,gJ="undefined"!=typeof CSSSupportsRule,gZ="undefined"!=typeof CSSConditionRule;function gQ(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(t){return e.target}}function g0(e,t){var n,r,o=new gY;gK.push(o),o.init(e);var i=window.MutationObserver||window.__rrMutationObserver,a=null==(r=null==(n=null==window?void 0:window.Zone)?void 0:n.__symbol__)?void 0:r.call(n,"MutationObserver");a&&window[a]&&(i=window[a]);var s=new i(o.processMutations.bind(o));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function g1(e){var t=e.scrollCb,n=e.doc,r=e.mirror,o=e.blockClass;return gC("scroll",gw(function(e){var i=gQ(e);if(i&&!gk(i,o)){var a=r.getId(i);if(i===n){var s=n.scrollingElement||n.documentElement;t({id:a,x:s.scrollLeft,y:s.scrollTop})}else t({id:a,x:i.scrollLeft,y:i.scrollTop})}},e.sampling.scroll||100),n)}function g2(e,t){var n=m8({},e);
16return t||delete n.userTriggered,n}var g3=["INPUT","TEXTAREA","SELECT"],g4=new WeakMap;function g5(e){var t=[];if(gX&&e.parentRule instanceof CSSGroupingRule||gq&&e.parentRule instanceof CSSMediaRule||gJ&&e.parentRule instanceof CSSSupportsRule||gZ&&e.parentRule instanceof CSSConditionRule){var n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else t.unshift(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e));return t}for(var g6=function(){function e(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}return e.prototype.addIframe=function(e){this.iframes.set(e,!0)},e.prototype.addLoadListener=function(e){this.loadListener=e},e.prototype.attachIframe=function(e,t){var n;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null==(n=this.loadListener)||n.call(this,e)},e}(),g8=function(){function e(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;var t=this;this.restorePatches.push(gD(HTMLElement.prototype,"attachShadow",function(e){return function(){var n=e.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,this.ownerDocument),n}}))}return e.prototype.addShadowRoot=function(e,t){g0(m8(m8({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),g1(m8(m8({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))},e.prototype.observeAttachShadow=function(e){if(e.contentWindow){var t=this;this.restorePatches.push(gD(e.contentWindow.HTMLElement.prototype,"attachShadow",function(n){return function(){var r=n.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),r}}))}},e.prototype.reset=function(){this.restorePatches.forEach(function(e){return e()})},e}(),g7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g9="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Se=0;Se<64;Se++)g9[g7.charCodeAt(Se)]=Se;var St=new Map,Sn=function(e,t,n){if(e&&(Sr(e,t)||"object"==typeof e)){var r,o,i=(r=e.constructor.name,(o=St.get(n))||(o=new Map,St.set(n,o)),o.has(r)||o.set(r,[]),o.get(r)),a=i.indexOf(e);return -1===a&&(a=i.length,i.push(e)),a}},Sr=function(e,t){return!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]}).find(function(n){return e instanceof t[n]})};function So(e,t,n,r,o,i){var a,s,u=[],c=Object.getOwnPropertyNames(e),l=function(a){try{if("function"!=typeof e[a])return"continue";var s=gD(e,a,function(s){return function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var l=s.apply(this,u);if(Sn(l,i,e),!gk(this.canvas,r)){o.getId(this.canvas);var p,d=(p=ge([],m9(u),!1),ge([],m9(p),!1).map(function(t){return function e(t,n,r){return t instanceof Array?t.map(function(t){return e(t,n,r)}):null===t?t:t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray?{rr_type:t.constructor.name,args:[Object.values(t)]}:t instanceof ArrayBuffer?{rr_type:t.constructor.name,base64:function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t<r;t+=3)o+=g7[n[t]>>2],o+=g7[(3&n[t])<<4|n[t+1]>>4],o+=g7[(15&n[t+1])<<2|n[t+2]>>6],o+=g7[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(t)}:t instanceof DataView?{rr_type:t.constructor.name,args:[e(t.buffer,n,r),t.byteOffset,t.byteLength]}:t instanceof HTMLImageElement?{rr_type:t.constructor.name,src:t.src}:t instanceof ImageData?{rr_type:t.constructor.name,args:[e(t.data,n,r),t.width,t.height]}:Sr(t,n)||"object"==typeof t?{rr_type:t.constructor.name,index:Sn(t,n,r)}:t}(t,i,e)}));n(this.canvas,{type:t,property:a,args:d})}return l}});u.push(s)}catch(r){var c=gP(e,a,{set:function(e){n(this.canvas,{type:t,property:a,args:[e],setter:!0})}});u.push(c)}};try{for(var p=m7(c),d=p.next();!d.done;d=p.next())l(d.value)}catch(e){a={error:e}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}return u}var Si,Sa,Ss,Su,Sc,Sl,Sp,Sd,Sf=function(){function e(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)},this.mutationCb=e.mutationCb,this.mirror=e.mirror,!0===e.recordCanvas&&this.initCanvasMutationObserver(e.win,e.blockClass)}return e.prototype.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},e.prototype.freeze=function(){this.frozen=!0},e.prototype.unfreeze=function(){this.frozen=!1},e.prototype.lock=function(){this.locked=!0},e.prototype.unlock=function(){this.locked=!1},e.prototype.initCanvasMutationObserver=function(e,t){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n,r,o,i=function(e,t){var n=[];try{var r=gD(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(n){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];return gk(this,t)||"__context"in this||(this.__context=n),e.apply(this,ge([n],m9(r),!1))}});n.push(r)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}
16return function(){n.forEach(function(e){return e()})}}(e,t),a=function(e,t,n,r){var o,i,a=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),u=function(r){try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[r])return"continue";var o=gD(t.CanvasRenderingContext2D.prototype,r,function(t){return function(){for(var o=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return gk(this.canvas,n)||setTimeout(function(){var t=ge([],m9(i),!1);if("drawImage"===r&&t[0]&&t[0]instanceof HTMLCanvasElement){var n=t[0],a=n.getContext("2d"),s=null==a?void 0:a.getImageData(0,0,n.width,n.height),u=null==s?void 0:s.data;t[0]=JSON.stringify(u)}e(o.canvas,{type:gg["2D"],property:r,args:t})},0),t.apply(this,i)}});a.push(o)}catch(n){var i=gP(t.CanvasRenderingContext2D.prototype,r,{set:function(t){e(this.canvas,{type:gg["2D"],property:r,args:[t],setter:!0})}});a.push(i)}};try{for(var c=m7(s),l=c.next();!l.done;l=c.next())u(l.value)}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return function(){a.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,this.mirror),s=(n=this.processMutation.bind(this),r=this.mirror,(o=[]).push.apply(o,ge([],m9(So(e.WebGLRenderingContext.prototype,gg.WebGL,n,t,r,e)),!1)),void 0!==e.WebGL2RenderingContext&&o.push.apply(o,ge([],m9(So(e.WebGL2RenderingContext.prototype,gg.WebGL2,n,t,r,e)),!1)),function(){o.forEach(function(e){return e()})});this.resetObservers=function(){i(),a(),s()}},e.prototype.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},e.prototype.startRAFTimestamping=function(){var e=this,t=function(n){e.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)},e.prototype.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,n){var r=e.mirror.getId(n);e.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},e.prototype.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var n=this.pendingCanvasMutations.get(e);if(n&&-1!==t){var r=n.map(function(e){return e.type,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["type"])}),o=n[0].type;this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}},e}();function Sh(e){return m8(m8({},e),{timestamp:Date.now()})}var S_={map:{},getId:function(e){return e&&e.__sn?e.__sn.id:-1},getNode:function(e){return this.map[e]||null},removeNodeFromMap:function(e){var t=this,n=e.__sn&&e.__sn.id;delete this.map[n],e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},has:function(e){return this.map.hasOwnProperty(e)},reset:function(){this.map={}}};function SE(e){void 0===e&&(e={});var t=e.emit,n=e.checkoutEveryNms,r=e.checkoutEveryNth,o=e.blockClass,i=void 0===o?"rr-block":o,a=e.blockSelector,s=void 0===a?null:a,u=e.ignoreClass,c=void 0===u?"rr-ignore":u,l=e.maskTextClass,p=void 0===l?"rr-mask":l,d=e.maskTextSelector,f=void 0===d?null:d,h=e.inlineStylesheet,_=void 0===h||h,E=e.maskAllInputs,m=e.maskInputOptions,g=e.slimDOMOptions,S=e.maskInputFn,v=e.maskTextFn,T=e.hooks,y=e.packFn,b=e.sampling,A=void 0===b?{}:b,R=e.mousemoveWait,O=e.recordCanvas,N=void 0!==O&&O,I=e.userTriggeredOnInput,C=void 0!==I&&I,M=e.collectFonts,L=void 0!==M&&M,w=e.inlineImages,P=void 0!==w&&w,D=e.plugins,x=e.keepIframeSrcFn,U=void 0===x?function(){return!1}:x;if(!t)throw Error("emit function is required");void 0!==R&&void 0===A.mousemove&&(A.mousemove=R);var k,B,V=!0===E?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==m?m:{password:!0},F=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};
16void 0===k&&(k=window),"NodeList"in k&&!k.NodeList.prototype.forEach&&(k.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in k&&!k.DOMTokenList.prototype.forEach&&(k.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(e){if(!(0 in arguments))throw TypeError("1 argument is required");do if(this===e)return!0;while(e=e&&e.parentNode);return!1});var j=0;Sp=function(e,o){var i;if((null==(i=gK[0])?void 0:i.isFrozen())&&e.type!==g_.FullSnapshot&&(e.type!==g_.IncrementalSnapshot||e.data.source!==gE.Mutation)&&gK.forEach(function(e){return e.unfreeze()}),t(function(e){var t,n;try{for(var r=m7(D||[]),o=r.next();!o.done;o=r.next()){var i=o.value;i.eventProcessor&&(e=i.eventProcessor(e))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return y&&(e=y(e)),e}(e),o),e.type===g_.FullSnapshot)B=e,j=0;else if(e.type===g_.IncrementalSnapshot){if(e.data.source===gE.Mutation&&e.data.isAttachIframe)return;j++;var a=r&&j>=r,s=n&&e.timestamp-B.timestamp>n;(a||s)&&Sd(!0)}};var G=function(e){Sp(Sh({type:g_.IncrementalSnapshot,data:m8({source:gE.Mutation},e)}))},H=function(e){return Sp(Sh({type:g_.IncrementalSnapshot,data:m8({source:gE.Scroll},e)}))},Y=function(e){return Sp(Sh({type:g_.IncrementalSnapshot,data:m8({source:gE.CanvasMutation},e)}))},z=new g6({mutationCb:G}),W=new Sf({recordCanvas:N,mutationCb:Y,win:window,blockClass:i,mirror:S_}),$=new g8({mutationCb:G,scrollCb:H,bypassOptions:{blockClass:i,blockSelector:s,maskTextClass:p,maskTextSelector:f,inlineStylesheet:_,maskInputOptions:V,maskTextFn:v,maskInputFn:S,recordCanvas:N,inlineImages:P,sampling:A,slimDOMOptions:F,iframeManager:z,canvasManager:W},mirror:S_});Sd=function(e){void 0===e&&(e=!1),Sp(Sh({type:g_.Meta,data:{href:window.location.href,width:gU(),height:gx()}}),e),gK.forEach(function(e){return e.lock()});var t,n,r,o,a,u,c,l,d,h,E,m,g,S,T,y,b,A,R,O,I,C,M,L,w,D,x=m9((t=document,r=(n={blockClass:i,blockSelector:s,maskTextClass:p,maskTextSelector:f,inlineStylesheet:_,maskAllInputs:V,maskTextFn:v,slimDOM:F,recordCanvas:N,inlineImages:P,onSerialize:function(e){gF(e)&&z.addIframe(e),gj(e)&&$.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){z.attachIframe(e,t),$.observeAttachShadow(e)},keepIframeSrcFn:U}).blockClass,o=n.blockSelector,a=n.maskTextClass,u=n.maskTextSelector,c=n.inlineStylesheet,l=n.inlineImages,d=n.recordCanvas,E=void 0!==(h=n.maskAllInputs)&&h,m=n.maskTextFn,g=n.maskInputFn,T=void 0!==(S=n.slimDOM)&&S,y=n.dataURLOptions,b=n.preserveWhiteSpace,A=n.onSerialize,R=n.onIframeLoad,O=n.iframeLoadTimeout,[gI(t,{doc:t,map:C={},blockClass:void 0===r?"rr-block":r,blockSelector:void 0===o?null:o,maskTextClass:void 0===a?"rr-mask":a,maskTextSelector:void 0===u?null:u,skipChild:!1,inlineStylesheet:void 0===c||c,maskInputOptions:!0===E?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===E?{password:!0}:E,maskTextFn:m,maskInputFn:g,slimDOMOptions:!0===T||"all"===T?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===T,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===T?{}:T,dataURLOptions:y,inlineImages:void 0!==l&&l,recordCanvas:void 0!==d&&d,preserveWhiteSpace:b,onSerialize:A,onIframeLoad:R,iframeLoadTimeout:O,keepIframeSrcFn:void 0===(I=n.keepIframeSrcFn)?function(){return!1}:I}),C]),2),k=x[0],B=x[1];if(!k)return console.warn("Failed to snapshot the document");S_.map=B,Sp(Sh({type:g_.FullSnapshot,data:{node:k,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null==document?void 0:document.documentElement.scrollLeft)||(null==(L=null==(M=null==document?void 0:document.body)?void 0:M.parentElement)?void 0:L.scrollLeft)||(null==document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null==document?void 0:document.documentElement.scrollTop)||(null==(D=null==(w=null==document?void 0:document.body)?void 0:w.parentElement)?void 0:D.scrollTop)||(null==document?void 0:document.body.scrollTop)||0}}}
16)),gK.forEach(function(e){return e.unlock()})};try{var K=[];K.push(gC("DOMContentLoaded",function(){Sp(Sh({type:g_.DomContentLoaded,data:{}}))}));var X=function(e){var t;return function(e,t){void 0===t&&(t={});var n,r,o,i,a,s,u,c,l,p,d,f,h,_,E,m,g,S,v,T,y,b,A,R,O,N,I,C,M,L,w,P,D,x,U,k,B,V=e.doc.defaultView;if(!V)return function(){};n=t,r=e.mutationCb,o=e.mousemoveCb,i=e.mouseInteractionCb,a=e.scrollCb,s=e.viewportResizeCb,u=e.inputCb,c=e.mediaInteractionCb,l=e.styleSheetRuleCb,p=e.styleDeclarationCb,d=e.canvasMutationCb,f=e.fontCb,e.mutationCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.mutation&&n.mutation.apply(n,ge([],m9(e),!1)),r.apply(void 0,ge([],m9(e),!1))},e.mousemoveCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.mousemove&&n.mousemove.apply(n,ge([],m9(e),!1)),o.apply(void 0,ge([],m9(e),!1))},e.mouseInteractionCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.mouseInteraction&&n.mouseInteraction.apply(n,ge([],m9(e),!1)),i.apply(void 0,ge([],m9(e),!1))},e.scrollCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.scroll&&n.scroll.apply(n,ge([],m9(e),!1)),a.apply(void 0,ge([],m9(e),!1))},e.viewportResizeCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.viewportResize&&n.viewportResize.apply(n,ge([],m9(e),!1)),s.apply(void 0,ge([],m9(e),!1))},e.inputCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.input&&n.input.apply(n,ge([],m9(e),!1)),u.apply(void 0,ge([],m9(e),!1))},e.mediaInteractionCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.mediaInteaction&&n.mediaInteaction.apply(n,ge([],m9(e),!1)),c.apply(void 0,ge([],m9(e),!1))},e.styleSheetRuleCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.styleSheetRule&&n.styleSheetRule.apply(n,ge([],m9(e),!1)),l.apply(void 0,ge([],m9(e),!1))},e.styleDeclarationCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.styleDeclaration&&n.styleDeclaration.apply(n,ge([],m9(e),!1)),p.apply(void 0,ge([],m9(e),!1))},e.canvasMutationCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.canvasMutation&&n.canvasMutation.apply(n,ge([],m9(e),!1)),d.apply(void 0,ge([],m9(e),!1))},e.fontCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.font&&n.font.apply(n,ge([],m9(e),!1)),f.apply(void 0,ge([],m9(e),!1))};var F=g0(e,e.doc),j=function(e){var t=e.mousemoveCb,n=e.sampling,r=e.doc,o=e.mirror;if(!1===n.mousemove)return function(){};var i,a="number"==typeof n.mousemove?n.mousemove:50,s="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,u=[],c=gw(function(e){var n=Date.now()-i;t(u.map(function(e){return e.timeOffset-=n,e}),e),u=[],i=null},s),l=gw(function(e){var t=gQ(e),n=gV(e)?e.changedTouches[0]:e,r=n.clientX,a=n.clientY;i||(i=Date.now()),u.push({x:r,y:a,id:o.getId(t),timeOffset:Date.now()-i}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?gE.Drag:e instanceof MouseEvent?gE.MouseMove:gE.TouchMove)},a,{trailing:!1}),p=[gC("mousemove",l,r),gC("touchmove",l,r),gC("drag",l,r)];return function(){p.forEach(function(e){return e()})}}(e),G=function(e){var t=e.mouseInteractionCb,n=e.doc,r=e.mirror,o=e.blockClass,i=e.sampling;if(!1===i.mouseInteraction)return function(){};var a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,s=[];return Object.keys(gm).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var i=e.toLowerCase(),a=function(n){var i=gQ(n);if(!gk(i,o)){var a=gV(n)?n.changedTouches[0]:n;if(a){var s=r.getId(i),u=a.clientX,c=a.clientY;t({type:gm[e],id:s,x:u,y:c})}}};s.push(gC(i,a,n))}),function(){s.forEach(function(e){return e()})}}(e),H=g1(e),Y=(h=e.viewportResizeCb,_=-1,E=-1,gC("resize",gw(function(){var e=gx(),t=gU();_===e&&E===t||(h({width:Number(t),height:Number(e)}),_=e,E=t)},200),window)),z=function(e){var t=e.inputCb,n=e.doc,r=e.mirror,o=e.blockClass,i=e.ignoreClass,a=e.maskInputOptions,s=e.maskInputFn,u=e.sampling,c=e.userTriggeredOnInput;function l(e){var t=gQ(e),r=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),t&&t.tagName&&!(0>
16g3.indexOf(t.tagName))&&!gk(t,o)){var u=t.type;if(!t.classList.contains(i)){var l=t.value,d=!1;"radio"===u||"checkbox"===u?d=t.checked:(a[t.tagName.toLowerCase()]||a[u])&&(l=gn({maskInputOptions:a,tagName:t.tagName,type:u,value:l,maskInputFn:s})),p(t,g2({text:l,isChecked:d,userTriggered:r},c));var f=t.name;"radio"===u&&f&&d&&n.querySelectorAll('input[type="radio"][name="'.concat(f,'"]')).forEach(function(e){e!==t&&p(e,g2({text:e.value,isChecked:!d,userTriggered:!1},c))})}}}function p(e,n){var o=g4.get(e);if(!o||o.text!==n.text||o.isChecked!==n.isChecked){g4.set(e,n);var i=r.getId(e);t(m8(m8({},n),{id:i}))}}var d=("last"===u.input?["change"]:["input","change"]).map(function(e){return gC(e,l,n)}),f=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),h=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return f&&f.set&&d.push.apply(d,ge([],m9(h.map(function(e){return gP(e[0],e[1],{set:function(){l({target:this})}})})),!1)),function(){d.forEach(function(e){return e()})}}(e),W=(m=e.mediaInteractionCb,g=e.blockClass,S=e.mirror,v=e.sampling,y=[gC("play",(T=function(e){return gw(function(t){var n=gQ(t);if(n&&!gk(n,g)){var r=n.currentTime,o=n.volume,i=n.muted;m({type:e,id:S.getId(n),currentTime:r,volume:o,muted:i})}},v.media||500)})(0)),gC("pause",T(1)),gC("seeked",T(2)),gC("volumechange",T(3))],function(){y.forEach(function(e){return e()})}),$=(b={win:V},A=e.styleSheetRuleCb,R=e.mirror,N=(O=b.win).CSSStyleSheet.prototype.insertRule,O.CSSStyleSheet.prototype.insertRule=function(e,t){var n=R.getId(this.ownerNode);return -1!==n&&A({id:n,adds:[{rule:e,index:t}]}),N.apply(this,arguments)},I=O.CSSStyleSheet.prototype.deleteRule,O.CSSStyleSheet.prototype.deleteRule=function(e){var t=R.getId(this.ownerNode);return -1!==t&&A({id:t,removes:[{index:e}]}),I.apply(this,arguments)},C={},gX?C.CSSGroupingRule=O.CSSGroupingRule:(gq&&(C.CSSMediaRule=O.CSSMediaRule),gZ&&(C.CSSConditionRule=O.CSSConditionRule),gJ&&(C.CSSSupportsRule=O.CSSSupportsRule)),M={},Object.entries(C).forEach(function(e){var t=m9(e,2),n=t[0],r=t[1];M[n]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=function(e,t){var r=R.getId(this.parentStyleSheet.ownerNode);return -1!==r&&A({id:r,adds:[{rule:e,index:ge(ge([],m9(g5(this)),!1),[t||0],!1)}]}),M[n].insertRule.apply(this,arguments)},r.prototype.deleteRule=function(e){var t=R.getId(this.parentStyleSheet.ownerNode);return -1!==t&&A({id:t,removes:[{index:ge(ge([],m9(g5(this)),!1),[e],!1)}]}),M[n].deleteRule.apply(this,arguments)}}),function(){O.CSSStyleSheet.prototype.insertRule=N,O.CSSStyleSheet.prototype.deleteRule=I,Object.entries(C).forEach(function(e){var t=m9(e,2),n=t[0],r=t[1];r.prototype.insertRule=M[n].insertRule,r.prototype.deleteRule=M[n].deleteRule})}),K=(L={win:V},w=e.styleDeclarationCb,P=e.mirror,x=(D=L.win).CSSStyleDeclaration.prototype.setProperty,D.CSSStyleDeclaration.prototype.setProperty=function(e,t,n){var r,o,i=P.getId(null==(o=null==(r=this.parentRule)?void 0:r.parentStyleSheet)?void 0:o.ownerNode);return -1!==i&&w({id:i,set:{property:e,value:t,priority:n},index:g5(this.parentRule)}),x.apply(this,arguments)},U=D.CSSStyleDeclaration.prototype.removeProperty,D.CSSStyleDeclaration.prototype.removeProperty=function(e){var t,n,r=P.getId(null==(n=null==(t=this.parentRule)?void 0:t.parentStyleSheet)?void 0:n.ownerNode);return -1!==r&&w({id:r,remove:{property:e},index:g5(this.parentRule)}),U.apply(this,arguments)},function(){D.CSSStyleDeclaration.prototype.setProperty=x,D.CSSStyleDeclaration.prototype.removeProperty=U}),X=e.collectFonts?function(e){var t=e.fontCb,n=e.doc,r=n.defaultView;if(!r)return function(){};var o=[],i=new WeakMap,a=r.FontFace;r.FontFace=function(e,t,n){var r=new a(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};var s=gD(n.fonts,"add",function(e){return function(n){return setTimeout(function(){var e=i.get(n);e&&(t(e),i.delete(n))},0),e.apply(this,[n])}});return o.push(function(){r.FontFace=a}),o.push(s),function(){o.forEach(function(e){return e()})}}(e):function(){},q=[];try{for(var J=m7(e.plugins),Z=J.next();!Z.done;Z=J.next()){var Q=Z.value;q.push(Q.observer(Q.callback,V,Q.options))}}catch(e){k={error:e}}finally{try{Z&&!Z.done&&(B=J.return)&&B.call(J)}finally{if(k)throw k.error}}
16return function(){gK.forEach(function(e){return e.reset()}),F.disconnect(),j(),G(),H(),Y(),z(),W(),$(),K(),X(),q.forEach(function(e){return e()})}}({mutationCb:G,mousemoveCb:function(e,t){return Sp(Sh({type:g_.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return Sp(Sh({type:g_.IncrementalSnapshot,data:m8({source:gE.MouseInteraction},e)}))},scrollCb:H,viewportResizeCb:function(e){return Sp(Sh({type:g_.IncrementalSnapshot,data:m8({source:gE.ViewportResize},e)}))},inputCb:function(e){return Sp(Sh({type:g_.IncrementalSnapshot,data:m8({source:gE.Input},e)}))},mediaInteractionCb:function(e){return Sp(Sh({type:g_.IncrementalSnapshot,data:m8({source:gE.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return Sp(Sh({type:g_.IncrementalSnapshot,data:m8({source:gE.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return Sp(Sh({type:g_.IncrementalSnapshot,data:m8({source:gE.StyleDeclaration},e)}))},canvasMutationCb:Y,fontCb:function(e){return Sp(Sh({type:g_.IncrementalSnapshot,data:m8({source:gE.Font},e)}))},blockClass:i,ignoreClass:c,maskTextClass:p,maskTextSelector:f,maskInputOptions:V,inlineStylesheet:_,sampling:A,recordCanvas:N,inlineImages:P,userTriggeredOnInput:C,collectFonts:L,doc:e,maskInputFn:S,maskTextFn:v,blockSelector:s,slimDOMOptions:F,mirror:S_,iframeManager:z,shadowDomManager:$,canvasManager:W,plugins:(null==(t=null==D?void 0:D.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return Sp(Sh({type:g_.Plugin,data:{plugin:e.name,payload:t}}))}}}))||[]},T)};z.addLoadListener(function(e){K.push(X(e.contentDocument))});var q=function(){Sd(),K.push(X(document))};return"interactive"===document.readyState||"complete"===document.readyState?q():K.push(gC("load",function(){Sp(Sh({type:g_.Load,data:{}})),q()},window)),function(){K.forEach(function(e){return e()})}}catch(e){console.warn(e)}}SE.addCustomEvent=function(e,t){if(!Sp)throw Error("please add custom event after start recording");Sp(Sh({type:g_.Custom,data:{tag:e,payload:t}}))},SE.freezePage=function(){gK.forEach(function(e){return e.freeze()})},SE.takeFullSnapshot=function(e){if(!Sd)throw Error("please take full snapshot after start recording");Sd(e)},SE.mirror=S_;var Sm=Uint8Array,Sg=Uint16Array,SS=Uint32Array,Sv=new Sm([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ST=new Sm([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Sy=new Sm([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Sb=function(e,t){for(var n=new Sg(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var o=new SS(n[30]);for(r=1;r<30;++r)for(var i=n[r];i<n[r+1];++i)o[i]=i-n[r]<<5|r;return[n,o]},SA=Sb(Sv,2),SR=SA[0],SO=SA[1];SR[28]=258,SO[258]=28;for(var SN=Sb(ST,0)[1],SI=new Sg(32768),SC=0;SC<32768;++SC){var SM=(43690&SC)>>>1|(21845&SC)<<1;SM=(61680&(SM=(52428&SM)>>>2|(13107&SM)<<2))>>>4|(3855&SM)<<4,SI[SC]=((65280&SM)>>>8|(255&SM)<<8)>>>1}var SL=function(e,t,n){for(var r=e.length,o=0,i=new Sg(t);o<r;++o)e[o]&&++i[e[o]-1];var a,s=new Sg(t);for(o=0;o<t;
vendor: 16,489 bytes, line 16
16++o)s[o]=s[o-1]+i[o-1]<<1;if(n){a=new Sg(1<<t);var u=15-t;for(o=0;o<r;++o)if(e[o])for(var c=o<<4|e[o],l=t-e[o],p=s[e[o]-1]++<<l,d=p|(1<<l)-1;p<=d;++p)a[SI[p]>>>u]=c}else for(a=new Sg(r),o=0;o<r;++o)e[o]&&(a[o]=SI[s[e[o]-1]++]>>>15-e[o]);return a},Sw=new Sm(288);for(SC=0;SC<144;++SC)Sw[SC]=8;for(SC=144;SC<256;++SC)Sw[SC]=9;for(SC=256;SC<280;++SC)Sw[SC]=7;for(SC=280;SC<288;++SC)Sw[SC]=8;var SP=new Sm(32);for(SC=0;SC<32;++SC)SP[SC]=5;var SD=SL(Sw,9,0),Sx=SL(SP,5,0),SU=function(e){return(e+7)/8|0},Sk=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},SB=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},SV=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var o=n.length,i=n.slice();if(!o)return[SW,0];if(1==o){var a=new Sm(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],u=n[1],c=0,l=1,p=2;for(n[0]={s:-1,f:s.f+u.f,l:s,r:u};l!=o-1;)s=n[n[c].f<n[p].f?c++:p++],u=n[c!=l&&n[c].f<n[p].f?c++:p++],n[l++]={s:-1,f:s.f+u.f,l:s,r:u};var d=i[0].s;for(r=1;r<o;++r)i[r].s>d&&(d=i[r].s);var f=new Sg(d+1),h=SF(n[l-1],f,0);if(h>t){r=0;var _=0,E=h-t,m=1<<E;for(i.sort(function(e,t){return f[t.s]-f[e.s]||e.f-t.f});r<o;++r){var g=i[r].s;if(!(f[g]>t))break;_+=m-(1<<h-f[g]),f[g]=t}for(_>>>=E;_>0;){var S=i[r].s;f[S]<t?_-=1<<t-f[S]++-1:++r}for(;r>=0&&_;--r){var v=i[r].s;f[v]==t&&(--f[v],++_)}h=t}return[new Sm(f),h]},SF=function(e,t,n){return -1==e.s?Math.max(SF(e.l,t,n+1),SF(e.r,t,n+1)):t[e.s]=n},Sj=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Sg(++t),r=0,o=e[0],i=1,a=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==o&&s!=t)++i;else{if(!o&&i>2){for(;i>138;i-=138)a(32754);i>2&&(a(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(a(o),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(o);i=1,o=e[s]}return[n.subarray(0,r),t]},SG=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},SH=function(e,t,n){var r=n.length,o=SU(t+2);e[o]=255&r,e[o+1]=r>>>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var i=0;i<r;++i)e[o+i+4]=n[i];return 8*(o+4+r)},SY=function(e,t,n,r,o,i,a,s,u,c,l){Sk(t,l++,n),++o[256];for(var p=SV(o,15),d=p[0],f=p[1],h=SV(i,15),_=h[0],E=h[1],m=Sj(d),g=m[0],S=m[1],v=Sj(_),T=v[0],y=v[1],b=new Sg(19),A=0;A<g.length;++A)b[31&g[A]]++;for(A=0;A<T.length;++A)b[31&T[A]]++;for(var R=SV(b,7),O=R[0],N=R[1],I=19;I>4&&!O[Sy[I-1]];--I);var C,M,L,w,P=c+5<<3,D=SG(o,Sw)+SG(i,SP)+a,x=SG(o,d)+SG(i,_)+a+14+3*I+SG(b,O)+(2*b[16]+3*b[17]+7*b[18]);if(P<=D&&P<=x)return SH(t,l,e.subarray(u,u+c));if(Sk(t,l,1+(x<D)),l+=2,x<D){C=SL(d,f,0),M=d,L=SL(_,E,0),w=_;var U=SL(O,N,0);for(Sk(t,l,S-257),Sk(t,l+5,y-1),Sk(t,l+10,I-4),l+=14,A=0;A<I;++A)Sk(t,l+3*A,O[Sy[A]]);l+=3*I;for(var k=[g,T],B=0;B<2;++B){var V=k[B];for(A=0;A<V.length;++A){var F=31&V[A];Sk(t,l,U[F]),l+=O[F],F>15&&(Sk(t,l,V[A]>>>5&127),l+=V[A]>>>12)}}}else C=SD,M=Sw,L=Sx,w=SP;for(A=0;A<s;++A)if(r[A]>255){SB(t,l,C[(F=r[A]>>>18&31)+257]),l+=M[F+257],F>7&&(Sk(t,l,r[A]>>>23&31),l+=Sv[F]);var j=31&r[A];SB(t,l,L[j]),l+=w[j],j>3&&(SB(t,l,r[A]>>>5&8191),l+=ST[j])}else SB(t,l,C[r[A]]),l+=M[r[A]];return SB(t,l,C[256]),l+M[256]},Sz=new SS([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),SW=new Sm(0),S$=function(e,t,n,r,o,i){var a,s,u,c=e.length,l=new Sm(r+c+5*(1+Math.ceil(c/7e3))+o),p=l.subarray(r,l.length-o),d=0;if(!t||c<8)for(var f=0;f<=c;f+=65535){var h=f+65535;h>=c&&(p[d>>3]=i),d=SH(p,d+1,e.subarray(f,h))}else{for(var _=Sz[t-1],E=_>>>13,m=8191&_,g=(1<<n)-1,S=new Sg(32768),v=new Sg(g+1),T=Math.ceil(n/3),y=2*T,b=function(t){return(e[t]^e[t+1]<<T^e[t+2]<<y)&g},A=new SS(25e3),R=new Sg(288),O=new Sg(32),N=0,I=0,C=(f=0,0),M=0,L=0;f<c;++f){var w=b(f),P=32767&f,D=v[w];if(S[P]=D,v[w]=P,M<=f){var x=c-f;if((N>7e3||C>24576)&&x>423){d=SY(e,p,0,A,R,O,I,C,L,f-L,d),C=N=I=0,L=f;for(var U=0;U<286;++U)R[U]=0;for(U=0;U<30;++U)O[U]=0}var k=2,B=0,V=m,F=P-D&32767;if(x>2&&w==b(f-F))for(var j=Math.min(E,x)-1,G=Math.min(32767,f),H=Math.min(258,x);F<=G&&--V&&P!=D;){if(e[f+k]==e[f+k-F]){for(var Y=0;Y<H&&e[f+Y]==e[f+Y-F];++Y);if(Y>k){if(k=Y,B=F,Y>j)break;var z=Math.min(F,Y-2),W=0;for(U=0;U<z;++U){var $=f-F+U+32768&32767,K=$-S[$]+32768&32767;K>W&&(W=K,D=$)}}}F+=(P=D)-(D=S[P])+32768&32767}if(B){A[C++]=0x10000000|SO[k]<<18|SN[B];var X=31&SO[k],q=31&SN[B];I+=Sv[X]+ST[q],++R[257+X],++O[q],M=f+k,++N}else A[C++]=e[f],++R[e[f]]}}d=SY(e,p,i,A,R,O,I,C,L,f-L,d),!i&&7&d&&(d=SH(p,d+1,SW))}return a=0,s=r+SU(d)+o,(null==a||a<0)&&(a=0),(null==s||s>l.length)&&(s=l.length),(u=new(2==l.BYTES_PER_ELEMENT?Sg:4==l.BYTES_PER_ELEMENT?SS:Sm)(s-a)).set(l.subarray(a,s)),u},SK=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&-0x12477ce0)^n>>>1;e[t]=n}return e}(),SX=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},Sq="undefined"!=typeof TextDecoder&&new TextDecoder;try{Sq.decode(SW,{stream:!0})}catch(e){}var SJ=null;try{SJ=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function SZ(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function SQ(e){return!0===(e&&e.__isLong__)}function S0(e){var t=Math.clz32(e&-e);return e?31-t:t}SZ.prototype.__isLong__,Object.defineProperty(SZ.prototype,"__isLong__",{value:!0}),SZ.isLong=SQ;var S1={},S2={};function S3(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=S2[e])?r:(n=S5(e,0,!0),o&&(S2[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=S1[e])?r:(n=S5(e,e<0?-1:0,!1),o&&(S1[e]=n),n)}function S4(e,t){if(isNaN(e))return t?vo:vr;if(t){if(e<0)return vo;if(e>=ve)return vc}else{if(e<=-vt)return vl;if(e+1>=vt)return vu}return e<0?S4(-e,t).neg():S5(e%S9|0,e/S9|0,t)}function S5(e,t,n){return new SZ(e,t,n)}SZ.fromInt=S3,SZ.fromNumber=S4,SZ.fromBits=S5;var S6=Math.pow;function S8(e,t,n){if(0===e.length)throw Error("empty string");if("number"==typeof t?(n=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?vo:vr;if((n=n||10)<2||36<n)throw RangeError("radix");if((r=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===r)return S8(e.substring(1),t,n).neg();for(var r,o=S4(S6(n,8)),i=vr,a=0;a<e.length;a+=8){var s=Math.min(8,e.length-a),u=parseInt(e.substring(a,a+s),n);if(s<8){var c=S4(S6(n,s));i=i.mul(c).add(S4(u))}else i=(i=i.mul(o)).add(S4(u))}return i.unsigned=t,i}function S7(e,t){return"number"==typeof e?S4(e,t):"string"==typeof e?S8(e,t):S5(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}SZ.fromString=S8,SZ.fromValue=S7;var S9=0x100000000,ve=0xffffffffffffffff,vt=0xffffffffffffffff/2,vn=S3(0x1000000),vr=S3(0);SZ.ZERO=vr;var vo=S3(0,!0);SZ.UZERO=vo;var vi=S3(1);SZ.ONE=vi;var va=S3(1,!0);SZ.UONE=va;var vs=S3(-1);SZ.NEG_ONE=vs;var vu=S5(-1,0x7fffffff,!1);SZ.MAX_VALUE=vu;var vc=S5(-1,-1,!0);SZ.MAX_UNSIGNED_VALUE=vc;var vl=S5(0,-0x80000000,!1);SZ.MIN_VALUE=vl;var vp=SZ.prototype;vp.toInt=function(){return this.unsigned?this.low>>>0:this.low},vp.toNumber=function(){return this.unsigned?(this.high>>>0)*S9+(this.low>>>0):this.high*S9+(this.low>>>0)},vp.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(vl)){var t=S4(e),n=this.div(t),r=n.mul(t).sub(this);return n.toString(e)+r.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var o=S4(S6(e,6),this.unsigned),i=this,a="";;){var s=i.div(o),u=(i.sub(s.mul(o)).toInt()>>>0).toString(e);if((i=s).isZero())return u+a;for(;u.length<6;)u="0"+u;a=""+u+a}},vp.getHighBits=function(){return this.high},vp.getHighBitsUnsigned=function(){return this.high>>>0},vp.getLowBits=function(){return this.low},vp.getLowBitsUnsigned=function(){return this.low>>>0},vp.getNumBitsAbs=function(){if(this.isNegative())return this.eq(vl)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<<t);t--);return 0!=this.high?t+33:t+1},vp.isZero=function(){return 0===this.high&&0===this.low},vp.eqz=vp.isZero,vp.isNegative=function(){return!this.unsigned&&this.high<0},vp.isPositive=function(){return this.unsigned||this.high>=0},vp.isOdd=function(){return!(1&~this.low)},vp.isEven=function(){return!(1&this.low)},vp.equals=function(e){return SQ(e)||(e=S7(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},vp.eq=vp.equals,vp.notEquals=function(e){return!this.eq(e)},vp.neq=vp.notEquals,vp.ne=vp.notEquals,vp.lessThan=function(e){return 0>this.comp(e)},vp.lt=vp.lessThan,vp.lessThanOrEqual=function(e){return 0>=this.comp(e)},vp.lte=vp.lessThanOrEqual,vp.le=vp.lessThanOrEqual,vp.greaterThan=function(e){return this.comp(e)>0},vp.gt=vp.greaterThan,vp.greaterThanOrEqual=function(e){return this.comp(e)>=0},vp.gte=vp.greaterThanOrEqual,vp.ge=vp.greaterThanOrEqual,vp.compare=function(e){if(SQ(e)||(e=S7(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},vp.comp=vp.compare,vp.negate=function(){return!this.unsigned&&this.eq(vl)?vl:this.not().add(vi)},vp.neg=vp.negate,vp.add=function(e){SQ(e)||(e=S7(e));var t,n,r,o=this.high>>>16,i=65535&this.high,a=this.low>>>16,s=65535&this.low,u=e.high>>>16,c=65535&e.high,l=e.low>>>16,p=0;return r=0+((t=0+((n=0+(s+(65535&e.low)))>>>16)+(a+l))>>>16),p+=(r+=i+c)>>>16,p+=o+u,S5((t&=65535)<<16|(n&=65535),(p&=65535)<<16|(r&=65535),this.unsigned)},vp.subtract=function(e){return SQ(e)||(e=S7(e)),this.add(e.neg())},vp.sub=vp.subtract,vp.multiply=function(e){if(this.isZero())return this;if(SQ(e)||(e=S7(e)),SJ)return S5(SJ.mul(this.low,this.high,e.low,e.high),SJ.get_high(),this.unsigned);if(e.isZero())return this.unsigned?vo:vr;if(this.eq(vl))return e.isOdd()?vl:vr;if(e.eq(vl))return this.isOdd()?vl:vr;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(vn)&&e.lt(vn))return S4(this.toNumber()*e.toNumber(),this.unsigned);var t,n,r,o=this.high>>>16,i=65535&this.high,a=this.low>>>16,s=65535&this.low,u=e.high>>>16,c=65535&e.high,l=e.low>>>16,p=65535&e.low,d=0;return r=0+((t=0+((n=0+s*p)>>>16)+a*p)>>>16),t&=65535,r+=(t+=s*l)>>>16,d+=(r+=i*p)>>>16,r&=65535,d+=(r+=a*l)>>>16,r&=65535,d+=(r+=s*c)>>>16,d+=o*p+i*l+a*c+s*u,S5((t&=65535)<<16|(n&=65535),(d&=65535)<<16|(r&=65535),this.unsigned)},vp.mul=vp.multiply,vp.divide=function(e){if(SQ(e)||(e=S7(e)),e.isZero())throw Error("division by zero");if(SJ)return this.unsigned||-0x80000000!==this.high||-1!==e.low||-1!==e.high?S5((this.unsigned?SJ.div_u:SJ.div_s)(this.low,this.high,e.low,e.high),SJ.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?vo:vr;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return vo;if(e.gt(this.shru(1)))return va;r=vo}else{if(this.eq(vl))return e.eq(vi)||e.eq(vs)?vl:e.eq(vl)?vi:(t=this.shr(1).div(e).shl(1)).eq(vr)?e.isNegative()?vi:vs:(n=this.sub(e.mul(t)),r=t.add(n.div(e)));if(e.eq(vl))return this.unsigned?vo:vr;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();r=vr}for(n=this;n.gte(e);){t=Math.max(1,Math.floor(n.toNumber()/e.toNumber()));for(var t,n,r,o=Math.ceil(Math.log(t)/Math.LN2),i=o<=48?1:S6(2,o-48),a=S4(t),s=a.mul(e);s.isNegative()||s.gt(n);)s=(a=S4(t-=i,this.unsigned)).mul(e);a.isZero()&&(a=vi),r=r.add(a),n=n.sub(s)}return r},vp.div=vp.divide,vp.modulo=function(e){return SQ(e)||(e=S7(e)),SJ?S5((this.unsigned?SJ.rem_u:SJ.rem_s)(this.low,this.high,e.low,e.high),SJ.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},vp.mod=vp.modulo,vp.rem=vp.modulo,vp.not=function(){return S5(~this.low,~this.high,this.unsigned)},vp.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},vp.clz=vp.countLeadingZeros,vp.countTrailingZeros=function(){return this.low?S0(this.low):S0(this.high)+32},vp.ctz=vp.countTrailingZeros,vp.and=function(e){return SQ(e)||(e=S7(e)),S5(this.low&e.low,this.high&e.high,this.unsigned)},vp.or=function(e){return SQ(e)||(e=S7(e)),S5(this.low|e.low,this.high|e.high,this.unsigned)},vp.xor=function(e){return SQ(e)||(e=S7(e)),S5(this.low^e.low,this.high^e.high,this.unsigned)},vp.shiftLeft=function(e){return SQ(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?S5(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):S5(0,this.low<<e-32,this.unsigned)},vp.shl=vp.shiftLeft,vp.shiftRight=function(e){return SQ(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?S5(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):S5(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},vp.shr=vp.shiftRight,vp.shiftRightUnsigned=function(e){return SQ(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?S5(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):S5(32===e?this.high:this.high>>>e-32,0,this.unsigned)},vp.shru=vp.shiftRightUnsigned,vp.shr_u=vp.shiftRightUnsigned,vp.rotateLeft=function(e){var t;return SQ(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?S5(this.high,this.low,this.unsigned):e<32?(t=32-e,S5(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),S5(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},vp.rotl=vp.rotateLeft,vp.rotateRight=function(e){var t;return SQ(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?S5(this.high,this.low,this.unsigned):e<32?(t=32-e,S5(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),S5(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},vp.rotr=vp.rotateRight,vp.toSigned=function(){return this.unsigned?S5(this.low,this.high,!1):this},vp.toUnsigned=function(){return this.unsigned?this:S5(this.low,this.high,!0)},vp.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},vp.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},vp.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},SZ.fromBytes=function(e,t,n){return n?SZ.fromBytesLE(e,t):SZ.fromBytesBE(e,t)},SZ.fromBytesLE=function(e,t){return new SZ(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},SZ.fromBytesBE=function(e,t){return new SZ(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)};var vd={},vf={},vh=function(e,t){for(var n=Array(arguments.length-1),r=0,o=2,i=!0;o<arguments.length;)n[r++]=arguments[o++];return new Promise(function(o,a){n[r]=function(e){if(i)if(i=!1,e)a(e);else{for(var t=Array(arguments.length-1),n=0;n<t.length;)t[n++]=arguments[n];o.apply(null,t)}};try{e.apply(t||null,n)}catch(e){i&&(i=!1,a(e))}})},v_={};v_.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var vE=Array(64),vm=Array(123),vg=0;vg<64;)vm[vE[vg]=vg<26?vg+65:vg<52?vg+71:vg<62?vg-4:vg-59|43]=vg++;v_.encode=function(e,t,n){for(var r,o=null,i=[],a=0,s=0;t<n;){var u=e[t++];switch(s){case 0:i[a++]=vE[u>>2],r=(3&u)<<4,s=1;break;case 1:i[a++]=vE[r|u>>4],r=(15&u)<<2,s=2;break;case 2:i[a++]=vE[r|u>>6],i[a++]=vE[63&u],s=0}a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),a=0)}return s&&(i[a++]=vE[r],i[a++]=61,1===s&&(i[a++]=61)),o?(a&&o.push(String.fromCharCode.apply(String,i.slice(0,a))),o.join("")):String.fromCharCode.apply(String,i.slice(0,a))};var vS="invalid encoding";function vv(){this._listeners={}}v_.decode=function(e,t,n){for(var r,o=n,i=0,a=0;a<e.length;){var s=e.charCodeAt(a++);if(61===s&&i>1)break;if(void 0===(s=vm[s]))throw Error(vS);switch(i){case 0:r=s,i=1;break;case 1:t[n++]=r<<2|(48&s)>>4,r=s,i=2;break;case 2:t[n++]=(15&r)<<4|(60&s)>>2,r=s,i=3;break;case 3:t[n++]=(3&r)<<6|s,i=0}}if(1===i)throw Error(vS);return n-o},v_.test=function(e){return/^(?:[A-Za-z0-9+/]{4}
vendor: 5,985 bytes, line 16
16)*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)},vv.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},vv.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r<n.length;)n[r].fn===t?n.splice(r,1):++r;return this},vv.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<t.length;)t[r].fn.apply(t[r++].ctx,n)}return this};var vT=vy(vy);function vy(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),r=128===n[3];function o(e,r,o){t[0]=e,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3]}function i(e,r,o){t[0]=e,r[o]=n[3],r[o+1]=n[2],r[o+2]=n[1],r[o+3]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t[0]}function s(e,r){return n[3]=e[r],n[2]=e[r+1],n[1]=e[r+2],n[0]=e[r+3],t[0]}e.writeFloatLE=r?o:i,e.writeFloatBE=r?i:o,e.readFloatLE=r?a:s,e.readFloatBE=r?s:a}():function(){function t(e,t,n,r){var o=+(t<0);if(o&&(t=-t),0===t)e(1/t>0?0:0x80000000,n,r);else if(isNaN(t))e(0x7fc00000,n,r);else if(t>34028234663852886e22)e((o<<31|0x7f800000)>>>0,n,r);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,n,r)}}function n(e,t,n){var r=e(t,n),o=2*(r>>31)+1,i=r>>>23&255,a=8388607&r;return 255===i?a?NaN:1/0*o:0===i?1401298464324817e-60*o*a:o*Math.pow(2,i-150)*(a+8388608)}e.writeFloatLE=t.bind(null,vb),e.writeFloatBE=t.bind(null,vA),e.readFloatLE=n.bind(null,vR),e.readFloatBE=n.bind(null,vO)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function o(e,r,o){t[0]=e,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3],r[o+4]=n[4],r[o+5]=n[5],r[o+6]=n[6],r[o+7]=n[7]}function i(e,r,o){t[0]=e,r[o]=n[7],r[o+1]=n[6],r[o+2]=n[5],r[o+3]=n[4],r[o+4]=n[3],r[o+5]=n[2],r[o+6]=n[1],r[o+7]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?o:i,e.writeDoubleBE=r?i:o,e.readDoubleLE=r?a:s,e.readDoubleBE=r?s:a}():function(){function t(e,t,n,r,o,i){var a,s=+(r<0);if(s&&(r=-r),0===r)e(0,o,i+t),e(1/r>0?0:0x80000000,o,i+n);else if(isNaN(r))e(0,o,i+t),e(0x7ff80000,o,i+n);else if(r>17976931348623157e292)e(0,o,i+t),e((s<<31|0x7ff00000)>>>0,o,i+n);else if(r<22250738585072014e-324)e((a=r/5e-324)>>>0,o,i+t),e((s<<31|a/0x100000000)>>>0,o,i+n);else{var u=Math.floor(Math.log(r)/Math.LN2);1024===u&&(u=1023),e(0x10000000000000*(a=r*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+n)}}function n(e,t,n,r,o){var i=e(r,o+t),a=e(r,o+n),s=2*(a>>31)+1,u=a>>>20&2047,c=0x100000000*(1048575&a)+i;return 2047===u?c?NaN:1/0*s:0===u?5e-324*s*c:s*Math.pow(2,u-1075)*(c+0x10000000000000)}e.writeDoubleLE=t.bind(null,vb,0,4),e.writeDoubleBE=t.bind(null,vA,4,0),e.readDoubleLE=n.bind(null,vR,0,4),e.readDoubleBE=n.bind(null,vO,4,0)}(),e}function vb(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function vA(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function vR(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function vO(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}var vN=function(e){return null},vI={};vI.length=function(e){for(var t=0,n=0,r=0;r<e.length;++r)(n=e.charCodeAt(r))<128?t+=1:n<2048?t+=2:55296==(64512&n)&&56320==(64512&e.charCodeAt(r+1))?(++r,t+=4):t+=3;return t},vI.read=function(e,t,n){if(n-t<1)return"";for(var r,o=null,i=[],a=0;t<n;)(r=e[t++])<128?i[a++]=r:r>191&&r<224?i[a++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[a++]=55296+(r>>10),i[a++]=56320+(1023&r)):i[a++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),a=0);return o?(a&&o.push(String.fromCharCode.apply(String,i.slice(0,a))),o.join("")):String.fromCharCode.apply(String,i.slice(0,a))},vI.write=function(e,t,n){for(var r,o,i=n,a=0;a<e.length;++a)(r=e.charCodeAt(a))<128?t[n++]=r:(r<2048?t[n++]=r>>6|192:(55296==(64512&r)&&56320==(64512&(o=e.charCodeAt(a+1)))?(r=65536+((1023&r)<<10)+(1023&o),++a,t[n++]=r>>18|240,t[n++]=r>>12&63|128):t[n++]=r>>12|224,t[n++]=r>>6&63|128),t[n++]=63&r|128);return n-i};var vC,vM,vL,vw=function(e,t,n){var r=n||8192,o=r>>>1,i=null,a=r;return function(n){if(n<1||n>o)return e(n);a+n>r&&(i=e(r),a=0);var s=t.call(i,a,a+=n);return 7&a&&(a=1+(7|a)),s}};function vP(){return vL||(vL=1,function(e){function t(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;++o)void 0!==e[r[o]]&&n||(e[r[o]]=t[r[o]]);return e}function n(e){function n(e,r){if(!(this instanceof n))return new n(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,n):Object.defineProperty(this,"stack",{value:Error().stack||""}),r&&t(this,r)}return(n.prototype=Object.create(Error.prototype)).constructor=n,Object.defineProperty(n.prototype,"name",{get:function(){return e}}),n.prototype.toString=function(){return this.name+": "+this.message},n}e.asPromise=vh,e.base64=v_,e.EventEmitter=vv,e.float=vT,e.inquire=vN,e.utf8=vI,e.pool=vw,e.LongBits=function(){if(vM)return vC;vM=1,vC=t;var e=vP();function t(e,t){this.lo=e>>>0,this.hi=t>>>0}var n=t.zero=new t(0,0);n.toNumber=function(){return 0},n.zzEncode=n.zzDecode=function(){return this},n.length=function(){return 1};var r=t.zeroHash="\0\0\0\0\0\0\0\0";t.fromNumber=function(e){if(0===e)return n;var r=e<0;r&&(e=-e);var o=e>>>0,i=(e-o)/0x100000000>>>0;return r&&(i=~i>>>0,o=~o>>>0,++o>0xffffffff&&(o=0,++i>0xffffffff&&(i=0))),new t(o,i)},t.from=function(r){if("number"==typeof r)return t.fromNumber(r);
vendor: 5,728 bytes, line 16
16if(e.isString(r)){if(!e.Long)return t.fromNumber(parseInt(r,10));r=e.Long.fromString(r)}return r.low||r.high?new t(r.low>>>0,r.high>>>0):n},t.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+0x100000000*n)}return this.lo+0x100000000*this.hi},t.prototype.toLong=function(t){return e.Long?new e.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var o=String.prototype.charCodeAt;return t.fromHash=function(e){return e===r?n:new t((o.call(e,0)|o.call(e,1)<<8|o.call(e,2)<<16|o.call(e,3)<<24)>>>0,(o.call(e,4)|o.call(e,5)<<8|o.call(e,6)<<16|o.call(e,7)<<24)>>>0)},t.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},t.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},t.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},t.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10},vC}(),e.isNode=!!(void 0!==s&&s&&s.process&&s.process.versions&&s.process.versions.node),e.global=e.isNode&&s||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||s,e.emptyArray=Object.freeze?Object.freeze([]):[],e.emptyObject=Object.freeze?Object.freeze({}):{},e.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},e.isString=function(e){return"string"==typeof e||e instanceof String},e.isObject=function(e){return e&&"object"==typeof e},e.isset=e.isSet=function(e,t){var n=e[t];return!(null==n||!e.hasOwnProperty(t))&&("object"!=typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},e.Buffer=function(){try{var t=e.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(e){return null}}(),e._Buffer_from=null,e._Buffer_allocUnsafe=null,e.newBuffer=function(t){return"number"==typeof t?e.Buffer?e._Buffer_allocUnsafe(t):new e.Array(t):e.Buffer?e._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},e.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,e.Long=e.global.dcodeIO&&e.global.dcodeIO.Long||e.global.Long||e.inquire("long"),e.key2Re=/^true|false|0|1$/,e.key32Re=/^-?(?:0|[1-9][0-9]*)$/,e.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,e.longToHash=function(t){return t?e.LongBits.from(t).toHash():e.LongBits.zeroHash},e.longFromHash=function(t,n){var r=e.LongBits.fromHash(t);return e.Long?e.Long.fromBits(r.lo,r.hi,n):r.toNumber(!!n)},e.merge=t,e.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},e.newError=n,e.ProtocolError=n("ProtocolError"),e.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},e.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},e.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},e._configure=function(){var t=e.Buffer;t?(e._Buffer_from=t.from!==Uint8Array.from&&t.from||function(e,n){return new t(e,n)},e._Buffer_allocUnsafe=t.allocUnsafe||function(e){return new t(e)}):e._Buffer_from=e._Buffer_allocUnsafe=null}}(vf)),vf}var vD,vx=vP(),vU=vx.LongBits,vk=vx.base64,vB=vx.utf8;function vV(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function vF(){}function vj(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function vG(){this.len=0,this.head=new vV(vF,0,0),this.tail=this.head,this.states=null}var vH=function(){return vx.Buffer?function(){return(vG.create=function(){return new vD})()}:function(){return new vG}};function vY(e,t,n){t[n]=255&e}function vz(e,t){this.len=e,this.next=void 0,this.val=t}function vW(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function v$(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}vG.create=vH(),vG.alloc=function(e){return new vx.Array(e)},vx.Array!==Array&&(vG.alloc=vx.pool(vG.alloc,vx.Array.prototype.subarray)),vG.prototype._push=function(e,t,n){return this.tail=this.tail.next=new vV(e,t,n),this.len+=t,this},vz.prototype=Object.create(vV.prototype),vz.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},vG.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new vz((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},vG.prototype.int32=function(e){return e<0?this._push(vW,10,vU.fromNumber(e)):this.uint32(e)},vG.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},vG.prototype.uint64=function(e){var t=vU.from(e);return this._push(vW,t.length(),t)},vG.prototype.int64=vG.prototype.uint64,vG.prototype.sint64=function(e){var t=vU.from(e).zzEncode();return this._push(vW,t.length(),t)},vG.prototype.bool=function(e){return this._push(vY,1,+!!e)},vG.prototype.fixed32=function(e){return this._push(v$,4,e>>>0)},vG.prototype.sfixed32=vG.prototype.fixed32,vG.prototype.fixed64=function(e){var t=vU.from(e);return this._push(v$,4,t.lo)._push(v$,4,t.hi)},vG.prototype.sfixed64=vG.prototype.fixed64,vG.prototype.float=function(e){return this._push(vx.float.writeFloatLE,4,e)},vG.prototype.double=function(e){return this._push(vx.float.writeDoubleLE,8,e)};var vK=vx.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r<e.length;++r)t[n+r]=e[r]};vG.prototype.bytes=function(e){var t=e.length>>>0;
vendor: 5,354 bytes, line 16
16if(!t)return this._push(vY,1,0);if(vx.isString(e)){var n=vG.alloc(t=vk.length(e));vk.decode(e,n,0),e=n}return this.uint32(t)._push(vK,t,e)},vG.prototype.string=function(e){var t=vB.length(e);return t?this.uint32(t)._push(vB.write,t,e):this._push(vY,1,0)},vG.prototype.fork=function(){return this.states=new vj(this),this.head=this.tail=new vV(vF,0,0),this.len=0,this},vG.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new vV(vF,0,0),this.len=0),this},vG.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},vG.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},vG._configure=function(e){vD=e,vG.create=vH(),vD._configure()},(vq.prototype=Object.create(vG.prototype)).constructor=vq;var vX=vP();function vq(){vG.call(this)}function vJ(e,t,n){e.length<40?vX.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}vq._configure=function(){vq.alloc=vX._Buffer_allocUnsafe,vq.writeBytesBuffer=vX.Buffer&&vX.Buffer.prototype instanceof Uint8Array&&"set"===vX.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r<e.length;)t[n++]=e[r++]}},vq.prototype.bytes=function(e){vX.isString(e)&&(e=vX._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(vq.writeBytesBuffer,t,e),this},vq.prototype.string=function(e){var t=vX.Buffer.byteLength(e);return this.uint32(t),t&&this._push(vJ,t,e),this},vq._configure();var vZ,vQ=vP(),v0=vQ.LongBits,v1=vQ.utf8;function v2(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function v3(e){this.buf=e,this.pos=0,this.len=e.length}var v4,v5="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new v3(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new v3(e);throw Error("illegal buffer")},v6=function(){return vQ.Buffer?function(e){return(v3.create=function(e){return vQ.Buffer.isBuffer(e)?new vZ(e):v5(e)})(e)}:v5};function v8(){var e=new v0(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw v2(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw v2(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function v7(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function v9(){if(this.pos+8>this.len)throw v2(this,8);return new v0(v7(this.buf,this.pos+=4),v7(this.buf,this.pos+=4))}v3.create=v6(),v3.prototype._slice=vQ.Array.prototype.subarray||vQ.Array.prototype.slice,v3.prototype.uint32=(v4=0xffffffff,function(){if(v4=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(v4=(v4|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(v4=(v4|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(v4=(v4|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(v4=(v4|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return v4;if((this.pos+=5)>this.len)throw this.pos=this.len,v2(this,10);return v4}),v3.prototype.int32=function(){return 0|this.uint32()},v3.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},v3.prototype.bool=function(){return 0!==this.uint32()},v3.prototype.fixed32=function(){if(this.pos+4>this.len)throw v2(this,4);return v7(this.buf,this.pos+=4)},v3.prototype.sfixed32=function(){if(this.pos+4>this.len)throw v2(this,4);return 0|v7(this.buf,this.pos+=4)},v3.prototype.float=function(){if(this.pos+4>this.len)throw v2(this,4);var e=vQ.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},v3.prototype.double=function(){if(this.pos+8>this.len)throw v2(this,4);var e=vQ.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},v3.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw v2(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},v3.prototype.string=function(){var e=this.bytes();return v1.read(e,0,e.length)},v3.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw v2(this,e);this.pos+=e}else do if(this.pos>=this.len)throw v2(this);while(128&this.buf[this.pos++]);return this},v3.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},v3._configure=function(e){vZ=e,v3.create=v6(),vZ._configure();var t=vQ.Long?"toLong":"toNumber";
16vQ.merge(v3.prototype,{int64:function(){return v8.call(this)[t](!1)},uint64:function(){return v8.call(this)[t](!0)},sint64:function(){return v8.call(this).zzDecode()[t](!1)},fixed64:function(){return v9.call(this)[t](!0)},sfixed64:function(){return v9.call(this)[t](!1)}})},(Tt.prototype=Object.create(v3.prototype)).constructor=Tt;var Te=vP();function Tt(e){v3.call(this,e)}Tt._configure=function(){Te.Buffer&&(Tt.prototype._slice=Te.Buffer.prototype.slice)},Tt.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},Tt._configure();var Tn={},Tr=vP();function To(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");Tr.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!n}(To.prototype=Object.create(Tr.EventEmitter.prototype)).constructor=To,To.prototype.rpcCall=function e(t,n,r,o,i){if(!o)throw TypeError("request must be specified");var a=this;if(!i)return Tr.asPromise(e,a,t,n,r,o);if(a.rpcImpl)try{return a.rpcImpl(t,n[a.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(e,n){if(e)return a.emit("error",e,t),i(e);if(null!==n){if(!(n instanceof r))try{n=r[a.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return a.emit("error",e,t),i(e)}return a.emit("data",n,t),i(null,n)}a.end(!0)})}catch(e){return a.emit("error",e,t),void setTimeout(function(){i(e)},0)}setTimeout(function(){i(Error("already ended"))},0)},To.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},Tn.Service=To;function Ti(){vd.util._configure(),vd.Writer._configure(vd.BufferWriter),vd.Reader._configure(vd.BufferReader)}vd.build="minimal",vd.Writer=vG,vd.BufferWriter=vq,vd.Reader=v3,vd.BufferReader=Tt,vd.util=vP(),vd.rpc=Tn,vd.roots={},vd.configure=Ti,Ti();var Ta=u(vd);let Ts={encode:(e,t=Ta.Writer.create())=>(void 0!==e.stringValue&&t.uint32(10).string(e.stringValue),void 0!==e.boolValue&&t.uint32(16).bool(e.boolValue),void 0!==e.intValue&&t.uint32(24).int64(e.intValue),void 0!==e.doubleValue&&t.uint32(33).double(e.doubleValue),void 0!==e.arrayValue&&Tu.encode(e.arrayValue,t.uint32(42).fork()).ldelim(),void 0!==e.kvlistValue&&Tc.encode(e.kvlistValue,t.uint32(50).fork()).ldelim(),void 0!==e.bytesValue&&t.uint32(58).bytes(e.bytesValue),t),decode(e,t){let n=e instanceof Ta.Reader?e:Ta.Reader.create(e),r=void 0===t?n.len:n.pos+t,o={stringValue:void 0,boolValue:void 0,intValue:void 0,doubleValue:void 0,arrayValue:void 0,kvlistValue:void 0,bytesValue:void 0};for(;n.pos<r;){let e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.stringValue=n.string();continue;case 2:if(16!==e)break;o.boolValue=n.bool();continue;case 3:if(24!==e)break;o.intValue=function(e){if(e.gt(globalThis.Number.MAX_SAFE_INTEGER))throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");return e.toNumber()}(n.int64());continue;case 4:if(33!==e)break;o.doubleValue=n.double();continue;case 5:if(42!==e)break;o.arrayValue=Tu.decode(n,n.uint32());continue;case 6:if(50!==e)break;o.kvlistValue=Tc.decode(n,n.uint32());continue;case 7:if(58!==e)break;o.bytesValue=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({stringValue:Tf(e.stringValue)?globalThis.String(e.stringValue):void 0,boolValue:Tf(e.boolValue)?globalThis.Boolean(e.boolValue):void 0,intValue:Tf(e.intValue)?globalThis.Number(e.intValue):void 0,doubleValue:Tf(e.doubleValue)?globalThis.Number(e.doubleValue):void 0,arrayValue:Tf(e.arrayValue)?Tu.fromJSON(e.arrayValue):void 0,kvlistValue:Tf(e.kvlistValue)?Tc.fromJSON(e.kvlistValue):void 0,bytesValue:Tf(e.bytesValue)?function(e){if(globalThis.Buffer)return Uint8Array.from(globalThis.Buffer.from(e,"base64"));{let t=globalThis.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}(e.bytesValue):void 0}),toJSON(e){let t={};return void 0!==e.stringValue&&(t.stringValue=e.stringValue),void 0!==e.boolValue&&(t.boolValue=e.boolValue),void 0!==e.intValue&&(t.intValue=Math.round(e.intValue)),void 0!==e.doubleValue&&(t.doubleValue=e.doubleValue),void 0!==e.arrayValue&&(t.arrayValue=Tu.toJSON(e.arrayValue)),void 0!==e.kvlistValue&&(t.kvlistValue=Tc.toJSON(e.kvlistValue)),void 0!==e.bytesValue&&(t.bytesValue=function(e){if(globalThis.Buffer)return globalThis.Buffer.from(e).toString("base64");{let t=[];
16return e.forEach(e=>{t.push(globalThis.String.fromCharCode(e))}),globalThis.btoa(t.join(""))}}(e.bytesValue)),t},create:e=>Ts.fromPartial(null!=e?e:{}),fromPartial(e){var t,n,r,o,i;let a={stringValue:void 0,boolValue:void 0,intValue:void 0,doubleValue:void 0,arrayValue:void 0,kvlistValue:void 0,bytesValue:void 0};return a.stringValue=null!=(t=e.stringValue)?t:void 0,a.boolValue=null!=(n=e.boolValue)?n:void 0,a.intValue=null!=(r=e.intValue)?r:void 0,a.doubleValue=null!=(o=e.doubleValue)?o:void 0,a.arrayValue=void 0!==e.arrayValue&&null!==e.arrayValue?Tu.fromPartial(e.arrayValue):void 0,a.kvlistValue=void 0!==e.kvlistValue&&null!==e.kvlistValue?Tc.fromPartial(e.kvlistValue):void 0,a.bytesValue=null!=(i=e.bytesValue)?i:void 0,a}},Tu={encode(e,t=Ta.Writer.create()){if(void 0!==e.values&&0!==e.values.length)for(let n of e.values)Ts.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){let n=e instanceof Ta.Reader?e:Ta.Reader.create(e),r=void 0===t?n.len:n.pos+t,o={values:[]};for(;n.pos<r;){let e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.values.push(Ts.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({values:globalThis.Array.isArray(null==e?void 0:e.values)?e.values.map(e=>Ts.fromJSON(e)):[]}),toJSON(e){var t;let n={};return(null==(t=e.values)?void 0:t.length)&&(n.values=e.values.map(e=>Ts.toJSON(e))),n},create:e=>Tu.fromPartial(null!=e?e:{}),fromPartial(e){var t;let n={values:[]};return n.values=(null==(t=e.values)?void 0:t.map(e=>Ts.fromPartial(e)))||[],n}},Tc={encode(e,t=Ta.Writer.create()){if(void 0!==e.values&&0!==e.values.length)for(let n of e.values)Tl.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){let n=e instanceof Ta.Reader?e:Ta.Reader.create(e),r=void 0===t?n.len:n.pos+t,o={values:[]};for(;n.pos<r;){let e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.values.push(Tl.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({values:globalThis.Array.isArray(null==e?void 0:e.values)?e.values.map(e=>Tl.fromJSON(e)):[]}),toJSON(e){var t;let n={};return(null==(t=e.values)?void 0:t.length)&&(n.values=e.values.map(e=>Tl.toJSON(e))),n},create:e=>Tc.fromPartial(null!=e?e:{}),fromPartial(e){var t;let n={values:[]};return n.values=(null==(t=e.values)?void 0:t.map(e=>Tl.fromPartial(e)))||[],n}},Tl={encode:(e,t=Ta.Writer.create())=>
16(void 0!==e.key&&""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&Ts.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){let n=e instanceof Ta.Reader?e:Ta.Reader.create(e),r=void 0===t?n.len:n.pos+t,o={key:"",value:void 0};for(;n.pos<r;){let e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.key=n.string();continue;case 2:if(18!==e)break;o.value=Ts.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({key:Tf(e.key)?globalThis.String(e.key):"",value:Tf(e.value)?Ts.fromJSON(e.value):void 0}),toJSON(e){let t={};return void 0!==e.key&&""!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=Ts.toJSON(e.value)),t},create:e=>Tl.fromPartial(null!=e?e:{}),fromPartial(e){var t;let n={key:"",value:void 0};return n.key=null!=(t=e.key)?t:"",n.value=void 0!==e.value&&null!==e.value?Ts.fromPartial(e.value):void 0,n}},Tp={encode:(e,t=Ta.Writer.create())=>(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),void 0!==e.version&&""!==e.version&&t.uint32(18).string(e.version),t),decode(e,t){let n=e instanceof Ta.Reader?e:Ta.Reader.create(e),r=void 0===t?n.len:n.pos+t,o={name:"",version:""};for(;n.pos<r;){let e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.name=n.string();continue;case 2:if(18!==e)break;o.version=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({name:Tf(e.name)?globalThis.String(e.name):"",version:Tf(e.version)?globalThis.String(e.version):""}),toJSON(e){let t={};return void 0!==e.name&&""!==e.name&&(t.name=e.name),void 0!==e.version&&""!==e.version&&(t.version=e.version),t},create:e=>Tp.fromPartial(null!=e?e:{}),fromPartial(e){var t,n;let r={name:"",version:""};return r.name=null!=(t=e.name)?t:"",r.version=null!=(n=e.version)?n:"",r}},Td={encode:(e,t=Ta.Writer.create())=>(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),void 0!==e.version&&""!==e.version&&t.uint32(18).string(e.version),t),decode(e,t){let n=e instanceof Ta.Reader?e:Ta.Reader.create(e),r=void 0===t?n.len:n.pos+t,o={name:"",version:""};for(;n.pos<r;){let e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.name=n.string();continue;case 2:if(18!==e)break;o.version=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({name:Tf(e.name)?globalThis.String(e.name):"",version:Tf(e.version)?globalThis.String(e.version):""}),toJSON(e){let t={};return void 0!==e.name&&""!==e.name&&(t.name=e.name),void 0!==e.version&&""!==e.version&&(t.version=e.version),t},create:e=>Td.fromPartial(null!=e?e:{}),fromPartial(e){var t,n;let r={name:"",version:""};return r.name=null!=(t=e.name)?t:"",r.version=null!=(n=e.version)?n:"",r}};function Tf(e){return null!=e}Ta.util.Long!==SZ&&(Ta.util.Long=SZ,Ta.configure());let Th={encode(e,t=Ta.Writer.create()){if(void 0!==e.attributes&&0!==e.attributes.length)for(let n of e.attributes)Tl.encode(n,t.uint32(10).fork()).ldelim();return void 0!==e.droppedAttributesCount&&0!==e.droppedAttributesCount&&t.uint32(16).uint32(e.droppedAttributesCount),t},decode(e,t){let n=e instanceof Ta.Reader?e:Ta.Reader.create(e),r=void 0===t?n.len:n.pos+t,o={attributes:[],droppedAttributesCount:0};for(;n.pos<r;){let e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.attributes.push(Tl.decode(n,n.uint32()));continue;case 2:if(16!==e)break;o.droppedAttributesCount=n.uint32();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({attributes:globalThis.Array.isArray(null==e?void 0:e.attributes)?e.attributes.map(e=>Tl.fromJSON(e)):[],droppedAttributesCount:null!=e.droppedAttributesCount?globalThis.Number(e.droppedAttributesCount):0}),toJSON(e){var t;let n={};return(null==(t=e.attributes)?void 0:t.length)&&(n.attributes=e.attributes.map(e=>Tl.toJSON(e))),void 0!==e.droppedAttributesCount&&0!==e.droppedAttributesCount&&(n.droppedAttributesCount=Math.round(e.droppedAttributesCount)),n},create:e=>Th.fromPartial(null!=e?e:{}),fromPartial(e){var t,n;let r={attributes:[],droppedAttributesCount:0};return r.attributes=(null==(t=e.attributes)?void 0:t.map(e=>Tl.fromPartial(e)))||[],r.droppedAttributesCount=null!=(n=e.droppedAttributesCount)?n:0,r}};(t=i||(i={}))[t.SEVERITY_NUMBER_UNSPECIFIED=0]="SEVERITY_NUMBER_UNSPECIFIED",t[t.SEVERITY_NUMBER_TRACE=1]="SEVERITY_NUMBER_TRACE",t[t.SEVERITY_NUMBER_TRACE2=2]="SEVERITY_NUMBER_TRACE2",t[t.SEVERITY_NUMBER_TRACE3=3]="SEVERITY_NUMBER_TRACE3",t[t.SEVERITY_NUMBER_TRACE4=4]="SEVERITY_NUMBER_TRACE4",t[t.SEVERITY_NUMBER_DEBUG=5]="SEVERITY_NUMBER_DEBUG",t[t.SEVERITY_NUMBER_DEBUG2=6]="SEVERITY_NUMBER_DEBUG2",t[t.SEVERITY_NUMBER_DEBUG3=7]="SEVERITY_NUMBER_DEBUG3",t[t.SEVERITY_NUMBER_DEBUG4=8]="SEVERITY_NUMBER_DEBUG4",t[t.SEVERITY_NUMBER_INFO=9]="SEVERITY_NUMBER_INFO",t[t.SEVERITY_NUMBER_INFO2=10]="SEVERITY_NUMBER_INFO2",t[t.SEVERITY_NUMBER_INFO3=11]="SEVERITY_NUMBER_INFO3",t[t.SEVERITY_NUMBER_INFO4=12]="SEVERITY_NUMBER_INFO4",t[t.SEVERITY_NUMBER_WARN=13]="SEVERITY_NUMBER_WARN",t[t.SEVERITY_NUMBER_WARN2=14]="SEVERITY_NUMBER_WARN2",t[t.SEVERITY_NUMBER_WARN3=15]="SEVERITY_NUMBER_WARN3",t[t.SEVERITY_NUMBER_WARN4=16]="SEVERITY_NUMBER_WARN4",t[t.SEVERITY_NUMBER_ERROR=17]="SEVERITY_NUMBER_ERROR",t[t.SEVERITY_NUMBER_ERROR2=18]="SEVERITY_NUMBER_ERROR2",t[t.SEVERITY_NUMBER_ERROR3=19]="SEVERITY_NUMBER_ERROR3",t[t.SEVERITY_NUMBER_ERROR4=20]="SEVERITY_NUMBER_ERROR4",t[t.SEVERITY_NUMBER_FATAL=21]="SEVERITY_NUMBER_FATAL",t[t.SEVERITY_NUMBER_FATAL2=22]="SEVERITY_NUMBER_FATAL2",t[t.SEVERITY_NUMBER_FATAL3=23]="SEVERITY_NUMBER_FATAL3",t[t.SEVERITY_NUMBER_FATAL4=24]="SEVERITY_NUMBER_FATAL4",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",(o=a||(a={}))[o.LOG_RECORD_FLAG_UNSPECIFIED=0]="LOG_RECORD_FLAG_UNSPECIFIED",o[o.LOG_RECORD_FLAG_TRACE_FLAGS_MASK=255]="LOG_RECORD_FLAG_TRACE_FLAGS_MASK",o[o.UNRECOGNIZED=-1]="UNRECOGNIZED";let T_={encode(e,t=Ta.Writer.create()){if(void 0!==e.resourceLogs&&0!==e.resourceLogs.length)for(let n of e.resourceLogs)TE.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){let n=e instanceof Ta.Reader?e:Ta.Reader.create(e),r=void 0===t?n.len:n.pos+t,o={resourceLogs:[]};for(;n.pos<r;){let e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.resourceLogs.push(TE.decode(n,n.uint32()));continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({resourceLogs:globalThis.Array.isArray(null==e?void 0:e.resourceLogs)?e.resourceLogs.map(e=>TE.fromJSON(e)):[]}),toJSON(e){var t;let n={};return(null==(t=e.resourceLogs)?void 0:t.length)&&(n.resourceLogs=e.resourceLogs.map(e=>TE.toJSON(e))),n},create:e=>T_.fromPartial(null!=e?e:{}),fromPartial(e){var t;let n={resourceLogs:[]};return n.resourceLogs=(null==(t=e.resourceLogs)?void 0:t.map(e=>TE.fromPartial(e)))||[],n}},TE={encode(e,t=Ta.Writer.create()){if(void 0!==e.resource&&Th.encode(e.resource,t.uint32(10).fork()).ldelim(),void 0!==e.scopeLogs&&0!==e.scopeLogs.length)for(let n of e.scopeLogs)Tm.encode(n,t.uint32(18).fork()).ldelim();if(void 0!==e.instrumentationLibraryLogs&&0!==e.instrumentationLibraryLogs.length)for(let n of e.instrumentationLibraryLogs)Tg.encode(n,t.uint32(8002).fork()).ldelim();return void 0!==e.schemaUrl&&""!==e.schemaUrl&&t.uint32(26).string(e.schemaUrl),t},decode(e,t){let n=e instanceof Ta.Reader?e:Ta.Reader.create(e),r=void 0===t?n.len:n.pos+t,o={resource:void 0,scopeLogs:[],instrumentationLibraryLogs:[],schemaUrl:""};for(;n.pos<r;){let e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.resource=Th.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.scopeLogs.push(Tm.decode(n,n.uint32()));continue;case 1e3:if(8002!==e)break;o.instrumentationLibraryLogs.push(Tg.decode(n,n.uint32()));continue;case 3:if(26!==e)break;o.schemaUrl=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({resource:TA(e.resource)?Th.fromJSON(e.resource):void 0,scopeLogs:globalThis.Array.isArray(null==e?void 0:e.scopeLogs)?e.scopeLogs.map(e=>Tm.fromJSON(e)):[],instrumentationLibraryLogs:globalThis.Array.isArray(null==e?void 0:e.instrumentationLibraryLogs)?e.instrumentationLibraryLogs.map(e=>Tg.fromJSON(e)):[],schemaUrl:TA(e.schemaUrl)?globalThis.String(e.schemaUrl):""}),toJSON(e){var t,n;let r={};return void 0!==e.resource&&(r.resource=Th.toJSON(e.resource)),(null==(t=e.scopeLogs)?void 0:t.length)&&(r.scopeLogs=e.scopeLogs.map(e=>Tm.toJSON(e))),(null==(n=e.instrumentationLibraryLogs)?void 0:n.length)&&(r.instrumentationLibraryLogs=e.instrumentationLibraryLogs.map(e=>Tg.toJSON(e))),void 0!==e.schemaUrl&&""!==e.schemaUrl&&(r.schemaUrl=e.schemaUrl),r},create:e=>TE.fromPartial(null!=e?e:{}),fromPartial(e){var t,n,r;let o={resource:void 0,scopeLogs:[],instrumentationLibraryLogs:[],schemaUrl:""};return o.resource=void 0!==e.resource&&null!==e.resource?Th.fromPartial(e.resource):void 0,o.scopeLogs=(null==(t=e.scopeLogs)?void 0:t.map(e=>Tm.fromPartial(e)))||[],o.instrumentationLibraryLogs=(null==(n=e.instrumentationLibraryLogs)?void 0:n.map(e=>Tg.fromPartial(e)))||[],o.schemaUrl=null!=(r=e.schemaUrl)?r:"",o}},Tm={encode(e,t=Ta.Writer.create()){if(void 0!==e.scope&&Td.encode(e.scope,t.uint32(10).fork()).ldelim(),void 0!==e.logRecords&&0!==e.logRecords.length)for(let n of e.logRecords)Tv.encode(n,t.uint32(18).fork()).ldelim();return void 0!==e.schemaUrl&&""!==e.schemaUrl&&t.uint32(26).string(e.schemaUrl),t},decode(e,t){let n=e instanceof Ta.Reader?e:Ta.Reader.create(e),r=void 0===t?n.len:n.pos+t,o={scope:void 0,logRecords:[],schemaUrl:""};for(;n.pos<r;){let e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.scope=Td.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.logRecords.push(Tv.decode(n,n.uint32()));continue;case 3:if(26!==e)break;o.schemaUrl=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({scope:TA(e.scope)?Td.fromJSON(e.scope):void 0,logRecords:globalThis.Array.isArray(null==e?void 0:e.logRecords)?e.logRecords.map(e=>Tv.fromJSON(e)):[],schemaUrl:TA(e.schemaUrl)?globalThis.String(e.schemaUrl):""}),toJSON(e){var t;let n={};return void 0!==e.scope&&(n.scope=Td.toJSON(e.scope)),(null==(t=e.logRecords)?void 0:t.length)&&(n.logRecords=e.logRecords.map(e=>Tv.toJSON(e))),void 0!==e.schemaUrl&&""!==e.schemaUrl&&(n.schemaUrl=e.schemaUrl),n},create:e=>Tm.fromPartial(null!=e?e:{}),fromPartial(e){var t,n;let r={scope:void 0,logRecords:[],schemaUrl:""};return r.scope=void 0!==e.scope&&null!==e.scope?Td.fromPartial(e.scope):void 0,r.logRecords=(null==(t=e.logRecords)?void 0:t.map(e=>Tv.fromPartial(e)))||[],r.schemaUrl=null!=(n=e.schemaUrl)?n:"",r}},Tg={encode(e,t=Ta.Writer.create()){if(void 0!==e.instrumentationLibrary&&Tp.encode(e.instrumentationLibrary,t.uint32(10).fork()).ldelim(),void 0!==e.logRecords&&0!==e.logRecords.length)for(let n of e.logRecords)Tv.encode(n,t.uint32(18).fork()).ldelim();return void 0!==e.schemaUrl&&""!==e.schemaUrl&&t.uint32(26).string(e.schemaUrl),t},decode(e,t){let n=e instanceof Ta.Reader?e:Ta.Reader.create(e),r=void 0===t?n.len:n.pos+t,o={instrumentationLibrary:void 0,logRecords:[],schemaUrl:""};for(;n.pos<r;){let e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;o.instrumentationLibrary=Tp.decode(n,n.uint32());continue;case 2:if(18!==e)break;o.logRecords.push(Tv.decode(n,n.uint32()));continue;case 3:if(26!==e)break;o.schemaUrl=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({instrumentationLibrary:TA(e.instrumentationLibrary)?Tp.fromJSON(e.instrumentationLibrary):void 0,logRecords:globalThis.Array.isArray(null==e?void 0:e.logRecords)?e.logRecords.map(e=>Tv.fromJSON(e)):[],schemaUrl:TA(e.schemaUrl)?globalThis.String(e.schemaUrl):""}),toJSON(e){var t;let n={};return void 0!==e.instrumentationLibrary&&(n.instrumentationLibrary=Tp.toJSON(e.instrumentationLibrary)),(null==(t=e.logRecords)?void 0:t.length)&&(n.logRecords=e.logRecords.map(e=>Tv.toJSON(e))),void 0!==e.schemaUrl&&""!==e.schemaUrl&&(n.schemaUrl=e.schemaUrl),n},create:e=>Tg.fromPartial(null!=e?e:{}),fromPartial(e){var t,n;let r={instrumentationLibrary:void 0,logRecords:[],schemaUrl:""};return r.instrumentationLibrary=void 0!==e.instrumentationLibrary&&null!==e.instrumentationLibrary?Tp.fromPartial(e.instrumentationLibrary):void 0,r.logRecords=(null==(t=e.logRecords)?void 0:t.map(e=>Tv.fromPartial(e)))||[],r.schemaUrl=null!=(n=e.schemaUrl)?n:"",r}};function TS(){return{timeUnixNano:0,observedTimeUnixNano:0,severityNumber:0,severityText:"",body:void 0,attributes:[],droppedAttributesCount:0,flags:0,traceId:new Uint8Array(0),spanId:new Uint8Array(0)}}let Tv={encode(e,t=Ta.Writer.create()){if(void 0!==e.timeUnixNano&&0!==e.timeUnixNano&&t.uint32(9).fixed64(e.timeUnixNano),void 0!==e.observedTimeUnixNano&&0!==e.observedTimeUnixNano&&t.uint32(89).fixed64(e.observedTimeUnixNano),void 0!==e.severityNumber&&0!==e.severityNumber&&t.uint32(16).int32(e.severityNumber),void 0!==e.severityText&&""!==e.severityText&&t.uint32(26).string(e.severityText),void 0!==e.body&&Ts.encode(e.body,t.uint32(42).fork()).ldelim(),void 0!==e.attributes&&0!==e.attributes.length)for(let n of e.attributes)Tl.encode(n,t.uint32(50).fork()).ldelim();return void 0!==e.droppedAttributesCount&&0!==e.droppedAttributesCount&&t.uint32(56).uint32(e.droppedAttributesCount),void 0!==e.flags&&0!==e.flags&&t.uint32(69).fixed32(e.flags),void 0!==e.traceId&&0!==e.traceId.length&&t.uint32(74).bytes(e.traceId),void 0!==e.spanId&&0!==e.spanId.length&&t.uint32(82).bytes(e.spanId),t},decode(e,t){let n=e instanceof Ta.Reader?e:Ta.Reader.create(e),r=void 0===t?n.len:n.pos+t,o=TS();for(;n.pos<r;){let e=n.uint32();switch(e>>>3){case 1:if(9!==e)break;o.timeUnixNano=Tb(n.fixed64());continue;case 11:if(89!==e)break;o.observedTimeUnixNano=Tb(n.fixed64());continue;case 2:if(16!==e)break;o.severityNumber=n.int32();continue;case 3:if(26!==e)break;o.severityText=n.string();continue;case 5:if(42!==e)break;o.body=Ts.decode(n,n.uint32());continue;case 6:if(50!==e)break;o.attributes.push(Tl.decode(n,n.uint32()));continue;case 7:if(56!==e)break;o.droppedAttributesCount=n.uint32();continue;case 8:if(69!==e)break;o.flags=n.fixed32();continue;case 9:if(74!==e)break;o.traceId=n.bytes();continue;case 10:if(82!==e)break;o.spanId=n.bytes();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return o},fromJSON:e=>({timeUnixNano:TA(e.timeUnixNano)?globalThis.Number(e.timeUnixNano):0,observedTimeUnixNano:TA(e.observedTimeUnixNano)?globalThis.Number(e.observedTimeUnixNano):0,severityNumber:TA(e.severityNumber)?function(e){switch(e){case 0:case"SEVERITY_NUMBER_UNSPECIFIED":return i.SEVERITY_NUMBER_UNSPECIFIED;case 1:case"SEVERITY_NUMBER_TRACE":return i.SEVERITY_NUMBER_TRACE;case 2:case"SEVERITY_NUMBER_TRACE2":return i.SEVERITY_NUMBER_TRACE2;case 3:case"SEVERITY_NUMBER_TRACE3":return i.SEVERITY_NUMBER_TRACE3;case 4:case"SEVERITY_NUMBER_TRACE4":return i.SEVERITY_NUMBER_TRACE4;case 5:case"SEVERITY_NUMBER_DEBUG":return i.SEVERITY_NUMBER_DEBUG;case 6:case"SEVERITY_NUMBER_DEBUG2":return i.SEVERITY_NUMBER_DEBUG2;case 7:case"SEVERITY_NUMBER_DEBUG3":return i.SEVERITY_NUMBER_DEBUG3;case 8:case"SEVERITY_NUMBER_DEBUG4":return i.SEVERITY_NUMBER_DEBUG4;case 9:case"SEVERITY_NUMBER_INFO":return i.SEVERITY_NUMBER_INFO;case 10:case"SEVERITY_NUMBER_INFO2":return i.SEVERITY_NUMBER_INFO2;case 11:case"SEVERITY_NUMBER_INFO3":return i.SEVERITY_NUMBER_INFO3;case 12:case"SEVERITY_NUMBER_INFO4":return i.SEVERITY_NUMBER_INFO4;case 13:case"SEVERITY_NUMBER_WARN":return i.SEVERITY_NUMBER_WARN;case 14:case"SEVERITY_NUMBER_WARN2":return i.SEVERITY_NUMBER_WARN2;case 15:case"SEVERITY_NUMBER_WARN3":return i.SEVERITY_NUMBER_WARN3;case 16:case"SEVERITY_NUMBER_WARN4":return i.SEVERITY_NUMBER_WARN4;case 17:case"SEVERITY_NUMBER_ERROR":return i.SEVERITY_NUMBER_ERROR;case 18:case"SEVERITY_NUMBER_ERROR2":return i.SEVERITY_NUMBER_ERROR2;case 19:case"SEVERITY_NUMBER_ERROR3":return i.SEVERITY_NUMBER_ERROR3;case 20:case"SEVERITY_NUMBER_ERROR4":return i.SEVERITY_NUMBER_ERROR4;case 21:case"SEVERITY_NUMBER_FATAL":return i.SEVERITY_NUMBER_FATAL;case 22:case"SEVERITY_NUMBER_FATAL2":return i.SEVERITY_NUMBER_FATAL2;case 23:case"SEVERITY_NUMBER_FATAL3":return i.SEVERITY_NUMBER_FATAL3;case 24:case"SEVERITY_NUMBER_FATAL4":return i.SEVERITY_NUMBER_FATAL4;default:return i.UNRECOGNIZED}}(e.severityNumber):0,severityText:TA(e.severityText)?globalThis.String(e.severityText):"",body:TA(e.body)?Ts.fromJSON(e.body):void 0,attributes:globalThis.Array.isArray(null==e?void 0:e.attributes)?e.attributes.map(e=>Tl.fromJSON(e)):[],droppedAttributesCount:TA(e.droppedAttributesCount)?globalThis.Number(e.droppedAttributesCount):0,flags:TA(e.flags)?globalThis.Number(e.flags):
160,traceId:TA(e.traceId)?TT(e.traceId):new Uint8Array(0),spanId:TA(e.spanId)?TT(e.spanId):new Uint8Array(0)}),toJSON(e){var t;let n={};return void 0!==e.timeUnixNano&&0!==e.timeUnixNano&&(n.timeUnixNano=Math.round(e.timeUnixNano)),void 0!==e.observedTimeUnixNano&&0!==e.observedTimeUnixNano&&(n.observedTimeUnixNano=Math.round(e.observedTimeUnixNano)),void 0!==e.severityNumber&&0!==e.severityNumber&&(n.severityNumber=function(e){switch(e){case i.SEVERITY_NUMBER_UNSPECIFIED:return"SEVERITY_NUMBER_UNSPECIFIED";case i.SEVERITY_NUMBER_TRACE:return"SEVERITY_NUMBER_TRACE";case i.SEVERITY_NUMBER_TRACE2:return"SEVERITY_NUMBER_TRACE2";case i.SEVERITY_NUMBER_TRACE3:return"SEVERITY_NUMBER_TRACE3";case i.SEVERITY_NUMBER_TRACE4:return"SEVERITY_NUMBER_TRACE4";case i.SEVERITY_NUMBER_DEBUG:return"SEVERITY_NUMBER_DEBUG";case i.SEVERITY_NUMBER_DEBUG2:return"SEVERITY_NUMBER_DEBUG2";case i.SEVERITY_NUMBER_DEBUG3:return"SEVERITY_NUMBER_DEBUG3";case i.SEVERITY_NUMBER_DEBUG4:return"SEVERITY_NUMBER_DEBUG4";case i.SEVERITY_NUMBER_INFO:return"SEVERITY_NUMBER_INFO";case i.SEVERITY_NUMBER_INFO2:return"SEVERITY_NUMBER_INFO2";case i.SEVERITY_NUMBER_INFO3:return"SEVERITY_NUMBER_INFO3";case i.SEVERITY_NUMBER_INFO4:return"SEVERITY_NUMBER_INFO4";case i.SEVERITY_NUMBER_WARN:return"SEVERITY_NUMBER_WARN";case i.SEVERITY_NUMBER_WARN2:return"SEVERITY_NUMBER_WARN2";case i.SEVERITY_NUMBER_WARN3:return"SEVERITY_NUMBER_WARN3";case i.SEVERITY_NUMBER_WARN4:return"SEVERITY_NUMBER_WARN4";case i.SEVERITY_NUMBER_ERROR:return"SEVERITY_NUMBER_ERROR";case i.SEVERITY_NUMBER_ERROR2:return"SEVERITY_NUMBER_ERROR2";case i.SEVERITY_NUMBER_ERROR3:return"SEVERITY_NUMBER_ERROR3";case i.SEVERITY_NUMBER_ERROR4:return"SEVERITY_NUMBER_ERROR4";case i.SEVERITY_NUMBER_FATAL:return"SEVERITY_NUMBER_FATAL";case i.SEVERITY_NUMBER_FATAL2:return"SEVERITY_NUMBER_FATAL2";case i.SEVERITY_NUMBER_FATAL3:return"SEVERITY_NUMBER_FATAL3";case i.SEVERITY_NUMBER_FATAL4:return"SEVERITY_NUMBER_FATAL4";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.severityNumber)),void 0!==e.severityText&&""!==e.severityText&&(n.severityText=e.severityText),void 0!==e.body&&(n.body=Ts.toJSON(e.body)),(null==(t=e.attributes)?void 0:t.length)&&(n.attributes=e.attributes.map(e=>Tl.toJSON(e))),void 0!==e.droppedAttributesCount&&0!==e.droppedAttributesCount&&(n.droppedAttributesCount=Math.round(e.droppedAttributesCount)),void 0!==e.flags&&0!==e.flags&&(n.flags=Math.round(e.flags)),void 0!==e.traceId&&0!==e.traceId.length&&(n.traceId=Ty(e.traceId)),void 0!==e.spanId&&0!==e.spanId.length&&(n.spanId=Ty(e.spanId)),n},create:e=>Tv.fromPartial(null!=e?e:{}),fromPartial(e){var t,n,r,o,i,a,s,u,c;let l=TS();return l.timeUnixNano=null!=(t=e.timeUnixNano)?t:0,l.observedTimeUnixNano=null!=(n=e.observedTimeUnixNano)?n:0,l.severityNumber=null!=(r=e.severityNumber)?r:0,l.severityText=null!=(o=e.severityText)?o:"",l.body=void 0!==e.body&&null!==e.body?Ts.fromPartial(e.body):void 0,l.attributes=(null==(i=e.attributes)?void 0:i.map(e=>Tl.fromPartial(e)))||[],l.droppedAttributesCount=null!=(a=e.droppedAttributesCount)?a:0,l.flags=null!=(s=e.flags)?s:0,l.traceId=null!=(u=e.traceId)?u:new Uint8Array(0),l.spanId=null!=(c=e.spanId)?c:new Uint8Array(0),l}};function TT(e){if(globalThis.Buffer)return Uint8Array.from(globalThis.Buffer.from(e,"base64"));{let t=globalThis.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function Ty(e){if(globalThis.Buffer)return globalThis.Buffer.from(e).toString("base64");{let t=[];return e.forEach(e=>{t.push(globalThis.String.fromCharCode(e))}),globalThis.btoa(t.join(""))}}function Tb(e){if(e.gt(globalThis.Number.MAX_SAFE_INTEGER))throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");return e.toNumber()}function TA(e){return null!=e}Ta.util.Long!==SZ&&(Ta.util.Long=SZ,Ta.configure());let TR="0.16.2",TO={"Content-Type":"application/x-protobuf","Content-Encoding":"gzip"};function TN(e){return Array.isArray(e)}function TI(e){return e&&"object"==typeof e&&!TN(e)?{kvlistValue:{values:Object.entries(e).map(([e,t])=>({key:e,value:TI(t)}))}}:TN(e)?{arrayValue:{values:e.map(e=>TI(e))}}:"string"==typeof e?{stringValue:e}:"number"==typeof e?{doubleValue:e}:"boolean"==typeof e?{boolValue:e}:{}}class TC{constructor(e){this.config=e}constructLogData(e){var t,n,r;return{resourceLogs:[{resource:{attributes:null==(r=null==(n=TI((null==(t=this.config.resource)?void 0:t.attributes)||{}))?void 0:n.kvlistValue)?void 0:r.values},scopeLogs:[{scope:{name:"rum.rr-web",version:TR},logRecords:e.map(e=>{var t;return{body:TI(e.body),timeUnixNano:1e6*e.timeUnixNano,attributes:null==(t=TI(e.attributes||{}).kvlistValue)?void 0:t.values}})}]}]}}export(e){var t,n,r,o,i,a,s,u,c,l,p;if(0===e.length)return;let d=this.constructLogData(e);this.config.debug&&console.log("otlp request",d);let f=(t=T_.encode(d).finish(),n||(n={}),r=-1,o={p:function(e){for(var t=r,n=0;n<e.length;++n)t=SK[255&t^e[n]]^t>>>8;r=t},d:function(){return~r}},i=t.length,o.p(t),p=(s=n,u=10+((a=n).filename&&a.filename.length+1||0),l=S$(t,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+s.mem,u,8,!c)).length,function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:2*(9==t.level),e[9]=3,0!=t.mtime&&SX(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}}(l,n),SX(l,p-8,o.d()),SX(l,p-4,i),l),h=this.config.headers?Object.assign({},TO,this.config.headers):TO;fetch(this.config.beaconUrl,{method:"POST",body:f,headers:h}).catch(()=>{})}}class TM{constructor(e,t){this.logs=[],this.scheduledDelayMillis=(null==t?void 0:t.scheduledDelayMillis)||5e3,this.exporter=e,window.addEventListener("unload",()=>{this._flushAll()})}onLog(e){this.logs.push(e),void 0===this.timeout&&(this.timeout=setTimeout(()=>{this.timeout=void 0,this._flushAll()},this.scheduledDelayMillis))}_flushAll(){this.lastBatchSent=Date.now(),tm.with(fl(tm.active()),()=>{let e=this.logs.splice(0,this.logs.length);this.exporter.export(e)})}}class TL{constructor(e,t={}){var n,r;this.rrweb=e,this.options=t,this.bucketSize=100,this.refillRate=10,this.mutationBuckets={},this.loggedTracker={},this.refillBuckets=()=>
16{Object.keys(this.mutationBuckets).forEach(e=>{this.mutationBuckets[e]=this.mutationBuckets[e]+this.refillRate,this.mutationBuckets[e]>=this.bucketSize&&delete this.mutationBuckets[e]})},this.getNodeOrRelevantParent=e=>{let t=this.rrweb.mirror.getNode(e);if("svg"!==(null==t?void 0:t.nodeName)&&t instanceof Element){let e=t.closest("svg");if(e)return[this.rrweb.mirror.getId(e),e]}return[e,t]},this.numberOfChanges=e=>{var t,n,r,o,i,a,s,u;return(null!=(n=null==(t=e.removes)?void 0:t.length)?n:0)+(null!=(o=null==(r=e.attributes)?void 0:r.length)?o:0)+(null!=(a=null==(i=e.texts)?void 0:i.length)?a:0)+(null!=(u=null==(s=e.adds)?void 0:s.length)?u:0)},this.throttleMutations=e=>{if(3!==e.type||0!==e.data.source)return e;let t=e.data,n=this.numberOfChanges(t);t.attributes&&(t.attributes=t.attributes.filter(e=>{var t,n,r;let[o,i]=this.getNodeOrRelevantParent(e.id);return 0!==this.mutationBuckets[o]&&(this.mutationBuckets[o]=null!=(t=this.mutationBuckets[o])?t:this.bucketSize,this.mutationBuckets[o]=Math.max(this.mutationBuckets[o]-1,0),0===this.mutationBuckets[o]&&(this.loggedTracker[o]||(this.loggedTracker[o]=!0,null==(r=(n=this.options).onBlockedNode)||r.call(n,o,i))),e)}));let r=this.numberOfChanges(t);return 0!==r||n===r?e:void 0},this.refillRate=null!=(n=this.options.refillRate)?n:this.refillRate,this.bucketSize=null!=(r=this.options.bucketSize)?r:this.bucketSize,setInterval(()=>{this.refillBuckets()},1e3)}}var Tw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let TP=new TextEncoder,TD=new TextDecoder,Tx,TU,Tk,TB,TV=!1,TF=0,Tj=!1,TG=1,TH=1,TY={get inited(){return!!TV},init(e){if(TV)return;if("undefined"==typeof window)return void console.error("Session recorder can't be ran in non-browser environments");let t=tU.getTracerProvider();if(t&&"getDelegate"in t&&(t=t.getDelegate()),!(null==t?void 0:t.resource))return void console.error("RUM OTEL Web must be inited before recorder.");let n=t.resource,{apiKey:r,url:o,debug:i}=e,a=Tw(e,["apiKey","url","debug"]),s=(Tx=tU.getTracer("rum.rr-web",TR)).startSpan("record init");if(!s.isRecording())return;s.end();let u={};r&&(u.authorization=`${r}`);let c=new TM(new TC({beaconUrl:null!=o?o:"https://in-otel.hyperdx.io/v1/logs",debug:i,headers:u,resource:n}),{});TU=n.attributes["rum.sessionId"],TF=Date.now(),Tk=null!=Tk?Tk:new TL(SE,{onBlockedNode:(e,t)=>{let n=`OpenTelemetry Session Recorder: Rate limiting recording mutations on node ${e}. This can be due to excessive animations.`,r=Date.now(),o=Tx.startSpan("console.warn",{kind:to.INTERNAL,startTime:r});o.setAttribute("component","console"),o.setAttribute("level","warn"),o.setAttribute("message",n),o.end(r),i&&console.warn(n,t),clearTimeout(TB),TB=setTimeout(()=>{SE.takeFullSnapshot()},1e3)}}),TV=SE(Object.assign(Object.assign({maskAllInputs:!0,maskTextSelector:"*"}
16,a),{emit(e){if(Tj)return;if(n.attributes["rum.sessionId"]!==TU){if(document.hidden)return;TU=n.attributes["rum.sessionId"],TF=Date.now(),TG=1,TH=1,SE.takeFullSnapshot()}if(e.timestamp>TF+1446e4)return;let t=Tk?Tk.throttleMutations(e):e;if(!t)return;let r=t.timestamp,o=TG++,a=TP.encode(function(e){if(e.length>5e6)for(let t of e.matchAll(/data:([\w/\-.]+);(\w+),([^)"]*)/gim))e="image/"===t[1].toLocaleLowerCase().slice(0,6)?e.replace(t[0],"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg=="):e.replace(t[0],"");return e}(JSON.stringify(t))),s=Math.ceil(a.byteLength/972800);for(let e=0;e<s;e++){let t=972800*e,n=(e+1)*972800,u={body:TD.decode(a.slice(t,n)),timeUnixNano:r,attributes:{"rr-web.offset":TH++,"rr-web.event":o,"rr-web.chunk":e+1,"rr-web.total-chunks":s}};i&&console.log(u),c.onLog(u)}}}))},resume(){if(!TV)return;let e=Tj;Tj=!1,e||(SE.takeFullSnapshot(),Tx.startSpan("record resume").end())},stop(){TV&&(Tj&&Tx.startSpan("record stop").end(),Tj=!0)},deinit(){TV&&(TV(),TV=!1)}};function Tz(){return"undefined"!=typeof window}return new class{constructor(){this._advancedNetworkCapture=!1}init({advancedNetworkCapture:e=!1,apiKey:t,blockClass:n,captureConsole:r,consoleCapture:o,debug:i=!1,disableIntercom:a=!1,disableReplay:s=!1,ignoreClass:u,ignoreUrls:c,instrumentations:l={},maskAllInputs:p=!0,maskAllText:d=!1,maskClass:f,recordCanvas:h=!1,sampling:_,service:E,tracePropagationTargets:m,url:g}){var S,v;if(!Tz())return;null==t?console.warn("HyperDX: Missing apiKey, telemetry will not be saved."):""===t?console.warn("HyperDX: apiKey is empty string, telemetry will not be saved."):"string"!=typeof t&&console.warn("HyperDX: apiKey must be a string, telemetry will not be saved.");let T=null!=g?g:"https://in-otel.hyperdx.io";this._advancedNetworkCapture=e,m4.init({debug:i,url:`${T}/v1/traces`,allowInsecureUrl:!0,apiKey:t,app:E,ignoreUrls:c,instrumentations:{visibility:!0,console:null!=(S=null!=r?r:o)&&S,fetch:{...null!=m?{propagateTraceHeaderCorsUrls:m}:{},advancedNetworkCapture:()=>this._advancedNetworkCapture},xhr:{...null!=m?{propagateTraceHeaderCorsUrls:m}:{},advancedNetworkCapture:()=>this._advancedNetworkCapture},...l}}),!0!==s&&TY.init({apiKey:t,blockClass:n,debug:i,ignoreClass:u,maskAllInputs:p,maskTextClass:f,maskTextSelector:d?"*":void 0,recordCanvas:h,sampling:_,url:`${T}/v1/logs`});let y=tk.trace.getTracer("@hyperdx/browser");!0!==a&&(v="Intercom",new Promise((e,t)=>{let n=0,r=setInterval(()=>{n>20&&(clearInterval(r),t(Error(`Global ${v} not found`))),window[v]&&(clearInterval(r),e(window[v])),n++},100)})).then(()=>{window.Intercom("onShow",()=>{let e=this.getSessionUrl();if(null!=e){let t={hyperdxSessionUrl:e};window.Intercom("update",t),window.Intercom("trackEvent","HyperDX",t);let n=Date.now(),r=y.startSpan("intercom.onShow",{startTime:n});r.setAttribute("component","intercom"),r.end(n)}})}).catch(()=>{})}stopSessionRecorder(){Tz()&&TY.stop()}resumeSessionRecorder(){Tz()&&TY.resume()}addAction(e,t){Tz()&&m4.addAction(e,t)}recordException(e,t){Tz()&&m4.recordException(e,t)}enableAdvancedNetworkCapture(){this._advancedNetworkCapture=!0}disableAdvancedNetworkCapture(){this._advancedNetworkCapture=!1}setGlobalAttributes(e){Tz()&&m4.setGlobalAttributes(e)}getSessionId(){return m4.getSessionId()}getSessionUrl(){let e=Date.now();return m4.inited?`https://www.hyperdx.io/sessions?q=process.tag.rum.sessionId%3A"${m4.getSessionId()}"&sid=${m4.getSessionId()}&sfrom=${e-144e5}&sto=${e+144e5}&ts=${e}`:void 0}attachToReactErrorBoundary(e){if(!e)return console.warn("Attempted to attach to an ErrorBoundary that does not exist.");let t=this.recordException,n=e.prototype.componentDidCatch;e.prototype.componentDidCatch=function(e,r){t(e,{componentStack:null==r?void 0:r.componentStack}),n.call(this,e,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.