1var LTVModules=function(t){"use strict";var e="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},n="1.4.1",r=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;var o=function(t){var e=new Set([t]),n=new Set,o=t.match(r);if(!o)return function(){return!1};var i=+o[1],a=+o[2],s=+o[3];if(null!=o[4])return function(e){return e===t};function u(t){return n.add(t),!1}function c(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(n.has(t))return!1;var o=t.match(r);if(!o)return u(t);var l=+o[1],p=+o[2],f=+o[3];return null!=o[4]||i!==l?u(t):0===i?a===p&&s<=f?c(t):u(t):a<=p?c(t):u(t)}}(n),i=n.split(".")[0],a=Symbol.for("opentelemetry.js.api."+i),s=e;function u(t,e,r,o){var i;void 0===o&&(o=!1);var u=s[a]=null!==(i=s[a])&&void 0!==i?i:{version:n};if(!o&&u[t]){var c=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(c.stack||c.message),!1}if(u.version!==n){c=new Error("@opentelemetry/api: Registration of version v"+u.version+" for "+t+" does not match previously registered API v"+n);return r.error(c.stack||c.message),!1}return u[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+n+"."),!0}function c(t){var e,n,r=null===(e=s[a])||void 0===e?void 0:e.version;if(r&&o(r))return null===(n=s[a])||void 0===n?void 0:n[t]}function l(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+n+".");var r=s[a];r&&delete r[t]}var p,f=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},d=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},h=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return _("debug",this._namespace,t)},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return _("error",this._namespace,t)},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return _("info",this._namespace,t)},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return _("warn",this._namespace,t)},t.prototype.verbose=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return _("verbose",this._namespace,t)},t}();function _(t,e,n){var r=c("diag");if(r)return n.unshift(e),r[t].apply(r,d([],f(n),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(p||(p={}));var v=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},g=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},m=function(){function t(){function t(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=c("diag");if(r)return r[t].apply(r,g([],v(e),!1))}}var e=this;e.setLogger=function(t,n){var r,o,i;if(void 0===n&&(n={logLevel:p.INFO}),t===e){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(r=a.stack)&&void 0!==r?r:a.message),!1}"number"==typeof n&&(n={logLevel:n});var s=c("diag"),l=function(t,e){function n(n,r){var o=e[n];return"function"==typeof o&&t>=r?o.bind(e):function(){}}return t<p.NONE?t=p.NONE:t>p.ALL&&(t=p.ALL),e=e||{},{error:n("error",p.ERROR),warn:n("warn",p.WARN),info:n("info",p.INFO),debug:n("debug",p.DEBUG),verbose
1:n("verbose",p.VERBOSE)}}(null!==(o=n.logLevel)&&void 0!==o?o:p.INFO,t);if(s&&!n.suppressOverrideMessage){var f=null!==(i=(new Error).stack)&&void 0!==i?i:"<failed to generate stacktrace>";s.warn("Current logger will be overwritten from "+f),l.warn("Current logger will overwrite one already registered from "+f)}return u("diag",l,e,!0)},e.disable=function(){l("diag",e)},e.createComponentLogger=function(t){return new h(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),E=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},y=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},T=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map((function(t){var e=E(t,2);return[e[0],e[1]]}))},t.prototype.setEntry=function(e,n){var r=new t(this._entries);return r._entries.set(e,n),r},t.prototype.removeEntry=function(e){var n=new t(this._entries);return n._entries.delete(e),n},t.prototype.removeEntries=function(){for(var e,n,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=new t(this._entries);try{for(var a=y(r),s=a.next();!s.done;s=a.next()){var u=s.value;i._entries.delete(u)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),b=Symbol("BaggageEntryMetadata"),S=m.instance();function O(t){return void 0===t&&(t={}),new T(new Map(Object.entries(t)))}function w(t){return Symbol.for(t)}var R,A,L=function t(e){var n=this;n._currentContext=e?new Map(e):new Map,n.getValue=function(t){return n._currentContext.get(t)},n.setValue=function(e,r){var o=new t(n._currentContext);return o._currentContext.set(e,r),o},n.deleteValue=function(e){var r=new t(n._currentContext);return r._currentContext.delete(e),r}},C=new L,P=(R=function(t,e){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},R(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}R(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),k=function(){function t(){}return t.prototype.createHistogram=function(t,e){return Z},t.prototype.createCounter=function(t,e){return F},t.prototype.createUpDownCounter=function(t,e){return H},t.prototype.createObservableGauge=function(t,e){return G},t.prototype.createObservableCounter=function(t,e){return V},t.prototype.createObservableUpDownCounter=function(t,e){return X},t.prototype.addBatchObservableCallback=function(t,e){},t.prototype.removeBatchObservableCallback=function(t){},t}(),N=function(){},I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.add=function(t,e){},e}(N),x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.add=function(t,e){},e}(N),D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.record=function(t,e){},e}(N),M=function(){function t(){}return t.prototype.addCallback=function(t){},t.prototype.removeCallback=function(t){},t}(),U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e}(M),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e}(M),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e}(M),z=new k,F=new I,Z=new D,H=new x,V=new U,G=new j,X=new B,q={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},W={set:function(t,e,n){null!=t&&(t[e]=n)}},$=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},K=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Y=function(){function t(){}return t.prototype.active=function(){return C},t.prototype.with=function(t,e,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return e.call.apply(e,K([n],$(r),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),Q=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},J=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},tt="context",et=new Y,nt=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return u(tt,t,m.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,n){for(var r,o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return(r=this._getContextManager()).with.apply(r,J([t,e,n],Q(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return c(tt)||et},t.prototype.disable=function(){this._getContextManager().disable(),l(tt,m.instance())},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(A||(A={}));var rt="0000000000000000",ot="00000000000000000000000000000000",it={traceId:ot,spanId:rt,traceFlags:A.NONE},at=function(){function t(t){void 0===t&&(t=it),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),st=w("OpenTelemetry Context Key SPAN");function ut(t){return t.getValue(st)||void 0}function ct(){return ut(nt.getInstance().active())}function lt(t,e){return t.setValue(st,e)}function pt(t){return t.deleteValue(st)}function ft(t,e){return lt(t,new at(e))}function dt(t){var e;return null===(e=ut(t))||void 0===e?void 0:e.spanContext()}var ht=/^([0-9a-f]{32})$/i,_t=/^[0-9a-f]{16}$/i;function vt(t){return ht.test(t)&&t!==ot}function gt(t){return vt(t.traceId)&&(e=t.spanId,_t.test(e)&&e!==rt);var e}function mt(t){return new at(t)}var Et=nt.getInstance(),yt=function(){function t(){}return t.prototype.startSpan=function(t,e,n){if(void 0===n&&(n=Et.active()),Boolean(null==e?void 0:e.root))return new at;var r,o=n&&dt(n);return"object"==typeof(r=o)&&"string"==typeof r.spanId&&"string"==typeof r.traceId&&"number"==typeof r.traceFlags&>(o)?new at(o):new at},t.prototype.startActiveSpan=function(t,e,n,r){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=n):(o=e,i=n,a=r);var s=null!=i?i:Et.active(),u=this.startSpan(t,o,s),c=lt(s,u);return Et.with(c,a,void 0,u)}},t}();var Tt,bt,St,Ot=new yt,wt=function(){function t(t,e,n,r){this._provider=t,this.name=e,this.version=n,this.options=r}return t.prototype.startSpan=function(t,e,n){return this._getTracer().startSpan(t,e,n)},t.prototype.startActiveSpan=function(t,e,n,r){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Ot},t}(),Rt=new(function(){function t(){}return t.prototype.getTracer=function(t,e,n){return new yt},t}()),At=function(){function t(){}return t.prototype.getTracer=function(t,e,n){var r;return null!==(r=this.getDelegateTracer(t,e,n))&&void 0!==r?r:new wt(this,t,e,n)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Rt},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,n){var r;return null===(r=this._delegate)||void 0===r?void 0:r.getTracer(t,e,n)},t}();!function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(Tt||(Tt={})),function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"}(bt||(bt={})),function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"}(St||(St={}));var Lt=nt.getInstance(),Ct=m.instance(),Pt=new(function(){function t(){}return t.prototype.getMeter=function(t,e,n){return z},t}()),kt="metrics",Nt=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(t){return u(kt,t,m.instance())},t.prototype.getMeterProvider=function(){return c(kt)||Pt},t.prototype.getMeter=function(t,e,n){return this.getMeterProvider().getMeter(t,e,n)},t.prototype.disable=function(){l(kt,m.instance())},t}().getInstance(),It=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),xt=w("OpenTelemetry Baggage Key");function Dt(t){return t.getValue(xt)||void 0}function Mt(){return Dt(nt.getInstance().active())}function Ut(t,e){return t.setValue(xt,e)}function jt(t){return t.deleteValue(xt)}
1var Bt="propagation",zt=new It,Ft=function(){function t(){this.createBaggage=O,this.getBaggage=Dt,this.getActiveBaggage=Mt,this.setBaggage=Ut,this.deleteBaggage=jt}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return u(Bt,t,m.instance())},t.prototype.inject=function(t,e,n){return void 0===n&&(n=W),this._getGlobalPropagator().inject(t,e,n)},t.prototype.extract=function(t,e,n){return void 0===n&&(n=q),this._getGlobalPropagator().extract(t,e,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){l(Bt,m.instance())},t.prototype._getGlobalPropagator=function(){return c(Bt)||zt},t}(),Zt=Ft.getInstance(),Ht="trace",Vt=function(){function t(){this._proxyTracerProvider=new At,this.wrapSpanContext=mt,this.isSpanContextValid=gt,this.deleteSpan=pt,this.getSpan=ut,this.getActiveSpan=ct,this.getSpanContext=dt,this.setSpan=lt,this.setSpanContext=ft}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=u(Ht,this._proxyTracerProvider,m.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return c(Ht)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){l(Ht,m.instance()),this._proxyTracerProvider=new At},t}(),Gt=Vt.getInstance(),Xt="exception.type",qt="exception.message",Wt="exception.stacktrace",$t="http.url",Kt="http.user_agent",Yt="http.response_content_length",Qt="http.response_content_length_uncompressed",Jt="process.runtime.name",te="service.name",ee="service.version",ne="telemetry.sdk.name",re="telemetry.sdk.language",oe="telemetry.sdk.version",ie=w("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function ae(t){return!0===t.getValue(ie)}var se="baggage",ue=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function ce(t){var e=t.split(";");if(!(e.length<=0)){var n=e.shift();if(n){var r=n.indexOf("=");if(!(r<=0)){var o,i,a=decodeURIComponent(n.substring(0,r).trim()),s=decodeURIComponent(n.substring(r+1).trim());return e.length>0&&("string"!=typeof(i=e.join(";"))&&(S.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),o={__TYPE__:b,toString:function(){return i}}),{key:a,value:s,metadata:o}}}}}var le=function(){function t(){}return t.prototype.inject=function(t,e,n){var r=Zt.getBaggage(t);if(r&&!ae(t)){var o=function(t){return t.getAllEntries().map((function(t){var e=ue(t,2),n=e[0],r=e[1],o=encodeURIComponent(n)+"="+encodeURIComponent(r.value);return void 0!==r.metadata&&(o+=";"+r.metadata.toString()),o}))}(r).filter((function(t){return t.length<=4096})).slice(0,180),i=function(t){return t.reduce((function(t,e){var n=t+(""!==t?",":"")+e;return n.length>8192?t:n}),"")}(o);i.length>0&&n.set(e,se,i)}},t.prototype.extract=function(t,e,n){var r=n.get(e,se),o=Array.isArray(r)?r.join(","):r;if(!o)return t;var i={};return 0===o.length?t:(o.split(",").forEach((function(t){var e=ce(t);if(e){var n={value:e.value};e.metadata&&(n.metadata=e.metadata),i[e.key]=n}})),0===Object.entries(i).length?t:Zt.setBaggage(t,Zt.createBaggage(i)))},t.prototype.fields=function(){return[se]},t}(),pe=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},fe=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function de(t){var e,n,r={};if("object"!=typeof t||null==t)return r;try{for(var o=pe(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=fe(i.value,2),s=a[0],u=a[1];he(s)?_e(u)?Array.isArray(u)?r[s]=u.slice():r[s]=u:Ct.warn("Invalid attribute value set for key: "+s):Ct.warn("Invalid attribute key: "+s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}function he(t){return"string"==typeof t&&t.length>0}function _e(t){return null==t||(Array.isArray(t)?function(t){var e,n,r;try{for(var o=pe(t),i=o.next();!i.done;i=o.next()){var a=i.value;
1if(null!=a){if(!r){if(ve(a)){r=typeof a;continue}return!1}if(typeof a!==r)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return!0}(t):ve(t))}function ve(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var ge,me=function(t){Ct.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},n=t;null!==n;)Object.getOwnPropertyNames(n).forEach((function(t){if(!e[t]){var r=n[t];r&&(e[t]=String(r))}})),n=Object.getPrototypeOf(n);return e}(t))}(t))};function Ee(t){try{me(t)}catch(t){}}!function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"}(ge||(ge={}));var ye="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},Te=",",be=["OTEL_SDK_DISABLED"];function Se(t){return be.indexOf(t)>-1}var Oe=["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"];function we(t){return Oe.indexOf(t)>-1}var Re=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function Ae(t){return Re.indexOf(t)>-1}var Le=1/0,Ce=128,Pe={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:p.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Le,OTEL_ATTRIBUTE_COUNT_LIMIT:Ce,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Le,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Ce,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Le,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Ce,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:ge.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"};function ke(t,e,n){if(void 0!==n[t]){var r=String(n[t]);e[t]="true"===r.toLowerCase()}}function Ne(t,e,n,r,o){if(void 0===r&&(r=-1/0),void 0===o&&(o=1/0),void 0!==n[t]){var i=Number(n[t]);isNaN(i)||(e[t]=i<r?r:i>o?o:i)}}function Ie(t,e,n,r){void 0===r&&(r=Te);var o=n[t];"string"==typeof o&&(e[t]=o.split(r).map((function(t){return t.trim()})))}var xe={ALL:p.ALL,VERBOSE:p.VERBOSE,DEBUG:p.DEBUG,INFO:p.INFO,WARN:p.WARN,ERROR:p.ERROR,NONE:p.NONE};function De(t,e,n){var r=n[t];if("string"==typeof r){var o=xe[r.toUpperCase()];null!=o&&(e[t]=o)}}function Me(t){var e={};for(var n in Pe){var r=n;if("OTEL_LOG_LEVEL"===r)De(r,e,t);else if(Se(r))ke(r,e,t);else if(we(r))Ne(r,e,t);else if(Ae(r))Ie(r,e,t);else{var o=t[r];null!=o&&(e[r]=String(o))}}return e}function Ue(){var t=Me(ye);return Object.assign({},Pe,t)}
1var je,Be=performance,ze=((je={})[ne]="opentelemetry",je[Jt]="browser",je[re]="webjs",je[oe]="1.17.0",je);var Fe,Ze=Math.pow(10,6),He=Math.pow(10,9);function Ve(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*Ze)]}function Ge(){var t=Be.timeOrigin;if("number"!=typeof t){var e=Be;t=e.timing&&e.timing.fetchStart}return t}function Xe(t){return Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}function qe(t){return Xe(t)||"number"==typeof t||t instanceof Date}function We(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=He&&(n[1]-=He,n[0]+=1),n}!function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"}(Fe||(Fe={}));var $e=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ke=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?e:[],this._fields=Array.from(new Set(this._propagators.map((function(t){return"function"==typeof t.fields?t.fields():[]})).reduce((function(t,e){return t.concat(e)}),[])))}return t.prototype.inject=function(t,e,n){var r,o;try{for(var i=$e(this._propagators),a=i.next();!a.done;a=i.next()){var s=a.value;try{s.inject(t,e,n)}catch(t){Ct.warn("Failed to inject with "+s.constructor.name+". Err: "+t.message)}}}catch(t){r={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},t.prototype.extract=function(t,e,n){return this._propagators.reduce((function(t,r){try{return r.extract(t,e,n)}catch(t){Ct.warn("Failed to inject with "+r.constructor.name+". Err: "+t.message)}return t}),t)},t.prototype.fields=function(){return this._fields.slice()},t}(),Ye="[_0-9a-z-*/]",Qe=new RegExp("^(?:"+("[a-z]"+Ye+"{0,255}")+"|"+("[a-z0-9]"+Ye+"{0,240}@[a-z]"+Ye+"{0,13}")+")$"),Je=/^[ -~]{0,255}[!-~]$/,tn=/,|=/;var en=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,e),n},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce((function(e,n){return e.push(n+"="+t.get(n)),e}),[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce((function(t,e){var n=e.trim(),r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r),i=n.slice(r+1,e.length);(function(t){return Qe.test(t)})(o)&&function(t){return Je.test(t)&&!tn.test(t)}(i)&&t.set(o,i)}return t}),new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),nn="traceparent",rn="tracestate",on=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");var an,sn,un=function(){function t(){}return t.prototype.inject=function(t,e,n){var r=Gt.getSpanContext(t);if(r&&!ae(t)&>(r)){var o="00-"+r.traceId+"-"+r.spanId+"-0"+Number(r.traceFlags||A.NONE).toString(16);n.set(e,nn,o),r.traceState&&n.set(e,rn,r.traceState.serialize())}},t.prototype.extract=function(t,e,n){var r=n.get(e,nn);if(!r)return t;var o=Array.isArray(r)?r[0]:r;if("string"!=typeof o)return t;var i=function(t){var e=on.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}(o);if(!i)return t;i.isRemote=!0;var a=n.get(e,rn);if(a){var s=Array.isArray(a)?a.join(","):a;i.traceState=new en("string"==typeof s?s:void 0)}return Gt.setSpanContext(t,i)},t.prototype.fields=function(){return[nn,rn]},t}(),cn="[object Object]",ln="[object Null]",pn="[object Undefined]",fn=Function.prototype.toString,dn=fn.call(Object),hn=(an=Object.getPrototypeOf,sn=Object,function(t){return an(sn(t))}),_n=Object.prototype,vn=_n.hasOwnProperty,gn=Symbol?Symbol.toStringTag:void 0,mn=_n.toString;function En(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||function(t){if(null==t)return void 0===t?pn:ln;return gn&&gn in Object(t)?function(t){var e=vn.call(t,gn),n=t[gn],r=!1;try{t[gn]=void 0,r=!0}catch(t){}var o=mn.call(t);r&&(e?t[gn]=n:delete t[gn]);return o}(t):function(t){return mn.call(t)}(t)}(t)!==cn)return!1;var e=hn(t);if(null===e)return!0;var n=vn.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&fn.call(n)===dn}var yn=20;function Tn(t){return On(t)?t.slice():t}function bn(t,e,n,r){var o;if(void 0===n&&(n=0),!(n>yn)){if(n++,An(t)||An(e)||wn(e))o=Tn(e);else if(On(t)){if(o=t.slice(),On(e))for(var i=0,a=e.length;i<a;i++)o.push(Tn(e[i]));else if(Rn(e))for(i=0,a=(s=Object.keys(e)).length;i<a;i++){o[u=s[i]]=Tn(e[u])}}else if(Rn(t))if(Rn(e)){if(!function(t,e){if(!En(t)||!En(e))return!1;return!0}(t,e))return e;o=Object.assign({},t);var s;for(i=0,a=(s=Object.keys(e)).length;i<a;i++){var u,c=e[u=s[i]];if(An(c))void 0===c?delete o[u]:o[u]=c;else{var l=o[u],p=c;if(Sn(t,u,r)||Sn(e,u,r))delete o[u];else{if(Rn(l)&&Rn(p)){var f=r.get(l)||[],d=r.get(p)||[];f.push({obj:t,key:u}),d.push({obj:e,key:u}),r.set(l,f),r.set(p,d)}o[u]=bn(o[u],c,n,r)}}}}else o=e;return o}}function Sn(t,e,n){for(var r=n.get(t[e])||[],o=0,i=r.length;o<i;o++){var a=r[o];if(a.key===e&&a.obj===t)return!0}return!1}function On(t){return Array.isArray(t)}function wn(t){return"function"==typeof t}function Rn(t){return!An(t)&&!On(t)&&!wn(t)&&"object"==typeof t}function An(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||void 0===t||t instanceof Date||t instanceof RegExp||null===t}var Ln=function(){function t(){var t=this;this._promise=new Promise((function(e,n){t._resolve=e,t._reject=n}))}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise}
1,enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),Cn=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Pn=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},kn=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Ln}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,Pn([this._that],Cn(n),!1))).then((function(t){return e._deferred.resolve(t)}),(function(t){return e._deferred.reject(t)}))}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),Nn=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function In(t){return Object.keys(t).map((function(e){return xn(e,t[e])}))}function xn(t,e){return{key:t,value:Dn(e)}}function Dn(t){var e=typeof t;return"string"===e?{stringValue:t}:"number"===e?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:"boolean"===e?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(Dn)}}:"object"===e&&null!=t?{kvlistValue:{values:Object.entries(t).map((function(t){var e=Nn(t,2);return xn(e[0],e[1])}))}}:{}}function Mn(t){for(var e=t.length,n="",r=0;r<e;r+=2){var o=t.substring(r,r+2),i=parseInt(o,16);n+=String.fromCharCode(i)}return btoa(n)}var Un=Math.pow(10,9);function jn(t){return t[0]*Un+t[1]}function Bn(t,e){var n,r=t.spanContext(),o=t.status,i=e?t.parentSpanId:null!=t.parentSpanId?Mn(t.parentSpanId):void 0;return{traceId:e?r.traceId:Mn(r.traceId),spanId:e?r.spanId:Mn(r.spanId),parentSpanId:i,traceState:null===(n=r.traceState)||void 0===n?void 0:n.serialize(),name:t.name,kind:null==t.kind?0:t.kind+1,startTimeUnixNano:jn(t.startTime),endTimeUnixNano:jn(t.endTime),attributes:In(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(zn),droppedEventsCount:t.droppedEventsCount,status:{code:o.code,message:o.message},links:t.links.map((function(t){return function(t,e){var n;return{attributes:t.attributes?In(t.attributes):[],spanId:e?t.context.spanId:Mn(t.context.spanId),traceId:e?t.context.traceId:Mn(t.context.traceId),traceState:null===(n=t.context.traceState)||void 0===n?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}(t,e)})),droppedLinksCount:t.droppedLinksCount}}function zn(t){return{attributes:t.attributes?In(t.attributes):[],name:t.name,timeUnixNano:jn(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}var Fn=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Zn=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function Hn(t,e){for(var n=function(t){var e,n,r=new Map;try{for(var o=Fn(t),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(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}(t),r=[],o=n.entries(),i=o.next();!i.done;){for(var a=Zn(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 f=p[0].instrumentationLibrary,d=f.name,h=f.version,_=f.schemaUrl,v=p.map((function(t){return Bn(t,e)}));u.push({scope:{name:d,version:h},spans:v,schemaUrl:_})}l=c.next()}var g={resource:{attributes:In(s.attributes),droppedAttributesCount:0},scopeSpans:u,schemaUrl:void 0};
1r.push(g),i=o.next()}return r}class Vn{constructor(t){this.config=t}export(t,e){const n=function(t,e){return{resourceSpans:Hn(t,e)}}(t,!0);this.config.api.pushTraces(n),e({code:Fe.SUCCESS})}shutdown(){return Promise.resolve(void 0)}}class Gn{constructor(t,e){this.processor=t,this.metas=e}forceFlush(){return this.processor.forceFlush()}onStart(t,e){const n=this.metas.value.session;(null==n?void 0:n.id)&&(t.attributes.session_id=n.id),this.processor.onStart(t,e)}onEnd(t){this.processor.onEnd(t)}shutdown(){return this.processor.shutdown()}}var Xn,qn=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Wn=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},$n=function(){function t(t,e,n,r,o,i,a,s,u){void 0===a&&(a=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:St.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 c=Date.now();this._performanceStartTime=Be.now(),this._performanceOffset=c-(this._performanceStartTime+Ge()),this._startTimeProvided=null!=s,this.startTime=this._getTime(null!=s?s:c),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,e),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return null==e||this._isSpanEnded()?this:0===t.length?(Ct.warn("Invalid attribute key: "+t),this):_e(e)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(e),this):(Ct.warn("Invalid attribute value set for key: "+t),this)},t.prototype.setAttributes=function(t){var e,n;try{for(var r=qn(Object.entries(t)),o=r.next();!o.done;o=r.next()){var i=Wn(o.value,2),a=i[0],s=i[1];this.setAttribute(a,s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return this},t.prototype.addEvent=function(t,e,n){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return Ct.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(Ct.warn("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),qe(e)&&(qe(n)||(n=e),e=void 0);var r=de(e);return this.events.push({name:t,attributes:r,time:this._getTime(n),droppedAttributesCount:0}),this},t.prototype.setStatus=function(t){return this._isSpanEnded()||(this.status=t),this},t.prototype.updateName=function(t){return this._isSpanEnded()||(this.name=t),this},t.prototype.end=function(t){this._isSpanEnded()?Ct.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(t),this._duration=function(t,e){var n=e[0]-t[0],r=e[1]-t[1];return r<0&&(n-=1,r+=He),[n,r]}(this.startTime,this.endTime),this._duration[0]<0&&(Ct.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._spanProcessor.onEnd(this))},t.prototype._getTime=function(t){if("number"==typeof t&&t<Be.now())return e=t+this._performanceOffset,We(Ve(Ge()),Ve("number"==typeof e?e:Be.now()));var e;if("number"==typeof t)return Ve(t);if(t instanceof Date)return Ve(t.getTime());if(Xe(t))return t;if(this._startTimeProvided)return Ve(Date.now());var n=Be.now()-this._performanceStartTime;return We(this.startTime,Ve(n))},t.prototype.isRecording=function(){return!1===this._ended},t.prototype.recordException=function(t,e){var n={};"string"==typeof t?n[qt]=t:t&&(t.code?n[Xt]=t.code.toString():t.name&&(n[Xt]=t.name),t.message&&(n[qt]=t.message),t.stack&&(n[Wt]=t.stack)),n[Xt]||n[qt]?this.addEvent("exception",n,e):Ct.warn("Failed to record an exception "+t)},Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),t.prototype._isSpanEnded=function(){return this._ended&&Ct.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},t.prototype._truncateToLimitUtil=function(t,e){return t.length<=e?t:t.substr(0,e)},t.prototype._truncateToSize=function(t){var e=this,n=this._attributeValueLengthLimit;return n<=0?(Ct.warn("Attribute value limit must be positive, got "+n),t):"string"==typeof t?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map((function(t){return"string"==typeof t?e._truncateToLimitUtil(t,n):t})):t},t}();!function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(Xn||(Xn={}));var Kn=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Xn.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),Yn=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Xn.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),Qn=function(){function t(t){var e,n,r,o;this._root=t.root,this._root||(Ee(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Yn),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new Yn,this._remoteParentNotSampled=null!==(n=t.remoteParentNotSampled)&&void 0!==n?n:new Kn,this._localParentSampled=null!==(r=t.localParentSampled)&&void 0!==r?r:new Yn,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Kn}return t.prototype.shouldSample=function(t,e,n,r,o,i){var a=Gt.getSpanContext(t);return a&>(a)?a.isRemote?a.traceFlags&A.SAMPLED?this._remoteParentSampled.shouldSample(t,e,n,r,o,i):this._remoteParentNotSampled.shouldSample(t,e,n,r,o,i):a.traceFlags&A.SAMPLED?this._localParentSampled.shouldSample(t,e,n,r,o,i):this._localParentNotSampled.shouldSample(t,e,n,r,o,i):this._root.shouldSample(t,e,n,r,o,i)},t.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()+"}"},t}(),Jn=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:vt(e)&&this._accumulate(e)<this._upperBound?Xn.RECORD_AND_SAMPLED:Xn.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(t){return"number"!=typeof t||isNaN(t)?0:t>=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,n=0;n<t.length/8;n++){var r=8*n;e=(e^parseInt(t.slice(r,r+8),16))>>>0}return e},t}(),tr=Ue(),er=ge.AlwaysOn,nr=1;function rr(){return{sampler:or(tr),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:Ue().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:Ue().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:Ue().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:Ue().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:Ue().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:Ue().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:Ue().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:Ue().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function or(t){switch(void 0===t&&(t=Ue()),t.OTEL_TRACES_SAMPLER){case ge.AlwaysOn:return new Yn;case ge.AlwaysOff:return new Kn;case ge.ParentBasedAlwaysOn:return new Qn({root:new Yn});case ge.ParentBasedAlwaysOff:return new Qn({root:new Kn});case ge.TraceIdRatio:return new Jn(ir(t));case ge.ParentBasedTraceIdRatio:return new Qn({root:new Jn(ir(t))});default:return Ct.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+er+'".'),new Yn}}function ir(t){if(void 0===t.OTEL_TRACES_SAMPLER_ARG||""===t.OTEL_TRACES_SAMPLER_ARG)return Ct.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+nr+"."),nr;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(Ct.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invali
1d, defaulting to "+nr+"."),nr):e<0||e>1?(Ct.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+nr+"."),nr):e}function ar(t){var e,n,r,o,i,a,s,u,c,l,p,f,d=Object.assign({},t.spanLimits),h="undefined"!=typeof process&&process&&process.env?Me(process.env):Me(ye);return d.attributeCountLimit=null!==(a=null!==(i=null!==(o=null!==(n=null===(e=t.spanLimits)||void 0===e?void 0:e.attributeCountLimit)&&void 0!==n?n:null===(r=t.generalLimits)||void 0===r?void 0:r.attributeCountLimit)&&void 0!==o?o:h.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)&&void 0!==i?i:h.OTEL_ATTRIBUTE_COUNT_LIMIT)&&void 0!==a?a:Ce,d.attributeValueLengthLimit=null!==(f=null!==(p=null!==(l=null!==(u=null===(s=t.spanLimits)||void 0===s?void 0:s.attributeValueLengthLimit)&&void 0!==u?u:null===(c=t.generalLimits)||void 0===c?void 0:c.attributeValueLengthLimit)&&void 0!==l?l:h.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==p?p:h.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==f?f:Le,Object.assign({},t,{spanLimits:d})}var sr=function(){function t(t,e){this._exporter=t,this._finishedSpans=[],this._droppedSpansCount=0;var n=Ue();this._maxExportBatchSize="number"==typeof(null==e?void 0:e.maxExportBatchSize)?e.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==e?void 0:e.maxQueueSize)?e.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==e?void 0:e.scheduledDelayMillis)?e.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==e?void 0:e.exportTimeoutMillis)?e.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new kn(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Ct.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return t.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},t.prototype.onStart=function(t,e){},t.prototype.onEnd=function(t){this._shutdownOnce.isCalled||0!=(t.spanContext().traceFlags&A.SAMPLED)&&this._addToBuffer(t)},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){var t=this;return Promise.resolve().then((function(){return t.onShutdown()})).then((function(){return t._flushAll()})).then((function(){return t._exporter.shutdown()}))},t.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&Ct.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(Ct.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()},t.prototype._flushAll=function(){var t=this;return new Promise((function(e,n){for(var r=[],o=0,i=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize);o<i;o++)r.push(t._flushOneBatch());Promise.all(r).then((function(){e()})).catch(n)}))},t.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise((function(e,n){var r=setTimeout((function(){n(new Error("Timeout"))}),t._exportTimeoutMillis);Lt.with(function(t){return t.setValue(ie,!0)}(Lt.active()),(function(){var o=t._finishedSpans.splice(0,t._maxExportBatchSize),i=function(){return t._exporter.export(o,(function(t){var o;clearTimeout(r),t.code===Fe.SUCCESS?e():n(null!==(o=t.error)&&void 0!==o?o:new Error("BatchSpanProcessor: span export failed"))}))},a=o.map((function(t){return t.resource})).filter((function(t){return t.asyncAttributesPending}));0===a.length?i():Promise.all(a.map((function(t){var e;return null===(e=t.waitForAsyncAttributes)||void 0===e?void 0:e.call(t)}))).then(i,(function(t){Ee(t),n(t)}))}))}))},t.prototype._maybeStartTimer=function(){var t=this;void 0===this._timer&&(this._timer=setTimeout((function(){t._flushOneBatch().then((function(){t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())})).catch((function(t){Ee(t)}))}),this._scheduledDelayMillis),this._timer)},t.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},t}(),ur=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cr=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.onInit(n),r}return ur(e,t),e.prototype.onInit=function(t){var e=this;!0!==(null==t?void 0:t.disableAutoFlushOnDocumentHide)&&"undefined"!=typeof document&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&e.forceFlush()},this._pageHideListener=function(){e.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},e.prototype.onShutdown=function(){"undefined"!=typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},e}(sr),lr=function(){this.generateTraceId=fr(16),this.generateSpanId=fr(8)},pr=Array(32);function fr(t){return function(){for(var e=0;e<2*t;e++)pr[e]=Math.floor(16*Math.random())+48,pr[e]>=58&&(pr[e]+=39);return String.fromCharCode.apply(null,pr.slice(0,2*t))}}var dr=function(){function t(t,e,n){this._tracerProvider=n;var r,o,i,a,s=(r=e,o={sampler:or()},i=rr(),(a=Object.assign({},i,o,r)).generalLimits=Object.assign({},i.generalLimits,r.generalLimits||{}),a.spanLimits=Object.assign({},i.spanLimits,r.spanLimits||{}),a);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=e.idGenerator||new lr,this.resource=n.resource,this.instrumentationLibrary=t}return t.prototype.startSpan=function(t,e,n){var r,o,i;void 0===e&&(e={}),void 0===n&&(n=Lt.active()),e.root&&(n=Gt.deleteSpan(n));var a=Gt.getSpan(n);if(ae(n))return Ct.debug("Instrumentation suppressed, returning Noop Span"),Gt.wrapSpanContext(it);var s,u,c,l=null==a?void 0:a.spanContext(),p=this._idGenerator.generateSpanId();l&&Gt.isSpanContextValid(l)?(s=l.traceId,u=l.traceState,c=l.spanId):s=this._idGenerator.generateTraceId();var f=null!==(r=e.kind)&&void 0!==r?r:bt.INTERNAL,d=(null!==(o=e.links)&&void 0!==o?o:[]).map((function(t){return{context:t.context,attributes:de(t.attributes)}})),h=de(e.attributes),_=this._sampler.shouldSample(n,s,t,f,h,d);u=null!==(i=_.traceState)&&void 0!==i?i:u;var v={traceId:s,spanId:p,traceFlags:_.decision===Tt.RECORD_AND_SAMPLED?A.SAMPLED:A.NONE,traceState:u};if(_.decision===Tt.NOT_RECORD)return Ct.debug("Recording is off, prop
1agating context in a non-recording span"),Gt.wrapSpanContext(v);var g=new $n(this,n,t,v,f,c,d,e.startTime),m=de(Object.assign(h,_.attributes));return g.setAttributes(m),g},t.prototype.startActiveSpan=function(t,e,n,r){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=n):(o=e,i=n,a=r);var s=null!=i?i:Lt.active(),u=this.startSpan(t,o,s),c=Gt.setSpan(s,u);return Lt.with(c,a,void 0,u)}},t.prototype.getGeneralLimits=function(){return this._generalLimits},t.prototype.getSpanLimits=function(){return this._spanLimits},t.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},t}();var hr,_r=function(){return _r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},_r.apply(this,arguments)},vr=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},gr=function(t,e){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){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},mr=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Er=function(){function t(t,e){var n,r=this;this._attributes=t,this.asyncAttributesPending=null!=e,this._syncAttributes=null!==(n=this._attributes)&&void 0!==n?n:{},this._asyncAttributesPromise=null==e?void 0:e.then((function(t){return r._attributes=Object.assign({},r._attributes,t),r.asyncAttributesPending=!1,t}),(function(t){return Ct.debug("a resource's async attributes promise rejected: %s",t),r.asyncAttributesPending=!1,{}}))}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t(((e={})[te]="unknown_service",e[re]=ze[re],e[ne]=ze[ne],e[oe]=ze[oe],e))},Object.defineProperty(t.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&Ct.error("Accessing resource attributes before async attributes settled"),null!==(t=this._attributes)&&void 0!==t?t:{}},enumerable:!1,configurable:!0}),t.prototype.waitForAsyncAttributes=function(){return vr(this,void 0,void 0,(function(){return gr(this,(function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
1))}))},t.prototype.merge=function(e){var n,r=this;if(!e)return this;var o=_r(_r({},this._syncAttributes),null!==(n=e._syncAttributes)&&void 0!==n?n:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(o);var i=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then((function(t){var n,o=mr(t,2),i=o[0],a=o[1];return _r(_r(_r(_r({},r._syncAttributes),i),null!==(n=e._syncAttributes)&&void 0!==n?n:e.attributes),a)}));return new t(o,i)},t.EMPTY=new t({}),t}(),yr=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Tr=function(){function t(t){this._spanProcessors=t}return t.prototype.forceFlush=function(){var t,e,n=[];try{for(var r=yr(this._spanProcessors),o=r.next();!o.done;o=r.next()){var i=o.value;n.push(i.forceFlush())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return new Promise((function(t){Promise.all(n).then((function(){t()})).catch((function(e){Ee(e||new Error("MultiSpanProcessor: forceFlush failed")),t()}))}))},t.prototype.onStart=function(t,e){var n,r;try{for(var o=yr(this._spanProcessors),i=o.next();!i.done;i=o.next()){i.value.onStart(t,e)}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},t.prototype.onEnd=function(t){var e,n;
1try{for(var r=yr(this._spanProcessors),o=r.next();!o.done;o=r.next()){o.value.onEnd(t)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.shutdown=function(){var t,e,n=[];try{for(var r=yr(this._spanProcessors),o=r.next();!o.done;o=r.next()){var i=o.value;n.push(i.shutdown())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return new Promise((function(t,e){Promise.all(n).then((function(){t()}),e)}))},t}(),br=function(){function t(){}return t.prototype.onStart=function(t,e){},t.prototype.onEnd=function(t){},t.prototype.shutdown=function(){return Promise.resolve()},t.prototype.forceFlush=function(){return Promise.resolve()},t}();!function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"}(hr||(hr={}));var Sr,Or=function(){function t(t){var e;void 0===t&&(t={}),this._registeredSpanProcessors=[],this._tracers=new Map;var n=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.shift(),r=new WeakMap;t.length>0;)n=bn(n,t.shift(),0,r);return n}({},rr(),ar(t));this.resource=null!==(e=n.resource)&&void 0!==e?e:Er.empty(),this.resource=Er.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});var r=this._buildExporterFromEnv();if(void 0!==r){var o=new cr(r);this.activeSpanProcessor=o}else this.activeSpanProcessor=new br}return t.prototype.getTracer=function(t,e,n){var r=t+"@"+(e||"")+":"+((null==n?void 0:n.schemaUrl)||"");return this._tracers.has(r)||this._tracers.set(r,new dr({name:t,version:e,schemaUrl:null==n?void 0:n.schemaUrl},this._config,this)),this._tracers.get(r)},t.prototype.addSpanProcessor=function(t){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch((function(t){return Ct.error("Error while trying to shutdown current span processor",t)})),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new Tr(this._registeredSpanProcessors)},t.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},t.prototype.register=function(t){void 0===t&&(t={}),Gt.setGlobalTracerProvider(this),void 0===t.propagator&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&Lt.setGlobalContextManager(t.contextManager),t.propagator&&Zt.setGlobalPropagator(t.propagator)},t.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,e=this._registeredSpanProcessors.map((function(e){return new Promise((function(n){var r,o=setTimeout((function(){n(new Error("Span processor did not completed within timeout period of "+t+" ms")),r=hr.timeout}),t);e.forceFlush().then((function(){clearTimeout(o),r!==hr.timeout&&(r=hr.resolved,n(r))})).catch((function(t){clearTimeout(o),r=hr.error,n(t)}))}))}));return new Promise((function(t,n){Promise.all(e).then((function(e){var r=e.filter((function(t){return t!==hr.resolved}));r.length>0?n(r):t()})).catch((function(t){return n([t])}))}))},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(t){var e;return null===(e=this.constructor._registeredPropagators.get(t))||void 0===e?void 0:e()},t.prototype._getSpanExporter=function(t){var e;return null===(e=this.constructor._registeredExporters.get(t))||void 0===e?void 0:e()},t.prototype._buildPropagatorFromEnv=function(){var t=this,e=Array.from(new Set(Ue().OTEL_PROPAGATORS)),n=e.map((function(e){var n=t._getPropagator(e);return n||Ct.warn('Propagator "'+e+'" requested through environment variable is unavailable.'),n})).reduce((function(t,e){return e&&t.push(e),t}),[]);return 0===n.length?void 0:1===e.length?n[0]:new Ke({propagators:n})},t.prototype._buildExporterFromEnv=function(){var t=Ue().OTEL_TRACES_EXPORTER;if("none"!==t&&""!==t){var e=this._getSpanExporter(t);return e||Ct.error('Exporter "'+t+'" requested through environment variable is unavailable.'),e}},t._registeredPropagators=new Map([["tracecontext",function(){return new un}],["baggage",function(){return new le}]]),t._registeredExporters=new Map,t}(),wr=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Rr=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Ar=function(){function t(){this._enabled=!1,this._currentContext=C}return t.prototype._bindFunction=function(t,e){void 0===t&&(t=C);var n=this,r=function(){for(var r=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n.with(t,(function(){return e.apply(r,o)}))};
1return Object.defineProperty(r,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),r},t.prototype.active=function(){return this._currentContext},t.prototype.bind=function(t,e){return void 0===t&&(t=this.active()),"function"==typeof e?this._bindFunction(t,e):e},t.prototype.disable=function(){return this._currentContext=C,this._enabled=!1,this},t.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=C),this},t.prototype.with=function(t,e,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var i=this._currentContext;this._currentContext=t||C;try{return e.call.apply(e,Rr([n],wr(r),!1))}finally{this._currentContext=i}},t}(),Lr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cr=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;if(e.contextManager)throw"contextManager should be defined in register method not in constructor";if(e.propagator)throw"propagator should be defined in register method not in constructor";return n}return Lr(e,t),e.prototype.register=function(e){void 0===e&&(e={}),void 0===e.contextManager&&(e.contextManager=new Ar),e.contextManager&&e.contextManager.enable(),t.prototype.register.call(this,e)},e}(Or);function Pr(t,e){return e in t}function kr(t,e,n){if(Pr(n,e)&&"number"==typeof n[e])return t.addEvent(e,n[e]),t}function Nr(t,e){kr(t,Sr.FETCH_START,e),kr(t,Sr.DOMAIN_LOOKUP_START,e),kr(t,Sr.DOMAIN_LOOKUP_END,e),kr(t,Sr.CONNECT_START,e),Pr(e,"name")&&e.name.startsWith("https:")&&kr(t,Sr.SECURE_CONNECTION_START,e),kr(t,Sr.CONNECT_END,e),kr(t,Sr.REQUEST_START,e),kr(t,Sr.RESPONSE_START,e),kr(t,Sr.RESPONSE_END,e);var n=e[Sr.ENCODED_BODY_SIZE];void 0!==n&&t.setAttribute(Yt,n);var r=e[Sr.DECODED_BODY_SIZE];void 0!==r&&n!==r&&t.setAttribute(Qt,r)}function Ir(t){void 0===t&&(t=[]);for(var e=[],n=0,r=t.length;n<r;n++){var o=t[n];if(Array.isArray(o)){var i=Ir(o);e=e.concat(i.instrumentations)}else"function"==typeof o?e.push(new o):o.instrumentationName&&e.push(o)}return{instrumentations:e}}function xr(t){var e=Ir(t.instrumentations).instrumentations,n=t.tracerProvider||Gt.getTracerProvider(),r=t.meterProvider||Nt.getMeterProvider();return function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];e&&i.setTracerProvider(e),n&&i.setMeterProvider(n),i.getConfig().enabled||i.enable()}}(e,n,r),function(){!function(t){t.forEach((function(t){return t.disable()}))}(e)}}!function(t){t.CONNECT_END="connectEnd",t.CONNECT_START="connectStart",t.DECODED_BODY_SIZE="decodedBodySize",t.DOM_COMPLETE="domComplete",t.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",t.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",t.DOM_INTERACTIVE="domInteractive",t.DOMAIN_LOOKUP_END="domainLookupEnd",t.DOMAIN_LOOKUP_START="domainLookupStart",t.ENCODED_BODY_SIZE="encodedBodySize",t.FETCH_START="fetchStart",t.LOAD_EVENT_END="loadEventEnd",t.LOAD_EVENT_START="loadEventStart",t.NAVIGATION_START="navigationStart",t.REDIRECT_END="redirectEnd",t.REDIRECT_START="redirectStart",t.REQUEST_START="requestStart",t.RESPONSE_END="responseEnd",t.RESPONSE_START="responseStart",t.SECURE_CONNECTION_START="secureConnectionStart",t.UNLOAD_EVENT_END="unloadEventEnd",t.UNLOAD_EVENT_START="unloadEventStart"}(Sr||(Sr={}));var Dr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Mr(t){return"function"==typeof t}var Ur=console.error.bind(console);function jr(t,e,n){var r=!!t[e]&&t.propertyIsEnumerable(e);Object.defineProperty(t,e,{configurable:!0,enumerable:r,writable:!0,value:n})}function Br(t){t&&t.logger&&(Mr(t.logger)?Ur=t.logger:Ur("new logger isn't a function, not replacing"))}function zr(t,e,n){if(t&&t[e]){if(!n)return Ur("no wrapper function"),void Ur((new Error).stack);if(Mr(t[e])&&Mr(n)){var r=t[e],o=n(r,e);return jr(o,"__original",r),jr(o,"__unwrap",(function(){t[e]===o&&jr(t,e,r)})),jr(o,"__wrapped",!0),jr(t,e,o),o}Ur("original object and wrapper must be functions")}else Ur("no original function "+e+" to wrap")}function Fr(t,e){return t&&t[e]?t[e].__unwrap?t[e].__unwrap():void Ur("no original to unwrap to -- has "+e+" already been unwrapped?"):(Ur("no function to unwrap."),void Ur((new Error).stack))}Br.wrap=zr,Br.massWrap=function(t,e,n){if(!t)return Ur("must provide one or more modules to patch"),void Ur((new Error).stack);Array.isArray(t)||(t=[t]),e&&Array.isArray(e)?t.forEach((function(t){e.forEach((function(e){zr(t,e,n)}
1))})):Ur("must provide one or more functions to wrap on modules")},Br.unwrap=Fr,Br.massUnwrap=function(t,e){if(!t)return Ur("must provide one or more modules to patch"),void Ur((new Error).stack);Array.isArray(t)||(t=[t]),e&&Array.isArray(e)?t.forEach((function(t){e.forEach((function(e){Fr(t,e)}))})):Ur("must provide one or more functions to unwrap on modules")};var Zr,Hr=Br,Vr=function(){return Vr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Vr.apply(this,arguments)},Gr=function(){function t(t,e,n){void 0===n&&(n={}),this.instrumentationName=t,this.instrumentationVersion=e,this._wrap=Hr.wrap,this._unwrap=Hr.unwrap,this._massWrap=Hr.massWrap,this._massUnwrap=Hr.massUnwrap,this._config=Vr({enabled:!0},n),this._diag=Ct.createComponentLogger({namespace:t}),this._tracer=Gt.getTracer(t,e),this._meter=Nt.getMeter(t,e),this._updateMetricInstruments()}return Object.defineProperty(t.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),t.prototype.setMeterProvider=function(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},t.prototype._updateMetricInstruments=function(){},t.prototype.getConfig=function(){return this._config},t.prototype.setConfig=function(t){void 0===t&&(t={}),this._config=Object.assign({},t)},t.prototype.setTracerProvider=function(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(t.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),t}(),Xr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qr=function(t){function e(e,n,r){void 0===r&&(r={});var o=t.call(this,e,n,r)||this;return o._config.enabled&&o.enable(),o}return Xr(e,t),e}(Gr);function Wr(t,e,n){var r,o;try{o=t()}catch(t){r=t}finally{if(e(r,o),r&&!n)throw r;return o}}function $r(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}!function(t){t.DOCUMENT_LOAD="documentLoad",t.DOCUMENT_FETCH="documentFetch",t.RESOURCE_FETCH="resourceFetch"}(Zr||(Zr={}));var Kr;!function(t){t.FIRST_PAINT="firstPaint",t.FIRST_CONTENTFUL_PAINT="firstContentfulPaint"}(Kr||(Kr={}));var Yr={"first-paint":Kr.FIRST_PAINT,"first-contentful-paint":Kr.FIRST_CONTENTFUL_PAINT},Qr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jr=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,"@opentelemetry/instrumentation-document-load","0.33.1",e)||this;return n.component="document-load",n.version="1",n.moduleName=n.component,n}return Qr(e,t),e.prototype.init=function(){},e.prototype._onDocumentLoaded=function(){var t=this;window.setTimeout((function(){t._collectPerformance()}))},e.prototype._addResourcesSpans=function(t){var e,n,r=this,o=null===(n=(e=Be).getEntriesByType)||void 0===n?void 0:n.call(e,"resource");o&&o.forEach((function(e){r._initResourceSpan(e,t)}))},e.prototype._collectPerformance=function(){var t=this,e=Array.from(document.getElementsByTagName("meta")).find((function(t){return t.getAttribute("name")===nn})),n=function(){var t,e,n={},r=null===(e=(t=Be).getEntriesByType)||void 0===e?void 0:e.call(t,"navigation")[0];if(r)Object.values(Sr).forEach((function(t){if(Pr(r,t)){var e=r[t];"number"==typeof e&&(n[t]=e)}}));else{var o=Be.timing;o&&Object.values(Sr).forEach((function(t){if(Pr(o,t)){var e=o[t];"number"==typeof e&&(n[t]=e)}}))}return n}(),r=e&&e.content||"";Lt.with(Zt.extract(C,{traceparent:r}),(function(){var e,r=t._startSpan(Zr.DOCUMENT_LOAD,Sr.FETCH_START,n);r&&(Lt.with(Gt.setSpan(Lt.active(),r),(function(){var e=t._startSpan(Zr.DOCUMENT_FETCH,Sr.FETCH_START,n);e&&(e.setAttribute($t,location.href),Lt.with(Gt.setSpan(Lt.active(),e),(function(){var r;Nr(e,n),t._addCustomAttributesOnSpan(e,null===(r=t._getConfig().applyCustomAttributesOnSpan)||void 0===r?void 0:r.documentFetch),t._endSpan(e,Sr.RESPONSE_END,n)})))})),r.setAttribute($t,location.href),r.setAttribute(Kt,navigator.userAgent),t._addResourcesSpans(r),kr(r,Sr.FETCH_START,n),kr(r,Sr.UNLOAD_EVENT_START,n
1),kr(r,Sr.UNLOAD_EVENT_END,n),kr(r,Sr.DOM_INTERACTIVE,n),kr(r,Sr.DOM_CONTENT_LOADED_EVENT_START,n),kr(r,Sr.DOM_CONTENT_LOADED_EVENT_END,n),kr(r,Sr.DOM_COMPLETE,n),kr(r,Sr.LOAD_EVENT_START,n),kr(r,Sr.LOAD_EVENT_END,n),function(t){var e,n,r=null===(n=(e=Be).getEntriesByType)||void 0===n?void 0:n.call(e,"paint");r&&r.forEach((function(e){var n=e.name,r=e.startTime;Pr(Yr,n)&&t.addEvent(Yr[n],r)}))}(r),t._addCustomAttributesOnSpan(r,null===(e=t._getConfig().applyCustomAttributesOnSpan)||void 0===e?void 0:e.documentLoad),t._endSpan(r,Sr.LOAD_EVENT_END,n))}))},e.prototype._endSpan=function(t,e,n){t&&(Pr(n,e)?t.end(n[e]):t.end())},e.prototype._initResourceSpan=function(t,e){var n,r=this._startSpan(Zr.RESOURCE_FETCH,Sr.FETCH_START,t,e);r&&(r.setAttribute($t,t.name),Nr(r,t),this._addCustomAttributesOnResourceSpan(r,t,null===(n=this._getConfig().applyCustomAttributesOnSpan)||void 0===n?void 0:n.resourceFetch),this._endSpan(r,Sr.RESPONSE_END,t))},e.prototype._startSpan=function(t,e,n,r){if(Pr(n,e)&&"number"==typeof n[e])return this.tracer.startSpan(t,{startTime:n[e]},r?Gt.setSpan(Lt.active(),r):void 0)},e.prototype._waitForPageLoad=function(){"complete"===window.document.readyState?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))},e.prototype._getConfig=function(){return this._config},e.prototype._addCustomAttributesOnSpan=function(t,e){var n=this;e&&Wr((function(){return e(t)}),(function(t){t&&n._diag.error("addCustomAttributesOnSpan",t)}),!0)},e.prototype._addCustomAttributesOnResourceSpan=function(t,e,n){var r=this;n&&Wr((function(){return n(t,e)}),(function(t){t&&r._diag.error("addCustomAttributesOnResourceSpan",t)}),!0)},e.prototype.enable=function(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()},e.prototype.disable=function(){window.removeEventListener("load",this._onDocumentLoaded)},e}(qr),to="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},eo=performance,no="http.method",ro="http.url",oo="http.host",io="http.scheme",ao="http.status_code",so="http.user_agent",uo="http.response_content_length",co="http.response_content_length_uncompressed",lo=Math.pow(10,6),po=Math.pow(10,9);function fo(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*lo)]}function ho(){var t=eo.timeOrigin;if("number"!=typeof t){var e=eo;t=e.timing&&e.timing.fetchStart}return t}function _o(t){return function(t,e){var n=[t[0]+e[0],t[1]+e[1]];n[1]>=po&&(n[1]-=po,n[0]+=1);return n}(fo(ho()),fo("number"==typeof t?t:eo.now()))}function vo(t){if(e=t,Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1])return t;if("number"==typeof t)return t<ho()?_o(t):fo(t);if(t instanceof Date)return fo(t.getTime());throw TypeError("Invalid input type");var e}function go(t){return t[0]*po+t[1]}var mo,Eo,yo,To=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function bo(t,e){return"string"==typeof e?t===e:!!t.match(e)}function So(t,e){return e in t}function Oo(t,e,n){if(So(n,e)&&"number"==typeof n[e])return t.addEvent(e,n[e]),t}function wo(t,e){Oo(t,mo.FETCH_START,e),Oo(t,mo.DOMAIN_LOOKUP_START,e),Oo(t,mo.DOMAIN_LOOKUP_END,e),Oo(t,mo.CONNECT_START,e),So(e,"name")&&e.name.startsWith("https:")&&Oo(t,mo.SECURE_CONNECTION_START,e),Oo(t,mo.CONNECT_END,e),Oo(t,mo.REQUEST_START,e),Oo(t,mo.RESPONSE_START,e),Oo(t,mo.RESPONSE_END,e);var n=e[mo.ENCODED_BODY_SIZE];void 0!==n&&t.setAttribute(uo,n);var r=e[mo.DECODED_BODY_SIZE];void 0!==r&&n!==r&&t.setAttribute(co,r)}function Ro(t,e,n,r,o,i){void 0===o&&(o=new WeakSet);var a=Ao(t),s=function(t,e,n,r,o,i){var a=go(e),s=go(n),u=r.filter((function(e){var n=go(vo(e[mo.FETCH_START])),r=go(vo(e[mo.RESPONSE_END]));return e.initiatorType.toLowerCase()===i&&e.name===t&&n>=a&&r<=s}));u.length>0&&(u=u.filter((function(t){return!o.has(t)})));return u}(t=a.toString(),e,n,r,o,i);if(0===s.length)return{mainRequest:void 0};if(1===s.length)return{mainRequest:s[0]};var u=function(t){return t.slice().sort((function(t,e){var n=t[mo.FETCH_START],r=e[mo.FETCH_START];return n>r?1:n<r?-1:0}))}(s);if(a.origin!==location.origin&&u.length>1){var c=u[0],l=function(t,e,n){for(var r,o=go(n),i=go(vo(e)),a=t[1],s=t.length,u=1;u<s;u++){var c=t[u],l=go(vo(c[mo.FETCH_START])),p=o-go(vo(c[mo.RESPONSE_END]));l>=i&&(!r||p<r)&&(r=p,a=c)}return a}(u,c[mo.RESPONSE_END],n),p=c[mo.RESPONSE_END];return l[mo.FETCH_START]<p&&(l=c,c=void 0),{corsPreFlightRequest:c,mainRequest:l}}return{mainRequest:s[0]}}function Ao(t){if("function"==typeof URL)return new URL(t,"undefined"!=typeof document?document.baseURI:"undefined"!=typeof location?location.href:void 0);var e=(Eo||(Eo=document.createElement("a")),Eo);return e.href=t,e}!function(t){t.CONNECT_END="connectEnd",t.CONNECT_START="connectStart",t.DECODED_BODY_SIZE="decodedBodySize",t.DOM_COMPLETE="domComplete",t.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",t.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",t.DOM_INTERACTIVE="domInteractive",t.DOMAIN_LOOKUP_END="domainLookupEnd",t.DOMAIN_LOOKUP_START="domainLookupStart",t.ENCODED_BODY_SIZE="encodedBodySize",t.FETCH_START="fetchStart",t.LOAD_EVENT_END="loadEventEnd",t.LOAD_EVENT_START="loadEventStart",t.NAVIGATION_START="navigationStart",t.REDIRECT_END="redirectEnd",t.REDIRECT_START="redirectStart",t.REQUEST_START="requestStart",t.RESPONSE_END="responseEnd",t.RESPONSE_START="responseStart",t.SECURE_CONNECTION_START="secureConnectionStart",t.UNLOAD_EVENT_END="unloadEventEnd",t.UNLOAD_EVENT_START="unloadEventStart"}(mo||(mo={})),function(t){t.COMPONENT="component",t.HTTP_ERROR_NAME="http.error_name",t.HTTP_STATUS_TEXT="http.status_text"}(yo||(yo={}));var Lo="0.41.2",Co=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Po=function(t){function e(e){var n=t.call(this,"@opentelemetry/instrumentation-fetch",Lo,e)||this;return n.component="fetch",n.version=Lo,n.moduleName=n.component,n._usedResources=new WeakSet,n._tasksCount=0,n}return Co(e,t),e.prototype.init=function(){},e.prototype._getConfig=function(){return this._config},e.prototype._addChildSpan=function(t,e){var n=this.tracer.startSpan("CORS Preflight",{startTime:e[mo.FETCH_START]},Gt.setSpan(Lt.active(),t));this._getConfig().ignoreNetworkEvents||wo(n,e),n.end(e[mo.RESPONSE_END])},e.prototype._addFinalSpanAttributes=function(t,e){var n=Ao(e.url);t.setAttribute(ao,e.status),null!=e.statusText&&t.setAttribute(yo.HTTP_STATUS_TEXT,e.statusText),t.setAttribute(oo,n.host),t.setAttribute(io,n.protocol.replace(":","")),t.setAttribute(so,navigator.userAgent)},e.prototype._addHeaders=function(t,e){if(!function(t,e){var n=e||[];return("string"==typeof n||n instanceof RegExp)&&(n=[n]),Ao(t).origin===location.origin||n.some((function(e){return bo(t,e)}))}(e,this._getConfig().propagateTraceHeaderCorsUrls)){var n={};return Zt.inject(Lt.active(),n),void(Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}if(t instanceof Request)Zt.inject(Lt.active(),t.headers,{set:function(t,e,n){return t.set(e,"string"==typeof n?n:String(n))}});else if(t.headers instanceof Headers)Zt.inject(Lt.active(),t.headers,{set:function(t,e,n){return t.set(e,"string"==typeof n?n:String(n))}});else{n={};Zt.inject(Lt.active(),n),t.headers=Object.assign({},n,t.headers||{})}},e.prototype._clearResources=function(){0===this._tasksCount&&this._getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},e.prototype._createSpan=function(t,e){var n;if(void 0===e&&(e={}),!function(t,e){var n,r;if(!e)return!1;try{for(var o=To(e),i=o.next();!i.done;i=o.next())if(bo(t,i.value))return!0}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}(t,this._getConfig().ignoreUrls)){var r=(e.method||"GET").toUpperCase(),o="HTTP "+r;return this.tracer.startSpan(o,{kind:bt.CLIENT,attributes:(n={},n[yo.COMPONENT]=this.moduleName,n[no]=r,n[ro]=t,n)})}this._diag.debug("ignoring span as url matches ignored url")},e.prototype._findResourceAndAddNetworkEvents=function(t,e,n){var r=e.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType("resource")}var o=Ro(e.spanUrl,e.startTime,n,r,this._usedResources,"fetch");if(o.mainRequest){var i=o.mainRequest;this._markResourceAsUsed(i);var a=o.corsPreFlightRequest;a&&(this._addChildSpan(t,a),this._markResourceAsUsed(a)),this._getConfig().ignoreNetworkEvents||wo(t,i)}},e.prototype._markResourceAsUsed=function(t){this._usedResources.add(t)},e.prototype._endSpan=function(t,e,n){var r=this,o=fo(Date.now()),i=_o();this._addFinalSpanAttributes(t,n),setTimeout((function(){var n;null===(n=e.observer)||void 0===n||n.disconnect(),r._findResourceAndAddNetworkEvents(t,e,i),r._tasksCount--,r._clearResources(),t.end(o)}),300)},e.prototype._patchConstructor=function(){var t=this;return function(e){var n=t;return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];
1var o=this,i=Ao(t[0]instanceof Request?t[0].url:String(t[0])).href,a=t[0]instanceof Request?t[0]:t[1]||{},s=n._createSpan(i,a);if(!s)return e.apply(this,t);var u=n._prepareSpanData(i);function c(t,e){n._applyAttributesAfterFetch(t,a,e),n._endSpan(t,u,{status:e.status||0,statusText:e.message,url:i})}function l(t,e){n._applyAttributesAfterFetch(t,a,e),e.status>=200&&e.status<400?n._endSpan(t,u,e):n._endSpan(t,u,{status:e.status,statusText:e.statusText,url:i})}function p(t,e,n){try{var r=n.clone(),o=n.clone(),i=r.body;if(i){var a=i.getReader(),s=function(){a.read().then((function(e){e.done?l(t,o):s()}),(function(e){c(t,e)}))};s()}else l(t,n)}finally{e(n)}}function f(t,e,n){try{c(t,n)}finally{e(n)}}return new Promise((function(t,r){return Lt.with(Gt.setSpan(Lt.active(),s),(function(){return n._addHeaders(a,i),n._tasksCount++,e.apply(o,a instanceof Request?[a]:[i,a]).then(p.bind(o,s,t),f.bind(o,s,r))}))}))}}},e.prototype._applyAttributesAfterFetch=function(t,e,n){var r=this,o=this._getConfig().applyCustomAttributesOnSpan;o&&Wr((function(){return o(t,e,n)}),(function(t){t&&r._diag.error("applyCustomAttributesOnSpan",t)}),!0)},e.prototype._prepareSpanData=function(t){var e=_o(),n=[];if("function"!=typeof PerformanceObserver)return{entries:n,startTime:e,spanUrl:t};var r=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){"fetch"===e.initiatorType&&e.name===t&&n.push(e)}))}));return r.observe({entryTypes:["resource"]}),{entries:n,observer:r,startTime:e,spanUrl:t}},e.prototype.enable=function(){$r(fetch)&&(this._unwrap(to,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(to,"fetch",this._patchConstructor())},e.prototype.disable=function(){this._unwrap(to,"fetch"),this._usedResources=new WeakSet},e}(qr),ko=performance,No="http.method",Io="http.url",xo="http.host",Do="http.scheme",Mo="http.status_code",Uo="http.user_agent",jo="http.response_content_length",Bo="http.response_content_length_uncompressed",zo=Math.pow(10,6),Fo=Math.pow(10,9);function Zo(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*zo)]}function Ho(){var t=ko.timeOrigin;if("number"!=typeof t){var e=ko;t=e.timing&&e.timing.fetchStart}return t}function Vo(t){return function(t,e){var n=[t[0]+e[0],t[1]+e[1]];n[1]>=Fo&&(n[1]-=Fo,n[0]+=1);return n}(Zo(Ho()),Zo("number"==typeof t?t:ko.now()))}function Go(t){if(e=t,Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1])return t;if("number"==typeof t)return t<Ho()?Vo(t):Zo(t);if(t instanceof Date)return Zo(t.getTime());throw TypeError("Invalid input type");var e}function Xo(t){return t[0]*Fo+t[1]}var qo,Wo,$o,Ko=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function Yo(t,e){return"string"==typeof e?t===e:!!t.match(e)}function Qo(t,e){return e in t}function Jo(t,e,n){if(Qo(n,e)&&"number"==typeof n[e])return t.addEvent(e,n[e]),t}function ti(t,e){Jo(t,qo.FETCH_START,e),Jo(t,qo.DOMAIN_LOOKUP_START,e),Jo(t,qo.DOMAIN_LOOKUP_END,e),Jo(t,qo.CONNECT_START,e),Qo(e,"name")&&e.name.startsWith("https:")&&Jo(t,qo.SECURE_CONNECTION_START,e),Jo(t,qo.CONNECT_END,e),Jo(t,qo.REQUEST_START,e),Jo(t,qo.RESPONSE_START,e),Jo(t,qo.RESPONSE_END,e);var n=e[qo.ENCODED_BODY_SIZE];void 0!==n&&t.setAttribute(jo,n);var r=e[qo.DECODED_BODY_SIZE];void 0!==r&&n!==r&&t.setAttribute(Bo,r)}function ei(t,e,n,r,o,i){void 0===o&&(o=new WeakSet);var a=ni(t),s=function(t,e,n,r,o,i){var a=Xo(e),s=Xo(n),u=r.filter((function(e){var n=Xo(Go(e[qo.FETCH_START])),r=Xo(Go(e[qo.RESPONSE_END]));return"xmlhttprequest"===e.initiatorType.toLowerCase()&&e.name===t&&n>=a&&r<=s}));u.length>0&&(u=u.filter((function(t){return!o.has(t)})));return u}(t=a.toString(),e,n,r,o);if(0===s.length)return{mainRequest:void 0};if(1===s.length)return{mainRequest:s[0]};var u=function(t){return t.slice().sort((function(t,e){var n=t[qo.FETCH_START],r=e[qo.FETCH_START];return n>r?1:n<r?-1:0}))}(s);if(a.origin!==location.origin&&u.length>1){var c=u[0],l=function(t,e,n){for(var r,o=Xo(n),i=Xo(Go(e)),a=t[1],s=t.length,u=1;u<s;u++){var c=t[u],l=Xo(Go(c[qo.FETCH_START])),p=o-Xo(Go(c[qo.RESPONSE_END]));l>=i&&(!r||p<r)&&(r=p,a=c)}return a}(u,c[qo.RESPONSE_END],n),p=c[qo.RESPONSE_END];return l[qo.FETCH_START]<p&&(l=c,c=void 0),{corsPreFlightRequest:c,mainRequest:l}}return{mainRequest:s[0]}}function ni(t){if("function"==typeof URL)return new URL(t,"undefined"!=typeof document?document.baseURI:"undefined"!=typeof location?location.href:void 0);var e=(Wo||(Wo=document.createElement("a")),Wo);return e.href=t,e}!function(t){t.CONNECT_END="connectEnd",t.CONNECT_START="connectStart",t.DECODED_BODY_SIZE="decodedBodySize",t.DOM_COMPLETE="domComplete",t.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",t.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",t.DOM_INTERACTIVE="domInteractive",t.DOMAIN_LOOKUP_END="domainLookupEnd",t.DOMAIN_LOOKUP_START="domainLookupStart",t.ENCODED_BODY_SIZE="encodedBodySize",t.FETCH_START="fetchStart",t.LOAD_EVENT_END="loadEventEnd",t.LOAD_EVENT_START="loadEventStart",t.NAVIGATION_START="navigationStart",t.REDIRECT_END="redirectEnd",t.REDIRECT_START="redirectStart",t.REQUEST_START="requestStart",t.RESPONSE_END="responseEnd",t.RESPONSE_START="responseStart",t.SECURE_CONNECTION_START="secureConnectionStart",t.UNLOAD_EVENT_END="unloadEventEnd",t.UNLOAD_EVENT_START="unloadEventStart"}(qo||(qo={})),function(t){t.METHOD_OPEN="open",t.METHOD_SEND="send",t.EVENT_ABORT="abort",t.EVENT_ERROR="error",t.EVENT_LOAD="loaded",t.EVENT_TIMEOUT="timeout"}($o||($o={}));var ri,oi="0.41.2";!function(t){t.HTTP_STATUS_TEXT="http.status_text"}(ri||(ri={}));var ii=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ai=function(t){function e(e){var n=t.call(this,"@opentelemetry/instrumentation-xml-http-request",oi,e)||this;return n.component="xml-http-request",n.version=oi,n.moduleName=n.component,n._tasksCount=0,n._xhrMem=new WeakMap,n._usedResources=new WeakSet,n}return ii(e,t),e.prototype.init=function(){},e.prototype._getConfig=function(){return this._config},e.prototype._addHeaders=function(t,e){if(!function(t,e){var n=e||[];return("string"==typeof n||n instanceof RegExp)&&(n=[n]),ni(t).origin===location.origin||n.some((function(e){return Yo(t,e)}))}(ni(e).href,this._getConfig().propagateTraceHeaderCorsUrls)){var n={};return Zt.inject(Lt.active(),n),void(Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}
1var r={};Zt.inject(Lt.active(),r),Object.keys(r).forEach((function(e){t.setRequestHeader(e,String(r[e]))}))},e.prototype._addChildSpan=function(t,e){var n=this;Lt.with(Gt.setSpan(Lt.active(),t),(function(){var t=n.tracer.startSpan("CORS Preflight",{startTime:e[qo.FETCH_START]});ti(t,e),t.end(e[qo.RESPONSE_END])}))},e.prototype._addFinalSpanAttributes=function(t,e,n){if("string"==typeof n){var r=ni(n);void 0!==e.status&&t.setAttribute(Mo,e.status),void 0!==e.statusText&&t.setAttribute(ri.HTTP_STATUS_TEXT,e.statusText),t.setAttribute(xo,r.host),t.setAttribute(Do,r.protocol.replace(":","")),t.setAttribute(Uo,navigator.userAgent)}},e.prototype._applyAttributesAfterXHR=function(t,e){var n=this,r=this._getConfig().applyCustomAttributesOnSpan;"function"==typeof r&&Wr((function(){return r(t,e)}),(function(t){t&&n._diag.error("applyCustomAttributesOnSpan",t)}),!0)},e.prototype._addResourceObserver=function(t,e){var n=this._xhrMem.get(t);n&&"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&(n.createdResources={observer:new PerformanceObserver((function(t){var r=t.getEntries(),o=ni(e);r.forEach((function(t){"xmlhttprequest"===t.initiatorType&&t.name===o.href&&n.createdResources&&n.createdResources.entries.push(t)}))})),entries:[]},n.createdResources.observer.observe({entryTypes:["resource"]}))},e.prototype._clearResources=function(){0===this._tasksCount&&this._getConfig().clearTimingResources&&(ko.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},e.prototype._findResourceAndAddNetworkEvents=function(t,e,n,r,o){if(n&&r&&o&&t.createdResources){var i=t.createdResources.entries;i&&i.length||(i=ko.getEntriesByType("resource"));var a=ei(ni(n).href,r,o,i,this._usedResources);if(a.mainRequest){var s=a.mainRequest;this._markResourceAsUsed(s);var u=a.corsPreFlightRequest;u&&(this._addChildSpan(e,u),this._markResourceAsUsed(u)),ti(e,s)}}},e.prototype._cleanPreviousSpanInformation=function(t){var e=this._xhrMem.get(t);if(e){var n=e.callbackToRemoveEvents;n&&n(),this._xhrMem.delete(t)}},e.prototype._createSpan=function(t,e,n){var r;if(!function(t,e){var n,r;if(!e)return!1;try{for(var o=Ko(e),i=o.next();!i.done;i=o.next())if(Yo(t,i.value))return!0}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}(e,this._getConfig().ignoreUrls)){var o=n.toUpperCase(),i=this.tracer.startSpan(o,{kind:bt.CLIENT,attributes:(r={},r[No]=n,r[Io]=ni(e).toString(),r)});return i.addEvent($o.METHOD_OPEN),this._cleanPreviousSpanInformation(t),this._xhrMem.set(t,{span:i,spanUrl:e}),i}this._diag.debug("ignoring span as url matches ignored url")},e.prototype._markResourceAsUsed=function(t){this._usedResources.add(t)},e.prototype._patchOpen=function(){var t=this;return function(e){var n=t;return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=t[0],i=t[1];return n._createSpan(this,i,o),e.apply(this,t)}}},e.prototype._patchSend=function(){var t=this;function e(e,n){var r=t._xhrMem.get(n);if(r){r.status=n.status,r.statusText=n.statusText,t._xhrMem.delete(n),r.span&&t._applyAttributesAfterXHR(r.span,n);var o=Vo(),i=Date.now();setTimeout((function(){!function(e,n,r,o){var i=n.callbackToRemoveEvents;"function"==typeof i&&i();var a=n.span,s=n.spanUrl,u=n.sendStartTime;a&&(t._findResourceAndAddNetworkEvents(n,a,s,u,r),a.addEvent(e,o),t._addFinalSpanAttributes(a,n,s),a.end(o),t._tasksCount--),t._clearResources()}(e,r,o,i)}),300)}}function n(){e($o.EVENT_ERROR,this)}function r(){e($o.EVENT_ABORT,this)}function o(){e($o.EVENT_TIMEOUT,this)}function i(){this.status<299?e($o.EVENT_LOAD,this):e($o.EVENT_ERROR,this)}return function(e){return function(){for(var a=this,s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];var c=t._xhrMem.get(this);if(!c)return e.apply(this,s);var l=c.span,p=c.spanUrl;return l&&p&&Lt.with(Gt.setSpan(Lt.active(),l),(function(){t._tasksCount++,c.sendStartTime=Vo(),l.addEvent($o.METHOD_SEND),a.addEventListener("abort",r),a.addEventListener("error",n),a.addEventListener("load",i),a.addEventListener("timeout",o),c.callbackToRemoveEvents=function(){!function(e){e.removeEventListener("abort",r),e.removeEventListener("error",n),e.removeEventListener("load",i),e.removeEventListener("timeout",o);var a=t._xhrMem.get(e);
1a&&(a.callbackToRemoveEvents=void 0)}(a),c.createdResources&&c.createdResources.observer.disconnect()},t._addHeaders(a,p),t._addResourceObserver(a,p)})),e.apply(this,s)}}},e.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),$r(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),$r(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())},e.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},e}(qr);const si={ignoreUrls:[],propagateTraceHeaderCorsUrls:[]};function ui(t=si){return[new Jr,new Po(t),new ai(t)]}var ci="OT_ZONE_CONTEXT",li=function(){function t(){this._enabled=!1,this._zoneCounter=0}return t.prototype._activeContextFromZone=function(t){return t&&t.get(ci)||C},t.prototype._bindFunction=function(t,e){var n=this,r=function(){for(var r=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n.with(t,(function(){return e.apply(r,o)}))};return Object.defineProperty(r,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),r},t.prototype._bindListener=function(t,e){var n=e;return void 0!==n.__ot_listeners||(n.__ot_listeners={},"function"==typeof n.addEventListener&&(n.addEventListener=this._patchAddEventListener(n,n.addEventListener,t)),"function"==typeof n.removeEventListener&&(n.removeEventListener=this._patchRemoveEventListener(n,n.removeEventListener))),e},t.prototype._createZoneName=function(){this._zoneCounter++;var t=Math.random();return this._zoneCounter+"-"+t},t.prototype._createZone=function(t,e){var n;return Zone.current.fork({name:t,properties:(n={},n[ci]=e,n)})},t.prototype._getActiveZone=function(){return Zone.current},t.prototype._patchAddEventListener=function(t,e,n){var r=this;return function(o,i,a){void 0===t.__ot_listeners&&(t.__ot_listeners={});var s=t.__ot_listeners[o];void 0===s&&(s=new WeakMap,t.__ot_listeners[o]=s);var u=r.bind(n,i);return s.set(i,u),e.call(this,o,u,a)}},t.prototype._patchRemoveEventListener=function(t,e){return function(n,r){if(void 0===t.__ot_listeners||void 0===t.__ot_listeners[n])return e.call(this,n,r);var o=t.__ot_listeners[n],i=o.get(r);return o.delete(r),e.call(this,n,i||r)}},t.prototype.active=function(){if(!this._enabled)return C;var t=this._getActiveZone(),e=this._activeContextFromZone(t);return e||C},t.prototype.bind=function(t,e){return void 0===t&&(t=this.active()),"function"==typeof e?this._bindFunction(t,e):(void 0===(n=e)&&(n={}),"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener&&this._bindListener(t,e),e);var n},t.prototype.disable=function(){return this._enabled=!1,this},t.prototype.enable=function(){return this._enabled=!0,this},t.prototype.with=function(t,e,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var i=this._createZoneName();return this._createZone(i,t).run(e,n,r)},t}(); 2/** 3 * @license Angular v12.0.0-next.0 4 * (c) 2010-2020 Google LLC. https://angular.io/ 5 * License: MIT 6 */ 7/** 8 * @license 9 * Copyright Google LLC All Rights Reserved. 10 * 11 * Use of this source code is governed by an MIT-style license that can be 12 * found in the LICENSE file at https://angular.io/license 13 */ 14!function(t){const e=t.performance;function n(t){e&&e.mark&&e.mark(t)}function r(t,n){e&&e.measure&&e.measure(t,n)}n("Zone");const o=t.__Zone_symbol_prefix||"__zone_symbol__";function i(t){return o+t}const a=!0===t[i("forceDuplicateZoneCheck")];if(t.Zone){if(a||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}class s{constructor(t,e){this._parent=t,this._name=e?e.name||"unnamed":"<root>",this._properties=e&&e.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,e)}static assertZonePatched(){if(t.Promise!==C.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=s.current;for(;t.parent;)t=t.parent;return t}static get current(){return k.zone}static get currentTask(){return N}static __load_patch(e,o,i=!1){if(C.hasOwnProperty(e)){if(!i&&a)throw Error("Already loaded patch: "+e)}else if(!t["__Zone_disable_"+e]){const i="Zone:"+e;n(i),C[e]=o(t,s,P),r(i,i)}}get parent(){return this._parent}get name(){return this._name}get(t){const e=this.getZoneWith(t);if(e)return e._properties[t]}getZoneWith(t){let e=this;for(;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}}run(t,e,n,r){k={parent:k,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{k=k.parent}}runGuarded(t,e=null,n,r){k={parent:k,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{k=k.parent}}runTask(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||E).name+"; Execution: "+this.name+")");if(t.state===y&&(t.type===L||t.type===A))return;const r=t.state!=S;r&&t._transitionTo(S,b),t.runCount++;const o=N;N=t,k={parent:k,zone:this};try{t.type==A&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{t.state!==y&&t.state!==w&&(t.type==L||t.data&&t.data.isPeriodic?r&&t._transitionTo(b,S):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(y,S,y))),k=k.parent,N=o}}scheduleTask(t){if(t.zone&&t.zone!==this){let e=this;for(;e;){if(e===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);e=e.parent}}t._transitionTo(T,y);const e=[];t._zoneDelegates=e,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(e){throw t._transitionTo(w,T,y),this._zoneDelegate.handleError(this,e),e}return t._zoneDelegates===e&&this._updateTaskCount(t,1),t.state==T&&t._transitionTo(b,T),t}scheduleMicroTask(t,e,n,r){return this.scheduleTask(new l(R,t,e,n,r,void 0))}scheduleMacroTask(t,e,n,r,o){return this.scheduleTask(new l(A,t,e,n,r,o))}scheduleEventTask(t,e,n,r,o){return this.scheduleTask(new l(L,t,e,n,r,o))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||E).name+"; Execution: "+this.name+")");t._transitionTo(O,b,S);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(w,O),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(y,O),t.runCount=0,t}_updateTaskCount(t,e){const n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(let r=0;r<n.length;r++)n[r]._updateTaskCount(t.type,e)}}s.__symbol__=i;const u={name:"",onHasTask:(t,e,n,r)=>t.hasTask(n,r),onScheduleTask:(t,e,n,r)=>t.scheduleTask(n,r),onInvokeTask:(t,e,n,r,o,i)=>t.invokeTask(n,r,o,i),onCancelTask:(t,e,n,r)=>t.cancelTask(n,r)};class c{constructor(t,e,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=e,this._forkZS=n&&(n&&n.onFork?n:e._forkZS),this._forkDlgt=n&&(n.onFork?e:e._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:e._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:e._interceptZS),this._interceptDlgt=n&&(n.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:e._invokeZS),this._invokeDlgt=n&&(n.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:e._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:e._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:e._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:e._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const r=n&&n.onHasTask,o=e&&e._hasTaskZS;(r||o)&&(this._hasTaskZS=r?n:u,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,n.onScheduleTask||(this._scheduleTaskZS=u,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=u,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=u,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(t,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,e):new s(t,e)}intercept(t,e,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,e,n):e}invoke(t,e,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,e,n,r,o):e.apply(n,r)}handleError(t,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,e)}scheduleTask(t,e){let n=e;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,e),n||(n=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=R)throw new Error("Task is missing scheduleFn.");g(e)}return n}invokeTask(t,e,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,e,n,r):e.callback.apply(n,r)}cancelTask(t,e){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");n=e.cancelFn(e)}return n}hasTask(t,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,e)}catch(e){this.handleError(t,e)}}_updateTaskCount(t,e){const n=this._taskCounts,r=n[t],o=n[t]=r+e;if(o<0)throw new Error("More tasks executed then were scheduled.");
14if(0==r||0==o){const e={microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t};this.hasTask(this.zone,e)}}}class l{constructor(e,n,r,o,i,a){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=e,this.source=n,this.data=o,this.scheduleFn=i,this.cancelFn=a,!r)throw new Error("callback is not defined");this.callback=r;const s=this;e===L&&o&&o.useG?this.invoke=l.invokeTask:this.invoke=function(){return l.invokeTask.call(t,s,this,arguments)}}static invokeTask(t,e,n){t||(t=this),I++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==I&&m(),I--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(y,T)}_transitionTo(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${e}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=t,t==y&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const p=i("setTimeout"),f=i("Promise"),d=i("then");let h,_=[],v=!1;function g(e){if(0===I&&0===_.length)if(h||t[f]&&(h=t[f].resolve(0)),h){let t=h[d];t||(t=h.then),t.call(h,m)}else t[p](m,0);e&&_.push(e)}function m(){if(!v){for(v=!0;_.length;){const t=_;_=[];for(let e=0;e<t.length;e++){const n=t[e];try{n.zone.runTask(n,null,null)}catch(t){P.onUnhandledError(t)}}}P.microtaskDrainDone(),v=!1}}const E={name:"NO ZONE"},y="notScheduled",T="scheduling",b="scheduled",S="running",O="canceling",w="unknown",R="microTask",A="macroTask",L="eventTask",C={},P={symbol:i,currentZoneFrame:()=>k,onUnhandledError:x,microtaskDrainDone:x,scheduleMicroTask:g,showUncaughtError:()=>!s[i("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:x,patchMethod:()=>x,bindArguments:()=>[],patchThen:()=>x,patchMacroTask:()=>x,patchEventPrototype:()=>x,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>x,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>x,wrapWithCurrentZone:()=>x,filterProperties:()=>[],attachOriginToPatched:()=>x,_redefineProperty:()=>x,patchCallbacks:()=>x};let k={parent:null,zone:new s(null,null)},N=null,I=0;function x(){}r("Zone","Zone"),t.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||Dr); 15/** 16 * @license 17 * Copyright Google LLC All Rights Reserved. 18 * 19 * Use of this source code is governed by an MIT-style license that can be 20 * found in the LICENSE file at https://angular.io/license 21 */ 22const pi=Object.getOwnPropertyDescriptor,fi=Object.defineProperty,di=Object.getPrototypeOf,hi=Object.create,_i=Array.prototype.slice,vi="addEventListener",gi="removeEventListener",mi=Zone.__symbol__(vi),Ei=Zone.__symbol__(gi),yi="true",Ti="false",bi=Zone.__symbol__("");function Si(t,e){return Zone.current.wrap(t,e)}function Oi(t,e,n,r,o){return Zone.current.scheduleMacroTask(t,e,n,r,o)}const wi=Zone.__symbol__,Ri="undefined"!=typeof window,Ai=Ri?window:void 0,Li=Ri&&Ai||"object"==typeof self&&self||Dr,Ci="removeAttribute",Pi=[null];function ki(t,e){for(let n=t.length-1;n>=0;n--)"function"==typeof t[n]&&(t[n]=Si(t[n],e+"_"+n));return t}function Ni(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}const Ii="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,xi=!("nw"in Li)&&void 0!==Li.process&&"[object process]"==={}.toString.call(Li.process),Di=!xi&&!Ii&&!(!Ri||!Ai.HTMLElement),Mi=void 0!==Li.process&&"[object process]"==={}.toString.call(Li.process)&&!Ii&&!(!Ri||!Ai.HTMLElement),Ui={},ji=function(t){if(!(t=t||Li.event))return;let e=Ui[t.type];e||(e=Ui[t.type]=wi("ON_PROPERTY"+t.type));const n=this||t.target||Li,r=n[e];let o;if(Di&&n===Ai&&"error"===t.type){const e=t;o=r&&r.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===o&&t.preventDefault()}else o=r&&r.apply(this,arguments),null==o||o||t.preventDefault();return o};function Bi(t,e,n){let r=pi(t,e);if(!r&&n){pi(n,e)&&(r={enumerable:!0,configurable:!0})}if(!r||!r.configurable)return;const o=wi("on"+e+"patched");if(t.hasOwnProperty(o)&&t[o])return;delete r.writable,delete r.value;const i=r.get,a=r.set,s=e.substr(2);let u=Ui[s];u||(u=Ui[s]=wi("ON_PROPERTY"+s)),r.set=function(e){let n=this;n||t!==Li||(n=Li),n&&(n[u]&&n.removeEventListener(s,ji),a&&a.apply(n,Pi),"function"==typeof e?(n[u]=e,n.addEventListener(s,ji,!1)):n[u]=null)},r.get=function(){let n=this;if(n||t!==Li||(n=Li),!n)return null;const o=n[u];if(o)return o;if(i){let t=i&&i.call(this);if(t)return r.set.call(this,t),"function"==typeof n[Ci]&&n.removeAttribute(e),t}return null},fi(t,e,r),t[o]=!0}function zi(t,e,n){if(e)for(let r=0;r<e.length;r++)Bi(t,"on"+e[r],n);else{const e=[];for(const n in t)"on"==n.substr(0,2)&&e.push(n);for(let r=0;r<e.length;r++)Bi(t,e[r],n)}}const Fi=wi("originalInstance");function Zi(t){const e=Li[t];if(!e)return;Li[wi(t)]=e,Li[t]=function(){const n=ki(arguments,t);switch(n.length){case 0:this[Fi]=new e;break;case 1:this[Fi]=new e(n[0]);break;case 2:this[Fi]=new e(n[0],n[1]);break;case 3:this[Fi]=new e(n[0],n[1],n[2]);break;case 4:this[Fi]=new e(n[0],n[1],n[2],n[3]);break;default:throw new Error("Arg list too long.")}},Gi(Li[t],e);const n=new e((function(){}));let r;for(r in n)"XMLHttpRequest"===t&&"responseBlob"===r||function(e){"function"==typeof n[e]?Li[t].prototype[e]=function(){return this[Fi][e].apply(this[Fi],arguments)}:fi(Li[t].prototype,e,{set:function(n){"function"==typeof n?(this[Fi][e]=Si(n,t+"."+e),Gi(this[Fi][e],n)):this[Fi][e]=n},get:function(){return this[Fi][e]}})}(r);for(r in e)"prototype"!==r&&e.hasOwnProperty(r)&&(Li[t][r]=e[r])}function Hi(t,e,n){let r=t;for(;r&&!r.hasOwnProperty(e);)r=di(r);!r&&t[e]&&(r=t);const o=wi(e);let i=null;if(r&&(!(i=r[o])||!r.hasOwnProperty(o))){i=r[o]=r[e];if(Ni(r&&pi(r,e))){const t=n(i,o,e);r[e]=function(){return t(this,arguments)},Gi(r[e],i)}}return i}function Vi(t,e,n){let r=null;function o(t){const e=t.data;return e.args[e.cbIdx]=function(){t.invoke.apply(this,arguments)},r.apply(e.target,e.args),t}r=Hi(t,e,(t=>function(e,r){const i=n(e,r);return i.cbIdx>=0&&"function"==typeof r[i.cbIdx]?Oi(i.name,r[i.cbIdx],i,o):t.apply(e,r)}))}function Gi(t,e){t[wi("OriginalDelegate")]=e}let Xi=!1,qi=!1;function Wi(){try{const t=Ai.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch(t){}return!1}
22function $i(){if(Xi)return qi;Xi=!0;try{const t=Ai.navigator.userAgent;-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(qi=!0)}catch(t){}return qi} 23/** 24 * @license 25 * Copyright Google LLC All Rights Reserved. 26 * 27 * Use of this source code is governed by an MIT-style license that can be 28 * found in the LICENSE file at https://angular.io/license 29 */Zone.__load_patch("ZoneAwarePromise",((t,e,n)=>{const r=Object.getOwnPropertyDescriptor,o=Object.defineProperty;const i=n.symbol,a=[],s=!0===t[i("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],u=i("Promise"),c=i("then"),l="__creationTrace__";n.onUnhandledError=t=>{if(n.showUncaughtError()){const e=t&&t.rejection;e?console.error("Unhandled Promise rejection:",e instanceof Error?e.message:e,"; Zone:",t.zone.name,"; Task:",t.task&&t.task.source,"; Value:",e,e instanceof Error?e.stack:void 0):console.error(t)}},n.microtaskDrainDone=()=>{for(;a.length;){const t=a.shift();try{t.zone.runGuarded((()=>{if(t.throwOriginal)throw t.rejection;throw t}))}catch(t){f(t)}}};const p=i("unhandledPromiseRejectionHandler");function f(t){n.onUnhandledError(t);try{const n=e[p];"function"==typeof n&&n.call(this,t)}catch(t){}}function d(t){return t&&t.then}function h(t){return t}function _(t){return D.reject(t)}const v=i("state"),g=i("value"),m=i("finally"),E=i("parentPromiseValue"),y=i("parentPromiseState"),T="Promise.then",b=null,S=!0,O=!1,w=0;function R(t,e){return n=>{try{P(t,e,n)}catch(e){P(t,!1,e)}}}const A=function(){let t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},L="Promise resolved with itself",C=i("currentTaskTrace");function P(t,r,i){const u=A();if(t===i)throw new TypeError(L);if(t[v]===b){let c=null;try{"object"!=typeof i&&"function"!=typeof i||(c=i&&i.then)}catch(e){return u((()=>{P(t,!1,e)}))(),t}if(r!==O&&i instanceof D&&i.hasOwnProperty(v)&&i.hasOwnProperty(g)&&i[v]!==b)N(i),P(t,i[v],i[g]);else if(r!==O&&"function"==typeof c)try{c.call(i,u(R(t,r)),u(R(t,!1)))}catch(e){u((()=>{P(t,!1,e)}))()}else{t[v]=r;const u=t[g];if(t[g]=i,t[m]===m&&r===S&&(t[v]=t[y],t[g]=t[E]),r===O&&i instanceof Error){const t=e.currentTask&&e.currentTask.data&&e.currentTask.data[l];t&&o(i,C,{configurable:!0,enumerable:!1,writable:!0,value:t})}for(let e=0;e<u.length;)I(t,u[e++],u[e++],u[e++],u[e++]);if(0==u.length&&r==O){t[v]=w;let r=i;try{throw new Error("Uncaught (in promise): "+function(t){if(t&&t.toString===Object.prototype.toString){return(t.constructor&&t.constructor.name||"")+": "+JSON.stringify(t)}return t?t.toString():Object.prototype.toString.call(t)}(i)+(i&&i.stack?"\n"+i.stack:""))}catch(t){r=t}s&&(r.throwOriginal=!0),r.rejection=i,r.promise=t,r.zone=e.current,r.task=e.currentTask,a.push(r),n.scheduleMicroTask()}}}return t}const k=i("rejectionHandledHandler");function N(t){if(t[v]===w){try{const n=e[k];n&&"function"==typeof n&&n.call(this,{rejection:t[g],promise:t})}catch(t){}t[v]=O;for(let e=0;e<a.length;e++)t===a[e].promise&&a.splice(e,1)}}function I(t,e,n,r,o){N(t);const i=t[v],a=i?"function"==typeof r?r:h:"function"==typeof o?o:_;e.scheduleMicroTask(T,(()=>{try{const r=t[g],o=!!n&&m===n[m];o&&(n[E]=r,n[y]=i);const s=e.run(a,void 0,o&&a!==_&&a!==h?[]:[r]);P(n,!0,s)}catch(t){P(n,!1,t)}}),n)}const x=function(){};class D{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(t){return P(new this(null),S,t)}static reject(t){return P(new this(null),O,t)}static race(t){let e,n,r=new this(((t,r)=>{e=t,n=r}));function o(t){e(t)}function i(t){n(t)}for(let e of t)d(e)||(e=this.resolve(e)),e.then(o,i);return r}static all(t){return D.allWithCallback(t)}static allSettled(t){return(this&&this.prototype instanceof D?this:D).allWithCallback(t,{thenCallback:t=>({status:"fulfilled",value:t}),errorCallback:t=>({status:"rejected",reason:t})})}static allWithCallback(t,e){let n,r,o=new this(((t,e)=>{n=t,r=e})),i=2,a=0;const s=[];for(let o of t){d(o)||(o=this.resolve(o));const t=a;try{o.then((r=>{s[t]=e?e.thenCallback(r):r,i--,0===i&&n(s)}),(o=>{e?(s[t]=e.errorCallback(o),i--,0===i&&n(s)):r(o)}
29))}catch(t){r(t)}i++,a++}return i-=2,0===i&&n(s),o}constructor(t){const e=this;if(!(e instanceof D))throw new Error("Must be an instanceof Promise.");e[v]=b,e[g]=[];try{t&&t(R(e,S),R(e,O))}catch(t){P(e,!1,t)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return D}then(t,n){let r=this.constructor[Symbol.species];r&&"function"==typeof r||(r=this.constructor||D);const o=new r(x),i=e.current;return this[v]==b?this[g].push(i,o,t,n):I(this,i,o,t,n),o}catch(t){return this.then(null,t)}finally(t){let n=this.constructor[Symbol.species];n&&"function"==typeof n||(n=D);const r=new n(x);r[m]=m;const o=e.current;return this[v]==b?this[g].push(o,r,t,t):I(this,o,r,t,t),r}}D.resolve=D.resolve,D.reject=D.reject,D.race=D.race,D.all=D.all;const M=t[u]=t.Promise;t.Promise=D;const U=i("thenPatched");function j(t){const e=t.prototype,n=r(e,"then");if(n&&(!1===n.writable||!n.configurable))return;const o=e.then;e[c]=o,t.prototype.then=function(t,e){return new D(((t,e)=>{o.call(this,t,e)})).then(t,e)},t[U]=!0}return n.patchThen=j,M&&(j(M),Hi(t,"fetch",(t=>{return e=t,function(t,n){let r=e.apply(t,n);if(r instanceof D)return r;let o=r.constructor;return o[U]||j(o),r};var e}))),Promise[e.__symbol__("uncaughtPromiseErrors")]=a,D})), 30/** 31 * @license 32 * Copyright Google LLC All Rights Reserved. 33 * 34 * Use of this source code is governed by an MIT-style license that can be 35 * found in the LICENSE file at https://angular.io/license 36 */ 37Zone.__load_patch("toString",(t=>{const e=Function.prototype.toString,n=wi("OriginalDelegate"),r=wi("Promise"),o=wi("Error"),i=function(){if("function"==typeof this){const i=this[n];if(i)return"function"==typeof i?e.call(i):Object.prototype.toString.call(i);if(this===Promise){const n=t[r];if(n)return e.call(n)}if(this===Error){const n=t[o];if(n)return e.call(n)}}return e.call(this)};i[n]=e,Function.prototype.toString=i;const a=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":a.call(this)}})); 38/** 39 * @license 40 * Copyright Google LLC All Rights Reserved. 41 * 42 * Use of this source code is governed by an MIT-style license that can be 43 * found in the LICENSE file at https://angular.io/license 44 */ 45let Ki=!1;if("undefined"!=typeof window)try{const t=Object.defineProperty({},"passive",{get:function(){Ki=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){Ki=!1}const Yi={useG:!0},Qi={},Ji={},ta=new RegExp("^"+bi+"(\\w+)(true|false)$"),ea=wi("propagationStopped");function na(t,e){const n=(e?e(t):t)+Ti,r=(e?e(t):t)+yi,o=bi+n,i=bi+r;Qi[t]={},Qi[t][Ti]=o,Qi[t][yi]=i}function ra(t,e,n){const r=n&&n.add||vi,o=n&&n.rm||gi,i=n&&n.listeners||"eventListeners",a=n&&n.rmAll||"removeAllListeners",s=wi(r),u="."+r+":",c="prependListener",l="."+c+":",p=function(t,e,n){if(t.isRemoved)return;const r=t.callback;"object"==typeof r&&r.handleEvent&&(t.callback=t=>r.handleEvent(t),t.originalDelegate=r),t.invoke(t,e,[n]);const i=t.options;if(i&&"object"==typeof i&&i.once){const r=t.originalDelegate?t.originalDelegate:t.callback;e[o].call(e,n.type,r,i)}},f=function(e){if(!(e=e||t.event))return;const n=this||e.target||t,r=n[Qi[e.type][Ti]];if(r)if(1===r.length)p(r[0],n,e);else{const t=r.slice();for(let r=0;r<t.length&&(!e||!0!==e[ea]);r++)p(t[r],n,e)}},d=function(e){if(!(e=e||t.event))return;const n=this||e.target||t,r=n[Qi[e.type][yi]];if(r)if(1===r.length)p(r[0],n,e);else{const t=r.slice();for(let r=0;r<t.length&&(!e||!0!==e[ea]);r++)p(t[r],n,e)}};function h(e,n){if(!e)return!1;let p=!0;n&&void 0!==n.useG&&(p=n.useG);const h=n&&n.vh;let _=!0;n&&void 0!==n.chkDup&&(_=n.chkDup);let v=!1;n&&void 0!==n.rt&&(v=n.rt);let g=e;for(;g&&!g.hasOwnProperty(r);)g=di(g);if(!g&&e[r]&&(g=e),!g)return!1;if(g[s])return!1;const m=n&&n.eventNameToString,E={},y=g[s]=g[r],T=g[wi(o)]=g[o],b=g[wi(i)]=g[i],S=g[wi(a)]=g[a];let O;n&&n.prepend&&(O=g[wi(n.prepend)]=g[n.prepend]);const w=function(t){return O.call(E.target,E.eventName,t.invoke,E.options)}
45,R=p?function(t){if(!E.isExisting)return y.call(E.target,E.eventName,E.capture?d:f,E.options)}:function(t){return y.call(E.target,E.eventName,t.invoke,E.options)},A=p?function(t){if(!t.isRemoved){const e=Qi[t.eventName];let n;e&&(n=e[t.capture?yi:Ti]);const r=n&&t.target[n];if(r)for(let e=0;e<r.length;e++){if(r[e]===t){r.splice(e,1),t.isRemoved=!0,0===r.length&&(t.allRemoved=!0,t.target[n]=null);break}}}if(t.allRemoved)return T.call(t.target,t.eventName,t.capture?d:f,t.options)}:function(t){return T.call(t.target,t.eventName,t.invoke,t.options)},L=n&&n.diff?n.diff:function(t,e){const n=typeof e;return"function"===n&&t.callback===e||"object"===n&&t.originalDelegate===e},C=Zone[wi("UNPATCHED_EVENTS")],P=t[wi("PASSIVE_EVENTS")],k=function(e,r,o,i,a=!1,s=!1){return function(){const u=this||t;let c=arguments[0];n&&n.transferEventName&&(c=n.transferEventName(c));let l=arguments[1];if(!l)return e.apply(this,arguments);if(xi&&"uncaughtException"===c)return e.apply(this,arguments);let f=!1;if("function"!=typeof l){if(!l.handleEvent)return e.apply(this,arguments);f=!0}if(h&&!h(e,l,u,arguments))return;const d=Ki&&!!P&&-1!==P.indexOf(c),v=function(t,e){return!Ki&&"object"==typeof t&&t?!!t.capture:Ki&&e?"boolean"==typeof t?{capture:t,passive:!0}:t?"object"==typeof t&&!1!==t.passive?Object.assign(Object.assign({},t),{passive:!0}):t:{passive:!0}:t}(arguments[2],d);if(C)for(let t=0;t<C.length;t++)if(c===C[t])return d?e.call(u,c,l,v):e.apply(this,arguments);const g=!!v&&("boolean"==typeof v||v.capture),y=!(!v||"object"!=typeof v)&&v.once,T=Zone.current;let b=Qi[c];b||(na(c,m),b=Qi[c]);const S=b[g?yi:Ti];let O,w=u[S],R=!1;if(w){if(R=!0,_)for(let t=0;t<w.length;t++)if(L(w[t],l))return}else w=u[S]=[];const A=u.constructor.name,k=Ji[A];k&&(O=k[c]),O||(O=A+r+(m?m(c):c)),E.options=v,y&&(E.options.once=!1),E.target=u,E.capture=g,E.eventName=c,E.isExisting=R;const N=p?Yi:void 0;N&&(N.taskData=E);const I=T.scheduleEventTask(O,l,N,o,i);return E.target=null,N&&(N.taskData=null),y&&(v.once=!0),(Ki||"boolean"!=typeof I.options)&&(I.options=v),I.target=u,I.capture=g,I.eventName=c,f&&(I.originalDelegate=l),s?w.unshift(I):w.push(I),a?u:void 0}};return g[r]=k(y,u,R,A,v),O&&(g[c]=k(O,l,w,A,v,!0)),g[o]=function(){const e=this||t;let r=arguments[0];n&&n.transferEventName&&(r=n.transferEventName(r));const o=arguments[2],i=!!o&&("boolean"==typeof o||o.capture),a=arguments[1];if(!a)return T.apply(this,arguments);if(h&&!h(T,a,e,arguments))return;const s=Qi[r];let u;s&&(u=s[i?yi:Ti]);const c=u&&e[u];if(c)for(let t=0;t<c.length;t++){const n=c[t];if(L(n,a)){if(c.splice(t,1),n.isRemoved=!0,0===c.length&&(n.allRemoved=!0,e[u]=null,"string"==typeof r)){e[bi+"ON_PROPERTY"+r]=null}return n.zone.cancelTask(n),v?e:void 0}}return T.apply(this,arguments)},g[i]=function(){const e=this||t;let r=arguments[0];n&&n.transferEventName&&(r=n.transferEventName(r));const o=[],i=oa(e,m?m(r):r);for(let t=0;t<i.length;t++){const e=i[t];let n=e.originalDelegate?e.originalDelegate:e.callback;o.push(n)}return o},g[a]=function(){const e=this||t;let r=arguments[0];if(r){n&&n.transferEventName&&(r=n.transferEventName(r));const t=Qi[r];if(t){const n=t[Ti],i=t[yi],a=e[n],s=e[i];if(a){const t=a.slice();for(let e=0;e<t.length;e++){const n=t[e];let i=n.originalDelegate?n.originalDelegate:n.callback;this[o].call(this,r,i,n.options)}}if(s){const t=s.slice();for(let e=0;e<t.length;e++){const n=t[e];let i=n.originalDelegate?n.originalDelegate:n.callback;this[o].call(this,r,i,n.options)}}}}else{const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e],r=ta.exec(n);let o=r&&r[1];o&&"removeListener"!==o&&this[a].call(this,o)}this[a].call(this,"removeListener")}if(v)return this},Gi(g[r],y),Gi(g[o],T),S&&Gi(g[a],S),b&&Gi(g[i],b),!0}let _=[];for(let t=0;t<e.length;t++)_[t]=h(e[t],n);return _}function oa(t,e){if(!e){const n=[];for(let r in t){const o=ta.exec(r);let i=o&&o[1];if(i&&(!e||i===e)){const e=t[r];if(e)for(let t=0;t<e.length;t++)n.push(e[t])}}return n}let n=Qi[e];n||(na(e),n=Qi[e]);const r=t[n[Ti]],o=t[n[yi]];return r?o?r.concat(o):r.slice():o?o.slice():[]}function ia(t,e){const n=t.Event;n&&n.prototype&&e.patchMethod(n.prototype,"stopImmediatePropagation",(t=>function(e,n){e[ea]=!0,t&&t.apply(e,n)}))} 46/** 47 * @license 48 * Copyright Google LLC All Rights Reserved. 49 * 50 * Use of this source code is governed by an MIT-style license that can be 51 * found in the LICENSE file at https://angular.io/license 52 */function aa(t,e,n,r,o){const i=Zone.__symbol__(r);if(e[i])return;const a=e[i]=e[r];e[r]=function(i,s,u){return s&&s.prototype&&o.forEach((function(e){const o=`${n}.${r}::`+e,i=s.prototype;if(i.hasOwnProperty(e)){const n=t.ObjectGetOwnPropertyDescriptor(i,e);n&&n.value?(n.value=t.wrapWithCurrentZone(n.value,o),t._redefineProperty(s.prototype,e,n)):i[e]&&(i[e]=t.wrapWithCurrentZone(i[e],o))}else i[e]&&(i[e]=t.wrapWithCurrentZone(i[e],o))})),a.call(e,i,s,u)},t.attachOriginToPatched(e[r],a)} 53/** 54 * @license 55 * Copyright Google LLC All Rights Reserved. 56 * 57 * Use of this source code is governed by an MIT-style license that can be 58 * found in the LICENSE file at https://angular.io/license 59 */const sa=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],ua=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],ca=["load"],la=["blur","error","focus","load","resize","scroll","messageerror"],pa=["bounce","finish","start"],fa=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],da=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],ha=["close","error","open","message"],_a=["error","message"],va=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invali
59d","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],sa,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function ga(t,e,n){if(!n||0===n.length)return e;const r=n.filter((e=>e.target===t));if(!r||0===r.length)return e;const o=r[0].ignoreProperties;return e.filter((t=>-1===o.indexOf(t)))}function ma(t,e,n,r){if(!t)return;zi(t,ga(t,e,n),r)}function Ea(t,e){if(xi&&!Mi)return;if(Zone[t.symbol("patchEvents")])return;const n="undefined"!=typeof WebSocket,r=e.__Zone_ignore_on_properties;if(Di){const t=window,e=Wi()?[{target:t,ignoreProperties:["error"]}]:[];ma(t,va.concat(["messageerror"]),r?r.concat(e):r,di(t)),ma(Document.prototype,va,r),void 0!==t.SVGElement&&ma(t.SVGElement.prototype,va,r),ma(Element.prototype,va,r),ma(HTMLElement.prototype,va,r),ma(HTMLMediaElement.prototype,ua,r),ma(HTMLFrameSetElement.prototype,sa.concat(la),r),ma(HTMLBodyElement.prototype,sa.concat(la),r),ma(HTMLFrameElement.prototype,ca,r),ma(HTMLIFrameElement.prototype,ca,r);const n=t.HTMLMarqueeElement;n&&ma(n.prototype,pa,r);const o=t.Worker;o&&ma(o.prototype,_a,r)}const o=e.XMLHttpRequest;o&&ma(o.prototype,fa,r);const i=e.XMLHttpRequestEventTarget;i&&ma(i&&i.prototype,fa,r),"undefined"!=typeof IDBIndex&&(ma(IDBIndex.prototype,da,r),ma(IDBRequest.prototype,da,r),ma(IDBOpenDBRequest.prototype,da,r),ma(IDBDatabase.prototype,da,r),ma(IDBTransaction.prototype,da,r),ma(IDBCursor.prototype,da,r)),n&&ma(WebSocket.prototype,ha,r)} 60/** 61 * @license 62 * Copyright Google LLC All Rights Reserved. 63 * 64 * Use of this source code is governed by an MIT-style license that can be 65 * found in the LICENSE file at https://angular.io/license 66 */Zone.__load_patch("util",((t,e,n)=>{n.patchOnProperties=zi,n.patchMethod=Hi,n.bindArguments=ki,n.patchMacroTask=Vi;const r=e.__symbol__("BLACK_LISTED_EVENTS"),o=e.__symbol__("UNPATCHED_EVENTS");t[o]&&(t[r]=t[o]),t[r]&&(e[r]=e[o]=t[r]),n.patchEventPrototype=ia,n.patchEventTarget=ra,n.isIEOrEdge=$i,n.ObjectDefineProperty=fi,n.ObjectGetOwnPropertyDescriptor=pi,n.ObjectCreate=hi,n.ArraySlice=_i,n.patchClass=Zi,n.wrapWithCurrentZone=Si,n.filterProperties=ga,n.attachOriginToPatched=Gi,n._redefineProperty=Object.defineProperty,n.patchCallbacks=aa,n.getGlobalObjects=()=>({globalSources:Ji,zoneSymbolEventNames:Qi,eventNames:va,isBrowser:Di,isMix:Mi,isNode:xi,TRUE_STR:yi,FALSE_STR:Ti,ZONE_SYMBOL_PREFIX:bi,ADD_EVENT_LISTENER_STR:vi,REMOVE_EVENT_LISTENER_STR:gi})})); 67/** 68 * @license 69 * Copyright Google LLC All Rights Reserved. 70 * 71 * Use of this source code is governed by an MIT-style license that can be 72 * found in the LICENSE file at https://angular.io/license 73 */ 74const ya=wi("zoneTask");function Ta(t,e,n,r){let o=null,i=null;n+=r;const a={};function s(e){const n=e.data;return n.args[0]=function(){return e.invoke.apply(this,arguments)},n.handleId=o.apply(t,n.args),e}function u(e){return i.call(t,e.data.handleId)}o=Hi(t,e+=r,(n=>function(o,i){if("function"==typeof i[0]){const t={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},n=i[0];i[0]=function(){try{return n.apply(this,arguments)}finally{t.isPeriodic||("number"==typeof t.handleId?delete a[t.handleId]:t.handleId&&(t.handleId[ya]=null))}};const o=Oi(e,i[0],t,s,u);if(!o)return o;const c=o.data.handleId;return"number"==typeof c?a[c]=o:c&&(c[ya]=o),c&&c.ref&&c.unref&&"function"==typeof c.ref&&"function"==typeof c.unref&&(o.ref=c.ref.bind(c),o.unref=c.unref.bind(c)),"number"==typeof c||c?c:o}return n.apply(t,i)})),i=Hi(t,n,(e=>function(n,r){const o=r[0];let i;
74"number"==typeof o?i=a[o]:(i=o&&o[ya],i||(i=o)),i&&"string"==typeof i.type?"notScheduled"!==i.state&&(i.cancelFn&&i.data.isPeriodic||0===i.runCount)&&("number"==typeof o?delete a[o]:o&&(o[ya]=null),i.zone.cancelTask(i)):e.apply(t,r)}))} 75/** 76 * @license 77 * Copyright Google LLC All Rights Reserved. 78 * 79 * Use of this source code is governed by an MIT-style license that can be 80 * found in the LICENSE file at https://angular.io/license 81 */ 82/** 83 * @license 84 * Copyright Google LLC All Rights Reserved. 85 * 86 * Use of this source code is governed by an MIT-style license that can be 87 * found in the LICENSE file at https://angular.io/license 88 */ 89function ba(t,e){if(Zone[e.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:r,TRUE_STR:o,FALSE_STR:i,ZONE_SYMBOL_PREFIX:a}=e.getGlobalObjects();for(let t=0;t<n.length;t++){const e=n[t],s=a+(e+i),u=a+(e+o);r[e]={},r[e][i]=s,r[e][o]=u}const s=t.EventTarget;return s&&s.prototype?(e.patchEventTarget(t,[s&&s.prototype]),!0):void 0}function Sa(t,e){return typeof t===e}function Oa(t,e){return Object.prototype.toString.call(t)===`[object ${e}]`}function wa(t,e){try{return t instanceof e}catch(t){return!1}} 90/** 91 * @license 92 * Copyright Google LLC All Rights Reserved. 93 * 94 * Use of this source code is governed by an MIT-style license that can be 95 * found in the LICENSE file at https://angular.io/license 96 */ 97Zone.__load_patch("legacy",(t=>{const e=t[Zone.__symbol__("legacyPatch")];e&&e()})),Zone.__load_patch("queueMicrotask",((t,e,n)=>{n.patchMethod(t,"queueMicrotask",(t=>function(t,n){e.current.scheduleMicroTask("queueMicrotask",n[0])}))})),Zone.__load_patch("timers",(t=>{const e="set",n="clear";Ta(t,e,n,"Timeout"),Ta(t,e,n,"Interval"),Ta(t,e,n,"Immediate")})),Zone.__load_patch("requestAnimationFrame",(t=>{Ta(t,"request","cancel","AnimationFrame"),Ta(t,"mozRequest","mozCancel","AnimationFrame"),Ta(t,"webkitRequest","webkitCancel","AnimationFrame")})),Zone.__load_patch("blocking",((t,e)=>{const n=["alert","prompt","confirm"];for(let r=0;r<n.length;r++){Hi(t,n[r],((n,r,o)=>function(r,i){return e.current.run(n,t,i,o)}))}})),Zone.__load_patch("EventTarget",((t,e,n)=>{!function(t,e){e.patchEventPrototype(t,e)}(t,n),ba(t,n);const r=t.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(t,[r.prototype])})),Zone.__load_patch("MutationObserver",((t,e,n)=>{Zi("MutationObserver"),Zi("WebKitMutationObserver")})),Zone.__load_patch("IntersectionObserver",((t,e,n)=>{Zi("IntersectionObserver")})),Zone.__load_patch("FileReader",((t,e,n)=>{Zi("FileReader")})),Zone.__load_patch("on_property",((t,e,n)=>{Ea(n,t)})),Zone.__load_patch("customElements",((t,e,n)=>{!function(t,e){const{isBrowser:n,isMix:r}=e.getGlobalObjects();if(!n&&!r||!t.customElements||!("customElements"in t))return;e.patchCallbacks(e,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,n)})),Zone.__load_patch("XHR",((t,e)=>{!function(t){const u=t.XMLHttpRequest;if(!u)return;const c=u.prototype;let l=c[mi],p=c[Ei];if(!l){const e=t.XMLHttpRequestEventTarget;if(e){const t=e.prototype;l=t[mi],p=t[Ei]}}const f="readystatechange",d="scheduled";function h(t){const r=t.data,a=r.target;a[i]=!1,a[s]=!1;const u=a[o];l||(l=a[mi],p=a[Ei]),u&&p.call(a,f,u);const c=a[o]=()=>{if(a.readyState===a.DONE)if(!r.aborted&&a[i]&&t.state===d){const n=a[e.__symbol__("loadfalse")];if(0!==a.status&&n&&n.length>0){const o=t.invoke;t.invoke=function(){const n=a[e.__symbol__("loadfalse")];for(let e=0;e<n.length;e++)n[e]===t&&n.splice(e,1);r.aborted||t.state!==d||o.call(t)},n.push(t)}else t.invoke()}else r.aborted||!1!==a[i]||(a[s]=!0)};l.call(a,f,c);return a[n]||(a[n]=t),y.apply(a,r.args),a[i]=!0,t}function _(){}function v(t){const e=t.data;return e.aborted=!0,T.apply(e.target,e.args)}const g=Hi(c,"open",(()=>function(t,e){return t[r]=0==e[2],t[a]=e[1],g.apply(t,e)})),m=wi("fetchTaskAborting"),E=wi("fetchTaskScheduling"),y=Hi(c,"send",(()=>function(t,n){if(!0===e.current[E])return y.apply(t,n);if(t[r])return y.apply(t,n);{const e={target:t,url:t[a],isPeriodic:!1,args:n,aborted:!1},r=Oi("XMLHttpRequest.send",_,e,h,v);t&&!0===t[s]&&!e.aborted&&r.state===d&&r.invoke()}})),T=Hi(c,"abort",(()=>function(t,r){const o=t[n];if(o&&"string"==typeof o.type){if(null==o.cancelFn||o.data&&o.data.aborted)return;o.zone.cancelTask(o)}else if(!0===e.current[m])return T.apply(t,r)}
97))}(t);const n=wi("xhrTask"),r=wi("xhrSync"),o=wi("xhrListener"),i=wi("xhrScheduled"),a=wi("xhrURL"),s=wi("xhrErrorBeforeScheduled")})),Zone.__load_patch("geolocation",(t=>{t.navigator&&t.navigator.geolocation&&function(t,e){const n=t.constructor.name;for(let r=0;r<e.length;r++){const o=e[r],i=t[o];if(i){if(!Ni(pi(t,o)))continue;t[o]=(t=>{const e=function(){return t.apply(this,ki(arguments,n+"."+o))};return Gi(e,t),e})(i)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])})),Zone.__load_patch("PromiseRejectionEvent",((t,e)=>{function n(e){return function(n){oa(t,e).forEach((r=>{const o=t.PromiseRejectionEvent;if(o){const t=new o(e,{promise:n.promise,reason:n.rejection});r.invoke(t)}}))}}t.PromiseRejectionEvent&&(e[wi("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),e[wi("rejectionHandledHandler")]=n("rejectionhandled"))}));const Ra=t=>Sa(t,"null"),Aa=t=>Sa(t,"string"),La=t=>Sa(t,"number")&&!isNaN(t)||Sa(t,"bigint"),Ca=t=>!Ra(t)&&Sa(t,"object"),Pa=t=>Sa(t,"function"),ka=t=>Oa(t,"Array"),Na=!Sa(Event,"undefined");const Ia=t=>Na&&wa(t,Event),xa="undefined"!=typeof Error,Da=t=>xa&&wa(t,Error),Ma=t=>Oa(t,"ErrorEvent"),Ua=t=>Oa(t,"DOMError"),ja=t=>Oa(t,"DOMException");function Ba(t,e){if(t===e)return!0;if(Sa(t,"number")&&isNaN(t))return Sa(e,"number")&&isNaN(e);const n=ka(t),r=ka(e);if(n!==r)return!1;if(n&&r){const n=t.length;if(n!==e.length)return!1;for(let r=n;0!=r--;)if(!Ba(t[r],e[r]))return!1;return!0}const o=Ca(t),i=Ca(e);if(o!==i)return!1;if(t&&e&&o&&i){const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let t of n)if(!r.includes(t))return!1;for(let r of n)if(!Ba(t[r],e[r]))return!1;return!0}return!1}function za(){return(new Date).toISOString()}var Fa;!function(t){t.TRACE="trace",t.DEBUG="debug",t.INFO="info",t.LOG="log",t.WARN="warn",t.ERROR="error"}(Fa||(Fa={}));const Za=Fa.LOG,Ha=[Fa.TRACE,Fa.DEBUG,Fa.INFO,Fa.LOG,Fa.WARN,Fa.ERROR];function Va(){}const Ga="abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789";function Xa(t=10){return Array.from(Array(t)).map((()=>Ga[Math.floor(Math.random()*Ga.length)])).join("")}var qa={exports:{}},Wa={exports:{}};Wa.exports=function(t,e){var n,r,o,i,a,s,u,c;for(n=3&t.length,r=t.length-n,o=e,a=3432918353,s=461845907,c=0;c<r;)u=255&t.charCodeAt(c)|(255&t.charCodeAt(++c))<<8|(255&t.charCodeAt(++c))<<16|(255&t.charCodeAt(++c))<<24,++c,o=27492+(65535&(i=5*(65535&(o=(o^=u=(65535&(u=(u=(65535&u)*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295)<<13|o>>>19))+((5*(o>>>16)&65535)<<16)&4294967295))+((58964+(i>>>16)&65535)<<16);switch(u=0,n){case 3:u^=(255&t.charCodeAt(c+2))<<16;case 2:u^=(255&t.charCodeAt(c+1))<<8;case 1:o^=u=(65535&(u=(u=(65535&(u^=255&t.charCodeAt(c)))*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295}return o^=t.length,o=2246822507*(65535&(o^=o>>>16))+((2246822507*(o>>>16)&65535)<<16)&4294967295,o=3266489909*(65535&(o^=o>>>13))+((3266489909*(o>>>16)&65535)<<16)&4294967295,(o^=o>>>16)>>>0};var $a=Wa.exports,Ka={exports:{}};!function(t){t.exports=function(t,e){for(var n,r=t.length,o=e^r,i=0;r>=4;)n=1540483477*(65535&(n=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+((1540483477*(n>>>16)&65535)<<16),o=1540483477*(65535&o)+((1540483477*(o>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++i;switch(r){case 3:o^=(255&t.charCodeAt(i+2))<<16;case 2:o^=(255&t.charCodeAt(i+1))<<8;case 1:o=1540483477*(65535&(o^=255&t.charCodeAt(i)))+((1540483477*(o>>>16)&65535)<<16)}return o=1540483477*(65535&(o^=o>>>13))+((1540483477*(o>>>16)&65535)<<16),(o^=o>>>15)>>>0}}(Ka);var Ya=$a,Qa=Ka.exports;qa.exports=Ya;var Ja=qa.exports.murmur3=Ya;qa.exports.murmur2=Qa;class ts{constructor(t,e){var n,r;this.signalBuffer=[],this.itemLimit=null!==(n=null==e?void 0:e.itemLimit)&&void 0!==n?n:50,this.sendTimeout=null!==(r=null==e?void 0:e.sendTimeout)&&void 0!==r?r:250,this.paused=(null==e?void 0:e.paused)||!1,this.sendFn=t,this.flushInterval=-1,this.paused||this.start(),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&this.flush()}))}addItem(t){this.paused||(this.signalBuffer.push(t),this.signalBuffer.length>=this.itemLimit&&this.flush())}start(){this.paused=!1,this.sendTimeout>0&&(this.flushInterval=window.setInterval((()=>this.flush()),this.sendTimeout))}pause(){this.paused=!0,clearInterval(this.flushInterval)}groupItems(t){const e=new Map;return t.forEach((t=>{const n=Ja(JSON.stringify(t.meta));let r=e.get(n);r=void 0===r?[t]:[...r,t],e.set(n,r)})),Array.from(e.values())}flush(){if(this.paused||0===this.signalBuffer.length)return;this.groupItems(this.signalBuffer).forEach(this.sendFn),this.signalBuffer=[]}}var es;!function(t){t.EXCEPTION="exception",t.LOG="log",t.MEASUREMENT="measurement",t.TRACE="trace",t.EVENT="event"}(es||(es={}));const ns={[es.EXCEPTION]:"exceptions",[es.LOG]:"logs",[es.MEASUREMENT]:"measurements",[es.TRACE]:"traces",[es.EVENT]:"events"};function rs(t){return e=>{if(e.type===es.EXCEPTION&&e.payload){const n=e.payload,r=`${n.type}: ${n.value}`;if(function(t,e){return t.some((t=>Aa(t)?e.includes(t):!!e.match(t)))}(t,r))return null}return e}}var os;!function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARN=2]="WARN",t[t.INFO=3]="INFO",t[t.VERBOSE=4]="VERBOSE"}(os||(os={}));const is={debug:Va,error:Va,info:Va,prefix:"Faro",warn:Va},as=os.ERROR,ss=Object.assign({},console);let us=ss;function cs(t){var e;return us=null!==(e=t.unpatchedConsole)&&void 0!==e?e:us,us}function ls(t=ss,e=as){const n=is;return e>os.OFF&&(n.error=e>=os.ERROR?function(...e){t.error(`${n.prefix}\n`,...e)}:Va,n.warn=e>=os.WARN?function(...e){t.warn(`${n.prefix}\n`,...e)}:Va,n.info=e>=os.INFO?function(...e){t.info(`${n.prefix}\n`,...e)}:Va,n.debug=e>=os.VERBOSE?function(...e){t.debug(`${n.prefix}\n`,...e)}:Va),n}let ps=is;function fs(t,e){return ps=ls(t,e.internalLoggerLevel),ps}class ds{constructor(){this.unpatchedConsole=ss,this.internalLogger=is,this.config={},this.metas={}}logDebug(...t){this.internalLogger.debug(`${this.name}\n`,...t)}logInfo(...t){this.internalLogger.info(`${this.name}\n`,...t)}
97logWarn(...t){this.internalLogger.warn(`${this.name}\n`,...t)}logError(...t){this.internalLogger.error(`${this.name}\n`,...t)}}class hs extends ds{isBatched(){return!1}getIgnoreUrls(){return[]}}function _s(t,e){var n,r;if(void 0===e)return t;if(void 0===t)return{resourceSpans:e};const o=null===(n=t.resourceSpans)||void 0===n?void 0:n[0];if(void 0===o)return t;const i=(null==o?void 0:o.scopeSpans)||[],a=(null===(r=null==e?void 0:e[0])||void 0===r?void 0:r.scopeSpans)||[];return Object.assign(Object.assign({},t),{resourceSpans:[Object.assign(Object.assign({},o),{scopeSpans:[...i,...a]})]})}const vs="Error";let gs;function ms(t,e,n,r,o){e.debug("Initializing API");const i=function(t,e,n,r,o){let i;return e.debug("Initializing traces API"),{getOTEL:()=>i,getTraceContext:()=>{const t=null==i?void 0:i.trace.getSpanContext(i.context.active());return t?{trace_id:t.traceId,span_id:t.spanId}:void 0},initOTEL:(t,n)=>{e.debug("Initializing OpenTelemetry"),i={trace:t,context:n}},isOTELInitialized:()=>!!i,pushTraces:t=>{try{const n={type:es.TRACE,payload:t,meta:r.value};e.debug("Pushing trace\n",n),o.execute(n)}catch(t){e.error("Error pushing trace\n",t)}}}}(0,e,0,r,o);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},i),function(t,e,n,r,o,i){var a;e.debug("Initializing exceptions API");let s=null;gs=null!==(a=n.parseStacktrace)&&void 0!==a?a:gs;const u=t=>{e.debug("Changing stacktrace parser"),gs=null!=t?t:gs};return u(n.parseStacktrace),{changeStacktraceParser:u,getStacktraceParser:()=>gs,pushError:(t,{skipDedupe:a,stackFrames:u,type:c,context:l}={})=>{c=c||t.name||vs;const p={meta:r.value,payload:{type:c,value:t.message,timestamp:za(),trace:i.getTraceContext(),context:null!=l?l:{}},type:es.EXCEPTION};(null==(u=null!=u?u:t.stack?null==gs?void 0:gs(t).frames:void 0)?void 0:u.length)&&(p.payload.stacktrace={frames:u});const f={type:p.payload.type,value:p.payload.value,stackTrace:p.payload.stacktrace,context:p.payload.context};a||!n.dedupe||Ra(s)||!Ba(f,s)?(s=f,e.debug("Pushing exception\n",p),o.execute(p)):e.debug("Skipping error push because it is the same as the last one\n",p.payload)}}}(0,e,n,r,o,i)),function(t,e,n,r,o){let i,a,s;e.debug("Initializing meta API");const u=t=>{a&&r.remove(a),a={user:t},r.add(a)},c=t=>{i&&r.remove(i),i={session:t},r.add(i)};return{setUser:u,resetUser:u,setSession:c,resetSession:c,getSession:()=>r.value.session,setView:t=>{s&&r.remove(s),s={view:t},r.add(s)},getView:()=>r.value.view}}(0,e,0,r)),function(t,e,n,r,o,i){e.debug("Initializing logs API");let a=null;return{pushLog:(t,{context:s,level:u,skipDedupe:c}={})=>{try{const l={type:es.LOG,payload:{message:t.map((t=>{try{return String(t)}catch(t){return""}})).join(" "),level:null!=u?u:Za,context:null!=s?s:{},timestamp:za(),trace:i.getTraceContext()},meta:r.value},p={message:l.payload.message,level:l.payload.level,context:l.payload.context};if(!c&&n.dedupe&&!Ra(a)&&Ba(p,a))return void e.debug("Skipping log push because it is the same as the last one\n",l.payload);a=p,e.debug("Pushing log\n",l),o.execute(l)}catch(t){e.error("Error pushing log\n",t)}}}}(0,e,n,r,o,i)),function(t,e,n,r,o,i){e.debug("Initializing measurements API");let a=null;return{pushMeasurement:(t,{skipDedupe:s,context:u}={})=>{var c;try{const l={type:es.MEASUREMENT,payload:Object.assign(Object.assign({},t),{trace:i.getTraceContext(),timestamp:null!==(c=t.timestamp)&&void 0!==c?c:za(),context:null!=u?u:{}}),meta:r.value},p={type:l.payload.type,values:l.payload.values,context:l.payload.context};if(!s&&n.dedupe&&!Ra(a)&&Ba(p,a))return void e.debug("Skipping measurement push because it is the same as the last one\n",l.payload);a=p,e.debug("Pushing measurement\n",l),o.execute(l)}catch(t){e.error("Error pushing measurement\n",t)}}}}(0,e,n,r,o,i)),function(t,e,n,r,o,i){let a=null;return{pushEvent:(t,s,u,{skipDedupe:c}={})=>{try{const l={meta:r.value,payload:{name:t,domain:null!=u?u:n.eventDomain,attributes:s,timestamp:za(),trace:i.getTraceContext()},type:es.EVENT},p={name:l.payload.name,attributes:l.payload.attributes,domain:l.payload.domain};if(!c&&n.dedupe&&!Ra(a)&&Ba(p,a))return void e.debug("Skipping event push because it is the same as the last one\n",l.payload);a=p,e.debug("Pushing event\n",l),o.execute(l)}catch(t){e.error("Error pushing event",t)}}}}(0,e,n,r,o,i))}const Es="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0;class ys extends ds{constructor(){super(...arguments),this.api={},this.transports={}}}const Ts="1.2.1";const bs="_faroInternal";let Ss={};function Os(t,e,n,r,o,i,a){return e.debug("Initializing Faro"),Ss={api:i,config:n,instrumentations:a,internalLogger:e,metas:r,pause:o.pause,transports:o,unpatchedConsole:t,unpause:o.unpause},function(t){t.config.isolate?t.internalLogger.debug("Skipping registering internal Faro instance on global object"):(t.internalLogger.debug("Registering internal Faro instance on global object"),Object.defineProperty(Es,bs,{configurable:!1,enumerable:!1,writable:!1,value:t}))}(Ss),function(t){if(t.config.preventGlobalExposure)t.internalLogger.debug("Skipping registering public Faro
97instance in the global scope");else{if(t.internalLogger.debug(`Registering public faro reference in the global scope using "${t.config.globalObjectKey}" key`),t.config.globalObjectKey in Es)return void t.internalLogger.warn(`Skipping global registration due to key "${t.config.globalObjectKey}" being used already. Please set "globalObjectKey" to something else or set "preventGlobalExposure" to "true"`);Object.defineProperty(Es,t.config.globalObjectKey,{configurable:!1,writable:!1,value:t})}}(Ss),Ss}function ws(t){const e=cs(t),n=fs(e,t);if(bs in Es&&!t.isolate)return void n.error('Faro is already registered. Either add instrumentations, transports etc. to the global faro instance or use the "isolate" property');n.debug("Initializing");const r=function(t,e,n){let r=[],o=[];const i=()=>r.reduce(((t,e)=>Object.assign(t,Pa(e)?e():e)),{}),a=()=>{if(o.length){const t=i();o.forEach((e=>e(t)))}};return{add:(...t)=>{e.debug("Adding metas\n",t),r.push(...t),a()},remove:(...t)=>{e.debug("Removing metas\n",t),r=r.filter((e=>!t.includes(e))),a()},addListener:t=>{e.debug("Adding metas listener\n",t),o.push(t)},removeListener:t=>{e.debug("Removing metas listener\n",t),o=o.filter((e=>e!==t))},get value(){return i()}}}(0,n),o=function(t,e,n,r){var o;e.debug("Initializing transports");const i=[];let a=n.paused,s=[];const u=t=>{let e=t;for(const t of s){const n=e.map(t).filter(Boolean);if(0===n.length)return[];e=n}return e},c=t=>{const n=u(t);if(0!==n.length)for(const t of i)e.debug(`Transporting item using ${t.name}\n`,n),t.isBatched()&&t.send(n)},l=t=>{var r;const[o]=u([t]);if(void 0!==o)for(const t of i)e.debug(`Transporting item using ${t.name}\n`,o),t.isBatched()?(null===(r=n.batching)||void 0===r?void 0:r.enabled)||t.send([o]):t.send(o)};let p;return(null===(o=n.batching)||void 0===o?void 0:o.enabled)&&(p=new ts(c,{sendTimeout:n.batching.sendTimeout,itemLimit:n.batching.itemLimit,paused:a})),{add:(...o)=>{e.debug("Adding transports"),o.forEach((o=>{e.debug(`Adding "${o.name}" transport`),i.some((t=>t===o))?e.warn(`Transport ${o.name}
97 is already added`):(o.unpatchedConsole=t,o.internalLogger=e,o.config=n,o.metas=r,i.push(o))}))},addBeforeSendHooks:(...t)=>{e.debug("Adding beforeSendHooks\n",s),t.forEach((t=>{t&&s.push(t)}))},addIgnoreErrorsPatterns:(...t)=>{e.debug("Adding ignoreErrorsPatterns\n",t),t.forEach((t=>{t&&s.push(rs(t))}))},getBeforeSendHooks:()=>[...s],execute:t=>{var e;a||((null===(e=n.batching)||void 0===e?void 0:e.enabled)?(null==p||p.addItem(t),l(t)):l(t))},isPaused:()=>a,pause:()=>{e.debug("Pausing transports"),null==p||p.pause(),a=!0},remove:(...t)=>{e.debug("Removing transports"),t.forEach((t=>{e.debug(`Removing "${t.name}" transport`);const n=i.indexOf(t);-1!==n?i.splice(n,1):e.warn(`Transport "${t.name}" is not added`)}))},removeBeforeSendHooks:(...t)=>{s.filter((e=>!t.includes(e)))},get transports(){return[...i]},unpause:()=>{e.debug("Unpausing transports"),null==p||p.start(),a=!1}}}(e,n,t,r),i=ms(0,n,t,r,o),a=function(t,e,n,r,o,i){e.debug("Initializing instrumentations");const a=[];return{add:(...s)=>{e.debug("Adding instrumentations"),s.forEach((s=>{e.debug(`Adding "${s.name}" instrumentation`),a.some((t=>t.name===s.name))?e.warn(`Instrumentation ${s.name} is already added`):(s.unpatchedConsole=t,s.internalLogger=e,s.config=n,s.metas=r,s.transports=o,s.api=i,a.push(s),s.initialize())}))},get instrumentations(){return[...a]},remove:(...t)=>{e.debug("Removing instrumentations"),t.forEach((t=>{var n,r;e.debug(`Removing "${t.name}" instrumentation`);const o=a.reduce(((e,n,r)=>null===e&&n.name===t.name?r:null),null);o?(null===(r=(n=a[o]).destroy)||void 0===r||r.call(n),a.splice(o,1)):e.w
97arn(`Instrumentation "${t.name}" is not added`)}))}}}(e,n,t,r,o,i),s=Os(e,n,t,r,o,i,a);return function(t){var e;const n={sdk:{name:"@grafana/faro-core",version:Ts,integrations:t.config.instrumentations.map((({name:t,version:e})=>({name:t,version:e})))}};t.config.session&&t.api.setSession(t.config.session),t.config.app&&(n.app=t.config.app),t.config.user&&(n.user=t.config.user),t.config.view&&(n.view=t.config.view),t.metas.add(n,...null!==(e=t.config.metas)&&void 0!==e?e:[])}(s),function(t){t.transports.add(...t.config.transports),t.transports.addBeforeSendHooks(t.config.beforeSend),t.transports.addIgnoreErrorsPatterns(t.config.ignoreErrors)}(s),function(t){t.instrumentations.add(...t.config.instrumentations)}(s),s}const Rs="faro",As={enabled:!0,sendTimeout:250,itemLimit:50},Ls={CLICK:"click",NAVIGATION:"navigation",SESSION_START:"session_start",VIEW_CHANGED:"view_changed"};class Cs extends ys{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-session",this.version=Ts}sendSessionStartEvent(t){const e=t.session;e&&e!==this.notifiedSession&&(this.notifiedSession=e,this.api.pushEvent(Ls.SESSION_START,{},void 0,{skipDedupe:!0}))}initialize(){this.sendSessionStartEvent(this.metas.value),this.metas.addListener(this.sendSessionStartEvent.bind(this))}}class Ps extends ys{constructor(t={}){super(),this.options=t,this.name="@grafana/faro-web-sdk:instrumentation-console",this.version=Ts}initialize(){this.logDebug("Initializing\n",this.options),Ha.filter((t=>{var e;return!(null!==(e=this.options.disabledLevels)&&void 0!==e?e:Ps.defaultDisabledLevels).includes(t)})).forEach((t=>{console[t]=(...e)=>{try{this.api.pushLog(e,{level:t})}catch(t){this.logError(t)}finally{this.unpatchedConsole[t](...e)}}}))}}Ps.defaultDisabledLevels=[Fa.DEBUG,Fa.TRACE,Fa.LOG];const ks="DOMError",Ns="DOMException",Is="Non-Error exception captured with keys:",xs=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,Ds="\n",Ms="eval",Us="?",js="@",Bs=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,zs=/\((\S*)(?::(\d+))(?::(\d+))\)/,Fs="eval",Zs="address at ",Hs=Zs.length,Vs=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Gs=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Xs=" > eval",qs="safari-extension",Ws="safari-web-extension",$s=/Minified React error #\d+;/i;function Ks(t,e,n,r){const o={filename:t||document.location.href,function:e||Us};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}function Ys(t,e){const n=null==t?void 0:t.includes(qs),r=!n&&(null==t?void 0:t.includes(Ws));return n||r?[(null==t?void 0:t.includes(js))?t.split(js)[0]:t,n?`${qs}:${e}`:`${Ws}:${e}`]:[t,e]}function Qs(t){let e=[];t.stacktrace?e=t.stacktrace.split(Ds).filter(((t,e)=>e%2==0)):t.stack&&(e=t.stack.split(Ds));const n=e.reduce(((e,n,r)=>{let o,i,a,s,u;if(o=Bs.exec(n)){if(i=o[1],a=o[2],s=o[3],u=o[4],null==a?void 0:a.startsWith(Fs)){const t=zs.exec(a);t&&(a=t[1],s=t[2],u=t[3])}a=(null==a?void 0:a.startsWith(Zs))?a.substring(Hs):a,[i,a]=Ys(i,a)}else if(o=Vs.exec(n)){if(i=o[1],a=o[3],s=o[4],u=o[5],a&&a.includes(Xs)){const t=Gs.exec(a);t&&(i=i||Ms,a=t[1],s=t[2])}else 0===r&&!u&&La(t.columnNumber)&&(u=String(t.columnNumber+1));[i,a]=Ys(i,a)}return(a||i)&&e.push(Ks(a,i,s?Number(s):void 0,u?Number(u):void 0)),e}),[]);return $s.test(t.message)?n.slice(1):n}function Js(t){return{frames:Qs(t)}}function tu(t){let e,n,r,o,i=[];if(Ma(t)&&t.error)e=t.error.message,n=t.error.name,i=Qs(t.error);else if((r=Ua(t))||ja(t)){const{name:o,message:i}=t;n=null!=o?o:r?ks:Ns,e=i?`${n}: ${i}`:n}else Da(t)?(e=t.message,i=Qs(t)):(Ca(t)||(o=Ia(t)))&&(n=o?t.constructor.name:void 0,e=`${Is} ${Object.keys(t)}`);return[e,n,i]}function eu(t){const e=window.onerror;window.onerror=(...n)=>{try{const[e,r,o,i,a]=n;let s,u,c=[];const l=Aa(e),p=Ks(r,"?",o,i);a||!l?([s,u,c]=tu(null!=a?a:e),0===c.length&&(c=[p])):l&&([s,u]=function(t){var e,n;const r=t.match(xs),o=null!==(e=null==r?void 0:r[1])&&void 0!==e?e:vs;return[null!==(n=null==r?void 0:r[2])&&void 0!==n?n:t,o]}(e),c=[p]),s&&t.pushError(new Error(s),{type:u,stackFrames:c})}finally{null==e||e.apply(window,n)}}}function nu(t){window.addEventListener("unhandledrejection",(e=>{var n,r;let o,i,a=e;a.reason?a=e.reason:(null===(n=e.detail)||void 0===n?void 0:n.reason)&&(a=null===(r=e.detail)||void 0===r?void 0:r.reason);let s=[];(t=>!Ca(t)&&!Pa(t))(a)?(o=`Non-Error promise rejection captured with value: ${String(a)}`,i="UnhandledRejection"):[o,i,s]=tu(a),o&&t.pushError(new Error(o),{type:i,stackFrames:s})}))}class ru extends ys{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-errors",this.version=Ts}initialize(){this.logDebug("Initializing"),eu(this.api),nu(this.api)}}class ou extends ys{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-view",this.version=Ts}sendViewChangedEvent(t){const e=t.view;e&&e!==this.notifiedView&&(this.notifiedView=e,this.api.pushEvent(Ls.VIEW_CHANGED,{},void 0,{skipDedupe:!0}))}initialize(){this.sendViewChangedEvent(this.metas.value),this.metas.addListener(this.sendViewChangedEvent.bind(this))}}var iu,au,su,uu,cu,lu=-1,pu=function(t){addEventListener("pageshow",(function(e){e.persisted&&(lu=e.timeStamp,t(e))}),!0)},fu=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},du=function(){var t=fu();return t&&t.activationStart||0},hu=function(t,e){var n=fu(),r="navigate";return lu>=0?r="back-forward-cache":n&&(r=document.prerendering||du()>0?"prerender":document.wasDiscarded?"restore":n.type.replace(/_/g,"-")),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},_u=function(t,e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver((function(t){Promise.resolve().then((function(){e(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},vu=function(t,e,n,r){var o,i;return function(a){e.value>=0&&(a||r)&&((i=e.value-(o||0))||void 0===o)&&(o=e.value,e.delta=i,e.rating=function(t,e){return t>e[1]?"poor":t>e[0]?"needs-improvement":"good"}(e.value,n),t(e))}},gu=function(t){requestAnimationFrame((function(){return requestAnimationFrame((function(){return t()}))}))}
vendor: 1,721 bytes, line 97
97,mu=function(t){var e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||t(e)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},Eu=function(t){var e=!1;return function(n){e||(t(n),e=!0)}},yu=-1,Tu=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},bu=function(t){"hidden"===document.visibilityState&&yu>-1&&(yu="visibilitychange"===t.type?t.timeStamp:0,Ou())},Su=function(){addEventListener("visibilitychange",bu,!0),addEventListener("prerenderingchange",bu,!0)},Ou=function(){removeEventListener("visibilitychange",bu,!0),removeEventListener("prerenderingchange",bu,!0)},wu=function(){return yu<0&&(yu=Tu(),Su(),pu((function(){setTimeout((function(){yu=Tu(),Su()}),0)}))),{get firstHiddenTime(){return yu}}},Ru=function(t){document.prerendering?addEventListener("prerenderingchange",(function(){return t()}),!0):t()},Au=function(t,e){e=e||{},Ru((function(){var n,r=[1800,3e3],o=wu(),i=hu("FCP"),a=_u("paint",(function(t){t.forEach((function(t){"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<o.firstHiddenTime&&(i.value=Math.max(t.startTime-du(),0),i.entries.push(t),n(!0)))}))}));a&&(n=vu(t,i,r,e.reportAllChanges),pu((function(o){i=hu("FCP"),n=vu(t,i,r,e.reportAllChanges),gu((function(){i.value=performance.now()-o.timeStamp,n(!0)}))})))}))},Lu={passive:!0,capture:!0},Cu=new Date,Pu=function(t,e){iu||(iu=e,au=t,su=new Date,Iu(removeEventListener),ku())},ku=function(){if(au>=0&&au<su-Cu){var t={entryType:"first-input",name:iu.type,target:iu.target,cancelable:iu.cancelable,startTime:iu.timeStamp,processingStart:iu.timeStamp+au};uu.forEach((function(e){e(t)})),uu=[]}},Nu=function(t){if(t.cancelable){var e=(t.timeStamp>
971e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?function(t,e){var n=function(){Pu(t,e),o()},r=function(){o()},o=function(){removeEventListener("pointerup",n,Lu),removeEventListener("pointercancel",r,Lu)};addEventListener("pointerup",n,Lu),addEventListener("pointercancel",r,Lu)}(e,t):Pu(e,t)}},Iu=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach((function(e){return t(e,Nu,Lu)}))},xu=0,Du=1/0,Mu=0,Uu=function(t){t.forEach((function(t){t.interactionId&&(Du=Math.min(Du,t.interactionId),Mu=Math.max(Mu,t.interactionId),xu=Mu?(Mu-Du)/7+1:0)}))},ju=function(){return cu?xu:performance.interactionCount||0},Bu=function(){"interactionCount"in performance||cu||(cu=_u("event",Uu,{type:"event",buffered:!0,durationThreshold:0}))},zu=0,Fu=function(){return ju()-zu},Zu=[],Hu={},Vu=function(t){var e=Zu[Zu.length-1],n=Hu[t.interactionId];if(n||Zu.length<10||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{var r={id:t.interactionId,latency:t.duration,entries:[t]};Hu[r.id]=r,Zu.push(r)}Zu.sort((function(t,e){return e.latency-t.latency})),Zu.splice(10).forEach((function(t){delete Hu[t.id]}))}},Gu={},Xu=function t(e){document.prerendering?Ru((function(){return t(e)})):"complete"!==document.readyState?addEventListener("load",(function(){return t(e)}),!0):setTimeout(e,0)};class qu extends ys{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-web-vitals",this.version=Ts}initialize(){this.logDebug("Initializing"),Object.entries(qu.mapping).forEach((([t,e])=>{e((e=>{this.api.pushMeasurement({type:"web-vitals",values:{[t]:e.value}})}))}))}}function Wu(t={}){const e=[new ru,new qu,new Cs,new ou];return!1!==t.captureConsole&&e.push(new Ps({disabledLevels:t.captureConsoleDisabledLevels})),e}qu.mapping={cls:function(t,e){e=e||{},Au(Eu((function(){var n,r=[.1,.25],o=hu("CLS",0),i=0,a=[],s=function(t){t.forEach((function(t){if(!t.hadRecentInput){var e=a[0],n=a[a.length-1];i&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(i+=t.value,a.push(t)):(i=t.value,a=[t])}})),i>o.value&&(o.value=i,o.entries=a,n())},u=_u("layout-shift",s);u&&(n=vu(t,o,r,e.reportAllChanges),mu((function(){s(u.takeRecords()),n(!0)})),pu((function(){i=0,o=hu("CLS",0),n=vu(t,o,r,e.reportAllChanges),gu((function(){return n()}))})),setTimeout(n,0))})))},fcp:Au,fid:function(t,e){e=e||{},Ru((function(){var n,r=[100,300],o=wu(),i=hu("FID"),a=function(t){t.startTime<o.firstHiddenTime&&(i.value=t.processingStart-t.startTime,i.entries.push(t),n(!0))},s=function(t){t.forEach(a)},u=_u("first-input",s);n=vu(t,i,r,e.reportAllChanges),u&&mu(Eu((function(){s(u.takeRecords()),u.disconnect()}))),u&&pu((function(){var o;i=hu("FID"),n=vu(t,i,r,e.reportAllChanges),uu=[],au=-1,iu=null,Iu(addEventListener),o=a,uu.push(o),ku()}))}))},inp:function(t,e){e=e||{},Ru((function(){var n=[200,500];Bu();var r,o=hu("INP"),i=function(t){t.forEach((function(t){t.interactionId&&Vu(t),"first-input"===t.entryType&&!Zu.some((function(e){return e.entries.some((function(e){return t.duration===e.duration&&t.startTime===e.startTime}))}))&&Vu(t)}));var e,n=(e=Math.min(Zu.length-1,Math.floor(Fu()/50)),Zu[e]);n&&n.latency!==o.value&&(o.value=n.latency,o.entries=n.entries,r())},a=_u("event",i,{durationThreshold:e.durationThreshold||40});r=vu(t,o,n,e.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),mu((function(){i(a.takeRecords()),o.value<0&&Fu()>0&&(o.value=0,o.entries=[]),r(!0)})),pu((function(){Zu=[],zu=ju(),o=hu("INP"),r=vu(t,o,n,e.reportAllChanges)})))}))},lcp:function(t,e){e=e||{},Ru((function(){var n,r=[2500,4e3],o=wu(),i=hu("LCP"),a=function(t){var e=t[t.length-1];if(e){var r=Math.max(e.startTime-du(),0);r<o.firstHiddenTime&&(i.value=r,i.entries=[e],n())}},s=_u("largest-contentful-paint",a);if(s){n=vu(t,i,r,e.reportAllChanges);var u=Eu((function(){Gu[i.id]||(a(s.takeRecords()),s.disconnect(),Gu[i.id]=!0,n(!0))}));["keydown","click"].forEach((function(t){addEventListener(t,u,!0)})),mu(u),pu((function(o){i=hu("LCP"),n=vu(t,i,r,e.reportAllChanges),gu((function(){i.value=performance.now()-o.timeStamp,Gu[i.id]=!0,n(!0)}))}))}}))},ttfb:function(t,e){e=e||{};var n=[800,1800],r=hu("TTFB"),o=vu(t,r,n,e.reportAllChanges);Xu((function(){var i=fu();if(i){var a=i.responseStart;if(a<=0||a>performance.now())return;r.value=Math.max(a-du(),0),r.entries=[i],o(!0),pu((function(){r=hu("TTFB",0),(o=vu(t,r,n,e.reportAllChanges))(!0)}))}}))}};const $u="browser";var Ku={exports:{}};!function(t,e){!function(n,r){var o="function",i="undefined",a="object",s="string",u="model",c="name",l="type",p="vendor",f="version",d="architecture",h="console",_="mobile",v="tablet",g="smarttv",m="wearable",E="embedded",y="Amazon",T="Apple",b="ASUS",S="BlackBerry",O="Browser",w="Chrome",R="Firefox",A="Google",L="Huawei",C="LG",P="Microsoft",k="Motorola",N="Opera",I="Samsung",x="Sharp",D="Sony",M="Xiaomi",U="Zebra",j="Facebook",B=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},z=function(t,e){return typeof t===s&&-1!==F(e).indexOf(F(t))},F=function(t){return t.toLowerCase()},Z=function(t,e){if(typeof t===s)return t=t.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof e===i?t:t.substring(0,350)},H=function(t,e){for(var n,i,s,u,c,l,p=0;p<e.length&&!c;){var f=e[p],d=e[p+1];for(n=i=0;n<f.length&&!c;)if(c=f[n++].exec(t))for(s=0;s<d.length;s++)l=c[++i],typeof(u=d[s])===a&&u.length>0?2===u.length?typeof u[1]==o?this[u[0]]=u[1].call(this,l):this[u[0]]=u[1]:3===u.length?typeof u[1]!==o||u[1].exec&&u[1].test?this[u[0]]=l?l.replace(u[1],u[2]):r:this[u[0]]=l?u[1].call(this,l,u[2]):r:4===u.length&&(this[u[0]]=l?u[3].call(this,l.replace(u[1],u[2])):r):this[u]=l||r;p+=2}},V=function(t,e){for(var n in e)if(typeof e[n]===a&&e[n].length>0){for(var o=0;o<e[n].length;o++)if(z(e[n][o],t))return"?"===n?r:n}else if(z(e[n],t))return"?"===n?r:n;return t},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,f],[/opios[\/ ]+([\w\.]+)/i],[f,[c,N+" Mini"]],[/\bopr\/([\w\.]+)/i],[f,[c,N]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[c,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[c,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[f,[c,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[f,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[c,"IE"]],[/yabrowser\/([\w\.]+)/i],[f,[c,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)
vendor: 12,295 bytes, line 97
97/,"$1 Secure "+O],f],[/\bfocus\/([\w\.]+)/i],[f,[c,R+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[c,N+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[c,N+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[c,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[f,[c,R]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+O]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+O],f],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[c,f],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,j],f],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[c,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[c,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[c,w+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,w+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[c,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[f,V,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[c,R+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[c,f]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[d,"amd64"]],[/(ia32(?=;))/i],[[d,F]],[/((?:i[346]|x)86)[;\)]/i],[[d,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[d,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[d,"armhf"]],[/windows (ce|mobile); ppc;/i],[[d,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[d,/ower/,"",F]],[/(sun4\w)[;\)]/i],[[d,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[d,F]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[p,I],[l,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[p,I],[l,_]],[/\((ip(?:hone|od)[\w ]*);/i],[u,[p,T],[l,_]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[p,T],[l,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[p,L],[l,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[p,L],[l,_]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[p,M],[l,_]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[p,M],[l,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[p,"OPPO"],[l,_]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[p,"Vivo"],[l,_]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[p,"Realme"],[l,_]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[p,k],[l,_]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[p,k],[l,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[p,C],[l,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[p,C],[l,_]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[p,"Lenovo"],[l,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[p,"Nokia"],[l,_]],[/(pixel c)\b/i],[u,[p,A],[l,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[p,A],[l,_]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[p,D],[l,_]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[p,D],[l,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[p,"OnePlus"],[l,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[p,y],[l,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[p,y],[l,_]],[/(playbook);[-\w\),; ]+(rim)/i],[u,p,[l,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[p,S],[l,_]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[p,b],[l,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[p,b],[l,_]],[/(nexus 9)/i],[u,[p,"HTC"],[l,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[u,/_/g," "],[l,_]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[p,"Acer"],[l,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[p,"Meizu"],[l,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[p,x],[l,_]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,u,[l,_]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,u,[l,v]],[/(surface duo)/i],[u,[p,P],[l,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[p,"Fairphone"],[l,_]],[/(u304aa)/i],[u,[p,"AT&T"],[l,_]],[/\bsie-(\w*)/i],[u,[p,"Siemens"],[l,_]],[/\b(rct\w+) b/i],[u,[p,"RCA"],[l,v]],[/\b(venue[\d ]{2,7}) b/i],[u,[p,"Dell"],[l,v]],[/\b(q(?:mv|ta)\w+) b/i],[u,[p,"Verizon"],[l,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[p,"Barnes & Noble"],[l,v]],[/\b(tm\d{3}\w+) b/i],[u,[p,"NuVision"],[l,v]],[/\b(k88) b/i],[u,[p,"ZTE"],[l,v]],[/\b(nx\d{3}j) b/i],[u,[p,"ZTE"],[l,_]],[/\b(gen\d{3}) b.+49h/i],[u,[p,"Swiss"],[l,_]],[/\b(zur\d{3}) b/i],[u,[p,"Swiss"],[l,v]],[/\b((zeki)?tb.*\b) b/i],[u,[p,"Zeki"],[l,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],u,[l,v]],[/\b(ns-?\w{0,9}) b/i],[u,[p,"Insignia"],[l,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[p,"NextBook"],[l,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],u,[l,_]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],u,[l,_]],[/\b(ph-1) /i],[u,[p,"Essential"],[l,_]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[p,"Envizen"],[l,v]],[/\b(trio[-\w\. ]+) b/i],[u,[p,"MachSpeed"],[l,v]],[/\btu_(1491) b/i],[u,[p,"Rotor"],[l,v]],[/(shield[\w ]+) b/i],[u,[p,"Nvidia"],[l,v]],[/(sprint) (\w+)/i],[p,u,[l,_]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[p,P],[l,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[p,U],[l,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[p,U],[l,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,u,[l,h]],[/droid.+; (shield) bui/i],[u,[p,"Nvidia"],[l,h]],[/(playstation [345portablevi]+)/i],[u,[p,D],[l,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[p,P],[l,h]],[/smart-tv.+(samsung)/i],[p,[l,g]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[p,I],[l,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,C],[l,g]],[/(apple) ?tv/i],[p,[u,T+" TV"],[l,g]],[/crkey/i],[[u,w+"cast"],[p,A],[l,g]],[/droid.+aft(\w)( bui|\))/i],[u,[p,y],[l,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[p,x],[l,g]],[/(bravia[\w ]+)( bui|\))/i],[u,[p,D],[l,g]],[/(mitv-\w{5}) bui/i],[u,[p,M],[l,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[p,Z],[u,Z],[l,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,g]],[/((pebble))app/i],[p,u,[l,m]],[/droid.+; (glass) \d/i],[u,[p,A],[l,m]],[/droid.+; (wt63?0{2,3})\)/i],[u,[p,U],[l,m]],[/(quest( 2)?)/i],[u,[p,j],[l,m]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[l,E]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[l,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[l,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[l,_]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[c,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,f],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[c,[f,V,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[c,"Windows"],[f,V,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,"Mac OS"],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,f],[/\(bb(10);/i],[f,[c,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[c,R+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[c,"webOS"]],[/crkey\/([\d\.]+)/i],[f,[c,w+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[c,"Chromium OS"],f],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,f],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[c,f]]},q=function(t,e){if(typeof t===a&&(e=t,t=r),!(this instanceof q))return new q(t,e).getResult();var o=t||(typeof n!==i&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),h=e?function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n}(X,e):X;return this.getBrowser=function(){var t,e={};return e[c]=r,e[f]=r,H.call(e,o,h.browser),e.major=typeof(t=e.version)===s?t.replace(/[^\d\.]/g,"").split(".")[0]:r,e},this.getCPU=function(){var t={};return t[d]=r,H.call(t,o,h.cpu),t},this.getDevice=function(){var t={};return t[p]=r,t[u]=r,t[l]=r,H.call(t,o,h.device),t},this.getEngine=function(){var t={};return t[c]=r,t[f]=r,H.call(t,o,h.engine),t},this.getOS=function(){var t={};return t[c]=r,t[f]=r,H.call(t,o,h.os),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(t){return o=typeof t===s&&t.length>350?Z(t,350):t,this},this.setUA(o),this};
97q.VERSION="1.0.32",q.BROWSER=B([c,f,"major"]),q.CPU=B([d]),q.DEVICE=B([u,p,l,h,_,g,v,m,E]),q.ENGINE=q.OS=B([c,f]),t.exports&&(e=t.exports=q),e.UAParser=q;var W=typeof n!==i&&(n.jQuery||n.Zepto);if(W&&!W.ua){var $=new q;W.ua=$.getResult(),W.ua.get=function(){return $.getUA()},W.ua.set=function(t){$.setUA(t);var e=$.getResult();for(var n in e)W.ua[n]=e[n]}}}("object"==typeof window?window:Dr)}(Ku,Ku.exports);var Yu=Ku.exports;const Qu=[()=>{const t=new Yu.UAParser,{name:e,version:n}=t.getBrowser(),{name:r,version:o}=t.getOS(),i=t.getUA(),a=navigator.language,s=navigator.userAgent.includes("Mobi"),u=function(){if(!e||!n)return;if("userAgentData"in navigator)return navigator.userAgentData.brands;return}(),c="unknown";return{browser:{name:null!=e?e:c,version:null!=n?n:c,os:`${null!=r?r:c} ${null!=o?o:c}`,userAgent:null!=i?i:c,language:null!=a?a:c,mobile:s,brands:null!=u?u:c}}},()=>({page:{url:location.href}})];function Ju(t){return{id:Xa(),attributes:t}}const tc={name:"default"};var ec=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):function(t){return t instanceof n?t:new n((function(e){e(t)}))}(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))},nc=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};class rc extends hs{constructor(t){var e,n,r,o;super(),this.options=t,this.name="@grafana/faro-web-sdk:transport-fetch",this.version=Ts,this.disabledUntil=new Date,this.rateLimitBackoffMs=null!==(e=t.defaultRateLimitBackoffMs)&&void 0!==e?e:5e3,this.getNow=null!==(n=t.getNow)&&void 0!==n?n:()=>Date.now(),this.promiseBuffer=function(t){const{size:e,concurrency:n}=t,r=[];let o=0;const i=()=>{if(o<n&&r.length){const{producer:t,resolve:e,reject:n}=r.shift();o++,t().then((t=>{o--,i(),e(t)}),(t=>{o--,i(),n(t)}))}};return{add:t=>{if(r.length+o>=e)throw new Error("Task buffer full");return new Promise(((e,n)=>{r.push({producer:t,resolve:e,reject:n}),i()}))}}}({size:null!==(r=t.bufferSize)&&void 0!==r?r:30,concurrency:null!==(o=t.concurrency)&&void 0!==o?o:5})}send(t){return ec(this,void 0,void 0,(function*(){try{if(this.disabledUntil>new Date(this.getNow()))return this.logWarn(`Dropping transport item due to too many requests. Backoff until ${this.disabledUntil}`),Promise.resolve();yield this.promiseBuffer.add((()=>{const e=JSON.stringify(function(t){let e={meta:{}};return void 0!==t[0]&&(e.meta=t[0].meta),t.forEach((t=>{switch(t.type){case es.LOG:case es.EVENT:case es.EXCEPTION:case es.MEASUREMENT:const n=ns[t.type],r=e[n];e=Object.assign(Object.assign({},e),{[n]:void 0===r?[t.payload]:[...r,t.payload]});break;case es.TRACE:e=Object.assign(Object.assign({},e),{traces:_s(e.traces,t.payload.resourceSpans)})}})),e}(t)),{url:n,requestOptions:r,apiKey:o}=this.options,i=null!=r?r:{},{headers:a}=i,s=nc(i,["headers"]);return fetch(n,Object.assign({method:"POST",headers:Object.assign(Object.assign({"Content-Type":"application/json"},null!=a?a:{}),o?{"x-api-key":o}:{}),body:e,keepalive:!0},null!=s?s:{})).then((t=>(429===t.status&&(this.disabledUntil=this.getRetryAfterDate(t),this.logWarn(`Too many requests, backing off until ${this.disabledUntil}`)),t.text().catch(Va),t))).catch((t=>{this.logError("Failed sending payload to the receiver\n",JSON.parse(e),t)}))}))}catch(t){this.logError(t)}}))}getIgnoreUrls(){return[this.options.url]}isBatched(){return!0}getRetryAfterDate(t){const e=this.getNow(),n=t.headers.get("Retry-After");if(n){const t=Number(n);if(!isNaN(t))return new Date(1e3*t+e);const r=Date.parse(n);if(!isNaN(r))return new Date(r)}return new Date(e+this.rateLimitBackoffMs)}}function oc(t){const e=function(t){var e,n,r,o,i,a,s,u,c,l,p;const f=[],d=ls(t.unpatchedConsole,t.internalLoggerLevel);return t.transports?((t.url||t.apiKey)&&d.error('if "transports" is defined, "url" and "apiKey" should not be defined'),f.push(...t.transports)):t.url?f.push(new rc({url:t.url,apiKey:t.apiKey})):d.error('either "url" or "transports" must be defined'),{app:t.app,batching:Object.assign(Object.assign({},As),t.batching),dedupe:null===(e=t.dedupe)||void 0===e||e,globalObjectKey:t.globalObjectKey||Rs,instrumentations:null!==(n=t.instrumentations)&&void 0!==n?n:Wu(),internalLoggerLevel:null!==(r=t.internalLoggerLevel)&&void 0!==r?r:as,isolate:null!==(o=t.isolate)&&void 0!==o&&o,metas:null!==(i=t.metas)&&void 0!==i?i:Qu,parseStacktrace:Js,paused:null!==(a=t.paused)&&void 0!==a&&a,preventGlobalExposure:null!==(s=t.preventGlobalExposure)&&void 0!==s&&s,transports:f,unpatchedConsole:null!==(u=t.unpatchedConsole)&&void 0!==u?u:ss,beforeSend:t.beforeSend,eventDomain:null!==(c=t.eventDomain)&&void 0!==c?c:$u,ignoreErrors:t.ignoreErrors,session:null!==(l=t.session)&&void 0!==l?l:Ju(),user:t.user,view:null!==(p=t.view)&&void 0!==p?p:tc}}(t);if(e)return ws(e)}class ic extends ys{constructor(t={}){super(),this.options=t,this.name="@grafana/faro-web-tracing",this.version=Ts}initialize(){var t,e,n,r,o;const i=this.options,a={};this.config.app.name&&(a[te]=this.config.app.name),this.config.app.version&&(a[ee]=this.config.app.version),Object.assign(a,i.resourceAttributes);const s=Er.default().merge(new Er(a)),u=new Cr({resource:s});u.addSpanProcessor(null!==(t=i.spanProcessor)&&void 0!==t?t:new Gn(new cr(new Vn({api:this.api}),{scheduledDelayMillis:ic.SCHEDULED_BATCH_DELAY_MS,maxExportBatchSize:30}),this.metas)),u.register({propagator:null!==(e=i.propagator)&&void 0!==e?e:new un,contextManager:null!==(n=i.contextManager)&&void 0!==n?n:new li}),xr({instrumentations:null!==(r=i.instrumentations)&&void 0!==r?r:ui({ignoreUrls:this.getIgnoreUrls(),propagateTraceHeaderCorsUrls:null===(o=this.options.instrumentationOptions)||void 0===o?void 0:o.propagateTraceHeaderCorsUrls})}),this.api.initOTEL(Gt,Lt)}getIgnoreUrls(){return this.transports.transports.flatMap((t=>t.getIgnoreUrls()))}}ic.SCHEDULED_BATCH_DELAY_MS=1e3;class ac{constructor(t){if(void 0!==window.ltvApm)return console.log("LTV APM already detected skipping initialization..."),this._=window.ltvApm._,null;t=t||{},this._={},this._.config=t,this._.config.url=t.url,void 0===this._.config.url&&(this._.config.url=window.APM_URL),void 0===this._.config.url&&(this._.config.url="https://gap01.ltvops.com/collect"),-1!==this._.config.url.indexOf("_")&&(this._.config.url=this._.config.url.replace(/_/g,"")),this._.config.ignoreUrls=t.ignoreUrls||window.APM_IGNORE_URLS||[],this._.config.name=t.name||window.APM_NAME||"not-provided",this._.config.version=t.version||window.APM_VERSION||"0.0.0",this._.config.key=t.key||window.APM_KEY||"not-provided",this._.config.enabled=t.enabled||window.APM_ENABLED||true,this._.config.type=t.type||window.APM_TYPE||"fetch",this._.resourceAttributes={[te]:this._.config.name,[ee]:this._.config.version},""!==this._.config.key&&"not-provided"!==this._.config.key||console.error("APM_KEY must be provided"),window.ltvApm=this}get enabled(){return this._.config.enabled}
97async init(){this._.faro=oc({url:this._.config.url,apiKey:this._.config.key,instrumentations:[...Wu({captureConsole:!0}),new ic],app:{name:this._.config.name,version:this._.config.version}})}getTracer(t="default",e=""){return""===e&&(e=this._.version),Gt.getTracer(t,e)}startActiveSpan(...t){return this.getTracer().startActiveSpan(...t)}getActiveContext(){const t=Lt.active();if(t)return t;return this.getTracer().startSpan("default").spanContext()}get faro(){return this._.faro}recordError(...t){if(this.enabled)return this.faro&&this.faro.api&&!0===this.faro.api.isOTELInitialized?this.faro.api.pushError(...t):void 0}setUser(t={}){if(this.faro&&this.faro.api)return this.faro.api.setUser(t)}resetUser(t={}){if(this.faro&&this.faro.api)return this.faro.api.resetUser()}setSession(t={}){if(this.faro&&this.faro.api)return this.faro.api.setSession(Ju(t))}resetSession(){if(this.faro&&this.faro.api)return this.faro.api.resetSession()}get context(){return Lt.active()}get log(){const t=this;return{info(e,n){let r=!1;if(t.faro&&t.faro.api)return r=!0,t.faro.api.pushLog([e],{context:n,level:Fa.INFO});r||console.info(e)},error(e,n){let r=!1;if(t.faro&&t.faro.api)return r=!0,t.faro.api.pushLog([e],{context:n,level:Fa.ERROR});r||console.error(e)},debug(e,n){let r=!1;if(t.faro&&t.faro.api)return r=!0,t.faro.api.pushLog([e],{context:n,level:Fa.DEBUG});r||console.debug(e)},warn(e,n){let r=!1;if(t.faro&&t.faro.api)return r=!0,t.faro.api.pushLog([e],{context:n,level:Fa.WARN});r||console.warn(e)}}}}return t.OpentelemetryBrowser=ac,t.default=ac,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
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.