/**
 * Skipped minification because the original files appears to be already minified.
 * Original file: /npm/@splunk/otel-web-session-recorder@3.2.0/dist/cjs/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
/*! For license information please see index.js.LICENSE.txt */
(()=>{"use strict";var e={9466(e,t,r){r.d(t,{_:()=>c});var n=r(5350),o=function(){function e(){}return e.prototype.active=function(){return n.l},e.prototype.with=function(e,t,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];return t.call.apply(t,function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([r],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}(n),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),i=r(9234),s=r(5236),a="context",u=new o,c=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return(0,i.$G)(a,e,s.K.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,r){for(var n,o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return(n=this._getContextManager()).with.apply(n,function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([e,t,r],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}(o),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return(0,i.mS)(a)||u},e.prototype.disable=function(){this._getContextManager().disable(),(0,i.kv)(a,s.K.instance())},e}()},5236(e,t,r){r.d(t,{K:()=>a});var n=r(9234),o=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i("verbose",this._namespace,e)},e}();function i(e,t,r){var o=(0,n.mS)("diag");if(o)return r.unshift(t),o[e].apply(o,function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}(r),!1))}var s=r(6096),a=function(){function e(){function e(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=(0,n.mS)("diag");if(o)return o[e].apply(o,function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}(t),!1))}}var t=this;t.setLogger=function(e,r){var o,i,a;if(void 0===r&&(r={logLevel:s.u.INFO}),e===t){var u=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(o=u.stack)&&void 0!==o?o:u.message),!1}"number"==typeof r&&(r={logLevel:r});var c=(0,n.mS)("diag"),l=function(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return e<s.u.NONE?e=s.u.NONE:e>s.u.ALL&&(e=s.u.ALL),t=t||{},{error:r("error",s.u.ERROR),warn:r("warn",s.u.WARN),info:r("info",s.u.INFO),debug:r("debug",s.u.DEBUG),verbose:r("verbose",s.u.VERBOSE)}}(null!==(i=r.logLevel)&&void 0!==i?i:s.u.INFO,e);if(c&&!r.suppressOverrideMessage){var d=null!==(a=(new Error).stack)&&void 0!==a?a:"<failed to generate stacktrace>";c.warn("Current logger will be overwritten from "+d),l.warn("Current logger will overwrite one already registered from "+d)}return(0,n.$G)("diag",l,t,!0)},t.disable=function(){(0,n.kv)("diag",t)},t.createComponentLogger=function(e){return new o(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},4624(e,t,r){r.d(t,{B:()=>u,L:()=>a});var n=r(5236),o=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}(e,2);return[t[0],t[1]]})},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=new e(this._entries);try{for(var s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),a=s.next();!a.done;a=s.next()){var u=a.value;i._entries.delete(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e}(),i=Symbol("BaggageEntryMetadata"),s=n.K.instance();function a(e){return void 0===e&&(e={}),new o(new Map(Object.entries(e)))}function u(e){return"string"!=typeof e&&(s.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:i,toString:function(){return e}}}},5339(e,t,r){r.d(t,{_:()=>n});var n=r(9466)._.getInstance()},5350(e,t,r){function n(e){return Symbol.for(e)}r.d(t,{l:()=>o,n:()=>n});var o=new function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(e){return r._currentContext.get(e)},r.setValue=function(t,n){var o=new e(r._currentContext);return o._currentContext.set(t,n),o},r.deleteValue=function(t){var n=new e(r._currentContext);return n._currentContext.delete(t),n}}},6547(e,t,r){r.d(t,{s:()=>n});var n=r(5236).K.instance()},6096(e,t,r){var n;r.d(t,{u:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(n||(n={}))},4661(e,t,r){r.r(t),r.d(t,{DiagConsoleLogger:()=>u,DiagLogLevel:()=>c.u,INVALID_SPANID:()=>H.w9,INVALID_SPAN_CONTEXT:()=>H.dM,INVALID_TRACEID:()=>H.RH,ProxyTracer:()=>k.y,ProxyTracerProvider:()=>L.n,ROOT_CONTEXT:()=>s.l,SamplingDecision:()=>M.i,SpanKind:()=>x,SpanStatusCode:()=>j,TraceFlags:()=>N.X,ValueType:()=>o,baggageEntryMetadataFromString:()=>i.B,context:()=>G._,createContextKey:()=>s.n,createNoopMeter:()=>I,createTraceState:()=>z,default:()=>ee,defaultTextMapGetter:()=>C.q,defaultTextMapSetter:()=>C.U,diag:()=>q.s,isSpanContextValid:()=>V.YA,isValidSpanId:()=>V.wN,isValidTraceId:()=>V.hX,metrics:()=>Q,propagation:()=>J.$,trace:()=>Z.u});var n,o,i=r(4624),s=r(5350),a=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],u=function(){function e(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(console){var n=console[e];if("function"!=typeof n&&(n=console.log),"function"==typeof n)return n.apply(console,t)}}}for(var t=0;t<a.length;t++)this[a[t].n]=e(a[t].c)},c=r(6096),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(){function e(){}return e.prototype.createGauge=function(e,t){return E},e.prototype.createHistogram=function(e,t){return P},e.prototype.createCounter=function(e,t){return S},e.prototype.createUpDownCounter=function(e,t){return T},e.prototype.createObservableGauge=function(e,t){return R},e.prototype.createObservableCounter=function(e,t){return A},e.prototype.createObservableUpDownCounter=function(e,t){return _},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),f=function(){},h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.add=function(e,t){},t}(f),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.add=function(e,t){},t}(f),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.record=function(e,t){},t}(f),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.record=function(e,t){},t}(f),g=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(g),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(g),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(g),O=new d,S=new h,E=new v,P=new y,T=new p,A=new m,R=new b,_=new w;function I(){return O}!function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"}(o||(o={}));var x,j,C=r(1298),k=r(1654),L=r(5719),M=r(9623);!function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"}(x||(x={})),function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(j||(j={}));var N=r(7722),D="[_0-9a-z-*/]",B=new RegExp("^(?:[a-z]"+D+"{0,255}|[a-z0-9]"+D+"{0,240}@[a-z]"+D+"{0,13})$"),U=/^[ -~]{0,255}[!-~]$/,F=/,|=/,W=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,t),r},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,r){return t.push(r+"="+e.get(r)),t},[]).join(",")},e.prototype._parse=function(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(function(e,t){var r=t.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,t.length);(function(e){return B.test(e)})(o)&&function(e){return U.test(e)&&!F.test(e)}(i)&&e.set(o,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}();function z(e){return new W(e)}var V=r(9862),H=r(4105),G=r(5339),q=r(6547),K=new(function(){function e(){}return e.prototype.getMeter=function(e,t,r){return O},e}()),$=r(9234),X=r(5236),Y="metrics",Q=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(e){return(0,$.$G)(Y,e,X.K.instance())},e.prototype.getMeterProvider=function(){return(0,$.mS)(Y)||K},e.prototype.getMeter=function(e,t,r){return this.getMeterProvider().getMeter(e,t,r)},e.prototype.disable=function(){(0,$.kv)(Y,X.K.instance())},e}().getInstance(),J=r(431),Z=r(3837);const ee={context:G._,diag:q.s,metrics:Q,propagation:J.$,trace:Z.u}},9234(e,t,r){r.d(t,{mS:()=>d,$G:()=>l,kv:()=>f});var n="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{},o="1.9.0",i=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,s=function(e){var t=new Set([e]),r=new Set,n=e.match(i);if(!n)return function(){return!1};var o=+n[1],s=+n[2],a=+n[3];if(null!=n[4])return function(t){return t===e};function u(e){return r.add(e),!1}function c(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(i);if(!n)return u(e);var l=+n[1],d=+n[2],f=+n[3];return null!=n[4]||o!==l?u(e):0===o?s===d&&a<=f?c(e):u(e):s<=d?c(e):u(e)}}(o),a=o.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n;function l(e,t,r,n){var i;void 0===n&&(n=!1);var s=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:o};if(!n&&s[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(a.stack||a.message),!1}return s.version!==o?(a=new Error("@opentelemetry/api: Registration of version v"+s.version+" for "+e+" does not match previously registered API v"+o),r.error(a.stack||a.message),!1):(s[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o+"."),!0)}function d(e){var t,r,n=null===(t=c[u])||void 0===t?void 0:t.version;if(n&&s(n))return null===(r=c[u])||void 0===r?void 0:r[e]}function f(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o+".");var r=c[u];r&&delete r[e]}},431(e,t,r){r.d(t,{$:()=>g});var n=r(9234),o=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}(),i=r(1298),s=r(9466),a=(0,r(5350).n)("OpenTelemetry Baggage Key");function u(e){return e.getValue(a)||void 0}function c(){return u(s._.getInstance().active())}function l(e,t){return e.setValue(a,t)}function d(e){return e.deleteValue(a)}var f=r(4624),h=r(5236),p="propagation",v=new o,y=function(){function e(){this.createBaggage=f.L,this.getBaggage=u,this.getActiveBaggage=c,this.setBaggage=l,this.deleteBaggage=d}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return(0,n.$G)(p,e,h.K.instance())},e.prototype.inject=function(e,t,r){return void 0===r&&(r=i.U),this._getGlobalPropagator().inject(e,t,r)},e.prototype.extract=function(e,t,r){return void 0===r&&(r=i.q),this._getGlobalPropagator().extract(e,t,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){(0,n.kv)(p,h.K.instance())},e.prototype._getGlobalPropagator=function(){return(0,n.mS)(p)||v},e}(),g=y.getInstance()},1298(e,t,r){r.d(t,{U:()=>o,q:()=>n});var n={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},o={set:function(e,t,r){null!=e&&(e[t]=r)}}},3837(e,t,r){r.d(t,{u:()=>c});var n=r(9234),o=r(5719),i=r(9862),s=r(7888),a=r(5236),u="trace",c=function(){function e(){this._proxyTracerProvider=new o.n,this.wrapSpanContext=i.IP,this.isSpanContextValid=i.YA,this.deleteSpan=s.EW,this.getSpan=s.fU,this.getActiveSpan=s.Bk,this.getSpanContext=s.w8,this.setSpan=s.Bx,this.setSpanContext=s.g_}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=(0,n.$G)(u,this._proxyTracerProvider,a.K.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return(0,n.mS)(u)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){(0,n.kv)(u,a.K.instance()),this._proxyTracerProvider=new o.n},e}().getInstance()},1005(e,t,r){r.d(t,{d:()=>o});var n=r(4105),o=function(){function e(e){void 0===e&&(e=n.dM),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}()},6694(e,t,r){r.d(t,{o:()=>u});var n=r(9466),o=r(7888),i=r(1005),s=r(9862),a=n._.getInstance(),u=function(){function e(){}return e.prototype.startSpan=function(e,t,r){if(void 0===r&&(r=a.active()),Boolean(null==t?void 0:t.root))return new i.d;var n,u=r&&(0,o.w8)(r);return"object"==typeof(n=u)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&(0,s.YA)(u)?new i.d(u):new i.d},e.prototype.startActiveSpan=function(e,t,r,n){var i,s,u;if(!(arguments.length<2)){2===arguments.length?u=t:3===arguments.length?(i=t,u=r):(i=t,s=r,u=n);var c=null!=s?s:a.active(),l=this.startSpan(e,i,c),d=(0,o.Bx)(c,l);return a.with(d,u,void 0,l)}},e}()},1654(e,t,r){r.d(t,{y:()=>o});var n=new(r(6694).o),o=function(){function e(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}return e.prototype.startSpan=function(e,t,r){return this._getTracer().startSpan(e,t,r)},e.prototype.startActiveSpan=function(e,t,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):n},e}()},5719(e,t,r){r.d(t,{n:()=>s});var n=r(1654),o=r(6694),i=new(function(){function e(){}return e.prototype.getTracer=function(e,t,r){return new o.o},e}()),s=function(){function e(){}return e.prototype.getTracer=function(e,t,r){var o;return null!==(o=this.getDelegateTracer(e,t,r))&&void 0!==o?o:new n.y(this,e,t,r)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:i},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(e,t,r)},e}()},9623(e,t,r){var n;r.d(t,{i:()=>n}),function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(n||(n={}))},7888(e,t,r){r.d(t,{Bk:()=>u,Bx:()=>c,EW:()=>l,fU:()=>a,g_:()=>d,w8:()=>f});var n=r(5350),o=r(1005),i=r(9466),s=(0,n.n)("OpenTelemetry Context Key SPAN");function a(e){return e.getValue(s)||void 0}function u(){return a(i._.getInstance().active())}function c(e,t){return e.setValue(s,t)}function l(e){return e.deleteValue(s)}function d(e,t){return c(e,new o.d(t))}function f(e){var t;return null===(t=a(e))||void 0===t?void 0:t.spanContext()}},4105(e,t,r){r.d(t,{RH:()=>i,dM:()=>s,w9:()=>o});var n=r(7722),o="0000000000000000",i="00000000000000000000000000000000",s={traceId:i,spanId:o,traceFlags:n.X.NONE}},9862(e,t,r){r.d(t,{IP:()=>l,YA:()=>c,hX:()=>a,wN:()=>u});var n=r(4105),o=r(1005),i=/^([0-9a-f]{32})$/i,s=/^[0-9a-f]{16}$/i;function a(e){return i.test(e)&&e!==n.RH}function u(e){return s.test(e)&&e!==n.w9}function c(e){return a(e.traceId)&&u(e.spanId)}function l(e){return new o.d(e)}},7722(e,t,r){var n;r.d(t,{X:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(n||(n={}))},7865(e,t,r){r.r(t),r.d(t,{AlwaysOffSampler:()=>He,AlwaysOnSampler:()=>Ge,AnchoredClock:()=>y,BindOnceFuture:()=>mt,CompositePropagator:()=>Se,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>ue,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>ae,DEFAULT_ENVIRONMENT:()=>de,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>ce,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>le,ExportResultCode:()=>_,ParentBasedSampler:()=>qe,RPCType:()=>Me,RandomIdGenerator:()=>q,SDK_INFO:()=>J,TRACE_PARENT_HEADER:()=>je,TRACE_STATE_HEADER:()=>Ce,TimeoutError:()=>ft,TraceIdRatioBasedSampler:()=>Ke,TraceState:()=>xe,TracesSamplerValues:()=>Y,VERSION:()=>Q,W3CBaggagePropagator:()=>v,W3CTraceContextPropagator:()=>Ne,_globalThis:()=>Z,addHrTimes:()=>V,baggageUtils:()=>wt,callWithTimeout:()=>ht,deleteRPCMetadata:()=>Ue,getEnv:()=>me,getEnvWithoutDefaults:()=>be,getRPCMetadata:()=>Fe,getTimeOrigin:()=>k,globalErrorHandler:()=>R,hexToBase64:()=>we,hexToBinary:()=>G,hrTime:()=>L,hrTimeDuration:()=>N,hrTimeToMicroseconds:()=>F,hrTimeToMilliseconds:()=>U,hrTimeToNanoseconds:()=>B,hrTimeToTimeStamp:()=>D,internal:()=>Ot,isAttributeKey:()=>O,isAttributeValue:()=>S,isTimeInput:()=>z,isTimeInputHrTime:()=>W,isTracingSuppressed:()=>u,isUrlIgnored:()=>vt,isWrapped:()=>yt,loggingErrorHandler:()=>P,merge:()=>rt,millisToHrTime:()=>C,otperformance:()=>I,parseEnvironment:()=>ge,parseTraceParent:()=>Le,sanitizeAttributes:()=>w,setGlobalErrorHandler:()=>A,setRPCMetadata:()=>Be,suppressTracing:()=>s,timeInputToHrTime:()=>M,unrefTimer:()=>Oe,unsuppressTracing:()=>a,urlMatches:()=>pt});var n=r(431),o=r(5350),i=(0,o.n)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function s(e){return e.setValue(i,!0)}function a(e){return e.deleteValue(i)}function u(e){return!0===e.getValue(i)}var c=",",l="baggage",d=r(4624);function f(e){return e.reduce(function(e,t){var r=""+e+(""!==e?c:"")+t;return r.length>8192?e:r},"")}function h(e){return e.getAllEntries().map(function(e){var t=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}(e,2),r=t[0],n=t[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function p(e){var t=e.split(";");if(!(t.length<=0)){var r=t.shift();if(r){var n=r.indexOf("=");if(!(n<=0)){var o,i=decodeURIComponent(r.substring(0,n).trim()),s=decodeURIComponent(r.substring(n+1).trim());return t.length>0&&(o=(0,d.B)(t.join(";"))),{key:i,value:s,metadata:o}}}}}var v=function(){function e(){}return e.prototype.inject=function(e,t,r){var o=n.$.getBaggage(e);if(o&&!u(e)){var i=f(h(o).filter(function(e){return e.length<=4096}).slice(0,180));i.length>0&&r.set(t,l,i)}},e.prototype.extract=function(e,t,r){var o=r.get(t,l),i=Array.isArray(o)?o.join(c):o;if(!i)return e;var s={};return 0===i.length?e:(i.split(c).forEach(function(e){var t=p(e);if(t){var r={value:t.value};t.metadata&&(r.metadata=t.metadata),s[t.key]=r}}),0===Object.entries(s).length?e:n.$.setBaggage(e,n.$.createBaggage(s)))},e.prototype.fields=function(){return[l]},e}(),y=function(){function e(e,t){this._monotonicClock=t,this._epochMillis=e.now(),this._performanceMillis=t.now()}return e.prototype.now=function(){var e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e},e}(),g=r(6547),m=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},b=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s};function w(e){var t,r,n={};if("object"!=typeof e||null==e)return n;try{for(var o=m(Object.entries(e)),i=o.next();!i.done;i=o.next()){var s=b(i.value,2),a=s[0],u=s[1];O(a)?S(u)?Array.isArray(u)?n[a]=u.slice():n[a]=u:g.s.warn("Invalid attribute value set for key: "+a):g.s.warn("Invalid attribute key: "+a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n}function O(e){return"string"==typeof e&&e.length>0}function S(e){return null==e||(Array.isArray(e)?function(e){var t,r,n;try{for(var o=m(e),i=o.next();!i.done;i=o.next()){var s=i.value;if(null!=s){if(!n){if(E(s)){n=typeof s;continue}return!1}if(typeof s!==n)return!1}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return!0}(e):E(e))}function E(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function P(){return function(e){g.s.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){for(var t={},r=e;null!==r;)Object.getOwnPropertyNames(r).forEach(function(e){if(!t[e]){var n=r[e];n&&(t[e]=String(n))}}),r=Object.getPrototypeOf(r);return t}(e))}(e))}}var T=P();function A(e){T=e}function R(e){try{T(e)}catch(e){}}var _,I=performance,x=Math.pow(10,6),j=Math.pow(10,9);function C(e){var t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*x)]}function k(){var e=I.timeOrigin;if("number"!=typeof e){var t=I;e=t.timing&&t.timing.fetchStart}return e}function L(e){return V(C(k()),C("number"==typeof e?e:I.now()))}function M(e){if(W(e))return e;if("number"==typeof e)return e<k()?L(e):C(e);if(e instanceof Date)return C(e.getTime());throw TypeError("Invalid input type")}function N(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=j),[r,n]}function D(e){var t=""+"0".repeat(9)+e[1]+"Z",r=t.substring(t.length-9-1);return new Date(1e3*e[0]).toISOString().replace("000Z",r)}function B(e){return e[0]*j+e[1]}function U(e){return 1e3*e[0]+e[1]/1e6}function F(e){return 1e6*e[0]+e[1]/1e3}function W(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function z(e){return W(e)||"number"==typeof e||e instanceof Date}function V(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=j&&(r[1]-=j,r[0]+=1),r}function H(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function G(e){for(var t=new Uint8Array(e.length/2),r=0,n=0;n<e.length;n+=2){var o=H(e.charCodeAt(n)),i=H(e.charCodeAt(n+1));t[r++]=o<<4|i}return t}!function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(_||(_={}));var q=function(){this.generateTraceId=$(16),this.generateSpanId=$(8)},K=Array(32);function $(e){return function(){for(var t=0;t<2*e;t++)K[t]=Math.floor(16*Math.random())+48,K[t]>=58&&(K[t]+=39);return String.fromCharCode.apply(null,K.slice(0,2*e))}}var X,Y,Q="1.30.1",J=((X={})["telemetry.sdk.name"]="opentelemetry",X["process.runtime.name"]="browser",X["telemetry.sdk.language"]="webjs",X["telemetry.sdk.version"]=Q,X),Z="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{},ee=r(6096);!function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"}(Y||(Y={}));var te=["OTEL_SDK_DISABLED"];function re(e){return te.indexOf(e)>-1}var ne=["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 oe(e){return ne.indexOf(e)>-1}var ie=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function se(e){return ie.indexOf(e)>-1}var ae=1/0,ue=128,ce=128,le=128,de={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:ee.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:ae,OTEL_ATTRIBUTE_COUNT_LIMIT:ue,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:ae,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:ue,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:ae,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:ue,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:ce,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:le,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Y.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",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function fe(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function he(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(t[e]=i<n?n:i>o?o:i)}}function pe(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}var ve={ALL:ee.u.ALL,VERBOSE:ee.u.VERBOSE,DEBUG:ee.u.DEBUG,INFO:ee.u.INFO,WARN:ee.u.WARN,ERROR:ee.u.ERROR,NONE:ee.u.NONE};function ye(e,t,r){var n=r[e];if("string"==typeof n){var o=ve[n.toUpperCase()];null!=o&&(t[e]=o)}}function ge(e){var t={};for(var r in de){var n=r;if("OTEL_LOG_LEVEL"===n)ye(n,t,e);else if(re(n))fe(n,t,e);else if(oe(n))he(n,t,e);else if(se(n))pe(n,t,e);else{var o=e[n];null!=o&&(t[n]=String(o))}}return t}function me(){var e=ge(Z);return Object.assign({},de,e)}function be(){return ge(Z)}function we(e){return btoa(String.fromCharCode.apply(String,function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}(G(e)),!1)))}function Oe(e){}var Se=function(){function e(e){var t;void 0===e&&(e={}),this._propagators=null!==(t=e.propagators)&&void 0!==t?t:[],this._fields=Array.from(new Set(this._propagators.map(function(e){return"function"==typeof e.fields?e.fields():[]}).reduce(function(e,t){return e.concat(t)},[])))}return e.prototype.inject=function(e,t,r){var n,o;try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),s=i.next();!s.done;s=i.next()){var a=s.value;try{a.inject(e,t,r)}catch(e){g.s.warn("Failed to inject with "+a.constructor.name+". Err: "+e.message)}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},e.prototype.extract=function(e,t,r){return this._propagators.reduce(function(e,n){try{return n.extract(e,t,r)}catch(e){g.s.warn("Failed to extract with "+n.constructor.name+". Err: "+e.message)}return e},e)},e.prototype.fields=function(){return this._fields.slice()},e}(),Ee=r(3837),Pe=r(9862),Te=r(7722),Ae="[_0-9a-z-*/]",Re=new RegExp("^(?:[a-z]"+Ae+"{0,255}|[a-z0-9]"+Ae+"{0,240}@[a-z]"+Ae+"{0,13})$"),_e=/^[ -~]{0,255}[!-~]$/,Ie=/,|=/,xe=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,t),r},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,r){return t.push(r+"="+e.get(r)),t},[]).join(",")},e.prototype._parse=function(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(function(e,t){var r=t.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,t.length);(function(e){return Re.test(e)})(o)&&function(e){return _e.test(e)&&!Ie.test(e)}(i)&&e.set(o,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),je="traceparent",Ce="tracestate",ke=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function Le(e){var t=ke.exec(e);return t?"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}var Me,Ne=function(){function e(){}return e.prototype.inject=function(e,t,r){var n=Ee.u.getSpanContext(e);if(n&&!u(e)&&(0,Pe.YA)(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||Te.X.NONE).toString(16);r.set(t,je,o),n.traceState&&r.set(t,Ce,n.traceState.serialize())}},e.prototype.extract=function(e,t,r){var n=r.get(t,je);if(!n)return e;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return e;var i=Le(o);if(!i)return e;i.isRemote=!0;var s=r.get(t,Ce);if(s){var a=Array.isArray(s)?s.join(","):s;i.traceState=new xe("string"==typeof a?a:void 0)}return Ee.u.setSpanContext(e,i)},e.prototype.fields=function(){return[je,Ce]},e}(),De=(0,o.n)("OpenTelemetry SDK Context Key RPC_METADATA");function Be(e,t){return e.setValue(De,t)}function Ue(e){return e.deleteValue(De)}function Fe(e){return e.getValue(De)}!function(e){e.HTTP="http"}(Me||(Me={}));var We,ze,Ve=r(9623),He=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:Ve.i.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),Ge=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:Ve.i.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}(),qe=function(){function e(e){var t,r,n,o;this._root=e.root,this._root||(R(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Ge),this._remoteParentSampled=null!==(t=e.remoteParentSampled)&&void 0!==t?t:new Ge,this._remoteParentNotSampled=null!==(r=e.remoteParentNotSampled)&&void 0!==r?r:new He,this._localParentSampled=null!==(n=e.localParentSampled)&&void 0!==n?n:new Ge,this._localParentNotSampled=null!==(o=e.localParentNotSampled)&&void 0!==o?o:new He}return e.prototype.shouldSample=function(e,t,r,n,o,i){var s=Ee.u.getSpanContext(e);return s&&(0,Pe.YA)(s)?s.isRemote?s.traceFlags&Te.X.SAMPLED?this._remoteParentSampled.shouldSample(e,t,r,n,o,i):this._remoteParentNotSampled.shouldSample(e,t,r,n,o,i):s.traceFlags&Te.X.SAMPLED?this._localParentSampled.shouldSample(e,t,r,n,o,i):this._localParentNotSampled.shouldSample(e,t,r,n,o,i):this._root.shouldSample(e,t,r,n,o,i)},e.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}(),Ke=function(){function e(e){void 0===e&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}return e.prototype.shouldSample=function(e,t){return{decision:(0,Pe.hX)(t)&&this._accumulate(t)<this._upperBound?Ve.i.RECORD_AND_SAMPLED:Ve.i.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e},e.prototype._accumulate=function(e){for(var t=0,r=0;r<e.length/8;r++){var n=8*r;t=(t^parseInt(e.slice(n,n+8),16))>>>0}return t},e}(),$e=Function.prototype.toString,Xe=$e.call(Object),Ye=(We=Object.getPrototypeOf,ze=Object,function(e){return We(ze(e))}),Qe=Object.prototype,Je=Qe.hasOwnProperty,Ze=Symbol?Symbol.toStringTag:void 0,et=Qe.toString;function tt(e){if(!function(e){return null!=e&&"object"==typeof e}(e)||"[object Object]"!==function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ze&&Ze in Object(e)?function(e){var t=Je.call(e,Ze),r=e[Ze],n=!1;try{e[Ze]=void 0,n=!0}catch(e){}var o=et.call(e);return n&&(t?e[Ze]=r:delete e[Ze]),o}(e):function(e){return et.call(e)}(e)}(e))return!1;var t=Ye(e);if(null===t)return!0;var r=Je.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&$e.call(r)===Xe}function rt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.shift(),n=new WeakMap;e.length>0;)r=ot(r,e.shift(),0,n);return r}function nt(e){return st(e)?e.slice():e}function ot(e,t,r,n){var o;if(void 0===r&&(r=0),!(r>20)){if(r++,ct(e)||ct(t)||at(t))o=nt(t);else if(st(e)){if(o=e.slice(),st(t))for(var i=0,s=t.length;i<s;i++)o.push(nt(t[i]));else if(ut(t))for(i=0,s=(a=Object.keys(t)).length;i<s;i++)o[u=a[i]]=nt(t[u])}else if(ut(e))if(ut(t)){if(!function(e,t){return!(!tt(e)||!tt(t))}(e,t))return t;var a;for(o=Object.assign({},e),i=0,s=(a=Object.keys(t)).length;i<s;i++){var u,c=t[u=a[i]];if(ct(c))void 0===c?delete o[u]:o[u]=c;else{var l=o[u],d=c;if(it(e,u,n)||it(t,u,n))delete o[u];else{if(ut(l)&&ut(d)){var f=n.get(l)||[],h=n.get(d)||[];f.push({obj:e,key:u}),h.push({obj:t,key:u}),n.set(l,f),n.set(d,h)}o[u]=ot(o[u],c,r,n)}}}}else o=t;return o}}function it(e,t,r){for(var n=r.get(e[t])||[],o=0,i=n.length;o<i;o++){var s=n[o];if(s.key===t&&s.obj===e)return!0}return!1}function st(e){return Array.isArray(e)}function at(e){return"function"==typeof e}function ut(e){return!ct(e)&&!st(e)&&!at(e)&&"object"==typeof e}function ct(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||void 0===e||e instanceof Date||e instanceof RegExp||null===e}var lt,dt=(lt=function(e,t){return lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},lt(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}lt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ft=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return dt(t,e),t}(Error);function ht(e,t){var r,n=new Promise(function(e,n){r=setTimeout(function(){n(new ft("Operation timed out."))},t)});return Promise.race([e,n]).then(function(e){return clearTimeout(r),e},function(e){throw clearTimeout(r),e})}function pt(e,t){return"string"==typeof t?e===t:!!e.match(t)}function vt(e,t){var r,n;if(!t)return!1;try{for(var o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),i=o.next();!i.done;i=o.next())if(pt(e,i.value))return!0}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function yt(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}var gt=function(){function e(){var e=this;this._promise=new Promise(function(t,r){e._resolve=t,e._reject=r})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(e){this._resolve(e)},e.prototype.reject=function(e){this._reject(e)},e}(),mt=function(){function e(e,t){this._callback=e,this._that=t,this._isCalled=!1,this._deferred=new gt}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var e,t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([this._that],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}(r),!1))).then(function(e){return t._deferred.resolve(e)},function(e){return t._deferred.reject(e)})}catch(e){this._deferred.reject(e)}}return this._deferred.promise},e}(),bt=r(5339),wt={getKeyPairs:h,serializeKeyPairs:f,parseKeyPairsIntoRecord:function(e){return"string"!=typeof e||0===e.length?{}:e.split(c).map(function(e){return p(e)}).filter(function(e){return void 0!==e&&e.value.length>0}).reduce(function(e,t){return e[t.key]=t.value,e},{})},parsePairKeyValue:p},Ot={_export:function(e,t){return new Promise(function(r){bt._.with(s(bt._.active()),function(){e.export(t,function(e){r(e)})})})}}},4871(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ApiError",{enumerable:!0,get:function(){return o}});const n=r(4333);r(7332);class o extends Error{get isConnectionError(){return this.status<0&&!this.isAbortedByRecorder&&!this.isAbortedByUserAgent}get isAbortedByRecorder(){return this.isSignalAborted}get isAbortedByUserAgent(){var e;return this.originalError instanceof Error&&"AbortError"===(null===(e=this.originalError)||void 0===e?void 0:e.name)&&!this.isSignalAborted}constructor(e,t,r,i,s,a,u,c,l){super(e),n._(this,"status",void 0),n._(this,"responseTimingData",void 0),n._(this,"requestPayload",void 0),n._(this,"originalError",void 0),n._(this,"responseData",void 0),n._(this,"additionalData",void 0),n._(this,"isOffline",void 0),n._(this,"isSignalAborted",void 0),n._(this,"name",void 0),n._(this,"responseDebugData",void 0),n._(this,"visibilityState",void 0),n._(this,"wasBeaconFallbackUsed",void 0),this.status=t,this.responseTimingData=r,this.requestPayload=s,this.originalError=u,this.responseData=c,this.additionalData=l,this.name="ApiError",Object.setPrototypeOf(this,o.prototype),this.responseDebugData=a?(e=>({bodyUsed:e.bodyUsed,headers:e.headers?Array.from(e.headers):void 0,ok:e.ok,redirected:e.redirected,type:e.type,url:e.url}))(a):void 0,this.isSignalAborted=null==i?void 0:i.aborted,this.visibilityState=document.visibilityState,this.isOffline=!1===navigator.onLine,this.wasBeaconFallbackUsed=!1}}},2977(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"apiFetch",{enumerable:!0,get:function(){return c}}),r(1717),r(5732),r(2940),r(972),r(9679),r(9130),r(1978),r(7982),r(5166),r(7332),r(5178);const n=r(2894),o=r(4871),i=r(8697),s={headers:{}},a={"Content-Type":"text/plain;charset=UTF-8"},u=new Map,c=async(e,t)=>{let{abortPreviousRequest:r,baseUrl:c,body:l,discardExistingPath:d,doNotConvert:f=!1,doNotRetryOnDocumentHidden:h=!1,headers:p,logPayloadOnError:v=!1,retryCount:y=3,retryInterval:g=1e3,throwOnConvert:m=!1,waitForOnlineStatus:b=!1,...w}=t;const O=c?(0,i.createUrl)({baseUrl:c,discardExistingPath:d,pathName:e}):new URL(e,window.location.origin);let S=u.get(O.href);S&&r&&(n.log.debug("Aborting previous request",O),S.abort("Aborted previous request.")),S=new AbortController,u.set(O.href,S);const E={...s,body:l,...w,headers:void 0===p?a:p,signal:S.signal};let P,T,A,R=null,_=performance.now(),I=0;for(let e=1;e<=y;e++){b&&await(0,i.waitForOnline)(),T=e;try{if(1===e)_=performance.now(),P=await fetch(O.href,E);else{const t=[],r=new Promise(t=>{setTimeout(()=>{t()},g*Math.pow(2,e-1))});if(t.push(r),h){const e=new Promise(e=>{const t=r=>{(0,i.isTrustedEvent)(r)&&"hidden"===document.visibilityState&&(document.removeEventListener("visibilitychange",t),e())};document.addEventListener("visibilitychange",t),"hidden"===document.visibilityState&&(document.removeEventListener("visibilitychange",t),e())});t.push(e)}if(await Promise.race(t),h&&"hidden"===document.visibilityState)throw new Error("Document is hidden and flag `doNotRetryOnDocumentHidden` is set to true.");b&&await(0,i.waitForOnline)(),_=performance.now(),P=await fetch(O.href,E)}A=void 0}catch(t){if(A=t,t instanceof Error&&"AbortError"===t.name)throw u.delete(O.href),new o.ApiError("Request was aborted.",-1,{fetchTotalMs:I,finalRetries:T},S.signal,v?JSON.stringify(l):"Payload not logged.",void 0,t);if(e<y&&(!h||"hidden"!==document.visibilityState))continue}finally{I=performance.now()-_}if(u.delete(O.href),!P)throw new o.ApiError("API request to ".concat(O.href," failed due to connection error."),-1,{fetchTotalMs:I,finalRetries:T},S.signal,v?JSON.stringify(l):"Payload not logged.",void 0,A);if(P.status>399){try{R=await P.json()}catch(e){if(e instanceof Error&&("AbortError"===e.name||"TypeError"===e.name))throw new o.ApiError("API request to ".concat(O.href," failed with status code ").concat(P.status,"."),P.status,{fetchTotalMs:I,finalRetries:T},S.signal,"Payload not logged.",P,e)}try{R||(R=await P.text())}catch(e){if(e instanceof Error&&("AbortError"===e.name||"TypeError"===e.name))throw new o.ApiError("API request to ".concat(O.href," failed with status code ").concat(P.status,"."),P.status,{fetchTotalMs:I,finalRetries:T},S.signal,"Payload not logged.",P,e)}throw new o.ApiError("API request to ".concat(O.href," failed with status code ").concat(P.status),P.status,{fetchTotalMs:I,finalRetries:T},S.signal,v?JSON.stringify(l):"Payload not logged.",P,void 0,{responseData:R})}if(204===P.status)break;if(f)break;try{R=await P.json();break}catch(t){if(t instanceof Error&&("AbortError"===t.name||"TypeError"===t.name)&&e<y)continue;if(m&&t instanceof Error)throw"AbortError"===t.name||"TypeError"===t.name?new o.ApiError("API request to ".concat(O.href," failed due to connection error."),-1,{fetchTotalMs:I,finalRetries:T},S.signal,v?JSON.stringify(l):"Payload not logged.",void 0,A):new Error("Could not convert data to JSON in ".concat(O.href," request"));if(m)throw new Error("Unknown error happened during API call. ".concat(JSON.stringify(t)));break}}if(void 0===P)throw new Error("Response object is undefined.");return{data:R,response:P}}},4972(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});const n=r(5999);n._(r(4871),t),n._(r(2977),t)},8697(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(t,{get createUrl(){return i},get isTrustedEvent(){return n},get waitForOnline(){return o}}),r(7982),r(4603),r(1717),r(5732),r(2940),r(972),r(9679),r(9130),r(1978);const n=e=>void 0===e.isTrusted||e.isTrusted,o=async()=>{navigator.onLine||await new Promise(e=>{const t=()=>{window.removeEventListener("online",t),e()};window.addEventListener("online",t),navigator.onLine&&(e(),window.removeEventListener("online",t))})},i=e=>{let{baseUrl:t,discardExistingPath:r,pathName:n}=e;const o=new URL((e=>/^https?:\/\//.test(e)?e:"https://".concat(e))(t));if(!n)return o;if(r)return new URL(n,o.origin);{let e=o.pathname;return e.endsWith("/")&&n.startsWith("/")&&(e=e.slice(0,-1)),new URL("".concat(e).concat(n),o.origin)}}},494(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(t,{get isRecorderLoadedViaLatestTag(){return i},get isRecorderLoadedViaLockedVersionTag(){return s},get isRecorderLoadedViaNextTag(){return a}}),r(4603);const n=r(3201),o=/\/o11y-gdi-rum\/v\d+\.\d+\.\d+-[0-9a-f]{40}\//i,i=()=>{let e=!1;try{if(document.currentScript&&(0,n.isScriptElement)(document.currentScript)){const t=document.currentScript.src;e=/\/o11y-gdi-rum\/latest\//i.test(t)}}catch{}return e},s=()=>{let e=!1;try{if(document.currentScript&&(0,n.isScriptElement)(document.currentScript)){const t=document.currentScript.src;e=o.test(t)}}catch{}return e},a=()=>{let e=!1;try{if(document.currentScript&&(0,n.isScriptElement)(document.currentScript)){const t=document.currentScript.src;e=/\/o11y-gdi-rum\/next\//i.test(t)}}catch{}return e}},8252(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(t,{get addLogToQueue(){return a},get getQueuedLogs(){return s},get removeQueuedLog(){return d},get removeQueuedLogs(){return f}}),r(5166),r(5178),r(1717),r(5731),r(6469),r(7672),r(1571);const n=r(2894),o=r(6201),i="_splunk_session_recorder_queue_data",s=()=>{const e=(0,o.safelyGetLocalStorage)(i);if(!e)return null;try{const t=JSON.parse(e);return p(t)?t:(n.log.warn("Invalid queued log data found in local storage",t),null)}catch{return n.log.warn("Malformed queued log data found in local storage",e),null}},a=e=>{var t;const r=null!==(t=s())&&void 0!==t?t:[];if(c(r,e)){const t=u(r),o=u([e]),i=Math.round(t/1024),s=Math.round(o/1024),a=Math.round(2048);return n.log.warn("Cannot add log to queue - would exceed 2MB limit. Current queue: ".concat(i,"KB, New log: ").concat(s,"KB, Limit: ").concat(a,"KB")),!1}return r.push(e),l(r)},u=e=>{const t=JSON.stringify(e);return(new TextEncoder).encode(t).length},c=(e,t)=>{const r=[...e,t];return u(r)>2097152},l=e=>{if(0===e.length)return f(),!0;const t=JSON.stringify(e);return(0,o.safelySetLocalStorage)(i,t)},d=e=>{var t;const r=(null!==(t=s())&&void 0!==t?t:[]).filter(t=>t.requestId!==e.requestId);return l(r)},f=()=>{(0,o.safelyRemoveFromLocalStorage)(i)},h=e=>{if("object"!=typeof e||null===e)return!1;const t=Object.keys(e);return["data","requestId","timestamp","url","headers"].every(e=>t.includes(e))},p=e=>!!Array.isArray(e)&&e.every(h)},2894(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(t,{get createNamedLog(){return o.createNamedLog},get isLogLevel(){return o.isLogLevel},get log(){return n.log}});const n=r(1360),o=r(6163)},1360(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"log",{enumerable:!0,get:function(){return s}});const n=r(4333);r(5166),r(1717),r(5731),r(7776);const o=r(9879);class i{pushToGroup(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];let i=this.groupsByKey.get(t);i||(i=[],this.groupsByKey.set(t,i)),i.push([e,...n])}constructor(){var e=this;n._(this,"groupLoggingIntervalId",null),n._(this,"groupsByKey",new Map),n._(this,"isGroupLoggingEnabled",!1),n._(this,"loggingLevel",null),n._(this,"loggingPrefix",""),n._(this,"middlewares",[]),n._(this,"critical",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.processMiddlewares("console","critical",t,...n),null!==e.loggingLevel&&o.LogLevelNumber.CRITICAL>=e.loggingLevel&&console.error("".concat(e.loggingPrefix).concat(t),...n)}),n._(this,"debug",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.processMiddlewares("console","debug",t,...n),null!==e.loggingLevel&&o.LogLevelNumber.DEBUG>=e.loggingLevel&&console.debug("".concat(e.loggingPrefix).concat(t),...n)}),n._(this,"debugGroup",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.isGroupLoggingEnabled?null!==e.loggingLevel&&o.LogLevelNumber.DEBUG>=e.loggingLevel&&e.pushToGroup("debug",t,...n):e.debug(t,...n)}),n._(this,"debugNoConsole",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.processMiddlewares("internal","debug",t,...n)}),n._(this,"enableGroupLogging",()=>{this.isGroupLoggingEnabled=!0,null!==this.groupLoggingIntervalId&&(this.groupLoggingIntervalId=window.setInterval(()=>{const e=this.groupsByKey;this.groupsByKey=new Map;for(const[t,r]of e.entries()){console.groupCollapsed(t);for(const[e,...t]of r)"critical"===e?console.error(...t):console[e](...t);console.groupEnd()}},1e3))}),n._(this,"error",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.processMiddlewares("console","error",t,...n),null!==e.loggingLevel&&o.LogLevelNumber.ERROR>=e.loggingLevel&&console.error("".concat(e.loggingPrefix).concat(t),...n)}),n._(this,"errorGroup",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.isGroupLoggingEnabled?null!==e.loggingLevel&&o.LogLevelNumber.ERROR>=e.loggingLevel&&e.pushToGroup("error",t,...n):e.error(t,...n)}),n._(this,"errorNoConsole",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.processMiddlewares("internal","error",t,...n)}),n._(this,"info",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.processMiddlewares("console","info",t,...n),null!==e.loggingLevel&&o.LogLevelNumber.INFO>=e.loggingLevel&&console.log("".concat(e.loggingPrefix).concat(t),...n)}),n._(this,"infoGroup",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.isGroupLoggingEnabled?null!==e.loggingLevel&&o.LogLevelNumber.INFO>=e.loggingLevel&&e.pushToGroup("info",t,...n):e.info(t,...n)}),n._(this,"infoNoConsole",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.processMiddlewares("internal","info",t,...n)}),n._(this,"setLoggingLevel",e=>{this.loggingLevel=i.convertLogLevelToNumber(e)}),n._(this,"setLoggingPrefix",e=>{this.loggingPrefix=e}),n._(this,"setMiddleware",e=>{this.middlewares.push(e)}),n._(this,"warn",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.processMiddlewares("console","warn",t,...n),null!==e.loggingLevel&&o.LogLevelNumber.WARN>=e.loggingLevel&&console.warn("".concat(e.loggingPrefix).concat(t),...n)}),n._(this,"warnGroup",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.isGroupLoggingEnabled?null!==e.loggingLevel&&o.LogLevelNumber.WARN>=e.loggingLevel&&e.pushToGroup("warn",t,...n):e.warn(t,...n)}),n._(this,"warnNoConsole",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.processMiddlewares("internal","warn",t,...n)}),n._(this,"processMiddlewares",function(t,r,n){for(var o=arguments.length,i=new Array(o>3?o-3:0),s=3;s<o;s++)i[s-3]=arguments[s];e.middlewares.forEach(e=>e(t,r,n,...i))})}}n._(i,"convertLogLevelToNumber",e=>{switch(e){case"debug":return o.LogLevelNumber.DEBUG;case"info":return o.LogLevelNumber.INFO;case"warn":return o.LogLevelNumber.WARN;case"error":default:return o.LogLevelNumber.ERROR;case"critical":return o.LogLevelNumber.CRITICAL}});const s=new i},9879(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LogLevelNumber",{enumerable:!0,get:function(){return r}});var r=function(e){return e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e[e.CRITICAL=4]="CRITICAL",e}({})},6163(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(t,{get createNamedLog(){return i},get isLogLevel(){return o}}),r(1571),r(1717);const n=r(1360),o=e=>["debug","info","warn","error"].includes(String(e)),i=e=>{const t=t=>"".concat(e,": ").concat(t);return{...n.log,debug:function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];n.log.debug(t(e),...o)},error:function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];n.log.error(t(e),...o)},info:function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];n.log.info(t(e),...o)},warn:function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];n.log.warn(t(e),...o)}}}},9597(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});const n=r(4333);r(5731),r(5505),r(1717),r(7833),r(7896),r(8748),r(4765),r(3976),r(5008),r(5803),r(4570),r(6249),r(9881),r(2039),r(2768),r(9357),r(5178),r(7982),r(3994);const o=r(4661),i=r(7865),s=r(5488),a=r(2473),u=r(4972),c=r(8252),l=r(2894),d=r(2857),f=r(6635),h={"Content-Encoding":"gzip","Content-Type":"application/json"};function p(e){return Array.isArray(e)}function v(e){return null==e?{}:function(e){return!!e&&"object"==typeof e&&!p(e)}(e)?{kvlistValue:{values:Object.entries(e).map(e=>{let[t,r]=e;return{key:t,value:v(r)}})}}:p(e)?{arrayValue:{values:e.map(e=>v(e))}}:"string"==typeof e?{stringValue:e}:"number"==typeof e?{doubleValue:e}:"boolean"==typeof e?{boolValue:e}:{}}class y{constructLogData(e){var t;return{resourceLogs:[{resource:{attributes:null===(t=v(this.config.getResourceAttributes()||{}).kvlistValue)||void 0===t?void 0:t.values},scopeLogs:[{logRecords:e.map(e=>{var t;return{attributes:null===(t=v(e.attributes||{}).kvlistValue)||void 0===t?void 0:t.values,body:v(e.body instanceof Uint8Array?void 0:e.body),timeUnixNano:e.timeUnixNano}}),scope:{name:"splunk.rr-web",version:f.VERSION}}]}]}}export(e,t){if(0===e.length)return;const r=this.config.headers?Object.assign({},h,this.config.headers):h,n=this.constructLogData(e);l.log.debug("OTLPLogExporter: export",n);const o=this.config.beaconUrl,i=(0,s.strToU8)(JSON.stringify(n)),u=(0,a.nanoid)(),d=this.config.usePersistentExportQueue?{data:n,headers:r,requestId:u,sessionId:this.config.sessionId,timestamp:Date.now(),url:o}:null;d&&(l.log.debug("Adding log to queue",{...d,data:"[truncated]"}),(0,c.addLogToQueue)(d)||l.log.debug("Failed to add log to queue",{...d,data:"[truncated]"})),y.sendDataToBackend(d,i,o,r,t)}exportQueuedLogs(){var e;const t=null!==(e=(0,c.getQueuedLogs)())&&void 0!==e?e:[];(0,c.removeQueuedLogs)();for(const e of t){if(l.log.debug("Found queued log",{...e,data:"[truncated]"}),e.sessionId!==this.config.sessionId){l.log.debug("exportQueuedLogs - session mismatch",{...e,data:"[truncated]"},{sessionId:this.config.sessionId});continue}(0,c.addLogToQueue)(e);const t=(0,s.strToU8)(JSON.stringify(e.data));y.sendDataToBackend(e,t,e.url,e.headers)}}static sendDataToBackend(e,t,r,n,o){const i=()=>{e&&(l.log.debug("Removing queued log",{...e,data:"[truncated]"}),(0,c.removeQueuedLog)(e)),null==o||o()},a=t=>{e&&t instanceof u.ApiError&&t.status>=300&&(l.log.debug("Removing queued log. Request failed with status code ".concat(t.status),{...e,data:"[truncated]"}),(0,c.removeQueuedLog)(e))};if("hidden"===document.visibilityState){const e=(0,s.gzipSync)(t),o=e.byteLength<65536;g(r,{body:e,headers:n,keepalive:o},i,a)}else(0,d.compressAsync)(t).then(e=>{g(r,{body:e,headers:n},i,a)}).catch(e=>{l.log.error("Could not compress data",e)})}constructor(e){n._(this,"config",void 0),this.config=e,this.config.exportQueuedLogs&&this.exportQueuedLogs()}}const g=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new Promise((e,r)=>{o.context.with((0,i.suppressTracing)(o.context.active()),()=>{(async(e,t,r,n)=>{try{await(0,u.apiFetch)(e,{abortPreviousRequest:!1,doNotConvert:!0,doNotRetryOnDocumentHidden:!0,method:"POST",retryCount:5,...t}),l.log.debug("Data sent by fetch",{keepalive:t.keepalive}),r()}catch(e){l.log.error("Could not send data to BE - fetch",e),n(e)}})(...t).then(e).catch(r)})})}},892(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"OTLPProtoLogExporter",{enumerable:!0,get:function(){return S}});const n=r(4333);r(7833),r(7896),r(8748),r(4765),r(3976),r(5008),r(5803),r(4570),r(6249),r(9881),r(2039),r(2768),r(9357),r(5166),r(1717),r(5731),r(5505),r(7982),r(3994);const o=r(4661),i=r(7865),s=r(5488),a=r(4972),u=r(2894),c=r(2857),l=r(6635),d={"Content-Encoding":"gzip","Content-Type":"application/x-protobuf"},f=new TextEncoder;class h{bool(e,t){this.tag(e,0),this.uint32(t?1:0)}bytes(e,t){this.tag(e,2),this.uint32(t.byteLength),this.raw(t)}double(e,t){const r=new ArrayBuffer(8);new DataView(r).setFloat64(0,t,!0),this.tag(e,1),this.raw(new Uint8Array(r))}finish(){return new Uint8Array(this.data)}fixed64(e,t){const r=Number.isFinite(t)&&t>0?Math.trunc(t):0,n=r>>>0,o=Math.floor(r/4294967296)>>>0;this.tag(e,1),this.uint32Byte(n),this.uint32Byte(n>>>8),this.uint32Byte(n>>>16),this.uint32Byte(n>>>24),this.uint32Byte(o),this.uint32Byte(o>>>8),this.uint32Byte(o>>>16),this.uint32Byte(o>>>24)}int64(e,t){this.tag(e,0),this.uint64(t)}message(e,t){const r=new h;t(r),this.bytes(e,r.finish())}string(e,t){this.bytes(e,f.encode(t))}uint32(e){let t=e>>>0;for(;t>127;)this.data.push(127&t|128),t>>>=7;this.data.push(t)}raw(e){for(const t of e)this.data.push(t)}tag(e,t){this.uint32(e<<3|t)}uint32Byte(e){this.data.push(255&e)}uint64(e){let t=Number.isFinite(e)&&e>0?Math.trunc(e):0;for(;t>127;)this.data.push(t%128|128),t=Math.floor(t/128);this.data.push(t)}constructor(){n._(this,"data",[])}}function p(e){return Array.isArray(e)}function v(e){return null==e?{}:e instanceof Uint8Array?{bytesValue:e}:function(e){return!!e&&"object"==typeof e&&!p(e)}(e)?{kvlistValue:{values:Object.entries(e).map(e=>{let[t,r]=e;return{key:t,value:v(r)}})}}:p(e)?{arrayValue:{values:e.map(e=>v(e))}}:"string"==typeof e?{stringValue:e}:"number"==typeof e?{doubleValue:e}:"boolean"==typeof e?{boolValue:e}:{}}function y(e,t){e.message(1,e=>function(e,t){for(const r of t.attributes)e.message(1,e=>b(e,r))}(e,t.resource));for(const r of t.scopeLogs)e.message(2,e=>g(e,r))}function g(e,t){e.message(1,e=>function(e,t){e.string(1,t.name),e.string(2,t.version)}(e,t.scope));for(const r of t.logRecords)e.message(2,e=>m(e,r))}function m(e,t){e.fixed64(1,t.timeUnixNano),e.message(5,e=>w(e,t.body));for(const r of t.attributes)e.message(6,e=>b(e,r))}function b(e,t){void 0!==t.key&&null!==t.key&&e.string(1,t.key),t.value&&e.message(2,e=>w(e,t.value))}function w(e,t){void 0===t.stringValue||null===t.stringValue?void 0===t.boolValue||null===t.boolValue?void 0===t.intValue||null===t.intValue?void 0===t.doubleValue||null===t.doubleValue?t.arrayValue?e.message(5,e=>{var r,n;return function(e,t){for(const r of t)e.message(1,e=>w(e,r))}(e,null!==(r=null===(n=t.arrayValue)||void 0===n?void 0:n.values)&&void 0!==r?r:[])}):t.kvlistValue?e.message(6,e=>{var r,n;return function(e,t){for(const r of t)e.message(1,e=>b(e,r))}(e,null!==(r=null===(n=t.kvlistValue)||void 0===n?void 0:n.values)&&void 0!==r?r:[])}):t.bytesValue&&e.bytes(7,t.bytesValue):e.double(4,t.doubleValue):e.int64(3,t.intValue):e.bool(2,t.boolValue):e.string(1,t.stringValue)}const O=e=>{u.log.error("Could not send protobuf data to BE - fetch",e)};class S{constructLogData(e){var t,r;return{resourceLogs:[{resource:{attributes:null!==(t=null===(r=v(this.config.getResourceAttributes()).kvlistValue)||void 0===r?void 0:r.values)&&void 0!==t?t:[]},scopeLogs:[{logRecords:e.map(e=>{var t,r;return{attributes:null!==(t=null===(r=v(e.attributes||{}).kvlistValue)||void 0===r?void 0:r.values)&&void 0!==t?t:[],body:v(e.body),timeUnixNano:e.timeUnixNano}}),scope:{name:"splunk.rr-web",version:l.VERSION}}]}]}}export(e,t){if(0===e.length)return;const r=this.config.headers?Object.assign({},d,this.config.headers):d,n=this.constructLogData(e);u.log.debug("OTLPProtoLogExporter: export",n);const o=new h;!function(e,t){for(const r of t.resourceLogs)e.message(1,e=>y(e,r))}(o,n),S.sendDataToBackend(o.finish(),this.config.beaconUrl,r,t)}static sendDataToBackend(e,t,r,n){const o=()=>{null==n||n()};if("hidden"===document.visibilityState){const n=(0,s.gzipSync)(e),i=n.byteLength<65536;E(t,{body:n,headers:r,keepalive:i},o,O)}else(0,c.compressAsync)(e).then(e=>{E(t,{body:e,headers:r},o,O)}).catch(e=>{u.log.error("Could not compress protobuf data",e)})}constructor(e){n._(this,"config",void 0),this.config=e}}const E=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new Promise((e,r)=>{o.context.with((0,i.suppressTracing)(o.context.active()),()=>{(async(e,t,r,n)=>{try{await(0,a.apiFetch)(e,{abortPreviousRequest:!1,doNotConvert:!0,doNotRetryOnDocumentHidden:!0,method:"POST",retryCount:5,...t}),u.log.debug("Protobuf data sent by fetch",{keepalive:t.keepalive}),r()}catch(e){n(e)}})(...t).then(e).catch(r)})})}},6580(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(t,{get resolveFailedReplayPersistence(){return r},get usesIndexedDBPersistence(){return n}});const r=e=>null==e||e,n=e=>!0===e||"indexeddb"===e},8308(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"SessionReplay",{enumerable:!0,get:function(){return n.SessionReplay}});const n=r(1072);r(9071)},9863(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSplunkRecorderConfig",{enumerable:!0,get:function(){return i}});const n=r(3713),o=r(65),i=e=>{const t=(0,o.migrateRRWebConfigToSplunkConfig)(e);return(0,n.mergeRecorderConfig)(e,t)}},4828(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});const n=r(5999);n._(r(8308),t),n._(r(9863),t),n._(r(2696),t)},3713(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"mergeRecorderConfig",{enumerable:!0,get:function(){return o}}),r(1717);const n=r(3201),o=(e,t)=>{const r={...t,...e};if(e.features||t.features){var o;const s={...t.features,...e.features};if((null===(o=e.features)||void 0===o?void 0:o.packAssets)&&(0,n.isObject)(e.features.packAssets)){var i;const r={...(null===(i=t.features)||void 0===i?void 0:i.packAssets)&&(0,n.isObject)(t.features.packAssets)?t.features.packAssets:{},...e.features.packAssets};Object.keys(r).length>0&&(s.packAssets=r)}Object.keys(s).length>0&&(r.features=s)}if(e.sensitivityRules||t.sensitivityRules){var s,a;const n=[...null!==(s=e.sensitivityRules)&&void 0!==s?s:[],...null!==(a=t.sensitivityRules)&&void 0!==a?a:[]];n.length>0&&(r.sensitivityRules=n)}return r}},65(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"migrateRRWebConfigToSplunkConfig",{enumerable:!0,get:function(){return o}}),r(1717),r(5166),r(7332);const n=r(3201),o=e=>({features:i(e),maskAllInputs:void 0===e.maskAllInput||Boolean(e.maskAllInput),sensitivityRules:s(e)}),i=e=>{let{collectFonts:t,inlineImages:r,inlineStylesheet:n,recordCanvas:o}=e;const i={},s={};return!0===o&&(i.canvas=!0),!0===n&&(s.styles=!0),!0===r&&(s.images=!0),!0===t&&(s.fonts=!0),Object.keys(s).length>0&&(i.packAssets=s),Object.keys(i).length>0?i:void 0},s=e=>{let{blockClass:t="rr-block",blockSelector:r,ignoreClass:n="rr-ignore",maskInputFn:o,maskInputOptions:i,maskTextClass:s="rr-mask",maskTextFn:l,maskTextSelector:d}=e;o&&c('Config option "maskInputFn" cannot be migrated automatically.'),l&&c('Config option "maskTextFn" cannot be migrated automatically.'),i&&c('Config option "maskInputOptions" cannot be migrated automatically.');const f=[...a(s,"mask"),...u(d,"mask"),...a(t,"exclude"),...u(r,"exclude"),...a(n,"mask")];return f.length>0?f:void 0},a=(e,t)=>{const r=[];return(0,n.isString)(e)?r.push({rule:t,selector:".".concat(e)}):c("Privacy class is a regex: ".concat(e,". Cannot be converted to a CSS selector.")),r},u=(e,t)=>(0,n.isString)(e)&&e.length>0?[{rule:t,selector:e}]:[],c=e=>{throw new Error("Config migration failed: ".concat(e))}},2696(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Recorder",{enumerable:!0,get:function(){return v}});const n=r(4333);r(7982),r(7833),r(7896),r(8748),r(4765),r(3976),r(5008),r(5803),r(4570),r(6249),r(9881),r(2039),r(2768),r(9357),r(5178),r(3994),r(1717);const o=r(4661),i=r(7865),s=r(2894),a=r(3201),u=r(6635),c=r(8308),l=r(9863),d=4096e3,f=new TextEncoder,h=new TextDecoder;function p(e,t,r){return{attributes:r,body:e,timeUnixNano:t}}class v{static clear(){c.SessionReplay&&(s.log.debug("Recorder: Clearing assets"),c.SessionReplay.clear())}destroy(){s.log.debug("Recorder destroy"),this.sessionReplay.destroy(),v.clear()}dismissPendingSegment(e){return this.sessionReplay.dismissPendingSegment(e)}emitPendingSegment(e,t){this.emitSegmentPayload(this.getSegmentPayload(e),t)}getPendingSegments(){return this.sessionReplay.getPendingSegments()}resume(){s.log.debug("Recorder resume"),this.start()}start(){s.log.debug("Recorder started"),"visible"===document.visibilityState&&this.sessionReplay.start(),this.isVisibilityListenerAttached||(document.addEventListener("visibilitychange",this.visibilityChangeHandler),this.isVisibilityListenerAttached=!0),this.isStoppedManually=!1}stop(){s.log.debug("Recorder stopped"),this.sessionReplay.stop(),this.isVisibilityListenerAttached&&(document.removeEventListener("visibilitychange",this.visibilityChangeHandler),this.isVisibilityListenerAttached=!1),this.isStoppedManually=!0}emitSegmentPayload(e,t){this.resolveAndEmitSegmentPayload(e,t).catch(e=>{s.log.error("Could not emit session replay segment",e)})}async getSegmentPayload(e){return this.useBinarySegments?await e.toBinary({tryCompress:!1}):e.toPlain()}async resolveAndEmitSegmentPayload(e,t){const r=await e;await this.onEmit({data:r,startTime:r.metadata.startUnixMs},t)}constructor({exporter:e,initRecorderConfig:t,persistSegments:r,sessionId:v,useBinarySegments:y}){var g,m,b,w,O,S,E,P,T,A,R,_,I,x,j,C,k;n._(this,"config",void 0),n._(this,"eventCounter",1),n._(this,"exporter",void 0),n._(this,"isStoppedManually",!0),n._(this,"isVisibilityListenerAttached",!1),n._(this,"logCounter",1),n._(this,"sessionReplay",void 0),n._(this,"useBinarySegments",void 0),n._(this,"onEmit",async(e,t)=>{const r=Math.floor(e.startTime),n=this.eventCounter;this.eventCounter+=1;const o="binary"===(i=e.data).metadata.format||"binary-deflate"===i.metadata.format;var i;let a;if(o){const t=e.data.data;a=new Uint8Array(await t.arrayBuffer())}else{const t=e.data.data;a=f.encode(JSON.stringify(t))}const u=Math.ceil(a.byteLength/d);for(let i=0;i<u;i++){const c=i*d,l=(i+1)*d,f={"rr-web.chunk":i+1,"rr-web.event":n,"rr-web.offset":this.logCounter,"rr-web.total-chunks":u,segmentMetadata:JSON.stringify(e.data.metadata)},v=a.slice(c,l),y=p(o?v:h.decode(v),r,f);this.logCounter+=1,s.log.debug("Emitting log",y),this.exporter.export([y],i===u-1?t:void 0)}}),n._(this,"onSegment",(e,t)=>{s.log.debug("Session replay segment: ",e),this.emitSegmentPayload(this.getSegmentPayload(e),t)}),n._(this,"startOnVisibilityChange",()=>{this.start()}),n._(this,"stopOnVisibilityChange",()=>{this.sessionReplay.stop()}),n._(this,"visibilityChangeHandler",()=>{"visible"===document.visibilityState?this.sessionReplay.isStarted||this.isStoppedManually||this.startOnVisibilityChange():this.sessionReplay.isStarted&&this.stopOnVisibilityChange()}),this.exporter=e,this.useBinarySegments=y,this.config={originalFetch:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new Promise((e,r)=>{o.context.with((0,i.suppressTracing)(o.context.active()),()=>{window.fetch(...t).then(e).catch(r)})})},...(0,l.getSplunkRecorderConfig)(t)};let L=null===(R=this.config.features)||void 0===R?void 0:R.backgroundServiceSrc;const M=null===(_=this.config.features)||void 0===_?void 0:_.backgroundService;void 0!==M&&((0,a.isBoolean)(M)?L=M?"https://cdn.observability.splunkcloud.com/o11y-gdi-rum/v".concat(u.VERSION,"/background-service.html"):void 0:(0,a.isString)(M)&&(L=M)),this.sessionReplay=new c.SessionReplay({bindingKey:v,features:{backgroundServiceSrc:L,cacheAssets:null===(g=null===(I=this.config.features)||void 0===I?void 0:I.cacheAssets)||void 0===g||g,canvas:null!==(m=null===(x=this.config.features)||void 0===x?void 0:x.canvas)&&void 0!==m&&m,iframes:null!==(b=null===(j=this.config.features)||void 0===j?void 0:j.iframes)&&void 0!==b&&b,packAssets:null!==(w=null===(C=this.config.features)||void 0===C?void 0:C.packAssets)&&void 0!==w?w:{hashAssetContent:!0,styles:!0},persistSegments:r,segmentFlushThresholdKb:4e3,video:null!==(O=null===(k=this.config.features)||void 0===k?void 0:k.video)&&void 0!==O&&O},logLevel:null!==(S=this.config.logLevel)&&void 0!==S?S:"error",maskAllInputs:null===(E=this.config.maskAllInputs)||void 0===E||E,maskAllText:null===(P=this.config.maskAllText)||void 0===P||P,maxExportIntervalMs:null!==(T=this.config.maxExportIntervalMs)&&void 0!==T?T:r?1e4:5e3,onSegment:this.onSegment,originalFetch:this.config.originalFetch,sensitivityRules:null!==(A=this.config.sensitivityRules)&&void 0!==A?A:[]})}}},2857(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(t,{get compressAsync(){return u},get isCompressionSupported(){return a}}),r(7982),r(7332);const n=r(5488),o=r(2894),i=r(8308);let s;const a=async()=>{if(void 0!==s)return s;if(window.Response&&"dpr"in window.Response)return!1;if(void 0===window.CompressionStream)return!1;try{const e=new ReadableStream({start(e){const t=new TextEncoder;e.enqueue(t.encode("test")),e.close()}});await l(e,"deflate")}catch{return s=!1,!1}return s=!0,!0},u=async e=>{if(!i.SessionReplay)return o.log.warn("SessionReplay module undefined, fallback to gzip."),c(e);if(!await a())return o.log.warn("Compression is not supported, fallback to gzip."),c(e);const t=new Blob([e]);return l(t.stream(),"gzip")},c=async e=>new Promise((t,r)=>{(0,n.gzip)(e,(e,n)=>{e?r(e):t(n)})}),l=async(e,t)=>{const r=new CompressionStream(t),n=e.pipeThrough(r);let o,i=3;for(;i>0;)try{const e=new Response(n);o=await e.blob();break}catch{}finally{i-=1}if(void 0===o)throw new Error("".concat("Compression"," failed"));return o}},3201(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),r(5999)._(r(5944),t)},5944(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(t,{get isBoolean(){return i},get isNumber(){return o},get isObject(){return n},get isScriptElement(){return s},get isString(){return r}});const r=e=>"string"==typeof e;function n(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}function o(e){return"number"==typeof e}function i(e){return"boolean"==typeof e}const s=e=>"SCRIPT"===e.nodeName},2762(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(t,{get getGlobal(){return i},get getSplunkRumVersion(){return s}});const r=Symbol.for("opentelemetry.js.api.1"),n="splunk.rum",o="".concat(n,".version");function i(){var e;return null===(e=globalThis[r])||void 0===e?void 0:e[n]}function s(){var e;return null===(e=globalThis[r])||void 0===e?void 0:e[o]}},6201(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});const n=r(5999);n._(r(2762),t),n._(r(2835),t),n._(r(7639),t),n._(r(9756),t)},2835(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDebugMode",{enumerable:!0,get:function(){return o}});const n=r(9756),o=()=>"true"===(0,n.safelyGetLocalStorage)("splunk_session_recorder_debug_mode")},7639(e,t,r){function n(e){const t=e.split("-")[0],r=t.split(".");return{exactVersion:"v".concat(t),majorVersion:"v".concat(r[0]),minorVersion:"v".concat(r[0],".").concat(r[1])}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseVersion",{enumerable:!0,get:function(){return n}}),r(4603)},9756(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(t,{get safelyGetLocalStorage(){return r},get safelyRemoveFromLocalStorage(){return o},get safelySetLocalStorage(){return n}});const r=e=>{let t=null;try{t=window.localStorage.getItem(e)}catch{}return t},n=(e,t)=>{try{return window.localStorage.setItem(e,t),!0}catch{return!1}},o=e=>{try{window.localStorage.removeItem(e)}catch{}}},6635(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"VERSION",{enumerable:!0,get:function(){return r}});const r="3.2.0"},9071(e,t,r){e.exports=r.p+"background-service.html"},5488(e,t){var r={},n=function(e,t,n,o,i){var s=new Worker(r[t]||(r[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return s.onmessage=function(e){var t=e.data,r=t.$e$;if(r){var n=new Error(r[0]);n.code=r[1],n.stack=r[2],i(n,null)}else i(null,t)},s.postMessage(n,o),s},o=Uint8Array,i=Uint16Array,s=Int32Array,a=new o([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),u=new o([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),c=new o([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l=function(e,t){for(var r=new i(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var o=new s(r[30]);for(n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)o[a]=a-r[n]<<5|n;return{b:r,r:o}},d=l(a,2),f=d.b,h=d.r;f[28]=258,h[258]=28;for(var p=l(u,0),v=p.b,y=p.r,g=new i(32768),m=0;m<32768;++m){var b=(43690&m)>>1|(21845&m)<<1;b=(61680&(b=(52428&b)>>2|(13107&b)<<2))>>4|(3855&b)<<4,g[m]=((65280&b)>>8|(255&b)<<8)>>1}var w=function(e,t,r){for(var n=e.length,o=0,s=new i(t);o<n;++o)e[o]&&++s[e[o]-1];var a,u=new i(t);for(o=1;o<t;++o)u[o]=u[o-1]+s[o-1]<<1;if(r){a=new i(1<<t);var c=15-t;for(o=0;o<n;++o)if(e[o])for(var l=o<<4|e[o],d=t-e[o],f=u[e[o]-1]++<<d,h=f|(1<<d)-1;f<=h;++f)a[g[f]>>c]=l}else for(a=new i(n),o=0;o<n;++o)e[o]&&(a[o]=g[u[e[o]-1]++]>>15-e[o]);return a},O=new o(288);for(m=0;m<144;++m)O[m]=8;for(m=144;m<256;++m)O[m]=9;for(m=256;m<280;++m)O[m]=7;for(m=280;m<288;++m)O[m]=8;var S=new o(32);for(m=0;m<32;++m)S[m]=5;var E=w(O,9,0),P=w(O,9,1),T=w(S,5,0),A=w(S,5,1),R=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},_=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(7&t)&r},I=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(7&t)},x=function(e){return(e+7)/8|0},j=function(e,t,r){return(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length),new o(e.subarray(t,r))};t.FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14};var C=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],k=function(e,t,r){var n=new Error(t||C[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,k),!r)throw n;return n},L=function(e,t,r,n){var i=e.length,s=n?n.length:0;if(!i||t.f&&!t.l)return r||new o(0);var l=!r,d=l||2!=t.i,h=t.i;l&&(r=new o(3*i));var p=function(e){var t=r.length;if(e>t){var n=new o(Math.max(2*t,e));n.set(r),r=n}},y=t.f||0,g=t.p||0,m=t.b||0,b=t.l,O=t.d,S=t.m,E=t.n,T=8*i;do{if(!b){y=_(e,g,1);var C=_(e,g+1,3);if(g+=3,!C){var L=e[(G=x(g)+4)-4]|e[G-3]<<8,M=G+L;if(M>i){h&&k(0);break}d&&p(m+L),r.set(e.subarray(G,M),m),t.b=m+=L,t.p=g=8*M,t.f=y;continue}if(1==C)b=P,O=A,S=9,E=5;else if(2==C){var N=_(e,g,31)+257,D=_(e,g+10,15)+4,B=N+_(e,g+5,31)+1;g+=14;for(var U=new o(B),F=new o(19),W=0;W<D;++W)F[c[W]]=_(e,g+3*W,7);g+=3*D;var z=R(F),V=(1<<z)-1,H=w(F,z,1);for(W=0;W<B;){var G,q=H[_(e,g,V)];if(g+=15&q,(G=q>>4)<16)U[W++]=G;else{var K=0,$=0;for(16==G?($=3+_(e,g,3),g+=2,K=U[W-1]):17==G?($=3+_(e,g,7),g+=3):18==G&&($=11+_(e,g,127),g+=7);$--;)U[W++]=K}}var X=U.subarray(0,N),Y=U.subarray(N);S=R(X),E=R(Y),b=w(X,S,1),O=w(Y,E,1)}else k(1);if(g>T){h&&k(0);break}}d&&p(m+131072);for(var Q=(1<<S)-1,J=(1<<E)-1,Z=g;;Z=g){var ee=(K=b[I(e,g)&Q])>>4;if((g+=15&K)>T){h&&k(0);break}if(K||k(2),ee<256)r[m++]=ee;else{if(256==ee){Z=g,b=null;break}var te=ee-254;if(ee>264){var re=a[W=ee-257];te=_(e,g,(1<<re)-1)+f[W],g+=re}var ne=O[I(e,g)&J],oe=ne>>4;if(ne||k(3),g+=15&ne,Y=v[oe],oe>3&&(re=u[oe],Y+=I(e,g)&(1<<re)-1,g+=re),g>T){h&&k(0);break}d&&p(m+131072);var ie=m+te;if(m<Y){var se=s-Y,ae=Math.min(Y,ie);for(se+m<0&&k(3);m<ae;++m)r[m]=n[se+m]}for(;m<ie;++m)r[m]=r[m-Y]}}t.l=b,t.p=Z,t.b=m,t.f=y,b&&(y=1,t.m=S,t.d=O,t.n=E)}while(!y);return m!=r.length&&l?j(r,0,m):r.subarray(0,m)},M=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},N=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},D=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var s=r.length,a=r.slice();if(!s)return{t:H,l:0};if(1==s){var u=new o(r[0].s+1);return u[r[0].s]=1,{t:u,l:1}}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var c=r[0],l=r[1],d=0,f=1,h=2;for(r[0]={s:-1,f:c.f+l.f,l:c,r:l};f!=s-1;)c=r[r[d].f<r[h].f?d++:h++],l=r[d!=f&&r[d].f<r[h].f?d++:h++],r[f++]={s:-1,f:c.f+l.f,l:c,r:l};var p=a[0].s;for(n=1;n<s;++n)a[n].s>p&&(p=a[n].s);var v=new i(p+1),y=B(r[f-1],v,0);if(y>t){n=0;var g=0,m=y-t,b=1<<m;for(a.sort(function(e,t){return v[t.s]-v[e.s]||e.f-t.f});n<s;++n){var w=a[n].s;if(!(v[w]>t))break;g+=b-(1<<y-v[w]),v[w]=t}for(g>>=m;g>0;){var O=a[n].s;v[O]<t?g-=1<<t-v[O]++-1:++n}for(;n>=0&&g;--n){var S=a[n].s;v[S]==t&&(--v[S],++g)}y=t}return{t:new o(v),l:y}},B=function(e,t,r){return-1==e.s?Math.max(B(e.l,t,r+1),B(e.r,t,r+1)):t[e.s]=r},U=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new i(++t),n=0,o=e[0],s=1,a=function(e){r[n++]=e},u=1;u<=t;++u)if(e[u]==o&&u!=t)++s;else{if(!o&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(o),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(o);s=1,o=e[u]}return{c:r.subarray(0,n),n:t}},F=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},W=function(e,t,r){var n=r.length,o=x(t+2);e[o]=255&n,e[o+1]=n>>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var i=0;i<n;++i)e[o+i+4]=r[i];return 8*(o+4+n)},z=function(e,t,r,n,o,s,l,d,f,h,p){M(t,p++,r),++o[256];for(var v=D(o,15),y=v.t,g=v.l,m=D(s,15),b=m.t,P=m.l,A=U(y),R=A.c,_=A.n,I=U(b),x=I.c,j=I.n,C=new i(19),k=0;k<R.length;++k)++C[31&R[k]];for(k=0;k<x.length;++k)++C[31&x[k]];for(var L=D(C,7),B=L.t,z=L.l,V=19;V>4&&!B[c[V-1]];--V);var H,G,q,K,$=h+5<<3,X=F(o,O)+F(s,S)+l,Y=F(o,y)+F(s,b)+l+14+3*V+F(C,B)+2*C[16]+3*C[17]+7*C[18];if(f>=0&&$<=X&&$<=Y)return W(t,p,e.subarray(f,f+h));if(M(t,p,1+(Y<X)),p+=2,Y<X){H=w(y,g,0),G=y,q=w(b,P,0),K=b;var Q=w(B,z,0);for(M(t,p,_-257),M(t,p+5,j-1),M(t,p+10,V-4),p+=14,k=0;k<V;++k)M(t,p+3*k,B[c[k]]);p+=3*V;for(var J=[R,x],Z=0;Z<2;++Z){var ee=J[Z];for(k=0;k<ee.length;++k){var te=31&ee[k];M(t,p,Q[te]),p+=B[te],te>15&&(M(t,p,ee[k]>>5&127),p+=ee[k]>>12)}}}else H=E,G=O,q=T,K=S;for(k=0;k<d;++k){var re=n[k];if(re>255){N(t,p,H[257+(te=re>>18&31)]),p+=G[te+257],te>7&&(M(t,p,re>>23&31),p+=a[te]);var ne=31&re;N(t,p,q[ne]),p+=K[ne],ne>3&&(N(t,p,re>>5&8191),p+=u[ne])}else N(t,p,H[re]),p+=G[re]}return N(t,p,H[256]),p+G[256]},V=new s([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),H=new o(0),G=function(e,t,r,n,c,l){var d=l.z||e.length,f=new o(n+d+5*(1+Math.ceil(d/7e3))+c),p=f.subarray(n,f.length-c),v=l.l,g=7&(l.r||0);if(t){g&&(p[0]=l.r>>3);for(var m=V[t-1],b=m>>13,w=8191&m,O=(1<<r)-1,S=l.p||new i(32768),E=l.h||new i(O+1),P=Math.ceil(r/3),T=2*P,A=function(t){return(e[t]^e[t+1]<<P^e[t+2]<<T)&O},R=new s(25e3),_=new i(288),I=new i(32),C=0,k=0,L=l.i||0,M=0,N=l.w||0,D=0;L+2<d;++L){var B=A(L),U=32767&L,F=E[B];if(S[U]=F,E[B]=U,N<=L){var H=d-L;if((C>7e3||M>24576)&&(H>423||!v)){g=z(e,p,0,R,_,I,k,M,D,L-D,g),M=C=k=0,D=L;for(var G=0;G<286;++G)_[G]=0;for(G=0;G<30;++G)I[G]=0}var q=2,K=0,$=w,X=U-F&32767;if(H>2&&B==A(L-X))for(var Y=Math.min(b,H)-1,Q=Math.min(32767,L),J=Math.min(258,H);X<=Q&&--$&&U!=F;){if(e[L+q]==e[L+q-X]){for(var Z=0;Z<J&&e[L+Z]==e[L+Z-X];++Z);if(Z>q){if(q=Z,K=X,Z>Y)break;var ee=Math.min(X,Z-2),te=0;for(G=0;G<ee;++G){var re=L-X+G&32767,ne=re-S[re]&32767;ne>te&&(te=ne,F=re)}}}X+=(U=F)-(F=S[U])&32767}if(K){R[M++]=268435456|h[q]<<18|y[K];var oe=31&h[q],ie=31&y[K];k+=a[oe]+u[ie],++_[257+oe],++I[ie],N=L+q,++C}else R[M++]=e[L],++_[e[L]]}}for(L=Math.max(L,N);L<d;++L)R[M++]=e[L],++_[e[L]];g=z(e,p,v,R,_,I,k,M,D,L-D,g),v||(l.r=7&g|p[g/8|0]<<3,g-=7,l.h=E,l.p=S,l.i=L,l.w=N)}else{for(L=l.w||0;L<d+v;L+=65535){var se=L+65535;se>=d&&(p[g/8|0]=v,se=d),g=W(p,g+1,e.subarray(L,se))}l.i=d}return j(f,0,n+x(g)+c)},q=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&-306674912)^r>>>1;e[t]=r}return e}(),K=function(){var e=-1;return{p:function(t){for(var r=e,n=0;n<t.length;++n)r=q[255&r^t[n]]^r>>>8;e=r},d:function(){return~e}}},$=function(){var e=1,t=0;return{p:function(r){for(var n=e,o=t,i=0|r.length,s=0;s!=i;){for(var a=Math.min(s+2655,i);s<a;++s)o+=n+=r[s];n=(65535&n)+15*(n>>16),o=(65535&o)+15*(o>>16)}e=n,t=o},d:function(){return(255&(e%=65521))<<24|(65280&e)<<8|(255&(t%=65521))<<8|t>>8}}},X=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),a=new o(s.length+e.length);a.set(s),a.set(e,s.length),e=a,i.w=s.length}return G(e,null==t.level?6:t.level,null==t.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,r,n,i)},Y=function(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r},Q=function(e,t,r){for(var n=e(),o=e.toString(),i=o.slice(o.indexOf("[")+1,o.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<n.length;++s){var a=n[s],u=i[s];if("function"==typeof a){t+=";"+u+"=";var c=a.toString();if(a.prototype)if(-1!=c.indexOf("[native code]")){var l=c.indexOf(" ",8)+1;t+=c.slice(l,c.indexOf("(",l))}else for(var d in t+=c,a.prototype)t+=";"+u+".prototype."+d+"="+a.prototype[d].toString();else t+=c}else r[u]=a}return t},J=[],Z=function(e,t,r,o){if(!J[r]){for(var i="",s={},a=e.length-1,u=0;u<a;++u)i=Q(e[u],i,s);J[r]={c:Q(e[a],i,s),e:s}}var c=Y({},J[r].e);return n(J[r].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",r,c,function(e){var t=[];for(var r in e)e[r].buffer&&t.push((e[r]=new e[r].constructor(e[r])).buffer);return t}(c),o)},ee=function(){return[o,i,s,a,u,c,f,v,P,A,g,C,w,R,_,I,x,j,k,L,Ie,se,ae]},te=function(){return[o,i,s,a,u,c,h,y,E,O,T,S,g,V,H,w,M,N,D,B,U,F,W,z,x,j,G,X,Te,se]},re=function(){return[ve,me,pe,K,q]},ne=function(){return[ye,ge]},oe=function(){return[be,pe,$]},ie=function(){return[we]},se=function(e){return postMessage(e,[e.buffer])},ae=function(e){return e&&{out:e.size&&new o(e.size),dictionary:e.dictionary}},ue=function(e,t,r,n,o,i){var s=Z(r,n,o,function(e,t){s.terminate(),i(e,t)});return s.postMessage([e,t],t.consume?[e.buffer]:[]),function(){s.terminate()}},ce=function(e){return e.ondata=function(e,t){return postMessage([e,t],[e.buffer])},function(t){t.data.length?(e.push(t.data[0],t.data[1]),postMessage([t.data[0].length])):e.flush()}},le=function(e,t,r,n,o,i,s){var a,u=Z(e,n,o,function(e,r){e?(u.terminate(),t.ondata.call(t,e)):Array.isArray(r)?1==r.length?(t.queuedSize-=r[0],t.ondrain&&t.ondrain(r[0])):(r[1]&&u.terminate(),t.ondata.call(t,e,r[0],r[1])):s(r)});u.postMessage(r),t.queuedSize=0,t.push=function(e,r){t.ondata||k(5),a&&t.ondata(k(4,0,1),null,!!r),t.queuedSize+=e.length,u.postMessage([e,a=r],[e.buffer])},t.terminate=function(){u.terminate()},i&&(t.flush=function(){u.postMessage([])})},de=function(e,t){return e[t]|e[t+1]<<8},fe=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},he=function(e,t){return fe(e,t)+4294967296*fe(e,t+4)},pe=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},ve=function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&pe(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}},ye=function(e){31==e[0]&&139==e[1]&&8==e[2]||k(6,"invalid gzip data");var t=e[3],r=10;4&t&&(r+=2+(e[10]|e[11]<<8));for(var n=(t>>3&1)+(t>>4&1);n>0;n-=!e[r++]);return r+(2&t)},ge=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},me=function(e){return 10+(e.filename?e.filename.length+1:0)},be=function(e,t){var r=t.level,n=0==r?0:r<6?1:9==r?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var o=$();o.p(t.dictionary),pe(e,2,o.d())}},we=function(e,t){return(8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31)&&k(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&k(6,"invalid zlib data: "+(32&e[1]?"need":"unexpected")+" dictionary"),2+(e[1]>>3&4)};function Oe(e,t){return"function"==typeof e&&(t=e,e={}),this.ondata=t,e}var Se=function(){function e(e,t){if("function"==typeof e&&(t=e,e={}),this.ondata=t,this.o=e||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new o(98304),this.o.dictionary){var r=this.o.dictionary.subarray(-32768);this.b.set(r,32768-r.length),this.s.i=32768-r.length}}return e.prototype.p=function(e,t){this.ondata(X(e,this.o,0,0,this.s),t)},e.prototype.push=function(e,t){this.ondata||k(5),this.s.l&&k(4);var r=e.length+this.s.z;if(r>this.b.length){if(r>2*this.b.length-32768){var n=new o(-32768&r);n.set(this.b.subarray(0,this.s.z)),this.b=n}var i=this.b.length-this.s.z;this.b.set(e.subarray(0,i),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(e.subarray(i),32768),this.s.z=e.length-i+32768,this.s.i=32766,this.s.w=32768}else this.b.set(e,this.s.z),this.s.z+=e.length;this.s.l=1&t,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2)},e.prototype.flush=function(){this.ondata||k(5),this.s.l&&k(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},e}();t.Deflate=Se;var Ee=function(){return function(e,t){le([te,function(){return[ce,Se]}],this,Oe.call(this,e,t),function(e){var t=new Se(e.data);onmessage=ce(t)},6,1)}}();function Pe(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&k(7),ue(e,t,[te],function(e){return se(Te(e.data[0],e.data[1]))},0,r)}function Te(e,t){return X(e,t||{},0,0)}t.AsyncDeflate=Ee,t.deflate=Pe,t.deflateSync=Te;var Ae=function(){function e(e,t){"function"==typeof e&&(t=e,e={}),this.ondata=t;var r=e&&e.dictionary&&e.dictionary.subarray(-32768);this.s={i:0,b:r?r.length:0},this.o=new o(32768),this.p=new o(0),r&&this.o.set(r)}return e.prototype.e=function(e){if(this.ondata||k(5),this.d&&k(4),this.p.length){if(e.length){var t=new o(this.p.length+e.length);t.set(this.p),t.set(e,this.p.length),this.p=t}}else this.p=e},e.prototype.c=function(e){this.s.i=+(this.d=e||!1);var t=this.s.b,r=L(this.p,this.s,this.o);this.ondata(j(r,t,this.s.b),this.d),this.o=j(r,this.s.b-32768),this.s.b=this.o.length,this.p=j(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}();t.Inflate=Ae;var Re=function(){return function(e,t){le([ee,function(){return[ce,Ae]}],this,Oe.call(this,e,t),function(e){var t=new Ae(e.data);onmessage=ce(t)},7,0)}}();function _e(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&k(7),ue(e,t,[ee],function(e){return se(Ie(e.data[0],ae(e.data[1])))},1,r)}function Ie(e,t){return L(e,{i:2},t&&t.out,t&&t.dictionary)}t.AsyncInflate=Re,t.inflate=_e,t.inflateSync=Ie;var xe=function(){function e(e,t){this.c=K(),this.l=0,this.v=1,Se.call(this,e,t)}return e.prototype.push=function(e,t){this.c.p(e),this.l+=e.length,Se.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var r=X(e,this.o,this.v&&me(this.o),t&&8,this.s);this.v&&(ve(r,this.o),this.v=0),t&&(pe(r,r.length-8,this.c.d()),pe(r,r.length-4,this.l)),this.ondata(r,t)},e.prototype.flush=function(){Se.prototype.flush.call(this)},e}();t.Gzip=xe,t.Compress=xe;var je=function(){return function(e,t){le([te,re,function(){return[ce,Se,xe]}],this,Oe.call(this,e,t),function(e){var t=new xe(e.data);onmessage=ce(t)},8,1)}}();function Ce(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&k(7),ue(e,t,[te,re,function(){return[ke]}],function(e){return se(ke(e.data[0],e.data[1]))},2,r)}function ke(e,t){t||(t={});var r=K(),n=e.length;r.p(e);var o=X(e,t,me(t),8),i=o.length;return ve(o,t),pe(o,i-8,r.d()),pe(o,i-4,n),o}t.AsyncGzip=je,t.AsyncCompress=je,t.gzip=Ce,t.compress=Ce,t.gzipSync=ke,t.compressSync=ke;var Le=function(){function e(e,t){this.v=1,this.r=0,Ae.call(this,e,t)}return e.prototype.push=function(e,t){if(Ae.prototype.e.call(this,e),this.r+=e.length,this.v){var r=this.p.subarray(this.v-1),n=r.length>3?ye(r):4;if(n>r.length){if(!t)return}else this.v>1&&this.onmember&&this.onmember(this.r-r.length);this.p=r.subarray(n),this.v=0}Ae.prototype.c.call(this,t),!this.s.f||this.s.l||t||(this.v=x(this.s.p)+9,this.s={i:0},this.o=new o(0),this.push(new o(0),t))},e}();t.Gunzip=Le;var Me=function(){return function(e,t){var r=this;le([ee,ne,function(){return[ce,Ae,Le]}],this,Oe.call(this,e,t),function(e){var t=new Le(e.data);t.onmember=function(e){return postMessage(e)},onmessage=ce(t)},9,0,function(e){return r.onmember&&r.onmember(e)})}}();function Ne(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&k(7),ue(e,t,[ee,ne,function(){return[De]}],function(e){return se(De(e.data[0],e.data[1]))},3,r)}function De(e,t){var r=ye(e);return r+8>e.length&&k(6,"invalid gzip data"),L(e.subarray(r,-8),{i:2},t&&t.out||new o(ge(e)),t&&t.dictionary)}t.AsyncGunzip=Me,t.gunzip=Ne,t.gunzipSync=De;var Be=function(){function e(e,t){this.c=$(),this.v=1,Se.call(this,e,t)}return e.prototype.push=function(e,t){this.c.p(e),Se.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var r=X(e,this.o,this.v&&(this.o.dictionary?6:2),t&&4,this.s);this.v&&(be(r,this.o),this.v=0),t&&pe(r,r.length-4,this.c.d()),this.ondata(r,t)},e.prototype.flush=function(){Se.prototype.flush.call(this)},e}();t.Zlib=Be;var Ue=function(){return function(e,t){le([te,oe,function(){return[ce,Se,Be]}],this,Oe.call(this,e,t),function(e){var t=new Be(e.data);onmessage=ce(t)},10,1)}}();function Fe(e,t){t||(t={});var r=$();r.p(e);var n=X(e,t,t.dictionary?6:2,4);return be(n,t),pe(n,n.length-4,r.d()),n}t.AsyncZlib=Ue,t.zlib=function(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&k(7),ue(e,t,[te,oe,function(){return[Fe]}],function(e){return se(Fe(e.data[0],e.data[1]))},4,r)},t.zlibSync=Fe;var We=function(){function e(e,t){Ae.call(this,e,t),this.v=e&&e.dictionary?2:1}return e.prototype.push=function(e,t){if(Ae.prototype.e.call(this,e),this.v){if(this.p.length<6&&!t)return;this.p=this.p.subarray(we(this.p,this.v-1)),this.v=0}t&&(this.p.length<4&&k(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),Ae.prototype.c.call(this,t)},e}();t.Unzlib=We;var ze=function(){return function(e,t){le([ee,ie,function(){return[ce,Ae,We]}],this,Oe.call(this,e,t),function(e){var t=new We(e.data);onmessage=ce(t)},11,0)}}();function Ve(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&k(7),ue(e,t,[ee,ie,function(){return[He]}],function(e){return se(He(e.data[0],ae(e.data[1])))},5,r)}function He(e,t){return L(e.subarray(we(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}t.AsyncUnzlib=ze,t.unzlib=Ve,t.unzlibSync=He;var Ge=function(){function e(e,t){this.o=Oe.call(this,e,t)||{},this.G=Le,this.I=Ae,this.Z=We}return e.prototype.i=function(){var e=this;this.s.ondata=function(t,r){e.ondata(t,r)}},e.prototype.push=function(e,t){if(this.ondata||k(5),this.s)this.s.push(e,t);else{if(this.p&&this.p.length){var r=new o(this.p.length+e.length);r.set(this.p),r.set(e,this.p.length)}else this.p=e;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,t),this.p=null)}},e}();t.Decompress=Ge;var qe=function(){function e(e,t){Ge.call(this,e,t),this.queuedSize=0,this.G=Me,this.I=Re,this.Z=ze}return e.prototype.i=function(){var e=this;this.s.ondata=function(t,r,n){e.ondata(t,r,n)},this.s.ondrain=function(t){e.queuedSize-=t,e.ondrain&&e.ondrain(t)}},e.prototype.push=function(e,t){this.queuedSize+=e.length,Ge.prototype.push.call(this,e,t)},e}();t.AsyncDecompress=qe,t.decompress=function(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&k(7),31==e[0]&&139==e[1]&&8==e[2]?Ne(e,t,r):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?_e(e,t,r):Ve(e,t,r)},t.decompressSync=function(e,t){return 31==e[0]&&139==e[1]&&8==e[2]?De(e,t):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?Ie(e,t):He(e,t)};var Ke=function(e,t,r,n){for(var i in e){var s=e[i],a=t+i,u=n;Array.isArray(s)&&(u=Y(n,s[1]),s=s[0]),s instanceof o?r[a]=[s,u]:(r[a+="/"]=[new o(0),u],Ke(s,a,r,n))}},$e="undefined"!=typeof TextEncoder&&new TextEncoder,Xe="undefined"!=typeof TextDecoder&&new TextDecoder,Ye=0;try{Xe.decode(H,{stream:!0}),Ye=1}catch(e){}var Qe=function(e){for(var t="",r=0;;){var n=e[r++],o=(n>127)+(n>223)+(n>239);if(r+o>e.length)return{s:t,r:j(e,r-1)};o?3==o?(n=((15&n)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536,t+=String.fromCharCode(55296|n>>10,56320|1023&n)):t+=1&o?String.fromCharCode((31&n)<<6|63&e[r++]):String.fromCharCode((15&n)<<12|(63&e[r++])<<6|63&e[r++]):t+=String.fromCharCode(n)}},Je=function(){function e(e){this.ondata=e,Ye?this.t=new TextDecoder:this.p=H}return e.prototype.push=function(e,t){if(this.ondata||k(5),t=!!t,this.t)return this.ondata(this.t.decode(e,{stream:!0}),t),void(t&&(this.t.decode().length&&k(8),this.t=null));this.p||k(4);var r=new o(this.p.length+e.length);r.set(this.p),r.set(e,this.p.length);var n=Qe(r),i=n.s,s=n.r;t?(s.length&&k(8),this.p=null):this.p=s,this.ondata(i,t)},e}();t.DecodeUTF8=Je;var Ze=function(){function e(e){this.ondata=e}return e.prototype.push=function(e,t){this.ondata||k(5),this.d&&k(4),this.ondata(et(e),this.d=t||!1)},e}();function et(e,t){if(t){for(var r=new o(e.length),n=0;n<e.length;++n)r[n]=e.charCodeAt(n);return r}if($e)return $e.encode(e);var i=e.length,s=new o(e.length+(e.length>>1)),a=0,u=function(e){s[a++]=e};for(n=0;n<i;++n){if(a+5>s.length){var c=new o(a+8+(i-n<<1));c.set(s),s=c}var l=e.charCodeAt(n);l<128||t?u(l):l<2048?(u(192|l>>6),u(128|63&l)):l>55295&&l<57344?(u(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++n))>>18),u(128|l>>12&63),u(128|l>>6&63),u(128|63&l)):(u(224|l>>12),u(128|l>>6&63),u(128|63&l))}return j(s,0,a)}function tt(e,t){if(t){for(var r="",n=0;n<e.length;n+=16384)r+=String.fromCharCode.apply(null,e.subarray(n,n+16384));return r}if(Xe)return Xe.decode(e);var o=Qe(e),i=o.s;return(r=o.r).length&&k(8),i}t.EncodeUTF8=Ze,t.strToU8=et,t.strFromU8=tt;var rt=function(e){return 1==e?3:e<6?2:9==e?1:0},nt=function(e,t){return t+30+de(e,t+26)+de(e,t+28)},ot=function(e,t,r){var n=de(e,t+28),o=tt(e.subarray(t+46,t+46+n),!(2048&de(e,t+8))),i=t+46+n,s=fe(e,t+20),a=r&&4294967295==s?it(e,i):[s,fe(e,t+24),fe(e,t+42)],u=a[0],c=a[1],l=a[2];return[de(e,t+10),u,c,o,i+de(e,t+30)+de(e,t+32),l]},it=function(e,t){for(;1!=de(e,t);t+=4+de(e,t+2));return[he(e,t+12),he(e,t+4),he(e,t+20)]},st=function(e){var t=0;if(e)for(var r in e){var n=e[r].length;n>65535&&k(9),t+=n+4}return t},at=function(e,t,r,n,o,i,s,a){var u=n.length,c=r.extra,l=a&&a.length,d=st(c);pe(e,t,null!=s?33639248:67324752),t+=4,null!=s&&(e[t++]=20,e[t++]=r.os),e[t]=20,t+=2,e[t++]=r.flag<<1|(i<0&&8),e[t++]=o&&8,e[t++]=255&r.compression,e[t++]=r.compression>>8;var f=new Date(null==r.mtime?Date.now():r.mtime),h=f.getFullYear()-1980;if((h<0||h>119)&&k(10),pe(e,t,h<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>1),t+=4,-1!=i&&(pe(e,t,r.crc),pe(e,t+4,i<0?-i-2:i),pe(e,t+8,r.size)),pe(e,t+12,u),pe(e,t+14,d),t+=16,null!=s&&(pe(e,t,l),pe(e,t+6,r.attrs),pe(e,t+10,s),t+=14),e.set(n,t),t+=u,d)for(var p in c){var v=c[p],y=v.length;pe(e,t,+p),pe(e,t+2,y),e.set(v,t+4),t+=4+y}return l&&(e.set(a,t),t+=l),t},ut=function(e,t,r,n,o){pe(e,t,101010256),pe(e,t+8,r),pe(e,t+10,r),pe(e,t+12,n),pe(e,t+16,o)},ct=function(){function e(e){this.filename=e,this.c=K(),this.size=0,this.compression=0}return e.prototype.process=function(e,t){this.ondata(null,e,t)},e.prototype.push=function(e,t){this.ondata||k(5),this.c.p(e),this.size+=e.length,t&&(this.crc=this.c.d()),this.process(e,t||!1)},e}();t.ZipPassThrough=ct;var lt=function(){function e(e,t){var r=this;t||(t={}),ct.call(this,e),this.d=new Se(t,function(e,t){r.ondata(null,e,t)}),this.compression=8,this.flag=rt(t.level)}return e.prototype.process=function(e,t){try{this.d.push(e,t)}catch(e){this.ondata(e,null,t)}},e.prototype.push=function(e,t){ct.prototype.push.call(this,e,t)},e}();t.ZipDeflate=lt;var dt=function(){function e(e,t){var r=this;t||(t={}),ct.call(this,e),this.d=new Ee(t,function(e,t,n){r.ondata(e,t,n)}),this.compression=8,this.flag=rt(t.level),this.terminate=this.d.terminate}return e.prototype.process=function(e,t){this.d.push(e,t)},e.prototype.push=function(e,t){ct.prototype.push.call(this,e,t)},e}();t.AsyncZipDeflate=dt;var ft=function(){function e(e){this.ondata=e,this.u=[],this.d=1}return e.prototype.add=function(e){var t=this;if(this.ondata||k(5),2&this.d)this.ondata(k(4+8*(1&this.d),0,1),null,!1);else{var r=et(e.filename),n=r.length,i=e.comment,s=i&&et(i),a=n!=e.filename.length||s&&i.length!=s.length,u=n+st(e.extra)+30;n>65535&&this.ondata(k(11,0,1),null,!1);var c=new o(u);at(c,0,e,r,a,-1);var l=[c],d=function(){for(var e=0,r=l;e<r.length;e++){var n=r[e];t.ondata(null,n,!1)}l=[]},f=this.d;this.d=0;var h=this.u.length,p=Y(e,{f:r,u:a,o:s,t:function(){e.terminate&&e.terminate()},r:function(){if(d(),f){var e=t.u[h+1];e?e.r():t.d=1}f=1}}),v=0;e.ondata=function(r,n,i){if(r)t.ondata(r,n,i),t.terminate();else if(v+=n.length,l.push(n),i){var s=new o(16);pe(s,0,134695760),pe(s,4,e.crc),pe(s,8,v),pe(s,12,e.size),l.push(s),p.c=v,p.b=u+v+16,p.crc=e.crc,p.size=e.size,f&&p.r(),f=1}else f&&d()},this.u.push(p)}},e.prototype.end=function(){var e=this;2&this.d?this.ondata(k(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&e.d&&(e.u.splice(-1,1),e.e())},t:function(){}}),this.d=3)},e.prototype.e=function(){for(var e=0,t=0,r=0,n=0,i=this.u;n<i.length;n++)r+=46+(c=i[n]).f.length+st(c.extra)+(c.o?c.o.length:0);for(var s=new o(r+22),a=0,u=this.u;a<u.length;a++){var c=u[a];at(s,e,c,c.f,c.u,-c.c-2,t,c.o),e+=46+c.f.length+st(c.extra)+(c.o?c.o.length:0),t+=c.b}ut(s,e,this.u.length,r,t),this.ondata(null,s,!0),this.d=2},e.prototype.terminate=function(){for(var e=0,t=this.u;e<t.length;e++)t[e].t();this.d=2},e}();t.Zip=ft,t.zip=function(e,t,r){r||(r=t,t={}),"function"!=typeof r&&k(7);var n={};Ke(e,"",n,t);var i=Object.keys(n),s=i.length,a=0,u=0,c=s,l=new Array(s),d=[],f=function(){for(var e=0;e<d.length;++e)d[e]()},h=function(e,t){gt(function(){r(e,t)})};gt(function(){h=r});var p=function(){var e=new o(u+22),t=a,r=u-a;u=0;for(var n=0;n<c;++n){var i=l[n];try{var s=i.c.length;at(e,u,i,i.f,i.u,s);var d=30+i.f.length+st(i.extra),f=u+d;e.set(i.c,f),at(e,a,i,i.f,i.u,s,u,i.m),a+=16+d+(i.m?i.m.length:0),u=f+s}catch(e){return h(e,null)}}ut(e,a,l.length,r,t),h(null,e)};s||p();for(var v=function(e){var t=i[e],r=n[t],o=r[0],c=r[1],v=K(),y=o.length;v.p(o);var g=et(t),m=g.length,b=c.comment,w=b&&et(b),O=w&&w.length,S=st(c.extra),E=0==c.level?0:8,P=function(r,n){if(r)f(),h(r,null);else{var o=n.length;l[e]=Y(c,{size:y,crc:v.d(),c:n,f:g,m:w,u:m!=t.length||w&&b.length!=O,compression:E}),a+=30+m+S+o,u+=76+2*(m+S)+(O||0)+o,--s||p()}};if(m>65535&&P(k(11,0,1),null),E)if(y<16e4)try{P(null,Te(o,c))}catch(e){P(e,null)}else d.push(Pe(o,c,P));else P(null,o)},y=0;y<c;++y)v(y);return f},t.zipSync=function(e,t){t||(t={});var r={},n=[];Ke(e,"",r,t);var i=0,s=0;for(var a in r){var u=r[a],c=u[0],l=u[1],d=0==l.level?0:8,f=(P=et(a)).length,h=l.comment,p=h&&et(h),v=p&&p.length,y=st(l.extra);f>65535&&k(11);var g=d?Te(c,l):c,m=g.length,b=K();b.p(c),n.push(Y(l,{size:c.length,crc:b.d(),c:g,f:P,m:p,u:f!=a.length||p&&h.length!=v,o:i,compression:d})),i+=30+f+y+m,s+=76+2*(f+y)+(v||0)+m}for(var w=new o(s+22),O=i,S=s-i,E=0;E<n.length;++E){var P=n[E];at(w,P.o,P,P.f,P.u,P.c.length);var T=30+P.f.length+st(P.extra);w.set(P.c,P.o+T),at(w,i,P,P.f,P.u,P.c.length,P.o,P.m),i+=16+T+(P.m?P.m.length:0)}return ut(w,i,n.length,S,O),w};var ht=function(){function e(){}return e.prototype.push=function(e,t){this.ondata(null,e,t)},e.compression=0,e}();t.UnzipPassThrough=ht;var pt=function(){function e(){var e=this;this.i=new Ae(function(t,r){e.ondata(null,t,r)})}return e.prototype.push=function(e,t){try{this.i.push(e,t)}catch(e){this.ondata(e,null,t)}},e.compression=8,e}();t.UnzipInflate=pt;var vt=function(){function e(e,t){var r=this;t<32e4?this.i=new Ae(function(e,t){r.ondata(null,e,t)}):(this.i=new Re(function(e,t,n){r.ondata(e,t,n)}),this.terminate=this.i.terminate)}return e.prototype.push=function(e,t){this.i.terminate&&(e=j(e,0)),this.i.push(e,t)},e.compression=8,e}();t.AsyncUnzipInflate=vt;var yt=function(){function e(e){this.onfile=e,this.k=[],this.o={0:ht},this.p=H}return e.prototype.push=function(e,t){var r=this;if(this.onfile||k(5),this.p||k(4),this.c>0){var n=Math.min(this.c,e.length),i=e.subarray(0,n);if(this.c-=n,this.d?this.d.push(i,!this.c):this.k[0].push(i),(e=e.subarray(n)).length)return this.push(e,t)}else{var s=0,a=0,u=void 0,c=void 0;this.p.length?e.length?((c=new o(this.p.length+e.length)).set(this.p),c.set(e,this.p.length)):c=this.p:c=e;for(var l=c.length,d=this.c,f=d&&this.d,h=function(){var e,t=fe(c,a);if(67324752==t){s=1,u=a,p.d=null,p.c=0;var n=de(c,a+6),o=de(c,a+8),i=2048&n,f=8&n,h=de(c,a+26),v=de(c,a+28);if(l>a+30+h+v){var y=[];p.k.unshift(y),s=2;var g,m=fe(c,a+18),b=fe(c,a+22),w=tt(c.subarray(a+30,a+=30+h),!i);4294967295==m?(e=f?[-2]:it(c,a),m=e[0],b=e[1]):f&&(m=-1),a+=v,p.c=m;var O={name:w,compression:o,start:function(){if(O.ondata||k(5),m){var e=r.o[o];e||O.ondata(k(14,"unknown compression type "+o,1),null,!1),(g=m<0?new e(w):new e(w,m,b)).ondata=function(e,t,r){O.ondata(e,t,r)};for(var t=0,n=y;t<n.length;t++){var i=n[t];g.push(i,!1)}r.k[0]==y&&r.c?r.d=g:g.push(H,!0)}else O.ondata(null,H,!0)},terminate:function(){g&&g.terminate&&g.terminate()}};m>=0&&(O.size=m,O.originalSize=b),p.onfile(O)}return"break"}if(d){if(134695760==t)return u=a+=12+(-2==d&&8),s=3,p.c=0,"break";if(33639248==t)return u=a-=4,s=3,p.c=0,"break"}},p=this;a<l-4&&"break"!==h();++a);if(this.p=H,d<0){var v=s?c.subarray(0,u-12-(-2==d&&8)-(134695760==fe(c,u-16)&&4)):c.subarray(0,a);f?f.push(v,!!s):this.k[+(2==s)].push(v)}if(2&s)return this.push(c.subarray(a),t);this.p=c.subarray(a)}t&&(this.c&&k(13),this.p=null)},e.prototype.register=function(e){this.o[e.compression]=e},e}();t.Unzip=yt;var gt="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};t.unzip=function(e,t,r){r||(r=t,t={}),"function"!=typeof r&&k(7);var n=[],i=function(){for(var e=0;e<n.length;++e)n[e]()},s={},a=function(e,t){gt(function(){r(e,t)})};gt(function(){a=r});for(var u=e.length-22;101010256!=fe(e,u);--u)if(!u||e.length-u>65558)return a(k(13,0,1),null),i;var c=de(e,u+8);if(c){var l=c,d=fe(e,u+16),f=4294967295==d||65535==l;if(f){var h=fe(e,u-12);(f=101075792==fe(e,h))&&(l=c=fe(e,h+32),d=fe(e,h+48))}for(var p=t&&t.filter,v=function(t){var r=ot(e,d,f),u=r[0],l=r[1],h=r[2],v=r[3],y=r[4],g=r[5],m=nt(e,g);d=y;var b=function(e,t){e?(i(),a(e,null)):(t&&(s[v]=t),--c||a(null,s))};if(!p||p({name:v,size:l,originalSize:h,compression:u}))if(u)if(8==u){var w=e.subarray(m,m+l);if(h<524288||l>.8*h)try{b(null,Ie(w,{out:new o(h)}))}catch(e){b(e,null)}else n.push(_e(w,{size:h},b))}else b(k(14,"unknown compression type "+u,1),null);else b(null,j(e,m,m+l));else b(null,null)},y=0;y<l;++y)v()}else a(null,{});return i},t.unzipSync=function(e,t){for(var r={},n=e.length-22;101010256!=fe(e,n);--n)(!n||e.length-n>65558)&&k(13);var i=de(e,n+8);if(!i)return{};var s=fe(e,n+16),a=4294967295==s||65535==i;if(a){var u=fe(e,n-12);(a=101075792==fe(e,u))&&(i=fe(e,u+32),s=fe(e,u+48))}for(var c=t&&t.filter,l=0;l<i;++l){var d=ot(e,s,a),f=d[0],h=d[1],p=d[2],v=d[3],y=d[4],g=d[5],m=nt(e,g);s=y,c&&!c({name:v,size:h,originalSize:p,compression:f})||(f?8==f?r[v]=Ie(e.subarray(m,m+h),{out:new o(p)}):k(14,"unknown compression type "+f):r[v]=j(e,m,m+h))}return r}},5934(e,t,r){var n=r(5969),o=r(5275),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},6840(e,t,r){var n=r(8017),o=r(5275),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a constructor")}},8286(e,t,r){var n=r(9081),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},1801(e,t,r){var n=r(7759),o=r(596),i=r(2837).f,s=n("unscopables"),a=Array.prototype;void 0===a[s]&&i(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},6539(e,t,r){var n=r(7165),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},4467(e,t,r){var n=r(1142),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},1951(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},4430(e,t,r){var n=r(2100),o=r(1094),i=r(3132),s=n.ArrayBuffer,a=n.TypeError;e.exports=s&&o(s.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==i(e))throw new a("ArrayBuffer expected");return e.byteLength}},9490(e,t,r){var n=r(2100),o=r(1951),i=r(4430),s=n.DataView;e.exports=function(e){if(!o||0!==i(e))return!1;try{return new s(e),!1}catch(e){return!0}}},1229(e,t,r){var n=r(9490),o=TypeError;e.exports=function(e){if(n(e))throw new o("ArrayBuffer is detached");return e}},8632(e,t,r){var n=r(2100),o=r(2244),i=r(1094),s=r(1628),a=r(1229),u=r(4430),c=r(5159),l=r(400),d=n.structuredClone,f=n.ArrayBuffer,h=n.DataView,p=Math.max,v=Math.min,y=f.prototype,g=h.prototype,m=o(y.slice),b=i(y,"resizable","get"),w=i(y,"maxByteLength","get"),O=o(g.getInt8),S=o(g.setInt8);e.exports=(l||c)&&function(e,t,r){var n,o=u(e),i=void 0===t?o:s(t),y=!b||!b(e);if(a(e),l&&(e=d(e,{transfer:[e]}),o===i&&(r||y)))return e;if(o>=i&&(!r||y))n=m(e,0,i);else{var g=r&&!y&&w?{maxByteLength:p(i,w(e))}:void 0;n=new f(i,g);for(var E=new h(e),P=new h(n),T=v(i,o),A=0;A<T;A++)S(P,A,O(E,A))}return l||c(e),n}},4832(e,t,r){var n,o,i,s=r(1951),a=r(8224),u=r(2100),c=r(5969),l=r(1142),d=r(253),f=r(8023),h=r(5275),p=r(1519),v=r(3828),y=r(4966),g=r(7165),m=r(1959),b=r(1779),w=r(7759),O=r(3524),S=r(9265),E=S.enforce,P=S.get,T=u.Int8Array,A=T&&T.prototype,R=u.Uint8ClampedArray,_=R&&R.prototype,I=T&&m(T),x=A&&m(A),j=Object.prototype,C=u.TypeError,k=w("toStringTag"),L=O("TYPED_ARRAY_TAG"),M="TypedArrayConstructor",N=s&&!!b&&"Opera"!==f(u.opera),D=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},F=function(e){var t=m(e);if(l(t)){var r=P(t);return r&&d(r,M)?r[M]:F(t)}},W=function(e){if(!l(e))return!1;var t=f(e);return d(B,t)||d(U,t)};for(n in B)(i=(o=u[n])&&o.prototype)?E(i)[M]=o:N=!1;for(n in U)(i=(o=u[n])&&o.prototype)&&(E(i)[M]=o);if((!N||!c(I)||I===Function.prototype)&&(I=function(){throw new C("Incorrect invocation")},N))for(n in B)u[n]&&b(u[n],I);if((!N||!x||x===j)&&(x=I.prototype,N))for(n in B)u[n]&&b(u[n].prototype,x);if(N&&m(_)!==x&&b(_,x),a&&!d(x,k))for(n in D=!0,y(x,k,{configurable:!0,get:function(){return l(this)?this[L]:void 0}}),B)u[n]&&p(u[n].prototype,L,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:D&&L,aTypedArray:function(e){if(W(e))return e;throw new C("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||g(I,e)))return e;throw new C(h(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(a){if(r)for(var o in B){var i=u[o];if(i&&d(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}x[e]&&!r||v(x,e,r?t:N&&A[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,o;if(a){if(b){if(r)for(n in B)if((o=u[n])&&d(o,e))try{delete o[e]}catch(e){}if(I[e]&&!r)return;try{return v(I,e,r?t:N&&I[e]||t)}catch(e){}}for(n in B)!(o=u[n])||o[e]&&!r||v(o,e,t)}},getTypedArrayConstructor:F,isView:function(e){if(!l(e))return!1;var t=f(e);return"DataView"===t||d(B,t)||d(U,t)},isTypedArray:W,TypedArray:I,TypedArrayPrototype:x}},9710(e,t,r){var n=r(2100),o=r(2244),i=r(8224),s=r(1951),a=r(8226),u=r(1519),c=r(4966),l=r(4699),d=r(7091),f=r(6539),h=r(6399),p=r(1628),v=r(6421),y=r(2462),g=r(1959),m=r(1779),b=r(1169),w=r(8348),O=r(7571),S=r(3720),E=r(915),P=r(9265),T=a.PROPER,A=a.CONFIGURABLE,R="ArrayBuffer",_="DataView",I="prototype",x="Wrong index",j=P.getterFor(R),C=P.getterFor(_),k=P.set,L=n[R],M=L,N=M&&M[I],D=n[_],B=D&&D[I],U=Object.prototype,F=n.Array,W=n.RangeError,z=o(b),V=o([].reverse),H=y.pack,G=y.unpack,q=function(e){return[255&e]},K=function(e){return[255&e,e>>8&255]},$=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},X=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Y=function(e){return H(v(e),23,4)},Q=function(e){return H(e,52,8)},J=function(e,t,r){c(e[I],t,{configurable:!0,get:function(){return r(this)[t]}})},Z=function(e,t,r,n){var o=C(e),i=p(r),s=!!n;if(i+t>o.byteLength)throw new W(x);var a=o.bytes,u=i+o.byteOffset,c=w(a,u,u+t);return s?c:V(c)},ee=function(e,t,r,n,o,i){var s=C(e),a=p(r),u=n(+o),c=!!i;if(a+t>s.byteLength)throw new W(x);for(var l=s.bytes,d=a+s.byteOffset,f=0;f<t;f++)l[d+f]=u[c?f:t-f-1]};if(s){var te=T&&L.name!==R;d(function(){L(1)})&&d(function(){new L(-1)})&&!d(function(){return new L,new L(1.5),new L(NaN),1!==L.length||te&&!A})?te&&A&&u(L,"name",R):((M=function(e){return f(this,N),O(new L(p(e)),this,M)})[I]=N,N.constructor=M,S(M,L)),m&&g(B)!==U&&m(B,U);var re=new D(new M(2)),ne=o(B.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||l(B,{setInt8:function(e,t){ne(this,e,t<<24>>24)},setUint8:function(e,t){ne(this,e,t<<24>>24)}},{unsafe:!0})}else N=(M=function(e){f(this,N);var t=p(e);k(this,{type:R,bytes:z(F(t),0),byteLength:t}),i||(this.byteLength=t,this.detached=!1)})[I],B=(D=function(e,t,r){f(this,B),f(e,N);var n=j(e),o=n.byteLength,s=h(t);if(s<0||s>o)throw new W("Wrong offset");if(s+(r=void 0===r?o-s:p(r))>o)throw new W("Wrong length");k(this,{type:_,buffer:e,byteLength:r,byteOffset:s,bytes:n.bytes}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=s)})[I],i&&(J(M,"byteLength",j),J(D,"buffer",C),J(D,"byteLength",C),J(D,"byteOffset",C)),l(B,{getInt8:function(e){return Z(this,1,e)[0]<<24>>24},getUint8:function(e){return Z(this,1,e)[0]},getInt16:function(e){var t=Z(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Z(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return X(Z(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return X(Z(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return G(Z(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return G(Z(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){ee(this,1,e,q,t)},setUint8:function(e,t){ee(this,1,e,q,t)},setInt16:function(e,t){ee(this,2,e,K,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){ee(this,2,e,K,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){ee(this,4,e,$,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){ee(this,4,e,$,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){ee(this,4,e,Y,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){ee(this,8,e,Q,t,arguments.length>2&&arguments[2])}});E(M,R),E(D,_),e.exports={ArrayBuffer:M,DataView:D}},1169(e,t,r){var n=r(3017),o=r(7326),i=r(4450);e.exports=function(e){for(var t=n(this),r=i(t),s=arguments.length,a=o(s>1?arguments[1]:void 0,r),u=s>2?arguments[2]:void 0,c=void 0===u?r:o(u,r);c>a;)t[a++]=e;return t}},8886(e,t,r){var n=r(4450);e.exports=function(e,t,r){for(var o=0,i=arguments.length>2?r:n(t),s=new e(i);i>o;)s[o]=t[o++];return s}},88(e,t,r){var n=r(716),o=r(9529),i=r(3017),s=r(6387),a=r(3485),u=r(8017),c=r(4450),l=r(8460),d=r(7875),f=r(8461),h=r(5031),p=r(2591),v=Array;e.exports=function(e){var t=u(this),r=arguments.length,y=r>1?arguments[1]:void 0,g=void 0!==y;g&&(y=n(y,r>2?arguments[2]:void 0));var m,b,w,O,S,E,P=i(e),T=h(P),A=0;if(!T||this===v&&a(T))for(m=c(P),b=t?new this(m):v(m);m>A;A++)E=g?y(P[A],A):P[A],l(b,A,E);else for(b=t?new this:[],S=(O=f(P,T)).next;!(w=o(S,O)).done;A++){E=g?s(O,y,[w.value,A],!0):w.value;try{l(b,A,E)}catch(e){p(O,"throw",e)}}return d(b,A),b}},5501(e,t,r){var n=r(2377),o=r(7326),i=r(4450),s=function(e){return function(t,r,s){var a=n(t),u=i(a);if(0===u)return!e&&-1;var c,l=o(s,u);if(e&&r!=r){for(;u>l;)if((c=a[l++])!=c)return!0}else for(;u>l;l++)if((e||l in a)&&a[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},1195(e,t,r){var n=r(716),o=r(2243),i=r(3017),s=r(4450),a=function(e){var t=1===e;return function(r,a,u){for(var c,l=i(r),d=o(l),f=s(d),h=n(a,u);f-- >0;)if(h(c=d[f],f,l))switch(e){case 0:return c;case 1:return f}return t?-1:void 0}};e.exports={findLast:a(0),findLastIndex:a(1)}},129(e,t,r){var n=r(716),o=r(2243),i=r(3017),s=r(4450),a=r(737),u=r(8460),c=function(e){var t=1===e,r=2===e,c=3===e,l=4===e,d=6===e,f=7===e,h=5===e||d;return function(p,v,y){for(var g,m,b=i(p),w=o(b),O=s(w),S=n(v,y),E=0,P=0,T=t?a(p,O):r||f?a(p,0):void 0;O>E;E++)if((h||E in w)&&(m=S(g=w[E],E,b),e))if(t)u(T,E,m);else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return E;case 2:u(T,P++,g)}else switch(e){case 4:return!1;case 7:u(T,P++,g)}return d?-1:c||l?l:T}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},7875(e,t,r){var n=r(8224),o=r(7484),i=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(o(e)&&!s(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},8348(e,t,r){var n=r(2244);e.exports=n([].slice)},332(e,t,r){var n=r(8348),o=Math.floor,i=function(e,t){var r=e.length;if(r<8)for(var s,a,u=1;u<r;){for(a=u,s=e[u];a&&t(e[a-1],s)>0;)e[a]=e[--a];a!==u++&&(e[a]=s)}else for(var c=o(r/2),l=i(n(e,0,c),t),d=i(n(e,c),t),f=l.length,h=d.length,p=0,v=0;p<f||v<h;)e[p+v]=p<f&&v<h?t(l[p],d[v])<=0?l[p++]:d[v++]:p<f?l[p++]:d[v++];return e};e.exports=i},6269(e,t,r){var n=r(7484),o=r(8017),i=r(1142),s=r(7759)("species"),a=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===a||n(t.prototype))||i(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?a:t}},737(e,t,r){var n=r(6269);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},6387(e,t,r){var n=r(4467),o=r(2591);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},3928(e,t,r){var n=r(7759)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[n]=function(){return this},Array.from(s,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},3132(e,t,r){var n=r(2244),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},8023(e,t,r){var n=r(1048),o=r(5969),i=r(3132),s=r(7759)("toStringTag"),a=Object,u="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?r:u?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},3720(e,t,r){var n=r(253),o=r(8619),i=r(1055),s=r(2837);e.exports=function(e,t,r){for(var a=o(t),u=s.f,c=i.f,l=0;l<a.length;l++){var d=a[l];n(e,d)||r&&n(r,d)||u(e,d,c(t,d))}}},3479(e,t,r){var n=r(7091);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},3373(e){e.exports=function(e,t){return{value:e,done:t}}},1519(e,t,r){var n=r(8224),o=r(2837),i=r(2112);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},2112(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8460(e,t,r){var n=r(8224),o=r(2837),i=r(2112);e.exports=function(e,t,r){n?o.f(e,t,i(0,r)):e[t]=r}},4966(e,t,r){var n=r(1679),o=r(2837);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},3828(e,t,r){var n=r(5969),o=r(2837),i=r(1679),s=r(4021);e.exports=function(e,t,r,a){a||(a={});var u=a.enumerable,c=void 0!==a.name?a.name:t;if(n(r)&&i(r,c,a),a.global)u?e[t]=r:s(t,r);else{try{a.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},4699(e,t,r){var n=r(3828);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},4021(e,t,r){var n=r(2100),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},8224(e,t,r){var n=r(7091);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},5159(e,t,r){var n,o,i,s,a=r(2100),u=r(6281),c=r(400),l=a.structuredClone,d=a.ArrayBuffer,f=a.MessageChannel,h=!1;if(c)h=function(e){l(e,{transfer:[e]})};else if(d)try{f||(n=u("worker_threads"))&&(f=n.MessageChannel),f&&(o=new f,i=new d(2),s=function(e){o.port1.postMessage(null,[e])},2===i.byteLength&&(s(i),0===i.byteLength&&(h=s)))}catch(e){}e.exports=h},7907(e,t,r){var n=r(2100),o=r(1142),i=n.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},6569(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}},5916(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},2084(e,t,r){var n=r(7907)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},4499(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5185(e,t,r){var n=r(6379).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},3871(e,t,r){var n=r(6379);e.exports=/MSIE|Trident/.test(n)},7277(e,t,r){var n=r(6379);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},2052(e,t,r){var n=r(6379);e.exports=/ipad|iphone|ipod/i.test(n)&&/applewebkit/i.test(n)},4189(e,t,r){var n=r(5123);e.exports="NODE"===n},6424(e,t,r){var n=r(6379);e.exports=/web0s(?!.*chrome)/i.test(n)},6379(e,t,r){var n=r(2100).navigator,o=n&&n.userAgent;e.exports=o?String(o):""},8395(e,t,r){var n,o,i=r(2100),s=r(6379),a=i.process,u=i.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},6419(e,t,r){var n=r(6379).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},5123(e,t,r){var n=r(2100),o=r(6379),i=r(3132),s=function(e){return o.slice(0,e.length)===e};e.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},2989(e,t,r){var n=r(2244),o=Error,i=n("".replace),s=String(new o("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,u=a.test(s);e.exports=function(e,t){if(u&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},8343(e,t,r){var n=r(1519),o=r(2989),i=r(7727),s=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(s?s(e,t):n(e,"stack",o(r,a)))}},7727(e,t,r){var n=r(7091),o=r(2112);e.exports=!n(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)})},3322(e,t,r){var n=r(2100),o=r(1055).f,i=r(1519),s=r(3828),a=r(4021),u=r(3720),c=r(9576);e.exports=function(e,t){var r,l,d,f,h,p=e.target,v=e.global,y=e.stat;if(r=v?n:y?n[p]||a(p,{}):n[p]&&n[p].prototype)for(l in t){if(f=t[l],d=e.dontCallGetSet?(h=o(r,l))&&h.value:r[l],!c(v?l:p+(y?".":"#")+l,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;u(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),s(r,l,f,e)}}},7091(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},7861(e,t,r){var n=r(8100),o=Function.prototype,i=o.apply,s=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},716(e,t,r){var n=r(6608),o=r(5934),i=r(8100),s=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}},8100(e,t,r){var n=r(7091);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},9529(e,t,r){var n=r(8100),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},8226(e,t,r){var n=r(8224),o=r(253),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),u=a&&"something"===function(){}.name,c=a&&(!n||n&&s(i,"name").configurable);e.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},1094(e,t,r){var n=r(2244),o=r(5934);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},6608(e,t,r){var n=r(3132),o=r(2244);e.exports=function(e){if("Function"===n(e))return o(e)}},2244(e,t,r){var n=r(8100),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);e.exports=n?s:function(e){return function(){return i.apply(e,arguments)}}},6281(e,t,r){var n=r(2100),o=r(4189);e.exports=function(e){if(o){try{return n.process.getBuiltinModule(e)}catch(e){}try{return Function('return require("'+e+'")')()}catch(e){}}}},7851(e,t,r){var n=r(2100),o=r(5969);e.exports=function(e,t){return arguments.length<2?(r=n[e],o(r)?r:void 0):n[e]&&n[e][t];var r}},891(e){e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},5031(e,t,r){var n=r(8023),o=r(9794),i=r(9377),s=r(7505),a=r(7759)("iterator");e.exports=function(e){if(!i(e))return o(e,a)||o(e,"@@iterator")||s[n(e)]}},8461(e,t,r){var n=r(9529),o=r(5934),i=r(4467),s=r(5275),a=r(5031),u=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(o(r))return i(n(r,e));throw new u(s(e)+" is not iterable")}},9794(e,t,r){var n=r(5934),o=r(9377);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},2100(e,t,r){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},253(e,t,r){var n=r(2244),o=r(3017),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},2089(e){e.exports={}},9417(e){e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},7441(e,t,r){var n=r(7851);e.exports=n("document","documentElement")},513(e,t,r){var n=r(8224),o=r(7091),i=r(7907);e.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},2462(e){var t=Array,r=Math.abs,n=Math.pow,o=Math.floor,i=Math.log,s=Math.LN2;e.exports={pack:function(e,a,u){var c,l,d,f=t(u),h=8*u-a-1,p=(1<<h)-1,v=p>>1,y=23===a?n(2,-24)-n(2,-77):0,g=e<0||0===e&&1/e<0?1:0,m=0;for((e=r(e))!=e||e===1/0?(l=e!=e?1:0,c=p):(c=o(i(e)/s),e*(d=n(2,-c))<1&&(c--,d*=2),(e+=c+v>=1?y/d:y*n(2,1-v))*d>=2&&(c++,d/=2),c+v>=p?(l=0,c=p):c+v>=1?(l=(e*d-1)*n(2,a),c+=v):(l=e*n(2,v-1)*n(2,a),c=0));a>=8;)f[m++]=255&l,l/=256,a-=8;for(c=c<<a|l,h+=a;h>0;)f[m++]=255&c,c/=256,h-=8;return f[m-1]|=128*g,f},unpack:function(e,t){var r,o=e.length,i=8*o-t-1,s=(1<<i)-1,a=s>>1,u=i-7,c=o-1,l=e[c--],d=127&l;for(l>>=7;u>0;)d=256*d+e[c--],u-=8;for(r=d&(1<<-u)-1,d>>=-u,u+=t;u>0;)r=256*r+e[c--],u-=8;if(0===d)d=1-a;else{if(d===s)return r?NaN:l?-1/0:1/0;r+=n(2,t),d-=a}return(l?-1:1)*r*n(2,d-t)}}},2243(e,t,r){var n=r(2244),o=r(7091),i=r(3132),s=Object,a=n("".split);e.exports=o(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?a(e,""):s(e)}:s},7571(e,t,r){var n=r(5969),o=r(1142),i=r(1779);e.exports=function(e,t,r){var s,a;return i&&n(s=t.constructor)&&s!==r&&o(a=s.prototype)&&a!==r.prototype&&i(e,a),e}},7390(e,t,r){var n=r(2244),o=r(5969),i=r(6953),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},2212(e,t,r){var n=r(1142),o=r(1519);e.exports=function(e,t){n(t)&&"cause"in t&&o(e,"cause",t.cause)}},9265(e,t,r){var n,o,i,s=r(1922),a=r(2100),u=r(1142),c=r(1519),l=r(253),d=r(6953),f=r(5747),h=r(2089),p="Object already initialized",v=a.TypeError,y=a.WeakMap;if(s||d.state){var g=d.state||(d.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new v(p);return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var m=f("state");h[m]=!0,n=function(e,t){if(l(e,m))throw new v(p);return t.facade=e,c(e,m,t),t},o=function(e){return l(e,m)?e[m]:{}},i=function(e){return l(e,m)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=o(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return r}}}},3485(e,t,r){var n=r(7759),o=r(7505),i=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[i]===e)}},7484(e,t,r){var n=r(3132);e.exports=Array.isArray||function(e){return"Array"===n(e)}},1859(e,t,r){var n=r(8023);e.exports=function(e){var t=n(e);return"BigInt64Array"===t||"BigUint64Array"===t}},5969(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8017(e,t,r){var n=r(2244),o=r(7091),i=r(5969),s=r(8023),a=r(7851),u=r(7390),c=function(){},l=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=n(d.exec),h=!d.test(c),p=function(e){if(!i(e))return!1;try{return l(c,[],e),!0}catch(e){return!1}},v=function(e){if(!i(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(d,u(e))}catch(e){return!0}};v.sham=!0,e.exports=!l||o(function(){var e;return p(p.call)||!p(Object)||!p(function(){e=!0})||e})?v:p},9576(e,t,r){var n=r(7091),o=r(5969),i=/#|\.prototype\./,s=function(e,t){var r=u[a(e)];return r===l||r!==c&&(o(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},1131(e,t,r){var n=r(1142),o=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&o(e)===e}},9377(e){e.exports=function(e){return null==e}},1142(e,t,r){var n=r(5969);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},9081(e,t,r){var n=r(1142);e.exports=function(e){return n(e)||null===e}},4487(e){e.exports=!1},7998(e,t,r){var n=r(1142),o=r(9265).get;e.exports=function(e){if(!n(e))return!1;var t=o(e);return!!t&&"RawJSON"===t.type}},7161(e,t,r){var n=r(7851),o=r(5969),i=r(7165),s=r(6564),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,a(e))}},9824(e,t,r){var n=r(716),o=r(9529),i=r(4467),s=r(5275),a=r(3485),u=r(4450),c=r(7165),l=r(8461),d=r(5031),f=r(2591),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},v=p.prototype;e.exports=function(e,t,r){var y,g,m,b,w,O,S,E=r&&r.that,P=!(!r||!r.AS_ENTRIES),T=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),R=!(!r||!r.INTERRUPTED),_=n(t,E),I=function(e){var t=y;return y=void 0,t&&f(t,"normal"),new p(!0,e)},x=function(e){return P?(i(e),R?_(e[0],e[1],I):_(e[0],e[1])):R?_(e,I):_(e)};if(T)y=e.iterator;else if(A)y=e;else{if(!(g=d(e)))throw new h(s(e)+" is not iterable");if(a(g)){for(m=0,b=u(e);b>m;m++)if((w=x(e[m]))&&c(v,w))return w;return new p(!1)}y=l(e,g)}for(O=T?e.next:y.next;!(S=o(O,y)).done;){var j=S.value;try{w=x(j)}catch(e){if(!y)throw e;f(y,"throw",e)}if("object"==typeof w&&w&&c(v,w))return w}return new p(!1)}},669(e,t,r){var n=r(2591);e.exports=function(e,t,r){for(var o=e.length-1;o>=0;o--)if(void 0!==e[o])try{r=n(e[o].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r;return r}},2591(e,t,r){var n=r(9529),o=r(4467),i=r(9794);e.exports=function(e,t,r){var s,a;o(e);try{if(!(s=i(e,"return"))){if("throw"===t)throw r;return r}s=n(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw r;if(a)throw s;return o(s),r}},8182(e,t,r){var n=r(7117).IteratorPrototype,o=r(596),i=r(2112),s=r(915),a=r(7505),u=function(){return this};e.exports=function(e,t,r,c){var l=t+" Iterator";return e.prototype=o(n,{next:i(+!c,r)}),s(e,l,!1,!0),a[l]=u,e}},7082(e,t,r){var n=r(9529),o=r(596),i=r(1519),s=r(4699),a=r(7759),u=r(9265),c=r(9794),l=r(7117).IteratorPrototype,d=r(3373),f=r(2591),h=r(669),p=a("toStringTag"),v="IteratorHelper",y="WrapForValidIterator",g="normal",m="throw",b=u.set,w=function(e){var t=u.getterFor(e?y:v);return s(o(l),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return d(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:d(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),o=r.iterator,i=r.done;if(r.done=!0,e){var s=c(o,"return");return s?n(s,o):d(void 0,!0)}if(i)return d(void 0,!0);if(r.inner)try{f(r.inner.iterator,g)}catch(e){return f(o,m,e)}if(r.openIters)try{h(r.openIters,g)}catch(e){if(o)return f(o,m,e);throw e}return o&&f(o,g),d(void 0,!0)}})},O=w(!0),S=w(!1);i(S,p,"Iterator Helper"),e.exports=function(e,t,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=t?y:v,o.returnHandlerResult=!!r,o.nextHandler=e,o.counter=0,o.done=!1,b(this,o)};return n.prototype=t?O:S,n}},4132(e,t,r){var n=r(3322),o=r(9529),i=r(4487),s=r(8226),a=r(5969),u=r(8182),c=r(1959),l=r(1779),d=r(915),f=r(1519),h=r(3828),p=r(7759),v=r(7505),y=r(7117),g=s.PROPER,m=s.CONFIGURABLE,b=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,O=p("iterator"),S="keys",E="values",P="entries",T=function(){return this};e.exports=function(e,t,r,s,p,y,A){u(r,t,s);var R,_,I,x=function(e){if(e===p&&M)return M;if(!w&&e&&e in k)return k[e];switch(e){case S:case E:case P:return function(){return new r(this,e)}}return function(){return new r(this)}},j=t+" Iterator",C=!1,k=e.prototype,L=k[O]||k["@@iterator"]||p&&k[p],M=!w&&L||x(p),N="Array"===t&&k.entries||L;if(N&&(R=c(N.call(new e)))!==Object.prototype&&R.next&&(i||c(R)===b||(l?l(R,b):a(R[O])||h(R,O,T)),d(R,j,!0,!0),i&&(v[j]=T)),g&&p===E&&L&&L.name!==E&&(!i&&m?f(k,"name",E):(C=!0,M=function(){return o(L,this)})),p)if(_={values:x(E),keys:y?M:x(S),entries:x(P)},A)for(I in _)(w||C||!(I in k))&&h(k,I,_[I]);else n({target:t,proto:!0,forced:w||C},_);return i&&!A||k[O]===M||h(k,O,M,{name:p}),v[t]=M,_}},9632(e){e.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}},9441(e,t,r){var n=r(2100);e.exports=function(e,t){var r=n.Iterator,o=r&&r.prototype,i=o&&o[e],s=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(e){e instanceof t||(s=!1)}if(!s)return i}},7117(e,t,r){var n,o,i,s=r(7091),a=r(5969),u=r(1142),c=r(596),l=r(1959),d=r(3828),f=r(7759),h=r(4487),p=f("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):v=!0),!u(n)||s(function(){var e={};return n[p].call(e)!==e})?n={}:h&&(n=c(n)),a(n[p])||d(n,p,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},7505(e){e.exports={}},4450(e,t,r){var n=r(5378);e.exports=function(e){return n(e.length)}},1679(e,t,r){var n=r(2244),o=r(7091),i=r(5969),s=r(253),a=r(8224),u=r(8226).CONFIGURABLE,c=r(7390),l=r(9265),d=l.enforce,f=l.get,h=String,p=Object.defineProperty,v=n("".slice),y=n("".replace),g=n([].join),m=a&&!o(function(){return 8!==p(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===v(h(t),0,7)&&(t="["+y(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||u&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),m&&r&&s(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return s(n,"source")||(n.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return i(this)&&f(this).source||c(this)},"toString")},2744(e,t,r){var n=r(1138),o=r(2134),i=Math.abs;e.exports=function(e,t,r,s){var a=+e,u=i(a),c=n(a);if(u<s)return c*o(u/s/t)*s*t;var l=(1+t/2220446049250313e-31)*u,d=l-(l-u);return d>r||d!=d?c*(1/0):c*d}},6421(e,t,r){var n=r(2744);e.exports=Math.fround||function(e){return n(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},2134(e){var t=4503599627370496;e.exports=function(e){return e+t-t}},1138(e){e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},897(e){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},3535(e,t,r){var n,o,i,s,a,u=r(2100),c=r(7185),l=r(716),d=r(3853).set,f=r(8669),h=r(2052),p=r(7277),v=r(6424),y=r(4189),g=u.MutationObserver||u.WebKitMutationObserver,m=u.document,b=u.process,w=u.Promise,O=c("queueMicrotask");if(!O){var S=new f,E=function(){var e,t;for(y&&(e=b.domain)&&e.exit();t=S.get();)try{t()}catch(e){throw S.head&&n(),e}e&&e.enter()};h||y||v||!g||!m?!p&&w&&w.resolve?((s=w.resolve(void 0)).constructor=w,a=l(s.then,s),n=function(){a(E)}):y?n=function(){b.nextTick(E)}:(d=l(d,u),n=function(){d(E)}):(o=!0,i=m.createTextNode(""),new g(E).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),O=function(e){S.head||n(),S.add(e)}}e.exports=O},8567(e,t,r){var n=r(7091);e.exports=!n(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},6839(e,t,r){var n=r(5934),o=TypeError,i=function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw new o("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},1023(e,t,r){var n=r(8371);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},105(e,t,r){var n=r(8224),o=r(2244),i=r(9529),s=r(7091),a=r(1564),u=r(9297),c=r(153),l=r(3017),d=r(2243),f=Object.assign,h=Object.defineProperty,p=o([].concat);e.exports=!f||s(function(){if(n&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach(function(e){t[e]=e}),7!==f({},e)[r]||a(f({},t)).join("")!==o})?function(e,t){for(var r=l(e),o=arguments.length,s=1,f=u.f,h=c.f;o>s;)for(var v,y=d(arguments[s++]),g=f?p(a(y),f(y)):a(y),m=g.length,b=0;m>b;)v=g[b++],n&&!i(h,y,v)||(r[v]=y[v]);return r}:f},596(e,t,r){var n,o=r(4467),i=r(7997),s=r(4499),a=r(2089),u=r(7441),c=r(7907),l=r(5747),d="prototype",f="script",h=l("IE_PROTO"),p=function(){},v=function(e){return"<"+f+">"+e+"</"+f+">"},y=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&n?y(n):(t=c("iframe"),r="java"+f+":",t.style.display="none",u.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F):y(n);for(var o=s.length;o--;)delete g[d][s[o]];return g()};a[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[d]=o(e),r=new p,p[d]=null,r[h]=e):r=g(),void 0===t?r:i.f(r,t)}},7997(e,t,r){var n=r(8224),o=r(3266),i=r(2837),s=r(4467),a=r(2377),u=r(1564);t.f=n&&!o?Object.defineProperties:function(e,t){s(e);for(var r,n=a(t),o=u(t),c=o.length,l=0;c>l;)i.f(e,r=o[l++],n[r]);return e}},2837(e,t,r){var n=r(8224),o=r(513),i=r(3266),s=r(4467),a=r(5661),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",h="writable";t.f=n?i?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:d in r?r[d]:n[d],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(s(e),t=a(t),s(r),o)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},1055(e,t,r){var n=r(8224),o=r(9529),i=r(153),s=r(2112),a=r(2377),u=r(5661),c=r(253),l=r(513),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=a(e),t=u(t),l)try{return d(e,t)}catch(e){}if(c(e,t))return s(!o(i.f,e,t),e[t])}},1756(e,t,r){var n=r(4920),o=r(4499).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},9297(e,t){t.f=Object.getOwnPropertySymbols},1959(e,t,r){var n=r(253),o=r(5969),i=r(3017),s=r(5747),a=r(3479),u=s("IE_PROTO"),c=Object,l=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=i(e);if(n(t,u))return t[u];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof c?l:null}},7165(e,t,r){var n=r(2244);e.exports=n({}.isPrototypeOf)},4920(e,t,r){var n=r(2244),o=r(253),i=r(2377),s=r(5501).indexOf,a=r(2089),u=n([].push);e.exports=function(e,t){var r,n=i(e),c=0,l=[];for(r in n)!o(a,r)&&o(n,r)&&u(l,r);for(;t.length>c;)o(n,r=t[c++])&&(~s(l,r)||u(l,r));return l}},1564(e,t,r){var n=r(4920),o=r(4499);e.exports=Object.keys||function(e){return n(e,o)}},153(e,t){var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},1779(e,t,r){var n=r(1094),o=r(1142),i=r(6034),s=r(8286);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),s(n),o(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},5402(e,t,r){var n=r(9529),o=r(5969),i=r(1142),s=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&o(r=e.toString)&&!i(a=n(r,e)))return a;if(o(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&o(r=e.toString)&&!i(a=n(r,e)))return a;throw new s("Can't convert object to primitive value")}},8619(e,t,r){var n=r(7851),o=r(2244),i=r(1756),s=r(9297),a=r(4467),u=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=s.f;return r?u(t,r(e)):t}},5084(e,t,r){var n=r(2244),o=r(253),i=SyntaxError,s=parseInt,a=String.fromCharCode,u=n("".charAt),c=n("".slice),l=n(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},f=/^[\da-f]{4}$/i,h=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var r=!0,n="";t<e.length;){var p=u(e,t);if("\\"===p){var v=c(e,t,t+2);if(o(d,v))n+=d[v],t+=2;else{if("\\u"!==v)throw new i('Unknown escape sequence: "'+v+'"');var y=c(e,t+=2,t+4);if(!l(f,y))throw new i("Bad Unicode escape at: "+t);n+=a(s(y,16)),t+=4}}else{if('"'===p){r=!1,t++;break}if(l(h,p))throw new i("Bad control character in string literal at: "+t);n+=p,t++}}if(r)throw new i("Unterminated string at: "+t);return{value:n,end:t}}},8403(e,t,r){var n=r(2100);e.exports=n},2227(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},1288(e,t,r){var n=r(2100),o=r(2458),i=r(5969),s=r(9576),a=r(7390),u=r(7759),c=r(5123),l=r(4487),d=r(8395),f=o&&o.prototype,h=u("species"),p=!1,v=i(n.PromiseRejectionEvent),y=s("Promise",function(){var e=a(o),t=e!==String(o);if(!t&&66===d)return!0;if(l&&(!f.catch||!f.finally))return!0;if(!d||d<51||!/native code/.test(e)){var r=new o(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((r.constructor={})[h]=n,!(p=r.then(function(){})instanceof n))return!0}return!(t||"BROWSER"!==c&&"DENO"!==c||v)});e.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:p}},2458(e,t,r){var n=r(2100);e.exports=n.Promise},3642(e,t,r){var n=r(4467),o=r(1142),i=r(6839);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},4165(e,t,r){var n=r(2458),o=r(3928),i=r(1288).CONSTRUCTOR;e.exports=i||!o(function(e){n.all(e).then(void 0,function(){})})},6364(e,t,r){var n=r(2837).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},8669(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},5263(e,t,r){var n,o,i=r(9529),s=r(2244),a=r(8371),u=r(6879),c=r(8617),l=r(2365),d=r(596),f=r(9265).get,h=r(3583),p=r(7930),v=l("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,g=y,m=s("".charAt),b=s("".indexOf),w=s("".replace),O=s("".slice),S=(o=/b*/g,i(y,n=/a/,"a"),i(y,o,"a"),0!==n.lastIndex||0!==o.lastIndex),E=c.BROKEN_CARET,P=void 0!==/()??/.exec("")[1],T=function(e,t){for(var r=e.groups=d(null),n=0;n<t.length;n++){var o=t[n];r[o[0]]=e[o[1]]}};(S||P||E||h||p)&&(g=function(e){var t,r,n,o=this,s=f(o),c=a(e),l=s.raw;if(l)return l.lastIndex=o.lastIndex,t=i(g,l,c),o.lastIndex=l.lastIndex,t&&s.groups&&T(t,s.groups),t;var d=s.groups,h=E&&o.sticky,p=i(u,o),A=o.source,R=0,_=c;if(h){p=w(p,"y",""),-1===b(p,"g")&&(p+="g"),_=O(c,o.lastIndex);var I=o.lastIndex>0&&m(c,o.lastIndex-1);o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==I&&"\r"!==I&&"\u2028"!==I&&"\u2029"!==I)&&(A="(?: (?:"+A+"))",_=" "+_,R++),r=new RegExp("^(?:"+A+")",p)}P&&(r=new RegExp("^"+A+"$(?!\\s)",p)),S&&(n=o.lastIndex);var x=i(y,h?r:o,_);return h?x?(x.input=c,x[0]=O(x[0],R),x.index=o.lastIndex,o.lastIndex+=x[0].length):o.lastIndex=0:S&&x&&(o.lastIndex=o.global?x.index+x[0].length:n),P&&x&&x.length>1&&i(v,x[0],r,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(x[e]=void 0)}),x&&d&&T(x,d),x}),e.exports=g},6879(e,t,r){var n=r(4467);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},8617(e,t,r){var n=r(7091),o=r(2100).RegExp,i=n(function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),s=i||n(function(){return!o("a","y").sticky}),a=i||n(function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")});e.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:i}},3583(e,t,r){var n=r(7091),o=r(2100).RegExp;e.exports=n(function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})},7930(e,t,r){var n=r(7091),o=r(2100).RegExp;e.exports=n(function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},6034(e,t,r){var n=r(9377),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},7185(e,t,r){var n=r(2100),o=r(8224),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return n[e];var t=i(n,e);return t&&t.value}},6941(e,t,r){var n=r(7851),o=r(4966),i=r(7759),s=r(8224),a=i("species");e.exports=function(e){var t=n(e);s&&t&&!t[a]&&o(t,a,{configurable:!0,get:function(){return this}})}},915(e,t,r){var n=r(2837).f,o=r(253),i=r(7759)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},5747(e,t,r){var n=r(2365),o=r(3524),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},6953(e,t,r){var n=r(4487),o=r(2100),i=r(4021),s="__core-js_shared__",a=e.exports=o[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},2365(e,t,r){var n=r(6953);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},4737(e,t,r){var n=r(4467),o=r(6840),i=r(9377),s=r(7759)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||i(r=n(a)[s])?t:o(r)}},7504(e,t,r){var n=r(2244),o=r(6399),i=r(8371),s=r(6034),a=n("".charAt),u=n("".charCodeAt),c=n("".slice),l=function(e){return function(t,r){var n,l,d=i(s(t)),f=o(r),h=d.length;return f<0||f>=h?e?"":void 0:(n=u(d,f))<55296||n>56319||f+1===h||(l=u(d,f+1))<56320||l>57343?e?a(d,f):n:e?c(d,f,f+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},3465(e,t,r){var n=r(2244),o=2147483647,i=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",u=RangeError,c=n(s.exec),l=Math.floor,d=String.fromCharCode,f=n("".charCodeAt),h=n([].join),p=n([].push),v=n("".replace),y=n("".split),g=n("".toLowerCase),m=function(e){return e+22+75*(e<26)},b=function(e,t,r){var n=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),n+=36;return l(n+36*e/(e+38))},w=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=f(e,r++);if(o>=55296&&o<=56319&&r<n){var i=f(e,r++);56320==(64512&i)?p(t,((1023&o)<<10)+(1023&i)+65536):(p(t,o),r--)}else p(t,o)}return t}(e);var r,n,i=e.length,s=128,c=0,v=72;for(r=0;r<e.length;r++)(n=e[r])<128&&p(t,d(n));var y=t.length,g=y;for(y&&p(t,"-");g<i;){var w=o;for(r=0;r<e.length;r++)(n=e[r])>=s&&n<w&&(w=n);var O=g+1;if(w-s>l((o-c)/O))throw new u(a);for(c+=(w-s)*O,s=w,r=0;r<e.length;r++){if((n=e[r])<s&&++c>o)throw new u(a);if(n===s){for(var S=c,E=36;;){var P=E<=v?1:E>=v+26?26:E-v;if(S<P)break;var T=S-P,A=36-P;p(t,d(m(P+T%A))),S=l(T/A),E+=36}p(t,d(m(S))),v=b(c,O,g===y),c=0,g++}}c++,s++}return h(t,"")};e.exports=function(e){var t,r,n=[],o=y(v(g(e),s,"."),".");for(t=0;t<o.length;t++)r=o[t],p(n,c(i,r)?"xn--"+w(r):r);return h(n,".")}},400(e,t,r){var n=r(2100),o=r(7091),i=r(8395),s=r(5123),a=n.structuredClone;e.exports=!!a&&!o(function(){if("DENO"===s&&i>92||"NODE"===s&&i>94||"BROWSER"===s&&i>97)return!1;var e=new ArrayBuffer(8),t=a(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength})},1867(e,t,r){var n=r(8395),o=r(7091),i=r(2100).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},3853(e,t,r){var n,o,i,s,a=r(2100),u=r(7861),c=r(716),l=r(5969),d=r(253),f=r(7091),h=r(7441),p=r(8348),v=r(7907),y=r(7584),g=r(2052),m=r(4189),b=a.setImmediate,w=a.clearImmediate,O=a.process,S=a.Dispatch,E=a.Function,P=a.MessageChannel,T=a.String,A=0,R={},_="onreadystatechange";f(function(){n=a.location});var I=function(e){if(d(R,e)){var t=R[e];delete R[e],t()}},x=function(e){return function(){I(e)}},j=function(e){I(e.data)},C=function(e){a.postMessage(T(e),n.protocol+"//"+n.host)};b&&w||(b=function(e){y(arguments.length,1);var t=l(e)?e:E(e),r=p(arguments,1);return R[++A]=function(){u(t,void 0,r)},o(A),A},w=function(e){delete R[e]},m?o=function(e){O.nextTick(x(e))}:S&&S.now?o=function(e){S.now(x(e))}:P&&!g?(s=(i=new P).port2,i.port1.onmessage=j,o=c(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!f(C)?(o=C,a.addEventListener("message",j,!1)):o=_ in v("script")?function(e){h.appendChild(v("script"))[_]=function(){h.removeChild(this),I(e)}}:function(e){setTimeout(x(e),0)}),e.exports={set:b,clear:w}},7326(e,t,r){var n=r(6399),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},9938(e,t,r){var n=r(7341),o=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},1628(e,t,r){var n=r(6399),o=r(5378),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=o(t);if(t!==r)throw new i("Wrong length or index");return r}},2377(e,t,r){var n=r(2243),o=r(6034);e.exports=function(e){return n(o(e))}},6399(e,t,r){var n=r(897);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},5378(e,t,r){var n=r(6399),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},3017(e,t,r){var n=r(6034),o=Object;e.exports=function(e){return o(n(e))}},9977(e,t,r){var n=r(5746),o=RangeError;e.exports=function(e,t){var r=n(e);if(r%t)throw new o("Wrong offset");return r}},5746(e,t,r){var n=r(6399),o=RangeError;e.exports=function(e){var t=n(e);if(t<0)throw new o("The argument can't be less than 0");return t}},7341(e,t,r){var n=r(9529),o=r(1142),i=r(7161),s=r(9794),a=r(5402),u=r(7759),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,u=s(e,l);if(u){if(void 0===t&&(t="default"),r=n(u,e,t),!o(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},5661(e,t,r){var n=r(7341),o=r(7161);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},1048(e,t,r){var n={};n[r(7759)("toStringTag")]="z",e.exports="[object z]"===String(n)},8371(e,t,r){var n=r(8023),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},6835(e){var t=Math.floor;e.exports=function(e){var r=+e;if(r!=r||r<=0)return 0;if(r>=255)return 255;var n=t(r);return n+.5<r?n+1:r<n+.5||n%2==0?n:n+1}},5275(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},347(e,t,r){var n=r(3322),o=r(2100),i=r(9529),s=r(8224),a=r(9545),u=r(4832),c=r(9710),l=r(6539),d=r(2112),f=r(1519),h=r(1131),p=r(1628),v=r(9977),y=r(6835),g=r(5661),m=r(253),b=r(8023),w=r(1142),O=r(7161),S=r(596),E=r(7165),P=r(1779),T=r(1756).f,A=r(3167),R=r(129).forEach,_=r(6941),I=r(4966),x=r(2837),j=r(1055),C=r(8886),k=r(9265),L=r(7571),M=k.get,N=k.set,D=k.enforce,B=x.f,U=j.f,F=o.RangeError,W=c.ArrayBuffer,z=W.prototype,V=c.DataView,H=u.NATIVE_ARRAY_BUFFER_VIEWS,G=u.TYPED_ARRAY_TAG,q=u.TypedArray,K=u.TypedArrayPrototype,$=u.isTypedArray,X="BYTES_PER_ELEMENT",Y="Wrong length",Q=function(e,t){I(e,t,{configurable:!0,get:function(){return M(this)[t]}})},J=function(e){var t;return E(z,e)||"ArrayBuffer"===(t=b(e))||"SharedArrayBuffer"===t},Z=function(e,t){return $(e)&&!O(t)&&t in e&&h(+t)&&t>=0},ee=function(e,t){return t=g(t),Z(e,t)?d(2,e[t]):U(e,t)},te=function(e,t,r){return t=g(t),!(Z(e,t)&&w(r)&&m(r,"value"))||m(r,"get")||m(r,"set")||r.configurable||m(r,"writable")&&!r.writable||m(r,"enumerable")&&!r.enumerable?B(e,t,r):(e[t]=r.value,e)};s?(H||(j.f=ee,x.f=te,Q(K,"buffer"),Q(K,"byteOffset"),Q(K,"byteLength"),Q(K,"length")),n({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:ee,defineProperty:te}),e.exports=function(e,t,r){var s=e.match(/\d+/)[0]/8,u=e+(r?"Clamped":"")+"Array",c="get"+e,d="set"+e,h=o[u],g=h,m=g&&g.prototype,b={},O=function(e,t){B(e,t,{get:function(){return function(e,t){var r=M(e);return r.view[c](t*s+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var o=M(e);o.view[d](t*s+o.byteOffset,r?y(n):n,!0)}(this,t,e)},enumerable:!0})};H?a&&(g=t(function(e,t,r,n){return l(e,m),L(w(t)?J(t)?void 0!==n?new h(t,v(r,s),n):void 0!==r?new h(t,v(r,s)):new h(t):$(t)?C(g,t):i(A,g,t):new h(p(t)),e,g)}),P&&P(g,q),R(T(h),function(e){e in g||f(g,e,h[e])}),g.prototype=m):(g=t(function(e,t,r,n){l(e,m);var o,a,u,c=0,d=0;if(w(t)){if(!J(t))return $(t)?C(g,t):i(A,g,t);o=t,d=v(r,s);var f=t.byteLength;if(void 0===n){if(f%s)throw new F(Y);if((a=f-d)<0)throw new F(Y)}else if((a=p(n)*s)+d>f)throw new F(Y);u=a/s}else u=p(t),o=new W(a=u*s);for(N(e,{buffer:o,byteOffset:d,byteLength:a,length:u,view:new V(o)});c<u;)O(e,c++)}),P&&P(g,q),m=g.prototype=S(K)),m.constructor!==g&&f(m,"constructor",g),D(m).TypedArrayConstructor=g,G&&f(m,G,u);var E=g!==h;b[u]=g,n({global:!0,constructor:!0,forced:E,sham:!H},b),X in g||f(g,X,s),X in m||f(m,X,s),_(u)}):e.exports=function(){}},9545(e,t,r){var n=r(2100),o=r(7091),i=r(3928),s=r(4832).NATIVE_ARRAY_BUFFER_VIEWS,a=n.ArrayBuffer,u=n.Int8Array;e.exports=!s||!o(function(){u(1)})||!o(function(){new u(-1)})||!i(function(e){new u,new u(null),new u(1.5),new u(e)},!0)||o(function(){return 1!==new u(new a(2),1,void 0).length})},3167(e,t,r){var n=r(716),o=r(9529),i=r(5934),s=r(6840),a=r(3017),u=r(4450),c=r(8461),l=r(5031),d=r(3485),f=r(1859),h=r(4832).aTypedArrayConstructor,p=r(9938);e.exports=function(e){var t=s(this),r=arguments.length,v=r>1?arguments[1]:void 0,y=void 0!==v;y&&i(v);var g,m,b,w,O,S,E,P,T=a(e),A=l(T);if(A&&!d(A))for(P=(E=c(T,A)).next,T=[];!(S=o(P,E)).done;)T.push(S.value);for(y&&r>2&&(v=n(v,arguments[2])),m=u(T),b=new(h(t))(m),w=f(b),g=0;m>g;g++)O=y?v(T[g],g):T[g],b[g]=w?p(O):+O;return b}},3524(e,t,r){var n=r(2244),o=0,i=Math.random(),s=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+i,36)}},3204(e,t,r){var n=r(7091),o=r(7759),i=r(8224),s=r(4487),a=o("iterator");e.exports=!n(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),n+=r+e}),r.delete("a",2),r.delete("b",void 0),s&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!t.size&&(s||!i)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})},6564(e,t,r){var n=r(1867);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3266(e,t,r){var n=r(8224),o=r(7091);e.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},7584(e){var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},1922(e,t,r){var n=r(2100),o=r(5969),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},7759(e,t,r){var n=r(2100),o=r(2365),i=r(253),s=r(3524),a=r(1867),u=r(6564),c=n.Symbol,l=o("wks"),d=u?c.for||c:c&&c.withoutSetter||s;e.exports=function(e){return i(l,e)||(l[e]=a&&i(c,e)?c[e]:d("Symbol."+e)),l[e]}},7653(e,t,r){var n=r(7851),o=r(253),i=r(1519),s=r(7165),a=r(1779),u=r(3720),c=r(6364),l=r(7571),d=r(1023),f=r(2212),h=r(8343),p=r(8224),v=r(4487);e.exports=function(e,t,r,y){var g="stackTraceLimit",m=y?2:1,b=e.split("."),w=b[b.length-1],O=n.apply(null,b);if(O){var S=O.prototype;if(!v&&o(S,"cause")&&delete S.cause,!r)return O;var E=n("Error"),P=t(function(e,t){var r=d(y?t:e,void 0),n=y?new O(e):new O;return void 0!==r&&i(n,"message",r),h(n,P,n.stack,2),this&&s(S,this)&&l(n,this,P),arguments.length>m&&f(n,arguments[m]),n});if(P.prototype=S,"Error"!==w?a?a(P,E):u(P,E,{name:!0}):p&&g in O&&(c(P,O,g),c(P,O,"prepareStackTrace")),u(P,O),!v)try{S.name!==w&&i(S,"name",w),S.constructor=P}catch(e){}return P}}},7833(e,t,r){var n=r(8224),o=r(4966),i=r(9490),s=ArrayBuffer.prototype;n&&!("detached"in s)&&o(s,"detached",{configurable:!0,get:function(){return i(this)}})},8748(e,t,r){var n=r(3322),o=r(8632);o&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return o(this,arguments.length?arguments[0]:void 0,!1)}})},7896(e,t,r){var n=r(3322),o=r(8632);o&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return o(this,arguments.length?arguments[0]:void 0,!0)}})},1571(e,t,r){var n=r(3322),o=r(5501).includes,i=r(7091),s=r(1801),a=i(function(){return!Array(1).includes()}),u=i(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:a||u},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},148(e,t,r){var n=r(2377),o=r(1801),i=r(7505),s=r(9265),a=r(2837).f,u=r(4132),c=r(3373),l=r(4487),d=r(8224),f="Array Iterator",h=s.set,p=s.getterFor(f);e.exports=u(Array,"Array",function(e,t){h(this,{type:f,target:n(e),index:0,kind:t})},function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(r,!1);case"values":return c(t[r],!1)}return c([r,t[r]],!1)},"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&d&&"values"!==v.name)try{a(v,"name",{value:"values"})}catch(e){}},5166(e,t,r){var n=r(3322),o=r(3017),i=r(4450),s=r(7875),a=r(6569);n({target:"Array",proto:!0,arity:1,forced:r(7091)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=o(this),r=i(t),n=arguments.length;a(r+n);for(var u=0;u<n;u++)t[r]=arguments[u],r++;return s(t,r),r}})},3994(e,t,r){var n=r(3322),o=r(4450),i=r(6399),s=r(2377),a=r(8460),u=Array,c=RangeError;n({target:"Array",proto:!0,forced:function(){try{[].with({valueOf:function(){throw 4}},null)}catch(e){return 4!==e}}()},{with:function(e,t){var r=s(this),n=o(r),l=i(e),d=l<0?n+l:l;if(d>=n||d<0)throw new c("Incorrect index");for(var f=new u(n),h=0;h<n;h++)a(f,h,h===d?t:r[h]);return f}})},7332(e,t,r){var n=r(3322),o=r(2100),i=r(7861),s=r(7653),a="WebAssembly",u=o[a],c=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=s(e,t,c),n({global:!0,constructor:!0,arity:1,forced:c},r)},d=function(e,t){if(u&&u[e]){var r={};r[e]=s(a+"."+e,t,c),n({target:a,stat:!0,constructor:!0,arity:1,forced:c},r)}};l("Error",function(e){return function(t){return i(e,this,arguments)}}),l("EvalError",function(e){return function(t){return i(e,this,arguments)}}),l("RangeError",function(e){return function(t){return i(e,this,arguments)}}),l("ReferenceError",function(e){return function(t){return i(e,this,arguments)}}),l("SyntaxError",function(e){return function(t){return i(e,this,arguments)}}),l("TypeError",function(e){return function(t){return i(e,this,arguments)}}),l("URIError",function(e){return function(t){return i(e,this,arguments)}}),d("CompileError",function(e){return function(t){return i(e,this,arguments)}}),d("LinkError",function(e){return function(t){return i(e,this,arguments)}}),d("RuntimeError",function(e){return function(t){return i(e,this,arguments)}})},5731(e,t,r){var n=r(3322),o=r(2100),i=r(6539),s=r(4467),a=r(5969),u=r(1959),c=r(4966),l=r(8460),d=r(7091),f=r(253),h=r(7759),p=r(7117).IteratorPrototype,v=r(8224),y=r(4487),g="constructor",m="Iterator",b=h("toStringTag"),w=TypeError,O=o[m],S=y||!a(O)||O.prototype!==p||!d(function(){O({})}),E=function(){if(i(this,p),u(this)===p)throw new w("Abstract class Iterator not directly constructable")},P=function(e,t){v?c(p,e,{configurable:!0,get:function(){return t},set:function(t){if(s(this),this===p)throw new w("You can't redefine this property");f(this,e)?this[e]=t:l(this,e,t)}}):p[e]=t};f(p,b)||P(b,m),!S&&f(p,g)&&p[g]!==Object||P(g,E),E.prototype=p,n({global:!0,constructor:!0,forced:S},{Iterator:E})},7672(e,t,r){var n=r(3322),o=r(9529),i=r(9824),s=r(5934),a=r(4467),u=r(891),c=r(2591),l=r(9441)("every",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:l},{every:function(e){a(this);try{s(e)}catch(e){c(this,"throw",e)}if(l)return o(l,this,e);var t=u(this),r=0;return!i(t,function(t,n){if(!e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},6469(e,t,r){var n=r(3322),o=r(9529),i=r(5934),s=r(4467),a=r(891),u=r(7082),c=r(6387),l=r(4487),d=r(2591),f=r(9632),h=r(9441),p=!l&&!f("filter",function(){}),v=!l&&!p&&h("filter",TypeError),y=l||p||v,g=u(function(){for(var e,t,r=this.iterator,n=this.predicate,i=this.next;;){if(e=s(o(i,r)),this.done=!!e.done)return;if(t=e.value,c(r,n,[t,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:y},{filter:function(e){s(this);try{i(e)}catch(e){d(this,"throw",e)}return v?o(v,this,e):new g(a(this),{predicate:e})}})},7776(e,t,r){var n=r(3322),o=r(9529),i=r(9824),s=r(5934),a=r(4467),u=r(891),c=r(2591),l=r(9441)("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:l},{forEach:function(e){a(this);try{s(e)}catch(e){c(this,"throw",e)}if(l)return o(l,this,e);var t=u(this),r=0;i(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},5505(e,t,r){var n=r(3322),o=r(9529),i=r(5934),s=r(4467),a=r(891),u=r(7082),c=r(6387),l=r(2591),d=r(9632),f=r(9441),h=r(4487),p=!h&&!d("map",function(){}),v=!h&&!p&&f("map",TypeError),y=h||p||v,g=u(function(){var e=this.iterator,t=s(o(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:y},{map:function(e){s(this);try{i(e)}catch(e){l(this,"throw",e)}return v?o(v,this,e):new g(a(this),{mapper:e})}})},5178(e,t,r){var n=r(3322),o=r(7851),i=r(7861),s=r(9529),a=r(2244),u=r(7091),c=r(7484),l=r(5969),d=r(7998),f=r(7161),h=r(3132),p=r(8371),v=r(8348),y=r(5084),g=r(3524),m=r(1867),b=r(8567),w=String,O=o("JSON","stringify"),S=a(/./.exec),E=a("".charAt),P=a("".charCodeAt),T=a("".replace),A=a("".slice),R=a([].push),_=a(1.1.toString),I=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,C=g(),k=C.length,L=!m||u(function(){var e=o("Symbol")("stringify detection");return"[null]"!==O([e])||"{}"!==O({a:e})||"{}"!==O(Object(e))}),M=u(function(){return'"\\udf06\\ud834"'!==O("\udf06\ud834")||'"\\udead"'!==O("\udead")}),N=L?function(e,t){var r=v(arguments),n=B(t);if(l(n)||void 0!==e&&!f(e))return r[1]=function(e,t){if(l(n)&&(t=s(n,this,w(e),t)),!f(t))return t},i(O,null,r)}:O,D=function(e,t,r){var n=E(r,t-1),o=E(r,t+1);return S(x,e)&&!S(j,o)||S(j,e)&&!S(x,n)?"\\u"+_(P(e,0),16):e},B=function(e){if(l(e))return e;if(c(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?R(r,o):"number"!=typeof o&&"Number"!==h(o)&&"String"!==h(o)||R(r,p(o))}var i=r.length,s=!0;return function(e,t){if(s)return s=!1,t;if(c(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}};O&&n({target:"JSON",stat:!0,arity:3,forced:L||M||!b},{stringify:function(e,t,r){var n=B(t),o=[],i=N(e,function(e,t){var r=l(n)?s(n,this,w(e),t):t;return!b&&d(r)?C+(R(o,r.rawJSON)-1):r},r);if("string"!=typeof i)return i;if(M&&(i=T(i,I,D)),b)return i;for(var a="",u=i.length,c=0;c<u;c++){var f=E(i,c);if('"'===f){var h=y(i,++c).end-1,p=A(i,c,h);a+=A(p,0,k)===C?o[A(p,k)]:'"'+p+'"',c=h}else a+=f}return a}})},5895(e,t,r){var n=r(3322),o=r(9529),i=r(5934),s=r(6839),a=r(2227),u=r(9824);n({target:"Promise",stat:!0,forced:r(4165)},{all:function(e){var t=this,r=s.f(t),n=r.resolve,c=r.reject,l=a(function(){var r=i(t.resolve),s=[],a=0,l=1;u(e,function(e){var i=a++,u=!1;l++,o(r,t,e).then(function(e){u||(u=!0,s[i]=e,--l||n(s))},c)}),--l||n(s)});return l.error&&c(l.value),r.promise}})},2319(e,t,r){var n=r(3322),o=r(4487),i=r(1288).CONSTRUCTOR,s=r(2458),a=r(7851),u=r(5969),c=r(3828),l=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&u(s)){var d=a("Promise").prototype.catch;l.catch!==d&&c(l,"catch",d,{unsafe:!0})}},9432(e,t,r){var n,o,i,s,a=r(3322),u=r(4487),c=r(4189),l=r(2100),d=r(8403),f=r(9529),h=r(3828),p=r(1779),v=r(915),y=r(6941),g=r(5934),m=r(5969),b=r(1142),w=r(6539),O=r(4737),S=r(3853).set,E=r(3535),P=r(9417),T=r(2227),A=r(8669),R=r(9265),_=r(2458),I=r(1288),x=r(6839),j="Promise",C=I.CONSTRUCTOR,k=I.REJECTION_EVENT,L=I.SUBCLASSING,M=R.getterFor(j),N=R.set,D=_&&_.prototype,B=_,U=D,F=l.TypeError,W=l.document,z=l.process,V=x.f,H=V,G=!!(W&&W.createEvent&&l.dispatchEvent),q="unhandledrejection",K=function(e){var t;return!(!b(e)||!m(t=e.then))&&t},$=function(e,t){var r,n,o,i=t.value,s=1===t.state,a=s?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{a?(s||(2===t.rejection&&Z(t),t.rejection=1),!0===a?r=i:(l&&l.enter(),r=a(i),l&&(l.exit(),o=!0)),r===e.promise?c(new F("Promise-chain cycle")):(n=K(r))?f(n,r,u,c):u(r)):c(i)}catch(e){l&&!o&&l.exit(),c(e)}},X=function(e,t){e.notified||(e.notified=!0,E(function(){for(var r,n=e.reactions;r=n.get();)$(r,e);e.notified=!1,t&&!e.rejection&&Q(e)}))},Y=function(e,t,r){var n,o;G?((n=W.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),l.dispatchEvent(n)):n={promise:t,reason:r},!k&&(o=l["on"+e])?o(n):e===q&&P("Unhandled promise rejection",r)},Q=function(e){f(S,l,function(){var t,r=e.facade,n=e.value;if(J(e)&&(t=T(function(){c?z.emit("unhandledRejection",n,r):Y(q,r,n)}),e.rejection=c||J(e)?2:1,t.error))throw t.value})},J=function(e){return 1!==e.rejection&&!e.parent},Z=function(e){f(S,l,function(){var t=e.facade;c?z.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)})},ee=function(e,t,r){return function(n){e(t,n,r)}},te=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,X(e,!0))},re=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new F("Promise can't be resolved itself");var n=K(t);n?E(function(){var r={done:!1};try{f(n,t,ee(re,r,e),ee(te,r,e))}catch(t){te(r,t,e)}}):(e.value=t,e.state=1,X(e,!1))}catch(t){te({done:!1},t,e)}}};if(C&&(U=(B=function(e){w(this,U),g(e),f(n,this);var t=M(this);try{e(ee(re,t),ee(te,t))}catch(e){te(t,e)}}).prototype,(n=function(e){N(this,{type:j,done:!1,notified:!1,parent:!1,reactions:new A,rejection:!1,state:0,value:null})}).prototype=h(U,"then",function(e,t){var r=M(this),n=V(O(this,B));return r.parent=!0,n.ok=!m(e)||e,n.fail=m(t)&&t,n.domain=c?z.domain:void 0,0===r.state?r.reactions.add(n):E(function(){$(n,r)}),n.promise}),o=function(){var e=new n,t=M(e);this.promise=e,this.resolve=ee(re,t),this.reject=ee(te,t)},x.f=V=function(e){return e===B||e===i?new o(e):H(e)},!u&&m(_)&&D!==Object.prototype)){s=D.then,L||h(D,"then",function(e,t){var r=this;return new B(function(e,t){f(s,r,e,t)}).then(e,t)},{unsafe:!0});try{delete D.constructor}catch(e){}p&&p(D,U)}a({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:B}),i=d.Promise,v(B,j,!1,!0),y(j)},7982(e,t,r){r(9432),r(5895),r(2319),r(963),r(3021),r(4932)},963(e,t,r){var n=r(3322),o=r(9529),i=r(5934),s=r(6839),a=r(2227),u=r(9824);n({target:"Promise",stat:!0,forced:r(4165)},{race:function(e){var t=this,r=s.f(t),n=r.reject,c=a(function(){var s=i(t.resolve);u(e,function(e){o(s,t,e).then(r.resolve,n)})});return c.error&&n(c.value),r.promise}})},3021(e,t,r){var n=r(3322),o=r(6839);n({target:"Promise",stat:!0,forced:r(1288).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},4932(e,t,r){var n=r(3322),o=r(7851),i=r(4487),s=r(2458),a=r(1288).CONSTRUCTOR,u=r(3642),c=o("Promise"),l=i&&!a;n({target:"Promise",stat:!0,forced:i||a},{resolve:function(e){return u(l&&this===c?s:this,e)}})},4603(e,t,r){var n=r(3322),o=r(5263);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},6077(e,t,r){var n=r(3322),o=r(2244),i=r(7326),s=RangeError,a=String.fromCharCode,u=String.fromCodePoint,c=o([].join);n({target:"String",stat:!0,arity:1,forced:!!u&&1!==u.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;n>o;){if(i(t=+arguments[o],1114111)!==t)throw new s(t+" is not a valid code point");r[o++]=t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320)}return c(r,"")}})},3384(e,t,r){var n=r(7504).charAt,o=r(8371),i=r(9265),s=r(4132),a=r(3373),u="String Iterator",c=i.set,l=i.getterFor(u);s(String,"String",function(e){c(this,{type:u,string:o(e),index:0})},function(){var e,t=l(this),r=t.string,o=t.index;return o>=r.length?a(void 0,!0):(e=n(r,o),t.index+=e.length,a(e,!1))})},3976(e,t,r){var n=r(4832),o=r(4450),i=r(6399),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("at",function(e){var t=s(this),r=o(t),n=i(e),a=n>=0?n:r+n;return a<0||a>=r?void 0:t[a]})},5008(e,t,r){var n=r(4832),o=r(1169),i=r(9938),s=r(8023),a=r(9529),u=r(2244),c=r(7091),l=n.aTypedArray,d=n.exportTypedArrayMethod,f=u("".slice);d("fill",function(e){var t=arguments.length;l(this);var r="Big"===f(s(this),0,3)?i(e):+e;return a(o,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)},c(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}))},4570(e,t,r){var n=r(4832),o=r(1195).findLastIndex,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)})},5803(e,t,r){var n=r(4832),o=r(1195).findLast,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)})},6249(e,t,r){var n=r(2100),o=r(9529),i=r(4832),s=r(4450),a=r(9977),u=r(3017),c=r(7091),l=n.RangeError,d=n.Int8Array,f=d&&d.prototype,h=f&&f.set,p=i.aTypedArray,v=i.exportTypedArrayMethod,y=!c(function(){var e=new Uint8ClampedArray(2);return o(h,e,{length:1,0:3},1),3!==e[1]}),g=y&&i.NATIVE_ARRAY_BUFFER_VIEWS&&c(function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});v("set",function(e){p(this);var t=a(arguments.length>1?arguments[1]:void 0,1),r=u(e);if(y)return o(h,this,r,t);var n=this.length,i=s(r),c=0;if(i+t>n)throw new l("Wrong length");for(;c<i;)this[t+c]=r[c++]},!y||g)},9881(e,t,r){var n=r(2100),o=r(6608),i=r(7091),s=r(5934),a=r(332),u=r(4832),c=r(5185),l=r(3871),d=r(8395),f=r(6419),h=u.aTypedArray,p=u.exportTypedArrayMethod,v=n.Uint16Array,y=v&&o(v.prototype.sort),g=!(!y||i(function(){y(new v(2),null)})&&i(function(){y(new v(2),{})})),m=!!y&&!i(function(){if(d)return d<74;if(c)return c<67;if(l)return!0;if(f)return f<602;var e,t,r=new v(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(y(r,function(e,t){return(e/4|0)-(t/4|0)}),e=0;e<516;e++)if(r[e]!==n[e])return!0});p("sort",function(e){return void 0!==e&&s(e),m?y(this,e):a(h(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?t!=t?0:-1:t!=t?1:0===t&&0===r?1/t>0?1/r>0?0:1:1/r>0?-1:0:t>r?1:t<r?-1:0}}(e))},!m||g)},2039(e,t,r){var n=r(4450),o=r(4832),i=o.aTypedArray,s=o.exportTypedArrayMethod,a=o.getTypedArrayConstructor;s("toReversed",function(){for(var e=i(this),t=n(e),r=new(a(e))(t),o=0;o<t;o++)r[o]=e[t-o-1];return r})},2768(e,t,r){var n=r(4832),o=r(2244),i=r(5934),s=r(8886),a=n.aTypedArray,u=n.getTypedArrayConstructor,c=n.exportTypedArrayMethod,l=o(n.TypedArrayPrototype.sort);c("toSorted",function(e){void 0!==e&&i(e);var t=a(this),r=s(u(t),t);return l(r,e)})},4765(e,t,r){r(347)("Uint8",function(e){return function(t,r,n){return e(this,t,r,n)}})},9357(e,t,r){var n=r(4832),o=r(1859),i=r(4450),s=r(6399),a=r(9938),u=n.aTypedArray,c=n.getTypedArrayConstructor,l=n.exportTypedArrayMethod,d=RangeError,f=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}(),h=f&&function(){try{new Int8Array(1).with(-.5,1)}catch(e){return!0}}();l("with",{with:function(e,t){var r=u(this),n=i(r),l=s(e),f=l<0?n+l:l,h=o(r)?a(t):+t;if(f>=n||f<0)throw new d("Incorrect index");for(var p=new(c(r))(n),v=0;v<n;v++)p[v]=v===f?h:r[v];return p}}.with,!f||h)},1717(e,t,r){var n=r(2100),o=r(5916),i=r(2084),s=r(148),a=r(1519),u=r(915),c=r(7759)("iterator"),l=s.values,d=function(e,t){if(e){if(e[c]!==l)try{a(e,c,l)}catch(t){e[c]=l}if(u(e,t,!0),o[t])for(var r in s)if(e[r]!==s[r])try{a(e,r,s[r])}catch(t){e[r]=s[r]}}};for(var f in o)d(n[f]&&n[f].prototype,f);d(i,"DOMTokenList")},3122(e,t,r){r(148),r(6077);var n=r(3322),o=r(2100),i=r(7185),s=r(7851),a=r(9529),u=r(2244),c=r(8224),l=r(3204),d=r(3828),f=r(4966),h=r(4699),p=r(915),v=r(8182),y=r(9265),g=r(6539),m=r(5969),b=r(253),w=r(716),O=r(8023),S=r(4467),E=r(1142),P=r(8371),T=r(596),A=r(2112),R=r(8461),_=r(5031),I=r(3373),x=r(7584),j=r(7759),C=r(332),k=j("iterator"),L="URLSearchParams",M=L+"Iterator",N=y.set,D=y.getterFor(L),B=y.getterFor(M),U=i("fetch"),F=i("Request"),W=i("Headers"),z=F&&F.prototype,V=W&&W.prototype,H=o.TypeError,G=o.encodeURIComponent,q=String.fromCharCode,K=s("String","fromCodePoint"),$=parseInt,X=u("".charAt),Y=u([].join),Q=u([].push),J=u("".replace),Z=u([].shift),ee=u([].splice),te=u("".split),re=u("".slice),ne=u(/./.exec),oe=/\+/g,ie=/^[0-9a-f]+$/i,se=function(e,t){var r=re(e,t,t+2);return ne(ie,r)?$(r,16):NaN},ae=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},ue=function(e){var t=null,r=e.length;switch(r){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return null===t||t>1114111||t>=55296&&t<=57343||t<(r>3?65536:r>2?2048:r>1?128:0)?null:t},ce=function(e){for(var t=(e=J(e,oe," ")).length,r="",n=0;n<t;){var o=X(e,n);if("%"===o){if("%"===X(e,n+1)||n+3>t){r+="%",n++;continue}var i=se(e,n+1);if(i!=i){r+=o,n++;continue}n+=2;var s=ae(i);if(0===s)o=q(i);else{if(1===s||s>4){r+="�",n++;continue}for(var a=[i],u=1;u<s&&!(3+ ++n>t||"%"!==X(e,n));){var c=se(e,n+1);if(c!=c||c>191||c<128)break;if(1===u){if(224===i&&c<160)break;if(237===i&&c>159)break;if(240===i&&c<144)break;if(244===i&&c>143)break}Q(a,c),n+=2,u++}if(a.length!==s){r+="�";continue}var l=ue(a);if(null===l){for(var d=0;d<s;d++)r+="�";n++;continue}o=K(l)}}r+=o,n++}return r},le=/[!'()~]|%20/g,de={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},fe=function(e){return de[e]},he=function(e){return J(G(e),le,fe)},pe=v(function(e,t){N(this,{type:M,target:D(e).entries,index:0,kind:t})},L,function(){var e=B(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,I(void 0,!0);var n=t[r];switch(e.kind){case"keys":return I(n.key,!1);case"values":return I(n.value,!1)}return I([n.key,n.value],!1)},!0),ve=function(e){this.entries=[],this.url=null,void 0!==e&&(E(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===X(e,0)?re(e,1):e:P(e)))};ve.prototype={type:L,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,s,u,c=this.entries,l=_(e);if(l)for(r=(t=R(e,l)).next;!(n=a(r,t)).done;){if(i=(o=R(S(n.value))).next,(s=a(i,o)).done||(u=a(i,o)).done||!a(i,o).done)throw new H("Expected sequence with length 2");Q(c,{key:P(s.value),value:P(u.value)})}else for(var d in e)b(e,d)&&Q(c,{key:d,value:P(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,o=te(e,"&"),i=0;i<o.length;)(t=o[i++]).length&&(r=te(t,"="),Q(n,{key:ce(Z(r)),value:ce(Y(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Q(r,he(e.key)+"="+he(e.value));return Y(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ye=function(){g(this,ge);var e=N(this,new ve(arguments.length>0?arguments[0]:void 0));c||(this.size=e.entries.length)},ge=ye.prototype;if(h(ge,{append:function(e,t){var r=D(this);x(arguments.length,2),Q(r.entries,{key:P(e),value:P(t)}),c||this.size++,r.updateURL()},delete:function(e){for(var t=D(this),r=x(arguments.length,1),n=t.entries,o=P(e),i=r<2?void 0:arguments[1],s=void 0===i?i:P(i),a=0;a<n.length;){var u=n[a];u.key!==o||void 0!==s&&u.value!==s?a++:ee(n,a,1)}c||(this.size=n.length),t.updateURL()},get:function(e){var t=D(this).entries;x(arguments.length,1);for(var r=P(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=D(this).entries;x(arguments.length,1);for(var r=P(e),n=[],o=0;o<t.length;o++)t[o].key===r&&Q(n,t[o].value);return n},has:function(e){for(var t=D(this).entries,r=x(arguments.length,1),n=P(e),o=r<2?void 0:arguments[1],i=void 0===o?o:P(o),s=0;s<t.length;){var a=t[s++];if(a.key===n&&(void 0===i||a.value===i))return!0}return!1},set:function(e,t){var r=D(this);x(arguments.length,2);for(var n,o=r.entries,i=!1,s=P(e),a=P(t),u=0;u<o.length;u++)(n=o[u]).key===s&&(i?ee(o,u--,1):(i=!0,n.value=a));i||Q(o,{key:s,value:a}),c||(this.size=o.length),r.updateURL()},sort:function(){var e=D(this);C(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=D(this).entries,n=w(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new pe(this,"keys")},values:function(){return new pe(this,"values")},entries:function(){return new pe(this,"entries")}},{enumerable:!0}),d(ge,k,ge.entries,{name:"entries"}),d(ge,"toString",function(){return D(this).serialize()},{enumerable:!0}),c&&f(ge,"size",{get:function(){return D(this).entries.length},configurable:!0,enumerable:!0}),p(ye,L),n({global:!0,constructor:!0,forced:!l},{URLSearchParams:ye}),!l&&m(W)){var me=u(V.has),be=u(V.set),we=function(e){if(E(e)){var t,r=e.body;if(O(r)===L)return t=e.headers?new W(e.headers):new W,me(t,"content-type")||be(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),T(e,{body:A(0,P(r)),headers:A(0,t)})}return e};if(m(U)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return U(e,arguments.length>1?we(arguments[1]):{})}}),m(F)){var Oe=function(e){return g(this,z),new F(e,arguments.length>1?we(arguments[1]):{})};z.constructor=Oe,Oe.prototype=z,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Oe})}}e.exports={URLSearchParams:ye,getState:D}},9679(e,t,r){var n=r(3828),o=r(2244),i=r(8371),s=r(7584),a=URLSearchParams,u=a.prototype,c=o(u.append),l=o(u.delete),d=o(u.forEach),f=o([].push),h=new a("a=1&a=2&b=3");h.delete("a",1),h.delete("b",void 0),h+""!="a=2"&&n(u,"delete",function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=[];d(this,function(e,t){f(n,{key:t,value:e})}),s(t,1);for(var o,a=i(e),u=i(r),h=0,p=n.length;h<p;)l(this,(o=n[h]).key),h++;for(h=0;h<p;)(o=n[h++]).key===a&&o.value===u||c(this,o.key,o.value)},{enumerable:!0,unsafe:!0})},9130(e,t,r){var n=r(3828),o=r(2244),i=r(8371),s=r(7584),a=URLSearchParams,u=a.prototype,c=o(u.getAll),l=o(u.has),d=new a("a=1");!d.has("a",2)&&d.has("a",void 0)||n(u,"has",function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=c(this,e);s(t,1);for(var o=i(r),a=0;a<n.length;)if(n[a++]===o)return!0;return!1},{enumerable:!0,unsafe:!0})},972(e,t,r){r(3122)},1978(e,t,r){var n=r(8224),o=r(2244),i=r(4966),s=URLSearchParams.prototype,a=o(s.forEach);n&&!("size"in s)&&i(s,"size",{get:function(){var e=0;return a(this,function(){e++}),e},configurable:!0,enumerable:!0})},1690(e,t,r){r(3384);var n,o=r(3322),i=r(8224),s=r(3204),a=r(2100),u=r(716),c=r(2244),l=r(3828),d=r(4966),f=r(6539),h=r(253),p=r(105),v=r(88),y=r(8348),g=r(7504).codeAt,m=r(3465),b=r(8371),w=r(915),O=r(7584),S=r(3122),E=r(9265),P=E.set,T=E.getterFor("URL"),A=S.URLSearchParams,R=S.getState,_=a.URL,I=a.TypeError,x=a.encodeURIComponent,j=a.parseInt,C=Math.floor,k=Math.pow,L=c("".charAt),M=c(/./.exec),N=c([].join),D=c(1.1.toString),B=c([].pop),U=c([].push),F=c("".replace),W=c([].shift),z=c("".split),V=c("".slice),H=c("".toLowerCase),G=c([].unshift),q="Invalid scheme",K="Invalid host",$="Invalid port",X=/[a-z]/i,Y=/[\d+\-.a-z]/i,Q=/\d/,J=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,oe=/^[\u0000-\u0020]+/,ie=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,se=/[\t\n\r]/g,ae=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)G(t,e%256),e=C(e/256);return N(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r?n:t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=D(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ue={},ce=p({},ue,{" ":1,'"':1,"#":1,"<":1,">":1}),le=p({},ce,{"'":1}),de=p({},ue,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=p({},de,{"#":1,"?":1,"{":1,"}":1,"^":1}),he=p({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),pe=function(e,t){var r=g(e,0);return r>=32&&r<127&&!h(t,e)?e:"'"===e&&h(t,e)?"%27":x(e)},ve={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ye=function(e,t){var r;return 2===e.length&&M(X,L(e,0))&&(":"===(r=L(e,1))||!t&&"|"===r)},ge=function(e){var t;return e.length>1&&ye(V(e,0,2))&&(2===e.length||"/"===(t=L(e,2))||"\\"===t||"?"===t||"#"===t)},me=function(e){return"."===e||"%2e"===H(e)},be=function(e){return".."===(e=H(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},we={},Oe={},Se={},Ee={},Pe={},Te={},Ae={},Re={},_e={},Ie={},xe={},je={},Ce={},ke={},Le={},Me={},Ne={},De={},Be={},Ue={},Fe={},We=function(e,t,r){var n,o,i,s=b(e);if(t){if(o=this.parse(s))throw new I(o);this.searchParams=null}else{if(void 0!==r&&(n=new We(r,!0)),o=this.parse(s,null,n))throw new I(o);(i=R(new A)).bindURL(this),this.searchParams=i}};We.prototype={type:"URL",parse:function(e,t,r){var o,i,s,a,u=this,c=t||we,l=0,d="",f=!1,p=!1,g=!1;for(e=b(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=F(e,oe,""),e=F(e,ie,"$1")),e=F(e,se,""),o=v(e);l<=o.length;){switch(i=o[l],c){case we:if(!i||!M(X,i)){if(t)return q;c=Se;continue}d+=H(i),c=Oe;break;case Oe:if(i&&M(Y,i))d+=H(i);else{if(":"!==i){if(t)return q;d="",c=Se,l=0;continue}if(t&&(u.isSpecial()!==h(ve,d)||"file"===d&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&""===u.host))return;if(u.scheme=d,t)return void(u.isSpecial()&&ve[u.scheme]===u.port&&(u.port=null));d="","file"===u.scheme?c=ke:u.isSpecial()&&r&&r.scheme===u.scheme?c=Ee:u.isSpecial()?c=Re:"/"===o[l+1]?(c=Pe,l++):(u.cannotBeABaseURL=!0,U(u.path,""),c=Be)}break;case Se:if(!r||r.cannotBeABaseURL&&"#"!==i)return q;if(r.cannotBeABaseURL&&"#"===i){u.scheme=r.scheme,u.path=y(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=Fe;break}c="file"===r.scheme?ke:Te;continue;case Ee:if("/"!==i||"/"!==o[l+1]){c=Te;continue}c=_e,l++;break;case Pe:if("/"===i){c=Ie;break}c=De;continue;case Te:if(u.scheme=r.scheme,i===n)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=y(r.path),u.query=r.query;else if("/"===i||"\\"===i&&u.isSpecial())c=Ae;else if("?"===i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=y(r.path),u.query="",c=Ue;else{if("#"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=y(r.path),u.path.length&&u.path.length--,c=De;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=y(r.path),u.query=r.query,u.fragment="",c=Fe}break;case Ae:if(!u.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=De;continue}c=Ie}else c=_e;break;case Re:if(c=_e,"/"!==i||"/"!==o[l+1])continue;l++;break;case _e:if("/"!==i&&"\\"!==i){c=Ie;continue}break;case Ie:if("@"===i){f&&(d="%40"+d),f=!0,s=v(d);for(var m=0;m<s.length;m++){var w=s[m];if(":"!==w||g){var O=pe(w,he);g?u.password+=O:u.username+=O}else g=!0}d=""}else if(i===n||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()){if(f&&""===d)return"Invalid authority";l-=v(d).length+1,d="",c=xe}else d+=i;break;case xe:case je:if(t&&"file"===u.scheme){c=Me;continue}if(":"!==i||p){if(i===n||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()){if(u.isSpecial()&&""===d)return K;if(t&&""===d&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(d))return a;if(d="",c=Ne,t)return;continue}"["===i?p=!0:"]"===i&&(p=!1),d+=i}else{if(""===d)return K;if(t===je)return;if(a=u.parseHost(d))return a;d="",c=Ce}break;case Ce:if(!M(Q,i)){if(i===n||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()||t){if(""!==d){var S=j(d,10);if(S>65535)return $;u.port=u.isSpecial()&&S===ve[u.scheme]?null:S,d=""}if(t)return;c=Ne;continue}return $}d+=i;break;case ke:if(u.scheme="file",u.host="","/"===i||"\\"===i)c=Le;else{if(!r||"file"!==r.scheme){c=De;continue}switch(i){case n:u.host=r.host,u.path=y(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=y(r.path),u.query="",c=Ue;break;case"#":u.host=r.host,u.path=y(r.path),u.query=r.query,u.fragment="",c=Fe;break;default:u.host=r.host,ge(N(y(o,l),""))||(u.path=y(r.path),u.shortenPath()),c=De;continue}}break;case Le:if("/"===i||"\\"===i){c=Me;break}r&&"file"===r.scheme&&(u.host=r.host,!ge(N(y(o,l),""))&&ye(r.path[0],!0)&&U(u.path,r.path[0])),c=De;continue;case Me:if(i===n||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&ye(d))c=De;else if(""===d){if(u.host="",t)return;c=Ne}else{if(a=u.parseHost(d))return a;if("localhost"===u.host&&(u.host=""),t)return;d="",c=Ne}continue}d+=i;break;case Ne:if(u.isSpecial()){if(c=De,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==n&&(c=De,"/"!==i))continue}else u.fragment="",c=Fe;else u.query="",c=Ue;break;case De:if(i===n||"/"===i||"\\"===i&&u.isSpecial()||!t&&("?"===i||"#"===i)){if(be(d)?(u.shortenPath(),"/"===i||"\\"===i&&u.isSpecial()||U(u.path,"")):me(d)?"/"===i||"\\"===i&&u.isSpecial()||U(u.path,""):("file"===u.scheme&&!u.path.length&&ye(d)&&(null!==u.host&&""!==u.host&&(u.host=""),d=L(d,0)+":"),U(u.path,d)),d="","file"===u.scheme&&(i===n||"?"===i||"#"===i))for(;u.path.length>1&&""===u.path[0];)W(u.path);"?"===i?(u.query="",c=Ue):"#"===i&&(u.fragment="",c=Fe)}else d+=pe(i,fe);break;case Be:"?"===i?(u.query="",c=Ue):"#"===i?(u.fragment="",c=Fe):i!==n&&(u.path[0]+=pe(i,ue));break;case Ue:t||"#"!==i?i!==n&&(u.query+=pe(i,u.isSpecial()?le:ce)):(u.fragment="",c=Fe);break;case Fe:i!==n&&(u.fragment+=pe(i,de))}l++}},parseHost:function(e){var t,r,n;if("["===L(e,0)){if("]"!==L(e,e.length-1))return K;if(t=function(e){var t,r,n,o,i,s,a,u=[0,0,0,0,0,0,0,0],c=0,l=null,d=0,f=function(){return L(e,d)};if(":"===f()){if(":"!==L(e,1))return;d+=2,l=++c}for(;f();){if(8===c)return;if(":"!==f()){for(t=r=0;r<4&&M(te,f());)t=16*t+j(f(),16),d++,r++;if("."===f()){if(0===r)return;if(d-=r,c>6)return;for(n=0;f();){if(o=null,n>0){if(!("."===f()&&n<4))return;d++}if(!M(Q,f()))return;for(;M(Q,f());){if(i=j(f(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;d++}u[c]=256*u[c]+o,2!==++n&&4!==n||c++}if(4!==n)return;break}if(":"===f()){if(d++,!f())return}else if(f())return;u[c++]=t}else{if(null!==l)return;d++,l=++c}}if(null!==l)for(s=c-l,c=7;0!==c&&s>0;)a=u[c],u[c--]=u[l+s-1],u[l+--s]=a;else if(8!==c)return;return u}(V(e,1,-1)),!t)return K;this.host=t}else if(this.isSpecial()){if(e=m(e),M(re,e))return K;if(function(e){var t,r,n=z(e,".");if(""===n[n.length-1]){if(1===n.length)return!1;n.length--}return t=n[n.length-1],!!M(ee,t)||!!M(J,t)&&(""===(r=V(t,2))||!!M(te,r))}(e)){if(t=function(e){var t,r,n,o,i,s,a,u=z(e,".");if(u.length&&""===u[u.length-1]&&u.length--,(t=u.length)>4)return null;for(r=[],n=0;n<t;n++){if(""===(o=u[n]))return null;if(i=10,o.length>1&&"0"===L(o,0)&&(i=M(J,o)?16:8,o=V(o,8===i?1:2)),""===o)s=0;else{if(!M(10===i?ee:8===i?Z:te,o))return null;s=j(o,i)}U(r,s)}for(n=0;n<t;n++)if(s=r[n],n===t-1){if(s>=k(256,5-t))return null}else if(s>255)return null;for(a=B(r),n=0;n<r.length;n++)a+=r[n]*k(256,3-n);return a}(e),null===t)return K;this.host=t}else this.host=e}else{if(M(ne,e))return K;for(t="",r=v(e),n=0;n<r.length;n++)t+=pe(r[n],ue);this.host=t}},cannotHaveUsernamePasswordPort:function(){return null===this.host||""===this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return h(ve,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ye(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,s=e.path,a=e.query,u=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=ae(o),null!==i&&(c+=":"+i)):"file"===t&&(c+="//"),null===o&&!e.cannotBeABaseURL&&s.length>1&&""===s[0]&&(c+="/."),c+=e.cannotBeABaseURL?s[0]:s.length?"/"+N(s,"/"):"",null!==a&&(c+="?"+a),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw new I(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new ze(this.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",we)},getUsername:function(){return this.username},setUsername:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=pe(t[r],he)}},getPassword:function(){return this.password},setPassword:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=pe(t[r],he)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,xe)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,je)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=b(e))?this.port=null:this.parse(e,Ce))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+N(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ne))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=b(e))?this.query=null:("?"===L(e,0)&&(e=V(e,1)),this.query="",this.parse(e,Ue)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=b(e))?("#"===L(e,0)&&(e=V(e,1)),this.fragment="",this.parse(e,Fe)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var ze=function(e){var t=f(this,Ve),r=O(arguments.length,1)>1?arguments[1]:void 0,n=P(t,new We(e,!1,r));i||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Ve=ze.prototype,He=function(e,t){return{get:function(){return T(this)[e]()},set:t&&function(e){return T(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(d(Ve,"href",He("serialize","setHref")),d(Ve,"origin",He("getOrigin")),d(Ve,"protocol",He("getProtocol","setProtocol")),d(Ve,"username",He("getUsername","setUsername")),d(Ve,"password",He("getPassword","setPassword")),d(Ve,"host",He("getHost","setHost")),d(Ve,"hostname",He("getHostname","setHostname")),d(Ve,"port",He("getPort","setPort")),d(Ve,"pathname",He("getPathname","setPathname")),d(Ve,"search",He("getSearch","setSearch")),d(Ve,"searchParams",He("getSearchParams")),d(Ve,"hash",He("getHash","setHash"))),l(Ve,"toJSON",function(){return T(this).serialize()},{enumerable:!0}),l(Ve,"toString",function(){return T(this).serialize()},{enumerable:!0}),_){var Ge=_.createObjectURL,qe=_.revokeObjectURL;Ge&&l(ze,"createObjectURL",u(Ge,_)),qe&&l(ze,"revokeObjectURL",u(qe,_))}w(ze,"URL"),o({global:!0,constructor:!0,forced:!s,sham:!i},{URL:ze})},5732(e,t,r){r(1690)},2940(e,t,r){var n=r(3322),o=r(9529);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},4333(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.r(t),r.d(t,{_:()=>n})},5999(e,t,r){function n(e,t){return Object.keys(e).forEach(function(r){"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),e}r.r(t),r.d(t,{_:()=>n})},8079(e,t,r){function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},2473(e,t,r){r.r(t),r.d(t,{customAlphabet:()=>s,customRandom:()=>i,nanoid:()=>a,random:()=>o,urlAlphabet:()=>n});let n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",o=e=>crypto.getRandomValues(new Uint8Array(e)),i=(e,t,r)=>{let n=256-256%e.length;if(256===n){let n=e.length-1;return(o=t)=>{if(!o)return"";let i="";for(;;){let t=r(o),s=o;for(;s--;)if(i+=e[t[s]&n],i.length>=o)return i}}}let o=Math.ceil(409.6*t/n);return(i=t)=>{if(!i)return"";let s="";for(;;){let t=r(o),a=o;for(;a--;)if(t[a]<n&&(s+=e[t[a]%e.length],s.length>=i))return s}}},s=(e,t=21)=>i(e,0|t,o),a=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=n[63&r[e]];return t}},1072(e,t,r){r.r(t),r.d(t,{SessionReplay:()=>a,SessionReplayIframe:()=>u});var n={3970(){"arrayBuffer"in Blob.prototype||Object.defineProperty(Blob.prototype,"arrayBuffer",{value:function(){return new Response(this).arrayBuffer()}})},1734(){Element.prototype.append||(Element.prototype.append=Element.prototype.appendChild)},3804(){Event.prototype.composedPath||(Event.prototype.composedPath=function(){let e=this.target,t=[];for(;e;)t.push(e),e=e.parentNode;return t.push(window),t})},710(){Object.hasOwn||Object.defineProperty(Object,"hasOwn",{configurable:!0,enumerable:!1,value:function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)},writable:!0}),Object.assign||(Object.assign=function(...e){let t=e[0];if(null==t)throw TypeError("Cannot convert undefined or null to object");let r=Object(t);for(let t=1;t<e.length;t++){let n=e[t];if(null!=n)for(let e in n)Object.hasOwn(n,e)&&(r[e]=n[e])}return r}),Object.fromEntries||(Object.fromEntries=e=>[...e].reduce((e,[t,r])=>(e[t]=r,e),{})),Object.entries||(Object.entries=e=>Object.keys(e).map(t=>[t,e[t]])),Object.values||(Object.values=e=>Object.keys(e).map(t=>e[t]))},8135(){function e(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}Promise.any||(Promise.any=t=>{var r;return(r=function*(){return Promise.all([...t].map(e=>new Promise((t,r)=>Promise.resolve(e).then(r,t)))).then(e=>Promise.reject(e),e=>Promise.resolve(e))},function(){var t=this,n=arguments;return new Promise(function(o,i){var s=r.apply(t,n);function a(t){e(s,o,i,a,u,"next",t)}function u(t){e(s,o,i,a,u,"throw",t)}a(void 0)})})()})},350(){"function"!=typeof window.queueMicrotask&&(window.queueMicrotask=function(e){Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))})},6516(){window.Reflect||(window.Reflect={}),"function"!=typeof window.Reflect.apply&&Object.defineProperty(Reflect,"apply",{configurable:!0,enumerable:!1,value:function(e,t,r){return Function.prototype.apply.call(e,t,r)},writable:!0})},1971(){let e=(e,{timeout:t})=>{let r=requestAnimationFrame(t=>{clearTimeout(n),e(t)}),n=setTimeout(()=>{cancelAnimationFrame(r),e(performance.now())},t)},t=1/120*1e3,r=1,n=new Set,o=new Set;void 0===window.requestIdleCallback&&(window.requestIdleCallback=(i,s)=>{var a;let u=r;r+=1,n.add(u);let c=performance.now(),l=new MessageChannel,d=l.port1;return l.port2.onmessage=r=>{let a=Math.max(0,t-(performance.now()-r.data));if(o.has(u))return o.delete(u),void n.delete(u);let l=performance.now(),f=l-c;if(0===a&&(void 0===(null==s?void 0:s.timeout)||f<s.timeout)){var h;e(()=>{d.postMessage(l)},{timeout:null!=(h=null==s?void 0:s.timeout)?h:500})}else{let e=void 0!==(null==s?void 0:s.timeout)&&f>s.timeout;i({didTimeout:e,timeRemaining:()=>{let t=performance.now()-l;return e?0:Math.max(0,a-t)}}),n.delete(u)}},e(()=>{d.postMessage(c)},{timeout:null!=(a=null==s?void 0:s.timeout)?a:500}),u},window.cancelIdleCallback=e=>{n.has(e)&&o.add(e)},setInterval(()=>{new Promise(e=>{let t=performance.now(),r=0,n=o=>{r+=1,o-t>=1e3?e(r):requestAnimationFrame(n)};requestAnimationFrame(n)}).then(e=>{t=1/Math.min(Math.max(30,e),120)*1e3})},5e3))},2520(){String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),String.prototype.endsWith||(String.prototype.endsWith=function(e){return-1!==this.indexOf(e,this.length-e.length)}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return void 0===t?0===this.indexOf(e):this.indexOf(e)===t})},3259(){("u"<typeof Symbol||!Symbol.asyncIterator)&&(Symbol.asyncIterator=Symbol.for("Symbol.asyncIterator"))},8288(e,t,r){var n;n=function(){function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function t(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(n.key),n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(t,r){var n="u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t){if(t){if("string"==typeof t)return e(t,void 0);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,void 0):void 0}}(t))||r&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}function s(){return(s="u">typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=a(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(null,arguments)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}(l="u">typeof self?self:r.g).AbortSignal,l.AbortController;var l,d=o(function e(){t(this,e),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})},[{key:"addEventListener",value:function(e,t,r){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:r})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var r=this.listeners[e],n=0,o=r.length;n<o;n++)if(r[n].callback===t)return void r.splice(n,1)}},{key:"dispatchEvent",value:function(e){var t=this;if(e.type in this.listeners){for(var r=this.listeners[e.type].slice(),n=0,o=r.length;n<o;n++)!function(){var o=r[n];try{o.callback.call(t,e)}catch(e){Promise.resolve().then(function(){throw e})}o.options&&o.options.once&&t.removeEventListener(e.type,o.callback)}();return!e.defaultPrevented}}}]),f=function(e){function r(){var e,n;return t(this,r),n=a(n=r),(e=function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,u()?Reflect.construct(n,[],a(this).constructor):n.apply(this,void 0))).listeners||d.call(e),Object.defineProperty(e,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(e,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(e,"reason",{value:void 0,writable:!0,configurable:!0}),e}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&c(r,e),o(r,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){var t,n;"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),(t=this,"function"==typeof(n=s(a(r.prototype),"dispatchEvent",t))?function(e){return n.apply(t,e)}:n)([e])}},{key:"throwIfAborted",value:function(){var e=this.aborted,t=this.reason;if(e)throw void 0===t?"Aborted":t}}],[{key:"timeout",value:function(e){var t=new h;return setTimeout(function(){return t.abort(new DOMException("This signal is timeout in ".concat(e,"ms"),"TimeoutError"))},e),t.signal}},{key:"any",value:function(e){var t=new h;function r(){t.abort(this.reason),function(){var t,n=i(e);try{for(n.s();!(t=n.n()).done;)t.value.removeEventListener("abort",r)}catch(e){n.e(e)}finally{n.f()}}()}var n,o=i(e);try{for(o.s();!(n=o.n()).done;){var s=n.value;if(s.aborted){t.abort(s.reason);break}s.addEventListener("abort",r)}}catch(e){o.e(e)}finally{o.f()}return t.signal}}])}(d),h=o(function e(){t(this,e),Object.defineProperty(this,"signal",{value:new f,writable:!0,configurable:!0})},[{key:"abort",value:function(e){var t=function(e){if(void 0===e)if("u"<typeof document)(e=Error("This operation was aborted")).name="AbortError";else try{e=new DOMException("signal is aborted without reason"),Object.defineProperty(e,"name",{value:"AbortError"})}catch(t){(e=Error("This operation was aborted")).name="AbortError"}return e}(e),r=function(e){var t;try{t=new Event("abort")}catch(e){"u">typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}return t.reason=e,t}(t);this.signal.reason=t,this.signal.dispatchEvent(r)}},{key:"toString",value:function(){return"[object AbortController]"}}]);function p(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}"u">typeof Symbol&&Symbol.toStringTag&&(h.prototype[Symbol.toStringTag]="AbortController",f.prototype[Symbol.toStringTag]="AbortSignal"),function(e){if(p(e)){if(!e.fetch)return console.warn("fetch() is not available, cannot install abortcontroller-polyfill");var t=function(e){"function"==typeof e&&(e={fetch:e});var t=e,r=t.fetch,n=t.Request,o=void 0===n?r.Request:n,i=t.AbortController,s=t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,a=void 0!==s&&s;if(!p({fetch:r,Request:o,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:a}))return{fetch:r,Request:u};var u=o;return(u&&!u.prototype.hasOwnProperty("signal")||a)&&((u=function(e,t){t&&t.signal&&(r=t.signal,delete t.signal);var r,n=new o(e,t);return r&&Object.defineProperty(n,"signal",{writable:!1,enumerable:!1,configurable:!0,value:r}),n}).prototype=o.prototype),{fetch:function(e,t){var n=u&&u.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(n){try{o=new DOMException("Aborted","AbortError")}catch(e){(o=Error("Aborted")).name="AbortError"}if(n.aborted)return Promise.reject(o);var o,i=new Promise(function(e,t){n.addEventListener("abort",function(){return t(o)},{once:!0})});return t&&t.signal&&delete t.signal,Promise.race([i,r(e,t)])}return r(e,t)},Request:u}}(e),r=t.fetch,n=t.Request;e.fetch=r,e.Request=n,Object.defineProperty(e,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:h}),Object.defineProperty(e,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:f})}}("u">typeof self?self:r.g)},"function"==typeof define&&define.amd?define(n):n()},2494(e,t,r){e.exports=r(481)},2256(e,t,r){r(5518)},2497(e,t,r){var n=r(1916),o=r(3750),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},1593(e,t,r){var n=r(5160),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},2858(e,t,r){var n=r(8143),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},1423(e){e.exports="u">typeof ArrayBuffer&&"u">typeof DataView},1559(e,t,r){var n,o,i,s=r(1423),a=r(4317),u=r(5293),c=r(1916),l=r(8143),d=r(7474),f=r(5742),h=r(3750),p=r(7672),v=r(3269),y=r(629),g=r(1394),m=r(3994),b=r(7102),w=r(762),O=r(8929),S=r(2910),E=S.enforce,P=S.get,T=u.Int8Array,A=T&&T.prototype,R=u.Uint8ClampedArray,_=R&&R.prototype,I=T&&m(T),x=A&&m(A),j=Object.prototype,C=u.TypeError,k=w("toStringTag"),L=O("TYPED_ARRAY_TAG"),M="TypedArrayConstructor",N=s&&!!b&&"Opera"!==f(u.opera),D=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},F=function(e){var t=m(e);if(l(t)){var r=P(t);return r&&d(r,M)?r[M]:F(t)}},W=function(e){if(!l(e))return!1;var t=f(e);return d(B,t)||d(U,t)};for(n in B)(i=(o=u[n])&&o.prototype)?E(i)[M]=o:N=!1;for(n in U)(i=(o=u[n])&&o.prototype)&&(E(i)[M]=o);if((!N||!c(I)||I===Function.prototype)&&(I=function(){throw new C("Incorrect invocation")},N))for(n in B)u[n]&&b(u[n],I);if((!N||!x||x===j)&&(x=I.prototype,N))for(n in B)u[n]&&b(u[n].prototype,x);if(N&&m(_)!==x&&b(_,x),a&&!d(x,k))for(n in D=!0,y(x,k,{configurable:!0,get:function(){return l(this)?this[L]:void 0}}),B)u[n]&&p(u[n].prototype,L,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:D&&L,aTypedArray:function(e){if(W(e))return e;throw new C("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||g(I,e)))return e;throw new C(h(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(a){if(r)for(var o in B){var i=u[o];if(i&&d(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}(!x[e]||r)&&v(x,e,r?t:N&&A[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,o;if(a){if(b){if(r)for(n in B)if((o=u[n])&&d(o,e))try{delete o[e]}catch(e){}if(I[e]&&!r)return;try{return v(I,e,r?t:N&&I[e]||t)}catch(e){}}for(n in B)(o=u[n])&&(!o[e]||r)&&v(o,e,t)}},getTypedArrayConstructor:F,isView:function(e){if(!l(e))return!1;var t=f(e);return"DataView"===t||d(B,t)||d(U,t)},isTypedArray:W,TypedArray:I,TypedArrayPrototype:x}},9138(e,t,r){var n=r(7148),o=r(6259),i=r(2573),s=function(e){return function(t,r,s){var a,u=n(t),c=i(u);if(0===c)return!e&&-1;var l=o(s,c);if(e&&r!=r){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},9717(e,t,r){var n=r(2497),o=r(3692),i=r(1504),s=r(2573),a=TypeError,u="Reduce of empty array with no initial value",c=function(e){return function(t,r,c,l){var d=o(t),f=i(d),h=s(d);if(n(r),0===h&&c<2)throw new a(u);var p=e?h-1:0,v=e?-1:1;if(c<2)for(;;){if(p in f){l=f[p],p+=v;break}if(p+=v,e?p<0:h<=p)throw new a(u)}for(;e?p>=0:h>p;p+=v)p in f&&(l=r(l,f[p],p,d));return l}};e.exports={left:c(!1),right:c(!0)}},7907(e,t,r){var n=r(762)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[n]=function(){return this},Array.from(s,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},8625(e,t,r){var n=r(5377),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},5742(e,t,r){var n=r(7905),o=r(1916),i=r(8625),s=r(762)("toStringTag"),a=Object,u="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?r:u?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},1265(e,t,r){var n=r(7474),o=r(4192),i=r(7656),s=r(4034);e.exports=function(e,t,r){for(var a=o(t),u=s.f,c=i.f,l=0;l<a.length;l++){var d=a[l];n(e,d)||r&&n(r,d)||u(e,d,c(t,d))}}},6280(e,t,r){e.exports=!r(4114)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},7672(e,t,r){var n=r(4317),o=r(4034),i=r(1251);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},1251(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},629(e,t,r){var n=r(9394),o=r(4034);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},3269(e,t,r){var n=r(1916),o=r(4034),i=r(9394),s=r(4286);e.exports=function(e,t,r,a){a||(a={});var u=a.enumerable,c=void 0!==a.name?a.name:t;if(n(r)&&i(r,c,a),a.global)u?e[t]=r:s(t,r);else{try{a.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},4286(e,t,r){var n=r(5293),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},4317(e,t,r){e.exports=!r(4114)(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3990(e,t,r){var n=r(5293),o=r(8143),i=n.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},6202(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},988(e,t,r){var n=r(5293).navigator,o=n&&n.userAgent;e.exports=o?String(o):""},7552(e,t,r){var n,o,i=r(5293),s=r(988),a=i.process,u=i.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},2982(e,t,r){var n=r(5293),o=r(988),i=r(8625),s=function(e){return o.slice(0,e.length)===e};e.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},6685(e,t,r){var n=r(5293),o=r(7656).f,i=r(7672),s=r(3269),a=r(4286),u=r(1265),c=r(1945);e.exports=function(e,t){var r,l,d,f,h,p=e.target,v=e.global,y=e.stat;if(r=v?n:y?n[p]||a(p,{}):n[p]&&n[p].prototype)for(l in t){if(f=t[l],d=e.dontCallGetSet?(h=o(r,l))&&h.value:r[l],!c(v?l:p+(y?".":"#")+l,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;u(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),s(r,l,f,e)}}},4114(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},2621(e,t,r){var n=r(1739),o=r(2497),i=r(8335),s=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}},8335(e,t,r){e.exports=!r(4114)(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},3928(e,t,r){var n=r(8335),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},1567(e,t,r){var n=r(4317),o=r(7474),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),u=a&&(!n||n&&s(i,"name").configurable);e.exports={EXISTS:a,PROPER:a&&"something"===function(){}.name,CONFIGURABLE:u}},8305(e,t,r){var n=r(5377),o=r(2497);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},1739(e,t,r){var n=r(8625),o=r(5377);e.exports=function(e){if("Function"===n(e))return o(e)}},5377(e,t,r){var n=r(8335),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);e.exports=n?s:function(e){return function(){return i.apply(e,arguments)}}},5716(e,t,r){var n=r(5293),o=r(1916);e.exports=function(e,t){var r;return arguments.length<2?o(r=n[e])?r:void 0:n[e]&&n[e][t]}},9458(e,t,r){var n=r(5742),o=r(8209),i=r(8606),s=r(4796),a=r(762)("iterator");e.exports=function(e){if(!i(e))return o(e,a)||o(e,"@@iterator")||s[n(e)]}},5070(e,t,r){var n=r(3928),o=r(2497),i=r(2858),s=r(3750),a=r(9458),u=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(o(r))return i(n(r,e));throw new u(s(e)+" is not iterable")}},8209(e,t,r){var n=r(2497),o=r(8606);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},1609(e,t,r){var n=r(5377),o=r(3692),i=Math.floor,s=n("".charAt),a=n("".replace),u=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,d,f){var h=r+e.length,p=n.length,v=l;return void 0!==d&&(d=o(d),v=c),a(f,v,function(o,a){var c;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,r);case"'":return u(t,h);case"<":c=d[u(a,1,-1)];break;default:var l=+a;if(0===l)return o;if(l>p){var f=i(l/10);return 0===f?o:f<=p?void 0===n[f-1]?s(a,1):n[f-1]+s(a,1):o}c=n[l-1]}return void 0===c?"":c})}},5293(e,t,r){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},7474(e,t,r){var n=r(5377),o=r(3692),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},4580(e){e.exports={}},5094(e,t,r){var n=r(4317),o=r(4114),i=r(3990);e.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},1504(e,t,r){var n=r(5377),o=r(4114),i=r(8625),s=Object,a=n("".split);e.exports=o(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?a(e,""):s(e)}:s},4677(e,t,r){var n=r(5377),o=r(1916),i=r(358),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},2910(e,t,r){var n,o,i,s=r(361),a=r(5293),u=r(8143),c=r(7672),l=r(7474),d=r(358),f=r(6872),h=r(4580),p="Object already initialized",v=a.TypeError,y=a.WeakMap;if(s||d.state){var g=d.state||(d.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new v(p);return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var m=f("state");h[m]=!0,n=function(e,t){if(l(e,m))throw new v(p);return t.facade=e,c(e,m,t),t},o=function(e){return l(e,m)?e[m]:{}},i=function(e){return l(e,m)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=o(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return r}}}},4530(e,t,r){var n=r(762),o=r(4796),i=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[i]===e)}},1916(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},1945(e,t,r){var n=r(4114),o=r(1916),i=/#|\.prototype\./,s=function(e,t){var r=u[a(e)];return r===l||r!==c&&(o(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},8606(e){e.exports=function(e){return null==e}},8143(e,t,r){var n=r(1916);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},5160(e,t,r){var n=r(8143);e.exports=function(e){return n(e)||null===e}},2406(e){e.exports=!1},5033(e,t,r){var n=r(8143),o=r(8625),i=r(762)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},9024(e,t,r){var n=r(5716),o=r(1916),i=r(1394),s=r(6401),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,a(e))}},2921(e,t,r){var n=r(2621),o=r(3928),i=r(2858),s=r(3750),a=r(4530),u=r(2573),c=r(1394),l=r(5070),d=r(9458),f=r(9556),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},v=p.prototype;e.exports=function(e,t,r){var y,g,m,b,w,O,S,E=r&&r.that,P=!(!r||!r.AS_ENTRIES),T=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),R=!(!r||!r.INTERRUPTED),_=n(t,E),I=function(e){var t=y;return y=void 0,t&&f(t,"normal"),new p(!0,e)},x=function(e){return P?(i(e),R?_(e[0],e[1],I):_(e[0],e[1])):R?_(e,I):_(e)};if(T)y=e.iterator;else if(A)y=e;else{if(!(g=d(e)))throw new h(s(e)+" is not iterable");if(a(g)){for(m=0,b=u(e);b>m;m++)if((w=x(e[m]))&&c(v,w))return w;return new p(!1)}y=l(e,g)}for(O=T?e.next:y.next;!(S=o(O,y)).done;){var j=S.value;try{w=x(j)}catch(e){if(!y)throw e;f(y,"throw",e)}if("object"==typeof w&&w&&c(v,w))return w}return new p(!1)}},9556(e,t,r){var n=r(3928),o=r(2858),i=r(8209);e.exports=function(e,t,r){var s,a;o(e);try{if(!(s=i(e,"return"))){if("throw"===t)throw r;return r}s=n(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw r;if(a)throw s;return o(s),r}},4796(e){e.exports={}},2573(e,t,r){var n=r(5483);e.exports=function(e){return n(e.length)}},9394(e,t,r){var n=r(5377),o=r(4114),i=r(1916),s=r(7474),a=r(4317),u=r(1567).CONFIGURABLE,c=r(4677),l=r(2910),d=l.enforce,f=l.get,h=String,p=Object.defineProperty,v=n("".slice),y=n("".replace),g=n([].join),m=a&&!o(function(){return 8!==p(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===v(h(t),0,7)&&(t="["+y(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||u&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),m&&r&&s(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return s(n,"source")||(n.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return i(this)&&f(this).source||c(this)},"toString")},1374(e){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},6244(e,t,r){var n=r(2497),o=TypeError,i=function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw new o("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},4034(e,t,r){var n=r(4317),o=r(5094),i=r(3011),s=r(2858),a=r(600),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",h="writable";t.f=n?i?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:d in r?r[d]:n[d],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(s(e),t=a(t),s(r),o)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},7656(e,t,r){var n=r(4317),o=r(3928),i=r(9536),s=r(1251),a=r(7148),u=r(600),c=r(7474),l=r(5094),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=a(e),t=u(t),l)try{return d(e,t)}catch(e){}if(c(e,t))return s(!o(i.f,e,t),e[t])}},9597(e,t,r){var n=r(3267),o=r(6202).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},5484(e,t){t.f=Object.getOwnPropertySymbols},3994(e,t,r){var n=r(7474),o=r(1916),i=r(3692),s=r(6872),a=r(6280),u=s("IE_PROTO"),c=Object,l=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=i(e);if(n(t,u))return t[u];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof c?l:null}},1394(e,t,r){e.exports=r(5377)({}.isPrototypeOf)},3267(e,t,r){var n=r(5377),o=r(7474),i=r(7148),s=r(9138).indexOf,a=r(4580),u=n([].push);e.exports=function(e,t){var r,n=i(e),c=0,l=[];for(r in n)!o(a,r)&&o(n,r)&&u(l,r);for(;t.length>c;)o(n,r=t[c++])&&(~s(l,r)||u(l,r));return l}},9536(e,t){var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;t.f=n&&!r.call({1:2},1)?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},7102(e,t,r){var n=r(8305),o=r(8143),i=r(3845),s=r(1593);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),s(n),o(r)&&(t?e(r,n):r.__proto__=n),r}}():void 0)},3023(e,t,r){var n=r(3928),o=r(1916),i=r(8143),s=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&o(r=e.toString)&&!i(a=n(r,e))||o(r=e.valueOf)&&!i(a=n(r,e))||"string"!==t&&o(r=e.toString)&&!i(a=n(r,e)))return a;throw new s("Can't convert object to primitive value")}},4192(e,t,r){var n=r(5716),o=r(5377),i=r(9597),s=r(5484),a=r(2858),u=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=s.f;return r?u(t,r(e)):t}},9194(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9269(e,t,r){var n=r(5293),o=r(5557),i=r(1916),s=r(1945),a=r(4677),u=r(762),c=r(2982),l=r(2406),d=r(7552),f=o&&o.prototype,h=u("species"),p=!1,v=i(n.PromiseRejectionEvent);e.exports={CONSTRUCTOR:s("Promise",function(){var e=a(o),t=e!==String(o);if(!t&&66===d||l&&(!f.catch||!f.finally))return!0;if(!d||d<51||!/native code/.test(e)){var r=new o(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((r.constructor={})[h]=n,!(p=r.then(function(){})instanceof n))return!0}return!(t||"BROWSER"!==c&&"DENO"!==c||v)}),REJECTION_EVENT:v,SUBCLASSING:p}},5557(e,t,r){e.exports=r(5293).Promise},1892(e,t,r){var n=r(5557),o=r(7907);e.exports=r(9269).CONSTRUCTOR||!o(function(e){n.all(e).then(void 0,function(){})})},9778(e,t,r){var n=r(5293),o=r(4114),i=n.RegExp;e.exports={correct:!o(function(){var e=!0;try{i(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)o(a,s[a]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(t)!==n||r!==n})}},3588(e,t,r){var n=r(2858);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},9833(e,t,r){var n=r(3928),o=r(7474),i=r(1394),s=r(9778),a=r(3588),u=RegExp.prototype;e.exports=s.correct?function(e){return e.flags}:function(e){return s.correct||!i(u,e)||o(e,"flags")?e.flags:n(a,e)}},3845(e,t,r){var n=r(8606),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},6872(e,t,r){var n=r(4634),o=r(8929),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},358(e,t,r){var n=r(2406),o=r(5293),i=r(4286),s="__core-js_shared__",a=e.exports=o[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},4634(e,t,r){var n=r(358);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},1616(e,t,r){var n=r(7552),o=r(4114),i=r(5293).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},6259(e,t,r){var n=r(9096),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},7148(e,t,r){var n=r(1504),o=r(3845);e.exports=function(e){return n(o(e))}},9096(e,t,r){var n=r(1374);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},5483(e,t,r){var n=r(9096),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},3692(e,t,r){var n=r(3845),o=Object;e.exports=function(e){return o(n(e))}},5746(e,t,r){var n=r(3928),o=r(8143),i=r(9024),s=r(8209),a=r(3023),u=r(762),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,u=s(e,l);if(u){if(void 0===t&&(t="default"),!o(r=n(u,e,t))||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},600(e,t,r){var n=r(5746),o=r(9024);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},7905(e,t,r){var n={};n[r(762)("toStringTag")]="z",e.exports="[object z]"===String(n)},8842(e,t,r){var n=r(5742),o=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},3750(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},8929(e,t,r){var n=r(5377),o=0,i=Math.random(),s=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+i,36)}},6401(e,t,r){e.exports=r(1616)&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3011(e,t,r){var n=r(4317),o=r(4114);e.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},361(e,t,r){var n=r(5293),o=r(1916),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},762(e,t,r){var n=r(5293),o=r(4634),i=r(7474),s=r(8929),a=r(1616),u=r(6401),c=n.Symbol,l=o("wks"),d=u?c.for||c:c&&c.withoutSetter||s;e.exports=function(e){return i(l,e)||(l[e]=a&&i(c,e)?c[e]:d("Symbol."+e)),l[e]}},9082(e,t,r){var n=r(6685),o=r(5293);n({global:!0,forced:o.globalThis!==o},{globalThis:o})},2992(e,t,r){var n=r(6685),o=r(3928),i=r(2497),s=r(6244),a=r(9194),u=r(2921);n({target:"Promise",stat:!0,forced:r(1892)},{allSettled:function(e){var t=this,r=s.f(t),n=r.resolve,c=r.reject,l=a(function(){var r=i(t.resolve),s=[],a=0,c=1;u(e,function(e){var i=a++,u=!1;c++,o(r,t,e).then(function(e){!u&&(u=!0,s[i]={status:"fulfilled",value:e},--c||n(s))},function(e){!u&&(u=!0,s[i]={status:"rejected",reason:e},--c||n(s))})}),--c||n(s)});return l.error&&c(l.value),r.promise}})},9451(e,t,r){var n=r(6685),o=r(3928),i=r(5377),s=r(3845),a=r(1916),u=r(8143),c=r(5033),l=r(8842),d=r(8209),f=r(9833),h=r(1609),p=r(762),v=r(2406),y=p("replace"),g=TypeError,m=i("".indexOf),b=i("".replace),w=i("".slice),O=Math.max;n({target:"String",proto:!0},{replaceAll:function(e,t){var r,n,i,p,S,E,P,T,A,R=s(this),_=0,I="";if(u(e)){if((r=c(e))&&!~m(l(s(f(e))),"g"))throw new g("`.replaceAll` does not allow non-global regexes");if(n=d(e,y))return o(n,e,R,t);if(v&&r)return b(l(R),e,t)}for(i=l(R),p=l(e),(S=a(t))||(t=l(t)),P=O(1,E=p.length),T=m(i,p);-1!==T;)A=S?l(t(p,T,i)):h(p,i,T,[],void 0,t),I+=w(i,_,T)+A,_=T+E,T=T+P>i.length?-1:m(i,p,T+P);return _<i.length&&(I+=w(i,_)),I}})},5518(e,t,r){var n=r(1559),o=r(9717).left,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)})},481(e,t,r){e.exports=r(2256)},205(e,t,r){var n=r(8616),o=r(1056),i=r(3293),s=r(9447),a=r(2956);(e.exports=function(e,t){var r,o,u,c,l;return arguments.length<2||"string"!=typeof e?(c=t,t=e,e=null):c=arguments[2],n(e)?(r=a.call(e,"c"),o=a.call(e,"e"),u=a.call(e,"w")):(r=u=!0,o=!1),l={value:t,configurable:r,enumerable:o,writable:u},c?i(s(c),l):l}).gs=function(e,t,r){var u,c,l,d;return"string"!=typeof e?(l=r,r=t,t=e,e=null):l=arguments[3],n(t)?o(t)?n(r)?o(r)||(l=r,r=void 0):r=void 0:(l=t,t=r=void 0):t=void 0,n(e)?(u=a.call(e,"c"),c=a.call(e,"e")):(u=!0,c=!1),d={get:t,set:r,configurable:u,enumerable:c},l?i(s(l),d):d}},2362(e){e.exports=function(){}},3293(e,t,r){e.exports=r(964)()?Object.assign:r(9800)},964(e){e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},9800(e,t,r){var n=r(6936),o=r(7849),i=Math.max;e.exports=function(e,t){var r,s,a,u=i(arguments.length,2);for(e=Object(o(e)),a=function(n){try{e[n]=t[n]}catch(e){r||(r=e)}},s=1;s<u;++s)n(t=arguments[s]).forEach(a);if(void 0!==r)throw r;return e}},6175(e,t,r){var n=r(2362)();e.exports=function(e){return e!==n&&null!==e}},6936(e,t,r){e.exports=r(2047)()?Object.keys:r(9591)},2047(e){e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},9591(e,t,r){var n=r(6175),o=Object.keys;e.exports=function(e){return o(n(e)?Object(e):e)}},9447(e,t,r){var n=r(6175),o=Array.prototype.forEach,i=Object.create;e.exports=function(e){var t=i(null);return o.call(arguments,function(e){n(e)&&function(e,t){var r;for(r in e)t[r]=e[r]}(Object(e),t)}),t}},7849(e,t,r){var n=r(6175);e.exports=function(e){if(!n(e))throw TypeError("Cannot use null or undefined");return e}},2956(e,t,r){e.exports=r(7283)()?String.prototype.contains:r(2755)},7283(e){var t="razdwatrzy";e.exports=function(){return"function"==typeof t.contains&&!0===t.contains("dwa")&&!1===t.contains("foo")}},2755(e){var t=String.prototype.indexOf;e.exports=function(e){return t.call(this,e,arguments[1])>-1}},1201(e,t,r){r(6983)()||Object.defineProperty(r(7535),"Symbol",{value:r(1313),configurable:!0,enumerable:!1,writable:!0})},6983(e,t,r){var n=r(7535),o={object:!0,symbol:!0};e.exports=function(){var e,t=n.Symbol;if("function"!=typeof t)return!1;e=t("test symbol");try{String(e)}catch(e){return!1}return!!o[typeof t.iterator]&&!!o[typeof t.toPrimitive]&&!!o[typeof t.toStringTag]}},795(e){e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}},7049(e,t,r){var n=r(205),o=Object.defineProperty,i=Object.prototype,s=(0,Object.create)(null);e.exports=function(e){for(var t,r,a=0;s[e+(a||"")];)++a;return s[e+=a||""]=!0,o(i,t="@@"+e,n.gs(null,function(e){r||(r=!0,o(this,t,n(e)),r=!1)})),t}},6441(e,t,r){var n=r(205),o=r(7535).Symbol;e.exports=function(e){return Object.defineProperties(e,{hasInstance:n("",o&&o.hasInstance||e("hasInstance")),isConcatSpreadable:n("",o&&o.isConcatSpreadable||e("isConcatSpreadable")),iterator:n("",o&&o.iterator||e("iterator")),match:n("",o&&o.match||e("match")),replace:n("",o&&o.replace||e("replace")),search:n("",o&&o.search||e("search")),species:n("",o&&o.species||e("species")),split:n("",o&&o.split||e("split")),toPrimitive:n("",o&&o.toPrimitive||e("toPrimitive")),toStringTag:n("",o&&o.toStringTag||e("toStringTag")),unscopables:n("",o&&o.unscopables||e("unscopables"))})}},2890(e,t,r){var n=r(205),o=r(9509),i=Object.create(null);e.exports=function(e){return Object.defineProperties(e,{for:n(function(t){return i[t]?i[t]:i[t]=e(String(t))}),keyFor:n(function(e){var t;for(t in o(e),i)if(i[t]===e)return t})})}},1313(e,t,r){var n,o,i,s=r(205),a=r(9509),u=r(7535).Symbol,c=r(7049),l=r(6441),d=r(2890),f=Object.create,h=Object.defineProperties,p=Object.defineProperty;if("function"==typeof u)try{String(u()),i=!0}catch(e){}else u=null;o=function(e){if(this instanceof o)throw TypeError("Symbol is not a constructor");return n(e)},e.exports=n=function e(t){if(this instanceof e)throw TypeError("Symbol is not a constructor");return i?u(t):h(f(o.prototype),{__description__:s("",t=void 0===t?"":String(t)),__name__:s("",c(t))})},l(n),d(n),h(o.prototype,{constructor:s(n),toString:s("",function(){return this.__name__})}),h(n.prototype,{toString:s(function(){return"Symbol ("+a(this).__description__+")"}),valueOf:s(function(){return a(this)})}),p(n.prototype,n.toPrimitive,s("",function(){var e=a(this);return"symbol"==typeof e?e:e.toString()})),p(n.prototype,n.toStringTag,s("c","Symbol")),p(o.prototype,n.toStringTag,s("c",n.prototype[n.toStringTag])),p(o.prototype,n.toPrimitive,s("c",n.prototype[n.toPrimitive]))},9509(e,t,r){var n=r(795);e.exports=function(e){if(!n(e))throw TypeError(e+" is not a symbol");return e}},6545(e){var t=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t()}try{return __global__||t()}finally{delete Object.prototype.__global__}}()},7535(e,t,r){e.exports=r(7686)()?globalThis:r(6545)},7686(e){e.exports=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}},5769(e,t,r){var n=r(9273);e.exports=function(e){if("function"!=typeof e||!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length||"function"!=typeof e.call||"function"!=typeof e.apply)return!1}catch(e){return!1}return!n(e)}},7096(e,t,r){var n=r(8616),o={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!n(e)&&hasOwnProperty.call(o,typeof e)}},1056(e,t,r){var n=r(5769),o=/^\s*class[\s{/}]/,i=Function.prototype.toString;e.exports=function(e){return!(!n(e)||o.test(i.call(e)))}},9273(e,t,r){var n=r(7096);e.exports=function(e){if(!n(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}},8616(e){e.exports=function(e){return null!=e}},5995(e,t,r){var n,o;let i=e=>"TEXTAREA"===e.nodeName,s=e=>"INPUT"===e.nodeName,a=e=>"LINK"===e.nodeName;(o=n||(n={})).XLINK="http://www.w3.org/1999/xlink",o.XHTML="http://www.w3.org/1999/xhtml",o.XML="https://www.w3.org/XML/1998/namespace",r.d(t,{tm:()=>n},{A6:e=>"IMG"===e.nodeName,B6:s,Gr:e=>a(e)&&["stylesheet","alternate stylesheet"].includes(e.rel),JL:a,Jp:e=>"SELECT"===e.nodeName,Kc:e=>!!e&&(null==e?void 0:e.nodeType)===Node.DOCUMENT_NODE,LY:e=>"PICTURE"===e.nodeName,Ll:e=>void 0!==(null==e?void 0:e.nodeName),Ng:e=>"#document-fragment"===e.nodeName&&"ShadowRoot"===e.constructor.name,PV:e=>"SOURCE"===e.nodeName,QU:e=>"#comment"===e.nodeName,ST:e=>null!==e&&("STYLE"===e.nodeName||"style"===e.nodeName),Wj:e=>"OBJECT"===e.nodeName,Ws:e=>"VIDEO"===e.nodeName,X:e=>"TITLE"===e.nodeName,a8:e=>e.nodeType===Node.DOCUMENT_TYPE_NODE,bK:e=>"IFRAME"===e.nodeName,c8:e=>"image"===e.nodeName,gh:e=>e.nodeType===Node.DOCUMENT_FRAGMENT_NODE,im:e=>"use"===e.nodeName,ir:e=>e.nodeType===Node.TEXT_NODE,j1:i,ji:e=>"#document-fragment"===e.nodeName&&"ShadowRoot"!==e.constructor.name,kH:e=>"META"===e.nodeName,lg:e=>"HEAD"===e.nodeName,oq:e=>s(e)||i(e),r0:e=>"CANVAS"===e.nodeName,rh:e=>"SCRIPT"===e.nodeName||"NOSCRIPT"===e.nodeName,sb:e=>void 0!==(null==e?void 0:e.dataset),vq:e=>(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE})},3437(){if("function"!=typeof Array.prototype.flat&&Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function e(t=1){return 0===t?Array.prototype.slice.call(this):Array.prototype.reduce.call(this,(r,n)=>(Array.isArray(n)?r.push(...e.call(n,t-1)):r.push(n),r),[])},writable:!0}),"function"!=typeof Array.prototype.flatMap&&Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(...e){return Function.prototype.apply.call(Array.prototype.map,this,e).flat()},writable:!0}),"function"!=typeof Array.from&&(Array.from=function(){try{e=null!=(t=Symbol.iterator)?t:"Symbol(Symbol.iterator)"}catch(t){e="Symbol(Symbol.iterator)"}var e,t,r=Object.prototype.toString,n=function(e){return"function"==typeof e||"[object Function]"===r.call(e)};return function(t){var r,o=Object(t),i=n(o[e]);if(null==t&&!i)throw TypeError("Array.from requires an array-like object or iterator - not null or undefined");var s=arguments.length>1?arguments[1]:void 0;if(void 0!==s){if(!n(s))throw TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}var a=Math.min(Math.max(function(e){var t=Number(e);return Number.isNaN(t)?0:0!==t&&Number.isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(o.length),0),9007199254740991);return function(e,t,r,n,o,i){for(var s=0;s<r||o;){var a=n(s),u=o?a.value:a;if(o&&a.done)return t;t[s]=i?void 0===e?i(u,s):i.call(e,u,s):u,s+=1}if(o)throw TypeError("Array.from: provided arrayLike or iterator has length more then 2 ** 52 - 1");return t.length=r,t}(r,n(this)?Object(new this(a)):Array(a),a,function(t,r){var n=t&&r[e]();return function(e){return t?n.next():r[e]}}(i,o),i,s)}}()),"function"!=typeof Array.prototype.includes){let e=(e,t)=>e===t||"number"==typeof e&&"number"==typeof t&&Number.isNaN(e)&&Number.isNaN(t);Object.defineProperty(Array.prototype,"includes",{value:function(t,r=0){if(null==this)throw TypeError('"this" is null or not defined');var n=Object(this),o=n.length>>>0;if(0===o)return!1;for(var i=Math.max(r>=0?r:o-Math.abs(r),0);i<o;){if(e(n[i],t))return!0;i+=1}return!1}})}"function"!=typeof Array.prototype.find&&(Array.prototype.find=function(e){if(null===this)throw TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw TypeError("callback must be a function");for(var t=Object(this),r=t.length>>>0,n=arguments[1],o=0;o<r;o++){var i=t[o];if(e.call(n,i,o,t))return i}})},9735(){function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class t{addEventListener(e,t){"message"!==e||"function"!=typeof t||this.onmessageListeners.includes(t)||this.onmessageListeners.push(t)}close(){}dispatchEvent(e){return this.onmessage&&this.onmessage(e),this.onmessageListeners.forEach(t=>t(e)),!0}postMessage(e){this.otherPort&&this.otherPort.dispatchEvent({data:e})}removeEventListener(e,t){if("message"!==e)return;let r=this.onmessageListeners.indexOf(t);-1!==r&&this.onmessageListeners.splice(r,1)}start(){}constructor(){e(this,"onmessage",null),e(this,"onmessageerror",null),e(this,"otherPort",null),this.onmessageListeners=[]}}window.MessagePort&&window.MessageChannel||(window.MessagePort=t,window.MessageChannel=class{constructor(){this.port1=new t,this.port2=new t,this.port1.otherPort=this.port2,this.port2.otherPort=this.port1}})},6937(){Object.setPrototypeOf||(Object.prototype.setPrototypeOf=function(e,t){if(e.__proto__)return e.__proto__=t,e;var r=function(){for(var t in e)Object.defineProperty(this,t,{value:e[t]})};return r.prototype=t,new r})},6177(){function e(e,t){let r=this.event&&this.event.type,n=new XMLHttpRequest;n.open("POST",e,"unload"!==r&&"beforeunload"!==r),n.withCredentials=!0,n.setRequestHeader("Accept","*/*"),"string"==typeof t?(n.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),n.responseType="text/plain"):t instanceof Blob&&t.type&&n.setRequestHeader("Content-Type",t.type);try{n.send(t)}catch(e){return!1}return!0}function t(){return"navigator"in this&&"sendBeacon"in this.navigator}(function(){t.call(this)||("navigator"in this||(this.navigator={}),this.navigator.sendBeacon=e.bind(this))}).call("object"===("u"<typeof window?"undefined":("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(window))?window:void 0)}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e].call(r.exports,r,r.exports,i),r.exports}i.d=(e,t,r)=>{var n=(t,r)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,[r]:t[n]})};n(t,"get"),n(r,"value")},i.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return Function("return this")()}catch(e){if("object"==typeof window)return window}})(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s={};(()=>{i(3437),i(3970),i(1734),i(3804),i(9735);var e=i(5995);function t(e){return null!=e.parentNode?t(e.parentNode):e}"isConnected"in Node.prototype||Object.defineProperty(Node.prototype,"isConnected",{get(){return!(this.ownerDocument&&this.ownerDocument.compareDocumentPosition(this)&this.DOCUMENT_POSITION_DISCONNECTED)}}),"getRootNode"in Node.prototype||Object.defineProperty(Node.prototype,"getRootNode",{configurable:!1,enumerable:!1,value:function(r){return"object"==typeof r&&r.composed?function r(n){let o=t(n);return(0,e.Ng)(o)?r(o.host):o}(this):t(this)}}),i(6937),i(710),i(8135),i(350),i(6516),i(1971);var r=function(){if("u">typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var o=n[r];e.call(t,o[1],o[0])}},t}(),n="u">typeof window&&"u">typeof document&&window.document===document,o=void 0!==i.g&&i.g.Math===Math?i.g:"u">typeof self&&self.Math===Math?self:"u">typeof window&&window.Math===Math?window:Function("return this")(),s="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},a=["top","right","bottom","left","width","height","size","weight"],u="u">typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,r=!1,n=0;function o(){t&&(t=!1,e()),r&&a()}function i(){s(o)}function a(){var e=Date.now();if(t){if(e-n<2)return;r=!0}else t=!0,r=!1,setTimeout(i,20);n=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){n&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;a.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},f=y(0,0,0,0);function h(e){return parseFloat(e)||0}function p(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(t,r){return t+h(e["border-"+r+"-width"])},0)}var v="u">typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function y(e,t,r,n){return{x:e,y:t,width:r,height:n}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=function(e){return n?v(e)?y(0,0,(t=e.getBBox()).width,t.height):function(e){var t,r=e.clientWidth,n=e.clientHeight;if(!r&&!n)return f;var o=d(e).getComputedStyle(e),i=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var o=n[r],i=e["padding-"+o];t[o]=h(i)}return t}(o),s=i.left+i.right,a=i.top+i.bottom,u=h(o.width),c=h(o.height);if("border-box"===o.boxSizing&&(Math.round(u+s)!==r&&(u-=p(o,"left","right")+s),Math.round(c+a)!==n&&(c-=p(o,"top","bottom")+a)),(t=e)!==d(t).document.documentElement){var l=Math.round(u+s)-r,v=Math.round(c+a)-n;1!==Math.abs(l)&&(u-=l),1!==Math.abs(v)&&(c-=v)}return y(i.left,i.top,u,c)}(e):f;var t}(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),m=function(e,t){var r,n,o,i,s,a=(r=t.x,n=t.y,o=t.width,i=t.height,l(s=Object.create(("u">typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:r,y:n,width:o,height:i,top:n,right:r+o,bottom:i+n,left:r}),s);l(this,{target:e,contentRect:a})},b=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if(!("u"<typeof Element)&&Element instanceof Object){if(!(e instanceof d(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if(!("u"<typeof Element)&&Element instanceof Object){if(!(e instanceof d(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new m(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="u">typeof WeakMap?new WeakMap:new r,O=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var r=new b(t,c.getInstance(),this);w.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){O.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}});var S=void 0!==o.ResizeObserver?o.ResizeObserver:O;window.ResizeObserver||(window.ResizeObserver=S),i(6177),i(2520),i(3259),i(8288),i(2494),i(9082),i(2992),i(9451),i(1201);let E=function(e){var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){return t.reject(r)})})},P=function(e){return new this(function(t,r){if(!e||void 0===e.length)return r(TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(e);if(0===n.length)return t([]);for(var o=n.length,i=0;i<n.length;i++)!function e(r,i){if(i&&("object"==typeof i||"function"==typeof i)){var s=i.then;if("function"==typeof s)return void s.call(i,function(t){e(r,t)},function(e){n[r]={status:"rejected",reason:e},0==--o&&t(n)})}n[r]={status:"fulfilled",value:i},0==--o&&t(n)}(i,n[i])})};function T(e,t){this.name="AggregateError",this.errors=e,this.message=t||""}T.prototype=Error.prototype;let A=function(e){var t=this;return new t(function(r,n){if(!e||void 0===e.length)return n(TypeError("Promise.any accepts an array"));var o=Array.prototype.slice.call(e);if(0===o.length)return n();for(var i=[],s=0;s<o.length;s++)try{t.resolve(o[s]).then(r).catch(function(e){i.push(e),i.length===o.length&&n(new T(i,"All promises were rejected"))})}catch(e){n(e)}})};var R=setTimeout;function _(e){return!(!e||void 0===e.length)}function I(){}function x(e){if(!(this instanceof x))throw TypeError("Promises must be constructed via new");if("function"!=typeof e)throw TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],N(e,this)}function j(e,t){for(;3===e._state;)e=e._value;0===e._state?e._deferreds.push(t):(e._handled=!0,x._immediateFn(function(){var r,n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){try{r=n(e._value)}catch(e){return void k(t.promise,e)}C(t.promise,r)}else(1===e._state?C:k)(t.promise,e._value)}))}function C(e,t){try{if(t===e)throw TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof x)return e._state=3,e._value=t,void L(e);if("function"==typeof r)return void N(function(){r.apply(t,arguments)},e)}e._state=1,e._value=t,L(e)}catch(t){k(e,t)}}function k(e,t){e._state=2,e._value=t,L(e)}function L(e){2===e._state&&0===e._deferreds.length&&x._immediateFn(function(){e._handled||x._unhandledRejectionFn(e._value)});for(var t=0,r=e._deferreds.length;t<r;t++)j(e,e._deferreds[t]);e._deferreds=null}function M(e,t,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=r}function N(e,t){var r=!1;try{e(function(e){r||(r=!0,C(t,e))},function(e){r||(r=!0,k(t,e))})}catch(e){if(r)return;r=!0,k(t,e)}}x.prototype.catch=function(e){return this.then(null,e)},x.prototype.then=function(e,t){var r=new this.constructor(I);return j(this,new M(e,t,r)),r},x.prototype.finally=E,x.all=function(e){return new x(function(t,r){if(!_(e))return r(TypeError("Promise.all accepts an array"));var n=Array.prototype.slice.call(e);if(0===n.length)return t([]);for(var o=n.length,i=0;i<n.length;i++)!function e(i,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,function(t){e(i,t)},r)}n[i]=s,0==--o&&t(n)}catch(e){r(e)}}(i,n[i])})},x.any=A,x.allSettled=P,x.resolve=function(e){return e&&"object"==typeof e&&e.constructor===x?e:new x(function(t){t(e)})},x.reject=function(e){return new x(function(t,r){r(e)})},x.race=function(e){return new x(function(t,r){if(!_(e))return r(TypeError("Promise.race accepts an array"));for(var n=0,o=e.length;n<o;n++)x.resolve(e[n]).then(t,r)})},x._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){R(e,0)},x._unhandledRejectionFn=function(e){"u">typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var D=function(){if("u">typeof self)return self;if("u">typeof window)return window;if(void 0!==i.g)return i.g;throw Error("unable to locate global object")}();"function"!=typeof D.Promise?D.Promise=x:(D.Promise.prototype.finally||(D.Promise.prototype.finally=E),D.Promise.allSettled||(D.Promise.allSettled=P),D.Promise.any||(D.Promise.any=A));var B="u">typeof globalThis&&globalThis||"u">typeof self&&self||void 0!==i.g&&i.g||{},U="URLSearchParams"in B,F="Symbol"in B&&"iterator"in Symbol,W="FileReader"in B&&"Blob"in B&&function(){try{return new Blob,!0}catch(e){return!1}}(),z="FormData"in B,V="ArrayBuffer"in B;if(V)var H=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],G=ArrayBuffer.isView||function(e){return e&&H.indexOf(Object.prototype.toString.call(e))>-1};function q(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function K(e){return"string"!=typeof e&&(e=String(e)),e}function $(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return F&&(t[Symbol.iterator]=function(){return t}),t}function X(e){this.map={},e instanceof X?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function Y(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function Q(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function J(e){var t=new FileReader,r=Q(t);return t.readAsArrayBuffer(e),r}function Z(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function ee(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(W&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(z&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(U&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;V&&W&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Z(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):V&&(ArrayBuffer.prototype.isPrototypeOf(e)||G(e))?this._bodyArrayBuffer=Z(e):this._bodyText=e=Object.prototype.toString.call(e)}else this._noBody=!0,this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):U&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},W&&(this.blob=function(){var e=Y(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return Y(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(W)return this.blob().then(J);throw Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,o,i=Y(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,r=Q(t=new FileReader),o=(n=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?n[1]:"utf-8",t.readAsText(e,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},z&&(this.formData=function(){return this.text().then(ne)}),this.json=function(){return this.text().then(JSON.parse)},this}X.prototype.append=function(e,t){e=q(e),t=K(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},X.prototype.delete=function(e){delete this.map[q(e)]},X.prototype.get=function(e){return e=q(e),this.has(e)?this.map[e]:null},X.prototype.has=function(e){return this.map.hasOwnProperty(q(e))},X.prototype.set=function(e,t){this.map[q(e)]=K(t)},X.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},X.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),$(e)},X.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),$(e)},X.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),$(e)},F&&(X.prototype[Symbol.iterator]=X.prototype.entries);var te=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function re(e,t){if(!(this instanceof re))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof re){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new X(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new X(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),te.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in B)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function ne(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}}),t}function oe(e,t){if(!(this instanceof oe))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new X(t.headers),this.url=t.url||"",this._initBody(e)}re.prototype.clone=function(){return new re(this,{body:this._bodyInit})},ee.call(re.prototype),ee.call(oe.prototype),oe.prototype.clone=function(){return new oe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new X(this.headers),url:this.url})},oe.error=function(){var e=new oe(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var ie=[301,302,303,307,308];oe.redirect=function(e,t){if(-1===ie.indexOf(t))throw RangeError("Invalid status code");return new oe(null,{status:t,headers:{location:e}})};var se=B.DOMException;try{new se}catch(e){(se=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),se.prototype.constructor=se}function ae(e,t){return new Promise(function(r,n){var o=new re(e,t);if(o.signal&&o.signal.aborted)return n(new se("Aborted","AbortError"));var i=new XMLHttpRequest;function s(){i.abort()}if(i.onload=function(){var e,t,n={statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new X,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(e){console.warn("Response "+e.message)}}}),t)};0===o.url.indexOf("file://")&&(i.status<200||i.status>599)?n.status=200:n.status=i.status,n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var s="response"in i?i.response:i.responseText;setTimeout(function(){r(new oe(s,n))},0)},i.onerror=function(){setTimeout(function(){n(TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){n(TypeError("Network request timed out"))},0)},i.onabort=function(){setTimeout(function(){n(new se("Aborted","AbortError"))},0)},i.open(o.method,function(e){try{return""===e&&B.location.href?B.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(W?i.responseType="blob":V&&(i.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof X||B.Headers&&t.headers instanceof B.Headers)){var a=[];Object.getOwnPropertyNames(t.headers).forEach(function(e){a.push(q(e)),i.setRequestHeader(e,K(t.headers[e]))}),o.headers.forEach(function(e,t){-1===a.indexOf(t)&&i.setRequestHeader(t,e)})}else o.headers.forEach(function(e,t){i.setRequestHeader(t,e)});o.signal&&(o.signal.addEventListener("abort",s),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",s)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})}ae.polyfill=!0,B.fetch||(B.fetch=ae,B.Headers=X,B.Request=re,B.Response=oe)})(),(()=>{let e,t,r,n,o,a,u,c,l,d,f,h,p,v,y,g,m,b;function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i.d(s,{I:()=>Is,o:()=>Ro}),(oe=se||(se={}))[oe.DEBUG=0]="DEBUG",oe[oe.INFO=1]="INFO",oe[oe.WARN=2]="WARN",oe[oe.ERROR=3]="ERROR",oe[oe.CRITICAL=4]="CRITICAL";class O{constructor(){w(this,"loggingLevel",null),w(this,"loggingPrefix",""),w(this,"middlewares",[]),w(this,"critical",(e,...t)=>{this.processMiddlewares("console","critical",e,...t),null!==this.loggingLevel&&se.CRITICAL>=this.loggingLevel&&console.error(`${this.loggingPrefix}${e}`,...t)}),w(this,"debug",(e,...t)=>{this.processMiddlewares("console","debug",e,...t),null!==this.loggingLevel&&se.DEBUG>=this.loggingLevel&&console.debug(`${this.loggingPrefix}${e}`,...t)}),w(this,"debugNoConsole",(e,...t)=>{this.processMiddlewares("internal","debug",e,...t)}),w(this,"error",(e,...t)=>{this.processMiddlewares("console","error",e,...t),null!==this.loggingLevel&&se.ERROR>=this.loggingLevel&&console.error(`${this.loggingPrefix}${e}`,...t)}),w(this,"errorNoConsole",(e,...t)=>{this.processMiddlewares("internal","error",e,...t)}),w(this,"info",(e,...t)=>{this.processMiddlewares("console","info",e,...t),null!==this.loggingLevel&&se.INFO>=this.loggingLevel&&console.log(`${this.loggingPrefix}${e}`,...t)}),w(this,"infoNoConsole",(e,...t)=>{this.processMiddlewares("internal","info",e,...t)}),w(this,"setLoggingLevel",e=>{this.loggingLevel=O.convertLogLevelToNumber(e)}),w(this,"setLoggingPrefix",e=>{this.loggingPrefix=e}),w(this,"setMiddleware",e=>{this.middlewares.push(e)}),w(this,"warn",(e,...t)=>{this.processMiddlewares("console","warn",e,...t),null!==this.loggingLevel&&se.WARN>=this.loggingLevel&&console.warn(`${this.loggingPrefix}${e}`,...t)}),w(this,"warnNoConsole",(e,...t)=>{this.processMiddlewares("internal","warn",e,...t)}),w(this,"processMiddlewares",(e,t,r,...n)=>{this.middlewares.forEach(o=>o(e,t,r,...n))})}}w(O,"convertLogLevelToNumber",e=>{switch(e){case"debug":return se.DEBUG;case"info":return se.INFO;case"warn":return se.WARN;case"error":default:return se.ERROR;case"critical":return se.CRITICAL}});let S=new O,E=e=>{var t,r;let n=t=>`${e}: ${t}`;return t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},S),r=r={debug:(e,...t)=>{S.debug(n(e),...t)},error:(e,...t)=>{S.error(n(e),...t)},info:(e,...t)=>{S.info(n(e),...t)},warn:(e,...t)=>{S.warn(n(e),...t)}},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t},P=e=>{try{return!!e.location.href}catch(e){return!1}};class T{getWindowId(e){let t=this.idByWindow.get(e);if(!t)throw Error("Window ID not found in IframeWindowIdManager");return t}setWindowId(e,t){this.idByWindow.set(e,t)}constructor(){var e,t;e="idByWindow",t=new WeakMap,e in this?Object.defineProperty(this,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):this[e]=t}}let A=()=>((e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t})(),R=e=>{let t=null;try{t=window.localStorage.getItem(e)}catch(e){}return t},_=(e,t)=>{try{return window.localStorage.setItem(e,t),!0}catch(e){return!1}},I=e=>{try{window.localStorage.removeItem(e)}catch(e){}},x=e=>{let t=null;try{t=window.sessionStorage.getItem(e)}catch(e){}return t},j=(e,t)=>{try{return window.sessionStorage.setItem(e,t),!0}catch(e){return!1}},C=e=>{try{window.sessionStorage.removeItem(e)}catch(e){}},k=e=>void 0===e.isTrusted||e.isTrusted;function L(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function M(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){L(i,n,o,s,a,"next",e)}function a(e){L(i,n,o,s,a,"throw",e)}s(void 0)})}}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let D="web_recorder_browser_instance_id",B="web_recorder_browser_instance_id_available",U="web_recorder_browser_instance_id_taken",F=A();class W{static get id(){if(!this.isInitialized)throw Error("Attempt to get id before BrowserInstanceService is initialized.");if(window.top!==window){if(!this._id)throw TypeError("ID is not set");return this._id}if(!this.isCommunicationWithOtherTabsFinished)return S.warn("BrowserInstanceService: Communication with other tabs is not finished yet. Treating tab as a new tab and stopping communication."),this._id=A(),this._id;if(!this._id)throw TypeError("ID is not set");return this._id}static initialize(){return M(function*(){this.isInitialized?S.error("BrowserInstanceService: Unexpected - initialize called more than once"):(this.isInitialized=!0,window.addEventListener("storage",this.handleIdAvailableStorageEvent),yield this.assignId())}).call(this)}static initializeInIframe(e){window.top===window?S.error("BrowserInstanceService: initializeInIframe should not be called outside of an iframe."):this.isInitialized?S.error("BrowserInstanceService: Unexpected - initialize called more than once"):(this.isInitialized=!0,this._id=e)}static assignId(){return M(function*(){var e;if(this._id=null!=(e=x(D))?e:void 0,void 0===this._id)this._id=A(),S.debug("BrowserInstanceService: new tab identified",{id:this._id});else{_(B,this._id);let e=performance.now();yield this.waitForIdTakenEvent(),S.debug("BrowserInstanceService: communication with other tabs finished",performance.now()-e),I(B),I(U)}this.isCommunicationWithOtherTabsFinished=!0,j(D,this._id)}).call(this)}static waitForIdTakenEvent(){return new Promise(e=>{let t=window.setTimeout(()=>{S.debug("BrowserInstanceService: TAB_ID_TAKEN event not received in time."),window.removeEventListener("storage",r),e()},100),r=n=>{if(k(n)&&n.key===U&&n.newValue){let o=n.newValue.split(";"),i=o[0],s=o[1];i===this._id&&s!==F&&(this.isCommunicationWithOtherTabsFinished?S.error("BrowserInstanceService: duplicated tab identified but communication is already finished."):(this._id=A(),S.error("BrowserInstanceService: duplicated tab identified generating new ID",this._id),this.isCommunicationWithOtherTabsFinished=!0),window.removeEventListener("storage",r),clearTimeout(t),e())}};window.addEventListener("storage",r)})}}N(W,"isInitialized",!1),N(W,"_id",void 0),N(W,"isCommunicationWithOtherTabsFinished",!1),N(W,"handleIdAvailableStorageEvent",e=>{e.key!==B||e.newValue!==W._id||_(U,`${W._id};${F}`)});let z=(e,t)=>{for(let[r,n]of Object.entries(t))e.style.setProperty(r,n)},V=e=>{let t=null;try{var r,n;t=null!=(r=null==(n=e.defaultView)?void 0:n.frameElement)?r:null}catch(e){}return t},H=e=>null!==e&&"object"==typeof e&&"ArrayBuffer"===e.constructor.name;function G(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class q extends Error{toJSON(){return{name:this.name,additionalData:this.additionalData,message:this.message,originalAdditionalData:this.originalAdditionalData,originalError:this.originalError,originalMessage:this.originalMessage,originalName:this.originalName,originalStack:this.originalStack,shouldReport:this.shouldReport,stack:this.stack}}constructor(e,{additionalData:t={},originalError:r,shouldReport:n=!0}={}){super(e),G(this,"additionalData",void 0),G(this,"originalAdditionalData",void 0),G(this,"originalError",void 0),G(this,"originalMessage",void 0),G(this,"originalName",void 0),G(this,"originalStack",void 0),G(this,"shouldReport",void 0),Object.setPrototypeOf(this,q.prototype),this.name="ReplayError",this.additionalData=t,this.shouldReport=n,r&&(this.originalName=r.name,this.originalStack=r.stack,this.originalMessage=r.message,this.originalError=r),r instanceof q&&(this.originalAdditionalData=r.additionalData)}}let K=e=>{var t,r;return null!==e&&"object"==typeof e&&(e instanceof Error||(null==(t=e.constructor.name)?void 0:t.endsWith("Error"))||(null==(r=e.constructor.name)?void 0:r.endsWith("Exception")))};function $(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function X(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){$(i,n,o,s,a,"next",e)}function a(e){$(i,n,o,s,a,"throw",e)}s(void 0)})}}function Y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Q{initialize(){return X(function*(){"loading"===document.readyState&&(yield new Promise(e=>{document.addEventListener("DOMContentLoaded",()=>{e()})})),this.isDetroyed||(this.initializeIframe(),this.mutationObserver=new MutationObserver(()=>{this.iframe&&!this.iframe.isConnected&&(this.initializeIframe(),this.pendingMessages.forEach(e=>{let[t,r]=e;this.sendMessage(t,r).catch(e=>{S.error("Error sending pending message to iframe",e)})}))}),this.mutationObserver.observe(document.body,{childList:!0,subtree:!1}))}).call(this)}initializeIframe(){let[e,t]=(({attributes:e,iframeName:t,parentElement:r,style:n,styleAfterLoad:o})=>{let i=document.createElement("iframe");for(let[t,r]of Object.entries(e||{}))void 0!==r&&i.setAttribute(t,r);return z(i,n||{}),[i,e=>new Promise((n,s)=>{let a=()=>{i.removeEventListener("load",a),i.removeEventListener("error",u),z(i,o||{}),n()},u=()=>{i.removeEventListener("load",a),i.removeEventListener("error",u),z(i,o||{}),s(Error(`Player ${t} iframe load failed.`))};i.addEventListener("load",a),i.addEventListener("error",u),null==r||r.append(i),e&&setTimeout(()=>{i.removeEventListener("load",a),i.removeEventListener("error",u),s(Error(`Iframe ${t} load timeout.`))},e)})]})({attributes:{src:this.backgroundServiceSrc},iframeName:"session-replay-background-service",parentElement:document.body,style:{display:"none",height:"0",visibility:"hidden",width:"0"}});this.iframe=e,this.iframePromise=t()}constructor(e){var t;Y(this,"config",void 0),Y(this,"backgroundServiceSrc",void 0),Y(this,"id",void 0),Y(this,"iframe",void 0),Y(this,"iframePromise",void 0),Y(this,"isDetroyed",void 0),Y(this,"mutationObserver",void 0),Y(this,"pendingMessages",void 0),Y(this,"bitmapToBlob",void 0),Y(this,"blobToBase64",void 0),Y(this,"compressImageBlob",void 0),Y(this,"destroy",void 0),Y(this,"prepareAndSendMessage",void 0),Y(this,"sendMessage",void 0),this.config=e,this.backgroundServiceSrc="",this.id=0,this.isDetroyed=!1,this.pendingMessages=[],this.bitmapToBlob=e=>X(function*(){let t,r;if(this.iframe)try{let t=yield this.prepareAndSendMessage({type:"bitmapToArrayBuffer",data:{bitmap:e}},[e]);if(!H(t.arrayBuffer))throw new q("'bitmapToBlob' returned type is not ArrayBuffer");return new Blob([t.arrayBuffer])}catch(e){K(e)&&e.message&&(e.message.includes("Non-origin-clean ImageBitmap cannot be transferred.")||e.message.includes("invalid transferable array for structured clone")||e.message.includes("The object can not be cloned"))||S.error("error while sending message to iframe",e)}return null==(r=(t=new OffscreenCanvas(e.width,e.height)).getContext("2d"))||r.drawImage(e,0,0),e.close(),t.convertToBlob()}).call(this),this.blobToBase64=e=>X(function*(){let t;return(t=new FileReader).readAsDataURL(e),new Promise((e,r)=>{t.addEventListener("error",()=>r(Error("Error reading file"))),t.addEventListener("loadend",()=>{e(t.result)})})})(),this.compressImageBlob=(e,t)=>X(function*(){if(!this.iframe)return;let r=yield e.arrayBuffer();try{let n=yield this.prepareAndSendMessage({type:"compressImageBlob",data:{type:e.type,arrayBuffer:r,quality:t}},[r]);if(!H(n.arrayBuffer))throw new q("'compressImageBlob' returned type is not ArrayBuffer");return new Blob([n.arrayBuffer],{type:n.type})}catch(e){S.error("error while sending message to iframe",e)}}).call(this),this.destroy=()=>{var e,t;this.isDetroyed=!0,null==(e=this.mutationObserver)||e.disconnect(),null==(t=this.iframe)||t.remove()},this.prepareAndSendMessage=(e,t)=>X(function*(){let r=this.id;this.id+=1,this.id%=Number.MAX_SAFE_INTEGER;let n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Y(e,t,r[t])})}return e}({id:r},e);return this.pendingMessages.push([n,t]),this.sendMessage(n,t)}).call(this),this.sendMessage=(e,t)=>X(function*(){var r;if(!this.iframe)throw new q("Iframe is not initialized");yield this.iframePromise;let n=new URL(this.backgroundServiceSrc);return null==(r=this.iframe.contentWindow)||r.postMessage(e,n.origin,t),new Promise(t=>{let r=n=>{var o,i;if(n.source===(null==(o=this.iframe)?void 0:o.contentWindow)){let o;if("object"==typeof(o=i=n.data)&&null!==o&&"type"in o&&"string"==typeof o.type&&"id"in o&&"number"==typeof o.id&&"output"in i&&n.data.id===e.id)return this.pendingMessages=this.pendingMessages.filter(t=>t[0].id!==e.id),self.removeEventListener("message",r),t(n.data.data)}};self.addEventListener("message",r)})}).call(this),(null==(t=this.config.features)?void 0:t.backgroundServiceSrc)&&(this.backgroundServiceSrc=this.config.features.backgroundServiceSrc,this.initialize())}}class J extends Error{constructor(...e){super(...e),Object.setPrototypeOf(this,J.prototype)}}let Z="REPLAY_WEB";var ee,te,re,ne,oe,ie,se,ae,ue,ce,le,de=((ie={})[ie.ACKNOWLEDGED=`${Z}__ACKNOWLEDGED`]="ACKNOWLEDGED",ie[ie.DATA=`${Z}__DATA`]="DATA",ie[ie.DISCOVERY=`${Z}__DISCOVERY`]="DISCOVERY",ie[ie.DISCOVERED=`${Z}__DISCOVERED`]="DISCOVERED",ie[ie.START_RECORDING=`${Z}__START_RECORDING`]="START_RECORDING",ie[ie.STOP_RECORDING=`${Z}__STOP_RECORDING`]="STOP_RECORDING",ie);function fe(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function he(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){he(e,t,r[t])})}return e}function ve(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}let ye=E("post-message-service");class ge{constructor(e){he(this,"config",void 0),he(this,"discoveredIframeWindows",void 0),he(this,"eventListenersByEventType",void 0),he(this,"isDestroyed",void 0),he(this,"pendingEventsByMessageEventSource",void 0),he(this,"waitingListenersByEventType",void 0),he(this,"waitingListenersByEventTypeByMessageEventSource",void 0),he(this,"addPostMessageEventListener",void 0),he(this,"destroy",void 0),he(this,"broadcastEventToAllDiscoveredIframes",void 0),he(this,"clearDiscoveredIframeWindows",void 0),he(this,"createPostMessageEvent",void 0),he(this,"isTherePendingEvent",void 0),he(this,"sendEventToSource",void 0),he(this,"waitForEventFromSource",void 0),he(this,"waitForEventFromSourceOrThrowAfterGivenTime",void 0),he(this,"postMessageEventListener",void 0),this.config=e,this.discoveredIframeWindows=new Set,this.eventListenersByEventType=new Map,this.isDestroyed=!1,this.pendingEventsByMessageEventSource=new Map,this.waitingListenersByEventType=new Map,this.waitingListenersByEventTypeByMessageEventSource=new Map,this.addPostMessageEventListener=(e,t)=>{let r=this.eventListenersByEventType.get(e);r?r.push(t):this.eventListenersByEventType.set(e,[t])},this.destroy=()=>{this.isDestroyed=!0,window.removeEventListener("message",this.postMessageEventListener)},this.broadcastEventToAllDiscoveredIframes=e=>{this.discoveredIframeWindows.forEach(t=>{t.postMessage(e,"*")})},this.clearDiscoveredIframeWindows=()=>{this.discoveredIframeWindows.clear()},this.createPostMessageEvent=()=>({channelId:this.config.channelId}),this.isTherePendingEvent=(e,t)=>{let r=this.pendingEventsByMessageEventSource.get(t);if(r){var n;let t=(null!=(n=r.get(e))?n:[]).filter(t=>t.name===e);if(t.length>0)return t.length>1&&ye.warn("Received multiple events. Taking first received."),!0}return!1},this.sendEventToSource=(e,t)=>{ye.debug(`Sending ${e.name} event to source.`,e),t.postMessage(e,"*")},this.waitForEventFromSource=(e,t)=>{var r;return(r=function*(){let r=this.pendingEventsByMessageEventSource.get(t);if(r){var n;let t=null!=(n=r.get(e))?n:[],o=t.filter(t=>t.name===e);if(o.length>0)return o.length>1&&ye.warn("Received multiple events. Taking first received."),r.set(e,t.filter(t=>t.name!==e)),o[0]}let o=this.waitingListenersByEventTypeByMessageEventSource.get(t);void 0===o&&(o=new Map,this.waitingListenersByEventTypeByMessageEventSource.set(t,o));let i=yield new Promise(t=>{if(void 0===o)throw Error("listenersByWindow is undefined");o.set(e,t)});return o.delete(e),i},function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function s(e){fe(i,n,o,s,a,"next",e)}function a(e){fe(i,n,o,s,a,"throw",e)}s(void 0)})}).call(this)},this.waitForEventFromSourceOrThrowAfterGivenTime=(e,t,r=1e4)=>Promise.race([this.waitForEventFromSource(e,t),new Promise((t,n)=>{setTimeout(()=>{n(new J(`Could not retrieve event ${e} in given time (${r}ms).`))},r)})]),this.postMessageEventListener=e=>{if(!k(e))return;let t=e.data;if((e=>{if(e&&"object"==typeof e&&Object.hasOwn(e,"name")){let t=e.name;if("string"==typeof t&&t.startsWith(`${Z}__`))return!0}return!1})(t)&&e.source){let r=e.source;if(t.channelId!==this.config.channelId)return void ye.debug("Received event with different channel ID.",e);t.name!==de.DISCOVERY||this.isDestroyed||(ye.debug("Received discovery. Sending discovered response",e),this.sendEventToSource(ve(pe({},this.createPostMessageEvent()),{name:de.DISCOVERED}),r)),t.name!==de.DISCOVERED||this.isDestroyed||(ye.debug("Received discovered. Sending acknowledged response",e),this.sendEventToSource(ve(pe({},this.createPostMessageEvent()),{name:de.ACKNOWLEDGED}),r),this.discoveredIframeWindows.add(r));let n=this.eventListenersByEventType.get(t.name);if(n)for(let t of(ye.debug(`Found listeners for event - ${e.data.name}.`,e),n))t(e.data,r);let o=this.waitingListenersByEventTypeByMessageEventSource.get(e.source);if(o){let r=o.get(t.name);r&&(ye.debug(`Found waiting listener for event - ${t.name}.`,e),r(t))}let i=this.waitingListenersByEventType.get(t.name);if(i&&i.length>0&&(ye.debug(`Found waiting listener from any source for event - ${t.name}.`,e),i.forEach(e=>e(t))),o||n||i&&i.length>0)return;ye.debug(`No pending listener found for ${t.name}.`);let s=this.pendingEventsByMessageEventSource.get(e.source);if(s){let e=s.get(t.name);e?(e.push(t),s.set(t.name,e)):s.set(t.name,[t])}else{let r=new Map([[t.name,[t]]]);this.pendingEventsByMessageEventSource.set(e.source,r)}}},window.addEventListener("message",this.postMessageEventListener)}}function me(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function be(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){me(i,n,o,s,a,"next",e)}function a(e){me(i,n,o,s,a,"throw",e)}s(void 0)})}}function we(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){we(e,t,r[t])})}return e}function Se(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}let Ee=E("post-message-iframe-service");class Pe extends ge{constructor(e){var t;super(e),t=this,we(this,"waitingStartRecordingEvent",void 0),we(this,"sendDataEventToParent",e=>{let t=window.parent;Ee.debug("Sending data event to parent.",e),this.sendEventToSource(Se(Oe({},this.createPostMessageEvent()),{name:de.DATA,data:e}),t)}),we(this,"waitForParentDiscovery",({timeout:e})=>be(function*(){let r=window.parent;Ee.debug("Sending discovered event to parent.",window.location.href),t.sendEventToSource(Se(Oe({},t.createPostMessageEvent()),{name:de.DISCOVERED}),r);try{let n=e&&e>0;return Ee.debug("Waiting for acknowledged event from parent."+(n?` (Timeout: ${e}ms)`:""),window.location.href),yield n?t.waitForEventFromSourceOrThrowAfterGivenTime(de.ACKNOWLEDGED,r,e):t.waitForEventFromSource(de.ACKNOWLEDGED,r),!0}catch(e){return e instanceof J?Ee.debug("Could not receive `acknowledged` post message. Timeout exceeded.",window.location.href):Ee.warn("Error happened during receiving `acknowledged` post message from parent.",e,window.location.href,document.visibilityState),!1}})()),we(this,"waitForStartRecordingFromParent",()=>be(function*(){let e=window.parent;try{Ee.debug("Waiting for start session event from parent.",window.location.href);let r=t.waitingStartRecordingEvent;return r?(t.waitingStartRecordingEvent=void 0,r):yield t.waitForEventFromSource(de.START_RECORDING,e)}catch(e){e instanceof J&&(Ee.debug("Could not receive post message in `init`. Timeout exceeded.",window.location.href),t.destroy()),Ee.warn("Error happened during receiving post message from parent in `init`. Continuing normal recording.",e,window.location.href,document.visibilityState)}})())}}let Te="-fallback-key-";var Ae=i(5995);function Re(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}function _e(e){return"boolean"==typeof e}let Ie=(e,t)=>{if(e=e.trim(),"string"==typeof t)try{return String(new URL(e,t))}catch(r){throw S.error("Could not parse an url from parts, path:",e,", owner file url:",t),r}if(!t.document)return e;try{let r=t.document.createElement("a");return r.href=e,r.href}catch(t){if(t instanceof TypeError&&"can't access dead object"===t.message)return e;throw t}},xe=e=>{var t,r,n;let o;return!!((0,Ae.QU)(e)||(0,Ae.rh)(e)||(0,Ae.ir)(e)&&(null===e.previousSibling||null===e.nextSibling)&&null!==e.textContent&&!/[^\t\n\r ]/.test(e.textContent)||(0,Ae.JL)(e)&&["manifest","preload","prefetch","modulepreload"].includes(null!=(t=e.getAttribute("rel"))?t:"")||(0,Ae.kH)(e)&&(["content-security-policy","refresh"].includes((null!=(r=e.getAttribute("http-equiv"))?r:"").toLowerCase())||["facebook-domain-verification","apple-itunes-app","google-site-verification"].includes((null!=(n=e.getAttribute("name"))?n:"").toLowerCase())))||!!((0,Ae.JL)(e)&&(o=e.href,["chrome-extension://","moz-extension://"].some(e=>o.startsWith(e))||e.href.startsWith("blob:")&&"stylesheet"!==e.rel))},je=e=>!(!(0,Ae.ST)(e)&&!(0,Ae.rh)(e));function Ce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class ke{nextNode(){let e=this.currentNode,t=NodeFilter.FILTER_ACCEPT;for(;;){let r;for(;t!==NodeFilter.FILTER_REJECT&&(null==e?void 0:e.firstChild);)if(e=e.firstChild,(t=this.filter(e))===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=e;for(;null!==n;){if(n===this.root)return null;if(null!==(r=n.nextSibling)){e=r;break}n=n.parentNode}if((t=this.filter(e))===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e}}nextSibling(){let e=this.currentNode;if(e===this.root)return null;for(;;){let t=e.nextSibling;for(;null!==t;){e=t;let r=this.filter(e);if(r===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;t=e.firstChild,(r===NodeFilter.FILTER_REJECT||null===t)&&(t=e.nextSibling)}if(null===(e=e.parentNode)||e===this.root||this.filter(e)===NodeFilter.FILTER_ACCEPT)return null}}parentNode(){let e=this.currentNode;for(;null!==e&&e!==this.root;)if(null!==(e=e.parentNode)&&this.filter(e)===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;return null}filter(e){if(this.active)throw Error("CustomTreeWalker is in an invalid state.");let t=e.nodeType-1;if(!(this.whatToShow&1<<t))return NodeFilter.FILTER_SKIP;if(null===this.nodeFilter)return NodeFilter.FILTER_ACCEPT;this.active=!0;try{return this.nodeFilter.acceptNode(e)}finally{this.active=!1}}constructor(e,t,r){Ce(this,"currentNode",void 0),Ce(this,"nodeFilter",void 0),Ce(this,"root",void 0),Ce(this,"whatToShow",void 0),Ce(this,"active",!1),this.root=e,this.currentNode=e,this.whatToShow=null!=t?t:NodeFilter.SHOW_ALL,this.nodeFilter=null!=r?r:null}}Ce(ke,"createTreeWalker",(e,t,r)=>new ke(e,t,r));let Le=e=>{let t=[],r=(0,Ae.Ng)(e)||(0,Ae.ji)(e)?e.host:e.parentNode;for(;r;){t.push(r);let e=r.parentNode;r=null===e&&(0,Ae.Ng)(r)?r.host:e}return t};function*Me(e,t={}){let{recoverOnNotConnectedNodes:r,shouldProcessNode:n,useNativeTreeWalker:o}=t;if(xe(e)||n&&!n(e))return;let i=new Set,s=(o?document:ke).createTreeWalker(e,NodeFilter.SHOW_ALL,{acceptNode:e=>i.has(e)||xe(e)?NodeFilter.FILTER_REJECT:n?n(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),a=s.currentNode;for(;a;){let e=Le(a);if(yield a,(0,Ae.vq)(a)&&a.shadowRoot&&(yield*Me(a.shadowRoot,t)),i.add(a),r)if(a.isConnected){let t=Le(a);for(let[r,n]of e.entries())if(t[r]!==n){s.currentNode=n;break}}else{let t=e.find(e=>e.isConnected);if(!t)return;s.currentNode=t}a=je(s.currentNode)?s.nextSibling():s.nextNode()}}let Ne=e=>{let t=e.parentNode;return null===t&&((0,Ae.Ng)(e)||(0,Ae.ji)(e)?t=e.host:(0,Ae.Kc)(e)&&(t=V(e))),t},De=e=>{let t=e.parentElement;return null===t&&((0,Ae.Ng)(e)||(0,Ae.ji)(e)?t=e.host:e.parentNode&&(0,Ae.Kc)(e.parentNode)&&(t=V(e.parentNode))),t},Be=["card","credit","expiry","cvv","cvc"],Ue=["cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type"],Fe=new Set(["file","password"]),We=(e,t)=>({isPasswordInput:(0,Ae.B6)(e)&&"password"===e.type,sensitivityRuleType:ze(e,t)}),ze=(e,t=[])=>{let r=null;for(let n of t.toReversed())if(Ve(n.selector).some(He(e))){r=n.rule;break}return r},Ve=e=>e.split(",").flatMap(e=>[e,`${e} *`]),He=e=>t=>{let r=(0,Ae.vq)(e)?e:De(e);return null!==r&&r.matches(t)},Ge=(e,t)=>{let r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e);return t.isPasswordInput&&(r.isPasswordInput=!0),"exclude"!==r.sensitivityRuleType&&(r.sensitivityRuleType=t.sensitivityRuleType),r};function qe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ke(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){qe(e,t,r[t])})}return e}function $e(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}class Xe{constructor(e){qe(this,"config",void 0),qe(this,"privacyInfoByNode",void 0),qe(this,"deleteNodePrivacyInfo",void 0),qe(this,"getSensitivityRules",void 0),qe(this,"isCreditCardInput",void 0),qe(this,"isNodeExcluded",void 0),qe(this,"isNodeMasked",void 0),qe(this,"isNodeUnmasked",void 0),qe(this,"isPasswordInput",void 0),qe(this,"isSensitiveInput",void 0),qe(this,"recomputeNodePrivacyInfoForNodeAndItsSubtree",void 0),qe(this,"retrieveAndStoreNodePrivacyInfo",void 0),qe(this,"retrieveNodePrivacyInfo",void 0),qe(this,"setIsPasswordInput",void 0),qe(this,"shouldMaskInputNode",void 0),qe(this,"shouldMaskTextNode",void 0),qe(this,"isMaskAllInputsEnabled",void 0),qe(this,"isMaskAllTextEnabled",void 0),this.config=e,this.privacyInfoByNode=new WeakMap,this.deleteNodePrivacyInfo=e=>{this.privacyInfoByNode.delete(e)},this.getSensitivityRules=()=>this.config.sensitivityRules,this.isCreditCardInput=e=>{var t;let r;return!(!(r=(null!=(t=e.getAttribute("autocomplete"))?t:"").toLowerCase())||!Ue.some(e=>r.includes(e)))||Array.from(e.attributes).filter(e=>"value"!==e.name).flatMap(e=>[e.name,e.value]).some(e=>Be.some(t=>e.toLowerCase().includes(t)))},this.isNodeExcluded=e=>"exclude"===this.retrieveNodePrivacyInfo(e).sensitivityRuleType,this.isNodeMasked=e=>["mask","exclude"].includes(this.retrieveNodePrivacyInfo(e).sensitivityRuleType),this.isNodeUnmasked=e=>"unmask"===this.retrieveNodePrivacyInfo(e).sensitivityRuleType,this.isPasswordInput=e=>this.retrieveNodePrivacyInfo(e).isPasswordInput,this.isSensitiveInput=e=>this.isPasswordInput(e)||(0,Ae.B6)(e)&&this.isCreditCardInput(e)||Fe.has(e.type),this.recomputeNodePrivacyInfoForNodeAndItsSubtree=e=>{for(let t of Me(e,{useNativeTreeWalker:this.config.useNativeTreeWalker}))this.retrieveAndStoreNodePrivacyInfo(t)},this.retrieveAndStoreNodePrivacyInfo=e=>{let t,r=Ne(e),n=r?this.privacyInfoByNode.get(r):null,o=We(e,this.getSensitivityRules());if(n)t=Ge(n,o);else for(let r of(t=Ke({},o),function*(e,t=!1){if(t&&(0,Ae.Kc)(e))return;let r=(0,Ae.vq)(e)?e:De(e);for(;r;){if(yield r,t&&r.parentNode&&(0,Ae.Kc)(r.parentNode))return;r=De(r)}}(e)))t=Ge(We(r,this.getSensitivityRules()),t);let i=$e(Ke({},t),{parent:r}),s=this.privacyInfoByNode.get(e);return s&&s.isPasswordInput&&(i.isPasswordInput=!0),this.privacyInfoByNode.set(e,i),i},this.retrieveNodePrivacyInfo=e=>{let t=this.privacyInfoByNode.get(e);return void 0===t||Ne(e)!==t.parent?this.retrieveAndStoreNodePrivacyInfo(e):t},this.setIsPasswordInput=e=>{let t=this.retrieveNodePrivacyInfo(e);this.privacyInfoByNode.set(e,$e(Ke({},t),{isPasswordInput:!0,parent:Ne(e)}))},this.shouldMaskInputNode=e=>this.isNodeMasked(e)||this.isMaskAllInputsEnabled()&&!this.isNodeUnmasked(e)||(0,Ae.oq)(e)&&this.isSensitiveInput(e),this.shouldMaskTextNode=e=>this.isNodeMasked(e)||this.isMaskAllTextEnabled()&&!this.isNodeUnmasked(e),this.isMaskAllInputsEnabled=()=>this.config.maskAllInputs,this.isMaskAllTextEnabled=()=>this.config.maskAllText}}function Ye(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Qe(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Ye(i,n,o,s,a,"next",e)}function a(e){Ye(i,n,o,s,a,"throw",e)}s(void 0)})}}(ee=ae||(ae={})).ANIMATION="animation",ee.BLUR="blur",ee.CLICK="click",ee.DOM_SNAPSHOT="dom-snapshot",ee.ELEMENT_ANIMATE="element-animate",ee.FOCUS="focus",ee.FULLSCREEN="fullscreen",ee.IMAGE_BITMAP="image-bitmap",ee.INPUT="input",ee.MOUSE_MOVE="mouse-move",ee.POPOVER="popover",ee.PULSE="pulse",ee.RESIZE="resize",ee.SCROLL="scroll",ee.SELECTION="selection",ee.TAB_DESTROYED="tab-destroyed",ee.TAB_DISCOVERED="tab-discovered",ee.TAB_SWITCHED="tab-switched",ee.TITLE="title",ee.TOUCH_MOVE="touch-move",ee.URL="url",ee.NODE_MUTATION="node-mutation",ee.VISUAL_VIEWPORT="visual-viewport",ee.STYLESHEET_MUTATION="stylesheet-mutation",ee.ADOPTED_STYLESHEET="adopted-stylesheet";let Je=(e,t,r)=>Qe(function*(){let n=performance.now(),o=yield createImageBitmap(e);r({blob:yield t(o),timestamp:n})})();function Ze(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function et(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Ze(i,n,o,s,a,"next",e)}function a(e){Ze(i,n,o,s,a,"throw",e)}s(void 0)})}}function tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let rt={capture:!0,passive:!0};class nt{get currentWindow(){if(P(this._currentWindow))return this._currentWindow;throw TypeError("Window origin changed")}get nodeInfoManager(){return this.taskContext.windowScoped.nodeInfoManager}get postMessageMainService(){return this.taskContext.moduleScoped.postMessageMainService}get privacyManager(){return this.taskContext.windowScoped.privacyManager}get scrollManager(){return this.taskContext.windowScoped.scrollManager}get taskEmitter(){return this.taskContext.windowScoped.taskEmitter}get windowIdManager(){return this.taskContext.moduleScoped.windowIdManager}get isStarted(){return this._isStarted}set isStarted(e){this._isStarted=e}start(){this.isStarted=!0,this.stopTimestamp=void 0,this.onStart()}stop(){this.isStarted=!1;try{this.onStop()}finally{this.stopTimestamp=this.taskContext.config.getTimestamp()}}addDocumentEventListener(e,t,r=rt){let n=this.documentEventListenersMap.get(e);void 0===n&&(n=new Map,this.documentEventListenersMap.set(e,n));let{shouldProcessEvent:o}=this,i=function(r){return et(function*(){if(o(r))try{yield t.call(this,r)}catch(t){S.error(`Error happened in '${e}' document event listener`,t)}}).call(this)};this.currentWindow.document.addEventListener(e,i,r),n.set(t,i)}addEventListener(e,t,r=rt){let n=this.windowEventListenersMap.get(e);void 0===n&&(n=new Map,this.windowEventListenersMap.set(e,n));let{shouldProcessEvent:o}=this,i=function(r){return et(function*(){if(o(r))try{yield t.call(this,r)}catch(t){S.error(`Error happened in '${e}' window event listener`,t)}}).call(this)};this.currentWindow.addEventListener(e,i,r),n.set(t,i)}isTaskRunWithinMainWindow(){return 1===this.windowIdManager.getWindowId(this.currentWindow)}removeDocumentEventListener(e,t,r=rt){let n=this.documentEventListenersMap.get(e);if(n){let i=n.get(t);var o;i&&(n.delete(t),P(this.currentWindow))&&((null==(o=this.currentWindow.document)?void 0:o.removeEventListener)?this.currentWindow.document.removeEventListener(e,i,r):S.debug("window.document.removeEventListener is undefined"))}}removeEventListener(e,t,r=rt){let n=this.windowEventListenersMap.get(e);if(n){let o=n.get(t);o&&(n.delete(t),P(this.currentWindow)&&(this.currentWindow.removeEventListener?this.currentWindow.removeEventListener(e,o,r):S.debug("window.removeEventListener is undefined")))}}isEventAfterStop(e){return void 0!==this.stopTimestamp&&e.timestamp>this.stopTimestamp&&(S.warn("Dropping event emitted after task stop.",e.name),!0)}constructor(e,t){tt(this,"_currentWindow",void 0),tt(this,"taskContext",void 0),tt(this,"_isStarted",void 0),tt(this,"documentEventListenersMap",void 0),tt(this,"stopTimestamp",void 0),tt(this,"windowEventListenersMap",void 0),tt(this,"createReplayEventEnvelope",void 0),tt(this,"shouldProcessEvent",void 0),tt(this,"uploadReplayEvent",void 0),tt(this,"uploadReplayEvents",void 0),this._currentWindow=e,this.taskContext=t,this._isStarted=!1,this.documentEventListenersMap=new Map,this.windowEventListenersMap=new Map,this.createReplayEventEnvelope=e=>{var t,r;return{id:A(),relativeTime:0,timestamp:null!=(t=null==e?void 0:e.timestamp)?t:this.taskContext.config.getTimestamp(),timestampWall:null!=(r=null==e?void 0:e.timestampWall)?r:Date.now(),windowId:this.windowIdManager.getWindowId(this.currentWindow)}},this.shouldProcessEvent=e=>{if("unhandledrejection"===e.type&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent))return!0;if(!(k(e)||["input","change"].includes(e.type)&&this.taskContext.config.exportForTests))return!1;let t=e.composedPath()[0];return!(void 0!==t&&(0,Ae.vq)(t)&&this.privacyManager.isNodeExcluded(t))},this.uploadReplayEvent=e=>{this.isEventAfterStop(e)||this.taskContext.config.uploadEvents([e])},this.uploadReplayEvents=e=>{let t=e.filter(e=>!this.isEventAfterStop(e));t.length>0&&this.taskContext.config.uploadEvents(t)}}}function ot(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function it(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class st extends nt{onStart(){var e,t;((null==(e=this.taskContext.config.features)?void 0:e.canvas)||(null==(t=this.taskContext.config.features)?void 0:t.video))&&(this.taskEmitter.addEventListener("nodeAdded",this.handleNodeAdded),this.taskEmitter.addEventListener("nodeRemoved",this.handleNodeRemoved))}onStop(){var e,t;((null==(e=this.taskContext.config.features)?void 0:e.canvas)||(null==(t=this.taskContext.config.features)?void 0:t.video))&&(Array.from(this.removeMonitorsByElement.values()).forEach(e=>e()),this.removeMonitorsByElement.clear(),this.taskEmitter.removeEventListener("nodeAdded",this.handleNodeAdded),this.taskEmitter.removeEventListener("nodeRemoved",this.handleNodeRemoved))}constructor(...e){var t;super(...e),t=this,it(this,"removeMonitorsByElement",new Map),it(this,"handleNodeAdded",({node:e})=>{var r,n,o,i;let s,a,u,c;if(this.removeMonitorsByElement.has(e))return;let l=(0,Ae.r0)(e),d=(0,Ae.Ws)(e);if(!l&&!d||l&&!(null==(r=this.taskContext.config.features)?void 0:r.canvas)||d&&!(null==(n=this.taskContext.config.features)?void 0:n.video))return;let f=this.nodeInfoManager.getIdByNode(e);if(void 0===f)return void S.error("ImageBitmap targetId is undefined",e);let h=(o=this.taskContext.moduleScoped.backgroundService.bitmapToBlob,i=({blob:e,timestamp:r})=>{var n;return(n=function*(){var n,o;let i=t.createReplayEventEnvelope(),s=performance.now()-r,a=(n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){it(e,t,r[t])})}return e}({},i),o=o={name:ae.IMAGE_BITMAP,data:{targetId:f},timestamp:i.timestamp-s,timestampWall:i.timestampWall-s},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n);t.uploadReplayEvent(a),t.taskContext.config.uploadAsset({content:new Uint8Array(yield e.arrayBuffer()),contentBase64:yield t.taskContext.moduleScoped.backgroundService.blobToBase64(e),mimetype:e.type,timestamp:a.timestamp,uri:`blob://${a.id}`})},function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function s(e){ot(i,r,o,s,a,"next",e)}function a(e){ot(i,r,o,s,a,"throw",e)}s(void 0)})})()},s=new Blob,a=e=>Qe(function*(){try{let t,r;(yield(t=s,r=e.blob,Qe(function*(){let[e,n]=yield Promise.all([t.arrayBuffer(),r.arrayBuffer()]);if(e.byteLength!==n.byteLength)return!1;let o=new Uint8Array(e),i=new Uint8Array(n);for(let[e,t]of o.entries())if(t!==i[e])return!1;return!0})()))||(i(e),s=e.blob)}catch(e){S.error("Error while comparing blobs",e)}})(),u=e=>{K(e)&&"SecurityError"===e.name?(S.debug("Recording has been stopped. Cross-origin data in bitmap.",e),clearInterval(c)):S.error("Error while creating image bitmap",e)},Je(e,o,a).catch(u),c=setInterval(()=>{Je(e,o,a).catch(u)},200),()=>{clearInterval(c)});this.removeMonitorsByElement.set(e,h)}),it(this,"handleNodeRemoved",({node:e})=>{var t;((0,Ae.r0)(e)||(0,Ae.Ws)(e))&&(null==(t=this.removeMonitorsByElement.get(e))||t())})}}function at(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ut(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){at(e,t,r[t])})}return e}function ct(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}class lt extends nt{onStart(){this.addDocumentEventListener("fullscreenchange",this.handleFullscreenChangeEvent),this.currentWindow.document.fullscreenElement&&this.handleFullscreenChangeEvent()}onStop(){this.removeDocumentEventListener("fullscreenchange",this.handleFullscreenChangeEvent)}constructor(...e){super(...e),at(this,"handleFullscreenChangeEvent",()=>{let e=this.currentWindow.document.fullscreenElement;if(null===e)this.uploadReplayEvent(ct(ut({},this.createReplayEventEnvelope()),{name:ae.FULLSCREEN,data:{}}));else{let t=this.nodeInfoManager.getIdByNodeOrCreateNewOne(e);void 0!==t&&this.uploadReplayEvent(ct(ut({},this.createReplayEventEnvelope()),{name:ae.FULLSCREEN,data:{targetId:t}}))}})}}let dt=e=>{let t=0,r=0,n=(e=>{let t=null;try{var r;t=null!=(r=e.frameElement)?r:null}catch(e){}return t})(e);for(;n;){let e=n.getBoundingClientRect();r+=e.top,t+=e.left,n=n.ownerDocument?V(n.ownerDocument):null}return{clientX:t,clientY:r}};function ft(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class ht extends nt{onStart(){this.addEventListener("click",this.handleClick)}onStop(){this.removeEventListener("click",this.handleClick)}constructor(...e){super(...e),ft(this,"handleClick",e=>{var t,r;let n=e.composedPath()[0],o=(0,Ae.Ll)(n)?this.nodeInfoManager.getIdByNode(n):void 0,{clientX:i,clientY:s}=dt(this.currentWindow),a=(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){ft(e,t,r[t])})}return e}({},this.createReplayEventEnvelope()),r=r={name:ae.CLICK,data:{clientX:e.clientX+i,clientY:e.clientY+s,elementX:e.offsetX,elementY:e.offsetY,targetId:o}},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t);this.uploadReplayEvent(a)})}}let pt=(e,t,r)=>{if(!(t in e))return;let n=e[t];e[t]=function(...e){return r(n.bind(this)).call(this,...e)}},vt=(e,t,r)=>{if(!(t in e))return;let n=Object.getOwnPropertyDescriptor(e,t);n&&Object.defineProperty(e,t,r(n))},yt="[appd-truncated]",gt=(e,t)=>{try{return St(mt(e),t).stringified}catch(e){return JSON.stringify("[non-serializable object]")}},mt=(e,t=new WeakMap)=>Array.isArray(e)?e.map(e=>mt(e,t)):"object"==typeof e&&null!==e?bt(e,t):["function","symbol","bigint","undefined"].includes(typeof e)?typeof e:null===e||"number"==typeof e||"string"==typeof e||"boolean"==typeof e?e:JSON.stringify(e),bt=(e,t)=>{let r,n=Object.keys(e);if(null!==e&&"object"==typeof e&&"FormData"===e.constructor.name){let t={};e.forEach((e,r)=>{t[r]="string"==typeof e?e:`[file:${e.type}][${e.name}]`}),r=t}else if(K(e)&&!Object.hasOwn(e,"toJSON"))r=Ot(e);else if(1===n.length&&"isTrusted"===n[0]){let t=Object.keys(Object.getPrototypeOf(e));r=JSON.parse(JSON.stringify(e,[...n,...t]))}else r=wt(t,e);return r},wt=(e,t)=>{if(e.has(t))return"[circular]";e.set(t,!0);let r=[];for(let[n,o]of Object.entries(t))r.push([n,mt(o,e)]);return Object.fromEntries(r)},Ot=e=>{let t=JSON.parse(JSON.stringify(e));return t.name||(t.name=e.name),t.stack||(t.stack=e.stack),t.message||(t.message=e.message),t},St=(e,t=16384)=>{let r=JSON.stringify(e);return r.length<=t?{isTruncated:!1,stringified:r}:(Array.isArray(e)?r=((e,t)=>{let r="";for(let n of e){if(t<=0){r+=JSON.stringify(yt)+",";break}let e=gt(n,t)+",";r+=e,t-=e.length}return"["+r.slice(0,Math.max(0,r.length-1))+"]"})(e,t):"object"==typeof e&&null!==e?r=((e,t)=>{let r="";for(let[n,o]of Object.entries(e)){if(t<=0){r+=JSON.stringify(yt)+":true,";break}let e=`"${n}":${gt(o,t)},`;r+=e,t-=e.length}return"{"+r.slice(0,Math.max(0,r.length-1))+"}"})(e,t):"string"==typeof e?r=JSON.stringify(yt+"[string] "+e.slice(0,Math.max(0,t))):"number"==typeof e&&(r=JSON.stringify(yt+"[number] "+String(e).slice(0,Math.max(0,t)))),{isTruncated:!0,stringified:r})};function Et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Et(e,t,r[t])})}return e}function Tt(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}class At extends nt{onStart(){this.processAlreadyExecutedAnimations(),this.attachElementAnimateProxy(),this.attachAnimateProxy()}onStop(){}constructor(...e){super(...e),Et(this,"idByAnimation",new WeakMap),Et(this,"attachAnimateProxy",()=>{let e=this;try{pt(this.currentWindow.Animation.prototype,"play",t=>function(){let r=t();return e.processAnimationMethodCalls(this,"play"),r})}catch(e){S.debug("Cannot apply `Animation.prototype.pause` proxy to Element.",e)}try{pt(this.currentWindow.Animation.prototype,"pause",t=>function(){let r=t();return e.processAnimationMethodCalls(this,"pause"),r})}catch(e){S.debug("Cannot apply `Animation.prototype.pause` proxy to Element.",e)}try{pt(this.currentWindow.Animation.prototype,"cancel",t=>function(){let r=t();return e.processAnimationMethodCalls(this,"cancel"),r})}catch(e){S.debug("Cannot apply `Animation.prototype.cancel` proxy to Element.",e)}}),Et(this,"attachElementAnimateProxy",()=>{if(void 0===this.currentWindow.Element.prototype.animate)return void S.debug("Cannot apply Element.animate proxy. animate function is not defined.");let e=this;try{pt(this.currentWindow.Element.prototype,"animate",t=>function(r,n){let o,i,s=t(r,n),a=A();if(e.idByAnimation.set(s,a),e.isStarted)try{o=JSON.parse(gt(r)),i=JSON.parse(gt(n));let t=e.nodeInfoManager.getIdByNodeOrCreateNewOne(this),s=e.createReplayEventEnvelope(),u=Tt(Pt({},s),{name:ae.ELEMENT_ANIMATE,data:{animationId:a,keyframes:o,options:i,targetId:t},timestamp:s.timestamp+5,timestampWall:s.timestampWall+5});e.uploadReplayEvent(u)}catch(e){S.error("Cannot process animation.",e,o,i)}return s})}catch(e){S.debug("Cannot apply `animate` proxy to Element.",e)}}),Et(this,"processAlreadyExecutedAnimations",()=>{if(void 0!==this.currentWindow.document.getAnimations)for(let e of this.currentWindow.document.getAnimations().filter(e=>!e.constructor.name.startsWith("CSS")))try{let t=e.effect;if(null===t||!(t instanceof this.currentWindow.KeyframeEffect)||null===t.target)continue;let r=A();this.idByAnimation.set(e,r);let n=this.nodeInfoManager.getIdByNodeOrCreateNewOne(t.target),o=JSON.parse(gt(t.getKeyframes())),i=JSON.parse(gt(t.getTiming())),s=Tt(Pt({},this.createReplayEventEnvelope()),{name:ae.ELEMENT_ANIMATE,data:{animationId:r,keyframes:o,options:i,targetId:n}});this.uploadReplayEvent(s)}catch(e){S.error("Error happened during processing already executed animations.",e)}else S.debug("Cannot processAlreadyExecutedAnimations. document.getAnimations() function is not defined.")}),Et(this,"processAnimationMethodCalls",(e,t)=>{if(this.isStarted)try{let r=this.idByAnimation.get(e);if(r){let e=this.createReplayEventEnvelope(),n=Tt(Pt({},e),{name:ae.ANIMATION,data:{animationId:r,methodName:t},timestamp:e.timestamp+5,timestampWall:e.timestampWall+5});this.uploadReplayEvent(n)}else S.debug(`Animation not found in map. Calling Animation.${t}`)}catch(e){S.error(`Cannot process Animation.prototype.${t}.`,e)}})}}function Rt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _t(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Rt(e,t,r[t])})}return e}function It(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}class xt extends nt{onStart(){this.addEventListener("blur",this.handleBlur),this.addEventListener("focus",this.handleFocus)}onStop(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("focus",this.handleFocus),this.listenerByShadowRoots.forEach((e,t)=>{t.removeEventListener("focusin",e)}),this.listenerByShadowRoots.clear(),this.blurTimeoutId&&this.blurTimeoutCallback&&(this.blurTimeoutCallback(),this.clearBlurTimeoutIfNeeded())}clearBlurTimeoutIfNeeded(){void 0!==this.blurTimeoutId&&(clearTimeout(this.blurTimeoutId),this.blurTimeoutId=void 0),this.blurTimeoutCallback&&(this.blurTimeoutCallback=void 0)}sendBlurEvent(e){this.uploadReplayEvent(It(_t({},e),{name:ae.BLUR}))}constructor(...e){super(...e),Rt(this,"blurTimeoutCallback",void 0),Rt(this,"blurTimeoutId",void 0),Rt(this,"listenerByShadowRoots",new Map),Rt(this,"handleBlur",()=>{this.clearBlurTimeoutIfNeeded();let e=this.createReplayEventEnvelope();this.blurTimeoutCallback=()=>this.sendBlurEvent(e),this.blurTimeoutId=setTimeout(this.blurTimeoutCallback)}),Rt(this,"handleFocus",e=>{if(!k(e))return;let t=e.composedPath()[0];this.clearBlurTimeoutIfNeeded();try{if(void 0===t||t instanceof this.currentWindow.Window)return}catch(e){return void S.debug("Expected focus error happened",e)}if(!(0,Ae.vq)(t))return void S.warn("Focus target not found",e,t);let r=t.getRootNode();if(((0,Ae.Ng)(r)||(0,Ae.ji)(r))&&!this.listenerByShadowRoots.has(r))return r.addEventListener("focusin",this.handleFocus,!0),void this.listenerByShadowRoots.set(r,this.handleFocus);let n=this.nodeInfoManager.getIdByNodeOrCreateNewOne(t);this.uploadReplayEvent(It(_t({},this.createReplayEventEnvelope()),{name:ae.FOCUS,data:{targetId:n}}))})}}function jt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ct(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){jt(e,t,r[t])})}return e}function kt(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}class Lt extends nt{onStart(){this.addDocumentEventListener("blur",this.handleBlur),this.addDocumentEventListener("change",this.handleChange),this.addDocumentEventListener("input",this.handleInput),this.attachInputSetterProxy(this.currentWindow.document.createElement("input"),["value","checked"]),this.attachInputSetterProxy(this.currentWindow.document.createElement("textarea"),["value"])}onStop(){this.removeDocumentEventListener("blur",this.handleBlur),this.removeDocumentEventListener("change",this.handleChange),this.removeDocumentEventListener("input",this.handleInput)}createInputEvent(e){return kt(Ct({},this.createReplayEventEnvelope()),{name:ae.INPUT,data:e})}processSensitiveInput(e,t){this.currentTypingEvent||this.uploadReplayEvent(this.createInputEvent({isTyping:!0,source:t,targetId:e})),this.currentTypingEvent=this.createInputEvent({isTyping:!1,source:t,targetId:e})}processTarget(e,t){let r=e.value,n=this.nodeInfoManager.getIdByNodeOrCreateNewOne(e);if(this.privacyManager.shouldMaskInputNode(e)||this.privacyManager.isPasswordInput(e))return void this.processSensitiveInput(n,t);["checkbox","radio"].includes(e.type)&&(0,Ae.B6)(e)&&(r=String(e.checked));let o=this.createInputEvent({source:t,targetId:n,value:r});this.uploadReplayEvent(o)}constructor(...e){super(...e),jt(this,"currentTypingEvent",void 0),jt(this,"applyDescriptorProxyToInputElement",(e,t)=>{let{handleInputForTarget:r}=this;vt(Object.getPrototypeOf(e),t,function(e){return kt(Ct({},e),{set(n){var o;null==(o=e.set)||o.apply(this,[n]);try{r(this,"proxy")}catch(e){S.error(`Error happened in input proxy setter - ${t}.`,e)}}})})}),jt(this,"attachInputSetterProxy",(e,t)=>{t.forEach(t=>{try{this.applyDescriptorProxyToInputElement(e,t)}catch(e){S.debug(`Cannot apply HTMLInputElement.prototype.${t} proxy.`,e)}})}),jt(this,"handleBlur",()=>{this.currentTypingEvent&&(this.uploadReplayEvent(this.currentTypingEvent),this.currentTypingEvent=void 0)}),jt(this,"handleChange",e=>{this.handleEvent(e,"change")}),jt(this,"handleEvent",(e,t)=>{let r=e.composedPath()[0];this.handleInputForTarget(r,t)}),jt(this,"handleInput",e=>{this.handleEvent(e,"input")}),jt(this,"handleInputForTarget",(e,t)=>{if(this.isStarted){if(!(0,Ae.vq)(e))return S.debug("Target is not an element."),!1;if(!this.isExpectedElement(e))return S.debug("Input target is not input/select/textarea",e),!1;this.shouldProcessTarget(e)&&this.processTarget(e,t)}}),jt(this,"isExpectedElement",e=>(0,Ae.B6)(e)||(0,Ae.Jp)(e)||(0,Ae.j1)(e)),jt(this,"shouldProcessTarget",e=>!this.privacyManager.isNodeExcluded(e)&&e.isConnected)}}function Mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Nt extends nt{onStart(){this.addDocumentEventListener("mousemove",this.handleMouseMove)}onStop(){this.removeDocumentEventListener("mousemove",this.handleMouseMove),this.upload()}constructor(...e){super(...e),Mt(this,"event",void 0),Mt(this,"lastTarget",void 0),Mt(this,"prevPosition",{clientX:0,clientY:0,timeElapsed:0}),Mt(this,"timeoutId",0),Mt(this,"handleMouseMove",e=>{var t,r,n,o;let i=e.composedPath()[0],{clientX:s,clientY:a}=dt(this.currentWindow),u={clientX:e.clientX+s,clientY:e.clientY+a};if(i!==this.lastTarget||void 0===this.event){if(this.lastTarget=i,this.upload(),(0,Ae.vq)(i)){let t=this.nodeInfoManager.getIdByNode(i);this.event=(n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Mt(e,t,r[t])})}return e}({},this.createReplayEventEnvelope()),o=o={name:ae.MOUSE_MOVE,data:{clientX:u.clientX,clientY:u.clientY,elementX:e.offsetX,elementY:e.offsetY,steps:[],targetId:t},duration:0},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n),this.prevPosition={clientX:u.clientX,clientY:u.clientY,timeElapsed:0},this.timeoutId=setTimeout(this.upload,7500)}else if("Window"!==(null==i||null==(t=i.constructor)?void 0:t.name))return void S.warn("mousemove target is processed",i)}else{let e=this.createReplayEventEnvelope().timestamp-this.event.timestamp,t=Math.round(e-this.prevPosition.timeElapsed),n=u.clientX-this.prevPosition.clientX,o=u.clientY-this.prevPosition.clientY;null==(r=this.event.data.steps)||r.push({deltaX:n,deltaY:o,timeDelta:t}),this.event.duration=e,this.prevPosition={clientX:u.clientX,clientY:u.clientY,timeElapsed:e}}}),Mt(this,"upload",()=>{this.event&&(clearTimeout(this.timeoutId),this.uploadReplayEvent(this.event),this.event=void 0)})}}function Dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Bt extends nt{onStart(){this.addDocumentEventListener("toggle",this.handleToggle)}onStop(){this.removeDocumentEventListener("toggle",this.handleToggle)}createPopoverEvent(e){var t,r;return t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Dt(e,t,r[t])})}return e}({},this.createReplayEventEnvelope()),r=r={name:ae.POPOVER,data:e},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t}constructor(...e){super(...e),Dt(this,"handleToggle",({newState:e,target:t})=>{if(!this.isStarted)return;if(!t||!(0,Ae.sb)(t))return void S.debug("Target is not an HTML element.");if(!t.popover)return void S.debug("Target is not popover element, could be `details` element that supports `open` attribute.",t);let r=this.nodeInfoManager.getIdByNodeOrCreateNewOne(t),n=this.createPopoverEvent({newState:e,targetId:r});this.uploadReplayEvent(n)})}}function Ut(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Ft extends nt{onStart(){this.sendPulseEvent("enable"),this.addDocumentEventListener("visibilitychange",this.handleVisibilityChange)}onStop(){this.sendPulseEvent("disable"),this.removeDocumentEventListener("visibilitychange",this.handleVisibilityChange)}constructor(...e){super(...e),Ut(this,"handleVisibilityChange",()=>{this.sendPulseEvent("visibilitychange")}),Ut(this,"sendPulseEvent",e=>{var t,r;let n=(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Ut(e,t,r[t])})}return e}({},this.createReplayEventEnvelope()),r=r={name:ae.PULSE,data:{documentVisibilityState:document.visibilityState,source:e}},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t);this.uploadReplayEvent(n)})}}function Wt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function zt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Wt(i,n,o,s,a,"next",e)}function a(e){Wt(i,n,o,s,a,"throw",e)}s(void 0)})}}function Vt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Ht extends nt{onStart(){this.isTaskRunWithinMainWindow()&&(Ht.getDimensions(this.currentWindow).then(e=>{this.lastSentDimensions=e}),this.addEventListener("resize",this.handleResize))}onStop(){this.isTaskRunWithinMainWindow()&&this.removeEventListener("resize",this.handleResize)}uploadResize(){return zt(function*(){let e=this.createReplayEventEnvelope(),{height:t,width:r}=yield Ht.getDimensions(this.currentWindow);var n,o;this.lastSentDimensions&&this.lastSentDimensions.height===t&&this.lastSentDimensions.width===r||(this.lastSentDimensions={height:t,width:r},this.uploadReplayEvent((n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Vt(e,t,r[t])})}return e}({},e),o=o={name:ae.RESIZE,data:{height:t,width:r}},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n)))}).call(this)}constructor(...e){super(...e),Vt(this,"lastSentDimensions",void 0),Vt(this,"processResizeTimeoutId",void 0),Vt(this,"handleResize",()=>{void 0===this.processResizeTimeoutId&&(this.processResizeTimeoutId=setTimeout(()=>{this.processResize(),this.processResizeTimeoutId=void 0},50))}),Vt(this,"processResize",()=>{let{innerHeight:e,innerWidth:t,visualViewport:r}=this.currentWindow;r&&1!==r.scale&&e===r.height&&t===r.width||this.uploadResize()})}}function Gt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Gt(e,t,r[t])})}return e}function Kt(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}Vt(Ht,"getDimensions",e=>zt(function*(){let t=e.innerHeight,r=e.innerWidth;return[r,t].includes(0)&&(window.top===window?S.debug("Resize dimension 0 on top window.",{height:t,width:r}):(yield new Promise(e=>setTimeout(e)),[r=e.innerWidth,t=e.innerHeight].includes(0)&&S.debug("Resize dimension 0 after setTimeout.",{height:t,width:r}))),{height:t,width:r}})());class $t extends nt{onStart(){this.taskEmitter.addEventListener("nodeAdded",this.handleNodeAddedEvent),this.taskEmitter.addEventListener("nodeRemoved",this.handleNodeRemovedEvent),this.addEventListener("scroll",this.handleScrollEvent),(0!==this.currentWindow.scrollX||0!==this.currentWindow.scrollY)&&this.handleScroll(this.currentWindow.document)}onStop(){this.removeEventListener("scroll",this.handleScrollEvent),this.taskEmitter.removeEventListener("nodeAdded",this.handleNodeAddedEvent),this.taskEmitter.removeEventListener("nodeRemoved",this.handleNodeRemovedEvent),this.removeShadowRootScrollListeners()}addShadowRootScrollListener(e){this.recordedShadowRoots.includes(e)||(e.addEventListener("scroll",this.handleScrollEvent,{capture:!0,passive:!0}),this.recordedShadowRoots.push(e))}handleScroll(e){let t;if((0,Ae.vq)(e))t={x:e.scrollLeft,y:e.scrollTop},this.scrollManager.setPosition(e,t);else{let r;if(!e.defaultView)return;t={x:(r=e.defaultView).scrollX,y:r.scrollY}}let r=this.nodeInfoManager.getIdByNodeOrCreateNewOne(e),n=Kt(qt({},this.createReplayEventEnvelope()),{name:ae.SCROLL,data:Kt(qt({},t),{targetId:r})});this.uploadReplayEvent(n)}removeShadowRootScrollListener(e){S.debug("Removing scroll on shadow root.",e),e.removeEventListener("scroll",this.handleScrollEvent,{capture:!0,passive:!0}),this.recordedShadowRoots=this.recordedShadowRoots.filter(t=>t!==e)}removeShadowRootScrollListeners(){for(let e of this.recordedShadowRoots)this.removeShadowRootScrollListener(e);this.recordedShadowRoots=[]}constructor(...e){super(...e),Gt(this,"recordedShadowRoots",[]),Gt(this,"handleNodeAddedEvent",({node:e})=>{((0,Ae.Ng)(e)||(0,Ae.ji)(e))&&this.addShadowRootScrollListener(e),(0,Ae.vq)(e)&&this.scrollManager.getPosition(e)&&this.handleScroll(e)}),Gt(this,"handleNodeRemovedEvent",({node:e})=>{((0,Ae.Ng)(e)||(0,Ae.ji)(e))&&this.removeShadowRootScrollListener(e)}),Gt(this,"handleScrollEvent",e=>{if(!this.shouldProcessEvent(e))return;let{target:t}=e,r=t&&(0,Ae.vq)(t),n=t&&(0,Ae.Kc)(t)&&t.defaultView;r||n?this.handleScroll(t):S.debug("scroll event target is not element or document node")})}}function Xt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Xt(e,t,r[t])})}return e}function Qt(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}class Jt extends nt{onStart(){this.addDocumentEventListener("selectionchange",this.handleSelection),this.handleSelection()}onStop(){this.removeDocumentEventListener("selectionchange",this.handleSelection)}constructor(...e){super(...e),Xt(this,"lastEventType","None"),Xt(this,"handleSelection",()=>{let e;try{e=this.currentWindow.getSelection()}catch(e){let t;if(t=this.currentWindow.getSelection,!/\[native code]/.test(t.toString()))return void this.stop();throw e}if(e){if(void 0!==e.type){switch(e.type){case"Range":{if(!e.anchorNode||!e.focusNode)return void S.error("anchorNode or focusNode not defined",e);let t=Qt(Yt({},this.createReplayEventEnvelope()),{name:ae.SELECTION,data:{end:{offset:e.focusOffset,targetId:this.nodeInfoManager.getIdByNodeOrCreateNewOne(e.focusNode)},start:{offset:e.anchorOffset,targetId:this.nodeInfoManager.getIdByNodeOrCreateNewOne(e.anchorNode)}}});this.uploadReplayEvent(t);break}case"None":case"Caret":if("Range"===this.lastEventType){let e=Qt(Yt({},this.createReplayEventEnvelope()),{name:ae.SELECTION,data:{targetId:this.nodeInfoManager.getIdByNode(this.currentWindow.document)}});this.uploadReplayEvent(e)}break;default:S.error("Unexpected selectionchange selection type",e.type)}this.lastEventType=e.type}}else S.warn("window.getSelection() returned undefined")})}}function Zt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class er extends nt{onStart(){this.isTaskRunWithinMainWindow()&&(this.lastTitle=this.currentWindow.document.title,this.taskEmitter.addEventListener("nodeAdded",this.handleNodeAddedEvent))}onStop(){this.isTaskRunWithinMainWindow()&&this.taskEmitter.removeEventListener("nodeAdded",this.handleNodeAddedEvent)}constructor(...e){super(...e),Zt(this,"lastTitle",void 0),Zt(this,"handleNodeAddedEvent",({node:e})=>{((0,Ae.X)(e)||e.parentNode&&(0,Ae.X)(e.parentNode))&&this.handleTitleChange()}),Zt(this,"handleTitleChange",()=>{var e,t;this.lastTitle!==this.currentWindow.document.title&&(this.lastTitle=this.currentWindow.document.title,this.uploadReplayEvent((e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Zt(e,t,r[t])})}return e}({},this.createReplayEventEnvelope()),t=t={name:ae.TITLE,data:{title:this.currentWindow.document.title}},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e)))})}}function tr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){tr(e,t,r[t])})}return e}class nr extends nt{onStart(){this.addEventListener("touchend",this.handleTouchEnd),this.addEventListener("touchmove",this.handleTouchMove),this.addEventListener("touchstart",this.handleTouchStart)}onStop(){this.removeEventListener("touchend",this.handleTouchEnd),this.removeEventListener("touchmove",this.handleTouchMove),this.removeEventListener("touchstart",this.handleTouchStart)}getAbsoluteTouchPosition({clientX:e,clientY:t}){let{clientX:r,clientY:n}=dt(this.currentWindow);return{clientX:e+r,clientY:t+n}}constructor(...e){super(...e),tr(this,"currentTouchMoveEvent",void 0),tr(this,"prevStepById",{}),tr(this,"handleTouch",e=>{let t=this.currentTouchMoveEvent;if(t){var r;let n=this.createReplayEventEnvelope().timestamp-t.timestamp,{clientX:o,clientY:i,timeElapsedSinceFirstTouch:s}=null!=(r=this.prevStepById[e.identifier])?r:{clientX:t.data.clientX,clientY:t.data.clientY,timeElapsedSinceFirstTouch:n},a=Math.round(n-s),u=this.getAbsoluteTouchPosition(e),c=u.clientX-o,l=u.clientY-i;void 0===t.data.steps[e.identifier]&&(t.data.steps[e.identifier]=[]),t.data.steps[e.identifier].push({deltaX:c,deltaY:l,timeDelta:a}),t.duration=n,this.prevStepById[e.identifier]={clientX:u.clientX,clientY:u.clientY,timeElapsedSinceFirstTouch:n}}else S.error("touch currentTouchMoveEvent is not yet created")}),tr(this,"handleTouchEnd",()=>{this.currentTouchMoveEvent&&(this.uploadReplayEvent(this.currentTouchMoveEvent),this.currentTouchMoveEvent=void 0,this.prevStepById={})}),tr(this,"handleTouchMove",e=>{if(this.currentTouchMoveEvent)for(let t of Array.from(e.changedTouches))this.handleTouch(t);else this.handleTouchStart(e)}),tr(this,"handleTouchStart",e=>{var t,r,n;let{target:o}=e;if(o&&(0,Ae.Ll)(o)&&!(0,Ae.vq)(o)&&(o=o.parentNode),o&&(0,Ae.vq)(o)){let n=e.touches[0],i=this.getAbsoluteTouchPosition(n),s=(0,Ae.Ll)(o)?this.nodeInfoManager.getIdByNode(o):void 0,a=o.getBoundingClientRect();for(let o of(this.currentTouchMoveEvent=(t=rr({},this.createReplayEventEnvelope()),r=r={name:ae.TOUCH_MOVE,data:rr({elementX:n.clientX-a.left,elementY:n.clientY-a.top,steps:{},targetId:s},i),duration:0},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t),Array.from(e.touches)))this.handleTouch(o)}else{if(void 0===Node.ELEMENT_NODE)return;S.error("touchstart target is not Element",o,typeof o,null==o||null==(n=o.constructor)?void 0:n.name)}})}}function or(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ir(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){or(e,t,r[t])})}return e}function sr(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}class ar extends nt{onStart(){this.isTaskRunWithinMainWindow()&&(this.proxyHistory(),this.addEventListener("popstate",this.handlePopStateEvent),this.handleURLChange({isFirstEvent:!0}))}onStop(){this.isTaskRunWithinMainWindow()&&this.removeEventListener("popstate",this.handlePopStateEvent)}proxyHistory(){let e=this,t=this.currentWindow.history.pushState;this.currentWindow.history.pushState=function(r,n,o){let i=Reflect.apply(t,this,[r,n,o]);return e.isStarted&&e.handleURLChange({isInternalNavigation:!0}),i};let r=this.currentWindow.history.replaceState;this.currentWindow.history.replaceState=function(t,n,o){let i=Reflect.apply(r,this,[t,n,o]);return e.isStarted&&e.handleURLChange({isInternalNavigation:!0}),i}}constructor(...e){super(...e),or(this,"lastUrl",void 0),or(this,"handlePopStateEvent",()=>{this.handleURLChange({isInternalNavigation:!0})}),or(this,"handleURLChange",({isInternalNavigation:e=!1,url:t}={})=>{let r;try{var n,o;r=t?new URL(t,null==(n=this.currentWindow.location)?void 0:n.origin).href:null==(o=this.currentWindow.location)?void 0:o.href}catch(e){return void S.error("Invalid url provided")}if(this.lastUrl!==r){this.lastUrl=r;let t=sr(ir({},this.createReplayEventEnvelope()),{name:ae.URL,data:{pageUrl:r}});if(e&&(t.data=sr(ir({},t.data),{isInternalNavigation:e})),"about:blank"===t.data.pageUrl||"about:srcdoc"===t.data.pageUrl)return;this.uploadReplayEvent(t)}})}}function ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class cr extends nt{onStart(){this.isTaskRunWithinMainWindow()&&this.currentWindow.visualViewport&&((1!==this.currentWindow.visualViewport.scale||0!==this.currentWindow.visualViewport.offsetLeft||0!==this.currentWindow.visualViewport.offsetTop)&&this.processViewportChange(),this.currentWindow.visualViewport.addEventListener("resize",this.handleViewportChange,{passive:!0}),this.currentWindow.visualViewport.addEventListener("scroll",this.handleViewportChange,{passive:!0}))}onStop(){this.isTaskRunWithinMainWindow()&&this.currentWindow.visualViewport&&(this.currentWindow.visualViewport.removeEventListener("resize",this.handleViewportChange),this.currentWindow.visualViewport.removeEventListener("scroll",this.handleViewportChange))}processViewportChange(){var e,t;if(!this.currentWindow.visualViewport)return;let{offsetLeft:r,offsetTop:n}=this.currentWindow.visualViewport,{innerWidth:o,outerWidth:i}=this.currentWindow,s=this.currentWindow.visualViewport.scale;this.isMobileDevice&&(1===s&&o>i||(s*=o/i));let a={offsetLeft:this.lastVisualViewport.offsetLeft===r?void 0:r,offsetTop:this.lastVisualViewport.offsetTop===n?void 0:n,scale:this.lastVisualViewport.scale===s?void 0:s};if(this.lastVisualViewport={offsetLeft:r,offsetTop:n,scale:s},Object.values(a).every(e=>void 0===e))return;let u=(e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){ur(e,t,r[t])})}return e}({},this.createReplayEventEnvelope()),t=t={name:ae.VISUAL_VIEWPORT,data:a},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e);this.uploadReplayEvent(u)}constructor(...e){super(...e),ur(this,"isMobileDevice",/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[23]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test((navigator.userAgent||navigator.vendor||window.opera).slice(0,4))),ur(this,"lastVisualViewport",{offsetLeft:0,offsetTop:0,scale:1}),ur(this,"timeoutId",void 0),ur(this,"handleViewportChange",e=>{k(e)&&void 0===this.timeoutId&&(this.timeoutId=setTimeout(()=>{this.processViewportChange(),this.timeoutId=void 0},50))})}}function lr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class dr{getTasksByWindow(e){return this.recordTasksByWindow.get(e)}initTasksByWindow(e,t){let r=[...this.createRecordTasks(e,t)];return this.recordTasksByWindow.set(e,r),this.addedTasks.clear(),this}startTasksByWindow(e){let t=this.getTasksByWindow(e);null==t||t.forEach(e=>e.start())}stopAllTasks(){for(let e of this.recordTasksByWindow.keys())this.stopTasksByWindow(e)}stopTasksByWindow(e){let t=this.getTasksByWindow(e);t&&(t.forEach(e=>{try{e.isStarted&&e.stop()}catch(e){S.error("Error happened while stopping a record task.",e)}}),this.recordTasksByWindow.delete(e))}constructor(e){lr(this,"customTasks",void 0),lr(this,"addedTasks",void 0),lr(this,"recordTasksByWindow",void 0),lr(this,"addTask",void 0),lr(this,"createRecordTaskInstance",void 0),lr(this,"createRecordTasks",void 0),lr(this,"initializeCustomRecordTasks",void 0),this.customTasks=e,this.addedTasks=new Set,this.recordTasksByWindow=new Map,this.addTask=e=>(this.addedTasks.add(e),this),this.createRecordTaskInstance=(e,...t)=>new e(...t),this.createRecordTasks=(e,t)=>[...this.addedTasks,new st(e,t),new lt(e,t),new ht(e,t),new At(e,t),new xt(e,t),new Lt(e,t),new Nt(e,t),new Bt(e,t),new Ft(e,t),new Ht(e,t),new $t(e,t),new Jt(e,t),new er(e,t),new nr(e,t),new ar(e,t),new cr(e,t),...this.initializeCustomRecordTasks(e,t)],this.initializeCustomRecordTasks=(e,t)=>{let r=[];for(let n of this.customTasks){let o=this.createRecordTaskInstance(n,e,t);r.push(o)}return r}}}let fr="css-hash:",hr="data-url-hash:",pr=e=>"content"in e&&"string"==typeof e.content&&"string"==typeof e.mimetype,vr=e=>`${"css-content"===e.kind?fr:hr}${(e=>{let t=2166136261;for(let n=0;n<e.length;n++){var r;t^=null!=(r=e.codePointAt(n))?r:0,t=Math.imul(t,16777619)}return(t>>>0).toString(16).padStart(8,"0")})(e.content)}`,yr=e=>"content"in e&&e.content instanceof Uint8Array&&"string"==typeof e.mimetype,gr=e=>"string"==typeof e.uri&&e.uri.startsWith(hr),mr=e=>"content"in e&&"string"==typeof e.content&&e.content.startsWith("data:")&&!gr(e)&&"string"==typeof e.mimetype,br=e=>"content"in e&&"string"==typeof e.content&&(!e.content.startsWith("data:")||gr(e))&&"string"==typeof e.mimetype&&"number"==typeof e.timestamp&&"string"==typeof e.uri,wr=new Set(["http:","https:","blob:"]),Or=(e,t)=>!e.startsWith("#")&&(Sr(e)||!0===(null==t?void 0:t.includeDataUrls)&&e.startsWith("data:")),Sr=e=>{if("u"<typeof window)return!0;try{let{protocol:t}=new URL(e,window.location.href);return wr.has(t)}catch(e){return!1}};class Er{static encode(e){let t,r=Or(t=e)&&!t.startsWith("data:")||t.startsWith(fr)||t.startsWith(hr);return{isEncoded:r,value:r?`[[__ASSET__]]${e}[[__/ASSET__]]`:e}}}function Pr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Tr extends Error{constructor(e,t,r,n){super(e),Pr(this,"sourceStart",void 0),Pr(this,"sourceEnd",void 0),Pr(this,"parserState",void 0),this.name="ParseError",this.sourceStart=t,this.sourceEnd=r,this.parserState=n}}class Ar extends Tr{constructor(e,t,r,n,o){super(e,t,r,n),Pr(this,"token",void 0),this.token=o}}let Rr="Unexpected EOF while consuming a url token.";function _r(e){return e>=48&&e<=57}function Ir(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function xr(e){var t;return e>=97&&e<=122||e>=65&&e<=90||183===(t=e)||8204===t||8205===t||8255===t||8256===t||8204===t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||0===t||!!Lr(t)||t>=65536||95===e}function jr(e){return xr(e)||_r(e)||45===e}function Cr(e){return 10===e||13===e||12===e}function kr(e){return 32===e||10===e||9===e||13===e||12===e}function Lr(e){return e>=55296&&e<=57343}function Mr(e){var t;return 92===e.source.codePointAt(e.cursor)&&!Cr(null!=(t=e.source.codePointAt(e.cursor+1))?t:-1)}function Nr(e,t){var r,n,o;return 45===t.source.codePointAt(t.cursor)?45===t.source.codePointAt(t.cursor+1)||!!xr(null!=(r=t.source.codePointAt(t.cursor+1))?r:-1)||92===t.source.codePointAt(t.cursor+1)&&!Cr(null!=(n=t.source.codePointAt(t.cursor+2))?n:-1):!!xr(null!=(o=t.source.codePointAt(t.cursor))?o:-1)||Mr(t)}function Dr(e){var t,r,n,o;return 43===e.source.codePointAt(e.cursor)||45===e.source.codePointAt(e.cursor)?!!_r(null!=(t=e.source.codePointAt(e.cursor+1))?t:-1)||46===e.source.codePointAt(e.cursor+1)&&_r(null!=(r=e.source.codePointAt(e.cursor+2))?r:-1):46===e.source.codePointAt(e.cursor)?_r(null!=(n=e.source.codePointAt(e.cursor+1))?n:-1):_r(null!=(o=e.source.codePointAt(e.cursor))?o:-1)}function Br(e,t){let r=t.readCodePoint();if(void 0===r)return e.onParseError(new Tr("Unexpected EOF while consuming an escaped code point.",t.representationStart,t.representationEnd,["4.3.7. Consume an escaped code point","Unexpected EOF"])),65533;if(Ir(r)){var n;let e,o=[r];for(;void 0!==(e=t.source.codePointAt(t.cursor))&&Ir(e)&&o.length<6;)o.push(e),t.advanceCodePoint();kr(null!=(n=t.source.codePointAt(t.cursor))?n:-1)&&(13===t.source.codePointAt(t.cursor)&&10===t.source.codePointAt(t.cursor+1)&&t.advanceCodePoint(),t.advanceCodePoint());let i=parseInt(String.fromCodePoint(...o),16);return 0===i||Lr(i)||i>1114111?65533:i}return 0===r||Lr(r)?65533:r}function Ur(e,t){let r=[];for(;;){var n;let o=null!=(n=t.source.codePointAt(t.cursor))?n:-1;if(0===o||Lr(o))r.push(65533),t.advanceCodePoint(+(o>65535)+1);else if(jr(o))r.push(o),t.advanceCodePoint(+(o>65535)+1);else{if(!Mr(t))return r;t.advanceCodePoint(),r.push(Br(e,t))}}}function Fr(e,t){let r;{let e=t.source.codePointAt(t.cursor);45===e?r="-":43===e&&(r="+")}let n=function(e){var t,r,n,o,i,s;let a=ce.Integer;for(43!==e.source.codePointAt(e.cursor)&&45!==e.source.codePointAt(e.cursor)||e.advanceCodePoint();_r(null!=(t=e.source.codePointAt(e.cursor))?t:-1);)e.advanceCodePoint();if(46===e.source.codePointAt(e.cursor)&&_r(null!=(r=e.source.codePointAt(e.cursor+1))?r:-1))for(e.advanceCodePoint(2),a=ce.Number;_r(null!=(n=e.source.codePointAt(e.cursor))?n:-1);)e.advanceCodePoint();if(101===e.source.codePointAt(e.cursor)||69===e.source.codePointAt(e.cursor)){if(_r(null!=(o=e.source.codePointAt(e.cursor+1))?o:-1))e.advanceCodePoint(2);else{if(45!==e.source.codePointAt(e.cursor+1)&&43!==e.source.codePointAt(e.cursor+1)||!_r(null!=(s=e.source.codePointAt(e.cursor+2))?s:-1))return a;e.advanceCodePoint(3)}for(a=ce.Number;_r(null!=(i=e.source.codePointAt(e.cursor))?i:-1);)e.advanceCodePoint()}return a}(t),o=parseFloat(t.source.slice(t.representationStart,t.representationEnd+1));if(Nr(0,t)){let i=Ur(e,t);return[ue.Dimension,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:o,signCharacter:r,type:n,unit:String.fromCodePoint(...i)}]}return 37===t.source.codePointAt(t.cursor)?(t.advanceCodePoint(),[ue.Percentage,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:o,signCharacter:r}]):[ue.Number,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:o,signCharacter:r,type:n}]}(te=ue||(ue={})).Comment="comment",te.AtKeyword="at-keyword-token",te.BadString="bad-string-token",te.BadURL="bad-url-token",te.CDC="CDC-token",te.CDO="CDO-token",te.Colon="colon-token",te.Comma="comma-token",te.Delim="delim-token",te.Dimension="dimension-token",te.EOF="EOF-token",te.Function="function-token",te.Hash="hash-token",te.Ident="ident-token",te.Number="number-token",te.Percentage="percentage-token",te.Semicolon="semicolon-token",te.String="string-token",te.URL="url-token",te.Whitespace="whitespace-token",te.OpenParen="(-token",te.CloseParen=")-token",te.OpenSquare="[-token",te.CloseSquare="]-token",te.OpenCurly="{-token",te.CloseCurly="}-token",te.UnicodeRange="unicode-range-token",(re=ce||(ce={})).Integer="integer",re.Number="number",(ne=le||(le={})).Unrestricted="unrestricted",ne.ID="id";class Wr{advanceCodePoint(e=1){this.cursor=this.cursor+e,this.representationEnd=this.cursor-1}readCodePoint(){let e=this.source.codePointAt(this.cursor);if(void 0!==e)return this.cursor=this.cursor+1,this.representationEnd=this.cursor-1,e}unreadCodePoint(e=1){this.cursor=this.cursor-e,this.representationEnd=this.cursor-1}resetRepresentation(){this.representationStart=this.cursor,this.representationEnd=-1}constructor(e){Pr(this,"cursor",0),Pr(this,"source",""),Pr(this,"representationStart",0),Pr(this,"representationEnd",-1),this.source=e}}function zr(e,t){for(;;){let r=t.source.codePointAt(t.cursor);if(void 0===r)return;if(41===r)return void t.advanceCodePoint();Mr(t)?(t.advanceCodePoint(),Br(e,t)):t.advanceCodePoint()}}function Vr(e,t){var r,n;let o=Ur(e,t);if(40!==t.source.codePointAt(t.cursor))return[ue.Ident,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:String.fromCodePoint(...o)}];if(!(3!==o.length||117!==o[0]&&85!==o[0]||114!==o[1]&&82!==o[1]||108!==o[2]&&76!==o[2])){t.advanceCodePoint();let i=0;for(;;){let e=kr(null!=(r=t.source.codePointAt(t.cursor))?r:-1),s=kr(null!=(n=t.source.codePointAt(t.cursor+1))?n:-1);if(e&&s){i+=1,t.advanceCodePoint(1);continue}let a=e?t.source.codePointAt(t.cursor+1):t.source.codePointAt(t.cursor);if(34===a||39===a)return i>0&&t.unreadCodePoint(i),[ue.Function,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:String.fromCodePoint(...o)}];break}return function(e,t){for(var r,n,o,i,s;kr(null!=(r=t.source.codePointAt(t.cursor))?r:-1);)t.advanceCodePoint();let a="";for(;;){if(void 0===t.source.codePointAt(t.cursor)){let r=[ue.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:a}];return e.onParseError(new Ar(Rr,t.representationStart,t.representationEnd,["4.3.6. Consume a url token","Unexpected EOF"],r)),r}if(41===t.source.codePointAt(t.cursor))return t.advanceCodePoint(),[ue.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:a}];if(kr(null!=(n=t.source.codePointAt(t.cursor))?n:-1)){for(t.advanceCodePoint();kr(null!=(i=t.source.codePointAt(t.cursor))?i:-1);)t.advanceCodePoint();if(void 0===t.source.codePointAt(t.cursor)){let r=[ue.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:a}];return e.onParseError(new Ar(Rr,t.representationStart,t.representationEnd,["4.3.6. Consume a url token","Consume as much whitespace as possible","Unexpected EOF"],r)),r}return 41===t.source.codePointAt(t.cursor)?(t.advanceCodePoint(),[ue.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:a}]):(zr(e,t),[ue.BadURL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0])}let r=t.source.codePointAt(t.cursor);if(34===r||39===r||40===r||11===(s=null!=r?r:-1)||127===s||0<=s&&s<=8||14<=s&&s<=31){zr(e,t);let r=[ue.BadURL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0];return e.onParseError(new Ar("Unexpected character while consuming a url token.",t.representationStart,t.representationEnd,["4.3.6. Consume a url token","Unexpected U+0022 QUOTATION MARK (\"), U+0027 APOSTROPHE ('), U+0028 LEFT PARENTHESIS (() or non-printable code point"],r)),r}if(92===r){if(Mr(t)){t.advanceCodePoint(),a+=String.fromCodePoint(Br(e,t));continue}zr(e,t);let r=[ue.BadURL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0];return e.onParseError(new Ar("Invalid escape sequence while consuming a url token.",t.representationStart,t.representationEnd,["4.3.6. Consume a url token","U+005C REVERSE SOLIDUS (\\)","The input stream does not start with a valid escape sequence"],r)),r}0===t.source.codePointAt(t.cursor)||Lr(null!=(o=t.source.codePointAt(t.cursor))?o:-1)?a+=String.fromCodePoint(65533):a+=t.source[t.cursor],t.advanceCodePoint()}}(e,t)}return t.advanceCodePoint(),[ue.Function,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:String.fromCodePoint(...o)}]}function Hr(){}Object.values(ue);let Gr=e=>`__replay-${e}__`,qr="url(",Kr=new Set(["hover","focus","focus-within"]),$r=[{from:"max-device-width",to:"max-width"},{from:"min-device-width",to:"min-width"},{from:"max-device-height",to:"max-height"},{from:"min-device-height",to:"min-height"}],Xr=(e,t,r,n,o)=>{let i,s,a=[],u=e[0],c=e[1],l=e[4].value,d=c.indexOf(l);if(-1===d?u===ue.URL?(i=qr,s=")"):i=s=c.slice(0,1):(i=c.slice(0,d),s=c.slice(d+l.length)),l&&Or(l,{includeDataUrls:o})){a.push(l);let o=l;t&&(n?o=t(Ie(l,n)):r&&(o=t(Ie(l,r)))),e[1]=`${i}${o}${s}`,e[4].value=o}return a},Yr=({convertUrl:e,cssFileUrl:t,cssText:r,currentWindow:n,handleOnlyUrls:o,includeDataUrls:i})=>{let s=(e=>{var t,r;let n,o,i,s,a=[],u=(n=(t={css:e}).css.valueOf(),o=null!=(r=t.unicodeRangesAllowed)&&r,i=new Wr(n),s={onParseError:Hr},{nextToken:function(){i.resetRepresentation();let e=i.source.codePointAt(i.cursor);if(void 0===e)return[ue.EOF,"",-1,-1,void 0];if(47===e&&47===(t=i).source.codePointAt(t.cursor)&&42===t.source.codePointAt(t.cursor+1)){for(i.advanceCodePoint(2);;){let e=i.readCodePoint();if(void 0===e){let e=[ue.Comment,i.source.slice(i.representationStart,i.representationEnd+1),i.representationStart,i.representationEnd,void 0];return s.onParseError(new Ar("Unexpected EOF while consuming a comment.",i.representationStart,i.representationEnd,["4.3.2. Consume comments","Unexpected EOF"],e)),e}if(42===e&&void 0!==i.source.codePointAt(i.cursor)&&47===i.source.codePointAt(i.cursor)){i.advanceCodePoint();break}}return[ue.Comment,i.source.slice(i.representationStart,i.representationEnd+1),i.representationStart,i.representationEnd,void 0]}if(o&&(117===e||85===e)&&!(117!==i.source.codePointAt(i.cursor)&&85!==i.source.codePointAt(i.cursor)||43!==i.source.codePointAt(i.cursor+1)||63!==i.source.codePointAt(i.cursor+2)&&!Ir(null!=(r=i.source.codePointAt(i.cursor+2))?r:-1)))return function(e){var t;let r;e.advanceCodePoint(2);let n=[],o=[];for(;void 0!==(r=e.source.codePointAt(e.cursor))&&n.length<6&&Ir(r);)n.push(r),e.advanceCodePoint();for(;void 0!==(r=e.source.codePointAt(e.cursor))&&n.length<6&&63===r;)0===o.length&&o.push(...n),n.push(48),o.push(70),e.advanceCodePoint();if(!o.length&&45===e.source.codePointAt(e.cursor)&&Ir(null!=(t=e.source.codePointAt(e.cursor+1))?t:-1))for(e.advanceCodePoint();void 0!==(r=e.source.codePointAt(e.cursor))&&o.length<6&&Ir(r);)o.push(r),e.advanceCodePoint();if(!o.length){let t=parseInt(String.fromCodePoint(...n),16);return[ue.UnicodeRange,e.source.slice(e.representationStart,e.representationEnd+1),e.representationStart,e.representationEnd,{startOfRange:t,endOfRange:t}]}let i=parseInt(String.fromCodePoint(...n),16),s=parseInt(String.fromCodePoint(...o),16);return[ue.UnicodeRange,e.source.slice(e.representationStart,e.representationEnd+1),e.representationStart,e.representationEnd,{startOfRange:i,endOfRange:s}]}(i);if(xr(e))return Vr(s,i);if(_r(e))return Fr(s,i);switch(e){case 44:return i.advanceCodePoint(),[ue.Comma,",",i.representationStart,i.representationEnd,void 0];case 58:return i.advanceCodePoint(),[ue.Colon,":",i.representationStart,i.representationEnd,void 0];case 59:return i.advanceCodePoint(),[ue.Semicolon,";",i.representationStart,i.representationEnd,void 0];case 40:return i.advanceCodePoint(),[ue.OpenParen,"(",i.representationStart,i.representationEnd,void 0];case 41:return i.advanceCodePoint(),[ue.CloseParen,")",i.representationStart,i.representationEnd,void 0];case 91:return i.advanceCodePoint(),[ue.OpenSquare,"[",i.representationStart,i.representationEnd,void 0];case 93:return i.advanceCodePoint(),[ue.CloseSquare,"]",i.representationStart,i.representationEnd,void 0];case 123:return i.advanceCodePoint(),[ue.OpenCurly,"{",i.representationStart,i.representationEnd,void 0];case 125:return i.advanceCodePoint(),[ue.CloseCurly,"}",i.representationStart,i.representationEnd,void 0];case 39:case 34:return function(e,t){let r="",n=t.readCodePoint();for(;;){let i=t.readCodePoint();if(void 0===i){let n=[ue.String,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:r}];return e.onParseError(new Ar("Unexpected EOF while consuming a string token.",t.representationStart,t.representationEnd,["4.3.5. Consume a string token","Unexpected EOF"],n)),n}if(Cr(i)){t.unreadCodePoint();let r=[ue.BadString,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0];return e.onParseError(new Ar("Unexpected newline while consuming a string token.",t.representationStart,13===t.source.codePointAt(t.cursor)&&10===t.source.codePointAt(t.cursor+1)?t.representationEnd+2:t.representationEnd+1,["4.3.5. Consume a string token","Unexpected newline"],r)),r}if(i===n)return[ue.String,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:r}];if(92!==i)0===i||Lr(i)?r+=String.fromCodePoint(65533):r+=String.fromCodePoint(i);else{var o;if(void 0===t.source.codePointAt(t.cursor))continue;if(Cr(null!=(o=t.source.codePointAt(t.cursor))?o:-1)){13===t.source.codePointAt(t.cursor)&&10===t.source.codePointAt(t.cursor+1)&&t.advanceCodePoint(),t.advanceCodePoint();continue}r+=String.fromCodePoint(Br(e,t))}}}(s,i);case 35:i.advanceCodePoint();let e=i.source.codePointAt(i.cursor);if(void 0!==e&&(jr(e)||Mr(i))){let e=le.Unrestricted;Nr(0,i)&&(e=le.ID);let t=Ur(s,i);return[ue.Hash,i.source.slice(i.representationStart,i.representationEnd+1),i.representationStart,i.representationEnd,{value:String.fromCodePoint(...t),type:e}]}return[ue.Delim,"#",i.representationStart,i.representationEnd,{value:"#"}];case 43:case 46:return Dr(i)?Fr(s,i):(i.advanceCodePoint(),[ue.Delim,i.source[i.representationStart],i.representationStart,i.representationEnd,{value:i.source[i.representationStart]}]);case 10:case 13:case 12:case 9:case 32:for(var t,r,n;kr(null!=(n=i.source.codePointAt(i.cursor))?n:-1);)i.advanceCodePoint();return[ue.Whitespace,i.source.slice(i.representationStart,i.representationEnd+1),i.representationStart,i.representationEnd,void 0];case 45:return Dr(i)?Fr(s,i):45===i.source.codePointAt(i.cursor)&&45===i.source.codePointAt(i.cursor+1)&&62===i.source.codePointAt(i.cursor+2)?(i.advanceCodePoint(3),[ue.CDC,"--\x3e",i.representationStart,i.representationEnd,void 0]):Nr(0,i)?Vr(s,i):(i.advanceCodePoint(),[ue.Delim,"-",i.representationStart,i.representationEnd,{value:"-"}]);case 60:return 60===i.source.codePointAt(i.cursor)&&33===i.source.codePointAt(i.cursor+1)&&45===i.source.codePointAt(i.cursor+2)&&45===i.source.codePointAt(i.cursor+3)?(i.advanceCodePoint(4),[ue.CDO,"\x3c!--",i.representationStart,i.representationEnd,void 0]):(i.advanceCodePoint(),[ue.Delim,"<",i.representationStart,i.representationEnd,{value:"<"}]);case 64:if(i.advanceCodePoint(),Nr(0,i)){let e=Ur(s,i);return[ue.AtKeyword,i.source.slice(i.representationStart,i.representationEnd+1),i.representationStart,i.representationEnd,{value:String.fromCodePoint(...e)}]}return[ue.Delim,"@",i.representationStart,i.representationEnd,{value:"@"}];case 92:{if(Mr(i))return Vr(s,i);i.advanceCodePoint();let e=[ue.Delim,"\\",i.representationStart,i.representationEnd,{value:"\\"}];return s.onParseError(new Ar('Invalid escape sequence after "\\"',i.representationStart,i.representationEnd,["4.3.1. Consume a token","U+005C REVERSE SOLIDUS (\\)","The input stream does not start with a valid escape sequence"],e)),e}}return i.advanceCodePoint(),[ue.Delim,i.source[i.representationStart],i.representationStart,i.representationEnd,{value:i.source[i.representationStart]}]},endOfFile:function(){return void 0===i.source.codePointAt(i.cursor)}}),c=!1;for(;!u.endOfFile();){let e=u.nextToken();if(a.push(e),"EOF-token"===e[0]){c=!0;break}}return c||a.push(u.nextToken()),a})(r),a=[];for(let r=0;r<s.length;r++){let u=s[r],c=u[0],l=s[r-1],d=s[r+1];switch(c){case ue.Function:u[1]===qr&&d[0]===ue.String&&a.push(...Xr(d,e,t,n,i));break;case ue.URL:a.push(...Xr(u,e,t,n,i));break;case ue.AtKeyword:if("@import"===u[1]){let o=s[r+2];if(d[0]===ue.Whitespace&&o[0]===ue.String&&a.push(...Xr(o,e,t,n,i)),d[0]===ue.Whitespace&&o[0]===ue.OpenParen){let o=s[r+3];o[0]===ue.String&&a.push(...Xr(o,e,t,n,i))}}break;case ue.Ident:if(!o){let e=$r.find(e=>u[1]===e.from);e&&(u[1]=e.to,u[4].value=e.to)}break;case ue.Colon:if(!o&&d&&d[0]===ue.Ident&&Kr.has(d[1])){if(l&&"any-hover"===l[1])continue;u[1]=".";let e=Gr(d[1]);if(d[1]=e,d[4].value=e,s[r-1]&&s[r-2]&&s[r-3]&&s[r-1][0]===ue.Ident&&s[r-2][0]===ue.Colon&&s[r-3][0]===ue.Colon){let e=s[r-3],t=s[r-2],n=s[r-1];s[r-3]=u,s[r-2]=d,s[r-1]=e,s[r]=t,s[r+1]=n}}}}return{tokens:s,urls:a}};function Qr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Jr{static serializeCssText(e){var t,r;let n=[],{shouldHashEmbeddedAssets:o=!1}=e;return void 0===e.convertUrl&&(e.convertUrl=e=>{if(e.startsWith("data:")){if(o&&e.length>=1024){var t;let r,o={content:e,kind:"data-url",mimetype:null!=(t=(null==(r=e.match(/^data:([^;,]+)/))?void 0:r[1])||void 0)?t:"application/octet-stream"};return n.push(o),Er.encode(vr(o)).value}return e}return Sr(e)&&n.push({uri:e}),Er.encode(e).value}),{assets:n,value:(e=>{try{return(e=>{var t,r;let{tokens:n}=Yr((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={handleOnlyUrls:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t));return n.map(e=>e[1]).join("")})(e)}catch(e){throw S.error("Failed to transform css for player with tokenizer",e),e}})((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Qr(e,t,r[t])})}return e}({},e),r=r={includeDataUrls:o},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}}}function Zr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Qr(Jr,"extractUrlsFromCssText",({cssFileUrl:e,cssText:t})=>(({cssFileUrl:e,cssText:t})=>{let r;try{r=(e=>{let{urls:t}=Yr({cssText:e,handleOnlyUrls:!0,includeDataUrls:void 0});return t})(t)}catch(e){throw S.error("Failed to extract urls from css with tokenizer",e),e}return Array.from(new Set(r.map(t=>Ie(t,e))))})({cssFileUrl:e,cssText:t})),Qr(Jr,"serializeCssRulesFromSheet",(e,t,r=!1)=>{let n="",o=[];try{for(let i=0;i<e.cssRules.length;i++){let s=e.cssRules[i],a=Jr.serializeCssText({cssText:s.cssText,currentWindow:t,shouldHashEmbeddedAssets:r});o.push(...a.assets),n+=a.value}}catch(t){S.debug(`Cannot access cssRules of ${e.href}`)}return{assets:o,value:n}}),Qr(Jr,"serializeStyleValue",(e,t,r=!1)=>{let n="",o=[];if(e.sheet){let i=Jr.serializeCssRulesFromSheet(e.sheet,t,r);o=i.assets,n=i.value}if(0===n.length){let i=Jr.serializeCssText({cssText:e.textContent?e.textContent.trim():"",currentWindow:t,shouldHashEmbeddedAssets:r});o=i.assets,n=i.value}return{assets:o,value:n}});class en{disconnect(){this.isObserving=!1,this.observedDocumentsAndShadowRoots.clear()}disconnectShadowRoot(e){for(let t of(this.observedDocumentsAndShadowRoots.delete(e),e.adoptedStyleSheets)){let r=this.rootsByAdoptedSheets.get(t);r&&(r.delete(e),0===r.size&&(this.rootsByAdoptedSheets.delete(t),this.idsByAdoptedSheets.delete(t)))}}observe(e,t){this.observedDocumentsAndShadowRoots.add(null!=e?e:this.currentWindow.document),void 0===this.currentWindow.CSSStyleSheet?S.debug("Window object is cleared and does not contain CSSStyleSheet prototype."):(this.isObserving=!0,this.areCssRuleProxiesAttached||(this.attachInsertRuleProxy(),this.attachDeleteRuleProxy(),this.attachReplaceRuleProxy(),this.attachReplaceSyncRuleProxy(),this.attachCSSGroupingRuleInsertRuleProxy(),this.attachCSSGroupingRuleDeleteRuleProxy(),this.attachCSSStyleDeclarationSetPropertyProxy(),this.attachCSSStyleDeclarationRemovePropertyProxy(),this.attachAdoptedStyleSheetProxy(this.currentWindow.Document),this.attachAdoptedStyleSheetProxy(this.currentWindow.ShadowRoot),this.areCssRuleProxiesAttached=!0),e&&this.processAdoptedStyleSheets(e,!1,t))}attachCSSGroupingRuleDeleteRuleProxy(){let e=this;try{pt(this.currentWindow.CSSGroupingRule.prototype,"deleteRule",t=>function(r){let n=t(r);if(e.isObserving&&this.parentStyleSheet)try{let t=Array.from(this.parentStyleSheet.cssRules).indexOf(this);-1!==t&&this.parentStyleSheet&&(e.handleCssRule(this.parentStyleSheet,t),e.handleCssRule(this.parentStyleSheet,t,this))}catch(e){S.error("Error happened in `CSSGroupingRule.deleteRule` proxy.",e,r)}return n})}catch(e){S.debug("Cannot apply `deleteRule` proxy to CSSGroupingRule.",e)}}attachCSSGroupingRuleInsertRuleProxy(){let e=this;try{pt(this.currentWindow.CSSGroupingRule.prototype,"insertRule",t=>function(r,n){let o=t(r,n);if(e.isObserving&&this.parentStyleSheet)try{let t=Array.from(this.parentStyleSheet.cssRules).indexOf(this);-1!==t&&this.parentStyleSheet&&(e.handleCssRule(this.parentStyleSheet,t),e.handleCssRule(this.parentStyleSheet,t,this))}catch(e){S.error("Error happened in `CSSGroupingRule.insertRule` proxy.",e,n)}return o})}catch(e){S.debug("Cannot apply `insertRule` proxy to CSSGroupingRule.",e)}}attachCSSStyleDeclarationRemovePropertyProxy(){let e=this;try{pt(this.currentWindow.CSSStyleDeclaration.prototype,"removeProperty",t=>function(...r){let n=t(...r);if(e.isObserving&&this.parentRule&&this.parentRule.parentStyleSheet)try{let t=Array.from(this.parentRule.parentStyleSheet.cssRules).indexOf(this.parentRule);-1!==t&&(e.handleCssRule(this.parentRule.parentStyleSheet,t),e.handleCssRule(this.parentRule.parentStyleSheet,t,this.parentRule))}catch(e){S.error("Error happened in `CSSStyleDeclaration.removeProperty` proxy.",e,r)}return n})}catch(e){S.debug("Cannot apply `removeProperty` proxy to CSSStyleDeclaration.",e)}}attachCSSStyleDeclarationSetPropertyProxy(){let e=this;try{pt(this.currentWindow.CSSStyleDeclaration.prototype,"setProperty",t=>function(...r){let n=t(...r);if(e.isObserving&&this.parentRule&&this.parentRule.parentStyleSheet)try{let t=Array.from(this.parentRule.parentStyleSheet.cssRules).indexOf(this.parentRule);-1!==t&&(e.handleCssRule(this.parentRule.parentStyleSheet,t),e.handleCssRule(this.parentRule.parentStyleSheet,t,this.parentRule))}catch(e){S.error("Error happened in `CSSStyleDeclaration.setProperty` proxy.",e,r)}return n})}catch(e){S.debug("Cannot apply `setProperty` proxy to CSSStyleDeclaration.",e)}}attachDeleteRuleProxy(){let e=this;try{pt(this.currentWindow.CSSStyleSheet.prototype,"deleteRule",t=>function(r){if(t(r),e.isObserving)try{e.handleCssRule(this,r)}catch(e){S.error("Error happened in `deleteRule` proxy.",e,r)}})}catch(e){S.debug("Cannot apply `deleteRule` proxy to CSSStyleSheet.",e)}}attachInsertRuleProxy(){let e=this;try{pt(this.currentWindow.CSSStyleSheet.prototype,"insertRule",t=>function(r,n){let o=t(r,n),i=this.cssRules[o];if(e.isObserving)try{e.handleCssRule(this,n,i)}catch(e){S.error("Error happened in `insertRule` proxy.",e,r,n,i,o)}return o})}catch(e){S.debug("Cannot apply `insertRule` proxy to CSSStyleSheet.",e)}}attachReplaceRuleProxy(){let e=this;try{pt(this.currentWindow.CSSStyleSheet.prototype,"replace",t=>function(r){let n=t(r);return n.then(t=>{if(e.isObserving)try{e.handleStylesheetReplace(t)}catch(e){S.error("Error happened in `replace` proxy.",e,n,r)}}),n})}catch(e){S.debug("Cannot apply `replace` proxy to CSSStyleSheet.",e)}}attachReplaceSyncRuleProxy(){let e=this;try{pt(this.currentWindow.CSSStyleSheet.prototype,"replaceSync",t=>function(r){let n=t(r);if(e.isObserving)try{e.handleStylesheetReplace(this)}catch(e){S.error("Error happened in `replace` proxy.",e,n,r)}return n})}catch(e){S.debug("Cannot apply `replace` proxy to CSSStyleSheet.",e)}}handleCssRule(e,t,r){let n=[{rule:r&&this.processCssRule(r),ruleIndex:t}],o=this.getAdoptedSheetId(e);if(void 0===o){var i,s;let t=this.getStyleSheetMetadata(e);if(void 0===t)return;this.listeners.onStyleSheetMutationProcessed((i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Zr(e,t,r[t])})}return e}({},t),s=s={rules:n},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(s)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(s,e))}),i))}else this.listeners.onAdoptedStyleSheetMutationProcessed({rules:n,sheetId:o})}handleStylesheetReplace(e){let t=this.getAdoptedSheetId(e);if(void 0===t)return;let r=this.serializeAndMaybeHashRules(e).join("\n");this.listeners.onAdoptedStyleSheetMutationProcessed({replace:r,sheetId:t})}processCssRule(e){let{assets:t,value:r}=Jr.serializeCssText({cssText:e.cssText,currentWindow:this.currentWindow,shouldHashEmbeddedAssets:this.config.shouldHashEmbeddedAssets});return t.forEach(e=>this.listeners.onAssetDiscovered(e)),r}serializeAndMaybeHashRules(e,{shouldHashJoinedContent:t=!0}={}){let r=Array.from(e.cssRules);if(!t||!this.config.shouldHashEmbeddedAssets)return r.map(e=>this.processCssRule(e));let n=r.map(e=>Jr.serializeCssText({cssText:e.cssText,currentWindow:this.currentWindow,shouldHashEmbeddedAssets:this.config.shouldHashEmbeddedAssets})),o=n.map(e=>e.value).join("\n");if(this.config.shouldHashEmbeddedAssets&&o.length>=256){n.flatMap(e=>e.assets).forEach(e=>this.listeners.onAssetDiscovered(e));let e={content:o,kind:"css-content",mimetype:"text/css"};return this.listeners.onAssetDiscovered(e),[Er.encode(vr(e)).value]}return r.map(e=>this.processCssRule(e))}constructor(e,t,r,n){Zr(this,"currentWindow",void 0),Zr(this,"nodeInfoManager",void 0),Zr(this,"config",void 0),Zr(this,"listeners",void 0),Zr(this,"areCssRuleProxiesAttached",void 0),Zr(this,"idsByAdoptedSheets",void 0),Zr(this,"isObserving",void 0),Zr(this,"nextSheetId",void 0),Zr(this,"observedDocumentsAndShadowRoots",void 0),Zr(this,"rootsByAdoptedSheets",void 0),Zr(this,"attachAdoptedStyleSheetProxy",void 0),Zr(this,"createAdoptedStyleSheetId",void 0),Zr(this,"getAdoptedSheetId",void 0),Zr(this,"getStyleSheetMetadata",void 0),Zr(this,"processAdoptedStyleSheets",void 0),this.currentWindow=e,this.nodeInfoManager=t,this.config=r,this.listeners=n,this.areCssRuleProxiesAttached=!1,this.idsByAdoptedSheets=new WeakMap,this.isObserving=!1,this.nextSheetId=0,this.observedDocumentsAndShadowRoots=new Set,this.rootsByAdoptedSheets=new WeakMap,this.attachAdoptedStyleSheetProxy=e=>{try{let t=this;vt(e.prototype,"adoptedStyleSheets",function(e){return{set(r){var n;if(null==(n=e.set)||n.apply(this,[r]),t.isObserving)try{t.processAdoptedStyleSheets(this,!0)}catch(e){S.error("Error happened in adoptedStylesheet proxy",e)}}}})}catch(e){S.debug("Cannot apply adoptedStylesheet proxy",e)}},this.createAdoptedStyleSheetId=e=>{let t=this.nextSheetId;return this.idsByAdoptedSheets.set(e,t),this.nextSheetId+=1,t},this.getAdoptedSheetId=e=>this.idsByAdoptedSheets.get(e),this.getStyleSheetMetadata=e=>{var t,r,n;let o=e.ownerNode,i=o&&(0,Ae.Ll)(o)?null==(r=this.nodeInfoManager.getNodeInfo(o))?void 0:r.id:void 0;if(!o||void 0!==i)for(let r of[null!=(t=null==(n=e.ownerNode)?void 0:n.ownerDocument)?t:this.currentWindow.document,...this.observedDocumentsAndShadowRoots]){let t=r.styleSheets;for(let n=0;n<t.length;n++)if(t[n]===e)return{rootId:this.nodeInfoManager.getIdByNodeOrCreateNewOne(r),styleElementId:i,styleSheetIndex:n}}},this.processAdoptedStyleSheets=(e,t=!1,r)=>{let n=e.adoptedStyleSheets;if(void 0===n||0===n.length&&!t||void 0===this.nodeInfoManager.getIdByNode(e))return;let o=this.nodeInfoManager.getIdByNodeOrCreateNewOne(e),i=[];for(let t of n){let n=this.getAdoptedSheetId(t),s=this.rootsByAdoptedSheets.get(t);if(s?s.add(e):this.rootsByAdoptedSheets.set(t,new Set([e])),void 0===n){n=this.createAdoptedStyleSheetId(t);let e=this.serializeAndMaybeHashRules(t,{shouldHashJoinedContent:!1});this.listeners.onAdoptedStyleSheetDiscovered({rootId:o,rules:e,sheetId:n},r?{timestamp:r.timestamp+.001,timestampWall:r.timestampWall+.001}:void 0)}i.push(n)}this.listeners.onAdoptedStyleSheetsAssigned({rootId:o,sheetIds:i},r?{timestamp:r.timestamp+.002,timestampWall:r.timestampWall+.002}:void 0)}}}function tn(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function rn(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){tn(i,n,o,s,a,"next",e)}function a(e){tn(i,n,o,s,a,"throw",e)}s(void 0)})}}function nn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class on{constructor(){nn(this,"isTaskQueueRunning",!1),nn(this,"taskQueue",[]),nn(this,"postTask",(e,t)=>rn(function*(){return new Promise((r,n)=>{this.taskQueue.push({reject:n,resolve:r,taskFunction:t,taskName:e}),this.isTaskQueueRunning||(this.isTaskQueueRunning=!0,this.runTaskQueue())})}).call(this)),nn(this,"runTaskQueue",()=>rn(function*(){if(0!==this.taskQueue.length){for(;this.taskQueue.length>0;){let e=this.taskQueue.shift();if(void 0===e)break;let t=e.taskFunction();if(t)try{let r=yield on.processTaskIterator(t);e.resolve(r)}catch(t){S.error(`Task ${e.taskName} failed`,t),e.reject(t)}else e.resolve()}this.isTaskQueueRunning=!1}else this.isTaskQueueRunning=!1}).call(this))}}nn(on,"processTaskIterator",e=>rn(function*(){let t=!1;for(;!t;)t=yield new Promise((t,r)=>{requestIdleCallback(n=>{let o=performance.now(),i=()=>n.didTimeout?performance.now()-o<("hidden"===document.visibilityState?200:16):!!n.timeRemaining();for(;i();)try{let r=e.next();if(r.done)return void t(r)}catch(e){return void r(e)}t(!1)},{timeout:500})});return t.value})());let sn=new on;function an(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let un="replay_web_cached_assets";class cn{}function ln(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function dn(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ln(i,n,o,s,a,"next",e)}function a(e){ln(i,n,o,s,a,"throw",e)}s(void 0)})}}function fn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}an(cn,"data",{}),an(cn,"isLimitReached",void 0),an(cn,"lastReadTime",-1e3),an(cn,"lastWriteTime",-1e3),an(cn,"writeIntervalId",void 0),an(cn,"addToCache",(e,t)=>{cn.data[t]||(cn.data[t]=new Set),cn.data[t].add(e),cn.isLimitReached||cn.writeLocalStorageWithThrottling(t)}),an(cn,"clearCache",()=>{cn.isLimitReached=!1;let e=performance.now();cn.lastReadTime=e,cn.lastWriteTime=e,clearTimeout(cn.writeIntervalId),cn.writeIntervalId=void 0,cn.data={},I(un),I("web_recorder_cached_assets")}),an(cn,"isCached",(e,t)=>{var r,n;return performance.now()-cn.lastReadTime>1e3&&cn.readLocalStorage(t),null!=(r=null==(n=cn.data[t])?void 0:n.has(e))&&r}),an(cn,"readLocalStorage",e=>{cn.lastReadTime=performance.now();let t=((e,t)=>{try{let r=JSON.parse(null!=e?e:"{}");return r[t]?r[t]:new Set}catch(e){return S.error("Error while parsing cached assets",{error:e}),new Set}})(R(un),e);t.size>0&&(cn.data[e]||(cn.data[e]=new Set),t.forEach(t=>cn.data[e].add(t)))}),an(cn,"writeLocalStorageWithThrottling",e=>{let t=performance.now(),r=t-cn.lastWriteTime;if(r>1e3){clearTimeout(cn.writeIntervalId),cn.writeIntervalId=void 0,cn.lastWriteTime=t,cn.readLocalStorage(e);let r=cn.data[e];if(!r)return;let n=JSON.stringify({[e]:Array.from(r.values())});if(n.length>262144)return cn.isLimitReached=!0,void S.error("AssetCacheService: Asset cache size exceeded.",{size:n.length});_(un,n)}else void 0===cn.writeIntervalId&&(cn.writeIntervalId=window.setTimeout(()=>cn.writeLocalStorageWithThrottling(e),1e3-r))});class hn{processPromiseTask(e){this.pendingTasksQueue.push(e),this.spawnTaskProcessorIfNeeded()}processPendingTask(){return dn(function*(){let e=this.pendingTasksQueue.shift();e&&(yield e())}).call(this)}spawnTaskProcessorIfNeeded(){return dn(function*(){if(0!==this.pendingTasksQueue.length&&!(this.currentParallelPromises>=this.config.maxParallelPromises)){this.currentParallelPromises+=1;try{yield this.processPendingTask()}finally{this.currentParallelPromises-=1,this.spawnTaskProcessorIfNeeded()}}}).call(this)}constructor(e={maxParallelPromises:10}){fn(this,"config",void 0),fn(this,"pendingTasksQueue",void 0),fn(this,"currentParallelPromises",void 0),this.config=e,this.pendingTasksQueue=[],this.currentParallelPromises=0}}function pn(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}let vn=()=>{var e,t,r;let n;return 1e3*(t=pn(function(){let e=performance.timeOrigin;if("number"!=typeof e){let t=performance;e=t.timing&&t.timing.fetchStart}return e}()),r=pn(performance.now()),(n=[t[0]+r[0],t[1]+r[1]])[1]>=1e9&&(n[1]-=1e9,n[0]+=1),e=n)[0]+e[1]/1e6};class yn extends Error{constructor(e){super(e),this.name="AssetError"}}function gn(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function mn(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){gn(i,n,o,s,a,"next",e)}function a(e){gn(i,n,o,s,a,"throw",e)}s(void 0)})}}function bn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class wn{constructor(e,t){bn(this,"backgroundService",void 0),bn(this,"originalFetch",void 0),bn(this,"serialize",void 0),bn(this,"serializeArbitraryFile",void 0),bn(this,"serializeCssFile",void 0),this.backgroundService=e,this.originalFetch=t,this.serialize=(e,t,r=0)=>mn(function*(){try{let n=yield this.originalFetch(e,{priority:"low"});if(!n.ok)throw new yn(`Failed to fetch asset on url: '${e}'`);let o=n.headers.get("content-type");return(null==o?void 0:o.trim().startsWith("text/css"))?this.serializeCssFile(n,e,t,r):this.serializeArbitraryFile(n)}catch(t){throw new yn(`Error while fetching asset on url: '${e}'\n${t}`)}}).call(this),this.serializeArbitraryFile=e=>e.blob(),this.serializeCssFile=(e,t,r,n)=>mn(function*(){if(n>3)return new Blob;let o=yield e.text(),i=Jr.extractUrlsFromCssText({cssFileUrl:t,cssText:o}),s={};yield Promise.allSettled(i.map(e=>mn(function*(){if(r({uri:e}))try{let t=yield this.serialize(e,r,n+1);if(0===t.size)return;s[e]=yield this.backgroundService.blobToBase64(t)}catch(t){S.warn("Error while processing asset",{error:t,url:e})}}).call(this)));let{value:a}=Jr.serializeCssText({convertUrl:e=>{var t;return null!=(t=s[e])?t:e},cssFileUrl:t,cssText:o});return new Blob([a],{type:"text/css"})}).call(this)}}function On(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Sn(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){On(i,n,o,s,a,"next",e)}function a(e){On(i,n,o,s,a,"throw",e)}s(void 0)})}}function En(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){En(e,t,r[t])})}return e}function Tn(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function An(e,t){if(null==e)return{};var r,n,o,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}class Rn{static getAssetMetadata(e){let t={};return e.source&&(0,Ae.A6)(e.source)&&(t.height=e.source.height,t.naturalHeight=e.source.naturalHeight,t.naturalWidth=e.source.naturalWidth,t.width=e.source.width),t}static isAssetProxiable(e){return!(e.uri.startsWith("blob:")||(e=>{try{let{hostname:t}=new URL(e);return"localhost"===t||"127.0.0.1"===t}catch(e){return!1}})(e.uri))}static isElementInViewport(e){let t=e.getBoundingClientRect();return t.top<window.innerHeight&&t.bottom>0&&t.left<window.innerWidth&&t.right>0}static isIntersectionObserverSupported(){return"function"==typeof window.IntersectionObserver&&"IntersectionObserverEntry"in window}attachIntersectionObserverIfNotExists(){Rn.isIntersectionObserverSupported()?this.imageObserver||(this.imageObserver=new IntersectionObserver((e,t)=>{for(let r of e)if(r.isIntersecting){let n=this.observedImages.get(r.target);if(!n){S.warn("Observed image not found in the map",{entries:e,target:r.target});continue}this.observedImages.delete(r.target),t.unobserve(r.target),this.parallelTaskProcessor.processPromiseTask(()=>this.downloadAssetWithProxyFallback(n))}})):S.warn("IntersectionObserver is not supported in this browser, images will not be observed.")}getImageQuality(){var e;let t=null==(e=this.context.config.features)?void 0:e.packAssets;if(void 0!==t&&!_e(t)&&Re(t.images)){let e=t.images.quality;if(void 0===e||"number"!=typeof e||e<=0||e>=1)return;return e}}proxyAsset(e){let t={},r=vn(),n=this.waitingAssets.get(e.uri);n&&(t=n.metadata,r=n.timestamp,this.waitingAssets.delete(e.uri));let{source:o}=e,i=Tn(Pn({},An(e,["source"])),{metadata:t,timestamp:r});this.context.config.uploadAsset(i)}shouldPackOnlyViewportImages(){var e;let t=null==(e=this.context.config.features)?void 0:e.packAssets;return void 0!==t&&(_e(t)?t:_e(t.images)?t.images:!!Re(t.images)&&!0===t.images.onlyViewportImages)}constructor(e){En(this,"context",void 0),En(this,"assetSerializer",void 0),En(this,"bindingKey",void 0),En(this,"imageObserver",void 0),En(this,"observedImages",void 0),En(this,"parallelTaskProcessor",void 0),En(this,"waitingAssets",void 0),En(this,"disconnect",void 0),En(this,"processDiscoveredAsset",void 0),En(this,"downloadAsset",void 0),En(this,"downloadAssetWithProxyFallback",void 0),En(this,"observeImageElement",void 0),En(this,"shouldPackAsset",void 0),this.context=e,this.imageObserver=null,this.observedImages=new Map,this.parallelTaskProcessor=new hn,this.waitingAssets=new Map,this.disconnect=()=>{var e;for(let t of(null==(e=this.imageObserver)||e.disconnect(),this.waitingAssets.values()))this.proxyAsset(t);this.waitingAssets.clear()},this.processDiscoveredAsset=e=>Sn(function*(){var t;let r=pr(e)?vr(e):e.uri;if(!pr(e)&&!Or(r)||cn.isCached(r,this.bindingKey))return;if((null==(t=this.context.config.features)?void 0:t.cacheAssets)&&cn.addToCache(r,this.bindingKey),pr(e))return void this.context.config.uploadAsset({content:e.content,mimetype:e.mimetype,timestamp:vn(),uri:r});let n=Rn.isAssetProxiable(e);if(!this.shouldPackAsset(e)&&n)return S.debug("IMAGE: Asset is not packed, proxying it",e),void this.proxyAsset(e);let{source:o}=e,i=An(e,["source"]);if(this.waitingAssets.set(r,Tn(Pn({},i),{metadata:Rn.getAssetMetadata(e),timestamp:vn()})),e.source&&(0,Ae.A6)(e.source)&&Rn.isIntersectionObserverSupported()&&this.shouldPackOnlyViewportImages()&&!Rn.isElementInViewport(e.source))return S.debug("Image is not in viewport - observing it",e),void this.observeImageElement(e.source,e);yield this.downloadAssetWithProxyFallback(e)}).call(this),this.downloadAsset=e=>Sn(function*(){let{source:t}=e,r=An(e,["source"]),n=yield this.assetSerializer.serialize(e.uri,this.shouldPackAsset);if(t&&(0,Ae.A6)(t)){let t=this.getImageQuality();if(void 0!==t&&["image/jpeg","image/png","image/jpeg"].includes(n.type)){S.debug("Image quality is set, resizing image",{imageQuality:t,uri:e.uri});let r=yield this.context.moduleScoped.backgroundService.compressImageBlob(n,t);r&&(n=r)}}if(n.size>10485760)throw new yn("Asset size exceeded.");let o=yield n.arrayBuffer(),i={},s=this.waitingAssets.get(e.uri);s&&(i=s.metadata,this.waitingAssets.delete(e.uri));let a=Tn(Pn({},r),{content:new Uint8Array(o),contentBase64:yield this.context.moduleScoped.backgroundService.blobToBase64(n),metadata:i,mimetype:n.type,timestamp:vn()});this.context.config.uploadAsset(a)}).call(this),this.downloadAssetWithProxyFallback=e=>Sn(function*(){let{uri:t}=e,r=Rn.isAssetProxiable(e);try{yield new Promise((t,r)=>{this.parallelTaskProcessor.processPromiseTask(()=>this.downloadAsset(e).then(t).catch(r))})}catch(n){S.warn("Error while processing asset",{error:n,uri:t}),r?(S.debug("Asset is proxied instead",e),this.proxyAsset(e)):S.debug("Asset is not proxiable",e)}}).call(this),this.observeImageElement=(e,t)=>{if(!this.observedImages.has(e)){if(this.attachIntersectionObserverIfNotExists(),!this.imageObserver)return void S.warn("Image observer is not available, image will not be observed",{image:e});this.observedImages.set(e,t),this.imageObserver.observe(e)}},this.shouldPackAsset=e=>{var t;if(pr(e))return!1;let{source:r,uri:n}=e,o=null==(t=this.context.config.features)?void 0:t.packAssets;if(void 0===o)return!1;if(_e(o))return o;if(Re(o)){if(/\.(css)/.test(n))return!0===o.styles;if(/\.(gif|jpe?g|png|webp|svg)/.test(n)||r&&(0,Ae.A6)(r))return!0===o.images||Re(o.images)&&!0===o.images.pack;if(/\.(woff2?|ttf|otf|eot)/.test(n))return!0===o.fonts}return!1},this.assetSerializer=new wn(e.moduleScoped.backgroundService,e.config.originalFetch),this.bindingKey=e.config.bindingKey}}class _n{get size(){return this.countByElement.size}add(e){this.incrementElementCount(e)}delete(e){this.decrementElementCount(e)}has(e){return!!this.countByElement.get(e)}some(e){for(let t of this.countByElement.keys())if(e(t))return!0;return!1}decrementElementCount(e){let t=this.countByElement.get(e);1===t?this.countByElement.delete(e):t&&this.countByElement.set(e,t-1)}incrementElementCount(e){let t=this.countByElement.get(e)||0;this.countByElement.set(e,t+1)}initialize(e){if(e)for(let t of e)this.incrementElementCount(t)}constructor(e){var t,r;t="countByElement",r=new Map,t in this?Object.defineProperty(this,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[t]=r,this.initialize(e)}}function In(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let xn={attributeOldValue:!0,attributes:!0,characterData:!0,childList:!0,subtree:!0};class jn{disconnect(){this.mutationObserver.disconnect(),void 0!==this.mutationProcessIntervalId&&(clearInterval(this.mutationProcessIntervalId),this.mutationProcessIntervalId=void 0)}observe(e){this.mutationObserver.observe(e,xn)}*handlePendingMutations(e){let t=this.pendingMutations.indexOf(e);if(-1!==t)try{let t=new Set,r=null;for(let n of this.pendingMutations){if(r===e)break;r=n;let o=[];for(;n.mutationRecords.length>0;){yield;let e=n.mutationRecords.shift();switch(this.removeMutationFutureTargets(e),e.type){case"childList":{let r=yield*this.processChildListMutationRecord(e,t,{timestamp:n.time,timestampWall:n.wallTime});o.push(...r);break}case"attributes":{if("href"===e.attributeName&&(0,Ae.Gr)(e.target)){if(this.isAttributeInMutationQueue(e))break;let t=yield*this.processStyleSheetMutation(e.target,{timestamp:n.time,timestampWall:n.wallTime});t&&o.push(t);break}let r=this.processAttributesMutationRecord(e,t);if(r){let e=this.findNodeInSerializedNodes(r.id,o);e?e.attributes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){In(e,t,r[t])})}return e}({},e.attributes,r.attributes):o.push(r)}break}case"characterData":if((0,Ae.ST)(e.target.parentNode)){let t=yield*this.processStyleSheetMutation(e.target.parentNode,{timestamp:n.time,timestampWall:n.wallTime});t&&o.push(t)}else{let t=this.processCharacterDataMutationRecord(e);if(t){let e=this.findNodeInSerializedNodes(t.id,o);e?e.value=t.value:o.push(t)}}}}o.length>0&&this.listeners.onMutationsProcessed(o,{timestamp:n.time,timestampWall:n.wallTime})}}catch(e){throw this.pendingMutations.slice(0,t).forEach(e=>{e.mutationRecords.forEach(e=>this.removeMutationFutureTargets(e))}),e}finally{this.pendingMutations=this.pendingMutations.slice(t+1)}else S.error("No end mutation was found in pending mutations. MutationProcessor.handlePendingMutations exited early.")}processAttributesMutationRecord(e,t){if(null===e.attributeName||this.isAttributeInMutationQueue(e))return;if(this.isNodeInMutationQueue(e.target))return void t.add(e.target);if(!this.nodeProcessor.shouldProcessUpdatedNode(e.target)||(this.privacyManager.recomputeNodePrivacyInfoForNodeAndItsSubtree(e.target),this.privacyManager.isNodeExcluded(e.target)))return;let r=this.nodeProcessor.processUpdatedNode(e.target);if(r){var n,o;let t=e.attributeName;((0,Ae.bK)(e.target)||(0,Ae.Ws)(e.target))&&["src","srcdoc"].includes(e.attributeName)&&(t=`data-appd-${e.attributeName}`);let i={[t]:null!=(n=null==(o=r.attributes)?void 0:o[t])?n:null};return{id:r.id,action:"updated",attributes:i,parentId:null,previousId:null}}}processCharacterDataMutationRecord(e){if(!this.isNodeInMutationQueue(e.target)&&this.nodeProcessor.shouldProcessUpdatedNode(e.target)&&(!e.target.parentNode||!this.privacyManager.isNodeExcluded(e.target.parentNode)))return this.nodeProcessor.processUpdatedNode(e.target)}*processChildListMutationRecord(e,t,r){let n=[];if((0,Ae.ST)(e.target)){let t=yield*this.processStyleSheetMutation(e.target,r);return t&&n.push(t),n}let o=new Set(Array.from(e.addedNodes));for(let t of Array.from(e.removedNodes)){if(!this.nodeProcessor.shouldProcessRemovedNode(t)||this.isNodeInMutationQueue(t)||o.has(t))continue;let r=this.nodeProcessor.processRemovedNode(t,e.target);r&&n.push(r)}let i=e.target;if(this.privacyManager.retrieveAndStoreNodePrivacyInfo(i),this.nodeProcessor.shouldProcessAddedNode(i)){if(!this.isNodeInMutationQueue(i)){let e=yield*this.nodeProcessor.processAddedNodeAndItsSubtree(i,r);e&&n.push(e)}}else for(let o of Array.from(e.addedNodes)){if(!this.nodeProcessor.shouldProcessAddedNode(o)&&!t.has(o)||this.isNodeInMutationQueue(o))continue;let e=yield*this.nodeProcessor.processAddedNodeAndItsSubtree(o,r);e&&n.push(e)}return n}*processStyleSheetMutation(e,t){if(e.isConnected&&!this.isNodeInMutationQueue(e))return yield*this.nodeProcessor.processAddedNodeAndItsSubtree(e,t)}constructor(e,t,r,n){let o;In(this,"currentWindow",void 0),In(this,"nodeProcessor",void 0),In(this,"privacyManager",void 0),In(this,"listeners",void 0),In(this,"futureAttributesTargets",void 0),In(this,"futureTargets",void 0),In(this,"mutationObserver",void 0),In(this,"mutationProcessIntervalId",void 0),In(this,"pendingMutations",void 0),In(this,"isNodeInMutationQueue",void 0),In(this,"findNodeInSerializedNodes",void 0),In(this,"getTargetsFromChildListMutation",void 0),In(this,"isAttributeInMutationQueue",void 0),In(this,"removeMutationFutureTargets",void 0),this.currentWindow=e,this.nodeProcessor=t,this.privacyManager=r,this.listeners=n,this.futureAttributesTargets=new WeakMap,this.futureTargets=new _n,this.pendingMutations=[],this.isNodeInMutationQueue=e=>this.futureTargets.some(t=>t.contains(e)),this.findNodeInSerializedNodes=(e,t)=>{for(let r of t){if(r.id===e)return r;if(r.children&&r.children.length>0){let t=this.findNodeInSerializedNodes(e,r.children);if(t)return t}}},this.getTargetsFromChildListMutation=e=>"childList"===e.type&&(0,Ae.ST)(e.target)?[e.target]:[...Array.from(e.addedNodes),...Array.from(e.removedNodes)],this.isAttributeInMutationQueue=e=>{var t;return null!==e.attributeName&&(null==(t=this.futureAttributesTargets.get(e.target))?void 0:t.has(e.attributeName))},this.removeMutationFutureTargets=e=>{switch(e.type){case"childList":this.getTargetsFromChildListMutation(e).forEach(e=>{this.futureTargets.delete(e)});break;case"attributes":{let t=this.futureAttributesTargets.get(e.target);t&&null!==e.attributeName&&(t.delete(e.attributeName),0===t.size&&this.futureAttributesTargets.delete(e.target));break}case"characterData":(0,Ae.ST)(e.target.parentNode)&&this.futureTargets.delete(e.target.parentNode)}},this.mutationObserver=new MutationObserver(e=>{let t=vn(),r=Date.now();e.forEach(e=>{if("attributes"===e.type&&null!==e.attributeName){let t=this.futureAttributesTargets.get(e.target);t?t.add(e.attributeName):this.futureAttributesTargets.set(e.target,new _n([e.attributeName])),(0,Ae.B6)(e.target)&&"type"===e.attributeName&&("password"===e.oldValue||"password"===e.target.type)&&this.privacyManager.setIsPasswordInput(e.target)}else"childList"===e.type?this.getTargetsFromChildListMutation(e).forEach(e=>{this.futureTargets.add(e)}):"characterData"===e.type&&(0,Ae.ST)(e.target.parentNode)&&this.futureTargets.add(e.target.parentNode)}),this.pendingMutations.push({mutationRecords:e,time:t,wallTime:r})}),this.mutationProcessIntervalId=setInterval(()=>{if(this.pendingMutations.length>0){let e=this.pendingMutations[this.pendingMutations.length-1];o!==e&&(o=e,sn.postTask("handlePendingMutations",()=>this.handlePendingMutations(e)))}},50)}}function Cn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class kn{deleteExcludedElementDimensions(e){this.dimensionsByElement.delete(e)}disconnect(){this.resizeObserver.disconnect(),void 0!==this.resizeProcessTimeoutId&&(clearInterval(this.resizeProcessTimeoutId),this.resizeProcessTimeoutId=void 0)}observeExcludedElement(e){this.resizeObserver.observe(e)}processExcludedElement(e){let t=e.getBoundingClientRect();return this.dimensionsByElement.set(e,{height:t.height,width:t.width}),{height:t.height,isExcluded:!0,width:t.width}}shouldProcessExcludedElement(e){if(!e.isConnected)return this.resizeObserver.unobserve(e),!1;let t=this.dimensionsByElement.get(e),r=e.getBoundingClientRect();return!t||t.height!==r.height||t.width!==r.width}*processResizedExcludedElements(e){this.listeners.onExcludedNodesResized(e)}constructor(e){Cn(this,"listeners",void 0),Cn(this,"dimensionsByElement",void 0),Cn(this,"pendingResizeEntries",void 0),Cn(this,"resizeObserver",void 0),Cn(this,"resizeProcessTimeoutId",void 0),this.listeners=e,this.dimensionsByElement=new WeakMap,this.pendingResizeEntries=[],this.resizeObserver=new ResizeObserver(e=>{this.pendingResizeEntries.push(...e),void 0===this.resizeProcessTimeoutId&&(this.resizeProcessTimeoutId=setTimeout(()=>{let e=this.pendingResizeEntries;this.pendingResizeEntries=[],this.resizeProcessTimeoutId=void 0;let t=e.map(e=>e.target).filter((e,t,r)=>r.indexOf(e)===t);sn.postTask("handleResizedExcludedNodes",()=>this.processResizedExcludedElements(t))},100))})}}let Ln=new Set(["title","alt","onabort","onauxclick","onblur","oncanplay","oncancel","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformchange","onformdata","onforminput","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onwheel","onpaste","onpause","onplay","onplaying","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting"]),Mn=/\s*([^,]\S*[^,](?:\s+[^,]+)?)\s*(?:,|$)/;class Nn{static processSrcSetAttribute(e,t,r){let n=[],o=e.split(Mn).filter((e,t)=>t%2==1).map(e=>e.trim().split(/\s+/)).map(([e,...o])=>{let i=e;return Or(e)&&(i=Ie(e,r)),Sr(i)&&n.push({source:t,uri:i}),[Er.encode(i).value,...o].join(" ")}).join(", ");return{assets:n,srcset:o}}}class Dn{static isSerializableInput(e){return(0,Ae.oq)(e)}serializeInputValue(e){let t=e.getAttribute("value"),r=e.getAttribute("placeholder");if(this.privacyManager.shouldMaskTextNode(e)&&"string"==typeof r&&(r=r.replaceAll(/\S/gi,"*")),this.privacyManager.isSensitiveInput(e))return{attributes:{placeholder:r,value:null},value:null};let n=(0,Ae.B6)(e)&&["checkbox","radio"].includes(e.type)?this.getCheckedValue(e):e.value;return["submit","button"].includes(e.type)&&(t=e.value),this.privacyManager.shouldMaskInputNode(e)&&(n=n.replaceAll(/\S/gi,"*"),"string"==typeof t&&(t=t.replaceAll(/\S/gi,"*"))),{attributes:{placeholder:r,value:t},value:n}}getCheckedValue(e){return this.privacyManager.shouldMaskInputNode(e)?"":String(e.checked)}constructor(e){var t,r;r=void 0,(t="privacyManager")in this?Object.defineProperty(this,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[t]=r,this.privacyManager=e}}function Bn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Un{serializeMaskedNode(e){var t,r;return t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Bn(e,t,r[t])})}return e}({},e),r=r={isMasked:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t}shouldSerializeMaskedNode(e){let t=(0,Ae.B6)(e)&&this.privacyManager.shouldMaskInputNode(e),r=!(0,Ae.B6)(e)&&this.privacyManager.shouldMaskTextNode(e);return t||r}constructor(e){Bn(this,"privacyManager",void 0),this.privacyManager=e}}class Fn{serializeTextNode(e){let t=e.nodeValue;return null===t?"":this.privacyManager.shouldMaskTextNode(e)?t.replaceAll(/\S/gi,"*"):t}constructor(e){var t,r;r=void 0,(t="privacyManager")in this?Object.defineProperty(this,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[t]=r,this.privacyManager=e}}function Wn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class zn{serializeNode(e,t){let r={nodeName:e.nodeName},n=[];if((0,Ae.a8)(e))r.attributes={name:e.name,publicId:e.publicId,systemId:e.systemId};else if((0,Ae.ir)(e))null!==e.nodeValue&&(r.value=this.textSerializer.serializeTextNode(e));else if((0,Ae.vq)(e)){if(r.attributes=((e,t)=>{let r={},n=e.attributes;if(n&&n.length>0)for(let e=0;e<n.length;e++){let o=n[e];if(!Ln.has(o.name))if(["src","href"].includes(o.name)){if(!Sr(o.value))continue;if(o.value.startsWith("#")){r[o.name]=o.value;continue}r[o.name]=Ie(o.value,t)}else r[o.name]=o.value}else if(void 0===(null==n?void 0:n.length)&&"function"==typeof e.getAttribute){let t=e.getAttribute("id");"string"==typeof t&&(r.id=t);let n=e.getAttribute("class");"string"==typeof n&&(r.class=n)}return r})(e,t),(0,Ae.lg)(e)&&(r.origin=t.origin),(0,Ae.Wj)(e)&&r.attributes.data&&!r.attributes.data.startsWith("blob:")&&!r.attributes.data.startsWith("data:")&&(r.attributes.data=Ie(r.attributes.data,t)),e.namespaceURI&&e.namespaceURI!==Ae.tm.XHTML&&(r.namespaceURI=e.namespaceURI),r.attributes.style){let{assets:e,value:o}=Jr.serializeCssText({cssText:r.attributes.style,currentWindow:t,shouldHashEmbeddedAssets:this.config.shouldHashEmbeddedAssets});r.attributes.style=o,n.push(...e)}if((0,Ae.ST)(e)){let o=Jr.serializeStyleValue(e,t,this.config.shouldHashEmbeddedAssets);if(this.config.shouldHashEmbeddedAssets&&o.value&&o.value.length>=256){let e={content:o.value,kind:"css-content",mimetype:"text/css"};r.value=Er.encode(vr(e)).value,n.push(...o.assets,e)}else{let{assets:o,value:i}=Jr.serializeStyleValue(e,t,this.config.shouldHashEmbeddedAssets);r.value=i,n.push(...o)}}if((0,Ae.Gr)(e)){let t=e.href;Sr(t)&&(r.attributes.href=Er.encode(t).value,n.push({source:e,uri:t}))}if((0,Ae.A6)(e)){let o=e.src;Sr(o)&&(n.push({source:e,uri:o}),r.attributes.src=Er.encode(o).value);let i=e.srcset;if(i){let o=Nn.processSrcSetAttribute(i,e,t);r.attributes.srcset=o.srcset,n.push(...o.assets)}}if((0,Ae.c8)(e)){let o=e.getAttribute("href");if(o){let i=Ie(o,t);Sr(i)&&n.push({source:e,uri:i}),r.attributes.href=Er.encode(i).value}}if((0,Ae.im)(e)){let o=e.getAttribute("href");if(o&&!o.startsWith("#")){let i=Ie(o,t);Sr(i)&&n.push({source:e,uri:i}),r.attributes.href=Er.encode(i).value}}if((0,Ae.PV)(e)&&e.parentElement&&(0,Ae.LY)(e.parentElement)){let o=e.srcset;if(o){let i=Nn.processSrcSetAttribute(o,e,t);r.attributes.srcset=i.srcset,n.push(...i.assets)}}if(this.maskedNodeSerializer.shouldSerializeMaskedNode(e)){let e=this.maskedNodeSerializer.serializeMaskedNode(r);Object.assign(r,e)}if(Dn.isSerializableInput(e)){let{attributes:t,value:n}=this.inputSerializer.serializeInputValue(e);null===n?delete r.value:r.value=n,r.attributes.value&&(null===t.value?delete r.attributes.value:r.attributes.value=t.value),r.attributes.placeholder&&t.placeholder&&(r.attributes.placeholder=t.placeholder)}((0,Ae.bK)(e)||(0,Ae.Ws)(e))&&(r.attributes["data-replay-src"]=r.attributes.src,r.attributes["data-replay-srcdoc"]=r.attributes.srcdoc,delete r.attributes.src,delete r.attributes.srcdoc)}return(0,Ae.ji)(e)&&(r.isNonNativeShadowRoot=!0),{assets:n,serializedNode:r}}constructor(e,t={}){Wn(this,"privacyManager",void 0),Wn(this,"config",void 0),Wn(this,"inputSerializer",void 0),Wn(this,"maskedNodeSerializer",void 0),Wn(this,"textSerializer",void 0),this.privacyManager=e,this.config=t,this.inputSerializer=new Dn(this.privacyManager),this.maskedNodeSerializer=new Un(this.privacyManager),this.textSerializer=new Fn(this.privacyManager)}}function Vn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Vn(e,t,r[t])})}return e}class Gn{disconnect(){this.excludedElementProcessor.disconnect()}*processAddedNodeAndItsSubtree(e,t){var r,n,o,i,s;let a=new WeakMap,u=e=>(0,Ae.bK)(e)&&this.config.backgroundServiceSrc&&e.src===this.config.backgroundServiceSrc,c=!1;for(let r of Me(e,{recoverOnNotConnectedNodes:!0,shouldProcessNode:e=>!(u(e)||e.parentNode&&this.privacyManager.isNodeExcluded(e.parentNode)),useNativeTreeWalker:this.config.useNativeTreeWalker})){c=!0,this.privacyManager.retrieveAndStoreNodePrivacyInfo(r);let e=this.processAddedNode(r,t),n=(0,Ae.Ng)(r)||(0,Ae.ji)(r)?r.host:r.parentNode,i=n&&a.get(n);i&&(i.children=null!=(o=i.children)?o:[],e&&i.children.push(e)),e&&a.set(r,e),yield}if(!c)return;let l=a.get(e);if(void 0===l)return void S.error("Root lost during serialization - dom snaphost/mutation");let d=null!=(r=e.parentNode&&this.nodeInfoManager.getIdByNode(e.parentNode))?r:null,f=null!=(n=this.findPreviousIndexedSiblingId(e))?n:null;return i=Hn({},l),s=s={action:"added",parentId:d,previousId:f},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(s)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(s,e))}),i}processRemovedNode(e,t){let r=this.nodeInfoManager.getNodeInfo(e);for(let t of Me(e,{useNativeTreeWalker:this.config.useNativeTreeWalker}))this.nodeInfoManager.deleteNodeInfo(t),this.privacyManager.deleteNodePrivacyInfo(t),(0,Ae.vq)(t)&&this.excludedElementProcessor.deleteExcludedElementDimensions(t),this.listeners.onNodeRemoved(t);if(void 0!==r){if(null!==t){if(!t.isConnected)return;let e=this.nodeInfoManager.getNodeInfo(t);if((null==e?void 0:e.parent)!==t.parentNode)return}return{id:r.id,action:"removed"}}}constructor(e,t,r,n,o){Vn(this,"currentWindow",void 0),Vn(this,"nodeInfoManager",void 0),Vn(this,"privacyManager",void 0),Vn(this,"listeners",void 0),Vn(this,"config",void 0),Vn(this,"excludedElementProcessor",void 0),Vn(this,"nodeSerializer",void 0),Vn(this,"processAddedNode",void 0),Vn(this,"processUpdatedNode",void 0),Vn(this,"shouldProcessAddedNode",void 0),Vn(this,"shouldProcessRemovedNode",void 0),Vn(this,"shouldProcessUpdatedNode",void 0),Vn(this,"findPreviousIndexedSiblingId",void 0),Vn(this,"onExcludedNodeResized",void 0),Vn(this,"serializeNode",void 0),this.currentWindow=e,this.nodeInfoManager=t,this.privacyManager=r,this.listeners=n,this.config=o,this.processAddedNode=(e,t)=>{let r=this.nodeInfoManager.getIdByNodeOrCreateNewOne(e),n=this.privacyManager.isNodeExcluded(e);this.nodeInfoManager.setNodeInfo(e,{id:r,isMasked:this.privacyManager.isNodeMasked(e),isRecorded:!n,parent:e.parentNode,previousSibling:e.previousSibling}),n||this.listeners.onNodeAdded(e,t),n&&(0,Ae.vq)(e)&&this.excludedElementProcessor.observeExcludedElement(e);let o=this.serializeNode(e);if(o)return Hn({id:r},o)},this.processUpdatedNode=e=>{let t=this.nodeInfoManager.getIdByNode(e);if(void 0===t)return void S.warn("Cannot process updated node. Node not found in map.",e);let r=this.serializeNode(e);return r?Hn({id:t,action:"updated",parentId:null,previousId:null},r):void 0},this.shouldProcessAddedNode=e=>{if(!e.isConnected)return!1;let t=this.nodeInfoManager.getNodeInfo(e);return void 0===t||(t.parent!==e.parentNode||t.previousSibling!==e.previousSibling)&&(!t.isRecorded!==this.privacyManager.isNodeExcluded(e)||t.isMasked!==this.privacyManager.isNodeMasked(e)||!xe(e))},this.shouldProcessRemovedNode=e=>void 0!==this.nodeInfoManager.getNodeInfo(e),this.shouldProcessUpdatedNode=e=>!!e.isConnected&&void 0!==this.nodeInfoManager.getNodeInfo(e),this.findPreviousIndexedSiblingId=e=>{let t,r=e.previousSibling;for(;r;){if(void 0!==(t=this.nodeInfoManager.getIdByNode(r)))return t;r=r.previousSibling}},this.onExcludedNodeResized=e=>{let t=vn(),r=Date.now(),n=[];for(let t of e){let e=this.processUpdatedNode(t);e&&n.push(e)}n.length>0&&this.listeners.onMutationsProcessed(n,{timestamp:t,timestampWall:r})},this.serializeNode=e=>{if(this.privacyManager.isNodeExcluded(e))return(0,Ae.vq)(e)&&this.excludedElementProcessor.shouldProcessExcludedElement(e)?this.excludedElementProcessor.processExcludedElement(e):void 0;let{assets:t,serializedNode:r}=this.nodeSerializer.serializeNode(e,this.currentWindow);return t&&t.forEach(e=>this.listeners.onAssetDiscovered(e)),r},this.nodeSerializer=new zn(this.privacyManager,{shouldHashEmbeddedAssets:this.config.shouldHashEmbeddedAssets}),this.excludedElementProcessor=new kn({onExcludedNodesResized:this.onExcludedNodeResized})}}function qn(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Kn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Kn(e,t,r[t])})}return e}function Xn(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}class Yn extends nt{createDOMSnapshot(){var e;return(e=function*(){let e=this.createSnapshotEvent(),t=[];this.isTaskRunWithinMainWindow()&&t.push(Xn($n({},this.createReplayEventEnvelope()),{name:ae.TITLE,data:{title:this.currentWindow.document.title}}),Xn($n({},this.createReplayEventEnvelope()),{name:ae.RESIZE,data:yield Ht.getDimensions(this.currentWindow)}));let r=yield sn.postTask("createDOMSnapshot",()=>this.nodeProcessor.processAddedNodeAndItsSubtree(this.currentWindow.document,{timestamp:e.timestamp,timestampWall:e.timestampWall}));if(!r)throw Error("Serialized document is undefined");let{action:n}=r,o=function(e,t){if(null==e)return{};var r,n,o,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}(r,["action"]),i=Xn($n({},e),{data:{rootNode:o}});return this.uploadReplayEvents([i,...t]),{timestamp:e.timestamp,timestampWall:e.timestampWall}},function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){qn(i,n,o,s,a,"next",e)}function a(e){qn(i,n,o,s,a,"throw",e)}s(void 0)})}).call(this)}onMutationsProcessed(e){}onNodeAdded(e,t){var r;(0,Ae.gh)(e)&&this.mutationProcessor.observe(e),(0,Ae.bK)(e)&&(null==(r=this.taskContext.config.features)?void 0:r.iframes)&&this.onIframeDiscovered(e,t),this.taskEmitter.emit("nodeAdded",{node:e,rootWindow:this.currentWindow})}onNodeRemoved(e){this.taskEmitter.emit("nodeRemoved",{node:e,rootWindow:this.currentWindow})}onStart(){this.createDOMSnapshot(),this.mutationProcessor.observe(this.currentWindow.document)}onStop(){this.mutationProcessor.disconnect(),this.nodeProcessor.disconnect(),this.assetProcessor.disconnect()}constructor(e,t,r){var n,o,i,s;super(e,t),Kn(this,"startRecordingWindow",void 0),Kn(this,"shouldHashEmbeddedAssets",void 0),Kn(this,"assetProcessor",void 0),Kn(this,"mutationProcessor",void 0),Kn(this,"nodeProcessor",void 0),Kn(this,"onAssetDiscovered",void 0),Kn(this,"handleMutationsProcessed",void 0),Kn(this,"handleNodeAdded",void 0),Kn(this,"handleNodeRemoved",void 0),Kn(this,"onIframeDiscovered",void 0),this.startRecordingWindow=r,this.onAssetDiscovered=e=>this.assetProcessor.processDiscoveredAsset(e),this.handleMutationsProcessed=(e,t)=>{this.uploadReplayEvent(Xn($n({},this.createReplayEventEnvelope(t)),{name:ae.NODE_MUTATION,data:{nodes:e},parentMetadata:null})),this.onMutationsProcessed(t)},this.handleNodeAdded=(e,t)=>{this.isStarted&&this.onNodeAdded(e,t)},this.handleNodeRemoved=e=>{this.isStarted&&this.onNodeRemoved(e)},this.onIframeDiscovered=(e,t)=>{let r=t=>{if(this.mutationProcessor.isNodeInMutationQueue(e))return this.nodeInfoManager.deleteLoadListenerForIframe(e),void S.warn("Iframe is being processed in pending mutations, skipping this load event.");var r;e.contentWindow?P(e.contentWindow)?this.startRecordingWindow(e.contentWindow,{iframeElementId:this.nodeInfoManager.getIdByNodeOrCreateNewOne(e),windowId:this.windowIdManager.getWindowId(this.currentWindow)},t):null==(r=this.taskContext.moduleScoped.postMessageMainService)||r.sendStartRecordingEvent(e,{iframeElementId:this.nodeInfoManager.getIdByNodeOrCreateNewOne(e),windowId:this.windowIdManager.getWindowId(e.contentWindow)}):S.warn("Iframe contentWindow is not available")};+(!e.contentDocument||"complete"!==e.contentDocument.readyState||"about:blank"!==e.src&&"about:blank"===e.contentDocument.location.href)?e.contentWindow&&!P(e.contentWindow)&&r():r(t),this.nodeInfoManager.getLoadListenerForIframe(e)?S.warn("Iframe load listener already exists"):this.nodeInfoManager.setLoadListenerForIframe(e,()=>r())},this.assetProcessor=new Rn(this.taskContext),this.shouldHashEmbeddedAssets=!!((null==(n=t.config.features)?void 0:n.packAssets)&&Re(null==(o=t.config.features)?void 0:o.packAssets)&&!0===t.config.features.packAssets.hashAssetContent||_e(null==(i=t.config.features)?void 0:i.packAssets)&&!0===t.config.features.packAssets),this.nodeProcessor=new Gn(this.currentWindow,this.nodeInfoManager,this.privacyManager,{onAssetDiscovered:this.onAssetDiscovered,onMutationsProcessed:this.handleMutationsProcessed,onNodeAdded:this.handleNodeAdded,onNodeRemoved:this.handleNodeRemoved},{backgroundServiceSrc:null==(s=t.config.features)?void 0:s.backgroundServiceSrc,shouldHashEmbeddedAssets:this.shouldHashEmbeddedAssets,useNativeTreeWalker:t.config.useNativeTreeWalker}),this.mutationProcessor=new jn(this.currentWindow,this.nodeProcessor,this.privacyManager,{onMutationsProcessed:this.handleMutationsProcessed})}}function Qn(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Jn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Jn(e,t,r[t])})}return e}function eo(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}class to extends Yn{createDOMSnapshot(){var e,t=this,r=()=>super.createDOMSnapshot;return(e=function*(){let e=yield r().call(t);return this.isStarted&&this.cssProcessor.observe(this.currentWindow.document,e),e},function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Qn(i,n,o,s,a,"next",e)}function a(e){Qn(i,n,o,s,a,"throw",e)}s(void 0)})}).call(this)}onNodeAdded(e,t){super.onNodeAdded(e,t),(0,Ae.Ng)(e)&&this.cssProcessor.observe(e,t)}onNodeRemoved(e){super.onNodeRemoved(e),(0,Ae.Ng)(e)&&this.cssProcessor.disconnectShadowRoot(e)}onStart(){super.onStart(),this.cssProcessor.observe()}onStop(){super.onStop(),this.cssProcessor.disconnect()}constructor(...e){super(...e),Jn(this,"cssProcessor",void 0),Jn(this,"onAdoptedStyleSheetDiscovered",(e,t)=>{this.uploadReplayEvent(eo(Zn({},this.createReplayEventEnvelope(t)),{name:ae.ADOPTED_STYLESHEET,data:e}))}),Jn(this,"onAdoptedStyleSheetMutationProcessed",e=>{this.uploadReplayEvent(eo(Zn({},this.createReplayEventEnvelope()),{name:ae.ADOPTED_STYLESHEET,data:e}))}),Jn(this,"onAdoptedStyleSheetsAssigned",(e,t)=>{this.uploadReplayEvent(eo(Zn({},this.createReplayEventEnvelope(t)),{name:ae.ADOPTED_STYLESHEET,data:e}))}),Jn(this,"onStyleSheetMutationProcessed",e=>{this.uploadReplayEvent(eo(Zn({},this.createReplayEventEnvelope()),{name:ae.STYLESHEET_MUTATION,data:e}))}),this.cssProcessor=new en(this.currentWindow,this.nodeInfoManager,{shouldHashEmbeddedAssets:this.shouldHashEmbeddedAssets},{onAdoptedStyleSheetDiscovered:this.onAdoptedStyleSheetDiscovered,onAdoptedStyleSheetMutationProcessed:this.onAdoptedStyleSheetMutationProcessed,onAdoptedStyleSheetsAssigned:this.onAdoptedStyleSheetsAssigned,onAssetDiscovered:this.onAssetDiscovered,onStyleSheetMutationProcessed:this.onStyleSheetMutationProcessed})}}function ro(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class no extends to{constructor(e,t,...r){super(...r),ro(this,"parentMetadata",void 0),ro(this,"parentTimestamps",void 0),ro(this,"createSnapshotEvent",void 0),this.parentMetadata=e,this.parentTimestamps=t,this.createSnapshotEvent=()=>{var e,t;let r=this.parentTimestamps?{timestamp:this.parentTimestamps.timestamp+.001,timestampWall:this.parentTimestamps.timestampWall+.001}:void 0;return e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){ro(e,t,r[t])})}return e}({},this.createReplayEventEnvelope(r)),t=t={name:ae.DOM_SNAPSHOT,parentMetadata:this.parentMetadata},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}}}function oo(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function io(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class so extends to{constructor(...e){var t;super(...e),t=this,io(this,"lastSnapshotTimestamp",void 0),io(this,"createDOMSnapshot",()=>{var e,r=this,n=()=>super.createDOMSnapshot;(e=function*(){return t.lastSnapshotTimestamp=yield n().call(r),t.lastSnapshotTimestamp},function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){oo(i,n,o,s,a,"next",e)}function a(e){oo(i,n,o,s,a,"throw",e)}s(void 0)})})()}),io(this,"createSnapshotEvent",()=>{var e,t;return e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){io(e,t,r[t])})}return e}({},this.createReplayEventEnvelope()),t=t={name:ae.DOM_SNAPSHOT,parentMetadata:null},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}),io(this,"onMutationsProcessed",e=>{super.onMutationsProcessed(e),this.isStarted&&void 0!==this.lastSnapshotTimestamp&&e.timestamp-this.lastSnapshotTimestamp.timestamp>this.taskContext.config.periodicDOMSnapshotInterval&&this.createDOMSnapshot()})}}function ao(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class uo{constructor(){ao(this,"listeners",{}),ao(this,"addEventListener",(e,t)=>{var r;let n=null!=(r=this.listeners[e])?r:[];n.push(t),this.listeners[e]=n}),ao(this,"emit",(e,...t)=>{let r=this.listeners[e];r&&r.forEach(e=>{e(...t)})}),ao(this,"removeEventListener",(e,t)=>{let r=this.listeners[e];if(r){let n=r.indexOf(t);-1===n?S.error(`Trying to remove not existing listener of type '${String(e)}'`):r.splice(n,1)}})}}function co(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let lo=E("node-info-manager");class fo{deleteNodeInfo(e){(0,Ae.bK)(e)&&this.deleteLoadListenerForIframe(e),this.infoByNodes.delete(e)}getIdByNode(e){let t=this.infoByNodes.get(e);if(void 0!==t)return t.id}getIdByNodeOrCreateNewOne(e){let t=this.infoByNodes.get(e);return void 0===t?(this.lastUsedNodeId+=1,this.setNodeInfo(e,{id:this.lastUsedNodeId,isMasked:!1,isRecorded:!1}),this.lastUsedNodeId):t.id}getNodeInfo(e){return this.infoByNodes.get(e)}setLoadListenerForIframe(e,t){e.addEventListener("load",t,!0),void 0===this.loadListenersByIframeNodes.get(e)&&(lo.debug(`Setting load listener for iframe id ${this.getIdByNode(e)}`),this.loadListenersByIframeNodes.set(e,t))}setNodeInfo(e,t){this.infoByNodes.set(e,t)}constructor(){co(this,"infoByNodes",new WeakMap),co(this,"lastUsedNodeId",0),co(this,"loadListenersByIframeNodes",new Map),co(this,"deleteLoadListenerForIframe",e=>{let t=this.loadListenersByIframeNodes.get(e);void 0!==t&&(lo.debug(`Deleting load listener for iframe id ${this.getIdByNode(e)}`),e.removeEventListener("load",t,!0),this.loadListenersByIframeNodes.delete(e))}),co(this,"getLoadListenerForIframe",e=>this.loadListenersByIframeNodes.get(e))}}function ho(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class po{constructor(){ho(this,"scrollPositionsByElement",new WeakMap),ho(this,"getPosition",e=>this.scrollPositionsByElement.get(e)),ho(this,"setPosition",(e,t)=>{this.scrollPositionsByElement.set(e,t)})}}function vo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class yo{get config(){return this.configContext}get moduleScoped(){return this.moduleScopedContext}get windowScoped(){return this.windowScopedContext}constructor(e,t,r){vo(this,"configContext",void 0),vo(this,"moduleScopedContext",void 0),vo(this,"windowScopedContext",void 0),this.configContext=e,this.moduleScopedContext=t,this.windowScopedContext=r}}function go(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){go(e,t,r[t])})}return e}let bo={backgroundServiceSrc:"",cacheAssets:!1,canvas:!1,iframes:!0,packAssets:!1,persistSegments:!1,segmentFlushThresholdKb:null,video:!1};class wo{create(){if(!this.moduleScopedContext)throw new q("Module scoped record task context is not set");let e=this.createConfigContext(),t=this.createWindowScopedContext();return new yo(e,this.moduleScopedContext,t)}constructor(e={}){go(this,"configContext",void 0),go(this,"moduleScopedContext",void 0),go(this,"windowScopedContext",{}),go(this,"setConfigContext",e=>(this.configContext=mo({},this.configContext,e),this)),go(this,"setModuleScopedContext",e=>(this.moduleScopedContext=e,this)),go(this,"setWindowScopedContext",e=>(this.windowScopedContext=mo({},this.windowScopedContext,e),this)),go(this,"createConfigContext",()=>{var e,t,r,n,o,i,s,a,u,c;return{bindingKey:null!=(e=this.configContext.bindingKey)?e:Te,exportForTests:null!=(t=this.configContext.exportForTests)&&t,features:mo({},bo,this.configContext.features),getRelativeTime:null!=(r=this.configContext.getRelativeTime)?r:()=>performance.now(),getTimestamp:null!=(n=this.configContext.getTimestamp)?n:vn,maxExportIntervalMs:null!=(o=this.configContext.maxExportIntervalMs)?o:5e3,originalFetch:null!=(i=this.configContext.originalFetch)?i:window.fetch.bind(window),periodicDOMSnapshotInterval:null!=(s=this.configContext.periodicDOMSnapshotInterval)?s:3e5,uploadAsset:null!=(a=this.configContext.uploadAsset)?a:()=>{},uploadEvents:null!=(u=this.configContext.uploadEvents)?u:()=>{},useNativeTreeWalker:null==(c=this.configContext.useNativeTreeWalker)||c}}),go(this,"createWindowScopedContext",()=>{var e,t,r,n;return{nodeInfoManager:null!=(e=this.windowScopedContext.nodeInfoManager)?e:new fo,privacyManager:null!=(t=this.windowScopedContext.privacyManager)?t:new Xe({maskAllInputs:!0,maskAllText:!0,sensitivityRules:[],useNativeTreeWalker:!0}),scrollManager:null!=(r=this.windowScopedContext.scrollManager)?r:new po,taskEmitter:null!=(n=this.windowScopedContext.taskEmitter)?n:new uo}}),this.configContext=e}}function Oo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let So=[1e3,2e3,3e3,5e3,1e4];class Eo{get isStarted(){return this._isStarted}set isStarted(e){if(this._isStarted===e)throw new q(e?"Session replay is already started. Start is not needed.":"Session replay is not started. Stop is not needed.");this._isStarted=e}initIframeRecordTasks(e){let t=this.createRecordTaskContext(),r=window,n=new no(e,void 0,r,t,this.startRecordingIframeWindow);this.recordTaskManager.addTask(n).initTasksByWindow(r,t)}initRecordTasks(){let e=this.createRecordTaskContext(),t=window,r=new so(t,e,this.startRecordingIframeWindow);this.recordTaskManager.addTask(r).initTasksByWindow(t,e)}startRecording(){this.recordTaskManager.startTasksByWindow(window)}stopRecording(){this.recordTaskManager.stopAllTasks()}constructor(e){var t,r,n,o,i,s,a,u;Oo(this,"config",void 0),Oo(this,"bindingKey",void 0),Oo(this,"maxExportIntervalMs",void 0),Oo(this,"recordTaskContextCreator",void 0),Oo(this,"recordTaskManager",void 0),Oo(this,"_isStarted",void 0),Oo(this,"createRecordTaskContext",void 0),Oo(this,"startRecordingIframeWindow",void 0),this.config=e,this._isStarted=!1,this.createRecordTaskContext=()=>{var e,t,r,n;return this.recordTaskContextCreator.setWindowScopedContext({privacyManager:new Xe({maskAllInputs:null==(e=this.config.maskAllInputs)||e,maskAllText:null==(t=this.config.maskAllText)||t,sensitivityRules:null!=(r=this.config.sensitivityRules)?r:[],useNativeTreeWalker:null==(n=this.config.useNativeTreeWalker)||n})}).create()},this.startRecordingIframeWindow=(e,t,r)=>{if(!P(e))return;this.recordTaskManager.getTasksByWindow(e)&&this.recordTaskManager.stopTasksByWindow(e),S.debug("Start recording iframe",e);let n=this.createRecordTaskContext(),o=new no(t,r,e,n,this.startRecordingIframeWindow);this.recordTaskManager.addTask(o).initTasksByWindow(e,n).startTasksByWindow(e)},e.logLevel&&S.setLoggingLevel(null!=(i=e.logLevel)?i:"critical"),e.logPrefix&&S.setLoggingPrefix(null!=(s=e.logPrefix)?s:"session-replay: "),this.maxExportIntervalMs=null!=(t=this.config.maxExportIntervalMs)?t:5e3,this.bindingKey=null!=(r=e.bindingKey)?r:Te,this.recordTaskManager=new dr(null!=(n=e.customTasks)?n:[]),this.recordTaskContextCreator=new wo((a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Oo(e,t,r[t])})}return e}({},e),u=u={bindingKey:this.bindingKey,maxExportIntervalMs:this.maxExportIntervalMs,periodicDOMSnapshotInterval:null!=(o=this.config.periodicDOMSnapshotInterval)?o:3e5},Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(u)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(u)).forEach(function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(u,e))}),a))}}function Po(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function To(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Ao=E("session-replay-iframe");class Ro extends Eo{start(){window.top===window?Ao.warn("Session replay iframe cannot be started outside of an iframe."):(()=>{if(window.top===window)return!1;try{return!!window.frameElement}catch(e){return!1}})()?Ao.warn("Session replay iframe cannot be started in the same origin iframe."):(this.isStarted=!0,Ao.debug("Session replay iframe started"),this.startRecordingIfParentIsDiscovered())}stop(){this.isStarted=!1,Ao.debug("Session replay iframe stopped"),this.stopRecording()}constructor(e){var t;super(e),t=this,To(this,"postMessageService",void 0),To(this,"windowIdManager",void 0),To(this,"attachPostMessageEventListeners",()=>{this.postMessageService.addPostMessageEventListener(de.STOP_RECORDING,()=>{this.stop()})}),To(this,"emitAsset",e=>{this.postMessageService.sendDataEventToParent({assets:[e]}),Ao.debug("Emitted asset event",e)}),To(this,"emitEvents",e=>{this.postMessageService.sendDataEventToParent({events:e}),e.forEach(e=>Ao.debug(`Emitted ${e.name} event`,e))}),To(this,"startRecordingIfParentIsDiscovered",()=>{var e;return(e=function*(){if(yield t.postMessageService.waitForParentDiscovery({timeout:t.config.timeout})){let e=yield t.postMessageService.waitForStartRecordingFromParent();e&&(Ao.debug("Received start recording message from the parent."),t.windowIdManager.setWindowId(window,e.windowId),W.initializeInIframe(e.browserInstanceId),t.initIframeRecordTasks({iframeElementId:e.iframeElementId,windowId:e.windowId}),"visible"===e.visibilityState&&t.startRecording())}else{var e,r;Ao.debug("Parent session replay not discovered."),null==(e=(r=t.config).onTimeout)||e.call(r)}},function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Po(i,n,o,s,a,"next",e)}function a(e){Po(i,n,o,s,a,"throw",e)}s(void 0)})})()}),this.windowIdManager=new T,this.postMessageService=new Pe({channelId:"session-replay"}),this.recordTaskContextCreator.setConfigContext({uploadAsset:this.emitAsset,uploadEvents:this.emitEvents}).setModuleScopedContext({backgroundService:new Q(e),windowIdManager:this.windowIdManager}),this.attachPostMessageEventListeners()}}let _o=e=>e.name===ae.DOM_SNAPSHOT&&null===e.parentMetadata,Io=e=>e.name===ae.FOCUS||e.name===ae.BLUR||e.name===ae.CLICK||e.name===ae.INPUT||e.name===ae.MOUSE_MOVE||e.name===ae.TOUCH_MOVE||e.name===ae.SCROLL||e.name===ae.SELECTION;try{e=new TextDecoder}catch(e){}let xo=0,jo=[],Co={},ko=jo,Lo=0,Mo={},No=0,Do=0,Bo=[],Uo=[],Fo={useRecords:!1,mapsAsObjects:!0},Wo=!1,zo=2;try{Function("")}catch(e){zo=1/0}class Vo{decodeKey(e){return this.keyMap&&this.mapKey.get(e)||e}encodeKey(e){return this.keyMap&&this.keyMap.hasOwnProperty(e)?this.keyMap[e]:e}encodeKeys(e){if(!this._keyMap)return e;let t=new Map;for(let[r,n]of Object.entries(e))t.set(this._keyMap.hasOwnProperty(r)?this._keyMap[r]:r,n);return t}decodeKeys(e){if(!this._keyMap||"Map"!=e.constructor.name)return e;if(!this._mapKey)for(let[e,t]of(this._mapKey=new Map,Object.entries(this._keyMap)))this._mapKey.set(t,e);let t={};return e.forEach((e,r)=>t[$o(this._mapKey.has(r)?this._mapKey.get(r):r)]=e),t}mapDecode(e,t){let r=this.decode(e);return this._keyMap&&"Array"===r.constructor.name?r.map(e=>this.decodeKeys(e)):r}decode(e,i){if(t)return fi(()=>(hi(),this?this.decode(e,i):Vo.prototype.decode.call(Fo,e,i)));r=i>-1?i:e.length,xo=0,Lo=0,Do=0,o=null,ko=jo,a=null,t=e;try{l=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(i){if(t=null,e instanceof Uint8Array)throw i;throw Error("Source must be a Uint8Array or Buffer but was a "+(e&&"object"==typeof e?e.constructor.name:typeof e))}return this instanceof Vo?(Mo=this,c=this.sharedValues&&(this.pack?Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures?n=this.structures:(!n||n.length>0)&&(n=[])):(Mo=Fo,(!n||n.length>0)&&(n=[]),c=null),Ho()}decodeMultiple(e,t){let r,n=0;try{let o=e.length;Wo=!0;let i=this?this.decode(e,o):vi.decode(e,o);if(!t){for(r=[i];xo<o;)n=xo,r.push(Ho());return r}if(!1===t(i))return;for(;xo<o;)if(n=xo,!1===t(Ho()))return}catch(e){throw e.lastPosition=n,e.values=r,e}finally{Wo=!1,hi()}}constructor(e){if(e&&((e.keyMap||e._keyMap)&&!e.useRecords&&(e.useRecords=!1,e.mapsAsObjects=!0),!1===e.useRecords&&void 0===e.mapsAsObjects&&(e.mapsAsObjects=!0),e.getStructures&&(e.getShared=e.getStructures),e.getShared&&!e.structures&&((e.structures=[]).uninitialized=!0),e.keyMap))for(let[t,r]of(this.mapKey=new Map,Object.entries(e.keyMap)))this.mapKey.set(r,t);Object.assign(this,e)}}function Ho(){try{let e=Go();if(a){if(xo>=a.postBundlePosition){let e=Error("Unexpected bundle position");throw e.incomplete=!0,e}xo=a.postBundlePosition,a=null}if(xo==r)n=null,t=null,u&&(u=null);else{if(xo>r){let e=Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}if(!Wo)throw Error("Data read, but end of buffer not reached")}return e}catch(e){throw hi(),(e instanceof RangeError||e.message.startsWith("Unexpected end of buffer"))&&(e.incomplete=!0),e}}function Go(){let e=t[xo++],i=e>>5;if((e&=31)>23)switch(e){case 24:e=t[xo++];break;case 25:if(7==i){let e=t[xo++],r=t[xo++],n=(127&e)>>2;if(31===n)return r||3&e?NaN:128&e?-1/0:1/0;if(0===n){let t=((3&e)<<8|r)/16777216;return 128&e?-t:t}return ei[3]=128&e|56+(n>>1),ei[2]=(7&e)<<5|r>>3,ei[1]=r<<5,ei[0]=0,Zo[0]}e=l.getUint16(xo),xo+=2;break;case 26:if(7==i){let e=l.getFloat32(xo);if(Mo.useFloat32>2){let r=pi[(127&t[xo])<<1|t[xo+1]>>7];return xo+=4,(r*e+(e>0?.5:-.5)|0)/r}return xo+=4,e}if(e=l.getUint32(xo),xo+=4,1===i)return-1-e;break;case 27:if(7==i){let e=l.getFloat64(xo);return xo+=8,e}if(i>1){if(l.getUint32(xo)>0)throw Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");e=l.getUint32(xo+4)}else e=Mo.int64AsNumber?4294967296*l.getUint32(xo)+l.getUint32(xo+4):l.getBigUint64(xo);xo+=8;break;case 31:switch(i){case 2:case 3:throw Error("Indefinite length not supported for byte or text strings");case 4:let e,t=[],r=0;for(;(e=Go())!=Co;){if(r>=11281e4)throw Error("Array length exceeds 112810000");t[r++]=e}return 4==i?t:3==i?t.join(""):Buffer.concat(t);case 5:let n;if(Mo.mapsAsObjects){let e={},t=0;if(Mo.keyMap)for(;(n=Go())!=Co;){if(t++>=1681e4)throw Error("Property count exceeds 16810000");e[$o(Mo.decodeKey(n))]=Go()}else for(;(n=Go())!=Co;){if(t++>=1681e4)throw Error("Property count exceeds 16810000");e[$o(n)]=Go()}return e}{d&&(Mo.mapsAsObjects=!0,d=!1);let e=new Map;if(Mo.keyMap){let t=0;for(;(n=Go())!=Co;){if(t++>=1681e4)throw Error("Map size exceeds 16810000");e.set(Mo.decodeKey(n),Go())}}else{let t=0;for(;(n=Go())!=Co;){if(t++>=1681e4)throw Error("Map size exceeds 16810000");e.set(n,Go())}}return e}case 7:return Co;default:throw Error("Invalid major type for indefinite length "+i)}default:throw Error("Unknown token "+e)}switch(i){case 0:return e;case 1:return~e;case 2:var s;return s=e,Mo.copyBuffers?Uint8Array.prototype.slice.call(t,xo,xo+=s):t.subarray(xo,xo+=s);case 3:if(Do>=xo)return o.slice(xo-No,(xo+=e)-No);if(0==Do&&r<140&&e<32){let r=e<16?Jo(e):function(e){let r=xo,n=Array(e);for(let o=0;o<e;o++){let e=t[xo++];if((128&e)>0)return void(xo=r);n[o]=e}return Qo.apply(String,n)}(e);if(null!=r)return r}return Xo(e);case 4:if(e>=11281e4)throw Error("Array length exceeds 112810000");let i=Array(e);for(let t=0;t<e;t++)i[t]=Go();return i;case 5:if(e>=1681e4)throw Error("Map size exceeds 112810000");if(Mo.mapsAsObjects){let t={};if(Mo.keyMap)for(let r=0;r<e;r++)t[$o(Mo.decodeKey(Go()))]=Go();else for(let r=0;r<e;r++)t[$o(Go())]=Go();return t}{d&&(Mo.mapsAsObjects=!0,d=!1);let t=new Map;if(Mo.keyMap)for(let r=0;r<e;r++)t.set(Mo.decodeKey(Go()),Go());else for(let r=0;r<e;r++)t.set(Go(),Go());return t}case 6:if(e>=57337){let t=n[8191&e];if(t)return t.read||(t.read=Ko(t)),t.read();if(e<65536){if(57343==e){let e=li(),t=Go(),r=Go();ri(t,r);let n={};if(Mo.keyMap)for(let t=2;t<e;t++)n[$o(Mo.decodeKey(r[t-2]))]=Go();else for(let t=2;t<e;t++)n[$o(r[t-2])]=Go();return n}if(57342==e){let e=li(),t=Go();for(let r=2;r<e;r++)ri(t++,Go());return Go()}if(57337==e)return function(){let e=li(),t=xo+Go();for(let t=2;t<e;t++){let e=li();xo+=e}let r=xo;return xo=t,(a=[Yo(li()),Yo(li())]).position0=0,a.position1=0,a.postBundlePosition=xo,xo=r,Go()}();if(Mo.getShared&&(di(),t=n[8191&e]))return t.read||(t.read=Ko(t)),t.read()}}let u=Bo[e];if(u)return u.handlesRead?u(Go):u(Go());{let t=Go();for(let r=0;r<Uo.length;r++){let n=Uo[r](e,t);if(void 0!==n)return n}return new ti(t,e)}case 7:switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;default:let t=(c||si())[e];if(void 0!==t)return t;throw Error("Unknown token "+e)}default:if(isNaN(e)){let e=Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}throw Error("Unknown CBOR token "+e)}}let qo=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function Ko(e){if(!e)throw Error("Structure is required in record definition");return e.slowReads=0,function(){let e=t[xo++];if((e&=31)>23)switch(e){case 24:e=t[xo++];break;case 25:e=l.getUint16(xo),xo+=2;break;case 26:e=l.getUint32(xo),xo+=4;break;default:throw Error("Expected array header, but got "+t[xo-1])}let r=this.compiledReader;for(;r;){if(r.propertyCount===e)return r(Go);r=r.next}if(this.slowReads++>=zo){let t=this.length==e?this:this.slice(0,e);return r=Mo.keyMap?Function("r","return {"+t.map(e=>Mo.decodeKey(e)).map(e=>qo.test(e)?$o(e)+":r()":"["+JSON.stringify(e)+"]:r()").join(",")+"}"):Function("r","return {"+t.map(e=>qo.test(e)?$o(e)+":r()":"["+JSON.stringify(e)+"]:r()").join(",")+"}"),this.compiledReader&&(r.next=this.compiledReader),r.propertyCount=e,this.compiledReader=r,r(Go)}let n={};if(Mo.keyMap)for(let t=0;t<e;t++)n[$o(Mo.decodeKey(this[t]))]=Go();else for(let t=0;t<e;t++)n[$o(this[t])]=Go();return n}}function $o(e){if("string"==typeof e)return"__proto__"===e?"__proto_":e;if("number"==typeof e||"boolean"==typeof e||"bigint"==typeof e)return e.toString();if(null==e)return e+"";throw Error("Invalid property name type "+typeof e)}let Xo=Yo;function Yo(r){let n;if(r<16&&(n=Jo(r)))return n;if(r>64&&e)return e.decode(t.subarray(xo,xo+=r));let o=xo+r,i=[];for(n="";xo<o;){let e=t[xo++];if(128&e)if(192==(224&e)){let r=(31&e)<<6|63&t[xo++];r<128?i.push(65533):i.push(r)}else if(224==(240&e)){let r=(31&e)<<12|(63&t[xo++])<<6|63&t[xo++];r<2048||r>=55296&&r<=57343?i.push(65533):i.push(r)}else if(240==(248&e)){let r=(7&e)<<18|(63&t[xo++])<<12|(63&t[xo++])<<6|63&t[xo++];r<65536||r>1114111?i.push(65533):(r>65535&&(r-=65536,i.push(r>>>10&1023|55296),r=56320|1023&r),i.push(r))}else i.push(65533);else i.push(e);i.length>=4096&&(n+=Qo.apply(String,i),i.length=0)}return i.length>0&&(n+=Qo.apply(String,i)),n}let Qo=String.fromCharCode;function Jo(e){if(e<4){if(e<2){if(0===e)return"";{let e=t[xo++];return(128&e)>1?void(xo-=1):Qo(e)}}{let r=t[xo++],n=t[xo++];if((128&r)>0||(128&n)>0)return void(xo-=2);if(e<3)return Qo(r,n);let o=t[xo++];return(128&o)>0?void(xo-=3):Qo(r,n,o)}}{let r=t[xo++],n=t[xo++],o=t[xo++],i=t[xo++];if((128&r)>0||(128&n)>0||(128&o)>0||(128&i)>0)return void(xo-=4);if(e<6){if(4===e)return Qo(r,n,o,i);{let e=t[xo++];return(128&e)>0?void(xo-=5):Qo(r,n,o,i,e)}}if(e<8){let s=t[xo++],a=t[xo++];if((128&s)>0||(128&a)>0)return void(xo-=6);if(e<7)return Qo(r,n,o,i,s,a);let u=t[xo++];return(128&u)>0?void(xo-=7):Qo(r,n,o,i,s,a,u)}{let s=t[xo++],a=t[xo++],u=t[xo++],c=t[xo++];if((128&s)>0||(128&a)>0||(128&u)>0||(128&c)>0)return void(xo-=8);if(e<10){if(8===e)return Qo(r,n,o,i,s,a,u,c);{let e=t[xo++];return(128&e)>0?void(xo-=9):Qo(r,n,o,i,s,a,u,c,e)}}if(e<12){let l=t[xo++],d=t[xo++];if((128&l)>0||(128&d)>0)return void(xo-=10);if(e<11)return Qo(r,n,o,i,s,a,u,c,l,d);let f=t[xo++];return(128&f)>0?void(xo-=11):Qo(r,n,o,i,s,a,u,c,l,d,f)}{let l=t[xo++],d=t[xo++],f=t[xo++],h=t[xo++];if((128&l)>0||(128&d)>0||(128&f)>0||(128&h)>0)return void(xo-=12);if(e<14){if(12===e)return Qo(r,n,o,i,s,a,u,c,l,d,f,h);{let e=t[xo++];return(128&e)>0?void(xo-=13):Qo(r,n,o,i,s,a,u,c,l,d,f,h,e)}}{let p=t[xo++],v=t[xo++];if((128&p)>0||(128&v)>0)return void(xo-=14);if(e<15)return Qo(r,n,o,i,s,a,u,c,l,d,f,h,p,v);let y=t[xo++];return(128&y)>0?void(xo-=15):Qo(r,n,o,i,s,a,u,c,l,d,f,h,p,v,y)}}}}}let Zo=new Float32Array(1),ei=new Uint8Array(Zo.buffer,0,4);class ti{constructor(e,t){this.value=e,this.tag=t}}Bo[0]=e=>new Date(e),Bo[1]=e=>new Date(Math.round(1e3*e)),Bo[2]=e=>{let t=BigInt(0);for(let r=0,n=e.byteLength;r<n;r++)t=BigInt(e[r])+(t<<BigInt(8));return t},Bo[3]=e=>BigInt(-1)-Bo[2](e),Bo[4]=e=>+(e[1]+"e"+e[0]),Bo[5]=e=>e[1]*Math.exp(e[0]*Math.log(2));let ri=(e,t)=>{let r=n[e-=57344];r&&r.isShared&&((n.restoreStructures||(n.restoreStructures=[]))[e]=r),n[e]=t,t.read=Ko(t)};Bo[105]=e=>{let t=e.length,r=e[1];ri(e[0],r);let n={};for(let o=2;o<t;o++)n[$o(r[o-2])]=e[o];return n},Bo[14]=e=>a?a[0].slice(a.position0,a.position0+=e):new ti(e,14),Bo[15]=e=>a?a[1].slice(a.position1,a.position1+=e):new ti(e,15);let ni={Error,RegExp};Bo[27]=e=>(ni[e[0]]||Error)(e[1],e[2]);let oi=e=>{if(132!=t[xo++]){let e=Error("Packed values structure must be followed by a 4 element array");throw t.length<xo&&(e.incomplete=!0),e}let r=e();if(!r||!r.length){let e=Error("Packed values structure must be followed by a 4 element array");throw e.incomplete=!0,e}return(c=c?r.concat(c.slice(r.length)):r).prefixes=e(),c.suffixes=e(),e()};function ii(e,t){return"string"==typeof e?e+t:e instanceof Array?e.concat(t):Object.assign({},e,t)}function si(){if(!c){if(!Mo.getShared)throw Error("No packed values available");di()}return c}oi.handlesRead=!0,Bo[51]=oi,Bo[6]=e=>{if(!c){if(!Mo.getShared)return new ti(e,6);di()}if("number"==typeof e)return c[16+(e>=0?2*e:-2*e-1)];let t=Error("No support for non-integer packed references yet");throw void 0===e&&(t.incomplete=!0),t},Bo[28]=e=>{let r;u||((u=new Map).id=0);let n=u.id++,o=xo,i={target:r=t[xo]>>5==4?[]:{}};u.set(n,i);let s=e();return i.used?(Object.getPrototypeOf(r)!==Object.getPrototypeOf(s)&&(xo=o,r=s,u.set(n,{target:r}),s=e()),Object.assign(r,s)):(i.target=s,s)},Bo[28].handlesRead=!0,Bo[29]=e=>{let t=u.get(e);return t.used=!0,t.target},Bo[258]=e=>new Set(e),(Bo[259]=e=>(Mo.mapsAsObjects&&(Mo.mapsAsObjects=!1,d=!0),e())).handlesRead=!0,Uo.push((e,t)=>e>=225&&e<=255?ii(si().prefixes[e-224],t):e>=28704&&e<=32767?ii(si().prefixes[e-28672],t):e>=1879052288&&e<=2147483647?ii(si().prefixes[e-1879048192],t):e>=216&&e<=223?ii(t,si().suffixes[e-216]):e>=27647&&e<=28671?ii(t,si().suffixes[e-27639]):e>=1811940352&&e<=1879048191?ii(t,si().suffixes[e-1811939328]):1399353956==e?{packedValues:c,structures:n.slice(0),version:t}:55799==e?t:void 0);let ai=1==new Uint8Array(new Uint16Array([1]).buffer)[0],ui=[Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,"u"<typeof BigUint64Array?{name:"BigUint64Array"}:BigUint64Array,Int8Array,Int16Array,Int32Array,"u"<typeof BigInt64Array?{name:"BigInt64Array"}:BigInt64Array,Float32Array,Float64Array],ci=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e<ui.length;e++)!function(e,t){let r,n="get"+e.name.slice(0,-5);"function"==typeof e?r=e.BYTES_PER_ELEMENT:e=null;for(let o=0;o<2;o++){if(!o&&1==r)continue;let i=2==r?1:4==r?2:3*(8==r);Bo[o?t:t-4]=1==r||o==ai?n=>{if(!e)throw Error("Could not find typed array for code "+t);return Mo.copyBuffers||1!==r&&(2!==r||1&n.byteOffset)&&(4!==r||3&n.byteOffset)&&(8!==r||7&n.byteOffset)?new e(Uint8Array.prototype.slice.call(n,0).buffer):new e(n.buffer,n.byteOffset,n.byteLength>>i)}:r=>{if(!e)throw Error("Could not find typed array for code "+t);let s=new DataView(r.buffer,r.byteOffset,r.byteLength),a=r.length>>i,u=new e(a),c=s[n];for(let e=0;e<a;e++)u[e]=c.call(s,e<<i,o);return u}}}(ui[e],ci[e]);function li(){let e=31&t[xo++];if(e>23)switch(e){case 24:e=t[xo++];break;case 25:e=l.getUint16(xo),xo+=2;break;case 26:e=l.getUint32(xo),xo+=4}return e}function di(){if(Mo.getShared){let e=fi(()=>(t=null,Mo.getShared()))||{},r=e.structures||[];Mo.sharedVersion=e.version,c=Mo.sharedValues=e.packedValues,!0===n?Mo.structures=n=r:n.splice.apply(n,[0,r.length].concat(r))}}function fi(e){let i=r,s=xo,c=Lo,d=No,f=Do,h=o,p=ko,v=u,y=a,g=new Uint8Array(t.slice(0,r)),m=n,b=Mo,w=Wo,O=e();return r=i,xo=s,Lo=c,No=d,Do=f,o=h,ko=p,u=v,a=y,t=g,Wo=w,n=m,Mo=b,l=new DataView(t.buffer,t.byteOffset,t.byteLength),O}function hi(){t=null,u=null,n=null}let pi=Array(147);for(let e=0;e<256;e++)pi[e]=+("1e"+Math.floor(45.15-.30103*e));let vi=new Vo({useRecords:!1});function yi(e){var t,r;function n(t,r){try{var i=e[t](r),s=i.value,a=s instanceof wi;Promise.resolve(a?s.v:s).then(function(r){if(a){var u="return"===t?"return":"next";if(!s.k||r.done)return n(u,r);r=e[u](r).value}o(i.done?"return":"normal",r)},function(e){n("throw",e)})}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,o){return new Promise(function(i,s){var a={key:e,arg:o,resolve:i,reject:s,next:null};r?r=r.next=a:(t=r=a,n(e,o))})},"function"!=typeof e.return&&(this.return=void 0)}function gi(e){var t,r,n,o=2;for("u">typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);o--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new mi(t.call(e));r="@@asyncIterator",n="@@iterator"}throw TypeError("Object is not async iterable")}function mi(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(mi=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new mi(e)}function bi(e){return new wi(e,0)}function wi(e,t){this.v=e,this.k=t}vi.decode,vi.decodeMultiple,yi.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},yi.prototype.next=function(e){return this._invoke("next",e)},yi.prototype.throw=function(e){return this._invoke("throw",e)},yi.prototype.return=function(e){return this._invoke("return",e)};try{f=new TextEncoder}catch(e){}let Oi="object"==typeof globalThis&&globalThis.Buffer,Si=void 0!==Oi,Ei=Si?Oi.allocUnsafeSlow:Uint8Array,Pi=Si?Oi:Uint8Array,Ti=Si?4294967296:2144337920,Ai=0,Ri=null,_i=/[\u0080-\uFFFF]/,Ii=Symbol("record-id");function xi(e,t){e<24?y[Ai++]=t|e:e<256?(y[Ai++]=24|t,y[Ai++]=e):e<65536?(y[Ai++]=25|t,y[Ai++]=e>>8,y[Ai++]=255&e):(y[Ai++]=26|t,g.setUint32(Ai,e),Ai+=4)}class ji{constructor(e,t,r){this.structures=e,this.packedValues=t,this.version=r}}function Ci(e){e<24?y[Ai++]=128|e:e<256?(y[Ai++]=152,y[Ai++]=e):e<65536?(y[Ai++]=153,y[Ai++]=e>>8,y[Ai++]=255&e):(y[Ai++]=154,g.setUint32(Ai,e),Ai+=4)}let ki="u"<typeof Blob?function(){}:Blob;function Li(e){if(e instanceof ki)return!0;let t=e[Symbol.toStringTag];return"Blob"===t||"File"===t}let Mi=1==new Uint8Array(new Uint16Array([1]).buffer)[0];function Ni(e,t){return!Mi&&t>1&&(e-=4),{tag:e,encode:function(e,t){let r=e.byteLength,n=e.byteOffset||0,o=e.buffer||e;t(Si?Oi.from(o,n,r):new Uint8Array(o,n,r))}}}function Di(e,t){let r=e.byteLength;r<24?y[Ai++]=64+r:r<256?(y[Ai++]=88,y[Ai++]=r):r<65536?(y[Ai++]=89,y[Ai++]=r>>8,y[Ai++]=255&r):(y[Ai++]=90,g.setUint32(Ai,r),Ai+=4),Ai+r>=y.length&&t(Ai+r),y.set(e.buffer?e:new Uint8Array(e),Ai),Ai+=r}function Bi(e,t){g.setUint32(Ri.position+e,Ai-Ri.position-e+1);let r=Ri;Ri=null,t(r[0]),t(r[1])}p=[Date,Set,Error,RegExp,ti,ArrayBuffer,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,"u"<typeof BigUint64Array?function(){}:BigUint64Array,Int8Array,Int16Array,Int32Array,"u"<typeof BigInt64Array?function(){}:BigInt64Array,Float32Array,Float64Array,ji],h=[{tag:1,encode(e,t){let r=e.getTime()/1e3;(this.useTimestamp32||0===e.getMilliseconds())&&r>=0&&r<4294967296?(y[Ai++]=26,g.setUint32(Ai,r),Ai+=4):(y[Ai++]=251,g.setFloat64(Ai,r),Ai+=8)}},{tag:258,encode(e,t){t(Array.from(e))}},{tag:27,encode(e,t){t([e.name,e.message])}},{tag:27,encode(e,t){t(["RegExp",e.source,e.flags])}},{getTag:e=>e.tag,encode(e,t){t(e.value)}},{encode(e,t,r){Di(e,r)}},{getTag(e){if(e.constructor===Uint8Array&&(this.tagUint8Array||Si&&!1!==this.tagUint8Array))return 64},encode(e,t,r){Di(e,r)}},Ni(68,1),Ni(69,2),Ni(70,4),Ni(71,8),Ni(72,1),Ni(77,2),Ni(78,4),Ni(79,8),Ni(85,4),Ni(86,8),{encode(e,t){let r=e.packedValues||[],n=e.structures||[];if(r.values.length>0){y[Ai++]=216,y[Ai++]=51,Ci(4);let e=r.values;t(e),Ci(0),Ci(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let t=0,r=e.length;t<r;t++)packedObjectMap[e[t]]=t}if(n){g.setUint32(Ai,3655335424),Ai+=3;let r=n.slice(0);r.unshift(57344),r.push(new ti(e.version,1399353956)),t(r)}else t(new ti(e.version,1399353956))}}];let Ui=new class extends Vo{useBuffer(e){g=new DataView((y=e).buffer,y.byteOffset,y.byteLength),Ai=0}clearSharedData(){this.structures&&(this.structures=[]),this.sharedValues&&(this.sharedValues=void 0)}updateSharedData(){let e=this.sharedVersion||0;this.sharedVersion=e+1;let t=this.structures.slice(0),r=new ji(t,this.sharedValues,this.sharedVersion),n=this.saveShared(r,t=>(t&&t.version||0)==e);return!1===n?(r=this.getShared()||{},this.structures=r.structures||[],this.sharedValues=r.packedValues,this.sharedVersion=r.version,this.structures.nextId=this.structures.length):t.forEach((e,t)=>this.structures[t]=e),n}constructor(e){let t,r,n,o,i,s;super(e),this.offset=0,e=e||{};let a=Pi.prototype.utf8Write?function(e,t){return y.utf8Write(e,t,y.byteLength-t)}:!!f&&!!f.encodeInto&&function(e,t){return f.encodeInto(e,y.subarray(t)).written},u=this,c=e.structures||e.saveStructures,l=e.maxSharedStructures;if(null==l&&(l=128*!!c),l>8190)throw Error("Maximum maxSharedStructure is 8190");let d=e.sequential;d&&(l=0),this.structures||(this.structures=[]),this.saveStructures&&(this.saveShared=this.saveStructures);let b,w,O=e.sharedValues;if(O){s=Object.create(null);for(let e=0,t=O.length;e<t;e++)s[O[e]]=e}let S=[],E=0,P=0;this.mapEncode=function(e,t){return this._keyMap&&!this._mapped&&"Array"===e.constructor.name&&(e=e.map(e=>this.encodeKeys(e))),this.encode(e,t)},this.encode=function(a,c){if(y||(g=new DataView((y=new Ei(8192)).buffer,0,8192),Ai=0),(m=y.length-10)-Ai<2048?(g=new DataView((y=new Ei(y.length)).buffer,0,y.length),m=y.length-10,Ai=0):c===Gi&&(Ai=Ai+7&2147483640),t=Ai,u.useSelfDescribedHeader&&(g.setUint32(Ai,3654940416),Ai+=3),i=u.structuredClone?new Map:null,u.bundleStrings&&"string"!=typeof a?(Ri=[]).size=1/0:Ri=null,r=u.structures){if(r.uninitialized){let e=u.getShared()||{};u.structures=r=e.structures||[],u.sharedVersion=e.version;let t=u.sharedValues=e.packedValues;if(t){s={};for(let e=0,r=t.length;e<r;e++)s[t[e]]=e}}let e=r.length;if(e>l&&!d&&(e=l),!r.transitions){r.transitions=Object.create(null);for(let t=0;t<e;t++){let e=r[t];if(!e)continue;let n,o=r.transitions;for(let r=0,i=e.length;r<i;r++){void 0===o[Ii]&&(o[Ii]=t);let i=e[r];(n=o[i])||(n=o[i]=Object.create(null)),o=n}o[Ii]=1048576|t}}d||(r.nextId=e)}if(n&&(n=!1),o=r||[],w=s,e.pack){let t=new Map;if(t.values=[],t.encoder=u,t.maxValues=e.maxPrivatePackedValues||(s?16:1/0),t.objectMap=s||!1,t.samplingPackedValues=b,function e(t,r){switch(typeof t){case"string":if(t.length>3){if(r.objectMap[t]>-1||r.values.length>=r.maxValues)return;let e=r.get(t);if(e)2==++e.count&&r.values.push(t);else if(r.set(t,{count:1}),r.samplingPackedValues){let e=r.samplingPackedValues.get(t);e?e.count++:r.samplingPackedValues.set(t,{count:1})}}break;case"object":if(t)if(t instanceof Array)for(let n=0,o=t.length;n<o;n++)e(t[n],r);else{let o=!r.encoder.useRecords;for(var n in t)t.hasOwnProperty(n)&&(o&&e(n,r),e(t[n],r))}break;case"function":console.log(t)}}(a,t),t.values.length>0){y[Ai++]=216,y[Ai++]=51,Ci(4);let e=t.values;T(e),Ci(0),Ci(0),w=Object.create(s||null);for(let t=0,r=e.length;t<r;t++)w[e[t]]=t}}v=c&Ki;try{if(v)return;if(T(a),Ri&&Bi(t,T),u.offset=Ai,i&&i.idsToInsert){(Ai+=2*i.idsToInsert.length)>m&&R(Ai),u.offset=Ai;let e=function(e,t){let r,n=2*t.length,o=e.length-n;t.sort((e,t)=>e.offset>t.offset?1:-1);for(let r=0;r<t.length;r++){let n=t[r];for(let t of(n.id=r,n.references))e[t++]=r>>8,e[t]=255&r}for(;r=t.pop();){let t=r.offset;e.copyWithin(t+n,t,o);let i=t+(n-=2);e[i++]=216,e[i++]=28,o=t}return e}(y.subarray(t,Ai),i.idsToInsert);return i=null,e}return c&Gi?(y.start=t,y.end=Ai,y):y.subarray(t,Ai)}finally{if(r)if(P<10&&P++,r.length>l&&(r.length=l),E>1e4)r.transitions=null,P=0,E=0,S.length>0&&(S=[]);else if(S.length>0&&!d){for(let e=0,t=S.length;e<t;e++)S[e][Ii]=void 0;S=[]}if(n&&u.saveShared){u.structures.length>l&&(u.structures=u.structures.slice(0,l));let e=y.subarray(t,Ai);return!1===u.updateSharedData()?u.encode(a):e}c&qi&&(Ai=t)}},this.findCommonStringsToPack=()=>(b=new Map,s||(s=Object.create(null)),e=>{let t=e&&e.threshold||4,r=this.pack?e.maxPrivatePackedValues||16:0;for(let[e,o]of(O||(O=this.sharedValues=[]),b))o.count>t&&(s[e]=r++,O.push(e),n=!0);for(;this.saveShared&&!1===this.updateSharedData(););b=null});let T=r=>{Ai>m&&(y=R(Ai));var n,o=typeof r;if("string"===o){let o;if(w){let t=w[r];if(t>=0)return void(t<16?y[Ai++]=t+224:(y[Ai++]=198,T(1&t?15-t>>1:t-16>>1)));if(b&&!e.pack){let e=b.get(r);e?e.count++:b.set(r,{count:1})}}let i=r.length;if(Ri&&i>=4&&i<1024){if((Ri.size+=i)>61440){let e,r=(Ri[0]?3*Ri[0].length+Ri[1].length:0)+10;Ai+r>m&&(y=R(Ai+r)),y[Ai++]=217,y[Ai++]=223,y[Ai++]=249,y[Ai++]=Ri.position?132:130,y[Ai++]=26,e=Ai-t,Ai+=4,Ri.position&&Bi(t,T),(Ri=["",""]).size=0,Ri.position=e}let e=_i.test(r);return Ri[+!e]+=r,y[Ai++]=e?206:207,void T(i)}o=i<32?1:i<256?2:i<65536?3:5;let s=3*i;if(Ai+s>m&&(y=R(Ai+s)),i<64||!a){let e,t,s,a=Ai+o;for(e=0;e<i;e++)(t=r.charCodeAt(e))<128?y[a++]=t:(t<2048?y[a++]=t>>6|192:(55296==(64512&t)&&56320==(64512&(s=r.charCodeAt(e+1)))?(t=65536+((1023&t)<<10)+(1023&s),e++,y[a++]=t>>18|240,y[a++]=t>>12&63|128):y[a++]=t>>12|224,y[a++]=t>>6&63|128),y[a++]=63&t|128);n=a-Ai-o}else n=a(r,Ai+o,s);n<24?y[Ai++]=96|n:n<256?(o<2&&y.copyWithin(Ai+2,Ai+1,Ai+1+n),y[Ai++]=120,y[Ai++]=n):n<65536?(o<3&&y.copyWithin(Ai+3,Ai+2,Ai+2+n),y[Ai++]=121,y[Ai++]=n>>8,y[Ai++]=255&n):(o<5&&y.copyWithin(Ai+5,Ai+3,Ai+3+n),y[Ai++]=122,g.setUint32(Ai,n),Ai+=4),Ai+=n}else if("number"===o)if(this.alwaysUseFloat||r>>>0!==r)if(this.alwaysUseFloat||(0|r)!==r)if(!this.alwaysUseFloat&&r<0&&r>=-4294967296&&Math.floor(r)===r)y[Ai++]=58,g.setUint32(Ai,-1-r),Ai+=4;else{let e;if((e=this.useFloat32)>0&&r<4294967296&&r>=-2147483648){let t;if(y[Ai++]=250,g.setFloat32(Ai,r),e<4||(0|(t=r*pi[(127&y[Ai])<<1|y[Ai+1]>>7]))===t)return void(Ai+=4);Ai--}y[Ai++]=251,g.setFloat64(Ai,r),Ai+=8}else r>=-24?y[Ai++]=31-r:r>=-256?(y[Ai++]=56,y[Ai++]=~r):r>=-65536?(y[Ai++]=57,g.setUint16(Ai,~r),Ai+=2):(y[Ai++]=58,g.setUint32(Ai,~r),Ai+=4);else r<24?y[Ai++]=r:r<256?(y[Ai++]=24,y[Ai++]=r):r<65536?(y[Ai++]=25,y[Ai++]=r>>8,y[Ai++]=255&r):(y[Ai++]=26,g.setUint32(Ai,r),Ai+=4);else if("object"===o)if(r){if(i){let e=i.get(r);if(e){if(y[Ai++]=216,y[Ai++]=29,y[Ai++]=25,!e.references){let t=i.idsToInsert||(i.idsToInsert=[]);e.references=[],t.push(e)}return e.references.push(Ai-t),void(Ai+=2)}i.set(r,{offset:Ai-t})}let e=r.constructor;if(e===Object)!0===this.skipFunction&&(r=Object.fromEntries([...Object.keys(r).filter(e=>"function"!=typeof r[e]).map(e=>[e,r[e]])])),A(r);else if(e===Array){(n=r.length)<24?y[Ai++]=128|n:Ci(n);for(let e=0;e<n;e++)T(r[e])}else if(e===Map)if((this.mapsAsObjects?!1!==this.useTag259ForMaps:this.useTag259ForMaps)&&(y[Ai++]=217,y[Ai++]=1,y[Ai++]=3),(n=r.size)<24?y[Ai++]=160|n:n<256?(y[Ai++]=184,y[Ai++]=n):n<65536?(y[Ai++]=185,y[Ai++]=n>>8,y[Ai++]=255&n):(y[Ai++]=186,g.setUint32(Ai,n),Ai+=4),u.keyMap)for(let[e,t]of r)T(u.encodeKey(e)),T(t);else for(let[e,t]of r)T(e),T(t);else{for(let e=0,t=h.length;e<t;e++)if(r instanceof p[e]){let t=h[e],n=t.tag;return null==n&&(n=t.getTag&&t.getTag.call(this,r)),n<24?y[Ai++]=192|n:n<256?(y[Ai++]=216,y[Ai++]=n):n<65536?(y[Ai++]=217,y[Ai++]=n>>8,y[Ai++]=255&n):n>-1&&(y[Ai++]=218,g.setUint32(Ai,n),Ai+=4),void t.encode.call(this,r,T,R)}if(r[Symbol.iterator]){if(v){let e=Error("Iterable should be serialized as iterator");throw e.iteratorNotHandled=!0,e}for(let e of(y[Ai++]=159,r))T(e);return void(y[Ai++]=255)}if(r[Symbol.asyncIterator]||Li(r)){let e=Error("Iterable/blob should be serialized as iterator");throw e.iteratorNotHandled=!0,e}if(this.useToJSON&&r.toJSON){let e=r.toJSON();if(e!==r)return T(e)}A(r)}}else y[Ai++]=246;else if("boolean"===o)y[Ai++]=r?245:244;else if("bigint"===o){if(r<BigInt(1)<<BigInt(64)&&r>=0)y[Ai++]=27,g.setBigUint64(Ai,r);else if(r>-(BigInt(1)<<BigInt(64))&&r<0)y[Ai++]=59,g.setBigUint64(Ai,-r-BigInt(1));else{if(!this.largeBigIntToFloat){r>=BigInt(0)?y[Ai++]=194:(y[Ai++]=195,r=BigInt(-1)-r);let e=[];for(;r;)e.push(Number(r&BigInt(255))),r>>=BigInt(8);return void Di(new Uint8Array(e.reverse()),R)}y[Ai++]=251,g.setFloat64(Ai,Number(r))}Ai+=8}else{if("undefined"!==o)throw Error("Unknown type: "+o);y[Ai++]=247}},A=!1===this.useRecords?this.variableMapSize?e=>{let t=Object.keys(e),r=Object.values(e),n=t.length;if(n<24?y[Ai++]=160|n:n<256?(y[Ai++]=184,y[Ai++]=n):n<65536?(y[Ai++]=185,y[Ai++]=n>>8,y[Ai++]=255&n):(y[Ai++]=186,g.setUint32(Ai,n),Ai+=4),u.keyMap)for(let e=0;e<n;e++)T(u.encodeKey(t[e])),T(r[e]);else for(let e=0;e<n;e++)T(t[e]),T(r[e])}:e=>{y[Ai++]=185;let r=Ai-t;Ai+=2;let n=0;if(u.keyMap)for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&(T(u.encodeKey(t)),T(e[t]),n++);else for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&(T(t),T(e[t]),n++);y[r+++t]=n>>8,y[r+t]=255&n}:(e,t)=>{let r,i,s,a=o.transitions||(o.transitions=Object.create(null)),u=0,c=0;if(this.keyMap){c=(i=Object.keys(e).map(e=>this.encodeKey(e))).length;for(let e=0;e<c;e++){let t=i[e];!(s=a[t])&&(s=a[t]=Object.create(null),u++),a=s}}else for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&(!(s=a[t])&&(1048576&a[Ii]&&(r=65535&a[Ii]),s=a[t]=Object.create(null),u++),a=s,c++);let d=a[Ii];if(void 0!==d)d&=65535,y[Ai++]=217,y[Ai++]=d>>8|224,y[Ai++]=255&d;else{if(i||(i=a.__keys__||(a.__keys__=Object.keys(e))),void 0===r?((d=o.nextId++)||(d=0,o.nextId=1),d>=256&&(o.nextId=(d=l)+1)):d=r,o[d]=i,!(d<l)){if(a[Ii]=d,g.setUint32(Ai,3655335680),Ai+=3,u&&(E+=P*u),S.length>=256-l&&(S.shift()[Ii]=void 0),S.push(a),Ci(c+2),T(57344+d),T(i),t)return;for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&T(e[t]);return}y[Ai++]=217,y[Ai++]=d>>8|224,y[Ai++]=255&d,a=o.transitions;for(let e=0;e<c;e++)(void 0===a[Ii]||1048576&a[Ii])&&(a[Ii]=d),a=a[i[e]];a[Ii]=1048576|d,n=!0}if(c<24?y[Ai++]=128|c:Ci(c),!t)for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&T(e[t])},R=e=>{let r;if(e>16777216){if(e-t>Ti)throw Error("Encoded buffer would be larger than maximum buffer size");r=Math.min(Ti,4096*Math.round(Math.max((e-t)*(e>67108864?1.25:2),4194304)/4096))}else r=1+(Math.max(e-t<<2,y.length-1)>>12)<<12;let n=new Ei(r);return g=new DataView(n.buffer,0,r),y.copy?y.copy(n,0,t,e):n.set(y.slice(t,e)),Ai-=t,t=0,m=n.length-10,y=n},_=100,I=1e3;function*x(e,r,n){let o=e.constructor;if(o===Object){let t=!1!==u.useRecords;for(let n in t?A(e,!0):xi(Object.keys(e).length,160),e){let o=e[n];t||T(n),o&&"object"==typeof o?r[n]?yield*x(o,r[n]):yield*j(o,r,n):T(o)}}else if(o===Array){let n=e.length;Ci(n);for(let o=0;o<n;o++){let n=e[o];n&&("object"==typeof n||Ai-t>_)?r.element?yield*x(n,r.element):yield*j(n,r,"element"):T(n)}}else if(e[Symbol.iterator]&&!e.buffer){for(let n of(y[Ai++]=159,e))n&&("object"==typeof n||Ai-t>_)?r.element?yield*x(n,r.element):yield*j(n,r,"element"):T(n);y[Ai++]=255}else Li(e)?(xi(e.size,64),yield y.subarray(t,Ai),yield e,C()):e[Symbol.asyncIterator]?(y[Ai++]=159,yield y.subarray(t,Ai),yield e,C(),y[Ai++]=255):T(e);n&&Ai>t?yield y.subarray(t,Ai):Ai-t>_&&(yield y.subarray(t,Ai),C())}function*j(e,r,n){let o=Ai-t;try{T(e),Ai-t>_&&(yield y.subarray(t,Ai),C())}catch(i){if(!i.iteratorNotHandled)throw i;r[n]={},Ai=t+o,yield*x.call(this,e,r[n])}}function C(){_=I,u.encode(null,Ki)}function k(e,t,r){return _=t&&t.chunkThreshold?I=t.chunkThreshold:100,e&&"object"==typeof e?(u.encode(null,Ki),r(e,u.iterateProperties||(u.iterateProperties={}),!0)):[u.encode(e)]}this.encodeAsIterable=function(e,t){return k(e,t,x)},this.encodeAsAsyncIterable=function(e,t){return k(e,t,function e(t,r){var n;return(n=function*(){for(let c of x(t,r,!0)){let t=c.constructor;if(t===Pi||t===Uint8Array)yield c;else if(Li(c)){let e,t=c.stream().getReader();for(;!(e=yield bi(t.read())).done;)yield e.value}else if(c[Symbol.asyncIterator]){var n,o=!1,i=!1;try{for(var s,a=gi(c);o=!(s=yield bi(a.next())).done;o=!1){let t=s.value;C(),t?yield*function(e){var t={},r=!1;function n(t,n){return r=!0,{done:!1,value:new wi(n=new Promise(function(r){r(e[t](n))}),1)}}return t["u">typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return r?(r=!1,e):n("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(r)throw r=!1,e;return n("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return r?(r=!1,e):n("return",e)}),t}(gi(e(t,r.async||(r.async={})))):yield u.encode(t)}}catch(e){i=!0,n=e}finally{try{o&&null!=a.return&&(yield bi(a.return()))}finally{if(i)throw n}}}else yield c}},function(){return new yi(n.apply(this,arguments))})()})}}}({useRecords:!1}),Fi=Ui.encode;Ui.encodeAsIterable,Ui.encodeAsAsyncIterable;let{NEVER:Wi,ALWAYS:zi,DECIMAL_ROUND:Vi,DECIMAL_FIT:Hi}={NEVER:0,ALWAYS:1,DECIMAL_ROUND:3,DECIMAL_FIT:4},Gi=512,qi=1024,Ki=2048;function $i(e){var t,r;function n(t,r){try{var i=e[t](r),s=i.value,a=s instanceof Xi;Promise.resolve(a?s.v:s).then(function(r){if(a){var u="return"===t?"return":"next";if(!s.k||r.done)return n(u,r);r=e[u](r).value}o(i.done?"return":"normal",r)},function(e){n("throw",e)})}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,o){return new Promise(function(i,s){var a={key:e,arg:o,resolve:i,reject:s,next:null};r?r=r.next=a:(t=r=a,n(e,o))})},"function"!=typeof e.return&&(this.return=void 0)}function Xi(e,t){this.v=e,this.k=t}function Yi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}$i.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},$i.prototype.next=function(e){return this._invoke("next",e)},$i.prototype.throw=function(e){return this._invoke("throw",e)},$i.prototype.return=function(e){return this._invoke("return",e)};class Qi{getWindowId(e){return this.idByWindow.get(e)||(this.lastUsedWindowId+=1,this.idByWindow.set(e,this.lastUsedWindowId),this.lastUsedWindowId)}constructor(){Yi(this,"idByWindow",new WeakMap),Yi(this,"lastUsedWindowId",0)}}function Ji(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Zi(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Ji(i,n,o,s,a,"next",e)}function a(e){Ji(i,n,o,s,a,"throw",e)}s(void 0)})}}let es=(e,t)=>Zi(function*(){return Zi(function*(){let r,n,o="Compression",i=CompressionStream;try{let n=new i(t);r=e.pipeThrough(n)}catch(e){throw new q(`${o} failed`,{originalError:e instanceof Error?e:void 0,shouldReport:!0})}if(void 0===r)throw new q(`${o} failed`,{originalError:void 0,shouldReport:!0});let s=3;for(;s>0;)try{let e=new Response(r);n=yield e.blob();break}catch(e){}finally{s-=1}if(void 0===n)throw new q(`${o} failed`,{shouldReport:!0});return n})()})();function ts(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function rs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ns(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){rs(e,t,r[t])})}return e}function os(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}class is{constructor(e,t,r){rs(this,"metadata",void 0),rs(this,"events",void 0),rs(this,"assets",void 0),rs(this,"stats",void 0),rs(this,"toBinary",void 0),rs(this,"toJSON",void 0),rs(this,"toPlain",void 0),this.metadata=e,this.events=t,this.assets=r,this.stats=()=>{let e={css:0,fonts:0,images:0,other:0},t=0;return this.assets.forEach(r=>{if(!r.content)return;let n=yr(r)?r.content.byteLength:r.content.length;if(t+=n,yr(r)||mr(r)||br(r)){var o,i;let t;if("text/css"===r.mimetype||(t=r.uri,/\.(css)/.test(t)))e.css+=n;else{let t;if((null==(o=r.mimetype)?void 0:o.startsWith("font/"))||(t=r.uri,/\.(woff2?|ttf|otf|eot)/.test(t)))e.fonts+=n;else{let t;(null==(i=r.mimetype)?void 0:i.startsWith("image/"))||(t=r.uri,/\.(gif|jpe?g|png|webp|svg)/.test(t))?e.images+=n:e.other+=n}}}else e.other+=n}),{assets:{binary:{css:e.css,fonts:e.fonts,images:e.images,other:e.other,total:t},plain:{css:Math.ceil(1.33*e.css),fonts:Math.ceil(1.33*e.fonts),images:Math.ceil(1.33*e.images),other:Math.ceil(1.33*e.other),total:Math.ceil(1.33*t)}}}},this.toBinary=e=>{var t;return(t=function*(){var t;let r=is.getModifiersWithDefaults(e),n=null==(t=null==e?void 0:e.tryCompress)||t,{assets:o,events:i,omitted:s}=is.applyModifiers(this.assets,this.events,r),a=is.getContentTypes(o,i),u={data:new Blob([Fi({assets:o,events:i})]),metadata:os(ns({},this.metadata),{contentTypes:a,format:"binary",omitted:s.length>0?s:void 0})};return n&&"hidden"!==document.visibilityState?(yield Zi(function*(){if(void 0!==b)return b;if(window.Response&&"dpr"in window.Response||void 0===window.CompressionStream)return!1;try{let e=new ReadableStream({start(e){let t=new TextEncoder;e.enqueue(t.encode("test")),e.close()}});yield es(e,"deflate")}catch(e){return b=!1,!1}return b=!0,!0})())?{data:yield es(u.data.stream(),"deflate"),metadata:os(ns({},u.metadata),{format:"binary-deflate",omitted:s.length>0?s:void 0})}:(S.warn("Compression is not supported, segment data not changed."),u):u},function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function s(e){ts(i,n,o,s,a,"next",e)}function a(e){ts(i,n,o,s,a,"throw",e)}s(void 0)})}).call(this)},this.toJSON=()=>this.toPlain(),this.toPlain=e=>{let t=is.getModifiersWithDefaults(e),{assets:r,events:n,omitted:o}=is.applyModifiers(this.assets,this.events,t),i=is.getContentTypes(r,n);return{data:{assets:r.map(e=>{if(!("content"in e))return e;if(yr(e)){let{content:t,contentBase64:r}=e;return os(ns({},function(e,t){if(null==e)return{};var r,n,o,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}(e,["content","contentBase64"])),{content:r})}return e}),events:n},metadata:os(ns({},this.metadata),{contentTypes:i,format:"plain",omitted:o.length>0?o:void 0})}}}}function ss(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function as(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ss(i,n,o,s,a,"next",e)}function a(e){ss(i,n,o,s,a,"throw",e)}s(void 0)})}}function us(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}rs(is,"fromPlain",e=>{if(!e||!e.data||!e.metadata)throw S.error(`Invalid segment data provided to Segment.fromPlain. Segment: ${typeof e}. Segment.data: ${typeof e.data}. Segment.metadata: ${typeof e.metadata}. Segment.data: ${typeof e.data}.`,{segment:e}),Error("Invalid segment data provided to Segment.fromPlain");let{data:t,metadata:r}=e,{assets:n,events:o}=t;return new is(r,null!=o?o:[],null!=n?n:[])}),rs(is,"applyModifiers",(e,t,r)=>{let n=[...e],o=[];return r.omit.css&&(o.push("css"),n=n.filter(e=>!(yr(e)||mr(e)||br(e))||"text/css"!==e.mimetype)),r.omit.fonts&&(o.push("fonts"),n=n.filter(e=>{var t;return!(yr(e)||mr(e)||br(e))||!(null==(t=e.mimetype)?void 0:t.startsWith("font/"))})),r.omit.images&&(o.push("images"),n=n.filter(e=>{var t;return!(yr(e)||mr(e)||br(e))||!(null==(t=e.mimetype)?void 0:t.startsWith("image/"))})),{assets:n,events:t,omitted:o}}),rs(is,"getContentTypes",(e,t)=>{let r=[];return e.length>0&&r.push("asset"),t.some(e=>_o(e))&&r.push("dom-snapshot"),r}),rs(is,"getModifiersWithDefaults",e=>{var t,r,n,o,i,s;return{omit:{css:null!=(t=null==e||null==(o=e.omit)?void 0:o.css)&&t,fonts:null!=(r=null==e||null==(i=e.omit)?void 0:i.fonts)&&r,images:null!=(n=null==e||null==(s=e.omit)?void 0:s.images)&&n}}});let cs=E("segment-store-service"),ls="records",ds="meta",fs="replay_web_pending_segments",hs="totalSize";class ps{}function vs(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function ys(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){vs(i,n,o,s,a,"next",e)}function a(e){vs(i,n,o,s,a,"throw",e)}s(void 0)})}}function gs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ms(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){gs(e,t,r[t])})}return e}function bs(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}us(ps,"db",null),us(ps,"openPromise",null),us(ps,"unavailable",!1),us(ps,"clear",()=>as(function*(){cs.debug("Clearing all records and resetting totalSize");try{let e=yield ps.open();yield new Promise((t,r)=>{let n=e.transaction([ls,ds],"readwrite");n.objectStore(ls).clear(),n.objectStore(ds).put(0,hs),n.addEventListener("complete",()=>t()),n.addEventListener("error",()=>r(Error(String(n.error))))})}catch(e){cs.warn("Failed to clear segment store",e)}})()),us(ps,"deleteBySegmentId",e=>as(function*(){try{let t=yield ps.open();yield new Promise((r,n)=>{let o=t.transaction([ls,ds],"readwrite"),i=o.objectStore(ls),s=o.objectStore(ds),a=0,u=i.index("segmentId").openCursor(IDBKeyRange.only(e));u.addEventListener("success",()=>{let t=u.result;if(t)a+=t.value.size,t.delete(),t.continue();else{let t=s.get(hs);t.addEventListener("success",()=>{let r=t.result||0,n=Math.max(0,r-a);cs.debug(`Deleted segment ${e}, freed ${a} bytes, totalSize ${r} -> ${n}`),s.put(n,hs)})}}),o.addEventListener("complete",()=>r()),o.addEventListener("error",()=>n(Error(String(o.error))))})}catch(t){cs.warn(`Failed to delete segment ${e}`,t)}})()),us(ps,"destroy",()=>{var e;null==(e=ps.db)||e.close(),ps.db=null,ps.openPromise=null,ps.unavailable=!1}),us(ps,"getBySegmentId",e=>as(function*(){try{let t=yield ps.open();return new Promise((r,n)=>{let o=t.transaction(ls,"readonly").objectStore(ls).index("segmentId").getAll(e);o.addEventListener("success",()=>r(o.result)),o.addEventListener("error",()=>n(Error(String(o.error))))})}catch(t){return cs.warn(`Failed to read records for segment ${e}`,t),[]}})()),us(ps,"getPendingSegments",()=>as(function*(){try{let e=ps.readPendingSegments(),t=[];for(let{bindingKey:r,metadata:n,segmentId:o}of e){let e=yield ps.getBySegmentId(o),i=e.filter(e=>"asset"===e.type).map(e=>e.data),s=e.filter(e=>"event"===e.type).map(e=>e.data);t.push({bindingKey:r,segment:new is(n,s,i),segmentId:o})}return t}catch(e){return cs.warn("Failed to get pending segments",e),[]}})()),us(ps,"getTotalSize",()=>as(function*(){try{let e=yield ps.open();return new Promise((t,r)=>{let n=e.transaction(ds,"readonly").objectStore(ds).get(hs);n.addEventListener("success",()=>{var e;return t(null!=(e=n.result)?e:0)}),n.addEventListener("error",()=>r(Error(String(n.error))))})}catch(e){return cs.warn("Failed to read total size",e),0}})()),us(ps,"open",()=>ps.unavailable?Promise.reject(Error("IndexedDB schema was upgraded by another tab; storage is unavailable")):ps.db?Promise.resolve(ps.db):(ps.openPromise||(ps.openPromise=new Promise((e,t)=>{let r=indexedDB.open("replay_web_segment_store",1);r.addEventListener("upgradeneeded",()=>{let e=r.result;if(!e.objectStoreNames.contains(ls)){let t=e.createObjectStore(ls,{autoIncrement:!0});t.createIndex("bindingKey","bindingKey",{unique:!1}),t.createIndex("segmentId","segmentId",{unique:!1}),t.createIndex("insertedAt","insertedAt",{unique:!1}),t.createIndex("type","type",{unique:!1})}e.objectStoreNames.contains(ds)||e.createObjectStore(ds)}),r.addEventListener("success",()=>{ps.db=r.result,ps.db.addEventListener("versionchange",()=>{var e;cs.debug("Database version change detected, closing connection"),null==(e=ps.db)||e.close(),ps.db=null,ps.openPromise=null,ps.unavailable=!0}),ps.db.addEventListener("close",()=>{cs.debug("Database connection closed unexpectedly, will reopen on next use"),ps.db=null,ps.openPromise=null}),ps.removeStaleSegments(),e(ps.db)}),r.addEventListener("error",()=>{cs.error("Failed to open IndexedDB",r.error),ps.openPromise=null,t(Error(String(r.error)))})})),ps.openPromise)),us(ps,"removeStaleSegments",()=>as(function*(){try{let e=yield ps.open(),t=Date.now()-864e5;yield new Promise((r,n)=>{let o=e.transaction([ls,ds],"readwrite"),i=o.objectStore(ls),s=o.objectStore(ds),a=0,u=new Set,c=IDBKeyRange.upperBound(t),l=i.index("insertedAt").openCursor(c);l.addEventListener("success",()=>{let e=l.result;if(e){let t=e.value;a+=t.size,u.add(t.segmentId),e.delete(),e.continue()}else{if(a>0){let e=s.get(hs);e.addEventListener("success",()=>{let t=e.result||0,r=Math.max(0,t-a);cs.debug(`Removed ${u.size} stale segments, freed ${a} bytes, totalSize ${t} -> ${r}`),s.put(r,hs)})}for(let e of u)ps.untrackSegment(e)}}),o.addEventListener("complete",()=>r()),o.addEventListener("error",()=>n(Error(String(o.error))))})}catch(e){cs.warn("Failed to remove stale segments",e)}})()),us(ps,"storeAsset",(e,t,r,n,o)=>as(function*(){if(ps.unavailable)return void cs.debug(`Skipping asset store for segment ${t}: DB schema updated by another tab`);let i={type:"asset",bindingKey:r,data:e,insertedAt:Date.now(),segmentId:t,size:n};cs.debug(`Storing asset for segment ${t}, size ${n} bytes`);try{(yield ps.storeRecords([i],n))&&(null==o||o())}catch(e){cs.warn("Failed to store asset",e)}})()),us(ps,"storeEvents",(e,t,r,n,o)=>as(function*(){if(ps.unavailable)return void cs.debug(`Skipping events store for segment ${t}: DB schema updated by another tab`);let i=Date.now(),s=n.reduce((e,t)=>e+t,0),a=e.map((e,o)=>({type:"event",bindingKey:r,data:e,insertedAt:i,segmentId:t,size:n[o]}));cs.debug(`Storing ${e.length} events for segment ${t}, total ${s} bytes`);try{(yield ps.storeRecords(a,s))&&(null==o||o())}catch(e){cs.warn("Failed to store events",e)}})()),us(ps,"trackSegment",(e,t,r)=>{let n=ps.readPendingSegments();n.push({bindingKey:t,metadata:r,segmentId:e}),_(fs,JSON.stringify(n))}),us(ps,"untrackSegment",e=>{_(fs,JSON.stringify(ps.readPendingSegments().filter(t=>t.segmentId!==e)))}),us(ps,"evictWithinTransaction",(e,t,r,n,o)=>{let i=104857600-n,s=r,a=new Set,u=e.index("insertedAt").openCursor();u.addEventListener("success",()=>{let e=u.result;if(!e||s<=i){for(let e of(cs.debug(`Eviction complete, evicted ${a.size} segments, size ${r} -> ${s}`),t.put(s,hs),a))ps.untrackSegment(e);return void o()}let n=e.value;s-=n.size,a.add(n.segmentId),e.delete(),e.continue()})}),us(ps,"readPendingSegments",()=>{try{let e=R(fs);return e?JSON.parse(e):[]}catch(e){return cs.error("Could not parse pending segments from localStorage"),[]}}),us(ps,"storeRecords",(e,t)=>as(function*(){let r=yield ps.open();return new Promise((n,o)=>{let i=r.transaction([ls,ds],"readwrite"),s=i.objectStore(ls),a=i.objectStore(ds),u=!1,c=a.get(hs);c.addEventListener("success",()=>{let r=c.result||0,n=r+t;n>104857600?(u=!0,cs.debug(`Budget exceeded (${n} > 104857600), evicting oldest segments`),ps.evictWithinTransaction(s,a,r,t,()=>{ps.writeRecords(s,a,e,t)})):(cs.debug(`Writing ${e.length} records, ${t} bytes, totalSize ${r} -> ${n}`),ps.writeRecords(s,a,e,t))}),i.addEventListener("complete",()=>n(u)),i.addEventListener("error",()=>{cs.error("Store transaction failed",i.error),o(Error(String(i.error)))})})})()),us(ps,"writeRecords",(e,t,r,n)=>{for(let t of r)e.put(t);let o=t.get(hs);o.addEventListener("success",()=>{let e=o.result||0;t.put(e+n,hs)})});let ws=E("post-message-main-service");class Os extends ge{constructor(e){var t;super(e),t=this,gs(this,"sendStartRecordingEvent",(e,r)=>ys(function*(){let n=e.contentWindow;if(!n)return;ws.debug("Handling iframe load.",e.src,e),t.sendDiscoveryEventIfNeeded(e),ws.debug("Waiting for discovered event.",e.src,e);let o=yield t.waitForDiscoveredEvent(n);o&&(ws.debug(`Received ${o.name} event.`),t.sendEventToSource(ms(bs(ms({},t.createPostMessageEvent()),{name:de.START_RECORDING,browserInstanceId:W.id,visibilityState:document.visibilityState}),r),n))})()),gs(this,"sendStopRecordingEvent",()=>{this.broadcastEventToAllDiscoveredIframes(bs(ms({},this.createPostMessageEvent()),{name:de.STOP_RECORDING})),this.clearDiscoveredIframeWindows()}),gs(this,"sendDiscoveryEventIfNeeded",e=>{e.contentWindow&&(this.isTherePendingEvent(de.DISCOVERED,e.contentWindow)||(ws.debug("Iframe is not yet discovered. Sending discovery event.",e.src,e),this.sendEventToSource(bs(ms({},this.createPostMessageEvent()),{name:de.DISCOVERY}),e.contentWindow)))}),gs(this,"waitForDiscoveredEvent",e=>ys(function*(){try{return yield t.waitForEventFromSourceOrThrowAfterGivenTime(de.DISCOVERED,e)}catch(t){return t instanceof J?(ws.debug("Could not receive discovered event from iframe.",e),null):(ws.warn("Error happened during receiving post message from parent. Continuing normal recording.",t,window.location.href,V(document)),null)}})())}}function Ss(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Es(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Ss(i,n,o,s,a,"next",e)}function a(e){Ss(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ps(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Ts=E("session-replay"),As="replay_web_last_segment_time",Rs="web_recorder_browser_last_segment_time",_s=W.initialize();class Is extends Eo{buildAndEmitSegment(e,t,r){var n;let o=new is(e,t,r),i=e.id,s=!0===(null==(n=this.config.features)?void 0:n.persistSegments);s&&ps.trackSegment(i,this.bindingKey,e);try{this.onSegment(o,()=>{s&&(ps.untrackSegment(i),ps.deleteBySegmentId(i).catch(e=>{Ts.error("Failed to delete segment from IndexedDB",e)}))})}catch(e){Ts.error("Could not emit segment",e)}}constructor(e){var t,r,n;super(e),t=this,Ps(this,"backgroundService",void 0),Ps(this,"assetsQueue",[]),Ps(this,"currentQueueSize",0),Ps(this,"eventsQueue",[]),Ps(this,"flushCount",0),Ps(this,"flushTimeout",void 0),Ps(this,"lastStartUnixMs",0),Ps(this,"lastStartWallMs",0),Ps(this,"onSegment",void 0),Ps(this,"postMessageService",void 0),Ps(this,"segmentEnvelope",void 0),Ps(this,"segmentFlushThresholdBytes",void 0),Ps(this,"destroy",()=>{this.backgroundService.destroy(),this.postMessageService.destroy()}),Ps(this,"dismissPendingSegment",e=>Es(function*(){ps.untrackSegment(e),yield ps.deleteBySegmentId(e)})()),Ps(this,"flushSegment",()=>{var e,t,r,n;if(0===this.eventsQueue.length&&0===this.assetsQueue.length)return void this.scheduleFlushSegment();let o=this.eventsQueue,i=this.assetsQueue;this.eventsQueue=[],this.assetsQueue=[],this.currentQueueSize=0;let s=vn(),a=Date.now(),u=this.segmentEnvelope,c=this.getLastSegmentEndTime(),l=(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Ps(e,t,r[t])})}return e}({},u),n=n={"browser.instance.id":W.id,contentTypes:[],endUnixMs:s,endUnixMsWall:a,lastKnownSegmentEndUnixMs:null!=(e=null==c?void 0:c.unixMs)?e:null,lastKnownSegmentEndUnixMsWall:null!=(t=null==c?void 0:c.wallMs)?t:null,startUnixMs:Math.min(this.lastStartUnixMs,...o.map(e=>e.timestamp)),startUnixMsWall:Math.min(this.lastStartWallMs,...o.map(e=>e.timestampWall)),userActivity:this.getUserActivity(o)},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r);this.lastStartUnixMs=s,this.lastStartWallMs=a,this.segmentEnvelope=this.generateSegmentEnvelope(),this.buildAndEmitSegment(l,o,i),this.saveLastSegmentEndTime(this.lastStartUnixMs,this.lastStartWallMs),this.scheduleFlushSegment()}),Ps(this,"getPendingSegments",()=>ps.getPendingSegments()),Ps(this,"start",()=>Es(function*(){t.isStarted?Ts.warn("Cant start already started module. Stop it first."):(yield _s,t.isStarted=!0,t.currentQueueSize=0,Ts.debug("Session replay started"),t.lastStartUnixMs=vn(),t.lastStartWallMs=Date.now(),t.initRecordTasks(),t.startRecording(),t.flushCount=0,t.scheduleFlushSegment())})()),Ps(this,"stop",()=>{this.isStarted?(this.isStarted=!1,Ts.debug("Session replay stopped"),this.stopRecording(),this.stopRecordingIframes(),clearTimeout(this.flushTimeout),this.flushTimeout=void 0,this.flushSegment()):Ts.warn("Cant stop already stopped module. Start it first.")}),Ps(this,"attachPostMessageEventListeners",()=>{this.postMessageService.addPostMessageEventListener(de.DATA,e=>{e.data.assets&&e.data.assets.forEach(this.emitAsset),e.data.events&&this.emitEvents(e.data.events)})}),Ps(this,"emitAsset",e=>{var t;this.assetsQueue.push(e),Ts.debug("Uploading cache asset",e);let r=Fi(e);this.currentQueueSize+=r.length,(null==(t=this.config.features)?void 0:t.persistSegments)&&ps.storeAsset(e,this.segmentEnvelope.id,this.bindingKey,r.length,this.flushSegment),this.currentQueueSize>=this.segmentFlushThresholdBytes&&(Ts.debug("Queue large, flushing",this.currentQueueSize),this.flushSegment())}),Ps(this,"emitEvents",e=>{var t,r;if(Ts.debug(`Emitting ${e.length} events`,{events:e}),this.eventsQueue.push(...e),e.forEach(e=>Ts.debug(`Pushed ${e.name} event`,e)),e.some(_o)){if(Ts.debug("DOM snapshot event, flushing"),null==(r=this.config.features)?void 0:r.persistSegments){let t=e.map(e=>Fi(e).length);ps.storeEvents(e,this.segmentEnvelope.id,this.bindingKey,t)}return void this.flushSegment()}let n=[],o=0;for(let t of e){let e=Fi(t);n.push(e.length),o+=e.length}this.currentQueueSize+=o,(null==(t=this.config.features)?void 0:t.persistSegments)&&ps.storeEvents(e,this.segmentEnvelope.id,this.bindingKey,n,this.flushSegment),this.currentQueueSize>=this.segmentFlushThresholdBytes&&(Ts.debug("Queue large, flushing",this.currentQueueSize),this.flushSegment())}),Ps(this,"generateSegmentEnvelope",()=>({id:A(),sdkVersion:"0.0.1",source:"web"})),Ps(this,"getLastSegmentEndTime",()=>{var e,t;let r=x(Rs);if(r){C(Rs);let e=Number(r);if(!Number.isNaN(e))return{unixMs:e,wallMs:null}}let n=null!=(e=x(As))?e:R(As);try{if(n){let e=JSON.parse(n)[this.bindingKey];if(e&&"number"==typeof e.lastSegmentTime)return{unixMs:e.lastSegmentTime,wallMs:null!=(t=e.lastSegmentTimeWall)?t:null}}}catch(e){Ts.error("Could not parse last segment end time data from storage",{key:As,value:n})}return null}),Ps(this,"getUserActivity",e=>Array.from(new Set(e.filter(Io).map(e=>e.timestamp))).toSorted((e,t)=>e-t)),Ps(this,"saveLastSegmentEndTime",(e,t)=>{let r=JSON.stringify({[this.bindingKey]:{lastSegmentTime:e,lastSegmentTimeWall:t}});j(As,r),_(As,r)}),Ps(this,"scheduleFlushSegment",()=>{var e;let t;window.clearTimeout(this.flushTimeout),(null==(e=this.config.features)?void 0:e.persistSegments)?(t=Math.min(So[Math.min(this.flushCount,So.length-1)],this.maxExportIntervalMs),this.flushCount+=1):t=this.maxExportIntervalMs,this.flushTimeout=window.setTimeout(this.flushSegment,t)}),Ps(this,"stopRecordingIframes",()=>{this.postMessageService.sendStopRecordingEvent()}),this.segmentFlushThresholdBytes=1024*(null!=(r=null==(n=e.features)?void 0:n.segmentFlushThresholdKb)?r:64),this.segmentEnvelope=this.generateSegmentEnvelope(),this.onSegment=e.onSegment,this.postMessageService=new Os({channelId:"session-replay"}),this.backgroundService=new Q(e),this.recordTaskContextCreator.setConfigContext({uploadAsset:this.emitAsset,uploadEvents:this.emitEvents}).setModuleScopedContext({backgroundService:this.backgroundService,postMessageMainService:this.postMessageService,windowIdManager:new Qi}),this.attachPostMessageEventListeners()}}Ps(Is,"loadPlainSegment",is.fromPlain),Ps(Is,"clear",()=>{cn.clearCache(),C(As),I(As),C(Rs),I(Rs)})})();var a=s.I,u=s.o}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var n={};(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return P}});const t=r(8079);r(1717);const o=r(4661),i=r(494),s=r(2894),a=t._(r(9597)),u=r(892),c=r(6580),l=r(4828),d=r(6201),f=r(6635);let h,p,v,y,g=!1,m=!1,b=!1;const w=(0,i.isRecorderLoadedViaLatestTag)(),O=(0,i.isRecorderLoadedViaNextTag)()||(0,i.isRecorderLoadedViaLockedVersionTag)(),S=(e,t)=>{e.getPendingSegments().then(r=>{s.log.debug("Retrying pending segments",r.length,r);for(const{bindingKey:n,segment:o,segmentId:i}of r)n===t?e.emitPendingSegment(o,()=>{e.dismissPendingSegment(i)}):e.dismissPendingSegment(i)})},E=(e,t)=>{var r;h||(h=o.trace.getTracer("splunk.sessionReplay",f.VERSION));const n=(0,d.getGlobal)(),i=null==n||null===(r=n.sessionManager)||void 0===r?void 0:r.getSessionState();if("external"===(null==i?void 0:i.source))return void s.log.debug("Session replay span not created - recording is managed by native SDK",{sessionId:t,spanName:e});const a=Date.now(),u=h.startSpan(e.toString(),{startTime:a});if(u.setAttribute("splunk.sessionReplay","splunk"),u.isRecording()){if(t&&(!p||p.isSessionSampled(t)))return s.log.debug("Session sampler - session is recorded",{sessionId:t}),u.end(a),u;s.log.debug("Session sampler - session is not recorded",{sessionId:t})}},P={_getExporterForSession(e){let{anonymousUserId:t,attributes:r,exportQueuedLogs:n,exportUrl:o,persistFailedReplayData:i,sessionId:s}=e;const l=()=>{const e={...r,"splunk.rumSessionId":s};return t&&(e["user.anonymous_id"]=t),e};return(0,c.usesIndexedDBPersistence)(i)?new u.OTLPProtoLogExporter({beaconUrl:o,getResourceAttributes:l}):new a.default({beaconUrl:o,exportQueuedLogs:n,getResourceAttributes:l,sessionId:s,usePersistentExportQueue:"localstorage"===i})},deinit(){g&&(null==v||v.stop(),null==y||y(),g=!1)},init(e){if(!g)try{var t;if(s.log.setLoggingLevel((null!==(t=e.debug)&&void 0!==t?t:(0,d.isDebugMode)())?"debug":"warn"),"undefined"==typeof globalThis)return void s.log.warn("[Splunk]: SplunkSessionRecorder is not supported in this browser.");if(w){const{majorVersion:e}=(0,d.parseVersion)(f.VERSION),t="https://cdn.observability.splunkcloud.com/o11y-gdi-rum";s.log.warn('[Splunk]: The "latest" CDN tag is deprecated and will remain pinned to v2.5.x — it will not receive new features or major updates. Please migrate to a versioned URL on the new CDN domain:\n'+"  - Major version lock (recommended): ".concat(t,"/").concat(e,"/splunk-otel-web-session-recorder.js\n\n")+"The CDN domain is also changing from cdn.signalfx.com to cdn.observability.splunkcloud.com. If your application uses a Content Security Policy (CSP), update your script-src directive to allow the new domain.\n\nSee: https://quickdraw.splunk.com/redirect/?location=rum.browser.cdn&product=Observability&version=current")}if("object"!=typeof window)return void s.log.warn("[Splunk]: SplunkSessionRecorder.init() - Library requires browser environment. Ensure code runs in browser context.");const r=(0,d.getGlobal)();if(!r)return void s.log.error("[Splunk]: SplunkSessionRecorder.init() - SplunkRum must be initialized first. Call SplunkRum.init() before initializing session recorder.");if(r.disabledByBotDetection)return void s.log.error("[Splunk]: SplunkSessionRecorder.init() - Session recording disabled due to bot detection.");if(r.disabledByAutomationFrameworkDetection)return void s.log.error("[Splunk]: SplunkSessionRecorder.init() - Session recording disabled due to automation framework detection.");const n=(0,d.getSplunkRumVersion)();if(!n||n!==f.VERSION)return void s.log.error("[Splunk]: SplunkSessionRecorder.init() - Version mismatch detected. SplunkRum: ".concat(null!=n?n:"N/A",", SplunkSessionRecorder: ").concat(f.VERSION,". Ensure compatible versions are used."));if(!r.resource||!r.sessionManager)return void s.log.error("[Splunk]: SplunkSessionRecorder.init() - SplunkRum initialization incomplete. Resource and session manager are required.");const o=r.resource,{beaconEndpoint:i,persistFailedReplayData:a,realm:u,rumAccessToken:h,sampler:m,...P}=e,T=(0,c.resolveFailedReplayPersistence)(a),A=(0,c.usesIndexedDBPersistence)(T);p=m,r.provider&&(r.provider.resource.attributes["splunk.sessionReplay"]="splunk",O&&"string"==typeof __COMMIT_HASH__&&__COMMIT_HASH__&&(r.provider.resource.attributes["splunk.rumVersionFullSessionRecorder"]=__COMMIT_HASH__));let R=i;if(u&&(R?s.log.warn("[Splunk]: SplunkSessionRecorder.init() - Realm value ignored because beaconEndpoint is already specified."):R="https://rum-ingest.".concat(u,".observability.splunkcloud.com/v1/rumreplay")),!R)return void s.log.error("[Splunk]: SplunkSessionRecorder.init() - Cannot determine export URL. Specify either realm or beaconEndpoint in configuration.");h&&(R+="?auth=".concat(h)),y=r.sessionManager.subscribe(e=>{let{currentState:t,previousState:n}=e;var i;if(n){if("expired-duration"===t.state||"expired-inactivity"===t.state&&(null===(i=r._processedOptions)||void 0===i?void 0:i.discardDataAfterInactivity))return null==v||v.stop(),null==v||v.destroy(),void(v=void 0);if(n.id!==t.id){if(null==v||v.stop(),null==v||v.destroy(),v=void 0,!E("splunk.sessionReplay.isRecording",t.id))return;v=new l.Recorder({exporter:this._getExporterForSession({anonymousUserId:r.getAnonymousId(),attributes:o.attributes,exportQueuedLogs:!1,exportUrl:R,persistFailedReplayData:T,sessionId:t.id}),initRecorderConfig:P,persistSegments:A,sessionId:t.id,useBinarySegments:A}),v.start(),A&&!b&&(b=!0,S(v,t.id))}}});const _=r.getSessionId();_&&E("splunk.sessionReplay.isRecording",_)&&(v=new l.Recorder({exporter:this._getExporterForSession({anonymousUserId:r.getAnonymousId(),attributes:o.attributes,exportQueuedLogs:!0,exportUrl:R,persistFailedReplayData:T,sessionId:_}),initRecorderConfig:P,persistSegments:A,sessionId:_,useBinarySegments:A}),v.start(),A&&!b&&(b=!0,S(v,_))),g=!0}catch(e){s.log.error("[Splunk]: SplunkSessionRecorder.init() - Failed to initialize session recorder. Check browser compatibility and permissions.",{error:e})}},get inited(){return Boolean(g)},resume(){if(!g)return;const e=m;if(m=!1,!e)try{null==v||v.resume();const e=(0,d.getGlobal)();E("splunk.sessionReplay.resume",null==e?void 0:e.getSessionId())}catch(e){s.log.warn("[Splunk]: SplunkSessionRecorder.resume() - Failed to resume recording session due to internal error.",{error:e})}},stop(){if(g){if(m)try{null==v||v.stop();const e=(0,d.getGlobal)();E("splunk.sessionReplay.stop",null==e?void 0:e.getSessionId())}catch(e){s.log.warn("[Splunk]: SplunkSessionRecorder.stop() - Failed to stop recording session due to internal error.",{error:e})}m=!0}}}})(),module.exports=n})();
//# sourceMappingURL=index.js.map